Browse Source

备料计划 主表编辑 禁用字段

master
陈薪名 10 months ago
parent
commit
48eec12f60
  1. 27
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

27
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -314,6 +314,33 @@ const buttonTableClick = async (val, row) => {
const formRef = ref() const formRef = ref()
const openForm =async (type: string, row?: number) => { const openForm =async (type: string, row?: number) => {
tableData.value = [] // tableData.value = [] //
if (type == 'update') {
// tableform
PreparetoissueMain.allSchemas.formSchema.map(item => {
if(item.field == 'productionPlanNumber' ||
item.field == 'workshop' ||
item.field == 'prodLine' ||
item.field == 'shift' ||
item.field == 'team'
){
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
})
} else {
// tableform
PreparetoissueMain.allSchemas.formSchema.map(item => {
if(item.field == 'productionPlanNumber' ||
item.field == 'workshop' ||
item.field == 'prodLine' ||
item.field == 'shift' ||
item.field == 'team'
){
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
})
}
formRef.value.open(type, row) formRef.value.open(type, row)
} }

Loading…
Cancel
Save