From 891f1591f759a9dfa333fcea4707d41bad9fe436 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 24 二月 2025 10:32:28 +0800
Subject: [PATCH] 测试完成

---
 src/views/system/user/index.vue                    |   42 ++++++++-----
 src/views/followvisit/record/detailpage/index.vue  |   61 ++++++++++++++------
 src/views/patient/propaganda/particty.vue          |   25 +++++++-
 src/views/patient/propaganda/QuestionnaireTask.vue |   34 ++++++++---
 4 files changed, 113 insertions(+), 49 deletions(-)

diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index c4eaf3b..51b9a62 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -36,6 +36,14 @@
           <el-table-column prop="sendname" align="center" label="濮撳悕">
           </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"
@@ -134,14 +142,6 @@
               />
             </template>
           </el-table-column>
-          <el-table-column
-            prop="taskName"
-            align="center"
-            width="200"
-            show-overflow-tooltip
-            label="浠诲姟鍚嶇О"
-          >
-          </el-table-column>
 
           <el-table-column
             prop="templatename"
@@ -183,13 +183,32 @@
     </div>
     <div :class="form.serviceType == 2 ? 'Followuserinfo' : 'Followuserinfos'">
       <div>
-        <div class="headline">
-          <div>浜哄伐澶勭悊</div>
-          <div style="margin-left: 30px">
+        <el-form ref="form" :model="form" label-width="120px">
+          <div class="headline">
+            <div>浜哄伐澶勭悊</div>
+            <el-row :gutter="20">
+              <el-col :span="12"
+                ><el-form-item label="鑱旂郴鐢佃瘽">
+                  <el-input
+                    disabled
+                    placeholder="鑱旂郴鐢佃瘽缂哄け"
+                    v-model="userform.telcode"
+                  ></el-input> </el-form-item
+              ></el-col>
+              <el-col :span="12"
+                ><el-form-item label="鑱旂郴浜虹數璇�">
+                  <el-input
+                    disabled
+                    placeholder="鑱旂郴浜虹數璇濈己澶�"
+                    v-model="userform.relativetelcode"
+                  ></el-input> </el-form-item
+              ></el-col>
+            </el-row>
+            <!-- <div style="margin-left: 30px">
             <el-button type="warning">涓�閿懠鍙�</el-button>
+          </div> -->
           </div>
-        </div>
-        <el-form ref="form" :model="form" label-width="80px">
+
           <el-form-item label="闅忚璁板綍">
             <el-input type="textarea" v-model="form.remark"></el-input>
           </el-form-item>
@@ -857,13 +876,17 @@
     sendAgain() {
       this.dialogFormVisible = true;
     },
-    // 鏇存敼寮傚父鐘舵��
+    // 鏌ョ湅璇︽儏
     Seedetails(row) {
       this.$modal
-        .confirm('鏄惁鏌ョ湅浠诲姟涓�"' + optionids + '"鐨勬湇鍔¢」锛�')
-        .then(function () {})
+        .confirm('鏄惁鏌ョ湅浠诲姟涓�"' + row.taskName + '"鐨勬湇鍔¤鎯呮暟鎹紵')
         .then(() => {
-          this.getList();
+          this.taskid = row.taskid;
+          this.id = row.id;
+          this.patid = row.patid;
+          this.Voicetype = row.type;
+          this.serviceType = row.serviceType;
+    this.getTaskservelist(this.id);
         })
         .catch(() => {});
     },
@@ -920,10 +943,10 @@
       addserviceSubtask(form).then((res) => {
         if (res.code == 200) {
           this.$modal.msgSuccess("鍒涘缓鎴愬姛");
-        }else{
+        } else {
           this.$modal.msgError("鍒涘缓澶辫触");
         }
-        this.dialogFormVisible=false;
+        this.dialogFormVisible = false;
       });
     },
     updateScore(a, b, c) {
diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index f28bb8d..42a60c2 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -489,7 +489,6 @@
             <!-- 閫夋嫨鎮h�呭垪琛� -->
             <SFtable
               ref="multipleTable"
-
               @handleSelectionChange="handleSelectionChange"
               :currentList="patientuserList"
               :tableLabel="tableLabelhz"
@@ -805,7 +804,7 @@
 } from "@/api/AiCentre/index";
 
 import SFtable from "@/components/SFtable"; //琛ㄦ牸缁勪欢
-import {  MessageBox,  } from "element-ui";
+import { MessageBox } from "element-ui";
 
 export default {
   name: "ServiceDetails",
@@ -1090,7 +1089,7 @@
         //   { required: true, message: "閫傜敤鐥呭尯涓嶈兘涓虹┖", trigger: "blur" },
         // ],
       },
-      belongDepts:[],
+      belongDepts: [],
       // 绉戝闄㈠尯鏌ヨ鍏ュ弬
       queryParamsdept: {},
       quote: false,
@@ -1300,7 +1299,7 @@
         this.$modal.msgError("璇烽�夋嫨鏈嶅姟绫诲瀷");
         return;
       }
-      if (this.deptcodesWards[0]||this.leavehospitaldistrictcodes[0]) {
+      if (this.deptcodesWards[0] || this.leavehospitaldistrictcodes[0]) {
       } else {
         this.$modal.msgError("璇烽�夋嫨绉戝鎴栫梾鍖�");
         return;
@@ -1547,8 +1546,8 @@
           item.deptName = item.dept;
           item.admindate = item.inhosptime;
           item.sfzh = item.idcardno;
-          if (this.patientqueryParams.allhosp==6) {
-          item.patfrom = 1;
+          if (this.patientqueryParams.allhosp == 6) {
+            item.patfrom = 1;
           }
           this.overallCase.push(item);
           this.form.patTaskRelevances.push(item);
@@ -1957,7 +1956,7 @@
           "鍔熻兘鎻愮ず",
           {
             confirmButtonText: "淇濆瓨浠诲姟",
-            cancelButtonText: "鍙栨秷",
+            cancelButtonText: "鏆傚瓨妯℃澘",
             type: "warning",
           }
         )
@@ -1968,11 +1967,26 @@
             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.objyl.svyTaskTemplateScriptVOS =
+              this.objyl.svyTemplateLibScripts;
+            this.form.svyTaskTemplateVO = this.objyl;
             this.submitForm();
           })
-          .catch(() => {});
+          .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.form.templatename=this.objyl.svyname;
+            this.$modal.msgSuccess("鏆傚瓨鎴愬姛淇濆瓨浠诲姟鍚庢ā鏉垮け鏁�");
+            this.drawermb=false;
+            this.previewtf=false;
+          });
       } else {
         setTimeout(() => {
           this.previewFn();
diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index 290f4fa..e4d7210 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -1599,8 +1599,8 @@
           item.deptName = item.dept;
           item.admindate = item.inhosptime;
           item.sfzh = item.idcardno;
-          if (this.patientqueryParams.allhosp==6) {
-          item.patfrom = 1;
+          if (this.patientqueryParams.allhosp == 6) {
+            item.patfrom = 1;
           }
           this.overallCase.push(item);
           this.form.patTaskRelevances.push(item);
@@ -2010,7 +2010,7 @@
           "鍔熻兘鎻愮ず",
           {
             confirmButtonText: "淇濆瓨浠诲姟",
-            cancelButtonText: "鍙栨秷",
+            cancelButtonText: "鏆傚瓨妯℃澘",
             type: "warning",
           }
         )
@@ -2030,7 +2030,24 @@
 
             this.submitForm();
           })
-          .catch(() => {});
+          .catch(() => {
+            if (Array.isArray(this.objyl.suitway)) {
+              this.objyl.suitway = this.objyl.suitway.join(",");
+            }
+            this.objyl.templateid = this.objyl.id;
+            this.objyl.isoperation = 1;
+            this.objyl.ivrLibaTemplateScriptVOList.forEach((item) => {
+              item.ivrTaskScriptTargetoptionList =
+                item.ivrLibaScriptTargetoptionList;
+            });
+            this.objyl.ivrTaskTemplateScriptVOList =
+              this.objyl.ivrLibaTemplateScriptVOList;
+            this.form.ivrTaskTemplateVO = this.objyl;
+            this.form.templatename=this.objyl.templateName;
+            this.$modal.msgSuccess("鏆傚瓨鎴愬姛淇濆瓨浠诲姟鍚庢ā鏉垮け鏁�");
+            this.drawermb=false;
+            this.previewtf=false;
+          });
       } else {
         setTimeout(() => {
           this.previewFn();
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 6fb0d9f..407eff0 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -338,6 +338,7 @@
             @remove-tag="removehpsp"
             :options="deptOptions"
             :props="props"
+            filterable
             :show-all-levels="false"
             clearable
           >
@@ -354,6 +355,7 @@
             v-model="form.wardCodes"
             :options="deptOptions"
             :props="props"
+            filterable
             :show-all-levels="false"
             clearable
           >
@@ -763,8 +765,8 @@
         remark: undefined,
         postIds: [],
         roleIds: [],
-        deptCodes:[],
-        wardCodes:[],
+        deptCodes: [],
+        wardCodes: [],
       };
       this.resetForm("form");
     },
@@ -822,14 +824,14 @@
         this.form = response.data;
         this.belongDepts = response.belongDepts;
         this.belongWards = response.belongWards;
-        if (this.form.hospInfo){
+        if (this.form.hospInfo) {
           this.form.deptCodes = JSON.parse(this.form.hospInfo);
-        }else{
+        } else {
           this.form.deptCodes = [];
         }
-        if (this.form.deptInfo){
+        if (this.form.deptInfo) {
           this.form.wardCodes = JSON.parse(this.form.deptInfo);
-        }else{
+        } else {
           this.form.wardCodes = [];
         }
         console.log(this.form.wardCodes, "wardCodes");
@@ -846,10 +848,10 @@
     },
     // 鍒犻櫎绉戝
     removehpsp(valueArray) {
-      console.log(valueArray,'鍒犻櫎绉戝');
-      console.log(this.form.userId,'鍒犻櫎');
-     let code=valueArray[valueArray.length-1];
-      removeusertd(this.form.userId,code).then((res) => {
+      console.log(valueArray, "鍒犻櫎绉戝");
+      console.log(this.form.userId, "鍒犻櫎");
+      let code = valueArray[valueArray.length - 1];
+      removeusertd(this.form.userId, code).then((res) => {
         if (res.code) {
         }
       });
@@ -880,13 +882,13 @@
       this.form.hospInfo = JSON.stringify(this.form.deptCodes);
       this.form.deptInfo = JSON.stringify(this.form.wardCodes);
       if (this.form.deptCodes.length)
-      this.form.deptCodes = this.form.deptCodes.map(
-        (subArr) => subArr[subArr.length - 1]
-      );
+        this.form.deptCodes = this.form.deptCodes.map(
+          (subArr) => subArr[subArr.length - 1]
+        );
       if (this.form.wardCodes.length)
-      this.form.wardCodes = this.form.wardCodes.map(
-        (subArr) => subArr[subArr.length - 1]
-      );
+        this.form.wardCodes = this.form.wardCodes.map(
+          (subArr) => subArr[subArr.length - 1]
+        );
       console.log(this.form.wardCodes, "wardCodes");
       console.log(this.form.deptCodes, "deptCodes");
 
@@ -1017,3 +1019,11 @@
   },
 };
 </script>
+<style lang="scss" scoped>
+::v-deep .el-cascader-panel .el-cascader-menu__wrap {
+  height: 404px!important;
+}
+// .el-cascader-menu__wrap {
+//   height: 404px;
+// }
+</style>

--
Gitblit v1.9.3