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 }} + + (库存不足以扣减) + +
+