|
|
@ -194,10 +194,10 @@ const formsSuccess = async (formType, data) => { |
|
|
|
data.inInventoryStatuses = data.inInventoryStatuses.join(',') |
|
|
|
if (formType === 'create') { |
|
|
|
await BusinesstypeApi.createBusinesstype(data) |
|
|
|
.then(() => { |
|
|
|
.then(async () => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
basicFormRef.value.dialogVisible = false |
|
|
|
getList() |
|
|
|
await getList() |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
data.itemTypes = data.itemTypes.split(',') |
|
|
@ -208,10 +208,10 @@ const formsSuccess = async (formType, data) => { |
|
|
|
}) |
|
|
|
} else { |
|
|
|
await BusinesstypeApi.updateBusinesstype(data) |
|
|
|
.then(() => { |
|
|
|
.then(async () => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
basicFormRef.value.dialogVisible = false |
|
|
|
getList() |
|
|
|
await getList() |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
data.itemTypes = data.itemTypes.split(',') |
|
|
@ -296,7 +296,7 @@ const searchFormClick = (searchData) => { |
|
|
|
/** 初始化 **/ |
|
|
|
onMounted(async () => { |
|
|
|
await getList() |
|
|
|
// console.log(300, tableObject.tableList) |
|
|
|
|
|
|
|
importTemplateData.templateUrl = await BusinesstypeApi.importTemplate() |
|
|
|
}) |
|
|
|
</script> |
|
|
|