From e283ac639b51e87a2824b343edd5c534a9c7a05c Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Thu, 19 Sep 2024 15:43:10 +0800 Subject: [PATCH] =?UTF-8?q?HL-5786@=E7=8E=8B=E5=AE=87=E9=A3=9E=20=20?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E7=94=9F=E4=BA=A7=E7=BA=BF=E4=B8=8D=E8=AE=A9?= =?UTF-8?q?=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionscrapRequestMain/index.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue b/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue index 67f81a140..36fd39b4f 100644 --- a/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue +++ b/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue @@ -560,6 +560,13 @@ const openForm =async (type: string, row?: number) => { if (type == 'update') { // 修改 tableform 属性 ProductionscrapRequestMain.allSchemas.formSchema.map(itemColumns => { + if(itemColumns.field == 'productionLineCode') { + //生产线不让编辑 + itemColumns.componentProps.disabled = true + itemColumns.componentProps.isSearchList = false + itemColumns.componentProps.enterSearch = false + + } if(itemColumns.field == 'workshopCode') { itemColumns.componentProps.isSearchList = false itemColumns.componentProps.disabled = true @@ -568,6 +575,13 @@ const openForm =async (type: string, row?: number) => { } else { // 修改 tableform 属性 ProductionscrapRequestMain.allSchemas.formSchema.map(itemColumns => { + if(itemColumns.field == 'productionLineCode') { + //生产线不让编辑 + itemColumns.componentProps.disabled = false + itemColumns.componentProps.isSearchList = true + itemColumns.componentProps.enterSearch = true + + } if(itemColumns.field == 'workshopCode') { itemColumns.componentProps.isSearchList = true itemColumns.componentProps.disabled = false