| | |
| | | <el-col></el-col> |
| | | <span style="width: 130px;" class="head-font">预装总成号 : {{headContent.yzSfcCode}}</span> |
| | | </el-row> |
| | | <el-row v-show="showInput" style="margin-top: 20px"> |
| | | <el-button @click="bindYzSfc" type="primary">绑定</el-button> |
| | | |
| | | </el-row> |
| | | <!-- <el-row v-show="showInput" style="margin-top: 20px">--> |
| | | <!-- <el-button @click="bindYzSfc" type="primary">绑定</el-button>--> |
| | | <!-- </el-row>--> |
| | | |
| | | <el-row v-show="onLineBinDing" style="margin-top: 20px"> |
| | | <el-col></el-col> |
| | | <span style="width: 130px;" class="head-font">小车码 : {{headContent.cardCode}}</span> |
| | | </el-row> |
| | | <el-row v-show="onLineBinDing" style="margin-top: 20px"> |
| | | <el-button @click="bindcardCode" type="primary">绑定</el-button> |
| | | </el-row> |
| | | <!-- <el-row v-show="onLineBinDing" style="margin-top: 20px">--> |
| | | <!-- <el-button @click="bindcardCode" type="primary">绑定</el-button>--> |
| | | <!-- </el-row>--> |
| | | </el-card> |
| | | |
| | | </el-col> |
| | |
| | | }, |
| | | methods: { |
| | | bindcardCode(){ |
| | | this.$message('可以绑定!'); |
| | | this.$message('绑定成功!'); |
| | | let param = { |
| | | productNum: this.headContent.sfcCode, |
| | | trolleyYard: this.headContent.cardCode, |
| | |
| | | locationCode: this.headContent.processesCode, |
| | | yzSfcCode: this.headContent.yzSfcCode |
| | | } |
| | | this.$message('可以绑定!'); |
| | | replaceAssemblyCode(param).then(response => { |
| | | |
| | | this.$message('绑定成功!'); |
| | | }); |
| | | } |
| | | }, |
| | |
| | | if(this.headContent.sfcCode !== ''){ |
| | | if(scanValue.includes("P9900173252")){ |
| | | this.headContent.yzSfcCode = scanValue |
| | | }else if(scanValue.includes("RSP01TE")){ |
| | | this.bindYzSfc(); |
| | | }else if(scanValue.includes("0RSP1TE")){ |
| | | this.headContent.cardCode = scanValue |
| | | this.bindcardCode(); |
| | | }else { |
| | | this.$message('扫描物料编码'+scanValue); |
| | | this.$message('工位终端扫描物料编码'+scanValue); |
| | | console.log(scanValue) |
| | | this.serialPortMethod(scanValue) |
| | | } |