WXL (wul)
6 天以前 a5cba9ab040f6f97558046885dce3017f9bab7e9
src/views/followvisit/discharge/index.vue
@@ -94,6 +94,8 @@
            :options="sourcetype"
            :props="{ expandTrigger: 'hover' }"
            @change="handleChange"
            filterable
            clearable
          ></el-cascader>
        </el-form-item>
@@ -167,7 +169,7 @@
                plain
                icon="el-icon-warning-outline"
                size="medium"
                @click="toleadExport(1)"
                @click="toleadExport(1, 1)"
                >执行失败</el-button
              >
            </div>
@@ -181,7 +183,7 @@
                plain
                icon="el-icon-warning"
                size="medium"
                @click="toleadExport(2)"
                @click="toleadExport(2, 1)"
                >结果异常</el-button
              >
            </div>
@@ -241,12 +243,27 @@
          </div>
        </el-col>
      </el-row>
      <div class="selected-info">
        已选中
        <span style="color: #409eff; font-weight: bold">{{
          getSelectedCount()
        }}</span>
        条数据
        <el-button
          v-if="getSelectedCount() > 0"
          type="text"
          @click="clearAllSelection"
        >
          清除选中
        </el-button>
      </div>
      <el-table
        v-loading="loading"
        ref="userform"
        :data="userList"
        :row-class-name="tableRowClassName"
        @selection-change="handleSelectionChange"
        @select-all="handleSelectAll"
      >
        <el-table-column type="selection" width="50" align="center" />
        <el-table-column
@@ -356,6 +373,15 @@
          </template>
        </el-table-column>
        <el-table-column
          label="当前执行方式"
          align="center"
          key="currentPreachform"
          prop="currentPreachform"
          width="160"
          :show-overflow-tooltip="true"
        >
        </el-table-column>
        <el-table-column
          label="随访完成时间"
          sortable
          align="center"
@@ -378,16 +404,30 @@
          </template></el-table-column
        >
        <el-table-column
          label="开始随访时间"
          width="146"
          align="center"
          key="longSendTime"
          prop="longSendTime"
          :render-header="Tooltipks"
        >
          <template slot-scope="scope">
            <span>{{ formatTime(scope.row.longSendTime) }}</span>
          </template></el-table-column
        >
        <el-table-column
          label="应随访日期"
          width="146"
          align="center"
          key="visitTime"
          prop="visitTime"
          :render-header="Tooltipy"
        >
          <template slot-scope="scope">
            <span>{{ formatTime(scope.row.visitTime) }}</span>
          </template></el-table-column
        >
        <!-- 原 -->
        <el-table-column
          label="主治医生"
@@ -395,6 +435,20 @@
          align="center"
          key="drname"
          prop="drname"
        />
        <el-table-column
          label="责任护士"
          width="120"
          align="center"
          key="nurseName"
          prop="nurseName"
        />
        <el-table-column
          label="经管医生"
          align="center"
          key="managementDoctor"
          prop="managementDoctor"
          width="120"
        />
        <el-table-column
          v-if="orgname != '丽水市中医院'"
@@ -478,20 +532,6 @@
          prop="sfzh"
        />
        <el-table-column
          label="责任护士"
          width="120"
          align="center"
          key="nurseName"
          prop="nurseName"
        />
        <el-table-column
          label="经管医生"
          align="center"
          key="managementDoctor"
          prop="managementDoctor"
          width="120"
        />
        <!-- <el-table-column
          label="病历号"
          align="center"
@@ -618,6 +658,15 @@
              @click="handleUpdate(scope.row)"
              ><span class="button-textxga"
                ><i class="el-icon-edit"></i>患者过滤</span
              ></el-button
            >
            <el-button
              size="medium"
              type="text"
              v-if="orgname == '南华大学附属第一医院'"
              @click="handleTransferOpen(scope.row)"
              ><span class="button-textxgc"
                ><i class="el-icon-sort"></i>变更科/区</span
              ></el-button
            >
          </template>
@@ -879,81 +928,7 @@
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
    <!-- 修改发送时间对话框 -->
    <el-dialog
      title="发送时间设置"
      :visible.sync="modificationVisible"
      width="45%"
    >
      <div style="margin-bottom: 20px; color: red">
        统一修改当天未发送的任务时间
      </div>
      <el-form
        :model="ruleForm"
        :rules="rules"
        ref="ruleForm"
        label-width="120px"
        class="demo-ruleForm"
      >
        <el-form-item label="发送日期">
          <el-date-picker
            v-model="ruleForm.value1"
            type="date"
            placeholder="选择日期"
          >
          </el-date-picker>
        </el-form-item>
        <el-form-item label="时间段" prop="type">
          <el-checkbox-group v-model="ruleForm.type">
            <el-checkbox label="上午" name="type"></el-checkbox>
            <el-checkbox label="下午" name="type"></el-checkbox>
            <el-checkbox label="晚上" name="type"></el-checkbox>
          </el-checkbox-group>
        </el-form-item>
        <el-form-item label="上午时间区间" required>
          <el-time-picker
            is-range
            v-model="ruleForm.value2"
            range-separator="至"
            start-placeholder="开始时间"
            end-placeholder="结束时间"
            placeholder="选择时间范围"
          >
          </el-time-picker>
        </el-form-item>
        <el-form-item label="下午时间区间" required>
          <el-time-picker
            is-range
            v-model="ruleForm.value3"
            range-separator="至"
            start-placeholder="开始时间"
            end-placeholder="结束时间"
            placeholder="选择时间范围"
          >
          </el-time-picker>
        </el-form-item>
        <el-form-item label="晚上时间区间" required>
          <el-time-picker
            is-range
            v-model="ruleForm.value4"
            range-separator="至"
            start-placeholder="开始时间"
            end-placeholder="结束时间"
            placeholder="选择时间范围"
          >
          </el-time-picker>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="modificationVisible = false">取 消</el-button>
        <el-button type="primary" @click="modificationVisible = false"
          >确 定</el-button
        >
      </span>
    </el-dialog>
    <!-- 再次随访 -->
    <el-dialog title="患者再次随访" :visible.sync="dialogFormVisible">
      <el-form ref="zcform" :rules="zcrules" :model="zcform" label-width="80px">
@@ -1026,6 +1001,57 @@
        <el-button type="primary" @click="setupsubtask">确认创建服务</el-button>
      </div>
    </el-dialog>
    <!-- 变更科室/病区弹窗 -->
    <el-dialog
      title="变更科室/病区"
      :visible.sync="transferDialogVisible"
      width="480px"
      :close-on-click-modal="false"
    >
      <el-form :model="transferForm" label-width="100px">
        <el-form-item label="当前科室">
          <span>{{ transferForm.currentDeptName || "-" }}</span>
        </el-form-item>
        <el-form-item label="当前病区">
          <span>{{ transferForm.currentWardName || "-" }}</span>
        </el-form-item>
        <el-form-item label="目标科室">
          <el-cascader
            v-model="transferDeptValue"
            :options="deptOptionsks"
            :props="cascaderPropsa"
            placeholder="请选择目标科室"
            filterable
            clearable
            style="width: 100%"
            @change="handleDeptCascaderChange"
          />
        </el-form-item>
        <el-form-item label="目标病区">
          <el-cascader
            v-model="transferWardValue"
            :options="deptOptionsbq"
            :props="cascaderPropsa"
            placeholder="请选择目标病区"
            filterable
            clearable
            style="width: 100%"
            @change="handleWardCascaderChange"
          />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="transferDialogVisible = false">取 消</el-button>
        <el-button
          type="primary"
          :loading="transferLoading"
          @click="handleTransferSubmit"
        >
          确认变更
        </el-button>
      </div>
    </el-dialog>
  </div>
</template>
@@ -1036,6 +1062,7 @@
  updateUser,
  resetUserPwd,
  changeUserStatus,
  deptTreeSelect,
} from "@/api/system/user";
import {
  getTaskservelist,
@@ -1043,6 +1070,7 @@
  addserviceSubtask,
  query360PatInfo,
  addsatisfaction,
  transferDept,
  query360PatInfonh,
} from "@/api/AiCentre/index";
import { alterpatient, particularpatient } from "@/api/patient/homepage";
@@ -1077,8 +1105,7 @@
      title: "新增影像随访",
      // 是否显示修改、添加弹出层
      addalteropen: false,
      // 修改发送时间对话框
      modificationVisible: false,
      // 部门名称
      deptName: undefined,
      // 默认密码
@@ -1101,6 +1128,7 @@
      inputValue: "",
      preachform: "",
      previewVisible: false, //影像随访预览弹框
      isRestoring: false,
      radio: "",
      radios: [],
      previewtype: 2, //预览影像随访类型
@@ -1108,6 +1136,8 @@
      // 满意度调查数据
      scoreDialogVisible: false,
      selectedRows: [],
      selectedRowMap: new Map(), // key: row.id, value: row 数据
      // 级联选择器绑定值
      serviceStatusValue: 10,
      cascaderProps: {
@@ -1251,12 +1281,21 @@
        pageNum: 1,
        pageSize: 10,
        sendstateView: 1,
        sort: localStorage.getItem("orgname") == "丽水市中医院" ? 8 : 1, //0 出院时间(正序)    1 出院时间(倒序)   2 发送时间(正序)    3 发送时间(倒序)  7应随访日期(倒序) 应随访日期(正序)
        sort:
          localStorage.getItem("orgname") == "丽水市中医院"
            ? 8
            : localStorage.getItem("orgname") == "景宁畲族自治县人民医院"
            ? 2
            : 1, //0 出院时间(正序)    1 出院时间(倒序)   2 发送时间(正序)    3 发送时间(倒序)  7应随访日期(倒序) 应随访日期(正序)
        serviceType: 2,
        sendstate: null,
        searchscope: 3,
        visitCount: 1,
        scopetype: [],
        managementDoctor:
          localStorage.getItem("orgname") == "缙云县人民医院"
            ? store.getters.nickName
            : "",
        leaveldeptcodes: [],
        leavehospitaldistrictcodes: [],
      },
@@ -1354,6 +1393,25 @@
      leavehospitaldistrictcode: "",
      serviceState: [],
      checkboxlist: [],
      // 变更科室/病区
      transferDialogVisible: false,
      transferForm: {
        subId: null,
        leavelDeptCode: "",
        leavelDeptName: "",
        leavehospitaldistrictcode: "",
        leavehospitaldistrictname: "",
      },
      deptOptionsks: [],
      deptOptionsbq: [],
      transferDeptValue: [],
      transferWardValue: [],
      cascaderPropsa: {
        value: "deptCode",
        label: "label",
        checkStrictly: true,
      },
      transferLoading: false,
      // 表单校验
      rules: {},
    };
@@ -1433,7 +1491,7 @@
  },
  methods: {
    /** 查询随访服务列表 */
    getList(refresh) {
    async getList(refresh) {
      // 默认全部
      if (this.topqueryParams.searchscope == 3) {
        this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
@@ -1446,16 +1504,17 @@
        this.topqueryParams.endSendDateTime = this.formatDateToYYYYMMDDHHMMSS(
          this.getEndOfDay()
        );
      } else {
        // this.topqueryParams.endSendDateTime = null;
      }
      // 接受异常跳转
      if (this.errtype) {
        this.topqueryParams.leavehospitaldistrictcodes.push(
          this.leavehospitaldistrictcode
        );
      }
      this.loading = true;
      if (
        this.topqueryParams.leavehospitaldistrictcodes[0] &&
        this.topqueryParams.leaveldeptcodes[0]
@@ -1464,27 +1523,43 @@
      } else {
        this.topqueryParams.deptOrDistrict = 1;
      }
      if (!this.followupAuthority()) {
        this.$message.warning("未配置科室/病区相关权限不可查询");
        this.loading = false;
        return Promise.reject(new Error("无权限查询"));
      }
      getTaskservelist(this.topqueryParams).then((response) => {
      try {
        const response = await getTaskservelist(this.topqueryParams);
        // ✅ 第一步:先锁定恢复状态
        this.isRestoring = true;
        // ✅ 第二步:再更新数据(这会触发 selection-change,但被锁住了)
        this.userList = response.rows[0].serviceSubtaskList;
        this.total = response.total;
        // ✅ 第三步:恢复选中状态
        // this.restoreSelection();
        this.$nextTick(() => {
          this.restoreSelection();
        });
        // ✅ 第四步:处理其他数据
        if (refresh) {
          this.cardlist[0].value =
            Number(response.rows[0].wxsf) + Number(response.rows[0].xsf) || 0;
          // this.cardlist[1].value = response.rows[0].wzx;
          this.cardlist[1].value = response.rows[0].wxsf || 0;
          this.ycvalue = Number(response.rows[0].yc) || 0
          this.ycvalue = Number(response.rows[0].yc) || 0;
          this.jgvalue = response.rows[0].jg;
          this.cardlist[2].value = response.rows[0].xsf || 0;
          this.cardlist[3].value = response.rows[0].dsf || 0;
          this.cardlist[4].value = response.rows[0].ywc || 0;
          this.yfsvalue = response.rows[0].yfs;
        }
        this.loading = false;
        // ✅ 第五步:处理 preachform 等其他数据
        this.userList.forEach((item) => {
          let idArray = null;
          if (item.endtime) {
@@ -1492,23 +1567,36 @@
          }
          if (item.preachform) {
            if (item.endtime) {
              item.preachformson = item.preachform;
              idArray = item.preachform.split(",");
            }
            item.preachformson = item.preachform;
            idArray = item.preachform.split(",");
            item.preachform = idArray.map((value) => {
              // 查找id对应的对象
              const item = this.checkboxlist.find(
                (item) => item.value == value
              );
              // 如果找到对应的id,返回label值,否则返回null
              return item ? item.label : null;
            });
          }
          if (item.currentPreachform) {
            item.currentPreachform = this.checkboxlist.find(
              (item) => item.value == item.currentPreachform
            )?.value;
            console.log(item.currentPreachform, "mi");
          }
        });
        this.total = response.total;
      });
        this.loading = false;
        // ✅ 第六步:解锁
        this.$nextTick(() => {
          this.isRestoring = false;
        });
      } catch (error) {
        console.error("获取列表失败:", error);
        this.loading = false;
        this.isRestoring = false;
      }
    },
    loadData() {
      this.errtype = this.$route.query.errtype;
@@ -1530,6 +1618,32 @@
        this.getList(1);
      }
    },
    Tooltipy(h, { column }) {
      return h(
        "el-tooltip",
        {
          props: {
            content: "任务配置多种补偿类型时,最新执行类型的应随访时间",
            placement: "top",
            effect: "dark",
          },
        },
        [h("span", column.label)]
      );
    },
    Tooltipks(h, { column }) {
      return h(
        "el-tooltip",
        {
          props: {
            content: "任务存在多种补偿类型时的首次应随访时间",
            placement: "top",
            effect: "dark",
          },
        },
        [h("span", column.label)]
      );
    },
    // 时间
    getEndOfDay() {
      const date = new Date(); // 创建一个表示当前时间的Date对象
@@ -1547,10 +1661,13 @@
      return `${year}-${month}-${day}`;
    },
    affiliation() {
      this.resetQuerykj();
      this.topqueryParams.managementDoctorCode = store.getters.hisUserId;
      this.getList(1);
    },
    onthatday() {
      this.resetQuerykj();
      this.topqueryParams.startSendDateTime = this.getCurrentDate();
      this.topqueryParams.endSendDateTime = this.getCurrentDate();
      this.getList(1);
@@ -1559,7 +1676,11 @@
      const now = new Date();
      return now.toISOString().slice(0, 10); // 截取前10个字符,即 YYYY-MM-DD
    },
    buidegetTasklist(type) {
      if (type) {
        this.resetQuerykj();
      }
      if (this.topqueryParams.searchscope == 3) {
        this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
          (obj) => obj.deptCode
@@ -1588,7 +1709,7 @@
          Number(response.rows[0].wxsf) + Number(response.rows[0].xsf) || 0;
        this.cardlist[1].value = response.rows[0].wzx;
        this.cardlist[2].value = response.rows[0].ysf;
        this.ycvalue = Number(response.rows[0].yc) || 0
        this.ycvalue = Number(response.rows[0].yc) || 0;
        this.jgvalue = response.rows[0].jg;
        this.cardlist[3].value = response.rows[0].fssb;
        this.cardlist[4].value = response.rows[0].dsf;
@@ -1693,10 +1814,20 @@
    },
    // 患者范围处理
    handleChange(value) {
      let type = value[0];
      let code = value.slice(-1)[0];
      console.log("选择的患者范围:", value);
      // 清空之前的查询参数
      this.topqueryParams.leavehospitaldistrictcodes = [];
      this.topqueryParams.leaveldeptcodes = [];
      this.topqueryParams.searchscope = null;
      if (!value || value.length === 0) {
        return;
      }
      let type = value[0];
      let code = value.slice(-1)[0];
      if (type == 1) {
        this.topqueryParams.leaveldeptcodes.push(code);
        this.topqueryParams.leavehospitaldistrictcodes = [];
@@ -1759,12 +1890,36 @@
      };
      this.handleQuery(1);
    },
    /** 重置按钮操作 */
    resetQuerykj() {
      this.dateRange = [];
      this.dateRangefs = [];
      this.serviceStatusValue = null;
      this.topqueryParams = {
        pageNum: 1,
        pageSize: 10,
        sendstateView: null,
        sort: 2, //0 出院时间(正序)    1 出院时间(倒序)   2 发送时间(正序)    3 发送时间(倒序)
        serviceType: 2,
        searchscope: 3,
        visitCount: 1,
        scopetype: [],
        leaveldeptcodes: [],
        leavehospitaldistrictcodes: [],
      };
    },
    handleSelectionChange(rows) {
      console.log(rows, 911);
      // ✅ 如果是恢复选中状态触发的,直接返回
      if (this.isRestoring) {
        console.log("正在恢复选中状态,跳过 handleSelectionChange");
        return;
      }
      this.selectedRows = rows.map((row) => {
        // 初始化评分字段
        return {
      console.log("handleSelectionChange 被触发,选中行数:", rows.length);
      // 只做添加操作
      rows.forEach((row) => {
        this.selectedRowMap.set(row.id, {
          ...row,
          authenticity: row.authenticity || 0,
          weekFinish: row.weekFinish || 0,
@@ -1774,14 +1929,11 @@
          environment: row.environment || 0,
          doctorSatisfaction: row.doctorSatisfaction || 0,
          nurseSatisfaction: row.nurseSatisfaction || 0,
        };
        });
      });
      if (this.selectedRows.length > 0) {
        this.multiple = false;
      } else {
        this.multiple = true;
      }
      this.selectedRows = Array.from(this.selectedRowMap.values());
      this.multiple = this.selectedRows.length === 0;
    },
    // 计算总分
@@ -1977,10 +2129,7 @@
        })
        .catch(() => {});
    },
    // 设置发送时间
    Sendtimesetting() {
      this.modificationVisible = true;
    },
    // 跳转详情页
    Seedetails(row) {
      let type = "";
@@ -2046,8 +2195,10 @@
      this.Labelchange = true;
    },
    // 便捷按钮
    toleadExport(too) {
      console.log(too, "too");
    toleadExport(too, type) {
      if (type) {
        this.resetQuerykj();
      }
      if (too == 1) {
        this.topqueryParams.sendstate = 4;
@@ -2059,7 +2210,6 @@
        this.topqueryParams.endSendDateTime = this.formatDateToYYYYMMDDHHMMSS(
          this.getEndOfDay()
        );
        console.log(1111, this.topqueryParams.endSendDateTime);
        this.topqueryParams.excep = null;
        this.topqueryParams.sendstate = 2;
@@ -2104,6 +2254,76 @@
      }
      return "";
    },
    restoreSelection() {
      if (!this.$refs.userform) {
        console.log("表格引用不存在");
        return;
      }
      console.log("执行 restoreSelection");
      // 清除当前页的所有选中状态
      this.$refs.userform.clearSelection();
      // 找出当前页中哪些行是被选中的
      const toBeSelected = this.userList.filter((row) =>
        this.selectedRowMap.has(row.id)
      );
      console.log("需要恢复的行数:", toBeSelected.length);
      // 重新选中这些行
      toBeSelected.forEach((row) => {
        this.$refs.userform.toggleRowSelection(row, true);
      });
    },
    // ✅ 处理表头全选事件
    handleSelectAll(selection) {
      console.log("全选事件触发,选中行数:", selection.length);
      // 如果 selection 长度等于当前页行数,说明是全选
      if (selection.length === this.userList.length) {
        // 全选当前页
        this.userList.forEach((row) => {
          this.selectedRowMap.set(row.id, {
            ...row,
            authenticity: row.authenticity || 0,
            weekFinish: row.weekFinish || 0,
            standard: row.standard || 0,
            timeliness: row.timeliness || 0,
            library: row.library || 0,
            environment: row.environment || 0,
            doctorSatisfaction: row.doctorSatisfaction || 0,
            nurseSatisfaction: row.nurseSatisfaction || 0,
          });
        });
      } else {
        // 取消全选:清除当前页的选中状态
        this.userList.forEach((row) => {
          this.selectedRowMap.delete(row.id);
        });
      }
      // 更新 selectedRows
      this.selectedRows = Array.from(this.selectedRowMap.values());
      this.multiple = this.selectedRows.length === 0;
    },
    // 清除所有选中
    clearAllSelection() {
      this.selectedRowMap.clear();
      this.selectedRows = [];
      this.multiple = true;
      if (this.$refs.userform) {
        this.$refs.userform.clearSelection();
      }
    },
    // 获取选中数量
    getSelectedCount() {
      return this.selectedRowMap.size;
    },
    // 创建再次随访服务
    setupsubtask() {
      this.$refs["zcform"].validate((valid) => {
@@ -2145,6 +2365,98 @@
      const seconds = String(now.getSeconds()).padStart(2, "0");
      return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
    },
    // ---------- 变更科室/病区 ----------
    handleTransferOpen(row) {
      if (!this.deptOptionsks.length) {
        deptTreeSelect(1).then((res) => {
          this.deptOptionsks = res.data || [];
        });
        deptTreeSelect(2).then((res) => {
          this.deptOptionsbq = res.data || [];
        });
      }
      this.transferForm = {
        subId: row.id || row.subtaskid,
        leavelDeptCode: "",
        leavelDeptName: "",
        leavehospitaldistrictcode: "",
        leavehospitaldistrictname: "",
        currentDeptName: row.deptname || row.deptName || "",
        currentWardName:
          row.leavehospitaldistrictname || row.leavehospitaldistrictName || "",
      };
      this.transferDeptValue = [];
      this.transferWardValue = [];
      this.transferDialogVisible = true;
    },
    handleDeptCascaderChange(val) {
      if (val && val.length) {
        this.transferForm.leavelDeptCode = val[val.length - 1];
        // 从选项树中查找对应名称
        const node = this.findCascaderNode(this.deptOptionsks, this.transferForm.leavelDeptCode);
        this.transferForm.leavelDeptName = node ? node.label : '';
      } else {
        this.transferForm.leavelDeptCode = '';
        this.transferForm.leavelDeptName = '';
      }
    },
    handleWardCascaderChange(val) {
      if (val && val.length) {
        this.transferForm.leavehospitaldistrictcode = val[val.length - 1];
        const node = this.findCascaderNode(this.deptOptionsbq, this.transferForm.leavehospitaldistrictcode);
        this.transferForm.leavehospitaldistrictname = node ? node.label : '';
      } else {
        this.transferForm.leavehospitaldistrictcode = '';
        this.transferForm.leavehospitaldistrictname = '';
      }
    },
    findCascaderNode(options, code) {
      for (const item of options) {
        if (item.deptCode === code || item.value === code) return item;
        if (item.children) {
          const found = this.findCascaderNode(item.children, code);
          if (found) return found;
        }
      }
      return null;
    },
    handleTransferSubmit() {
      const hasDept = !!this.transferForm.leavelDeptCode;
      const hasWard = !!this.transferForm.leavehospitaldistrictcode;
      if (!hasDept && !hasWard) {
        this.$modal.msgError("请至少选择目标科室或目标病区");
        return;
      }
      console.log(this.transferForm);
      // 组装变更提示文本
      const deptName = this.transferForm.leavelDeptName || "不变";
      const wardName = this.transferForm.leavehospitaldistrictname || "不变";
      const tip = `确认将科室变更为"${deptName}"、病区变更为"${wardName}"?`;
      this.$modal
        .confirm(tip, "变更确认")
        .then(() => {
          this.transferLoading = true;
          transferDept(this.transferForm)
            .then((res) => {
              if (res.code === 200) {
                this.$modal.msgSuccess("科室/病区变更成功");
                this.transferDialogVisible = false;
                this.getList();
              } else {
                this.$modal.msgError(res.msg || "变更失败");
              }
            })
            .catch(() => {
              this.$modal.msgError("变更失败,请重试");
            })
            .finally(() => {
              this.transferLoading = false;
            });
        })
        .catch(() => {});
    },
  },
};
@@ -2325,6 +2637,9 @@
.button-textxga {
  color: #de7897;
}
.button-textxgc {
  color: #9054e4;
}
.purple-button.is-disabled {
  background-color: #d8b4fe;
  border-color: #d8b4fe;
@@ -2373,4 +2688,15 @@
  flex-shrink: 0;
  margin-top: 2px;
}
::v-deep .el-table__row.selected-row:hover > td {
  background-color: #e6f7ff !important;
}
/* 选中信息显示 */
.selected-info {
  padding: 10px 0;
  font-size: 14px;
  color: #666;
}
</style>