Pārlūkot izejas kodu

1.新增资产客户效率值页面
2.优化其他的资产统计报表相关页面

GouGengquan 11 mēneši atpakaļ
vecāks
revīzija
d06df47ba5

+ 8 - 0
src/api/modules/statistical.js

@@ -37,6 +37,14 @@ export default {
     // 资产客户经理效率值表查询
     getAssetsMarketPerEfficiencyVO(params){
         return request.get(`assets/statisticalStatement/market/per/getEfficiencyVO`, { params: params })
+    },
+    // 资产客户效率值(总)查询
+    getAssetsCustomerEfficiencyVO(params){
+        return request.get(`assets/statisticalStatement/customer/total/getEfficiencyVO`, { params: params })
+    },
+    // 资产客户效率值(客户经理)查询
+    getAssetsCustomerManagerEfficiencyVO(params){
+        return request.get(`assets/statisticalStatement/customer/manager/getEfficiencyVO`, { params: params })
     }
 
 }

+ 3 - 1
src/router/urlMap.js

@@ -137,6 +137,7 @@ import _views_statistical_assets_ledger from '@/views/statistical/assets/ledgerL
 import _views_statistical_assets_performance_deduction from '@/views/statistical/assets/performanceDeduction'
 import _views_statistical_assets_evaluate_efficiency from '@/views/statistical/assets/evaluateEfficiency'
 import _views_statistical_assets_market_efficiency from '@/views/statistical/assets/marketEfficiency'
+import _views_statistical_assets_customer_efficiency from '@/views/statistical/assets/customerEfficiency'
 
 export default {
   _views_set_menu,
@@ -262,6 +263,7 @@ export default {
   _views_statistical_assets_ledger,
   _views_statistical_assets_performance_deduction,
   _views_statistical_assets_evaluate_efficiency,
-  _views_statistical_assets_market_efficiency
+  _views_statistical_assets_market_efficiency,
+  _views_statistical_assets_customer_efficiency
 
 }

+ 718 - 0
src/views/statistical/assets/customerEfficiency.vue

@@ -0,0 +1,718 @@
+<template>
+    <div class="app-container organization-index">
+        <div class="title-container">
+            <breadcrumb id="breadcrumb-container" class="breadcrumb-container" />
+        </div>
+        <div>
+            <el-tabs v-model="activeTabName" @tab-click="tabClick" type="border-card">
+                <el-tab-pane label="资产客户效率值表(总)" name="department">
+                    <div style="width: 100%; height: 50px;">
+                        <el-date-picker style="margin-right: 20px;float: left;" v-model="selectDate1" type="daterange"
+                            :picker-options="pickerOptions" format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd"
+                            range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" align="right">
+                        </el-date-picker>
+                        <el-select v-model="listQueryByTotal.departmentId" filterable placeholder="客户名称"
+                            style=" width: 200px;margin-left: 10px;float: left;">
+                            <el-option v-for="(d, id) in customer" :label="d.name" :value="d.id"></el-option>
+                        </el-select>
+                        <el-button class="filter-item" style="margin-left: 10px;float: left;" type="primary"
+                            @click="searchList1()" round>搜索
+                        </el-button>
+                        <el-button class="filter-item" round type="success" @click="resetParams1()">重置
+                        </el-button>
+                        <el-button class="filter-item" round type="info" @click="exportAssetsCustomerTotalEfficiency()"
+                            :disabled="exportStatus">导出
+                        </el-button>
+                    </div>
+                    <el-table :data="totalEfficiency" fit stripe highlight-current-row
+                        :header-row-style="{ color: '#333333', 'font-size': '14px' }" style=" width: 100%; float: right;
+                      border-left: 1px solid #ebeced;
+                      border-right: 1px solid #ebeced;
+                      color: #333333; font-size: 14px;">
+                        <el-table-column label="客户名称" width="150">
+                            <template slot-scope="{row}">
+                                <span>{{ row.customerName }}</span>
+                            </template>
+                        </el-table-column>
+                        <el-table-column label="来单量">
+                            <el-table-column label="当期来单量">
+                                <template slot-scope="{row}">
+                                    <el-link v-if="row.currentPeriodOrderVolume > 0"
+                                        @click="setListQueryParms('order', row.customerId, listQueryByTotal.startTime, listQueryByTotal.endTime)">
+                                        {{ row.currentPeriodOrderVolume }}
+                                    </el-link>
+                                    <span v-else>{{ row.currentPeriodOrderVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="同比来单增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.YoYOrderVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="环比来单增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.QoQOrderVolume }}</span>
+                                </template>
+                            </el-table-column>
+                        </el-table-column>
+                        <el-table-column label="预评(意见书)">
+                            <el-table-column label="当期预评出具数量">
+                                <template slot-scope="{row}">
+                                    <el-link v-if="row.currentPeriodStatementVolume > 0"
+                                        @click="setListQueryParms('statement', row.clienteleContactId, listQueryByTotal.startTime, listQueryByTotal.endTime)">
+                                        {{ row.currentPeriodStatementVolume }}
+                                    </el-link>
+                                    <span v-else>{{ row.currentPeriodStatementVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="同比预评出具增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.YoYStatementVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="环比预评出具增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.QoQStatementVolume }}</span>
+                                </template>
+                            </el-table-column>
+                        </el-table-column>
+                        <el-table-column label="报告(咨询报告、评估报告、意见函)">
+                            <el-table-column label="当期报告出具数量">
+                                <template slot-scope="{row}">
+                                    <el-link v-if="row.currentPeriodReportVolume > 0"
+                                        @click="setListQueryParms('report', row.customerId, listQueryByTotal.startTime, listQueryByTotal.endTime)">
+                                        {{ row.currentPeriodReportVolume }}
+                                    </el-link>
+                                    <span v-else>{{ row.currentPeriodReportVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="同比报告出具增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.YoYReportVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="环比报告出具增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.QoQReportVolume }}</span>
+                                </template>
+                            </el-table-column>
+                        </el-table-column>
+                        <el-table-column label="应收款">
+                            <el-table-column label="当期应收款">
+                                <template slot-scope="{row}">
+                                    <el-link v-if="row.currentPeriodShouldAmountSum > 0"
+                                        @click="setListQueryParms('should', row.customerId, listQueryByTotal.startTime, listQueryByTotal.endTime)">
+                                        {{ row.currentPeriodShouldAmountSum }}
+                                    </el-link>
+                                    <span v-else>{{ row.currentPeriodShouldAmountSum }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="同比应收款增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.YoYShouldAmountSum }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="环比应收款增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.QoQShouldAmountSum }}</span>
+                                </template>
+                            </el-table-column>
+                        </el-table-column>
+                        <el-table-column label="实收款">
+                            <el-table-column label="当期实收款">
+                                <template slot-scope="{row}">
+                                    <el-link v-if="row.currentPeriodRealAmountSum > 0"
+                                        @click="setListQueryParms('real', row.customerId, listQueryByTotal.startTime, listQueryByTotal.endTime)">
+                                        {{ row.currentPeriodRealAmountSum }}
+                                    </el-link>
+                                    <span v-else>{{ row.currentPeriodRealAmountSum }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="同比实收款增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.YoYRealAmountSum }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="环比实收款增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.QoQRealAmountSum }}</span>
+                                </template>
+                            </el-table-column>
+                        </el-table-column>
+                        <el-table-column label="实收款总计">
+                            <template slot-scope="{row}">
+                                <span>{{ row.totalRealAmountSum }}</span>
+                            </template>
+                        </el-table-column>
+                        <el-table-column label="出单率">
+                            <el-table-column label="当期出单率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.currentPeriodOrderHasReportVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="同比出单增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.YoYOrderHasReportVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="环比出单增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.QoQOrderHasReportVolume }}</span>
+                                </template>
+                            </el-table-column>
+                        </el-table-column>
+                        <el-table-column label="收费折扣率">
+                            <el-table-column label="当期收费折扣率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.currentDiscountVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="同比收费折扣率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.YoYDiscountVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="环比收费折扣率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.QoQDiscountVolume }}</span>
+                                </template>
+                            </el-table-column>
+                        </el-table-column>
+                    </el-table>
+                </el-tab-pane>
+                <el-tab-pane label="资产客户效率值表(客户经理)" name="personal">
+                    <div style="width: 100%; height: 50px;">
+                        <el-date-picker style="margin-right: 20px;float: left;" v-model="selectDate2" type="daterange"
+                            :picker-options="pickerOptions" format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd"
+                            range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" align="right">
+                        </el-date-picker>
+                        <el-select v-model="listQueryByManager.departmentId" filterable placeholder="接单部门"
+                            style=" width: 200px;margin-left: 10px;float: left;">
+                            <el-option v-for="(d, id) in customer" :label="d.name" :value="d.id"></el-option>
+                        </el-select>
+                        <el-input v-model="listQueryByManager.userName" placeholder="姓名" clearable
+                            style="margin-left: 20px;width: 200px;float: left;">
+                        </el-input>
+                        <el-button class="filter-item" style="margin-left: 10px;float: left;" type="primary"
+                            @click="searchList2()" round>搜索
+                        </el-button>
+                        <el-button class="filter-item" round type="success" @click="resetParams2()">重置
+                        </el-button>
+                        <el-button class="filter-item" round type="info" @click="exportAssetsCustomerManagerEfficiency()"
+                            :disabled="exportStatus">导出
+                        </el-button>
+                    </div>
+                    <el-table :data="managerEfficiency" fit stripe highlight-current-row
+                        :header-row-style="{ color: '#333333', 'font-size': '14px' }" style=" width: 100%; float: right;
+                      border-left: 1px solid #ebeced;
+                      border-right: 1px solid #ebeced;
+                      color: #333333; font-size: 14px;">
+                        <el-table-column label="客户名称" width="150">
+                            <template slot-scope="{row}">
+                                <span>{{ row.customerName }}</span>
+                            </template>
+                        </el-table-column>
+                        <el-table-column label="客户经理" width="150">
+                            <template slot-scope="{row}">
+                                <span>{{ row.userName }}</span>
+                            </template>
+                        </el-table-column>
+                        <el-table-column label="来单量">
+                            <el-table-column label="当期来单量">
+                                <template slot-scope="{row}">
+                                    <el-link v-if="row.currentPeriodOrderVolume > 0"
+                                        @click="setListQueryParms('order', row.customerId, listQueryByManager.startTime, listQueryByManager.endTime, row.clienteleContactId)">
+                                        {{ row.currentPeriodOrderVolume }}
+                                    </el-link>
+                                    <span v-else>{{ row.currentPeriodOrderVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="同比来单增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.YoYOrderVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="环比来单增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.QoQOrderVolume }}</span>
+                                </template>
+                            </el-table-column>
+                        </el-table-column>
+                        <el-table-column label="预评(意见书)">
+                            <el-table-column label="当期预评出具数量">
+                                <template slot-scope="{row}">
+                                    <el-link v-if="row.currentPeriodStatementVolume > 0"
+                                        @click="setListQueryParms('statement', row.customerId, listQueryByManager.startTime, listQueryByManager.endTime, row.clienteleContactId)">
+                                        {{ row.currentPeriodStatementVolume }}
+                                    </el-link>
+                                    <span v-else>{{ row.currentPeriodStatementVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="同比预评出具增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.YoYStatementVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="环比预评出具增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.QoQStatementVolume }}</span>
+                                </template>
+                            </el-table-column>
+                        </el-table-column>
+                        <el-table-column label="报告(咨询报告、评估报告、意见函)">
+                            <el-table-column label="当期报告出具数量">
+                                <template slot-scope="{row}">
+                                    <el-link v-if="row.currentPeriodReportVolume > 0"
+                                        @click="setListQueryParms('report', row.customerId, listQueryByManager.startTime, listQueryByManager.endTime, row.clienteleContactId)">
+                                        {{ row.currentPeriodReportVolume }}
+                                    </el-link>
+                                    <span v-else>{{ row.currentPeriodReportVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="同比报告出具增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.YoYReportVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="环比报告出具增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.QoQReportVolume }}</span>
+                                </template>
+                            </el-table-column>
+                        </el-table-column>
+                        <el-table-column label="应收款">
+                            <el-table-column label="当期应收款">
+                                <template slot-scope="{row}">
+                                    <el-link v-if="row.currentPeriodShouldAmountSum > 0"
+                                        @click="setListQueryParms('should', row.customerId, listQueryByManager.startTime, listQueryByManager.endTime, row.clienteleContactId)">
+                                        {{ row.currentPeriodShouldAmountSum }}
+                                    </el-link>
+                                    <span v-else>{{ row.currentPeriodShouldAmountSum }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="同比应收款增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.YoYShouldAmountSum }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="环比应收款增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.QoQShouldAmountSum }}</span>
+                                </template>
+                            </el-table-column>
+                        </el-table-column>
+                        <el-table-column label="实收款">
+                            <el-table-column label="当期实收款">
+                                <template slot-scope="{row}">
+                                    <el-link v-if="row.currentPeriodRealAmountSum > 0"
+                                        @click="setListQueryParms('real', row.customerId, listQueryByManager.startTime, listQueryByManager.endTime, row.clienteleContactId)">
+                                        {{ row.currentPeriodRealAmountSum }}
+                                    </el-link>
+                                    <span v-else>{{ row.currentPeriodRealAmountSum }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="同比实收款增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.YoYRealAmountSum }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="环比实收款增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.QoQRealAmountSum }}</span>
+                                </template>
+                            </el-table-column>
+                        </el-table-column>
+                        <el-table-column label="实收款总计">
+                            <template slot-scope="{row}">
+                                <span>{{ row.totalRealAmountSum }}</span>
+                            </template>
+                        </el-table-column>
+                        <el-table-column label="出单率">
+                            <el-table-column label="当期出单率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.currentPeriodOrderHasReportVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="同比出单增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.YoYOrderHasReportVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="环比出单增减率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.QoQOrderHasReportVolume }}</span>
+                                </template>
+                            </el-table-column>
+                        </el-table-column>
+                        <el-table-column label="收费折扣率">
+                            <el-table-column label="当期收费折扣率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.currentDiscountVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="同比收费折扣率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.YoYDiscountVolume }}</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="环比收费折扣率(%)">
+                                <template slot-scope="{row}">
+                                    <span>{{ row.QoQDiscountVolume }}</span>
+                                </template>
+                            </el-table-column>
+                        </el-table-column>
+                    </el-table>
+                </el-tab-pane>
+            </el-tabs>
+        </div>
+        <el-dialog title="资产订单列表" :visible.sync="dialogVisible" width="70%" @open="getAssetsEvaEffDetailVO()">
+            <y-page-list-layout :get-page-list="getAssetsEvaEffDetailVO" :page-list="pageData"
+                :page-para="listQueryByManager">
+                <template slot="left">
+                    <el-button class="filter-item" round type="info" @click="exportAssetsEvaEffDetail()">导出
+                    </el-button>
+                </template>
+                <parentTable ref="table" :data="pageData.records" slot="table" style="width: 100%;" :isBoard=800
+                    class="tableFull">
+                    <el-table-column label="项目编号" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.orderId }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="项目名称" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.projectName }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="客户名称" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.customerName }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="业务来源" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.customerSubName }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="客户联系人名" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.linkmanName }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="委托人" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.bailor }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="报告号" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.reportNo }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="项目负责人" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.principalName }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="项目参与人" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.members }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="客户经理名" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.clientManagerName }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="评估金额(万元)" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.checkValueSum }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="实勘时间" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.reconnaissanceDate }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="出意见书时间" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.writeStatementDate }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="出报告时间" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.writeReportDate }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="订单应收款(元)" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.shouldAmount }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="订单实收款(元)" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.realAmount }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="当前实例节点名称" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.currentNodeName }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="当前节点处理人" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.handlerName }}</span>
+                        </template>
+                    </el-table-column>
+                </parentTable>
+            </y-page-list-layout>
+        </el-dialog>
+    </div>
+</template>
+
+<script>
+import Breadcrumb from '@/components/Breadcrumb'
+import YPageListLayout from '@/components/YPageListLayout'
+
+export default {
+    name: 'assetsEvaluateEfficiency',
+    components: {
+        Breadcrumb,
+        YPageListLayout
+    },
+    data() {
+        return {
+            activeTabName: 'department',
+            dialogVisible: false,
+            listLoading: false,
+            // 时间
+            selectDate1: [],
+            selectDate2: [],
+            listQueryByTotal: {
+                // 开始时间
+                startTime: null,
+                // 结束时间
+                endTime: null,
+                // 部门id
+                departmentId: null
+            },
+            listQueryByManager: {
+                // 开始时间
+                startTime: null,
+                // 结束时间
+                endTime: null,
+                // 部门id
+                departmentId: null,
+                // 评估人员姓名
+                userName: null
+            },
+            listQueryDetail: {
+                // 效率类型(接单:order、预评:statement、报告:report、应收款:should、实收款:real)
+                efficiencyType: null,
+                // 开始时间
+                startTime: null,
+                // 结束时间
+                endTime: null,
+                // 客户id
+                customerId: null,
+                // 客户联系人id
+                clienteleContactId: null
+            },
+            // 下单部门
+            customer: [],
+            pickerOptions: {
+                shortcuts: [{
+                    text: '最近一周',
+                    onClick(picker) {
+                        const end = new Date();
+                        const start = new Date();
+                        start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
+                        picker.$emit('pick', [start, end]);
+                    }
+                }, {
+                    text: '最近一个月',
+                    onClick(picker) {
+                        const end = new Date();
+                        const start = new Date();
+                        start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
+                        picker.$emit('pick', [start, end]);
+                    }
+                }, {
+                    text: '最近三个月',
+                    onClick(picker) {
+                        const end = new Date();
+                        const start = new Date();
+                        start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
+                        picker.$emit('pick', [start, end]);
+                    }
+                }]
+            },
+            exportStatus: true,
+            totalEfficiency: [],
+            managerEfficiency:[],
+            pageData: { records: [] },
+        }
+    },
+    created() {
+        this.selectDate1.push(this.getDefaultStartDate());
+        this.selectDate1.push(this.getDefaultEndDate());
+        this.selectDate2.push(this.getDefaultStartDate());
+        this.selectDate2.push(this.getDefaultEndDate());
+        this.getCustomerCompany();
+        this.getAssetsCustomerEfficiencyVO();
+    },
+    methods: {
+        getDefaultStartDate() {
+            const currentDate = new Date();
+            const currentYear = currentDate.getFullYear();
+            var currentMonth = String(currentDate.getMonth()).padStart(2, "0");
+            return currentYear + '-' + currentMonth + '-' + '23'
+        },
+        getDefaultEndDate() {
+            const currentDate = new Date();
+            const currentYear = currentDate.getFullYear();
+            var currentMonth = String(currentDate.getMonth() + 1).padStart(2, "0");
+            return currentYear + '-' + currentMonth + '-' + '22'
+        },
+        tabClick(tab, event) {
+            if (tab.name === 'department') {
+                this.getAssetsCustomerEfficiencyVO();
+            }
+            if (tab.name === 'personal') {
+                this.getAssetsCustomerManagerEfficiencyVO();
+            }
+        },
+        // 条件查询
+        searchList1() {
+            this.getAssetsCustomerEfficiencyVO()
+        },
+        // 重置搜索条件
+        resetParams1() {
+            this.exportStatus = true;
+            this.listQueryByTotal = {
+                // 开始时间
+                startTime: null,
+                // 结束时间
+                endTime: null,
+                // 部门id
+                departmentId: null
+            };
+            this.selectDate1 = [];
+            this.selectDate1.push(this.getDefaultStartDate());
+            this.selectDate1.push(this.getDefaultEndDate());
+            this.getAssetsCustomerEfficiencyVO();
+        },
+        // 资产客户效率值(总)查询
+        getAssetsCustomerEfficiencyVO() {
+            if (this.selectDate1) {
+                this.listQueryByTotal.startTime = this.selectDate1[0] + ' 00:00:00';
+                this.listQueryByTotal.endTime = this.selectDate1[1] + ' 23:59:59';
+            }
+            this.$api.statistical.getAssetsCustomerEfficiencyVO(this.listQueryByTotal).then(res => {
+                if (res.code === 200) {
+                    this.totalEfficiency = res.data;
+                    if (this.listQueryByTotal.startTime !== null && this.listQueryByTotal.endTime !== null && res.data.length > 0) {
+                        this.exportStatus = false;
+                    } else {
+                        this.exportStatus = true;
+                    }
+                }
+            })
+        },
+        exportAssetsCustomerTotalEfficiency() {
+            this.$utils.exportUtil(
+                "assets/statisticalStatement/customer/total/getEfficiencyVO/export", this.listQueryByTotal,
+                "导出"
+            );
+        },
+        // 获取客户信息
+        getCustomerCompany() {
+            let simpleAll = new Object();
+            simpleAll.terminal = 0;
+            this.$api.customerCompany.simpleAll(simpleAll).then(res => {
+                if (res.code === 200) {
+                    this.customer = res.data;
+                }
+            })
+        },
+        // 条件查询
+        searchList2() {
+            this.getAssetsCustomerManagerEfficiencyVO()
+        },
+        // 重置搜索条件
+        resetParams2() {
+            this.exportStatus = true;
+            this.listQueryByManager = {
+                // 开始时间
+                startTime: null,
+                // 结束时间
+                endTime: null,
+                // 部门id
+                departmentId: null
+            };
+            this.selectDate2 = [];
+            this.selectDate2.push(this.getDefaultStartDate());
+            this.selectDate2.push(this.getDefaultEndDate());
+            this.getAssetsCustomerManagerEfficiencyVO();
+        },
+        // 资产客户效率值(客户经理)查询
+        getAssetsCustomerManagerEfficiencyVO() {
+            if (this.selectDate2) {
+                this.listQueryByManager.startTime = this.selectDate2[0] + ' 00:00:00';
+                this.listQueryByManager.endTime = this.selectDate2[1] + ' 23:59:59';
+            }
+            this.$api.statistical.getAssetsCustomerManagerEfficiencyVO(this.listQueryByManager).then(res => {
+                if (res.code === 200) {
+                    this.managerEfficiency = res.data;
+                    if (this.listQueryByManager.startTime !== null && this.listQueryByManager.endTime !== null && res.data.length > 0) {
+                        this.exportStatus = false;
+                    } else {
+                        this.exportStatus = true;
+                    }
+                }
+            })
+        },
+        exportAssetsCustomerManagerEfficiency() {
+            this.$utils.exportUtil(
+                "assets/statisticalStatement/customer/manager/getEfficiencyVO/export", this.listQueryByManager,
+                "导出"
+            );
+        },
+        setListQueryParms(efficiencyType, customerId, startTime, endTime, clienteleContactId) {
+            this.dialogVisible = true;
+            this.listQueryDetail.efficiencyType = efficiencyType;
+            this.listQueryDetail.customerId = customerId;
+            this.listQueryDetail.startTime = startTime;
+            this.listQueryDetail.endTime = endTime;
+            if (clienteleContactId) {
+                this.listQueryDetail.clienteleContactId = clienteleContactId;
+            }else{
+                this.listQueryDetail.clienteleContactId = null;
+            }
+        },
+        // 效率详情列表查询
+        getAssetsEvaEffDetailVO() {
+            this.$api.statistical.getAssetsEvaEffDetailVO(this.listQueryDetail).then(res => {
+                if (res.code === 200) {
+                    this.pageData = res.data;
+                }
+            })
+        },
+        // 效率详情列表查询导出
+        exportAssetsEvaEffDetail() {
+            this.$utils.exportUtil(
+                "assets/statisticalStatement/evaluate/getAssetsEvaEffDetailVO/export", this.listQueryDetail,
+                "导出"
+            );
+        }
+    }
+}
+</script>
+
+<style scoped lang="scss">
+/* el-table 列数据为空自动显示 - */
+.tableFull :empty::before {
+    content: '-';
+    color: gray;
+}
+</style>

+ 12 - 0
src/views/statistical/assets/evaluateEfficiency.vue

@@ -139,6 +139,11 @@
                                 </template>
                             </el-table-column>
                         </el-table-column>
+                        <el-table-column label="实收款总计">
+                            <template slot-scope="{row}">
+                                <span>{{ row.totalRealAmountSum }}</span>
+                            </template>
+                        </el-table-column>
                         <el-table-column label="出单率">
                             <el-table-column label="当期出单率(%)">
                                 <template slot-scope="{row}">
@@ -300,6 +305,11 @@
                                 </template>
                             </el-table-column>
                         </el-table-column>
+                        <el-table-column label="实收款总计">
+                            <template slot-scope="{row}">
+                                <span>{{ row.totalRealAmountSum }}</span>
+                            </template>
+                        </el-table-column>
                         <el-table-column label="出单率">
                             <el-table-column label="当期出单率(%)">
                                 <template slot-scope="{row}">
@@ -637,6 +647,8 @@ export default {
             this.listQueryDetail.endTime = endTime;
             if (userId) {
                 this.listQueryDetail.principalId = userId;
+            }else{
+                this.listQueryDetail.principalId = null;
             }
         },
         // 效率详情列表查询

+ 29 - 17
src/views/statistical/assets/marketEfficiency.vue

@@ -5,7 +5,7 @@
         </div>
         <div>
             <el-tabs v-model="activeTabName" @tab-click="tabClick" type="border-card">
-                <el-tab-pane label="评估部效率值表" name="department">
+                <el-tab-pane label="市场部效率值表" name="department">
                     <div style="width: 100%; height: 50px;">
                         <el-date-picker style="margin-right: 20px;float: left;" v-model="selectDate1" type="daterange"
                             :picker-options="pickerOptions" format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd"
@@ -139,6 +139,11 @@
                                 </template>
                             </el-table-column>
                         </el-table-column>
+                        <el-table-column label="实收款总计">
+                            <template slot-scope="{row}">
+                                <span>{{ row.totalRealAmountSum }}</span>
+                            </template>
+                        </el-table-column>
                         <el-table-column label="出单率">
                             <el-table-column label="当期出单率(%)">
                                 <template slot-scope="{row}">
@@ -173,17 +178,17 @@
                         </el-table-column>
                     </el-table>
                 </el-tab-pane>
-                <el-tab-pane label="评估人员效率值表" name="personal">
+                <el-tab-pane label="客户经理效率值表" name="personal">
                     <div style="width: 100%; height: 50px;">
                         <el-date-picker style="margin-right: 20px;float: left;" v-model="selectDate2" type="daterange"
                             :picker-options="pickerOptions" format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd"
                             range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" align="right">
                         </el-date-picker>
-                        <el-select v-model="listQueryByEvaluator.departmentId" filterable placeholder="接单部门"
+                        <el-select v-model="listQueryByManager.departmentId" filterable placeholder="接单部门"
                             style=" width: 200px;margin-left: 10px;float: left;">
                             <el-option v-for="(d, id) in marketDepartment" :label="d.name" :value="d.id"></el-option>
                         </el-select>
-                        <el-input v-model="listQueryByEvaluator.userName" placeholder="姓名" clearable
+                        <el-input v-model="listQueryByManager.userName" placeholder="姓名" clearable
                             style="margin-left: 20px;width: 200px;float: left;">
                         </el-input>
                         <el-button class="filter-item" style="margin-left: 10px;float: left;" type="primary"
@@ -214,7 +219,7 @@
                             <el-table-column label="当期部门接单量">
                                 <template slot-scope="{row}">
                                     <el-link v-if="row.currentPeriodOrderVolume > 0"
-                                        @click="setListQueryParms('order', row.departmentId, listQueryByEvaluator.startTime, listQueryByEvaluator.endTime, row.userId)">
+                                        @click="setListQueryParms('order', row.departmentId, listQueryByManager.startTime, listQueryByManager.endTime, row.userId)">
                                         {{ row.currentPeriodOrderVolume }}
                                     </el-link>
                                     <span v-else>{{ row.currentPeriodOrderVolume }}</span>
@@ -235,7 +240,7 @@
                             <el-table-column label="当期预评出具数量">
                                 <template slot-scope="{row}">
                                     <el-link v-if="row.currentPeriodStatementVolume > 0"
-                                        @click="setListQueryParms('statement', row.departmentId, listQueryByEvaluator.startTime, listQueryByEvaluator.endTime, row.userId)">
+                                        @click="setListQueryParms('statement', row.departmentId, listQueryByManager.startTime, listQueryByManager.endTime, row.userId)">
                                         {{ row.currentPeriodStatementVolume }}
                                     </el-link>
                                     <span v-else>{{ row.currentPeriodStatementVolume }}</span>
@@ -256,7 +261,7 @@
                             <el-table-column label="当期报告出具数量">
                                 <template slot-scope="{row}">
                                     <el-link v-if="row.currentPeriodReportVolume > 0"
-                                        @click="setListQueryParms('report', row.departmentId, listQueryByEvaluator.startTime, listQueryByEvaluator.endTime, row.userId)">
+                                        @click="setListQueryParms('report', row.departmentId, listQueryByManager.startTime, listQueryByManager.endTime, row.userId)">
                                         {{ row.currentPeriodReportVolume }}
                                     </el-link>
                                     <span v-else>{{ row.currentPeriodReportVolume }}</span>
@@ -277,7 +282,7 @@
                             <el-table-column label="当期应收款">
                                 <template slot-scope="{row}">
                                     <el-link v-if="row.currentPeriodShouldAmountSum > 0"
-                                        @click="setListQueryParms('should', row.departmentId, listQueryByEvaluator.startTime, listQueryByEvaluator.endTime, row.userId)">
+                                        @click="setListQueryParms('should', row.departmentId, listQueryByManager.startTime, listQueryByManager.endTime, row.userId)">
                                         {{ row.currentPeriodShouldAmountSum }}
                                     </el-link>
                                     <span v-else>{{ row.currentPeriodShouldAmountSum }}</span>
@@ -298,7 +303,7 @@
                             <el-table-column label="当期实收款">
                                 <template slot-scope="{row}">
                                     <el-link v-if="row.currentPeriodRealAmountSum > 0"
-                                        @click="setListQueryParms('real', row.departmentId, listQueryByEvaluator.startTime, listQueryByEvaluator.endTime, row.userId)">
+                                        @click="setListQueryParms('real', row.departmentId, listQueryByManager.startTime, listQueryByManager.endTime, row.userId)">
                                         {{ row.currentPeriodRealAmountSum }}
                                     </el-link>
                                     <span v-else>{{ row.currentPeriodRealAmountSum }}</span>
@@ -315,6 +320,11 @@
                                 </template>
                             </el-table-column>
                         </el-table-column>
+                        <el-table-column label="实收款总计">
+                            <template slot-scope="{row}">
+                                <span>{{ row.totalRealAmountSum }}</span>
+                            </template>
+                        </el-table-column>
                         <el-table-column label="出单率">
                             <el-table-column label="当期出单率(%)">
                                 <template slot-scope="{row}">
@@ -338,7 +348,7 @@
         </div>
         <el-dialog title="资产订单列表" :visible.sync="dialogVisible" width="70%" @open="getAssetsEvaEffDetailVO()">
             <y-page-list-layout :get-page-list="getAssetsEvaEffDetailVO" :page-list="pageData"
-                :page-para="listQueryByEvaluator">
+                :page-para="listQueryByManager">
                 <template slot="left">
                     <el-button class="filter-item" round type="info" @click="exportAssetsEvaEffDetail()">导出
                     </el-button>
@@ -466,7 +476,7 @@ export default {
                 // 部门id
                 departmentId: null
             },
-            listQueryByEvaluator: {
+            listQueryByManager: {
                 // 开始时间
                 startTime: null,
                 // 结束时间
@@ -609,7 +619,7 @@ export default {
         // 重置搜索条件
         resetParams2() {
             this.exportStatus = true;
-            this.listQueryByEvaluator = {
+            this.listQueryByManager = {
                 // 开始时间
                 startTime: null,
                 // 结束时间
@@ -625,13 +635,13 @@ export default {
         // 评估人员绩效扣分查询
         getAssetsMarketPerEfficiencyVO() {
             if (this.selectDate2) {
-                this.listQueryByEvaluator.startTime = this.selectDate2[0] + ' 00:00:00';
-                this.listQueryByEvaluator.endTime = this.selectDate2[1] + ' 23:59:59';
+                this.listQueryByManager.startTime = this.selectDate2[0] + ' 00:00:00';
+                this.listQueryByManager.endTime = this.selectDate2[1] + ' 23:59:59';
             }
-            this.$api.statistical.getAssetsMarketPerEfficiencyVO(this.listQueryByEvaluator).then(res => {
+            this.$api.statistical.getAssetsMarketPerEfficiencyVO(this.listQueryByManager).then(res => {
                 if (res.code === 200) {
                     this.perEfficiency = res.data;
-                    if (this.listQueryByEvaluator.startTime !== null && this.listQueryByEvaluator.endTime !== null && res.data.length > 0) {
+                    if (this.listQueryByManager.startTime !== null && this.listQueryByManager.endTime !== null && res.data.length > 0) {
                         this.exportStatus = false;
                     } else {
                         this.exportStatus = true;
@@ -641,7 +651,7 @@ export default {
         },
         exportAssetsMarketPerEfficiency() {
             this.$utils.exportUtil(
-                "assets/statisticalStatement/market/per/getEfficiencyVO/export", this.listQueryByEvaluator,
+                "assets/statisticalStatement/market/per/getEfficiencyVO/export", this.listQueryByManager,
                 "导出"
             );
         },
@@ -653,6 +663,8 @@ export default {
             this.listQueryDetail.endTime = endTime;
             if (userId) {
                 this.listQueryDetail.clientManagerId = userId;
+            }else{
+                this.listQueryDetail.clientManagerId = null;
             }
         },
         // 效率详情列表查询

+ 2 - 0
src/views/statistical/assets/performanceDeduction.vue

@@ -534,6 +534,8 @@ export default {
             this.listQueryDetail.endTime = endTime;
             if (userId) {
                 this.listQueryDetail.principalId = userId;
+            }else{
+                this.listQueryDetail.principalId = null;
             }
             if (mistakeType === 'normal') {
                 this.dialogTitle = checkLoop + ":一般错误列表";