| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form |
| | | class="opo-query-form" |
| | | :model="queryParams" |
| | | ref="queryForm" |
| | | :inline="true" |
| | | v-show="showSearch" |
| | | label-width="70px" |
| | | > |
| | | <el-row :gutter="8"> |
| | | <el-col :span="6"> |
| | | <el-form-item label="业务人员" prop="name"> |
| | | <el-input |
| | | v-model="queryParams.pausername" |
| | | placeholder="请输入姓名" |
| | | clearable |
| | | size="small" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item align="left" label="业务组" prop="treatmenthospitalno"> |
| | | <el-select |
| | | v-model="queryParams.padeptno" |
| | | placeholder="请选择案例状态" |
| | | > |
| | | <el-option |
| | | v-for="item in deptList" |
| | | :label="item.deptName" |
| | | :value="item.deptId" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="案例状态"> |
| | | <el-select |
| | | v-model="queryParams.pacasestate" |
| | | placeholder="请选择案例状态" |
| | | > |
| | | <el-option |
| | | v-for="item in reportlist" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="8"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="统计日期"> |
| | | <el-row > |
| | | <el-col :span="8"> |
| | | <el-form-item label="月份范围"> |
| | | <el-date-picker |
| | | style="width: 100%" |
| | | v-model="selecttime" |
| | |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item align="left" label="业务组" prop="treatmenthospitalno"> |
| | | <el-select |
| | | v-model="queryParams.padeptno" |
| | | placeholder="请选择业务组" |
| | | > |
| | | <el-option |
| | | v-for="item in deptList" |
| | | :label="item.deptName" |
| | | :value="item.deptId" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | <el-col :span="5"> |
| | | <el-form-item label="业务人员" prop="name"> |
| | | <el-input |
| | | v-model="queryParams.pausername" |
| | | placeholder="请输入姓名" |
| | | clearable |
| | | size="small" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item> |
| | | <el-button |
| | |
| | | </el-row> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | :loading="exportLoading" |
| | | @click="handleExport" |
| | | >导出</el-button |
| | | > |
| | | </el-col> |
| | | <right-toolbar |
| | | :showSearch.sync="showSearch" |
| | | @queryTable="getList" |
| | | ></right-toolbar> |
| | | </el-row> |
| | | |
| | | <!--<el-table v-loading="loading" border :data="donatebaseinfoList"> --> |
| | | <el-table |
| | | v-loading="loading" |
| | |
| | | :summary-method="getSummaries" |
| | | show-summary |
| | | > |
| | | <el-table-column label="序号" align="center" prop="id" width="100"> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="序号" align="center" prop="id" width="50" /> |
| | | <el-table-column label="统计月份" align="center" prop="donationmonth" /> |
| | | |
| | | <el-table-column label="业务组" align="center" prop="deptname"> |
| | | </el-table-column> |
| | | <el-table-column label="业务组" align="center" prop="deptname"> </el-table-column> |
| | | <el-table-column label="专职人员" align="center" prop="reportername" /> |
| | | <el-table-column label="案例累计" align="center" prop="casesum" /> |
| | | <el-table-column label="潜在捐献" align="center" prop="workflow0" width="100" /> |
| | | <el-table-column label="医学评估" align="center" prop="workflow1" width="100" /> |
| | | <el-table-column label="家属确认" align="center" prop="workflow2" width="100" /> |
| | | <el-table-column label="伦理审查" align="center" prop="workflow3" width="100" /> |
| | | <el-table-column label="器官分配" align="center" prop="workflow4" width="100" /> |
| | | <el-table-column label="获取见证" align="center" prop="workflow5" width="100" /> |
| | | <el-table-column label="捐献完成" align="center" prop="workflow6" width="100" /> |
| | | <el-table-column label="归档撤销" align="center" prop="workflow7" width="100" /> |
| | | <el-table-column label="案例归档" align="center" prop="workflow8" width="100" /> |
| | | <!-- <el-table-column label="案例终止" align="center" prop="workflow9" width="90" /> --> |
| | | <el-table-column label="终止案例" align="center" prop="terminationcase" width="100" /> |
| | | |
| | | <el-table-column label="案例数量" align="center" prop="casesum" /> |
| | | |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | label="操作" |
| | | align="center" |
| | | class-name="small-padding fixed-width" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <!-- v-if="scope.row.recordstate==2" |
| | | --> |
| | | <el-button size="mini" type="text" icon="el-icon-edit" |
| | | >明细</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | </el-table> |
| | | <div style="margin: 10px;text-align: right;"> |
| | | <div> |
| | |
| | | listsfeistatistics, |
| | | listbxiaostatistics, |
| | | listjixstatistics, |
| | | listanlstatistics |
| | | listanlstatistics, |
| | | exportCaseStatistics |
| | | } from "@/api/project/statistics"; |
| | | |
| | | import { listUser } from "@/api/project/organization"; |
| | |
| | | |
| | | selecttime: "", |
| | | reportervalue: "", |
| | | reportlist: [ |
| | | { label: "正常", value: "0" }, |
| | | { label: "终止", value: "1" } |
| | | ], |
| | | //省市区 |
| | | //默认值设置,可为空 |
| | | searchAddress: { |
| | |
| | | daterangeReporttime: [], |
| | | // 查询参数 |
| | | queryParams: { |
| | | pacasestate: "0", |
| | | pabegtime: null, |
| | | paendtime: null |
| | | }, |
| | |
| | | this.queryParams.pabegtime = this.selecttime[0]; |
| | | this.queryParams.paendtime = this.selecttime[1]; |
| | | // if (this.queryParams.paendtime == this.queryParams.pabegtime) { |
| | | let num = Number(this.queryParams.paendtime.slice(5, 7)); |
| | | if (num < 9) { |
| | | let mon = Number(this.queryParams.paendtime.slice(6, 7)); |
| | | this.queryParams.paendtime = |
| | | this.queryParams.paendtime.slice(0, 5) + |
| | | "0" + |
| | | (mon + 1) + |
| | | "-" + |
| | | "01" + |
| | | " " + |
| | | "00" + |
| | | ":" + |
| | | "00" + |
| | | ":" + |
| | | "00"; |
| | | } |
| | | // this.queryParams.paendtime=this.queryParams.paendtime.slice(0,5)年 |
| | | else if (num >= 10) { |
| | | this.queryParams.paendtime = |
| | | this.queryParams.paendtime.slice(0, 5) + |
| | | (num + 1) + |
| | | "-" + |
| | | "01" + |
| | | " " + |
| | | "00" + |
| | | ":" + |
| | | "00" + |
| | | ":" + |
| | | "00"; |
| | | } else { |
| | | this.queryParams.paendtime = |
| | | this.queryParams.paendtime.slice(0, 5) + |
| | | "10" + |
| | | "-" + |
| | | "01" + |
| | | " " + |
| | | "00" + |
| | | ":" + |
| | | "00" + |
| | | ":" + |
| | | "00"; |
| | | } |
| | | // 结束时间取"所选结束月的次月 1 号",以包含整个结束月。 |
| | | // 原实现把月份 +1 后直接拼字符串,12 月会得到 13 月(2026-13-01), |
| | | // MySQL 报 Incorrect datetime value,存储过程直接 500。 |
| | | this.queryParams.paendtime = this.$moment(this.queryParams.paendtime) |
| | | .startOf("month") |
| | | .add(1, "month") |
| | | .format("YYYY-MM") |
| | | .concat("-01 00:00:00"); |
| | | this.queryParams.pabegtime = |
| | | this.queryParams.pabegtime + " " + "00" + ":" + "00" + ":" + "00"; |
| | | // } |
| | |
| | | } |
| | | }, |
| | | listDept() { |
| | | listDept({}).then(response => { |
| | | // 只取业务办公室(dept_id=102)下的业务组,供“业务组”下拉使用 |
| | | listDept({ parentId: 102 }).then(response => { |
| | | this.deptList = response.data; |
| | | this.loading = false; |
| | | }); |
| | |
| | | this.total = res.total; |
| | | }); |
| | | }, |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | | const queryParams = { |
| | | pabegtime: this.queryParams.pabegtime, |
| | | paendtime: this.queryParams.paendtime, |
| | | padeptno: this.queryParams.padeptno, |
| | | pausername: this.queryParams.pausername |
| | | }; |
| | | this.$modal |
| | | .confirm("是否确认导出当前筛选条件下的案例统计数据?") |
| | | .then(() => { |
| | | this.exportLoading = true; |
| | | return exportCaseStatistics(queryParams); |
| | | }) |
| | | .then(response => { |
| | | this.$download.name(response.msg); |
| | | this.exportLoading = false; |
| | | }) |
| | | .catch(() => { |
| | | this.exportLoading = false; |
| | | }); |
| | | }, |
| | | getSummaries(param) { |
| | | const { columns, data } = param; |
| | | const sums = []; |
| | | var columnnames = ["applymonth", "deptmentName", "username"]; |
| | | var columnnames = ["donationmonth", "deptname", "reportername"]; |
| | | columns.forEach((column, index) => { |
| | | if (index === 0) { |
| | | sums[index] = "合计"; |
| | |
| | | |
| | | this.form.treatmenthospitalno = ""; |
| | | |
| | | this.queryParams = {}; |
| | | this.queryParams = { |
| | | pabegtime: null, |
| | | paendtime: null |
| | | }; |
| | | this.selecttime = []; |
| | | this.getTimeList(); |
| | | this.searchAddress = { |