From 54df47d5b8c4de6d5dbddd05f96bd6add9be78a6 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 14 十一月 2023 15:03:27 +0800 Subject: [PATCH] 产品模块 增加 在库数量,预测数量,进,出数量,重订货规则1个的时候显示 最小最大,否则显示规则数量 --- src/views/overview/OverviewListView.vue | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/views/overview/OverviewListView.vue b/src/views/overview/OverviewListView.vue index 1da054c..fc3a8d8 100644 --- a/src/views/overview/OverviewListView.vue +++ b/src/views/overview/OverviewListView.vue @@ -8,8 +8,10 @@ :add-title="'鏂板缓'" :placeholder="'璇疯緭鍏ュ崟鍙�/鏉ユ簮鍗曟嵁'" :amount-view="false" + :search-task-map="searchTaskMap" @addCommonClick="addBtnClick" @searchClick="getList" + @delSelectClick="delSelectClick" /> </div> <div class="list-view"> @@ -79,7 +81,8 @@ displayEdit: false, formLabel: "", toLabel: "", - addName: "" + addName: "", + searchTaskMap: [] } }, created() { @@ -95,6 +98,8 @@ sessionStorage.setItem("paramsData", JSON.stringify(params)) } this.params = params + this.searchTaskMap = + this.params.status > 0 ? [{ id: this.params.id, title: this.getStatus(this.params.status) }] : [] this.getData() // console.log(this.$route.params.workType) }, @@ -275,7 +280,12 @@ }, // 鐘舵�� getStatus(val) { - return val === 1 ? "鑽夌" : val === 3 ? "灏辩华" : "瀹屾垚" + return val === 1 ? "鑽夌" : val === 3 ? "灏辩华" : val === 4 ? "瀹屾垚" : "" + }, + // 鍒犻櫎鎼滅储鐘舵�� + delSelectClick() { + this.params.status = 0 + this.getData() } } } -- Gitblit v1.8.0