春风项目四线(合箱线、总装线)
yyt
2024-05-22 696fd55ecc1243bce1d421d95cb9fba4b0a598b1
jcdm-ui/src/views/main/kb/crankshaft/index.vue
@@ -3,11 +3,7 @@
    <el-card   class="box-card"  style="height: 60px" >
      <template>
        <div class="container" type="flex" justify="center" style="text-align:center">
          <!--          <el-row   type="flex" justify="center" style="text-align:center;height: 12px" >-->
          <!--            <el-col  type="flex" justify="center"  :span="14" style="text-align:center">-->
          <el-divider><span style="font-size:30px;color:black"><strong>曲轴码扫码上线</strong></span></el-divider>
          <!--            </el-col>-->
          <!--          </el-row>-->
          <el-divider><span style="font-size:30px;color:black"><strong>曲轴扫码上线</strong></span></el-divider>
        </div>
      </template>
    </el-card>
@@ -67,6 +63,8 @@
               <span   class="el-icon-thumb"   style="font-size:40px;color:black"></span>
               <span style="font-size:45px;color:black"><strong>强制上线</strong></span>
             </el-button>
<!--             <el-button @click="print">打印</el-button>-->
<!--             <el-button @click="test1">生成二维码</el-button>-->
           </el-col>
         </el-row>
       </el-card>
@@ -98,6 +96,7 @@
import {listLineInfo} from "@/api/main/bs/lineInfo/lineInfo";
import { setSNCode } from "@/api/main/da/opcuaconfig/opcuaconfig";
import {getIp, listStationConf} from "@/api/main/sc/stationConf";
import QRCode from "qrcodejs2";
export default {
  components: { },
@@ -213,6 +212,40 @@
    parseQRCode(code) {
      this.form.engineNo = code;
    },
    // print() {
      // 本页面直接打印(有bug单岁先不要删)
      // let oldStr = window.document.body.innerHTML;
      // let newStr = document.getElementById('printMe').innerHTML;
      // document.body.innerHTML = newStr;
      // window.print();
      // document.body.innerHTML = oldStr;
      // return false;
      // 新开页面打印
      //  document.getElementById('canvasWrapper').innerHTML = '';
    //   let newStr = document.getElementById('printMe').innerHTML;
    //   let newWin = window.open('', '_blank');
    //   newWin.document.body.innerHTML = newStr;
    //   newWin.print();
    //   return false;
    // },
    // test1(){
    //   document.getElementById('canvasWrapper').innerHTML = ''
    //   this.$nextTick(() => {
    //     let qrCode = new QRCode('canvasWrapper',{
    //       width: 80,
    //       height: 80,
    //       padding: 0,
    //       margin: 0,
    //       // text: this.packCode,
    //       text:"88888",
    //       colorDark: '#000',
    //       colorLight: '#fff'
    //     })
    //   })
    //   // console.log(this.packCode)
    //   // this.print()
    // },
  },
  }