|
|
@ -264,7 +264,7 @@ const formsSuccess = async (formType, submitData) => { |
|
|
|
data.inInventoryStatuses = data.inInventoryStatuses.join(',') |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
basicFormRef.value.formLoading = true |
|
|
|
if (formType === 'create') { |
|
|
|
await BusinesstypeApi.createBusinesstype(data) |
|
|
|
.then(async () => { |
|
|
@ -279,6 +279,9 @@ const formsSuccess = async (formType, submitData) => { |
|
|
|
data.outInventoryStatuses = data.outInventoryStatuses.split(',') |
|
|
|
data.inInventoryStatuses = data.inInventoryStatuses.split(',') |
|
|
|
}) |
|
|
|
.finally(()=>{ |
|
|
|
basicFormRef.value.formLoading = false |
|
|
|
}) |
|
|
|
} else { |
|
|
|
await BusinesstypeApi.updateBusinesstype(data) |
|
|
|
.then(async () => { |
|
|
@ -293,6 +296,9 @@ const formsSuccess = async (formType, submitData) => { |
|
|
|
data.outInventoryStatuses = data.outInventoryStatuses.split(',') |
|
|
|
data.inInventoryStatuses = data.inInventoryStatuses.split(',') |
|
|
|
}) |
|
|
|
.finally(()=>{ |
|
|
|
basicFormRef.value.formLoading = false |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|