|
@@ -116,51 +116,22 @@ import pieCharts from "./components/piecharts.vue"
|
|
|
import mixbarCharts from "./components/mixbarcharts.vue"
|
|
|
import ycmixbarCharts from "./components/ycmixbarcharts.vue"
|
|
|
import hbarCharts from "./components/hbarcharts.vue"
|
|
|
-import {getMaintenrecordList} from "@/api/work.js"
|
|
|
+import {getWorkorderList,getlistGanttTaskList,getMaintenrecordList,} from "@/api/work.js"
|
|
|
export default {
|
|
|
components:{boxTable,pieCharts,mixbarCharts,ycmixbarCharts,hbarCharts},
|
|
|
data() {
|
|
|
return {
|
|
|
visibleRows:6,
|
|
|
- dataList: [
|
|
|
- {xh: '1',kh: 'ZC',nb: '001',sl: '6500',jq: '05-10',},
|
|
|
- {xh: '2',kh: 'YTD',nb: '002',sl: '7000',jq: '05-18',},
|
|
|
- {xh: '3',kh: 'YDIKYDIKYDIKYDIKYDIK',nb: '006',sl: '5000',jq: '05-19',},
|
|
|
- {xh: '4',kh: 'CH',nb: '009',sl: '10000',jq: '05-24',},
|
|
|
- {xh: '5',kh: 'KY',nb: '014',sl: '12000',jq: '05-05',},
|
|
|
- {xh: '6',kh: 'GHJ',nb: '028',sl: '8000',jq: '06-10',},
|
|
|
- {xh: '7',kh: 'JKN',nb: '029',sl: '6050',jq: '06-12',},
|
|
|
- {xh: '8',kh: 'YH',nb: '032',sl: '9100',jq: '05-20',},
|
|
|
- {xh: '9',kh: 'WML',nb: '032',sl: '9100',jq: '05-20',},
|
|
|
- {xh: '10',kh: 'ZYB',nb: '032',sl: '9100',jq: '05-20',},
|
|
|
- ],
|
|
|
- columna:[{label:'序号',prop:'xh',width:"15%"},{label:'客户',prop:'kh',width:"20%"},{label:'内编',prop:'nb',width:"20&"},{label:'数量',prop:'sl',width:"20%"},{label:'交期',prop:'jq',width:"20%"},],
|
|
|
+ dataList: [],
|
|
|
+ columna:[{label:'客户',prop:'clientName',width:"20%"},{label:'内编',prop:'productCode',width:"20%"},{label:'数量',prop:'quantity',width:"20%"},{label:'交期',prop:'requestDate',width:"20%"},],
|
|
|
|
|
|
visibleRowsb:9,
|
|
|
- dataListb: [
|
|
|
- {xh: '1',kh: 'ZC',nb: '001',xb:'2',sl: '6500',wcl:"90%",jq: '05-10',},
|
|
|
- {xh: '2',kh: 'YTD',nb: '002',xb:'4',sl: '7000',wcl:"80%",jq: '05-18',},
|
|
|
- {xh: '3',kh: 'YDIK',nb: '006',xb:'5',sl: '5000',wcl:"90%",jq: '05-19',},
|
|
|
- {xh: '4',kh: 'CH',nb: '009',xb:'2',sl: '10000',wcl:"80%",jq: '05-24',},
|
|
|
- {xh: '5',kh: 'KY',nb: '014',xb:'1',sl: '12000',wcl:"90%",jq: '06-05',},
|
|
|
- {xh: '6',kh: 'GHJ',nb: '028',xb:'3',sl: '8000',wcl:"80%",jq: '06-10',},
|
|
|
- {xh: '7',kh: 'JKN',nb: '029',xb:'4',sl: '6050',wcl:"90%",jq: '05-12',},
|
|
|
- {xh: '8',kh: 'YH',nb: '032',xb:'5',sl: '9100',wcl:"90%",jq: '05-20',},
|
|
|
- {xh: '9',kh: 'WML',nb: '032',xb:'2',sl: '9100',wcl:"80%",jq: '06-05',},
|
|
|
- {xh: '10',kh: 'ZYB',nb: '032',xb:'1',sl: '9100',wcl:"60%",jq: '06-10',},
|
|
|
- ],
|
|
|
- columnb:[{label:'序号',prop:'xh',width:"10%"},{label:'客户',prop:'kh',width:"15%"},{label:'内编',prop:'nb',width:"15%"},{label:'线别',prop:'xb',width:"15%"},{label:'数量',prop:'sl',width:"15%"},{label:'完成率',prop:'wcl',width:"15%"},{label:'交期',prop:'jq',width:"15%"},],
|
|
|
+ dataListb: [],
|
|
|
+ columnb:[{label:'客户',prop:'clientName',width:"15%"},{label:'内编',prop:'productCode',width:"15%"},{label:'任务名称',prop:'text',width:"15%"},{label:'数量',prop:'quantity',width:"15%"},{label:'完成率',prop:'progress',width:"15%"},{label:'交期',prop:'requestDate',width:"15%"},],
|
|
|
visibleRowsc:4,
|
|
|
- dataListc: [
|
|
|
- {xh: '1',kh: '1#FCCL覆铜压合机',nb: 'PD-018',sl: '常规',wcl:"许雨林",zt: '1',},
|
|
|
- {xh: '2',kh: '2#FCCL覆铜压合机',nb: 'PD-019',sl: '常规',wcl:"郑火青",zt: '1',},
|
|
|
- {xh: '3',kh: '1#分切检查机',nb: 'PD-20',sl: '常规',wcl:"钱方云",zt: '1',},
|
|
|
- {xh: '4',kh: '2#高精密烤箱',nb: 'PD-22',sl: '常规',wcl:"许雨林",zt: '2',},
|
|
|
- {xh: '5',kh: '2#分切检查机',nb: 'PD-23',sl: '常规',wcl:"郑火青",zt: '1',},
|
|
|
- {xh: '6',kh: '3#高精密烤箱',nb: 'PD-25',sl: '常规',wcl:"钱方云",zt: '2',},
|
|
|
- ],
|
|
|
- statusOptionsc:[{dictValue:1,dictLabel:'运行中'},{dictValue:2,dictLabel:'维护中'}],
|
|
|
- columnc:[{label:'序号',prop:'xh',width:"10%"},{label:'设备名称',prop:'kh',width:"25%"},{label:'设备编号',prop:'nb',width:"15%"},{label:'保养项目',prop:'sl',width:"10%"},{label:'负责人',prop:'wcl',width:"15%"},{label:'当前状态',prop:'zt',width:"15%",type:"katype"},],
|
|
|
+ dataListc: [],
|
|
|
+ statusOptionsc:[{dictValue:'PREPARE',dictLabel:'维修中'},{dictValue:'FINISHED',dictLabel:'完成'}],
|
|
|
+ columnc:[{label:'设备名称',prop:'machineryName',width:"25%"},{label:'设备编号',prop:'machineryCode',width:"15%"},{label:'保养项目',prop:'planName',width:"10%"},{label:'负责人',prop:'nickName',width:"15%"},{label:'当前状态',prop:'status',width:"15%",type:"katype"},],
|
|
|
|
|
|
pieDataa:{data:[{value:4,name:'运行'},{value:0,name:'维护'},{value:0,name:'故障'},{value:4,name:'关机'}],name:"FCCL覆铜压合机",num:4},
|
|
|
pieDatab:{data:[{value:9,name:'运行'},{value:2,name:'维护'},{value:1,name:'故障'},{value:3,name:'关机'}],name:"高精密烤箱",num:9},
|
|
@@ -183,6 +154,8 @@ import {getMaintenrecordList} from "@/api/work.js"
|
|
|
},
|
|
|
created() {
|
|
|
this.getList()
|
|
|
+ this.getWorkorderList()
|
|
|
+ this.getlistGanttTaskList()
|
|
|
},
|
|
|
async mounted() {
|
|
|
clearInterval(this.timer);
|
|
@@ -204,6 +177,29 @@ import {getMaintenrecordList} from "@/api/work.js"
|
|
|
this.timer = null; // 防止内存泄漏
|
|
|
}
|
|
|
},
|
|
|
+ getWorkorderList(){
|
|
|
+ var params={
|
|
|
+ pageNum:this.pageNum,
|
|
|
+ pageSize:this.pageSize
|
|
|
+ }
|
|
|
+ getWorkorderList(params).then(res=>{
|
|
|
+ if(res.code==200){
|
|
|
+ this.dataList=res.rows
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getlistGanttTaskList(){
|
|
|
+ var params={
|
|
|
+ pageNum:this.pageNum,
|
|
|
+ pageSize:this.pageSize
|
|
|
+ }
|
|
|
+ getlistGanttTaskList(params).then(res=>{
|
|
|
+ if(res.code==200){
|
|
|
+ if(res.data&&res.data.data)
|
|
|
+ this.dataListb=res.data.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
getList(){
|
|
|
var params={
|
|
|
pageNum:this.pageNum,
|
|
@@ -211,7 +207,7 @@ import {getMaintenrecordList} from "@/api/work.js"
|
|
|
}
|
|
|
getMaintenrecordList(params).then(res=>{
|
|
|
if(res.code==200){
|
|
|
-
|
|
|
+ this.dataListc=res.rows
|
|
|
}
|
|
|
})
|
|
|
}
|