diff --git a/.env.development b/.env.development index d3e8059..519f596 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VITE_APP_TITLE = 煤科建管平台 VITE_APP_ENV = 'development' # 开发环境 -VITE_APP_BASE_API = 'http://192.168.110.180:8899' +VITE_APP_BASE_API = 'http://192.168.110.149:8899' # 李陈杰 209 # VITE_APP_BASE_API = 'http://192.168.110.209:8899' # 曾涛 diff --git a/public/xx.xlsx b/public/xx.xlsx new file mode 100644 index 0000000..fb25b99 Binary files /dev/null and b/public/xx.xlsx differ diff --git a/src/api/supplierInput/supplierInput/index.ts b/src/api/supplierInput/supplierInput/index.ts index 834b072..0838699 100644 --- a/src/api/supplierInput/supplierInput/index.ts +++ b/src/api/supplierInput/supplierInput/index.ts @@ -61,3 +61,22 @@ export const delSupplierInput = (id: string | number | Array) = method: 'delete' }); }; +//导入供商入库 +export const leadingIn = (formData: FormData, projectId) => { + return request({ + url: '/supplierInput/supplierInput/import?projectId=' + projectId, + method: 'post', + data: formData, + + headers: { + 'Content-Type': 'multipart/form-data' + } + }); +}; +//导入供商出库 +export const leadingOut = () => { + return request({ + url: '/supplierInput/supplierInput/export', + method: 'post' + }); +}; diff --git a/src/views/tender/supplierInput/index.vue b/src/views/tender/supplierInput/index.vue index 3709164..a3afeda 100644 --- a/src/views/tender/supplierInput/index.vue +++ b/src/views/tender/supplierInput/index.vue @@ -31,9 +31,14 @@ 新增 - + + 导入 + + + 导出模板 + @@ -309,7 +314,14 @@