From 98589bb54e0d3352041c321acd0db5ab930030ca Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 23 一月 2025 21:27:45 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/record/detailpage/index.vue |  253 +++++++++++++++++++++++++-------------------------
 1 files changed, 125 insertions(+), 128 deletions(-)

diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index fe433ae..9fc0a60 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -18,10 +18,14 @@
                 >鏌ョ湅鎮h�呮湰娆℃湇鍔′俊鎭�</el-button
               >
             </div>
-            <div style="margin-left: 20px;color: #59a0f0;">
-              <el-link href="https://9.208.2.207:6060/search-homepage" target="_blank" :underline="true">
-        鍓嶅線CDSS鏌ヨ
-      </el-link>
+            <div style="margin-left: 20px; color: #59a0f0">
+              <el-link
+                href="https://9.208.2.207:6060/search-homepage"
+                target="_blank"
+                :underline="true"
+              >
+                鍓嶅線CDSS鏌ヨ
+              </el-link>
             </div>
           </div>
           <!-- <el-button type="success">闅忚鍚庣煭淇�</el-button> -->
@@ -211,96 +215,89 @@
         <el-collapse v-model="activeNames" @change="handleChange">
           <el-collapse-item title="鏌ョ湅褰撳墠鎮h�呬俊鎭�" name="1">
             <div class="detailed">
-          <el-form
-            ref="userform"
-            :model="userform"
+              <el-form ref="userform" :model="userform" label-width="100px">
+                <el-row :gutter="20">
+                  <el-col :span="12">
+                    <el-form-item label="鎮h�呭鍚�" prop="name">
+                      <el-input
+                        v-model="userform.name"
+                        placeholder="璇疯緭鍏ュ鍚�"
+                        maxlength="30"
+                      ></el-input> </el-form-item
+                  ></el-col>
+                  <el-col :span="12"
+                    ><el-form-item label="鑱旂郴鏂瑰紡" prop="telcode">
+                      <el-input
+                        v-model="userform.telcode"
+                        placeholder="璇疯緭鍏ヨ仈绯绘柟寮�"
+                        maxlength="30"
+                      /> </el-form-item
+                  ></el-col>
+                </el-row>
+                <el-row :gutter="20">
+                  <el-col :span="24">
+                    <el-form-item label="鍑虹敓鍦�" prop="birthplace">
+                      <el-input
+                        v-model="userform.birthplace"
+                        placeholder="鍥姐�佺渷銆佸湴甯傘�佸尯鍘裤�佽閬撶瓑璇︾粏淇℃伅"
+                        maxlength="50"
+                      /> </el-form-item
+                  ></el-col>
+                </el-row>
+                <el-row :gutter="20">
+                  <el-col :span="24"
+                    ><el-form-item label="灞呬綇鍦�" prop="placeOfResidence">
+                      <el-input
+                        v-model="userform.placeOfResidence"
+                        placeholder="鍥姐�佺渷銆佸湴甯傘�佸尯鍘裤�佽閬撶瓑璇︾粏淇℃伅"
+                        maxlength="50"
+                      /> </el-form-item
+                  ></el-col>
+                </el-row>
+                <el-row :gutter="20">
+                  <el-col :span="24">
+                    <el-form-item label="鏍囩" prop="desc">
+                      <div class="xinz-inf">
+                        <el-tag
+                          :key="tag.tagname"
+                          type="success"
+                          v-for="tag in dynamicTags"
+                          v-if="tag.isoperation != 3"
+                          :disable-transitions="false"
+                        >
+                          {{ tag.tagname }}
+                        </el-tag>
+                        <el-select
+                          v-if="inputVisible"
+                          v-model="inputValue"
+                          @change="handleInputConfirm"
+                          filterable
+                          allow-create
+                          default-first-option
+                          placeholder="璇烽�夋嫨/鏌ヨ"
+                        >
+                          <el-option
+                            v-for="item in options"
+                            :key="item.tagid"
+                            :label="item.tagname"
+                            :value="item.tagname"
+                          >
+                          </el-option>
+                        </el-select>
 
-            label-width="100px"
-          >
-            <el-row :gutter="20">
-              <el-col :span="12">
-                <el-form-item label="鎮h�呭鍚�" prop="name">
-                  <el-input
-                    v-model="userform.name"
-                    placeholder="璇疯緭鍏ュ鍚�"
-                    maxlength="30"
-                  ></el-input> </el-form-item
-              ></el-col>
-              <el-col :span="12"
-                ><el-form-item label="鑱旂郴鏂瑰紡" prop="telcode">
-                  <el-input
-                    v-model="userform.telcode"
-                    placeholder="璇疯緭鍏ヨ仈绯绘柟寮�"
-                    maxlength="30"
-                  /> </el-form-item
-              ></el-col>
-            </el-row>
-            <el-row :gutter="20">
-              <el-col :span="24">
-                <el-form-item label="鍑虹敓鍦�" prop="birthplace">
-                  <el-input
-                    v-model="userform.birthplace"
-                    placeholder="鍥姐�佺渷銆佸湴甯傘�佸尯鍘裤�佽閬撶瓑璇︾粏淇℃伅"
-                    maxlength="50"
-                  /> </el-form-item
-              ></el-col>
-            </el-row>
-            <el-row :gutter="20">
-              <el-col :span="24"
-                ><el-form-item label="灞呬綇鍦�" prop="placeOfResidence">
-                  <el-input
-                    v-model="userform.placeOfResidence"
-                    placeholder="鍥姐�佺渷銆佸湴甯傘�佸尯鍘裤�佽閬撶瓑璇︾粏淇℃伅"
-                    maxlength="50"
-                  /> </el-form-item
-              ></el-col>
-            </el-row>
-            <el-row :gutter="20">
-              <el-col :span="24">
-                <el-form-item label="鏍囩" prop="desc">
-                  <div class="xinz-inf">
-                    <el-tag
-                      :key="tag.tagname"
-                      type="success"
-                      v-for="tag in dynamicTags"
-                      v-if="tag.isoperation != 3"
-
-                      :disable-transitions="false"
-
-                    >
-                      {{ tag.tagname }}
-                    </el-tag>
-                    <el-select
-                      v-if="inputVisible"
-                      v-model="inputValue"
-                      @change="handleInputConfirm"
-                      filterable
-                      allow-create
-                      default-first-option
-                      placeholder="璇烽�夋嫨/鏌ヨ"
-                    >
-                      <el-option
-                        v-for="item in options"
-                        :key="item.tagid"
-                        :label="item.tagname"
-                        :value="item.tagname"
-                      >
-                      </el-option>
-                    </el-select>
-
-                    <el-button
-                      v-else
-                      class="button-new-tag"
-                      size="small"
-                      @click="showInput"
-                      >+ 鏂板鏍囩</el-button
-                    >
-                  </div>
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-        </div>
+                        <el-button
+                          v-else
+                          class="button-new-tag"
+                          size="small"
+                          @click="showInput"
+                          >+ 鏂板鏍囩</el-button
+                        >
+                      </div>
+                    </el-form-item>
+                  </el-col>
+                </el-row>
+              </el-form>
+            </div>
           </el-collapse-item>
         </el-collapse>
       </div>
@@ -592,10 +589,7 @@
   updatePersonVoices,
   addPersonVoices,
 } from "@/api/AiCentre/index";
-import {
-  messagelistpatient,
-
-} from "@/api/patient/homepage";
+import { messagelistpatient } from "@/api/patient/homepage";
 export default {
   dicts: ["sys_normal_disable", "sys_user_sex", "sys_yujing", "sys_suggest"],
   data() {
@@ -613,7 +607,7 @@
       voiceDatatop: [], //棰樼洰琛�
       dynamicTags: [],
 
-      userform:{},
+      userform: {},
       Whetherall: false, //鏄惁鍏ㄩ儴璁板綍灞曠ず
       dialogFormVisible: false,
       Voicetype: 0, //鏄惁涓鸿闊虫湇鍔�
@@ -690,7 +684,7 @@
         if (res.code == 200) {
           this.voiceDatatop = res.data.serviceSubtaskDetails;
           this.voice = res.data.voice;
-          this.activeName = "yy";
+          // this.activeName = "yy";
           this.taskname = res.data.taskName;
           // 闂嵎灞曠ず鏁版嵁澶勭悊
           this.tableDatatop = res.data.filteredDetails;
@@ -785,23 +779,26 @@
         item.subId = this.id;
         item.taskid = this.taskid;
         item.asrtext = item.matchedtext;
-        item.isoperation = 1;
+        if (!item.id) {
+          item.isoperation = 1;
+        }
         item.patid = this.patid;
         item.templateid = item.templateID;
+
+        if (item.id) {
+          updatePersonVoices(item).then((res) => {
+            if (res.code == 200) {
+              this.$modal.msgSuccess("鏈嶅姟淇敼鎴愬姛");
+            }
+          });
+        } else {
+          addPersonVoices(item).then((res) => {
+            if (res.code == 200) {
+              this.$modal.msgSuccess("鏈嶅姟淇濆瓨鎴愬姛");
+            }
+          });
+        }
       });
-      if (this.tableDatatop[0].id) {
-        updatePersonVoices(this.tableDatatop).then((res) => {
-          if (res.code == 200) {
-            this.$modal.msgSuccess("鏈嶅姟淇敼鎴愬姛");
-          }
-        });
-      } else {
-        addPersonVoices(this.tableDatatop).then((res) => {
-          if (res.code == 200) {
-            this.$modal.msgSuccess("鏈嶅姟淇濆瓨鎴愬姛");
-          }
-        });
-      }
     },
     // 鑾峰彇鎮h�呰褰�
     getTaskservelist(taskid) {
@@ -1037,20 +1034,20 @@
   color: red;
 }
 .detailed {
-      width: 88%;
-      border-radius: 8px;
-      padding: 30px;
-      margin-bottom: 30px;
-      background-color: #ddf0f8;
-      .bg-purple {
-        margin-bottom: 20px;
-      }
-      .spanvalue {
-        display: inline-block;
-        min-width: 200px;
-        border-bottom: 1px solid rgb(172, 172, 172);
-      }
-    }
+  width: 88%;
+  border-radius: 8px;
+  padding: 30px;
+  margin-bottom: 30px;
+  background-color: #ddf0f8;
+  .bg-purple {
+    margin-bottom: 20px;
+  }
+  .spanvalue {
+    display: inline-block;
+    min-width: 200px;
+    border-bottom: 1px solid rgb(172, 172, 172);
+  }
+}
 .headline {
   font-size: 24px;
   height: 40px;
@@ -1096,7 +1093,7 @@
 ::v-deep.offside-value .el-radio__label {
   color: #fff;
 }
-::v-deep.el-link.el-link--default{
+::v-deep.el-link.el-link--default {
   color: #02a7f0 !important;
 }
 .mulsz {

--
Gitblit v1.9.3