|
@@ -3,7 +3,7 @@
|
|
<cy-info-title>融资信息</cy-info-title>
|
|
<cy-info-title>融资信息</cy-info-title>
|
|
<el-form ref="ruleForm" :key="ruleFormKey" :model="ruleForm" :rules="rules" label-position="top" class="rule-form-orange">
|
|
<el-form ref="ruleForm" :key="ruleFormKey" :model="ruleForm" :rules="rules" label-position="top" class="rule-form-orange">
|
|
<el-form-item label="融资金额" prop="financingAmount">
|
|
<el-form-item label="融资金额" prop="financingAmount">
|
|
- <cy-amount-input v-model="ruleForm.financingAmount" :disabled="disabled" placeholder="请输入融资金额" :clearable="false" />
|
|
|
|
|
|
+ <cy-amount-input v-model="ruleForm.financingAmount" :disabled="disabled" placeholder="请输入融资金额" :clearable="false" @blur="getRepaymentPersonFromSmb" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="币种" prop="currencyCode">
|
|
<el-form-item label="币种" prop="currencyCode">
|
|
<el-select
|
|
<el-select
|
|
@@ -222,7 +222,7 @@
|
|
<script>
|
|
<script>
|
|
import { mapGetters } from 'vuex'
|
|
import { mapGetters } from 'vuex'
|
|
import { getInstitutionName } from '@/api/financialManagement/financialManagement'
|
|
import { getInstitutionName } from '@/api/financialManagement/financialManagement'
|
|
-import { getBusinessTypeByManagement, getBankCard, getExpiration, getSmbFinancingRate } from '@/api/financingManage'
|
|
|
|
|
|
+import { getBusinessTypeByManagement, getBankCard, getExpiration, getSmbFinancingRate, getSmbRepaymentPerson } from '@/api/financingManage'
|
|
import { startAndEndValue, filterListData } from '@/utils'
|
|
import { startAndEndValue, filterListData } from '@/utils'
|
|
export default {
|
|
export default {
|
|
props: {
|
|
props: {
|
|
@@ -490,6 +490,8 @@ export default {
|
|
this.ruleForm.marginRatio = 0
|
|
this.ruleForm.marginRatio = 0
|
|
this.ruleForm.otherFeeAmount = 0
|
|
this.ruleForm.otherFeeAmount = 0
|
|
this.ruleForm.financingRate = data.approvedInterestRate
|
|
this.ruleForm.financingRate = data.approvedInterestRate
|
|
|
|
+ // 调用 - 苏商银行获取相关还款责任人
|
|
|
|
+ this.getRepaymentPersonFromSmb()
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
this.$confirm('供应商不支持该资方', '提示', {
|
|
this.$confirm('供应商不支持该资方', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -504,6 +506,19 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 苏商银行获取相关还款责任人
|
|
|
|
+ getRepaymentPersonFromSmb() {
|
|
|
|
+ const { id } = this.$route.params
|
|
|
|
+ if (this.ruleForm.financingAmount && this.ruleForm.institutionName === '江苏苏商银行股份有限公司') {
|
|
|
|
+ getSmbRepaymentPerson({ financingBasicInfoId: id, arlpAmt: this.ruleForm.financingAmount }).then(({ data }) => {
|
|
|
|
+ const params = {
|
|
|
|
+ respRepay: true,
|
|
|
|
+ rltRepayList: data
|
|
|
|
+ }
|
|
|
|
+ this.$emit('getSmbRepaymentPerson', params)
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 业务类型发生变化
|
|
// 业务类型发生变化
|
|
getCardInfo() {
|
|
getCardInfo() {
|
|
this.ruleForm.accountName = ''
|
|
this.ruleForm.accountName = ''
|