|
|
@ -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) |
|
|
|