|
@ -315,15 +315,21 @@ const formsSuccess = async (formType: string, data: SupplierDeliMainApi.Supplier |
|
|
} |
|
|
} |
|
|
if (data.activeTime == 0) data.activeTime = null |
|
|
if (data.activeTime == 0) data.activeTime = null |
|
|
if (data.expireTime == 0) data.expireTime = null |
|
|
if (data.expireTime == 0) data.expireTime = null |
|
|
if (formType === 'create') { |
|
|
try{ |
|
|
await SupplierDeliMainApi.createSupplierDeliMain(data) |
|
|
basicFormRef.value.formLoading = true |
|
|
message.success(t('common.createSuccess')) |
|
|
if (formType === 'create') { |
|
|
} else { |
|
|
await SupplierDeliMainApi.createSupplierDeliMain(data) |
|
|
await SupplierDeliMainApi.updateSupplierDeliMain(data) |
|
|
message.success(t('common.createSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
} else { |
|
|
|
|
|
await SupplierDeliMainApi.updateSupplierDeliMain(data) |
|
|
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
|
|
} |
|
|
|
|
|
basicFormRef.value.dialogVisible = false |
|
|
|
|
|
getListExecute() |
|
|
|
|
|
}finally{ |
|
|
|
|
|
basicFormRef.value.formLoading = false |
|
|
} |
|
|
} |
|
|
basicFormRef.value.dialogVisible = false |
|
|
|
|
|
getListExecute() |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
|