|
@@ -446,8 +446,41 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 一键测算之前的校验
|
|
|
|
+ validateCalc() {
|
|
|
|
+ const beforeValideFeilds = [
|
|
|
|
+ 'creditStatus',
|
|
|
|
+ 'zhuichangAmt',
|
|
|
|
+ 'overdueAmt',
|
|
|
|
+ 'daikuanAmt',
|
|
|
|
+ 'danbaoAmt',
|
|
|
|
+ 'lpOverdueNum',
|
|
|
|
+ 'lpOverdueMonth',
|
|
|
|
+ 'lpOverdueAmt',
|
|
|
|
+ 'lpCardStatus',
|
|
|
|
+ 'lpExistXingshi',
|
|
|
|
+ 'lpExistJinrong',
|
|
|
|
+ 'lrOverdueNum',
|
|
|
|
+ 'lrOverdueMonth',
|
|
|
|
+ 'lrOverdueAmt',
|
|
|
|
+ 'lrCardStatus',
|
|
|
|
+ 'lrExistXingshi',
|
|
|
|
+ 'lrExistJinrong'
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ for (let i = 0; i < beforeValideFeilds.length - 1; i++) {
|
|
|
|
+ if (!this.ruleForm[beforeValideFeilds[i]]) {
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return true
|
|
|
|
+ },
|
|
// 一键测算
|
|
// 一键测算
|
|
async handlerCalc() {
|
|
async handlerCalc() {
|
|
|
|
+ if (!this.validateCalc()) {
|
|
|
|
+ this.$message.warning('请填写完成的企业征信情况、法人征信及相关案件情况、 实际控制人征信及相关案件情况才能测算')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
const {
|
|
const {
|
|
creditStatus,
|
|
creditStatus,
|
|
zhuichangAmt,
|
|
zhuichangAmt,
|