|
|
@ -243,13 +243,19 @@ const BASE_URL = getJmreportBaseUrl() |
|
|
|
|
|
|
|
// form表单提交 |
|
|
|
const formsSuccess = async (formType,data) => { |
|
|
|
if (formType === 'create') { |
|
|
|
await PackageApi.createPackage(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} else { |
|
|
|
await message.confirm('包装修改后需重新打印标签,是否继续保存?') |
|
|
|
await PackageApi.updatePackage(data) |
|
|
|
message.success(t('包装信息已修改,请重新打印标签')) |
|
|
|
basicFormRef.value.formLoading = true |
|
|
|
try { |
|
|
|
if (formType === 'create') { |
|
|
|
await PackageApi.createPackage(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} else { |
|
|
|
await message.confirm('包装修改后需重新打印标签,是否继续保存?') |
|
|
|
await PackageApi.updatePackage(data) |
|
|
|
message.success(t('包装信息已修改,请重新打印标签')) |
|
|
|
} |
|
|
|
|
|
|
|
} finally { |
|
|
|
basicFormRef.value.formLoading = false |
|
|
|
} |
|
|
|
basicFormRef.value.dialogVisible = false |
|
|
|
getList() |
|
|
|