Commit efe5e5f9 by jianglong

新增fttfcn交易

parent d5bb675c
...@@ -70,6 +70,8 @@ export default class Fttfcm { ...@@ -70,6 +70,8 @@ export default class Fttfcm {
}, },
}, },
narblk:"",
relref:"",
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan, docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia trndia: new Pub().data.Trndia
......
...@@ -24,13 +24,21 @@ export default { ...@@ -24,13 +24,21 @@ export default {
let ptsptaList = Utils.formatPtspta(model.ftdgrp, this.buildPtspta); let ptsptaList = Utils.formatPtspta(model.ftdgrp, this.buildPtspta);
return { return {
rec: { rec: {
objtyp: "FXT", objtyp: "FTD",
objinr: model.ftdgrp.rec.inr, objinr: model.ftdgrp.rec.inr,
ownref: model.ftdgrp.rec.ownref, ownref: model.ftdgrp.rec.ownref,
msgtyp: model.fttp.msgtyp,
fttyp: model.ftdgrp.rec.fttyp,
rat :model.ftdgrp.rec.rat,
bnktyp : model.ftdgrp.rec.bnktyp,
valdat: model.ftdgrp.rec.valdat,
canamt:model.canamt,
}, },
cbsMap: { cbsMap: {
MAX: model.ftdgrp.cbs.max, MAX: model.ftdgrp.cbs.max,
NOM1: model.ftdgrp.cbs.nom1, INS: model.ftdgrp.cbs.ins,
OPN1: model.ftdgrp.cbs.opn1,
OPN2: model.ftdgrp.cbs.opn2,
}, },
ptsList: ptsptaList, ptsList: ptsptaList,
transName: trnName, transName: trnName,
......
...@@ -2,28 +2,5 @@ import Api from "~/service/Api"; ...@@ -2,28 +2,5 @@ import Api from "~/service/Api";
import Utils from "~/utils"; import Utils from "~/utils";
export default { export default {
async onTropDet() {
let rtnmsg = await this.executeRule("trop.det");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
async onTripDet() {
let rtnmsg = await this.executeRule("trip.det");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
async onActpDet() {
let rtnmsg = await this.executeRule("actp.det");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
}; };
export default { export default {
"ftdgrp.rec.ownref":[ data() {
{type: "string", required: false, message: "必输项"}, return {
{max: 16,message:"长度不能超过16"} rules: {
],
"ftdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.tro.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fttp.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fttp.trop.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.tro.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.trop.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"canamt": [
{ required: true, message: "必输项" },
// {
// validator (rule, value, callback) {
// if (value>this.model.ftdgrp.cbs.opn2.amt) {
// return callback(new Error('实际销账金额不能大于待销账金额!'));
// }
// callback();
// }, trigger: ['blur', 'change']
// }
],
"ftdgrp.tro.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tro.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.cbs.opn2.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.cbs.opn2.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"setmod.doccur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"canamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.tri.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fttp.trip.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.tri.pts.extkey":[ },
{type: "string", required: false, message: "必输项"}, };
{max: 16,message:"长度不能超过16"} },
], };
"fttp.trip.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.tri.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tri.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.act.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fttp.actp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.act.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.actp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.act.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.act.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ No newline at end of file
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 Pub from "~/components/business/commonModel/index.js";
import Ftdgrp from '~/components/business/commonModel/ftdgrp';
export default class Fttfcn{ export default class Fttfcn{
constructor () { constructor () {
this.data = { this.data = {
ftdgrp:{ ftdgrp: new Ftdgrp().data,
rec:{
ownref:"", // 资金调拨业务参考号 .ftdgrp.rec.ownref fttp: {
nam:"", // 名称 .ftdgrp.rec.nam troact: "", // Trade-out Account .fttp.troact
fttyp:"", // 定存拆借类型 .ftdgrp.rec.fttyp triact: "", // 备注 .fttp.triact
}, msgtyp: "", // 报文类型 .fttp.msgtyp
cbs:{ benact: "",
max:{ bnaktypflg: "",
cur:"", // 定存拆借金额 .ftdgrp.cbs.max.cur mt32m: {
amt:"", // 定存拆借金额 .ftdgrp.cbs.max.amt amecur: "", // Broker's Commission Cur. .mt30m.comcur
}, ameamt: 0,
opn2:{ newcur: "", // Broker's Commission Cur. .mt30m.comcur
cur:"", // 待销账金额 .ftdgrp.cbs.opn2.cur newamt: 0,
amt:"", // Balance .ftdgrp.cbs.opn2.amt s22a: "", // Typeof Operation(:22A) .mt30m.s22a
}, s94a: "",
}, s17r: "",
tro:{ s22b: "",
pts:new Pts().data, s30x: "",
dbfadrblkcn:"", // Chinese address .ftdgrp.tro.dbfadrblkcn oldref: "",
}, conref: "",
tri:{ conno: "", // MT300 22C - 共同参号 .mt30m.conref
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tri.dbfadrblkcn a53act: "", // Delivery Agent Account .mt30m.a53act
}, iniact: "", // Intermediary Account .mt30m.iniact
act:{ rbcact: "", // Receiving Agent Account .mt30m.rbcact
pts:new Pts().data, a58act: "",
dbfadrblkcn:"", // Chinese address .ftdgrp.act.dbfadrblkcn
}, b53act: "", // Delivery Agent Account .mt30m.b53act
}, b56act: "", // Intermediary Account .mt30m.b56act
fttp:{ owcact: "", // Receiving Agent Account .mt30m.owcact
usr:{ b58act: "", // Beneficiary Institution Account .mt30m.b58act
extkey:"", // 资金部负责人 .fttp.usr.extkey str300: "",
},
trop:{
ptsget:{ b58: {
sdamod:{ pts: new Pts().data,
seainf:"", // .fttp.trop.ptsget.sdamod.seainf },
dadsnd:"", // Drag Drop Sender .fttp.trop.ptsget.sdamod.dadsnd b53: {
}, pts: new Pts().data,
}, },
}, owc: {
trip:{ pts: new Pts().data,
ptsget:{ },
sdamod:{ b56: {
seainf:"", // .fttp.trip.ptsget.sdamod.seainf pts: new Pts().data,
dadsnd:"", // Drag Drop Sender .fttp.trip.ptsget.sdamod.dadsnd },
},
}, a58: {
}, pts: new Pts().data,
actp:{ },
ptsget:{ rbc: {
sdamod:{ pts: new Pts().data,
seainf:"", // .fttp.actp.ptsget.sdamod.seainf },
dadsnd:"", // Drag Drop Sender .fttp.actp.ptsget.sdamod.dadsnd ini: {
}, pts: new Pts().data,
}, },
}, a53: {
}, pts: new Pts().data,
canamt:"", // Cancellation Amount .canamt },
setmod:{
doccur:"", // 实际消账金额 .setmod.doccur
}, },
mtabut:{ },
clsflg:"", // Close Flag .mtabut.clsflg
}, canamt:0,
pageId: "", // ctx的key setmod: new Pub().data.Setmod,
setmod: new Pub().data.Setmod, docpan: new Pub().data.Docpan,
docpan: new Pub().data.Docpan, trndia: new Pub().data.Trndia
trndia: new Pub().data.Trndia
}
} }
}
} }
\ No newline at end of file
...@@ -22,24 +22,33 @@ ...@@ -22,24 +22,33 @@
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-function-btn :handleCheck="handleCheck" :handleStash="handleStash" :handleSubmit="handleSubmit" <c-function-btn
@handleSureWarning="handleSureWarning" ref="commonBtn"></c-function-btn> :handleCheck="handleCheck"
:handleStash="handleStash"
:handleSubmit="handleSubmit"
@handleSureWarning="handleSureWarning"
ref="commonBtn"
></c-function-btn>
</c-page> </c-page>
</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 Fttfcn from "../model" import commonProcess from "~/mixin/commonProcess"
import Canp from "./Canp"
import Setpan from "~/components/business/setmod/views"; import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views"; import Docpan from "~/components/business/docpan/views";
import buildFn from "../event/buildCommons.js";
import Fttfcn from "../model";
import operationFunc from "~/mixin/operationFunc"; import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend"; import commonDepend from "~/mixin/commonDepend";
import event from "../event"; import event from "../event";
import buildFn from "../event/buildCommons.js";
import Check from "../model/Check.js"; import Check from "../model/Check.js";
import Canp from "./Canp"
export default { export default {
...@@ -54,7 +63,7 @@ export default { ...@@ -54,7 +63,7 @@ export default {
root: this root: this
} }
}, },
mixins: [operationFunc, commonDepend, event, buildFn], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess,operationFunc,commonDepend,event,Check,buildFn], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "canp", tabVal: "canp",
...@@ -74,16 +83,16 @@ export default { ...@@ -74,16 +83,16 @@ export default {
} }
}, },
created: async function () { created: async function () {
console.log("进入fttfcn交易"); console.log("进入fttfcn交易.."+this.trnName);
let rtnmsg = {}; // await this.init({}) let params = {
if (rtnmsg.respCode == SUCCESS) { transName: this.trnName,
this.updateModel(rtnmsg.data) ftdgrp: {
//TODO 处理数据逻辑 rec: {
inr: this.$route.query.inr || "",
} },
else { },
this.$notify.error({ title: '错误', message: '服务请求失败!' }); };
} this.init(params)
} }
} }
</script> </script>
......
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