| | |
| | | <span>{{queryParams.scanObject2}}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="结果"> |
| | | <span style="color: #FFFFFF;" :style="{ backgroundColor: queryParams.tileColor }">{{queryParams.tileColor}}</span> |
| | | <span style="color: #FFFFFF;" :style="{ backgroundColor: queryParams.tileColor }">{{queryParams.words}}</span> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <el-divider></el-divider> |
| | |
| | | import VueQr from 'vue-qr' |
| | | import { listTileMatchRules, getTileMatchRules, delTileMatchRules, addTileMatchRules, updateTileMatchRules } from "@/api/main/bs/tileMatchRules/tileMatchRules"; |
| | | import {listStationConf,getIp} from "@/api/main/sc/stationConf"; |
| | | import {setBarcodeup} from "@/api/main/da/tileMatchMiddleware/tileMatchMiddleware"; |
| | | export default { |
| | | name: "index", |
| | | dicts: ['colour_hex','productseries','axisname','neckname','tilename'], |
| | |
| | | productSeries: null, |
| | | scanObject1: null, |
| | | //scanObject1: 'P0SQ0-01FZ01-1000;T231224116;DBBBBA', |
| | | scanObject2: "", |
| | | scanObject2: null, |
| | | axisName: null, |
| | | neckName: null, |
| | | tileName: null, |
| | |
| | | neckParameterPosition: null, |
| | | axisValue: null, |
| | | neckValue: null, |
| | | words:"", |
| | | tileColor: null, |
| | | createUser: null, |
| | | updateUser: null, |
| | |
| | | this.from.scanObject2 = inputValue |
| | | if (event.key === 'Enter'){ |
| | | this.scannerFlag = true |
| | | console.log('条码:',this.from.scanObject2) |
| | | //扫描完成 |
| | | if (typeof this.from.scanObject2 !== 'undefined'&& typeof this.locationCode !== 'undefined' ) { |
| | | setBarcodeup({barcode:this.from.scanObject2,locationCode:this.locationCode}).then(res => { |
| | | if (res===''){ |
| | | this.$message({ |
| | | message:res.msg, |
| | | type:'warning' |
| | | }) |
| | | }else { |
| | | this.$message({ |
| | | message:'操作成功', |
| | | type:'success' |
| | | }) |
| | | console.log('返回:',res) |
| | | this.queryParams.productSeries=res.sfcCode; |
| | | this.queryParams.scanObject1=res.connectingRodNo; |
| | | this.queryParams.scanObject2=res.PalletNo; |
| | | this.queryParams.words="扫码成功"; |
| | | this.queryParams.tileColor='#00FF00'; |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | |