|
|
|
@ -191,7 +191,7 @@
|
|
|
|
|
async scanSuccess(code) {
|
|
|
|
|
// 下面就是写取到结果后的事情
|
|
|
|
|
this.ruleForm.busNo = code.trim()
|
|
|
|
|
this.handleContainerNoChange(false)
|
|
|
|
|
this.handleContainerNoChange(true)
|
|
|
|
|
},
|
|
|
|
|
getScanData() {
|
|
|
|
|
uni.scanCode({
|
|
|
|
@ -281,28 +281,39 @@
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
submitData() {
|
|
|
|
|
if (this.unVerifyList.length) {
|
|
|
|
|
this.$refs.uToast.show({
|
|
|
|
|
type: 'warning',
|
|
|
|
|
message: "请监装完所有订单号",
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
// if (this.unVerifyList.length) {
|
|
|
|
|
// this.$refs.uToast.show({
|
|
|
|
|
// type: 'warning',
|
|
|
|
|
// message: "请监装完所有订单号",
|
|
|
|
|
// })
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
this.ruleForm.isSubmit = true
|
|
|
|
|
Api.storge.verify(this.ruleForm).then(res => {
|
|
|
|
|
if (res?.data?.outStatus == "1") {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: `/pages/outBound/superviseLoadingImg?id=${this.orderNoForm.outId}`
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
Object.assign(this.orderNoForm, res.data)
|
|
|
|
|
this.ruleForm.orderNos = []
|
|
|
|
|
this.unVerifyList = res?.data?.unVerify || []
|
|
|
|
|
if (res?.data?.verifyed && Array.isArray(res?.data?.verifyed)) {
|
|
|
|
|
this.tabList[1].badge.value = res?.data?.verifyed.length
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
// Object.assign(this.orderNoForm, res.data)
|
|
|
|
|
// this.ruleForm.orderNos = []
|
|
|
|
|
// this.unVerifyList = res?.data?.unVerify || []
|
|
|
|
|
// if (res?.data?.verifyed && Array.isArray(res?.data?.verifyed)) {
|
|
|
|
|
// this.tabList[1].badge.value = res?.data?.verifyed.length
|
|
|
|
|
// }
|
|
|
|
|
this.$refs.uToast.show({
|
|
|
|
|
type: 'warning',
|
|
|
|
|
message: "请监装完所有订单号",
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}) .catch(err => {
|
|
|
|
|
// Display an error message using the toast component if the API call fails
|
|
|
|
|
this.$refs.uToast.show({
|
|
|
|
|
type: 'error',
|
|
|
|
|
message: err.message || '提交失败,请重试。',
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|