From a5faf6e7b42f1e358ee8396c77452a07d9f976e8 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 12 二月 2025 13:54:12 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/record/detailpage/index.vue | 300 +++++++++++++++++++++++++++++++-----------------------------
1 files changed, 155 insertions(+), 145 deletions(-)
diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index b231d91..1438f7c 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -18,6 +18,15 @@
>鏌ョ湅鎮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>
</div>
<!-- <el-button type="success">闅忚鍚庣煭淇�</el-button> -->
</div>
@@ -35,17 +44,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">
@@ -55,7 +64,9 @@
<el-tag type="danger" :disable-transitions="false"
>鍙戦�佸け璐�</el-tag
>
- </div>
+ </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
@@ -206,96 +217,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>
@@ -587,10 +591,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() {
@@ -608,7 +609,7 @@
voiceDatatop: [], //棰樼洰琛�
dynamicTags: [],
- userform:{},
+ userform: {},
Whetherall: false, //鏄惁鍏ㄩ儴璁板綍灞曠ず
dialogFormVisible: false,
Voicetype: 0, //鏄惁涓鸿闊虫湇鍔�
@@ -645,10 +646,12 @@
if (res.code === 200) {
this.tableDatatop = res.data.scriptResult.script;
this.tableDatatop.forEach((item) => {
- if (item.scriptResult && item.scriptType != 2) {
+ console.log(item.scriptResultId,'scriptResultId');
+
+ if (item.scriptResultId && item.scriptType != 2) {
item.isoption = 3;
- item.scriptResult = JSON.parse(item.scriptResult);
- } else if (item.scriptResult && item.scriptType == 2) {
+ item.scriptResult = item.scriptResult;
+ } else if (item.scriptResultId && item.scriptType == 2) {
item.scriptResult = item.scriptResult.split("&");
item.isoption = 3;
}
@@ -685,7 +688,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;
@@ -734,9 +737,10 @@
var objs = item.svyLibTemplateTargetoptions.find(
(items) => items.optioncontent == item.scriptResult
);
-
- if (objs.isabnormal) {
- excep = 1;
+ if (obj) {
+ if (objs.isabnormal) {
+ excep = 1;
+ }
}
let obj = {
@@ -750,7 +754,7 @@
if (item.scriptType == 2 && item.scriptResult[0]) {
obj.asrtext = item.scriptResult.join("&");
} else if (item.scriptType != 2 && item.scriptResult) {
- obj.asrtext = JSON.stringify(item.scriptResult);
+ obj.asrtext = item.scriptResult;
}
if (item.isoption == 3) {
@@ -773,31 +777,34 @@
this.Editsingletasksonyic(excep);
},
yuyingetdetail() {
- this.tableDatatop.forEach((item, index) => {
- console.log(item.scriptResult, "scriptResult");
- item.scriptResult = item.scriptResult.join("&");
- item.templatequestionnum = index + 1;
- item.subId = this.id;
- item.taskid = this.taskid;
- item.asrtext = item.matchedtext;
- item.isoperation = 1;
- item.patid = this.patid;
- item.templateid = item.templateID;
- });
- 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("鏈嶅姟淇濆瓨鎴愬姛");
- }
- });
- }
- },
+ this.tableDatatop.forEach((item, index) => {
+ console.log(item.scriptResult, "scriptResult");
+ item.scriptResult = item.scriptResult.join("&");
+ item.templatequestionnum = index + 1;
+ item.subId = this.id;
+ item.taskid = this.taskid;
+ item.asrtext = item.matchedtext;
+ if (!item.id) {
+ item.isoperation = 1;
+ }
+ item.patid = this.patid;
+ item.templateid = item.templateID;
+ });
+ let obj ={
+ serviceSubtaskDetailList: this.tableDatatop,
+ param1: this.taskid,
+ param2: this.patid,
+ subId: this.id,
+ }
+
+ addPersonVoices(obj).then((res) => {
+ if (res.code == 200) {
+ this.$modal.msgSuccess("鏈嶅姟淇濆瓨鎴愬姛");
+ }
+ });
+
+ },
+
// 鑾峰彇鎮h�呰褰�
getTaskservelist(taskid) {
this.taskid = taskid;
@@ -1032,20 +1039,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;
@@ -1091,6 +1098,9 @@
::v-deep.offside-value .el-radio__label {
color: #fff;
}
+::v-deep.el-link.el-link--default {
+ color: #02a7f0 !important;
+}
.mulsz {
font-size: 25px;
margin-top: 20px;
--
Gitblit v1.9.3