Browse Source

完善其它融产品

master
yunuo970428 2 years ago
parent
commit
d679b708cc
  1. 32
      anrui-riskcenter-ui/src/api/otherfinancialpolicymanagement/otherfinancialpolicymanagement.js
  2. 16
      anrui-riskcenter-ui/src/router/index.js
  3. 137
      anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagement.vue
  4. 125
      anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagementAdd.vue
  5. 9
      anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagementInfo.vue

32
anrui-riskcenter-ui/src/api/otherfinancialpolicymanagement/otherfinancialpolicymanagement.js

@ -4,7 +4,7 @@ export default {
// 查询分页列表
listPage: function(params) {
return request({
url: '/riskcenter/v1/loanfinpolicyrecordapply/listPage',
url: '/riskcenter/v1/LoanFinOtherPolicy/listPage',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
@ -12,20 +12,12 @@ export default {
},
saveOrUpdate: function(data) {
return request({
url: '/riskcenter/v1/loanfinpolicyrecordapply/saveOrUpdate',
url: '/riskcenter/v1/LoanFinOtherPolicy/save',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
policyRecordInit: function(data) {
return request({
url: '/riskcenter/v1/loanfinpolicyrecordapply/policyRecordInit',
method: 'get',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
fetchBySid: function(data) {
return request({
url: '/riskcenter/v1/LoanFinOtherPolicy/details',
@ -35,10 +27,28 @@ export default {
},
deleteBySids: function(data) {
return request({
url: '/riskcenter/v1/LoanFinPolicy/deletePolicy',
url: '/riskcenter/v1/LoanFinOtherPolicy/delBySids',
method: 'DELETE',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 停用或开启 1停用 0开启
setState: function(data) {
return request({
url: '/riskcenter/v1/LoanFinOtherPolicy/setState',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 禁用或启用 1禁用 0启用
setRiskState: function(data) {
return request({
url: '/riskcenter/v1/LoanFinOtherPolicy/setRiskState',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
}
}

16
anrui-riskcenter-ui/src/router/index.js

@ -91,6 +91,22 @@ export const constantRoutes = [
}
]
},
{
path: '/otherfinancialpolicymanagement',
component: Layout,
redirect: '/otherfinancialpolicymanagement',
meta: {
title: '其它融产品管理'
},
children: [
{
path: '/otherfinancialpolicymanagement/otherfinancialpolicymanagement',
component: () => import('@/views/otherfinancialpolicymanagement/otherfinancialpolicymanagement.vue'),
name: 'OtherFinancialPolicyManagement',
meta: { title: '其它融产品管理', noCache: true }
}
]
},
{
path: '/otherfinancialproductsreport',
component: Layout,

137
anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagement.vue

@ -8,24 +8,24 @@
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="110px" class="tab-header">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="130px" class="tab-header">
<el-form-item label="报备状态">
<el-select v-model="listQuery.params.filingStateKey" placeholder="请选择" clearable filterable>
<el-select v-model="listQuery.params.filingState" placeholder="请选择" clearable filterable>
<el-option v-for="item in filingState_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option>
</el-select>
</el-form-item>
<el-form-item label="风控状态">
<el-select v-model="listQuery.params.riskStateKey" placeholder="请选择" clearable filterable>
<el-select v-model="listQuery.params.riskState" placeholder="请选择" clearable filterable>
<el-option v-for="item in riskState_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option>
</el-select>
</el-form-item>
<el-form-item label="使用状态">
<el-select v-model="listQuery.params.useSateKey" placeholder="请选择" clearable filterable>
<el-select v-model="listQuery.params.useSate" placeholder="请选择" clearable filterable>
<el-option v-for="item in useSate_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option>
</el-select>
</el-form-item>
<el-form-item label="分公司">
<el-input v-model="listQuery.params.useOrgName" placeholder="" clearable/>
<el-input v-model="listQuery.params.createOrgName" placeholder="" clearable/>
</el-form-item>
<el-form-item label="业务类型">
<el-select v-model="listQuery.params.busTypeKey" placeholder="请选择" clearable filterable>
@ -43,21 +43,20 @@
</el-select>
</el-form-item>
<el-form-item label="其它融产品名称">
<el-input v-model="listQuery.params.policyName" placeholder="" clearable/>
</el-form-item>
<el-form-item label="适用销售部门">
<el-input v-model="listQuery.params.useDeptNames" placeholder="" clearable/>
</el-form-item>
<el-form-item label="有效期至">
<el-date-picker v-model="listQuery.params.validDateToStart" type="date" placeholder="选择日期"></el-date-picker>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.validDateToEnd" type="date" placeholder="选择日期"></el-date-picker>
<el-input v-model="listQuery.params.otherPolicyName" placeholder="" clearable/>
</el-form-item>
<el-form-item label="期数">
<el-input v-model="listQuery.params.period" placeholder="" clearable/>
<el-select v-model="listQuery.params.periodKey" placeholder="请选择" clearable filterable>
<el-option v-for="item in period_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option>
</el-select>
</el-form-item>
<el-form-item label="年利率">
<el-input v-model="listQuery.params.period" placeholder="" clearable/>
<el-input v-model="listQuery.params.yearRatio" placeholder="" clearable/>
</el-form-item>
<el-form-item label="有效期至">
<el-date-picker v-model="listQuery.params.validStartDateTo" type="date" placeholder="选择日期"></el-date-picker>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.validEndDateTo" type="date" placeholder="选择日期"></el-date-picker>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
@ -78,23 +77,23 @@
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center"/>
<el-table-column label="操作" width="180px" align="center">
<template slot-scope="scope">
<el-button type="primary" size="mini" :disabled="scope.row.filingStateValue !== '未报备'" @click="toEdit(scope.row)">编辑</el-button>
<el-button type="primary" size="mini" :disabled="scope.row.filingState !== '未报备'" @click="toEdit(scope.row)">编辑</el-button>
<el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button>
</template>
</el-table-column>
<el-table-column prop="filingStateValue" label="报备状态" align="center" width="100" />
<el-table-column prop="riskStateValue" label="风控状态" align="center" width="100" />
<el-table-column prop="useSateValue" label="使用状态" align="center" width="100" />
<el-table-column prop="filingState" label="报备状态" align="center" width="100" />
<el-table-column prop="riskState" label="风控状态" align="center" width="100" />
<el-table-column prop="useSate" label="使用状态" align="center" width="100" />
<el-table-column prop="validDateTo" label="有效期至" align="center" width="100" />
<el-table-column prop="useOrgName" label="分公司" align="center" width="150" />
<el-table-column prop="createOrgName" label="分公司" align="center" width="150" />
<el-table-column prop="useDeptNames" label="适用销售部门" align="center" min-width="150" />
<el-table-column prop="policyName" label="其它融产品名称" align="center" width="160" />
<el-table-column prop="otherPolicyName" label="其它融产品名称" align="center" width="160" />
<el-table-column prop="busTypeValue" label="业务类型" align="center" width="100" />
<el-table-column prop="vehCategoryValue" label="车辆大类" align="center" width="100" />
<el-table-column prop="vehTypeValue" label="车辆功能" align="center" width="100" />
<el-table-column prop="serviceAmountTypeValue" label="最高融资额(元)" align="center" width="120" />
<el-table-column prop="maxLoanAmount" label="最高融资额(元)" align="center" width="120" />
<el-table-column prop="period" label="期数" align="center" width="80" />
<el-table-column prop="serviceAmount" label="年利率" align="center" width="100" />
<el-table-column prop="yearRatio" label="年利率" align="center" width="100" />
</el-table>
</div>
<!--End 主页面主要部分-->
@ -106,14 +105,12 @@
<!--End查询列表部分-->
</div>
</div>
<!--款项结转新增及修改 -->
<financialpolicymanagementAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="getList"/>
<!--款项结转申请详情-->
<financialpolicymanagementInfo v-show="viewState == 4" ref="divInfo" @doback="resetState" />
<!--新增或编辑-->
<otherfinancialpolicymanagementAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="getList"/>
<!--查看其他融-->
<otherfinancialpolicymanagementInfo v-show="viewState == 5" ref="divOther" @doback="resetState"/>
<!--政策报备-->
<financialpolicyreportingAdd v-show="viewState == 6" ref="divBaoBei" @doback="resetState" @reloadlist="getList"/>
<otherfinancialpolicymanagementInfo v-show="viewState == 4" ref="divInfo" @doback="resetState"/>
<!-- 报备 -->
<otherfinancialproductsreportAdd v-show="viewState == 5" ref="divBaoBei" @doback="resetState" @reloadlist="getList"/>
</div>
</template>
@ -121,23 +118,21 @@
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import req from '@/api/financialpolicymanagement/financialpolicymanagement'
import req from '@/api/otherfinancialpolicymanagement/otherfinancialpolicymanagement'
import { typeValues } from '@/api/Common/dictcommons'
import financialpolicymanagementAdd from './financialpolicymanagementAdd'
import financialpolicymanagementInfo from './financialpolicymanagementInfo'
import financialpolicyreportingAdd from '../financialpolicyreporting/financialpolicyreportingAdd'
import otherfinancialpolicymanagementInfo from '../otherfinancialpolicymanagement/otherfinancialpolicymanagementInfo'
import otherfinancialpolicymanagementAdd from './otherfinancialpolicymanagementAdd'
import otherfinancialpolicymanagementInfo from './otherfinancialpolicymanagementInfo'
import otherfinancialproductsreportAdd from '../otherfinancialproductsreport/otherfinancialproductsreportAdd'
export default {
name: 'FinancialPolicyManagement',
name: 'OtherFinancialPolicyManagement',
components: {
Pagination,
pageye,
ButtonBar,
financialpolicymanagementAdd,
financialpolicymanagementInfo,
financialpolicyreportingAdd,
otherfinancialpolicymanagementInfo
otherfinancialpolicymanagementAdd,
otherfinancialpolicymanagementInfo,
otherfinancialproductsreportAdd
},
data() {
return {
@ -245,6 +240,7 @@ export default {
vehCategory_list: [],
vehicleFunction_list: [],
serviceAmountType_list: [],
period_list: [],
FormLoading: false,
listLoading: false,
//
@ -256,21 +252,21 @@ export default {
busTypeKey: '',
downPayRatioLeastEnd: '',
downPayRatioLeastStart: '',
filingStateKey: '',
orgPath: '',
period: '',
policyName: '',
riskStateKey: '',
filingState: '',
orgSidPath: '',
periodKey: '',
otherPolicyName: '',
riskState: '',
serviceAmountTypeKey: '',
menuUrl: '',
useDeptNames: '',
useOrgName: '',
useSateKey: '',
createOrgName: '',
useSate: '',
userSid: '',
validDateToEnd: '',
validDateToStart: '',
validEndDateTo: '',
validStartDateTo: '',
vehCategoryKey: '',
vehTypeKey: ''
vehTypeKey: '',
yearRatio: ''
}
}
}
@ -344,6 +340,11 @@ export default {
this.serviceAmountType_list = resp.data
}
})
typeValues({ type: 'period' }).then((resp) => {
if (resp.success) {
this.period_list = resp.data
}
})
this.getList()
},
// sid
@ -366,7 +367,7 @@ export default {
this.listLoading = true
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
this.listQuery.params.menuUrl = this.$route.path
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.listQuery.params.orgSidPath = window.sessionStorage.getItem('defaultOrgPath')
req.listPage(this.listQuery).then(response => {
this.listLoading = false
if (response.success) {
@ -393,21 +394,21 @@ export default {
busTypeKey: '',
downPayRatioLeastEnd: '',
downPayRatioLeastStart: '',
filingStateKey: '',
orgPath: '',
period: '',
policyName: '',
riskStateKey: '',
filingState: '',
orgSidPath: '',
periodKey: '',
otherPolicyName: '',
riskState: '',
serviceAmountTypeKey: '',
menuUrl: '',
useDeptNames: '',
useOrgName: '',
useSateKey: '',
createOrgName: '',
useSate: '',
userSid: '',
validDateToEnd: '',
validDateToStart: '',
validEndDateTo: '',
validStartDateTo: '',
vehCategoryKey: '',
vehTypeKey: ''
vehTypeKey: '',
yearRatio: ''
}
}
this.init()
@ -422,7 +423,7 @@ export default {
},
toInfo(row) {
this.viewState = 4
this.$refs['divInfo'].showInfo(row)
this.$refs['divInfo'].showInfo(row.sid)
},
doDel() {
if (this.sids.length === 0) {
@ -430,7 +431,7 @@ export default {
return
}
for (var i = 0; i < this.multipleSelection.length; i++) {
if (this.multipleSelection[i].filingStateValue !== '未报备') {
if (this.multipleSelection[i].filingState !== '未报备') {
this.$message({ showClose: true, type: 'error', message: '请选择报备状态为未报备的记录进行删除操作' })
return
}
@ -465,12 +466,12 @@ export default {
return
}
for (var i = 0; i < this.multipleSelection.length; i++) {
if (this.multipleSelection[i].filingStateValue !== '未报备') {
if (this.multipleSelection[i].filingState !== '未报备') {
this.$message({ showClose: true, type: 'error', message: '请选择报备状态为未报备的记录进行报备操作' })
return
}
}
this.viewState = 6
this.viewState = 5
this.$refs['divBaoBei'].showAdd(this.sids)
},
toBlockUp() {

125
anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagementAdd.vue

@ -3,6 +3,7 @@
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
@ -19,7 +20,7 @@
</el-col>
<el-col :span="8">
<div class="span-sty">其他融名称</div>
<el-form-item><span class="addinputInfo">{{ formobj.otherPolicyName }}</span></el-form-item>
<el-form-item><span class="addinputInfo">{{ formobj.bankShortName + formobj.productTypeValue + formobj.maxLoanRatio + formobj.period }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">适用销售部门</div>
@ -60,7 +61,7 @@
<el-col :span="8">
<div class="span-sty">产品类别</div>
<el-form-item>
<el-select class="addinputInfo" v-model="formobj.loanFinOtherPolicy.productTypeKey" @change="productTypeChange" placeholder="请选择" clearable filterable>
<el-select class="addinputInfo" v-model="formobj.productTypeKey" @change="productTypeChange" placeholder="请选择" clearable filterable>
<el-option v-for="item in productType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option>
</el-select>
</el-form-item>
@ -68,13 +69,13 @@
<el-col :span="8">
<div class="span-sty">最高融资比例(%)</div>
<el-form-item>
<el-input v-model="formobj.loanFinOtherPolicy.maxLoanRatio" @keyup.native="UpNumber" class="addinputw addinputInfo" clearable placeholder=""/>
<el-input v-model="formobj.maxLoanRatio" @keyup.native="UpNumber" class="addinputw addinputInfo" clearable placeholder=""/>
</el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">最高融资额()</div>
<el-form-item>
<el-input v-model="formobj.loanFinOtherPolicy.maxLoanAmount" @keyup.native="UpNumber" class="addinputw addinputInfo" clearable placeholder=""/>
<el-input v-model="formobj.maxLoanAmount" @keyup.native="UpNumber" class="addinputw addinputInfo" clearable placeholder=""/>
</el-form-item>
</el-col>
</el-row>
@ -82,7 +83,7 @@
<el-col :span="8">
<div class="span-sty">期数</div>
<el-form-item>
<el-select class="addinputInfo" v-model="formobj.loanFinOtherPolicy.periodKey" @change="periodQTRChange" placeholder="请选择" clearable filterable>
<el-select class="addinputInfo" v-model="formobj.periodKey" @change="periodQTRChange" placeholder="请选择" clearable filterable>
<el-option v-for="item in period_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option>
</el-select>
</el-form-item>
@ -90,7 +91,7 @@
<el-col :span="8">
<div class="span-sty">年利率(%)</div>
<el-form-item>
<el-input v-model="formobj.loanFinOtherPolicy.yearRatio" @keyup.native="UpNumber" class="addinputw addinputInfo" clearable placeholder=""/>
<el-input v-model="formobj.yearRatio" @keyup.native="UpNumber" class="addinputw addinputInfo" clearable placeholder=""/>
</el-form-item>
</el-col>
<el-col :span="8">
@ -107,14 +108,18 @@
<script>
import req from '@/api/otherfinancialpolicymanagement/otherfinancialpolicymanagement'
import { selectListByOrgPath, selectOrgList, typeValues } from '@/api/Common/dictcommons'
import { selectListByOrgPath, selectOrgList, typeValues, getOrgSidByPath, fetchBySid } from '@/api/Common/dictcommons'
export default {
name: 'OtherFinancialPolicyManagementAdd',
data() {
return {
viewTitle: '',
submitdisabled: false,
tableKey: 0,
index: 0,
useDept_list: [],
orgList: [],
bankShort_list: [],
busType_list: [],
vehCategory_list: [],
@ -143,7 +148,14 @@ export default {
period: '',
periodKey: '',
yearRatio: '',
validDateTo: ''
validDateTo: '',
sid: '',
orgSidPath: '',
createBySid: '',
createOrgSid: '',
createOrgName: '',
useOrgSid: '',
useOrgName: ''
},
rules: {}
}
@ -203,6 +215,20 @@ export default {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
this.formobj.orgSidPath = window.sessionStorage.getItem('defaultOrgPath')
this.formobj.createBySid = window.sessionStorage.getItem('userSid')
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) {
this.formobj.useOrgSid = resp.data
this.formobj.createOrgSid = resp.data
fetchBySid(resp.data).then((res) => {
if (res.success) {
this.formobj.createOrgName = res.data.name
this.formobj.useOrgName = res.data.name
}
})
}
})
},
showEdit(row) {
this.viewTitle = '【编辑】其它融产品'
@ -210,6 +236,14 @@ export default {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
req.fetchBySid({ sid: row.sid }).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.useDeptSids !== '' && this.formobj.useDeptSids !== null) {
this.useDept_list = this.formobj.useDeptSids.split(',')
}
}
})
},
bankShortChange(value) {
const choose = this.bankShort_list.filter((item) => item.sid === value)
@ -254,21 +288,84 @@ export default {
productTypeChange(value) {
const choose = this.productType_list.filter((item) => item.dictKey === value)
if (choose !== null && choose.length > 0) {
this.formobj.loanFinOtherPolicy.productTypeValue = choose[0].dictValue
this.formobj.productTypeValue = choose[0].dictValue
} else {
this.formobj.loanFinOtherPolicy.productTypeValue = ''
this.formobj.productTypeValue = ''
}
},
periodQTRChange(value) {
const choose = this.period_list.filter((item) => item.dictKey === value)
if (choose !== null && choose.length > 0) {
this.formobj.loanFinOtherPolicy.period = choose[0].dictValue
this.formobj.period = choose[0].dictValue
} else {
this.formobj.loanFinOtherPolicy.period = ''
this.formobj.period = ''
}
},
handleReturn() {
this.formobj = {}
saveOrUpdate() {
console.log(this.formobj)
this.$refs['form_obj'].validate((valid) => {
if (valid) {
if (this.useDept_list.length > 0) {
for (var i = 0; i < this.orgList.length; i++) {
for (var k = 0; k < this.useDept_list.length; k++) {
if (this.orgList[i].orgDeptSid === this.useDept_list[k]) {
this.formobj.useDeptList.push({
deptName: this.orgList[i].orgDeptName,
deptSid: this.orgList[i].orgDeptSid
})
}
}
}
}
this.submitdisabled = true
//
req.saveOrUpdate(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
bankShortName: '',
otherPolicyName: '',
bankSid: '',
mainPolicySid: '',
useDeptSids: '',
useDeptNames: '',
useDeptList: [],
productTypeKey: '',
productTypeValue: '',
busTypeKey: '',
busTypeValue: '',
vehCategoryKey: '',
vehCategoryValue: '',
vehTypeKey: '',
vehTypeValue: '',
maxLoanRatio: '',
maxLoanAmount: '',
period: '',
periodKey: '',
yearRatio: '',
validDateTo: '',
sid: '',
orgSidPath: '',
createBySid: '',
createOrgSid: '',
createOrgName: '',
useOrgSid: '',
useOrgName: ''
}
this.useDept_list = []
this.submitdisabled = false
this.$emit('doback')
}
}

9
anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagementInfo.vue

@ -99,7 +99,14 @@ export default {
period: '',
periodKey: '',
yearRatio: '',
validDateTo: ''
validDateTo: '',
sid: '',
orgSidPath: '',
createBySid: '',
createOrgSid: '',
createOrgName: '',
useOrgSid: '',
useOrgName: ''
},
rules: {}
}

Loading…
Cancel
Save