| | |
| | | placeholder="请输入主治医生" |
| | | ></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="日期限制" prop="status"> |
| | | <el-select v-model="endOut" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in endOuts" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="患者范围" prop="status"> |
| | | <el-cascader |
| | | v-model="topqueryParams.scopetype" |
| | |
| | | <div class="documentf"> |
| | | <div class="document"> |
| | | <el-button type="success" size="medium" @click="onthatday()" |
| | | >当日服务</el-button |
| | | >今日服务</el-button |
| | | > |
| | | </div> |
| | | </div> |
| | |
| | | prop="drname" |
| | | /> |
| | | <el-table-column |
| | | v-if="orgname != '丽水市中医院'" |
| | | label="随访人员" |
| | | align="center" |
| | | key="updateBy" |
| | |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | v-if="orgname != '丽水市中医院'" |
| | | label="经管医生" |
| | | align="center" |
| | | key="managementDoctor" |
| | |
| | | qystatus: "", |
| | | btstatus: "", |
| | | }, |
| | | endOut: 1, |
| | | endOuts: [ |
| | | { |
| | | value: 0, |
| | | label: "截止至当日服务", |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "全部服务", |
| | | }, |
| | | ], |
| | | topicoptionssort: [ |
| | | { |
| | | value: 0, |
| | |
| | | value: 3, |
| | | label: "发送时间(倒序)", |
| | | }, |
| | | { |
| | | value: 7, |
| | | label: "应随访日期(正序)", |
| | | }, |
| | | { |
| | | value: 8, |
| | | label: "应随访日期(倒序)", |
| | | }, |
| | | ], |
| | | // 查询参数 |
| | | topqueryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | sendstate: 2, |
| | | sort: 2, //0 出院时间(正序) 1 出院时间(倒序) 2 发送时间(正序) 3 发送时间(倒序) |
| | | sort: localStorage.getItem("orgname") == "丽水市中医院" ? 8 : 2, //0 出院时间(正序) 1 出院时间(倒序) 2 发送时间(正序) 3 发送时间(倒序) 7应随访日期(倒序) 应随访日期(正序) |
| | | serviceType: 2, |
| | | searchscope: 3, |
| | | visitCount: 1, |
| | |
| | | leaveldeptcodes: [], |
| | | leavehospitaldistrictcodes: [], |
| | | }, |
| | | orgname: "", |
| | | propss: { multiple: true }, |
| | | options: [], |
| | | |
| | |
| | | this.serviceState = store.getters.serviceState; |
| | | this.checkboxlist = store.getters.checkboxlist; |
| | | this.errtype = this.$route.query.errtype; |
| | | this.orgname = localStorage.getItem("orgname"); |
| | | this.leavehospitaldistrictcode = |
| | | this.$route.query.leavehospitaldistrictcode; |
| | | this.sourcetype[0].children = store.getters.belongDepts.map((dept) => { |
| | |
| | | /** 查询随访服务列表 */ |
| | | getList(refresh) { |
| | | // 默认全部 |
| | | |
| | | if (this.topqueryParams.searchscope == 3) { |
| | | this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map( |
| | | (obj) => obj.deptCode |
| | | ); |
| | | this.topqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.belongWards.map((obj) => obj.districtCode); |
| | | } |
| | | console.log(this.endOut); |
| | | |
| | | if (this.endOut == 0) { |
| | | this.topqueryParams.endOutHospTime = this.formatDateToYYYYMMDDHHMMSS( |
| | | this.getEndOfDay() |
| | | ); |
| | | } else { |
| | | this.topqueryParams.endOutHospTime = null; |
| | | } |
| | | // 接受异常跳转 |
| | | if (this.errtype) { |
| | |
| | | this.total = response.total; |
| | | }); |
| | | }, |
| | | // 时间 |
| | | getEndOfDay() { |
| | | const date = new Date(); // 创建一个表示当前时间的Date对象 |
| | | date.setHours(23, 59, 59, 0); // 将时间设置为23:59:59.000 |
| | | return date; |
| | | }, |
| | | formatDateToYYYYMMDDHHMMSS(date) { |
| | | const year = date.getFullYear(); |
| | | const month = String(date.getMonth() + 1).padStart(2, "0"); // 月份补零 |
| | | const day = String(date.getDate()).padStart(2, "0"); // 日期补零 |
| | | const hours = String(date.getHours()).padStart(2, "0"); |
| | | const minutes = String(date.getMinutes()).padStart(2, "0"); |
| | | const seconds = String(date.getSeconds()).padStart(2, "0"); |
| | | |
| | | return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; |
| | | }, |
| | | affiliation() { |
| | | this.topqueryParams.managementDoctor = store.getters.hisUserId; |
| | | this.topqueryParams.managementDoctorCode = store.getters.hisUserId; |
| | | this.getList(1); |
| | | }, |
| | | onthatday() { |
| | |
| | | let type = ""; |
| | | console.log(row, "rwo"); |
| | | if (row.preachformson) { |
| | | if (row.preachformson.includes("3")) { |
| | | if (row.preachformson.includes("3") || row.type == 1) { |
| | | type = 1; |
| | | } |
| | | } |