From 61c6309855627077ab402652b1852226edaa9cee Mon Sep 17 00:00:00 2001 From: gaojs <757918719@qq.com> Date: Thu, 11 Jul 2024 16:53:40 +0800 Subject: [PATCH] =?UTF-8?q?WMS=20=E2=80=94=E2=80=94>=20bug=20=20=E5=8C=85?= =?UTF-8?q?=E8=A3=85=E8=A7=84=E6=A0=BC=E4=B8=AD=E9=80=89=E6=8B=A9=E7=88=B6?= =?UTF-8?q?=E5=8C=85=E8=A3=85=E5=90=8E=EF=BC=8C=E5=BA=94=E8=AF=A5=E5=B8=A6?= =?UTF-8?q?=E5=87=BA=E5=8C=85=E8=A3=85=E7=B1=BB=E5=9E=8B=E4=B8=94=E4=B8=8D?= =?UTF-8?q?=E5=8F=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itemManage/packageunit/index.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/views/wms/basicDataManage/itemManage/packageunit/index.vue b/src/views/wms/basicDataManage/itemManage/packageunit/index.vue index 1e2341a23..a648c1948 100644 --- a/src/views/wms/basicDataManage/itemManage/packageunit/index.vue +++ b/src/views/wms/basicDataManage/itemManage/packageunit/index.vue @@ -80,11 +80,10 @@ const tableColumns = ref(Packageunit.allSchemas.tableColumns) // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef) => { nextTick(() => { - // if(val[0].parentCode){ - // message.error('该规格为子包装,请重新选择') - // return - // } const setV = {} + if(formField == 'parentCode'){ + setV['type'] = val[0]['type'] + } setV[formField] = val[0][searchField] formRef.setValues(setV) }) @@ -178,6 +177,9 @@ const openForm = (type: string, row?: any) => { if (item.field == 'manageBalance') { item.componentProps.disabled = true } + if (item.field == 'type') { + item.componentProps.disabled = false + } }) }else { Packageunit.allSchemas.formSchema.forEach((item) => { @@ -190,6 +192,9 @@ const openForm = (type: string, row?: any) => { if (item.field == 'manageBalance') { item.componentProps.disabled = false } + if (item.field == 'type') { + item.componentProps.disabled = true + } }) } basicFormRef.value.open(type, row)