From ffa22cc18c75c0a73a3fd987e2b62fbf55316db2 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期四, 25 六月 2026 15:22:46 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/patient/index.vue |   28 ++++++++++++++++++++--------
 1 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/src/views/patient/patient/index.vue b/src/views/patient/patient/index.vue
index c6b5bc0..ce272ca 100644
--- a/src/views/patient/patient/index.vue
+++ b/src/views/patient/patient/index.vue
@@ -182,7 +182,7 @@
                   >鍒犻櫎</el-button
                 >
               </el-col>
-              <el-col :span="1.5">
+              <!-- <el-col :span="1.5">
                 <el-button
                   type="primary"
                   icon="el-icon-s-promotion"
@@ -190,7 +190,7 @@
                   @click="distribute"
                   >鍚戜换鍔℃淳鍙戞偅鑰�</el-button
                 >
-              </el-col>
+              </el-col> -->
               <el-col :span="6">
                 <div class="documentf">
                   <div class="document">
@@ -376,14 +376,14 @@
                       ><i class="el-icon-edit"></i>鎮h�呰繃婊�</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"
@@ -1261,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;
@@ -1671,6 +1680,9 @@
 .button-textxga {
   color: #de7897;
 }
+.button-textdx {
+  color: #569655;
+}
 .button-textxg {
   color: #de7897;
 }

--
Gitblit v1.9.3