From 17efc8b0fb7d3fa66eb8e22f32b81e3e14bcd7f6 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 06 一月 2026 17:37:57 +0800
Subject: [PATCH] 测试完成

---
 src/views/sfstatistics/percentage/index.vue |  427 +++++++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 344 insertions(+), 83 deletions(-)

diff --git a/src/views/sfstatistics/percentage/index.vue b/src/views/sfstatistics/percentage/index.vue
index f8a028c..34a7bdb 100644
--- a/src/views/sfstatistics/percentage/index.vue
+++ b/src/views/sfstatistics/percentage/index.vue
@@ -88,8 +88,9 @@
                   range-separator="鑷�"
                   start-placeholder="寮�濮嬫棩鏈�"
                   end-placeholder="缁撴潫鏃ユ湡"
-                  :default-time="['00:00:00', '23:59:59']">
+                  :default-time="['00:00:00', '23:59:59']"
                 >
+                  >
                 </el-date-picker>
               </el-form-item>
 
@@ -401,6 +402,21 @@
                     key="pendingFollowUp"
                     prop="pendingFollowUp"
                   >
+                    <template slot-scope="scope">
+                      <el-button
+                        size="medium"
+                        type="text"
+                        @click="
+                          viewDetails(
+                            scope.row.pendingFollowUpInfo,
+                            scope.row.leavehospitaldistrictname + '寰呴殢璁垮垪琛�'
+                          )
+                        "
+                        ><span class="button-zx">{{
+                          scope.row.pendingFollowUp
+                        }}</span></el-button
+                      >
+                    </template>
                   </el-table-column>
                   <el-table-column
                     label="闅忚鎴愬姛"
@@ -415,6 +431,21 @@
                     key="followUpFail"
                     prop="followUpFail"
                   >
+                    <template slot-scope="scope">
+                      <el-button
+                        size="medium"
+                        type="text"
+                        @click="
+                          viewDetails(
+                            scope.row.followUpFailInfo,
+                            scope.row.leavehospitaldistrictname + '闅忚澶辫触鍒楄〃'
+                          )
+                        "
+                        ><span class="button-zx">{{
+                          scope.row.followUpFail
+                        }}</span></el-button
+                      >
+                    </template>
                   </el-table-column>
                   <el-table-column
                     label="闅忚鐜�"
@@ -855,6 +886,198 @@
         </div>
       </div>
     </el-dialog>
+    <!-- 鍚勭被璇︽儏 -->
+    <el-dialog
+      :title="infotitle"
+      :visible.sync="infotitleVisible"
+      v-loading="infotitloading"
+      width="70%"
+      :close-on-click-modal="false"
+    >
+      <div class="examine-jic">
+        <div class="jic-value">
+          <el-row :gutter="20">
+            <!-- 閫夋嫨鎮h�呭垪琛� -->
+            <el-table :data="infotitlelist" height="660" style="width: 100%">
+              <el-table-column
+                prop="sendname"
+                align="center"
+                label="濮撳悕"
+                width="100"
+              >
+              </el-table-column>
+              <el-table-column
+                prop="taskName"
+                align="center"
+                width="200"
+                show-overflow-tooltip
+                label="浠诲姟鍚嶇О"
+              >
+              </el-table-column>
+              <el-table-column
+                prop="sendstate"
+                align="center"
+                width="200"
+                label="浠诲姟鐘舵��"
+              >
+                <template slot-scope="scope">
+                  <div v-if="scope.row.sendstate == 1">
+                    <el-tag type="primary" :disable-transitions="false"
+                      >琛ㄥ崟宸查鍙�</el-tag
+                    >
+                  </div>
+                  <div v-if="scope.row.sendstate == 2">
+                    <el-tag type="primary" :disable-transitions="false"
+                      >寰呴殢璁�</el-tag
+                    >
+                  </div>
+                  <div v-if="scope.row.sendstate == 3">
+                    <el-tag type="success" :disable-transitions="false"
+                      >琛ㄥ崟宸插彂閫�</el-tag
+                    >
+                  </div>
+                  <div v-if="scope.row.sendstate == 4">
+                    <el-tag type="info" :disable-transitions="false"
+                      >涓嶆墽琛�</el-tag
+                    >
+                  </div>
+                  <div v-if="scope.row.sendstate == 5">
+                    <el-tag type="danger" :disable-transitions="false"
+                      >鍙戦�佸け璐�</el-tag
+                    >
+                  </div>
+                  <div v-if="scope.row.sendstate == 6">
+                    <el-tag type="success" :disable-transitions="false"
+                      >宸插畬鎴�</el-tag
+                    >
+                  </div>
+                </template>
+              </el-table-column>
+              <el-table-column
+                prop="visitTime"
+                align="center"
+                label="搴旈殢璁挎椂闂�"
+                width="200"
+                show-overflow-tooltip
+              >
+              </el-table-column>
+              <el-table-column
+                prop="finishtime"
+                align="center"
+                label="闅忚瀹屾垚鏃堕棿"
+                width="200"
+                show-overflow-tooltip
+              >
+              </el-table-column>
+              <el-table-column
+                label="鍑洪櫌鏃ユ湡"
+                width="200"
+                align="center"
+                key="endtime"
+                prop="endtime"
+              >
+                <template slot-scope="scope">
+                  <span>{{ formatTime(scope.row.endtime) }}</span>
+                </template></el-table-column
+              >
+              <el-table-column
+                label="璐d换鎶ゅ+"
+                width="120"
+                align="center"
+                key="nurseName"
+                prop="nurseName"
+              />
+              <el-table-column
+                label="涓绘不鍖荤敓"
+                width="120"
+                align="center"
+                key="drname"
+                prop="drname"
+              />
+
+              <el-table-column
+                label="缁撴灉鐘舵��"
+                align="center"
+                key="excep"
+                prop="excep"
+                width="120"
+              >
+                <template slot-scope="scope">
+                  <dict-tag
+                    :options="dict.type.sys_yujing"
+                    :value="scope.row.excep"
+                  />
+                </template>
+              </el-table-column>
+              <el-table-column
+                label="澶勭悊鎰忚"
+                align="center"
+                key="suggest"
+                prop="suggest"
+                width="120"
+              >
+                <template slot-scope="scope">
+                  <dict-tag
+                    :options="dict.type.sys_suggest"
+                    :value="scope.row.suggest"
+                  />
+                </template>
+              </el-table-column>
+
+              <el-table-column
+                prop="templatename"
+                align="center"
+                label="鏈嶅姟妯℃澘"
+                width="200"
+                show-overflow-tooltip
+              >
+              </el-table-column>
+              <el-table-column
+                prop="remark"
+                align="center"
+                label="鏈嶅姟璁板綍"
+                width="200"
+                show-overflow-tooltip
+              >
+              </el-table-column>
+
+              <el-table-column
+                prop="bankcardno"
+                align="center"
+                label="鍛煎彨鐘舵��"
+                width="210"
+              >
+              </el-table-column>
+              <el-table-column
+                label="鎿嶄綔"
+                fixed="right"
+                align="center"
+                width="200"
+                class-name="small-padding fixed-width"
+              >
+                <template slot-scope="scope">
+                  <el-button
+                    size="medium"
+                    type="text"
+                    @click="SeedetailsgGo(scope.row)"
+                    ><span class="button-zx"
+                      ><i class="el-icon-s-order"></i>鏌ョ湅</span
+                    ></el-button
+                  >
+                </template>
+              </el-table-column>
+            </el-table>
+          </el-row>
+          <pagination
+            v-show="patienttotal > 0 && this.patientqueryParams.allhosp != 6"
+            :total="patienttotal"
+            :page.sync="patientqueryParams.pn"
+            :limit.sync="patientqueryParams.ps"
+            @pagination="Seedetails"
+          />
+        </div>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
@@ -907,10 +1130,14 @@
       activeName: "first", //渚ц竟閫夋嫨
       orgname: "",
       expands: [],
+      infotitlelist: [],
       // 閬僵灞�
       loading: false,
       Seedloading: false,
       chartDialogVisible: false,
+      infotitleVisible: false,
+      infotitloading: false,
+      infotitle: "",
       pieChart: null,
       barLineChart: null,
       // 閫変腑鏁扮粍
@@ -1330,6 +1557,11 @@
         this.Seedloading = false;
       });
     },
+    viewDetails(row, title) {
+      this.infotitleVisible = true;
+      this.infotitle = title;
+      this.infotitlelist = row;
+    },
     SeedetailsgGo(row) {
       this.SeedetailsVisible = false;
       let type = "";
@@ -1478,8 +1710,32 @@
         const excelName = `${currentMonth}鏈堝嚭闄㈤殢璁跨粺璁¤〃.xlsx`;
         // 鍒涘缓鏂扮殑宸ヤ綔绨垮拰宸ヤ綔琛�
         const workbook = new ExcelJS.Workbook();
-        const worksheet = workbook.addWorksheet("闅忚缁熻");
-
+        const worksheet = workbook.addWorksheet(`${currentMonth}鏈堝嚭闄㈤殢璁跨粺璁¤〃`);
+// 瀹氫箟鏍峰紡锛堟柊澧炴�绘爣棰樻牱寮忥級
+    const titleStyle = {
+      font: {
+        name: "寰蒋闆呴粦",
+        size: 16,
+        bold: true,
+        color: { argb: "FF000000" },
+      },
+      fill: {
+        type: "pattern",
+        pattern: "solid",
+        fgColor: { argb: "FFE6F3FF" },
+      },
+      alignment: {
+        vertical: "middle",
+        horizontal: "center",
+        wrapText: true,
+      },
+      border: {
+        top: { style: "thin", color: { argb: "FFD0D0D0" } },
+        left: { style: "thin", color: { argb: "FFD0D0D0" } },
+        bottom: { style: "thin", color: { argb: "FFD0D0D0" } },
+        right: { style: "thin", color: { argb: "FFD0D0D0" } },
+      },
+    };
         // 瀹氫箟鏍峰紡
         const headerStyle = {
           font: {
@@ -1547,7 +1803,12 @@
             right: { style: "thin", color: { argb: "FFD0D0D0" } },
           },
         };
-
+// 1. 娣诲姞鎬绘爣棰樿锛堢涓�琛岋級
+    worksheet.mergeCells(1, 1, 1, 23); // 鍚堝苟A1鍒癢1鐨勬墍鏈夊垪[1,4](@ref)
+    const titleCell = worksheet.getCell(1, 1);
+    titleCell.value = `${currentMonth}鏈堝嚭闄㈤殢璁跨粺璁¤〃`; // 浣跨敤鏂囦欢鍚嶄綔涓烘�绘爣棰�
+    titleCell.style = titleStyle;
+    worksheet.getRow(1).height = 35; // 璁剧疆鎬绘爣棰樿楂�
         // 1. 棣栧厛锛屽垱寤哄苟璁剧疆绗簩琛岋紙瀛愯〃澶达級鐨勬墍鏈夊崟鍏冩牸
         const secondRowHeaders = [
           "", // A2 灞曞紑鍒楀崰浣嶏紙鍏跺�煎皢鐢辩涓�琛屽悎骞跺悗鐨勪富鍗曞厓鏍煎喅瀹氾級
@@ -1577,96 +1838,96 @@
           "寰俊",
         ];
 
-        // 娣诲姞绗簩琛屽苟璁剧疆鏍峰紡
-        secondRowHeaders.forEach((header, index) => {
-          // 娉ㄦ剰锛氬垪绱㈠紩浠�1寮�濮嬶紝瀵瑰簲A鍒楁槸1锛孊鍒楁槸2锛屼互姝ょ被鎺ㄣ��
-          const cell = worksheet.getCell(2, index + 1);
-          cell.value = header;
-          cell.style = headerStyle;
-        });
+        // 娣诲姞绗簩琛岋紙鍘熺涓�琛屼笅绉伙級
+    secondRowHeaders.forEach((header, index) => {
+      const cell = worksheet.getCell(3, index + 1); // 鏀逛负绗�3琛�
+      cell.value = header;
+      cell.style = headerStyle;
+    });
 
-        // 2. 鐒跺悗锛屽垱寤虹涓�琛岀殑涓绘爣棰樺崟鍏冩牸骞惰缃牱寮忥紝绱ф帴鐫�杩涜绾靛悜鍚堝苟
-        // 鍚堝苟 A1:A2 骞惰缃��
-        worksheet.mergeCells(1, 1, 2, 1); // 鍚堝苟 A1 鍒� A2
-        worksheet.getCell(1, 1).value = ""; // 璁剧疆涓诲崟鍏冩牸(A1)鐨勫��
-        worksheet.getCell(1, 1).style = headerStyle; // 璁剧疆涓诲崟鍏冩牸鏍峰紡
+    // 3. 璋冩暣鍘熷悎骞跺崟鍏冩牸浣嶇疆锛堝師绗�1琛屽悎骞跺崟鍏冩牸涓嬬Щ鍒扮2琛岋級
+    // 鍚堝苟 A2:A3
+    worksheet.mergeCells(2, 1, 3, 1);
+    worksheet.getCell(2, 1).value = "";
+    worksheet.getCell(2, 1).style = headerStyle;
 
-        // 鍚堝苟 B1:B2 骞惰缃��
-        worksheet.mergeCells(1, 2, 2, 2); // 鍚堝苟 B1 鍒� B2
-        worksheet.getCell(1, 2).value = "鍑洪櫌鐥呭尯";
-        worksheet.getCell(1, 2).style = headerStyle;
+    // 鍚堝苟 B2:B3
+    worksheet.mergeCells(2, 2, 3, 2);
+    worksheet.getCell(2, 2).value = "鍑洪櫌鐥呭尯";
+    worksheet.getCell(2, 2).style = headerStyle;
 
-        // 鍚堝苟 C1:C2 骞惰缃��
-        worksheet.mergeCells(1, 3, 2, 3); // 鍚堝苟 C1 鍒� C2
-        worksheet.getCell(1, 3).value = "绉戝";
-        worksheet.getCell(1, 3).style = headerStyle;
+    // 鍚堝苟 C2:C3
+    worksheet.mergeCells(2, 3, 3, 3);
+    worksheet.getCell(2, 3).value = "绉戝";
+    worksheet.getCell(2, 3).style = headerStyle;
 
-        // 鍚堝苟 D1:D2 骞惰缃��
-        worksheet.mergeCells(1, 4, 2, 4); // 鍚堝苟 D1 鍒� D2
-        worksheet.getCell(1, 4).value = "鍑洪櫌浜烘";
-        worksheet.getCell(1, 4).style = headerStyle;
+    // 鍚堝苟 D2:D3
+    worksheet.mergeCells(2, 4, 3, 4);
+    worksheet.getCell(2, 4).value = "鍑洪櫌浜烘";
+    worksheet.getCell(2, 4).style = headerStyle;
 
-        // 鍚堝苟 E1:E2 骞惰缃��
-        worksheet.mergeCells(1, 5, 2, 5); // 鍚堝苟 E1 鍒� E2
-        worksheet.getCell(1, 5).value = "鏃犻渶闅忚浜烘";
-        worksheet.getCell(1, 5).style = headerStyle;
+    // 鍚堝苟 E2:E3
+    worksheet.mergeCells(2, 5, 3, 5);
+    worksheet.getCell(2, 5).value = "鏃犻渶闅忚浜烘";
+    worksheet.getCell(2, 5).style = headerStyle;
 
-        // 鍚堝苟 F1:F2 骞惰缃��
-        worksheet.mergeCells(1, 6, 2, 6); // 鍚堝苟 F1 鍒� F2
-        worksheet.getCell(1, 6).value = "搴旈殢璁夸汉娆�";
-        worksheet.getCell(1, 6).style = headerStyle;
+    // 鍚堝苟 F2:F3
+    worksheet.mergeCells(2, 6, 3, 6);
+    worksheet.getCell(2, 6).value = "搴旈殢璁夸汉娆�";
+    worksheet.getCell(2, 6).style = headerStyle;
 
-        // 3. 璁剧疆绗竴琛岀殑妯悜鍚堝苟鏍囬锛堣繖浜涗繚鎸佷笉鍙橈紝鍥犱负鍙秹鍙婄涓�琛岋級
-        // 棣栨鍑洪櫌闅忚锛堝悎骞禛1鍒癘1锛�
-        worksheet.mergeCells("G1:O1");
-        worksheet.getCell("G1").value = "棣栨鍑洪櫌闅忚";
-        worksheet.getCell("G1").style = headerStyle;
+    // 4. 璋冩暣妯悜鍚堝苟鏍囬浣嶇疆锛堜笅绉诲埌绗�2琛岋級
+    // 棣栨鍑洪櫌闅忚锛堝悎骞禛2:O2锛�
+    worksheet.mergeCells(2, 7, 2, 15); // G2:O2
+    worksheet.getCell(2, 7).value = "棣栨鍑洪櫌闅忚";
+    worksheet.getCell(2, 7).style = headerStyle;
 
-        // 鍐嶆鍑洪櫌闅忚锛堝悎骞禤1鍒癢1锛�
-        worksheet.mergeCells("P1:W1");
-        worksheet.getCell("P1").value = "鍐嶆鍑洪櫌闅忚";
-        worksheet.getCell("P1").style = headerStyle;
+    // 鍐嶆鍑洪櫌闅忚锛堝悎骞禤2:W2锛�
+    worksheet.mergeCells(2, 16, 2, 23); // P2:W2
+    worksheet.getCell(2, 16).value = "鍐嶆鍑洪櫌闅忚";
+    worksheet.getCell(2, 16).style = headerStyle;
 
-        // 4. 璁剧疆琛岄珮锛堝彲閫夛紝浣嗗缓璁缃級
-        worksheet.getRow(1).height = 28; // 绗竴琛岃楂�
-        worksheet.getRow(2).height = 25; // 绗簩琛岃楂�
+    // 5. 璁剧疆琛岄珮
+    worksheet.getRow(1).height = 35; // 鎬绘爣棰樿楂�
+    worksheet.getRow(2).height = 28; // 鍘熺涓�琛屼笅绉�
+    worksheet.getRow(3).height = 25; // 鍘熺浜岃涓嬬Щ
 
-        // 娣诲姞鏁版嵁琛�
-        this.userList.forEach((item, rowIndex) => {
-          const dataRow = worksheet.addRow([
-            "", // 灞曞紑鍒�
-            item.leavehospitaldistrictname || "",
-            item.deptname || "",
-            item.dischargeCount || 0,
-            item.nonFollowUp || 0,
-            item.followUpNeeded || 0,
-            // 棣栨鍑洪櫌闅忚鏁版嵁
-            item.needFollowUp || 0,
-            item.pendingFollowUp || 0,
-            item.followUpSuccess || 0,
-            item.followUpFail || 0,
-            item.followUpRate || "0%",
-            item.rate ? (Number(item.rate) * 100).toFixed(2) + "%" : "0%",
-            item.manual || 0,
-            item.sms || 0,
-            item.weChat || 0,
-            // 鍐嶆鍑洪櫌闅忚鏁版嵁
-            item.needFollowUpAgain || 0,
-            item.pendingFollowUpAgain || 0,
-            item.followUpSuccessAgain || 0,
-            item.followUpFailAgain || 0,
-            item.followUpRateAgain || "0%",
-            item.manualAgain || 0,
-            item.smsAgain || 0,
-            item.weChatAgain || 0,
-          ]);
+    // 6. 娣诲姞鏁版嵁琛岋紙娉ㄦ剰琛岀储寮曢渶瑕�+1锛屽洜涓轰笂闈㈡彃鍏ヤ簡涓�琛岋級
+    this.userList.forEach((item, rowIndex) => {
+      const dataRow = worksheet.addRow([
+        "", // 灞曞紑鍒�
+        item.leavehospitaldistrictname || "",
+        item.deptname || "",
+        item.dischargeCount || 0,
+        item.nonFollowUp || 0,
+        item.followUpNeeded || 0,
+        // 棣栨鍑洪櫌闅忚鏁版嵁
+        item.needFollowUp || 0,
+        item.pendingFollowUp || 0,
+        item.followUpSuccess || 0,
+        item.followUpFail || 0,
+        item.followUpRate || "0%",
+        item.rate ? (Number(item.rate) * 100).toFixed(2) + "%" : "0%",
+        item.manual || 0,
+        item.sms || 0,
+        item.weChat || 0,
+        // 鍐嶆鍑洪櫌闅忚鏁版嵁
+        item.needFollowUpAgain || 0,
+        item.pendingFollowUpAgain || 0,
+        item.followUpSuccessAgain || 0,
+        item.followUpFailAgain || 0,
+        item.followUpRateAgain || "0%",
+        item.manualAgain || 0,
+        item.smsAgain || 0,
+        item.weChatAgain || 0,
+      ], rowIndex + 4); // 浠庣4琛屽紑濮嬫坊鍔犳暟鎹紙鍘熺3琛岋級
 
-          // 搴旂敤鏁版嵁琛屾牱寮�
-          dataRow.eachCell((cell) => {
-            cell.style = cellStyle;
-          });
-          dataRow.height = 24;
-        });
+      // 搴旂敤鏁版嵁琛屾牱寮�
+      dataRow.eachCell((cell) => {
+        cell.style = cellStyle;
+      });
+      dataRow.height = 24;
+    });
 
         // 娣诲姞鍚堣琛�
         const summaries = this.getSummaries({

--
Gitblit v1.9.3