Procházet zdrojové kódy

财务已认领实收款调整

wucl před 6 měsíci
rodič
revize
cd6b98236c
2 změnil soubory, kde provedl 43 přidání a 16 odebrání
  1. 4 0
      src/api/modules/financeRealFund.js
  2. 39 16
      src/views/finance/fundList.vue

+ 4 - 0
src/api/modules/financeRealFund.js

@@ -68,6 +68,10 @@ export default {
   },
   personalOverdue(params){
     return request.get(`financeRealFund/overdue/personal`, { params: params })
+  },
+  realClaimed(params){
+    return request.get(`financeRealFund/real/claimed`, { params: params })
+
   }
 
 }

+ 39 - 16
src/views/finance/fundList.vue

@@ -99,13 +99,17 @@
         <y-page-list-layout :page-list="pageData2" :page-para="listQuery2" :get-page-list="getList2"
           :pageSizes="pageSizes">
           <template slot="left">
-            <el-input v-model="listQuery2.keyword" placeholder="关键字搜索..." clearable
+            <el-input v-model="listQuery2.keyword" placeholder="付款方、认领人、到账金额、认领金额、备注" clearable
               style="margin-left: 20px;width: 300px;float: left;">
             </el-input>
             <el-date-picker style="margin-left: 20px;float: left;" v-model="payDate2" type="daterange" align="center"
               unlink-panels range-separator="至" start-placeholder="到账时日(开始)" end-placeholder="到账时日(结束)"
               :picker-options="pickerOptions" value-format="yyyy-MM-dd">
             </el-date-picker>
+            <el-date-picker style="margin-left: 20px;float: left;" v-model="claimDate2" type="daterange" align="center"
+              unlink-panels range-separator="至" start-placeholder="认领时日(开始)" end-placeholder="认领时日(结束)"
+              :picker-options="pickerOptions" value-format="yyyy-MM-dd">
+            </el-date-picker>
             <el-button class="filter-item" style="margin-left: 10px;float: left;" type="primary" @click="searchList2"
               v-loading.fullscreen.lock="loading" round>搜索
             </el-button>
@@ -126,14 +130,14 @@
                 <span>{{ row.payer }}</span>
               </template>
             </el-table-column>
-            <el-table-column label="付款金额(元)" align="center" prop="amount">
+            <el-table-column label="到账时日" align="center">
               <template slot-scope="{row}">
-                <span>{{ row.amount }}</span>
+                <span>{{ row.payDatetime }}</span>
               </template>
             </el-table-column>
-            <el-table-column label="到账时日" align="center">
+            <el-table-column label="付款金额(元)" align="center" prop="amount">
               <template slot-scope="{row}">
-                <span>{{ row.payDatetime }}</span>
+                <span>{{ row.amount }}</span>
               </template>
             </el-table-column>
             <el-table-column label="已认领(元)" align="center" prop="claimAmount">
@@ -143,7 +147,17 @@
             </el-table-column>
             <el-table-column label="未认领(元)" align="center" prop="notClaimAmount">
               <template slot-scope="{row}">
-                <span style="color:red">{{ row.notClaimAmount }}</span>
+                <span style="color:red">{{ row.amount-row.claimAmount }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column label="认领人" align="center" prop="claimUser">
+              <template slot-scope="{row}">
+                <span>{{ row.claimUser }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column label="认领时间" align="center" width='170' prop="claimDate">
+              <template slot-scope="{row}">
+                <span>{{ row.claimDate }}</span>
               </template>
             </el-table-column>
             <el-table-column label="录入人" align="center">
@@ -151,9 +165,9 @@
                 <span>{{ row.creator }}</span>
               </template>
             </el-table-column>
-            <el-table-column label="录入时间" align="center" width='170'>
+            <el-table-column label="到账时间" align="center" width='170'>
               <template slot-scope="{row}">
-                <span>{{ row.created }}</span>
+                <span>{{ row.payDatetime }}</span>
               </template>
             </el-table-column>
             <el-table-column label="备注" align="center" width='170'>
@@ -166,7 +180,7 @@
                 <PermissionButton menu-code="_views_real_fund_edit" class-name="filter-item" type="text"
                   :page-jump="false" @click="detail(row.id)" />
                 <PermissionButton menu-code="_views_claim_list" class-name="filter-item" type="text"
-                  :page-jump="false" @click="clamiList(row.id,row.notClaimAmount,row.payer,row.amount)" />
+                  :page-jump="false" @click="clamiList(row.id,row.payer,row.amount)" />
               </template>
             </el-table-column>
           </el-table>
@@ -405,7 +419,6 @@ export default {
         keyword: null,
         startDate: null,
         endDate: null,
-        notFinished: false
       },
       listQuery1: {
         page: 1,
@@ -468,12 +481,15 @@ export default {
       },
       loading: false,
       pageSizes: [10, 20, 30, 50, 100, 200, 500, 1000],
-      claimDate:[]
+      claimDate:[],
+      claimDate2:[]
     }
   },
   created() {
     this.claimDate.push(this.getDefaultStartDate());
     this.claimDate.push(this.getDefaultEndDate());
+    this.claimDate2.push(this.getDefaultStartDate());
+    this.claimDate2.push(this.getDefaultEndDate());
     this.getList();
   },
   methods: {
@@ -520,12 +536,12 @@ export default {
     },
     resetSearch2() {
       this.$router.push({ query: {} });
+      this.claimDate2 = [this.getDefaultStartDate(), this.getDefaultEndDate()];
       this.payDate2 = '';
       this.listQuery2 = {
         current: 1,
         size: 1000,
         descs: 'id',
-        notFinished: false
       }
       this.getList2()
     },
@@ -552,6 +568,11 @@ export default {
         this.listQuery2.endDate = this.payDate2[1];
       }
 
+      if (this.claimDate2){
+        this.listQuery2.xStartDate = this.claimDate2[0];
+        this.listQuery2.xEndDate = this.claimDate2[1];
+      }
+
       this.getList2()
 
     },
@@ -570,8 +591,11 @@ export default {
     },
     getList2() {
       let loadingInstance = this.$loading({ fullscreen: true });
-
-      this.$api.financeRealFund.list(Object.assign({}, this.listQuery2)).then(res => {
+      if (this.claimDate2) {
+          this.listQuery2.xStartDate = this.claimDate2[0] + ' 00:00:00';
+          this.listQuery2.xEndDate = this.claimDate2[1] + ' 23:59:59';
+        }
+      this.$api.financeRealFund.realClaimed(Object.assign({}, this.listQuery2)).then(res => {
         if (res.code === 200) {
           loadingInstance.close();
           this.pageData2 = res.data;
@@ -629,9 +653,8 @@ export default {
         }
       })
     },
-    clamiList(id, notClaimAmount, payer, amount) {
+    clamiList(id, payer, amount) {
       this.claimListDialog = true;
-      this.notClaimAmount = notClaimAmount;
       this.payer = payer;
       this.amount = amount;
       this.$api.financeClaim.getList(id).then(res => {