From e9b53bdcb49dde0a0e0bd333e4be60d66a408450 Mon Sep 17 00:00:00 2001 From: gaojs <757918719@qq.com> Date: Wed, 10 Jul 2024 09:59:20 +0800 Subject: [PATCH] =?UTF-8?q?WMS=20=E2=80=94=E2=80=94>=20bug=20=20=E7=89=A9?= =?UTF-8?q?=E6=96=99=E5=8C=85=E8=A3=85=E4=BF=A1=E6=81=AF=20=E5=8C=85?= =?UTF-8?q?=E8=A3=85=E7=B1=BB=E5=9E=8B=E5=BA=94=E8=AF=A5=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=B8=A6=E5=87=BA=E4=B8=94=E4=B8=8D=E5=8F=AF=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itemManage/itempackage/index.vue | 43 +++++++++++-------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/src/views/wms/basicDataManage/itemManage/itempackage/index.vue b/src/views/wms/basicDataManage/itemManage/itempackage/index.vue index 4f25372ad..a0c999b69 100644 --- a/src/views/wms/basicDataManage/itemManage/itempackage/index.vue +++ b/src/views/wms/basicDataManage/itemManage/itempackage/index.vue @@ -173,25 +173,31 @@ const basicFormRef = ref() const openForm = (type: string, row?: any) => { if(type == "update"){ Itempackaging.allSchemas.formSchema.forEach((item) => { - if (item.field == 'itemCode') { - item.componentProps.disabled = true - item.componentProps.isSearchList = false - } - if (item.field == 'packUnit') { - item.componentProps.disabled = true - item.componentProps.isSearchList = false - } - }) + if (item.field == 'itemCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + if (item.field == 'packUnit') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + if (item.field == 'packType') { + item.componentProps.disabled = false + } + }) }else { Itempackaging.allSchemas.formSchema.forEach((item) => { - if (item.field == 'itemCode') { - item.componentProps.disabled = false - item.componentProps.isSearchList = true - } - if (item.field == 'packUnit') { - item.componentProps.disabled = false - item.componentProps.isSearchList = true - } + if (item.field == 'itemCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + if (item.field == 'packUnit') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + if (item.field == 'packType') { + item.componentProps.disabled = true + } }) } basicFormRef.value.open(type, row) @@ -261,6 +267,9 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { if('itemCode'==formField){ setV['uom'] = val[0]['uom'] } + if('packUnit'==formField){ + setV['packType'] = val[0]['type'] + } formRef.setValues(setV) }) }