Browse Source

WMS ——> bug 包装规格中选择父包装后,应该带出包装类型且不可修改

hella_online_20240829
gaojs 4 months ago
parent
commit
61c6309855
  1. 13
      src/views/wms/basicDataManage/itemManage/packageunit/index.vue

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

@ -80,11 +80,10 @@ const tableColumns = ref(Packageunit.allSchemas.tableColumns)
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {
// if(val[0].parentCode){
// message.error('')
// return
// }
const setV = {}
if(formField == 'parentCode'){
setV['type'] = val[0]['type']
}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
})
@ -178,6 +177,9 @@ const openForm = (type: string, row?: any) => {
if (item.field == 'manageBalance') {
item.componentProps.disabled = true
}
if (item.field == 'type') {
item.componentProps.disabled = false
}
})
}else {
Packageunit.allSchemas.formSchema.forEach((item) => {
@ -190,6 +192,9 @@ const openForm = (type: string, row?: any) => {
if (item.field == 'manageBalance') {
item.componentProps.disabled = false
}
if (item.field == 'type') {
item.componentProps.disabled = true
}
})
}
basicFormRef.value.open(type, row)

Loading…
Cancel
Save