diff --git a/src/api/wms/itembasic/index.ts b/src/api/wms/itembasic/index.ts index 6b32829f6..6a232222d 100644 --- a/src/api/wms/itembasic/index.ts +++ b/src/api/wms/itembasic/index.ts @@ -60,6 +60,8 @@ export const exportItembasic = async (params) => { } // 下载用户导入模板 -export const importUserTemplate = () => { +export const importTemplate = () => { return request.download({ url: '/wms/itembasic/get-import-template' }) } +// 导入地址 +export const importUrl = '/wms/itembasic/import' diff --git a/src/views/wms/itembasic/ItembasicDetail.vue b/src/views/wms/itembasic/ItembasicDetail.vue index a603052ac..aae7e08e4 100644 --- a/src/views/wms/itembasic/ItembasicDetail.vue +++ b/src/views/wms/itembasic/ItembasicDetail.vue @@ -41,8 +41,6 @@ import { ItemBasicTabsList } from '@/utils/disposition/tabsList.ts' import { getItembasic } from '@/api/wms/itembasic' const { query } = useRoute() // 路由的查询 import * as ItembasicApi from '@/api/wms/itembasic' - -import * as UserApi from '@/api/system/user' const tabsList = ref(JSON.parse(JSON.stringify(ItemBasicTabsList))) tabsList.value.unshift({ label: '详情', @@ -101,10 +99,10 @@ const changeRecordData = reactive({ time: '2023年5月6日 17:16:00', file: [{ name: '这是个附件的名字.docx', - url: 'http://localhost:12080/admin-api/system/user/get-import-template' + url: 'http://localhost:12080//wms/itembasic/get-import-template' }, { name: '这是个附件的名字.docx', - url: 'http://localhost:12080/admin-api/system/user/get-import-template' + url: 'http://localhost:12080/wms/itembasic/get-import-template' }] }] }) @@ -117,7 +115,7 @@ const importTemplateData = reactive({ onMounted(async () => { // 获取详情 detailData.value = await getItembasic(query.id) - importTemplateData.templateUrl = await UserApi.importUserTemplate() + importTemplateData.templateUrl = await ItembasicApi.importTemplate() }) // 导入成功之后 diff --git a/src/views/wms/itembasic/index.vue b/src/views/wms/itembasic/index.vue index 523f89320..9d50d6612 100644 --- a/src/views/wms/itembasic/index.vue +++ b/src/views/wms/itembasic/index.vue @@ -2,9 +2,11 @@ -   -       新增 -     +   + +