Browse Source

YT-1788ASN收货当前登录人不是任务的承接人,扫描ASN/箱码时提示语不正确

intex_online20241228
张立 2 months ago
parent
commit
b808232d61
  1. 17
      src/pages/purchaseReceipt/job/purchaseReceiptAsn.vue

17
src/pages/purchaseReceipt/job/purchaseReceiptAsn.vue

@ -140,11 +140,13 @@
column: "status", column: "status",
action: "in", action: "in",
value: '1,2', value: '1,2',
}, { }
column: "accept_user_id", // , {
action: "==", // column: "accept_user_id",
value: this.$store.state.user.id // action: "==",
}] // value: this.$store.state.user.id
// },
]
getPurchaseReceiptASNJobList({ getPurchaseReceiptASNJobList({
filters: filters, filters: filters,
pageNo: 1, pageNo: 1,
@ -156,10 +158,15 @@
if (resultList.length > 0) { if (resultList.length > 0) {
// asn // asn
const asnObj = this.jobList.find(item => item.asnNumber == asnNumber) const asnObj = this.jobList.find(item => item.asnNumber == asnNumber)
if (resultList[0].acceptUserId && resultList[0].acceptUserId != this.$store.state.user.id) {
this.showMessage(`ASN单号【${asnNumber}】已经被${resultList[0].acceptUserName}承接`)
return
}
// //
if (!isAsn) { if (!isAsn) {
result.label.lookNumber = result.package.number.substring(result.package.number result.label.lookNumber = result.package.number.substring(result.package.number
.length - 5); .length - 5);
// asn // asn
if (!asnObj) { if (!asnObj) {
this.$refs.comMessage.showQuestionMessage(`ASN单号【${asnNumber}】不在列表中,是否要按此ASN收货?`, async res => { this.$refs.comMessage.showQuestionMessage(`ASN单号【${asnNumber}】不在列表中,是否要按此ASN收货?`, async res => {

Loading…
Cancel
Save