20240205
luoJunYong.123 3 years ago
parent dd440f90c4
commit 6cb62b8fe3
  1. 86
      src/pages/manage/list/business/deposit.vue
  2. 119
      src/pages/manage/list/business/openAccount.vue

@ -72,7 +72,7 @@
<script> <script>
import { mapState } from 'vuex' import { mapState } from 'vuex'
import { checkHanzi, checkName, ismoney, rateListen, myValidate } from '@/utils/utilFunction.js' import { checkHanzi, checkName, ismoney, rateListen, myValidate, autoPlay, autoPlay2 } from '@/utils/utilFunction.js'
import { vercustomer, verrate } from '@/utils/verify.js' import { vercustomer, verrate } from '@/utils/verify.js'
import { addOperation, getOperation } from '@/api/http'; import { addOperation, getOperation } from '@/api/http';
export default { export default {
@ -120,6 +120,36 @@ export default {
second:[// second:[//
], ],
// if(this.form.currency){
// formList.push({ "answerId":'242', "emptyOne": "19", "emptyTwo": this.form.currency, "operationIds": parentId + ',242', "type": "1" })//
// }
// if(this.form.currencyMark){
// formList.push({ "answerId":'243', "emptyOne": "7", "emptyTwo": this.form.currencyMark, "operationIds": parentId + ',243', "type": "3" })//
// }
// if(this.form.interestRate){
// formList.push( {"answerId":'245',"emptyOne": "5", "emptyTwo": this.form.interestRate, "operationIds": parentId + ",245", "type": "3"})//
// }
// if(this.form.abstract){
// formList.push( {"answerId":'246',"emptyOne": "5", "emptyTwo": this.form.abstract, "operationIds": parentId + ",246", "type": "3"})//
// }
myTable2: {
242: {
prop: 'currency',
type: '3'
},
243: {
prop: 'currencyMark',
type: '3'
},
245: {
prop: 'interestRate',
type: '3'
},
246: {
prop: 'abstract',
type: '3'
}
},
myTable: { myTable: {
241: { 241: {
prop: 'customerName', prop: 'customerName',
@ -145,26 +175,8 @@ export default {
}, },
methods: { methods: {
getFormData(){ getFormData(){
let param= { const parentId = '0,5,27,225'
parentId: '0,5,27,225' autoPlay2(parentId, this.form, this.myTable2, this.myTable)
}
getOperation(param).then((data)=>{
// console.log(data)
if(data.status == 200) {
var list = data.data.judgmentRuleReqs
for (var i = 0; i < list.length; i++) {
const { answerId, emptyTwo } = list[i]
if (answerId === '242') {this.form.currency = emptyTwo}
else if (answerId === '243') {this.form.currencyMark = emptyTwo}
else if (answerId === '245') {this.form.interestRate = emptyTwo;}
else if (answerId === '246') {this.form.abstract = emptyTwo}
else {
this.form[this.myTable[answerId].prop] = emptyTwo
}
}
}
}).catch((error)=>{
})
}, },
submitForm() { submitForm() {
let projectId = sessionStorage.getItem('projectId') let projectId = sessionStorage.getItem('projectId')
@ -174,37 +186,7 @@ export default {
this.visible = true; this.visible = true;
let formList = []; let formList = [];
const parentId = '0,5,27,225' const parentId = '0,5,27,225'
if(this.form.currency){ autoPlay(parentId, this.form, this.myTable2, this.myTable, projectId, startTime)
formList.push({ "answerId":'242', "emptyOne": "19", "emptyTwo": this.form.currency, "operationIds": parentId + ',242', "type": "1" })//
}
if(this.form.currencyMark){
formList.push({ "answerId":'243', "emptyOne": "7", "emptyTwo": this.form.currencyMark, "operationIds": parentId + ',243', "type": "3" })//
}
if(this.form.interestRate){
formList.push( {"answerId":'245',"emptyOne": "5", "emptyTwo": this.form.interestRate, "operationIds": parentId + ",245", "type": "3"})//
}
if(this.form.abstract){
formList.push( {"answerId":'246',"emptyOne": "5", "emptyTwo": this.form.abstract, "operationIds": parentId + ",246", "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)=>{
})
}, this.$refs)); }, this.$refs));
}, },
ismoney: ismoney, ismoney: ismoney,

@ -113,7 +113,7 @@
<script> <script>
import { mapState } from 'vuex' import { mapState } from 'vuex'
import { myValidate, ismoney, checkName, checkHanzi } from '@/utils/utilFunction.js' import { myValidate, ismoney, checkName, checkHanzi, autoPlay, autoPlay2 } from '@/utils/utilFunction.js'
import { vercustomer, verrate } from '@/utils/verify.js' import { vercustomer, verrate } from '@/utils/verify.js'
import { addOperation, getOperation } from '@/api/http'; import { addOperation, getOperation } from '@/api/http';
export default { export default {
@ -208,6 +208,29 @@ export default {
second:[// second:[//
], ],
// 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"})//
// }
myTable2: {
228: {
prop: 'customerName',
type: '3'
},
238: {
prop: 'clientNumber',
type: '3'
},
239: {
prop: 'foreignCurrencyBumber',
type: '3'
}
},
myTable: { myTable: {
229: { 229: {
prop: 'customerName', prop: 'customerName',
@ -253,32 +276,12 @@ export default {
mounted() { mounted() {
this.$refs.customerNumber.focus() this.$refs.customerNumber.focus()
this.getFormData() // this.getFormData()
}, },
methods: { methods: {
getFormData(){ getFormData(){
let param= { const parentId = '0,5,27,224'
parentId: '0,5,27,224' autoPlay2(parentId, this.form, this.myTable2, this.myTable)
}
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 === '228') {this.form.customerNumber = emptyTwo}
else if (answerId === '84') {this.form.foreignCurrencyCertificate = emptyTwo}
else if (answerId === '238') {this.form.clientNumber = emptyTwo; console.log(emptyTwo)}
else if (answerId === '239') {this.form.foreignCurrencyBumber = emptyTwo}
else {
this.form[this.myTable[answerId].prop] = emptyTwo
}
}
}
}).catch((error)=>{
})
}, },
submitForm(){ submitForm(){
let projectId = sessionStorage.getItem('projectId') let projectId = sessionStorage.getItem('projectId')
@ -286,74 +289,8 @@ export default {
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// //
this.visible = true; this.visible = true;
let formList = [];
const parentId = '0,5,27,224' const parentId = '0,5,27,224'
if(this.form.customerNumber){ autoPlay(parentId, this.form, this.myTable2, this.myTable, projectId, startTime)
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,

Loading…
Cancel
Save