diff --git a/src/views/wms/basicDataManage/customerManage/customer/index.vue b/src/views/wms/basicDataManage/customerManage/customer/index.vue index 060bf3cbe..b955c988d 100644 --- a/src/views/wms/basicDataManage/customerManage/customer/index.vue +++ b/src/views/wms/basicDataManage/customerManage/customer/index.vue @@ -149,6 +149,26 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Customer.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + if (item.field == 'shortName') { + item.componentProps.disabled = true + } + }) + + }else { + Customer.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + if (item.field == 'shortName') { + item.componentProps.disabled = false + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/customerManage/customerdock/index.vue b/src/views/wms/basicDataManage/customerManage/customerdock/index.vue index 80495f79b..efbb7f07b 100644 --- a/src/views/wms/basicDataManage/customerManage/customerdock/index.vue +++ b/src/views/wms/basicDataManage/customerManage/customerdock/index.vue @@ -148,6 +148,30 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Customerdock.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + if (item.field == 'customerCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + + }else { + Customerdock.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + if (item.field == 'customerCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/customerManage/customeritem/index.vue b/src/views/wms/basicDataManage/customerManage/customeritem/index.vue index d9264f058..b34ab2398 100644 --- a/src/views/wms/basicDataManage/customerManage/customeritem/index.vue +++ b/src/views/wms/basicDataManage/customerManage/customeritem/index.vue @@ -150,6 +150,29 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Customeritem.allSchemas.formSchema.forEach((item) => { + if (item.field == 'customerCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + if (item.field == 'itemCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + }else { + Customeritem.allSchemas.formSchema.forEach((item) => { + if (item.field == 'customerCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + if (item.field == 'itemCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/customerManage/project/index.vue b/src/views/wms/basicDataManage/customerManage/project/index.vue index e1d26bb0f..196fe3fb9 100644 --- a/src/views/wms/basicDataManage/customerManage/project/index.vue +++ b/src/views/wms/basicDataManage/customerManage/project/index.vue @@ -148,6 +148,27 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Project.allSchemas.formSchema.forEach((item) => { + if (item.field == 'customerCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + if (item.field == 'code') { + item.componentProps.disabled = TransferissueJobMain + } + }) + }else { + Project.allSchemas.formSchema.forEach((item) => { + if (item.field == 'customerCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + if (item.field == 'code') { + item.componentProps.disabled = false + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/customerManage/saleprice/index.vue b/src/views/wms/basicDataManage/customerManage/saleprice/index.vue index 7b6dba62c..70670b7ae 100644 --- a/src/views/wms/basicDataManage/customerManage/saleprice/index.vue +++ b/src/views/wms/basicDataManage/customerManage/saleprice/index.vue @@ -148,6 +148,29 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Saleprice.allSchemas.formSchema.forEach((item) => { + if (item.field == 'customerCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + if (item.field == 'itemCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + }else { + Saleprice.allSchemas.formSchema.forEach((item) => { + if (item.field == 'customerCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + if (item.field == 'itemCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue b/src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue index 87ad849ab..146392aff 100644 --- a/src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue @@ -148,6 +148,28 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Area.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + if (item.field == 'warehouseCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + + }else { + Area.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + if (item.field == 'warehouseCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/factoryModeling/dock/index.vue b/src/views/wms/basicDataManage/factoryModeling/dock/index.vue index d7f0c5785..d8fc830ec 100644 --- a/src/views/wms/basicDataManage/factoryModeling/dock/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/dock/index.vue @@ -148,6 +148,20 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Dock.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + }) + + }else { + Dock.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue b/src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue index a04ddac31..2567a8018 100644 --- a/src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue @@ -151,6 +151,25 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm =async (type: string, row?: number) => { + if(type == "update"){ + Enterprise.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + if (item.field == 'shortName') { + item.componentProps.disabled = true + } + }) + }else { + Enterprise.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + if (item.field == 'shortName') { + item.componentProps.disabled = false + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/factoryModeling/location/index.vue b/src/views/wms/basicDataManage/factoryModeling/location/index.vue index c72d942a0..1b55e1bbf 100644 --- a/src/views/wms/basicDataManage/factoryModeling/location/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/location/index.vue @@ -149,6 +149,44 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Location.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + if (item.field == 'warehouseCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + if (item.field == 'areaCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + if (item.field == 'locationGroupCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + + }else { + Location.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + if (item.field == 'warehouseCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + if (item.field == 'areaCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + if (item.field == 'locationGroupCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue b/src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue index 3dbc2ea5b..cd7cb0667 100644 --- a/src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue @@ -148,6 +148,28 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Locationgroup.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + if (item.field == 'warehouseCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + + }else { + Locationgroup.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + if (item.field == 'warehouseCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/factoryModeling/process/index.vue b/src/views/wms/basicDataManage/factoryModeling/process/index.vue index c30cf00a8..f98b88837 100644 --- a/src/views/wms/basicDataManage/factoryModeling/process/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/process/index.vue @@ -148,6 +148,36 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Process.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + if (item.field == 'workshopCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + if (item.field == 'productionLineCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + + }else { + Process.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + if (item.field == 'workshopCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + if (item.field == 'productionLineCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/factoryModeling/productionline/index.vue b/src/views/wms/basicDataManage/factoryModeling/productionline/index.vue index 98558cf6d..3f895df9e 100644 --- a/src/views/wms/basicDataManage/factoryModeling/productionline/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/productionline/index.vue @@ -149,6 +149,28 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Productionline.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + if (item.field == 'workshopCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + + }else { + Productionline.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + if (item.field == 'workshopCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue b/src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue index 8330303cb..1986c81ab 100644 --- a/src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue @@ -147,6 +147,19 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Warehouse.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + }) + }else { + Warehouse.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/factoryModeling/workshop/index.vue b/src/views/wms/basicDataManage/factoryModeling/workshop/index.vue index d4c87e800..3ad008ccb 100644 --- a/src/views/wms/basicDataManage/factoryModeling/workshop/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/workshop/index.vue @@ -147,6 +147,20 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Workshop.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + }) + + }else { + Workshop.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/factoryModeling/workstation/index.vue b/src/views/wms/basicDataManage/factoryModeling/workstation/index.vue index 01acc77af..0be18cf35 100644 --- a/src/views/wms/basicDataManage/factoryModeling/workstation/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/workstation/index.vue @@ -149,6 +149,36 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Workstation.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + if (item.field == 'workshopCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + if (item.field == 'productionLineCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + + }else { + Workstation.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + if (item.field == 'workshopCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + if (item.field == 'productionLineCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/itemManage/bom/index.vue b/src/views/wms/basicDataManage/itemManage/bom/index.vue index 7be15a338..f0db0a426 100644 --- a/src/views/wms/basicDataManage/itemManage/bom/index.vue +++ b/src/views/wms/basicDataManage/itemManage/bom/index.vue @@ -149,8 +149,31 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Bom.allSchemas.formSchema.forEach((item) => { + if (item.field == 'productItemCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + if (item.field == 'componentItemCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + + }else { + Bom.allSchemas.formSchema.forEach((item) => { + if (item.field == 'productItemCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + if (item.field == 'componentItemCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + }) + } basicFormRef.value.open(type, row) - } // form表单提交 diff --git a/src/views/wms/basicDataManage/itemManage/itembasic/index.vue b/src/views/wms/basicDataManage/itemManage/itembasic/index.vue index ed3ec63cd..2810c290b 100644 --- a/src/views/wms/basicDataManage/itemManage/itembasic/index.vue +++ b/src/views/wms/basicDataManage/itemManage/itembasic/index.vue @@ -195,6 +195,19 @@ const importSuccess = () => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, id?: number) => { + if(type == "update"){ + Itembasic.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + }) + }else { + Itembasic.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + }) + } basicFormRef.value.open(type, id) } diff --git a/src/views/wms/basicDataManage/itemManage/itempackaging/index.vue b/src/views/wms/basicDataManage/itemManage/itempackaging/index.vue index 93b6b525d..1119d950c 100644 --- a/src/views/wms/basicDataManage/itemManage/itempackaging/index.vue +++ b/src/views/wms/basicDataManage/itemManage/itempackaging/index.vue @@ -166,6 +166,21 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Itempackaging.allSchemas.formSchema.forEach((item) => { + if (item.field == 'itemCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + }else { + Itempackaging.allSchemas.formSchema.forEach((item) => { + if (item.field == 'itemCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + }) + } basicFormRef.value.open(type, row) } const formsSuccess = async (formType, data) => { diff --git a/src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue b/src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue index e7cf5e405..e56f44ef0 100644 --- a/src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue +++ b/src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue @@ -149,6 +149,30 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Productionlineitem.allSchemas.formSchema.forEach((item) => { + if (item.field == 'productionLineCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + if (item.field == 'itemCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + + }else { + Productionlineitem.allSchemas.formSchema.forEach((item) => { + if (item.field == 'productionLineCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + if (item.field == 'itemCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue b/src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue index b23f13086..3649edc77 100644 --- a/src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue +++ b/src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue @@ -149,6 +149,22 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Stdcostprice.allSchemas.formSchema.forEach((item) => { + if (item.field == 'itemCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + + }else { + Stdcostprice.allSchemas.formSchema.forEach((item) => { + if (item.field == 'itemCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/labelManage/barcode/index.vue b/src/views/wms/basicDataManage/labelManage/barcode/index.vue index 0f68c6b3d..b9b9d5093 100644 --- a/src/views/wms/basicDataManage/labelManage/barcode/index.vue +++ b/src/views/wms/basicDataManage/labelManage/barcode/index.vue @@ -149,6 +149,19 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Barcode.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + }) + }else { + Barcode.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/labelManage/labeltype/index.vue b/src/views/wms/basicDataManage/labelManage/labeltype/index.vue index a13addbe3..eb3974a17 100644 --- a/src/views/wms/basicDataManage/labelManage/labeltype/index.vue +++ b/src/views/wms/basicDataManage/labelManage/labeltype/index.vue @@ -152,6 +152,19 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Labeltype.allSchemas.formSchema.forEach((item) => { + if (item.field == 'labelCode') { + item.componentProps.disabled = true + } + }) + }else { + Labeltype.allSchemas.formSchema.forEach((item) => { + if (item.field == 'labelCode') { + item.componentProps.disabled = false + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/orderManage/carrier/index.vue b/src/views/wms/basicDataManage/orderManage/carrier/index.vue index 20c849715..06eda0a91 100644 --- a/src/views/wms/basicDataManage/orderManage/carrier/index.vue +++ b/src/views/wms/basicDataManage/orderManage/carrier/index.vue @@ -147,6 +147,25 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Carrier.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + if (item.field == 'shortName') { + item.componentProps.disabled = true + } + }) + }else { + Carrier.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + if (item.field == 'shortName') { + item.componentProps.disabled = false + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/orderManage/owner/index.vue b/src/views/wms/basicDataManage/orderManage/owner/index.vue index c2ad2a414..9fd790f1d 100644 --- a/src/views/wms/basicDataManage/orderManage/owner/index.vue +++ b/src/views/wms/basicDataManage/orderManage/owner/index.vue @@ -147,6 +147,25 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Owner.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + if (item.field == 'shortName') { + item.componentProps.disabled = true + } + }) + }else { + Owner.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + if (item.field == 'shortName') { + item.componentProps.disabled = false + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/orderManage/shift/index.vue b/src/views/wms/basicDataManage/orderManage/shift/index.vue index 7385405ba..5c7ecbeb1 100644 --- a/src/views/wms/basicDataManage/orderManage/shift/index.vue +++ b/src/views/wms/basicDataManage/orderManage/shift/index.vue @@ -147,6 +147,19 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Shift.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + }) + }else { + Shift.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/orderManage/team/index.vue b/src/views/wms/basicDataManage/orderManage/team/index.vue index 1820741e3..6543ab854 100644 --- a/src/views/wms/basicDataManage/orderManage/team/index.vue +++ b/src/views/wms/basicDataManage/orderManage/team/index.vue @@ -147,6 +147,19 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Team.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + }) + }else { + Team.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue b/src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue index 3f9026349..0e8828cae 100644 --- a/src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue +++ b/src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue @@ -149,6 +149,30 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Purchaseprice.allSchemas.formSchema.forEach((item) => { + if (item.field == 'supplierCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + if (item.field == 'itemCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + + }else { + Purchaseprice.allSchemas.formSchema.forEach((item) => { + if (item.field == 'supplierCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + if (item.field == 'itemCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue b/src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue index b833b8a5c..bc789431a 100644 --- a/src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue +++ b/src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue @@ -148,6 +148,30 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Supplieritem.allSchemas.formSchema.forEach((item) => { + if (item.field == 'supplierCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + if (item.field == 'itemCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + + }else { + Supplieritem.allSchemas.formSchema.forEach((item) => { + if (item.field == 'supplierCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + if (item.field == 'itemCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + }) + } basicFormRef.value.open(type, row) }