From 103d02733dba8942af2df34bcab948a10773b6be Mon Sep 17 00:00:00 2001 From: lxp <1928192722@qq.com> Date: 星期四, 08 八月 2024 21:22:02 +0800 Subject: [PATCH] 光纤配置完善 --- src/components/view/b1-inspection-order.vue | 37 ++++++++++++++++++++----------------- 1 files changed, 20 insertions(+), 17 deletions(-) diff --git a/src/components/view/b1-inspection-order.vue b/src/components/view/b1-inspection-order.vue index 158a138..3aee027 100644 --- a/src/components/view/b1-inspection-order.vue +++ b/src/components/view/b1-inspection-order.vue @@ -182,7 +182,7 @@ <div class="search_thing" style="width: 20%;"> <div class="search_label">鏍峰搧鍚嶇О锛�</div> <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable - v-model="componentData.entity.sample" @keyup.enter.native="refreshTable()"></el-input></div> + v-model="componentData.entity.sampleName" @keyup.enter.native="refreshTable()"></el-input></div> </div> <div class="search_thing" style="width: 20%;"> <div class="search_label">鏍峰搧鍨嬪彿锛�</div> @@ -340,7 +340,7 @@ </el-dialog> </div> <div style="width: 100%;height: 100%;" v-if="active >0"> - <Add :active="active" :currentId="currentId" v-if="active<4" /> + <Add :active="active" :currentId="currentId" v-if="active<4" :examine = "examine" /> </div> <el-dialog title="鏍囩鎵撳嵃" :visible.sync="printDialogVisible" width="40%" top="5vh"> <div style="width:100%;height: 400px;overflow-y: auto;" v-loading="loadPint"> @@ -374,7 +374,7 @@ <el-col style="font-weight: bold;"><span>瑙勬牸鍨嬪彿: </span>{{ item.model }}</el-col> </el-row> <el-row style="margin-top: 1px;font-size: 14px;"> - <el-col style="font-weight: bold;"><span>鏍峰搧鍚嶇О: </span>{{ item.sampleName }}</el-col> + <el-col style="font-weight: bold;"><span>鏍峰搧鍚嶇О: </span>{{ item.sample }}</el-col> </el-row> <el-row style="margin-top: 1px;font-size: 14px;" class="ellipsis-multiline"> <el-col style="font-weight: bold;"><span>妫�娴嬮」鐩�: </span>{{ item.item }}</el-col> @@ -401,31 +401,31 @@ </span> </el-dialog> <div class="el-dialog__body" style="overflow-y: auto;margin-top: 0;position: fixed;top: 999px;z-index: 99999;display: none;"> - <div id="printMOrder" class="printMOrder"> - <el-card class="box-card" v-for="(item, i) in checkDataList" :key="i" style="font-size: 0.16cm !important;page-break-after: always;color: #000;box-shadow: none;margin: 0 !important;padding: 0 !important;"> + <div id="printMOrder" class="printMOrder" ref="printMOrder"> + <el-card class="box-card" v-for="(item, i) in checkDataList" :key="i" style="font-size: 0.20cm !important;page-break-after: always;color: #000;box-shadow: none;margin: 0 !important;padding: 0 !important;"> <div style="display: flex;"> <div> <el-col :span="10" :offset="2"> <vueQr :text="JSON.stringify(item.sampleCode)" :size="60" :margin="2"></vueQr> </el-col> </div> - <div style="margin-left: 0.32cm;line-height: 0.21cm;"> + <div style="margin-left: 0.32cm;line-height: 0.22cm;"> <el-row> - <el-col style="font-size: 0.16cm;"><span>鏍峰搧缂栧彿: </span>{{ item.sampleCode }}</el-col> + <el-col style="font-size: 0.20cm;width: 4cm;" class="single-line-ellipsis"><span>鏍峰搧缂栧彿: </span>{{ item.sampleCode }}</el-col> </el-row> - <el-row style="font-size: 0.16cm;"> + <el-row style="font-size: 0.20cm;"> <el-col><span>濮旀墭鍗曞彿: </span>{{ item.code }}</el-col> </el-row> - <el-row style="font-size: 0.16cm;"> + <el-row style="font-size: 0.20cm;"> <el-col><span>瑙勬牸鍨嬪彿: </span>{{ item.model }}</el-col> </el-row> - <el-row style="font-size: 0.16cm;"> - <el-col ><span>鏍峰搧鍚嶇О: </span>{{ item.sampleName }}</el-col> + <el-row style="font-size: 0.20cm;"> + <el-col ><span>鏍峰搧鍚嶇О: </span>{{ item.sample }}</el-col> </el-row> - <el-row style="font-size: 0.16cm;width: 5.6cm;"> + <el-row style="font-size: 0.20cm;width: 4cm;"> <el-col class="ellipsis-multiline"><span>妫�娴嬮」鐩�: </span>{{ item.item }}</el-col> </el-row> - <el-row style="margin-top: 0.01cm;font-size: 0.16cm;"> + <el-row style="margin-top: 0.01cm;font-size: 0.20cm;"> <el-col style="display: flex;align-items: center;"><span>鏍峰搧鐘舵��: </span> <span style="white-space: nowrap;"><span v-if="item.insState==0">鈭�</span><span class="scor" v-if="item.insState!=0"></span>寰呮 @@ -461,6 +461,7 @@ data() { return { deleteTilte:'鎾ら攢', + examine: null, deleteList:[], loadPint:false, checkAll: false, @@ -818,7 +819,7 @@ targetStyles:['*'], style: `@page { margin:0; - size: 360px 175px collapse; + size: 400px 75px collapse; margin-top:3px; &:first-of-type{ margin-top:0 !important; @@ -828,13 +829,13 @@ zoom:100%; } @media print{ - width: 360px; - height: 175px; + width: 400px; + height: 75px; margin:0; }`, onPrintDialogClose: this.erexcel=false, targetStyles: ["*"], // 浣跨敤dom鐨勬墍鏈夋牱寮忥紝寰堥噸瑕� - font_size: '0.16cm', + font_size: '0.20cm', }); }, print(){ @@ -952,6 +953,7 @@ // this.verifyDialogVisible = true; this.active = 3; this.currentId = row.id + this.examine = 1 }, // 鎾ら攢 handlEquash(row) { @@ -1112,6 +1114,7 @@ // 涓嬪崟 playOrder(num) { this.active = num + this.examine = 0 this.refreshTable('page') }, handleTab(m, i) { -- Gitblit v1.9.3