Browse Source

HL-5786@王宇飞 编辑生产线不让编辑

hella_online_20240919
王宇飞 5 months ago
parent
commit
e283ac639b
  1. 14
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue

14
src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue

@ -560,6 +560,13 @@ const openForm =async (type: string, row?: number) => {
if (type == 'update') { if (type == 'update') {
// tableform // tableform
ProductionscrapRequestMain.allSchemas.formSchema.map(itemColumns => { ProductionscrapRequestMain.allSchemas.formSchema.map(itemColumns => {
if(itemColumns.field == 'productionLineCode') {
//线
itemColumns.componentProps.disabled = true
itemColumns.componentProps.isSearchList = false
itemColumns.componentProps.enterSearch = false
}
if(itemColumns.field == 'workshopCode') { if(itemColumns.field == 'workshopCode') {
itemColumns.componentProps.isSearchList = false itemColumns.componentProps.isSearchList = false
itemColumns.componentProps.disabled = true itemColumns.componentProps.disabled = true
@ -568,6 +575,13 @@ const openForm =async (type: string, row?: number) => {
} else { } else {
// tableform // tableform
ProductionscrapRequestMain.allSchemas.formSchema.map(itemColumns => { ProductionscrapRequestMain.allSchemas.formSchema.map(itemColumns => {
if(itemColumns.field == 'productionLineCode') {
//线
itemColumns.componentProps.disabled = false
itemColumns.componentProps.isSearchList = true
itemColumns.componentProps.enterSearch = true
}
if(itemColumns.field == 'workshopCode') { if(itemColumns.field == 'workshopCode') {
itemColumns.componentProps.isSearchList = true itemColumns.componentProps.isSearchList = true
itemColumns.componentProps.disabled = false itemColumns.componentProps.disabled = false

Loading…
Cancel
Save