|
|
@ -232,13 +232,16 @@ const formsSuccess = async (formType, dataParams) => { |
|
|
|
data.model = data.modelShow.join(',') |
|
|
|
delete data.shift |
|
|
|
if (formType === 'create') { |
|
|
|
basicFormRef.value.formLoading = true |
|
|
|
await SupplierAddressModelDeliApi.createSupplierAddressModelDeli(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} else { |
|
|
|
basicFormRef.value.formLoading = true |
|
|
|
await SupplierAddressModelDeliApi.updateSupplierAddressModelDeli(data) |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
} |
|
|
|
basicFormRef.value.dialogVisible = false |
|
|
|
basicFormRef.value.formLoading = false |
|
|
|
getList() |
|
|
|
} |
|
|
|
|
|
|
|