WXL
2025-02-11 46784b2a6b3aa13d6ccad5e784e005699f8a4d7f
src/views/followvisit/record/detailpage/index.vue
@@ -44,17 +44,17 @@
            <template slot-scope="scope">
              <div v-if="scope.row.sendstate == 1">
                <el-tag type="primary" :disable-transitions="false"
                  >被领取</el-tag
                  >表单已领取</el-tag
                >
              </div>
              <div v-if="scope.row.sendstate == 2">
                <el-tag type="primary" :disable-transitions="false"
                  >待发送</el-tag
                  >待执行</el-tag
                >
              </div>
              <div v-if="scope.row.sendstate == 3">
                <el-tag type="success" :disable-transitions="false"
                  >已发送未领取</el-tag
                  >表单已发送</el-tag
                >
              </div>
              <div v-if="scope.row.sendstate == 4">
@@ -64,7 +64,9 @@
                <el-tag type="danger" :disable-transitions="false"
                  >发送失败</el-tag
                >
              </div>
              </div><div v-if="scope.row.sendstate == 6">
              <el-tag type="success" :disable-transitions="false">已完成</el-tag>
            </div>
            </template>
          </el-table-column>
          <el-table-column
@@ -684,7 +686,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 +774,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;