From d679b708cced15c0ae91f0f96198f9ede6af10e7 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Tue, 1 Aug 2023 14:00:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=85=B6=E5=AE=83=E8=9E=8D?= =?UTF-8?q?=E4=BA=A7=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../otherfinancialpolicymanagement.js | 32 ++-- anrui-riskcenter-ui/src/router/index.js | 16 ++ .../otherfinancialpolicymanagement.vue | 137 +++++++++--------- .../otherfinancialpolicymanagementAdd.vue | 125 ++++++++++++++-- .../otherfinancialpolicymanagementInfo.vue | 9 +- 5 files changed, 225 insertions(+), 94 deletions(-) diff --git a/anrui-riskcenter-ui/src/api/otherfinancialpolicymanagement/otherfinancialpolicymanagement.js b/anrui-riskcenter-ui/src/api/otherfinancialpolicymanagement/otherfinancialpolicymanagement.js index 31fef2c5d0..6430ecd5bd 100644 --- a/anrui-riskcenter-ui/src/api/otherfinancialpolicymanagement/otherfinancialpolicymanagement.js +++ b/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' } + }) } } diff --git a/anrui-riskcenter-ui/src/router/index.js b/anrui-riskcenter-ui/src/router/index.js index 0dbb23a566..c5be814d53 100644 --- a/anrui-riskcenter-ui/src/router/index.js +++ b/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, diff --git a/anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagement.vue b/anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagement.vue index c5548df426..9aa0920f0e 100644 --- a/anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagement.vue +++ b/anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagement.vue @@ -8,24 +8,24 @@
{{ searchxianshitit }}
- - - - + + - - - + + + @@ -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() { diff --git a/anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagementAdd.vue b/anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagementAdd.vue index b08be77a3e..7c2005a68e 100644 --- a/anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagementAdd.vue +++ b/anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagementAdd.vue @@ -3,6 +3,7 @@
{{ viewTitle }}
+ 保存 关闭
@@ -19,7 +20,7 @@
其他融名称
- {{ formobj.otherPolicyName }} + {{ formobj.bankShortName + formobj.productTypeValue + formobj.maxLoanRatio + formobj.period }}
适用销售部门
@@ -60,7 +61,7 @@
产品类别
- + @@ -68,13 +69,13 @@
最高融资比例(%)
- +
最高融资额(元)
- +
@@ -82,7 +83,7 @@
期数
- + @@ -90,7 +91,7 @@
年利率(%)
- +
@@ -107,14 +108,18 @@