|  |  |  | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <el-row :gutter="8"> | 
|---|
|  |  |  | <el-col :span="6"> | 
|---|
|  |  |  | <el-form-item label="业务人员" prop="name"> | 
|---|
|  |  |  | <el-form-item label="业务人员" prop="pauserno"> | 
|---|
|  |  |  | <el-input | 
|---|
|  |  |  | v-model="queryParams.name" | 
|---|
|  |  |  | v-model="queryParams.pausername" | 
|---|
|  |  |  | placeholder="请输入姓名" | 
|---|
|  |  |  | clearable | 
|---|
|  |  |  | size="small" | 
|---|
|  |  |  | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | <el-col :span="6"> | 
|---|
|  |  |  | <el-form-item align="left" label="业务组" prop="treatmenthospitalno"> | 
|---|
|  |  |  | <org-selecter | 
|---|
|  |  |  | ref="orgSelecter" | 
|---|
|  |  |  | :org-type="'3'" | 
|---|
|  |  |  | v-model="queryParams.treatmenthospitalno" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | <el-form-item align="left" label="业务组" prop="padeptno"> | 
|---|
|  |  |  | <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"> | 
|---|
|  |  |  | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | </el-table> | 
|---|
|  |  |  | <div style="margin: 10px;text-align: right;"> | 
|---|
|  |  |  | <div> | 
|---|
|  |  |  | 共 <span style="color:#1890FF ;">{{ total }}</span> 条数据 | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <pagination | 
|---|
|  |  |  | v-show="total > 0" | 
|---|
|  |  |  | :total="total" | 
|---|
|  |  |  | :page.sync="queryParams.pageNum" | 
|---|
|  |  |  | :limit.sync="queryParams.pageSize" | 
|---|
|  |  |  | @pagination="getList" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- 添加或修改家属确认对话框 --> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | import Li_area_select from "@/components/Address"; | 
|---|
|  |  |  | import OrgSelecter from "@/views/project/components/orgselect"; | 
|---|
|  |  |  | import AnnexUpload from "@/views/project/components/annexupload"; | 
|---|
|  |  |  | import { listDept } from "@/api/system/dept"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | export default { | 
|---|
|  |  |  | //import引入的组件需要注入到对象中才能使用 | 
|---|
|  |  |  | 
|---|
|  |  |  | selecttime: "", | 
|---|
|  |  |  | reportervalue: "", | 
|---|
|  |  |  | reportlist: [ | 
|---|
|  |  |  | { label: "月度", value: "1" }, | 
|---|
|  |  |  | { label: "季度", value: "2" }, | 
|---|
|  |  |  | { label: "年度", value: "3" } | 
|---|
|  |  |  | { label: "月度", value: 1 }, | 
|---|
|  |  |  | { label: "季度", value: 2 }, | 
|---|
|  |  |  | { label: "年度", value: 3 } | 
|---|
|  |  |  | ], | 
|---|
|  |  |  | //省市区 | 
|---|
|  |  |  | //默认值设置,可为空 | 
|---|
|  |  |  | 
|---|
|  |  |  | shi: "", | 
|---|
|  |  |  | qu: "" | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | deptList:[], | 
|---|
|  |  |  | // 遮罩层 | 
|---|
|  |  |  | loading: false, | 
|---|
|  |  |  | // 导出遮罩层 | 
|---|
|  |  |  | 
|---|
|  |  |  | daterangeReporttime: [], | 
|---|
|  |  |  | // 查询参数 | 
|---|
|  |  |  | queryParams: { | 
|---|
|  |  |  | pageNum: 1, | 
|---|
|  |  |  | pageSize: 10 | 
|---|
|  |  |  | pabonustype:'', | 
|---|
|  |  |  | pabegtime: null, | 
|---|
|  |  |  | paendtime: null, | 
|---|
|  |  |  | pauserno: null, | 
|---|
|  |  |  | padeptno: null, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 表单参数 | 
|---|
|  |  |  | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | getTimeList(e) { | 
|---|
|  |  |  | if (this.selecttime != 0) { | 
|---|
|  |  |  | this.endtime = this.selecttime[1]; | 
|---|
|  |  |  | this.starttime = this.selecttime[0]; | 
|---|
|  |  |  | // if (this.endtime == this.starttime) { | 
|---|
|  |  |  | let num = Number(this.endtime.slice(5, 7)); | 
|---|
|  |  |  | 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.endtime.slice(6, 7)); | 
|---|
|  |  |  | this.endtime = | 
|---|
|  |  |  | this.endtime.slice(0, 5) + | 
|---|
|  |  |  | let mon = Number(this.queryParams.paendtime.slice(6, 7)); | 
|---|
|  |  |  | this.queryParams.paendtime = | 
|---|
|  |  |  | this.queryParams.paendtime.slice(0, 5) + | 
|---|
|  |  |  | "0" + | 
|---|
|  |  |  | (mon + 1) + | 
|---|
|  |  |  | "-" + | 
|---|
|  |  |  | 
|---|
|  |  |  | ":" + | 
|---|
|  |  |  | "00"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // this.endtime=this.endtime.slice(0,5)年 | 
|---|
|  |  |  | // this.queryParams.paendtime=this.queryParams.paendtime.slice(0,5)年 | 
|---|
|  |  |  | else if (num >= 10) { | 
|---|
|  |  |  | this.endtime = | 
|---|
|  |  |  | this.endtime.slice(0, 5) + | 
|---|
|  |  |  | this.queryParams.paendtime = | 
|---|
|  |  |  | this.queryParams.paendtime.slice(0, 5) + | 
|---|
|  |  |  | (num + 1) + | 
|---|
|  |  |  | "-" + | 
|---|
|  |  |  | "01" + | 
|---|
|  |  |  | 
|---|
|  |  |  | ":" + | 
|---|
|  |  |  | "00"; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.endtime = | 
|---|
|  |  |  | this.endtime.slice(0, 5) + | 
|---|
|  |  |  | this.queryParams.paendtime = | 
|---|
|  |  |  | this.queryParams.paendtime.slice(0, 5) + | 
|---|
|  |  |  | "10" + | 
|---|
|  |  |  | "-" + | 
|---|
|  |  |  | "01" + | 
|---|
|  |  |  | 
|---|
|  |  |  | ":" + | 
|---|
|  |  |  | "00"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.starttime = this.starttime + " " + "00" + ":" + "00" + ":" + "00"; | 
|---|
|  |  |  | this.queryParams.pabegtime = | 
|---|
|  |  |  | this.queryParams.pabegtime + " " + "00" + ":" + "00" + ":" + "00"; | 
|---|
|  |  |  | // } | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | // this.starttime = "1998-01-01 00:00:00"; | 
|---|
|  |  |  | // this.endtime = "2998-01-01 00:00:00"; | 
|---|
|  |  |  | // this.queryParams.pabegtime = "1998-01-01 00:00:00"; | 
|---|
|  |  |  | // this.queryParams.paendtime = "2998-01-01 00:00:00"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | getList() { | 
|---|
|  |  |  | listjixstatistics(this.queryParams).then(res => { | 
|---|
|  |  |  | this.jxidata = res.rows; | 
|---|
|  |  |  | this.jxidata.forEach(($obj, $index) => { | 
|---|
|  |  |  | $obj.id = $index + 1; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | this.total=res.total; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | listDept() { | 
|---|
|  |  |  | listDept({}).then(response => { | 
|---|
|  |  |  | this.deptList = response.data; | 
|---|
|  |  |  | this.loading = false; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 表单重置 | 
|---|
|  |  |  | reset() { | 
|---|
|  |  |  | this.form = {}; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | this.reportervalue = ""; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | this.form.treatmenthospitalno = ""; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | this.queryParams = { | 
|---|
|  |  |  | doname: null, | 
|---|
|  |  |  | pageNum: 1, | 
|---|
|  |  |  | pageSize: 10, | 
|---|
|  |  |  | name: null, | 
|---|
|  |  |  | idcardno: null, | 
|---|
|  |  |  | residenceprovince: null, | 
|---|
|  |  |  | residencecity: null, | 
|---|
|  |  |  | residencetown: null, | 
|---|
|  |  |  | // "2" | 
|---|
|  |  |  | recordstate: null, | 
|---|
|  |  |  | treatmenthospitalname: null, | 
|---|
|  |  |  | donorno: null, | 
|---|
|  |  |  | acquisitiontissueno: null, | 
|---|
|  |  |  | reportername: null, | 
|---|
|  |  |  | reporttime: null, | 
|---|
|  |  |  | city: null | 
|---|
|  |  |  | pabonustype:'', | 
|---|
|  |  |  | pabegtime: null, | 
|---|
|  |  |  | paendtime: null, | 
|---|
|  |  |  | pauserno: null, | 
|---|
|  |  |  | padeptno: null | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | this.selecttime = []; | 
|---|
|  |  |  | this.getTimeList(); | 
|---|
|  |  |  | 
|---|
|  |  |  | getSummaries(param) { | 
|---|
|  |  |  | const { columns, data } = param; | 
|---|
|  |  |  | const sums = []; | 
|---|
|  |  |  | var columnnames = ["applymonth", "deptmentName", "username"]; | 
|---|
|  |  |  | var columnnames = ["applymonth", "deptmentName", "username",'deptName']; | 
|---|
|  |  |  | columns.forEach((column, index) => { | 
|---|
|  |  |  | if (index === 0) { | 
|---|
|  |  |  | sums[index] = "合计"; | 
|---|
|  |  |  | 
|---|
|  |  |  | created() { | 
|---|
|  |  |  | //获取列表 | 
|---|
|  |  |  | this.getList(); | 
|---|
|  |  |  | this.listDept(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // //生命周期 - 挂载完成(可以访问DOM元素) | 
|---|
|  |  |  | //    mounted() {}, | 
|---|