Browse Source

退料主表编辑 禁止修改车间代码

master
陈薪名 10 months ago
parent
commit
076c27f353
  1. 18
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  2. 18
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

18
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -456,6 +456,24 @@ const buttonTableClick = async (val, row) => {
const formRef = ref()
const openForm =async (type: string, row?: number) => {
tableData.value = [] //
//
if (type == 'update') {
// tableform
ProductionreturnRequestMain.allSchemas.formSchema.map(itemColumns => {
if(itemColumns.field == 'workshopCode') {
itemColumns.componentProps.isSearchList = false
itemColumns.componentProps.disabled = true
}
})
} else {
// tableform
ProductionreturnRequestMain.allSchemas.formSchema.map(itemColumns => {
if(itemColumns.field == 'workshopCode') {
itemColumns.componentProps.isSearchList = true
itemColumns.componentProps.disabled = false
}
})
}
formRef.value.open(type, row)
}

18
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

@ -462,6 +462,24 @@ const buttonTableClick = async (val, row) => {
const formRef = ref()
const openForm =async (type: string, row?: number) => {
tableData.value = [] //
//
if (type == 'update') {
// tableform
ProductionreturnRequestMain.allSchemas.formSchema.map(itemColumns => {
if(itemColumns.field == 'workshopCode') {
itemColumns.componentProps.isSearchList = false
itemColumns.componentProps.disabled = true
}
})
} else {
// tableform
ProductionreturnRequestMain.allSchemas.formSchema.map(itemColumns => {
if(itemColumns.field == 'workshopCode') {
itemColumns.componentProps.isSearchList = true
itemColumns.componentProps.disabled = false
}
})
}
formRef.value.open(type, row)
}

Loading…
Cancel
Save