Browse Source

制品收货申请 编辑时 车间不可修改

master
陈薪名 10 months ago
parent
commit
a78d32addc
  1. 18
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

18
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

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

Loading…
Cancel
Save