From d90b45d7e9e38e34c044b772006004f2a4cb8b8e Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 26 六月 2026 13:51:50 +0800
Subject: [PATCH] 测试完成

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

diff --git a/src/views/patient/patient/index.vue b/src/views/patient/patient/index.vue
index 6de65c4..88aa5db 100644
--- a/src/views/patient/patient/index.vue
+++ b/src/views/patient/patient/index.vue
@@ -127,6 +127,8 @@
                   v-model="queryParams.scopetype"
                   placeholder="榛樿鍏ㄩ儴"
                   :options="sourcetype"
+            filterable
+            clearable
                   :props="{ expandTrigger: 'hover' }"
                   @change="handleChange"
                 ></el-cascader>
@@ -182,7 +184,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 +192,7 @@
                   @click="distribute"
                   >鍚戜换鍔℃淳鍙戞偅鑰�</el-button
                 >
-              </el-col>
+              </el-col> -->
               <el-col :span="6">
                 <div class="documentf">
                   <div class="document">
@@ -376,14 +378,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"
@@ -668,6 +670,11 @@
                 type="textarea"
                 placeholder="璇疯緭鍏ヨ繃婊ゅ師鍥�"
               ></el-input>
+              <!-- 鎻愰啋鏂囧瓧 -->
+              <div class="filter-warning">
+                <i class="el-icon-warning-outline"></i>
+                璇ュ姛鑳介�傜敤浜庢浜°�佸垪鍏ュ尰闄㈤粦鍚嶅崟銆佹槑纭嫆缁濋殢璁跨瓑鎮h�呯殑杩囨护鎺掗櫎锛岃繃婊ゅ悗璇ユ偅鑰呮墍鏈夎繘琛屼腑浠诲姟鍏ㄩ儴鍋滄涓旀棤娉曞尮閰嶆柊鐨勯殢璁夸换鍔★紝璇疯皑鎱庢搷浣滐紒
+              </div>
             </el-form-item>
           </el-col>
         </el-row>
@@ -1256,8 +1263,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;
@@ -1640,12 +1656,35 @@
     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: #3664d9;
 }
 .button-textxga {
   color: #de7897;
 }
+.button-textdx {
+  color: #569655;
+}
 .button-textxg {
   color: #de7897;
 }

--
Gitblit v1.9.3