WXL
2024-01-26 59272d99113d2d11b1873d60653e52b49f14d757
src/views/patient/propaganda/particty.vue
@@ -14,6 +14,10 @@
            title="宣教对象"
            description="在本部选择宣教病人"
          ></el-step>
          <el-step
            icon="el-icon-user"
            title="模版确认"
          ></el-step>
        </el-steps>
      </div>
    </div>
@@ -37,25 +41,39 @@
              <el-form ref="form" :model="form" label-width="105px">
                <el-form-item label="模版名称:">
                  <el-input
                    :disabled="true"
                    style="width: 220px"
                    v-model="form.bt"
                    v-model="form.preachname"
                    placeholder="请在下方选择"
                  />
                </el-form-item>
                <el-form-item label="发送时间:" v-if="currenttype != 2">
                <el-form-item label="发送设置:" v-if="currenttype != 2">
                  <el-radio-group v-model="radio">
                    <el-radio :label="1">时间段发送</el-radio>
                    <el-radio :label="2">时间点发送</el-radio>
                    <el-radio :label="3">即刻发送</el-radio>
                  </el-radio-group>
                </el-form-item>
                <el-form-item
                  label="发送时间点:"
                  v-if="currenttype != 2 && radio == 2"
                >
                  <el-date-picker
                    v-model="form.name"
                    type="date"
                    placeholder="选择日期"
                    v-model="form.sendTime"
                    type="datetime"
                    placeholder="选择日期时间"
                    default-time="13:00:00"
                  >
                  </el-date-picker>
                </el-form-item>
                <el-form-item label="发送时间段:" v-if="currenttype != 2">
                <el-form-item
                  label="发送时间段:"
                  v-if="currenttype != 2 && radio == 1"
                >
                  <el-checkbox-group v-model="checkList">
                    <el-checkbox label="上午(8:30-11:30)"></el-checkbox>
                    <el-checkbox label="下午(14:30-16:30)"></el-checkbox>
                    <el-checkbox label="夜间(18:30-20:30)"></el-checkbox>
                    <el-checkbox label="不定时"></el-checkbox>
                  </el-checkbox-group>
                </el-form-item>
                <el-form-item label="服务形式">
@@ -67,18 +85,18 @@
                    ></el-checkbox>
                  </el-checkbox-group>
                </el-form-item>
                <el-form-item label="组织形式">
                <!-- <el-form-item label="组织形式">
                  <el-radio-group v-model="form.radio">
                    <el-radio :label="3">单人宣教</el-radio>
                    <el-radio :label="6">多人集中宣教</el-radio>
                  </el-radio-group>
                </el-form-item>
                <el-form-item label="语音模版" prop="region">
                </el-form-item> -->
                <!-- <el-form-item label="语音模版" prop="region">
                  <el-select v-model="form.region" placeholder="请选择模版">
                    <el-option label="一号模版" value="shanghai"></el-option>
                    <el-option label="二号模版" value="beijing"></el-option>
                  </el-select>
                </el-form-item>
                </el-form-item> -->
              </el-form>
            </div>
          </div>
@@ -252,6 +270,7 @@
                    :tableLabel="tableLabel"
                    :controlsc="false"
                    :multiplechoice="false"
                    :typeinfo="1"
                  />
                  <pagination
                    v-show="total > 0"
@@ -416,7 +435,7 @@
                  <el-row :gutter="10" class="mb8">
                    <el-col :span="1.5">
                      <el-select
                        v-model="tasktopic"
                        v-model="patientqueryParams.allhosp"
                        placeholder="请选择新增类型"
                      >
                        <el-option
@@ -434,7 +453,7 @@
                        plain
                        icon="el-icon-plus"
                        size="medium"
                        :disabled="!tasktopic"
                        :disabled="!patientqueryParams.allhosp"
                        @click="handleAddpatient"
                        >新增</el-button
                      >
@@ -461,6 +480,7 @@
                    :currentList="sonuserList"
                    :tableLabel="tableLabelhz"
                    :controlxz="false"
                    :typeinfo="2"
                  />
                  <pagination
                    v-show="total > 0"
@@ -568,7 +588,9 @@
              @handleSelectionChange="handleSelectionChange"
              :currentList="patientuserList"
              :tableLabel="tableLabelhz"
              :serialnumber="false"
              :controlsc="false"
              :typeinfo="3"
            />
          </el-row>
          <pagination
@@ -592,6 +614,7 @@
<script>
import { messagelistpatient } from "@/api/patient/homepage";
import store from "@/store";
import {
  getTaskpatient,
  getlibrarylist,
@@ -615,10 +638,12 @@
      loading: false, // 遮罩层
      patientloading: false, // 遮罩层
      dialogVisiblepatient: false, //添加患者弹框
      radio: 1,
      checkboxlist: [],
      tableLabel: [],
      // 患者表单
      tableLabelhz: [
        { label: "序号", width: "", prop: "patid" },
        { label: "患者名称", width: "", prop: "name" },
        { label: "性别", width: "", prop: "sex" },
        { label: "年龄", width: "", prop: "age" },
@@ -750,7 +775,6 @@
    this.Addsubtask();
    this.Getsubtask();
    this.Acquisitiontype();
  },
  methods: {
@@ -761,11 +785,8 @@
        pageSize: 10,
        isavailable: "",
      };
      getTaskpatient({ allhosp: 1 }).then((res) => {
        console.log(res);
      });
      this.currenttype = this.$route.query.type;
      console.log(this.currenttype);
      console.log(this.currenttype, "1");
      if (this.currenttype == 1) {
        this.title = "宣教内容列表";
        this.tableLabel = this.tableLabelxj;
@@ -853,8 +874,7 @@
    },
    // 子任务二级弹框
    handleAddpatient(row) {
      console.log(row, "子组件数据");
      messagelistpatient(this.patientqueryParams).then((response) => {
      getTaskpatient(this.patientqueryParams).then((response) => {
        console.log(response);
        this.patientuserList = response.rows;
        this.patienttotal = response.total;
@@ -913,11 +933,11 @@
    // 查询子任务列表
    Getsubtask() {
      this.topqueryParams.pguid = 2;
      console.log(this.topqueryParams);
      console.log(this.topqueryParams, "aa");
      messagelistpatient(this.topqueryParams).then((res) => {
        this.userList = res.rows;
        this.total = res.total;
        console.log(this.userList);
        console.log(this.userList, "ss");
      });
    },
    // 变量---------------