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) }