update 到货单,点击入库按钮校验本次创建数量是否等于订单数量

This commit is contained in:
18110972313 2025-05-22 11:49:56 +08:00
parent c50b2ee646
commit 472cc135a1

View File

@ -727,6 +727,24 @@ async function sendToERP() {
state.button_loading = false
return
}
//
if (state.MATERIALRECEIVEACT == null || state.MATERIALRECEIVEACT.length < 1) {
ElMessageBox.alert('入库单详细信息不能为空', {
confirmButtonText: 'OK'
})
}else{
for (const element of state.MATERIALRECEIVEACT) {
if ( element.CREATEQTY !== element.REQUESTQUANTITY) {
ElMessageBox.alert('创建数量需等于订单数量', {
confirmButtonText: 'OK'
})
state.loadings = false
state.button_state = false
state.button_loading = false
return
}
}
}
DeliveryStockInSendSAP({
// materialreceiveAct: state.MATERIALPACKINGLIST[0],
siteName: 'SDK',