WXL
2025-07-22 7449ee9bca84c18944e65592ac8ea33a7c191639
src/views/followvisit/record/detailpage/index.vue
@@ -727,6 +727,7 @@
                :picker-options="pickerOptions"
                align="right"
                v-model="form.date1"
                class="custom-disabled"
              ></el-date-picker>
            </el-form-item>
          </el-col>
@@ -852,6 +853,10 @@
        },
      },
      pickerOptions: {
        disabledDate(time) {
        // 禁用今天及之前的日期
        return time.getTime() < Date.now() - 24 * 60 * 60 * 1000;
      },
        shortcuts: [
          {
            text: "七天后",
@@ -1194,10 +1199,10 @@
                    path: "/logisticsservice/record",
                  });
                }
              } else if (form.serviceType == 2) {
              } else if (this.form.serviceType == 2) {
                if (this.visitCount) {
                  this.$router.push({
                    path: "/followvisit/again",
                    path: "/logisticsservice/again",
                  });
                } else {
                  this.$router.push({
@@ -1280,7 +1285,7 @@
            })
            .catch(() => {
              if (this.form.serviceType == 13) {
                if (this.visitCount) {
                if (this.visitCount!=1) {
                  this.$router.push({
                    path: "/logisticsservice/zbAgain",
                  });
@@ -1290,7 +1295,7 @@
                  });
                }
              } else if (form.serviceType == 2) {
                if (this.visitCount) {
                if (this.visitCount!=1) {
                  this.$router.push({
                    path: "/followvisit/again",
                  });
@@ -1326,6 +1331,8 @@
          this.form = res.rows[0].serviceSubtaskList.find(
            (item) => item.id == this.id
          );
          console.log(this.form.serviceType,'serviceType');
          this.logsheetlist = res.rows[0].serviceSubtaskList;
          this.templateid = this.logsheetlist[0].templateid;
          const targetDate = new Date(this.form.longSendTime); // 目标日期
@@ -1482,7 +1489,6 @@
          form.finishtime = "";
          if (form.resource) {
            if (form.resource == 2) {
              form.serviceType = 13;
              form.visitDeptCode = localStorage.getItem("deptCode");
              form.visitDeptName = "随访中心";
            } else {
@@ -1495,16 +1501,18 @@
          }
          // form.id = null;
          form.sendstate = 2;
          console.log(form.serviceType,'form.serviceType');
          addserviceSubtask(form).then((res) => {
            if (res.code == 200) {
              this.$modal.msgSuccess("创建成功");
              if (form.serviceType == 13) {
                this.$router.push({
                  path: "/logisticsservice/again",
                  path: "/logisticsservice/zbAgain",
                });
              } else if (form.serviceType == 2) {
                this.$router.push({
                  path: "/logisticsservice/zbAgain",
                  path: "/logisticsservice/again",
                });
              }
            } else {