| | |
| | | <el-form-item label="经管医生" prop="managementDoctor"> |
| | | <el-input |
| | | v-model="topqueryParams.managementDoctor" |
| | | placeholder="请输入主治医生" |
| | | placeholder="请输入经管医生" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="日期限制" prop="status"> |
| | |
| | | <el-select v-model="topqueryParams.sort" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in topicoptionssort" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="当前执行方式" prop="currentPreachforms"> |
| | | <el-select |
| | | v-model="topqueryParams.currentPreachforms" |
| | | placeholder="请选择" |
| | | multiple |
| | | clearable |
| | | collapse-tags |
| | | > |
| | | <el-option |
| | | v-for="item in currentPreachformOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | </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"> |
| | |
| | | key="phone" |
| | | prop="phone" |
| | | /> |
| | | <el-table-column |
| | | v-if=" |
| | | orgname == '景宁畲族自治县人民医院' || |
| | | orgname == '丽水市中医院' |
| | | " |
| | | label="拨号状态" |
| | | width="120" |
| | | align="center" |
| | | key="isManuallyCalled" |
| | | prop="isManuallyCalled" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-tag |
| | | v-if="Number(scope.row.isManuallyCalled) > 0" |
| | | type="success" |
| | | :disable-transitions="false" |
| | | >拨通{{ scope.row.isManuallyCalled }}次</el-tag |
| | | > |
| | | <el-tag v-else type="info" :disable-transitions="false" |
| | | >未拨通</el-tag |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="身份证号码" |
| | | width="200" |
| | |
| | | }, |
| | | // endOut: 1, |
| | | endOut: |
| | | localStorage.getItem("orgname") == "景宁畲族自治县人民医院" ? 0 : 1, //0 出院时间(正序) 1 出院时间(倒序) 2 发送时间(正序) 3 发送时间(倒序) 7应随访日期(倒序) 应随访日期(正序) |
| | | localStorage.getItem("orgname") == "丽水市中医院" ? 0 : 1, //0 出院时间(正序) 1 出院时间(倒序) 2 发送时间(正序) 3 发送时间(倒序) 7应随访日期(倒序) 应随访日期(正序) |
| | | endOuts: [ |
| | | { |
| | | value: 0, |
| | |
| | | : "", |
| | | leaveldeptcodes: [], |
| | | leavehospitaldistrictcodes: [], |
| | | currentPreachforms: [], |
| | | }, |
| | | orgname: "", |
| | | propss: { multiple: true }, |
| | |
| | | value: 5, |
| | | label: "无需随访", |
| | | }, |
| | | ], |
| | | |
| | | currentPreachformOptions: [ |
| | | { value: "1", label: "人工" }, |
| | | { value: "2", label: "纸质" }, |
| | | { value: "3", label: "智能语音" }, |
| | | { value: "4", label: "短信" }, |
| | | { value: "5", label: "微信公众号" }, |
| | | { value: "6", label: "微信小程序" }, |
| | | { value: "7", label: "术后随访" }, |
| | | ], |
| | | |
| | | sextype: [ |
| | |
| | | value: dept.districtCode, |
| | | }; |
| | | }); |
| | | // 免登直达:根据科室/病区编码预填患者范围 |
| | | this.applyFollowUpScope(); |
| | | if (this.errtype == 1) { |
| | | this.toleadExport(2); |
| | | } else if (this.errtype == 2) { |
| | |
| | | } |
| | | |
| | | try { |
| | | const response = await getTaskservelist(this.topqueryParams); |
| | | // 当前执行方式为多选,需转成逗号分隔字符串(如 1,2,5) |
| | | const params = { ...this.topqueryParams }; |
| | | if (Array.isArray(params.currentPreachforms)) { |
| | | params.currentPreachforms = params.currentPreachforms.join(","); |
| | | } |
| | | const response = await getTaskservelist(params); |
| | | |
| | | // ✅ 第一步:先锁定恢复状态 |
| | | this.isRestoring = true; |
| | |
| | | }); |
| | | } |
| | | if (item.currentPreachform) { |
| | | |
| | | |
| | | item.currentPreachform = this.checkboxlist.find( |
| | | (item) => item.value == item.currentPreachform |
| | | )?.value; |
| | | console.log(item.currentPreachform, "mi"); |
| | | (items) => items.value == item.currentPreachform |
| | | )?.label; |
| | | } |
| | | }); |
| | | |
| | |
| | | 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.topqueryParams.endSendDateTime = this.dateRangefs[1]; |
| | | } |
| | | 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() { |
| | |
| | | scopetype: [], |
| | | leaveldeptcodes: [], |
| | | leavehospitaldistrictcodes: [], |
| | | currentPreachforms: [], |
| | | }; |
| | | this.handleQuery(1); |
| | | }, |
| | |
| | | scopetype: [], |
| | | leaveldeptcodes: [], |
| | | leavehospitaldistrictcodes: [], |
| | | currentPreachforms: [], |
| | | }; |
| | | }, |
| | | handleSelectionChange(rows) { |