Commit aae9323a by Mr.xu

xugaopeng-外币兑换平盘确认FXTFCM

parent 9dba0634
......@@ -12,7 +12,7 @@ const BusRouter = [
{ path: 'fxtatt', component: () => import("./Fxtatt/views"), name: 'Fxtatt', meta: { title: 'Fxtatt' }, module: 'Funds' },
{ path: 'fxteop', component: () => import("./Fxteop/views"), name: 'Fxteop', meta: { title: '代客外汇买卖录入' }, module: 'Funds' },
{ path: 'fxteqo', component: () => import("./Fxteqo/views"), name: 'Fxteqo', meta: { title: '代客外汇买卖报价' }, module: 'Funds' },
{ path: 'fxtfcm', component: () => import("./Fxtfcm/views"), name: 'Fxtfcm', meta: { title: '外币兑换平盘登记' }, module: 'Funds' },
{ path: 'fxtfcm', component: () => import("./Fxtfcm/views"), name: 'Fxtfcm', meta: { title: '外币兑换平盘确认' }, module: 'Funds' },
{ path: 'fxtfcn', component: () => import("./Fxtfcn/views"), name: 'Fxtfcn', meta: { title: '外币兑换平盘销账' }, module: 'Funds' },
{ path: 'infcrd', component: () => import("./Infcrd/views"), name: 'Infcrd', meta: { title: '清算入口交易' }, module: 'Funds' },
{
......
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.fxtp.fxdgrp, this.buildPtspta);
return {
rec: {
objtyp: "FXT",
objinr: model.fxtp.fxdgrp.rec.inr,
ownref: model.fxtp.fxdgrp.rec.ownref,
},
cbsMap: {
MAX: model.fxtp.fxdgrp.cbs.max,
NOM1: model.fxtp.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: {
async getOwnref() {
}
}
}
\ No newline at end of file
......@@ -2,264 +2,207 @@
<div class="eibs-tab">
<!-- S0000002 : 平盘业务参考号 -->
<c-col :span="12">
<c-form-item :label="$t('fxtfcm.S0000002')" prop="fxdgrp.rec.ownref">
<c-input v-model="model.fxdgrp.rec.ownref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fxtfcm.S0000002')"></c-input>
<c-col :span="9">
<c-form-item label="平盘业务参考号" prop="fxdgrp.rec.ownref">
<c-input disabled v-model="model.fxdgrp.rec.ownref" maxlength="16" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-col :span="3">
<c-button size="small" type="primary" @click="onFxtpButgetref">
{{$t('fxtfcm.C0000016')}}
Get Ref
</c-button>
</c-col>
<!-- S0000003 : 名称 -->
<c-col :span="12">
<c-form-item :label="$t('fxtfcm.S0000003')" prop="fxdgrp.rec.nam">
<c-input v-model="model.fxdgrp.rec.nam" maxlength="40" :placeholder="$t('other.please_enter')+$t('fxtfcm.S0000003')"></c-input>
<c-form-item label="名称" prop="fxdgrp.rec.nam">
<c-input disabled v-model="model.fxdgrp.rec.nam" maxlength="40" ></c-input>
</c-form-item>
</c-col>
<!-- S0000006 : 平盘对手 -->
<c-col :span="12">
<c-form-item :label="$t('fxtfcm.S0000006')" prop="fxdgrp.apl.pts.ref">
<c-input v-model="model.fxdgrp.apl.pts.ref" maxlength="20" :placeholder="$t('other.please_enter')+$t('fxtfcm.S0000006')"></c-input>
</c-form-item>
</c-col>
<!-- S0000004 : 资金部负责人 -->
<c-col :span="12">
<c-form-item :label="$t('fxtfcm.S0000004')" prop="fxdgrp.rec.ownusr">
<c-input v-model="model.fxdgrp.rec.ownusr" maxlength="8" :placeholder="$t('other.please_enter')+$t('fxtfcm.S0000004')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="User ID" prop="fxtp.usr.extkey">
<c-input v-model="model.fxtp.usr.extkey" maxlength="8" :placeholder="$t('other.please_enter')+'User ID'"></c-input>
<c-form-item label="平盘对手" prop="fxdgrp.apl.pts.ref">
<c-input v-model="model.fxdgrp.apl.pts.ref" maxlength="20" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="fxtp.usrget.sdamod.seainf">
<c-input v-model="model.fxtp.usrget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
<c-form-item label="Name of Party" prop="aplacc.pts.nam">
<c-input disabled v-model="model.aplacc.pts.nam" maxlength="40" ></c-input>
</c-form-item>
</c-col>
<!-- S0000004 : 资金部负责人 -->
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="fxtp.aplp.ptsget.sdamod.dadsnd">
<c-input v-model="model.fxtp.aplp.ptsget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input>
<c-form-item label="资金部负责人" prop="fxdgrp.rec.ownusr">
<c-input v-model="model.fxdgrp.rec.ownusr" maxlength="8" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="External Key of Address" prop="fxdgrp.apl.pts.extkey">
<c-input v-model="model.fxdgrp.apl.pts.extkey" maxlength="16" :placeholder="$t('other.please_enter')+'External Key of Address'"></c-input>
<!-- <c-col :span="12">
<c-form-item label="User ID" prop="fxtp.usr.extkey">
<c-input v-model="model.fxtp.usr.extkey" maxlength="8"></c-input>
</c-form-item>
</c-col>
</c-col> -->
<c-col :span="12">
<c-col :span="9">
<c-form-item label="" prop="fxtp.aplp.ptsget.sdamod.seainf">
<c-input v-model="model.fxtp.aplp.ptsget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
<c-input disabled v-model="model.fxtp.aplp.ptsget.sdamod.seainf" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-col :span="3">
<i class="el-icon-info"></i>
<c-button size="small" type="primary" @click="onAplpDet">
{{$t('ptsp.CF000081')}}
明细
</c-button>
</c-col>
<!-- S0000021 : 清算中心负责人 -->
<c-col :span="12">
<c-form-item :label="$t('fxtfcm.S0000021')" prop="fxdgrp.rec.usr">
<c-input v-model="model.fxdgrp.rec.usr" maxlength="8" :placeholder="$t('other.please_enter')+$t('fxtfcm.S0000021')"></c-input>
<c-form-item label="清算中心负责人" prop="fxdgrp.rec.usr">
<c-input v-model="model.fxdgrp.rec.usr" maxlength="8" ></c-input>
</c-form-item>
</c-col>
<!-- S0000005 : 平盘类型 -->
<c-col :span="12">
<c-form-item label="Address Block" prop="fxdgrp.apl.pts.adrblk">
<c-input type="textarea" v-model="model.fxdgrp.apl.pts.adrblk" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Address Block'" ></c-input>
</c-form-item>
<el-form-item label="平盘类型" prop="fxdgrp.rec.fxtyp">
<c-input disabled v-model="model.fxdgrp.rec.fxtyp" maxlength="20" ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Chinese address" prop="fxdgrp.apl.dbfadrblkcn">
<c-input type="textarea" v-model="model.fxdgrp.apl.dbfadrblkcn" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Chinese address'" ></c-input>
<c-form-item prop="fxdgrp.apl.pts.adrblk">
<c-input disabled type="textarea" v-model="model.fxdgrp.apl.pts.adrblk" maxlength="35" show-word-limit ></c-input>
</c-form-item>
</c-col>
<!-- S0000005 : 平盘类型 -->
<!-- 卖出金额 -->
<c-col :span="12">
<el-form-item :label="$t('fxtfcm.S0000005')" prop="fxdgrp.rec.fxtyp">
<c-select v-model="model.fxdgrp.rec.fxtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtfcm.S0000005')">
</c-select>
<c-col :span="8">
<el-form-item label="卖出金额" prop="fxdgrp.cbs.max.cur">
<c-select-cur disabled v-model="model.fxdgrp.cbs.max.cur" style="width: 100%" dbCode="curtxt"> </c-select-cur>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.fxtp.amtlab" data-path=".fxtp.amtlab" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="Currency" prop="fxdgrp.cbs.max.cur">
<c-select v-model="model.fxdgrp.cbs.max.cur" style="width:100%" :placeholder="$t('other.please_enter')+'Currency'">
</c-select>
<c-col :span="6">
<el-form-item label-width="5px" prop="fxdgrp.cbs.max.amt">
<c-input-currency
disabled
:currency="model.fxdgrp.cbs.max.cur"
v-model="model.fxdgrp.cbs.max.amt"></c-input-currency>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="fxdgrp.cbs.max.amt">
<c-input v-model="model.fxdgrp.cbs.max.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item>
</c-col>
<!-- 买入金额 -->
<c-col :span="12">
<c-checkbox v-model="model.fxtp.frgchk">{{$t('fxtp.C0000100')}}</c-checkbox>
</c-col>
<c-col :span="12">
<span v-text="model.fxtp.cnylab" data-path=".fxtp.cnylab" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="Currency" prop="fxdgrp.cbs.nom1.cur">
<c-select v-model="model.fxdgrp.cbs.nom1.cur" style="width:100%" :placeholder="$t('other.please_enter')+'Currency'">
</c-select>
<c-col :span="8">
<el-form-item label="买入金额" prop="fxdgrp.cbs.nom1.cur">
<c-select-cur disabled v-model="model.fxdgrp.cbs.nom1.cur" style="width: 100%" dbCode="curtxt"> </c-select-cur>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="fxdgrp.cbs.nom1.amt">
<c-input v-model="model.fxdgrp.cbs.nom1.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item>
<c-col :span="6">
<el-form-item label-width="5px" prop="fxdgrp.cbs.nom1.amt">
<c-input-currency
disabled
:currency="model.fxdgrp.cbs.nom1.cur"
v-model="model.fxdgrp.cbs.nom1.amt"></c-input-currency>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.fxtp.cnychk">{{$t('fxtp.C0000101')}}</c-checkbox>
</c-col>
<!-- S0000017 : 平盘对手账户行 -->
<!-- S0000013 : 平盘牌价 -->
<c-col :span="12">
<c-form-item :label="$t('fxtfcm.S0000013')" prop="fxdgrp.rec.rat">
<c-input v-model="model.fxdgrp.rec.rat" :placeholder="$t('other.please_enter')+$t('fxtfcm.S0000013')"></c-input>
<c-col :span="9">
<c-form-item label="Account with Liquidation Party" prop="fxtp.aplp.ptsget.sdamod.seainf">
<c-input v-model="model.fxtp.aplp.ptsget.sdamod.seainf" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="aplaccp.ptsget.sdamod.dadsnd">
<c-input v-model="model.aplaccp.ptsget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input>
</c-form-item>
<c-col :span="3">
<i class="el-icon-info"></i>
<c-button size="small" type="primary" @click="onAplpDet">
明细
</c-button>
</c-col>
<!-- S0000013 : 平盘牌价 -->
<c-col :span="12">
<c-form-item label="External Key of Address" prop="aplacc.pts.extkey">
<c-input v-model="model.aplacc.pts.extkey" maxlength="16" :placeholder="$t('other.please_enter')+'External Key of Address'"></c-input>
<c-form-item label="平盘牌价" prop="fxdgrp.rec.rat">
<c-input disabled v-model="model.fxdgrp.rec.rat" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="aplaccp.ptsget.sdamod.seainf">
<c-input v-model="model.aplaccp.ptsget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
<c-form-item prop="fxdgrp.rec.rat">
<c-input v-model="model.fxdgrp.rec.rat" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onAplaccpDet">
{{$t('ptsp.CF000082')}}
</c-button>
</c-col>
<!-- S0000014 : 中间价 -->
<c-col :span="12">
<c-form-item :label="$t('fxtfcm.S0000014')" prop="fxdgrp.rec.midrat">
<c-input v-model="model.fxdgrp.rec.midrat" :placeholder="$t('other.please_enter')+$t('fxtfcm.S0000014')"></c-input>
<c-form-item label="中间价" prop="fxdgrp.rec.midrat">
<c-input disabled v-model="model.fxdgrp.rec.midrat" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Name of Party" prop="aplacc.pts.nam">
<c-input v-model="model.aplacc.pts.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
</c-form-item>
</c-col>
<!-- S0000007 : 平盘日期 -->
<c-col :span="12">
<el-form-item :label="$t('fxtfcm.S0000007')" prop="fxdgrp.rec.opndat">
<c-date-picker type="date" v-model="model.fxdgrp.rec.opndat" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtfcm.S0000007')"></c-date-picker>
<el-form-item label="平盘日期" prop="fxdgrp.rec.opndat">
<c-date-picker disabled type="date" v-model="model.fxdgrp.rec.opndat" style="width:100%" ></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="APLACC's Account" prop="acc2">
<c-select v-model="model.acc2" style="width:100%" :placeholder="$t('other.please_enter')+'APLACC\'s Account'">
</c-select>
</el-form-item>
</c-col>
<!-- S0000008 : 起息日 -->
<c-col :span="12">
<el-form-item :label="$t('fxtfcm.S0000008')" prop="fxdgrp.rec.valdat">
<c-date-picker type="date" v-model="model.fxdgrp.rec.valdat" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtfcm.S0000008')"></c-date-picker>
<el-form-item label="起息日" prop="fxdgrp.rec.valdat">
<c-date-picker disabled type="date" v-model="model.fxdgrp.rec.valdat" style="width:100%" ></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000019 : 我行账户行 -->
<c-col :span="12">
<c-form-item :label="$t('fxtfcm.S0000019')" prop="fxdgrp.act.pts.ref">
<c-input v-model="model.fxdgrp.act.pts.ref" maxlength="20" :placeholder="$t('other.please_enter')+$t('fxtfcm.S0000019')"></c-input>
</c-form-item>
<el-form-item prop="acc1">
<c-select v-model="model.acc1" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="fxtp.actp.ptsget.sdamod.dadsnd">
<c-input v-model="model.fxtp.actp.ptsget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input>
<!-- S0000019 : 我行账户行 -->
<c-col :span="12">
<c-form-item label="我行账户行" prop="fxdgrp.act.pts.ref">
<c-input v-model="model.fxdgrp.act.pts.ref" maxlength="20" ></c-input>
</c-form-item>
</c-col>
</c-col>
<c-col :span="12">
<c-form-item label="External Key of Address" prop="fxdgrp.act.pts.extkey">
<c-input v-model="model.fxdgrp.act.pts.extkey" maxlength="16" :placeholder="$t('other.please_enter')+'External Key of Address'"></c-input>
<c-form-item label="备注" prop="fxdgrp.apl.pts.remark">
<c-input type="textarea" v-model="model.fxdgrp.apl.pts.adrblk" maxlength="35" show-word-limit ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="fxtp.actp.ptsget.sdamod.seainf">
<c-input v-model="model.fxtp.actp.ptsget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
<c-col :span="9">
<c-form-item prop="fxtp.aplp.ptsget.sdamod.seainf">
<c-input v-model="model.fxtp.aplp.ptsget.sdamod.seainf" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onActpDet">
{{$t('ptsp.CF000082')}}
<c-col :span="3">
<i class="el-icon-info"></i>
<c-button size="small" type="primary" @click="onAplpDet">
明细
</c-button>
</c-col>
<!-- S0000009 : 备注 -->
<c-col :span="12">
<c-form-item :label="$t('fxtfcm.S0000009')" prop="fxdgrp.blk.remark">
<c-input type="textarea" v-model="model.fxdgrp.blk.remark" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+$t('fxtfcm.S0000009')" ></c-input>
</c-form-item>
<c-checkbox v-model="model.swtflg">发送MT300</c-checkbox>
</c-col>
<c-col :span="12">
<c-form-item label="Name of Party" prop="fxdgrp.act.pts.nam">
<c-input v-model="model.fxdgrp.act.pts.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="OWNACC's Account" prop="acc1">
<c-select v-model="model.acc1" style="width:100%" :placeholder="$t('other.please_enter')+'OWNACC\'s Account'">
<el-form-item prop="acc1">
<c-select v-model="model.acc1" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.swtflg">{{$t('fxtfcm.C0000022')}}</c-checkbox>
</c-col>
</div>
</template>
<script>
......
<template>
<div class="eContainer">
<c-content>
<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">
<!--fxtfcm PD000001 Confirmation -->
<el-tab-pane :label="$t('fxtfcm.PD000001')" name="cnfp">
<el-tab-pane label="概要" name="cnfp">
<m-cnfp :model="model" :codes="codes"/>
</el-tab-pane>
<!--fxtfcm PD000023 MT300 -->
<el-tab-pane :label="$t('fxtfcm.PD000023')" name="mt300">
<el-tab-pane label="MT300" name="mt300">
<m-mt300 :model="model" :codes="codes"/>
</el-tab-pane>
<!--fxtfcm PD000065 MT300 -->
<el-tab-pane :label="$t('fxtfcm.PD000065')" name="fxt300l1">
<el-tab-pane label="fxt300l1" name="fxt300l1">
<m-fxt300l1 :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
<c-function-btn
:handleCheck="handleCheck"
:handleStash="handleStash"
:handleSubmit="handleSubmit"
@handleSureWarning="handleSureWarning"
ref="commonBtn"
></c-function-btn>
</c-content>
</div>
</template>
<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