Browse Source

任务添加判断,修改扫描查询条件

hella_online_20240829
yufei0306 8 months ago
parent
commit
69e6a564cb
  1. 24
      src/pages/productPutaway/job/productPutawayJob.vue
  2. 33
      src/pages/productReceipt/job/productReceiptJob.vue
  3. 24
      src/pages/purchaseReceipt/job/receiptJob.vue

24
src/pages/productPutaway/job/productPutawayJob.vue

@ -333,19 +333,21 @@
action: "==",
value: result.label.batch
},
// {
// column: "qty",
// action: "==",
// value: result.label.qty
// },
{
column: "qty",
action: "==",
value: result.label.qty
}, {
column: "itemCode",
action: "==",
value: result.label.itemCode
}, {
column: "fromLocationCode",
action: "==",
value: result.label.fromLocationCode
}
},
// {
// column: "fromLocationCode",
// action: "==",
// value: result.label.fromLocationCode
// }
]
getProductPutawayJobList({
filters: filters,
@ -358,11 +360,15 @@
item.selected = false
})
console.log('list', list)
if (list.length > 0) {
if (list.length > 1) {
this.$refs.jobList.openList(list)
} else {
this.selectItem(list[0])
}
} else {
this.showMessage('未查找到任务')
}
}).catch(error => {
this.showMessage(error)
})

33
src/pages/productReceipt/job/productReceiptJob.vue

@ -215,15 +215,18 @@
openJobDetail(item, packingNumber = '') {
if (this.type == 'predict') {
uni.navigateTo({
url: './productReceiptDetail?id=' + item.masterId + '&status=' + item.status + '&scaned=' + packingNumber
url: './productReceiptDetail?id=' + item.masterId + '&status=' + item.status + '&scaned=' +
packingNumber
});
} else if (this.type == 'assemble') {
uni.navigateTo({
url: './fgProductReceiptDetail?id=' + item.masterId + '&status=' + item.status + '&scaned=' + packingNumber
url: './fgProductReceiptDetail?id=' + item.masterId + '&status=' + item.status +
'&scaned=' + packingNumber
});
} else {
uni.navigateTo({
url: './scrapReceiptDetail?id=' + item.masterId + '&status=' + item.status + '&scaned=' + packingNumber
url: './scrapReceiptDetail?id=' + item.masterId + '&status=' + item.status + '&scaned=' +
packingNumber
});
}
},
@ -356,19 +359,21 @@
action: "==",
value: result.label.batch
},
// {
// column: "qty",
// action: "==",
// value: result.label.qty
// },
{
column: "qty",
action: "==",
value: result.label.qty
}, {
column: "itemCode",
action: "==",
value: result.label.itemCode
}, {
column: "fromLocationCode",
action: "==",
value: result.label.fromLocationCode
}
},
// {
// column: "fromLocationCode",
// action: "==",
// value: result.label.fromLocationCode
// }
]
getProductReceiptJobList({
filters: filters,
@ -381,11 +386,15 @@
item.selected = false
})
console.log('list', list.length)
if (list.length > 0) {
if (list.length > 1) {
this.$refs.jobList.openList(list)
} else {
this.selectItem(list[0])
}
} else {
this.showMessage('未查找到任务')
}
}).catch(error => {
this.showMessage(error)
})

24
src/pages/purchaseReceipt/job/receiptJob.vue

@ -342,19 +342,21 @@
action: "==",
value: result.label.batch
},
// {
// column: "qty",
// action: "==",
// value: result.label.qty
// },
{
column: "qty",
action: "==",
value: result.label.qty
}, {
column: "itemCode",
action: "==",
value: result.label.itemCode
}, {
column: "fromLocationCode",
action: "==",
value: result.label.fromLocationCode
}
},
// {
// column: "fromLocationCode",
// action: "==",
// value: result.label.fromLocationCode
// }
]
getPurchaseReceiptJobList({
filters: filters,
@ -367,11 +369,15 @@
item.selected = false
})
console.log('list', list)
if (list.length > 0) {
if (list.length > 1) {
this.$refs.jobList.openList(list)
} else {
this.selectItem(list[0])
}
} else {
this.showMessage('未查找到任务')
}
}).catch(error => {
this.showMessage(error)
})

Loading…
Cancel
Save