业务一测试以下

20240205
luoJunYong.123 3 years ago
parent 82377341db
commit 81659dff89
  1. 7
      src/components/dialog/index.vue
  2. 5
      src/components/needBefore/index.vue
  3. 6
      src/pages/manage/list/client/consumerClient.vue
  4. 12
      src/pages/manage/list/personal/currentAccount/deposit.vue
  5. 16
      src/pages/manage/list/personal/currentAccount/openAccount.vue
  6. 112
      src/pages/manage/list/personal/currentAccount/settle.vue
  7. 109
      src/pages/manage/list/personal/currentAccount/transferAccounts.vue
  8. 155
      src/pages/manage/list/personal/currentAccount/withdrawal.vue
  9. 47
      src/store/modules/system.js

@ -63,14 +63,8 @@ export default {
} }
}, },
created() { created() {
console.log('this.showForm')
console.log(this.showForm)
console.log('kao?')
let num = 0; let num = 0;
for(const key in this.showForm) { for(const key in this.showForm) {
// if(key === 'birthday') {
// console.log(Date.format(this.showForm[key]))
// }
if(num%2 === 0) { if(num%2 === 0) {
this.leftObj[this.formName[key]] = this.showForm[key] this.leftObj[this.formName[key]] = this.showForm[key]
}else { }else {
@ -101,7 +95,6 @@ export default {
this.visible = false; this.visible = false;
}, },
sureIt() { sureIt() {
console.log(this.flow)
if(this.flow === 1) { if(this.flow === 1) {
this.flow = 2 this.flow = 2
}else if(this.flow === 2) { }else if(this.flow === 2) {

@ -13,7 +13,10 @@ const obj = {
// 'currentAccount/deposit': '/counter/list/manage/currentAccount' // 'currentAccount/deposit': '/counter/list/manage/currentAccount'
'consumerClient': '客户信息 -> 个人客户信息建立', 'consumerClient': '客户信息 -> 个人客户信息建立',
'currentAccount/openAccount': '活期业务 -> 开户', 'currentAccount/openAccount': '活期业务 -> 开户',
'currentAccount/deposit': '活期业务 -> 存款' 'currentAccount/deposit': '活期业务 -> 存款',
'currentAccount/withdrawal': '活期业务 -> 取款',
'currentAccount/transferAccounts': '活期业务 -> 转账',
'currentAccount/settle': '活期业务 -> 销户',
} }
import {mapGetters} from 'vuex' import {mapGetters} from 'vuex'

@ -114,7 +114,7 @@ import MyTitle from '@/components/myTitle'
import MyDialog from '@/components/dialog' import MyDialog from '@/components/dialog'
// goodState: 'system/goodState', // goodState: 'system/goodState',
const moduleNmae = 'consumerClient' const moduleName = 'consumerClient'
export default { export default {
name: 'index', name: 'index',
data() { data() {
@ -240,7 +240,7 @@ export default {
MyDialog MyDialog
}, },
created() { created() {
console.log(moduleNmae) console.log(moduleName)
this.dataFlowId2 = this.dataFlowId this.dataFlowId2 = this.dataFlowId
}, },
@ -353,7 +353,7 @@ export default {
message: '提交成功', message: '提交成功',
type: 'success' type: 'success'
}); });
this.setNeedsModule(moduleNmae) this.setNeedsModule(moduleName)
this.setDataFlow({ ...this.form }) this.setDataFlow({ ...this.form })
}).catch((error)=>{ }).catch((error)=>{
}) })

@ -116,10 +116,13 @@ export default{
}, },
created() { created() {
if(this.needsModule(moduleName) === '') { if(this.inMyWork(moduleName)) {
}else { if(this.needsModule(moduleName) === '') {
this.needBefore = this.needsModule(moduleName) }else {
this.needBefore = this.needsModule(moduleName)
}
} }
}, },
methods: { methods: {
getFormData(){ getFormData(){
@ -206,7 +209,8 @@ export default{
dataFlowCard: 'system/dataFlowCard', dataFlowCard: 'system/dataFlowCard',
dataFlowPassword: 'system/dataFlowPassword', dataFlowPassword: 'system/dataFlowPassword',
needsModule: 'system/needsModule', needsModule: 'system/needsModule',
idCardNumber: 'system/idCardNumber' idCardNumber: 'system/idCardNumber',
inMyWork: 'system/inMyWork'
}) })
}, },
watch: { watch: {

@ -306,13 +306,14 @@ export default {
MyDialog MyDialog
}, },
created() { created() {
if(this.needsModule(moduleName) === '') { if(this.inMyWork(moduleName)) {
this.form.userNumber = this.dataFlow.peopleNumber if(this.needsModule(moduleName) === '') {
this.form.userName = this.dataFlow.userName this.form.userNumber = this.dataFlow.peopleNumber
}else { this.form.userName = this.dataFlow.userName
this.needBefore = this.needsModule(moduleName) }else {
this.needBefore = this.needsModule(moduleName)
}
} }
}, },
mounted(){ mounted(){
if(!this.needBefore) { if(!this.needBefore) {
@ -639,7 +640,8 @@ export default {
dataFlowCard: 'system/dataFlowCard', dataFlowCard: 'system/dataFlowCard',
dataFlowPassword: 'system/dataFlowPassword', dataFlowPassword: 'system/dataFlowPassword',
needsModule: 'system/needsModule', needsModule: 'system/needsModule',
idCardNumber: 'system/idCardNumber' idCardNumber: 'system/idCardNumber',
inMyWork: 'system/inMyWork'
}) })
}, },
watch: { watch: {

@ -1,13 +1,16 @@
/* 个人业务>活期业务>结清 */ /* 个人业务>活期业务>结清 */
<template> <template>
<div class="body"> <div class="body" v-if="!needBefore" >
<el-row :gutter="20" style="margin: 0"> <el-row :gutter="20" style="margin: 0">
<el-form ref="form" :model="form" label-width="120px" :rules="rules"> <el-form ref="form" :model="form" label-width="120px" :rules="rules">
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="卡号" required> <el-form-item label="卡号" required>
<div class="idCard" @click="popUp('刷卡器')"> <div v-if='!form.cardNumber' class="idCard" @click="popUp('刷卡器')">
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else>
<el-input :value="form.cardNumber" disabled ref="cardNumber"></el-input>
</div>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <el-form-item label="币种" prop="currency">
<el-select v-model="form.currency" placeholder="请选择" ref="currency"> <el-select v-model="form.currency" placeholder="请选择" ref="currency">
@ -21,9 +24,12 @@
<el-input disabled v-model="form.totalMoney" placeholder="显示余额加利息总额"></el-input> <el-input disabled v-model="form.totalMoney" placeholder="显示余额加利息总额"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="支取密码" required> <el-form-item label="支取密码" required>
<div class="idCard" @click="popUp('密码器')"> <div v-if='!form.drawPassword' class="idCard" @click="popUp('密码器')">
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else>
<el-input :value="form.drawPassword" disabled ref="drawPassword" type="password"></el-input>
</div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
@ -52,17 +58,33 @@
</el-form> </el-form>
</el-row> </el-row>
<el-button @click="submitForm" type="primary" class="submitBtn">提交</el-button> <el-button @click="submitForm" type="primary" class="submitBtn">提交</el-button>
<my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" />
</div> </div>
<need-before v-else :moduleName='needBefore'>
</need-before>
</template> </template>
<script> <script>
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2 } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2 } from '@/utils/utilFunction.js'
import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore'
import MyDialog from '@/components/dialog'
const moduleName = 'currentAccount/settle'
export default{ export default{
name:'', name:'',
props:{}, props:{},
components: {
NeedBefore,
MyDialog
},
data(){ data(){
return{ return{
visible: false,
needBefore: '',
form:{ form:{
cardNumber: '',
drawPassword: '',
currency:'', currency:'',
money:'', money:'',
totalMoney:'', totalMoney:'',
@ -72,6 +94,18 @@ export default{
chargeWay:'', chargeWay:'',
remark:'', remark:'',
}, },
formName:{
cardNumber: '卡号',
drawPassword: '支取密码',
currency:'币种',
money:'金额',
totalMoney:'总金额',
userName:'客户姓名',
goldLogo:'钞汇标识',
interest:'利息',
chargeWay:'支取方式',
remark:'摘要',
},
rules: { rules: {
userName: vercustomer , userName: vercustomer ,
chargeWay: [ chargeWay: [
@ -130,7 +164,12 @@ export default{
} }
}, },
created() { created() {
if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') {
}else {
this.needBefore = this.needsModule(moduleName)
}
}
}, },
mounted() { mounted() {
this.$refs.userName.focus() this.$refs.userName.focus()
@ -142,26 +181,34 @@ export default{
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr) autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr)
}, },
methods: { methods: {
...mapMutations({
changeShowGoods: 'system/changeShowGoods',
setDataFlow: 'system/setDataFlow',
setNeedsModule: 'system/setNeedsModule'
}),
// //
submitForm(){ submitForm(){
this.$refs.form.validate(myValidate(() => {
//
this.visible = true
}, this.$refs));
},
submitForm2() {
let nomCurrentSettleCard = sessionStorage.getItem('nomCurrentSettleCard') let nomCurrentSettleCard = sessionStorage.getItem('nomCurrentSettleCard')
let nomCurrentSettleCards = JSON.parse(nomCurrentSettleCard); let nomCurrentSettleCards = JSON.parse(nomCurrentSettleCard);
let nomCurrentSettlePassword = sessionStorage.getItem('nomCurrentSettlePassword') let nomCurrentSettlePassword = sessionStorage.getItem('nomCurrentSettlePassword')
let nomCurrentSettlePasswords = JSON.parse(nomCurrentSettlePassword); let nomCurrentSettlePasswords = JSON.parse(nomCurrentSettlePassword);
this.$refs.form.validate(myValidate(() => { const cards = [
// {
const cards = [ 103: nomCurrentSettleCard
{ },
103: nomCurrentSettleCard {
}, 111: nomCurrentSettlePassword,
{ "subjectId": 17,
111: nomCurrentSettlePassword, }
"subjectId": 17, ]
} const parentId = '285,287,5,26,57,66'
] autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
const parentId = '285,287,5,26,57,66'
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
}, this.$refs));
}, },
popUp(text) { popUp(text) {
this.$store.commit('system/changePop',{show:true,text, id: 66}) this.$store.commit('system/changePop',{show:true,text, id: 66})
@ -170,6 +217,31 @@ export default{
checkHanzi: checkHanzi, checkHanzi: checkHanzi,
checkName: checkName checkName: checkName
}, },
computed: {
...mapGetters({
dataFlow: 'system/dataFlow',
dataFlowCard: 'system/dataFlowCard',
dataFlowPassword: 'system/dataFlowPassword',
needsModule: 'system/needsModule',
idCardNumber: 'system/idCardNumber',
inMyWork: 'system/inMyWork',
})
},
watch: {
dataFlowCard(newVal) {
this.form.cardNumber = this.idCardNumber
const { currency, userName, goldLogo, serviceCharge, chargeWay, interest } = this.dataFlow
this.form.currency = currency
this.form.userName = userName
this.form.goldLogo = goldLogo
this.form.serviceCharge = serviceCharge
this.form.chargeWay = chargeWay
this.form.interest = interest
},
dataFlowPassword(newVal) {
this.form.drawPassword = '******'
}
}
} }
</script> </script>
<style lang='scss' scoped> <style lang='scss' scoped>

@ -1,13 +1,16 @@
/* 个人业务>活期业务>转账 */ /* 个人业务>活期业务>转账 */
<template> <template>
<div class="body"> <div class="body" v-if="!needBefore">
<el-row :gutter="20" style="margin: 0"> <el-row :gutter="20" style="margin: 0">
<el-form ref="form" :model="form" label-width="120px" :rules="rules"> <el-form ref="form" :model="form" label-width="120px" :rules="rules">
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="转出卡号" required> <el-form-item label="转出卡号" required>
<div class="idCard" @click="popUp('刷卡器')"> <div v-if='!form.cardNumber' class="idCard" @click="popUp('刷卡器')">
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else>
<el-input :value="form.cardNumber" disabled ref="cardNumber"></el-input>
</div>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <el-form-item label="币种" prop="currency">
<el-select v-model="form.currency" placeholder="请选择" ref="currency"> <el-select v-model="form.currency" placeholder="请选择" ref="currency">
@ -31,9 +34,12 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="支取密码" required> <el-form-item label="支取密码" required>
<div class="idCard" @click="popUp2('密码器')"> <div v-if='!form.drawPassword' class="idCard" @click="popUp('密码器')">
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else>
<el-input :value="form.drawPassword" disabled ref="drawPassword" type="password"></el-input>
</div>
</el-form-item> </el-form-item>
<el-form-item label="收款人名称" prop="payeeName" > <el-form-item label="收款人名称" prop="payeeName" >
<el-input :value="form.payeeName" @input="(val) => checkName(val, form, 'payeeName')" ref="payeeName"></el-input> <el-input :value="form.payeeName" @input="(val) => checkName(val, form, 'payeeName')" ref="payeeName"></el-input>
@ -47,17 +53,33 @@
</el-form> </el-form>
</el-row> </el-row>
<el-button @click="submitForm" type="primary" class="submitBtn">提交</el-button> <el-button @click="submitForm" type="primary" class="submitBtn">提交</el-button>
<my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" />
</div> </div>
<need-before v-else :moduleName='needBefore'>
</need-before>
</template> </template>
<script> <script>
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi, ismoney, checkName, autoPlay, autoPlay2 } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, ismoney, checkName, autoPlay, autoPlay2 } from '@/utils/utilFunction.js'
import { mapMutations, mapGetters } from 'vuex'
const moduleName = 'currentAccount/transferAccounts'
import MyDialog from '@/components/dialog'
import NeedBefore from '@/components/needBefore'
export default{ export default{
name:'', name:'',
props:{}, props:{},
components: {
MyDialog,
NeedBefore
},
data(){ data(){
return{ return{
visible: false,
needBefore: '',
form:{ form:{
cardNumber: '',
drawPassword: '',
currency:'', currency:'',
money:'', money:'',
shroffAccount:'', shroffAccount:'',
@ -66,6 +88,15 @@ export default{
payeeName:'', payeeName:'',
remark:'', remark:'',
}, },
formName: {
currency:'币种',
money:'金额',
shroffAccount:'收款卡号',
userName:'客户姓名',
goldLogo:'钞汇标识',
payeeName:'收款人名称',
remark:'摘要',
},
rules: { rules: {
userName: vercustomer , userName: vercustomer ,
payeeName: [ payeeName: [
@ -136,6 +167,14 @@ export default{
} }
} }
}, },
created() {
if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') {
}else {
this.needBefore = this.needsModule(moduleName)
}
}
},
mounted() { mounted() {
this.$refs.money.focus() this.$refs.money.focus()
const parentId = '285,287,5,26,57,65' const parentId = '285,287,5,26,57,65'
@ -146,26 +185,38 @@ export default{
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr) autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr)
}, },
methods: { methods: {
...mapMutations({
changeShowGoods: 'system/changeShowGoods',
setDataFlow: 'system/setDataFlow',
setNeedsModule: 'system/setNeedsModule'
}),
// //
submitForm(){ submitForm(){
this.$refs.form.validate(myValidate(() => {
//
this.visible = true
}, this.$refs));
},
submitForm2() {
let nomCurrentTransferCard = sessionStorage.getItem('nomCurrentTransferCard') let nomCurrentTransferCard = sessionStorage.getItem('nomCurrentTransferCard')
let nomCurrentTransferCards = JSON.parse(nomCurrentTransferCard); let nomCurrentTransferCards = JSON.parse(nomCurrentTransferCard);
let nomCurrentTransferPassword = sessionStorage.getItem('nomCurrentTransferPassword') let nomCurrentTransferPassword = sessionStorage.getItem('nomCurrentTransferPassword')
let nomCurrentTransferPasswords = JSON.parse(nomCurrentTransferPassword); let nomCurrentTransferPasswords = JSON.parse(nomCurrentTransferPassword);
this.$refs.form.validate(myValidate(() => { const cards = [
// {
const cards = [ 94: nomCurrentTransferCard
{ },
94: nomCurrentTransferCard {
}, 99: nomCurrentTransferPassword,
{ "subjectId": 17,
99: nomCurrentTransferPassword, }
"subjectId": 17, ]
} const parentId = '285,287,5,26,57,65'
] autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
const parentId = '285,287,5,26,57,65' this.setDataFlow({ ...this.form })
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards) this.setNeedsModule(moduleName)
}, this.$refs));
}, },
popUp(text) { popUp(text) {
this.$store.commit('system/changePop',{show:true,text, id: 65}) this.$store.commit('system/changePop',{show:true,text, id: 65})
@ -177,6 +228,30 @@ export default{
checkHanzi: checkHanzi, checkHanzi: checkHanzi,
checkName: checkName checkName: checkName
}, },
computed: {
...mapGetters({
dataFlow: 'system/dataFlow',
dataFlowCard: 'system/dataFlowCard',
dataFlowPassword: 'system/dataFlowPassword',
needsModule: 'system/needsModule',
idCardNumber: 'system/idCardNumber',
inMyWork: 'system/inMyWork',
})
},
watch: {
dataFlowCard(newVal) {
this.form.cardNumber = this.idCardNumber
const { currency, userName, goldLogo, serviceCharge, chargeWay } = this.dataFlow
this.form.currency = currency
this.form.userName = userName
this.form.goldLogo = goldLogo
this.form.serviceCharge = serviceCharge
this.form.chargeWay = chargeWay
},
dataFlowPassword(newVal) {
this.form.drawPassword = '******'
}
}
} }
</script> </script>
<style lang='scss' scoped> <style lang='scss' scoped>

@ -1,13 +1,16 @@
/* 个人业务>活期业务>取款 */ /* 个人业务>活期业务>取款 */
<template> <template>
<div class="body"> <div class="body" v-if="!needBefore">
<el-row :gutter="20" style="margin: 0"> <el-row :gutter="20" style="margin: 0">
<el-form ref="form" :rules="rules" :model="form" label-width="120px"> <el-form ref="form" :rules="rules" :model="form" label-width="120px">
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="卡号" required> <el-form-item label="卡号" required>
<div class="idCard" @click="popUp('刷卡器')"> <div v-if='!form.cardNumber' class="idCard" @click="popUp('刷卡器')">
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else>
<el-input :value="form.cardNumber" disabled ref="cardNumber"></el-input>
</div>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <el-form-item label="币种" prop="currency">
<el-select v-model="form.currency" placeholder="请选择" ref="currency"> <el-select v-model="form.currency" placeholder="请选择" ref="currency">
@ -18,9 +21,12 @@
<el-input :value="form.money" @input="val => ismoney(val, form, 'money')"></el-input> <el-input :value="form.money" @input="val => ismoney(val, form, 'money')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="支取密码" required> <el-form-item label="支取密码" required>
<div class="idCard" @click="popUp('密码器')"> <div v-if='!form.drawPassword' class="idCard" @click="popUp('密码器')">
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else>
<el-input :value="form.drawPassword" disabled ref="drawPassword" type="password"></el-input>
</div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
@ -50,21 +56,47 @@
</el-form> </el-form>
</el-row> </el-row>
<el-button @click="submitForm" type="primary" class="submitBtn">提交</el-button> <el-button @click="submitForm" type="primary" class="submitBtn">提交</el-button>
<my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" />
</div> </div>
<need-before v-else :moduleName='needBefore'>
</need-before>
</template> </template>
<script> <script>
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { myValidate, ismoney, checkName, checkHanzi } from '@/utils/utilFunction.js' import { myValidate, ismoney, checkName, checkHanzi } from '@/utils/utilFunction.js'
import { addOperation, getOperation } from '@/api/http'; import { addOperation, getOperation } from '@/api/http';
import { mapMutations, mapGetters } from 'vuex'
const moduleName = 'currentAccount/withdrawal'
import MyDialog from '@/components/dialog'
import NeedBefore from '@/components/needBefore'
export default{ export default{
name:'', name:'',
props:{ props:{
depositFinish: Boolean depositFinish: Boolean
}, },
components: {
MyDialog,
NeedBefore
},
created() {
if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') {
}else {
this.needBefore = this.needsModule(moduleName)
}
}
},
data(){ data(){
return{ return{
visible: false,
needBefore: '',
form:{ form:{
cardNumber: '',
drawPassword: '',
currency:'', currency:'',
money:'', money:'',
userName:'', userName:'',
@ -73,6 +105,17 @@ export default{
chargeWay:'', chargeWay:'',
remark:'', remark:'',
}, },
formName:{
cardNumber: '卡号',
drawPassword: '支取密码',
currency:'币种',
money:'金额',
userName:'客户姓名',
goldLogo:'钞汇标识',
serviceCharge:'手续费',
chargeWay:'支取方式',
remark:'摘要',
},
rules: { rules: {
userName: vercustomer , userName: vercustomer ,
goldLogo: [ goldLogo: [
@ -100,10 +143,17 @@ export default{
} }
}, },
mounted() { mounted() {
this.getFormData() if(!this.needBefore) {
this.$refs.userName.focus(); this.getFormData()
this.$refs.userName.focus();
}
}, },
methods: { methods: {
...mapMutations({
changeShowGoods: 'system/changeShowGoods',
setDataFlow: 'system/setDataFlow',
setNeedsModule: 'system/setNeedsModule'
}),
getFormData(){ getFormData(){
let param= { let param= {
parentId: '285,287,5,26,57,64' parentId: '285,287,5,26,57,64'
@ -130,47 +180,50 @@ export default{
}) })
}, },
submitForm(){ submitForm(){
this.$refs.form.validate(myValidate(() => {
this.visible = true;
}, this.$refs));
},
submitForm2() {
let projectId = sessionStorage.getItem('projectId') let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime') let startTime = sessionStorage.getItem('startTime')
let nomCurrentWithdrawalCard = sessionStorage.getItem('nomCurrentWithdrawalCard') let nomCurrentWithdrawalCard = sessionStorage.getItem('nomCurrentWithdrawalCard')
let nomCurrentWithdrawalCards = nomCurrentWithdrawalCard // JSON.parse(nomCurrentWithdrawalCard); let nomCurrentWithdrawalCards = nomCurrentWithdrawalCard // JSON.parse(nomCurrentWithdrawalCard);
let nomCurrentWithdrawalPassword = sessionStorage.getItem('nomCurrentWithdrawalPassword') let nomCurrentWithdrawalPassword = sessionStorage.getItem('nomCurrentWithdrawalPassword')
let nomCurrentWithdrawalPasswords = nomCurrentWithdrawalPassword // JSON.parse(nomCurrentWithdrawalPassword); let nomCurrentWithdrawalPasswords = nomCurrentWithdrawalPassword // JSON.parse(nomCurrentWithdrawalPassword);
console.log(nomCurrentWithdrawalCards) let formList = [];
this.$refs.form.validate(myValidate(() => { //
this.visible = true; if (nomCurrentWithdrawalCards && nomCurrentWithdrawalCards.length > 0 && nomCurrentWithdrawalPasswords){
let formList = []; formList.push({"answerId":85,"emptyOne": "", "emptyTwo": nomCurrentWithdrawalCards, "operationIds": "285,287,5,26,57,64,85","type": ""})//
// formList.push({"answerId":91,"emptyOne": "", "emptyTwo": nomCurrentWithdrawalPassword, "operationIds": "285,287,5,26,57,64,91","type": ""})
if (nomCurrentWithdrawalCards && nomCurrentWithdrawalCards.length > 0 && nomCurrentWithdrawalPasswords){ if (this.form.currency){formList.push({"answerId":'87', "emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "285,287,5,26,57,64,87","type": "1"})}//
formList.push({"answerId":85,"emptyOne": "", "emptyTwo": nomCurrentWithdrawalCards, "operationIds": "285,287,5,26,57,64,85","type": ""})// if (this.form.money){formList.push({"answerId":'89', "emptyOne": "14", "emptyTwo": this.form.money, "operationIds": "285,287,5,26,57,64,89", "type": "3"})}//
formList.push({"answerId":91,"emptyOne": "", "emptyTwo": nomCurrentWithdrawalPassword, "operationIds": "285,287,5,26,57,64,91","type": ""}) if (this.form.remark){formList.push({"answerId":'93', "emptyOne": "16", "emptyTwo": this.form.remark, "operationIds": "285,287,5,26,57,64,93", "type": "3"})}//
if (this.form.currency){formList.push({"answerId":'87', "emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "285,287,5,26,57,64,87","type": "1"})}// formList.push(
if (this.form.money){formList.push({"answerId":'89', "emptyOne": "14", "emptyTwo": this.form.money, "operationIds": "285,287,5,26,57,64,89", "type": "3"})}// {"answerId":'86', "emptyOne": "7", "emptyTwo": this.form.userName, "operationIds": "285,287,5,26,57,64,86", "type": "3"},//
if (this.form.remark){formList.push({"answerId":'93', "emptyOne": "16", "emptyTwo": this.form.remark, "operationIds": "285,287,5,26,57,64,93", "type": "3"})}// {"answerId":'88', "emptyOne": "9", "emptyTwo": this.form.goldLogo, "operationIds": "285,287,5,26,57,64,88", "type": "1"},//
formList.push( {"answerId":'90', "emptyOne": "15", "emptyTwo": this.form.chargeWay, "operationIds": "285,287,5,26,57,64,90", "type": "1"},//
{"answerId":'86', "emptyOne": "7", "emptyTwo": this.form.userName, "operationIds": "285,287,5,26,57,64,86", "type": "3"},// {"answerId":'92', "emptyOne": "15", "emptyTwo": this.form.serviceCharge, "operationIds": "285,287,5,26,57,64,92", "type": "3"},//
{"answerId":'88', "emptyOne": "9", "emptyTwo": this.form.goldLogo, "operationIds": "285,287,5,26,57,64,88", "type": "1"},// // {"answerId":91,"emptyOne": "", "emptyTwo": "", "operationIds": "285,287,5,26,57,64,91","type": ""}//
{"answerId":'90', "emptyOne": "15", "emptyTwo": this.form.chargeWay, "operationIds": "285,287,5,26,57,64,90", "type": "1"},// )
{"answerId":'92', "emptyOne": "15", "emptyTwo": this.form.serviceCharge, "operationIds": "285,287,5,26,57,64,92", "type": "3"},// let params= {
// {"answerId":91,"emptyOne": "", "emptyTwo": "", "operationIds": "285,287,5,26,57,64,91","type": ""}// parentId:'285,287,5,26,57,64',
) lcJudgmentRuleReq:formList,
let params= { projectId:+projectId,
parentId:'285,287,5,26,57,64', startTime:startTime,
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else{
this.$message.error('有必填项未填哦~');
} }
}, this.$refs)); addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
this.setDataFlow({ ...this.form })
this.setNeedsModule(moduleName)
}).catch((error)=>{
})
}else{
this.$message.error('有必填项未填哦~');
}
}, },
popUp(text) { popUp(text) {
this.$store.commit('system/changePop',{show:true,text,id:'64'}) this.$store.commit('system/changePop',{show:true,text,id:'64'})
@ -179,6 +232,30 @@ export default{
checkName: checkName, checkName: checkName,
checkHanzi: checkHanzi checkHanzi: checkHanzi
}, },
computed: {
...mapGetters({
dataFlow: 'system/dataFlow',
dataFlowCard: 'system/dataFlowCard',
dataFlowPassword: 'system/dataFlowPassword',
needsModule: 'system/needsModule',
idCardNumber: 'system/idCardNumber',
inMyWork: 'system/inMyWork'
})
},
watch: {
dataFlowCard(newVal) {
this.form.cardNumber = this.idCardNumber
const { currency, userName, goldLogo, serviceCharge, chargeWay } = this.dataFlow
this.form.currency = currency
this.form.userName = userName
this.form.goldLogo = goldLogo
this.form.serviceCharge = serviceCharge
this.form.chargeWay = chargeWay
},
dataFlowPassword(newVal) {
this.form.drawPassword = '******'
}
}
} }
</script> </script>
<style lang='scss' scoped> <style lang='scss' scoped>

@ -9,7 +9,7 @@ const allGoods = {
30: {name:'银行承兑汇票',src:require('@/assets/img/seal/paid.png'),id:30}, 30: {name:'银行承兑汇票',src:require('@/assets/img/seal/paid.png'),id:30},
411: {name:411,src:require('@/assets/img/goods/xjzp.png'),id:411}, 411: {name:411,src:require('@/assets/img/goods/xjzp.png'),id:411},
425: {name:'取款凭条',src:require('@/assets/img/goods/qkpt.png'),id:425}, 425: {name:'取款凭条',src:require('@/assets/img/goods/qkpt.png'),id:425},
426: {name:426,src:require('@/assets/img/goods/zzpt.png'),id:426}, 426: {name:'转账凭条',src:require('@/assets/img/goods/zzpt.png'),id:426},
479: {name:'业务收费凭证',src:require('@/assets/img/goods/ywsfpz.png'),id:479}, 479: {name:'业务收费凭证',src:require('@/assets/img/goods/ywsfpz.png'),id:479},
427: {name:'利息清单',src:require('@/assets/img/goods/lxqd.png'),id:427}, 427: {name:'利息清单',src:require('@/assets/img/goods/lxqd.png'),id:427},
438: {name:'普通空白凭证',src:require('@/assets/img/goods/ptkbpz.png'),id:438}, 438: {name:'普通空白凭证',src:require('@/assets/img/goods/ptkbpz.png'),id:438},
@ -775,6 +775,35 @@ export default {
importanceArr: [], // 重要空白凭证箱 importanceArr: [], // 重要空白凭证箱
commonArr: [ 425, 427 ], // 普通凭证箱 commonArr: [ 425, 427 ], // 普通凭证箱
// 以下为数据流:
needsModule: {
'consumerClient': false,
'currentAccount/withdrawal': false,
'currentAccount/transferAccounts': false,
'currentAccount/settle': false,
},
// dataFlowGo: 0,
dataFlowCard: 0,
dataFlowId: 0,
dataFlowPassword: 0,
dataFlow: {
// peopleNumber: '随机111222',
// userName:'肥仔',//用户名字
// idType: '身份证',
// idNumber:'441325466661230215',//证件号码
// sex:'男',//性别
// birthday:'2008',//出生日期
// // nationality:'汉',//民族
// mailbox:'肥仔无处不在',//通讯地址
// phone:'13222223122',//联系电话
currency:'CYC人民币',
userName:'肥仔',
goldLogo:'钞户',
serviceCharge:'0.00',
chargeWay:'密码',
interest: '0.1'
}
}, },
'项目三': { '项目三': {
data: [15, 13, 23, 14], // 现金、身份证原件、复印件、开户申请书 data: [15, 13, 23, 14], // 现金、身份证原件、复印件、开户申请书
@ -1345,7 +1374,9 @@ export default {
}, },
setDataFlow(state, obj) { setDataFlow(state, obj) {
for(let key in obj) { for(let key in obj) {
state.businessSelect[state.businessKey].dataFlow[key] = obj[key] if(state.businessSelect[state.businessKey].dataFlow[key]) {
state.businessSelect[state.businessKey].dataFlow[key] = obj[key]
}
} }
}, },
initState(state) { initState(state) {
@ -1757,6 +1788,16 @@ export default {
// return // return
} }
return arr return arr
} },
inMyWork(state) {
return (moduleName) => {
for(let key in state.businessSelect[state.businessKey].needsModule) {
if(moduleName === key) {
return true
}
}
return false
}
},
} }
} }
Loading…
Cancel
Save