|
|
|
@ -109,14 +109,18 @@ export default{ |
|
|
|
|
getOperation(param).then((data)=>{ |
|
|
|
|
if(data.status == 200) { |
|
|
|
|
var list = data.data.judgmentRuleReqs |
|
|
|
|
console.log(data) |
|
|
|
|
for (var i = 0; i < list.length; i++) { |
|
|
|
|
if (list[i].answerId == '85') {sessionStorage.setItem('firmClientIdentity', list[i].emptyTwo)} //卡号 |
|
|
|
|
if (list[i].answerId == '85') { |
|
|
|
|
sessionStorage.setItem('nomCurrentWithdrawalCard', list[i].emptyTwo) |
|
|
|
|
// console.log(list[i].emptyTwo) |
|
|
|
|
} //卡号 |
|
|
|
|
if (list[i].answerId == '86') {this.form.userName = list[i].emptyTwo} //客户姓名 |
|
|
|
|
if (list[i].answerId == '87') {this.form.currency = list[i].emptyTwo} //币种 |
|
|
|
|
if (list[i].answerId == '88') {this.form.goldLogo = list[i].emptyTwo} //钞汇标识 |
|
|
|
|
if (list[i].answerId == '89') {this.form.money = list[i].emptyTwo} //金额 |
|
|
|
|
if (list[i].answerId == '90') {this.form.chargeWay = list[i].emptyTwo} //支取方式 |
|
|
|
|
if (list[i].answerId == '91') {sessionStorage.setItem('firmClientIdentity', list[i].emptyTwo)} //支取密码 |
|
|
|
|
// if (list[i].answerId == '91') {sessionStorage.setItem('firmClientIdentity', list[i].emptyTwo)} //支取密码 |
|
|
|
|
if (list[i].answerId == '92') {this.form.serviceCharge = list[i].emptyTwo} //手续费 |
|
|
|
|
if (list[i].answerId == '93') {this.form.remark = list[i].emptyTwo} //摘要 |
|
|
|
|
} |
|
|
|
@ -127,54 +131,46 @@ export default{ |
|
|
|
|
submitForm(){ |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
let nomCurrentWithdrawalCard = sessionStorage.getItem('nomCurrentWithdrawalCard') |
|
|
|
|
let nomCurrentWithdrawalCards = nomCurrentWithdrawalCard // JSON.parse(nomCurrentWithdrawalCard); |
|
|
|
|
let nomCurrentWithdrawalPassword = sessionStorage.getItem('nomCurrentWithdrawalPassword') |
|
|
|
|
let nomCurrentWithdrawalPasswords = nomCurrentWithdrawalPassword // JSON.parse(nomCurrentWithdrawalPassword); |
|
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
|
this.visible = true; |
|
|
|
|
let formList = []; |
|
|
|
|
// 验证通过逻辑写在这 |
|
|
|
|
if (this.form.currency){formList.push({"answerId":'87', "emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "0,5,26,57,64,87","type": "1"})}//币种 |
|
|
|
|
if (this.form.money){formList.push({"answerId":'89', "emptyOne": "14", "emptyTwo": this.form.money, "operationIds": "0,5,26,57,64,89", "type": "3"})}//金额 |
|
|
|
|
if (this.form.remark){formList.push({"answerId":'93', "emptyOne": "16", "emptyTwo": this.form.remark, "operationIds": "0,5,26,57,64,93", "type": "3"})}//摘要 |
|
|
|
|
formList.push( |
|
|
|
|
{"answerId":'86', "emptyOne": "7", "emptyTwo": this.form.userName, "operationIds": "0,5,26,57,64,86", "type": "3"},//客户姓名 |
|
|
|
|
{"answerId":'88', "emptyOne": "9", "emptyTwo": this.form.goldLogo, "operationIds": "0,5,26,57,64,88", "type": "1"},//钞汇标识 |
|
|
|
|
{"answerId":'90', "emptyOne": "15", "emptyTwo": this.form.chargeWay, "operationIds": "0,5,26,57,64,90", "type": "1"},//支取方式 |
|
|
|
|
{"answerId":'92', "emptyOne": "15", "emptyTwo": this.form.serviceCharge, "operationIds": "0,5,26,57,64,92", "type": "3"},//手续费 |
|
|
|
|
) |
|
|
|
|
let params= { |
|
|
|
|
parentId:'0,5,26,57,64', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
if (nomCurrentWithdrawalCards && nomCurrentWithdrawalCards.length > 0 && nomCurrentWithdrawalPasswords){ |
|
|
|
|
formList.push({"answerId":85,"emptyOne": "", "emptyTwo": nomCurrentWithdrawalCards, "operationIds": "0,5,26,57,64,85","type": ""})// 卡号 |
|
|
|
|
if (this.form.currency){formList.push({"answerId":'87', "emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "0,5,26,57,64,87","type": "1"})}//币种 |
|
|
|
|
if (this.form.money){formList.push({"answerId":'89', "emptyOne": "14", "emptyTwo": this.form.money, "operationIds": "0,5,26,57,64,89", "type": "3"})}//金额 |
|
|
|
|
if (this.form.remark){formList.push({"answerId":'93', "emptyOne": "16", "emptyTwo": this.form.remark, "operationIds": "0,5,26,57,64,93", "type": "3"})}//摘要 |
|
|
|
|
formList.push( |
|
|
|
|
{"answerId":'86', "emptyOne": "7", "emptyTwo": this.form.userName, "operationIds": "0,5,26,57,64,86", "type": "3"},//客户姓名 |
|
|
|
|
{"answerId":'88', "emptyOne": "9", "emptyTwo": this.form.goldLogo, "operationIds": "0,5,26,57,64,88", "type": "1"},//钞汇标识 |
|
|
|
|
{"answerId":'90', "emptyOne": "15", "emptyTwo": this.form.chargeWay, "operationIds": "0,5,26,57,64,90", "type": "1"},//支取方式 |
|
|
|
|
{"answerId":'92', "emptyOne": "15", "emptyTwo": this.form.serviceCharge, "operationIds": "0,5,26,57,64,92", "type": "3"},//手续费 |
|
|
|
|
// {"answerId":91,"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,26,57,64,91","type": ""}// 密码框 |
|
|
|
|
) |
|
|
|
|
let params= { |
|
|
|
|
parentId:'0,5,26,57,64', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
this.$message.error('有必填项未填哦~'); |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}, this.$refs)); |
|
|
|
|
// if(this.form.userName && this.form.goldLogo && this.form.chargeWay && this.form.serviceCharge){ |
|
|
|
|
// if (this.form.currency){formList.push({"emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "26,57,64,87","type": "3"})}//币种 |
|
|
|
|
// if (this.form.money){formList.push({"emptyOne": "14", "emptyTwo": this.form.money, "operationIds": "26,57,64,89", "type": "3"})}//金额 |
|
|
|
|
// if (this.form.remark){formList.push({"emptyOne": "16", "emptyTwo": this.form.remark, "operationIds": "26,57,64,93", "type": "3"})}//摘要 |
|
|
|
|
// formList.push( |
|
|
|
|
// {"emptyOne": "7", "emptyTwo": this.form.userName, "operationIds": "26,57,64,86", "type": "3"},//用户名称 |
|
|
|
|
// {"emptyOne": "9", "emptyTwo": this.form.goldLogo, "operationIds": "26,57,64,88", "type": "3"},//钞汇标识 |
|
|
|
|
// {"emptyOne": "15", "emptyTwo": this.form.chargeWay, "operationIds": "26,57,64,90", "type": "3"},//支取方式 |
|
|
|
|
// {"emptyOne": "15", "emptyTwo": this.form.serviceCharge, "operationIds": "26,57,64,92", "type": "3"},//手续费 |
|
|
|
|
// ) |
|
|
|
|
// sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
// this.$message({ |
|
|
|
|
// message: '提交成功', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// }else{ |
|
|
|
|
// this.$message.error('有必填项未填哦~'); |
|
|
|
|
// } |
|
|
|
|
}, |
|
|
|
|
popUp(text) { |
|
|
|
|
this.$store.commit('system/changePop',{show:true,text}) |
|
|
|
|
this.$store.commit('system/changePop',{show:true,text,id:'64'}) |
|
|
|
|
}, |
|
|
|
|
ismoney: ismoney, |
|
|
|
|
checkName: checkName, |
|
|
|
|