Commit 5874f919 authored by ly's avatar ly

新增支付渠道

parent e18454c5
......@@ -93,12 +93,14 @@
<!--代扣提前结清-->
<protocol-settled v-if="ui.protocolSettled.visible" :loanNo="ui.protocolSettled.loanNo"
:loanSign="ui.protocolSettled.loanSign"
:clientNo="ui.protocolSettled.clientNo" :bizType="ui.protocolSettled.bizType" @callback="init"
:dialogVisible.sync="ui.protocolSettled.visible">
</protocol-settled>
<!--分笔代扣-->
<device-payment v-if="ui.devicePayment.visible" :loanNo="ui.devicePayment.loanNo"
:loanSign="ui.devicePayment.loanSign"
:orderNo="ui.devicePayment.orderNo" :clientNo="ui.devicePayment.clientNo" :bizType="ui.devicePayment.bizType"
@callback="init" :dialogVisible.sync="ui.devicePayment.visible">
</device-payment>
......@@ -241,12 +243,14 @@ export default {
planBen: "",
planXi: "",
planNo: "",
loanSign:''
},
protocolSettled: {
visible: false,
loanNo: "",
bizType: "",
clientNo: "",
loanSign:''
},
protocolSettledOne: {
visible: false,
......@@ -264,13 +268,15 @@ export default {
visible: false,
form: {}
},
loanSign:''//公司名称
};
},
async created() {
if (this.params) {
console.log(this.params, '参数')
const { loanNo } = this.params;
const { loanNo,loanSign } = this.params;
this.advanceLoanAmt.loanNo = loanNo;
this.loanSign=loanSign
await this.init();
}
},
......@@ -284,7 +290,7 @@ export default {
"/detail/customer/" + this.advanceLoanAmt.loanNo
);
const { success, result } = res.data;
// console.log(res.data.result,'888');
console.log(res.data.result,'888');
if (success && result != null) {
const { loanVo, applyVo, planVo, isChangePlan } = result;
this.advanceLoanAmt.loanNo = applyVo.loanNo;
......@@ -360,12 +366,15 @@ export default {
},
//代扣提前结清
protocolSettleAll() {
this.ui.protocolSettled = {
visible: true,
loanNo: this.advanceLoanAmt.loanNo,
bizType: this.advanceLoanAmt.bizType,
clientNo: this.advanceLoanAmt.clientNo,
loanSign:this.loanSign
};
// console.log(this.ui.protocolSettled,'this.loanSign2')
},
//代扣当期
protocolOne(record) {
......@@ -394,7 +403,9 @@ export default {
bizType: this.advanceLoanAmt.bizType,
clientNo: clientNo,
orderNo: orderNo,
loanSign:this.loanSign
};
// console.log(this.ui.devicePayment,'this.ui.devicePayment1')
},
// CF 账单变更 弹框打开
async handleChangeCFBill() {
......
......@@ -101,15 +101,26 @@
clearable
v-model="ruleForm.bankAccount"
class="select-bank-card"
@clear="clearVal"
>
<el-option
v-for="item in this.cardList"
:key="item.value"
@click.native="changeCard(item)"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="选择支付渠道" prop="paymentChannel">
<el-select clearable v-model="ruleForm.paymentChannel" class="select-bank-card" >
<el-option
v-for="item in this.channelList"
:key="item.payChannelApi"
:label="item.message"
:value="item.payChannelApi"></el-option>
</el-select>
</el-form-item>
<el-form-item label="自定义扣款金额" prop="selfMoney">
<el-col :span="12">
<el-input
......@@ -149,6 +160,9 @@ export default {
bizType: {
type: String,
},
loanSign: {
type: String
}
},
data() {
......@@ -163,6 +177,7 @@ export default {
breakAmt: "",
orderNO: "",
clientNo: "",
loanSign:'',
derateAmt: "",
interestAmt: "",
loanAmt: "",
......@@ -178,8 +193,9 @@ export default {
bankAccount: "",
bankOwner: "",
backAmt: "",
raiseAmt:''
raiseAmt:'',
//自定义金额
paymentChannel:'',
},
selfMoney: "",
rules: {
......@@ -190,6 +206,7 @@ export default {
trigger: "change",
},
],
paymentChannel: [{required: true, message: '支付渠道不能为空', trigger: 'blur'}],
// selfMoney: [
// {
// required: true,
......@@ -200,6 +217,7 @@ export default {
},
loginName: "",
backedNo: "",
channelList:[]
};
},
......@@ -223,7 +241,8 @@ export default {
loanNo: this.loanNo,
bizType: this.bizType,
clientNo: this.clientNo,
selfMoney:this.selfMoney
selfMoney:this.selfMoney,
loanSign:this.loanSign
};
this.bizTypeStr = this.bizType;
},
......@@ -232,6 +251,9 @@ export default {
},
methods: {
clearVal(){
this.ruleForm.paymentChannel="";
},
getData() {
// 查询当前的基础数据
this.$$get("/back/countSettle?loanNo=" + this.loanNo)
......@@ -266,6 +288,7 @@ export default {
clientNo: this.clientNo,
bizType: this.bizType,
loanNo: this.loanNo,
loanSign:this.loanSign
})
.then((res) => {
this.cardList = res.data.result;
......@@ -316,7 +339,17 @@ export default {
});
});
},
//银行卡对应的支付渠道
changeCard(val){
console.log(this.channelList,'1');
this.channelList=val.payChannelApiVOS;
console.log(val.payChannelApiVOS,'12');
if(val.payChannelApiVOS.length==0){
this.ruleForm.paymentChannel="";
}
},
//参数
buildParam() {
return {
......@@ -329,9 +362,9 @@ export default {
burdenAmt: this.ruleForm.burdenAmt,
rePayType: "BYSTEP",
restingOrderEnum: "YES",
payChannelApi:this.ruleForm.paymentChannel
};
},
/** 关闭处理 */
handleClose() {
this.visible = false;
......
......@@ -66,9 +66,24 @@
</el-col>
</el-form-item>
<el-form-item label="选择银行卡" prop="bankAccount">
<el-select clearable v-model="ruleForm.bankAccount" class="select-bank-card">
<el-option v-for="item in this.cardList" :key="item.value"
:label="item.label" :value="item.value"></el-option>
<el-select clearable v-model="ruleForm.bankAccount" class="select-bank-card" @clear="clearVal">
<el-option
v-for="item in this.cardList"
:key="item.value"
@click.native="changeCard(item)"
:label="item.label"
:value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item label="选择支付渠道" prop="paymentChannel">
<el-select clearable v-model="ruleForm.paymentChannel" class="select-bank-card">
<el-option
v-for="item in this.channelList"
:key="item.payChannelApi"
:label="item.message"
:value="item.payChannelApi"></el-option>
</el-select>
</el-form-item>
</el-form>
......@@ -98,6 +113,9 @@ export default {
clientNo: {
type: String
},
loanSign: {
type: String
}
},
data() {
......@@ -115,6 +133,7 @@ export default {
loanNo: '',
breakAmt: '',
clientNo: '',
loanSign:'',
derateAmt: '',
interestAmt: '',
loanAmt: '',
......@@ -130,6 +149,7 @@ export default {
bankAccount: '',
bankOwner: '',
raiseAmt:'',
paymentChannel:''
},
bizTypeStr: '',
rules: {
......@@ -139,8 +159,10 @@ export default {
bankAccount: [
{required: true, message: '支付银行卡不能为空', trigger: 'blur'}
],
paymentChannel: [{required: true, message: '支付渠道不能为空', trigger: 'blur'}],
},
loginName: '',
channelList:[]
}
},
......@@ -162,7 +184,7 @@ export default {
bizType: this.bizType,
clientNo: this.clientNo,
periodNo:this.periodNo,
loanSign:this.loanSign
};
this.bizTypeStr = this.bizType;
......@@ -184,8 +206,10 @@ export default {
this.$$post(`/back/bankCardList`, {
clientNo: this.clientNo,
bizType: this.bizType,
loanNo: this.loanNo
loanNo: this.loanNo,
loanSign:this.loanSign
}).then(res => {
this.cardList = res.data.result;
}).catch(error => {
this.$message.error(error || '网络异常,请稍后。。。');
......@@ -197,6 +221,9 @@ export default {
},
methods: {
clearVal(){
this.ruleForm.paymentChannel="";
},
/** 提交点击 */
backedProtocol() {
this.$refs['ruleForm'].validate((valid) => {
......@@ -218,7 +245,16 @@ export default {
})
},
//银行卡对应的支付渠道
changeCard(val){
console.log(val.payChannelApiVOS,'12');
this.channelList=val.payChannelApiVOS;
console.log(this.channelList,'121');
if(val.payChannelApiVOS.length==0){
this.ruleForm.paymentChannel="";
}
// console.log(this.channelList,'1214');
},
//参数
buildParam() {
return {
......@@ -230,10 +266,10 @@ export default {
bankAccount: this.ruleForm.bankAccount,
periodNo:this.ruleForm.periodNo,
rePayType: 'BYALL',
restingOrderEnum:'NO'
restingOrderEnum:'NO',
payChannelApi:this.ruleForm.paymentChannel
};
},
/** 关闭处理 */
handleClose() {
this.visible = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment