|
|
@ -18,7 +18,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="15" style="border-right: 0px"> |
|
|
|
<div class="span-sty" style="border-right: 0px"><span>适用销售部门</span></div> |
|
|
|
<div class="span-sty" style="border-right: 0px"><span><span class="icon">*</span>适用销售部门:</span></div> |
|
|
|
<el-form-item> |
|
|
|
<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> |
|
|
@ -28,8 +28,8 @@ |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>资方简称</span></div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>资方简称</span></div> |
|
|
|
<el-form-item prop="bankSid"> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.bankSid" @change="bankShortChange" placeholder="请选择" clearable filterable> |
|
|
|
<el-option v-for="item in bankShort_list" :key="item.sid" :label="item.name" :value="item.sid"></el-option> |
|
|
|
</el-select> |
|
|
@ -52,7 +52,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>车辆功能</span></div> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>车辆功能</span></div> |
|
|
|
<el-form-item> |
|
|
|
<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> |
|
|
@ -62,16 +62,16 @@ |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>担保类型</span></div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>担保类型</span></div> |
|
|
|
<el-form-item prop="guaranteeTypeKey"> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.guaranteeTypeKey" @change="guaranteeTypeChange" placeholder="请选择" clearable filterable> |
|
|
|
<el-option v-for="item in guaranteeType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>是否打包</span></div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>是否打包</span></div> |
|
|
|
<el-form-item prop="isPack"> |
|
|
|
<el-radio-group class="addinputInfo" style="font-size: 1px" v-model="formobj.isPack"> |
|
|
|
<el-radio label="1">是</el-radio> |
|
|
|
<el-radio label="0">否</el-radio> |
|
|
@ -79,16 +79,16 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>首付比例</span></div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>首付比例</span></div> |
|
|
|
<el-form-item prop="downPayRatioKey"> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.downPayRatioKey" @change="downPayRatioChange" placeholder="请选择" clearable filterable> |
|
|
|
<el-option v-for="item in downPayRatio_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>最低首付比例</span></div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>最低首付比例</span></div> |
|
|
|
<el-form-item prop="downPayRatioLeastKey"> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.downPayRatioLeastKey" @change="downPayRatioLeastChange" placeholder="请选择" clearable filterable> |
|
|
|
<el-option v-for="item in downPayRatioLeast_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option> |
|
|
|
</el-select> |
|
|
@ -97,48 +97,48 @@ |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>保证金比例</span></div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>保证金比例</span></div> |
|
|
|
<el-form-item prop="bondRatioKey"> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.bondRatioKey" @change="bondRatioChange" placeholder="请选择" clearable filterable> |
|
|
|
<el-option v-for="item in bondRatio_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>保证金类型</span></div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>保证金类型</span></div> |
|
|
|
<el-form-item prop="bondTypeKey"> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.bondTypeKey" @change="bondTypeChange" placeholder="请选择" clearable filterable> |
|
|
|
<el-option v-for="item in bondType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>期数</span></div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>期数</span></div> |
|
|
|
<el-form-item prop="periodKey"> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.periodKey" @change="periodChange" 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-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>标准年利率(%)</span></div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>标准年利率(%)</span></div> |
|
|
|
<el-form-item prop="yearRatio"> |
|
|
|
<el-input v-model="formobj.yearRatio" @keyup.native="UpNumber" class="addinputInfo" clearable placeholder=""/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>服务费类型</span></div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>服务费类型</span></div> |
|
|
|
<el-form-item prop="serviceAmountTypeKey"> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.serviceAmountTypeKey" @change="serviceAmountTypeChange" placeholder="请选择" clearable filterable> |
|
|
|
<el-option v-for="item in serviceAmountType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>服务费<span v-show="formobj.serviceAmountTypeValue !== '固定金额'">(%)</span><span v-show="formobj.serviceAmountTypeValue === '固定金额'">(元)</span></span></div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>服务费<span v-show="formobj.serviceAmountTypeValue !== '固定金额'">(%)</span><span v-show="formobj.serviceAmountTypeValue === '固定金额'">(元)</span></span></div> |
|
|
|
<el-form-item prop="serviceAmount"> |
|
|
|
<el-input v-model="formobj.serviceAmount" @keyup.native="UpNumber" class="addinputInfo" clearable placeholder=""/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -169,16 +169,16 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>贴息放款类型</span></div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>贴息放款类型</span></div> |
|
|
|
<el-form-item prop="discountUseTypeKey"> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.discountUseTypeKey" @change="discountUseTypeChange" placeholder="请选择" clearable filterable> |
|
|
|
<el-option v-for="item in discountUseType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>有效期至</span></div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>有效期至</span></div> |
|
|
|
<el-form-item prop="validDateTo"> |
|
|
|
<el-date-picker class="addinputInfo" value-format="yyyy-MM-dd" format="yyyy-MM-dd" v-model="formobj.validDateTo" type="date" placeholder="选择日期"></el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -192,32 +192,32 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<div class="title"><el-checkbox v-model="formobj.isOtherProduct" @change="changeIsOtherProduct" style="padding-right: 5px"/>其它融信息</div> |
|
|
|
<div v-show="formobj.isOtherProduct"> |
|
|
|
<div v-if="formobj.isOtherProduct"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>产品类别</span></div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>产品类别</span></div> |
|
|
|
<el-form-item prop="productTypeKey"> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.loanFinOtherPolicy.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> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>最高融资比例(%)</span></div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>最高融资比例(%)</span></div> |
|
|
|
<el-form-item prop="maxLoanRatio"> |
|
|
|
<el-input v-model="formobj.loanFinOtherPolicy.maxLoanRatio" @keyup.native="UpNumber" class="addinputInfo" clearable placeholder=""/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<div class="span-sty"><span>最高融资额(元)</span></div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>最高融资额(元)</span></div> |
|
|
|
<el-form-item prop="maxLoanAmount"> |
|
|
|
<el-input v-model="formobj.loanFinOtherPolicy.maxLoanAmount" @keyup.native="UpNumber" class="addinputInfo" clearable placeholder=""/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>期数</span></div> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>期数</span></div> |
|
|
|
<el-form-item> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.loanFinOtherPolicy.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> |
|
|
@ -225,7 +225,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty"><span>年利率(%)</span></div> |
|
|
|
<div class="span-sty"><span><span class="icon">*</span>年利率(%)</span></div> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="formobj.loanFinOtherPolicy.yearRatio" @keyup.native="UpNumber" class="addinputInfo" clearable placeholder=""/> |
|
|
|
</el-form-item> |
|
|
@ -313,7 +313,21 @@ export default { |
|
|
|
vehTypeValueList: [], |
|
|
|
yearRatio: '' |
|
|
|
}, |
|
|
|
rules: {} |
|
|
|
rules: { |
|
|
|
bankSid: [{ required: true, message: '资方简称不能为空', trigger: 'change' }], |
|
|
|
guaranteeTypeKey: [{ required: true, message: '担保类型不能为空', trigger: 'change' }], |
|
|
|
isPack: [{ required: true, message: '是否打包不能为空', trigger: 'change' }], |
|
|
|
downPayRatioKey: [{ required: true, message: '首付比例不能为空', trigger: 'change' }], |
|
|
|
downPayRatioLeastKey: [{ required: true, message: '最低首付比例不能为空', trigger: 'change' }], |
|
|
|
bondRatioKey: [{ required: true, message: '保证金比例不能为空', trigger: 'change' }], |
|
|
|
bondTypeKey: [{ required: true, message: '保证金类型不能为空', trigger: 'change' }], |
|
|
|
periodKey: [{ required: true, message: '期数不能为空', trigger: 'change' }], |
|
|
|
yearRatio: [{ required: true, message: '标准年利率不能为空', trigger: 'blur' }], |
|
|
|
serviceAmountTypeKey: [{ required: true, message: '服务费类型不能为空', trigger: 'change' }], |
|
|
|
serviceAmount: [{ required: true, message: '服务费不能为空', trigger: 'blur' }], |
|
|
|
discountUseTypeKey: [{ required: true, message: '贴息放款类型不能为空', trigger: 'change' }], |
|
|
|
validDateTo: [{ required: true, message: '有效期不能为空', trigger: 'change' }] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -550,15 +564,45 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '适用销售部门不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.vehTypeKeyList.length > 0) { |
|
|
|
const aa = [] |
|
|
|
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) |
|
|
|
aa.push(this.vehicleFunction_list[m].dictValue) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.formobj.vehTypeValueList = aa |
|
|
|
} else { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '车辆功能不能为空' }) |
|
|
|
this.formobj.vehTypeValueList = [] |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.isOtherProduct) { |
|
|
|
if (this.formobj.loanFinOtherPolicy.productTypeKey === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '其它融中产品类别不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.loanFinOtherPolicy.maxLoanRatio === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '其它融中最高融资比例不能为空' }) |
|
|
|
return |
|
|
|
}if (this.formobj.loanFinOtherPolicy.maxLoanAmount === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '其它融中最高融资额不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.loanFinOtherPolicy.periodKey === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '其它融中期数不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.loanFinOtherPolicy.yearRatio === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '其它融中年利率不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
this.submitdisabled = true |
|
|
|
// 保存 |
|
|
@ -628,6 +672,7 @@ export default { |
|
|
|
} |
|
|
|
this.useDept_list = [] |
|
|
|
this.submitdisabled = false |
|
|
|
this.$refs['form_obj'].resetFields() |
|
|
|
this.$emit('doback') |
|
|
|
} |
|
|
|
} |
|
|
@ -655,4 +700,7 @@ export default { |
|
|
|
justify-content: flex-start; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
/deep/ .el-form-item__error { |
|
|
|
margin-left: 130px !important; |
|
|
|
} |
|
|
|
</style> |
|
|
|