qinxianzhangyao
2024-06-26 b893b03cf704214ce952c5ed2c28c6d741d3ea0a
src/views/doctor/examination/index.vue
@@ -49,6 +49,7 @@
          icon="el-icon-search"
          size="mini"
          @click="handleQuery"
          style="margin-right: 15px"
          >查询</el-button
        >
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
@@ -149,10 +150,7 @@
          <!--   v-hasPermi="['reservation:reservation:edit']" -->
          <el-table-column label="操作" align="center" width="120px">
            <template slot-scope="scope">
              <el-button
                size="mini"
                type="text"
                @click="tongbu(scope.row)"
              <el-button size="mini" type="text" @click="tongbu(scope.row)"
                >同步</el-button
              >
              <el-button
@@ -353,7 +351,6 @@
    };
  },
  created() {
    this.getList();
    this.getdate();
    // this.getNowTime();
  },
@@ -369,6 +366,7 @@
          moment(res.data).format("YYYY-MM-DD 00:00:00"),
          moment(res.data).format("YYYY-MM-DD 23:59:00"),
        ];
        this.getList();
      });
    },
    // / 处理默认选中当前日期
@@ -409,8 +407,14 @@
    getList() {
      this.loading = true;
      this.queryParams.checkStatus = this.checkStatus;
      this.queryParams.beginTime = this.createTimeList[0];
      this.queryParams.endTime = this.createTimeList[1];
      if (this.createTimeList) {
        this.queryParams.beginTime = this.createTimeList[0];
        this.queryParams.endTime = this.createTimeList[1];
      } else if (this.createTimeList == null) {
        this.queryParams.beginTime = null;
        this.queryParams.endTime = null;
      }
      getCsList(this.queryParams).then((res) => {
        if (res.code == 200) {
          this.loading = false;
@@ -454,7 +458,7 @@
    },
    hb() {
      console.log(this.queryParams.tjNumber);
      // console.log(this.queryParams.tjNumber);
      if (this.queryParams.tjNumber != null) {
        this.handleQuery();
      }
@@ -466,12 +470,14 @@
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.createTimeList = [];
      this.resetForm("queryForm");
      this.handleQuery();
      this.loading = true;
    },
    // 单选框选中数据
    handleSelectionChange(selection) {
      console.log(11111);
      this.selectList = selection;
      this.multipleSelection = [];
      if (selection.length > 1) {
@@ -487,12 +493,12 @@
        cSWebGetPro(tjNumber).then((res) => {
          this.xiangmuList = res.data;
          this.xiangmuList.forEach((item) => {
            console.log(item);
            if (item.type == 0) {
              this.dis = true;
            } else {
              this.dis = false;
            }
            // console.log(item);
            // if (item.type == 0) {
            //   this.dis = true;
            // } else {
            //   this.dis = false;
            // }
          });
        });
      });
@@ -520,18 +526,19 @@
          if (res.code == 200) {
            // this.$forceUpdate();
            this.getList();
            this.xiangmuList = []
            this.xiangmuList = [];
            this.$modal.msgSuccess("提交成功!");
          }
        });
      });
    },
    tongbu(row) {
      this.$refs.tb.toggleRowSelection(row);
      let tjNumber = row.tjNumber;
      dataSynchronization(tjNumber).then((res) => {
        if (res.code == 200) {
          // this.$forceUpdate();
          this.getList();
          // this.getList();
          this.$modal.msgSuccess("同步成功!");
        }
      });