6车间看板昨日改为本周工序进度

This commit is contained in:
shijing 2024-01-19 16:06:40 +08:00
parent 8ba7a12c88
commit 4b533d4e94
1 changed files with 15 additions and 7 deletions

View File

@ -43,7 +43,7 @@
<el-col :xs="24" :md="14" style="height: 100%;">
<div class="box">
<div class="boxtitle">
<div class="boxlabel">昨日工序进度</div>
<div class="boxlabel">本周工序进度</div>
</div>
<div style="height: 4px;"></div>
<div class="boxmain" id="scrollContainer2">
@ -294,7 +294,8 @@ export default {
chartInterval2:null,
currentTime:'',
currentDay:'',
weekFirst:'',
weekLast:'',
}
},
mounted() {
@ -318,8 +319,15 @@ export default {
this.start_date = start_date;
this.end_date = end_date;
this.today = year+'-'+month+'-'+day;
let yesterday = new Date(date.getTime()-24*60*60*1000);
this.yesterday = yesterday.getFullYear()+"-" + (yesterday.getMonth()+1) + "-" + yesterday.getDate();
// let yesterday = new Date(date.getTime()-24*60*60*1000);
// 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.getMioItem();//
this.getTodayUtask();//
@ -397,12 +405,12 @@ export default {
this.saleOutData = saleOutData;
});
},
//
//
getMtask(){
let that = this;
let obj ={};
obj.start_date = this.today;
obj.end_date = this.today;
obj.start_date = this.weekFirst;
obj.end_date = this.weekLast;
obj.mgroup__belong_dept__name='6车间';
obj.page=0;
that.$API.pm.mtask.list.req(obj).then((res) => {