From 8aa4bb3f8bd7b28e962e90748b53d76944ca83fc Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期三, 08 十一月 2023 19:16:44 +0800 Subject: [PATCH] new file: public/img/image002.png new file: src/views/quality/finishedProductInspection/finishedProduct-print.vue modified: src/views/quality/finishedProductInspection/index.vue modified: src/views/quality/processInspect/index.vue new file: src/views/quality/processInspect/processInspect-print.vue --- src/views/quality/processInspect/index.vue | 27 ++++++++++++++++++++++++++- 1 files changed, 26 insertions(+), 1 deletions(-) diff --git a/src/views/quality/processInspect/index.vue b/src/views/quality/processInspect/index.vue index b1b35e5..349f765 100644 --- a/src/views/quality/processInspect/index.vue +++ b/src/views/quality/processInspect/index.vue @@ -12,6 +12,19 @@ <template #toolbar></template> </ttable> </basic-container> + <el-dialog + top="10vh" + title="鎵撳嵃棰勮" + :visible.sync="printDialogVisible" + width="60%"> + <div style="width:100%;height: 60vh;overflow-y: scroll;"> + <printTemplate id="printRaw" :formData="printFormData"></printTemplate> + </div> + <span slot="footer" class="dialog-footer"> + <el-button @click="()=>{printDialogVisible = false;this.printFormData=null}">鍙� 娑�</el-button> + <el-button type="primary" @click="printFun()">鎵� 鍗�</el-button> + </span> + </el-dialog> </div> </div> </template> @@ -22,13 +35,17 @@ import processInspectForm from './processInspect-form' import { transform } from '@/util/fileTransform' import { page,deleteById,exportProcessInsProduct } from '@/api/quality/processInspect' + import printTemplate from './processInspect-print.vue' export default { components: { processInspectForm, - ttable + ttable, + printTemplate }, data() { return { + printFormData: null, + printDialogVisible: false, result:[{label:'鍏ㄩ儴',value: ''},{label:'鍚堟牸',value: '1'},{label:'涓嶅悎鏍�',value: '0'}], type: [1], prelang: 'processInspect', @@ -158,6 +175,11 @@ } ], operator: [{ + text: '鎵撳嵃', + type: 'text', + size: 'small', + fun: this.showPrint + },{ text: '浣滃簾', type: 'text', size: 'small', @@ -174,6 +196,9 @@ }, created() { }, methods: { + showPrint(){ + this.printDialogVisible = true + }, exportExcel(){ let queryParam=this.$refs.processInspect.getQueryParam(); delete queryParam.criteria -- Gitblit v1.9.3