| | |
| | | style="width: 120px;" /> |
| | | </el-form-item> |
| | | <el-form-item label="结账时间" prop="tollCollectorName"> |
| | | <el-date-picker v-model="value1" type="datetimerange" start-placeholder="起止日期" end-placeholder="终止日期" |
| | | :default-time="['12:00:00']"> |
| | | <el-date-picker v-model="value1" type="datetimerange" start-placeholder="起止日期" end-placeholder="终止日期" :default-time="['00:00:00', '23:00:00']" |
| | | format="yyyy-MM-dd HH:mm:ss" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | @change="dateChangebirthday1"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | }); |
| | | |
| | | }, |
| | | // 时间 |
| | | dateChangebirthday1(val) { |
| | | this.value1 = val; |
| | | console.log(this.value1) |
| | | }, |
| | | |
| | | /** 统计 */ |
| | | handleUpdate() { |
| | | this.loading = true; |
| | | |
| | | let data = { |
| | | pageNum: this.queryParams.pageNum, |
| | | pageSize: this.queryParams.pageSize, |
| | | userId: this.userId.toString(), |
| | | beginTime: moment(this.time).format("YYYY-MM-DD HH:mm:ss"), |
| | | endTime: new Date(new Date().getTime() + 8 * 3600 * 1000) |
| | | .toJSON() |
| | | .substr(0, 19) |
| | | .replace("T", " "), |
| | | beginTime: this.value1[0], |
| | | endTime: this.value1[1] |
| | | }; |
| | | getList(data).then((res) => { |
| | | this.dataList = res.data.list; |
| | |
| | | type: "success", |
| | | }); |
| | | this.$forceUpdate(); |
| | | this.handleUpdate(); |
| | | this.getList(); |
| | | const accountId = res.msg; |
| | | const viewNum = "809743614817824768"; |
| | | const params = { viewNum, accountId }; |