|
@@ -92,25 +92,25 @@ export default {
|
|
|
arrx.push(element.date)
|
|
|
element.datas.forEach((res) => {
|
|
|
if (res.level === 'A') {
|
|
|
- if (res.dayqty) {
|
|
|
+ if (res.dayqty && res.dayqty == 0) {
|
|
|
arr.push(Math.ceil(res.count / res.dayqty))
|
|
|
} else {
|
|
|
arr.push(Math.ceil(res.count / 1))
|
|
|
}
|
|
|
} else if (res.level == 'B') {
|
|
|
- if (res.dayqty) {
|
|
|
+ if (res.dayqty && res.dayqty != 0) {
|
|
|
Low.push(Math.ceil(res.count / res.dayqty))
|
|
|
} else {
|
|
|
Low.push(Math.ceil(res.count / 1))
|
|
|
}
|
|
|
} else if (res.level == 'C') {
|
|
|
- if (res.dayqty) {
|
|
|
+ if (res.dayqty && res.dayqty != 0) {
|
|
|
firs.push(Math.ceil(res.count / res.dayqty))
|
|
|
} else {
|
|
|
firs.push(Math.ceil(res.count / 1))
|
|
|
}
|
|
|
} else if (res.level == 'D') {
|
|
|
- if (res.dayqty) {
|
|
|
+ if (res.dayqty && res.dayqty != 0) {
|
|
|
pt.push(Math.ceil(res.count / res.dayqty))
|
|
|
} else {
|
|
|
pt.push(Math.ceil(res.count / 1))
|
|
@@ -150,7 +150,7 @@ export default {
|
|
|
for (let i = 0; i <= arr.length; i++) {
|
|
|
datas[i] = Number(arr[i]) + Number(Low[i]) + Number(firs[i]) + Number(pt[i])
|
|
|
}
|
|
|
- console.log(datas)
|
|
|
+ // console.log(datas)
|
|
|
this.inits(arr, arrx, Low, firs, pt, datas)
|
|
|
}
|
|
|
// console.log(result)
|