From 7fca02745d606514a22dc2f4673e3ea1475495b6 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期二, 30 一月 2024 16:54:52 +0800 Subject: [PATCH] 质检报告修改 --- src/views/quality/Packaging_ledger/index.vue | 34 +++++++++++++++++----------------- 1 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/views/quality/Packaging_ledger/index.vue b/src/views/quality/Packaging_ledger/index.vue index 462b53e..d72861a 100644 --- a/src/views/quality/Packaging_ledger/index.vue +++ b/src/views/quality/Packaging_ledger/index.vue @@ -139,13 +139,13 @@ </basic-container> <el-dialog title="鏍囩鍒楄〃" top="5vh" :visible.sync="diaPrintTab" width="500px"> <div style="width:100%;height: 400px;overflow-y: auto;"> - <div id="qrCard" class="dia_body"> - <el-card class="box-card" v-for="(item, i) in qrData" :key="i" style="margin-bottom: 10px;"> - <div style="padding: 5px;"> + <div class="dia_body" id="qrCard"> + <el-card v-for="(item, i) in qrData" :key="i" > + <div> <table border="2px" class="x1111116"> <tr class="x1111113"> <td class="x1111114" colspan=6> - <div style="height: 75px;display: flex;margin-top: 2px;"> + <div style="height: 60px;display: flex;margin-top: 4px;"> <div style="margin-top: 5px;"> <img width="150" height="48" src="../../../../public/img/image001.jpg" alt="IMG_256"> </div> @@ -157,9 +157,9 @@ </tr> <tr class="x1111117"> <td class="x1111114"> - <span style="font-family: 瀹嬩綋;text-align: center;">搴� 鍙�:</span> + <span style="font-family: 瀹嬩綋;text-align: center;">鍖� 瑁� 浜�:</span> </td> - <td class="x1111114" colspan=4 >{{ i + 1 }} </td> + <td class="x1111114" colspan=4 >{{ item.createUser }} </td> <td class="x1111114" rowspan=3 > <div style="padding: 1px;"> <vueQr :text=str+item.packageBoxId :size="110" :margin="1"></vueQr> @@ -177,7 +177,6 @@ <span style="font-family: 瀹嬩綋;text-align: center;">鍚� 鍚� 鍙凤細</span> </td> <td class="x1111114" colspan=4>{{ item.contractNo }}</td> - </tr> <tr class="x1111113"> <td class="x1111114" colspan=6> @@ -396,7 +395,7 @@ }, methods: { //鍖呰璇︽儏 - + //鎵撳嵃鎸夐挳 printFun() { this.diaPrintTab = false; @@ -408,16 +407,16 @@ style: `@page { margin:0; padding: 0; - size: 360px 170px; + size: 323px 210px; } html{ zoom:100%; } @media print{ - width: 360px; - height: 170px; - margin:0; - padding: 0; + width: 323px; + height: 210px; + margin:7cm 0mm 0mm 0mm; + padding: 0mm 10mm; }`, onPrintDialogClose: this.erexcel=false, targetStyles: ["*"], // 浣跨敤dom鐨勬墍鏈夋牱寮忥紝寰堥噸瑕� @@ -436,10 +435,11 @@ } this.diaPrintTab = true this.multipleSelection.forEach(item=>{ - let obj = { + const obj = { packageNo: item.packageNo, contractNo: item.contractNo, - packageBoxId:item.id + packageBoxId:item.id, + createUser:item.createUser } this.qrData.push(obj) }) @@ -550,8 +550,8 @@ } .x1111116{ border: 1px solid black; - height: 220px; - width: 450px; + height: 200px; + width: 445px; } .x1111114{ border: 1px solid black; -- Gitblit v1.9.3