From 8022f7036945b75f82f2dfc43055623f81ed98f6 Mon Sep 17 00:00:00 2001 From: yxh <172933527@qq.com> Date: 星期五, 23 五月 2025 22:42:56 +0800 Subject: [PATCH] yxh --- src/views/project/statistics/caseStatistics/index.vue | 141 ++++++++++++++++++++++------------------------ 1 files changed, 67 insertions(+), 74 deletions(-) diff --git a/src/views/project/statistics/caseStatistics/index.vue b/src/views/project/statistics/caseStatistics/index.vue index 9947593..caaa5de 100644 --- a/src/views/project/statistics/caseStatistics/index.vue +++ b/src/views/project/statistics/caseStatistics/index.vue @@ -1,7 +1,6 @@ <!-- --> <template> <div class="app-container"> - 缁╂晥 <el-form :model="queryParams" ref="queryForm" @@ -12,7 +11,7 @@ <el-col :span="6"> <el-form-item label="涓氬姟浜哄憳" prop="name"> <el-input - v-model="queryParams.name" + v-model="queryParams.pausername" placeholder="璇疯緭鍏ュ鍚�" clearable size="small" @@ -22,17 +21,23 @@ </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-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-form-item label="妗堜緥鐘舵��"> <el-select - v-model="queryParams.pabonustype" + v-model="queryParams.pacasestate" placeholder="璇烽�夋嫨妗堜緥鐘舵��" > <el-option @@ -80,26 +85,26 @@ </el-form> <!--<el-table v-loading="loading" border :data="donatebaseinfoList"> --> - <el-table v-loading="loading" :data="jxidata" ref="table" + <el-table + v-loading="loading" + :data="jxidata" + ref="table" border max-height="700" highlight-current-row :summary-method="getSummaries" - show-summary> + show-summary + > <el-table-column label="搴忓彿" align="center" prop="id" width="100"> </el-table-column> - <el-table-column label="缁熻鏈堜唤" align="center" prop="name" /> + <el-table-column label="缁熻鏈堜唤" align="center" prop="donationmonth" /> - <el-table-column label="涓氬姟缁�" align="center" prop="name"> + <el-table-column label="涓氬姟缁�" align="center" prop="deptname"> </el-table-column> - <el-table-column label="涓撹亴浜哄憳" align="center" prop="age" /> + <el-table-column label="涓撹亴浜哄憳" align="center" prop="reportername" /> - <el-table-column - label="妗堜緥鏁伴噺" - align="center" - prop="treatmenthospitalname" - /> + <el-table-column label="妗堜緥鏁伴噺" align="center" prop="casesum" /> <el-table-column label="鎿嶄綔" @@ -110,24 +115,17 @@ <template slot-scope="scope"> <!-- v-if="scope.row.recordstate==2" --> - <el-button - size="mini" - type="text" - icon="el-icon-edit" - + <el-button size="mini" type="text" icon="el-icon-edit" >鏄庣粏</el-button > </template> </el-table-column> </el-table> - - <pagination - v-show="total > 0" - :total="total" - :page.sync="queryParams.pageNum" - :limit.sync="queryParams.pageSize" - @pagination="getList" - /> + <div style="margin: 10px;text-align: right;"> + <div> + 鍏� <span style="color:#1890FF ;">{{ total }}</span> 鏉℃暟鎹� + </div> + </div> <!-- 娣诲姞鎴栦慨鏀瑰灞炵‘璁ゅ璇濇 --> </div> @@ -136,7 +134,6 @@ <script> //杩欓噷鍙互瀵煎叆鍏朵粬鏂囦欢锛堟瘮濡傦細缁勪欢锛屽伐鍏穓s锛岀涓夋柟鎻掍欢js锛宩son鏂囦欢锛屽浘鐗囨枃浠剁瓑绛夛級 //渚嬪锛歩mport 銆婄粍浠跺悕绉般�� from '銆婄粍浠惰矾寰勩��'; - import { listsfeistatistics, @@ -150,6 +147,7 @@ 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寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢� @@ -171,9 +169,8 @@ selecttime: "", reportervalue: "", reportlist: [ - { label: "鏈堝害", value: "1" }, - { label: "瀛e害", value: "2" }, - { label: "骞村害", value: "3" } + { label: "姝e父", value: "0" }, + { label: "缁堟", value: "1" } ], //鐪佸競鍖� //榛樿鍊艰缃紝鍙负绌� @@ -238,10 +235,11 @@ daterangeReporttime: [], // 鏌ヨ鍙傛暟 queryParams: { - pageNum: 1, - pageSize: 10 + pacasestate: "0", + pabegtime: null, + paendtime: null }, - + deptList: [], // 琛ㄥ崟鍙傛暟 form: {}, // 琛ㄥ崟鏍¢獙 @@ -270,14 +268,14 @@ 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) + "-" + @@ -289,10 +287,10 @@ ":" + "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" + @@ -303,8 +301,8 @@ ":" + "00"; } else { - this.endtime = - this.endtime.slice(0, 5) + + this.queryParams.paendtime = + this.queryParams.paendtime.slice(0, 5) + "10" + "-" + "01" + @@ -315,12 +313,19 @@ ":" + "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"; } + }, + listDept() { + listDept({}).then(response => { + this.deptList = response.data; + this.loading = false; + }); }, resetArr(Arr) { @@ -338,14 +343,16 @@ getList() { listanlstatistics(this.queryParams).then(res => { this.jxidata = res.rows; + this.jxidata.forEach(($obj, $index) => { + $obj.id = $index + 1; + }); + this.total = res.total; }); }, getSummaries(param) { const { columns, data } = param; const sums = []; - var columnnames = [ - "applymonth", "deptmentName", "username" - ]; + var columnnames = ["applymonth", "deptmentName", "username"]; columns.forEach((column, index) => { if (index === 0) { sums[index] = "鍚堣"; @@ -366,7 +373,7 @@ return prev; } }, 0); - sums[index] = sums[index].toFixed(2); // 淇濈暀2浣嶅皬鏁帮紝瑙e喅灏忔暟鍚堣鍒�; + sums[index] = sums[index]; // 淇濈暀2浣嶅皬鏁帮紝瑙e喅灏忔暟鍚堣鍒�; } else { sums[index] = ""; } @@ -392,22 +399,7 @@ 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 + pacasestate: "0" }; this.selecttime = []; this.getTimeList(); @@ -427,6 +419,7 @@ created() { //鑾峰彇鍒楄〃 this.getList(); + this.listDept(); } // //鐢熷懡鍛ㄦ湡 - 鎸傝浇瀹屾垚锛堝彲浠ヨ闂瓺OM鍏冪礌锛� // mounted() {}, -- Gitblit v1.9.3