出库优化

This commit is contained in:
bb_pan 2025-09-06 19:21:07 +08:00
parent f151d168a2
commit f969630687
2 changed files with 17 additions and 3 deletions

View File

@ -498,6 +498,9 @@ const onHandleOutbound = async () => {
//
const boxScan = async () => {
// boxCode.value = 'BOX20250906-009'
// boxOut()
// return
if (maxNum.value == 0) {
uni.showToast({
title: '待出库数量已为0',
@ -592,7 +595,7 @@ const boxOut = async () => {
})
}
} else {
uni.showToast({ title: '标准箱未绑定设备!', icon: 'none' })
uni.showToast({ title: res.data.msg, icon: 'none' })
}
} else {
uni.showToast({ title: '扫码识别失败', icon: 'none' })
@ -608,6 +611,13 @@ const boxOutBound = async () => {
})
return
}
if (!boxInfo.value || boxInfo.value.length == 0) {
uni.showToast({
title: '无符合出库条件的设备!',
icon: 'none',
})
return
}
//
const { typeId, parentId, publishTask } = queryParams.value
//
@ -624,7 +634,8 @@ const boxOutBound = async () => {
parentId,
typeId,
publishTask,
code: queryParams.value.code
code: queryParams.value.code,
jiJuType: e.jiJuType
})
})
console.log(paramsList)
@ -660,8 +671,9 @@ const onCodeIdentify = () => {
//
const scanStart = () => {
// qrCodeScan.value = '202401-00006'
// qrCodeScan.value = '202308-00657'
// getMaInfoScan()
// return
if (maxNum.value == 0) {
uni.showToast({
title: '待出库数量已为0',
@ -793,6 +805,7 @@ const confirmCodeOutBound = async () => {
publishTask,
code: queryParams.value.code,
keyId: keyId.value,
jiJuType: codeData.value.jiJuType,
})
const res = await setOutboundNumAPI({ leaseOutDetailsList: paramsList })
console.log('333333333333', res)

View File

@ -203,6 +203,7 @@ export default {
materialName: this.codeData.maName,
typeId: this.codeData.typeId,
outType: 4,
jiJuType: this.codeData.jiJuType,
}
uni.$emit('paramsReceived', params)
uni.navigateBack()