Commit 720be5c9 by 李少勇

Merge branch 'develop' of http://114.115.138.98:8900/isc-v3.1/isc-web-vue into develop

parents bd1d869c 993f883d
......@@ -31,6 +31,9 @@ export default class Pts {
cnadr: '', //中文地址
ennam: '', //英文名称
enadr: '', //英文地址
cipsid: '', //
leino: '', //
eid: '', //
};
}
}
import Pts from '../Pts.js'
export default class Cpdgrp {
constructor() {
this.data = {
rec: {
inr: "",
cptrou: "", // 清算路径
ownref: "",
nam: "",
pyeptyinr: "",
pyeptainr: "",
pyenam: "",
pyeref: "",
pybptyinr: "",
pybptainr: "",
pybnam: "",
pybref: "",
orcptyinr: "",
orcptainr: "",
orcnam: "",
orcref: "",
oriptyinr: "",
oriptainr: "",
orinam: "",
oriref: "",
valdat: "",
opndat: "",
clsdat: "",
chato: "",
credat: "",
ownusr: "",
ver: "",
detchgcod: "", // 费用承担方
paytyp: "",
stagod: "", // 货物类型
stacty: "",
etyextkey: "",
sysno: "",
othbch: "",
gors: "",
feecur: "",
feeamt: "",
trntyp: "", // 汇款性质
paytype: "", // 汇款方式
paydat: "",
clityp: "",
trdint: "",
curf33b: "", // 原始币种
cur71f: "", // 发报行扣费币种
amt71f: 0, // 发报行扣费金额
amtf33b: 0, // 原始金额
f36: "",
f23e: "",
f23b: "", // 银行操作码
trdout: "",
swftyp: "",
trdinr: "",
rel21: "",
branchinr: "",
bchkeyinr: "",
accmod: "",
sztyp: "",
sndbanref: "",
orcact: "",
pyeact: "",
tsnflg: "", // 同名划转
prechkdat: "", // 预计核验日期
ischktyp: "", // 是否需要核验
rskrelusr: "",
rskexp: "",
pyectycod: "",
orcctycod: "",
uetr: "",
oppnam: "",
ehtyp: "",//电商汇款或海运费标记
manbod: "",//交易主体
},
blk: {
inr: "",
fldmodblk: "",
narhis: "",
contag72: "",
contag79: "",
contag70: "",
rskinf: "",
},
cbs: {
max: {
cur: "",
amt: "",
},
nom1: {
cur: "",
amt: "",
},
},
orc: {
ptytyp:'',
pts: new Pts().data,
},
ori: {
ptytyp:'',
pts: new Pts().data,
},
pyb: {
ptytyp:'',
pts: new Pts().data,
},
pye: {
ptytyp:'',
pts: new Pts().data,
},
med: {
ptytyp:'',
pts: new Pts().data,
},
rmt: {
ptytyp:'',
pts: new Pts().data,
},
snd: {
ptytyp:'',
pts: new Pts().data,
},
int: {
ptytyp:'',
pts: new Pts().data,
},
awi: {
ptytyp:'',
pts: new Pts().data,
},
res: {
ptytyp:'',
pts: new Pts().data,
},
pyebchkey:'',
pyebchnam:'',
msgtyp:'',
acc54:'',
bic54:'',
adr54:'',
constructor() {
this.data = {
rec: {
inr: "",
cptrou: "", // 清算路径
ownref: "",
nam: "",
pyeptyinr: "",
pyeptainr: "",
pyenam: "",
pyeref: "",
pybptyinr: "",
pybptainr: "",
pybnam: "",
pybref: "",
orcptyinr: "",
orcptainr: "",
orcnam: "",
orcref: "",
oriptyinr: "",
oriptainr: "",
orinam: "",
oriref: "",
valdat: "",
opndat: "",
clsdat: "",
chato: "",
credat: "",
ownusr: "",
ver: "",
detchgcod: "", // 费用承担方
paytyp: "",
stagod: "", // 货物类型
stacty: "",
etyextkey: "",
sysno: "",
othbch: "",
gors: "",
feecur: "",
feeamt: "",
trntyp: "", // 汇款性质
paytype: "", // 汇款方式
paydat: "",
clityp: "",
trdint: "",
curf33b: "", // 原始币种
cur71f: "", // 发报行扣费币种
amt71f: 0, // 发报行扣费金额
amtf33b: 0, // 原始金额
f36: "",
f23e: "",
f23b: "", // 银行操作码
trdout: "",
swftyp: "",
trdinr: "",
rel21: "",
branchinr: "",
bchkeyinr: "",
accmod: "",
sztyp: "",
sndbanref: "",
orcact: "",
pyeact: "",
tsnflg: "", // 同名划转
prechkdat: "", // 预计核验日期
ischktyp: "", // 是否需要核验
rskrelusr: "",
rskexp: "",
pyectycod: "",
orcctycod: "",
uetr: "",
oppnam: "",
ehtyp: "",//电商汇款或海运费标记
manbod: "",//交易主体
},
blk: {
inr: "",
fldmodblk: "",
narhis: "",
contag72: "",
contag79: "",
contag70: "",
rskinf: "",
},
cbs: {
max: {
cur: "",
amt: "",
},
nom1: {
cur: "",
amt: "",
},
},
orc: {
ptytyp: '',
pts: new Pts().data,
},
ooa: {
ptytyp: '',
pts: new Pts().data,
},
oob: {
ptytyp: '',
pts: new Pts().data,
},
ori: {
ptytyp: '',
pts: new Pts().data,
},
pyb: {
ptytyp: '',
pts: new Pts().data,
},
pye: {
ptytyp: '',
pts: new Pts().data,
},
med: {
ptytyp: '',
pts: new Pts().data,
},
rmt: {
ptytyp: '',
pts: new Pts().data,
},
snd: {
ptytyp: '',
pts: new Pts().data,
},
int: {
ptytyp: '',
pts: new Pts().data,
},
awi: {
ptytyp: '',
pts: new Pts().data,
},
res: {
ptytyp: '',
pts: new Pts().data,
},
pyebchkey: '',
pyebchnam: '',
msgtyp: '',
acc54: '',
bic54: '',
adr54: '',
cpdret: {
inr: "", // 主键
chownref: "", // 新汇出汇款业务编号
objtyp: "",
objinr: "",
bfth: "", // 部分退汇
rejcod: "", // 原因代码
remark: "", // 原因详情
clsm: "", // 处理说明 标准收发器专用
smhinr: "",
objref: "",
iniref: "", // 前端业务编号
credat: "",
rightunit: "", // 正确清分机构
iniusr: "",
inifrm: ""
},
}
}
}
}
\ No newline at end of file
import Pts from '../Pts.js'
export default class Fxdgrp {
constructor() {
this.data = {
rec: {
ownref: "", // 结售汇业务参考号 fxdgrp.rec.ownref
nam: "", // 名称 fxdgrp.rec.nam
fxtyp: "", // 结售汇类型 fxdgrp.rec.fxtyp
opndat: "", // 登记日期 fxdgrp.rec.opndat
valdat: "", // 起息日 fxdgrp.rec.valdat
rat: 0.000000, // 对外牌价 fxdgrp.rec.rat
midrat: 0.000000, // 中间价 fxdgrp.rec.midrat
quoref: "", // 询价编号 fxdgrp.rec.quoref
fudref: "", // 资金部编号 fxdgrp.rec.fudref
setdat: "", // 远期交割日 fxdgrp.rec.setdat
setdatfrm: "", // 择期交割起始日 fxdgrp.rec.setdatfrm
setdatto: "", // 择期交割截止日 fxdgrp.rec.setdatto
trnman: "", // 交易主体 fxdgrp.rec.trnman
trdint: "", // 结售汇类型 fxdgrp.rec.trdint
trdout: "", // 结售汇类型 fxdgrp.rec.trdout
acc: "", // 外币结算账号 fxdgrp.rec.acc
acc2: "", // 本币结算账号 fxdgrp.rec.acc2
dsp: "", // 外币结算账号 fxdgrp.rec.dsp
dsp2: "", // 本币结算账号 fxdgrp.rec.dsp2
usr: "", // 业务经办人 fxdgrp.rec.usr
ownusr: "", // Clearing Department Responsible User fxdgrp.rec.ownusr
},
blk: {
remark: "", // 备注 fxdgrp.blk.remark
},
cbs: {
max: {
cur: "", // Currency fxdgrp.cbs.max.cur
amt: "", // Balance fxdgrp.cbs.max.amt
},
nom1: {
cur: "", // Currency fxdgrp.cbs.nom1.cur
amt: "", // Balance fxdgrp.cbs.nom1.amt
},
opn1: {
cur: "", // Currency fxdgrp.cbs.nom1.cur
amt: "", // Balance fxdgrp.cbs.nom1.amt
},
opn2: {
cur: "", // Currency fxdgrp.cbs.nom1.cur
amt: "", // Balance fxdgrp.cbs.nom1.amt
},
},
apl: {
pts: new Pts().data,
},
act: {
pts: new Pts().data,
},
age: {
pts: new Pts().data,
},
acc: {
pts: new Pts().data,
},
}
}
}
\ No newline at end of file
var baseData = {};
var baseData = {};
if (process.env.NODE_ENV === 'production') {//生产模式
baseData = {
//15.62.176.250:8088
......@@ -33,14 +33,14 @@ if (process.env.NODE_ENV === 'production') {//生产模式
}
} else {//开发模式
baseData = {
"hostFunds":"localhost:28090",
"hostFunds":"localhost:31096",
"hostPublic": "localhost:31081",
"hostPublic": "192.168.0.114:31081",
"hostReport": "192.168.0.114:31090",
"host": "localhost:31091",
"host": "192.168.0.114:31091",
"hostAdmin": "192.168.0.114:31092",
"hostBusiness": "localhost:31093",
"hostRemittance": "localhost:31094",
"hostBusiness": "192.168.0.114:31093",
"hostRemittance": "192.168.0.114:31094",
"hostFinance": "15.52.176.251:22002",
"hostLc": "15.52.176.251:22002",
"hostDomlc": "15.52.176.251:22002",
......
var baseData = {};
var baseData = {};
if (process.env.NODE_ENV === 'production') {//生产模式
baseData = {
//15.62.176.250:8088
......@@ -36,6 +36,7 @@ if (process.env.NODE_ENV === 'production') {//生产模式
}
} else {//开发模式
baseData = {
"hostFunds":"localhost:31096",
"host": "114.115.138.98:9391",
"hostAdmin": "114.115.138.98:9388",
"hostBusiness": "15.52.176.251:8083",
......@@ -48,6 +49,7 @@ if (process.env.NODE_ENV === 'production') {//生产模式
"hostPublic": "15.52.176.251:8081",
"hostReport": "127.0.0.1:8090",
"hostGjzf": "127.0.0.1:8096",
"hostFunds":"localhost:31096",
"basePath": "/webapi",
"schemes": "http",
"message": {
......
......@@ -4,9 +4,11 @@
<el-collapse-item title="清算来报" name="ovwp">
<m-ovwp :model="model" :codes="codes" />
</el-collapse-item>
<!--
<el-collapse-item title="云平台/E结算来报" name="recode">
<m-recode :model="model" :codes="codes" />
</el-collapse-item>
-->
</c-collapse>
</div>
......
......@@ -24,7 +24,7 @@ export default {
this.load = true;
let rtnmsg = await Api.post("/gjzf/msgsel/query", {
...this.model.rcvp,
dir: "<",
dir: ">",
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
......
......@@ -24,7 +24,7 @@ export default {
this.load = true;
let rtnmsg = await Api.post("/gjzf/msgsel/query", {
...this.model.sndp,
dir: ">",
dir: "<",
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
......
......@@ -1233,6 +1233,18 @@ const DisplayRouter = [
meta: {keepAlive: true, title: "交易快照-汇出汇款", module: 'Remittance'}
},
{
name: "DisplayCptrej",
path: "cptrej",
component: () => import("./Remittance/DisplayCptrej.vue"),
meta: {keepAlive: true, title: "交易快照-止付申请", module: 'Remittance'}
},
{
name: "DisplayCptdcr",
path: "cptdcr",
component: () => import("./Remittance/DisplayCptdcr.vue"),
meta: {keepAlive: true, title: "交易快照-退汇处理", module: 'Remittance'}
},
{
name: "DisplayCptadv",
path: "cptadv",
component: () => import("./Remittance/DisplayCptadv.vue"),
......@@ -2041,6 +2053,20 @@ const DisplayRouter = [
component: () => import("./Derivative/DisplayMctopn.vue"),
meta: {keepAlive: true, title: "交易快照-万能交易开立", module: 'Derivative'}
},
//以下为资金快照
{
name: "DisplayFttfcm",
path: "fttfcm",
component: () => import("./Funds/DisplayFttfcm.vue"),
meta: {keepAlive: true, title: "交易快照-资金调拨"}
},
{
name: "DisplayFttpcm",
path: "fttpcm",
component: () => import("./Funds/DisplayFttpcm.vue"),
meta: {keepAlive: true, title: "交易快照-头寸调拨"}
},
];
......
<template>
<Fttfcm></Fttfcm>
</template>
<script>
import Fttfcm from "~/page/Funds/Fttfcm/views";
export default {
name: "display-fttfcm",
components: { Fttfcm },
created() { },
mounted() { }
};
</script>
<style></style>
\ No newline at end of file
<template>
<Fttpcm></Fttpcm>
</template>
<script>
import Fttpcm from "~/page/Funds/Fttpcm/views";
export default {
name: "display-fttpcm",
components: { Fttpcm },
created() { },
mounted() { }
};
</script>
<style></style>
\ No newline at end of file
<template>
<Cptdcr></Cptdcr>
</template>
<script>
import Cptdcr from "~/page/Remittance/Cptdcr/views";
export default {
name: "display-cptdcr",
components: {Cptdcr},
created() {
},
mounted() {
}
};
</script>
<style></style>
\ No newline at end of file
<template>
<Cptrej></Cptrej>
</template>
<script>
import Cptrej from "~/page/Remittance/Cptrej/views";
export default {
name: "display-cptrej",
components: {Cptrej},
created() {
},
mounted() {
}
};
</script>
<style></style>
\ No newline at end of file
const Business = [
// { path: 'wgbsel', component: () => import('./Wgbsel/views'), name: 'Wgbsel', meta: { keepAlive: true, title: '出口应收账款融资', module: 'Financing' } },
// { path: 'trtopn', component: () => import('./Trtopn/views'), name: 'Trtopn', meta: { keepAlive: true, title: '进口融资开立', module: 'Financing' } },
{ path: 'trtopn', component: () => import('./Trtopn/views'), name: 'Trtopn', meta: { keepAlive: true, title: '进口融资开立', module: 'Financing' } },
// { path: 'trtset', component: () => import('./Trtset/views'), name: 'Trtset', meta: { keepAlive: true, title: '进口融资还款', module: 'Financing' } },
// { path: 'trtcan', component: () => import('./Trtcan/views'), name: 'Trtcan', meta: { keepAlive: true, title: '进口融资注销', module: 'Financing' } },
// { path: 'trtfee', component: () => import('./Trtfee/views'), name: 'Trtfee', meta: { keepAlive: true, title: '进口融资收费', module: 'Financing' } },
......@@ -20,15 +20,15 @@ const Business = [
// { path: 'zxbsel', component: () => import('./Zxbsel/views'), name: 'Zxbsel', meta: { keepAlive: true, title: '出口信保保单融资查询', module: 'Financing' } },
// { path: 'infssr', component: () => import('./Infssr/views'), name: 'Infssr', meta: { keepAlive: true, title: '信保信息查询', module: 'Financing' } },
// { path: 'bptopn', component: () => import('./Bptopn/views'), name: 'Bptopn', meta: { keepAlive: true, title: '出口融资放款', module: 'Financing' } },
{ path: 'bptopn', component: () => import('./Bptopn/views'), name: 'Bptopn', meta: { keepAlive: true, title: '出口融资放款', module: 'Financing' } },
// { path: 'bptset', component: () => import('./Bptset/views'), name: 'Bptset', meta: { keepAlive: true, title: '出口融资还款', module: 'Financing' } },
// { path: 'bptinv', component: () => import('./Bptinv/views'), name: 'Bptinv', meta: { keepAlive: true, title: '发票修改', module: 'Financing' } },
// { path: 'bptcan', component: () => import('./Bptcan/views'), name: 'Bptcan', meta: { keepAlive: true, title: '出口融资注销', module: 'Financing' } },
// { path: 'bptfee', component: () => import('./Bptfee/views'), name: 'Bptfee', meta: { keepAlive: true, title: '出口融资收费', module: 'Financing' } },
// { path: 'cicsel', component: () => import('./Cicsel/views'), name: 'Cicsel', meta: { keepAlive: true, title: '企业跨境信用信息授权查证', module: 'Financing' } },
// { path: 'entatr', component: () => import('./Entatr/views'), name: 'Entatr', meta: { keepAlive: true, title: '企业授权情况查询', module: 'Financing' } },
// { path: 'trtsel', component: () => import('./Trtsel/views'), name: 'Trtsel', meta: { keepAlive: true, title: '进口融资&管理', module: 'Financing' } },
// { path: 'bptsel', component: () => import('./Bptsel/views'), name: 'Bptsel', meta: { keepAlive: true, title: '出口融资&管理', module: 'Financing' } },
{ path: 'trtsel', component: () => import('./Trtsel/views'), name: 'Trtsel', meta: { keepAlive: true, title: '进口融资&管理', module: 'Financing' } },
{ path: 'bptsel', component: () => import('./Bptsel/views'), name: 'Bptsel', meta: { keepAlive: true, title: '出口融资&管理', module: 'Financing' } },
// { path: 'bpdsel', component: () => import('./Bpdsel/views'), name: 'Bpdsel', meta: { keepAlive: true, title: '二级福费廷市场&管理', module: 'Financing' } },
// { path: 'dftsel', component: () => import('./Dftsel/views'), name: 'Dftsel', meta: { keepAlive: true, title: '委托方代付&管理', module: 'Financing' } },
// { path: 'trtfre', component: () => import('./Trtfre/views'), name: 'Trtfre', meta: { keepAlive: true, title: '进口融资自由格式报文', module: 'Financing' } },
......
......@@ -7,8 +7,8 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item label="BIC 码" prop="msgtyp" style="width: 100%">
<c-select v-model="model.batp.ptpmod.pty.extkey" style="width: 100%" placeholder="请选择货押标识" :code="codes.msgtyp3">
</c-select>
<c-input v-model="model.batp.ptpmod.pty.extkey" style="width: 100%" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
......@@ -25,15 +25,8 @@
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="借 贷" prop="subtype" style="width: 100%">
<c-select v-model="model.batp.dc" style="width:100%" placeholder="请选择借贷">
<el-option
v-for="item in codes.sdcflg"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
<el-form-item label="借贷" prop="subtype" style="width: 100%">
<c-select v-model="model.batp.dc" style="width:100%" :code="codes.dcflg"/>
</el-form-item>
</c-col>
</c-col>
......@@ -42,20 +35,20 @@
<el-row v-show="searchSlot.searchToggle">
<c-col :span="24">
<c-col :span="8">
<el-form-item label="币 种" prop="sndbak" style="width: 100%">
<c-input v-model="model.batp.cur" maxlength="40" placeholder="请输入发报行BIC">
</c-input>
<el-form-item label="币种" prop="sndbak" style="width: 100%">
<c-select v-model="model.batp.cur" maxlength="40" :code="codes.cur">
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="金额下限" prop="revbak" style="width: 100%">
<c-input v-model="model.batp.amt" maxlength="40" placeholder="请输入收报行BIC">
<c-input v-model="model.batp.amt" maxlength="40">
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="金额上限" prop="actbic" style="width: 100%">
<c-input v-model="model.batp.amtd" maxlength="40" placeholder="请输入账户行BIC">
<c-input v-model="model.batp.amtd" maxlength="40">
</c-input>
</el-form-item>
</c-col>
......@@ -63,7 +56,7 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item label="关联状态" prop="ownref" style="width: 100%">
<c-select v-model="model.batp.sta" style="width:100%" placeholder="请输入关联状态">
<c-select v-model="model.batp.sta" style="width:100%">
<el-option
v-for="item in codes.sta"
:key="item.value"
......@@ -75,7 +68,7 @@
</c-col>
<c-col :span="8">
<el-form-item label="勾销状态" prop="othref" style="width: 100%">
<c-select v-model="model.batp.offsta" style="width:100%" placeholder="请输入关联状态">
<c-select v-model="model.batp.offsta" style="width:100%">
<el-option
v-for="item in codes.offsta"
:key="item.value"
......@@ -87,31 +80,24 @@
</c-col>
<c-col :span="8">
<el-form-item label="记帐状态" prop="cur" style="width: 100%">
<c-select v-model="model.batp.offsta" style="width:100%" placeholder="选择记帐状态">
<el-option
v-for="item in codes.offsta"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
<c-select v-model="model.batp.offsta" style="width:100%" :code="codes.recsta"/>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="参考号/前" prop="act" style="width: 100%">
<c-input v-model="model.batp.ref" maxlength="16" placeholder="请输入参考号/前"/>
<c-input v-model="model.batp.ref" maxlength="16"/>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="参考号/后" prop="dtlchg" style="width: 100%">
<c-input v-model="model.batp.refback" maxlength="16" placeholder="请输入参考号/后"/>
<c-input v-model="model.batp.refback" maxlength="16"/>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="详 情" prop="sta" style="width: 100%">
<c-input v-model="model.batp.inf" style="width: 100%" placeholder="请输入详情"/>
<el-form-item label="详情" prop="sta" style="width: 100%">
<c-input v-model="model.batp.inf" style="width: 100%"/>
</el-form-item>
</c-col>
</c-col>
......@@ -120,10 +106,10 @@
</c-list-search>
<el-col :span="24" style="margin-top: 2px;margin-bottom: 1px;">
<c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0"
type="primary" >{{ $t('public.归档') }}
<c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0"
type="primary">{{ $t('public.归档') }}
</c-button>
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium"
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium"
style="margin-left: 20" type="primary">ReRouting
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
......@@ -139,14 +125,15 @@
<el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%"
@selection-change="handleSelectionChange"
size="small" :border="true" height="calc(100vh - 480px)" :highlight-current-row="true">
<el-table-column type="selection" width="55">
<el-table-column type="selection" width="55">
</el-table-column>
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
:min-width="item.width">
</el-table-column>
</el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :total="pagination.total"
:page-size="pagination.pageSize" :current-page.sync="pagination.pageNum" @size-change="handleSizeChange"
:page-size="pagination.pageSize" :current-page.sync="pagination.pageNum"
@size-change="handleSizeChange"
@current-change="handleCurrentChange">
</el-pagination>
</el-tab-pane>
......@@ -168,7 +155,7 @@ export default {
activeTab: 'sb',
load: false,
subtypCodes: [],
multipleSelection:[],
multipleSelection: [],
stmData: {
columns: [
{
......@@ -257,11 +244,11 @@ export default {
},
};
},
computed:{
isFoldDisable: function(){
computed: {
isFoldDisable: function () {
return this.multipleSelection.length == 0;
} ,
isRoutingDisable:function(){
},
isRoutingDisable: function () {
return this.multipleSelection.length == 0;
}
},
......
......@@ -23,10 +23,10 @@
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="报文标准" prop="" style="width: 100%">
<c-select v-model="model.wlzp.stadat" style="width: 100%" placeholder="请选择报文标准"
:code="codes.subtyp"/>
<c-col :span="8">
<el-form-item label="报文标准" prop="msgtyp" style="width: 100%">
<c-select v-model="model.wlzp.msgtyp" style="width: 100%" :code="codes.msgtyp3">
</c-select>
</el-form-item>
</c-col>
</c-col>
......@@ -36,68 +36,70 @@
<el-row v-show="searchSlot.searchToggle">
<c-col :span="24">
<c-col :span="8">
<el-form-item label="报文类型" prop="" style="width: 100%">
<c-select v-model="model.wlzp.stadat" style="width: 100%" placeholder="请选择报文类型"
:code="codes.subtyp"/>
<el-form-item label="报文类型" prop="subtype" style="width: 100%">
<el-select v-model="model.wlzp.subtyp" placeholder="请选择报文类型">
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="发报行BIC" prop="" style="width: 100%">
<c-input v-model="model.wlzp.stadat" style="width: 100%" placeholder="请输入发报行BIC"/>
<c-input v-model="model.wlzp.sndbic" style="width: 100%" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="收报行BIC" prop="" style="width: 100%">
<c-input v-model="model.wlzp.stadat" style="width: 100%" placeholder="请输入收报行BIC"/>
<c-input v-model="model.wlzp.rcvbic" style="width: 100%" />
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="报文标志号" prop="" style="width: 100%">
<c-input v-model="model.wlzp.stadat" style="width: 100%" placeholder="请输入报文标志号"/>
<c-input v-model="model.wlzp.bwbzh" style="width: 100%" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="关联参考号" prop="" style="width: 100%">
<c-input v-model="model.wlzp.stadat" style="width: 100%" placeholder="请输入关联参考号"/>
<c-input v-model="model.wlzp.glckh" style="width: 100%" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="币种" prop="" 币种style="width: 100%">
<c-select v-model="model.wlzp.stadat" style="width: 100%" placeholder="请选择币种"
:code="codes.subtyp"/>
<el-form-item label="币种" prop="" style="width: 100%">
<c-select v-model="model.wlzp.cur" style="width: 100%"
:code="codes.cur"/>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="账号" prop="" style="width: 100%">
<c-input v-model="model.wlzp.stadat" style="width: 100%" placeholder="请输入账号"/>
<c-input v-model="model.wlzp.act" style="width: 100%" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="金额下限" prop="" style="width: 100%">
<c-input v-model="model.wlzp.stadat" style="width: 100%" placeholder="请输入金额下限"/>
<c-input v-model="model.wlzp.amtmin" style="width: 100%" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="金额上限" prop="" style="width: 100%">
<c-input v-model="model.wlzp.stadat" style="width: 100%" placeholder="请输入金额上限"/>
<c-input v-model="model.wlzp.amtmax" style="width: 100%" />
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="消息处理状态" prop="" style="width: 100%">
<c-select v-model="model.wlzp.stadat" style="width: 100%" placeholder="请选择消息处理状态"
:code="codes.subtyp"/>
<c-select v-model="model.wlzp.rspsta" style="width: 100%"
:code="codes.rspsta"/>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="行内系统" prop="" style="width: 100%">
<c-select v-model="model.wlzp.stadat" style="width: 100%" placeholder="请选择行内系统"
:code="codes.subtyp"/>
<c-select v-model="model.wlzp.chnipt" style="width: 100%"
:code="codes.chnipt"/>
</el-form-item>
</c-col>
</c-col>
......@@ -201,7 +203,7 @@ export default {
width: "120px",
},
{
label: "关联参考",
label: "关联参考",
prop: "stadat",
width: "120px",
},
......@@ -288,6 +290,25 @@ export default {
return this.multipleSelection.length == 0;
},
},
watch: {
'model.wlzp.msgtyp': {
handler: function (newTyp, oldTyp) {
// 把已经选择的 subtyp 重置
this.model.wlzp.subtyp= '';
const { codes } = this;
if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp;
} else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp;
} else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp;
} else {
this.subtypCodes = codes.cipstyp;
}
},
deep: true
}
},
methods: {},
mounted: function () {},
};
......
......@@ -7,20 +7,19 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item label="BIC" prop="msgtyp" style="width: 100%">
<c-select v-model="model.ktlp.ptpmod.pty.extkey" style="width: 100%" placeholder="请选择货押标识" :code="codes.msgtyp3">
<c-select v-model="model.ktlp.ptpmod.pty.extkey" style="width: 100%" :code="codes.msgtyp3">
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="借贷" prop="sndbak" style="width: 100%">
<c-input v-model="model.ktlp.ktpno" maxlength="40" placeholder="请输入发报行BIC">
<c-input v-model="model.ktlp.ktpno" maxlength="40" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="币种" prop="subtype" style="width: 100%">
<c-select v-model="model.ktlp.cur" style="width:100%" >
</c-select>
<c-select v-model="model.ktlp.cur" style="width:100%" :code="codes.cur" />
</el-form-item>
</c-col>
</c-col>
......@@ -30,8 +29,7 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item label="记账类型" prop="revbak" style="width: 100%">
<c-input v-model="model.ktlp.ktpno" maxlength="40" placeholder="请输入收报行BIC">
</c-input>
<c-input v-model="model.ktlp.ktpno" maxlength="40" />
</el-form-item>
</c-col>
</c-col>
......@@ -192,14 +190,14 @@ export default {
// 把已经选择的 subtyp 重置
this.model.rcvp.subtyp = '';
const { codes } = this;
if (newTyp == 'txt') {
this.subtypCodes = codes.subtypfps;
} else if (newTyp == 'iso') {
this.subtypCodes = codes.subtypiso;
} else if (newTyp == 'xml') {
this.subtypCodes = codes.subtypcps;
if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp;
} else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp;
} else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp;
} else {
this.subtypCodes = codes.subtyp1;
this.subtypCodes = codes.cipstyp;
}
},
deep: true
......
......@@ -7,18 +7,18 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item label="账户行" prop="msgtyp" style="width: 100%">
<c-select v-model="model.ptpmod.pty.extkey" style="width: 100%" placeholder="请选择货押标识" :code="codes.msgtyp3">
</c-select>
<c-input v-model="model.ptpmod.pty.extkey" style="width: 100%" :code="codes.msgtyp3">
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="BIC码" prop="rcvdatsta" style="width: 100%">
<c-input v-model="model.dotp.snd.pty.extkey" maxlength="24" placeholder="请输入BIC码"/>
<c-input v-model="model.dotp.snd.pty.extkey" maxlength="24"/>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="账户" prop="subtype" style="width: 100%">
<c-input v-model="model.dotgrp.rec.acc" maxlength="30" placeholder="请输入账户"/>
<c-input v-model="model.dotgrp.rec.acc" maxlength="30"/>
</el-form-item>
</c-col>
</c-col>
......@@ -28,19 +28,19 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item label="收报行BIC" prop="sndbak" style="width: 100%">
<c-input v-model="model.dotp.rcv.pty.extkey" maxlength="40" placeholder="请输入发报行BIC">
<c-input v-model="model.dotp.rcv.pty.extkey" maxlength="40">
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="币种" prop="revbak" style="width: 100%">
<c-input v-model="model.dotgrp.rec.cur" maxlength="40" placeholder="请输入收报行BIC">
</c-input>
<c-select v-model="model.dotgrp.rec.cur" maxlength="40" :code="codes.cur">
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="金额" prop="actbic" style="width: 100%">
<c-input v-model="model.dotgrp.rec.amt" maxlength="40" placeholder="请输入账户行BIC">
<c-input v-model="model.dotgrp.rec.amt" maxlength="40">
</c-input>
</el-form-item>
</c-col>
......@@ -48,55 +48,41 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item label="起息日" prop="ownref" style="width: 100%">
<c-date-picker type="date" v-model="model.dotgrp.rec.valdat" style="width:100%" placeholder="请选择起息日"/>
<c-date-picker type="date" v-model="model.dotgrp.rec.valdat" style="width:100%"/>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="收发日期" prop="othref" style="width: 100%">
<c-date-picker type="date" v-model="model.dotgrp.rec.rsptim" style="width:100%" placeholder="请选择起息日"/>
<c-date-picker type="date" v-model="model.dotgrp.rec.rsptim" style="width:100%"/>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="相关参考号" prop="cur" style="width: 100%">
<c-input v-model="model.dotgrp.rec.othref" maxlength="16" placeholder="输入相关参考号"/>
<c-input v-model="model.dotgrp.rec.othref" maxlength="16"/>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="业务标识" prop="act" style="width: 100%">
<c-input v-model="model.dotgrp.rec.busflg" maxlength="4" placeholder="请输入业务标识"/>
<c-input v-model="model.dotgrp.rec.busflg" maxlength="4"/>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="借贷标记" prop="dtlchg" style="width: 100%">
<c-select v-model="model.dotgrp.rec.dcflg" style="width:100%" placeholder="请选择借贷标记">
<el-option
v-for="item in codes.dcflg"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
<c-select v-model="model.dotgrp.rec.dcflg" style="width:100%" :code="codes.dcflg"/>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="勾销标志" prop="chnipt" style="width: 100%">
<c-select v-model="model.dotgrp.rec.offsta" style="width:100%" :placeholder="请选择勾销标志">
<el-option
v-for="item in codes.offsta"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
<c-select v-model="model.dotgrp.rec.offsta" style="width:100%" :code="codes.offsta"/>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="详细信息" prop="sta" style="width: 100%">
<c-input type="textarea" v-model="model.dotgrp.rec.inf" placeholder="请输入详细信息"/>
<c-input type="textarea" v-model="model.dotgrp.rec.inf"/>
</el-form-item>
</c-col>
</c-col>
......
......@@ -296,14 +296,14 @@ export default {
// 把已经选择的 subtyp 重置
this.model.sndp.subtyp = '';
const { codes } = this;
if (newTyp == 'txt') {
this.subtypCodes = codes.subtypfps;
} else if (newTyp == 'iso') {
this.subtypCodes = codes.subtypiso;
} else if (newTyp == 'xml') {
this.subtypCodes = codes.subtypcps;
if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp;
} else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp;
} else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp;
} else {
this.subtypCodes = codes.subtyp1;
this.subtypCodes = codes.cipstyp;
}
},
deep: true
......
......@@ -296,14 +296,14 @@ export default {
// 把已经选择的 subtyp 重置
this.model.sndp.subtyp = '';
const { codes } = this;
if (newTyp == 'txt') {
this.subtypCodes = codes.subtypfps;
} else if (newTyp == 'iso') {
this.subtypCodes = codes.subtypiso;
} else if (newTyp == 'xml') {
this.subtypCodes = codes.subtypcps;
if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp;
} else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp;
} else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp;
} else {
this.subtypCodes = codes.subtyp1;
this.subtypCodes = codes.cipstyp;
}
},
deep: true
......
import Api from "~/service/Api";
import moment from "moment";
import Msgsel from '../model';
export default {
methods: {
async handleSearch() {
let rcvdatsta = this.model.sndp.rcvdatsta;
if (!rcvdatsta || rcvdatsta == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询开始日期必输!"),
});
return;
}
let rcvdatend = this.model.sndp.rcvdatend;
if (!rcvdatend || rcvdatend == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询结束日期必输!"),
});
return;
}
this.load = true;
let rtnmsg = await Api.post("/gjzf/msgsel/query", {
...this.model.sndp,
dir: "<",
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
rcvdatend: moment(rcvdatend).format("YYYY-MM-DD"),
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.stmData.data = [];
const {list} = rtnmsg.data;
const {codes:{sta1}} = this;
list.forEach(v=>{
for(let i in sta1){
if(sta1[i].value == v.sta){
v.sta = sta1[i].label;
}
}
})
this.stmData.data = list;
this.pagination = {
pageNum: rtnmsg.data.pageNum || 1,
pageSize: rtnmsg.data.pageSize || 10,
total: parseInt(rtnmsg.data.total),
};
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
}
this.load = false;
},
async handleReset() {
this.model = new Msgsel().data;
},
// pageSize改变
handleSizeChange(val) {
......
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
export default class Msgsel{
constructor () {
......@@ -25,7 +24,7 @@ export default class Msgsel{
usrnam:"", // 操作员 .sndp.usrnam
starsp:"", // 处理状态标签 .sndp.starsp
starsm:"", // 处理状态标签 .sndp.starsm
sta:"", // 处理状态 .sndp.sta
sta:"V", // 处理状态 .sndp.sta
dtlchg:"", // : .sndp.dtlchg
uetr:"", // : .sndp.uetr
gpi:"", // : .sndp.gpi
......
......@@ -296,14 +296,14 @@ export default {
// 把已经选择的 subtyp 重置
this.model.sndp.subtyp = '';
const { codes } = this;
if (newTyp == 'txt') {
this.subtypCodes = codes.subtypfps;
} else if (newTyp == 'iso') {
this.subtypCodes = codes.subtypiso;
} else if (newTyp == 'xml') {
this.subtypCodes = codes.subtypcps;
if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp;
} else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp;
} else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp;
} else {
this.subtypCodes = codes.subtyp1;
this.subtypCodes = codes.cipstyp;
}
},
deep: true
......
<template>
<div class="eibs-tab">
<c-list-search @form-reset="handleReset" @form-search="handleSearch">
<!-- 持续展示区 -->
<template v-slot="searchSlot">
<el-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="报文标准" prop="" style="width: 100%">
<c-select v-model="model.msgp.typ" style="width: 100%" placeholder="请选择报文标准" :code="codes.typ"/>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
<el-row v-show="searchSlot.searchToggle">
</el-row>
</template>
</c-list-search>
<el-row style="background-color: white;width :100%;height:100px;padding-top: 30px;">
<c-col :span="24">
<c-col :span="8">
<el-form-item label="报文标准" prop="" style="width: 100%">
<c-select v-model="model.msgp.typ" style="width: 100%" :code="codes.msgtyp3"/>
</el-form-item>
</c-col>
</c-col>
</el-row>
<el-row style="height:9000px;margin-top: 20px;">
<div style="height: 100%">
<iframe v-if="model.msgp.typ === 'sf2'" src="http://localhost:8080/swifteditor" width="100%"></iframe>
<iframe v-else-if="model.msgp.typ === 'iso'" src="http://localhost:8080/swiftiso-editor" width="100%"></iframe>
</div>
</el-row>
</div>
</template>
<script>
......@@ -131,4 +130,8 @@ export default {
margin-bottom: 10px;
margin-right: 10px;
}
iframe {
height: 900px;
}
</style>
......@@ -7,8 +7,8 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item label="账户行BIC" prop="msgtyp" style="width: 100%">
<c-select v-model="model.oftp.ptpmod.pty.extkey" style="width: 100%" placeholder="请选择货押标识" :code="codes.msgtyp3">
</c-select>
<c-input v-model="model.oftp.ptpmod.pty.extkey" style="width: 100%" :code="codes.msgtyp3">
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
......@@ -25,10 +25,10 @@
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="借 贷" prop="subtype" style="width: 100%">
<c-select v-model="model.oftp.dcflg2" style="width:100%" placeholder="选择借贷">
<el-form-item label="借贷" prop="subtype" style="width: 100%">
<c-select v-model="model.oftp.dcflg2" style="width:100%">
<el-option
v-for="item in codes.sdcflg"
v-for="item in codes.dc"
:key="item.value"
:label="item.label"
:value="item.value">
......@@ -43,7 +43,7 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item label="币 种" prop="sndbak" style="width: 100%">
<c-select v-model="model.oftp.cur" style="width:100%" placeholder="请选择币种">
<c-select v-model="model.oftp.cur" style="width:100%">
<el-option
v-for="item in codes.cur"
:key="item.value"
......@@ -55,13 +55,13 @@
</c-col>
<c-col :span="8">
<el-form-item label="金额下限" prop="revbak" style="width: 100%">
<c-input v-model="model.oftp.amtd" maxlength="40" placeholder="请输入收报行BIC">
<c-input v-model="model.oftp.amtd" maxlength="40">
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="金额上限" prop="actbic" style="width: 100%">
<c-input v-model="model.oftp.amtu" maxlength="40" placeholder="请输入账户行BIC">
<c-input v-model="model.oftp.amtu" maxlength="40">
</c-input>
</el-form-item>
</c-col>
......@@ -69,26 +69,26 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item label="参考号/前" prop="ownref" style="width: 100%">
<c-input v-model="model.oftp.ownref" maxlength="40" placeholder="请输入20域编号">
<c-input v-model="model.oftp.ownref" maxlength="40">
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="参考号/后" prop="othref" style="width: 100%">
<c-input v-model="model.oftp.othref" maxlength="40" placeholder="请输入21域编号">
<c-input v-model="model.oftp.othref" maxlength="40">
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="详细信息" prop="cur" style="width: 100%">
<c-input v-model="model.oftp.inf" maxlength="40" style="width: 100%" placeholder="请选择详细信息"/>
<c-input v-model="model.oftp.inf" maxlength="40" style="width: 100%"/>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="记账状态" prop="act" style="width: 100%">
<c-select v-model="model.oftp.recsta" style="width:100%" placeholder="请选择记账状态">
<c-select v-model="model.oftp.recsta" style="width:100%">
<el-option
v-for="item in codes.recsta"
:key="item.value"
......@@ -100,8 +100,7 @@
</c-col>
<c-col :span="8">
<el-form-item label="记账类型" prop="dtlchg" style="width: 100%">
<c-select v-model="model.oftp.kpatyp" style="width:100%" placeholder="请选择记账类型">
</c-select>
<c-select v-model="model.oftp.kpatyp" style="width:100%"/>
</el-form-item>
</c-col>
</c-col>
......@@ -110,10 +109,10 @@
</c-list-search>
<el-col :span="24" style="margin-top: 2px;margin-bottom: 1px;">
<c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0"
type="primary" >{{ $t('public.归档') }}
<c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0"
type="primary">{{ $t('public.归档') }}
</c-button>
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium"
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium"
style="margin-left: 20" type="primary">ReRouting
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
......@@ -130,14 +129,15 @@
<el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%"
@selection-change="handleSelectionChange"
size="small" :border="true" height="calc(100vh - 480px)" :highlight-current-row="true">
<el-table-column type="selection" width="55">
<el-table-column type="selection" width="55">
</el-table-column>
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
:min-width="item.width">
</el-table-column>
</el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :total="pagination.total"
:page-size="pagination.pageSize" :current-page.sync="pagination.pageNum" @size-change="handleSizeChange"
:page-size="pagination.pageSize" :current-page.sync="pagination.pageNum"
@size-change="handleSizeChange"
@current-change="handleCurrentChange">
</el-pagination>
</el-tab-pane>
......@@ -159,7 +159,7 @@ export default {
activeTab: 'sb',
load: false,
subtypCodes: [],
multipleSelection:[],
multipleSelection: [],
stmData: {
columns: [
{
......@@ -248,11 +248,11 @@ export default {
},
};
},
computed:{
isFoldDisable: function(){
computed: {
isFoldDisable: function () {
return this.multipleSelection.length == 0;
} ,
isRoutingDisable:function(){
},
isRoutingDisable: function () {
return this.multipleSelection.length == 0;
}
},
......
......@@ -18,7 +18,7 @@
</c-col>
<c-col :span="8">
<el-form-item label="报文类型" prop="subtype" style="width: 100%">
<c-select v-model="model.oftgrp.dot.mty" style="width: 100%" placeholder="请选择报文类型" :code="codes.mty">
<c-select v-model="model.oftgrp.dot.mty" style="width: 100%" placeholder="请选择报文类型" :code="codes.msgtyp3">
</c-select>
</el-form-item>
</c-col>
......
import Api from "~/service/Api";
import moment from "moment";
import Oftopn from '../model';
export default {
methods: {
async handleSearch() {
let rsptims = this.model.oftp.rel.rsptims;
if (!rsptims || rsptims === "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询开始日期必输!"),
});
return;
}
let rsptime = this.model.oftp.rel.rsptime;
if (!rsptime || rsptime === "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询结束日期必输!"),
});
return;
}
this.load = true;
// TODO rewrite url
let rtnmsg = await Api.post("/gjzf/msgsel/query", {
...this.model.oftp.rel,
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
rsptims: moment(rsptims).format("YYYY-MM-DD"),
rsptime: moment(rsptime).format("YYYY-MM-DD"),
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.stmData.data = [];
const {list} = rtnmsg.data;
this.stmData.data = list;
this.pagination = {
pageNum: rtnmsg.data.pageNum || 1,
pageSize: rtnmsg.data.pageSize || 10,
total: parseInt(rtnmsg.data.total),
};
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
}
this.load = false;
},
async handleReset() {
this.model = new Oftopn().data;
},
// pageSize改变
handleSizeChange(val) {
......
......@@ -6,26 +6,106 @@
<el-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="报文标准" prop="" style="width: 100%">
<c-select v-model="model.oftp.rel.msgtyp" style="width: 100%" placeholder="请选择报文标准"
:code="codes.msgtyp" />
<el-form-item label="起止日期" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.oftp.rel.rsptims" style="width: 100%"></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker type="date" v-model="model.oftp.rel.rsptime" style="width: 100%"></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="报文类型" prop="" style="width: 100%">
<c-select v-model="model.oftp.rel.mty" style="width: 100%" placeholder="请选择报文类型" :code="codes.mty" />
<el-form-item label="报文标准" style="width: 100%">
<c-select v-model="model.oftp.rel.msgtyp" style="width: 100%"
:code="codes.msgtyp3" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="发报行BIC" prop="" style="width: 100%">
<c-input v-model="model.oftp.rel.sedbak" style="width: 100%" placeholder="请输入发报行BIC" />
<el-form-item label="报文类型" style="width: 100%">
<el-select v-model="model.oftp.rel.mty" >
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
<el-row v-show="searchSlot.searchToggle">
<c-col :span="24">
<c-col :span="8">
<el-form-item label="发报行BIC" style="width: 100%">
<c-input v-model="model.oftp.rel.sedbak" style="width: 100%" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="收报行BIC" style="width: 100%">
<c-input v-model="model.oftp.rel.revbak" style="width: 100%" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="账户行BIC" style="width: 100%">
<c-input v-model="model.oftp.rel.actbic" style="width: 100%" />
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="借贷" style="width: 100%">
<c-select v-model="model.oftp.rel.dcflg" style="width: 100%" :code="codes.dcflg" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="币种" style="width: 100%">
<c-select v-model="model.oftp.rel.cur" style="width: 100%" :code="codes.cur" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
:label="$t('lc.金额区间')"
style="width: 100%"
>
<c-col :span="11">
<c-input
v-model="model.oftp.rel.atmd"
:placeholder="$t('lc.请输入金额下限')"
style="width: 100%"
></c-input>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-input
v-model="model.oftp.rel.amtu"
:placeholder="$t('lc.请输入金额上限')"
style="width: 100%"
></c-input>
</c-col>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="20域编号" style="width: 100%">
<c-input v-model="model.oftp.rel.ref" maxlength="40" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="21域编号" style="width: 100%">
<c-input v-model="model.oftp.rel.relref" maxlength="40" >
</c-input>
</el-form-item>
</c-col>
</c-col>
</el-row>
</template>
</c-list-search>
......@@ -85,32 +165,52 @@ export default {
columns: [
{
label: "报文种类",
prop: "num",
prop: "mty",
width: "120px"
},
{
label: "收发时间",
prop: "num",
prop: "rsptim",
width: "120px"
},
{
label: "G渠道",
prop: "num",
prop: "sweflg",
width: "120px"
},
{
label: "记账类型",
prop: "num",
prop: "typ",
width: "120px"
},
{
label: "收支",
prop: "num",
prop: "dcflg",
width: "120px"
},
{
label: "金额",
prop: "num",
prop: "amt",
width: "120px"
},
{
label: "币种",
prop: "cur",
width: "120px"
},
{
label: "关联状态",
prop: "sta",
width: "120px"
},
{
label: "处理状态",
prop: "area",
width: "120px"
},
{
label: "起息日",
prop: "valdat",
width: "120px"
},
{
......@@ -125,37 +225,42 @@ export default {
},
{
label: "目标渠道",
prop: "num",
prop: "multimsg",
width: "120px"
},
{
label: "源渠道",
prop: "num",
prop: "chk",
width: "120px"
},
{
label: "下一渠道",
prop: "kpatyp",
width: "120px"
},
{
label: "发报行BIC",
prop: "num",
prop: "sedbak",
width: "120px"
},
{
label: "收报行BIC",
prop: "num",
prop: "revbak",
width: "120px"
},
{
label: "账户行BIC",
prop: "num",
prop: "actbic",
width: "120px"
},
{
label: "勾销标识",
prop: "num",
prop: "offsta",
width: "120px"
},
{
label: "最后处理时间",
prop: "num",
prop: "lstdat",
width: "120px"
}],
data: [],
......@@ -175,6 +280,25 @@ export default {
return this.multipleSelection.length == 0;
}
},
watch: {
'model.oftp.rel.msgtyp': {
handler: function (newTyp, oldTyp) {
// 把已经选择的 subtyp 重置
this.model.oftp.rel.mty = '';
const { codes } = this;
if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp;
} else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp;
} else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp;
} else {
this.subtypCodes = codes.cipstyp;
}
},
deep: true
}
},
methods: {
},
mounted: function () {
......
......@@ -6,21 +6,24 @@
<el-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="报文标准" prop="" style="width: 100%">
<c-select v-model="model.oftp.rel.msgtyp" style="width: 100%" placeholder="请选择报文标准" :code="codes.msgtyp"/>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="报文类型" prop="" style="width: 100%">
<c-select v-model="model.oftp.rel.mty" style="width: 100%" placeholder="请选择报文类型" :code="codes.mty"/>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="发报行BIC" prop="" style="width: 100%">
<c-input v-model="model.oftp.rel.sedbak" style="width: 100%" placeholder="请输入发报行BIC"/>
</el-form-item>
</c-col>
<el-form-item label="报文标准" prop="" style="width: 100%">
<c-select v-model="model.oftp.rel.msgtyp" style="width: 100%" placeholder="请选择报文标准"
:code="codes.msgtyp3"/>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="报文类型" prop="subtype" style="width: 100%">
<el-select v-model="model.oftp.rel.mty" placeholder="请选择报文类型">
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="发报行BIC" prop="" style="width: 100%">
<c-input v-model="model.oftp.rel.sedbak" style="width: 100%" placeholder="请输入发报行BIC"/>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
......@@ -30,10 +33,10 @@
</c-list-search>
<el-col :span="24" style="margin-top: 2px;margin-bottom: 1px;">
<c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0"
type="primary" >{{ $t('public.归档') }}
<c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0"
type="primary">{{ $t('public.归档') }}
</c-button>
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium"
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium"
style="margin-left: 20" type="primary">ReRouting
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
......@@ -49,7 +52,7 @@
<el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%"
@selection-change="handleSelectionChange"
size="small" :border="true" height="calc(100vh - 480px)" :highlight-current-row="true">
<el-table-column type="selection" width="55">
<el-table-column type="selection" width="55">
</el-table-column>
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
:min-width="item.width">
......@@ -57,7 +60,8 @@
</el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :total="pagination.total"
:page-size="pagination.pageSize" :current-page.sync="pagination.pageNum" @size-change="handleSizeChange"
:page-size="pagination.pageSize" :current-page.sync="pagination.pageNum"
@size-change="handleSizeChange"
@current-change="handleCurrentChange">
</el-pagination>
</el-tab-pane>
......@@ -79,84 +83,84 @@ export default {
activeTab: 'fb',
load: false,
subtypCodes: [],
multipleSelection:[],
multipleSelection: [],
stmData: {
columns: [
{
label: "报文种类",
prop: "num",
width: "120px"
},
{
label: "收发时间",
prop: "num",
width: "120px"
},
{
label: "G渠道",
prop: "num",
width: "120px"
},
{
label: "记账类型",
prop: "num",
width: "120px"
},
{
label: "收支",
prop: "num",
width: "120px"
},
{
label: "金额",
prop: "num",
width: "120px"
},
{
label: "20域编号",
prop: "ownref",
width: "120px"
},
{
label: "21域编号",
prop: "othref",
width: "120px"
},
{
label: "目标渠道",
prop: "num",
width: "120px"
},
{
label: "源渠道",
prop: "num",
width: "120px"
},
{
label: "发报行BIC",
prop: "num",
width: "120px"
},
{
label: "收报行BIC",
prop: "num",
width: "120px"
},
{
label: "账户行BIC",
prop: "num",
width: "120px"
},
{
label: "勾销标识",
prop: "num",
width: "120px"
},
{
label: "最后处理时间",
prop: "num",
width: "120px"
}],
{
label: "报文种类",
prop: "num",
width: "120px"
},
{
label: "收发时间",
prop: "num",
width: "120px"
},
{
label: "G渠道",
prop: "num",
width: "120px"
},
{
label: "记账类型",
prop: "num",
width: "120px"
},
{
label: "收支",
prop: "num",
width: "120px"
},
{
label: "金额",
prop: "num",
width: "120px"
},
{
label: "20域编号",
prop: "ownref",
width: "120px"
},
{
label: "21域编号",
prop: "othref",
width: "120px"
},
{
label: "目标渠道",
prop: "num",
width: "120px"
},
{
label: "源渠道",
prop: "num",
width: "120px"
},
{
label: "发报行BIC",
prop: "num",
width: "120px"
},
{
label: "收报行BIC",
prop: "num",
width: "120px"
},
{
label: "账户行BIC",
prop: "num",
width: "120px"
},
{
label: "勾销标识",
prop: "num",
width: "120px"
},
{
label: "最后处理时间",
prop: "num",
width: "120px"
}],
data: [],
},
pagination: {
......@@ -166,16 +170,34 @@ width: "120px"
},
};
},
computed:{
isFoldDisable: function(){
computed: {
isFoldDisable: function () {
return this.multipleSelection.length == 0;
} ,
isRoutingDisable:function(){
},
isRoutingDisable: function () {
return this.multipleSelection.length == 0;
}
},
methods: {
watch: {
'model.sndp.msgtyp': {
handler: function (newTyp, oldTyp) {
// 把已经选择的 subtyp 重置
this.model.sndp.subtyp = '';
const { codes } = this;
if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp;
} else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp;
} else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp;
} else {
this.subtypCodes = codes.cipstyp;
}
},
deep: true
}
},
methods: {},
mounted: function () {
},
};
......
......@@ -8,7 +8,7 @@
<c-col :span="8">
<el-form-item label="记录类型" prop="qrtp.ljschk">
<c-select v-model="model.qrtp.ljschk" style="width:100%" placeholder="请输入记录类型">
<c-select v-model="model.qrtp.ljschk" style="width:100%" >
<el-option
v-for="item in codes.ljschk"
:key="item.value"
......@@ -21,7 +21,7 @@
<c-col :span="8">
<el-form-item label="记录范围" prop="qrtp.msgrag">
<c-select v-model="model.qrtp.msgrag" style="width:100%" placeholder="">
<c-select v-model="model.qrtp.msgrag" style="width:100%" >
<el-option
v-for="item in codes.msgrng"
:key="item.value"
......@@ -35,7 +35,7 @@
<c-col :span="8">
<el-form-item label="接收方向" prop="qrtp.revdrt">
<c-select v-model="model.qrtp.revdrt" style="width:100%" placeholder="请选择接收方向">
<c-select v-model="model.qrtp.revdrt" style="width:100%" >
<el-option
v-for="item in codes.msgdrt"
:key="item.value"
......@@ -54,19 +54,19 @@
<!-- <c-col :span="24">
<c-col :span="8">
<el-form-item label="发报行BIC" prop="sndbak" style="width: 100%">
<c-input v-model="model.sndp.sndbak" maxlength="40" placeholder="请输入发报行BIC">
<c-input v-model="model.sndp.sndbak" maxlength="40" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="收报行BIC" prop="revbak" style="width: 100%">
<c-input v-model="model.sndp.revbak" maxlength="40" placeholder="请输入收报行BIC">
<c-input v-model="model.sndp.revbak" maxlength="40" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="账户行BIC" prop="actbic" style="width: 100%">
<c-input v-model="model.sndp.actbic" maxlength="40" placeholder="请输入账户行BIC">
<c-input v-model="model.sndp.actbic" maxlength="40" >
</c-input>
</el-form-item>
</c-col>
......@@ -227,14 +227,14 @@ export default {
// 把已经选择的 subtyp 重置
this.model.sndp.subtyp = '';
const { codes } = this;
if (newTyp == 'txt') {
this.subtypCodes = codes.subtypfps;
} else if (newTyp == 'iso') {
this.subtypCodes = codes.subtypiso;
} else if (newTyp == 'xml') {
this.subtypCodes = codes.subtypcps;
if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp;
} else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp;
} else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp;
} else {
this.subtypCodes = codes.subtyp1;
this.subtypCodes = codes.cipstyp;
}
},
deep: true
......
......@@ -14,7 +14,7 @@
<c-col :span="8">
<el-form-item label="报文类型" prop="" style="width: 100%">
<c-select v-model="model.qrdgrp.rec.msgtyp" style="width: 100%" placeholder="请选择报文类型"
:code="codes.msgtyp"/>
:code="codes.msgtyp3"/>
</el-form-item>
</c-col>
<c-col :span="8">
......
......@@ -24,7 +24,7 @@ export default {
this.load = true;
let rtnmsg = await Api.post("/gjzf/msgsel/query", {
...this.model.rcvp,
dir: "<",
dir: ">",
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
......
......@@ -307,14 +307,14 @@ export default {
// 把已经选择的 subtyp 重置
this.model.rcvp.subtyp = '';
const { codes } = this;
if (newTyp == 'txt') {
this.subtypCodes = codes.subtypfps;
} else if (newTyp == 'iso') {
this.subtypCodes = codes.subtypiso;
} else if (newTyp == 'xml') {
this.subtypCodes = codes.subtypcps;
if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp;
} else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp;
} else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp;
} else {
this.subtypCodes = codes.subtyp1;
this.subtypCodes = codes.cipstyp;
}
},
deep: true
......
......@@ -307,14 +307,14 @@ export default {
// 把已经选择的 subtyp 重置
this.model.rcvp.subtyp = '';
const { codes } = this;
if (newTyp == 'txt') {
this.subtypCodes = codes.subtypfps;
} else if (newTyp == 'iso') {
this.subtypCodes = codes.subtypiso;
} else if (newTyp == 'xml') {
this.subtypCodes = codes.subtypcps;
if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp;
} else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp;
} else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp;
} else {
this.subtypCodes = codes.subtyp1;
this.subtypCodes = codes.cipstyp;
}
},
deep: true
......
......@@ -307,14 +307,14 @@ export default {
// 把已经选择的 subtyp 重置
this.model.rcvp.subtyp = '';
const { codes } = this;
if (newTyp == 'txt') {
this.subtypCodes = codes.subtypfps;
} else if (newTyp == 'iso') {
this.subtypCodes = codes.subtypiso;
} else if (newTyp == 'xml') {
this.subtypCodes = codes.subtypcps;
if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp;
} else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp;
} else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp;
} else {
this.subtypCodes = codes.subtyp1;
this.subtypCodes = codes.cipstyp;
}
},
deep: true
......
......@@ -7,17 +7,17 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item label="BIC码" prop="msgtyp" style="width: 100%">
<c-input v-model="model.smdp.smdsup.ptpmod.pty.extkey" style="width: 100%" placeholder="请选择BIC码" />
<c-input v-model="model.smdp.smdsup.ptpmod.pty.extkey" style="width: 100%" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="帐号" prop="rcvdatsta" style="width: 100%">
<c-input v-model="model.smdp.smdsup.act" style="width: 100%" placeholder="请选择帐号" />
<c-input v-model="model.smdp.smdsup.act" style="width: 100%" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="币种" prop="subtype" style="width: 100%">
<c-select v-model="model.smdp.smdsup.cur" placeholder="请选择报文类型" :code="codes.cur"/>
<c-select v-model="model.smdp.smdsup.cur" :code="codes.cur"/>
</el-form-item>
</c-col>
</c-col>
......@@ -199,14 +199,14 @@ export default {
// 把已经选择的 subtyp 重置
this.model.rcvp.subtyp = '';
const { codes } = this;
if (newTyp == 'txt') {
this.subtypCodes = codes.subtypfps;
} else if (newTyp == 'iso') {
this.subtypCodes = codes.subtypiso;
} else if (newTyp == 'xml') {
this.subtypCodes = codes.subtypcps;
if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp;
} else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp;
} else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp;
} else {
this.subtypCodes = codes.subtyp1;
this.subtypCodes = codes.cipstyp;
}
},
deep: true
......
......@@ -7,7 +7,7 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item label="对账单类型" prop="msgtyp" style="width: 100%">
<c-select v-model="model.smtp.smtsup.typ" style="width: 100%" placeholder="请选择货押标识" :code="codes.msgtyp3">
<c-select v-model="model.smtp.smtsup.typ" style="width: 100%" :code="codes.smttyp">
</c-select>
</el-form-item>
</c-col>
......@@ -26,7 +26,7 @@
</c-col>
<c-col :span="8">
<el-form-item label="BIC" prop="subtype" style="width: 100%">
<c-input v-model="model.smtp.smtsup.ptpmod.pty.extkey" maxlength="24" placeholder="请输入报文类型">
<c-input v-model="model.smtp.smtsup.ptpmod.pty.extkey" maxlength="24" >
</c-input>
</el-form-item>
</c-col>
......@@ -37,27 +37,24 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item label="账户行名称" prop="sndbak" style="width: 100%">
<c-input v-model="model.smtp.smtsup.ptpmod.pty.chnnam" maxlength="40" placeholder="请输入发报行BIC">
</c-input>
<c-input v-model="model.smtp.smtsup.ptpmod.pty.chnnam" maxlength="40" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="帐号" prop="revbak" style="width: 100%">
<c-input v-model="model.smtp.smtsup.act" maxlength="40" placeholder="请输入收报行BIC">
</c-input>
<c-input v-model="model.smtp.smtsup.act" maxlength="40"/>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="币种" prop="actbic" style="width: 100%">
<c-input v-model="model.smtp.smtsup.cur" maxlength="40" placeholder="请输入账户行BIC">
</c-input>
<c-select v-model="model.smtp.smtsup.cur" maxlength="40" :code="codes.cur" />
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="错误类型" prop="ownref" style="width: 100%">
<c-select v-model="model.smtp.smtsup.errtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('smtsup.LT000215')">
<c-select v-model="model.smtp.smtsup.errtyp" style="width:100%" >
<el-option
v-for="item in codes.errtyp"
:key="item.value"
......@@ -69,13 +66,13 @@
</c-col>
<c-col :span="8">
<el-form-item label="对账单参考号" prop="othref" style="width: 100%">
<c-input v-model="model.smtp.smtsup.ref" maxlength="40" placeholder="请输入21域编号">
<c-input v-model="model.smtp.smtsup.ref" maxlength="40" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="对账单编号" prop="cur" style="width: 100%">
<c-select v-model="model.smtp.smtsup.smtno" style="width: 100%" placeholder="请选择币种" :code="codes.cur">
<c-select v-model="model.smtp.smtsup.smtno" style="width: 100%" :code="codes.cur">
</c-select>
</el-form-item>
</c-col>
......@@ -115,7 +112,7 @@
<div style="height: 90%">
<c-col :span="24">
<el-tabs v-model="activeTab" class="y-tabs">
<el-tab-pane label="发报查询" name="fb">
<el-tab-pane label="问题、异常对账单" name="fb">
<el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%"
@selection-change="handleSelectionChange"
size="small" :border="true" height="calc(100vh - 480px)" :highlight-current-row="true">
......
......@@ -18,6 +18,7 @@ import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Smtp01 from "./Smtp01"
import CodeTable from "@/config/CodeTable";
export default {
......@@ -41,54 +42,7 @@ export default {
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
// msgdrt:CodeTable.msgdrt,
// blksta:CodeTable.blksta,
// kpatyp:CodeTable.kpatyp,
// cur:CodeTable.cur,
// sdcflg:CodeTable.sdcflg,
// smttyp:CodeTable.smttyp,
// gpicod:CodeTable.gpicod,
// mgssta:CodeTable.mgssta,
// ljschk:CodeTable.ljschk,
// offtyp:CodeTable.offtyp,
// msgrng:CodeTable.msgrng,
// fmssta:CodeTable.fmssta,
// clrsys:CodeTable.clrsys,
// errtyp:CodeTable.errtyp,
// stacod:CodeTable.stacod,
// dottyp:CodeTable.dottyp,
// recsta:CodeTable.recsta,
// cassta:CodeTable.cassta,
// bnksta:CodeTable.bnksta,
// gpista:CodeTable.gpista,
// kpadir:CodeTable.kpadir,
// area:CodeTable.area,
// cpsfxdtyp:CodeTable.cpsfxdtyp,
// rspsta:CodeTable.rspsta,
// sta:CodeTable.sta,
// actsta:CodeTable.actsta,
// offsta:CodeTable.offsta,
// batcharge:CodeTable.batcharge,
// msgmst:CodeTable.msgmst,
// yosflg:CodeTable.yosflg,
// filtyp:CodeTable.filtyp,
// dircod:CodeTable.dircod,
// kpstyp:CodeTable.kpstyp,
// allmsgcod:CodeTable.allmsgcod,
// dcflg:CodeTable.dcflg,
// cipsstatus:CodeTable.cipsstatus,
// curcod:CodeTable.curcod,
// msgtyp:CodeTable.msgtyp,
// chncod:CodeTable.chncod,
// msgsta:CodeTable.msgsta,
// usratr:CodeTable.usratr,
// msgchksta:CodeTable.msgchksta,
// cipsmsgtype:CodeTable.cipsmsgtype,
// setmth:CodeTable.setmth,
// chniptcod:CodeTable.chniptcod,
// dtlchg:CodeTable.dtlchg,
},
codes:{...CodeTable},
}
},
methods:{
......
......@@ -24,7 +24,7 @@ export default {
this.load = true;
let rtnmsg = await Api.post("/gjzf/msgsel/query", {
...this.model.sndp,
dir: ">",
dir: "<",
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
......
......@@ -7,7 +7,7 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item label="报文标准" prop="msgtyp" style="width: 100%">
<c-select v-model="model.sndp.msgtyp" style="width: 100%" placeholder="请选择货押标识" :code="codes.msgtyp3">
<c-select v-model="model.sndp.msgtyp" style="width: 100%" placeholder="请选择报文标准" :code="codes.msgtyp3">
</c-select>
</el-form-item>
</c-col>
......@@ -296,14 +296,14 @@ export default {
// 把已经选择的 subtyp 重置
this.model.sndp.subtyp = '';
const { codes } = this;
if (newTyp == 'txt') {
this.subtypCodes = codes.subtypfps;
} else if (newTyp == 'iso') {
this.subtypCodes = codes.subtypiso;
} else if (newTyp == 'xml') {
this.subtypCodes = codes.subtypcps;
if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp;
} else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp;
} else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp;
} else {
this.subtypCodes = codes.subtyp1;
this.subtypCodes = codes.cipstyp;
}
},
deep: true
......
......@@ -296,14 +296,14 @@ export default {
// 把已经选择的 subtyp 重置
this.model.sndp.subtyp = '';
const { codes } = this;
if (newTyp == 'txt') {
this.subtypCodes = codes.subtypfps;
} else if (newTyp == 'iso') {
this.subtypCodes = codes.subtypiso;
} else if (newTyp == 'xml') {
this.subtypCodes = codes.subtypcps;
if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp;
} else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp;
} else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp;
} else {
this.subtypCodes = codes.subtyp1;
this.subtypCodes = codes.cipstyp;
}
},
deep: true
......
const BusRouter = [
{ path: 'inffxd', component: () => import("./Inffxd/views"), name: 'Inffxd', meta: { title: '资结售汇报表交易查询' }, module: 'Funds' },
{ path: 'infftd', component: () => import("./Infftd1/views"), name: 'Infftd1', meta: { title: '资金拆借/头寸调拨报表交易查询' }, module: 'Funds' },
{ path: 'fttatt', component: () => import("./Fttatt/views"), name: 'Fttatt', meta: { title: 'Fttatt' }, module: 'Funds' },
{ path: 'fttfcm', component: () => import("./Fttfcm/views"), name: 'Fttfcm', meta: { title: '资金定存拆借登记及确认交易' }, module: 'Funds' },
{ path: 'fttfcn', component: () => import("./Fttfcn/views"), name: 'Fttfcn', meta: { title: '定存拆借销账交易' }, module: 'Funds' },
{ path: 'fttfee', component: () => import("./Fttfee/views"), name: 'Fttfee', meta: { title: '费用结算' }, module: 'Funds' },
{ path: 'fttfmt', component: () => import("./Fttfmt/views"), name: 'Fttfmt', meta: { title: '定存拆借到期交易' }, module: 'Funds' },
{ path: 'fttfre', component: () => import("./Fttfre/views"), name: 'Fttfre', meta: { title: '拆借函电往来' }, module: 'Funds' },
{ path: 'fttpcm', component: () => import("./Fttpcm/views"), name: 'Fttpcm', meta: { title: '头寸调拨登记确认交易' }, module: 'Funds' },
{ path: 'fttpcn', component: () => import("./Fttpcn/views"), name: 'Fttpcn', meta: { title: '头寸调拨销账交易' }, module: 'Funds' },
{ 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: 'fxtfcn', component: () => import("./Fxtfcn/views"), name: 'Fxtfcn', meta: { title: '外币兑换平盘销账' }, module: 'Funds' },
{ path: 'infcrd', component: () => import("./Infcrd/views"), name: 'Infcrd', meta: { title: '清算入口交易' }, module: 'Funds' },
{ path: 'inffxd', component: () => import("./Inffxd/views"), name: 'Inffxd', meta: {keepAlive: true, title: '资结售汇报表交易查询' , module: 'funds' }},
{ path: 'infftd', component: () => import("./Infftd/views"), name: 'Infftd', meta: {keepAlive: true, title: '资金拆借/头寸调拨报表交易查询' , module: 'funds' }},
{ path: 'fttatt', component: () => import("./Fttatt/views"), name: 'Fttatt', meta: {keepAlive: true, title: 'Fttatt' , module: 'funds' }},
{ path: 'fttfcm', component: () => import("./Fttfcm/views"), name: 'Fttfcm', meta: {keepAlive: true, title: '资金定存拆借登记及确认交易' , module: 'funds' }},
{ path: 'fttfcn', component: () => import("./Fttfcn/views"), name: 'Fttfcn', meta: {keepAlive: true, title: '定存拆借销账交易' , module: 'funds' }},
{ path: 'fttfee', component: () => import("./Fttfee/views"), name: 'Fttfee', meta: {keepAlive: true, title: '费用结算' , module: 'funds' }},
{ path: 'fttfmt', component: () => import("./Fttfmt/views"), name: 'Fttfmt', meta: {keepAlive: true, title: '定存拆借到期交易' , module: 'funds' }},
{ path: 'fttfre', component: () => import("./Fttfre/views"), name: 'Fttfre', meta: {keepAlive: true, title: '拆借函电往来' , module: 'funds' }},
{ path: 'fttpcm', component: () => import("./Fttpcm/views"), name: 'Fttpcm', meta: {keepAlive: true, title: '头寸调拨登记确认交易' , module: 'funds' }},
{ path: 'fttpcn', component: () => import("./Fttpcn/views"), name: 'Fttpcn', meta: {keepAlive: true, title: '头寸调拨销账交易' , module: 'funds' }},
{ path: 'fxtatt', component: () => import("./Fxtatt/views"), name: 'Fxtatt', meta: {keepAlive: true, title: 'Fxtatt' , module: 'funds'} },
{ path: 'fxteop', component: () => import("./Fxteop/views"), name: 'Fxteop', meta: {keepAlive: true, title: '代客外汇买卖录入' , module: 'funds'} },
{ path: 'fxteqo', component: () => import("./Fxteqo/views"), name: 'Fxteqo', meta: {keepAlive: true, title: '代客外汇买卖报价' , module: 'funds'} },
{ path: 'fxtfcm', component: () => import("./Fxtfcm/views"), name: 'Fxtfcm', meta: {keepAlive: true, title: '外币兑换平盘确认' , module: 'funds'} },
{ path: 'fxtfcn', component: () => import("./Fxtfcn/views"), name: 'Fxtfcn', meta: {keepAlive: true, title: '外币兑换平盘销账' , module: 'funds' }},
{ path: 'infcrd', component: () => import("./Infcrd/views"), name: 'Infcrd', meta: {keepAlive: true, title: '清算入口交易' , module: 'funds' }},
{
path: "fxtfop",
component: () => import("./Fxtfop/views"),
name: "fxtfop",
meta: { title: "外币兑换平盘登记" },
module: "Funds",
meta: {keepAlive: true, title: "外币兑换平盘登记" , module: "funds"},
},
{ path: 'fxtlcm', component: () => import("./Fxtlcm/views"), name: 'Fxtlcm', meta: { title: '结售汇平盘确认交易' }, module: 'Funds' },
{ path: 'fxtlcn', component: () => import("./Fxtlcn/views"), name: 'Fxtlcn', meta: { title: '结售汇平盘销账交易' }, module: 'Funds' },
{ path: 'fxtlcm', component: () => import("./Fxtlcm/views"), name: 'Fxtlcm', meta: {keepAlive: true, title: '结售汇平盘确认交易' , module: 'funds'} },
{ path: 'fxtlcn', component: () => import("./Fxtlcn/views"), name: 'Fxtlcn', meta: {keepAlive: true, title: '结售汇平盘销账交易' , module: 'funds'} },
{
path: "fxtlop",
component: () => import("./Fxtlop/views"),
name: "Fxtlop",
meta: { title: "结售汇平盘登记" },
module: "Funds",
meta: {keepAlive: true, title: "结售汇平盘登记" , module: "funds"},
},
{ path: 'fxtssb', component: () => import("./Fxtssb/views"), name: 'Fxtssb', meta: { title: '即期结汇交易' }, module: 'Funds' },
{ path: 'fxtsss', component: () => import("./Fxtsss/views"), name: 'Fxtsss', meta: { title: '即期售汇交易' }, module: 'Funds' },
{ path: 'crtcri', component: () => import("./Crtcri/views"), name: 'Crtcri', meta: { title: '汇入清算' }, module: 'Funds' },
{ path: 'crtcro', component: () => import("./Crtcro/views"), name: 'Crtcro', meta: { title: '汇出清算' }, module: 'Funds' },
{ path: 'fxtsqo', component: () => import("./Fxtsqo/views"), name: 'Fxtsqo', meta: { title: '结售汇报价' }, module: 'Funds' },
{ path: 'crtcbk', component: () => import("./Crtcbk/views"), name: 'Crtcbk', meta: { title: '退汇清算' }, module: 'Funds' },
{ path: 'crtctf', component: () => import("./Crtctf/views"), name: 'Crtctf', meta: { title: '转汇清算' }, module: 'Funds' },
{ path: 'fxtssb', component: () => import("./Fxtssb/views"), name: 'Fxtssb', meta: {keepAlive: true, title: '即期结汇交易' , module: 'funds' }},
{ path: 'fxtsss', component: () => import("./Fxtsss/views"), name: 'Fxtsss', meta: {keepAlive: true, title: '即期售汇交易' , module: 'funds'}},
{ path: 'crtcri', component: () => import("./Crtcri/views"), name: 'Crtcri', meta: {keepAlive: true, title: '汇入清算' , module: 'funds' }},
{ path: 'crtcro', component: () => import("./Crtcro/views"), name: 'Crtcro', meta: {keepAlive: true, title: '汇出清算' , module: 'funds' }},
{ path: 'fxtsqo', component: () => import("./Fxtsqo/views"), name: 'Fxtsqo', meta: {keepAlive: true, title: '结售汇报价' , module: 'funds' }},
{ path: 'crtcbk', component: () => import("./Crtcbk/views"), name: 'Crtcbk', meta: {keepAlive: true, title: '退汇清算' , module: 'funds' }},
{ path: 'crtctf', component: () => import("./Crtctf/views"), name: 'Crtctf', meta: {keepAlive: true, title: '转汇清算' , module: 'funds' }},
];
export default BusRouter
......@@ -27,6 +27,7 @@ export default {
objtyp: "FXD",
objinr: model.fxdgrp.rec.inr,
ownref: model.fxdgrp.rec.ownref,
fxtyp:model.fxdgrp.rec.fxtyp,
},
cbsMap: {
MAX: model.fxdgrp.cbs.max,
......
......@@ -5,7 +5,63 @@ export default {
mixins: [commonFunctions],
methods: {
async getOwnref(){
if (this.model.fxdgrp.rec.fxtyp == "") {
this.$notify.warning({
title: '提示',
message: '请先选择平盘类型!'
});
return;
}
const loading = this.loading();
let res = await Api.post(`/${this.moduleRouter()}/fxtfop/getRef`, this.model);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.model.fxdgrp.rec.ownref = res.data;
},
}
async defaultRateN1000() {
if (this.model.fxdgrp.cbs.max.cur == "") {
return;
}
if (this.model.fxdgrp.cbs.nom1.cur == "") {
return;
}
const loading = this.loading();
let res = await Api.post(`/${this.moduleRouter()}/fxtfop/defaultRateN1000`, this.model);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
// this.updateValueSet(res.codeSet);
this.model.fxdgrp.rec.midrat =res.data.fxdgrp.rec.midrat;
},
async defaultCalculateN1100() {
if (this.model.fxdgrp.cbs.max.cur == "") {
return;
}
if (this.model.fxdgrp.cbs.nom1.cur == "") {
return;
}
const loading = this.loading();
let res = await Api.post(`/${this.moduleRouter()}/fxtfop/defaultCalculateN1100`, this.model);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
// this.updateValueSet(res.codeSet);
this.model.fxdgrp.cbs.nom1.amt =res.data.fxdgrp.cbs.nom1.amt;
},
}
}
\ No newline at end of file
export default {
"fxdgrp.rec.ownref": [
{type: "string", required: true, message: "必输项"},
{max: 16, message: "长度不能超过16"}
],
"fxdgrp.rec.nam": [
{type: "string", required: false, message: "必输项"},
{max: 40, message: "长度不能超过40"}
],
"fxdgrp.apl.pts.ref": [
{type: "string", required: false, message: "必输项"},
{max: 20, message: "长度不能超过20"}
],
"fxdgrp.rec.usr": [
{type: "string", required: false, message: "必输项"},
{max: 8, message: "长度不能超过8"}
],
"fxdgrp.apl.pts.extkey": [
{type: "string", required: true, message: "必输项"},
{max: 16, message: "长度不能超过16"}
],
"fxdgrp.apl.pts.adrblk": [
{type: "string", required: true, message: "必输项"},
{max: 35*4, message: "长度不能超过35*4"}
],
"fxdgrp.cbs.max.amt": [
{type: "string", required: true, message: "必输项"},
{max: 18, message: "整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位"}
],
"fxdgrp.cbs.nom1.amt": [
{type: "string", required: false, message: "必输项"},
{max: 18, message: "整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位"}
],
"fxdgrp.rec.rat": [
{required: true, message: "必输项"},
{max: 14, message: "长度不能超过14"}
],
"fxdgrp.rec.midrat": [
{required: true, message: "必输项"},
],
"fxdgrp.rec.opndat": [
{type: "string", required: true, message: "输入正确的日期"}
],
"fxdgrp.rec.valdat": [
{type: "string", required: true, message: "输入正确的日期"}
],
"fxdgrp.blk.remark": [
{type: "string", required: false, message: "必输项"},
{max: 35, message: "长度不能超过35"}
],
}
\ No newline at end of file
import commonFunctions from "~/mixin/commonFunctions.js";
import commonDepend from "~/mixin/commonDepend";
export default {
mixins: [commonFunctions, commonDepend],
methods: {
},
};
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
import Pub from "../../../../components/business/commonModel/index.js";
import Pub from "~/components/business/commonModel/index.js";
import Fxdgrp from '~/components/business/commonModel/fxdgrp';
export default class Fxtfop{
constructor () {
this.data = {
fxdgrp:{
rec:{
ownref:"", // 业务编号 .fxdgrp.rec.ownref
nam:"", // 业务名称 .fxdgrp.rec.nam
fxtyp:"", // 平盘类型 .fxdgrp.rec.fxtyp
opndat:"", // 成交日 .fxdgrp.rec.opndat
valdat:"", // 起息日 .fxdgrp.rec.valdat
rat:"", // 平盘牌价 .fxdgrp.rec.rat
midrat:"", // 中间价 .fxdgrp.rec.midrat
ownusr:"",
},
apl:{
pts:new Pts().data,
},
blk:{
remark:"", // 备注 .fxdgrp.blk.remark
},
cbs:{
max:{
cur:"", // Currency .fxdgrp.cbs.max.cur
amt:"", // Balance .fxdgrp.cbs.max.amt
},
nom1:{
cur:"", // Currency .fxdgrp.cbs.nom1.cur
amt:"", // Balance .fxdgrp.cbs.nom1.amt
},
},
},
fxdgrp: new Fxdgrp().data,
fxtp:{
frgchk:"X"
},
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
......
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ==================左边================ -->
<!-- ==================左边================ -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<c-col :span="24">
<c-form-item label="业务编号" prop="fxdgrp.rec.ownref">
<c-fullbox>
<c-input v-model="model.fxdgrp.rec.ownref" maxlength="16" placeholder="请输入业务编号" disabled>
</c-input>
<template slot="footer">
<c-button style="margin: 0 0" size="small" type="primary" :disabled="model.fxdgrp.apl.pts.ptainr === ''"
<c-button style="margin: 0 5px" size="small" type="primary" :disabled="getOwnrefFlg"
@click="getOwnref">
获取
</c-button>
......@@ -17,14 +17,23 @@
</c-fullbox>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="业务负责人" prop="fxdgrp.rec.ownusr">
<c-input v-model="model.fxdgrp.rec.ownusr" placeholder="请输入业务负责人" disabled/>
<c-form-item label="业务负责人" prop="fxdgrp.rec.usr">
<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-col>
<c-col :span="24">
<el-form-item label="平盘类型" prop="fxdgrp.rec.fxtyp">
<c-select v-model="model.fxdgrp.rec.fxtyp" style="width:100%" :placeholder="请输入平盘类型" dbCode="">
<c-select v-model="model.fxdgrp.rec.fxtyp" style="width:100%" :code="codes.fxt_fxtyp" :filterKey="['FS', 'FB']">
</c-select>
</el-form-item>
</c-col>
......@@ -59,7 +68,7 @@
</c-col>
<c-col :span="24">
<c-form-item label="平盘牌价" prop="fxdgrp.rec.rat">
<c-input-currency v-model="model.fxdgrp.rec.rat" style="width:100%" :precision="6" disabled placeholder="请输入平盘牌价">
<c-input-currency v-model="model.fxdgrp.rec.rat" style="width:100%" :precision="6" placeholder="请输入平盘牌价">
</c-input-currency>
</c-form-item>
</c-col>
......@@ -70,6 +79,12 @@
</c-form-item>
</c-col>
<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-input type="textarea" v-model="model.fxdgrp.blk.remark" maxlength="140" :rows="4" style="width:100%" placeholder="请输入备注">
</c-input>
......@@ -79,19 +94,21 @@
<!-- ==================右边================ -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<c-form-item label="业务名称" prop="fxdgrp.rec.nam">
<c-input v-model="defaultNam950" maxlength="40" disabled></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="false" :isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false" :argadr="{title: '平盘对手',grp: 'fxdgrp', rol: 'apl',}"
:label="{labelExtkey:'平盘对手',labelNam:'名称',labelAdrblk:'地址'}" ptytyp="C">
</c-ptap>
:isShowCard="false"
:argadr="{title: '平盘对手', grp: 'fxdgrp', rol: 'apl',}"
:label="{labelExtkey:'平盘对手',labelNam:'名称',labelAdrblk:'地址',}"
ptytyp="B">
</c-ptap>
</el-card>
</c-col>
<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">
<c-date-picker type="date" v-model="model.fxdgrp.rec.valdat" style="width:100%" placeholder="请输入起息日">
......@@ -104,15 +121,89 @@
</template>
<script>
import event from "../event";
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
export default {
inject: ['root'],
props:["model","codes"],
mixins: [event],
mixins: [event,commonProcess],
data(){
return {}
return {
}
},
created() {}
computed: {
getOwnrefFlg: function () {
//debugger
console.log(this.model)
return this.model.fxdgrp.rec.fxtyp == '' || this.model.fxdgrp.apl.pts.extkey == '' || this.model.fxdgrp.rec.ownref != '';
},
defaultNam950: function () {
//debugger;
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") + ","
+ this.model.fxdgrp.cbs.max.cur + " " + amount;
},
},
methods: {
//获取码值
getCodelabel(value, codenam) {
const codeobj = this.codes[codenam].find(obj => obj.value === value)
return codeobj ? codeobj.label : value;
},
},
created: function () {
},
watch: {
//申请人变得 本外币下拉框需变化
'model.fxdgrp.apl.pts.ptyinr': {
handler(newValue) {
// if (newValue == "" || newValue == null) {
// this.model.fxdgrp.rec.acc = "";
// this.model.fxdgrp.rec.acc2 = "";
// this.model.accLst = [];
// this.model.accLst2 = [];
// return
// }
// this.defaultAccountsN1000();
},
},
'model.fxdgrp.cbs.max.cur': {
handler(newValue) {
if (newValue !== "" && newValue !== null) {
this.defaultRateN1000();
}
},
},
'model.fxdgrp.cbs.nom1.cur': {
handler(newValue) {
if (newValue !== "" && newValue !== null) {
this.defaultRateN1000();
}
},
},
'model.fxdgrp.cbs.max.amt': {
handler(newValue) {
if (newValue !== "" && newValue !== null) {
this.defaultCalculateN1100();
}
},
},
}
}
</script>
<style>
......
......@@ -17,6 +17,11 @@
<m-docpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<!-- <el-tab-pane label="附件信息" name="doctre">
<c-content>
<m-doctre :model="model" :codes="codes"/>
</c-content>
</el-tab-pane> -->
</c-tabs>
</el-form>
<c-function-btn
......@@ -31,16 +36,17 @@
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fxtfop from "../model"
import commonProcess from "~/mixin/commonProcess"
import Regp from "./Regp"
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import buildFn from "../event/buildCommons.js";
import Fxtfop from "../model";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import Regp from "./Regp";
import event from "../event";
import buildFn from "../event/buildCommons.js";
import Check from "../model/Check.js";
export default {
name: "Fxtfop",
......@@ -59,26 +65,29 @@ export default {
return {
tabVal: "regp",
trnName: "fxtfop",
trnType: "",
model: new Fxtfop().data,
codes: { ...CodeTable },
rules: {},
rules: Check,
codes: { ...CodeTable },
}
},
methods:{
},
mounted() {
console.log("进入fxtfop交易");
let params = {
transName: this.trnName,
fxdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params)
myTabClick(tab) {
this.tabClick(tab)
}
},
created: async function () {
console.log("进入fxtfop交易");
let params = {
transName: this.trnName,
fxdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params)
},
}
</script>
<style>
......
......@@ -27,6 +27,15 @@ export default {
objtyp: "FXD",
objinr: model.fxdgrp.rec.inr,
ownref: model.fxdgrp.rec.ownref,
fxtyp:model.fxdgrp.rec.fxtyp,
acc: model.fxdgrp.rec.acc,
acc2: model.fxdgrp.rec.acc2,
dsp: model.fxdgrp.rec.dsp,
dsp2: model.fxdgrp.rec.dsp2,
trdint: model.fxdgrp.rec.trdint,
trdout: model.fxdgrp.rec.trdout,
trnman: model.fxdgrp.rec.trnman,
rat: model.fxdgrp.rec.rat,
},
cbsMap: {
MAX: model.fxdgrp.cbs.max,
......
......@@ -5,6 +5,74 @@ import commonFunctions from "~/mixin/commonFunctions.js";
export default {
mixins: [commonFunctions],
methods: {
async getOwnref() {},
async getOwnref() {
if (this.model.fxdgrp.rec.fxtyp == "") {
this.$notify.warning({
title: '提示',
message: '请先选择结售汇类型!'
});
return;
}
const loading = this.loading();
let res = await Api.post(`/${this.moduleRouter()}/fxtlop/getRef`, this.model);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.model.fxdgrp.rec.ownref = res.data;
},
async defaultAccAndRate() {
this.defaultRateN1000();
console.log("defaultAccAndRate")
this.defaultCalculateN1100();
},
async defaultCalculateN1100() {
console.log("defaultCalculateN1100")
if (this.model.fxdgrp.rec.rat == "") {
return;
}
if (this.model.fxdgrp.cbs.max.cur == "") {
return;
}
if (this.model.fxdgrp.cbs.max.amt == "" || this.model.fxdgrp.cbs.max.amt == 0) {
return;
}
const loading = this.loading();
console.log( this.model);
let res = await Api.post(`/${this.moduleRouter()}/fxtlop/defaultCalculateN1100`, this.model);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.model.fxdgrp.cbs.max.amt = res.data.fxdgrp.cbs.max.amt;
this.model.fxdgrp.cbs.nom1.amt = res.data.fxdgrp.cbs.nom1.amt;
},
async defaultRateN1000() {
if (this.model.fxdgrp.rec.fxtyp == "") {
return;
}
if (this.model.fxdgrp.cbs.max.cur == "") {
return;
}
if (this.model.fxdgrp.apl.pts.ptyinr == "") {
return;
}
const loading = this.loading();
let res = await Api.post(`/${this.moduleRouter()}/fxtlop/defaultRateN1000`, this.model);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.model.fxdgrp.rec.rat = res.data.fxdgrp.rec.rat;
this.model.fxdgrp.rec.midrat = res.data.fxdgrp.rec.midrat;
},
},
};
import Api from "~/service/Api";
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 Fxtlop {
constructor() {
......@@ -8,57 +9,13 @@ export default class Fxtlop {
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia,
fxdgrp: {
rec: {
ownref: "", // 业务编号 .fxdgrp.rec.ownref
nam: "", // 业务名称 .fxdgrp.rec.nam
fxtyp: "", // 平盘类型 .fxdgrp.rec.fxtyp
opndat: "", // 成交日 .fxdgrp.rec.opndat
valdat: "", // 起息日 .fxdgrp.rec.valdat
rat: "", // 平盘牌价 .fxdgrp.rec.rat
midrat: "", // 中间价 .fxdgrp.rec.midrat
},
apl: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .fxdgrp.apl.dbfadrblkcn
},
blk: {
remark: "", // 备注 .fxdgrp.blk.remark
},
cbs: {
max: {
cur: "", // Currency .fxdgrp.cbs.max.cur
amt: "", // Balance .fxdgrp.cbs.max.amt
},
nom1: {
cur: "", // Currency .fxdgrp.cbs.nom1.cur
amt: "", // Balance .fxdgrp.cbs.nom1.amt
},
},
},
fxdgrp: new Fxdgrp().data,
fxtp: {
amtlab: "", // Amount Label .fxtp.amtlab
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: "", // 业务负责人 .fxtp.usr.extkey
},
},
pageId: "", // ctx的key
};
}
}
}
}
......@@ -18,7 +18,7 @@
style="margin: 0 0"
size="small"
type="primary"
:disabled="model.fxdgrp.apl.pts.ptainr === ''"
:disabled="getOwnrefFlg"
@click="getOwnref"
>
获取
......@@ -28,11 +28,8 @@
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="业务负责人" prop="fxdgrp.rec.ownusr">
<c-input
v-model="model.fxdgrp.rec.ownusr"
placeholder="请输入业务负责人"
/>
<c-form-item label="业务负责人" prop="fxdgrp.rec.usr">
<c-input v-model="model.fxdgrp.rec.usr" placeholder="请输入业务负责人" disabled></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
......@@ -42,6 +39,7 @@
style="width: 100%"
placeholder="请输入平盘类型"
:code="codes.fxt_fxtyp"
:filterKey="['LB', 'LS']"
>
</c-select>
</el-form-item>
......@@ -52,7 +50,8 @@
<c-select-cur
v-model="model.fxdgrp.cbs.max.cur"
style="width: 100%"
:code="codes.bopcur"
dbCode="curtxt"
@change="defaultAccAndRate"
>
</c-select-cur>
</el-form-item>
......@@ -140,7 +139,7 @@
<c-col :span="12" style="padding-right: 20px">
<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-input v-model="defaultNam950" maxlength="40" disabled></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
......@@ -192,6 +191,25 @@ export default {
data() {
return {};
},
computed:{
getOwnrefFlg: function () {
let flg = this.model.fxdgrp.rec.fxtyp == '' || this.model.fxdgrp.apl.pts.ptainr == ''
|| this.model.fxdgrp.cbs.max.cur == '' || this.model.fxdgrp.rec.ownref != ''
return flg;
},
defaultNam950: function () {
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") + ","
+ this.model.fxdgrp.cbs.max.cur + " " + amount;
},
},
methods: {
//获取码值
getCodelabel(value, codenam) {
const codeobj = this.codes[codenam].find(obj => obj.value === value)
return codeobj ? codeobj.label : value;
},
},
created: function () {},
};
</script>
......
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,
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,
};
},
cbsMap: {
MAX: model.fxtp.fxdgrp.cbs.max,
NOM1: model.fxtp.fxdgrp.cbs.nom1,
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,
fxtyp: model.fxdgrp.rec.fxtyp,
acc: model.fxdgrp.rec.acc,
acc2: model.fxdgrp.rec.acc2,
dsp: model.fxdgrp.rec.dsp,
dsp2: model.fxdgrp.rec.dsp2,
trdint: model.fxdgrp.rec.trdint,
trdout: model.fxdgrp.rec.trdout,
trnman: model.fxdgrp.rec.trnman,
rat: model.fxdgrp.rec.rat,
},
cbsMap: {
MAX: model.fxdgrp.cbs.max,
NOM1: model.fxdgrp.cbs.nom1,
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
},
},
};
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
import commonFunctions from "~/mixin/commonFunctions.js";
import Api from "~/service/Api";
export default {
mixins: [commonFunctions],
methods: {
async getOwnref() {
if (this.model.fxdgrp.rec.fxtyp == "") {
this.$notify.warning({
title: "提示",
message: "请先选择结售汇类型!",
});
return;
}
const loading = this.loading();
let res = await Api.post(
`/${this.moduleRouter()}/fxtssb/getRef`,
this.model
);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.model.fxdgrp.rec.ownref = res.data;
},
}
}
}
\ No newline at end of file
async defaultAccountsN1000() {
if (this.model.fxdgrp.rec.fxtyp == "") {
return;
}
if (this.model.fxdgrp.cbs.max.cur == "") {
return;
}
if (this.model.fxdgrp.apl.pts.ptyinr == "") {
return;
}
const loading = this.loading();
let res = await Api.post(
`/${this.moduleRouter()}/fxtssb/defaultAccountsN1000`,
this.model
);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
// this.updateValueSet(res.codeSet);
this.accLst = res.codeSet["accLst"];
this.accLst2 = res.codeSet["acc2Lst"];
this.model.fxdgrp.rec.acc = res.data.fxdgrp.rec.acc;
this.model.fxdgrp.rec.acc2 = res.data.fxdgrp.rec.acc2;
},
async defaultRateN1000() {
if (this.model.fxdgrp.rec.fxtyp == "") {
return;
}
if (this.model.fxdgrp.cbs.max.cur == "") {
return;
}
if (this.model.fxdgrp.apl.pts.ptyinr == "") {
return;
}
const loading = this.loading();
let res = await Api.post(
`/${this.moduleRouter()}/fxtssb/defaultRateN1000`,
this.model
);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.model.fxdgrp.rec.rat = res.data.fxdgrp.rec.rat;
this.model.fxdgrp.rec.midrat = res.data.fxdgrp.rec.midrat;
},
async defaultAccAndRate() {
this.defaultAccountsN1000();
await this.defaultRateN1000();
this.defaultCalculateN1100();
},
async defaultCalculateN1100() {
if (this.model.fxdgrp.rec.rat == "") {
return;
}
if (this.model.fxdgrp.cbs.max.cur == "") {
return;
}
if (
this.model.fxdgrp.cbs.max.amt == "" ||
this.model.fxdgrp.cbs.max.amt == 0
) {
this.model.fxdgrp.cbs.nom1.amt = "0.00";
return;
}
const loading = this.loading();
let res = await Api.post(
`/${this.moduleRouter()}/fxtssb/defaultCalculateN1100`,
this.model
);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.model.fxdgrp.cbs.max.amt = res.data.fxdgrp.cbs.max.amt;
this.model.fxdgrp.cbs.nom1.amt = res.data.fxdgrp.cbs.nom1.amt;
},
},
};
export default {
"fxtp.fxdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
import JshmodCheck from "~/components/business/jshmod/model/check";
"fxtp.fxdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fxtp.fxdgrp.apl.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fxtp.usrget.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fxtp.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fxtp.aplp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp.aplp.ptspta.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp.aplp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fxtp.aplp.ptspta.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fxtp.aplp.ptspta.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fxtp.fxdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxtp.fxdgrp.cbs.nom1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxtp.fxdgrp.rec.rat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxtp.fxdgrp.rec.quoref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp.fxdgrp.rec.midrat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxtp.fxdgrp.rec.fudref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp.fxdgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.setdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.setdatto":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.setdatfrm":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.blk.remark":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ No newline at end of file
export default function () {
return {
...new JshmodCheck(this).check,
"fxdgrp.rec.ownref": [
{ type: "string", required: true, message: "必输项" },
{ max: 16, message: "长度不能超过16" },
],
"fxdgrp.rec.nam": [
{ type: "string", required: false, message: "必输项" },
{ max: 40, message: "长度不能超过40" },
],
"fxdgrp.apl.pts.ref": [
{ type: "string", required: false, message: "必输项" },
{ max: 20, message: "长度不能超过20" },
],
"fxdgrp.rec.usr": [
{ type: "string", required: false, message: "必输项" },
{ max: 8, message: "长度不能超过8" },
],
"fxdgrp.apl.pts.extkey": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" },
],
"fxdgrp.apl.pts.adrblk": [
{ type: "string", required: true, message: "必输项" },
{ max: 140, message: "长度不能超过140" },
],
"fxdgrp.cbs.max.cur": [
{ type: "string", required: true, message: "必输项" },
{ max: 3, message: "3" },
],
"fxdgrp.cbs.max.amt": [
{ type: "string", required: true, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{
pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/,
message: "小数位不能超过3位",
},
],
"fxdgrp.cbs.nom1.amt": [
{ type: "string", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{
pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/,
message: "小数位不能超过3位",
},
],
"fxdgrp.rec.quoref": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" },
],
"fxdgrp.rec.fudref": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" },
],
"fxdgrp.rec.opndat": [{ required: true, message: "输入正确的日期" }],
"fxdgrp.rec.valdat": [{ required: true, message: "输入正确的日期" }],
"fxdgrp.rec.setdat": [{ required: false, message: "输入正确的日期" }],
"fxdgrp.rec.setdatto": [{ required: false, message: "输入正确的日期" }],
"fxdgrp.rec.setdatfrm": [{ required: false, message: "输入正确的日期" }],
"fxdgrp.blk.remark": [
{ type: "string", required: false, message: "必输项" },
{ max: 35, message: "长度不能超过35" },
],
"fxdgrp.rec.dsp": [
{ type: "string", required: true, message: "必输项" },
{ max: 2, message: "长度不能超过2" },
],
"fxdgrp.rec.dsp2": [
{ type: "string", required: true, message: "必输项" },
{ max: 2, message: "长度不能超过2" },
],
"fxdgrp.rec.acc": [
{ type: "string", required: true, message: "必输项" },
{ max: 21, message: "长度不能超过21" },
],
"fxdgrp.rec.acc2": [
{ type: "string", required: true, message: "必输项" },
{ max: 21, message: "长度不能超过21" },
],
"fxdgrp.rec.trnman": [
{ type: "string", required: true, message: "必输项" },
{ max: 2, message: "长度不能超过2" },
],
"fxdgrp.rec.trdint": [
{ type: "string", required: true, message: "必输项" },
{ max: 3, message: "长度不能超过3" },
],
};
}
import Api from "~/service/Api"
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 Fxtssb {
constructor() {
this.data = {
fxtp: {
fxdgrp: {
rec: {
ownref: "", // 结售汇业务参考号 .fxtp.fxdgrp.rec.ownref
nam: "", // 名称 .fxtp.fxdgrp.rec.nam
fxtyp: "", // 结售汇类型 .fxtp.fxdgrp.rec.fxtyp
opndat: "", // 登记日期 .fxtp.fxdgrp.rec.opndat
valdat: "", // 起息日 .fxtp.fxdgrp.rec.valdat
rat: "", // 对外牌价 .fxtp.fxdgrp.rec.rat
midrat: "", // 中间价 .fxtp.fxdgrp.rec.midrat
quoref: "", // 询价编号 .fxtp.fxdgrp.rec.quoref
fudref: "", // 资金部编号 .fxtp.fxdgrp.rec.fudref
setdat: "", // 远期交割日 .fxtp.fxdgrp.rec.setdat
setdatfrm: "", // 择期交割起始日 .fxtp.fxdgrp.rec.setdatfrm
setdatto: "", // 择期交割截止日 .fxtp.fxdgrp.rec.setdatto
trnman: "", // 交易主体 .fxtp.fxdgrp.rec.trnman
trdint: "", // 结售汇类型 .fxtp.fxdgrp.rec.trdint
trdout: "", // 结售汇类型 .fxtp.fxdgrp.rec.trdout
acc: "", // 外币结算账号 .fxtp.fxdgrp.rec.acc
acc2: "", // 本币结算账号 .fxtp.fxdgrp.rec.acc2
dsp: "", // 外币结算账号 .fxtp.fxdgrp.rec.dsp
dsp2: "", // 本币结算账号 .fxtp.fxdgrp.rec.dsp2
},
cbs: {
max: {
cur: "", // Currency .fxtp.fxdgrp.cbs.max.cur
amt: "", // Balance .fxtp.fxdgrp.cbs.max.amt
},
nom1: {
cur: "", // Currency .fxtp.fxdgrp.cbs.nom1.cur
amt: "", // Balance .fxtp.fxdgrp.cbs.nom1.amt
},
},
apl: {
pts: new Pts().data,
},
blk: {
remark: "", // 备注 .fxtp.fxdgrp.blk.remark
},
},
amtlab: "", // Amount Label .fxtp.amtlab
cnylab: "", // Amount LabelCNY .fxtp.cnylab
frgchk: "", // 外币 .fxtp.frgchk
cnychk: "", // 人民币 .fxtp.cnychk
aplp: {
ptspta: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .fxtp.aplp.ptspta.dbfadrblkcn
},
ptsget: {
sdamod: {
seainf: "", // .fxtp.aplp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .fxtp.aplp.ptsget.sdamod.dadsnd
constructor() {
this.data = {
fxtp: {
amtlab: "", // Amount Label .fxtp.amtlab
cnylab: "", // Amount LabelCNY .fxtp.cnylab
frgchk: "", // 外币 .fxtp.frgchk
cnychk: "", // 人民币 .fxtp.cnychk
cshflg: "", // 钞汇标志 .fxtp.cshflg
},
},
},
cshflg: "", // 钞汇标志 .fxtp.cshflg
usrget: {
sdamod: {
seainf: "", // .fxtp.usrget.sdamod.seainf
},
usr: {
extkey: "", // User ID .fxtp.usrget.usr.extkey
},
},
},
fxdgrp: {
apl: {
pts: new Pts().data,
},
},
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia,
fxdgrp: new Fxdgrp().data,
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia,
jshmod: new Pub().data.Jshmod,
}
}
}
}
\ No newline at end of file
<template>
<div class="eContainer">
<c-page title="即期结汇">
<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">
<el-form
:model="model"
:rules="rawRules"
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"
>
<el-tab-pane label="概要" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
......@@ -14,9 +26,14 @@
<m-setpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="报文/面函" name="docpan">
<!-- <el-tab-pane label="报文/面函" name="docpan">-->
<!-- <c-content>-->
<!-- <m-docpan :codes="codes" :model="model" />-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
<el-tab-pane label="结售汇申报" name="jshmod">
<c-content>
<m-docpan :codes="codes" :model="model" />
<m-jshmod :codes="codes" :model="model" ref="jshmod" />
</c-content>
</el-tab-pane>
</c-tabs>
......@@ -32,10 +49,9 @@
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fxtssb from "../model"
import Ovwp from "./Ovwp"
import CodeTable from "~/config/CodeTable";
import Fxtssb from "../model";
import Ovwp from "./Ovwp";
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
......@@ -44,33 +60,41 @@ import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import buildFn from "../event/buildCommons.js";
import Check from "../model/Check.js";
import Jshmod from "~/components/business/jshmod/views/index";
export default {
name: "Fxtssb",
components: {
"m-ovwp": Ovwp,
"m-setpan": Setpan,
"m-docpan": Docpan,
"m-jshmod": Jshmod,
},
provide() {
return {
root: this
}
root: this,
};
},
mixins: [operationFunc, commonDepend, event, buildFn],
computed: {
rawRules() {
return { ...this.rules, ...Check.apply(this) };
},
},
data() {
return {
tabVal: "ovwp",
trnName: "fxtssb",
trnType: "",
model: new Fxtssb().data,
rules: Check,
rules: { },
codes: { ...CodeTable },
}
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
}
this.tabClick(tab);
},
},
created: async function () {
console.log("进入fxtssb交易");
......@@ -82,8 +106,8 @@ export default {
},
},
};
this.init(params)
}
}
this.init(params);
},
};
</script>
<style></style>
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,
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,
};
},
cbsMap: {
MAX: model.fxtp.fxdgrp.cbs.max,
NOM1: model.fxtp.fxdgrp.cbs.nom1,
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,
fxtyp: model.fxdgrp.rec.fxtyp,
acc: model.fxdgrp.rec.acc,
acc2: model.fxdgrp.rec.acc2,
dsp: model.fxdgrp.rec.dsp,
dsp2: model.fxdgrp.rec.dsp2,
trdint: model.fxdgrp.rec.trdint,
trdout: model.fxdgrp.rec.trdout,
trnman: model.fxdgrp.rec.trnman,
rat: model.fxdgrp.rec.rat,
},
cbsMap: {
MAX: model.fxdgrp.cbs.max,
NOM1: model.fxdgrp.cbs.nom1,
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
},
},
};
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
import commonFunctions from "~/mixin/commonFunctions.js";
import Api from "~/service/Api";
export default {
mixins: [commonFunctions],
methods: {
async getOwnref(){
mixins: [commonFunctions],
methods: {
async getOwnref() {
if (this.model.fxdgrp.rec.fxtyp == "") {
this.$notify.warning({
title: "提示",
message: "请先选择结售汇类型!",
});
return;
}
const loading = this.loading();
let res = await Api.post(
`/${this.moduleRouter()}/fxtsss/getRef`,
this.model
);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.model.fxdgrp.rec.ownref = res.data;
},
}
}
}
\ No newline at end of file
async defaultAccountsN1000() {
if (this.model.fxdgrp.rec.fxtyp == "") {
return;
}
if (this.model.fxdgrp.cbs.max.cur == "") {
return;
}
if (this.model.fxdgrp.apl.pts.ptyinr == "") {
return;
}
const loading = this.loading();
let res = await Api.post(
`/${this.moduleRouter()}/fxtsss/defaultAccountsN1000`,
this.model
);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
// this.updateValueSet(res.codeSet);
this.accLst = res.codeSet["accLst"];
this.accLst2 = res.codeSet["acc2Lst"];
this.model.fxdgrp.rec.acc = res.data.fxdgrp.rec.acc;
this.model.fxdgrp.rec.acc2 = res.data.fxdgrp.rec.acc2;
},
async defaultRateN1000() {
if (this.model.fxdgrp.rec.fxtyp == "") {
return;
}
if (this.model.fxdgrp.cbs.max.cur == "") {
return;
}
if (this.model.fxdgrp.apl.pts.ptyinr == "") {
return;
}
const loading = this.loading();
let res = await Api.post(
`/${this.moduleRouter()}/fxtsss/defaultRateN1000`,
this.model
);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.model.fxdgrp.rec.rat = res.data.fxdgrp.rec.rat;
this.model.fxdgrp.rec.midrat = res.data.fxdgrp.rec.midrat;
},
async defaultAccAndRate() {
this.defaultAccountsN1000();
await this.defaultRateN1000();
this.defaultCalculateN1100();
},
async defaultCalculateN1100() {
if (this.model.fxdgrp.rec.rat == "") {
return;
}
if (this.model.fxdgrp.cbs.max.cur == "") {
return;
}
if (
this.model.fxdgrp.cbs.max.amt == "" ||
this.model.fxdgrp.cbs.max.amt == 0
) {
this.model.fxdgrp.cbs.nom1.amt = "0.00";
return;
}
const loading = this.loading();
let res = await Api.post(
`/${this.moduleRouter()}/fxtsss/defaultCalculateN1100`,
this.model
);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.model.fxdgrp.cbs.max.amt = res.data.fxdgrp.cbs.max.amt;
this.model.fxdgrp.cbs.nom1.amt = res.data.fxdgrp.cbs.nom1.amt;
},
},
};
export default {
"fxtp.fxdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
import JshmodCheck from "~/components/business/jshmod/model/check";
"fxtp.fxdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fxtp.fxdgrp.apl.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fxtp.usrget.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fxtp.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fxtp.aplp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp.aplp.ptspta.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp.aplp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fxtp.aplp.ptspta.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fxtp.aplp.ptspta.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fxtp.fxdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxtp.fxdgrp.cbs.nom1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxtp.fxdgrp.rec.rat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxtp.fxdgrp.rec.quoref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp.fxdgrp.rec.midrat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxtp.fxdgrp.rec.fudref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp.fxdgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.setdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.setdatto":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.setdatfrm":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.blk.remark":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ No newline at end of file
export default function () {
return {
...new JshmodCheck(this).check,
"fxdgrp.rec.ownref": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" },
],
"fxdgrp.rec.nam": [
{ type: "string", required: false, message: "必输项" },
{ max: 40, message: "长度不能超过40" },
],
"fxdgrp.apl.pts.ref": [
{ type: "string", required: false, message: "必输项" },
{ max: 20, message: "长度不能超过20" },
],
"fxdgrp.rec.usr": [
{ type: "string", required: false, message: "必输项" },
{ max: 8, message: "长度不能超过8" },
],
"fxdgrp.apl.pts.extkey": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" },
],
"fxdgrp.apl.pts.adrblk": [
{ type: "string", required: true, message: "必输项" },
{ max: 140, message: "长度不能超过140" },
],
"fxdgrp.cbs.max.cur": [
{ type: "string", required: true, message: "必输项" },
{ max: 3, message: "3" },
],
"fxdgrp.cbs.max.amt": [
{ type: "string", required: true, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{
pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/,
message: "小数位不能超过3位",
},
],
"fxdgrp.cbs.nom1.amt": [
{ type: "string", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{
pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/,
message: "小数位不能超过3位",
},
],
"fxdgrp.rec.quoref": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" },
],
"fxdgrp.rec.fudref": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" },
],
"fxdgrp.rec.opndat": [{ required: true, message: "输入正确的日期" }],
"fxdgrp.rec.valdat": [{ required: true, message: "输入正确的日期" }],
"fxdgrp.rec.setdat": [{ required: false, message: "输入正确的日期" }],
"fxdgrp.rec.setdatto": [{ required: false, message: "输入正确的日期" }],
"fxdgrp.rec.setdatfrm": [{ required: false, message: "输入正确的日期" }],
"fxdgrp.blk.remark": [
{ type: "string", required: false, message: "必输项" },
{ max: 35, message: "长度不能超过35" },
],
"fxdgrp.rec.dsp": [
{ type: "string", required: true, message: "必输项" },
{ max: 2, message: "长度不能超过2" },
],
"fxdgrp.rec.dsp2": [
{ type: "string", required: true, message: "必输项" },
{ max: 2, message: "长度不能超过2" },
],
"fxdgrp.rec.acc": [
{ type: "string", required: true, message: "必输项" },
{ max: 21, message: "长度不能超过21" },
],
"fxdgrp.rec.acc2": [
{ type: "string", required: true, message: "必输项" },
{ max: 21, message: "长度不能超过21" },
],
"fxdgrp.rec.trnman": [
{ type: "string", required: true, message: "必输项" },
{ max: 2, message: "长度不能超过2" },
],
"fxdgrp.rec.trdout": [
{ type: "string", required: true, message: "必输项" },
{ max: 3, message: "长度不能超过3" },
],
};
}
import Api from "~/service/Api"
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 Fxtsss {
constructor() {
this.data = {
fxtp: {
fxdgrp: {
rec: {
ownref: "", // 结售汇业务参考号 .fxtp.fxdgrp.rec.ownref
nam: "", // 名称 .fxtp.fxdgrp.rec.nam
fxtyp: "", // 结售汇类型 .fxtp.fxdgrp.rec.fxtyp
opndat: "", // 登记日期 .fxtp.fxdgrp.rec.opndat
valdat: "", // 起息日 .fxtp.fxdgrp.rec.valdat
rat: "", // 对外牌价 .fxtp.fxdgrp.rec.rat
midrat: "", // 中间价 .fxtp.fxdgrp.rec.midrat
quoref: "", // 询价编号 .fxtp.fxdgrp.rec.quoref
fudref: "", // 资金部编号 .fxtp.fxdgrp.rec.fudref
setdat: "", // 远期交割日 .fxtp.fxdgrp.rec.setdat
setdatfrm: "", // 择期交割起始日 .fxtp.fxdgrp.rec.setdatfrm
setdatto: "", // 择期交割截止日 .fxtp.fxdgrp.rec.setdatto
trnman: "", // 交易主体 .fxtp.fxdgrp.rec.trnman
trdint: "", // 结售汇类型 .fxtp.fxdgrp.rec.trdint
trdout: "", // 结售汇类型 .fxtp.fxdgrp.rec.trdout
acc: "", // 外币结算账号 .fxtp.fxdgrp.rec.acc
acc2: "", // 本币结算账号 .fxtp.fxdgrp.rec.acc2
dsp: "", // 外币结算账号 .fxtp.fxdgrp.rec.dsp
dsp2: "", // 本币结算账号 .fxtp.fxdgrp.rec.dsp2
},
cbs: {
max: {
cur: "", // Currency .fxtp.fxdgrp.cbs.max.cur
amt: "", // Balance .fxtp.fxdgrp.cbs.max.amt
constructor() {
this.data = {
fxtp: {
amtlab: "", // Amount Label .fxtp.amtlab
cnylab: "", // Amount LabelCNY .fxtp.cnylab
frgchk: "", // 外币 .fxtp.frgchk
cnychk: "", // 人民币 .fxtp.cnychk
cshflg: "", // 钞汇标志 .fxtp.cshflg
},
nom1: {
cur: "", // Currency .fxtp.fxdgrp.cbs.nom1.cur
amt: "", // Balance .fxtp.fxdgrp.cbs.nom1.amt
},
},
apl: {
pts: new Pts().data,
},
blk: {
remark: "", // 备注 .fxtp.fxdgrp.blk.remark
},
},
amtlab: "", // Amount Label .fxtp.amtlab
cnylab: "", // Amount LabelCNY .fxtp.cnylab
frgchk: "", // 外币 .fxtp.frgchk
cnychk: "", // 人民币 .fxtp.cnychk
aplp: {
ptspta: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .fxtp.aplp.ptspta.dbfadrblkcn
},
ptsget: {
sdamod: {
seainf: "", // .fxtp.aplp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .fxtp.aplp.ptsget.sdamod.dadsnd
},
},
},
cshflg: "", // 钞汇标志 .fxtp.cshflg
usrget: {
sdamod: {
seainf: "", // .fxtp.usrget.sdamod.seainf
},
usr: {
extkey: "", // User ID .fxtp.usrget.usr.extkey
},
},
},
fxdgrp: {
apl: {
pts: new Pts().data,
},
},
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia,
fxdgrp: new Fxdgrp().data,
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia,
jshmod: new Pub().data.Jshmod,
}
}
}
}
\ No newline at end of file
<template>
<div class="eContainer">
<c-page title="即期结汇">
<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">
<el-form
:model="model"
:rules="rawRules"
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"
>
<!--fxtp PD000001 概要 -->
<el-tab-pane :label="$t('fxtp.概要')" name="ovwp">
<c-content>
......@@ -15,9 +27,14 @@
<m-setpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="报文/面函" name="docpan">
<!-- <el-tab-pane label="报文/面函" name="docpan">-->
<!-- <c-content>-->
<!-- <m-docpan :codes="codes" :model="model"/>-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
<el-tab-pane label="结售汇申报" name="jshmod">
<c-content>
<m-docpan :codes="codes" :model="model" />
<m-jshmod :codes="codes" :model="model" ref="jshmod" />
</c-content>
</el-tab-pane>
</c-tabs>
......@@ -33,10 +50,9 @@
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fxtsss from "../model"
import Ovwp from "./Ovwp"
import CodeTable from "~/config/CodeTable";
import Fxtsss from "../model";
import Ovwp from "./Ovwp";
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
......@@ -45,33 +61,41 @@ import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import Check from "../model/Check.js";
import buildFn from "../event/buildCommons.js";
import Jshmod from "~/components/business/jshmod/views/index";
export default {
name: "Fxtsss",
components: {
"m-ovwp": Ovwp,
"m-setpan": Setpan,
"m-docpan": Docpan,
"m-jshmod": Jshmod,
},
provide() {
return {
root: this
}
root: this,
};
},
mixins: [operationFunc, commonDepend, event, buildFn],
computed: {
rawRules() {
return { ...this.rules, ...Check.apply(this) };
},
},
data() {
return {
tabVal: "ovwp",
trnName: "fxtsss",
trnType: "",
model: new Fxtsss().data,
rules: Check,
rules: {},
codes: { ...CodeTable },
}
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
}
this.tabClick(tab);
},
},
created: async function () {
console.log("进入fxtsss交易");
......@@ -83,8 +107,8 @@ export default {
},
},
};
this.init(params)
}
}
this.init(params);
},
};
</script>
<style></style>
......@@ -55,24 +55,9 @@ export default {
this.model.infcon.opndatfrom = new Date();
this.model.infcon.opndatto = new Date();
this.model.infcon.nam = "";
this.model.infcon.ownusr = "";
this.model.infcon.usr = "";
this.model.infcon.bnktyp = "";
this.model.infcon.gzno = "";
this.model.infcon.seacur = "";
this.model.infcon.eaamtfr = "";
this.model.infcon.eaamtto = "";
this.model.infcon.searef = "";
this.model.infcon.ptyextkey = "";
this.model.infcon.ptynam = "";
this.model.infcon.seapty = "";
this.model.infcon.searol = "";
this.model.infcon.usrextkey = "";
this.model.infcon.seasta = "";
this.model.infcon.fttyp = "";
},
// pageSize改变
......@@ -87,17 +72,153 @@ export default {
this.handleSearch();
},
//拆借存放登记及确认
toFttfcm() {
this.routerPush({
path: '/business/fttfcm',
});
},
//头寸调拨登记及确认
toFttpcm() {
this.routerPush({
path: '/business/fttpcm',
});
},
// 详情
async details(row) {
const params = {
ownref: row.ownref,
};
const res = await Api.post('/manager/trn/getTrnListByOwnref', params);
if (res.respCode === SUCCESS) {
if (res.data.length === 1) {
if(this.oldRefId && this.$refs[this.oldRefId]){
this.$refs[this.oldRefId].showPopper = false;
}
this.display(res.data[0])
}else{
this.trnData.data = res.data;
this.oldRefId = 'popover_' + row.inr
this.$refs[this.oldRefId].showPopper = true;
}
}
},
// 关闭详情弹框
closeDetailsDialog(refId) {
if(refId){
this.$refs[refId].showPopper = false;
}
},
// closeDisplayDialog(){
// if(this.oldRefId){
// this.$refs[this.oldRefId].showPopper = false;
// }
// },
// 处理
async handler(row) {
this.handleModel = row;
this.trnUrl = 'funds';
this.inifrm = 'ftdsel';
this.initdialog = true;
},
//双击表格数据
async TableDblRow(row) {
this.handler(row)
},
closeDisplayDialog(){
if(this.oldRefId){
this.$refs[this.oldRefId].showPopper = false;
}
},
//点击处理弹窗中按钮
async handleClick (btn,row) {
let obj = {
objtyp:'FTD',
objinr:row.inr,
pntinr:row.pntinr,
pnttyp:row.pnttyp,
ledinr:row.ledinr,
trnName:btn.code.toLowerCase(),
}
let isPush = await this.$refs.lockAndPending.checkLockAndPending(obj)
if(!isPush){
return
}
let params = {}
if(btn.code.toLowerCase() == 'fttfmt'){
params = {
path: "/business/" + btn.code.toLowerCase(),
}
}else{
params = {
path: "/business/" + btn.code.toLowerCase(),
query: { inr: row.inr,pntinr: row.pntinr }
}
}
this.routerPush(params);
this.initdialog = false;
},
//修改弹窗状态
changeBtn(isVisible){
this.initdialog = isVisible;
},
// 关闭处理弹框
closeHandlerDialog() {
this.initdialog = false;
},
/**
* 打开快照页面
* @param {string} inr
*/
display(row) {
if(this.oldRefId){
this.$refs[this.oldRefId].showPopper = true;
}
// 历史快照
if (row.inr.length == 8) {
this.routerPush({
path: '/business/HistoryRecord',
query: {
businessInr: row.inr,
businessType: 'TRN',
type:'view'
}
})
} else if (row.inr.length == 4) {//TODO:修改为16
this.routerPush({
path: `/display/fttfcm`,//${row.inifrm.toLowerCase()},fttpcm
query: {
businessInr: row.inr,
businessType: 'TRN'
}
});
}
},
changeOwnref(){
if(this.model.infcon.seaownref){
this.model.infcon.opndatfrom = null
}
},
//Info
toInfo(row,objtyp,subobjtyp,paytyp){
this.routerPush({
path: "/business/fttpcm",
query: { inr: row.inr,objtyp:objtyp,pntinr:row.pntinr,subobjtyp:subobjtyp,paytyp:paytyp}
});
},
async getdbCode(codeType, uil, codeNam) {
let params = {
codeType: codeType,
uil: uil ? uil : 'EN'
}
let rtnmsg = await Api.post("/manager/dic/listDicInfo", params)
if (rtnmsg.respCode === SUCCESS) {
let curList = rtnmsg.data.map(item => ({
value: item.codeValue,
label: item.codeName
}));
this.model.dbCodes[codeNam] = curList
}
},
getCodelabel(value,codenam) {
const codeobj = this.model.dbCodes[codenam].find(obj => obj.value === value)
return codeobj ? codeobj.label : value;
},
},
};
};
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
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