|
@@ -99,7 +99,7 @@
|
|
|
workorder: "",
|
|
|
invname: ""
|
|
|
} as JoinRecord,
|
|
|
- num: 0,
|
|
|
+ senum: 0,
|
|
|
maxcount: 0,
|
|
|
dyImgName: '',
|
|
|
minAvailableNumber: 1,
|
|
@@ -112,9 +112,9 @@
|
|
|
},
|
|
|
onBackPress() {
|
|
|
// 覆盖系统默认的返回行为,返回到指定页面
|
|
|
- //?photoitem=${photoitem}&num=${num}&pid=${pid}
|
|
|
+ //?part=${part}&num=${num}&pid=${pid}
|
|
|
uni.navigateTo({
|
|
|
- url: `/pages/work/record/RecordList?photoitem=${this.joinRecord.photoitem}&num=${this.maxcount}&pid=${this.joinRecord.pid}&senum=${this.joinRecord.senum}`,
|
|
|
+ url: `/pages/work/record/RecordList?part=${this.joinRecord.part}&num=${this.maxcount}&pid=${this.joinRecord.pid}&senum=${this.joinRecord.senum}`,
|
|
|
// 修改动画方向为从左到右退回
|
|
|
animationType: 'slide-in-left', // 使用从左到右滑出的动画效果
|
|
|
animationDuration: 300 // 动画持续时间,单位ms
|
|
@@ -125,7 +125,7 @@
|
|
|
onLoad(options) {
|
|
|
this.path = options?.['path'] ?? ''
|
|
|
let recordId = options?.['recordId'] ?? ''
|
|
|
- let num = options?.['num'] ?? ''
|
|
|
+ let senum = options?.['senum'] ?? ''
|
|
|
let maxcount = options?.['maxcount'] ?? ''
|
|
|
console.log(this.path)
|
|
|
if (this.path != '') {
|
|
@@ -141,7 +141,7 @@
|
|
|
if (item != null) {
|
|
|
let record = JSON.parse<JoinRecord>(item.toJSONString());
|
|
|
if (record != null) {
|
|
|
- this.num = record.num;
|
|
|
+ // this.senum = record.num;
|
|
|
this.dyImgName = record.workorder + record.invname + record.part + record.photoitem + record.partno;
|
|
|
this.joinRecord = record
|
|
|
this.imgArrLen = record.imgname.indexOf(",") > -1 ? record.imgname.split(",").length : (record.imgname != '' ? 1 : 0)
|
|
@@ -154,8 +154,8 @@
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- if (num != '') {
|
|
|
- this.num = parseInt(num)
|
|
|
+ if (senum != '') {
|
|
|
+ this.senum = parseInt(senum)
|
|
|
}
|
|
|
if (maxcount != '') {
|
|
|
this.maxcount = parseInt(maxcount)
|
|
@@ -165,7 +165,7 @@
|
|
|
navigateBack() {
|
|
|
//uni.navigateBack()
|
|
|
uni.navigateTo({
|
|
|
- url: `/pages/work/record/Camera?id=${this.recordId}&num=${this.num}`
|
|
|
+ url: `/pages/work/record/Camera?id=${this.recordId}&senum=${this.senum}`
|
|
|
})
|
|
|
},
|
|
|
navigateExit() {
|
|
@@ -276,7 +276,7 @@
|
|
|
this.renameFile(this.path, newPath)
|
|
|
|
|
|
uni.navigateTo({
|
|
|
- url: `/pages/work/record/RecordList?photoitem=${this.joinRecord.photoitem}&num=${this.maxcount}&pid=${this.joinRecord.pid}&senum=${this.joinRecord.senum}`,
|
|
|
+ url: `/pages/work/record/RecordList?part=${this.joinRecord.part}&num=${this.senum}&pid=${this.joinRecord.pid}`,
|
|
|
// 修改动画方向为从左到右退回
|
|
|
animationType: 'slide-in-left', // 使用从左到右滑出的动画效果
|
|
|
animationDuration: 300 // 动画持续时间,单位ms
|