WXL
昨天 952ce5369317b40f6c6f2e11e70969d50108d240
src/views/patient/propaganda/QuestionnaireTask.vue
@@ -87,7 +87,7 @@
                  </el-radio-group>
                </el-form-item>
                <el-row :gutter="20" v-if="form.longTask">
                  <el-col :span="8">
                  <el-col :span="6">
                    <el-form-item label="周期时间" prop="name">
                      <el-input
                        v-model="form.sendDay"
@@ -518,7 +518,7 @@
                  icon="el-icon-refresh"
                  size="medium"
                  @click="resetQuery"
                  >取消创建</el-button
                  >重置</el-button
                >
              </el-form-item>
            </el-form>
@@ -1063,17 +1063,17 @@
      ],
      tasktypes: [
        {
          value: 1,
          label: "心电随访",
        },
        // {
        //   value: "1",
        //   label: "监测评估",
        // },
        {
          value: 2,
          label: "出院随访",
        },
        {
          value: 3,
          label: "影像随访",
          label: "门诊随访",
        },
        {
          value: 4,
@@ -1081,16 +1081,20 @@
        },
        {
          value: 5,
          label: "体检随访",
          label: "复诊管理",
        },
        {
          value: 11,
          label: "医技随访",
          value: 6,
          label: "满意度调查",
        },
        {
          value: 10,
          label: "专科随访",
          value: 7,
          label: "患者报告",
        },
        // {
        //   value: "8",
        //   label: "其他通知",
        // },
      ],
      // 科室/病区
      belongWards: [],
@@ -1183,11 +1187,6 @@
    },
    // 获取当前类型
    Acquisitiontype() {
      let queryParams = {
        pageNum: this.topqueryParams.pageNum,
        pageSize: this.topqueryParams.pageSize,
        isenable: "",
      };
      this.currenttype = this.$route.query.type;
      this.title = "问卷内容列表";
      this.tableLabel = this.tableLabelwj;
@@ -1297,8 +1296,6 @@
          // },
        ];
      }
      console.log(this.topqueryParams, "this.topqueryParams");
      getQtemplatelist(this.topqueryParams).then((response) => {
        this.userList = response.rows;
        this.total = response.total;
@@ -1688,7 +1685,15 @@
      });
    },
    resetQuery() {},
    resetQuery() {
      this.patientqueryParams= {
        pageNum: 1, //
        pageSize: 10,
      };
      console.log(this.patientqueryParams,'this.patientqueryParams');
      this.handleQuery()
    },
    handleQuerymb() {
      getQtemplatelist(this.topqueryParams).then((response) => {
        this.userList = response.rows;
@@ -1990,25 +1995,13 @@
          "当前为新增任务未保存不可关联模板,是否先保存任务?",
          "功能提示",
          {
            confirmButtonText: "保存任务",
            cancelButtonText: "暂存模板",
            confirmButtonText: "暂存模板",
            cancelButtonText: "保存任务",
            type: "warning",
          }
        )
          .then(() => {
            if (Array.isArray(this.objyl.suitway)) {
              this.objyl.suitway = this.objyl.suitway.join(",");
            }
            this.objyl.templateid = this.objyl.svyid;
            this.form.libtemplateid = this.objyl.svyid;
            this.objyl.isoperation = 1;
            this.objyl.svyTaskTemplateScriptVOS =
              this.objyl.svyTemplateLibScripts;
            this.form.svyTaskTemplateVO = this.objyl;
            this.submitForm();
          })
          .catch(() => {
            if (Array.isArray(this.objyl.suitway)) {
         if (Array.isArray(this.objyl.suitway)) {
              this.objyl.suitway = this.objyl.suitway.join(",");
            }
            this.objyl.templateid = this.objyl.svyid;
@@ -2021,6 +2014,19 @@
            this.$modal.msgSuccess("暂存成功保存任务后模板失效");
            this.drawermb = false;
            this.previewtf = false;
          })
          .catch(() => {
                 if (Array.isArray(this.objyl.suitway)) {
              this.objyl.suitway = this.objyl.suitway.join(",");
            }
            this.objyl.templateid = this.objyl.svyid;
            this.form.libtemplateid = this.objyl.svyid;
            this.objyl.isoperation = 1;
            this.objyl.svyTaskTemplateScriptVOS =
              this.objyl.svyTemplateLibScripts;
            this.form.svyTaskTemplateVO = this.objyl;
            this.submitForm();
          });
      } else {
        setTimeout(() => {