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