|
@@ -93,27 +93,27 @@ export default {
|
|
|
element.datas.forEach((res) => {
|
|
|
if (res.level === 'A') {
|
|
|
if (res.dayqty) {
|
|
|
- arr.push(res.count / res.dayqty)
|
|
|
+ arr.push(Math.ceil(res.count / res.dayqty))
|
|
|
} else {
|
|
|
- arr.push(res.count / 1)
|
|
|
+ arr.push(Math.ceil(res.count / 1))
|
|
|
}
|
|
|
} else if (res.level == 'B') {
|
|
|
if (res.dayqty) {
|
|
|
- Low.push(res.count / res.dayqty)
|
|
|
+ Low.push(Math.ceil(res.count / res.dayqty))
|
|
|
} else {
|
|
|
- Low.push(res.count / 1)
|
|
|
+ Low.push(Math.ceil(res.count / 1))
|
|
|
}
|
|
|
} else if (res.level == 'C') {
|
|
|
if (res.dayqty) {
|
|
|
- firs.push(res.count / res.dayqty)
|
|
|
+ firs.push(Math.ceil(res.count / res.dayqty))
|
|
|
} else {
|
|
|
- firs.push(res.count / 1)
|
|
|
+ firs.push(Math.ceil(res.count / 1))
|
|
|
}
|
|
|
} else if (res.level == 'D') {
|
|
|
if (res.dayqty) {
|
|
|
- pt.push(res.count / res.dayqty)
|
|
|
+ pt.push(Math.ceil(res.count / res.dayqty))
|
|
|
} else {
|
|
|
- pt.push(res.count / 1)
|
|
|
+ pt.push(Math.ceil(res.count / 1))
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -135,13 +135,13 @@ export default {
|
|
|
arrx.push(element.date)
|
|
|
element.datas.forEach((res) => {
|
|
|
if (res.level === 'A') {
|
|
|
- arr.push((res.count / 24).toFixed(2))
|
|
|
+ arr.push(Math.ceil(res.count / 24))
|
|
|
} else if (res.level == 'B') {
|
|
|
- Low.push((res.count / 24).toFixed(2))
|
|
|
+ Low.push(Math.ceil(res.count / 24))
|
|
|
} else if (res.level == 'C') {
|
|
|
- firs.push((res.count / 24).toFixed(2))
|
|
|
+ firs.push(Math.ceil(res.count / 24))
|
|
|
} else if (res.level == 'D') {
|
|
|
- pt.push((res.count / 24).toFixed(2))
|
|
|
+ pt.push(Math.ceil(res.count / 24))
|
|
|
}
|
|
|
})
|
|
|
// console.log(arr);
|