WXL (wul)
7 天以前 d90b45d7e9e38e34c044b772006004f2a4cb8b8e
src/views/followvisit/tasklist/index.vue
@@ -462,6 +462,7 @@
      previewtype: 2, //预览影像随访类型
      total: 0, // 总条数
      ImportQuantity: 999, //导影像随访数量
      orgname: null,
      //预览影像随访信息
      previewvalue: {
        username: "这个医生对你怎么样",
@@ -585,6 +586,8 @@
        pageNum: 1,
        pageSize: 10,
        type: 2,
        leaveldeptcodes: [],
        leavehospitaldistrictcodes: [],
        userName: undefined,
        tagid: undefined,
        topic: undefined,
@@ -642,14 +645,18 @@
  },
  watch: {},
  created() {
    // this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
    //   (obj) => obj.deptCode
    // );
    // this.topqueryParams.leavehospitaldistrictcodes =
    //   store.getters.belongWards.map((obj) => obj.districtCode);
    this.orgname = localStorage.getItem("orgname");
    if (this.orgname == "南华大学附属第一医院") {
      this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
        (obj) => obj.deptCode
      );
      this.topqueryParams.leavehospitaldistrictcodes =
        store.getters.belongWards.map((obj) => obj.districtCode);
    }
    this.tasktopic = this.$route.query.tasktopic
      ? this.$route.query.tasktopic
      : this.tasktopic;
    this.tasktopic = Number(this.tasktopic);
    this.getList();
    this.getConfigKey("sys.user.initPassword").then((response) => {
      this.initPassword = response.msg;
@@ -677,6 +684,8 @@
        this.tasktopic == 1 ||
        this.tasktopic == 7 ||
        this.tasktopic == 5 ||
        this.tasktopic == 18 ||
        this.tasktopic == 19 ||
        this.tasktopic == 6
      ) {
        if (!this.topqueryParams.type) this.topqueryParams.type = "2";
@@ -690,8 +699,12 @@
            label: "问卷随访",
          },
        ];
        this.topqueryParams.type = 2;
      } else if (this.tasktopic == 4 || this.tasktopic == 8) {
        // this.topqueryParams.type = 2;
      } else if (
        this.tasktopic == 4 ||
        this.tasktopic == 8 ||
        this.tasktopic == 17
      ) {
        if (!this.topqueryParams.type) this.topqueryParams.type = "3";
        this.longtermlist = [
          {
@@ -716,7 +729,7 @@
            label: "宣教关怀",
          },
        ];
        this.topqueryParams.type = 2;
        // this.topqueryParams.type = 2;
      }
      this.topqueryParams.beginTime = this.dateRange[0];
      this.topqueryParams.endTime = this.dateRange[1];
@@ -990,17 +1003,22 @@
    // 暂停
    stop(row) {
      console.log(row);
      if (row.sendState == 2) {
        this.TaskOperation.taskId = row.taskid;
        this.TaskOperation.sendState = 3;
        this.TaskOperation.sendType = "";
        this.TaskOperation.taskType = row.type;
        TaskTemplateSendExecution(this.TaskOperation).then((res) => {
          this.$modal.msgSuccess("任务已暂停");
          this.getList();
        });
      }
      this.$modal
        .confirm('是否确认暂停"' + row.taskName + '"?')
        .then(function () {
          if (row.sendState == 2) {
            this.TaskOperation.taskId = row.taskid;
            this.TaskOperation.sendState = 3;
            this.TaskOperation.sendType = "";
            this.TaskOperation.taskType = row.type;
            TaskTemplateSendExecution(this.TaskOperation).then((res) => {
              this.$modal.msgSuccess("任务已暂停");
              this.getList();
            });
          }
        })
        .catch(() => {});
    },
    /** 提交按钮 */