| | |
| | | <el-form ref="form" :model="form" label-width="25%" > |
| | | <el-form-item prop="engineNo" style="margin-top: 16px"> |
| | | <span slot="label" style="font-size:22px;color:black;"><strong>曲轴码</strong></span> |
| | | <el-input style="font-size:20px" v-model="form.engineNo" placeholder="请扫描曲轴码" clearable @input="EngineNohandleChange"> |
| | | <el-input style="font-size:20px" v-model="form.barcode" placeholder="请扫描曲轴码" clearable @input="EngineNohandleChange"> |
| | | <el-button slot="append" plain type="info" @click="EngineNohandleChange" icon="el-icon-search"></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | |
| | | import { listOrderScheduling, getOrderScheduling, delOrderScheduling, addOrderScheduling, updateOrderScheduling } from "@/api/main/bs/orderScheduling/orderScheduling"; |
| | | import { listPassingStationCollection, getPassingStationCollection, delPassingStationCollection, addPassingStationCollection, updatePassingStationCollection } from "@/api/main/da/passingStationCollection/passingStationCollection"; |
| | | import {listLineInfo} from "@/api/main/bs/lineInfo/lineInfo"; |
| | | import { setSNCode } from "@/api/main/da/opcuaconfig/opcuaconfig"; |
| | | import { setBarcode } from "@/api/main/da/opcuaconfig/opcuaconfig"; |
| | | import {getIp, listStationConf} from "@/api/main/sc/stationConf"; |
| | | import QRCode from "qrcodejs2"; |
| | | |
| | |
| | | }, |
| | | // 表单参数 |
| | | form: { |
| | | engineNo: null, |
| | | barcode: null, |
| | | productType:null, |
| | | orderNo:null, |
| | | qualityStatus:null, |
| | |
| | | }, |
| | | reset() { |
| | | this.form = { |
| | | engineNo:null, |
| | | barcode:null, |
| | | productType:null, |
| | | orderNo:null, |
| | | qualityStatus:null, |
| | |
| | | this.resetForm("form"); |
| | | }, |
| | | EngineNohandleChange(){ |
| | | if(this.form.engineNo !== null && this.form.engineNo !== undefined){ |
| | | setSNCode(this.form.engineNo,this.locationCode) |
| | | |
| | | if(this.form.barcode !== null && this.form.barcode !== undefined){ |
| | | setBarcode(this.form.barcode,this.locationCode) |
| | | } |
| | | }, |
| | | parseQRCode(code) { |