| | |
| | | created() { |
| | | |
| | | this.getList(); |
| | | this.listDept(); |
| | | // this.listDept(); |
| | | this.gettabList(); |
| | | }, |
| | | methods: { |
| | |
| | | getList() { |
| | | this.loading = true; |
| | | if (this.queryParams.searchscope == 1) { |
| | | this.queryParams.leaveldeptcodes = store.getters.belongDepts.map( |
| | | this.queryParams.deptcodes = store.getters.belongDepts.map( |
| | | (obj) => obj.deptCode |
| | | ); |
| | | this.queryParams.leavehospitaldistrictcodes=null; |
| | | this.queryParams.hospitaldistrictcodes=null; |
| | | } else if (this.queryParams.searchscope == 2) { |
| | | this.queryParams.leavehospitaldistrictcodes = |
| | | this.queryParams.hospitaldistrictcodes = |
| | | store.getters.belongWards.map((obj) => obj.districtCode); |
| | | this.queryParams.leaveldeptcodes=null; |
| | | this.queryParams.deptcodes=null; |
| | | } else { |
| | | this.queryParams.leaveldeptcodes = store.getters.belongDepts.map( |
| | | this.queryParams.deptcodes = store.getters.belongDepts.map( |
| | | (obj) => obj.deptCode |
| | | ); |
| | | this.queryParams.leavehospitaldistrictcodes = |
| | | this.queryParams.hospitaldistrictcodes = |
| | | store.getters.belongWards.map((obj) => obj.districtCode); |
| | | } |
| | | listpatient(this.queryParams).then((response) => { |
| | |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | listDept() { |
| | | listDept(this.queryParams).then((res) => { |
| | | this.deptList = res.data; |
| | | console.log(this.deptList, "this.deptList"); |
| | | }); |
| | | }, |
| | | // listDept() { |
| | | // listDept(this.queryParams).then((res) => { |
| | | // this.deptList = res.data; |
| | | // console.log(this.deptList, "this.deptList"); |
| | | // }); |
| | | // }, |
| | | /** 查询标签列表 */ |
| | | gettabList() { |
| | | const tagqueryParams = { |
| | |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.dateRange = []; |
| | | this.resetForm("queryForm"); |
| | | this.$refs.tree.setCurrentKey(null); |
| | | this.queryParams= { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | cry: 0, |
| | | searchscope:2, |
| | | idcardno: undefined, |
| | | name: undefined, |
| | | status: undefined, |
| | | tagIds: undefined, |
| | | telcode: undefined, |
| | | }; |
| | | // this.resetForm("queryForm"); |
| | | // this.$refs.tree.setCurrentKey(null); |
| | | this.handleQuery(); |
| | | }, |
| | | // 多选框选中数据 |