数量自动带出

This commit is contained in:
hongchao 2025-06-15 16:42:43 +08:00
parent 988a14ada7
commit fb5fa1086d
1 changed files with 8 additions and 0 deletions

View File

@ -65,6 +65,7 @@ const maxNum = computed(() => {
onLoad((options) => {
queryParams.value = JSON.parse(options.queryParams)
outboundNum.value = queryParams.value.preNum - queryParams.value.alNum
console.log("xxxxxxxxxxxxxx", queryParams.value)
})
@ -99,6 +100,13 @@ const onHandleOutbound = async () => {
})
return
}
if(outboundNum.value > queryParams.storageNum.value) {
uni.showToast({
title: '出库数量不能大于库存数量',
icon: 'none',
})
return
}
//
const { maTypeName, typeName, preNum, alNum, id, typeId, parentId, manageType } =