diff --git a/src/views/stockIn/deliveryStockIn/index.vue b/src/views/stockIn/deliveryStockIn/index.vue index ad36f0e..9cd3559 100644 --- a/src/views/stockIn/deliveryStockIn/index.vue +++ b/src/views/stockIn/deliveryStockIn/index.vue @@ -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',