| | |
| | | </div> |
| | | </el-col> |
| | | <div class="color-legend"> |
| | | <span class="legend-item" v-if="orgname == '省立同德翠苑院区'"> |
| | | <span class="legend-item" v-if="orgname == '南华大学附属第一医院'"> |
| | | <span class="legend-block legend-blue"></span>未到随访时间 |
| | | </span> |
| | | <span class="legend-item"> |
| | |
| | | value: dept.districtCode, |
| | | }; |
| | | }); |
| | | // 免登直达:根据科室/病区编码预填患者范围 |
| | | this.applyFollowUpScope(); |
| | | if (this.errtype == 1) { |
| | | this.toleadExport(2); |
| | | } else if (this.errtype == 2) { |
| | |
| | | onthatday() { |
| | | this.resetQuerykj(); |
| | | |
| | | this.topqueryParams.startSendDateTime = this.getCurrentDate(); |
| | | this.topqueryParams.endSendDateTime = this.getCurrentDate(); |
| | | this.topqueryParams.sendstateView = 1; // 待随访 |
| | | this.topqueryParams.sendstate = null; |
| | | this.topqueryParams.startSendDateTime = null; |
| | | this.topqueryParams.endSendDateTime = this.getCurrentDate(); // 开始随访日期 <= 今天 |
| | | this.getList(1); |
| | | }, |
| | | getCurrentDate() { |
| | |
| | | }, |
| | | |
| | | buidegetTasklist(type) { |
| | | if (type) { |
| | | this.resetQuerykj(); |
| | | } |
| | | this.applyDeptWardScope(); |
| | | // 用户权限下所有待随访任务:传递全部科室和病区 |
| | | this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map( |
| | | (obj) => obj.deptCode |
| | | ); |
| | | this.topqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.belongWards.map((obj) => obj.districtCode); |
| | | // 接受异常跳转 |
| | | if (this.errtype) { |
| | | this.topqueryParams.leavehospitaldistrictcodes.push( |
| | |
| | | pageSize: 10, |
| | | leavehospitaldistrictcodes: |
| | | this.topqueryParams.leavehospitaldistrictcodes, |
| | | sendstates: [2, 3], |
| | | sendstateView: 1, |
| | | leaveldeptcodes: this.topqueryParams.leaveldeptcodes, |
| | | }; |
| | | buidegetTasklist(obj).then((response) => { |
| | |
| | | /** 搜索按钮操作 */ |
| | | handleQuery(refresh) { |
| | | this.applyDeptWardScope(); |
| | | this.clearAllSelection(); |
| | | this.topqueryParams.pageNum = 1; |
| | | // 判断是不是工作台快捷查询 |
| | | if (this.errtype != 2) { |
| | |
| | | } |
| | | this.getList(refresh); |
| | | }, |
| | | // 免登直达:根据路由中的科室/病区编码预填患者范围 |
| | | applyFollowUpScope() { |
| | | const deptCode = this.$route.query.followUpDeptCode; |
| | | const wardCode = this.$route.query.followUpWardCode; |
| | | if (!deptCode && !wardCode) return; |
| | | const scope = []; |
| | | if (deptCode) scope.push([1, deptCode]); |
| | | if (wardCode) scope.push([2, wardCode]); |
| | | this.topqueryParams.scopetype = scope; |
| | | this.lastScopeType = deptCode ? 1 : 2; |
| | | }, |
| | | // 患者范围处理:从多选级联 scopetype 解析科室/病区 |
| | | applyDeptWardScope() { |
| | | const value = this.topqueryParams.scopetype || []; |