From 563c60ab9d465e275bf18b57fde7b51c4bc020da Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期三, 29 十一月 2023 15:32:56 +0800 Subject: [PATCH] 出入库明细单打印功能调整,新引入三方库:html2Canvas,jsPdf,vue-office --- src/views/overview/OverviewListView.vue | 37 ++++++++++++++++++++++++------------- 1 files changed, 24 insertions(+), 13 deletions(-) diff --git a/src/views/overview/OverviewListView.vue b/src/views/overview/OverviewListView.vue index 5ba0d19..13ef17d 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,9 +40,9 @@ <!-- 鏂板缓/缂栬緫 --> <AddOverviewDialog v-if="editConfig.visible" - :work-type="workType" + :workType="workType" :edit-common-config="editConfig" - :add-name="this.$route.params.name" + :add-name="addName" :display-edit="displayEdit" /> </div> @@ -65,7 +67,8 @@ searchOptions: [], commonDetail: { visible: false, - title: "鏂板缓", + title: "鏂板缓" + , infomation: {} }, editConfig: { @@ -78,11 +81,12 @@ params: {}, displayEdit: false, formLabel: "", - toLabel: "" + toLabel: "", + addName: "", + searchTaskMap: [] } }, created() { - console.log(this.workType) this.setFormToLabel() this.setTable() var paramsData = sessionStorage.getItem("paramsData") @@ -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) }, @@ -256,23 +262,28 @@ }, // 鏌ョ湅 缂栬緫 tableRowClick(row, val) { - 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 + 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 ? "瀹屾垚" :val === 5 ? "鍙栨秷" : "" + }, + // 鍒犻櫎鎼滅储鐘舵�� + delSelectClick() { + this.params.status = 0 + this.getData() } } } -- Gitblit v1.8.0