From 4e4394f9f553e0853f2ff0a606cbb0a2029c3d13 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Wed, 31 Jan 2024 11:08:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E9=97=B4=E4=BB=A3=E7=A0=81=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=8F=AF=E4=BB=A5=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productdismantleRequestMain/index.vue | 17 +++++++++++++++++ .../productrepairRequestMain/index.vue | 16 ++++++++++++++++ .../productscrapRequestMain/index.vue | 16 ++++++++++++++++ 3 files changed, 49 insertions(+) diff --git a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue index ff61c947d..af46695f5 100644 --- a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue +++ b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue @@ -443,6 +443,23 @@ const openForm =async (type: string, row?: number) => { defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), // 保存 defaultButtons.formCloseBtn(null) // 关闭 ] + if(type == 'create'){ + ProductdismantleRequestMain.allSchemas.formSchema.forEach((item) => { + if (item.field == 'workshopCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = true + } + }) + } + if(type == 'update'){ + ProductdismantleRequestMain.allSchemas.formSchema.forEach((item) => { + if (item.field == 'workshopCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + } + formRef.value.open(type, row) } diff --git a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue index ad486d36f..26cf1d36d 100644 --- a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue +++ b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue @@ -455,6 +455,22 @@ const openForm =async (type: string, row?: number) => { defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), // 保存 defaultButtons.formCloseBtn(null) // 关闭 ] + if(type == 'create'){ + ProductrepairRequestMain.allSchemas.formSchema.forEach((item) => { + if (item.field == 'workshopCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = true + } + }) + } + if(type == 'update'){ + ProductrepairRequestMain.allSchemas.formSchema.forEach((item) => { + if (item.field == 'workshopCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + } formRef.value.open(type, row) } diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index dd8fc3e8c..0b984a703 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -464,6 +464,22 @@ const openForm =async (type: string, row?: number) => { defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), // 保存 defaultButtons.formCloseBtn(null) // 关闭 ] + if(type == 'create'){ + ProductscrapRequestMain.allSchemas.formSchema.forEach((item) => { + if (item.field == 'workshopCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = true + } + }) + } + if(type == 'update'){ + ProductscrapRequestMain.allSchemas.formSchema.forEach((item) => { + if (item.field == 'workshopCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + } formRef.value.open(type, row) }