Commit 0e463b9e authored by zhanglw's avatar zhanglw

隐藏生产计划每日采集概览

parent 54b8f717
......@@ -33,11 +33,11 @@
</div>
</div>
<!-- <div style="width:100%;font-size:12px;padding-left:5px;">采点分配概览:</div>-->
<div class="fbListBox">
<div v-for="item in day.sumList" :style="{width:item.pv+'%',height:'2px',margin:'2px',background:'#8fbc8f'}">
<div :style="{width:item.av+'%',height:'2px',background:'#00a0e9'}"></div>
</div>
</div>
<!-- <div class="fbListBox">-->
<!-- <div v-for="item in day.sumList" :style="{width:item.pv+'%',height:'2px',margin:'2px',background:'#8fbc8f'}">-->
<!-- <div :style="{width:item.av+'%',height:'2px',background:'#00a0e9'}"></div>-->
<!-- </div>-->
<!-- </div>-->
</div>
<div v-else>
<div style="width: 100%;display:flex">
......@@ -157,9 +157,9 @@ export default {
},
submitPlanView(){
const This = this;
let d = new Date(this.planSDate);
// this.planSDate = this.planSDate.toJSON?this.planSDate.toJSON().substr(0,10):this.planSDate;
// this.planEDate = this.planEDate.toJSON?this.planEDate.toJSON().substr(0,10):this.planEDate;
let d = new Date(this.planSDate);
this.planSDate=`${d.getFullYear()}-${('0' + (d.getMonth() + 1)).substr(-2)}-${('0' + (d.getDate())).substr(-2)}`;
d = new Date(this.planEDate);
this.planEDate=`${d.getFullYear()}-${('0' + (d.getMonth() + 1)).substr(-2)}-${('0' + (d.getDate())).substr(-2)}`;
......@@ -286,7 +286,7 @@ export default {
let maxVal = resData.maxSite || 1;
dayObj.totalPlan = resData.totalPlan;
dayObj.totalProduce = resData.totalProduce;
dayObj.sumList = resData.sumList;
dayObj.sumList = resData.sumList || [];
dayObj.sumList.forEach((item) => {
item.pv = Math.round(item.plan / maxVal * 100);
item.av = Math.min(100, Math.round(item.actualProduction / item.plan * 100));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment