qinxianzhangyao
2024-07-23 28b11b6ca5fad4ec33d4a1a4bbab62d5364cdab4
src/views/system/bill/index.vue
@@ -73,7 +73,7 @@
        <el-button
          type="primary"
          icon="el-icon-search"
          size="mini"
          size="mini" style="margin-right:15px;"
          @click="handleQuery"
          >搜索</el-button
        >
@@ -198,8 +198,8 @@
          :show-overflow-tooltip="true"
        >
          <template slot-scope="scope">
            <span v-if="scope.row.tjType == '1'">个人</span>
            <span v-if="scope.row.tjType == '2'">团队</span>
            <span v-if="scope.row.tjType == '2'">个人</span>
            <span v-if="scope.row.tjType == '1'">团队</span>
          </template>
        </el-table-column>
        <el-table-column
@@ -635,7 +635,7 @@
  },
  created() {
    // this.getNowTime();
    this.getList();
    this.Company();
    this.getdate();
  },
@@ -651,6 +651,7 @@
          moment(res.data).format("YYYY-MM-DD 00:00:00"),
          moment(res.data).format("YYYY-MM-DD 23:59:00"),
        ];
        this.getList();
      });
    },
    // / 处理默认选中当前日期
@@ -821,8 +822,18 @@
    },
    /** 查询体检记录列表 */
    getList() {
      this.queryParams.djbeginTime = this.startTime[0];
      if(this.createTimeList){
        this.queryParams.djbeginTime = this.createTimeList[0];
      this.queryParams.djendTime = this.createTimeList[1];
      }else if(this.createTimeList == null){
        this.queryParams.djbeginTime = null;
      this.queryParams.djendTime = null;
      }else{
        this.queryParams.djbeginTime = this.startTime[0];
      this.queryParams.djendTime = this.startTime[1];
      }
      this.loading = true;
      getOrderList(this.queryParams).then((response) => {
        this.orderList = response.data.list;
@@ -890,7 +901,7 @@
      this.resetForm("form");
    },
    hb(){
      console.log(this.queryParams.tjNum);
      // console.log(this.queryParams.tjNum);
       if (this.queryParams.tjNum != undefined) {
        this.handleQuery();
      }
@@ -902,6 +913,7 @@
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.createTimeList=[]
      this.resetForm("queryForm");
      this.handleQuery();
    },