外汇业务联调

20240205
yujialong 6 months ago
parent e0cf703271
commit 489286f758
  1. 2
      src/components/dialog/index.vue
  2. 38
      src/pages/manage/list/foreignExchange/puchasing.vue
  3. 67
      src/pages/manage/list/foreignExchange/settlement.vue
  4. 1
      src/pages/manage/list/onlineBank/openAccount.vue
  5. 80
      src/store/modules/system.js

@ -96,6 +96,8 @@ const obj = {
'business/deposit': '存款', 'business/deposit': '存款',
'business/withdrawal': '取款', 'business/withdrawal': '取款',
'onlineBank/openAccount': '网上银行开户', 'onlineBank/openAccount': '网上银行开户',
'foreignExchange/puchasing': '外汇业务购汇',
'foreignExchange/settlement': '外汇业务结汇',
'spacial': '提交' 'spacial': '提交'
} }

@ -30,9 +30,8 @@
</el-form-item> </el-form-item>
<el-form-item label="钞汇" prop="goldLogo"> <el-form-item label="钞汇" prop="goldLogo">
<el-select v-model.trim="form.goldLogo" placeholder="请选择" ref="goldLogo"> <el-select v-model.trim="form.goldLogo" placeholder="请选择" ref="goldLogo">
<el-option v-for="item in getSelectList.goldLogoSelectList" :label="item.options" :value="item.itemId" <el-option v-for="item in getSelectList.banknoteRemittanceList" :label="item.options" :value="item.itemId"
:key="item.itemId"> </el-option> :key="item.itemId"> </el-option>
<!-- <el-option label="钞户" value="钞户"> </el-option> -->
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="购汇用途" prop="drawWay"> <el-form-item label="购汇用途" prop="drawWay">
@ -78,7 +77,7 @@ import { addOperation, getOperation } from '@/api/http';
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
import TipsBefore from '@/mixins/tipsBefore' import TipsBefore from '@/mixins/tipsBefore'
const moduleName = 'currentAccount/withdrawal' const moduleName = 'foreignExchange/puchasing'
import MyDialog from '@/components/dialog' import MyDialog from '@/components/dialog'
import NeedBefore from '@/components/needBefore' import NeedBefore from '@/components/needBefore'
export default { export default {
@ -112,7 +111,7 @@ export default {
}, },
data () { data () {
return { return {
moduleName: 'foreignExchange/puchasing', moduleName,
visible: false, visible: false,
cardNumberJudge: false, cardNumberJudge: false,
form: { form: {
@ -191,7 +190,6 @@ export default {
else if (list[i].answerId == '88') { this.form.goldLogo = +list[i].emptyTwo } // else if (list[i].answerId == '88') { this.form.goldLogo = +list[i].emptyTwo } //
else if (list[i].answerId == '89') { this.form.money = list[i].emptyTwo } // else if (list[i].answerId == '89') { this.form.money = list[i].emptyTwo } //
else if (list[i].answerId == '90') { this.form.drawWay = +list[i].emptyTwo } // else if (list[i].answerId == '90') { this.form.drawWay = +list[i].emptyTwo } //
// if (list[i].answerId == '91') {sessionStorage.setItem('nomCurrentWithdrawalPassword', list[i].emptyTwo)} //
else if (list[i].answerId == '91') { else if (list[i].answerId == '91') {
if (sessionStorage.getItem('nomCurrentWithdrawalPassword')) { if (sessionStorage.getItem('nomCurrentWithdrawalPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomCurrentWithdrawalPassword') this.form.drawPassword = sessionStorage.getItem('nomCurrentWithdrawalPassword')
@ -223,34 +221,23 @@ export default {
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 nomCurrentWithdrawalPasswords = nomCurrentWithdrawalPassword // JSON.parse(nomCurrentWithdrawalPassword);
let formList = []; let formList = [];
// const { form } = this
// if (nomCurrentWithdrawalCards && nomCurrentWithdrawalCards.length > 0 && nomCurrentWithdrawalPasswords){ const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,708,753'
if (this.cardNumberJudge) {
// formList.push({"answerId":85,"emptyOne": "", "emptyTwo": nomCurrentWithdrawalCards, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,26,57,64,85","type": ""})//
// formList.push({"answerId":91,"emptyOne": "", "emptyTwo": nomCurrentWithdrawalPassword, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,26,57,64,91","type": ""})
formList.push({ "answerId": 91, "emptyOne": "17", "emptyTwo": this.form.drawPassword, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,26,57,64,91", "type": "3" })
if (this.form.currency) { formList.push({ "answerId": '87', "emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,26,57,64,87", "type": "1" }) }//
if (this.form.money) { formList.push({ "answerId": '89', "emptyOne": "14", "emptyTwo": this.form.money, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,26,57,64,89", "type": "3" }) }//
formList.push( formList.push(
{ "answerId": '88', "emptyOne": "9", "emptyTwo": this.form.goldLogo, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,26,57,64,88", "type": "1" },// { answerId: 755, emptyOne: '', emptyTwo: '', operationIds: preId + ',755', type: '' },
{ "answerId": '90', "emptyOne": "13", "emptyTwo": this.form.drawWay, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,26,57,64,90", "type": "1" },// { answerId: 756, emptyOne: 8, emptyTwo: form.currency, operationIds: preId + ',756', type: 1 },
// {"answerId":91,"emptyOne": "", "emptyTwo": "", "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,26,57,64,91","type": ""}// { answerId: 757, emptyOne: 119, emptyTwo: form.goldLogo, operationIds: preId + ',757', type: 1 },
{ answerId: 759, emptyOne: 117, emptyTwo: form.drawWay, operationIds: preId + ',759', type: 1 },
{ answerId: 760, emptyOne: 17, emptyTwo: form.drawPassword, operationIds: preId + ',760', type: 3 },
) )
console.log(formList)
let params = { let params = {
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,57,64', parentId: preId,
lcJudgmentRuleReq: formList, lcJudgmentRuleReq: formList,
projectId: +projectId, projectId: +projectId,
startTime: startTime, startTime: startTime,
} }
addOperation(params).then((data) => { addOperation(params).then((data) => {
// this.$message({
// message: '',
// type: 'success'
// });
this.setDataFlow({ ...this.form }) this.setDataFlow({ ...this.form })
this.setNeedsModule(moduleName) this.setNeedsModule(moduleName)
this.submited = 1 this.submited = 1
@ -261,9 +248,6 @@ export default {
type: 'info' type: 'info'
}); });
}) })
} else {
this.setTipsOperate('有必填项未填~');
}
}, },
popUp1 (text) { popUp1 (text) {
this.setTipsOperate('请刷银行卡'); this.setTipsOperate('请刷银行卡');

@ -38,15 +38,14 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="币种" prop="currency"> <el-form-item label="币种" prop="currency">
<el-select v-model.trim="form.currency" placeholder="请选择" ref="currency"> <el-select v-model.trim="form.currency" placeholder="请选择" disabled>
<el-option v-for="item in getSelectList.currencySelectList" :label="item.options" :value="item.itemId" <el-option :value="153" label="美元 现汇"></el-option>
:key="item.itemId"> </el-option>
<!-- <el-option value="CNY人民币">CNY人民币</el-option> -->
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="资金来源" prop="drawWay"> <el-form-item label="资金来源" prop="fundingSource">
<el-select v-model.trim="form.drawWay" placeholder="请选择" ref="drawWay"> <el-select v-model.trim="form.fundingSource" placeholder="请选择">
<el-option label="密码" :value="18"> </el-option> <el-option v-for="item in getSelectList.fundingSourceList" :label="item.options" :value="item.itemId"
:key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -67,7 +66,7 @@ import { addOperation, getOperation } from '@/api/http';
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
import TipsBefore from '@/mixins/tipsBefore' import TipsBefore from '@/mixins/tipsBefore'
const moduleName = 'currentAccount/withdrawal' const moduleName = 'foreignExchange/settlement'
import MyDialog from '@/components/dialog' import MyDialog from '@/components/dialog'
import NeedBefore from '@/components/needBefore' import NeedBefore from '@/components/needBefore'
export default { export default {
@ -86,13 +85,9 @@ export default {
} }
if (sessionStorage.getItem('nomCurrentWithdrawalCard')) { if (sessionStorage.getItem('nomCurrentWithdrawalCard')) {
this.cardNumberJudge = true this.cardNumberJudge = true
const { currency, userName, goldLogo, serviceCharge, drawWay, voucherNumber } = this.dataFlow const { currency, voucherNumber } = this.dataFlow
this.form.currency = currency this.form.currency = currency
this.form.userName = userName this.form.voucherNumber = voucherNumber
this.form.goldLogo = goldLogo
this.form.serviceCharge = serviceCharge
this.form.drawWay = drawWay
this.form.cardNumber = voucherNumber
} }
@ -101,21 +96,21 @@ export default {
}, },
data () { data () {
return { return {
moduleName: 'currentAccount/withdrawal', moduleName,
visible: false, visible: false,
cardNumberJudge: false, cardNumberJudge: false,
form: { form: {
voucherNumber: '', // voucherNumber: '', //
currency: '', currency: '',
money: '', money: '',
drawWay: '', fundingSource: '',
drawPassword: '', drawPassword: '',
}, },
formName: { formName: {
voucherNumber: '凭证号码', voucherNumber: '凭证号码',
currency: '币种', currency: '币种',
money: '外币金额', money: '外币金额',
drawWay: '资金来源', fundingSource: '资金来源',
drawPassword: '支取密码', drawPassword: '支取密码',
}, },
rules: { rules: {
@ -133,7 +128,7 @@ export default {
trigger: 'blur' trigger: 'blur'
} }
], ],
drawWay: [ fundingSource: [
{ {
required: true, required: true,
message: '请选择资金来源', message: '请选择资金来源',
@ -215,37 +210,24 @@ export default {
let nomCurrentWithdrawalPassword = sessionStorage.getItem('nomCurrentWithdrawalPassword') let nomCurrentWithdrawalPassword = sessionStorage.getItem('nomCurrentWithdrawalPassword')
let nomCurrentWithdrawalPasswords = nomCurrentWithdrawalPassword // JSON.parse(nomCurrentWithdrawalPassword); let nomCurrentWithdrawalPasswords = nomCurrentWithdrawalPassword // JSON.parse(nomCurrentWithdrawalPassword);
let formList = []; let formList = [];
//
// if (nomCurrentWithdrawalCards && nomCurrentWithdrawalCards.length > 0 && nomCurrentWithdrawalPasswords){ const { form } = this
if (this.cardNumberJudge && this.form.cardNumber) { const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,708,754'
// formList.push({"answerId":85,"emptyOne": "", "emptyTwo": nomCurrentWithdrawalCards, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,26,57,64,85","type": ""})//
formList.push({ "answerId": 85, "emptyOne": "", "emptyTwo": this.form.cardNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,26,57,64,85", "type": "" })
// formList.push({"answerId":91,"emptyOne": "", "emptyTwo": nomCurrentWithdrawalPassword, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,26,57,64,91","type": ""})
formList.push({ "answerId": 91, "emptyOne": "17", "emptyTwo": this.form.drawPassword, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,26,57,64,91", "type": "3" })
if (this.form.currency) { formList.push({ "answerId": '87', "emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,26,57,64,87", "type": "1" }) }//
if (this.form.money) { formList.push({ "answerId": '89', "emptyOne": "14", "emptyTwo": this.form.money, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,26,57,64,89", "type": "3" }) }//
if (this.form.remark) { formList.push({ "answerId": '93', "emptyOne": "16", "emptyTwo": this.form.remark, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,26,57,64,93", "type": "3" }) }//
formList.push( formList.push(
{ "answerId": '86', "emptyOne": "7", "emptyTwo": this.form.userName, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,26,57,64,86", "type": "3" },// { answerId: 761, emptyOne: '', emptyTwo: '', operationIds: preId + ',761', type: '' },
{ "answerId": '88', "emptyOne": "9", "emptyTwo": this.form.goldLogo, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,26,57,64,88", "type": "1" },// { answerId: 762, emptyOne: 8, emptyTwo: form.currency, operationIds: preId + ',762', type: 1 },
{ "answerId": '90', "emptyOne": "13", "emptyTwo": this.form.drawWay, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,26,57,64,90", "type": "1" },// { answerId: 763, emptyOne: 121, emptyTwo: form.money, operationIds: preId + ',763', type: 3 },
{ "answerId": '92', "emptyOne": "46", "emptyTwo": this.form.serviceCharge, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,26,57,64,92", "type": "3" },// { answerId: 764, emptyOne: 122, emptyTwo: form.drawWay, operationIds: preId + ',764', type: 1 },
// {"answerId":91,"emptyOne": "", "emptyTwo": "", "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,26,57,64,91","type": ""}// { answerId: 765, emptyOne: 17, emptyTwo: form.drawPassword, operationIds: preId + ',765', type: 3 },
) )
console.log(formList)
let params = { let params = {
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,57,64', parentId: preId,
lcJudgmentRuleReq: formList, lcJudgmentRuleReq: formList,
projectId: +projectId, projectId: +projectId,
startTime: startTime, startTime: startTime,
} }
addOperation(params).then((data) => { addOperation(params).then((data) => {
// this.$message({
// message: '',
// type: 'success'
// });
this.setDataFlow({ ...this.form }) this.setDataFlow({ ...this.form })
this.setNeedsModule(moduleName)
this.submited = 1 this.submited = 1
}).catch((error) => { }).catch((error) => {
this.$message({ this.$message({
@ -254,11 +236,8 @@ export default {
type: 'info' type: 'info'
}); });
}) })
} else {
this.setTipsOperate('有必填项未填~');
}
}, },
popUp (text) { popUp1 (text) {
this.setTipsOperate('请刷银行卡'); this.setTipsOperate('请刷银行卡');
this.setPopId('64') this.setPopId('64')
sessionStorage.setItem('computerPath', this.$route.fullPath) sessionStorage.setItem('computerPath', this.$route.fullPath)

@ -200,7 +200,6 @@ export default {
} }
if (sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) { if (sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) {
this.idNumberJudge = true this.idNumberJudge = true
//
const { idNumber, userName, peopleNumber, currency, goldLogo } = this.dataFlow const { idNumber, userName, peopleNumber, currency, goldLogo } = this.dataFlow
this.form.clientNumber = peopleNumber this.form.clientNumber = peopleNumber
this.form.idNumber = idNumber this.form.idNumber = idNumber

@ -1380,6 +1380,39 @@ const myInitState = {
expireDate: '2022-12-29', // 到期日期 expireDate: '2022-12-29', // 到期日期
} }
}, },
'业务三十五': {
id: 704,
name: '外汇业务',
data: [13, 16, 407],
needs: [],
isStamp: {
// '业务专用章': [ 411 ]
},
backPeople: [],
// backPeople: [ ],
cultureArr: [],
moneyBox: [], // 钱箱
needBackMoney: false, // 需要钱箱取钱
peopleSign: [], // 客户签字
cultureIn: [], // 传票栏
sealBox: [], // 印章盒
currencyDetector: [], // 验钞机
printer: [], // 打印机
resource: [], // 资料
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
dataFlow: {
currency: 153,
voucherNumber,
transMoney: 200000,
assignDate: '2022-12-29',
ticketNumber: '00242930',
drawDate: '2022-06-30', // 出票日期
expireDate: '2022-12-29', // 到期日期
}
},
} }
@ -1407,6 +1440,7 @@ export default {
// 下拉框的数据,在电脑中的下拉框有许多相同的,不用每次都请求服务器,可以在这里拿数据: // 下拉框的数据,在电脑中的下拉框有许多相同的,不用每次都请求服务器,可以在这里拿数据:
selectList: { selectList: {
banknoteRemittanceList: [],
currencySelectList: [], currencySelectList: [],
goldLogoSelectList: [], goldLogoSelectList: [],
accountQualitySelectList: [], accountQualitySelectList: [],
@ -1418,7 +1452,8 @@ export default {
idTypeList: [], // 身份证选项 idTypeList: [], // 身份证选项
accountManagementList: [], accountManagementList: [],
outAccountWayList: [], outAccountWayList: [],
calculateWayList: [] calculateWayList: [],
fundingSourceList: [],
}, },
// (要保存的业务数据): // (要保存的业务数据):
@ -2608,6 +2643,39 @@ export default {
expireDate: '2022-12-29', // 到期日期 expireDate: '2022-12-29', // 到期日期
} }
}, },
'业务三十五': {
id: 704,
name: '外汇业务',
data: [13, 16, 407],
needs: [],
isStamp: {
// '业务专用章': [ 411 ]
},
backPeople: [],
// backPeople: [ ],
cultureArr: [],
moneyBox: [], // 钱箱
needBackMoney: false, // 需要钱箱取钱
peopleSign: [], // 客户签字
cultureIn: [], // 传票栏
sealBox: [], // 印章盒
currencyDetector: [], // 验钞机
printer: [], // 打印机
resource: [], // 资料
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
dataFlow: {
currency: 153,
voucherNumber,
transMoney: 200000,
assignDate: '2022-12-29',
ticketNumber: '00242930',
drawDate: '2022-06-30', // 出票日期
expireDate: '2022-12-29', // 到期日期
}
},
}, },
// 初始化公共数据 // 初始化公共数据
allDataFlow: { ...allDataFlow }, allDataFlow: { ...allDataFlow },
@ -2621,8 +2689,6 @@ export default {
// 页面开始的时候请求电脑录入的下拉框的数据 以供电脑中的下拉框使用 // 页面开始的时候请求电脑录入的下拉框的数据 以供电脑中的下拉框使用
startPlay (state) { startPlay (state) {
// 开始时调用,获取下拉框的东西。
// 38 // 38
// accountManagementList // accountManagementList
@ -2639,7 +2705,8 @@ export default {
76: 'isTranslate', 76: 'isTranslate',
40: 'outAccountWayList', 40: 'outAccountWayList',
39: 'calculateWayList', 39: 'calculateWayList',
119: 'banknoteRemittanceList',
122: 'fundingSourceList',
} }
for (const key in mapObj) { for (const key in mapObj) {
@ -2647,7 +2714,9 @@ export default {
subject_id: key subject_id: key
}).then((data) => { }).then((data) => {
const name = mapObj[key] const name = mapObj[key]
if (data.status == 200 && state.selectList[name].length === 0) { if (!state.selectList[name]) state.selectList[name] = []
console.log(333, name, data, state.selectList)
if (data.status == 200 && !state.selectList[name].length) {
state.selectList[name].push(...data.data.items); state.selectList[name].push(...data.data.items);
} }
}).catch((error) => { }) }).catch((error) => { })
@ -3086,6 +3155,7 @@ export default {
}, },
// 获取页面中的下拉框的选项 // 获取页面中的下拉框的选项
getSelectList (state) { getSelectList (state) {
console.log("🚀 ~ getSelectList ~ state:", state)
return state.selectList return state.selectList
}, },
popId (state) { popId (state) {

Loading…
Cancel
Save