Browse Source

车间代码编辑可以修改问题修改

master
zhaoxuebing 10 months ago
parent
commit
4e4394f9f5
  1. 17
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
  2. 16
      src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
  3. 16
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

17
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue

@ -443,6 +443,23 @@ const openForm =async (type: string, row?: number) => {
defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), //
defaultButtons.formCloseBtn(null) //
]
if(type == 'create'){
ProductdismantleRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'workshopCode') {
item.componentProps.disabled = true
item.componentProps.isSearchList = true
}
})
}
if(type == 'update'){
ProductdismantleRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'workshopCode') {
item.componentProps.disabled = true
item.componentProps.isSearchList = false
}
})
}
formRef.value.open(type, row)
}

16
src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue

@ -455,6 +455,22 @@ const openForm =async (type: string, row?: number) => {
defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), //
defaultButtons.formCloseBtn(null) //
]
if(type == 'create'){
ProductrepairRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'workshopCode') {
item.componentProps.disabled = true
item.componentProps.isSearchList = true
}
})
}
if(type == 'update'){
ProductrepairRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'workshopCode') {
item.componentProps.disabled = true
item.componentProps.isSearchList = false
}
})
}
formRef.value.open(type, row)
}

16
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -464,6 +464,22 @@ const openForm =async (type: string, row?: number) => {
defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), //
defaultButtons.formCloseBtn(null) //
]
if(type == 'create'){
ProductscrapRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'workshopCode') {
item.componentProps.disabled = true
item.componentProps.isSearchList = true
}
})
}
if(type == 'update'){
ProductscrapRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'workshopCode') {
item.componentProps.disabled = true
item.componentProps.isSearchList = false
}
})
}
formRef.value.open(type, row)
}

Loading…
Cancel
Save