WXL
2025-01-15 1cb1fbf80c955986385377b5f84e8915d1e655d6
src/views/patient/propaganda/QuestionnaireTask.vue
@@ -651,7 +651,7 @@
                    </el-select> </el-form-item
                ></el-col>
              </el-row>
              <el-row>
              <!-- <el-row>
                <el-col :span="20"
                  ><el-form-item label="适用病区" prop="region">
                    <el-select
@@ -672,7 +672,7 @@
                      </el-option>
                    </el-select> </el-form-item
                ></el-col>
              </el-row>
              </el-row> -->
              <div class="xinz-infs">
                <el-form-item>
@@ -998,6 +998,8 @@
        pageNum: 1, //
        pageSize: 10,
        topica: 1, //0全部1科室2病区
        leavehospitaldistrictcodes:[],
        leaveldeptcodes:[],
      },
      topicoptions: [{ children: [{ children: [] }] }],
      showSearch: true, //
@@ -1163,6 +1165,12 @@
        sendType: [
          { required: true, message: "发送设置不能为空", trigger: "blur" },
        ],
        deptcode: [
          { required: true, message: "适用科室不能为空", trigger: "blur" },
        ],
        // leavehospitaldistrictcode: [
        //   { required: true, message: "适用病区不能为空", trigger: "blur" },
        // ],
      },
      // 科室院区查询入参
      queryParamsdept: {
@@ -1249,6 +1257,10 @@
            label: "纸质",
          },
          {
            value: "4",
            label: "短信",
          },
          {
            value: "5",
            label: "微信公众号",
          },
@@ -1263,6 +1275,7 @@
          {
            value: "4",
            label: "短信",
          },
          {
            value: "5",
@@ -1295,6 +1308,7 @@
          {
            value: "4",
            label: "短信",
          },
          {
            value: "5",
@@ -1305,7 +1319,7 @@
            label: "微信小程序",
          },
        ];
      } else if (this.form.serviceType == 2 || this.form.serviceType == 3) {
      } else if (this.form.serviceType == 2 || this.form.serviceType == 3|| this.form.serviceType == 5|| this.form.serviceType == 4) {
        this.checkboxlist = [
          {
            value: "1",
@@ -1318,6 +1332,7 @@
          {
            value: "4",
            label: "短信",
          },
          {
            value: "5",
@@ -1436,7 +1451,9 @@
            this.objyl.isoperation = 1;
          }
          this.objyl.taskid = data.taskId;
          this.objyl.sendDay='5',
          if (!this.objyl.sendDay) {
        this.objyl.sendDay='5';
      }
          TaskQuestioncomit(this.objyl).then((response) => {
            this.previewtf = false;
            this.form.libtemplateid = this.objyl.svyid;
@@ -1679,7 +1696,11 @@
          let indexa = this.overallCase.indexOf(row);
          let indexb = this.form.patTaskRelevances.indexOf(row);
          this.overallCase.splice(indexa, 1);
          this.form.patTaskRelevances[indexb].isoperation = 3;
          if (!this.form.taskid) {
            this.form.patTaskRelevances.splice(indexa, 1);
          } else {
            this.form.patTaskRelevances[indexb].isoperation = 3;
          }
          this.$modal.msgSuccess("删除成功");
        });
    },
@@ -1697,6 +1718,13 @@
          store.getters.leavehospitaldistrictcodes;
        this.patientqueryParams.leaveldeptcodes = null;
      }
      console.log(this.patientqueryParams.leavehospitaldistrictcodes);
      console.log(this.patientqueryParams.leaveldeptcodes);
      if (!this.patientqueryParams.leavehospitaldistrictcodes||!this.patientqueryParams.leavehospitaldistrictcodes[0])
        this.patientqueryParams.leavehospitaldistrictcodes = null;
      if (!this.patientqueryParams.leaveldeptcodes||!this.patientqueryParams.leaveldeptcodes[0])
        this.patientqueryParams.leaveldeptcodes = null;
      this.handleAddpatient();
    },
    resetQuery() {},
@@ -1918,7 +1946,9 @@
      this.objyl.isoperation = 1;
      console.log(this.objyl.id);
      this.objyl.sendDay='5';
      if (!this.objyl.sendDay) {
        this.objyl.sendDay='5';
      }
      if (this.objyl.id) {
        deleteTaskQuestioncomit(this.objyl.id).then((res) => {