公司业务逻辑

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: {
242: {
prop: 'currency',
type: '3'
type: '1'
},
243: {
prop: 'currencyMark',
type: '3'
type: '1'
},
245: {
prop: 'interestRate',
prop: 'interestRate', // 3
type: '3'
},
246: {
prop: 'abstract',
prop: 'abstract', // 3
type: '3'
}
},
myTable: {
241: {
prop: 'customerName',
prop: 'customerName', // 3
type: '3'
},
240: {
prop: 'username',
prop: 'username', // 3
type: '3'
},
244: {
prop: 'depositNum',
prop: 'depositNum', // 3
type: '3'
}
}

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

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

@ -171,20 +171,20 @@ export default {
type: '3'
},
251: {
prop: 'currency',
type: '3'
prop: 'currency', // 1
type: '1'
},
252: {
prop: 'currencyMark',
type: '3'
prop: 'currencyMark', // 1
type: '1'
},
255: {
prop: 'payWay',
type: '3'
},
253: {
prop: 'certificateType',
type: '3'
prop: 'certificateType', // 1
type: '1'
},
256: {
prop: 'abstract',
@ -203,22 +203,6 @@ export default {
},
methods: {
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'
autoPlay2(parentId, this.form, this.myTable2, this.myTable)
},
@ -230,59 +214,6 @@ export default {
this.visible = true;
const parentId = '0,5,27,226'
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));
},
ismoney: ismoney,

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

Loading…
Cancel
Save