WXL
20 小时以前 ba57b519a005cd816f1a178f2c062426cff13f7c
src/views/patient/follow/index.vue
@@ -246,6 +246,20 @@
                @keyup.enter.native="handleQuery"
              />
            </el-form-item>
            <el-form-item label="任务类型">
              <el-select
                v-model="filtrqueryParams.allhosp"
                placeholder="请选择新增类型"
              >
                <el-option
                  v-for="item in taskoptions"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="患者范围" prop="tagId">
                <el-select
                  v-model="filtrqueryParams.searchscope"
@@ -521,6 +535,20 @@
        { papersname: "中国港澳居民身份证" },
        { papersname: "中国台湾居民身份证" },
      ],
      source: [
        {
          value: 0,
          label: "全部患者",
        },
        {
          value: 1,
          label: "科室患者",
        },
        {
          value: 2,
          label: "病区患者",
        },
      ],
      // 表单参数
      form: {
        name: "",
@@ -537,6 +565,7 @@
        pageNum: 1,
        pageSize: 10,
        allhosp: 0,
        searchscope:0,
      },
      //导入进度
      dractive: 1,
@@ -569,6 +598,24 @@
        {
          value: 2,
          label: "病区患者",
        },
      ],
      taskoptions: [
        {
          value: "4",
          label: "出院病人",
        },
        {
          value: "1",
          label: "在院病人",
        },
        {
          value: "2",
          label: "门诊病人",
        },
        {
          value: 0,
          label: "全部",
        },
      ],
      whether: [
@@ -691,7 +738,19 @@
    distribute() {
      this.distributeVisible = true;
      this.filtrloading = true;
      if (this.filtrqueryParams.searchscope == 1) {
        this.filtrqueryParams.deptcodes = store.getters.belongDepts.map(
          (obj) => obj.deptCode
        );
        this.filtrqueryParams.hospitaldistrictcodes = [];
      } else if (this.filtrqueryParams.searchscope == 2) {
        this.filtrqueryParams.hospitaldistrictcodes =
          store.getters.belongWards.map((obj) => obj.districtCode);
        this.filtrqueryParams.deptcodes = [];
      } else {
        this.filtrqueryParams.deptcodes = [];
        this.filtrqueryParams.hospitaldistrictcodes = [];
      }
      messagelistpatient(this.filtrqueryParams).then((response) => {
        this.filtruserList = response.rows;
        this.filtrtotal = response.total;