From f864d10e66e8fc66c6d2162196eeda085e35b65a Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 14 三月 2024 17:40:43 +0800
Subject: [PATCH] 11

---
 src/views/project/statistics/applyStatistics/index.vue |  102 +++++++++++++++++++++++++-------------------------
 1 files changed, 51 insertions(+), 51 deletions(-)

diff --git a/src/views/project/statistics/applyStatistics/index.vue b/src/views/project/statistics/applyStatistics/index.vue
index 8314759..a4de14b 100644
--- a/src/views/project/statistics/applyStatistics/index.vue
+++ b/src/views/project/statistics/applyStatistics/index.vue
@@ -11,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"
@@ -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鍏冪礌锛�

--
Gitblit v1.9.3