Browse Source

WMS ——> bug 物料包装信息 包装类型应该自动带出且不可编辑

hella_online_20240829
gaojs 5 months ago
parent
commit
e9b53bdcb4
  1. 9
      src/views/wms/basicDataManage/itemManage/itempackage/index.vue

9
src/views/wms/basicDataManage/itemManage/itempackage/index.vue

@ -181,6 +181,9 @@ const openForm = (type: string, row?: any) => {
item.componentProps.disabled = true
item.componentProps.isSearchList = false
}
if (item.field == 'packType') {
item.componentProps.disabled = false
}
})
}else {
Itempackaging.allSchemas.formSchema.forEach((item) => {
@ -192,6 +195,9 @@ const openForm = (type: string, row?: any) => {
item.componentProps.disabled = false
item.componentProps.isSearchList = true
}
if (item.field == 'packType') {
item.componentProps.disabled = true
}
})
}
basicFormRef.value.open(type, row)
@ -261,6 +267,9 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
if('itemCode'==formField){
setV['uom'] = val[0]['uom']
}
if('packUnit'==formField){
setV['packType'] = val[0]['type']
}
formRef.setValues(setV)
})
}

Loading…
Cancel
Save