qx
2025-06-12 d58b253342cf2c97ae3414ca40e3ca21724da664
qxtjjl
1个文件已修改
71 ■■■■ 已修改文件
src/views/hosp/order/index.vue 71 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/order/index.vue
@@ -1,4 +1,6 @@
<template>
  <div v-loading="isLoading" element-loading-text="正在提交,请稍候..." element-loading-spinner="el-icon-loading"
    element-loading-background="rgba(255, 255, 255, 0.8)" style="height: 100%; padding: 20px; position: relative;">
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="姓名" prop="name">
@@ -27,8 +29,9 @@
      </el-form-item>
      <el-form-item label="登记时间" prop="createTimeList" style="margin-right: 107px">
        <el-date-picker v-model="createTimeList" type="datetimerange" align="right" :picker-options="pickerOptions"
          style="width: 300px" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:00']"
          format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" @change="dateChangebirthday1">
            style="width: 300px" start-placeholder="开始日期" end-placeholder="结束日期"
            :default-time="['00:00:00', '23:59:00']" format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm"
            @change="dateChangebirthday1">
        </el-date-picker>
      </el-form-item>
      <!-- <el-form-item label="登记时间" prop="createTime">
@@ -72,10 +75,7 @@
          v-hasPermi="['hosp:order:export']">导出</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" size="mini" @click="handleRevoke" :loading="isLoading"
          :disabled="single">撤销签到</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" size="mini" @click="handleProject1" :disabled="single"
          v-hasPermi="['hosp:order:export']">补录项目</el-button>
@@ -98,11 +98,15 @@
          v-hasPermi="['hosp:order:export']">打印补录单</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" size="mini" @click="ForceChexiao" :disabled="single"
          <el-button style="background-color:#E6A23C;color:#fff"
           size="mini" @click="handleRevoke" :disabled="single">撤销签到</el-button>
        </el-col>
        <el-col :span="1.5">
          <el-button style="background-color:#E6A23C;color:#fff" size="mini" @click="ForceChexiao" :disabled="single"
          v-hasPermi="['qzcx']">强制撤销</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" size="mini" @click="ResumeAppointment" :disabled="multiple">恢复预约</el-button>
          <el-button style="background-color:#E6A23C;color:#fff" size="mini" @click="ResumeAppointment" :disabled="multiple">恢复预约</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>
@@ -125,7 +129,8 @@
          </template>
        </el-table-column>
        <el-table-column label="年龄" align="center" prop="tjCustomerAge" width="55px" :show-overflow-tooltip="true" />
        <el-table-column label="电话" align="center" prop="tjCustomerPhone" :show-overflow-tooltip="true" width="110px" />
          <el-table-column label="电话" align="center" prop="tjCustomerPhone" :show-overflow-tooltip="true"
            width="110px" />
        <el-table-column label="体检类型" align="center" prop="tjType" width="80px" :show-overflow-tooltip="true">
          <template slot-scope="scope">
            <dict-tag :options="dict.type.dict_team" :value="scope.row.tjType" />
@@ -138,7 +143,8 @@
        <el-table-column label="单位名称" align="center" prop="dictCompName" :show-overflow-tooltip="true" />
        <el-table-column label="状态" align="center" prop="zt" :show-overflow-tooltip="true" />
        <!-- <el-table-column label="流水号" align="center" prop="tjSerialNumber" /> -->
        <el-table-column label="所选套餐" align="center" prop="pacName" :formatter="driver" :show-overflow-tooltip="true" />
          <el-table-column label="所选套餐" align="center" prop="pacName" :formatter="driver"
            :show-overflow-tooltip="true" />
        <el-table-column label="导诊打印次数" align="center" prop="dycs" width="110px" :formatter="driver"
          :show-overflow-tooltip="true">
          <template slot-scope="scope">
@@ -910,6 +916,7 @@
      </div>
    </el-dialog>
  </div>
  </div>
</template>
<script>
@@ -1357,7 +1364,9 @@
    // 强制撤销按钮
    ForceChexiao() {
      const tjNum = this.tjnumbers;
      this.isLoading = true
      this.$confirm(
        "您是否需要强制撤销?撤销后该人员本次体检记录不可恢复!",
        "确认信息",
@@ -1370,12 +1379,26 @@
      )
        .then(() => {
          getForceChexiao(tjNum).then((res) => {
            if (res.code == 200) {
            this.$modal.msgSuccess("撤销成功");
              this.isLoading = false
            this.getList();
            }
          }).catch(() => {
            console.log("加载失败")
            this.isLoading = false;
          }).finally(() => {
            console.log("加载失败")
            // 不论操作成功还是失败,都会执行
            this.isLoading = false;
          });
        })
        .catch((action) => {
          this.isLoading = false
          if (action === "cancel") {
            this.$message({
              type: "warning",
@@ -1403,13 +1426,23 @@
      })
        .then(() => {
          huifuyuyuejilu(this.tjNUms).then((res) => {
            if (res.code == 200) {
            this.$modal.msgSuccess("恢复成功");
            // this.isLoading = false;
              this.isLoading = false
            this.getList();
            }
          }).catch(() => {
            console.log("加载失败")
            this.isLoading = false;
          }).finally(() => {
            console.log("加载失败")
            // 不论操作成功还是失败,都会执行
            this.isLoading = false;
          });
        })
        .catch((action) => {
          if (action === "cancel") {
            this.isLoading = false;
            this.$message({
              type: "warning",
              message: "已取消",
@@ -1418,7 +1451,7 @@
        })
        .finally(() => {
          // 不论操作成功还是失败,都会执行
          this.isLoading = false;
        });
    },
@@ -1431,13 +1464,23 @@
      })
        .then(() => {
          revokeTjOrderByTjNum(this.tjnumbers).then((res) => {
            if (res.code == 200) {
            this.$modal.msgSuccess("撤销成功");
            // this.isLoading = false;
              this.isLoading = false
            this.getList();
            }
          }).catch(() => {
            console.log("加载失败")
            this.isLoading = false;
          }).finally(() => {
            console.log("加载失败")
            // 不论操作成功还是失败,都会执行
            this.isLoading = false;
          });
        })
        .catch((action) => {
          if (action === "cancel") {
            this.isLoading = false;
            this.$message({
              type: "warning",
              message: "已取消",
@@ -1446,7 +1489,7 @@
        })
        .finally(() => {
          // 不论操作成功还是失败,都会执行
          this.isLoading = false;
          // this.isLoading = false;
        });
    },
    /** 点击显示体检报告报表*/