From 917bfeda968449930bf41b33f2a26d723ab0492c Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期五, 03 十一月 2023 14:41:54 +0800 Subject: [PATCH] 查看产品调整重订货规则功能 --- src/views/productManage/reorderRules/index.vue | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/src/views/productManage/reorderRules/index.vue b/src/views/productManage/reorderRules/index.vue index 9384663..57d32fa 100644 --- a/src/views/productManage/reorderRules/index.vue +++ b/src/views/productManage/reorderRules/index.vue @@ -7,9 +7,11 @@ :show-apply="false" :placeholder="'璇疯緭鍏ヤ綅缃�/浜у搧'" :amount-view="false" + :search-task-map="searchTaskMap" @addCommonClick="addProductClick" @searchClick="getList" @discardBtnClick="discardBtnClick" + @delSelectClick="delSelectClick" /> </div> <div class="list-view"> @@ -76,11 +78,21 @@ maxInventory: 0, orderNumber: 0, unit: "", - reorderId: 0 + reorderId: 0, + queryProductId: null, + searchTaskMap: [] } }, created() { this.setTable() + let query = this.$route.query + if (query) { + this.queryProductId = query.productId?.length ? query.productId : null + this.pagerOptions.currPage = 1 + this.searchTaskMap = + query.productId?.length > 0 ? [{ productId: this.queryProductId, title: query.productName }] : [] + console.log(this.searchTaskMap) + } this.getData() }, methods: { @@ -105,6 +117,7 @@ // 璇锋眰鏁版嵁 async getData() { await getReorderRuleList({ + productId: this.queryProductId ? this.queryProductId : null, page: this.pagerOptions.currPage, pageSize: this.pagerOptions.pageSize }).then((res) => { @@ -319,6 +332,11 @@ // 鑾峰彇褰撳墠鏃堕棿 currentTime() { return currentTime() + }, + // 鍒犻櫎浜у搧 + delSelectClick() { + this.queryProductId = "" + this.getData() } } } -- Gitblit v1.8.0