WXL (wul)
2 天以前 22bd207587899810e9afb4c1a53f0d5dae1e2ece
测试完成
已修改7个文件
96 ■■■■■ 文件已修改
src/components/SortCheckbox/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/sipService.js 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/HistoricalFollow/index.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/record/TracingInfo/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/record/detailpage/index.vue 81 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/SortCheckbox/index.vue
@@ -106,7 +106,6 @@
        }
        if (newVal.length > 0 && typeof newVal[0] === "object") {
          console.log(this.selectedOrder, "111");
          // 1. 传入的是对象数组 [{ sort, preachform, compensateTime }]
          this.checkedValues = newVal.map((item) => item.preachform);
          this.selectedOrder = newVal.map((item) => ({
src/utils/sipService.js
@@ -1,4 +1,5 @@
import JsSIP from "jssip";
import { Notification, MessageBox, Message, Loading } from "element-ui";
class SipService {
  constructor() {
@@ -77,7 +78,7 @@
      const remaining = minDelay - timeSinceRegistration;
      return {
        canCall: false,
        reason: `注册成功,请等待 ${Math.ceil(remaining / 1000)} 秒后再呼叫`,
        reason: `注册成功,资源加载中请等待 ${Math.ceil(remaining / 1000)} 秒后再呼叫`,
      };
    }
@@ -86,6 +87,7 @@
  makeCall(targetNumber) {
    const { canCall, reason } = this.canMakeCall();
    if (!canCall) {
      Message.error(reason);
      return Promise.reject(new Error(reason));
    }
    return new Promise((resolve, reject) => {
src/views/followvisit/HistoricalFollow/index.vue
@@ -1,4 +1,5 @@
<template>
  <!-- 历史随访记录 -->
  <div class="app-container">
    <div class="leftvlue" style="margin-bottom: 20px"></div>
    <el-row :gutter="20">
@@ -1145,7 +1146,7 @@
      this.topqueryParams.pageSize = null;
      this.download(
        // "smartor/serviceSubtask/export",
        "smartor/serviceSubtask/patItemExport",
        "smartor/serviceSubtask/getSubtaskByDiagnameExport",
        {
          ...this.topqueryParams,
        },
src/views/followvisit/record/TracingInfo/index.vue
@@ -1392,8 +1392,6 @@
  methods: {
    // 获取主题样式类
    getTopicClass(item) {
      console.log(item.isabnormal,'111');
      // 根据状态值返回对应的样式类
      if (item.isabnormal == 1) {
        return "scriptTopic-isabnormal"; // 异常 - 红色
src/views/followvisit/record/detailpage/index.vue
@@ -695,7 +695,10 @@
                </div>
                <!-- SIP注册状态提示 -->
                <div v-if="isSipRegistering&&orgname == '丽水市中医院'" class="sip-registering">
                <div
                  v-if="isSipRegistering && orgname == '丽水市中医院'"
                  class="sip-registering"
                >
                  <el-alert
                    title="呼叫座机初始化中,请稍候..."
                    type="info"
@@ -1157,6 +1160,7 @@
      callType: "", // 用于区分是哪个电话
      isSipRegistering: true, // SIP注册状态
      // 已有数据...
      customCallStatus: "", // 用于存储自定义状态文本
      callStatus: "idle", // idle, calling, connected, ended, failed
      isEndingCall: false,
      CaldialogVisible: false,
@@ -1376,6 +1380,7 @@
          label: "一年后",
        },
      ],
      statusTimer: null,
      userform: {},
      smsDialogVisible: false, // 控制短信对话框显示
      smsContent: "", // 存储短信内容
@@ -1392,9 +1397,18 @@
      patid: null,
    };
  },
  // 在组件中添加销毁前的清理
  beforeUnmount() {
    if (this.statusTimer) {
      clearTimeout(this.statusTimer);
      this.statusTimer = null;
    }
  },
  computed: {
    callStatusText() {
      if (this.customCallStatus) {
        return this.customCallStatus;
      }
      const statusMap = {
        idle: "准备呼叫",
        calling: `正在呼叫 ${this.currentPhoneNumber}...`,
@@ -1434,10 +1448,20 @@
      this.$watch(
        () => this.$refs.callButton.sipStatus,
        (newStatus) => {
          if (newStatus === '已注册') {
          if (this.statusTimer) {
            clearTimeout(this.statusTimer);
            this.statusTimer = null;
          }
          if (newStatus === "已注册") {
            this.statusTimer = setTimeout(() => {
            this.isSipRegistering = false;
          } else if (newStatus === '注册失败' || newStatus === '未连接') {
              this.customCallStatus = ""; // 注册成功后清空自定义提示
              console.log("SIP注册成功,状态已更新");
            }, 2000);
            this.isSipRegistering = false;
          } else if (newStatus === "注册失败" || newStatus === "未连接") {
            this.isSipRegistering = true;
            this.customCallStatus = "呼叫中断,资源重新加载中请稍等3s重新。";
          }
        },
        { immediate: true } // 立即执行一次以获取初始值
@@ -1582,8 +1606,6 @@
    },
    // 检查随访日期是否有效
    checkFollowupDate(date) {
      console.log(date);
      if (!date) {
        this.form.date1 = "";
        this.$refs.zcform.clearValidate(["date1"]);
@@ -1710,7 +1732,10 @@
            }
          });
          this.Editsingletasksonyic(6);
          if (this.visitCount != 1) {
            this.Torouter();
            return;
          }
          this.$modal
            .confirm(
              '任务保存成功是否针对患者:"' +
@@ -1732,6 +1757,15 @@
              this.dialogFormVisible = true;
            })
            .catch(() => {
              this.Torouter();
            });
        })
        .catch((error) => {
          // 如果有任何一个异步操作失败,会进入这里
          console.error("发生错误:", error);
        });
    },
    Torouter() {
              if (this.form.serviceType == 13) {
                if (this.visitCount != 1) {
                  this.$router.push({
@@ -1753,12 +1787,6 @@
                  });
                }
              }
            });
        })
        .catch((error) => {
          // 如果有任何一个异步操作失败,会进入这里
          console.error("发生错误:", error);
        });
    },
    // 电话============================
    // 验证电话号码格式并返回错误信息
@@ -1889,7 +1917,10 @@
        param2: this.patid,
        subId: this.id,
      };
      if (this.visitCount != 1) {
        this.Torouter();
        return;
      }
      addPersonVoices(obj).then((res) => {
        if (res.code == 200) {
          this.$modal.msgSuccess("服务保存成功");
@@ -1914,27 +1945,7 @@
              this.dialogFormVisible = true;
            })
            .catch(() => {
              if (this.form.serviceType == 13) {
                if (this.visitCount != 1) {
                  this.$router.push({
                    path: "/logisticsservice/zbAgain",
                  });
                } else {
                  this.$router.push({
                    path: "/logisticsservice/record",
                  });
                }
              } else if (form.serviceType == 2) {
                if (this.visitCount != 1) {
                  this.$router.push({
                    path: "/followvisit/again",
                  });
                } else {
                  this.$router.push({
                    path: "/followvisit/discharge",
                  });
                }
              }
              this.Torouter();
            });
        }
      });
src/views/index.vue
@@ -873,7 +873,6 @@
    },
    // 页面变化调整大小
    handleResize() {
      console.log(111);
      // 调整 ECharts 图表大小
      if (this.myChart2) {
        this.myChart2.resize();
vue.config.js
@@ -36,8 +36,8 @@
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      [process.env.VUE_APP_BASE_API]: {
        // target: `https://www.health-y.cn/lssf`,
        // target: `http://192.168.100.10:8096`,
        target: `http://192.168.100.10:8094`,//省立同德
        target: `http://192.168.100.10:8096`,
        // target: `http://192.168.100.10:8094`,//省立同德
        // target: `http://192.168.100.10:8095`,//新华
        // target:`http://localhost:8095`,
        // target:`http://35z1t16164.qicp.vip`,