| | |
| | | <el-table :data="logsheetlist" style="width: 100%"> |
| | | <el-table-column prop="sendname" align="center" label="姓名"> |
| | | </el-table-column> |
| | | <el-table-column prop="sendstate" align="center" label="服务状态"> |
| | | <el-table-column |
| | | prop="sendstate" |
| | | align="center" |
| | | width="200" |
| | | label="服务状态" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.sendstate == 1"> |
| | | <el-tag type="primary" :disable-transitions="false" |
| | |
| | | serviceSubtaskDetailedit, |
| | | serviceSubtaskDetailadd, |
| | | updatePersonVoices, |
| | | addPersonVoices, |
| | | } from "@/api/AiCentre/index"; |
| | | export default { |
| | | dicts: ["sys_normal_disable", "sys_user_sex", "sys_yujing", "sys_suggest"], |
| | |
| | | taskname: "", |
| | | activeName: "wj", |
| | | voice: "", |
| | | templateid:'', |
| | | templateid: "", |
| | | tableDatatop: [], //题目表 |
| | | voiceDatatop: [], //题目表 |
| | | Whetherall: false, //是否全部记录展示 |
| | |
| | | this.patid = this.$route.query.patid; |
| | | this.Voicetype = this.$route.query.Voicetype; |
| | | this.serviceType = this.$route.query.serviceType; |
| | | if (this.Voicetype) { |
| | | this.getPersonVoices(); |
| | | } else { |
| | | this.getsearchrResults(); |
| | | } |
| | | |
| | | this.getTaskservelist(this.taskid); |
| | | }, |
| | | |
| | |
| | | } |
| | | }); |
| | | if (!this.tableDatatop.length) { |
| | | this.puttaskid(this.templateid); |
| | | this.puttaskid(this.templateid); |
| | | } |
| | | } |
| | | }); |
| | |
| | | if (res.code == 200) { |
| | | this.tableDatatop = res.data.ivrTaskTemplateScriptVOList; |
| | | this.tableDatatop.forEach((item) => { |
| | | item.id = null; |
| | | // 类型判断赋值 |
| | | if (item.ivrTaskScriptTargetoptionList) { |
| | | item.targetvalue=1; |
| | | item.questiontext=item.scriptContent; |
| | | item.targetvalue = item.ivrTaskScriptTargetoptionList.map(obj => obj.targetvalue).join('&'); |
| | | item.targetvalue = 1; |
| | | item.questiontext = item.scriptContent; |
| | | item.targetvalue = item.ivrTaskScriptTargetoptionList |
| | | .map((obj) => obj.targetvalue) |
| | | .join("&"); |
| | | } |
| | | if (item.targetvalue) { |
| | | item.scriptResult = item.targetvalue.split("&"); |
| | |
| | | item.scriptResult = []; |
| | | } |
| | | }); |
| | | console.log(this.tableDatatop,'this.tableDatatop'); |
| | | |
| | | console.log(this.tableDatatop, "this.tableDatatop"); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | this.Editsingletasksonyic(excep); |
| | | }, |
| | | yuyingetdetail() { |
| | | this.tableDatatop.forEach((item) => { |
| | | 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; |
| | | }); |
| | | updatePersonVoices(this.tableDatatop).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("服务保存成功"); |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | // 获取患者记录 |
| | | getTaskservelist(taskid) { |
| | |
| | | }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.logsheetlist = res.rows[0].serviceSubtaskList; |
| | | this.templateid=this.logsheetlist[0].templateid |
| | | this.templateid = this.logsheetlist[0].templateid; |
| | | } |
| | | if (this.Voicetype) { |
| | | this.getPersonVoices(); |
| | | } else { |
| | | this.getsearchrResults(); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | .catch(() => {}); |
| | | }, |
| | | handleOptionChange(a, b, c) { |
| | | var obj = this.tableDatatop[b].svyLibTemplateTargetoptions.find( |
| | | (item) => item.optioncontent == a |
| | | ); |
| | | console.log(this.tableDatatop[b], "this.tableDatatop[b]"); |
| | | |
| | | if (this.Voicetype) { |
| | | var obj = this.tableDatatop[b].ivrTaskScriptTargetoptionList.find( |
| | | (item) => item.optioncontent == a |
| | | ); |
| | | } else { |
| | | var obj = this.tableDatatop[b].svyLibTemplateTargetoptions.find( |
| | | (item) => item.optioncontent == a |
| | | ); |
| | | } |
| | | if (obj.isabnormal) { |
| | | this.tableDatatop[b].isabnormal = true; |
| | | } else { |