WXL
2025-01-23 48e96f3d058b1bbf529f5b8cd1979e06efd43efe
src/views/followvisit/record/detailpage/index.vue
@@ -505,7 +505,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;
@@ -593,31 +593,35 @@
      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;