wwl
2024-12-07 d194f4cd74da499f741100e5e3da5bcc3a0dc387
src/views/doctor/examination/index.vue
@@ -159,8 +159,9 @@
                size="mini"
                type="text"
                v-show="
                  scope.row.confirmStatus == '299' ||
                  scope.row.confirmStatus == 288
                  (xianshi == 'Y' || xianshi == 'y') &&
                  (scope.row.confirmStatus == '299' ||
                    scope.row.confirmStatus == 288)
                "
                @click="tongguo(scope.row)"
                >通过</el-button
@@ -169,8 +170,9 @@
                size="mini"
                type="text"
                v-show="
                  scope.row.confirmStatus == '301' ||
                  scope.row.confirmStatus == 288
                  (xianshi == 'Y' || xianshi == 'y') &&
                  (scope.row.confirmStatus == '301' ||
                    scope.row.confirmStatus == 288)
                "
                @click="bohui(scope.row)"
                >驳回</el-button
@@ -264,23 +266,24 @@
    </div>
    <div class="pag">
      <div class="pag1">
      <!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :pager-count="5" :current-page.sync="currentPage1" :current-page="page"
        <!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :pager-count="5" :current-page.sync="currentPage1" :current-page="page"
                :page-sizes="pageSize" :page-size="size" layout="total, sizes, prev, pager, next, jumper" :total="total">
            </el-pagination> -->
      <pagination
        v-show="total > 0"
        :total="total"
         :pager-count="5"
        :page.sync="queryParams.page"
        :limit.sync="queryParams.pageSize"
        @pagination="getList"
      />
    </div>
        <pagination
          v-show="total > 0"
          :total="total"
          :pager-count="5"
          :page.sync="queryParams.page"
          :limit.sync="queryParams.pageSize"
          @pagination="getList"
        />
      </div>
    </div>
  </div>
</template>
<script>
import { getConfigKey } from "@/api/system/config";
import {
  getCsList,
  confirmOrder,
@@ -313,6 +316,7 @@
      checkStatus: "0",
      exaList: [],
      // 表单参数
      xianshi: '',
      form: {},
      clearTimeSet: null,
      tjNumbers: "",
@@ -357,6 +361,7 @@
  },
  created() {
    this.getdate();
    // this.getNowTime();
  },
  mounted() {
@@ -366,6 +371,9 @@
  },
  methods: {
    getdate() {
      getConfigKey("tj_confirm").then((res) => {
        this.xianshi = res.msg;
      });
      getNewDateList().then((res) => {
        this.createTimeList = [
          moment(res.data).format("YYYY-MM-DD 00:00:00"),
@@ -562,21 +570,23 @@
      this.$modal.loading("正在同步,请稍候...");
      this.setTime();
      let tjNumber = row.tjNumber;
      dataSynchronization(tjNumber).then((res, error) => {
        if (res.code == 200) {
          // this.$forceUpdate();
      dataSynchronization(tjNumber)
        .then((res, error) => {
          if (res.code == 200) {
            // this.$forceUpdate();
            this.handleCurrentChange(row);
            clearInterval(this.clearTimeSet);
            this.clearTimeSet = null;
            this.$modal.closeLoading();
            this.$modal.msgSuccess("同步成功!");
          }
        })
        .catch((error) => {
          this.handleCurrentChange(row);
          clearInterval(this.clearTimeSet);
          this.clearTimeSet = null;
          this.$modal.closeLoading();
          this.$modal.msgSuccess("同步成功!");
        }
      }).catch(error => {
        this.handleCurrentChange(row);
          clearInterval(this.clearTimeSet);
          this.clearTimeSet = null;
          this.$modal.closeLoading();
      });
        });
    },
    // 驳回按钮
    bohui(row) {