From 9b7670b94196bba9c71602c1567750ec9f91e003 Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Tue, 9 Jan 2024 09:09:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=A3=80=E7=BB=9F=E8=AE=A1=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/quality/produceReport/index.vue | 233 ++++++++++------------ 1 file changed, 106 insertions(+), 127 deletions(-) diff --git a/src/views/quality/produceReport/index.vue b/src/views/quality/produceReport/index.vue index 901adef..67f259a 100644 --- a/src/views/quality/produceReport/index.vue +++ b/src/views/quality/produceReport/index.vue @@ -97,11 +97,11 @@ icon="el-icon-edit" @click="handleLook(scope.row)" v-hasPermi="['quality:qcIncomeReport:edit']" - >查看 + >查看报告 - + - - + + -
- + + - - - - - - - - - - - - - - + + 中山榄菊日化实业有限公司 - - - - + + 产品巡检记录表 - - - - - - - - - - - - - - - + + + 生成车间:{{printData.workCenter}} + 生成线体:{{printData.workCenter}} + 检查日期:{{printData.productDate}} + 产品名称:{{printData.printDate}} + 批次号:{{printData.printDate}} + 生产类型: + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + 检查人: + 品质主管: + - - - - - {{ parseTime(form.checkTime, '{y}-{m}-{d} {h}:{i}:{s}') }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
- +
@@ -244,7 +202,7 @@ - - + - + - + @@ -322,7 +280,7 @@ - + @@ -356,7 +314,7 @@ - + @@ -388,7 +346,10 @@ export default { total: 0, //打印 formRef: 'form', + newWorkerLoading: false, + refreshNewWorkerTable:true, validateRules: [], + checkList: [], printData: { printable: 'printFrom', ignore: ['no-print'], @@ -457,6 +418,10 @@ export default { this.getCheckTypes(); }, methods: { + // 生成表头序号 + indexMethod(index) { + return index + 1; + }, /****/ getCheckTypes() { getCheckTypes('material').then(response => { @@ -530,7 +495,7 @@ export default { updateTime: null, factoryCode: null, delFlag: null, - + }; this.resetForm("form"); }, @@ -560,25 +525,35 @@ export default { handleLook(row) { this.reset(); const recordId = row.recordId || this.ids - this.queryParams.recordId = recordId; - getProduce(recordId).then(response => { - this.form = response.data; - if(this.form.checkType =='checkTypeSC') { + + if(row.checkType =='checkTypeSC') { + getProduce(recordId).then(response => { + this.form = response.data; //首检报告 this.form.printable = 'firstReportPrint'; //打印时需要 this.form.ignore = ['no-print'];//打印时需要 this.firstReportOpen = true; this.title = "首检检验报告"; - }else { - //巡检报告 - this.form.printable = 'printForm'; //打印时需要 + }) + this.queryParams.recordId = recordId; + this.getCheckedProjectList(); + }else { + //巡检报告 + this.form.printable = 'printForm'; //打印时需要 + this.form.ignore = ['no-print'];//打印时需要 + this.open = true; + this.title = "巡检检验报告"; + const orderNo = row.orderNo; + getProduceXJ(orderNo).then(response => { + this.form = response.data; + //首检报告 + this.form.printable = 'firstReportPrint'; //打印时需要 this.form.ignore = ['no-print'];//打印时需要 - this.open = true; - this.title = "巡检检验报告"; - } - - }); - this.getCheckedProjectList(); + this.firstReportOpen = true; + this.title = "首检检验报告"; + }) + } + }, /** 提交按钮 */ submitForm() { @@ -652,7 +627,7 @@ export default { margin-bottom: 15px; margin-left: 10px; } -.center-text { +.center-text { text-align: center; } .report-logo { @@ -660,4 +635,8 @@ export default { margin-left: 15px; height: 38px; } - \ No newline at end of file +.my-print-nav { + margin-top: 15px; + margin-bottom: 15px; +} +