From 30898b3fcc871f58f0d49200bd50de30cd6b12ad Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期四, 11 九月 2025 17:51:40 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/again/index.vue                 |    2 
 src/views/login.vue                                   |   30 +++++++--
 src/views/followvisit/zbAgain/index.vue               |    2 
 src/views/followvisit/record/detailpage/index.vue     |   82 +++++++++++++++++++++++++++
 src/api/system/config.js                              |    2 
 src/utils/sipService.js                               |    2 
 src/views/patient/patient/outpatient.vue              |    3 
 src/components/CallButton/index.vue                   |    4 
 src/api/AiCentre/EChartsdata.js                       |   16 +++++
 src/views/followvisit/discharge/outpatientService.vue |    2 
 10 files changed, 129 insertions(+), 16 deletions(-)

diff --git a/src/api/AiCentre/EChartsdata.js b/src/api/AiCentre/EChartsdata.js
index 2b4d479..d6ebdb0 100644
--- a/src/api/AiCentre/EChartsdata.js
+++ b/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
+  });
+}
diff --git a/src/api/system/config.js b/src/api/system/config.js
index 3f5ab8b..ed66326 100644
--- a/src/api/system/config.js
+++ b/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
   })
diff --git a/src/components/CallButton/index.vue b/src/components/CallButton/index.vue
index ef5dbf4..0aa24ce 100644
--- a/src/components/CallButton/index.vue
+++ b/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",
diff --git a/src/utils/sipService.js b/src/utils/sipService.js
index baa65a9..8589481 100644
--- a/src/utils/sipService.js
+++ b/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
         );
 
diff --git a/src/views/followvisit/again/index.vue b/src/views/followvisit/again/index.vue
index ac5e876..92d569e 100644
--- a/src/views/followvisit/again/index.vue
+++ b/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);
     },
diff --git a/src/views/followvisit/discharge/outpatientService.vue b/src/views/followvisit/discharge/outpatientService.vue
index 10763c9..f0acb01 100644
--- a/src/views/followvisit/discharge/outpatientService.vue
+++ b/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);
     },
diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index d8aeda4..4d9d873 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/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="鎮h�呭悕绉�">
+          <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="鎮h�呭啀娆¢殢璁�"
       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, // 纭繚鐢佃瘽鍙风爜瀛楁姝g‘
+        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({
diff --git a/src/views/followvisit/zbAgain/index.vue b/src/views/followvisit/zbAgain/index.vue
index beb2a3f..388409a 100644
--- a/src/views/followvisit/zbAgain/index.vue
+++ b/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() {
diff --git a/src/views/login.vue b/src/views/login.vue
index ef1bf54..7068ef0 100644
--- a/src/views/login.vue
+++ b/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(() => {
diff --git a/src/views/patient/patient/outpatient.vue b/src/views/patient/patient/outpatient.vue
index 7de62be..52295b1 100644
--- a/src/views/patient/patient/outpatient.vue
+++ b/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: "",
           };

--
Gitblit v1.9.3