From c15afe163ef43f4079d6115e00bd1a8fc8e9b76f Mon Sep 17 00:00:00 2001 From: chenfang Date: Tue, 10 Oct 2023 15:04:34 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E7=89=A9=E5=93=81=E5=9F=BA=E6=9C=AC?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=AF=BC=E5=85=A5=E5=89=8D=E7=AB=AF=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wms/itembasic/ItembasicImportForm.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/views/wms/itembasic/ItembasicImportForm.vue b/src/views/wms/itembasic/ItembasicImportForm.vue index 41c2c69a5..c164b21e5 100644 --- a/src/views/wms/itembasic/ItembasicImportForm.vue +++ b/src/views/wms/itembasic/ItembasicImportForm.vue @@ -41,11 +41,11 @@ From 60bbac6b4b293b73cf69671b2988ab22ecfd580d Mon Sep 17 00:00:00 2001 From: chenfang Date: Tue, 10 Oct 2023 15:06:53 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E7=89=A9=E5=93=81=E5=9F=BA=E6=9C=AC?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=AF=BC=E5=85=A5=E5=89=8D=E7=AB=AF=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/itembasic/index.ts | 5 + src/views/wms/itembasic/index.vue | 214 ++++++++++++++++++++++++------ 2 files changed, 176 insertions(+), 43 deletions(-) diff --git a/src/api/wms/itembasic/index.ts b/src/api/wms/itembasic/index.ts index a39a6a8fc..6b32829f6 100644 --- a/src/api/wms/itembasic/index.ts +++ b/src/api/wms/itembasic/index.ts @@ -58,3 +58,8 @@ export const deleteItembasic = async (id: number) => { export const exportItembasic = async (params) => { return await request.download({ url: `/wms/itembasic/export-excel`, params }) } + +// 下载用户导入模板 +export const importUserTemplate = () => { + return request.download({ url: '/wms/itembasic/get-import-template' }) +} diff --git a/src/views/wms/itembasic/index.vue b/src/views/wms/itembasic/index.vue index bc03da6ed..0414093bf 100644 --- a/src/views/wms/itembasic/index.vue +++ b/src/views/wms/itembasic/index.vue @@ -1,8 +1,7 @@ diff --git a/src/views/wms/itembasic/index.vue b/src/views/wms/itembasic/index.vue index 0414093bf..28e6bee51 100644 --- a/src/views/wms/itembasic/index.vue +++ b/src/views/wms/itembasic/index.vue @@ -353,6 +353,12 @@ > 新增 + + 导入 + + +