zhangdan 4 gadi atpakaļ
vecāks
revīzija
402704cf28
2 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. 3 0
      pages/index/addData.vue
  2. 2 2
      pages/index/index.vue

+ 3 - 0
pages/index/addData.vue

@@ -167,6 +167,9 @@
 					imageUrlList: this.photograph,
 					remarks: this.form.remarks
 				}
+				if(this.itemId){
+					params.id=this.itemId
+				}
 				if(this.form.gatherNum_other) {
 					params.rubbishEntityList.push({
 						"rubbishType":"GATHER_OTHER",

+ 2 - 2
pages/index/index.vue

@@ -193,8 +193,8 @@
 			getTotal(){
 				this.titleStatus = true
 				gatherTotal({
-					beginDate: this.searchForm.beginDate,
-					endDate: this.searchForm.endDate}).then(res=>{
+					beginDate: this.searchForm.beginDate?moment(this.searchForm.beginDate).format('YYYY-MM-DD 00:00:00'):'',
+					endDate: this.searchForm.endDate ? moment(this.searchForm.endDate).format('YYYY-MM-DD 23:59:59'):''}).then(res=>{
 						if(res.status==200){
 							this.otherTotal=res.data.GATHER_OTHER ? (res.data.GATHER_OTHER/1000).toFixed(3)/1:0
 							this.jianzhuTotal=res.data.GATHER_BUILDING ? (res.data.GATHER_BUILDING/1000).toFixed(3)/1:0