| | |
| | | import * as echarts from 'echarts'; |
| | | export default { |
| | | components: {saveDialog}, |
| | | props: ['achievements','date','workstationInfoList'], |
| | | props: ['achievements','date','workstationInfoList','humanFeedback'], |
| | | watch: { |
| | | }, |
| | | data() { |
| | |
| | | return stauts; |
| | | }, |
| | | getCharts() { |
| | | console.log(this.workstationInfoList.length == 0,this.date == "",this.date,333) |
| | | if(this.date == "") return; |
| | | var obj = { |
| | | date: this.date, |
| | | humanFeedback: true, |
| | | humanFeedback: this.humanFeedback, |
| | | machineFeedback: true, |
| | | workstationInfoList: this.workstationInfoList |
| | | } |
| | |
| | | res.data.records.reverse(); |
| | | res.data.records.forEach((item,index)=> { |
| | | yAxisData.push(item.workstationInfo.name); |
| | | if(item.statusRecordList == null) item.statusRecordList = []; |
| | | //计算开始时间,显示时间 |
| | | item.statusRecordList.forEach(item1=> { |
| | | var initstart = item1.startTime.split(" ")[0]; //根据日期计算差值 |
| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-03-26 10:28:33 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-06-17 22:29:43 |
| | | * @LastEditTime: 2024-09-09 12:04:32 |
| | | * @FilePath: /smart-web/src/views/master/person/main/index.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | <div class="status-box" v-for="item in achievements"><div class="status-color" :style="{'background-color': item.color}"></div>{{ item.name }}</div> |
| | | </div> |
| | | <div class="status-wrap"> |
| | | <el-checkbox v-model="checked1" label="人工反馈状态" size="large" /> |
| | | <el-checkbox v-model="humanFeedback" label="人工反馈状态" size="large" /> |
| | | <div class="status-con"> |
| | | <div class="status-box" v-for="item in collectionstatus"><div class="status-color" :style="{'background-color': item.color}"></div>{{ item.name }}</div> |
| | | </div> |
| | |
| | | return { |
| | | achievements: [], |
| | | collectionstatus: [], |
| | | checked1: "", |
| | | humanFeedback: "", |
| | | alarmtotal: 0, |
| | | alarmtableData: [], |
| | | wcsDate: "", |
| | |
| | | getrecord() { //班次状态记录table |
| | | var obj = { |
| | | date: this.wcsDate, |
| | | humanFeedback: true, |
| | | humanFeedback: this.humanFeedback, |
| | | workstationId: this.lastLevelId |
| | | } |
| | | this.$HTTP.post(`/api/blade-mdc/status-record/shift-index-status-record-table`,obj).then(res=> { |
| | |
| | | var obj = { |
| | | date: this.wcsDate, |
| | | //date : "2024-05-15", |
| | | humanFeedback: true, |
| | | humanFeedback: this.humanFeedback, |
| | | workstationId: this.lastLevelId |
| | | } |
| | | this.$HTTP.post(`/api/blade-mdc/status-record/shift-index-status-record-chart`,obj).then(res=> { |
| | |
| | | getwscLvalue() { |
| | | var obj = { |
| | | date: this.wcsDate, |
| | | humanFeedback: true, |
| | | humanFeedback: this.humanFeedback, |
| | | workstationId: this.lastLevelId |
| | | } |
| | | this.$HTTP.post(`/api/blade-mdc/status-record/time-distribution`,obj).then(res=> { |
| | |
| | | getwcsR() { |
| | | var obj = { |
| | | date: this.wcsDate, |
| | | humanFeedback: true, |
| | | humanFeedback: this.humanFeedback, |
| | | workstationId: this.lastLevelId |
| | | } |
| | | this.$HTTP.post(`/api/blade-mdc/status-record/equipment-efficiency`,obj).then(res=> { |
| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-04-26 09:36:18 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-06-17 22:40:51 |
| | | * @LastEditTime: 2024-09-09 12:00:25 |
| | | * @FilePath: /smart-web/src/views/mdc/status-record.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | <div class="status-box" v-for="item in achievements"><div class="status-color" :style="{'background-color': item.color}"></div>{{ item.name }}</div> |
| | | </div> |
| | | <div class="status-wrap"> |
| | | <el-checkbox v-model="checked1" label="人工反馈状态" size="large" /> |
| | | <el-checkbox v-model="humanFeedback" label="人工反馈状态" size="large" /> |
| | | <div class="status-con"> |
| | | <div class="status-box" v-for="item in collectionstatus"><div class="status-color" :style="{'background-color': item.color}"></div>{{ item.name }}</div> |
| | | </div> |
| | |
| | | <!-- collectionstatus 反馈状态 |
| | | date 日期 |
| | | workstationInfoList 工位list --> |
| | | <record-charts-by-date :achievements="allwcs" :date="date" :workstationInfoList="workstationInfoList" v-if="date != ''" ref="chart01"></record-charts-by-date> |
| | | <record-charts-by-date :achievements="allwcs" :date="date" :workstationInfoList="workstationInfoList" v-if="date != ''" ref="chart01" :humanFeedback="humanFeedback"></record-charts-by-date> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="按工位查看" name="time"> |
| | | <div class="fact-analysis-realtim"> |
| | |
| | | <div class="status-box" v-for="item in achievements"><div class="status-color" :style="{'background-color': item.color}"></div>{{ item.name }}</div> |
| | | </div> |
| | | <div class="status-wrap"> |
| | | <el-checkbox v-model="checked1" label="人工反馈状态" size="large" /> |
| | | <el-checkbox v-model="humanFeedback" label="人工反馈状态" size="large" /> |
| | | <div class="status-con"> |
| | | <div class="status-box" v-for="item in collectionstatus"><div class="status-color" :style="{'background-color': item.color}"></div>{{ item.name }}</div> |
| | | </div> |
| | |
| | | select: [], |
| | | workstationInfoList: [], |
| | | date: "", |
| | | checked1: true, |
| | | humanFeedback: true, |
| | | btnListActive: '', |
| | | btnGongweiListActive: "", |
| | | btnList: [], |
| | |
| | | this.setWork = { |
| | | endDate: this.time[1], |
| | | startDate: this.time[0], |
| | | humanFeedback: true, |
| | | humanFeedback: this.humanFeedback, |
| | | machineFeedback: true, |
| | | workstationId: this.lastLevelId, |
| | | workstationName: workstationName |
| | |
| | | this.setWork = { //工位 |
| | | endDate: this.time[1], |
| | | startDate: this.time[0], |
| | | humanFeedback: true, |
| | | humanFeedback: this.humanFeedback, |
| | | machineFeedback: true, |
| | | workstationId: this.select[0].id, |
| | | workstationName: this.btnGongweiList[0].name |
| | |
| | | this.setWork = { |
| | | endDate: this.time[1], |
| | | startDate: this.time[0], |
| | | humanFeedback: true, |
| | | humanFeedback: this.humanFeedback, |
| | | machineFeedback: true, |
| | | workstationId: item.id, |
| | | workstationName: workstationName |
| | |
| | | this.setWork = { //工位 |
| | | endDate: this.time[1], |
| | | startDate: this.time[0], |
| | | humanFeedback: true, |
| | | humanFeedback: this.humanFeedback, |
| | | machineFeedback: true, |
| | | workstationId: this.select[0].id, |
| | | workstationName: this.btnGongweiList[0].name |