Commit 09c06c4b by 吴佳

结售汇报价、结售汇平盘-平盘登记、平盘确认 页面布局调整

parent a79657db
import Utils from "~/utils";
export default {
methods: {
buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts;
return {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk,
pts,
};
},
buildCommonData(model, trnName) {
let ptsptaList = Utils.formatPtspta(model.fxdgrp, this.buildPtspta);
return {
rec: {
objtyp: "FXD",
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",
};
},
},
};
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
methods: {
}
}
\ No newline at end of file
/**
* Fxtlcm Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"mt30m.c85.pts.extkey" :Utils.defaultFunction,
"mt30m.deamet" :Utils.defaultFunction,
"fxtp.cnychk" :Utils.defaultFunction,
"fxtp.frgchk" :Utils.defaultFunction,
"fxdgrp.rec.ownusr" :Utils.defaultFunction,
"fxdgrp.apl.dbfadrblkcn" :Utils.defaultFunction,
"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 Utils from "~/utils"
export default {
async onFxtpButgetref(){
let rtnmsg = await this.executeRule("fxtp.butgetref")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onAplpDet(){
let rtnmsg = await this.executeRule("aplp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onAplaccpDet(){
let rtnmsg = await this.executeRule("aplaccp.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: '服务请求失败!'});
}
},
async onA53pDet(){
let rtnmsg = await this.executeRule("a53p.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onB53pDet(){
let rtnmsg = await this.executeRule("b53p.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInipDet(){
let rtnmsg = await this.executeRule("inip.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onB56pDet(){
let rtnmsg = await this.executeRule("b56p.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRbcpDet(){
let rtnmsg = await this.executeRule("rbcp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOwcpDet(){
let rtnmsg = await this.executeRule("owcp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onC84pDet(){
let rtnmsg = await this.executeRule("c84p.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onB58pDet(){
let rtnmsg = await this.executeRule("b58p.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onC88pDet(){
let rtnmsg = await this.executeRule("c88p.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onC85pDet(){
let rtnmsg = await this.executeRule("c85p.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ 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";
export default class Fxtlcm{ export default class Fxtlcm{
constructor () { constructor () {
...@@ -222,7 +223,11 @@ export default class Fxtlcm{ ...@@ -222,7 +223,11 @@ export default class Fxtlcm{
ousamt:"", // Outstanding Settlement Amount .mt30m.ousamt ousamt:"", // Outstanding Settlement Amount .mt30m.ousamt
}, },
fxt300l1blk:"", // XMLPanel fxt300l1的内置block .fxt300l1blk fxt300l1blk:"", // XMLPanel fxt300l1的内置block .fxt300l1blk
pageId: "" // ctx的key pageId: "", // ctx的key
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
liaccv: new Pub().data.Liaccv,
trndia: new Pub().data.Trndia,
} }
} }
} }
\ No newline at end of file
...@@ -3,88 +3,81 @@ ...@@ -3,88 +3,81 @@
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false"> <el-form :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">
<!--fxtlcm PD000001 Confirmation --> <!--fxtlcm PD000001 Confirmation -->
<el-tab-pane :label="$t('fxtlcm.PD000001')" name="cnfp"> <el-tab-pane :label="$t('fxtlcm.Confirmation')" name="cnfp">
<m-cnfp :model="model" :codes="codes"/> <m-cnfp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<!--fxtlcm PD000023 MT300 -->
<el-tab-pane :label="$t('fxtlcm.PD000023')" name="mt300"> <el-tab-pane :label="$t('commonModels.费用/账务')" name="setpan">
<m-mt300 :model="model" :codes="codes"/> <c-content>
</el-tab-pane> <m-setmod :model="model" :codes="codes"></m-setmod>
<!--fxtlcm PD000065 MT300 --> </c-content>
<el-tab-pane :label="$t('fxtlcm.PD000065')" name="fxt300l1"> </el-tab-pane>
<m-fxt300l1 :model="model" :codes="codes"/> <el-tab-pane :label="$t('commonModels.报文/面函')" name="docpan">
</el-tab-pane> <c-content>
<!--fxtlcm PD000084 MT300(1) --> <m-docpan :model="model" :codes="codes"></m-docpan>
<el-tab-pane :label="$t('fxtlcm.PD000084')" name="mt3001"> </c-content>
<m-mt3001 :model="model" :codes="codes"/> </el-tab-pane>
</el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-function-btn
:handleCheck="handleCheck"
:handleStash="handleStash"
:handleSubmit="handleSubmit"
@handleSureWarning="handleSureWarning"
ref="commonBtn">
</c-function-btn>
</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 Fxtlcm from "../model" import Fxtlcm from "../model"
import commonProcess from "~/mixin/commonProcess" import operationFunc from "~/mixin/operationFunc"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Cnfp from "./Cnfp" import Cnfp from "./Cnfp"
import Mt300 from "./Mt300" import Setpan from "~/components/business/setmod/views";
import Fxt300l1 from "./Fxt300l1" import Docpan from "~/components/business/docpan/views";
import Mt3001 from "./Mt3001" import event from "../event";
import commonDepend from "~/mixin/commonDepend";
import buildFn from "../event/buildCommons.js";
export default { export default {
name: "Fxtlcm", name: "Fxtlcm",
components:{ components:{
"m-cnfp" : Cnfp, "m-cnfp" : Cnfp,
"m-mt300" : Mt300, "m-setpan": Setpan,
"m-fxt300l1" : Fxt300l1, "m-docpan": Docpan
"m-mt3001" : Mt3001,
}, },
provide() { provide() {
return { return {
root: this root: this
} }
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [operationFunc, event, commonDepend, buildFn],
data(){ data(){
return { return {
tabVal: "cnfp", tabVal: "cnfp",
trnName: "fxtlcm", trnName: "fxtlcm",
trnType: "", trnType: "",
model: new Fxtlcm().data, model: new Fxtlcm().data,
checkRules: Check, codes: {},
defaultRules: Default, rules: {},
pattern: Pattern,
rules: null,
codes: {
},
} }
}, },
methods:{ methods:{},
myTabClick(tab){ created:async function(){},
this.tabClick(tab) mounted() {
/** console.log("fxtlcm");
* do it yourself let params = {
**/ transName: this.trnName,
} fxdgrp: {
}, rec: {
created:async function(){ inr: this.$route.query.inr || "",
console.log("进入fxtlcm交易"); },
let rtnmsg = {}; // await this.init({}) },
if(rtnmsg.respCode == SUCCESS) };
{ this.init(params)
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
} }
} }
</script> </script>
......
...@@ -113,6 +113,17 @@ ...@@ -113,6 +113,17 @@
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="成交日" prop="fxdgrp.rec.opndat">
<c-date-picker
type="date"
v-model="model.fxdgrp.rec.opndat"
style="width: 100%"
placeholder="请输入成交日"
>
</c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="备注" prop="fxdgrp.blk.remark"> <c-form-item label="备注" prop="fxdgrp.blk.remark">
<c-input <c-input
type="textarea" type="textarea"
...@@ -129,6 +140,11 @@ ...@@ -129,6 +140,11 @@
<!-- ==================右边================ --> <!-- ==================右边================ -->
<c-col :span="12" style="padding-right: 20px"> <c-col :span="12" style="padding-right: 20px">
<c-col :span="24"> <c-col :span="24">
<c-form-item :label="$t('fxtlop.业务名称')" prop="fxdgrp.rec.nam">
<c-input v-model="model.fxdgrp.rec.nam" maxlength="40" ></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-card class="box-card"> <el-card class="box-card">
<c-ptap <c-ptap
:model="model" :model="model"
...@@ -150,17 +166,6 @@ ...@@ -150,17 +166,6 @@
</el-card> </el-card>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="成交日" prop="fxdgrp.rec.opndat">
<c-date-picker
type="date"
v-model="model.fxdgrp.rec.opndat"
style="width: 100%"
placeholder="请输入成交日"
>
</c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="起息日" prop="fxdgrp.rec.valdat"> <el-form-item label="起息日" prop="fxdgrp.rec.valdat">
<c-date-picker <c-date-picker
type="date" type="date"
......
...@@ -11,11 +11,6 @@ ...@@ -11,11 +11,6 @@
<el-tab-pane :label="$t('fxtsqo.业务凭证')" name="fxtapll1"> <el-tab-pane :label="$t('fxtsqo.业务凭证')" name="fxtapll1">
<m-fxtapll1 :model="model" :codes="codes"/> <m-fxtapll1 :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('commonModels.保证金')" name="ccvpan">
<c-content>
<m-ccvpan :model="model" :codes="codes"></m-ccvpan>
</c-content>
</el-tab-pane>
<el-tab-pane :label="$t('commonModels.费用/账务')" name="setpan"> <el-tab-pane :label="$t('commonModels.费用/账务')" name="setpan">
<c-content> <c-content>
<m-setmod :model="model" :codes="codes"></m-setmod> <m-setmod :model="model" :codes="codes"></m-setmod>
...@@ -30,6 +25,11 @@ ...@@ -30,6 +25,11 @@
<!-- <el-tab-pane :label="$t('fxtsqo.外汇买卖水单/客户回单')" name="fxtapll2"> <!-- <el-tab-pane :label="$t('fxtsqo.外汇买卖水单/客户回单')" name="fxtapll2">
<m-fxtapll2 :model="model" :codes="codes"/> <m-fxtapll2 :model="model" :codes="codes"/>
</el-tab-pane> --> </el-tab-pane> -->
<el-tab-pane :label="$t('commonModels.保证金')" name="ccvpan">
<c-content>
<m-ccvpan :model="model" :codes="codes"></m-ccvpan>
</c-content>
</el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-function-btn <c-function-btn
...@@ -81,25 +81,20 @@ export default { ...@@ -81,25 +81,20 @@ export default {
}, },
} }
}, },
methods:{ methods:{},
myTabClick(tab){ created:async function(){
this.tabClick(tab)
/**
* do it yourself
**/
}
}, },
created:async function(){ mounted() {
console.log("进入fxtsqo交易"); console.log("进入fxtsqo交易");
// todo 初始化方法 let params = {
// let rtnmsg = await this.init({}) transName: this.trnName,
// if(rtnmsg.respCode == SUCCESS) { fxdgrp: {
// this.updateModel(rtnmsg.data) rec: {
// //TODO 处理数据逻辑 inr: this.$route.query.inr || "",
},
// } else { },
// this.$notify.error({title: '错误',message: '服务请求失败!'}); };
// } this.init(params)
} }
} }
</script> </script>
......
const path = require('path') const path = require('path')
const CopyWebpackPlugin = require('copy-webpack-plugin') const CopyWebpackPlugin = require('copy-webpack-plugin')
const publicPath = require('./src/config/isc-publicPath.js') const publicPath = require('./src/config/isc-publicPath.js')
const baseData = require('./src/config/isc-baseData-local.js') // const baseData = require('./src/config/isc-baseData-local.js')
// const baseData = require('./src/config/isc-baseData.js') const baseData = require('./src/config/isc-baseData.js')
let moment = require("moment") let moment = require("moment")
process.env.VUE_APP_BASETHEME = 'purple'; process.env.VUE_APP_BASETHEME = 'purple';
......
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