| | |
| | | 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; |
| | |
| | | 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; |
| | | |
| | | 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("服务保存成功"); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | // 获取患者记录 |
| | | getTaskservelist(taskid) { |
| | | this.taskid = taskid; |