公司业务逻辑

20240205
luoJunYong.123 3 years ago
parent ac7b6c8873
commit 4fa07296c6
  1. 0
      note.txt
  2. 14
      src/pages/manage/list/business/deposit.vue
  3. 8
      src/pages/manage/list/business/openAccount.vue
  4. 122
      src/pages/manage/list/business/transfer.vue
  5. 81
      src/pages/manage/list/business/withdrawal.vue
  6. 1
      src/utils/utilFunction.js

@ -135,32 +135,32 @@ export default {
myTable2: { myTable2: {
242: { 242: {
prop: 'currency', prop: 'currency',
type: '3' type: '1'
}, },
243: { 243: {
prop: 'currencyMark', prop: 'currencyMark',
type: '3' type: '1'
}, },
245: { 245: {
prop: 'interestRate', prop: 'interestRate', // 3
type: '3' type: '3'
}, },
246: { 246: {
prop: 'abstract', prop: 'abstract', // 3
type: '3' type: '3'
} }
}, },
myTable: { myTable: {
241: { 241: {
prop: 'customerName', prop: 'customerName', // 3
type: '3' type: '3'
}, },
240: { 240: {
prop: 'username', prop: 'username', // 3
type: '3' type: '3'
}, },
244: { 244: {
prop: 'depositNum', prop: 'depositNum', // 3
type: '3' type: '3'
} }
} }

@ -219,21 +219,21 @@ export default {
// } // }
myTable2: { myTable2: {
228: { 228: {
prop: 'customerName', prop: 'customerNumber', // 3
type: '3' type: '3'
}, },
238: { 238: {
prop: 'clientNumber', prop: 'clientNumber', // 3
type: '3' type: '3'
}, },
239: { 239: {
prop: 'foreignCurrencyBumber', prop: 'foreignCurrencyBumber', // 3
type: '3' type: '3'
} }
}, },
myTable: { myTable: {
229: { 229: {
prop: 'customerName', prop: 'customerName', // 3
type: '3' type: '3'
}, },
231: { 231: {

@ -20,7 +20,7 @@
</el-form-item> </el-form-item>
<el-form-item label="签发日期" prop="signDate"> <el-form-item label="签发日期" prop="signDate">
<el-date-picker <el-date-picker
v-model="signDate" v-model="form.signDate"
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
ref="signDate"> ref="signDate">
@ -100,7 +100,7 @@
<script> <script>
import { mapState } from 'vuex' import { mapState } from 'vuex'
import { myValidate, ismoney, checkHanzi, checkName } from '@/utils/utilFunction.js' import { myValidate, ismoney, checkHanzi, checkName, autoPlay, autoPlay2 } from '@/utils/utilFunction.js'
import { vercustomer } from '@/utils/verify.js' import { vercustomer } from '@/utils/verify.js'
export default { export default {
name: 'index', name: 'index',
@ -166,53 +166,51 @@ export default {
], ],
myTable: { myTable: {
// transoutNum: '', // 257: {
// certificateNum: '', // prop: 'transoutNum',
// customerName: '', //
// transinNum: '', //
// transinName: '', //
// money: '', //
247: {
prop: 'username',
type: '3' type: '3'
}, },
248: { 258: {
prop: 'customerName', prop: 'customerName',
type: '3' type: '3'
}, },
249: { 259: {
prop: 'voucherNum', prop: 'certificateNum',
type: '3' type: '3'
}, },
254: { 265: {
prop: 'transinNum',
type: '3'
},
266: {
prop: 'transinName',
type: '3'
},
267: {
prop: 'money', prop: 'money',
type: '3' type: '3'
} }
}, },
myTable2: { myTable2: {
250: { 260: {
prop: 'issueDate', prop: 'certificateType', // 1
type: '3' type: '1'
}, },
251: { 261: {
prop: 'currency', prop: 'signDate',
type: '3' type: '1'
}, },
252: { 262: {
prop: 'currencyMark', prop: 'currencyType', // 1
type: '3' type: '1'
}, },
255: { 263: {
prop: 'payWay', prop: 'currencyMark', // 1
type: '3' type: '1'
}, },
253: { 264: {
prop: 'certificateType', prop: 'payWay', // 1
type: '3' type: '1'
},
256: {
prop: 'abstract',
type: '3'
} }
} }
} }
@ -222,29 +220,12 @@ export default {
}, },
mounted() { mounted() {
this.$refs.transoutNum.focus() this.$refs.transoutNum.focus()
this.getFormData()
}, },
methods: { methods: {
getFormData(){ getFormData(){
let param= { const parentId = '0,5,27,227'
parentId: '0,5,27,226' 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')
@ -252,39 +233,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,227'
const parentId = '0,5,27,225' autoPlay(parentId, this.form, this.myTable2, this.myTable, projectId, startTime)
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"})//
}
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,

@ -171,20 +171,20 @@ export default {
type: '3' type: '3'
}, },
251: { 251: {
prop: 'currency', prop: 'currency', // 1
type: '3' type: '1'
}, },
252: { 252: {
prop: 'currencyMark', prop: 'currencyMark', // 1
type: '3' type: '1'
}, },
255: { 255: {
prop: 'payWay', prop: 'payWay',
type: '3' type: '3'
}, },
253: { 253: {
prop: 'certificateType', prop: 'certificateType', // 1
type: '3' type: '1'
}, },
256: { 256: {
prop: 'abstract', prop: 'abstract',
@ -203,22 +203,6 @@ export default {
}, },
methods: { methods: {
getFormData(){ getFormData(){
// let param= {
// parentId: '0,5,27,226'
// }
// getOperation(param).then((data)=>{
// // console.log(data)
// if(data.status == 200) {
// var list = data.data.judgmentRuleReqs
// const tmpObj = Object.assign(this.myTable, this.myTable2)
// for (var i = 0; i < list.length; i++) {
// const { answerId, emptyTwo } = list[i]
// this.form[tmpObj[answerId].prop] = emptyTwo
// }
// }
// }).catch((error)=>{
// })
const parentId = '0,5,27,226' const parentId = '0,5,27,226'
autoPlay2(parentId, this.form, this.myTable2, this.myTable) autoPlay2(parentId, this.form, this.myTable2, this.myTable)
}, },
@ -230,59 +214,6 @@ export default {
this.visible = true; this.visible = true;
const parentId = '0,5,27,226' const parentId = '0,5,27,226'
autoPlay(parentId, this.form, this.myTable2, this.myTable, projectId, startTime) autoPlay(parentId, this.form, this.myTable2, this.myTable, projectId, startTime)
// let tmpIndex = 100;
// for(const key in this.myTable2) {
// const { prop, type } = this.myTable2[key]
// if(this.form[prop]){
// formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": this.form[prop], "operationIds": parentId + ',' + key, type })
// }
// }
// 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)=>{
// })
// emptyOne
// let tmpIndex = 100;
// for(const key in this.myTable2) {
// const { prop, type } = this.myTable[key]
// if(this.form[prop]){
// formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": this.form[prop], "operationIds": parentId + ',' + key, type })
// }
// }
// 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,

@ -154,7 +154,6 @@ const autoPlay2 = (parentId, form, myTable2, myTable) => {
parentId parentId
} }
getOperation(param).then((data)=>{ getOperation(param).then((data)=>{
// console.log(data)
if(data.status == 200) { if(data.status == 200) {
var list = data.data.judgmentRuleReqs var list = data.data.judgmentRuleReqs
const tmpObj = Object.assign(myTable, myTable2) const tmpObj = Object.assign(myTable, myTable2)

Loading…
Cancel
Save