diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue index be163d754..dd8a09be9 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue @@ -585,6 +585,21 @@ const basicFormRef = ref() const openForm = (type: string, row?: any) => { tableData.value = [] basicFormRef.value.open(type, row) + if(type == "update"){ + RelegateRequestMain.allSchemas.formSchema.forEach((item) => { + if (item.field == 'fromWarehouseCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + }else { + RelegateRequestMain.allSchemas.formSchema.forEach((item) => { + if (item.field == 'fromWarehouseCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + }) + } } //为true表示子表数据中存在数量为0的数据 const flag = ref(false) diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts index d81c7bbf4..87eac216d 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts @@ -573,7 +573,7 @@ export const RelegateRequestDetail = useCrudSchemas(reactive([ { key: 'itemCode', value: 'downItemCode', - message: "请选择降级物料代码", + message: "请选择物料变更代码", isMainValue: true } ]