|
|
@ -98,6 +98,45 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
|
<div v-if="different"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item style="text-align: right"><el-checkbox style="margin-right: 5px" v-model="formobj.isDifferent" />其中一台车不同</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<div v-if="formobj.isDifferent"> |
|
|
|
<div class="title">主金融产品<span>{{ (formobj.policyName) }}</span></div> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty"><span class="icon">*</span>首期月还</div> |
|
|
|
<el-form-item prop="singleMainFirstRepay"><el-input class="addinputInfo addinputw" v-model="formobj.singleMainFirstRepay" clearable placeholder=""/></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty"><span class="icon">*</span>期间月还</div> |
|
|
|
<el-form-item prop="singleMainMidRepay"><el-input class="addinputInfo addinputw" v-model="formobj.singleMainMidRepay" clearable placeholder=""/></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty"><span class="icon">*</span>末期月还</div> |
|
|
|
<el-form-item prop="singleMainLastRepay"><el-input class="addinputInfo addinputw" v-model="formobj.singleMainLastRepay" clearable placeholder=""/></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<div class="title">其它融<span>({{ formobj.otherPolicyName }})</span></div> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty"><span class="icon">*</span>首期月还</div> |
|
|
|
<el-form-item prop="singleOtherFirstRepay"><el-input class="addinputInfo addinputw" v-model="formobj.singleOtherFirstRepay" clearable placeholder=""/></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty"><span class="icon">*</span>期间月还</div> |
|
|
|
<el-form-item prop="singleOtherMidRepay"><el-input class="addinputInfo addinputw" v-model="formobj.singleOtherMidRepay" clearable placeholder=""/></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty"><span class="icon">*</span>末期月还</div> |
|
|
|
<el-form-item prop="singleOtherLastRepay"><el-input class="addinputInfo addinputw" v-model="formobj.singleOtherLastRepay" clearable placeholder=""/></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -182,9 +221,76 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
var singleMainFirstRepay = (rule, value, callback) => { |
|
|
|
if (value === '') { |
|
|
|
callback(new Error('主金融产品期间月还不能为空')) |
|
|
|
} else { |
|
|
|
if (value == '0') { |
|
|
|
callback(new Error('主金融产品期间月还不能为零')) |
|
|
|
} else { |
|
|
|
callback() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
var singleMainMidRepay = (rule, value, callback) => { |
|
|
|
if (value === '') { |
|
|
|
callback(new Error('主金融产品期间月还不能为空')) |
|
|
|
} else { |
|
|
|
if (value == '0') { |
|
|
|
callback(new Error('主金融产品期间月还不能为零')) |
|
|
|
} else { |
|
|
|
callback() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
var singleMainLastRepay = (rule, value, callback) => { |
|
|
|
if (value === '') { |
|
|
|
callback(new Error('主金融产品末期月还不能为空')) |
|
|
|
} else { |
|
|
|
if (value == '0') { |
|
|
|
callback(new Error('主金融产品末期月还不能为零')) |
|
|
|
} else { |
|
|
|
callback() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
var singleOtherFirstRepay = (rule, value, callback) => { |
|
|
|
if (value === '') { |
|
|
|
callback(new Error('其它融首期月还不能为空')) |
|
|
|
} else { |
|
|
|
if (value == '0') { |
|
|
|
callback(new Error('其它融首期月还不能为零')) |
|
|
|
} else { |
|
|
|
callback() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
var singleOtherMidRepay = (rule, value, callback) => { |
|
|
|
if (value === '') { |
|
|
|
callback(new Error('其它融期间月还不能为空')) |
|
|
|
} else { |
|
|
|
if (value == '0') { |
|
|
|
callback(new Error('其它融期间月还不能为零')) |
|
|
|
} else { |
|
|
|
callback() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
var singleOtherLastRepay = (rule, value, callback) => { |
|
|
|
if (value === '') { |
|
|
|
callback(new Error('其它融末期月还不能为空')) |
|
|
|
} else { |
|
|
|
if (value == '0') { |
|
|
|
callback(new Error('其它融末期月还不能为零')) |
|
|
|
} else { |
|
|
|
callback() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return { |
|
|
|
viewState: 1, |
|
|
|
submitdisabled: false, |
|
|
|
different: false, |
|
|
|
formobj: { |
|
|
|
salesOrderSid: '', |
|
|
|
solutionsSid: '', |
|
|
@ -208,6 +314,13 @@ export default { |
|
|
|
otherMidRepay: '', |
|
|
|
otherLastRepay: '', |
|
|
|
isOtherPolicy: '', |
|
|
|
isDifferent: false, |
|
|
|
singleMainFirstRepay: '', |
|
|
|
singleMainMidRepay: '', |
|
|
|
singleMainLastRepay: '', |
|
|
|
singleOtherFirstRepay: '', |
|
|
|
singleOtherMidRepay: '', |
|
|
|
singleOtherLastRepay: '', |
|
|
|
userSid: '', |
|
|
|
solutionsDetailsssVo: [] |
|
|
|
}, |
|
|
@ -219,6 +332,12 @@ export default { |
|
|
|
otherFirstRepay: [{ required: true, validator: otherFirstRepay, trigger: 'blur' }], |
|
|
|
otherMidRepay: [{ required: true, validator: otherMdRepay, trigger: 'blur' }], |
|
|
|
otherLastRepay: [{ required: true, validator: otherLastRepay, trigger: 'blur' }], |
|
|
|
singleMainFirstRepay: [{ required: true, validator: singleMainFirstRepay, trigger: 'blur' }], |
|
|
|
singleMainMidRepay: [{ required: true, validator: singleMainMidRepay, trigger: 'blur' }], |
|
|
|
singleMainLastRepay: [{ required: true, validator: singleMainLastRepay, trigger: 'blur' }], |
|
|
|
singleOtherFirstRepay: [{ required: true, validator: singleOtherFirstRepay, trigger: 'blur' }], |
|
|
|
singleOtherMidRepay: [{ required: true, validator: singleOtherMidRepay, trigger: 'blur' }], |
|
|
|
singleOtherLastRepay: [{ required: true, validator: singleOtherLastRepay, trigger: 'blur' }], |
|
|
|
otherBankNo: [{ required: true, message: '其它融资方合同号不能为空', trigger: 'blur' }], |
|
|
|
otherRepayDate: [{ required: true, message: '其它融首期还款日不能为空', trigger: 'change' }] |
|
|
|
} |
|
|
@ -232,6 +351,9 @@ export default { |
|
|
|
req.loanCreateSchedule({ salesOrderSid: sid }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.formobj = res.data |
|
|
|
if (parseInt(this.formobj.vehCount) > 1) { |
|
|
|
this.different = true |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
@ -295,10 +417,18 @@ export default { |
|
|
|
otherMidRepay: '', |
|
|
|
otherLastRepay: '', |
|
|
|
isOtherPolicy: '', |
|
|
|
isDifferent: false, |
|
|
|
singleMainFirstRepay: '', |
|
|
|
singleMainMidRepay: '', |
|
|
|
singleMainLastRepay: '', |
|
|
|
singleOtherFirstRepay: '', |
|
|
|
singleOtherMidRepay: '', |
|
|
|
singleOtherLastRepay: '', |
|
|
|
userSid: '', |
|
|
|
solutionsDetailsssVo: [] |
|
|
|
} |
|
|
|
this.submitdisabled = false |
|
|
|
this.different = false |
|
|
|
this.$emit('doback') |
|
|
|
} |
|
|
|
} |
|
|
|