Browse Source

完善其它融产品管理

master
yunuo970428 2 years ago
parent
commit
a384bf4640
  1. 54
      anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagementAdd.vue
  2. 18
      anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagementInfo.vue

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

@ -9,7 +9,15 @@
</div>
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #e0e3eb">
<el-row style="border-left: 0px">
<el-col :span="24" style="border-right: 0px">
<div class="span-sty" style="border-right: 0px">其他融名称:</div>
<el-form-item><span class="addinputInfo">
{{ formobj.bankShortName }} {{ formobj.productTypeValue }} {{ formobj.period !=='' ? formobj.period + '期' : '' }} {{ formobj.maxLoanRatio !== '' ? formobj.maxLoanRatio + '%' : '' }}
</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">资方简称</div>
<el-form-item>
@ -18,16 +26,10 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">其他融名称</div>
<el-form-item><span class="addinputInfo">
{{ formobj.bankShortName }} {{ formobj.productTypeValue }} {{ formobj.period !=='' ? formobj.maxLoanRatio + '期' : '' }} {{ formobj.maxLoanRatio !== '' ? formobj.maxLoanRatio + '%' : '' }}
</span></el-form-item>
</el-col>
<el-col :span="8">
<el-col :span="16">
<div class="span-sty">适用销售部门</div>
<el-form-item>
<el-select class="addinputInfo" v-model="useDept_list" placeholder="请选择" clearable filterable multiple>
<el-select class="addinputInfo" v-model="useDept_list" placeholder="请选择" style="width: 60%" clearable filterable multiple>
<el-option v-for="item in orgList" :key="item.orgDeptSid" :label="item.orgDeptName" :value="item.orgDeptSid"></el-option>
</el-select>
</el-form-item>
@ -53,7 +55,7 @@
<el-col :span="8">
<div class="span-sty">车辆功能</div>
<el-form-item>
<el-select class="addinputInfo" v-model="formobj.vehTypeKey" @change="vehTypeChange" placeholder="请选择" clearable filterable>
<el-select class="addinputInfo" v-model="formobj.vehTypeKeyList" placeholder="请选择" clearable filterable multiple>
<el-option v-for="item in vehicleFunction_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option>
</el-select>
</el-form-item>
@ -71,13 +73,13 @@
<el-col :span="8">
<div class="span-sty">最高融资比例(%)</div>
<el-form-item>
<el-input v-model="formobj.maxLoanRatio" @keyup.native="UpNumber" class="addinputw addinputInfo" clearable placeholder=""/>
<el-input v-model="formobj.maxLoanRatio" @keyup.native="UpNumber" class="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.maxLoanAmount" @keyup.native="UpNumber" class="addinputw addinputInfo" clearable placeholder=""/>
<el-input v-model="formobj.maxLoanAmount" @keyup.native="UpNumber" class="addinputInfo" clearable placeholder=""/>
</el-form-item>
</el-col>
</el-row>
@ -93,7 +95,7 @@
<el-col :span="8">
<div class="span-sty">年利率(%)</div>
<el-form-item>
<el-input v-model="formobj.yearRatio" @keyup.native="UpNumber" class="addinputw addinputInfo" clearable placeholder=""/>
<el-input v-model="formobj.yearRatio" @keyup.native="UpNumber" class="addinputInfo" clearable placeholder=""/>
</el-form-item>
</el-col>
<el-col :span="8">
@ -143,8 +145,8 @@ export default {
busTypeValue: '',
vehCategoryKey: '',
vehCategoryValue: '',
vehTypeKey: '',
vehTypeValue: '',
vehTypeKeyList: [],
vehTypeValueList: [],
maxLoanRatio: '',
maxLoanAmount: '',
period: '',
@ -271,14 +273,6 @@ export default {
this.formobj.vehCategoryValue = ''
}
},
vehTypeChange(value) {
const choose = this.vehicleFunction_list.filter((item) => item.dictKey === value)
if (choose !== null && choose.length > 0) {
this.formobj.vehTypeValue = choose[0].dictValue
} else {
this.formobj.vehTypeValue = ''
}
},
periodChange(value) {
const choose = this.period_list.filter((item) => item.dictKey === value)
if (choose !== null && choose.length > 0) {
@ -319,6 +313,15 @@ export default {
}
}
}
if (this.formobj.vehTypeKeyList.length > 0) {
for (var m = 0; m < this.vehicleFunction_list.length; m++) {
for (var n = 0; n < this.formobj.vehTypeKeyList.length; n++) {
if (this.vehicleFunction_list[m].dictKey === this.formobj.vehTypeKeyList[n]) {
this.formobj.vehTypeValueList.push(this.vehicleFunction_list[m].dictValue)
}
}
}
}
this.submitdisabled = true
//
req.saveOrUpdate(this.formobj).then((res) => {
@ -350,8 +353,8 @@ export default {
busTypeValue: '',
vehCategoryKey: '',
vehCategoryValue: '',
vehTypeKey: '',
vehTypeValue: '',
vehTypeKeyList: [],
vehTypeValueList: [],
maxLoanRatio: '',
maxLoanAmount: '',
period: '',
@ -380,5 +383,6 @@ export default {
}
.addinputInfo {
margin-left: 110px !important;
width: calc(100% - 120px);
}
</style>

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

@ -8,20 +8,22 @@
</div>
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="8">
<div class="span-sty">资方简称</div>
<el-form-item><span class="addinputInfo">{{ formobj.bankShortName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">其他融名称</div>
<el-row style="border-left: 0px">
<el-col :span="24" style="border-right: 0px">
<div class="span-sty" style="border-right: 0px">其他融名称:</div>
<el-form-item>
<span class="addinputInfo">
{{ formobj.bankShortName }} {{ formobj.productTypeValue }} {{ formobj.period !=='' ? formobj.period + '期' : '' }} {{ formobj.maxLoanRatio !== '' ? formobj.maxLoanRatio + '%' : '' }}
</span>
</el-form-item>
</el-col>
<el-col :span="8" class="tlineheightb">
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">资方简称</div>
<el-form-item><span class="addinputInfo">{{ formobj.bankShortName }}</span></el-form-item>
</el-col>
<el-col :span="16" class="tlineheightb">
<div class="span-sty">适用销售部门</div>
<el-form-item><span class="addinputInfo">{{ formobj.useDeptNames }}</span></el-form-item>
</el-col>

Loading…
Cancel
Save