Browse Source

包装规格问题修复

hella_online_20240829
TengXF 3 months ago
parent
commit
53d6ecbf2d
  1. 5
      src/views/wms/basicDataManage/itemManage/packageunit/index.vue

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

@ -180,7 +180,7 @@ const openForm = (type: string, row?: any) => {
if (item.field == 'type') {
item.componentProps.disabled = true
}
})
})
}else {
Packageunit.allSchemas.formSchema.forEach((item) => {
if (item.field == 'code') {
@ -195,7 +195,7 @@ const openForm = (type: string, row?: any) => {
if (item.field == 'type') {
item.componentProps.disabled = false
}
})
})
}
basicFormRef.value.open(type, row)
}
@ -213,6 +213,7 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
data.parentCode = data.parentCode === '' ? null : data.parentCode;
basicFormRef.value.formLoading = true
if (formType === 'create') {
await PackageunitApi.createPackageunit(data)

Loading…
Cancel
Save