From 8c2db2f559c1e240a9c0d147b1a1a55b97fc5124 Mon Sep 17 00:00:00 2001 From: siontion Date: Mon, 5 Feb 2024 14:58:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=BA=93=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=8C=89=E9=92=AE=E5=8E=BB=E9=99=A4=E7=89=A9?= =?UTF-8?q?=E6=96=99=E4=BF=A1=E6=81=AF=E4=B8=BA=E7=A9=BA=E7=9A=84=E9=AA=8C?= =?UTF-8?q?=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 出库管理 保存按钮去除物料信息为空的验证 --- .../src/views/heli/storage/StorageOut.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageOut.vue b/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageOut.vue index 00fb772a..e4bbf084 100644 --- a/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageOut.vue +++ b/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageOut.vue @@ -518,10 +518,10 @@ const saveFormData = async () => { const submitForm = async () => { // 校验表单 await formRef.value.validate() - if (formData.value.matItemDOList.length === 0) { - message.alertWarning('请添加物料信息!') - return - } + // if (formData.value.matItemDOList.length === 0) { + // message.alertWarning('请添加物料信息!') + // return + // } // 校验子表单 try { await matSubFormRef.value.validate() @@ -687,7 +687,12 @@ const handleMatCode = async (scope, matid) => { scope.row.matType = scope.row.matList.find((item) => item.id === matid)?.materialType scope.row.matUnit = scope.row.matList.find((item) => item.id === matid)?.unit - scope.row.pnlist = pnList.value.filter(pn => pn.wh_id == formData.value.whId && matLastData.value.filter( mat => mat.matId == matid).length>0) + if(matid.length==0){ + scope.row.rgId = '' + scope.row.pnId = '' + } + + scope.row.pnlist = pnList.value.filter(pn => pn.wh_id == formData.value.whId && matLastData.value.filter( mat => mat.matId == matid && mat.pnId == pn.id).length>0) } const matLastData = ref([])