6车间看板昨日改为本周工序进度
This commit is contained in:
parent
8ba7a12c88
commit
4b533d4e94
|
@ -43,7 +43,7 @@
|
||||||
<el-col :xs="24" :md="14" style="height: 100%;">
|
<el-col :xs="24" :md="14" style="height: 100%;">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="boxtitle">
|
<div class="boxtitle">
|
||||||
<div class="boxlabel">昨日工序进度</div>
|
<div class="boxlabel">本周工序进度</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="height: 4px;"></div>
|
<div style="height: 4px;"></div>
|
||||||
<div class="boxmain" id="scrollContainer2">
|
<div class="boxmain" id="scrollContainer2">
|
||||||
|
@ -294,7 +294,8 @@ export default {
|
||||||
chartInterval2:null,
|
chartInterval2:null,
|
||||||
currentTime:'',
|
currentTime:'',
|
||||||
currentDay:'',
|
currentDay:'',
|
||||||
|
weekFirst:'',
|
||||||
|
weekLast:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -318,8 +319,15 @@ export default {
|
||||||
this.start_date = start_date;
|
this.start_date = start_date;
|
||||||
this.end_date = end_date;
|
this.end_date = end_date;
|
||||||
this.today = year+'-'+month+'-'+day;
|
this.today = year+'-'+month+'-'+day;
|
||||||
let yesterday = new Date(date.getTime()-24*60*60*1000);
|
// let yesterday = new Date(date.getTime()-24*60*60*1000);
|
||||||
this.yesterday = yesterday.getFullYear()+"-" + (yesterday.getMonth()+1) + "-" + yesterday.getDate();
|
// this.yesterday = yesterday.getFullYear()+"-" + (yesterday.getMonth()+1) + "-" + yesterday.getDate();
|
||||||
|
let week = date.getDay();//当前时间的week数
|
||||||
|
let weekFirst = week - 1;//第一天对应的天数
|
||||||
|
let weekLast = 7 - week;//最后一天对应的天数
|
||||||
|
let first = new Date(new Date(date.getTime() - (weekFirst * ondDayTime)));//本周周一
|
||||||
|
let last = new Date(new Date(date.getTime() + (weekLast * ondDayTime)));//本周周日
|
||||||
|
this.weekFirst = first.getFullYear() + '-' + (first.getMonth() + 1) + '-' + first.getDate();
|
||||||
|
this.weekLast = last.getFullYear() + '-' + (last.getMonth() + 1) + '-' + last.getDate();
|
||||||
this.getsaleOut();
|
this.getsaleOut();
|
||||||
this.getMioItem();//发货情况
|
this.getMioItem();//发货情况
|
||||||
this.getTodayUtask();//今日任务
|
this.getTodayUtask();//今日任务
|
||||||
|
@ -397,12 +405,12 @@ export default {
|
||||||
this.saleOutData = saleOutData;
|
this.saleOutData = saleOutData;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//昨日工序进展
|
//本周工序进展
|
||||||
getMtask(){
|
getMtask(){
|
||||||
let that = this;
|
let that = this;
|
||||||
let obj ={};
|
let obj ={};
|
||||||
obj.start_date = this.today;
|
obj.start_date = this.weekFirst;
|
||||||
obj.end_date = this.today;
|
obj.end_date = this.weekLast;
|
||||||
obj.mgroup__belong_dept__name='6车间';
|
obj.mgroup__belong_dept__name='6车间';
|
||||||
obj.page=0;
|
obj.page=0;
|
||||||
that.$API.pm.mtask.list.req(obj).then((res) => {
|
that.$API.pm.mtask.list.req(obj).then((res) => {
|
||||||
|
|
Loading…
Reference in New Issue