From 70e4d2c33cc2e3af590d1816c0c703da341538cf Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 04 九月 2026 14:13:32 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/ycquestionnaire/index.vue |  112 +++++++++++++++----------------------------------------
 1 files changed, 31 insertions(+), 81 deletions(-)

diff --git a/src/views/patient/ycquestionnaire/index.vue b/src/views/patient/ycquestionnaire/index.vue
index 3c211f2..8d5ebba 100644
--- a/src/views/patient/ycquestionnaire/index.vue
+++ b/src/views/patient/ycquestionnaire/index.vue
@@ -1,67 +1,11 @@
 <template>
   <div class="app-container">
-    <div class="leftvlue" style="margin-bottom: 20px">
-      <el-row :gutter="10">
-        <el-col :span="2.5" v-for="(item, index) in cardlist" :key="index">
-          <el-card
-            shadow="hover"
-            :body-style="item.router ? ' cursor: pointer' : 'cursor: default'"
-          >
-            <div style="padding: 8px" @click="$router.push(item.router)">
-              <span>{{ item.name }}</span>
-              <div
-                style="
-                  text-align: center;
-                  font-size: 18px;
-                  margin-top: 10px;
-                  font-weight: 600;
-                "
-              >
-                {{ item.value }}
-              </div>
-            </div>
-          </el-card>
-        </el-col>
-        <el-col :span="2.5">
-          <div class="ysfleftvlue">
-            <el-card shadow="hover">
-              <div style="padding: 8px">
-                <span>宸插彂閫佹湭棰嗗彇</span>
-                <div
-                  style="
-                    text-align: center;
-                    font-size: 18px;
-                    margin-top: 10px;
-                    font-weight: 600;
-                  "
-                >
-                  {{ yfsvalue }}
-                </div>
-              </div>
-            </el-card>
-          </div>
-        </el-col>
-        <el-col :span="2.5">
-          <div class="errleftvlue">
-            <el-card shadow="hover">
-              <div style="padding: 8px">
-                <span>寮傚父</span>
-                <div
-                  style="
-                    text-align: center;
-                    font-size: 18px;
-                    margin-top: 10px;
-                    font-weight: 600;
-                  "
-                >
-                  {{ ycvalue }}
-                </div>
-              </div>
-            </el-card>
-          </div>
-        </el-col>
-      </el-row>
-    </div>
+    <statistics-cards
+      :cardlist="cardlist"
+      :ycvalue="ycvalue"
+      :jgvalue="jgvalue"
+      :show-warning-condition="orgname == '鐪佺珛鍚屽痉缈犺嫅闄㈠尯'"
+    />
     <el-row :gutter="20">
       <!--鐢ㄦ埛鏁版嵁-->
       <el-form
@@ -223,17 +167,17 @@
           <template slot-scope="scope">
             <div v-if="scope.row.sendstate == 1">
               <el-tag type="primary" :disable-transitions="false"
-                >琚鍙�</el-tag
+                >琛ㄥ崟宸查鍙�</el-tag
               >
             </div>
             <div v-if="scope.row.sendstate == 2">
               <el-tag type="primary" :disable-transitions="false"
-                >寰呭彂閫�</el-tag
+                >寰呮墽琛�</el-tag
               >
             </div>
             <div v-if="scope.row.sendstate == 3">
               <el-tag type="success" :disable-transitions="false"
-                >宸插彂閫佹湭棰嗗彇</el-tag
+                >琛ㄥ崟宸插彂閫�</el-tag
               >
             </div>
             <div v-if="scope.row.sendstate == 4">
@@ -639,11 +583,12 @@
 import Treeselect from "@riophae/vue-treeselect";
 import store from "@/store";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+import StatisticsCards from "@/components/StatisticsCards";
 
 export default {
   name: "Discharge",
   dicts: ["sys_normal_disable", "sys_user_sex", "sys_yujing", "sys_suggest"],
-  components: { Treeselect },
+  components: { Treeselect, StatisticsCards },
   data() {
     return {
       // 閬僵灞�
@@ -656,6 +601,7 @@
       multiple: true,
       // 鏄剧ず鎼滅储鏉′欢
       showSearch: true,
+      jgvalue: 0,
       // 鎬绘潯鏁�
       total: 0,
       // 鐢ㄦ埛琛ㄦ牸鏁版嵁
@@ -677,9 +623,10 @@
       ruleForm: {
         type: [],
       },
+      ycvalue: 0,
+      jgvalue: 0,
       dynamicTags: ["閫夐」涓�", "閫夐」浜�", "閫夐」涓�"], //閫夐」
       inputVisible: false,
-      ycvalue: "",
       yfsvalue: "",
       inputValue: "",
       preachform: "",
@@ -695,6 +642,7 @@
       },
       value: [],
       list: [],
+      orgname: "",
 
       sourcetype: [
         {
@@ -736,16 +684,16 @@
           value: 0,
         },
         {
-          name: "寰呭彂閫�",
+          name: "寰呮墽琛�",
           value: 0,
         },
-        {
-          name: "宸插彂閫�",
-          value: 0,
-        },
+        // {
+        //   name: "宸插彂閫�",
+        //   value: 0,
+        // },
 
         // {
-        //   name: "宸插彂閫佹湭棰嗗彇",
+        //   name: "琛ㄥ崟宸插彂閫�",
         //   value: 0,
         // },
       ],
@@ -763,7 +711,7 @@
       topqueryParams: {
         pageNum: 1,
         pageSize: 10,
-        serviceType: 9,
+        serviceType: 20,
         searchscope: 3,
         scopetype: [],
         leaveldeptcodes: [],
@@ -775,15 +723,15 @@
       topicoptions: [
         {
           value: 1,
-          label: "琚鍙�",
+          label: "琛ㄥ崟宸查鍙�",
         },
         {
           value: 2,
-          label: "寰呭彂閫�",
+          label: "寰呮墽琛�",
         },
         {
           value: 3,
-          label: "宸插彂閫佹湭棰嗗彇",
+          label: "琛ㄥ崟宸插彂閫�",
         },
         {
           value: 4,
@@ -823,6 +771,8 @@
     this.errtype = this.$route.query.errtype;
     this.leavehospitaldistrictcode =
       this.$route.query.leavehospitaldistrictcode;
+    this.orgname = localStorage.getItem("orgname");
+
     this.sourcetype[0].children = store.getters.belongDepts.map((dept) => {
       return {
         label: dept.deptName,
@@ -876,8 +826,8 @@
           this.cardlist[2].value = response.rows[0].ysf;
           this.ycvalue = response.rows[0].yc;
           this.cardlist[3].value = response.rows[0].fssb;
-          this.cardlist[4].value = response.rows[0].dfs;
-          this.cardlist[5].value = response.rows[0].yfs2;
+          this.cardlist[4].value = response.rows[0].dsf;
+          // this.cardlist[5].value = response.rows[0].yfs2;
           this.yfsvalue = response.rows[0].yfs;
         }
         this.loading = false;
@@ -1002,7 +952,7 @@
       this.topqueryParams = {
         pageNum: 1,
         pageSize: 10,
-        serviceType: 9,
+        serviceType: 20,
         searchscope: 2,
       };
       this.handleQuery(1);
@@ -1039,7 +989,7 @@
         path: "/followvisit/QuestionnaireTask",
         query: {
           type: 2,
-          serviceType: 9,
+          serviceType: 20,
         },
       });
     },

--
Gitblit v1.9.3