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",
action: "in",
value: '1,2',
}, {
column: "accept_user_id",
action: "==",
value: this.$store.state.user.id
}]
}
// , {
// column: "accept_user_id",
// action: "==",
// value: this.$store.state.user.id
// },
]
getPurchaseReceiptASNJobList({
filters: filters,
pageNo: 1,
@ -156,10 +158,15 @@
if (resultList.length > 0) {
// asn
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) {
result.label.lookNumber = result.package.number.substring(result.package.number
.length - 5);
// asn
if (!asnObj) {
this.$refs.comMessage.showQuestionMessage(`ASN单号【${asnNumber}】不在列表中,是否要按此ASN收货?`, async res => {

Loading…
Cancel
Save