WXL
6 天以前 5e1745487b290612c6282006822b431843a081af
src/views/patient/patient/behospitalized.vue
@@ -618,9 +618,6 @@
    },
  },
  created() {
    this.getList();
    this.listDept();
    this.gettabList();
    this.sourcetype[0].children = store.getters.belongDepts.map((dept) => {
      return {
        label: dept.deptName,
@@ -633,6 +630,15 @@
        value: dept.districtCode,
      };
    });
    this.queryParams.leaveldeptcodes = store.getters.belongDepts.map(
      (obj) => obj.deptCode
    );
    this.queryParams.leavehospitaldistrictcodes = store.getters.belongWards.map(
      (obj) => obj.districtCode
    );
    this.getList();
    this.listDept();
    this.gettabList();
  },
  methods: {
    /** 查询患者列表 */
@@ -748,13 +754,12 @@
    },
    /** 搜索按钮操作 */
    handleQuery() {
      if (this.dateRange) {
        this.queryParams.startInHospTime = this.dateRange[0];
        this.queryParams.endInHospTime = this.dateRange[1];
      }else{
        this.queryParams.startInHospTime = '';
        this.queryParams.endInHospTime = '';
      } else {
        this.queryParams.startInHospTime = "";
        this.queryParams.endInHospTime = "";
      }
      this.queryParams.pageNum = 1;
      this.getList();
@@ -772,7 +777,7 @@
        leaveldeptcodes: [],
        leavehospitaldistrictcodes: [],
      };
        this.handleQuery();
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {