jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/controller/BsFormulaChildInfoController.java
@@ -102,7 +102,8 @@ stepNumber = Integer.valueOf(filteredList.get(filteredList.size()-1).getStepSort())+1; } String str = "PACK."+bsFormulaChildInfo.getProcessesCode()+".MStepNumber"; String thoroughfare = Constants.thoroughfareMap.get(bsFormulaChildInfo.getLocationCode());//获取通道 String str = thoroughfare+"."+bsFormulaChildInfo.getProcessesCode()+".MESScrew"; miloService.writeToOpcShort(ReadWriteEntity.builder().identifier(str).value(stepNumber).build()); } catch (Exception e) { throw new RuntimeException(e); jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/service/impl/BsFormulaChildInfoServiceImpl.java
@@ -17,6 +17,7 @@ import com.jcdm.common.utils.DateUtils; import com.jcdm.common.utils.StringUtils; import com.jcdm.framework.websocket.WebSocketUsers; import com.jcdm.main.constant.Constants; import com.jcdm.main.da.paramCollection.domain.DaParamCollection; import com.jcdm.main.da.paramCollection.mapper.DaParamCollectionMapper; import com.jcdm.main.da.paramCollection.service.IDaParamCollectionService; @@ -636,7 +637,8 @@ Integer stepNumber = Integer.valueOf(bsFormulaChildInfo.getStepSort()); try { miloService.writeToOpcShort(ReadWriteEntity.builder().identifier("PACK."+bsFormulaChildInfo.getLocationCode()+".MStepNumber").value(stepNumber+1).build()); String thoroughfare = Constants.thoroughfareMap.get(bsFormulaChildInfo.getLocationCode());//获取通道 miloService.writeToOpcShort(ReadWriteEntity.builder().identifier(thoroughfare+"."+bsFormulaChildInfo.getLocationCode()+".MESScrew").value(stepNumber+1).build()); } catch (Exception e) { throw new RuntimeException(e); } jcdm-main/src/main/java/com/jcdm/main/plcserver/CustomRunner.java
@@ -54,8 +54,8 @@ public void run(ApplicationArguments args) throws Exception { //PLC到MES物料转换 Constants.materialMap.put("1","9900199052A"); Constants.materialMap.put("2","9900199053B"); Constants.materialMap.put("1","9900200461");//微卡电驱动系统总成 Constants.materialMap.put("2","9900207783");//微面电驱动系统总成 //通道 Constants.thoroughfareMap.put(Constants.OP010,"JCDM035-1"); jcdm-ui/src/views/main/kb/stationTerminal/index.vue
@@ -469,7 +469,7 @@ console.log("进入最终方法") self.endSaveData(param) } else if(event.data.includes("productNum")){ } else if(event.data.includes("productNum")){//产品序列号 let productNum = event.data.split(',')[1]; self.headContent.sfcCode = productNum; self.queryParams.productNum = productNum; @@ -478,6 +478,53 @@ self.cakeLamp.startWork = 1 self.cakeLamp.InPlace = 1 }else if (event.data.includes("[")) {//拧紧 let formulaChilds = ""; self.formulaChildList.sort((a, b) => a.stepSort - b.stepSort); self.formulaChildList .filter((formulaChild) => formulaChild.operationType === '1'); for (let i = 0; i < self.formulaChildList.length; i++) { let formulaChild = self.formulaChildList[i]; let results = formulaChild.results; if (results === '' || results === null || results === 'NG') { formulaChilds = formulaChild; break; } } if(formulaChilds === ""){ self.$message.error('本工位已工作完成!'); return; } const param = { id: formulaChilds.id, tightenTheArray: event.data, paramCode: formulaChilds.paramCode, workOrderNo: self.workpieceInformation.workOrderNo, productCode: self.workpieceInformation.productCode, locationCode: self.headContent.processesCode, productBarcode: self.headContent.sfcCode, spareField1: formulaChilds.spareField1, spareField2: formulaChilds.spareField2, spareField3: formulaChilds.spareField3, spareField4: formulaChilds.spareField4, stepSort: formulaChilds.stepSort, ngTimes: formulaChilds.ngTimes, } if(formulaChilds.paramCode === null||formulaChilds.paramCode ===''){ self.$message('未找到参数码,请检查参数码是否正确'); return; } self.formulaChildParams.artificialNgFlag = null console.log("self.formulaChildParams.artificialNgFlag"+self.formulaChildParams.artificialNgFlag) if(self.headContent.sfcCode!==null||self.headContent.sfcCode!==''){ updateTighteningFormula(param).then(response => { //addTighteningParameters(param).then(response => {}); self.getListFormulaChild() }).catch(error =>{ self.getListFormulaChild() }); } } }; },