Commit 644b6d60 by huangshunlin

即期结汇前端调整

parent 981b8802
...@@ -4,45 +4,46 @@ export default class Fxdgrp { ...@@ -4,45 +4,46 @@ export default class Fxdgrp {
constructor() { constructor() {
this.data = { this.data = {
rec: { rec: {
ownref: "", // 结售汇业务参考号 .fxtp.fxdgrp.rec.ownref ownref: "", // 结售汇业务参考号 fxdgrp.rec.ownref
nam: "", // 名称 .fxtp.fxdgrp.rec.nam nam: "", // 名称 fxdgrp.rec.nam
fxtyp: "", // 结售汇类型 .fxtp.fxdgrp.rec.fxtyp fxtyp: "", // 结售汇类型 fxdgrp.rec.fxtyp
opndat: "", // 登记日期 .fxtp.fxdgrp.rec.opndat opndat: "", // 登记日期 fxdgrp.rec.opndat
valdat: "", // 起息日 .fxtp.fxdgrp.rec.valdat valdat: "", // 起息日 fxdgrp.rec.valdat
rat: "", // 对外牌价 .fxtp.fxdgrp.rec.rat rat: 0.000000, // 对外牌价 fxdgrp.rec.rat
midrat: "", // 中间价 .fxtp.fxdgrp.rec.midrat midrat: 0.000000, // 中间价 fxdgrp.rec.midrat
quoref: "", // 询价编号 .fxtp.fxdgrp.rec.quoref quoref: "", // 询价编号 fxdgrp.rec.quoref
fudref: "", // 资金部编号 .fxtp.fxdgrp.rec.fudref fudref: "", // 资金部编号 fxdgrp.rec.fudref
setdat: "", // 远期交割日 .fxtp.fxdgrp.rec.setdat setdat: "", // 远期交割日 fxdgrp.rec.setdat
setdatfrm: "", // 择期交割起始日 .fxtp.fxdgrp.rec.setdatfrm setdatfrm: "", // 择期交割起始日 fxdgrp.rec.setdatfrm
setdatto: "", // 择期交割截止日 .fxtp.fxdgrp.rec.setdatto setdatto: "", // 择期交割截止日 fxdgrp.rec.setdatto
trnman: "", // 交易主体 .fxtp.fxdgrp.rec.trnman trnman: "", // 交易主体 fxdgrp.rec.trnman
trdint: "", // 结售汇类型 .fxtp.fxdgrp.rec.trdint trdint: "", // 结售汇类型 fxdgrp.rec.trdint
trdout: "", // 结售汇类型 .fxtp.fxdgrp.rec.trdout trdout: "", // 结售汇类型 fxdgrp.rec.trdout
acc: "", // 外币结算账号 .fxtp.fxdgrp.rec.acc acc: "", // 外币结算账号 fxdgrp.rec.acc
acc2: "", // 本币结算账号 .fxtp.fxdgrp.rec.acc2 acc2: "", // 本币结算账号 fxdgrp.rec.acc2
dsp: "", // 外币结算账号 .fxtp.fxdgrp.rec.dsp dsp: "", // 外币结算账号 fxdgrp.rec.dsp
dsp2: "", // 本币结算账号 .fxtp.fxdgrp.rec.dsp2 dsp2: "", // 本币结算账号 fxdgrp.rec.dsp2
usr: "", // 业务经办人 fxdgrp.rec.usr
}, },
blk: { blk: {
remark: "", // 备注 .fxtp.fxdgrp.blk.remark remark: "", // 备注 fxdgrp.blk.remark
}, },
cbs: { cbs: {
max: { max: {
cur: "", // Currency .fxtp.fxdgrp.cbs.max.cur cur: "", // Currency fxdgrp.cbs.max.cur
amt: "", // Balance .fxtp.fxdgrp.cbs.max.amt amt: 0.00, // Balance fxdgrp.cbs.max.amt
}, },
nom1: { nom1: {
cur: "", // Currency .fxtp.fxdgrp.cbs.nom1.cur cur: "", // Currency fxdgrp.cbs.nom1.cur
amt: "", // Balance .fxtp.fxdgrp.cbs.nom1.amt amt: 0.00, // Balance fxdgrp.cbs.nom1.amt
}, },
opn1: { opn1: {
cur: "", // Currency .fxtp.fxdgrp.cbs.nom1.cur cur: "", // Currency fxdgrp.cbs.nom1.cur
amt: "", // Balance .fxtp.fxdgrp.cbs.nom1.amt amt: 0.00, // Balance fxdgrp.cbs.nom1.amt
}, },
opn2: { opn2: {
cur: "", // Currency .fxtp.fxdgrp.cbs.nom1.cur cur: "", // Currency fxdgrp.cbs.nom1.cur
amt: "", // Balance .fxtp.fxdgrp.cbs.nom1.amt amt: 0.00, // Balance fxdgrp.cbs.nom1.amt
}, },
}, },
apl: { apl: {
......
import Utils from "~/utils"; import Utils from "~/utils";
export default { export default {
methods: { methods: {
buildPtspta(ptsptaObj) { buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts; let pts = ptsptaObj.pts;
return { return {
rol: pts.rol, rol: pts.rol,
name: pts.nam, name: pts.nam,
ptyinr: pts.ptyinr, ptyinr: pts.ptyinr,
ptainr: pts.ptainr, ptainr: pts.ptainr,
extkey: pts.extkey, extkey: pts.extkey,
dftdsp: pts.dftdsp, dftdsp: pts.dftdsp,
dftcur: pts.dftcur, dftcur: pts.dftcur,
dftact: pts.dftact, dftact: pts.dftact,
dftfeecur: pts.dftfeecur, dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr, dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg, glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk, adrblk: pts.adrblk,
pts, pts,
}; };
},
buildCommonData(model, trnName) {
let ptsptaList = Utils.formatPtspta(model.fxtp.fxdgrp, this.buildPtspta);
return {
rec: {
objtyp: "FXT",
objinr: model.fxtp.fxdgrp.rec.inr,
ownref: model.fxtp.fxdgrp.rec.ownref,
}, },
cbsMap: { buildCommonData(model, trnName) {
MAX: model.fxtp.fxdgrp.cbs.max, let ptsptaList = Utils.formatPtspta(model.fxdgrp, this.buildPtspta);
NOM1: model.fxtp.fxdgrp.cbs.nom1, return {
rec: {
objtyp: "FXT",
objinr: model.fxdgrp.rec.inr,
ownref: model.fxdgrp.rec.ownref,
},
cbsMap: {
MAX: model.fxdgrp.cbs.max,
NOM1: model.fxdgrp.cbs.nom1,
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
}, },
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
}, },
},
}; };
...@@ -2,10 +2,48 @@ import commonFunctions from '~/mixin/commonFunctions.js'; ...@@ -2,10 +2,48 @@ import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api'; import Api from '~/service/Api';
export default { export default {
mixins: [commonFunctions], mixins: [commonFunctions],
methods: { methods: {
async getOwnref() { async getOwnref() {
if (this.model.fxdgrp.rec.fxtyp == "") {
this.$notify.warning({
title: '提示',
message: '请先选择结售汇类型!'
});
return;
}
const loading = this.loading();
let res = await Api.post(`/${this.moduleRouter()}/fxtssb/getRef`, this.model);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.model.fxdgrp.rec.ownref = res.data;
},
async defaultAccountsN1000() {
if (this.model.fxdgrp.rec.fxtyp == "") {
return;
}
if (this.model.fxdgrp.cbs.max.cur == "") {
return;
}
if (this.model.fxdgrp.apl.pts.ptyinr == "") {
return;
}
const loading = this.loading();
let res = await Api.post(`/${this.moduleRouter()}/fxtssb/defaultAccountsN1000`, this.model);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
// this.updateValueSet(res.codeSet);
this.model.accLst = res.codeSet['accLst'];
this.model.accLst2 = res.codeSet['acc2Lst'];
this.model.fxdgrp.rec.acc = res.data.fxdgrp.rec.acc;
this.model.fxdgrp.rec.acc2 = res.data.fxdgrp.rec.acc2;
},
} }
}
} }
\ No newline at end of file
export default { export default {
"fxtp.fxdgrp.rec.ownref":[ "fxdgrp.rec.ownref": [
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16, message: "长度不能超过16"}
], ],
"fxdgrp.rec.nam": [
"fxtp.fxdgrp.rec.nam":[ {type: "string", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"}, {max: 40, message: "长度不能超过40"}
{max: 40,message:"长度不能超过40"} ],
], "fxdgrp.apl.pts.ref": [
"fxtp.fxdgrp.apl.pts.ref":[ {type: "string", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"}, {max: 20, message: "长度不能超过20"}
{max: 20,message:"长度不能超过20"} ],
], "fxdgrp.rec.usr": [
"fxtp.usrget.usr.extkey":[ {type: "string", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"}, {max: 8, message: "长度不能超过8"}
{max: 8,message:"长度不能超过8"} ],
], "fxdgrp.apl.pts.extkey": [
"fxtp.usrget.sdamod.seainf":[ {type: "string", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"}, {max: 16, message: "长度不能超过16"}
{max: 3,message:"长度不能超过3"} ],
], "fxdgrp.apl.pts.adrblk": [
"fxtp.aplp.ptsget.sdamod.dadsnd":[ {type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"}, {max: 35, message: "长度不能超过35"}
{max: 16,message:"长度不能超过16"} ],
], "fxdgrp.cbs.max.amt": [
"fxtp.aplp.ptspta.pts.extkey":[ {type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"}, {max: 18, message: "整数位不能超过14位"},
{max: 16,message:"长度不能超过16"} {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位"}
], ],
"fxtp.aplp.ptsget.sdamod.seainf":[ "fxdgrp.cbs.nom1.amt": [
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} {max: 18, message: "整数位不能超过14位"},
], {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位"}
],
"fxdgrp.rec.rat": [
"fxtp.aplp.ptspta.pts.adrblk":[ {type: "string", required: false, message: "必输项"},
{type: "string", required: true, message: "必输项"}, {max: 12, message: "长度不能超过12"}
{max: 35,message:"长度不能超过35"} ],
], "fxdgrp.rec.quoref": [
"fxtp.aplp.ptspta.dbfadrblkcn":[ {type: "string", required: false, message: "必输项"},
{type: "string", required: true, message: "必输项"}, {max: 16, message: "长度不能超过16"}
{max: 35,message:"长度不能超过35"} ],
], "fxdgrp.rec.midrat": [
{type: "string", required: false, message: "必输项"},
{max: 12, message: "长度不能超过12"}
"fxtp.fxdgrp.cbs.max.amt":[ ],
{type: "number", required: false, message: "必输项"}, "fxdgrp.rec.fudref": [
{max: 18,message:"整数位不能超过14位"}, {type: "string", required: false, message: "必输项"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {max: 16, message: "长度不能超过16"}
], ],
"fxdgrp.rec.opndat": [
{type: "date", required: true, message: "输入正确的日期"}
],
"fxtp.fxdgrp.cbs.nom1.amt":[ "fxdgrp.rec.valdat": [
{type: "number", required: false, message: "必输项"}, {type: "date", required: true, message: "输入正确的日期"}
{max: 18,message:"整数位不能超过14位"}, ],
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } "fxdgrp.rec.setdat": [
], {type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.rat":[ "fxdgrp.rec.setdatto": [
{type: "string", required: false, message: "必输项"}, {type: "date", required: false, message: "输入正确的日期"}
{max: 12,message:"长度不能超过12"} ],
], "fxdgrp.rec.setdatfrm": [
"fxtp.fxdgrp.rec.quoref":[ {type: "date", required: false, message: "输入正确的日期"}
{type: "string", required: false, message: "必输项"}, ],
{max: 16,message:"长度不能超过16"} "fxdgrp.blk.remark": [
], {type: "string", required: false, message: "必输项"},
"fxtp.fxdgrp.rec.midrat":[ {max: 35, message: "长度不能超过35"}
{type: "string", required: false, message: "必输项"}, ],
{max: 12,message:"长度不能超过12"} "fxdgrp.rec.dsp": [
], {type: "string", required: true, message: "必输项"},
{max: 2, message: "长度不能超过2"}
"fxtp.fxdgrp.rec.fudref":[ ],
{type: "string", required: false, message: "必输项"}, "fxdgrp.rec.dsp2": [
{max: 16,message:"长度不能超过16"} {type: "string", required: true, message: "必输项"},
], {max: 2, message: "长度不能超过2"}
"fxtp.fxdgrp.rec.opndat":[ ],
{type: "date", required: false, message: "输入正确的日期"} "fxdgrp.rec.acc": [
], {type: "string", required: true, message: "必输项"},
"fxtp.fxdgrp.rec.valdat":[ {max: 21, message: "长度不能超过21"}
{type: "date", required: false, message: "输入正确的日期"} ],
], "fxdgrp.rec.acc2": [
"fxtp.fxdgrp.rec.setdat":[ {type: "string", required: true, message: "必输项"},
{type: "date", required: false, message: "输入正确的日期"} {max: 21, message: "长度不能超过21"}
], ],
"fxtp.fxdgrp.rec.setdatto":[ "fxdgrp.rec.trnman": [
{type: "date", required: false, message: "输入正确的日期"} {type: "string", required: true, message: "必输项"},
], {max: 2, message: "长度不能超过2"}
"fxtp.fxdgrp.rec.setdatfrm":[ ],
{type: "date", required: false, message: "输入正确的日期"} "fxdgrp.rec.trdint": [
], {type: "string", required: true, message: "必输项"},
"fxtp.fxdgrp.blk.remark":[ {max: 3, message: "长度不能超过3"}
{type: "string", required: true, message: "必输项"}, ],
{max: 35,message:"长度不能超过35"}
],
} }
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js"; import Pub from "~/components/business/commonModel/index.js";
import Fxdgrp from '~/components/business/commonModel/fxdgrp';
export default class Fxtssb { export default class Fxtssb {
constructor() { constructor() {
this.data = { this.data = {
fxtp: { fxtp: {
fxdgrp: { amtlab: "", // Amount Label .fxtp.amtlab
rec: { cnylab: "", // Amount LabelCNY .fxtp.cnylab
ownref: "", // 结售汇业务参考号 .fxtp.fxdgrp.rec.ownref frgchk: "", // 外币 .fxtp.frgchk
nam: "", // 名称 .fxtp.fxdgrp.rec.nam cnychk: "", // 人民币 .fxtp.cnychk
fxtyp: "", // 结售汇类型 .fxtp.fxdgrp.rec.fxtyp cshflg: "", // 钞汇标志 .fxtp.cshflg
opndat: "", // 登记日期 .fxtp.fxdgrp.rec.opndat
valdat: "", // 起息日 .fxtp.fxdgrp.rec.valdat
rat: "", // 对外牌价 .fxtp.fxdgrp.rec.rat
midrat: "", // 中间价 .fxtp.fxdgrp.rec.midrat
quoref: "", // 询价编号 .fxtp.fxdgrp.rec.quoref
fudref: "", // 资金部编号 .fxtp.fxdgrp.rec.fudref
setdat: "", // 远期交割日 .fxtp.fxdgrp.rec.setdat
setdatfrm: "", // 择期交割起始日 .fxtp.fxdgrp.rec.setdatfrm
setdatto: "", // 择期交割截止日 .fxtp.fxdgrp.rec.setdatto
trnman: "", // 交易主体 .fxtp.fxdgrp.rec.trnman
trdint: "", // 结售汇类型 .fxtp.fxdgrp.rec.trdint
trdout: "", // 结售汇类型 .fxtp.fxdgrp.rec.trdout
acc: "", // 外币结算账号 .fxtp.fxdgrp.rec.acc
acc2: "", // 本币结算账号 .fxtp.fxdgrp.rec.acc2
dsp: "", // 外币结算账号 .fxtp.fxdgrp.rec.dsp
dsp2: "", // 本币结算账号 .fxtp.fxdgrp.rec.dsp2
},
cbs: {
max: {
cur: "", // Currency .fxtp.fxdgrp.cbs.max.cur
amt: "", // Balance .fxtp.fxdgrp.cbs.max.amt
},
nom1: {
cur: "", // Currency .fxtp.fxdgrp.cbs.nom1.cur
amt: "", // Balance .fxtp.fxdgrp.cbs.nom1.amt
},
},
apl: {
pts: new Pts().data,
},
blk: {
remark: "", // 备注 .fxtp.fxdgrp.blk.remark
},
},
amtlab: "", // Amount Label .fxtp.amtlab
cnylab: "", // Amount LabelCNY .fxtp.cnylab
frgchk: "", // 外币 .fxtp.frgchk
cnychk: "", // 人民币 .fxtp.cnychk
aplp: {
ptspta: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .fxtp.aplp.ptspta.dbfadrblkcn
},
ptsget: {
sdamod: {
seainf: "", // .fxtp.aplp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .fxtp.aplp.ptsget.sdamod.dadsnd
}, },
}, fxdgrp: new Fxdgrp().data,
}, setmod: new Pub().data.Setmod,
cshflg: "", // 钞汇标志 .fxtp.cshflg docpan: new Pub().data.Docpan,
usrget: { trndia: new Pub().data.Trndia,
sdamod: { }
seainf: "", // .fxtp.usrget.sdamod.seainf
},
usr: {
extkey: "", // User ID .fxtp.usrget.usr.extkey
},
},
},
fxdgrp: {
apl: {
pts: new Pts().data,
},
},
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia,
} }
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment