update 到货单,点击入库按钮校验本次创建数量是否等于订单数量
This commit is contained in:
parent
c50b2ee646
commit
472cc135a1
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user