Pārlūkot izejas kodu

1.新增个贷内业/外业效率值页面
2.优化个贷部门效率值页面

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

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

@@ -53,6 +53,14 @@ export default {
     // 获取效率值相关个贷订单列表
     getPersonalEfficiencyDetailVO(params){
         return request.get(`personal/statisticalStatement/getPersonalEfficiencyDetailVO`, { params: params })
+    },
+    // 个贷外业效率值查询
+    getPersonalOutwardEfficiencyVO(params){
+        return request.get(`personal/statisticalStatement/outward/getPersonalOutwardEfficiencyVO`, { params: params })
+    },
+    // 个贷内业效率值查询
+    getPersonalInwardEfficiencyVO(params){
+        return request.get(`personal/statisticalStatement/inward/getPersonalInwardEfficiencyVO`, { params: params })
     }
 
 }

+ 3 - 1
src/router/urlMap.js

@@ -139,6 +139,7 @@ import _views_statistical_assets_evaluate_efficiency from '@/views/statistical/a
 import _views_statistical_assets_market_efficiency from '@/views/statistical/assets/marketEfficiency'
 import _views_statistical_assets_customer_efficiency from '@/views/statistical/assets/customerEfficiency'
 import _views_statistical_personal_department_efficiency from '@/views/statistical/personal/departmentEfficiency'
+import _views_statistical_personal_evaluate_efficiency from '@/views/statistical/personal/evaluateEfficiency'
 
 export default {
   _views_set_menu,
@@ -266,6 +267,7 @@ export default {
   _views_statistical_assets_evaluate_efficiency,
   _views_statistical_assets_market_efficiency,
   _views_statistical_assets_customer_efficiency,
-  _views_statistical_personal_department_efficiency
+  _views_statistical_personal_department_efficiency,
+  _views_statistical_personal_evaluate_efficiency
 
 }

+ 4 - 4
src/views/statistical/personal/departmentEfficiency.vue

@@ -14,7 +14,7 @@
                 </el-button>
                 <el-button class="filter-item" round type="success" @click="resetParams1()">重置
                 </el-button>
-                <el-button class="filter-item" round type="info" @click="exportAssetsMarketDepEfficiency()"
+                <el-button class="filter-item" round type="info" @click="exportPersonalDepEfficiencyVO()"
                     :disabled="exportStatus">导出
                 </el-button>
             </div>
@@ -174,7 +174,7 @@
                 </el-table-column>
             </el-table>
         </div>
-        <el-dialog title="资产订单列表" :visible.sync="dialogVisible" width="70%" @open="getPersonalEfficiencyDetailVO()">
+        <el-dialog title="个贷订单列表" :visible.sync="dialogVisible" width="70%" @open="getPersonalEfficiencyDetailVO()">
             <y-page-list-layout :get-page-list="getPersonalEfficiencyDetailVO" :page-list="pageData" :page-para="listQueryDetail">
                 <template slot="left">
                     <el-button class="filter-item" round type="info" @click="exportPersonalEfficiencyDetailVO()">导出
@@ -403,9 +403,9 @@ export default {
                 }
             })
         },
-        exportAssetsMarketDepEfficiency() {
+        exportPersonalDepEfficiencyVO() {
             this.$utils.exportUtil(
-                "assets/statisticalStatement/market/dep/getEfficiencyVO/export", this.listQueryByDepartment,
+                "personal/statisticalStatement/department/getPersonalDepEfficiencyVO/export", this.listQueryByDepartment,
                 "导出"
             );
         },

+ 442 - 0
src/views/statistical/personal/evaluateEfficiency.vue

@@ -0,0 +1,442 @@
+<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="outward">
+                    <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-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="exportPersonalOutwardEfficiencyVO()"
+                            :disabled="exportStatus">导出
+                        </el-button>
+                    </div>
+                    <el-table :data="outwardEfficiency" 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="姓名">
+                            <template slot-scope="{row}">
+                                <span>{{ row.userName }}</span>
+                            </template>
+                        </el-table-column>
+                        <el-table-column label="看件订单数">
+                            <template slot-scope="{row}">
+                                <el-link v-if="row.orderCount > 0"
+                                    @click="setListQueryParms(null, 'order', listQueryByOutward.startTime, listQueryByOutward.endTime, row.outwardStaff, null)">
+                                    {{ row.orderCount }}
+                                </el-link>
+                                <span v-else>{{ row.orderCount }}</span>
+                            </template>
+                        </el-table-column>
+                        <el-table-column label="看件房屋数">
+                            <template slot-scope="{row}">
+                                <el-link v-if="row.houseCount > 0"
+                                    @click="setListQueryParms(null, 'order', listQueryByOutward.startTime, listQueryByOutward.endTime, row.outwardStaff, null)">
+                                    {{ row.houseCount }}
+                                </el-link>
+                                <span v-else>{{ row.houseCount }}</span>
+                            </template>
+                        </el-table-column>
+                    </el-table>
+                </el-tab-pane>
+                <el-tab-pane label="评估人员效率值表" name="inward">
+                    <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-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="exportersonalInwardEfficiencyVO()"
+                            :disabled="exportStatus">导出
+                        </el-button>
+                    </div>
+                    <el-table :data="perEfficiency" 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="姓名">
+                            <template slot-scope="{row}">
+                                <span>{{ row.userName }}</span>
+                            </template>
+                        </el-table-column>
+                        <el-table-column label="预评数">
+                            <template slot-scope="{row}">
+                                <el-link v-if="row.statementCount > 0"
+                                    @click="setListQueryParms(null, 'statement', listQueryByInward.startTime, listQueryByInward.endTime, null, row.inwardStaff)">
+                                    {{ row.statementCount }}
+                                </el-link>
+                                <span v-else>{{ row.statementCount }}</span>
+                            </template>
+                        </el-table-column>
+                        <el-table-column label="报告数">
+                            <template slot-scope="{row}">
+                                <el-link v-if="row.reportCount > 0"
+                                    @click="setListQueryParms(null, 'report', listQueryByInward.startTime, listQueryByInward.endTime, null, row.inwardStaff)">
+                                    {{ row.reportCount }}
+                                </el-link>
+                                <span v-else>{{ row.reportCount }}</span>
+                            </template>
+                        </el-table-column>
+                    </el-table>
+                </el-tab-pane>
+            </el-tabs>
+        </div>
+        <el-dialog title="个贷订单列表" :visible.sync="dialogVisible" width="70%" @open="getPersonalEfficiencyDetailVO()">
+            <y-page-list-layout :get-page-list="getPersonalEfficiencyDetailVO" :page-list="pageData" :page-para="listQueryDetail">
+                <template slot="left">
+                    <el-button class="filter-item" round type="info" @click="exportPersonalEfficiencyDetailVO()">导出
+                    </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.location }}</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.agent }}</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.acreage }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="单价" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.price }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="总价" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.amount }}</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.valuationDate }}</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="用途" align="center">
+                        <template slot-scope="{row}">
+                            <span>{{ row.purpose }}</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.clientManagerName }}</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: 'outward',
+            dialogVisible: false,
+            listLoading: false,
+            // 时间
+            selectDate1: [],
+            selectDate2: [],
+            listQueryByOutward: {
+                // 开始时间
+                startTime: null,
+                // 结束时间
+                endTime: null
+            },
+            listQueryByInward: {
+                // 开始时间
+                startTime: null,
+                // 结束时间
+                endTime: null
+            },
+            listQueryDetail: {
+                page: 1,
+                size: 10,
+                current: 1,
+                // 评估目的(咨询、抵押、按揭、合计)
+                evaluateAim: null,
+                // 效率类型(订单:order、预评:statement、报告:report、应收款:should、实收款:real)
+                efficiencyType: null,
+                // 外业人员id
+                outwardStaff: null,
+                // 内业人员id
+                inwardStaff: null,
+                // 开始时间
+                startTime: null,
+                // 结束时间
+                endTime: null
+            },
+            // 接单部门
+            allotDepartment: [],
+            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,
+            outwardEfficiency: [],
+            perEfficiency: [],
+            pageData: { records: [] },
+        }
+    },
+    created() {
+        this.selectDate1.push(this.getDefaultStartDate());
+        this.selectDate1.push(this.getDefaultEndDate());
+        this.selectDate2.push(this.getDefaultStartDate());
+        this.selectDate2.push(this.getDefaultEndDate());
+        this.getPersonalOutwardEfficiencyVO();
+    },
+    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 === 'outward') {
+                this.getPersonalOutwardEfficiencyVO();
+            }
+            if (tab.name === 'inward') {
+                this.getPersonalInwardEfficiencyVO();
+            }
+        },
+        // 条件查询
+        searchList1() {
+            this.getPersonalOutwardEfficiencyVO()
+        },
+        // 重置搜索条件
+        resetParams1() {
+            this.exportStatus = true;
+            this.listQueryByOutward = {
+                // 开始时间
+                startTime: null,
+                // 结束时间
+                endTime: null
+            };
+            this.selectDate1 = [];
+            this.selectDate1.push(this.getDefaultStartDate());
+            this.selectDate1.push(this.getDefaultEndDate());
+            this.getPersonalOutwardEfficiencyVO();
+        },
+        getPersonalOutwardEfficiencyVO() {
+            if (this.selectDate1) {
+                this.listQueryByOutward.startTime = this.selectDate1[0] + ' 00:00:00';
+                this.listQueryByOutward.endTime = this.selectDate1[1] + ' 23:59:59';
+            }
+            this.$api.statistical.getPersonalOutwardEfficiencyVO(this.listQueryByOutward).then(res => {
+                if (res.code === 200) {
+                    this.outwardEfficiency = res.data;
+                    if (this.listQueryByOutward.startTime !== null && this.listQueryByOutward.endTime !== null && res.data.length > 0) {
+                        this.exportStatus = false;
+                    } else {
+                        this.exportStatus = true;
+                    }
+                }
+            })
+        },
+        exportPersonalOutwardEfficiencyVO() {
+            this.$utils.exportUtil(
+                "personal/statisticalStatement/outward/getPersonalOutwardEfficiencyVO/export", this.listQueryByOutward,
+                "导出"
+            );
+        },
+        // 条件查询
+        searchList2() {
+            this.getPersonalInwardEfficiencyVO()
+        },
+        // 重置搜索条件
+        resetParams2() {
+            this.exportStatus = true;
+            this.listQueryByInward = {
+                // 开始时间
+                startTime: null,
+                // 结束时间
+                endTime: null,
+                // 部门id
+                departmentId: null
+            };
+            this.selectDate2 = [];
+            this.selectDate2.push(this.getDefaultStartDate());
+            this.selectDate2.push(this.getDefaultEndDate());
+            this.getPersonalInwardEfficiencyVO();
+        },
+        // 评估人员绩效扣分查询
+        getPersonalInwardEfficiencyVO() {
+            if (this.selectDate2) {
+                this.listQueryByInward.startTime = this.selectDate2[0] + ' 00:00:00';
+                this.listQueryByInward.endTime = this.selectDate2[1] + ' 23:59:59';
+            }
+            this.$api.statistical.getPersonalInwardEfficiencyVO(this.listQueryByInward).then(res => {
+                if (res.code === 200) {
+                    this.perEfficiency = res.data;
+                    if (this.listQueryByInward.startTime !== null && this.listQueryByInward.endTime !== null && res.data.length > 0) {
+                        this.exportStatus = false;
+                    } else {
+                        this.exportStatus = true;
+                    }
+                }
+            })
+        },
+        exportersonalInwardEfficiencyVO() {
+            this.$utils.exportUtil(
+                "personal/statisticalStatement/inward/getPersonalInwardEfficiencyVO/export", this.listQueryByInward,
+                "导出"
+            );
+        },
+        setListQueryParms(evaluateAim, efficiencyType, startTime, endTime, outwardStaff, inwardStaff) {
+            this.dialogVisible = true;
+            this.listQueryDetail.page = 1;
+            this.listQueryDetail.size = 10;
+            this.listQueryDetail.current = 1;
+            this.listQueryDetail.evaluateAim = evaluateAim;
+            this.listQueryDetail.efficiencyType = efficiencyType;
+            this.listQueryDetail.startTime = startTime;
+            this.listQueryDetail.endTime = endTime;
+            if (outwardStaff) {
+                this.listQueryDetail.outwardStaff = outwardStaff;
+            }else{
+                this.listQueryDetail.outwardStaff = null;
+            }
+            if (inwardStaff) {
+                this.listQueryDetail.inwardStaff = inwardStaff;
+            }else{
+                this.listQueryDetail.inwardStaff = null;
+            }
+        },
+        // 效率详情列表查询
+        getPersonalEfficiencyDetailVO() {
+            this.$api.statistical.getPersonalEfficiencyDetailVO(this.listQueryDetail).then(res => {
+                if (res.code === 200) {
+                    this.pageData = res.data;
+                }
+            })
+        },
+        // 效率详情列表查询导出
+        exportPersonalEfficiencyDetailVO() {
+            this.$utils.exportUtil(
+                "personal/statisticalStatement/getPersonalEfficiencyDetailVO/export", this.listQueryDetail,
+                "导出"
+            );
+        }
+    }
+}
+</script>
+
+<style scoped lang="scss">
+/* el-table 列数据为空自动显示 - */
+.tableFull :empty::before {
+    content: '-';
+    color: gray;
+}
+</style>