| | |
| | | engineCheckList:[], |
| | | showFlag:false, |
| | | buttondisabled:true, |
| | | locationCode: "未配置工位", |
| | | locationCode: "未配置IP", |
| | | locationName: "未配置工位", |
| | | |
| | | scannerFlag: false, |
| | |
| | | this.scannerFlag = true |
| | | console.log("条码:",this.form.engineNo) |
| | | if(this.form.engineNo !== null && this.form.engineNo !== undefined) { |
| | | addPassingStationCollection({sfcCode:this.form.engineNo,locationCode:this.locationCode}).then(res =>{ |
| | | console.log("rrrrr",res) |
| | | }) |
| | | if(this.locationCode === 'BCOP040'|| this.locationCode === 'BCOP060'|| this.locationCode === 'BCOP100'|| this.locationCode === 'BP020' ){ |
| | | console.log("条码2:",this.locationCode) |
| | | initializedData({sfcCode:this.form.engineNo,locationCode:this.locationCode}).then(res =>{ |
| | | if(res.code===500){ |
| | | this.$createElement; |
| | | }else { |
| | | addPassingStationCollection({sfcCode:this.form.engineNo,locationCode:this.locationCode}).then(res =>{ |
| | | console.log("rrrrr",res)}) |
| | | this.$message({ |
| | | message: '扫码成功', |
| | | type: 'success' |
| | | }); |
| | | } |
| | | }) |
| | | } |
| | | }else{ |
| | | this.reset(); |
| | | this.buttondisabled = true |