WXL
2024-04-12 a46348ad86f5df632c58bed5866a70f798b75d5e
src/views/patient/propaganda/particty.vue
@@ -69,6 +69,7 @@
                      >
                      <el-time-picker
                        is-range
                        arrow-control
                        @change="changeTime"
                        v-model="time1"
                        range-separator="至"
@@ -85,6 +86,7 @@
                      >
                      <el-time-picker
                        is-range
                        arrow-control
                        @change="changeTime"
                        v-model="time2"
                        range-separator="至"
@@ -101,6 +103,7 @@
                      >
                      <el-time-picker
                        is-range
                        arrow-control
                        @change="changeTime"
                        v-model="time3"
                        range-separator="至"
@@ -641,7 +644,7 @@
  getlibrarylist,
  getFollowuplist,
  getQtemplatelist,
  edithetask,
  getTaskInfo,
  addhetask,
  gethetaskinfo,
  delhetaskinfo,
@@ -824,8 +827,7 @@
  created() {
    this.id = this.$route.query.id;
    this.form.type = this.$route.query.type;
    this.Addsubtask();
    this.Getsubtask();
    this.Getdetails();
    this.Acquisitiontype();
  },
@@ -952,13 +954,12 @@
      console.log(filteredArray, "存前变量");
      this.form.textParam = this.convertFormat2ToFormat1(filteredArray);
      if (this.form.id) {
        this.form.isoperation = 2;
      } else {
        this.form.isoperation = 1;
      }
      Editsingletask(this.form).then((response) => {
      Editsingletask(this.form).then((res) => {
        if (res.code == 200) {
          if (this.form.id) {
            this.$modal.msgSuccess("新增成功");
@@ -1077,12 +1078,22 @@
    Acknowledgereference() {
      this.quote = true;
    },
    // 新增子任务
    Addsubtask() {
      this.topqueryParams.pguid = 2;
      // addsvr_prjtask(this.topqueryParams).then((res) => {
      //   console.log(res);
      // });
    // 获取详情
    Getdetails() {
      if (this.id) {
        getTaskInfo({ taskid: this.id }).then((res) => {
          const filteredArray = "";
          if (res.code == 200) {
            this.form = res.data;
            this.checkList = this.form.serviceform.split(",");
            filteredArray = this.convertFormat1ToFormat2(this.form.textParam);
            this.variableList = this.transitionList.concat(filteredArray);
          } else {
            this.$modal.msgError(res.code);
          }
          console.log(res);
        });
      }
    },
    // 新增派送患者
    AddDispatchpatients() {
@@ -1093,16 +1104,6 @@
      this.dialogVisiblepatient = false;
    },
    // 查询子任务列表
    Getsubtask() {
      this.topqueryParams.pguid = 2;
      console.log(this.topqueryParams, "aa");
      messagelistpatient(this.topqueryParams).then((res) => {
        this.userList = res.rows;
        this.total = res.total;
        console.log(this.userList, "ss");
      });
    },
    // 变量---------------
    variableEdit(index, row) {
      console.log(index, row);
@@ -1168,6 +1169,11 @@
        }
      }
      this.form.sendTimeslot = combinedData;
      // 展示数据临时存储日期、早、中、晚
      this.form.sendlimitabegin = this.daytime.join(",");
      this.form.sendlimitaend = this.time1.join(",");
      this.form.sendlimitnbegin = this.time2.join(",");
      this.form.sendlimitnend = this.time3.join(",");
      console.log(combinedData, "combinedData");
    },
  },