|
@ -79,6 +79,7 @@ |
|
|
status: '1,2', //待处理 、进行中 |
|
|
status: '1,2', //待处理 、进行中 |
|
|
detailOptions: [], |
|
|
detailOptions: [], |
|
|
detailGiveupOptions: [], |
|
|
detailGiveupOptions: [], |
|
|
|
|
|
scanMessage:"" |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
// 装配收货:type = 'assemble' |
|
|
// 装配收货:type = 'assemble' |
|
@ -208,20 +209,21 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
openJobDetail(item, packingNumber = '') { |
|
|
openJobDetail(item, scanMessage = '') { |
|
|
if (this.type == 'predict') { |
|
|
if (this.type == 'predict') { |
|
|
uni.navigateTo({ |
|
|
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') { |
|
|
} else if (this.type == 'assemble') { |
|
|
uni.navigateTo({ |
|
|
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 { |
|
|
} else { |
|
|
uni.navigateTo({ |
|
|
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) { |
|
|
showItemList(itemList) { |
|
@ -295,6 +297,11 @@ |
|
|
action: "==", |
|
|
action: "==", |
|
|
value: code |
|
|
value: code |
|
|
}) |
|
|
}) |
|
|
|
|
|
filters.push({ |
|
|
|
|
|
column: "accept_user_id", |
|
|
|
|
|
action: "==", |
|
|
|
|
|
value: this.$store.state.user.id |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
var params = { |
|
|
var params = { |
|
|
filters: filters, |
|
|
filters: filters, |
|
@ -338,10 +345,11 @@ |
|
|
}, |
|
|
}, |
|
|
selectItem(item) { |
|
|
selectItem(item) { |
|
|
this.$refs.scanPopup.closeScanPopup(); |
|
|
this.$refs.scanPopup.closeScanPopup(); |
|
|
this.openJobDetail(item, item.packingNumber); |
|
|
this.openJobDetail(item, this.scanMessage); |
|
|
}, |
|
|
}, |
|
|
getScanResult(result) { |
|
|
getScanResult(result) { |
|
|
try { |
|
|
try { |
|
|
|
|
|
this.scanMessage ="" |
|
|
var filters = [{ |
|
|
var filters = [{ |
|
|
column: "packingNumber", |
|
|
column: "packingNumber", |
|
|
action: "==", |
|
|
action: "==", |
|
@ -371,18 +379,19 @@ |
|
|
column: "status", |
|
|
column: "status", |
|
|
action: "in", |
|
|
action: "in", |
|
|
value: '1,2', |
|
|
value: '1,2', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
column: "accept_user_id", |
|
|
|
|
|
action: "==", |
|
|
|
|
|
value: this.$store.state.user.id |
|
|
} |
|
|
} |
|
|
// { |
|
|
|
|
|
// column: "fromLocationCode", |
|
|
|
|
|
// action: "==", |
|
|
|
|
|
// value: result.label.fromLocationCode |
|
|
|
|
|
// } |
|
|
|
|
|
] |
|
|
] |
|
|
getProductReceiptJobList({ |
|
|
getProductReceiptJobList({ |
|
|
filters: filters, |
|
|
filters: filters, |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
|
pageSize: 100, |
|
|
pageSize: 100, |
|
|
}).then(res => { |
|
|
}).then(res => { |
|
|
|
|
|
this.scanMessage =result.scanMessage |
|
|
let resultList = res.data.list; |
|
|
let resultList = res.data.list; |
|
|
if (resultList.length > 0) { |
|
|
if (resultList.length > 0) { |
|
|
resultList.forEach(item => { |
|
|
resultList.forEach(item => { |
|
|