WXL
2025-01-23 7cfedaa3cc377dac9b64042470b09a6e96d3ef3a
src/views/followvisit/record/detailpage/index.vue
@@ -684,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;
@@ -772,34 +772,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;
        if (!item.id) {
          item.isoperation = 1;
        }
        item.patid = this.patid;
        item.templateid = item.templateID;
   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,
  }
        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("服务保存成功");
            }
          });
        }
      });
    },
    addPersonVoices(obj).then((res) => {
    if (res.code == 200) {
     this.$modal.msgSuccess("服务保存成功");
    }
   });
  },
    // 获取患者记录
    getTaskservelist(taskid) {
      this.taskid = taskid;