diff --git a/manager/src/components/lili-dialog/goods-dialog.vue b/manager/src/components/lili-dialog/goods-dialog.vue index f5530563..3126d9bb 100644 --- a/manager/src/components/lili-dialog/goods-dialog.vue +++ b/manager/src/components/lili-dialog/goods-dialog.vue @@ -38,6 +38,7 @@ type="primary" @click=" goodsData = []; + goodsParams.pageNumber = 1; getQueryGoodsList(); " icon="ios-search" diff --git a/seller/src/views/goods/goods-seller/alertQuantity.vue b/seller/src/views/goods/goods-seller/alertQuantity.vue new file mode 100644 index 00000000..b3961449 --- /dev/null +++ b/seller/src/views/goods/goods-seller/alertQuantity.vue @@ -0,0 +1,419 @@ + + + + + \ No newline at end of file diff --git a/seller/src/views/goods/goods-seller/goods.vue b/seller/src/views/goods/goods-seller/goods.vue index 6edda603..6765fe8d 100644 --- a/seller/src/views/goods/goods-seller/goods.vue +++ b/seller/src/views/goods/goods-seller/goods.vue @@ -162,12 +162,6 @@ - - - - - -
@@ -221,7 +215,6 @@ import { getGoodsListDataSeller, getGoodsSkuListDataSeller, updateGoodsSkuStocks, - updateGoodsAlertStocks, upGoods, lowGoods, deleteGoods, @@ -248,7 +241,6 @@ export default { logisticsTemplate: [], // 物流列表 updateStockModalVisible: false, // 更新库存模态框显隐 stockAllUpdate: undefined, // 更新库存数量 - stockAllAlertQuantity: undefined, // 更新规格预警数量 searchForm: { // 搜索框初始化对象 pageNumber: 1, // 当前页数 @@ -257,7 +249,6 @@ export default { order: "desc", // 默认排序方式 }, stockList: [], // 库存列表 - alertQuantityList: [], // 库存预警列表 form: { // 添加或编辑表单对象初始化数据 goodsName: "", @@ -309,49 +300,6 @@ export default { }, }, ], - alertQuantityColumns: [ - { - title: "库存预警", - key: "sn", - minWidth: 120, - render: (h, params) => { - return h("div", {}, params.row.simpleSpecs); - }, - }, - { - title: "审核状态", - key: "authFlag", - width: 130, - render: (h, params) => { - if (params.row.authFlag == "TOBEAUDITED") { - return h("Tag", { props: { color: "blue" } }, "待审核"); - } else if (params.row.authFlag == "PASS") { - return h("Tag", { props: { color: "green" } }, "通过"); - } else if (params.row.authFlag == "REFUSE") { - return h("Tag", { props: { color: "red" } }, "审核拒绝"); - } - }, - }, - { - title: "操作", - key: "action", - align: "center", - width: 200, - render: (h, params) => { - let vm = this; - return h("InputNumber", { - props: { - value: params.row.alertQuantity, - }, - on: { - "on-change": (event) => { - vm.alertQuantityList[params.index].alertQuantity = event; - }, - }, - }); - }, - }, - ], // 表单验证规则 formValidate: {}, submitLoading: false, // 添加或编辑提交状态 @@ -587,8 +535,6 @@ export default { this.updateStockType = 'updateStock'; this.stockAllUpdate = undefined; this.stockList = res.result.records; - this.stockAllAlertQuantity = undefined; - this.alertQuantityList = res.result.records; } }); }, @@ -642,23 +588,7 @@ export default { }, // 更新库存 updateStock () { - if (this.updateStockType === 'alertQuantity' || this.updateStockType === 'alertQuantityAll') { - // alertQuantity 手动库存预警更新,alertQuantityAll 批量库存预警更新 - let updateAlertQuantityList = this.alertQuantityList.map((i) => { - let j = { skuId: i.id, alertQuantity: i.alertQuantity }; - if (this.stockAllAlertQuantity) { - j.alertQuantity = this.stockAllAlertQuantity; - } - return j; - }); - updateGoodsAlertStocks(updateAlertQuantityList).then((res) => { - if (res.success) { - this.updateStockModalVisible = false; - this.$Message.success("更新库存预警成功"); - this.getDataList(); - } - }); - } else if (this.updateStockType === 'updateStock' || this.updateStockType === 'stockAll') { + if (this.updateStockType === 'updateStock' || this.updateStockType === 'stockAll') { // updateStock 手动规格更新,stockAll 批量规格更新 let updateStockList = this.stockList.map((i) => { let j = { skuId: i.id, quantity: i.quantity }; diff --git a/seller/src/views/home/home.vue b/seller/src/views/home/home.vue index e4a55035..ea41bbde 100644 --- a/seller/src/views/home/home.vue +++ b/seller/src/views/home/home.vue @@ -111,12 +111,12 @@ 投诉
-
-
- {{ homeData.waitUpper || 0 }} -
待上架
+
+
+ {{ homeData.alertQuantityNum || 0 }} +
库存预警
-
+
{{ homeData.waitAuth || 0 }}
审核中
diff --git a/seller/src/views/lili-dialog/goods-dialog.vue b/seller/src/views/lili-dialog/goods-dialog.vue index 0af5071e..e7c27f0c 100755 --- a/seller/src/views/lili-dialog/goods-dialog.vue +++ b/seller/src/views/lili-dialog/goods-dialog.vue @@ -4,14 +4,14 @@
搜索范围
-
- +