From f792e8ecddfcd4c1d09504fa8a6a9181586ae88c Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 14 三月 2024 17:35:22 +0800 Subject: [PATCH] 11 --- src/views/project/statistics/caseStatistics/index.vue | 139 +++++++-------- src/views/project/statistics/chargeStatistics/index.vue | 161 +++-------------- src/views/project/statistics/applyStatistics/index.vue | 100 +++++----- src/views/project/statistics/performanceStaristics/index.vue | 117 +++++++------ src/views/project/indexstatistics/index.vue | 6 5 files changed, 211 insertions(+), 312 deletions(-) diff --git a/src/views/project/indexstatistics/index.vue b/src/views/project/indexstatistics/index.vue index fe789d4..8e47899 100644 --- a/src/views/project/indexstatistics/index.vue +++ b/src/views/project/indexstatistics/index.vue @@ -61,7 +61,7 @@ <div style="width: 76%;"> <el-row :gutter="10" - style="font-size: 16px; font-weight: bold; margin-top: 10px" + style="font-size: 18px; font-weight: bold; margin-top: 10px" > <el-col :span="6"> <router-link @@ -355,7 +355,7 @@ > <span style="font-size: 14px" >鍣ㄥ畼淇濆瓨娑茬梾鍘熻弻鍩瑰吇闃虫�х巼</span - > + ><br /> {{ (qualirtData.germPositiveRate * 100).toFixed(2) }}% </el-card> </el-col> @@ -1162,7 +1162,7 @@ }); //缁堟 - info.recordstate = "99"; + info.terminationCase = 1; listDonatebaseinfo(info).then(res => { this.donateNumData.numberOfTerminated = res.total; }); diff --git a/src/views/project/statistics/applyStatistics/index.vue b/src/views/project/statistics/applyStatistics/index.vue index 8314759..88f86f4 100644 --- a/src/views/project/statistics/applyStatistics/index.vue +++ b/src/views/project/statistics/applyStatistics/index.vue @@ -21,11 +21,17 @@ </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"> @@ -91,12 +97,12 @@ <el-table-column label="搴忓彿" align="center" prop="id" width="100"> </el-table-column> - <el-table-column label="鍖婚櫌鍚嶇О" align="center" prop="deptmentName"> + <el-table-column label="缁熻鏈堜唤" align="center" prop="applymonth" /> + <el-table-column label="涓氬姟缁�" align="center" prop="deptmentName"> </el-table-column> - <el-table-column label="宸叉敹閲戦" align="center" prop="amount" /> - <el-table-column label="鏈敹閲戦" align="center" prop="nonpayment" /> + <el-table-column label="涓撹亴浜哄憳" align="center" prop="username" /> - <el-table-column label="閲戦" align="center" prop="organcharge" /> + <el-table-column label="閲戦" align="center" prop="amount" /> <el-table-column label="鎿嶄綔" align="center"> <template slot-scope="scope"> @@ -107,13 +113,11 @@ </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> @@ -135,6 +139,8 @@ 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寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢� @@ -152,7 +158,6 @@ endtime: "", countyname: "", cuuntry: "", - selecttime: "", reportervalue: "", reportlist: [ @@ -199,6 +204,7 @@ shi: "", qu: "" }, + deptList: [], // 閬僵灞� loading: false, // 瀵煎嚭閬僵灞� @@ -257,14 +263,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) + "-" + @@ -276,10 +282,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" + @@ -290,8 +296,8 @@ ":" + "00"; } else { - this.endtime = - this.endtime.slice(0, 5) + + this.queryParams.paendtime = + this.queryParams.paendtime.slice(0, 5) + "10" + "-" + "01" + @@ -302,14 +308,20 @@ ":" + "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) { var hash = {}; Arr = Arr.reduce(function(arr, current) { @@ -324,7 +336,11 @@ /** 鏌ヨ鎹愮尞鍩虹鍒楄〃 */ getList() { listbxiaostatistics(this.queryParams).then(res => { + this.total = res.total; this.jxidata = res.rows; + this.jxidata.forEach(($obj, $index) => { + $obj.id = $index + 1; + }); }); }, @@ -343,25 +359,8 @@ 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 }; this.selecttime = []; this.getTimeList(); @@ -412,6 +411,7 @@ created() { //鑾峰彇鍒楄〃 this.getList(); + this.listDept(); } // //鐢熷懡鍛ㄦ湡 - 鎸傝浇瀹屾垚锛堝彲浠ヨ闂瓺OM鍏冪礌锛� diff --git a/src/views/project/statistics/caseStatistics/index.vue b/src/views/project/statistics/caseStatistics/index.vue index 9947593..deb1408 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" @@ -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="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] = ""; } @@ -391,24 +398,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 - }; + this.queryParams = {}; this.selecttime = []; this.getTimeList(); this.searchAddress = { @@ -427,6 +417,7 @@ created() { //鑾峰彇鍒楄〃 this.getList(); + this.listDept(); } // //鐢熷懡鍛ㄦ湡 - 鎸傝浇瀹屾垚锛堝彲浠ヨ闂瓺OM鍏冪礌锛� // mounted() {}, diff --git a/src/views/project/statistics/chargeStatistics/index.vue b/src/views/project/statistics/chargeStatistics/index.vue index dedf037..d2223e6 100644 --- a/src/views/project/statistics/chargeStatistics/index.vue +++ b/src/views/project/statistics/chargeStatistics/index.vue @@ -1,7 +1,6 @@ <!-- --> <template> <div class="app-container"> - 缁╂晥 <el-form :model="queryParams" ref="queryForm" @@ -9,25 +8,19 @@ label-width="70px" > <el-row :gutter="8"> - <el-col :span="6"> + <el-col :span="8"> <el-form-item label="鍖婚櫌鍚嶇О"> - <el-select - v-model="queryParams.pabonustype" - placeholder="璇烽�夋嫨妗堜緥鐘舵��" - > - <el-option - v-for="item in reportlist" - :label="item.label" - :value="item.value" - > - </el-option> - </el-select> + <org-selecter + ref="orgSelecter" + :org-type="'4'" + v-model="queryParams.pahospitalno" + /> </el-form-item> </el-col> - <el-col :span="6"> + <el-col :span="8"> <el-form-item label="缁熻绫诲瀷"> <el-select - v-model="queryParams.pabonustype" + v-model="queryParams.pachageflag" placeholder="璇烽�夋嫨妗堜緥鐘舵��" > <el-option @@ -41,22 +34,6 @@ </el-col> </el-row> <el-row :gutter="8"> - <el-col :span="12"> - <el-form-item label="缁熻鏃ユ湡"> - <el-date-picker - style="width: 100%" - v-model="selecttime" - type="monthrange" - range-separator="鑷�" - start-placeholder="寮�濮嬫湀浠�" - end-placeholder="缁撴潫鏈堜唤" - value-format="yyyy-MM-dd" - @change="getTimeList" - > - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="6"> <el-form-item> <el-button @@ -88,17 +65,15 @@ <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="name"> + <el-table-column label="缁熻鏈堜唤" align="center" prop="receivemonth" /> + <el-table-column label="鍖婚櫌鍚嶇О" align="center" prop="hospitalname"> </el-table-column> - <el-table-column label="涓撹亴浜哄憳" align="center" prop="age" /> - - <el-table-column - label="閲戦" - align="center" - prop="amount" - /> + <el-table-column label="宸叉敹閲戦" align="center" prop="amount"> + </el-table-column> + <el-table-column label="鏈敹閲戦" align="center" prop="nonpayment"> + </el-table-column> + <el-table-column label="搴旀敹閲戦" align="center" prop="organcharge"> + </el-table-column> <el-table-column label="鎿嶄綔" @@ -120,13 +95,11 @@ </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> @@ -169,9 +142,8 @@ selecttime: "", reportervalue: "", reportlist: [ - { label: "鏈堝害", value: "1" }, - { label: "瀛e害", value: "2" }, - { label: "骞村害", value: "3" } + { label: "鏈敹娆�", value: "0" }, + { label: "宸叉敹娆�", value: "1" } ], //鐪佸競鍖� //榛樿鍊艰缃紝鍙负绌� @@ -235,10 +207,7 @@ // 鑾峰彇缁勭粐鍚嶇О鏃堕棿鑼冨洿 daterangeReporttime: [], // 鏌ヨ鍙傛暟 - queryParams: { - pageNum: 1, - pageSize: 10 - }, + queryParams: {}, // 琛ㄥ崟鍙傛暟 form: {}, @@ -266,61 +235,6 @@ watch: {}, //鏂规硶闆嗗悎 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)); - if (num < 9) { - let mon = Number(this.endtime.slice(6, 7)); - this.endtime = - this.endtime.slice(0, 5) + - "0" + - (mon + 1) + - "-" + - "01" + - " " + - "00" + - ":" + - "00" + - ":" + - "00"; - } - // this.endtime=this.endtime.slice(0,5)骞� - else if (num >= 10) { - this.endtime = - this.endtime.slice(0, 5) + - (num + 1) + - "-" + - "01" + - " " + - "00" + - ":" + - "00" + - ":" + - "00"; - } else { - this.endtime = - this.endtime.slice(0, 5) + - "10" + - "-" + - "01" + - " " + - "00" + - ":" + - "00" + - ":" + - "00"; - } - this.starttime = this.starttime + " " + "00" + ":" + "00" + ":" + "00"; - // } - } else { - // this.starttime = "1998-01-01 00:00:00"; - // this.endtime = "2998-01-01 00:00:00"; - } - }, - resetArr(Arr) { var hash = {}; Arr = Arr.reduce(function(arr, current) { @@ -336,6 +250,10 @@ getList() { listsfeistatistics(this.queryParams).then(res => { this.jxidata = res.rows; + this.jxidata.forEach(($obj, $index) => { + $obj.id = $index + 1; + }); + this.total = res.total; }); }, @@ -354,26 +272,7 @@ 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 - }; + this.queryParams = {}; this.selecttime = []; this.getTimeList(); this.searchAddress = { @@ -389,7 +288,7 @@ getSummaries(param) { const { columns, data } = param; const sums = []; - var columnnames = ["applymonth", "deptmentName", "username"]; + var columnnames = ["receivemonth", "hospitalname"]; columns.forEach((column, index) => { if (index === 0) { sums[index] = "鍚堣"; diff --git a/src/views/project/statistics/performanceStaristics/index.vue b/src/views/project/statistics/performanceStaristics/index.vue index 3b4ef67..f31ebae 100644 --- a/src/views/project/statistics/performanceStaristics/index.vue +++ b/src/views/project/statistics/performanceStaristics/index.vue @@ -9,9 +9,9 @@ > <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.pauserno" placeholder="璇疯緭鍏ュ鍚�" clearable size="small" @@ -20,12 +20,18 @@ </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"> @@ -115,14 +121,12 @@ </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> @@ -144,6 +148,8 @@ 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寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢� @@ -165,9 +171,9 @@ selecttime: "", reportervalue: "", reportlist: [ - { label: "鏈堝害", value: "1" }, - { label: "瀛e害", value: "2" }, - { label: "骞村害", value: "3" } + { label: "鏈堝害", value: 1 }, + { label: "瀛e害", value: 2 }, + { label: "骞村害", value: 3 } ], //鐪佸競鍖� //榛樿鍊艰缃紝鍙负绌� @@ -206,6 +212,7 @@ shi: "", qu: "" }, + deptList:[], // 閬僵灞� loading: false, // 瀵煎嚭閬僵灞� @@ -232,8 +239,11 @@ daterangeReporttime: [], // 鏌ヨ鍙傛暟 queryParams: { - pageNum: 1, - pageSize: 10 + pabonustype:'', + pabegtime: null, + paendtime: null, + pauserno: null, + padeptno: null, }, // 琛ㄥ崟鍙傛暟 @@ -264,14 +274,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) + "-" + @@ -283,10 +293,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" + @@ -297,8 +307,8 @@ ":" + "00"; } else { - this.endtime = - this.endtime.slice(0, 5) + + this.queryParams.paendtime = + this.queryParams.paendtime.slice(0, 5) + "10" + "-" + "01" + @@ -309,11 +319,12 @@ ":" + "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"; } }, @@ -332,9 +343,18 @@ 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 = {}; @@ -350,25 +370,13 @@ 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(); @@ -385,7 +393,7 @@ 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] = "鍚堣"; @@ -419,6 +427,7 @@ created() { //鑾峰彇鍒楄〃 this.getList(); + this.listDept(); } // //鐢熷懡鍛ㄦ湡 - 鎸傝浇瀹屾垚锛堝彲浠ヨ闂瓺OM鍏冪礌锛� // mounted() {}, -- Gitblit v1.9.3