diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue index 4b23bcd71..33a6e4fe7 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue @@ -363,7 +363,10 @@ const submitForm = async (formType, submitData) => { if(item['allowOverShipment']!='TRUE'){ let qtyDefault = item['planQty'] - item['shippedQty'] if(item['qty']>qtyDefault){ - itemCodes.push(item['itemCode']) + itemCodes.push({ + itemCode:item['itemCode'], + poLine:item['poLine'] + }) } if(!itemCodeSum.includes(item['itemCode'])){ @@ -379,7 +382,11 @@ const submitForm = async (formType, submitData) => { } }) if(itemCodes.length>0){ - message.error(`${itemCodes.join(',')}${t('ts.不允许超发')}`) + let str = '' + itemCodes.forEach(cur => { + str += `【物料号${cur.itemCode}-订单行${cur.poLine}】` + }) + message.error(`${str}${t('ts.不允许超发')}`) return } if (itemCodeSum.length > 0) { @@ -436,7 +443,7 @@ const inputNumberChange = (field, val,row, index) => { if(row['allowOverShipment']!='TRUE'){ let qtyDefault = row['planQty'] - row['shippedQty'] if (row['qty'] > qtyDefault) { - message.error(`${row['itemCode']}${t('ts.不允许超发')}`) + message.error(`【物料号${row['itemCode']}-订单行${row['poLine']}】${t('ts.不允许超发')}`) } let planQty = row['planQty'] //计划数量 let sumQty = tableData.value.filter(item1=>item1['itemCode']==row['itemCode'] && item1['poLine']==row['poLine'] ).reduce((prev, item1) => prev + item1['qty'],0)