Browse Source

物料库区配置编辑按钮限制部分字段修改

master_hella_20240701
chenfang 8 months ago
parent
commit
bd1769d6a3
  1. 13
      src/views/wms/basicDataManage/itemManage/itemarea/index.vue

13
src/views/wms/basicDataManage/itemManage/itemarea/index.vue

@ -216,6 +216,19 @@ 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) => {
if(type == "update"){
Itemarea.allSchemas.formSchema.forEach((item) => {
if (item.field == 'areaCode') {
item.componentProps.isSearchList = false,
item.componentProps.disabled = true
}})
}else {
Itemarea.allSchemas.formSchema.forEach((item) => {
if (item.field == 'areaCode') {
item.componentProps.isSearchList = true
}
})
}
tableData.value = [] // tableData.value = [] //
formRef.value.open(type, row) formRef.value.open(type, row)
} }

Loading…
Cancel
Save