出库优化

This commit is contained in:
bb_pan 2025-09-03 14:55:37 +08:00
parent ebe80c0417
commit 5605d5a703
1 changed files with 23 additions and 0 deletions

View File

@ -423,6 +423,13 @@ const onHandleOutbound = async () => {
}) })
return return
} }
if (maxNum.value == 0) {
uni.showToast({
title: '待出库数量已为0',
icon: 'none',
})
return
}
uni.showLoading() uni.showLoading()
loading.value = true loading.value = true
// //
@ -576,6 +583,13 @@ const boxOut = async () => {
} }
// //
const boxOutBound = async () => { const boxOutBound = async () => {
if (maxNum.value == 0) {
uni.showToast({
title: '待出库数量已为0',
icon: 'none',
})
return
}
// //
const { typeId, parentId, publishTask } = queryParams.value const { typeId, parentId, publishTask } = queryParams.value
// //
@ -617,6 +631,7 @@ const onCodeIdentify = () => {
title: '待出库数量已为0', title: '待出库数量已为0',
icon: 'none', icon: 'none',
}) })
return
} else { } else {
uni.navigateTo({ uni.navigateTo({
url: `/pages/picking/outbound/codeOutScan?params=${JSON.stringify(queryParams.value)}`, url: `/pages/picking/outbound/codeOutScan?params=${JSON.stringify(queryParams.value)}`,
@ -633,6 +648,7 @@ const scanStart = () => {
title: '待出库数量已为0', title: '待出库数量已为0',
icon: 'none', icon: 'none',
}) })
return
} else { } else {
// var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module") // var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
// mpaasScanModule.mpaasScan({ // mpaasScanModule.mpaasScan({
@ -729,6 +745,13 @@ const getMaInfoScan = async () => {
} }
// //
const confirmCodeOutBound = async () => { const confirmCodeOutBound = async () => {
if (maxNum.value == 0) {
uni.showToast({
title: '待出库数量已为0',
icon: 'none',
})
return
}
// //
const { typeId, parentId, publishTask } = queryParams.value const { typeId, parentId, publishTask } = queryParams.value
// //