1.全部页面增加线下数据查询
2.增加一键删除线下玻璃按钮
| | |
| | | private KBBTLensSortingMapper kBBTLensSortingMapper; |
| | | |
| | | |
| | | |
| | | @ApiOperation("查询库位信息 返回结果") |
| | | @PostMapping("/findKBBTLensSorting") |
| | | @ResponseBody |
| | |
| | | return Result.build(199,"异常",map); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("扫码成功后返回结果 machineId,scanId") |
| | | @PostMapping("/scanMachineAdd") |
| | | @ResponseBody |
| | |
| | | return Result.build(199,"异常",map); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("报工提交 ") |
| | | @PostMapping("/reportForWork") |
| | | @ResponseBody |
| | |
| | | return Result.build(199,"异常",machine); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("查询当前设备,未完工状态的线上任务") |
| | | @PostMapping("/findMachineTask") |
| | | @ResponseBody |
| | |
| | | int count =taskingService.damagedTask(tasking); |
| | | return Result.build(200,"修改成功:"+count,count); |
| | | } |
| | | |
| | | @ApiOperation("修改任务状态 【正在工作】") |
| | | @PostMapping("/startMachineTask") |
| | | @ResponseBody |
| | |
| | | Tasking tasking =taskingService.startMachineTask(machine); |
| | | return Result.build(200,"修改成功:",tasking); |
| | | } |
| | | |
| | | @ApiOperation("修改任务状态 【失败】") |
| | | @PostMapping("/loseMachineTask") |
| | | @ResponseBody |
| | |
| | | int count =taskingService.loseMachineTask(machine); |
| | | return Result.build(200,"修改成功:"+count,count); |
| | | } |
| | | |
| | | @ApiOperation("修改任务状态 【完工】") |
| | | @PostMapping("/finishMachineTask") |
| | | @ResponseBody |
| | |
| | | int count =taskingService.glassDownLine(tasking); |
| | | return Result.build(200,"修改成功:"+count,count); |
| | | } |
| | | |
| | | @ApiOperation("玻璃 【下线】") |
| | | @PostMapping("/glassAgainTopLine") |
| | | @ResponseBody |
| | |
| | | return Result.build(200,"修改成功:"+count,count); |
| | | } |
| | | |
| | | @ApiOperation("查询【线下】玻璃 ") |
| | | @PostMapping("/selectGlassDownLine") |
| | | @ResponseBody |
| | | public Result selectGlassDownLine() { |
| | | List<Tasking> downLineTask = taskingService.findDownLineTask(); |
| | | return Result.build(200, "查询成功:", downLineTask); |
| | | } |
| | | |
| | | @ApiOperation("删除【线下】玻璃 ") |
| | | @PostMapping("/deleteGlassDownLine") |
| | | @ResponseBody |
| | | public Result deleteGlassDownLine() { |
| | | int count = taskingService.deleteGlassDownLine(); |
| | | return Result.build(200, "清除成功:"+count, count); |
| | | } |
| | | |
| | | @ApiOperation("提交 扫码报工 ") |
| | | @PostMapping("/scanReport") |
| | | @ResponseBody |
| | |
| | | int glassTopLine(List<Tasking> taskingList); |
| | | |
| | | /** |
| | | * 批量删除玻璃 【线下】 |
| | | * @return |
| | | */ |
| | | int deleteGlassDownLine(); |
| | | |
| | | /** |
| | | * @param tasking |
| | | * 批量修改状态 【上线】 |
| | | * @return |
| | |
| | | return resultCount; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteGlassDownLine() { |
| | | return baseMapper.delete(new QueryWrapper<Tasking>().lambda().eq(Tasking::getState,"线下")); |
| | | } |
| | | |
| | | /** |
| | | * @param taskingList |
| | | * 批量修改状态 【上线】 |
| | |
| | | functionState:{ |
| | | deleteTips:'是否确认破损?', |
| | | delete :'删除', |
| | | deleteDownLineGlass :'删除线下玻璃', |
| | | tips:'是否确认?', |
| | | yes:'是', |
| | | sure :'确认', |
| | |
| | | import moment from "moment"; |
| | | //格式化表格时间戳 毫秒 |
| | | // export function gridDateFormatter(row,column,cellValue,index){ |
| | | // const daterc = row[column.property]; |
| | | // //alert(daterc); |
| | | // return moment(Number(daterc)).format('YYYY-MM-DD HH:mm:ss'); |
| | | // } |
| | | |
| | | //格式化表格时间戳 毫秒 |
| | | export function gridDateFormatter(row,column,cellValue,index){ |
| | | const daterc = row[column.property]; |
| | | //alert(daterc); |
| | | return moment(Number(daterc)).format('YYYY-MM-DD HH:mm:ss'); |
| | | return moment.utc(daterc).utcOffset(8).format("YYYY-MM-DD HH:mm:ss"); |
| | | } |
| | | |
| | | |
| | | export function getDataSort(dataSort){ |
| | | dataSort.sort((a, b) => a.operationRecordTime - b.operationRecordTime); |
| | | } |
| | |
| | | // 假设后端返回的数据格式与 handleMessage 预期一致 |
| | | const responseData = res.data || {}; |
| | | findMachine.value =responseData; |
| | | if (Object.keys(findMachine.value).length === 0){ |
| | | if(findMachine.value.remark.toString()!=errorScanId&&findMachine.value.remark.toString()!=""&&findMachine.value.remark.toString()!=undefined){ |
| | | //有数据就弹窗 |
| | | if(errorOpen){ |
| | | ElMessageBox.close(); |
| | | } |
| | | errorScanId=findMachine.value.remark.toString(); |
| | | errorInfoFuntion(findMachine.value.remark.toString()); |
| | | errorOpen=true; |
| | | }else if(findMachine.value.remark.toString()==""&&errorOpen){ |
| | | ElMessageBox.close(); |
| | | errorOpen=false; |
| | | } |
| | | } |
| | | } |
| | | }); |
| | | |
| | | // 线下数据 |
| | | request.post("/deviceInteraction/tasking/selectGlassDownLine").then((res) => { // 替换为你的API端点 |
| | | if (res.code === 200) { |
| | | // 假设后端返回的数据格式与 handleMessage 预期一致 |
| | | const responseData = res.data || {}; |
| | | downLineTask.value =responseData; |
| | | } |
| | | }); |
| | | } catch (err) { |
| | | console.error('定时请求后端接口失败:', err); |
| | | } |
| | |
| | | <div id="search" > |
| | | <!-- 功能 --> |
| | | <el-button :type="(findMachine['state']=='暂停'?'danger':'success')" id="ButtonMachineStatus" @click="machineStatus((findMachine['state']=='暂停'?'开工':'暂停'))">{{findMachine['state']=='开工'?$t('functionState.start'):$t('functionState.stop')}}</el-button> |
| | | <el-button type="primary" id="ButtonTopLine" @click="topLine">{{$t('functionState.topLine')}}</el-button> |
| | | <!-- <el-button type="primary" id="ButtonTopLine" @click="topLine">{{$t('functionState.topLine')}}</el-button>--> |
| | | <!-- <el-button type="primary" id="searchButton" @click="downLine('下线')">下线</el-button> |
| | | <el-button type="primary" id="searchButton" @click="workStatus('破损')">破损</el-button> |
| | | <el-button type="primary" id="searchButton" @click="workStatus('完工')">完工</el-button> --> |
| | |
| | | }); |
| | | |
| | | // 线下数据 |
| | | request.post("/deviceInteraction/tasking/selectGlassDownLine").then((res) => { // 替换为你的API端点 |
| | | if (res.code === 200) { |
| | | // 假设后端返回的数据格式与 handleMessage 预期一致 |
| | | const responseData = res.data || {}; |
| | | downLineTask.value =responseData; |
| | | } |
| | | }); |
| | | } catch (err) { |
| | | console.error('定时请求后端接口失败:', err); |
| | | } |
| | |
| | | } |
| | | }); |
| | | // 线下数据 |
| | | request.post("/deviceInteraction/tasking/selectGlassDownLine").then((res) => { // 替换为你的API端点 |
| | | if (res.code === 200) { |
| | | // 假设后端返回的数据格式与 handleMessage 预期一致 |
| | | const responseData = res.data || {}; |
| | | downLineTask.value =responseData; |
| | | } |
| | | }); |
| | | } catch (err) { |
| | | console.error('定时请求后端接口失败:', err); |
| | | } |
| | |
| | | }) |
| | | }) |
| | | } |
| | | |
| | | //删除线下玻璃 |
| | | const deleteGlassDownLine = async () => { |
| | | ElMessageBox.confirm( |
| | | t('functionState.tips'), |
| | | t('delivery.prompt'), |
| | | { |
| | | confirmButtonText: t('functionState.sure'), |
| | | cancelButtonText: t('functionState.cancel'), |
| | | type: 'warning', |
| | | } |
| | | ) |
| | | .then(() => { |
| | | //上线接口 |
| | | request.post("/deviceInteraction/tasking/deleteGlassDownLine").then((res) => { // 替换为你的API端点 |
| | | if (res.code === 200) { |
| | | ElMessage.success(res.message); |
| | | } else { |
| | | ElMessage.warning(res.message) |
| | | } |
| | | }) |
| | | }) |
| | | .catch(() => { |
| | | ElMessage({ |
| | | type: 'info', |
| | | message: t('functionState.cancel'), |
| | | }) |
| | | }) |
| | | } |
| | | const handleDialogClose = () => { |
| | | |
| | | } |
| | |
| | | <el-button :type="(findMachine['mode'] == '定制' ? 'danger' : 'success')" id="ButtonMachineMode" |
| | | @click="machineMode((findMachine['mode'] == 0 ? 1 : 0))">{{ findMachine['mode'] == 0 ? |
| | | $t('functionState.modeD') : $t('functionState.modeB') }}</el-button> |
| | | |
| | | <el-button type="primary" id="ButtonTopLine" @click="topLineShow">{{ $t('functionState.topLine') }}</el-button> |
| | | <el-button type="primary" id="deleteGlassDownLine" @click="deleteGlassDownLine">{{ $t('functionState.deleteDownLineGlass') }}</el-button> |
| | | <!-- <el-button type="primary" id="searchButton" @click="downLine('下线')">下线</el-button> |
| | | <el-button type="primary" id="searchButton" @click="workStatus('破损')">破损</el-button> |
| | | <el-button type="primary" id="searchButton" @click="workStatus('完工')">完工</el-button> --> |
| | |
| | | }); |
| | | |
| | | // 线下数据 |
| | | request.post("/deviceInteraction/tasking/selectGlassDownLine").then((res) => { // 替换为你的API端点 |
| | | if (res.code === 200) { |
| | | // 假设后端返回的数据格式与 handleMessage 预期一致 |
| | | const responseData = res.data || {}; |
| | | downLineTask.value =responseData; |
| | | } |
| | | }); |
| | | } catch (err) { |
| | | console.error('定时请求后端接口失败:', err); |
| | | } |
| | |
| | | }); |
| | | |
| | | // 线下数据 |
| | | request.post("/deviceInteraction/tasking/selectGlassDownLine").then((res) => { // 替换为你的API端点 |
| | | if (res.code === 200) { |
| | | // 假设后端返回的数据格式与 handleMessage 预期一致 |
| | | const responseData = res.data || {}; |
| | | downLineTask.value =responseData; |
| | | } |
| | | }); |
| | | } catch (err) { |
| | | console.error('定时请求后端接口失败:', err); |
| | | } |
| | |
| | | } |
| | | } |
| | | }); |
| | | |
| | | // 线下数据 |
| | | request.post("/deviceInteraction/tasking/selectGlassDownLine").then((res) => { // 替换为你的API端点 |
| | | if (res.code === 200) { |
| | | // 假设后端返回的数据格式与 handleMessage 预期一致 |
| | | const responseData = res.data || {}; |
| | | downLineTask.value =responseData; |
| | | groupAndCount(); |
| | | } |
| | | }); |
| | | } catch (err) { |
| | | console.error('定时请求后端接口失败:', err); |
| | | } |
| | |
| | | const loadData = ref([]); |
| | | const findMachine = ref([]); |
| | | const sendRecords = ref([]); |
| | | const downLineTask = ref([]); |
| | | |
| | | const userInfo=JSON.parse(window.localStorage.getItem('userInfo')); |
| | | const pageParams=userInfo.user.menus[0].pages[3].params; |
| | |
| | | }); |
| | | |
| | | // 线下数据 |
| | | request.post("/deviceInteraction/tasking/selectGlassDownLine").then((res) => { // 替换为你的API端点 |
| | | if (res.code === 200) { |
| | | // 假设后端返回的数据格式与 handleMessage 预期一致 |
| | | const responseData = res.data || {}; |
| | | downLineTask.value =responseData; |
| | | } |
| | | }); |
| | | } catch (err) { |
| | | console.error('定时请求后端接口失败:', err); |
| | | } |
| | |
| | | <el-button :type="(findMachine['state']=='暂停'?'danger':'success')" id="ButtonMachineStatus" |
| | | @click="machineStatus((findMachine['state']=='暂停'?'开工':'暂停'))"> |
| | | {{findMachine['state']=='开工'?$t('functionState.start'):$t('functionState.stop')}}</el-button> |
| | | <el-button type="primary" id="ButtonTopLine" @click="topLine">{{$t('functionState.topLine')}}</el-button> |
| | | <!-- <el-button type="primary" id="ButtonTopLine" @click="topLine">{{$t('functionState.topLine')}}</el-button>--> |
| | | <!-- <el-button type="primary" id="searchButton" @click="downLine('下线')">下线</el-button> |
| | | <el-button type="primary" id="searchButton" @click="workStatus('破损')">破损</el-button> |
| | | <el-button type="primary" id="searchButton" @click="workStatus('完工')">完工</el-button> --> |
| | |
| | | }); |
| | | |
| | | // 线下数据 |
| | | request.post("/deviceInteraction/tasking/selectGlassDownLine").then((res) => { // 替换为你的API端点 |
| | | if (res.code === 200) { |
| | | // 假设后端返回的数据格式与 handleMessage 预期一致 |
| | | const responseData = res.data || {}; |
| | | downLineTask.value =responseData; |
| | | } |
| | | }); |
| | | } catch (err) { |
| | | console.error('定时请求后端接口失败:', err); |
| | | } |
| | |
| | | const topLineShow = async () => { |
| | | blind.value = true; |
| | | } |
| | | |
| | | //上线 |
| | | const topLine = async (row) => { |
| | | ElMessageBox.confirm( |
| | |
| | | }) |
| | | }) |
| | | } |
| | | |
| | | //删除线下玻璃 |
| | | const deleteGlassDownLine = async () => { |
| | | ElMessageBox.confirm( |
| | | t('functionState.tips'), |
| | | t('delivery.prompt'), |
| | | { |
| | | confirmButtonText: t('functionState.sure'), |
| | | cancelButtonText: t('functionState.cancel'), |
| | | type: 'warning', |
| | | } |
| | | ) |
| | | .then(() => { |
| | | //上线接口 |
| | | request.post("/deviceInteraction/tasking/deleteGlassDownLine").then((res) => { // 替换为你的API端点 |
| | | if (res.code === 200) { |
| | | ElMessage.success(res.message); |
| | | } else { |
| | | ElMessage.warning(res.message) |
| | | } |
| | | }) |
| | | }) |
| | | .catch(() => { |
| | | ElMessage({ |
| | | type: 'info', |
| | | message: t('functionState.cancel'), |
| | | }) |
| | | }) |
| | | } |
| | | |
| | | const handleDialogClose = () => { |
| | | |
| | | } |
| | |
| | | |
| | | |
| | | <el-button type="primary" id="ButtonTopLine" @click="topLineShow">{{ $t('functionState.topLine') }}</el-button> |
| | | <el-button type="primary" id="deleteGlassDownLine" @click="deleteGlassDownLine">{{ $t('functionState.deleteDownLineGlass') }}</el-button> |
| | | <!-- <el-button type="primary" id="searchButton" @click="downLine('下线')">下线</el-button> |
| | | <el-button type="primary" id="searchButton" @click="workStatus('破损')">破损</el-button> |
| | | <el-button type="primary" id="searchButton" @click="workStatus('完工')">完工</el-button> --> |