Browse Source

基础数据编辑时设置只读字段

master
chenfang 8 months ago
parent
commit
b8c66a4c63
  1. 20
      src/views/wms/basicDataManage/customerManage/customer/index.vue
  2. 24
      src/views/wms/basicDataManage/customerManage/customerdock/index.vue
  3. 23
      src/views/wms/basicDataManage/customerManage/customeritem/index.vue
  4. 21
      src/views/wms/basicDataManage/customerManage/project/index.vue
  5. 23
      src/views/wms/basicDataManage/customerManage/saleprice/index.vue
  6. 22
      src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue
  7. 14
      src/views/wms/basicDataManage/factoryModeling/dock/index.vue
  8. 19
      src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue
  9. 38
      src/views/wms/basicDataManage/factoryModeling/location/index.vue
  10. 22
      src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue
  11. 30
      src/views/wms/basicDataManage/factoryModeling/process/index.vue
  12. 22
      src/views/wms/basicDataManage/factoryModeling/productionline/index.vue
  13. 13
      src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue
  14. 14
      src/views/wms/basicDataManage/factoryModeling/workshop/index.vue
  15. 30
      src/views/wms/basicDataManage/factoryModeling/workstation/index.vue
  16. 25
      src/views/wms/basicDataManage/itemManage/bom/index.vue
  17. 13
      src/views/wms/basicDataManage/itemManage/itembasic/index.vue
  18. 15
      src/views/wms/basicDataManage/itemManage/itempackaging/index.vue
  19. 24
      src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue
  20. 16
      src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue
  21. 13
      src/views/wms/basicDataManage/labelManage/barcode/index.vue
  22. 13
      src/views/wms/basicDataManage/labelManage/labeltype/index.vue
  23. 19
      src/views/wms/basicDataManage/orderManage/carrier/index.vue
  24. 19
      src/views/wms/basicDataManage/orderManage/owner/index.vue
  25. 13
      src/views/wms/basicDataManage/orderManage/shift/index.vue
  26. 13
      src/views/wms/basicDataManage/orderManage/team/index.vue
  27. 24
      src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue
  28. 24
      src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

20
src/views/wms/basicDataManage/customerManage/customer/index.vue

@ -149,6 +149,26 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

24
src/views/wms/basicDataManage/customerManage/customerdock/index.vue

@ -148,6 +148,30 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

23
src/views/wms/basicDataManage/customerManage/customeritem/index.vue

@ -150,6 +150,29 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

21
src/views/wms/basicDataManage/customerManage/project/index.vue

@ -148,6 +148,27 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

23
src/views/wms/basicDataManage/customerManage/saleprice/index.vue

@ -148,6 +148,29 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

22
src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue

@ -148,6 +148,28 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

14
src/views/wms/basicDataManage/factoryModeling/dock/index.vue

@ -148,6 +148,20 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

19
src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue

@ -151,6 +151,25 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm =async (type: string, row?: number) => { 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) basicFormRef.value.open(type, row)
} }

38
src/views/wms/basicDataManage/factoryModeling/location/index.vue

@ -149,6 +149,44 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

22
src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue

@ -148,6 +148,28 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

30
src/views/wms/basicDataManage/factoryModeling/process/index.vue

@ -148,6 +148,36 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

22
src/views/wms/basicDataManage/factoryModeling/productionline/index.vue

@ -149,6 +149,28 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

13
src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue

@ -147,6 +147,19 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

14
src/views/wms/basicDataManage/factoryModeling/workshop/index.vue

@ -147,6 +147,20 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

30
src/views/wms/basicDataManage/factoryModeling/workstation/index.vue

@ -149,6 +149,36 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

25
src/views/wms/basicDataManage/itemManage/bom/index.vue

@ -149,8 +149,31 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row) 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 // form

13
src/views/wms/basicDataManage/itemManage/itembasic/index.vue

@ -195,6 +195,19 @@ const importSuccess = () => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, id?: number) => { 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) basicFormRef.value.open(type, id)
} }

15
src/views/wms/basicDataManage/itemManage/itempackaging/index.vue

@ -166,6 +166,21 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }
const formsSuccess = async (formType, data) => { const formsSuccess = async (formType, data) => {

24
src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue

@ -149,6 +149,30 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

16
src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue

@ -149,6 +149,22 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

13
src/views/wms/basicDataManage/labelManage/barcode/index.vue

@ -149,6 +149,19 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

13
src/views/wms/basicDataManage/labelManage/labeltype/index.vue

@ -152,6 +152,19 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

19
src/views/wms/basicDataManage/orderManage/carrier/index.vue

@ -147,6 +147,25 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

19
src/views/wms/basicDataManage/orderManage/owner/index.vue

@ -147,6 +147,25 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

13
src/views/wms/basicDataManage/orderManage/shift/index.vue

@ -147,6 +147,19 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

13
src/views/wms/basicDataManage/orderManage/team/index.vue

@ -147,6 +147,19 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

24
src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue

@ -149,6 +149,30 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

24
src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

@ -148,6 +148,30 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

Loading…
Cancel
Save