WXL (wul)
昨天 e8c62bd430b9697d3f954125b7ec9f61f18347a2
src/views/followvisit/record/detailpage/index.vue
@@ -1721,24 +1721,28 @@
      }, 3000);
    },
    yuyingetdetail() {
      this.tableDatatop.forEach((item, index) => {
        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,
      };
     const dataToSubmit = JSON.parse(JSON.stringify(this.tableDatatop));
  dataToSubmit.forEach((item, index) => {
    // 对拷贝的数据进行操作,不影响原始的 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: dataToSubmit, // 提交处理后的副本
    param1: this.taskid,
    param2: this.patid,
    subId: this.id,
  };
      addPersonVoices(obj).then((res) => {
        if (res.code == 200) {
@@ -1812,11 +1816,11 @@
          this.form = res.rows[0].serviceSubtaskList.find(
            (item) => item.id == this.id
          );
          console.log(this.form.serviceType, "serviceType");
          console.log(this.form, "serviceType");
          this.logsheetlist = res.rows[0].serviceSubtaskList;
          this.templateid = this.logsheetlist[0].templateid;
          this.selectedTag = this.logsheetlist[0].excep;
          this.templateid = this.form.templateid;
          this.selectedTag = this.form.excep;
          const targetDate = new Date(this.form.longSendTime); // 目标日期
          const now = new Date(); // 当前时间
          if (now < targetDate && this.form.sendstate == 2) {