| | |
| | | |
| | | <!-- </el-col>--> |
| | | <!-- </el-row>--> |
| | | <!-- <el-row style="margin-top: 20px">--> |
| | | <!-- <el-button @click="Release" type="primary">放行</el-button>--> |
| | | <!-- </el-row>--> |
| | | <el-row style="margin-top: 20px"> |
| | | <el-button @click="Release" type="primary">放行</el-button> |
| | | </el-row> |
| | | </el-card> |
| | | |
| | | </el-col> |
| | |
| | | this.open1 = true |
| | | }, |
| | | Release(){ |
| | | //判断是否可以释放 |
| | | let formulaChildParams = { |
| | | productCode: this.workpieceInformation.productCode, |
| | | processesCode: this.headContent.processesCode |
| | | // this.$message('portsList!'+this.portsList.length); |
| | | if(this.btnType === "danger"){ |
| | | this.$message('连接了!'); |
| | | |
| | | }else { |
| | | this.$message('mei连接了!'); |
| | | |
| | | } |
| | | releaseCheck(formulaChildParams).then(response => { |
| | | if(response.data === 0){ |
| | | //改变状态 |
| | | workpieceRelease(formulaChildParams).then(response => { |
| | | }); |
| | | this.$message('放行成功!'); |
| | | this.formulaChildList = [] |
| | | this.getListFormulaChild() |
| | | // this.resetting() |
| | | }else { |
| | | this.$message('步骤未完成不许放行!'); |
| | | } |
| | | }); |
| | | |
| | | // //判断是否可以释放 |
| | | // let formulaChildParams = { |
| | | // productCode: this.workpieceInformation.productCode, |
| | | // processesCode: this.headContent.processesCode |
| | | // } |
| | | // releaseCheck(formulaChildParams).then(response => { |
| | | // if(response.data === 0){ |
| | | // //改变状态 |
| | | // workpieceRelease(formulaChildParams).then(response => { |
| | | // }); |
| | | // this.$message('放行成功!'); |
| | | // this.formulaChildList = [] |
| | | // this.getListFormulaChild() |
| | | // // this.resetting() |
| | | // }else { |
| | | // this.$message('步骤未完成不许放行!'); |
| | | // } |
| | | // }); |
| | | }, |
| | | serialPortMethod(value){ |
| | | let formulaChildParams = { |