fix:控制台本月交付数

This commit is contained in:
shijing 2025-04-28 09:46:06 +08:00
parent aea42e54c8
commit c3c63afc2d
1 changed files with 2 additions and 71 deletions

View File

@ -135,9 +135,6 @@
"
>
<div class="bottomItem">
<!-- <div class="countname">本月计划完成度</div>
<p class="countnum">{{ hgNumber }}%</p> -->
<!-- <p class="countrate">同比上周<span class="redColor"> 8.63%</span> 月同比6.47%</p> -->
<div
id="barCharts"
style="width: 100%; height: 289px"
@ -407,17 +404,9 @@ export default {
tongbi10: 0,
dayPayNum6: 0, //
tongbi06: 0,
monthPayNum6: 0,
monthPassRate7: 0,
monthPassRate10: 0,
// dayAVGcountOk: 0,
// AVGOktongbi: 0,
// dayAVGcountDelivered: 0,
// AVGDelivertongbi: 0,
monthRateAVG: 0,
monthPayNumAVG: 0,
hgNumber: 0,
option: {
tooltip: {
@ -835,76 +824,18 @@ export default {
});
//6
that.$API.bi.dataset.exec.req("saleOutMonth", obj6).then((res6) => {
let sum6 = 0,sum6AVG = 0;
let sum6 = 0;
if (res6.data2.ds0&&res6.data2.ds0.length>0) {
let list6 = res6.data2.ds0;
if (list6.length > 0) {
list6.forEach((item) => {
if(item.物料.indexOf('AVG')>-1){
sum6AVG = sum6AVG + item.数量;
}else{
sum6 = sum6 + item.数量;
}
sum6 = sum6 + item.数量;
});
}
}
this.monthPayNum6 = sum6;
this.monthPayNumAVG = sum6AVG;
});
},
//AVG
getAVGDayData() {
let that = this;
let date = that.yesterday;
let date0 = that.yesterdayBefore;
this.$API.wpm.otherlog.list.req({
product: "AVG",
page: 0,
handle_date__gte: date,
handle_date__lte: date,
}).then((res) => {
let list = res;
let count_ok = 0,
count_delivered = 0;
if (list.length > 0) {
list.forEach((item) => {
count_ok = count_ok + item.count_ok;
count_delivered =
count_delivered + item.count_delivered;
});
// that.dayAVGcountOk = count_ok;
that.dayAVGcountDelivered = count_delivered;
this.$API.wpm.otherlog.list.req({
product: "AVG",
page: 0,
handle_date__gte: date0,
handle_date__lte: date0,
}).then((res0) => {
let list0 = res0;
let count_ok0 = 0,
count_delivered0 = 0;
if (list0.length > 0) {
list0.forEach((item0) => {
count_ok0 = count_ok0 + item0.count_ok;
count_delivered0 =
count_delivered0 +
item0.count_delivered;
});
that.AVGOktongbi = Math.round(
((count_ok - count_ok0) / count_ok0) *
100
);
that.AVGDelivertongbi = Math.round(
((count_delivered - count_delivered0) /
count_delivered0) *
100
);
}
});
}
});
},
getProductStatistic() {
let that = this;
let start_date = that.year_s + "-" + that.month_s + "-01";