Merge branch 'master' of http://10.153.19.25:10105/r/YiWuProject
| | |
| | | emptymissions:'空任务', |
| | | advancetask:'进片任务', |
| | | outputtasks:'出片任务', |
| | | schedulingtasks:'调度任务', |
| | | advancerequests:'进片请求', |
| | | releaserequest:'出片请求', |
| | | straighttasks:'直通任务', |
| | | endingtask:'结束', |
| | | another:'其他', |
| | |
| | | emptymissions:'空任务', |
| | | advancetask:'进片任务', |
| | | outputtasks:'出片任务', |
| | | schedulingtasks:'调度任务', |
| | | advancerequests:'进片请求', |
| | | releaserequest:'出片请求', |
| | | straighttasks:'直通任务', |
| | | endingtask:'结束', |
| | | another:'其他', |
| | |
| | | emptymissions:'空任务', |
| | | advancetask:'进片任务', |
| | | outputtasks:'出片任务', |
| | | schedulingtasks:'调度任务', |
| | | advancerequests:'进片请求', |
| | | releaserequest:'出片请求', |
| | | straighttasks:'直通任务', |
| | | endingtask:'结束', |
| | | another:'其他', |
| | |
| | | return 'warning'; |
| | | case 3: |
| | | return 'success'; |
| | | case 4: |
| | | return 'danger'; |
| | | case 5: |
| | | return 'primary'; |
| | | } |
| | | } |
| | | function getStatusText1(taskType) { |
| | | switch (taskType) { |
| | | case 1: |
| | | return t('film.stocke');//入库 |
| | | return t('sorter.advancetask');//进片任务 |
| | | case 2: |
| | | return t('film.outbound');//出库 |
| | | return t('sorter.outputtasks');//出片任务 |
| | | case 3: |
| | | return t('film.dispatch');//调度 |
| | | return t('sorter.schedulingtasks');//调度任务 |
| | | case 4: |
| | | return t('sorter.advancerequests');//进片请求 |
| | | case 5: |
| | | return t('sorter.releaserequest');//出片请求 |
| | | } |
| | | } |
| | | function getStatusType2(taskState) { |
| | |
| | | <el-option :label="$t('film.fail')" value="2"></el-option> |
| | | </el-select> |
| | | <el-select v-model="selectValuesa[1]" clearable :placeholder="$t('film.tasktype')" style="margin-left: 10px;" > |
| | | <el-option :label="$t('film.stocke')" value="1"></el-option> |
| | | <el-option :label="$t('film.outbound')" value="2"></el-option> |
| | | <el-option :label="$t('film.dispatch')" value="3"></el-option> |
| | | <el-option :label="$t('sorter.advancetask')" value="1"></el-option> |
| | | <el-option :label="$t('sorter.outputtasks')" value="2"></el-option> |
| | | <el-option :label="$t('sorter.schedulingtasks')" value="3"></el-option> |
| | | <el-option :label="$t('sorter.advancerequests')" value="4"></el-option> |
| | | <el-option :label="$t('sorter.releaserequest')" value="5"></el-option> |
| | | </el-select> |
| | | <el-button type="primary" style="margin-left: 10px;" @click="selectReportData()">{{ $t('film.inquire') }}</el-button> |
| | | </div> |
| | |
| | | glassId: currentGlassId.value, |
| | | // temperingFeedSequence: currenttemperingFeedSequence.value, |
| | | line: 4001, |
| | | status: 8, |
| | | state: 8, |
| | | workingProcedure: '钢化', |
| | | }) |
| | | if (response.code == 200) { |
| | |
| | | const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', { |
| | | glassId: currentGlassId.value, |
| | | line: 4001, |
| | | status: 8, |
| | | state: 8, |
| | | workingProcedure: '钢化', |
| | | }) |
| | | if (response.code == 200) { |
| | |
| | | const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', { |
| | | glassId: currentGlassId.value, |
| | | line: 4001, |
| | | status: 8, |
| | | state: 8, |
| | | workingProcedure: '钢化', |
| | | }) |
| | | if (response.code == 200) { |
| | |
| | | const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', { |
| | | glassId: currentGlassId.value, |
| | | line: 4001, |
| | | status: 9, |
| | | state: 9, |
| | | workingProcedure: '钢化', |
| | | }) |
| | | if (response.code == 200) { |
| | |
| | | const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', { |
| | | glassId: currentGlassId.value, |
| | | line: 4001, |
| | | status: 1, |
| | | state: 1, |
| | | workingProcedure: '钢化', |
| | | }) |
| | | if (response.code == 200) { |
| | |
| | | const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', { |
| | | glassId: currentGlassId.value, |
| | | line: 4001, |
| | | status: 9, |
| | | state: 9, |
| | | workingProcedure: '钢化', |
| | | }) |
| | | if (response.code == 200) { |
| | |
| | | const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', { |
| | | glassId: currentGlassId.value, |
| | | line: 4001, |
| | | status: 9, |
| | | state: 9, |
| | | workingProcedure: '钢化', |
| | | }) |
| | | if (response.code == 200) { |
| | |
| | | const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', { |
| | | glassId: currentGlassId.value, |
| | | line: 4001, |
| | | status: 9, |
| | | state: 9, |
| | | workingProcedure: '钢化', |
| | | }) |
| | | if (response.code == 200) { |
| | |
| | | const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', { |
| | | glassId: currentGlassId.value, |
| | | line: 4001, |
| | | status: 3, |
| | | state: 3, |
| | | workingProcedure: '钢化', |
| | | }) |
| | | if (response.code == 200) { |
| | |
| | | <div style="display: flex;"> |
| | | <el-input v-model="flowCardId" style="margin-left: 10px;margin-bottom: 10px;width: 240px;" :placeholder="$t('searchOrder.incardnumber')" /> |
| | | <el-input v-model="filmsId" style="margin-left: 10px;margin-bottom: 10px;width: 240px;" :placeholder="$t('film.infilms')"/> |
| | | <el-input v-model="thickness" style="margin-left: 10px;margin-bottom: 10px;width: 240px;" :placeholder="$t('searchOrder.inthickness')"/> |
| | | <el-button type="primary" style="margin-left: 10px;margin-bottom: 10px;" @click="fetchFlowCardsearch"> |
| | | {{$t('reportmanage.inquire')}}</el-button> |
| | | </div> |
| | |
| | | const rightRemove = ref('') |
| | | const topRemove = ref('') |
| | | const filmsId = ref('') |
| | | const thickness = ref('') |
| | | const flowCardId = ref('') |
| | | const casFour = ref('') |
| | | const casOne = ref('') |
| | |
| | | const response = await request.post('/hollowGlass/hollowGlassRelationInfo/queryHollowAllFlowCard',{ |
| | | filmsId: '', |
| | | flowCardId: '', |
| | | thickness: '', |
| | | }); |
| | | if (response.code == 200) { |
| | | ElMessage.success(response.message); |
| | |
| | | const response = await request.post('/hollowGlass/hollowGlassRelationInfo/queryHollowAllFlowCard',{ |
| | | filmsId: filmsId.value, |
| | | flowCardId: flowCardId.value, |
| | | thickness: thickness.value |
| | | }); |
| | | if (response.code == 200) { |
| | | ElMessage.success(response.message); |
| | |
| | | <div style="display: flex;"> |
| | | <el-input v-model="flowCardId" style="margin-left: 10px;margin-bottom: 10px;width: 240px;" :placeholder="$t('searchOrder.incardnumber')" /> |
| | | <el-input v-model="filmsId" style="margin-left: 10px;margin-bottom: 10px;width: 240px;" :placeholder="$t('film.infilms')"/> |
| | | <el-input v-model="thickness" style="margin-left: 10px;margin-bottom: 10px;width: 240px;" :placeholder="$t('searchOrder.inthickness')"/> |
| | | <el-button type="primary" style="margin-left: 10px;margin-bottom: 10px;" @click="fetchFlowCardsearch"> |
| | | {{$t('reportmanage.inquire')}}</el-button> |
| | | </div> |
| | |
| | | const filmRemove = ref('') |
| | | const formulaName = ref('') |
| | | const leftRemove = ref('') |
| | | const thickness = ref('') |
| | | const rightRemove = ref('') |
| | | const topRemove = ref('') |
| | | const filmsId = ref('') |
| | |
| | | const response = await request.post('/hollowGlass/hollowGlassRelationInfo/queryHollowAllFlowCard',{ |
| | | filmsId: '', |
| | | flowCardId: '', |
| | | thickness: '', |
| | | }); |
| | | if (response.code == 200) { |
| | | ElMessage.success(response.message); |
| | |
| | | const response = await request.post('/hollowGlass/hollowGlassRelationInfo/queryHollowAllFlowCard',{ |
| | | filmsId: filmsId.value, |
| | | flowCardId: flowCardId.value, |
| | | thickness: thickness.value |
| | | }); |
| | | if (response.code == 200) { |
| | | ElMessage.success(response.message); |
New file |
| | |
| | | package com.mes.bigstoragecagetask.entity; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author : zhoush |
| | | * @Date: 2025/3/3 15:05 |
| | | * @Description: |
| | | */ |
| | | @Data |
| | | public class BigStorageTaskVO extends BigStorageCageTask{ |
| | | |
| | | /** |
| | | * 是否相同 |
| | | */ |
| | | private int isSame; |
| | | } |
| | |
| | | |
| | | @Override |
| | | public String deleteWarehousing(Long slotId) { |
| | | update(new LambdaUpdateWrapper<RawGlassStorageDetails>().eq(RawGlassStorageDetails::getSlot, slotId) |
| | | .eq(RawGlassStorageDetails::getState, Const.RAW_GLASS_STATE_OUT) |
| | | .set(RawGlassStorageDetails::getState, Const.RAW_GLASS_STATE_IN)); |
| | | remove(new LambdaUpdateWrapper<RawGlassStorageDetails>().eq(RawGlassStorageDetails::getSlot, slotId) |
| | | .eq(RawGlassStorageDetails::getState, Const.RAW_GLASS_STATE_IN)); |
| | | return "success"; |
| | | } |
| | | |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.kangaroohy.milo.model.ReadWriteEntity; |
| | | import com.kangaroohy.milo.service.MiloService; |
| | | import com.mes.bigstorage.entity.BigStorageCageDetails; |
| | | import com.mes.bigstorage.service.BigStorageCageDetailsService; |
| | | import com.mes.bigstorage.service.BigStorageCageService; |
| | | import com.mes.bigstoragecagetask.entity.BigStorageCageTask; |
| | | import com.mes.bigstoragecagetask.entity.BigStorageTaskVO; |
| | | import com.mes.bigstoragecagetask.service.BigStorageCageTaskService; |
| | | import com.mes.common.config.Const; |
| | | import com.mes.glassinfo.service.GlassInfoService; |
| | | import com.mes.temperingglass.entity.TemperingGlassInfo; |
| | | import com.mes.temperingglass.service.TemperingGlassInfoService; |
| | |
| | | |
| | | try{ |
| | | //进片任务数据 |
| | | List<BigStorageCageTask> inTaskList = new ArrayList(); |
| | | List<BigStorageTaskVO> inTaskList = new ArrayList(); |
| | | ReadWriteEntity fromOpcUa = miloService.readFromOpcUa("DLP1A.DLP1A.FROM1"); |
| | | for (int i = 1; i <= 6; i++) { |
| | | ReadWriteEntity requestWord = miloService.readFromOpcUa("DLP1A.DLP1A.DI" + i); |
| | | ReadWriteEntity targetSlotWord = miloService.readFromOpcUa("DLP1A.DLP1A.TO" + i); |
| | | ReadWriteEntity stateWord = miloService.readFromOpcUa("DLP1A.DLP1A.STATE" + i); |
| | | if (null != requestWord.getValue()) { |
| | | BigStorageCageTask task = new BigStorageCageTask(); |
| | | BigStorageTaskVO task = new BigStorageTaskVO(); |
| | | task.setGlassId(requestWord.getValue() + ""); |
| | | int isExistCount = bigStorageCageDetailsService.count(new LambdaQueryWrapper<BigStorageCageDetails>().in(BigStorageCageDetails::getGlassId, task.getGlassId()) |
| | | .in(BigStorageCageDetails::getState, Const.GLASS_STATE_IN_ALL_ZERO)); |
| | | if (isExistCount > 0) { |
| | | task.setIsSame(1); |
| | | } else { |
| | | task.setIsSame(0); |
| | | } |
| | | task.setStartSlot(Integer.parseInt(fromOpcUa.getValue() + "")); |
| | | task.setTargetSlot(Integer.parseInt(targetSlotWord.getValue() + "")); |
| | | task.setTaskState(Integer.parseInt(stateWord.getValue() + "")); |
| | |
| | | } |
| | | } |
| | | jsonObject.append("bigStorageCageDetailsFeedTask", inTaskList); |
| | | |
| | | } catch (Exception e) { |
| | | //todo:不做任务处理 |
| | | } |
| | | try { |
| | | //进片联机 |
| | | ReadWriteEntity inkageEntity = miloService.readFromOpcUa("DLP1A.DLP1A.mesControl"); |
| | | jsonObject.append("inkageEntity", inkageEntity.getValue()); |
| | |
| | | //出片请求 |
| | | ReadWriteEntity outRequestEntity = miloService.readFromOpcUa("DLP1B.DLP1B.RequestMes"); |
| | | jsonObject.append("outRequestEntity", outRequestEntity.getValue()); |
| | | }catch(Exception e){ |
| | | //todo:不做任务处理 |
| | | } |
| | | |
| | | |
| | | //出片任务数据 |
| | | List<BigStorageCageTask> outTaskList = bigStorageCageTaskService.queryTaskMessage("big_storage_cage_out_one_task"); |
| | | jsonObject.append("bigStorageCageDetailsOutTask", outTaskList); |
| | | |
| | | } catch (Exception e) { |
| | | //todo:不做任务处理 |
| | | } |
| | | |
| | | //钢化开关 |
| | | boolean temperingSwitch = false; |
| | |
| | | |
| | | @ApiOperation("删除原片") |
| | | @PostMapping("/deleteWarehousing") |
| | | public Result<Object> deleteWarehousing(Long slotId) { |
| | | return Result.success(rawGlassStorageDetailsService.deleteWarehousing(slotId)); |
| | | public Result<Object> deleteWarehousing(Long slot) { |
| | | return Result.success(rawGlassStorageDetailsService.deleteWarehousing(slot)); |
| | | } |
| | | |
| | | @ApiOperation("原片出库") |
| | | @PostMapping("/outWarehousing") |
| | | public Result<Object> outWarehousing(@RequestBody Long slotId) { |
| | | public Result<Object> outWarehousing(Long slotId) { |
| | | return Result.success(rawGlassStorageDetailsService.outWarehousing(slotId)); |
| | | } |
| | | |
| | |
| | | public Result<List<RawGlassStorageDetailsDTO>> patternUsage(String width, String height, String thickness, String films) { |
| | | return Result.build(200, "查询成功", rawGlassStorageDetailsService.patternUsage(width, height, thickness, films)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | import com.kangaroohy.milo.model.ReadWriteEntity; |
| | | import com.kangaroohy.milo.service.MiloService; |
| | | import com.mes.bigstoragecagetask.entity.BigStorageCageTask; |
| | | import com.mes.bigstoragecagetask.entity.BigStorageTaskVO; |
| | | import com.mes.bigstoragecagetask.service.BigStorageCageTaskService; |
| | | import com.mes.common.config.Const; |
| | | import com.mes.hollow.entity.HollowBigStorageCageDetails; |
| | | import com.mes.hollow.entity.HollowGlassOutRelationInfo; |
| | | import com.mes.hollow.service.HollowBigStorageCageDetailsService; |
| | | import com.mes.hollow.service.HollowBigStorageCageService; |
| | |
| | | |
| | | try{ |
| | | //进片任务数据 |
| | | List<BigStorageCageTask> inTaskList = new ArrayList(); |
| | | List<BigStorageTaskVO> inTaskList = new ArrayList(); |
| | | ReadWriteEntity fromOpcUa = miloService.readFromOpcUa("DLP2A.DLP2A.FROM1"); |
| | | for (int i = 1; i <= 6; i++) { |
| | | ReadWriteEntity requestWord = miloService.readFromOpcUa("DLP2A.DLP2A.DI" + i); |
| | | ReadWriteEntity targetSlotWord = miloService.readFromOpcUa("DLP2A.DLP2A.TO" + i); |
| | | ReadWriteEntity stateWord = miloService.readFromOpcUa("DLP2A.DLP2A.STATE" + i); |
| | | if (null != requestWord.getValue()) { |
| | | BigStorageCageTask task = new BigStorageCageTask(); |
| | | BigStorageTaskVO task = new BigStorageTaskVO(); |
| | | task.setGlassId(requestWord.getValue() + ""); |
| | | int isExistCount = hollowBigStorageCageDetailsService.count(new LambdaQueryWrapper<HollowBigStorageCageDetails>().in(HollowBigStorageCageDetails::getGlassId, task.getGlassId()) |
| | | .in(HollowBigStorageCageDetails::getState, Const.GLASS_STATE_IN_ALL_ZERO)); |
| | | if (isExistCount > 0) { |
| | | task.setIsSame(1); |
| | | } else { |
| | | task.setIsSame(0); |
| | | } |
| | | task.setStartSlot(Integer.parseInt(fromOpcUa.getValue() + "")); |
| | | task.setTargetSlot(Integer.parseInt(targetSlotWord.getValue() + "")); |
| | | task.setTaskState(Integer.parseInt(stateWord.getValue() + "")); |
| | |
| | | } |
| | | } |
| | | jsonObject.append("bigStorageCageDetailsFeedTask", inTaskList); |
| | | } catch (Exception e) { |
| | | //todo:不做任务处理 |
| | | } |
| | | try { |
| | | //进片联机 |
| | | ReadWriteEntity inkageEntity = miloService.readFromOpcUa("DLP2A.DLP2A.mesControl"); |
| | | jsonObject.append("inkageEntity", inkageEntity.getValue()); |
| | |
| | | //931空闲信号 |
| | | ReadWriteEntity freeTwoRequestEntity = miloService.readFromOpcUa("ZKQ2.ZKQ2.isFree"); |
| | | jsonObject.append("freeTwoRequestEntity", freeTwoRequestEntity.getValue()); |
| | | |
| | | }catch(Exception e){ |
| | | //todo:不做任务处理 |
| | | } |
| | |
| | | //理片笼使用情况 |
| | | List<Map<String, Object>> bigStorageCageUsage = hollowBigStorageCageService.selectBigStorageCageUsage(); |
| | | jsonObject.append("bigStorageCageUsage", bigStorageCageUsage); |
| | | |
| | | // |
| | | // //打印开关 |
| | | // boolean autoPrint = false; |
| | | // if (redisUtil.getCacheObject("autoPrint") == null) { |
| | | // redisUtil.setCacheObject("autoPrint", false); |
| | | // } else { |
| | | // autoPrint = redisUtil.getCacheObject("autoPrint"); |
| | | // } |
| | | // jsonObject.append("autoPrint", autoPrint); |
| | | |
| | | } |
| | | |
| | | } |