WXL (wul)
8 天以前 ffa22cc18c75c0a73a3fd987e2b62fbf55316db2
src/views/patient/patient/index.vue
@@ -182,16 +182,15 @@
                  >删除</el-button
                >
              </el-col>
              <el-col :span="1.5">
              <!-- <el-col :span="1.5">
                <el-button
                  type="primary"
                  plain
                  icon="el-icon-s-promotion"
                  size="medium"
                  @click="distribute"
                  >向任务派发患者</el-button
                >
              </el-col>
              </el-col> -->
              <el-col :span="6">
                <div class="documentf">
                  <div class="document">
@@ -253,7 +252,14 @@
                  <el-button
                    size="medium"
                    type="text"
                    @click="gettoken360(scope.row.idcardno,scope.row.drcode,scope.row.drname)"
                    @click="
                      gettoken360(
                        scope.row.idcardno,
                        scope.row.drcode,
                        scope.row.drname,
                        scope.row.id
                      )
                    "
                    ><span class="button-textsc">{{
                      scope.row.name
                    }}</span></el-button
@@ -370,14 +376,14 @@
                      ><i class="el-icon-edit"></i>患者过滤</span
                    ></el-button
                  >
                  <!-- <el-button
                  <el-button
                    size="medium"
                    type="text"
                    @click="Distributionservice(scope.row)"
                    ><span class="button-textxg"
                      ><i class="el-icon-menu"></i>服务</span
                    ><span class="button-textdx"
                      ><i class="el-icon-s-promotion"></i>短信发送</span
                    ></el-button
                  > -->
                  >
                  <!-- <el-button
                    size="medium"
                    type="text"
@@ -662,6 +668,11 @@
                type="textarea"
                placeholder="请输入过滤原因"
              ></el-input>
              <!-- 提醒文字 -->
              <div class="filter-warning">
                <i class="el-icon-warning-outline"></i>
                该功能适用于死亡、列入医院黑名单、明确拒绝随访等患者的过滤排除,过滤后该患者所有进行中任务全部停止且无法匹配新的随访任务,请谨慎操作!
              </div>
            </el-form-item>
          </el-col>
        </el-row>
@@ -872,7 +883,11 @@
  Exporterrorpatient,
  toleadpatient,
} from "@/api/patient/homepage";
import { getTasklist,query360PatInfo } from "@/api/AiCentre/index";
import {
  getTasklist,
  query360PatInfo,
  query360PatInfonh,
} from "@/api/AiCentre/index";
import { listtag } from "@/api/system/label";
import { getToken } from "@/utils/auth";
import Treeselect from "@riophae/vue-treeselect";
@@ -1040,8 +1055,8 @@
          YongHuXX: {
            XiTongID: "SUIFANGXT",
            XiTongMC: "随访系统",
            YongHuID: "1400466972205912064",
            YongHuXM: "JNRMYY",
            YongHuID: localStorage.getItem("YongHuID"),
            YongHuXM: localStorage.getItem("YongHuXM"),
            ZuZhiJGID: localStorage.getItem("orgid"),
            ZuZhiJGMC: localStorage.getItem("orgname"),
            idp: "lyra",
@@ -1208,12 +1223,26 @@
      });
    },
    //患者360跳转
    gettoken360(sfzh,drcode,drname) {
      this.postData.YeWuXX.BingRenXX.ZhengJianHM = sfzh;
      if (this.postData.XiaoXiTou.ZuHuMC=='丽水市中医院') {
        this.postData.YeWuXX.YongHuXX.YongHuID = '1400398571877961728';
        this.postData.YeWuXX.YongHuXX.YongHuXM = 'LSZYY';
    gettoken360(sfzh, drcode, drname, id) {
      const orgname = localStorage.getItem("orgname");
      if (orgname == "南华大学附属第一医院") {
        query360PatInfonh(id).then((res) => {
          if (res.data) {
            window.open(res.data, "_blank");
          } else {
            this.$modal.msgWarning("360查询无结果");
          }
        });
        return;
      } else if (
        orgname == "第一人民医院湖滨院区" ||
        orgname == "第一人民医院吴山院区"
      ) {
        let url = `http://192.200.81.189:9100/blj/view?BINGRENID=${id}&YONGHUID=DBA`;
        window.open(url, "_blank");
        return;
      }
      this.postData.YeWuXX.BingRenXX.ZhengJianHM = sfzh;
      query360PatInfo(this.postData).then((res) => {
        if (res.data.url) {
          window.open(res.data.url, "_blank");
@@ -1232,8 +1261,17 @@
        this.loading = false;
      });
    },
    Distributionservice(row) {
      this.serviceVisible = true;
    Distributionservice(patient) {
      this.$store.dispatch("sms/openSmsDialog", {
        name: patient.name,
        age: patient.age,
        phone: patient.telcode,
        deptName: patient.deptName,
        wardName: patient.wardName,
        smsTemplate: `尊敬的${patient.name},您好!`,
      });
      this.$message.success(`已准备向 ${patient.name} 发送短信`);
    },
    RiskMarker(row) {
      this.RiskVisible = true;
@@ -1277,7 +1315,7 @@
        leaveldeptcodes: [],
        leavehospitaldistrictcodes: [],
      };
        this.handleQuery();
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
@@ -1297,7 +1335,7 @@
      const userIds = row.id || this.ids;
      particularpatient(userIds).then((response) => {
        this.form = response.data;
        this.form.filterDrname = store.getters.name;
        this.form.filterDrname = store.getters.nickName;
      });
      this.amendtag = true;
      this.Labelchange = true;
@@ -1547,10 +1585,12 @@
  font-size: 20px;
}
::v-deep.leftvlue .el-card__body {
  background: #d0e9fd;
  background: #f2f8ff;
  color: #324a9b;
}
::v-deep.leftvlue .el-card__body:hover {
  background: #8dc8f8;
  background: #3664d9;
  color: #fff;
  cursor: pointer; /* 鼠标悬浮时变为手形 */
}
.leftvlue {
@@ -1614,8 +1654,34 @@
    height: 50px;
  }
}
.filter-warning {
  margin-top: 8px;
  padding: 10px 14px;
  background: #fff7e6;
  border: 1px solid #ffe58f;
  border-radius: 6px;
  color: #d46b08;
  font-size: 18px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.filter-warning .el-icon-warning-outline {
  font-size: 16px;
  color: #faad14;
  flex-shrink: 0;
  margin-top: 2px;
}
.button-textsc {
  color: #28cfe6;
  color: #3664d9;
}
.button-textxga {
  color: #de7897;
}
.button-textdx {
  color: #569655;
}
.button-textxg {
  color: #de7897;