WXL (wul)
10 小时以前 30898b3fcc871f58f0d49200bd50de30cd6b12ad
测试完成
已修改10个文件
145 ■■■■ 文件已修改
src/api/AiCentre/EChartsdata.js 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/system/config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/CallButton/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/sipService.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/again/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/discharge/outpatientService.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/record/detailpage/index.vue 82 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/zbAgain/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login.vue 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/patient/outpatient.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/AiCentre/EChartsdata.js
@@ -59,3 +59,19 @@
    data: data,
  });
}
// 获取orgid
// 再次随访服务
export function getorganization(data) {
  return request({
    url: "/smartor/organization/list",
    method: "get",
  });
}
// 发送短信
export function sendMsg(data) {
  return request({
    url: "/sms/send",
    method: "post",
    data: data
  });
}
src/api/system/config.js
@@ -28,7 +28,7 @@
// 新增参数配置
export function addConfig(data) {
  return request({
    url: '/system/config',
    url: '/system/config/add',
    method: 'post',
    data: data
  })
src/components/CallButton/index.vue
@@ -44,8 +44,8 @@
      sipStatus: "未连接",
      sipStatusClass: "status-disconnected",
      sipConfig: {
        wsUrl: "wss://192.168.10.124:7443",
        sipUri: `${randomNum}` + "@192.168.10.124",
        wsUrl: "wss://1192.170.66.107:7443",
        sipUri: `${randomNum}` + "@1192.170.66.107",
        password: "Smartor@2023",
        displayName: "Web 小龙",
        // realm: "9.208.5.18:8090",
src/utils/sipService.js
@@ -84,7 +84,7 @@
        };
        this.currentSession = this.ua.call(
          `sip:${targetNumber}@192.168.10.124`,
          `sip:${targetNumber}@1192.170.66.107`,
          options
        );
src/views/followvisit/again/index.vue
@@ -1197,7 +1197,7 @@
    },
    affiliation() {
      this.topqueryParams.managementDoctor = store.getters.hisUserId;
      this.topqueryParams.managementDoctorCode= store.getters.hisUserId;
      this.getList(1);
    },
src/views/followvisit/discharge/outpatientService.vue
@@ -1181,7 +1181,7 @@
    },
    affiliation() {
      this.topqueryParams.managementDoctor = store.getters.hisUserId;
      this.topqueryParams.managementDoctorCode= store.getters.hisUserId;
      this.getList(1);
    },
src/views/followvisit/record/detailpage/index.vue
@@ -712,6 +712,9 @@
                  <el-button plain type="info" @click="Editsingletaskson('5')"
                    >中心随访</el-button
                  >
                  <el-button type="primary" round @click="sendAgainmsg"
                    >短信发送</el-button
                  >
                </div>
              </el-form-item>
            </el-form>
@@ -773,7 +776,53 @@
        </div>
      </div>
    </div>
    <!-- 短信发送对话框 -->
    <el-dialog title="短信发送" :visible.sync="smsDialogVisible">
      <!-- 注意这里使用了 smsDialogVisible 以区分已有的 dialogFormVisible -->
      <el-form ref="smsForm" :model="form" label-width="80px">
        <el-form-item label="患者名称">
          <el-input
            style="width: 400px"
            disabled
            v-model="form.sendname"
          ></el-input>
        </el-form-item>
        <el-form-item label="年龄">
          <el-input style="width: 400px" disabled v-model="form.age"></el-input>
        </el-form-item>
        <el-form-item label="电话">
          <el-input
            style="width: 400px"
            disabled
            v-model="userform.telcode"
          ></el-input>
          <!-- 注意这里可能使用 userform.telcode -->
        </el-form-item>
        <el-form-item label="科室">
          <el-input
            style="width: 400px"
            disabled
            v-model="form.deptname"
          ></el-input>
        </el-form-item>
        <el-form-item label="病区">
          <el-input
            style="width: 400px"
            disabled
            v-model="form.leavehospitaldistrictname"
          ></el-input>
        </el-form-item>
        <el-form-item label="短信内容">
          <el-input type="textarea" v-model="smsContent"></el-input>
          <!-- 建议使用独立的 smsContent 变量 -->
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="smsDialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="sendSms">确认发送</el-button>
        <!-- 注意方法名改为 sendSms -->
      </div>
    </el-dialog>
    <el-dialog
      title="患者再次随访"
      v-dialogDrags
@@ -935,6 +984,7 @@
  updatePersonVoices,
  addPersonVoices,
  query360PatInfo,
  sendMsg,
} from "@/api/AiCentre/index";
import {
  messagelistpatient,
@@ -1197,6 +1247,8 @@
        },
      ],
      userform: {},
      smsDialogVisible: false, // 控制短信对话框显示
      smsContent: "", // 存储短信内容
      Whetherall: true, //是否全部记录展示
      dialogFormVisible: false,
      Voicetype: 0, //是否为语音服务
@@ -1714,6 +1766,34 @@
        }
      });
    },
    // 调起短信发送对话框
    sendAgainmsg() {
      this.smsDialogVisible = true;
      // 可以在这里初始化 smsContent,例如 this.smsContent = '';
    },
    // 发送短信的方法
    sendSms() {
      // 这里调用你的短信发送 API
      // 假设 API 为 sendMsg,参数可能需要根据实际情况调整
      sendMsg({
        phone: this.userform.telcode, // 确保电话号码字段正确
        content: this.smsContent,
      })
        .then((res) => {
          if (res.code == 200) {
            this.$modal.msgSuccess("发送成功");
            this.smsDialogVisible = false; // 关闭对话框
            this.smsContent = ""; // 清空内容
          } else {
            this.$modal.msgError("发送失败");
          }
        })
        .catch((error) => {
          console.error("发送短信失败:", error);
          this.$modal.msgError("发送失败");
        });
    },
    Editsingletaskson(son) {
      let objson = {};
      getTaskservelist({
src/views/followvisit/zbAgain/index.vue
@@ -1187,7 +1187,7 @@
    },
    affiliation() {
      this.topqueryParams.managementDoctor = store.getters.hisUserId;
      this.topqueryParams.managementDoctorCode= store.getters.hisUserId;
      this.getList(1);
    },
    onthatday() {
src/views/login.vue
@@ -38,10 +38,13 @@
      </el-form-item>
      <!-- 丽===================水 -->
      <el-form-item prop="orgid">
        <el-select style="width: 100%;" v-model="loginForm.orgid"  placeholder="请选择院区">
        <el-select
          style="width: 100%"
          v-model="loginForm.orgid"
          placeholder="请选择院区"
        >
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
@@ -101,6 +104,7 @@
import { getCodeImg } from "@/api/login";
import Cookies from "js-cookie";
import { encrypt, decrypt } from "@/utils/jsencrypt";
import { getorganization } from "@/api/AiCentre/index";
export default {
  name: "Login",
@@ -145,6 +149,7 @@
    },
  },
  created() {
    this.getorganization();
    this.getCode();
    this.getCookie();
    // if (localStorage.getItem('orgid')) {
@@ -154,12 +159,21 @@
  methods: {
    getCode() {
      getCodeImg().then((res) => {
        console.log(res);
        this.captchaEnabled =
          res.captchaEnabled === undefined ? true : res.captchaEnabled;
        if (this.captchaEnabled) {
          this.codeUrl = "data:image/gif;base64," + res.img;
          this.loginForm.uuid = res.uuid;
        }
      });
    },
    getorganization() {
      getorganization().then((res) => {
        if (res.code == 200) {
          this.options = res.rows.map((item) => ({
            value: item.orgid,
            label: item.organizationName,
          }));
        }
      });
    },
@@ -195,10 +209,12 @@
          this.$store
            .dispatch("Login", this.loginForm)
            .then((res) => {
              if (this.loginForm.username=='admin') {
              this.$router.push({ path:"/index" }).catch(() => {});
              }else{
                this.$router.push({ path:"/followvisit/discharge" }).catch(() => {});
              if (this.loginForm.username == "admin") {
                this.$router.push({ path: "/index" }).catch(() => {});
              } else {
                this.$router
                  .push({ path: "/followvisit/discharge" })
                  .catch(() => {});
              }
            })
            .catch(() => {
src/views/patient/patient/outpatient.vue
@@ -1147,9 +1147,10 @@
        // 遍历选中的患者,逐个调用接口
        for (const patient of this.selectedPatients) {
          const params = {
            taskId: this.selectedTask.taskId,
            taskid: this.selectedTask.taskid,
            taskName: this.selectedTask.taskName,
            serviceType: this.selectedTask.serviceType,
            sendstate:2,
            ...patient,
            age: "",
          };