| | |
| | | <div style="width: 100%;height: 100%;" v-if="active >0"> |
| | | <Add :active="active" :currentId="currentId" v-if="active<4" :examine = "examine" /> |
| | | </div> |
| | | <el-dialog title="æ ç¾æå°" :visible.sync="printDialogVisible" width="38%" top="5vh"> |
| | | <div style="width:100%;height: 400px;overflow-y: auto;" v-loading="loadPint"> |
| | | <div class="dia_body"> |
| | | <el-checkbox |
| | | style="margin: 10px 5px;" |
| | | :indeterminate="isIndeterminate" |
| | | v-model="checkAll" |
| | | @change="handleCheckAllChange">å
¨é</el-checkbox> |
| | | <el-checkbox-group @change="changePrintCode()" v-model="checkIndexList"> |
| | | <el-card class="box-card" v-for="(item, i) in qrData" :key="i+'wwwww'" style="margin-bottom: 15px; font-size: 16px !important;"> |
| | | <el-checkbox :label="i" :key="i" style="position: relative;top:-10px;left:5px"><br></el-checkbox> |
| | | <div> |
| | | <p style="text-align: center;font-size: 18px;font-weight: 700;">{{ item.sample }}</p> |
| | | <barcode :value="item.sampleCode" :height="34" :width="2" :displayValue="false" style="display: flex;justify-content: center;width: 100%;"></barcode> |
| | | <div> |
| | | <div style="width: 100%;line-height: 30px;"> |
| | | <el-row style="font-size: 16px;"> |
| | | <el-col :span="16"><span> æ ·åç¼å·: </span>{{ item.sampleCode }}</el-col> |
| | | <el-col :span="8"><span> è§æ ¼åå·: </span>{{ item.model }}</el-col> |
| | | </el-row> |
| | | <el-row style="margin-top: 1px;font-size: 16px;"> |
| | | <el-col :span="16"><span> å§æåå·: </span>{{ item.code }}</el-col> |
| | | <el-col :span="8"><span> çµæºç¼å·: </span>{{ item.motorNumber }}</el-col> |
| | | </el-row> |
| | | <el-row style="margin-top: 1px;font-size: 16px;"> |
| | | <el-col><span> æ ·æºå®ææ¶é´: </span>{{ item.issueTime }}</el-col> |
| | | </el-row> |
| | | <el-row style="margin-top: 1px;font-size: 16px;" class="ellipsis-multiline"> |
| | | <el-col><span> æ£æµé¡¹ç®: </span>{{ item.item }}</el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-card> |
| | | </el-checkbox-group> |
| | | </div> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-row> |
| | | <el-button @click="printDialogVisible=false">å æ¶</el-button> |
| | | <el-button type="primary" @click="submitPrint" :loading="printLoading">æ å°</el-button> |
| | | </el-row> |
| | | </span> |
| | | </el-dialog> |
| | | <div class="el-dialog__body" style="overflow-y: auto;position: fixed;top:0;right: 20px;z-index: 9999;"> |
| | | <div id="printMOrder" class="printMOrder" ref="printMOrder"> |
| | | <el-card class="box-card" v-for="(item, i) in checkDataList" :key="i+'uuuuu'" style="font-size: 16px !important;page-break-after: always;color: #000;box-shadow: none;margin: 0 !important;padding: 0 !important;"> |
| | | <div> |
| | | <p style="text-align: center;font-size: 18px;font-weight: 500;margin-top: 10px;">{{ item.sample }}</p> |
| | | <barcode :value="item.sampleCode" :height="34" :width="2" :displayValue="false" style="display: flex;justify-content: center;width: 100%;"></barcode> |
| | | <div> |
| | | <div style="width: 100%;line-height: 30px;"> |
| | | <el-row style="font-size: 16px;"> |
| | | <el-col :span="16"><span>æ ·åç¼å·: </span>{{ item.sampleCode }}</el-col> |
| | | <el-col :span="7"><span>è§æ ¼åå·: </span>{{ item.model }}</el-col> |
| | | </el-row> |
| | | <el-row style="margin-top: 1px;font-size: 16px;"> |
| | | <el-col :span="16"><span>å§æåå·: </span>{{ item.code }}</el-col> |
| | | <el-col :span="7"><span>çµæºç¼å·: </span>{{ item.motorNumber }}</el-col> |
| | | </el-row> |
| | | <el-row style="margin-top: 1px;font-size: 16px;"> |
| | | <el-col><span>æ ·æºå®ææ¶é´: </span>{{ item.issueTime }}</el-col> |
| | | </el-row> |
| | | <el-row style="margin-top: 1px;font-size: 16px;" class="ellipsis-multiline"> |
| | | <el-col><span>æ£æµé¡¹ç®: </span>{{ item.item }}</el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-card> |
| | | </div> |
| | | </div> |
| | | <el-dialog title="æ ·æºç¼å·" :visible.sync="BZDialogVisible" width="60%"> |
| | | <div class="body" style="max-height: 60vh;" v-if="BZDialogVisible"> |
| | | </div> |
| | |
| | | <el-button type="primary" @click="submitForm3" :loading="upLoad">ç¡® å®</el-button> |
| | | </el-row> |
| | | </span> |
| | | </el-dialog> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import ValueTable from '../tool/value-table.vue' |
| | | import Add from '../do/b1-ins-order/add.vue' |
| | | import vueQr from 'vue-qr' |
| | | import { Header } from 'iview'; |
| | | import PrintJS from 'print-js' |
| | | export default { |
| | | components: { |
| | | ValueTable, |
| | |
| | | more:false, |
| | | insOrderRow:{}, |
| | | checkIndexList:[], |
| | | checkDataList:[ |
| | | { |
| | | sampleCode:'11111' |
| | | } |
| | | ], |
| | | checkDataList:[], |
| | | qrData:[], |
| | | multipleSelection:[], |
| | | sonLaboratoryList:[], |
| | |
| | | a.item = [...new Set(arr1)].join(',') |
| | | }) |
| | | this.qrData = arr |
| | | console.log(this.qrData) |
| | | }) |
| | | }, |
| | | //éæ©è¦æå°çäºç»´ç |
| | |
| | | } |
| | | this.isIndeterminate = false; |
| | | }, |
| | | submitPrint(){ |
| | | if(this.checkDataList.length < 1){ |
| | | this.$message.warning("è¯·éæ©è¦æå°çäºç»´ç ") |
| | | return |
| | | } |
| | | PrintJS({ |
| | | targetStyles: ["*"], // 使ç¨domçæææ ·å¼ï¼å¾éè¦ |
| | | printable: 'printMOrder',//é¡µé¢ |
| | | type: "html",//ææ¡£ç±»å |
| | | maxWidth:360, |
| | | header: '', |
| | | style: |
| | | `@page { |
| | | margin: 0.4cm; |
| | | margin-right: 0.4cm; |
| | | margin-top: 0.4cm; |
| | | margin-bottom: 0.4cm; |
| | | padding-bottom: 0px; |
| | | size: 400px 75px collapse; |
| | | } |
| | | html{ |
| | | zoom:100%; |
| | | |
| | | } |
| | | @media print{ |
| | | width: 400px; |
| | | height: 75px; |
| | | margin:0; |
| | | }`, |
| | | font_size: '0.29cm', |
| | | }); |
| | | }, |
| | | async print(){ |
| | | if(this.multipleSelection.length==0){ |
| | | this.$message.warning('è¯·éæ©ä¸æ¡æ°æ®') |