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