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 | 25 +++++++++++++++++++------ 1 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/views/overview/OverviewListView.vue b/src/views/overview/OverviewListView.vue index 5ba0d19..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"> @@ -40,7 +42,7 @@ v-if="editConfig.visible" :work-type="workType" :edit-common-config="editConfig" - :add-name="this.$route.params.name" + :add-name="addName" :display-edit="displayEdit" /> </div> @@ -78,7 +80,9 @@ params: {}, displayEdit: false, formLabel: "", - toLabel: "" + toLabel: "", + addName: "", + searchTaskMap: [] } }, created() { @@ -94,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) }, @@ -259,20 +265,27 @@ console.log(row) this.editConfig.visible = true this.editConfig.title = val - this.editConfig.operationTypeId = this.$route.params.id + this.editConfig.operationTypeId = this.params.id this.editConfig.infomation = { ...row } }, // 鏂板缓 addBtnClick() { this.editConfig.title = "鏂板缓" - this.editConfig.operationTypeId = this.$route.params.id - this.editConfig.code=this.$route.params.code + this.addName = this.params.name + console.log(this.params, "ss鍒锋柊") + this.editConfig.operationTypeId = this.params.id + this.editConfig.code = this.params.code this.editConfig.infomation = {} this.editConfig.visible = true }, // 鐘舵�� 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