From 48eec12f6081644249a5c43cced048cf68d9616e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Fri, 19 Jan 2024 11:14:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E6=96=99=E8=AE=A1=E5=88=92=20?= =?UTF-8?q?=E4=B8=BB=E8=A1=A8=E7=BC=96=E8=BE=91=20=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../preparetoissueMain/index.vue | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue index 50fadfb8a..a69fbcd1c 100644 --- a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue +++ b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue @@ -314,6 +314,33 @@ const buttonTableClick = async (val, row) => { const formRef = ref() const openForm =async (type: string, row?: number) => { tableData.value = [] // 重置明细数据 + if (type == 'update') { + // 修改 tableform 属性 + PreparetoissueMain.allSchemas.formSchema.map(item => { + if(item.field == 'productionPlanNumber' || + item.field == 'workshop' || + item.field == 'prodLine' || + item.field == 'shift' || + item.field == 'team' + ){ + item.componentProps.isSearchList = false + item.componentProps.disabled = true + } + }) + } else { + // 修改 tableform 属性 + PreparetoissueMain.allSchemas.formSchema.map(item => { + if(item.field == 'productionPlanNumber' || + item.field == 'workshop' || + item.field == 'prodLine' || + item.field == 'shift' || + item.field == 'team' + ){ + item.componentProps.isSearchList = true + item.componentProps.disabled = false + } + }) + } formRef.value.open(type, row) }