lkk
2024-12-16 c7b33db117fd2893d7d1c93bf5d46e87d33e44d0
src/views/hosp/settlement/index.vue
@@ -1,15 +1,23 @@
<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
      <el-form-item label="收费员" prop="tollCollectorName">
      <el-row>
        <el-col :span="6">
      <el-form-item label="收费员" prop="tollCollectorName" style="display: flex;">
        <el-input v-model="queryParams.tollCollectorName" placeholder="请输入收费员" clearable @keyup.enter.native="handleQuery"
          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-col>
      <el-col :span="15">
      <el-form-item label="结账时间" prop="tollCollectorName" style="display: flex;">
        <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-col>
    </el-row>
    </el-form>
    <el-row :gutter="10" class="mb8">
@@ -136,19 +144,21 @@
      });
    },
    // 时间
    dateChangebirthday1(val) {
      this.value1 = val;
    },
    /** 统计 */
    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;
@@ -268,7 +278,7 @@
              type: "success",
            });
            this.$forceUpdate();
            this.handleUpdate();
            this.getList();
            const accountId = res.msg;
            const viewNum = "809743614817824768";
            const params = { viewNum, accountId };