WXL
2024-07-29 dad71d3ff3fa37090c78f3d83d09db0fa54601ca
src/views/followvisit/tasklist/index.vue
@@ -280,7 +280,7 @@
      </div>
      <div
        style="font-size: 18px; margin-bottom: 20px"
        v-if="taskform.showDate[0]"
        v-if="taskform.showDate"
      >
        执行日期:<span
          style="font-size: 18px; color: #2376b7; margin-bottom: 20px"
@@ -436,7 +436,7 @@
        },
        {
          value: "6",
          label: "问卷服务",
          label: "患者报告",
        },
      ],
      tasktopic: "2", //新增类型
@@ -657,6 +657,7 @@
      getTasklist(this.topqueryParams).then((response) => {
        this.userList = response.rows;
        this.total = response.total;
        this.$forceUpdate();
        this.loading = false;
      });
    },
@@ -796,6 +797,7 @@
    sponsor(row) {
      console.log(row, "任务信息");
      this.taskform = row;
      console.log(12);
      if (this.taskform.showDate && this.taskform.sendType != 2) {
        this.taskform.showDate = this.taskform.showDate.split(",");
      }
@@ -814,8 +816,27 @@
      } else {
        this.taskform.showTimeNoon = [];
      }
      if (row.sendState != 2) {
      if (this.taskform.sendState != 2 && this.taskform.sendType != 2) {
        this.taskformVisible = true;
      } else if (this.taskform.sendState != 2 && this.taskform.sendType == 2) {
        this.TaskOperation.taskId = row.taskid;
        this.TaskOperation.sendState = 2;
        this.TaskOperation.sendType = 2;
        this.$modal
          .confirm(
            '当前选中任务名称为"' +
              row.taskName +
              '"的数据项为立即执行任务,发起执行后不可撤回!是否继续'
          )
          .then(() => {
            TaskTemplateSendExecution(this.TaskOperation).then((res) => {
              if (res.code == 200) {
                this.getList();
                this.$modal.msgSuccess("任务已立即执行");
              }
            });
          })
          .catch(() => {});
      } else {
        this.$modal.msgError("任务已发起,不可再次发起");
      }