|
@@ -160,7 +160,8 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="还款方式" prop="payBackMethod" style="width: 100%">
|
|
|
<el-radio-group v-model="ruleForm.payBackMethod" :disabled="disabled">
|
|
|
- <el-radio v-for="(item, index) in constant.paymentMethodForInterestManagementFee" :key="index" :label="item.code">{{ item.name }}</el-radio>
|
|
|
+ <!-- constant.paymentMethodForInterestManagementFee 苏商银行修改 -->
|
|
|
+ <el-radio v-for="(item, index) in getPayBackMethod " :key="index" :label="item.code">{{ item.name }}</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="融资利率(年化)" prop="financingRate" class="one-form-item">
|
|
@@ -222,8 +223,8 @@
|
|
|
<script>
|
|
|
import { mapGetters } from 'vuex'
|
|
|
import { getInstitutionName } from '@/api/financialManagement/financialManagement'
|
|
|
-import { getBusinessTypeByManagement, getBankCard, getExpiration } from '@/api/financingManage'
|
|
|
-import { startAndEndValue } from '@/utils'
|
|
|
+import { getBusinessTypeByManagement, getBankCard, getExpiration, getSmbFinancingRate } from '@/api/financingManage'
|
|
|
+import { startAndEndValue, filterListData } from '@/utils'
|
|
|
export default {
|
|
|
props: {
|
|
|
disabled: {
|
|
@@ -231,7 +232,7 @@ export default {
|
|
|
default: false
|
|
|
},
|
|
|
detailsInfo: {
|
|
|
- type: Object,
|
|
|
+ type: Object,
|
|
|
default: () => {}
|
|
|
},
|
|
|
endDate: {
|
|
@@ -347,6 +348,15 @@ export default {
|
|
|
},
|
|
|
businessInfo() {
|
|
|
return this.businessTypeInfo.find(item => item.businessTypeDic.id === this.ruleForm.businessType)
|
|
|
+ },
|
|
|
+ // 江苏苏商银行股份有限公司-单独判断
|
|
|
+ getPayBackMethod() {
|
|
|
+ if (this.ruleForm.institutionName === '江苏苏商银行股份有限公司') {
|
|
|
+ // 还款方式为 管理费前收利息按月收
|
|
|
+ return filterListData(this.constant.paymentMethodForInterestManagementFee, ['paymentMethodForInterestManagementFee_A', 'paymentMethodForInterestManagementFee_B', 'paymentMethodForInterestManagementFee_C'])
|
|
|
+ } else {
|
|
|
+ return filterListData(this.constant.paymentMethodForInterestManagementFee, ['paymentMethodForInterestManagementFee_D'])
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -359,10 +369,13 @@ export default {
|
|
|
transferNoticeMethodList: transferNoticeMethodList || [],
|
|
|
serviceScopeList: serviceScopeList || []
|
|
|
})
|
|
|
+
|
|
|
this.ruleFormKey += 1
|
|
|
this.$nextTick(() => {
|
|
|
setTimeout(() => {
|
|
|
this.getBusinessTypeInfoData()
|
|
|
+ // 苏商银行调用方法
|
|
|
+ this.$emit('getInstitutionName', this.ruleForm.institutionName)
|
|
|
}, 500)
|
|
|
})
|
|
|
}
|
|
@@ -458,13 +471,41 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ // 出资方发生变化
|
|
|
getBusinessTypeInfo() {
|
|
|
this.ruleForm.businessType = ''
|
|
|
this.ruleForm.accountName = ''
|
|
|
this.ruleForm.disburseExpiryDate = ''
|
|
|
this.ruleFormKey += 1
|
|
|
this.getBusinessTypeInfoData()
|
|
|
+ // 苏商银行调用方法
|
|
|
+ this.getChangeSmbInfo()
|
|
|
+ },
|
|
|
+ // 苏商银行单独判断
|
|
|
+ getChangeSmbInfo() {
|
|
|
+ this.$emit('getInstitutionName', this.ruleForm.institutionName)
|
|
|
+ if (this.ruleForm.institutionName === '江苏苏商银行股份有限公司') {
|
|
|
+ const { id } = this.$route.params
|
|
|
+ getSmbFinancingRate({ financingBasicInfoId: id }).then(({ data }) => {
|
|
|
+ this.ruleForm.interestCalculate = 1
|
|
|
+ this.ruleForm.marginRatio = 0
|
|
|
+ this.ruleForm.otherFeeAmount = 0
|
|
|
+ this.ruleForm.financingRate = data.approvedInterestRate
|
|
|
+ }).catch(() => {
|
|
|
+ this.$confirm('供应商不支持该资方', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ showCancelButton: false,
|
|
|
+ closeOnClickModal: false,
|
|
|
+ showClose: false,
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.ruleForm.institutionName = ''
|
|
|
+ this.$emit('getInstitutionName', this.ruleForm.institutionName)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
+ // 业务类型发生变化
|
|
|
getCardInfo() {
|
|
|
this.ruleForm.accountName = ''
|
|
|
this.ruleForm.disburseExpiryDate = ''
|