Commit 107a3c30 by jianglong

新增fxtfcm开发

parent 8540ea43
...@@ -4,6 +4,7 @@ export default class Fxdgrp { ...@@ -4,6 +4,7 @@ export default class Fxdgrp {
constructor() { constructor() {
this.data = { this.data = {
rec: { rec: {
inr:"",
ownref: "", // 结售汇业务参考号 fxdgrp.rec.ownref ownref: "", // 结售汇业务参考号 fxdgrp.rec.ownref
nam: "", // 名称 fxdgrp.rec.nam nam: "", // 名称 fxdgrp.rec.nam
fxtyp: "", // 结售汇类型 fxdgrp.rec.fxtyp fxtyp: "", // 结售汇类型 fxdgrp.rec.fxtyp
...@@ -25,6 +26,17 @@ export default class Fxdgrp { ...@@ -25,6 +26,17 @@ export default class Fxdgrp {
dsp2: "", // 本币结算账号 fxdgrp.rec.dsp2 dsp2: "", // 本币结算账号 fxdgrp.rec.dsp2
usr: "", // 业务经办人 fxdgrp.rec.usr usr: "", // 业务经办人 fxdgrp.rec.usr
ownusr: "", // Clearing Department Responsible User fxdgrp.rec.ownusr ownusr: "", // Clearing Department Responsible User fxdgrp.rec.ownusr
cnfdat:"",
clsdat:"",
ver:"",
branchinr:"",
bchkeyinr:"",
cshpct:0,
rat1: 0.000000,
accmng:"",
hdbch:"",
etyextkey:"",
}, },
blk: { blk: {
remark: "", // 备注 fxdgrp.blk.remark remark: "", // 备注 fxdgrp.blk.remark
......
...@@ -21,16 +21,17 @@ export default { ...@@ -21,16 +21,17 @@ export default {
}; };
}, },
buildCommonData(model, trnName) { buildCommonData(model, trnName) {
let ptsptaList = Utils.formatPtspta(model.fxtp.fxdgrp, this.buildPtspta); let ptsptaList = Utils.formatPtspta(model.fxdgrp, this.buildPtspta);
return { return {
rec: { rec: {
objtyp: "FXT", objtyp: "FXD",
objinr: model.fxtp.fxdgrp.rec.inr, objinr: model.fxdgrp.rec.inr,
ownref: model.fxtp.fxdgrp.rec.ownref, ownref: model.fxdgrp.rec.ownref,
fxtyp:model.fxdgrp.rec.fxtyp,
}, },
cbsMap: { cbsMap: {
MAX: model.fxtp.fxdgrp.cbs.max, MAX: model.fxdgrp.cbs.max,
NOM1: model.fxtp.fxdgrp.cbs.nom1, NOM1: model.fxdgrp.cbs.nom1,
}, },
ptsList: ptsptaList, ptsList: ptsptaList,
transName: trnName, transName: trnName,
......
...@@ -124,239 +124,239 @@ export default { ...@@ -124,239 +124,239 @@ export default {
{max: 40,message:"长度不能超过40"} {max: 40,message:"长度不能超过40"}
], ],
"mt30m.a53act":[ // "mt30m.a53act":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"} // {max: 34,message:"长度不能超过34"}
], // ],
"mt30m.b53act":[ // "mt30m.b53act":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"} // {max: 34,message:"长度不能超过34"}
], // ],
"mt30m.a53p.ptsget.sdamod.dadsnd":[ // "mt30m.a53p.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.b53p.ptsget.sdamod.dadsnd":[ // "mt30m.b53p.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.a53.pts.extkey":[ // "mt30m.a53.pts.extkey":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.a53p.ptsget.sdamod.seainf":[ // "mt30m.a53p.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} // {max: 3,message:"长度不能超过3"}
], // ],
"mt30m.b53.pts.extkey":[ // "mt30m.b53.pts.extkey":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.b53p.ptsget.sdamod.seainf":[ // "mt30m.b53p.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} // {max: 3,message:"长度不能超过3"}
], // ],
"mt30m.conref":[ // "mt30m.conref":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.a53.pts.nam":[ // "mt30m.a53.pts.nam":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"} // {max: 40,message:"长度不能超过40"}
], // ],
"mt30m.b53.pts.nam":[ // "mt30m.b53.pts.nam":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"} // {max: 40,message:"长度不能超过40"}
], // ],
"mt30m.iniact":[ // "mt30m.iniact":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"} // {max: 34,message:"长度不能超过34"}
], // ],
"mt30m.b56act":[ // "mt30m.b56act":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"} // {max: 34,message:"长度不能超过34"}
], // ],
"mt30m.inip.ptsget.sdamod.dadsnd":[ // "mt30m.inip.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.b56p.ptsget.sdamod.dadsnd":[ // "mt30m.b56p.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.ini.pts.extkey":[ // "mt30m.ini.pts.extkey":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.inip.ptsget.sdamod.seainf":[ // "mt30m.inip.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} // {max: 3,message:"长度不能超过3"}
], // ],
"mt30m.b56.pts.extkey":[ // "mt30m.b56.pts.extkey":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.b56p.ptsget.sdamod.seainf":[ // "mt30m.b56p.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} // {max: 3,message:"长度不能超过3"}
], // ],
"mt30m.coninf":[ // "mt30m.coninf":[
{type: "string", required: true, message: "必输项"}, // {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} // {max: 35,message:"长度不能超过35"}
], // ],
"mt30m.ini.pts.nam":[ // "mt30m.ini.pts.nam":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"} // {max: 40,message:"长度不能超过40"}
], // ],
"mt30m.b56.pts.nam":[ // "mt30m.b56.pts.nam":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"} // {max: 40,message:"长度不能超过40"}
], // ],
"mt30m.rbcact":[ // "mt30m.rbcact":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"} // {max: 34,message:"长度不能超过34"}
], // ],
"mt30m.owcact":[ // "mt30m.owcact":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"} // {max: 34,message:"长度不能超过34"}
], // ],
"mt30m.rbcp.ptsget.sdamod.dadsnd":[ // "mt30m.rbcp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.owcp.ptsget.sdamod.dadsnd":[ // "mt30m.owcp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.rbc.pts.extkey":[ // "mt30m.rbc.pts.extkey":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.rbcp.ptsget.sdamod.seainf":[ // "mt30m.rbcp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} // {max: 3,message:"长度不能超过3"}
], // ],
"mt30m.owc.pts.extkey":[ // "mt30m.owc.pts.extkey":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.owcp.ptsget.sdamod.seainf":[ // "mt30m.owcp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} // {max: 3,message:"长度不能超过3"}
], // ],
"mt30m.deamettxt":[ // "mt30m.deamettxt":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} // {max: 35,message:"长度不能超过35"}
], // ],
"mt30m.rbc.pts.nam":[ // "mt30m.rbc.pts.nam":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"} // {max: 40,message:"长度不能超过40"}
], // ],
"mt30m.owc.pts.nam":[ // "mt30m.owc.pts.nam":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"} // {max: 40,message:"长度不能超过40"}
], // ],
"mt30m.comamt":[ // "mt30m.comamt":[
{type: "number", required: false, message: "必输项"}, // {type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, // {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } // {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], // ],
"mt30m.c84p.ptsget.sdamod.dadsnd":[ // "mt30m.c84p.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.b58act":[ // "mt30m.b58act":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"} // {max: 34,message:"长度不能超过34"}
], // ],
"mt30m.c84.pts.extkey":[ // "mt30m.c84.pts.extkey":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.c84p.ptsget.sdamod.seainf":[ // "mt30m.c84p.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} // {max: 3,message:"长度不能超过3"}
], // ],
"mt30m.ctpref":[ // "mt30m.ctpref":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.b58p.ptsget.sdamod.dadsnd":[ // "mt30m.b58p.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.b58.pts.extkey":[ // "mt30m.b58.pts.extkey":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.b58p.ptsget.sdamod.seainf":[ // "mt30m.b58p.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} // {max: 3,message:"长度不能超过3"}
], // ],
"mt30m.c84.pts.nam":[ // "mt30m.c84.pts.nam":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"} // {max: 40,message:"长度不能超过40"}
], // ],
"mt30m.c88ref":[ // "mt30m.c88ref":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.b58.pts.nam":[ // "mt30m.b58.pts.nam":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"} // {max: 40,message:"长度不能超过40"}
], // ],
"mt30m.str300":[ // "mt30m.str300":[
{type: "string", required: true, message: "必输项"}, // {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} // {max: 35,message:"长度不能超过35"}
], // ],
"mt30m.c88p.ptsget.sdamod.dadsnd":[ // "mt30m.c88p.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.c88.pts.extkey":[ // "mt30m.c88.pts.extkey":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.c88p.ptsget.sdamod.seainf":[ // "mt30m.c88p.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} // {max: 3,message:"长度不能超过3"}
], // ],
"mt30m.c85p.ptsget.sdamod.dadsnd":[ // "mt30m.c85p.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.c85.pts.extkey":[ // "mt30m.c85.pts.extkey":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} // {max: 16,message:"长度不能超过16"}
], // ],
"mt30m.c85p.ptsget.sdamod.seainf":[ // "mt30m.c85p.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} // {max: 3,message:"长度不能超过3"}
], // ],
"mt30m.c88.pts.nam":[ // "mt30m.c88.pts.nam":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"} // {max: 40,message:"长度不能超过40"}
], // ],
"mt30m.c85.pts.nam":[ // "mt30m.c85.pts.nam":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"} // {max: 40,message:"长度不能超过40"}
], // ],
"fxt300l1blk":[ // "fxt300l1blk":[
{type: "string", required: true, message: "必输项"}, // {type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"} // {max: 200,message:"长度不能超过200"}
], // ],
} }
\ No newline at end of file
import commonFunctions from "~/mixin/commonFunctions.js";
/** import commonDepend from "~/mixin/commonDepend";
* Fxtfcm Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default { export default {
"mt30m.c85.pts.extkey" :Utils.defaultFunction, mixins: [commonFunctions, commonDepend],
"mt30m.deamet" :Utils.defaultFunction, methods: {
"fxtp.cnychk" :Utils.defaultFunction,
"fxtp.frgchk" :Utils.defaultFunction, },
"fxdgrp.rec.ownusr" :Utils.defaultFunction, };
"fxdgrp.apl.dbfadrblkcn" :Utils.defaultFunction, \ No newline at end of file
"swtflg" :Utils.defaultFunction,
"fxtp.usr.extkey" :Utils.defaultFunction,
"fxdgrp.rec.usr" :Utils.defaultFunction,
"fxdgrp.cbs.nom1.cur" :Utils.defaultFunction,
"fxdgrp.cbs.max.cur" :Utils.defaultFunction,
"fxdgrp.rec.rat" :Utils.defaultFunction,
"fxdgrp.cbs.nom1.amt" :Utils.defaultFunction,
"fxdgrp.cbs.max.amt" :Utils.defaultFunction,
"mt30m.c84.pts.extkey" :Utils.defaultFunction,
"fxdgrp.apl.pts.adrblk" :Utils.defaultFunction,
"mt30m.deamettxt" :Utils.defaultFunction,
"mt30m.b58.pts.extkey" :Utils.defaultFunction,
"fxdgrp.act.pts.extkey" :Utils.defaultFunction,
"fxdgrp.rec.fxtyp" :Utils.defaultFunction,
"fxdgrp.apl.pts.extkey" :Utils.defaultFunction,
"mt30m.a53.pts.extkey" :Utils.defaultFunction,
"aplacc.pts.extkey" :Utils.defaultFunction,
"mt30m.b53.pts.extkey" :Utils.defaultFunction,
"mt30m.b56.pts.extkey" :Utils.defaultFunction,
"fxdgrp.rec.ownref" :Utils.defaultFunction,
"mt30m.rbc.pts.extkey" :Utils.defaultFunction,
"mt30m.ini.pts.extkey" :Utils.defaultFunction,
"mt30m.s94a" :Utils.defaultFunction,
"mt30m.owc.pts.extkey" :Utils.defaultFunction,
"mt30m.c88.pts.extkey" :Utils.defaultFunction,
"mt30m.s22a" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api" import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts" import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js";
import Fxdgrp from '~/components/business/commonModel/fxdgrp';
export default class Fxtfcm{ export default class Fxtfcm{
constructor () { constructor () {
this.data = { this.data = {
fxtfcm:{ fxdgrp: new Fxdgrp().data,
rec:{
ownref:"", // 平盘业务参考号 .fxtfcm.rec.ownref
nam:"", // 名称 .fxtfcm.rec.nam
fxtyp:"", // 平盘类型 .fxtfcm.rec.fxtyp
opndat:"", // 平盘日期 .fxtfcm.rec.opndat
valdat:"", // 起息日 .fxtfcm.rec.valdat
rat:"", // 平盘牌价 .fxtfcm.rec.rat
midrat:"", // 中间价 .fxtfcm.rec.midrat
ownusr:"", // 资金部负责人 .fxtfcm.rec.ownusr
usr:"", // 清算中心负责人 .fxtfcm.rec.usr
detail:"", // 详情 .fxtfcm.rec.detail
other:"", //其它
},
apl:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .fxtfcm.apl.dbfadrblkcn
},
blk:{
remark:"", // 备注 .fxtfcm.blk.remark
},
cbs:{
max:{
cur:"", // Currency .fxtfcm.cbs.max.cur
amt:"", // Balance .fxtfcm.cbs.max.amt
},
nom1:{
cur:"", // Currency .fxtfcm.cbs.nom1.cur
amt:"", // Balance .fxtfcm.cbs.nom1.amt
},
},
act:{
pts:new Pts().data,
},
},
fxtp:{ fxtp:{
amtlab:"", // Amount Label .fxtp.amtlab frgchk:"X"
cnylab:"", // Amount LabelCNY .fxtp.cnylab
frgchk:"", // 外币 .fxtp.frgchk
cnychk:"", // 人民币 .fxtp.cnychk
aplp:{
ptsget:{
sdamod:{
seainf:"", // .fxtp.aplp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fxtp.aplp.ptsget.sdamod.dadsnd
},
},
},
usrget:{
sdamod:{
seainf:"", // .fxtp.usrget.sdamod.seainf
},
},
usr:{
extkey:"", // User ID .fxtp.usr.extkey
},
actp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .fxtp.actp.ptsget.sdamod.dadsnd
seainf:"", // .fxtp.actp.ptsget.sdamod.seainf
},
},
},
},
aplacc:{
pts:new Pts().data,
},
aplaccp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .aplaccp.ptsget.sdamod.dadsnd
seainf:"", // .aplaccp.ptsget.sdamod.seainf
},
},
}, },
acc2:"", // APLACC's Account .acc2 acc2:"", // APLACC's Account .acc2
acc1:"", // OWNACC's Account .acc1 acc1:"", // OWNACC's Account .acc1
swtflg:"", // 发送MT300 .swtflg swtflg:"",
mt30m:{ mt30m:{
s22a:"", // Typeof Operation(:22A) .mt30m.s22a s22a:"", // Typeof Operation(:22A) .mt30m.s22a
s94a:"", // Scope of Operation(:94A) .mt30m.s94a s94a:"", // Scope of Operation(:94A) .mt30m.s94a
...@@ -215,8 +146,13 @@ export default class Fxtfcm{ ...@@ -215,8 +146,13 @@ export default class Fxtfcm{
c88ref:"", // Broker's Reference .mt30m.c88ref c88ref:"", // Broker's Reference .mt30m.c88ref
str300:"", // Sender to Receiver Information .mt30m.str300 str300:"", // Sender to Receiver Information .mt30m.str300
}, },
fxt300l1blk:"", // XMLPanel fxt300l1的内置block .fxt300l1blk fxt300l1blk:"",
pageId: "" // ctx的key aplacc:{
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
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="24">
<!-- S0000002 : 平盘业务参考号 --> <!-- ==================左边================ -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="9"> <c-col :span="24">
<c-form-item label="平盘业务参考号" prop="fxtfcm.rec.ownref"> <c-form-item label="业务编号" prop="fxdgrp.rec.ownref">
<c-input disabled v-model="model.fxtfcm.rec.ownref" maxlength="16" ></c-input> <c-fullbox>
<c-input v-model="model.fxdgrp.rec.ownref" maxlength="16" placeholder="请输入业务编号" disabled>
</c-input>
<template slot="footer">
<c-button style="margin: 0 5px" size="small" type="primary" :disabled="getOwnrefFlg"
@click="getOwnref" >
获取
</c-button>
</template>
</c-fullbox>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="3"> <c-col :span="24">
<c-button size="small" type="primary" @click="onFxtpButgetref"> <c-form-item label="经办人(资金部)" prop="fxdgrp.rec.ownusr">
Get Ref <c-fullbox>
<c-input v-model="model.fxdgrp.rec.ownusr" placeholder="请输入业务负责人" ></c-input>
<template slot="footer">
<c-button style="margin: 0 5px" size="small" type="primary">
i
</c-button> </c-button>
</c-col> </template>
</c-fullbox>
<!-- S0000003 : 名称 -->
<c-col :span="12">
<c-form-item label="名称" prop="fxtfcm.rec.nam">
<c-input disabled v-model="model.fxtfcm.rec.nam" maxlength="40" ></c-input>
</c-form-item> </c-form-item>
</c-col>
<c-col :span="12">
<!-- S0000006 : 平盘对手 -->
<c-col :span="12">
<c-form-item label="平盘对手" prop="fxtfcm.apl.pts.ref">
<c-input v-model="model.fxtfcm.apl.pts.ref" maxlength="20" ></c-input>
</c-form-item>
</c-col>
</c-col> </c-col>
<c-col :span="12">
<c-col :span="24"> <c-col :span="24">
<c-form-item label="平盘机构" prop="aplacc.pts.nam"> <c-form-item label="经办人(营运部)" prop="fxdgrp.rec.usr">
<c-input disabled v-model="model.aplacc.pts.nam" maxlength="40" ></c-input> <c-fullbox>
<c-input v-model="model.fxdgrp.rec.usr" placeholder="请输入业务负责人" ></c-input>
<template slot="footer">
<c-button style="margin: 0 5px" size="small" type="primary">
i
</c-button>
</template>
</c-fullbox>
</c-form-item> </c-form-item>
</c-col>
</c-col>
<c-col :span="24"></c-col>
<c-col :span="12">
<!-- S0000021 : 清算中心负责人 -->
<c-col :span="12">
<c-form-item label="清算中心负责人" prop="fxtfcm.rec.usr">
<c-input v-model="model.fxtfcm.rec.usr" maxlength="8" ></c-input>
</c-form-item>
</c-col>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<c-col :span="21"> <el-form-item label="平盘类型" prop="fxdgrp.rec.fxtyp">
<c-form-item label="" prop="fxtfcm.rec.detail"> <c-select disabled v-model="model.fxdgrp.rec.fxtyp" style="width:100%" :code="codes.fxt_fxtyp" :filterKey="['FS', 'FB']">
<c-input disabled v-model="model.fxtfcm.rec.detail" ></c-input> </c-select>
</c-form-item> </el-form-item>
</c-col>
<c-col :span="3">
<i class="el-icon-info"></i>
<c-button size="small" type="primary" @click="onAplpDet">
明细
</c-button>
</c-col>
</c-col> </c-col>
<c-col :span="24">
<c-col :span="12">
<!-- S0000005 : 平盘类型 -->
<c-col :span="12"> <c-col :span="12">
<el-form-item label="平盘类型" prop="fxtfcm.rec.fxtyp"> <el-form-item label="卖出金额" prop="fxdgrp.cbs.max.cur">
<c-select disabled v-model="model.fxtfcm.rec.fxtyp" maxlength="20" ></c-select> <c-select-cur disabled v-model="model.fxdgrp.cbs.max.cur" style="width: 100%" dbCode="curtxt"> </c-select-cur>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col>
<c-col :span="12"> <c-col :span="12">
<c-col :span="24"> <el-form-item label-width="5px" prop="fxdgrp.cbs.max.amt">
<c-form-item prop="fxtfcm.apl.pts.adrblk"> <c-input-currency disabled
<c-input disabled type="textarea" v-model="model.fxtfcm.apl.pts.adrblk" maxlength="35" show-word-limit ></c-input> :currency="model.fxdgrp.cbs.max.cur"
</c-form-item> v-model="model.fxdgrp.cbs.max.amt"></c-input-currency>
</el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<!-- 卖出金额 -->
<c-col :span="12"> <c-col :span="12">
<c-col :span="8"> <el-form-item label="买入金额" prop="fxdgrp.cbs.nom1.cur">
<el-form-item label="卖出金额" prop="fxtfcm.cbs.max.cur"> <c-select-cur disabled v-model="model.fxdgrp.cbs.nom1.cur" style="width: 100%" dbCode="curtxt"> </c-select-cur>
<c-select-cur disabled v-model="model.fxtfcm.cbs.max.cur" style="width: 100%" dbCode="curtxt"> </c-select-cur>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="6"> <c-col :span="12">
<el-form-item label-width="5px" prop="fxtfcm.cbs.max.amt"> <el-form-item label-width="5px" prop="fxdgrp.cbs.nom1.amt">
<c-input-currency <c-input-currency
disabled disabled
:currency="model.fxtfcm.cbs.max.cur" :currency="model.fxdgrp.cbs.nom1.cur"
v-model="model.fxtfcm.cbs.max.amt"></c-input-currency> v-model="model.fxdgrp.cbs.nom1.amt"></c-input-currency>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="24">
<c-form-item label="平盘牌价" prop="fxdgrp.rec.rat">
<c-input-currency disabled v-model="model.fxdgrp.rec.rat" style="width:100%" :precision="6" placeholder="请输入平盘牌价">
</c-input-currency>
</c-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<!-- 买入金额 --> <c-form-item label="中间价" prop="fxdgrp.rec.midrat">
<c-col :span="12"> <c-input-currency v-model="model.fxdgrp.rec.midrat" style="width:100%" :precision="6" disabled placeholder="请输入中间价">
<c-col :span="8"> </c-input-currency>
<el-form-item label="买入金额" prop="fxtfcm.cbs.nom1.cur"> </c-form-item>
<c-select-cur disabled v-model="model.fxtfcm.cbs.nom1.cur" style="width: 100%" dbCode="curtxt"> </c-select-cur>
</el-form-item>
</c-col> </c-col>
<c-col :span="6"> <c-col :span="24">
<el-form-item label-width="5px" prop="fxtfcm.cbs.nom1.amt"> <el-form-item label="成交日" prop="fxdgrp.rec.opndat">
<c-input-currency <c-date-picker disabled type="date" v-model="model.fxdgrp.rec.opndat" style="width:100%" placeholder="请输入成交日">
disabled </c-date-picker>
:currency="model.fxtfcm.cbs.nom1.cur"
v-model="model.fxtfcm.cbs.nom1.amt"></c-input-currency>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24">
<el-form-item label="起息日" prop="fxdgrp.rec.valdat">
<c-date-picker disabled type="date" v-model="model.fxdgrp.rec.valdat" style="width:100%" placeholder="请输入起息日">
</c-date-picker>
</el-form-item>
</c-col> </c-col>
<c-col :span="24">
<c-col :span="9"> <c-form-item label="备注" prop="fxdgrp.blk.remark">
<c-form-item label="平盘机构账户行" prop="acc2"> <c-input type="textarea" v-model="model.fxdgrp.blk.remark" maxlength="140" :rows="4" style="width:100%" placeholder="请输入备注">
<c-input v-model="model.acc2" ></c-input> </c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="3">
<i class="el-icon-info"></i>
<c-button size="small" type="primary" @click="onAplpDet">
明细
</c-button>
</c-col>
</c-col>
<c-col :span="24"> <c-col :span="24">
<!-- S0000013 : 平盘牌价 --> <c-checkbox v-model="model.swtflg">发送MT300</c-checkbox>
<c-col :span="12">
<c-form-item label="平盘牌价" prop="fxtfcm.rec.rat">
<c-input disabled v-model="model.fxtfcm.rec.rat" ></c-input>
</c-form-item>
</c-col> </c-col>
</c-col> </c-col>
<!-- ==================右边================ -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24"> <c-col :span="24">
<!-- S0000014 : 中间价 --> <c-form-item label="业务名称" prop="fxdgrp.rec.nam">
<c-col :span="12"> <c-input v-model="model.fxdgrp.rec.nam" maxlength="40" disabled></c-input>
<c-form-item label="中间价" prop="fxtfcm.rec.midrat">
<c-input disabled v-model="model.fxtfcm.rec.midrat" ></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col>
<c-col :span="24"> <c-col :span="24">
<el-card class="box-card">
<!-- S0000007 : 平盘日期 --> <c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="true" :disabled="true" :isAdrblk="true" :haveAdrLabel="true"
<c-col :span="12"> :isShowCard="false"
<el-form-item label="平盘日期" prop="fxtfcm.rec.opndat"> :argadr="{title: '平盘对手', grp: 'fxdgrp', rol: 'apl',}"
<c-date-picker disabled type="date" v-model="model.fxtfcm.rec.opndat" style="width:100%" ></c-date-picker> :label="{labelExtkey:'平盘对手',labelNam:'名称',labelAdrblk:'地址',}"
</el-form-item> ptytyp="B">
</c-ptap>
</el-card>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<el-form-item prop="fxtfcm.rec.other"> <el-card class="box-card">
<c-select v-model="model.fxtfcm.rec.other" style="width:100%"> <c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="true" :isAdrblk="true" :haveAdrLabel="true"
</c-select> :isShowCard="false"
</el-form-item> :argadr="{title: '平盘对手账户行', grp: 'fxdgrp', rol: 'acc',}"
</c-col> :label="{labelExtkey:'平盘对手账户行',labelNam:'名称',labelAdrblk:'地址',}"
ptytyp="B">
</c-ptap>
</el-card>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<!-- S0000008 : 起息日 --> <el-form-item prop="acc2">
<c-col :span="12"> <c-select v-model="model.acc2" style="width:100%">
<el-form-item label="起息日" prop="fxtfcm.rec.valdat"> </c-select>
<c-date-picker disabled type="date" v-model="model.fxtfcm.rec.valdat" style="width:100%" ></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- S0000019 : 我行账户行 -->
<c-col :span="12">
<c-form-item label="我行账户行" prop="fxtfcm.act.pts.ref">
<c-input v-model="model.fxtfcm.act.pts.ref" maxlength="20" ></c-input>
</c-form-item>
</c-col>
</c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <el-card class="box-card">
<c-form-item label="备注" prop="fxtfcm.blk.remark"> <c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="true" :isAdrblk="true" :haveAdrLabel="true"
<c-input type="textarea" v-model="model.fxtfcm.blk.remark" maxlength="35" show-word-limit ></c-input> :isShowCard="false"
</c-form-item> :argadr="{title: '我行账户行', grp: 'fxdgrp', rol: 'act',}"
</c-col> :label="{labelExtkey:'我行账户行',labelNam:'名称',labelAdrblk:'地址',}"
ptytyp="B">
<c-col :span="9"> </c-ptap>
<c-form-item prop="fxtp.aplp.ptsget.sdamod.seainf"> </el-card>
<c-input v-model="model.fxtp.aplp.ptsget.sdamod.seainf" ></c-input>
</c-form-item>
</c-col>
<c-col :span="3">
<i class="el-icon-info"></i>
<c-button size="small" type="primary" @click="onAplpDet">
明细
</c-button>
</c-col>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.swtflg">发送MT300</c-checkbox>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<el-form-item prop="acc1"> <el-form-item prop="acc1">
<c-select v-model="model.acc1" style="width:100%"> <c-select v-model="model.acc1" style="width:100%">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col>
</c-col>
</div> </div>
</template> </template>
<script> <script>
...@@ -226,7 +184,7 @@ import Event from "../model/Event" ...@@ -226,7 +184,7 @@ import Event from "../model/Event"
export default { export default {
inject: ['root'], inject: ['root'],
props:["model","codes"], props:["model","codes"],
mixins: [commonProcess], mixins: [Event,commonProcess],
data(){ data(){
return { return {
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<c-page title="结售汇平盘确认"> <c-content>
<el-form <el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
:model="model"
:rules="rules"
ref="modelForm"
label-width="150px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--fxtfcm PD000001 Confirmation --> <!--fxtfcm PD000001 Confirmation -->
<el-tab-pane label="概要" name="cnfp"> <el-tab-pane label="Confirmation" name="cnfp">
<m-cnfp :model="model" :codes="codes"/> <m-cnfp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="费用/账务" name="setpan">
<c-content>
<m-setpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<!--fxtfcm PD000023 MT300 --> <!--fxtfcm PD000023 MT300 -->
<el-tab-pane label="MT300" name="mt300"> <el-tab-pane label="MT300" name="mt300">
<m-mt300 :model="model" :codes="codes"/> <m-mt300 :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<!--fxtfcm PD000065 MT300 -->
<el-tab-pane label="fxt300l1" name="fxt300l1">
<m-fxt300l1 :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
...@@ -35,14 +33,23 @@ ...@@ -35,14 +33,23 @@
@handleSureWarning="handleSureWarning" @handleSureWarning="handleSureWarning"
ref="commonBtn" ref="commonBtn"
></c-function-btn> ></c-function-btn>
</c-page> </c-content>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Fxtfcm from "../model"
import commonProcess from "~/mixin/commonProcess" import commonProcess from "~/mixin/commonProcess"
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import buildFn from "../event/buildCommons.js";
import Fxtfcm from "../model";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import Check from "../model/Check" import Check from "../model/Check"
// import Default from "../model/Default" // import Default from "../model/Default"
// import Pattern from "../model/Pattern" // import Pattern from "../model/Pattern"
...@@ -55,6 +62,8 @@ export default { ...@@ -55,6 +62,8 @@ export default {
name: "Fxtfcm", name: "Fxtfcm",
components:{ components:{
"m-cnfp" : Cnfp, "m-cnfp" : Cnfp,
"m-setpan": Setpan,
"m-docpan": Docpan,
"m-mt300" : Mt300, "m-mt300" : Mt300,
"m-fxt300l1" : Fxt300l1, "m-fxt300l1" : Fxt300l1,
}, },
...@@ -63,7 +72,7 @@ export default { ...@@ -63,7 +72,7 @@ export default {
root: this root: this
} }
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess,operationFunc,commonDepend,event,buildFn], // 里面包含了Default、Check等的公共处理
data(){ data(){
return { return {
tabVal: "cnfp", tabVal: "cnfp",
...@@ -74,31 +83,27 @@ export default { ...@@ -74,31 +83,27 @@ export default {
// defaultRules: Default, // defaultRules: Default,
// pattern: Pattern, // pattern: Pattern,
rules: Check, rules: Check,
codes: { codes: { ...CodeTable
}, },
} }
}, },
methods:{ methods:{
myTabClick(tab){ myTabClick(tab){
this.tabClick(tab) this.tabClick(tab)
/**
* do it yourself
**/
} }
}, },
created:async function(){ created:async function(){
console.log("进入fxtfcm交易"); console.log("进入fxtfcm交易.."+this.trnName);
let rtnmsg = {}; // await this.init({}) let params = {
if(rtnmsg.respCode == SUCCESS) transName: this.trnName,
{ fxdgrp: {
this.updateModel(rtnmsg.data) rec: {
//TODO 处理数据逻辑 inr: this.$route.query.inr || "",
},
} },
else };
{ this.init(params)
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
} }
} }
</script> </script>
......
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
], ],
"fxdgrp.rec.rat": [ "fxdgrp.rec.rat": [
{required: true, message: "必输项"}, {required: true, message: "必输项"},
{max: 14, message: "长度不能超过14"}
], ],
"fxdgrp.rec.midrat": [ "fxdgrp.rec.midrat": [
......
...@@ -144,8 +144,12 @@ export default { ...@@ -144,8 +144,12 @@ export default {
defaultNam950: function () { defaultNam950: function () {
//debugger; //debugger;
let amount = this.moneyFormat(this.model.fxdgrp.cbs.max.amt, this.model.fxdgrp.cbs.max.cur) let amount = this.moneyFormat(this.model.fxdgrp.cbs.max.amt, this.model.fxdgrp.cbs.max.cur)
return this.getCodelabel(this.model.fxdgrp.rec.fxtyp, "fxt_fxtyp") + "," let nam= this.getCodelabel(this.model.fxdgrp.rec.fxtyp, "fxt_fxtyp") + ","
+ this.model.fxdgrp.cbs.max.cur + " " + amount; + this.model.fxdgrp.cbs.max.cur + " " + amount;
debugger
console.log("nam---",nam)
this.model.fxdgrp.rec.nam=nam;
return nam
}, },
}, },
......
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