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