|
|
@ -191,7 +191,7 @@
|
|
|
|
async scanSuccess(code) {
|
|
|
|
async scanSuccess(code) {
|
|
|
|
// 下面就是写取到结果后的事情
|
|
|
|
// 下面就是写取到结果后的事情
|
|
|
|
this.ruleForm.busNo = code.trim()
|
|
|
|
this.ruleForm.busNo = code.trim()
|
|
|
|
this.handleContainerNoChange(false)
|
|
|
|
this.handleContainerNoChange(true)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getScanData() {
|
|
|
|
getScanData() {
|
|
|
|
uni.scanCode({
|
|
|
|
uni.scanCode({
|
|
|
@ -281,28 +281,39 @@
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
submitData() {
|
|
|
|
submitData() {
|
|
|
|
if (this.unVerifyList.length) {
|
|
|
|
// if (this.unVerifyList.length) {
|
|
|
|
this.$refs.uToast.show({
|
|
|
|
// this.$refs.uToast.show({
|
|
|
|
type: 'warning',
|
|
|
|
// type: 'warning',
|
|
|
|
message: "请监装完所有订单号",
|
|
|
|
// message: "请监装完所有订单号",
|
|
|
|
})
|
|
|
|
// })
|
|
|
|
return
|
|
|
|
// return
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
this.ruleForm.isSubmit = true
|
|
|
|
this.ruleForm.isSubmit = true
|
|
|
|
Api.storge.verify(this.ruleForm).then(res => {
|
|
|
|
Api.storge.verify(this.ruleForm).then(res => {
|
|
|
|
if (res?.data?.outStatus == "1") {
|
|
|
|
if (res?.data?.outStatus == "1") {
|
|
|
|
uni.navigateTo({
|
|
|
|
uni.navigateTo({
|
|
|
|
url: `/pages/outBound/superviseLoadingImg?id=${this.orderNoForm.outId}`
|
|
|
|
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 || '提交失败,请重试。',
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|