|
@@ -129,8 +129,8 @@ export default {
|
|
|
loadData: parameter => {
|
|
|
const searchData = Object.assign(parameter, this.queryParam)
|
|
|
if (this.time && this.time.length) {
|
|
|
- searchData.beginDate = moment(this.time[0]).format('YYYY-MM-DD')
|
|
|
- searchData.endDate = moment(this.time[1]).format('YYYY-MM-DD')
|
|
|
+ searchData.beginDate = moment(this.time[0]).format('YYYY-MM-DD 00:00:00')
|
|
|
+ searchData.endDate = moment(this.time[1]).format('YYYY-MM-DD 23:59:59')
|
|
|
} else {
|
|
|
searchData.beginDate = null
|
|
|
searchData.endDate = null
|
|
@@ -197,8 +197,8 @@ export default {
|
|
|
getTotal () {
|
|
|
const params = this.queryParam
|
|
|
if (this.time && this.time.length) {
|
|
|
- params.beginDate = moment(this.time[0]).format('YYYY-MM-DD')
|
|
|
- params.endDate = moment(this.time[1]).format('YYYY-MM-DD')
|
|
|
+ params.beginDate = moment(this.time[0]).format('YYYY-MM-DD 00:00:00')
|
|
|
+ params.endDate = moment(this.time[1]).format('YYYY-MM-DD 23:59:59')
|
|
|
} else {
|
|
|
params.beginDate = null
|
|
|
params.endDate = null
|
|
@@ -206,7 +206,7 @@ export default {
|
|
|
getCleanDetailsTotal(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
if (res.data != 0 || null) {
|
|
|
- this.cleanWeightTotal = (res.data / 1000).toFixed(2)
|
|
|
+ this.cleanWeightTotal = (res.data.cleanWeight / 1000).toFixed(2)
|
|
|
}
|
|
|
} else {
|
|
|
this.cleanWeightTotal = 0
|