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,
......
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处理
<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