From b4b3cb3641ecdf56cdfdf3532e5acf4af46fbe48 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期二, 12 十二月 2023 18:33:45 +0800 Subject: [PATCH] 新增出入库明细页面,添加无权限展示页面,接口调整 --- src/views/overview/OverviewListView.vue | 30 +++++++++++++++++++----------- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/src/views/overview/OverviewListView.vue b/src/views/overview/OverviewListView.vue index 1da054c..6a6fc75 100644 --- a/src/views/overview/OverviewListView.vue +++ b/src/views/overview/OverviewListView.vue @@ -1,15 +1,17 @@ <template> <div class="rightContent"> - <div class="label-fixed-element"> + <!-- <div class="label-fixed-element"> <span>{{ params.name }}</span> - </div> + </div> --> <div class="top"> <SearchCommonView :add-title="'鏂板缓'" :placeholder="'璇疯緭鍏ュ崟鍙�/鏉ユ簮鍗曟嵁'" :amount-view="false" + :search-task-map="searchTaskMap" @addCommonClick="addBtnClick" @searchClick="getList" + @delSelectClick="delSelectClick" /> </div> <div class="list-view"> @@ -20,7 +22,7 @@ <template slot-scope="scope"> <el-button @click="tableRowClick(scope.row, '鏌ョ湅')" type="text" size="small">鏌ョ湅</el-button> <el-button - v-if="scope.row.status !== 4" + v-if="scope.row.status !== 4&&scope.row.status !== 5" @click="tableRowClick(scope.row, '缂栬緫')" type="text" size="small" @@ -38,7 +40,7 @@ <!-- 鏂板缓/缂栬緫 --> <AddOverviewDialog v-if="editConfig.visible" - :work-type="workType" + :workType="workType" :edit-common-config="editConfig" :add-name="addName" :display-edit="displayEdit" @@ -65,7 +67,8 @@ searchOptions: [], commonDetail: { visible: false, - title: "鏂板缓", + title: "鏂板缓" + , infomation: {} }, editConfig: { @@ -79,11 +82,11 @@ displayEdit: false, formLabel: "", toLabel: "", - addName: "" + addName: "", + searchTaskMap: [] } }, created() { - console.log(this.workType) this.setFormToLabel() this.setTable() var paramsData = sessionStorage.getItem("paramsData") @@ -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) }, @@ -229,7 +234,7 @@ async getData() { await getOperation({ number: this.keyword, - operationTypeId: this.params.id, + operationTypeId: this.$route.params.id?this.$route.params.id:this.params.id, page: this.pagerOptions.currPage, pageSize: this.pagerOptions.pageSize, status: this.params.status @@ -257,7 +262,6 @@ }, // 鏌ョ湅 缂栬緫 tableRowClick(row, val) { - console.log(row) this.editConfig.visible = true this.editConfig.title = val this.editConfig.operationTypeId = this.params.id @@ -267,7 +271,6 @@ addBtnClick() { this.editConfig.title = "鏂板缓" 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 = {} @@ -275,7 +278,12 @@ }, // 鐘舵�� getStatus(val) { - return val === 1 ? "鑽夌" : val === 3 ? "灏辩华" : "瀹屾垚" + return val === 1 ? "鑽夌" : val === 3 ? "灏辩华" : val === 4 ? "瀹屾垚" :val === 5 ? "鍙栨秷" : "" + }, + // 鍒犻櫎鎼滅储鐘舵�� + delSelectClick() { + this.params.status = 0 + this.getData() } } } -- Gitblit v1.8.0