Merge remote-tracking branch 'origin/master'
| | |
| | | ENV = 'development' |
| | | |
| | | # base api |
| | | VUE_APP_BASE_API = 'http://localhost:1234/' |
| | | VUE_APP_BASE_API = 'http://192.168.137.138:1234/' |
| | |
| | | </template> |
| | | <script> |
| | | export default({ |
| | | name: 'Preview', |
| | | data() { |
| | | return { |
| | | logoSrc : require("@/assets/404_images/logo.png"), |
ÎļþÃû´Ó src/views/template_testReport/index.vue ÐÞ¸Ä |
| | |
| | | <div class="name"> |
| | | <div style="width:140px; text-align-last: justify;"> |
| | | <div>å§æåä½</div> |
| | | <span style="font-size: 14px;display: block;margin: 10px 50px 0px;">Client</span> |
| | | <span style="font-size: 14px;display: block;margin: 10px 45px 0px;">Client</span> |
| | | </div> |
| | | <div class="line"> æµè¯åç§°</div> |
| | | </div> |
| | |
| | | |
| | | <script> |
| | | export default { |
| | | props:{ |
| | | |
| | | }, |
| | | name:'TestReport', |
| | | props:["reportData"], |
| | | data(){ |
| | | return { |
| | | resultTable:[ |
| | |
| | | |
| | | <style lang="scss" scoped> |
| | | .content-wrapper{ |
| | | background-color: #f0f2f5; |
| | | width: 100%; |
| | | height: 100vh; |
| | | overflow-y: auto; |
| | | // background-color: #f0f2f5; |
| | | // width: 100%; |
| | | // height: 100vh; |
| | | // overflow-y: auto; |
| | | .content-main{ |
| | | margin: -50px auto; |
| | | width: 50%; |
| | | // background-color: #fff; |
| | | // background-color: #bfa; |
| | | margin: -100px auto; |
| | | width: 90%; |
| | | .cover{ |
| | | margin: 80px 0px; |
| | | padding:0px 50px; |
| | |
| | | <el-button type="primary" @click="printFun()">æå°</el-button> |
| | | </span> |
| | | <div class="printStyle"> |
| | | <preview id="printDiv" :reportData="reportData" v-if="reportType===0"></preview> |
| | | <div v-else>æåæ£æµæ¥å</div> |
| | | <Preview id="printRaw" :reportData="reportData" v-if="reportType===0"></Preview> |
| | | <TestReport id="printFinished" :reportData="reportData" v-else></TestReport> |
| | | </div> |
| | | </el-dialog> |
| | | <div class="table-box"> |
| | |
| | | <script> |
| | | import { selectAllReport,getReportData } from "@/api/experiment/checkTheReport"; |
| | | import Preview from "@/components/experiment/checkTheReport/index.vue"; |
| | | import TestReport from "@/components/experiment/template_testReport/index.vue" |
| | | import PrintJS from 'print-js' |
| | | export default { |
| | | data() { |
| | |
| | | application_code: '' |
| | | }, |
| | | checkStatus: undefined, |
| | | reportTable: [], |
| | | reportTable: [ |
| | | { |
| | | materialCode:'SN23-0517001', |
| | | reportCode: 'SN23-0517001', |
| | | inspectionCode: 'SN23-0517001', |
| | | approver:'é»å°æ', |
| | | status: '', |
| | | conclusion: 1, |
| | | name: 'é»å°æ' |
| | | }, |
| | | { |
| | | materialCode:'SN23-0517001', |
| | | reportCode: 'SN23-0517001', |
| | | inspectionCode: 'SN23-0517001', |
| | | approver:'é»å°æ', |
| | | status: '', |
| | | conclusion: 1, |
| | | name: 'é»å°æ' |
| | | } |
| | | ], |
| | | page: 1, |
| | | total: 0, |
| | | pageSize: 10, |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getData(); |
| | | // this.getData(); |
| | | }, |
| | | mounted(){ |
| | | }, |
| | | components:{ |
| | | Preview |
| | | Preview, |
| | | TestReport |
| | | }, |
| | | methods: { |
| | | async queryReportByRCode(code){ |
| | |
| | | }, |
| | | //æ¥çæ¥åæé® |
| | | previewFun(row){ |
| | | console.log(row) |
| | | this.reportType = row.type; |
| | | this.queryReportByRCode(row.reportCode); |
| | | }, |
| | |
| | | printFun(){ |
| | | this.dialogVisible = false; |
| | | PrintJS({ |
| | | printable: "printDiv", |
| | | printable: this.reportType===0 ? "printRaw" : "printFinished", |
| | | type: "html", |
| | | // header: "åæææ£æµæ¥å", |
| | | targetStyles: ["*"], |
| | |
| | | <el-form-item label="æå±åç±»ï¼" prop="classifyId" label-width="80" :rules="[ |
| | | { required: true, message: 'è¯·éæ©æå±åç±»', trigger: 'change' } |
| | | ]"> |
| | | <el-cascader v-model="equipmentform.classifyId" :options="classTree" :show-all-levels="false" /> |
| | | <el-cascader style="width: 100%;" v-model="equipmentform.classifyId" :options="classTree" :show-all-levels="false" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="11"> |