Browse Source

维修备件默认库位物料代码 编辑的时候禁用

hella_online_20241212_pandian
王宇飞 4 months ago
parent
commit
f6539620d1
  1. 7
      src/views/wms/basicDataManage/strategySetting/spareitemLocation/index.vue

7
src/views/wms/basicDataManage/strategySetting/spareitemLocation/index.vue

@ -174,6 +174,13 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { const openForm = (type: string, row?: any) => {
SpareitemLocation.allSchemas.formSchema.forEach(item=>{
if(item.field == 'itemCode'){
item.componentProps.enterSearch = type=='create'
item.componentProps.isSearchList = type=='create'
item.componentProps.disabled = type!='create'
}
})
basicFormRef.value.open(type, row) basicFormRef.value.open(type, row)
} }

Loading…
Cancel
Save