开户逻辑完成

20240205
luoJunYong.123 3 years ago
parent a7426f52e6
commit 559390cf25
  1. 3
      src/pages/manage/index/index.vue
  2. 143
      src/pages/manage/list/business/openAccount.vue
  3. 2
      src/pages/manage/list/client/corporateClient.vue
  4. 13
      src/pages/manage/list/personal/currentAccount/deposit.vue
  5. 1
      src/utils/utilFunction.js

@ -1,6 +1,7 @@
<template> <template>
<div class="box" :style="full?'height:calc(100vh - 60px);':'height: 80vh;'"> <div class="box" :style="full?'height:calc(100vh - 60px);':'height: 80vh;'">
<div class="nav"> <div class="nav">
<!-- <div class="top" :style="full?'border-radius:0':'border-top-left-radius: 20px;'"> -->
<div class="top" :style="full?'border-radius:0':'border-top-left-radius: 20px;'"> <div class="top" :style="full?'border-radius:0':'border-top-left-radius: 20px;'">
<p style="margin:auto">商业银行系统</p> <p style="margin:auto">商业银行系统</p>
</div> </div>
@ -108,6 +109,8 @@ export default {
.manage-content{ .manage-content{
flex: 1; flex: 1;
position: relative; position: relative;
border-bottom-right-radius: 20px;
overflow: hidden;
.manage-view{ .manage-view{
position: absolute; position: absolute;
top: 0; top: 0;

@ -115,6 +115,7 @@
import { mapState } from 'vuex' import { mapState } from 'vuex'
import { myValidate, ismoney, checkName, checkHanzi } from '@/utils/utilFunction.js' import { myValidate, ismoney, checkName, checkHanzi } from '@/utils/utilFunction.js'
import { vercustomer, verrate } from '@/utils/verify.js' import { vercustomer, verrate } from '@/utils/verify.js'
import { addOperation, getOperation } from '@/api/http';
export default { export default {
name: 'index', name: 'index',
components:{}, components:{},
@ -207,21 +208,153 @@ export default {
second:[// second:[//
], ],
myTable: {
229: {
prop: 'customerName',
type: '3'
},
231: {
prop: 'accountNature',
type: '1'
},
230: {
prop: 'accountType',
type: '1'
},
232: {
prop: 'accountManagement',
type: '1'
},
233: {
prop: 'currencyType',
type: '1'
},
234: {
prop: 'currencyMark',
type: '1'
},
235: {
prop: 'calculateWay',
type: '1'
},
236: {
prop: 'outAccountWay',
type: '1'
},
237: {
prop: 'withdrawingWay',
type: '1'
}
}
} }
}, },
created() { created() {
}, },
mounted() { mounted() {
this.$refs.customerNumber.focus() this.$refs.customerNumber.focus()
this.getFormData() //
}, },
methods: { methods: {
submitForm() { getFormData(){
let param= {
parentId: '0,5,27,224'
}
getOperation(param).then((data)=>{
// console.log(data)
if(data.status == 200) {
var list = data.data.judgmentRuleReqs
console.log(list)
for (var i = 0; i < list.length; i++) {
console.log(i)
const { answerId, emptyTwo } = list[i]
if (answerId === '238') {this.form.customerName = emptyTwo}
else if (answerId === '228') {this.form.customerNumber = emptyTwo}
else if (answerId === '84') {this.form.foreignCurrencyCertificate = emptyTwo}
else if (answerId === '228') {this.form.clientNumber = emptyTwo}
else if (answerId === '239') {this.form.foreignCurrencyBumber = emptyTwo}
else {
this.form[this.myTable[answerId].prop] = emptyTwo
}
}
}
}).catch((error)=>{
})
},
submitForm(){
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// //
this.$message({ this.visible = true;
message: '验证成功', let formList = [];
center: true const parentId = '0,5,27,224'
}); if(this.form.customerNumber){
formList.push({ "answerId":'228', "emptyOne": "19", "emptyTwo": this.form.customerNumber, "operationIds": parentId + ',228', "type": "3" })//
}
if(this.form.clientNumber){
formList.push({ "answerId":'238', "emptyOne": "7", "emptyTwo": this.form.clientNumber, "operationIds": parentId + ',238', "type": "3" })//
}
if(this.form.foreignCurrencyBumber){
formList.push( {"answerId":'239',"emptyOne": "5", "emptyTwo": this.form.foreignCurrencyBumber, "operationIds": parentId + ",239", "type": "3"})//
}
// if(this.form.foreignCurrencyCertificate){
// formList.push( {"answerId":'84',"emptyOne": "5", "emptyTwo": this.form.remark, "operationIds": "0,5,26,57,63,84", "type": "3"})//
// }
let tmpIndex = 100;
for(const key in this.myTable) {
const { prop, type } = this.myTable[key]
formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": this.form[prop], "operationIds": parentId + ',' + key, type })
}
let params= {
parentId,
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
//
// let nomBusinessDepositCard = sessionStorage.getItem('nomBusinessDepositCard')
// let nomBusinessDepositCards = JSON.parse(nomBusinessDepositCard);
// if (nomBusinessDepositCards && nomBusinessDepositCards.length > 0){
// // for (var i=0;i<nomBusinessDepositCards.length;i++){
// // formList.push({"answerId":nomBusinessDepositCards[i].id,"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,26,57,63,78,"+nomBusinessDepositCards[i].id,"type": ""})//
// // }
// if(this.form.customerNumber){
// formList.push({ "answerId":'228', "emptyOne": "19", "emptyTwo": this.form.customerNumber, "operationIds": "0,5,26,57,63,80", "type": "1" })//
// }
// if(this.form.money){
// formList.push({ "answerId":'82', "emptyOne": "7", "emptyTwo": this.form.money, "operationIds": "0,5,26,57,63,82", "type": "3" })//
// }
// if(this.form.remark){
// formList.push( {"answerId":'84',"emptyOne": "5", "emptyTwo": this.form.remark, "operationIds": "0,5,26,57,63,84", "type": "3"})//
// }
// formList.push(
// { "answerId":'79', "emptyOne": "3", "emptyTwo": this.form.userName, "operationIds": "0,5,26,57,63,79", "type": "3" },//
// { "answerId":'81', "emptyOne": "4", "emptyTwo": this.form.goldLogo, "operationIds": "0,5,26,57,63,81", "type": "1" },//
// {"answerId":'83',"emptyOne": "2", "emptyTwo": this.form.annualInterest, "operationIds": "0,5,26,57,63,83", "type": "3"},//
// );
// let params= {
// parentId:'0,5,27,224',
// lcJudgmentRuleReq:formList,
// projectId:+projectId,
// startTime:startTime,
// }
// addOperation(params).then((data)=>{
// this.$message({
// message: '',
// type: 'success'
// });
// }).catch((error)=>{
// })
// }
}, this.$refs)); }, this.$refs));
}, },
checkHanzi: checkHanzi, checkHanzi: checkHanzi,

@ -42,7 +42,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="法人姓名" prop="name"> <el-form-item label="法人姓名" prop="name">
<el-input v-model="form.name" @input="(val) => checkHanzi(val, form, 'name')" ref="name"></el-input> <el-input v-model="form.name" @input="(val) => checkName(val, form, 'name')" ref="name"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-form> </el-form>

@ -120,23 +120,24 @@ export default{
let formList = []; let formList = [];
let nomBusinessDepositCard = sessionStorage.getItem('nomBusinessDepositCard') let nomBusinessDepositCard = sessionStorage.getItem('nomBusinessDepositCard')
let nomBusinessDepositCards = JSON.parse(nomBusinessDepositCard); let nomBusinessDepositCards = JSON.parse(nomBusinessDepositCard);
console.log(nomBusinessDepositCard)
if (nomBusinessDepositCards && nomBusinessDepositCards.length > 0){ if (nomBusinessDepositCards && nomBusinessDepositCards.length > 0){
for (var i=0;i<nomBusinessDepositCards.length;i++){ for (var i=0;i<nomBusinessDepositCards.length;i++){
formList.push({"answerId":nomBusinessDepositCards[i].id,"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,26,57,63,78,"+nomBusinessDepositCards[i].id,"type": ""})// formList.push({"answerId":nomBusinessDepositCards[i].id,"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,26,57,63,78,"+nomBusinessDepositCards[i].id,"type": ""})//
} }
if(this.form.currency){ if(this.form.currency){
formList.push({ "answerId":'80', "emptyOne": "19", "emptyTwo": this.form.currency, "operationIds": "0,5,26,57,63,80", "type": "1" })// formList.push({ "answerId":'80', "emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "0,5,26,57,63,80", "type": "1" })//
} }
if(this.form.money){ if(this.form.money){
formList.push({ "answerId":'82', "emptyOne": "7", "emptyTwo": this.form.money, "operationIds": "0,5,26,57,63,82", "type": "3" })// formList.push({ "answerId":'82', "emptyOne": "14", "emptyTwo": this.form.money, "operationIds": "0,5,26,57,63,82", "type": "3" })//
} }
if(this.form.remark){ if(this.form.remark){
formList.push( {"answerId":'84',"emptyOne": "5", "emptyTwo": this.form.remark, "operationIds": "0,5,26,57,63,84", "type": "3"})// formList.push( {"answerId":'84',"emptyOne": "16", "emptyTwo": this.form.remark, "operationIds": "0,5,26,57,63,84", "type": "3"})//
} }
formList.push( formList.push(
{ "answerId":'79', "emptyOne": "3", "emptyTwo": this.form.userName, "operationIds": "0,5,26,57,63,79", "type": "3" },// { "answerId":'79', "emptyOne": "7", "emptyTwo": this.form.userName, "operationIds": "0,5,26,57,63,79", "type": "3" },//
{ "answerId":'81', "emptyOne": "4", "emptyTwo": this.form.goldLogo, "operationIds": "0,5,26,57,63,81", "type": "1" },// { "answerId":'81', "emptyOne": "9", "emptyTwo": this.form.goldLogo, "operationIds": "0,5,26,57,63,81", "type": "1" },//
{"answerId":'83',"emptyOne": "2", "emptyTwo": this.form.annualInterest, "operationIds": "0,5,26,57,63,83", "type": "3"},// {"answerId":'83',"emptyOne": "15", "emptyTwo": this.form.annualInterest, "operationIds": "0,5,26,57,63,83", "type": "3"},//
); );
let params= { let params= {
parentId:'0,5,26,57,63', parentId:'0,5,26,57,63',

@ -27,6 +27,7 @@ const checkName = function(val, form, prop) {
// 检查符号 // 检查符号
const charReg = /[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]/im; const charReg = /[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]/im;
// 检查空格 // 检查空格
const tmpCheck = val.substr(val.length-1, 1);
if(charReg.test(val) || /[\u4E00-\u9FA5]/i.test(val)) { if(charReg.test(val) || /[\u4E00-\u9FA5]/i.test(val)) {
return; return;
} }

Loading…
Cancel
Save