出库优化
This commit is contained in:
parent
ebe80c0417
commit
5605d5a703
|
|
@ -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
|
||||||
// 组装出库参数
|
// 组装出库参数
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue