From a094a470f702522e3580c19dfd0427698b51158f Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Mon, 9 Nov 2026 19:42:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(seller):=20=E5=95=86=E5=93=81=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E9=A1=B5=E6=94=AF=E6=8C=81=E4=B8=8B=E8=BD=BD=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E6=A8=A1=E6=9D=BF=E4=B8=8E=E6=8C=89=E5=A2=9E=E5=87=8F?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BA=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seller/src/api/goods.js | 5 + .../goods/goods-seller/alertQuantity.vue | 229 +++++++++++++++++- 2 files changed, 228 insertions(+), 6 deletions(-) diff --git a/seller/src/api/goods.js b/seller/src/api/goods.js index 057057188..298654007 100644 --- a/seller/src/api/goods.js +++ b/seller/src/api/goods.js @@ -222,6 +222,11 @@ export const queryExportStock = (params) => { return getRequest(`/goods/goods/queryExportStock`, params,'blob') } +// 下载商品库存导入模板 +export const downloadStockTemplate = () => { + return getRequest(`/goods/goods/downloadStockTemplate`, {}, 'blob'); +}; + // 上传商品库存列表 export const importStockExcel = params => { return postRequestWithNoForm(`/goods/goods/importStockExcel`, params ); diff --git a/seller/src/views/goods/goods-seller/alertQuantity.vue b/seller/src/views/goods/goods-seller/alertQuantity.vue index 3bd59179d..989044e1a 100644 --- a/seller/src/views/goods/goods-seller/alertQuantity.vue +++ b/seller/src/views/goods/goods-seller/alertQuantity.vue @@ -62,6 +62,18 @@ + + + @@ -79,30 +91,97 @@ - + +
+ 请按标准模板格式整理库存数据后再上传 + + 下载导入模板 + +
-
-
↑
-

选择或拖拽文件上传

+
+ +

选择或拖拽文件上传

+

支持 .xlsx / .xls 格式文件

+ + + + + +
{{ selectedSku.goodsName || "-" }}
+
+ +
{{ selectedSku.simpleSpecs || "-" }}
+
+ +
{{ selectedSku.quantity || 0 }}
+
+ + + 增 + 减 + + + + + + + + {{ previewStock }} + + (库存不足以扣减) + +
+