From e946f915cb2f35ed8b9553bcc8a11b63527937aa Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 09 七月 2025 11:39:56 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/propaganda/QuestionnaireTask.vue |  102 ++++++++++++++++++++++++++++----------------------
 1 files changed, 57 insertions(+), 45 deletions(-)

diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index becdfcc..7f5fcee 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -87,7 +87,7 @@
                   </el-radio-group>
                 </el-form-item>
                 <el-row :gutter="20" v-if="form.longTask">
-                  <el-col :span="8">
+                  <el-col :span="6">
                     <el-form-item label="鍛ㄦ湡鏃堕棿" prop="name">
                       <el-input
                         v-model="form.sendDay"
@@ -518,7 +518,7 @@
                   icon="el-icon-refresh"
                   size="medium"
                   @click="resetQuery"
-                  >鍙栨秷鍒涘缓</el-button
+                  >閲嶇疆</el-button
                 >
               </el-form-item>
             </el-form>
@@ -833,7 +833,7 @@
   taskdepthospgetsonlist,
 } from "@/api/AiCentre/index";
 
-import SFtable from "@/components/SFtable"; //琛ㄦ牸缁勪欢
+import SFtable from "@/components/SFtable/index.vue"; //琛ㄦ牸缁勪欢
 import { MessageBox } from "element-ui";
 
 export default {
@@ -1027,11 +1027,11 @@
       },
       taskoptions: [
         {
-          value: "1",
+          value: "4",
           label: "鍑洪櫌鐥呬汉",
         },
         {
-          value: "4",
+          value: "1",
           label: "鍦ㄩ櫌鐥呬汉",
         },
         {
@@ -1063,17 +1063,17 @@
       ],
 
       tasktypes: [
-        {
-          value: 1,
-          label: "蹇冪數闅忚",
-        },
+        // {
+        //   value: "1",
+        //   label: "鐩戞祴璇勪及",
+        // },
         {
           value: 2,
           label: "鍑洪櫌闅忚",
         },
         {
           value: 3,
-          label: "褰卞儚闅忚",
+          label: "闂ㄨ瘖闅忚",
         },
         {
           value: 4,
@@ -1081,16 +1081,20 @@
         },
         {
           value: 5,
-          label: "浣撴闅忚",
+          label: "澶嶈瘖绠$悊",
         },
         {
-          value: 11,
-          label: "鍖绘妧闅忚",
+          value: 6,
+          label: "婊℃剰搴﹁皟鏌�",
         },
         {
-          value: 10,
-          label: "涓撶闅忚",
+          value: 7,
+          label: "鎮h�呮姤鍛�",
         },
+        // {
+        //   value: "8",
+        //   label: "鍏朵粬閫氱煡",
+        // },
       ],
       // 绉戝/鐥呭尯
       belongWards: [],
@@ -1183,11 +1187,6 @@
     },
     // 鑾峰彇褰撳墠绫诲瀷
     Acquisitiontype() {
-      let queryParams = {
-        pageNum: this.topqueryParams.pageNum,
-        pageSize: this.topqueryParams.pageSize,
-        isenable: "",
-      };
       this.currenttype = this.$route.query.type;
       this.title = "闂嵎鍐呭鍒楄〃";
       this.tableLabel = this.tableLabelwj;
@@ -1297,8 +1296,6 @@
           // },
         ];
       }
-      console.log(this.topqueryParams, "this.topqueryParams");
-
       getQtemplatelist(this.topqueryParams).then((response) => {
         this.userList = response.rows;
         this.total = response.total;
@@ -1487,9 +1484,7 @@
       this.overallCase.forEach((item) => {
         this.allpids.push(item.patid);
       });
-      if (
-        this.patientqueryParams.allhosp == 4
-      ) {
+      if (this.patientqueryParams.allhosp == 4) {
         this.tableLabelhz = [
           // { label: "鍏ラ櫌鏃ユ湡", width: "170", prop: "starttime" },
           { label: "鍑洪櫌鏃ユ湡", width: "180", prop: "endtime" },
@@ -1503,9 +1498,7 @@
           { label: "绉戝", width: "180", prop: "dept" },
           { label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" },
         ];
-      } else if (
-        this.patientqueryParams.allhosp == 1
-      ) {
+      } else if (this.patientqueryParams.allhosp == 1) {
         this.tableLabelhz = [
           { label: "鍏ラ櫌鏃ユ湡", width: "150", prop: "starttime" },
           { label: "鎮h��", width: "", prop: "name" },
@@ -1518,6 +1511,17 @@
           { label: "绉戝", width: "180", prop: "dept" },
           { label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" },
         ];
+      } else {
+        this.tableLabelhz = [
+          { label: "灏辫瘖鏃ユ湡", width: "150", prop: "admitdate" },
+          { label: "鎮h��", width: "", prop: "name" },
+          { label: "鎮h�呯紪鍙�", width: "200", prop: "patientno" },
+          { label: "鎬у埆", width: "", prop: "sex" },
+          { label: "鎮h�呮爣绛�", width: "200", prop: "tag" },
+          { label: "鍖荤敓", width: "", prop: "drname" },
+          { label: "绉戝", width: "180", prop: "dept" },
+          { label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" },
+        ];
       }
       if (this.allpids[0]) {
         this.patientqueryParams.pids = this.allpids;
@@ -1526,7 +1530,6 @@
       }
 
       // 绉戝杩樻槸鐥呭尯
-
 
       // 鍑洪櫌杩樻槸鍏ラ櫌
       if (this.patientqueryParams.allhosp == 4) {
@@ -1682,7 +1685,15 @@
       });
     },
 
-    resetQuery() {},
+    resetQuery() {
+      this.patientqueryParams= {
+        pageNum: 1, //
+        pageSize: 10,
+      };
+      console.log(this.patientqueryParams,'this.patientqueryParams');
+
+      this.handleQuery()
+    },
     handleQuerymb() {
       getQtemplatelist(this.topqueryParams).then((response) => {
         this.userList = response.rows;
@@ -1984,25 +1995,13 @@
           "褰撳墠涓烘柊澧炰换鍔℃湭淇濆瓨涓嶅彲鍏宠仈妯℃澘锛屾槸鍚﹀厛淇濆瓨浠诲姟锛�",
           "鍔熻兘鎻愮ず",
           {
-            confirmButtonText: "淇濆瓨浠诲姟",
-            cancelButtonText: "鏆傚瓨妯℃澘",
+            confirmButtonText: "鏆傚瓨妯℃澘",
+            cancelButtonText: "淇濆瓨浠诲姟",
             type: "warning",
           }
         )
           .then(() => {
-            if (Array.isArray(this.objyl.suitway)) {
-              this.objyl.suitway = this.objyl.suitway.join(",");
-            }
-            this.objyl.templateid = this.objyl.svyid;
-            this.form.libtemplateid = this.objyl.svyid;
-            this.objyl.isoperation = 1;
-            this.objyl.svyTaskTemplateScriptVOS =
-              this.objyl.svyTemplateLibScripts;
-            this.form.svyTaskTemplateVO = this.objyl;
-            this.submitForm();
-          })
-          .catch(() => {
-            if (Array.isArray(this.objyl.suitway)) {
+         if (Array.isArray(this.objyl.suitway)) {
               this.objyl.suitway = this.objyl.suitway.join(",");
             }
             this.objyl.templateid = this.objyl.svyid;
@@ -2015,6 +2014,19 @@
             this.$modal.msgSuccess("鏆傚瓨鎴愬姛淇濆瓨浠诲姟鍚庢ā鏉垮け鏁�");
             this.drawermb = false;
             this.previewtf = false;
+          })
+          .catch(() => {
+
+                 if (Array.isArray(this.objyl.suitway)) {
+              this.objyl.suitway = this.objyl.suitway.join(",");
+            }
+            this.objyl.templateid = this.objyl.svyid;
+            this.form.libtemplateid = this.objyl.svyid;
+            this.objyl.isoperation = 1;
+            this.objyl.svyTaskTemplateScriptVOS =
+              this.objyl.svyTemplateLibScripts;
+            this.form.svyTaskTemplateVO = this.objyl;
+            this.submitForm();
           });
       } else {
         setTimeout(() => {

--
Gitblit v1.9.3