Browse Source

修改扫描

hella_online_20240829
lijuncheng 4 months ago
parent
commit
8ab3e67121
  1. 29
      src/pages/productReceipt/job/productReceiptJob.vue
  2. 12
      src/pages/repleinsh/job/repleinshJob.vue

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

@ -79,6 +79,7 @@
status: '1,2', //
detailOptions: [],
detailGiveupOptions: [],
scanMessage:""
};
},
// type = 'assemble'
@ -208,20 +209,21 @@
})
},
openJobDetail(item, packingNumber = '') {
openJobDetail(item, scanMessage = '') {
if (this.type == 'predict') {
uni.navigateTo({
url: './productReceiptDetail?id=' + item.masterId + '&status=' + item.status + '&scaned=' + packingNumber +'&title='+this.title
url: './productReceiptDetail?id=' + item.masterId + '&status=' + item.status + '&scanMessage=' + scanMessage +'&title='+this.title
});
} else if (this.type == 'assemble') {
uni.navigateTo({
url: './fgProductReceiptDetail?id=' + item.masterId + '&status=' + item.status + '&scaned=' + packingNumber +'&title='+this.title
url: './fgProductReceiptDetail?id=' + item.masterId + '&status=' + item.status + '&scanMessage=' + scanMessage +'&title='+this.title
});
} else {
uni.navigateTo({
url: './scrapReceiptDetail?id=' + item.masterId + '&status=' + item.status + '&scaned=' + packingNumber +'&title='+this.title
url: './scrapReceiptDetail?id=' + item.masterId + '&status=' + item.status + '&scanMessage=' + scanMessage +'&title='+this.title
});
}
this.scanMessage =""
},
showItemList(itemList) {
@ -295,6 +297,11 @@
action: "==",
value: code
})
filters.push({
column: "accept_user_id",
action: "==",
value: this.$store.state.user.id
})
var params = {
filters: filters,
@ -338,10 +345,11 @@
},
selectItem(item) {
this.$refs.scanPopup.closeScanPopup();
this.openJobDetail(item, item.packingNumber);
this.openJobDetail(item, this.scanMessage);
},
getScanResult(result) {
try {
this.scanMessage =""
var filters = [{
column: "packingNumber",
action: "==",
@ -371,18 +379,19 @@
column: "status",
action: "in",
value: '1,2',
},
{
column: "accept_user_id",
action: "==",
value: this.$store.state.user.id
}
// {
// column: "fromLocationCode",
// action: "==",
// value: result.label.fromLocationCode
// }
]
getProductReceiptJobList({
filters: filters,
pageNo: 1,
pageSize: 100,
}).then(res => {
this.scanMessage =result.scanMessage
let resultList = res.data.list;
if (resultList.length > 0) {
resultList.forEach(item => {

12
src/pages/repleinsh/job/repleinshJob.vue

@ -284,6 +284,11 @@
action: "==",
value: code
})
filters.push({
column: "accept_user_id",
action: "==",
value: this.$store.state.user.id
})
var params = {
filters: filters,
@ -296,7 +301,7 @@
uni.hideLoading();
if (res.data.list.length == 0) {
that.showMessage('未查找到' + '【' + code + '】的补料任务');
} else if (res.data.list.length == 1) {
} else {
that.openJobDetail(res.data.list[0]);
}
}).catch(error => {
@ -345,6 +350,11 @@
column: "itemCode",
action: "==",
value: result.label.itemCode
},
{
column: "accept_user_id",
action: "==",
value: this.$store.state.user.id
}
]
getRepleinshJobList({

Loading…
Cancel
Save