| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- const herfurl = window.location.href.split('index')[0] //跳转地址
- let app = new Vue({
- el: '#app',
- data() {
- return {
- time: '',
- timeout: 15000, // 一分钟发一次心跳
- pageindex: 0,
- planCompletionRate:0,
- productionGoodProductRate:0,
- dataCount:0,
- comprehensive: [],
- dataList: [],
- shortageConfig: [{
- name:'张三',
- code:'SCGD202409060001',
- product:'DM(90*96*12)',
- number:'-',
- date:'-',
- datetime:'2024-09-06 17:06:58'
- },{
- name:'张三',
- code:'SCGD202409060001',
- product:'DM(90*96*12)',
- number:'-',
- date:'-',
- datetime:'2024-09-06 17:06:58'
- },{
- name:'张三',
- code:'SCGD202409060001',
- product:'DM(90*96*12)',
- number:'-',
- date:'-',
- datetime:'2024-09-06 17:06:58'
- },{
- name:'张三',
- code:'SCGD202409060001',
- product:'DM(90*96*12)',
- number:'-',
- date:'-',
- datetime:'2024-09-06 17:06:58'
- },{
- name:'张三',
- code:'SCGD202409060001',
- product:'DM(90*96*12)',
- number:'-',
- date:'-',
- datetime:'2024-09-06 17:06:58'
- },{
- name:'张三',
- code:'SCGD202409060001',
- product:'DM(90*96*12)',
- number:'-',
- date:'-',
- datetime:'2024-09-06 17:06:58'
- },{
- name:'张三',
- code:'SCGD202409060001',
- product:'DM(90*96*12)',
- number:'-',
- date:'-',
- datetime:'2024-09-06 17:06:58'
- },{
- name:'张三',
- code:'SCGD202409060001',
- product:'DM(90*96*12)',
- number:'-',
- date:'-',
- datetime:'2024-09-06 17:06:58'
- },{
- name:'张三',
- code:'SCGD202409060001',
- product:'DM(90*96*12)',
- number:'-',
- date:'-',
- datetime:'2024-09-06 17:06:58'
- },{
- name:'张三',
- code:'SCGD202409060001',
- product:'DM(90*96*12)',
- number:'-',
- date:'-',
- datetime:'2024-09-06 17:06:58'
- }]
-
-
- }
- },
- mounted() {
- setTimeout(() => {
- this.handleTime()
- let token = getQueryVariable('token')
- //顶部统计信息
- get('/mbwb/api/v1/erpscs/productionScreen/getTopStatistics',{},{
- Authorization:token +'='
- }).then(res => {
- this.planCompletionRate = res.info.planCompletionRate
- this.productionGoodProductRate = res.info.productionGoodProductRate
- })
- //领料库存情况
- get('/mbwb/api/v1/erpscs/productionScreen/getNeedMaterialStock',{},{
- Authorization:token +'='
- }).then(res => {
- this.comprehensive = res.infos
- })
- //生产排产情况
- get('/mbwb/api/v1/erpscs/productionScreen/getProductionScheduleInfo',{},{
- Authorization:token +'='
- }).then(res => {
- this.dataList = res.infos
- this.dataCount = res.totalCount
- })
-
- //获取报工情况
- get('/mbwb/api/v1/erpscs/productionScreen/getWorkReportInfo',{},{
- Authorization:token +'='
- }).then(res => {
-
- })
- }, 0)
- },
- methods: {
- handleTime() {
- setInterval(() => {
- this.time = dayjs().format('YYYY-MM-DD HH:mm:ss')
- }, 1000)
- },
- },
- })
|