Browse Source

生产计划bug修改

master
zhaoxuebing 11 months ago
parent
commit
1c8d074524
  1. 25
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  2. 2
      src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts

25
src/views/wms/productionManage/productionplan/productionMain/index.vue

@ -280,6 +280,31 @@ 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 == 'create'){
ProductionMain.allSchemas.formSchema.forEach((itemColumn) =>{
if(itemColumn.field == 'workshop'){
itemColumn.componentProps.isSearchList=true
itemColumn.componentProps.disabled=true
}
if(itemColumn.field == 'productionLine'){
itemColumn.componentProps.isSearchList=true
itemColumn.componentProps.disabled=true
}
})
}
if(type == 'update'){
ProductionMain.allSchemas.formSchema.forEach((itemColumn) =>{
if(itemColumn.field == 'workshop'){
itemColumn.componentProps.isSearchList=false
itemColumn.componentProps.disabled=true
}
if(itemColumn.field == 'productionLine'){
itemColumn.componentProps.isSearchList=false
itemColumn.componentProps.disabled=true
}
})
}
formRef.value.open(type, row) formRef.value.open(type, row)
} }

2
src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts

@ -789,4 +789,4 @@ export const ProductionDetailRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

Loading…
Cancel
Save