From 3abc51f46e99576d55fa77bae4d97d17a46053b3 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Mon, 21 Oct 2024 16:42:50 +0800 Subject: [PATCH] HL-6307 --- .../saleShipmentMainRequest/index.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue b/src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue index f62134b2b..73f4e3237 100644 --- a/src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue +++ b/src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue @@ -131,6 +131,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => newRow['projectCode'] = item['projectCode'] newRow['uom'] = item['uom'] newRow['subSettleQty'] = item['subSettleQty'] + newRow['ship'] = item['ship'] tableData.value.push(newRow) }) @@ -386,10 +387,14 @@ const submitForm = async (formType, submitData) => { try { if (formType === 'create') { if(tableData.value.length <= 0){ - message.warning(`子表明细不能为空!`) - basicFormRef.value.formLoading = false - return; - } + message.warning(`子表明细不能为空!`) + basicFormRef.value.formLoading = false + return; + } + if(tableData.value.find(item=>item['ship']!=tableData.value[0]['ship'])){ + message.warning(`相同客户代码不同发货至地点不允许混合创建,请单独创建`) + return + } await SaleShipmentMainApi.createSaleShipmentMain(data) message.success(t('common.createSuccess')) } else {