Merge remote-tracking branch 'origin/master'
| | |
| | | height: `${rect.height}px`, |
| | | backgroundColor: 'lightblue'}"> |
| | | <div class="centered-text"> |
| | | <div style="font-size: 15px;font-weight: bold;">{{ rect.sort }}</div> |
| | | <div style="font-size: 15px;font-weight: bold;">{{ rect.process_id }}</div> |
| | | <div style="font-size: 15px;font-weight: bold;">{{ rect.project_no }}</div> |
| | | <div style="font-size: 30px;font-weight: bold;">{{ rect.widtha }}*{{ rect.heighta }}</div> |
| | | <div style="font-size: 10px;font-weight: bold;">{{ rect.sort }}</div> |
| | | <div style="font-size: 10px;font-weight: bold;">{{ rect.process_id }}</div> |
| | | <div style="font-size: 10px;font-weight: bold;">{{ rect.project_no }}</div> |
| | | <div style="font-size: 10px;font-weight: bold;">{{ rect.widtha }}*{{ rect.heighta }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | const titleSelectJson = ref({ |
| | | engineerId: [], |
| | | }) |
| | | const selectGong = async () => { |
| | | try { |
| | | const response = await request.post('/loadGlass/loadglassdevicetaskhistory/queryAllMessage',{ |
| | | redisRequest: 'loadGlassRequestOne', |
| | | stationCell: 5, |
| | | tableName: 'LOAD_GLASS_DEVICE_ONE_TASK', |
| | | webSocketName: 'loadGlassOne' |
| | | }); |
| | | if (response.code == 200) { |
| | | } |
| | | } catch (error) { |
| | | } |
| | | }; |
| | | request.post("/loadGlass/up-patten-usage/setUpPattenRequest", { |
| | | state: null, |
| | | stationCell: 5 |
| | |
| | | }; |
| | | onMounted(() => { |
| | | socket = initializeWebSocket(socketUrl, handleMessage); |
| | | selectGong() |
| | | }); |
| | | onUnmounted(() => { |
| | | if (socket) { |
| | |
| | | }; |
| | | const selectgong = async (queryString: string) => { |
| | | try { |
| | | const response = await request.post('/loadGlass/engineerScheduling/queryEngineerScheduling', { |
| | | const response = await request.post('/loadGlass/optimizeProject/listByState', { |
| | | ...requestData, |
| | | query: queryString |
| | | }); |
| | |
| | | const titleSelectJson = ref({ |
| | | engineerId: [], |
| | | }) |
| | | const selectGong = async () => { |
| | | try { |
| | | const response = await request.post('/loadGlass/loadglassdevicetaskhistory/queryAllMessage',{ |
| | | redisRequest: 'loadGlassRequestTwo', |
| | | stationCell: 6, |
| | | tableName: 'LOAD_GLASS_DEVICE_TWO_TASK', |
| | | webSocketName: 'loadGlassTwo' |
| | | }); |
| | | if (response.code == 200) { |
| | | } |
| | | } catch (error) { |
| | | } |
| | | }; |
| | | request.post("/loadGlass/up-patten-usage/setUpPattenRequest",{ |
| | | state: null, |
| | | stationCell: 6 |
| | |
| | | }; |
| | | onMounted(() => { |
| | | socket = initializeWebSocket(socketUrl, handleMessage); |
| | | selectGong() |
| | | }); |
| | | onUnmounted(() => { |
| | | if (socket) { |
| | |
| | | printLayer.value = row.layer |
| | | printGlassId.value = row.glassId |
| | | } |
| | | const selectGong = async () => { |
| | | try { |
| | | const response = await request.get('/cacheVerticalGlass/bigStorageCageHistoryTask/queryAllMessage'); |
| | | if (response.code == 200) { |
| | | } |
| | | } catch (error) { |
| | | } |
| | | }; |
| | | // setInterval(() => { |
| | | // localStorage.clear(); // 清除所有localStorage数据 |
| | | // }, 60000); |
| | |
| | | } |
| | | } |
| | | // 任务重置 |
| | | const handleptask = async() => { |
| | | try { |
| | | const confirmResult = await ElMessageBox.confirm( |
| | | t('searchOrder.partasks'), |
| | | t('workOrder.prompt'), |
| | | { |
| | | confirmButtonText: t('workOrder.yes'), |
| | | cancelButtonText: t('workOrder.cancel'), |
| | | type: 'warning', |
| | | } |
| | | ); |
| | | if (confirmResult === 'confirm') { |
| | | const response = await request.post('/cacheVerticalGlass/bigStorageCage/resetCage') |
| | | if (response.code === 200) { |
| | | ElMessage.success(response.message); |
| | | } else { |
| | | ElMessage.error(response.msg); |
| | | } |
| | | } |
| | | } catch (error) { |
| | | } |
| | | }; |
| | | // const handleptask = async() => { |
| | | // try { |
| | | // const confirmResult = await ElMessageBox.confirm( |
| | | // t('searchOrder.partasks'), |
| | | // t('workOrder.prompt'), |
| | | // { |
| | | // confirmButtonText: t('workOrder.yes'), |
| | | // cancelButtonText: t('workOrder.cancel'), |
| | | // type: 'warning', |
| | | // } |
| | | // ); |
| | | // if (confirmResult === 'confirm') { |
| | | // const response = await request.post('/cacheVerticalGlass/bigStorageCage/resetCage') |
| | | // if (response.code === 200) { |
| | | // ElMessage.success(response.message); |
| | | // } else { |
| | | // ElMessage.error(response.msg); |
| | | // } |
| | | // } |
| | | // } catch (error) { |
| | | // } |
| | | // }; |
| | | // 警报确认 |
| | | const handleSure = async (row) => { |
| | | try { |
| | |
| | | onMounted(() => { |
| | | socket = initializeWebSocket(socketUrl, handleMessage); |
| | | parseAndSetTime(); |
| | | selectGong() |
| | | }); |
| | | onUnmounted(() => { |
| | | if (socket) { |
| | |
| | | <el-button style="margin-top: 7px;margin-left: 10px;" id="searchButton" type="success" @click="handlehistorical">{{ $t('searchOrder.historicaltasks') }}</el-button> |
| | | <el-button style="margin-top: 7px;margin-left: 10px;" id="searchButton" type="warning" @click="handleganghua">{{ $t('searchOrder.temperingqueries') }}</el-button> |
| | | <el-button style="margin-top: 7px;margin-left: 10px;" id="searchButton" type="info" @click="dialogFormVisibles=true;fetchFlows()">{{ $t('searchOrder.searchlayout') }}</el-button> |
| | | <el-button style="margin-top: 7px;margin-left: 10px;" id="searchButton" type="danger" @click="handleptask()">{{ $t('searchOrder.partask') }}</el-button> |
| | | <!-- <el-button style="margin-top: 7px;margin-left: 10px;" id="searchButton" type="danger" @click="handleptask()">{{ $t('searchOrder.partask') }}</el-button> --> |
| | | <el-switch style="margin-top: 7px;margin-left: 10px;" v-model="ganghua" class="mb-2" :inactive-text="$t('searchOrder.temperedswitch')" @change="handleChange" /> |
| | | <el-switch style="margin-top: 7px;margin-left: 10px;" v-model="diaodu" class="mb-2" :inactive-text="$t('searchOrder.Schedulingswitch')" @change="handlediaodu" /> |
| | | <div id="dotClass"> |
| | |
| | | <el-button id="searchButton" type="primary" @click="handlezhiban"> |
| | | {{ $t('hellow.createtask') }} |
| | | </el-button> |
| | | <el-button type="primary" @click="selectproject"> |
| | | <!-- <el-button type="primary" @click="selectproject"> |
| | | {{ $t('hellow.reviewproject') }} |
| | | </el-button> |
| | | </el-button> --> |
| | | <el-button style="margin-left: 10px;" id="searchButton" type="primary" @click="handlehistorical">{{ |
| | | $t('searchOrder.historicaltasks') }}</el-button> |
| | | <el-button style="margin-left: 10px;" id="searchButton" type="success" @click="handleBinda"> |
| | |
| | | <el-button id="searchButton" type="primary" @click="handlezhiban"> |
| | | {{ $t('hellow.createtask') }} |
| | | </el-button> |
| | | <el-button type="primary" @click="selectproject"> |
| | | <!-- <el-button type="primary" @click="selectproject"> |
| | | {{ $t('hellow.reviewproject') }} |
| | | </el-button> |
| | | </el-button> --> |
| | | <el-button style="margin-left: 10px;" id="searchButton" type="primary" @click="handlehistorical">{{ |
| | | $t('searchOrder.historicaltasks') }}</el-button> |
| | | <el-button style="margin-left: 10px;" id="searchButton" type="success" @click="handleBinda"> |
| | |
| | | selectedRow.value = row; // 更新选中的行数据 |
| | | } |
| | | // 任务重置 |
| | | const handleptask = async() => { |
| | | try { |
| | | const confirmResult = await ElMessageBox.confirm( |
| | | t('searchOrder.partasks'), |
| | | t('workOrder.prompt'), |
| | | { |
| | | confirmButtonText: t('workOrder.yes'), |
| | | cancelButtonText: t('workOrder.cancel'), |
| | | type: 'warning', |
| | | } |
| | | ); |
| | | if (confirmResult === 'confirm') { |
| | | const response = await request.post('/hollowGlass/hollowBigStorageCage/resetCage') |
| | | if (response.code === 200) { |
| | | ElMessage.success(response.message); |
| | | } else { |
| | | ElMessage.error(response.msg); |
| | | } |
| | | } |
| | | } catch (error) { |
| | | } |
| | | }; |
| | | // const handleptask = async() => { |
| | | // try { |
| | | // const confirmResult = await ElMessageBox.confirm( |
| | | // t('searchOrder.partasks'), |
| | | // t('workOrder.prompt'), |
| | | // { |
| | | // confirmButtonText: t('workOrder.yes'), |
| | | // cancelButtonText: t('workOrder.cancel'), |
| | | // type: 'warning', |
| | | // } |
| | | // ); |
| | | // if (confirmResult === 'confirm') { |
| | | // const response = await request.post('/hollowGlass/hollowBigStorageCage/resetCage') |
| | | // if (response.code === 200) { |
| | | // ElMessage.success(response.message); |
| | | // } else { |
| | | // ElMessage.error(response.msg); |
| | | // } |
| | | // } |
| | | // } catch (error) { |
| | | // } |
| | | // }; |
| | | // 调度开关 |
| | | const handlediaodu = async () => { |
| | | try { |
| | |
| | | <div style="display: flex;"> |
| | | <el-button style="margin-top: 7px;margin-left: 10px;" id="searchButton" type="primary" @click="handlexiang">{{ $t('searchOrder.cageinformation') }}</el-button> |
| | | <el-button style="margin-top: 7px;margin-left: 10px;" id="searchButton" type="success" @click="handlehistorical">{{ $t('searchOrder.historicaltasks') }}</el-button> |
| | | <el-button style="margin-top: 7px;margin-left: 10px;" id="searchButton" type="danger" @click="handleptask()">{{ $t('searchOrder.partask') }}</el-button> |
| | | <!-- <el-button style="margin-top: 7px;margin-left: 10px;" id="searchButton" type="danger" @click="handleptask()">{{ $t('searchOrder.partask') }}</el-button> --> |
| | | <el-switch style="margin-top: 7px;margin-left: 10px;" v-model="diaodu" class="mb-2" :inactive-text="$t('searchOrder.Schedulingswitch')" @change="handlediaodu" /> |
| | | <div style="display: flex;"> |
| | | <div style="margin-left: 15px;margin-top: 5px;font-size: 14px;top: 5vh;margin-top: 12px;">{{ $t('searchOrder.hollowPriority') }}:</div> |
| | |
| | | @Override |
| | | public List<EngineerScheduling> listByState() { |
| | | QueryWrapper<EngineerScheduling> wrapper = new QueryWrapper<>(); |
| | | wrapper.lt("type", 3); |
| | | wrapper.lt("type", 3) |
| | | .eq("state", 100); |
| | | return baseMapper.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<EngineerScheduling> queryByType(Integer type) { |
| | | QueryWrapper<EngineerScheduling> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("type", type); |
| | | queryWrapper.eq("type", type) |
| | | .orderByAsc("id"); |
| | | return baseMapper.selectList(queryWrapper); |
| | | } |
| | | |
| | |
| | | import com.mes.damage.entity.Damage; |
| | | import com.mes.damage.entity.request.DamageRequest; |
| | | import com.mes.damage.service.DamageService; |
| | | import com.mes.engineerScheduling.entity.EngineerScheduling; |
| | | import com.mes.engineerScheduling.service.EngineerSchedulingService; |
| | | import com.mes.engineering.entity.Engineering; |
| | | import com.mes.engineering.service.EngineeringService; |
| | | import com.mes.glassinfo.entity.GlassInfo; |
| | |
| | | private OptimizeProjectService optimizeProjectService; |
| | | @Autowired |
| | | DamageService damageService; |
| | | @Autowired |
| | | EngineerSchedulingService engineerSchedulingService; |
| | | |
| | | |
| | | |
| | | @ApiOperation("开始/暂停任务/传递工程号和状态,开始是1 暂停是0") |
| | |
| | | @ResponseBody |
| | | public synchronized Result<Boolean> changeTask(@RequestBody Engineering engineering) { |
| | | try { |
| | | //获取排产顺序,不是当前正在上片的工程号直接返回失败 暂时注释,等待排产功能正式上线 |
| | | // List<EngineerScheduling> engineerScheduling = engineerSchedulingService.queryByType(1); |
| | | // if (!engineerScheduling.get(0).getProjectNo().equals(engineering.getEngineerId())) { |
| | | // return Result.build(100, "请根据当前排产顺序选择工程号,排产首位为:" + engineerScheduling.get(0).getProjectNo(), false); |
| | | // } |
| | | log.info("engineeringId:{}", engineering); |
| | | UpPattenUsage upPattenUsage = upPattenUsageService.selectedEngineering(engineering.getEngineerId()); |
| | | Engineering engineerings = engineeringService.selectUpInitiate(engineering.getEngineerId()); |