WXL (wul)
4 小时以前 3b5ff0651c049d5def8fd789c52ec26188a1e8a1
src/views/patient/propaganda/QuestionnaireTask.vue
@@ -917,6 +917,7 @@
  Externallist,
  getQtemplatelist,
  getQtemplateobj,
  taskgetQtemplateobj,
  TaskQuestioncomit,
  deleteTaskQuestioncomit,
  Questionnairetaskgetson,
@@ -1473,7 +1474,7 @@
          this.form.preachformList = this.selectedOrder;
        } else {
          this.$modal.msgError("请选择服务类型");
            this.submitLoading = false;
          this.submitLoading = false;
          return;
        }
@@ -1490,7 +1491,7 @@
        ) {
        } else {
          this.$modal.msgError("请选择任务关联条件");
            this.submitLoading = false;
          this.submitLoading = false;
          return;
        }
        //暂停任务患者限制
@@ -1501,7 +1502,7 @@
        if (!this.form.templatename && !this.templateor) {
          this.$modal.msgError("未选择模板");
            this.submitLoading = false;
          this.submitLoading = false;
          return;
        }
@@ -1515,7 +1516,7 @@
          this.form.longTask
        ) {
        } else {
            this.submitLoading = false;
          this.submitLoading = false;
          return this.$modal.msgError("时间信息缺失");
        }
        const filteredArray = this.variableList.filter(
@@ -1594,6 +1595,8 @@
    },
    // 预览
    previewfnmb() {
      // taskgetQtemplateobj({ id: this.form.templateid });
      getTaskQuestioncomit(this.form.templateid).then((res) => {
        if (res.code == 200) {
          console.log(res, "预览数据");
@@ -1604,15 +1607,17 @@
          this.getillness(this.form.libtemplateid);
          this.previewtf = true;
          getQtemplateobj({ svyid: this.form.libtemplateid }).then((res) => {
          taskgetQtemplateobj({ id: this.form.templateid }).then((res) => {
            if (res.code == 200) {
              this.questionList = res.rows[0].svyTemplateLibScripts;
              this.questionList = res.data.svyTaskTemplateScriptVOS;
              this.questionList.forEach((item) => {
                item.qremark = [];
                item.svyLibTemplateTargetoptions =
                  item.svyTaskTemplateTargetoptions;
              });
              this.previewtftype = 1;
              this.objyl.svyTemplateLibScripts =
                res.rows[0].svyTemplateLibScripts;
                res.data.svyTaskTemplateScriptVOS;
            }
          });
        }
@@ -2135,8 +2140,8 @@
    },
    // 疾病删除触发
    removediagg(row) {
      console.log(row,'row');
console.log(this.diagglist,'this.diagglist');
      console.log(row, "row");
      console.log(this.diagglist, "this.diagglist");
      let result = this.diagglist
        .filter((item) => item.icd10code == row)
@@ -2270,7 +2275,7 @@
              TaskQuestioncomit(this.objyl).then((response) => {
                this.previewtf = false;
                this.form.libtemplateid = this.objyl.svyid;
              this.form.libtemplatename = this.objyl.svyname;
                this.form.libtemplatename = this.objyl.svyname;
                this.form.templateid = response.data;
                this.form.templatename = this.objyl.svyname;
                this.$modal.msgSuccess("选择模板成功");