|
@@ -202,6 +202,7 @@
|
|
<script>
|
|
<script>
|
|
import PageTitle from '@/components/Page/Title'
|
|
import PageTitle from '@/components/Page/Title'
|
|
import { sjTime } from '@/utils/sharedJsFile'
|
|
import { sjTime } from '@/utils/sharedJsFile'
|
|
|
|
+import { accAdd } from '@/utils/util.js'
|
|
import FileSaver from 'file-saver'
|
|
import FileSaver from 'file-saver'
|
|
import BigNumber from 'bignumber.js'
|
|
import BigNumber from 'bignumber.js'
|
|
export default {
|
|
export default {
|
|
@@ -381,24 +382,40 @@ export default {
|
|
countRow.receivedNum += item.receivedNum
|
|
countRow.receivedNum += item.receivedNum
|
|
countRow.queueNum += item.queueNum
|
|
countRow.queueNum += item.queueNum
|
|
countRow.enFactoryNum += item.enFactoryNum
|
|
countRow.enFactoryNum += item.enFactoryNum
|
|
- countRow.totalNet =
|
|
|
|
- (countRow.totalNet * 10000 + item.totalNet * 10000) / 10000
|
|
|
|
- countRow.materialThoWeight =
|
|
|
|
- (countRow.materialThoWeight * 10000 +
|
|
|
|
- item.materialThoWeight * 10000) /
|
|
|
|
- 10000
|
|
|
|
-
|
|
|
|
- countRow.unloadThoWeight =
|
|
|
|
- (countRow.unloadThoWeight * 10000 +
|
|
|
|
- item.unloadThoWeight * 10000) /
|
|
|
|
- 10000
|
|
|
|
- countRow.trainWeight =
|
|
|
|
- (item.trainWeight * 10000 + countRow.trainWeight * 10000) /
|
|
|
|
- 10000
|
|
|
|
- countRow.trainThoWeight =
|
|
|
|
- (item.trainThoWeight * 10000 +
|
|
|
|
- countRow.trainThoWeight * 10000) /
|
|
|
|
- 10000
|
|
|
|
|
|
+ // countRow.totalNet =
|
|
|
|
+ // (countRow.totalNet * 10000 + item.totalNet * 10000) / 10000
|
|
|
|
+ // countRow.materialThoWeight =
|
|
|
|
+ // (countRow.materialThoWeight * 10000 +
|
|
|
|
+ // item.materialThoWeight * 10000) /
|
|
|
|
+ // 10000
|
|
|
|
+ countRow.totalNet = accAdd(countRow.totalNet, item.totalNet)
|
|
|
|
+ countRow.materialThoWeight = accAdd(
|
|
|
|
+ countRow.materialThoWeight,
|
|
|
|
+ item.materialThoWeight
|
|
|
|
+ )
|
|
|
|
+ countRow.unloadThoWeight = accAdd(
|
|
|
|
+ countRow.unloadThoWeight,
|
|
|
|
+ item.unloadThoWeight
|
|
|
|
+ )
|
|
|
|
+ countRow.trainWeight = accAdd(
|
|
|
|
+ countRow.trainWeight,
|
|
|
|
+ item.trainWeight
|
|
|
|
+ )
|
|
|
|
+ countRow.trainThoWeight = accAdd(
|
|
|
|
+ countRow.trainThoWeight,
|
|
|
|
+ item.trainThoWeight
|
|
|
|
+ )
|
|
|
|
+ // countRow.unloadThoWeight =
|
|
|
|
+ // (countRow.unloadThoWeight * 10000 +
|
|
|
|
+ // item.unloadThoWeight * 10000) /
|
|
|
|
+ // 10000
|
|
|
|
+ // countRow.trainWeight =
|
|
|
|
+ // (item.trainWeight * 10000 + countRow.trainWeight * 10000) /
|
|
|
|
+ // 10000
|
|
|
|
+ // countRow.trainThoWeight =
|
|
|
|
+ // (item.trainThoWeight * 10000 +
|
|
|
|
+ // countRow.trainThoWeight * 10000) /
|
|
|
|
+ // 10000
|
|
}
|
|
}
|
|
})
|
|
})
|
|
if (countRow.planNum) {
|
|
if (countRow.planNum) {
|
|
@@ -460,18 +477,35 @@ export default {
|
|
countRow1.receivedNum += item.receivedNum
|
|
countRow1.receivedNum += item.receivedNum
|
|
countRow1.queueNum += item.queueNum
|
|
countRow1.queueNum += item.queueNum
|
|
countRow1.enFactoryNum += item.enFactoryNum
|
|
countRow1.enFactoryNum += item.enFactoryNum
|
|
- countRow1.totalNet =
|
|
|
|
- (countRow1.totalNet * 1000 + item.totalNet * 1000) / 1000
|
|
|
|
- countRow1.materialThoWeight =
|
|
|
|
- (countRow1.materialThoWeight * 1000 +
|
|
|
|
- item.materialThoWeight * 1000) /
|
|
|
|
- 1000
|
|
|
|
- countRow1.unloadThoWeight =
|
|
|
|
- (countRow1.unloadThoWeight * 1000 +
|
|
|
|
- item.unloadThoWeight * 1000) /
|
|
|
|
- 1000
|
|
|
|
- countRow1.trainWeight += item.trainWeight
|
|
|
|
- countRow1.trainThoWeight += item.trainThoWeight
|
|
|
|
|
|
+ // countRow1.totalNet =
|
|
|
|
+ // (countRow1.totalNet * 1000 + item.totalNet * 1000) / 1000
|
|
|
|
+ // countRow1.materialThoWeight =
|
|
|
|
+ // (countRow1.materialThoWeight * 1000 +
|
|
|
|
+ // item.materialThoWeight * 1000) /
|
|
|
|
+ // 1000
|
|
|
|
+ // countRow1.unloadThoWeight =
|
|
|
|
+ // (countRow1.unloadThoWeight * 1000 +
|
|
|
|
+ // item.unloadThoWeight * 1000) /
|
|
|
|
+ // 1000
|
|
|
|
+ countRow1.totalNet = accAdd(countRow1.totalNet, item.totalNet)
|
|
|
|
+ countRow1.materialThoWeight = accAdd(
|
|
|
|
+ countRow1.materialThoWeight,
|
|
|
|
+ item.materialThoWeight
|
|
|
|
+ )
|
|
|
|
+ countRow1.unloadThoWeight = accAdd(
|
|
|
|
+ countRow1.unloadThoWeight,
|
|
|
|
+ item.unloadThoWeight
|
|
|
|
+ )
|
|
|
|
+ countRow1.trainWeight = accAdd(
|
|
|
|
+ countRow1.trainWeight,
|
|
|
|
+ item.trainWeight
|
|
|
|
+ )
|
|
|
|
+ countRow1.trainThoWeight = accAdd(
|
|
|
|
+ countRow1.trainThoWeight,
|
|
|
|
+ item.trainThoWeight
|
|
|
|
+ )
|
|
|
|
+ // countRow1.trainWeight += item.trainWeight
|
|
|
|
+ // countRow1.trainThoWeight += item.trainThoWeight
|
|
}
|
|
}
|
|
})
|
|
})
|
|
countRow1.percent =
|
|
countRow1.percent =
|