Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
isc-web-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
isc-v3.1-tmp
isc-web-vue
Commits
9115ae45
Commit
9115ae45
authored
Oct 17, 2024
by
jianglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增fxtfcn交易
parent
cecb4f90
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
267 additions
and
284 deletions
+267
-284
buildCommons.js
src/page/Funds/Fxtfcn/event/buildCommons.js
+45
-0
index.js
src/page/Funds/Fxtfcn/event/index.js
+12
-0
Check.js
src/page/Funds/Fxtfcn/model/Check.js
+8
-23
index.js
src/page/Funds/Fxtfcn/model/index.js
+27
-63
Canp.vue
src/page/Funds/Fxtfcn/views/Canp.vue
+125
-179
index.vue
src/page/Funds/Fxtfcn/views/index.vue
+50
-19
No files found.
src/page/Funds/Fxtfcn/event/buildCommons.js
0 → 100644
View file @
9115ae45
import
Utils
from
"~/utils"
;
export
default
{
methods
:
{
buildPtspta
(
ptsptaObj
)
{
let
pts
=
ptsptaObj
.
pts
;
return
{
rol
:
pts
.
rol
,
name
:
pts
.
nam
,
ptyinr
:
pts
.
ptyinr
,
ptainr
:
pts
.
ptainr
,
extkey
:
pts
.
extkey
,
dftdsp
:
pts
.
dftdsp
,
dftcur
:
pts
.
dftcur
,
dftact
:
pts
.
dftact
,
dftfeecur
:
pts
.
dftfeecur
,
dftactptainr
:
pts
.
dftactptainr
,
glggrpflg
:
pts
.
glggrpflg
,
adrblk
:
pts
.
adrblk
,
pts
,
};
},
buildCommonData
(
model
,
trnName
)
{
let
ptsptaList
=
Utils
.
formatPtspta
(
model
.
fxdgrp
,
this
.
buildPtspta
);
return
{
rec
:
{
objtyp
:
"FXD"
,
objinr
:
model
.
fxdgrp
.
rec
.
inr
,
ownref
:
model
.
fxdgrp
.
rec
.
ownref
,
fxtyp
:
model
.
fxdgrp
.
rec
.
fxtyp
,
swtflg
:
model
.
swtflg
,
cancur
:
model
.
cancur
,
canamt
:
model
.
canamt
,
},
cbsMap
:
{
MAX
:
model
.
fxdgrp
.
cbs
.
max
,
NOM1
:
model
.
fxdgrp
.
cbs
.
nom1
,
},
ptsList
:
ptsptaList
,
transName
:
trnName
,
userId
:
window
.
sessionStorage
.
userId
?
window
.
sessionStorage
.
userId
:
"ZL"
,
};
},
},
};
src/page/Funds/Fxtfcn/event/index.js
0 → 100644
View file @
9115ae45
import
commonFunctions
from
'~/mixin/commonFunctions.js'
;
import
Api
from
'~/service/Api'
;
export
default
{
mixins
:
[
commonFunctions
],
methods
:
{
async
getOwnref
()
{
}
}
}
\ No newline at end of file
src/page/Funds/Fxtfcn/model/Check.js
View file @
9115ae45
import
Utils
from
"~/utils"
/**
* Fxtfcn Check规则
*/
let
checkObj
=
{
"canamt"
:
null
,
"fxdgrp.apl.pts.adrblk"
:
null
,
"fxtp.usr.extkey"
:
null
,
"fxdgrp.cbs.opn2.amt"
:
null
,
"fxdgrp.act.pts.adrblk"
:
null
,
"fxdgrp.act.pts.extkey"
:
null
,
"fxdgrp.rec.ownref"
:
null
,
"fxdgrp.apl.pts.extkey"
:
null
,
"mtabut.clsflg"
:
null
,
}
for
(
const
key
in
checkObj
)
{
if
(
Object
.
hasOwnProperty
.
call
(
checkObj
,
key
))
{
checkObj
[
key
]
=
checkObj
[
key
]
?
checkObj
[
key
]
:
Utils
.
reflectCheck
(
key
)
}
}
export
default
checkObj
export
default
{
"fxtfcn.canamt"
:[
{
type
:
"number"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
}
\ No newline at end of file
src/page/Funds/Fxtfcn/model/index.js
View file @
9115ae45
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
Fxtfcn
{
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
},
apl
:{
pts
:
new
Pts
().
data
,
dbfadrblkcn
:
""
,
// Chinese address .fxdgrp.apl.dbfadrblkcn
},
blk
:{
remark
:
""
,
// 备注 .fxdgrp.blk.remark
},
cbs
:{
opn2
:{
cur
:
""
,
// Orig.Amount .fxdgrp.cbs.opn2.cur
amt
:
""
,
// Balance .fxdgrp.cbs.opn2.amt
},
nom1
:{
amt
:
""
,
// Balance .fxdgrp.cbs.nom1.amt
cur
:
""
,
// 待销账金额 .fxdgrp.cbs.nom1.cur
},
},
act
:{
pts
:
new
Pts
().
data
,
dbfadrblkcn
:
""
,
// Chinese address .fxdgrp.act.dbfadrblkcn
},
},
fxtp
:{
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
},
actp
:{
ptsget
:{
sdamod
:{
seainf
:
""
,
// .fxtp.actp.ptsget.sdamod.seainf
dadsnd
:
""
,
// Drag Drop Sender .fxtp.actp.ptsget.sdamod.dadsnd
},
},
},
},
mtabut
:{
clsflg
:
""
,
// Close Flag .mtabut.clsflg
},
canamt
:
""
,
// Cancel Amount .canamt
cancur
:
""
,
// 实际销账金额 .cancur
pageId
:
""
// ctx的key
}
fxdgrp
:
new
Fxdgrp
().
data
,
fxtp
:{
frgchk
:
"X"
},
cancur
:
""
,
canamt
:
0
,
oldactinr
:
""
,
relcur
:
""
,
relamt
:
0
,
f21
:
""
,
acc2
:
""
,
// APLACC's Account .acc2
acc1
:
""
,
cancuruse
:
""
,
canamtuse
:
0
,
aplacc
:{
pts
:
new
Pts
().
data
,
},
setmod
:
new
Pub
().
data
.
Setmod
,
docpan
:
new
Pub
().
data
.
Docpan
,
trndia
:
new
Pub
().
data
.
Trndia
,
}
}
}
\ No newline at end of file
src/page/Funds/Fxtfcn/views/Canp.vue
View file @
9115ae45
<
template
>
<div
class=
"eibs-tab"
>
<!-- S0000002 : 平盘业务参考号 -->
<c-col
:span=
"12"
>
<c-form-item
:label=
"$t('fxtfcn.S0000002')"
prop=
"fxdgrp.rec.ownref"
>
<c-input
v-model=
"model.fxdgrp.rec.ownref"
maxlength=
"16"
:placeholder=
"$t('other.please_enter')+$t('fxtfcn.S0000002')"
></c-input>
</c-form-item>
</c-col>
<!-- S0000003 : 名称 -->
<c-col
:span=
"12"
>
<c-form-item
:label=
"$t('fxtfcn.S0000003')"
prop=
"fxdgrp.rec.nam"
>
<c-input
v-model=
"model.fxdgrp.rec.nam"
maxlength=
"40"
:placeholder=
"$t('other.please_enter')+$t('fxtfcn.S0000003')"
></c-input>
</c-form-item>
</c-col>
<!-- S0000006 : 平盘对手 -->
<c-col
:span=
"12"
>
<c-form-item
:label=
"$t('fxtfcn.S0000006')"
prop=
"fxdgrp.apl.pts.ref"
>
<c-input
v-model=
"model.fxdgrp.apl.pts.ref"
maxlength=
"20"
:placeholder=
"$t('other.please_enter')+$t('fxtfcn.S0000006')"
></c-input>
</c-form-item>
</c-col>
<!-- S0000004 : 资金部负责人 -->
<c-col
:span=
"12"
>
<c-form-item
:label=
"$t('fxtfcn.S0000004')"
prop=
"fxtp.usr.extkey"
>
<c-input
v-model=
"model.fxtp.usr.extkey"
maxlength=
"8"
:placeholder=
"$t('other.please_enter')+$t('fxtfcn.S0000004')"
></c-input>
</c-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-form-item
label=
""
prop=
"fxtp.usrget.sdamod.seainf"
>
<c-input
v-model=
"model.fxtp.usrget.sdamod.seainf"
:placeholder=
"$t('other.please_enter')+''"
></c-input>
</c-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-form-item
label=
"Drag Drop Sender"
prop=
"fxtp.aplp.ptsget.sdamod.dadsnd"
>
<c-input
v-model=
"model.fxtp.aplp.ptsget.sdamod.dadsnd"
:placeholder=
"$t('other.please_enter')+'Drag Drop Sender'"
></c-input>
</c-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-form-item
label=
"External Key of Address"
prop=
"fxdgrp.apl.pts.extkey"
>
<c-input
v-model=
"model.fxdgrp.apl.pts.extkey"
maxlength=
"16"
:placeholder=
"$t('other.please_enter')+'External Key of Address'"
></c-input>
</c-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-form-item
label=
""
prop=
"fxtp.aplp.ptsget.sdamod.seainf"
>
<c-input
v-model=
"model.fxtp.aplp.ptsget.sdamod.seainf"
:placeholder=
"$t('other.please_enter')+''"
></c-input>
</c-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-button
size=
"small"
type=
"primary"
@
click=
"onAplpDet"
>
{{
$t
(
'ptsp.CF000081'
)
}}
</c-button>
</c-col>
<!-- S0000005 : 平盘类型 -->
<c-col
:span=
"12"
>
<el-form-item
:label=
"$t('fxtfcn.S0000005')"
prop=
"fxdgrp.rec.fxtyp"
>
<c-select
v-model=
"model.fxdgrp.rec.fxtyp"
style=
"width:100%"
:placeholder=
"$t('other.please_enter')+$t('fxtfcn.S0000005')"
>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-form-item
label=
"Address Block"
prop=
"fxdgrp.apl.pts.adrblk"
>
<c-input
type=
"textarea"
v-model=
"model.fxdgrp.apl.pts.adrblk"
maxlength=
"35"
show-word-limit
:placeholder=
"$t('other.please_enter')+'Address Block'"
></c-input>
</c-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-form-item
label=
"Chinese address"
prop=
"fxdgrp.apl.dbfadrblkcn"
>
<c-input
type=
"textarea"
v-model=
"model.fxdgrp.apl.dbfadrblkcn"
maxlength=
"35"
show-word-limit
:placeholder=
"$t('other.please_enter')+'Chinese address'"
></c-input>
</c-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-form-item
:label=
"$t('fxtfcn.S0000015')"
prop=
"fxdgrp.cbs.nom1.cur"
>
<c-input
v-model=
"model.fxdgrp.cbs.nom1.cur"
maxlength=
"3"
:placeholder=
"$t('other.please_enter')+$t('fxtfcn.S0000015')"
></c-input>
</c-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-form-item
label=
"Balance"
prop=
"fxdgrp.cbs.nom1.amt"
>
<c-input
v-model=
"model.fxdgrp.cbs.nom1.amt"
:placeholder=
"$t('other.please_enter')+'Balance'"
></c-input>
</c-form-item>
</c-col>
<!-- S0000015 : 待销账金额 -->
<!-- S0000017 : 实际销账金额 -->
<c-col
:span=
"12"
>
<c-form-item
:label=
"$t('fxtfcn.S0000017')"
prop=
"cancur"
>
<c-input
v-model=
"model.cancur"
maxlength=
"3"
:placeholder=
"$t('other.please_enter')+$t('fxtfcn.S0000017')"
></c-input>
</c-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-form-item
label=
"Cancel Amount"
prop=
"canamt"
>
<c-input
v-model=
"model.canamt"
:placeholder=
"$t('other.please_enter')+'Cancel Amount'"
></c-input>
</c-form-item>
</c-col>
<!-- S0000007 : 平盘日期 -->
<c-col
:span=
"12"
>
<el-form-item
:label=
"$t('fxtfcn.S0000007')"
prop=
"fxdgrp.rec.opndat"
>
<c-date-picker
type=
"date"
v-model=
"model.fxdgrp.rec.opndat"
style=
"width:100%"
:placeholder=
"$t('other.please_enter')+$t('fxtfcn.S0000007')"
></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000018 : Account Bank -->
<c-col
:span=
"12"
>
<c-form-item
label=
"Drag Drop Sender"
prop=
"fxtp.actp.ptsget.sdamod.dadsnd"
>
<c-input
v-model=
"model.fxtp.actp.ptsget.sdamod.dadsnd"
:placeholder=
"$t('other.please_enter')+'Drag Drop Sender'"
></c-input>
</c-form-item>
</c-col>
<!-- S0000008 : 起息日 -->
<c-col
:span=
"12"
>
<el-form-item
:label=
"$t('fxtfcn.S0000008')"
prop=
"fxdgrp.rec.valdat"
>
<c-date-picker
type=
"date"
v-model=
"model.fxdgrp.rec.valdat"
style=
"width:100%"
:placeholder=
"$t('other.please_enter')+$t('fxtfcn.S0000008')"
></c-date-picker>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-form-item
label=
"External Key of Address"
prop=
"fxdgrp.act.pts.extkey"
>
<c-input
v-model=
"model.fxdgrp.act.pts.extkey"
maxlength=
"16"
:placeholder=
"$t('other.please_enter')+'External Key of Address'"
></c-input>
</c-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-form-item
label=
""
prop=
"fxtp.actp.ptsget.sdamod.seainf"
>
<c-input
v-model=
"model.fxtp.actp.ptsget.sdamod.seainf"
:placeholder=
"$t('other.please_enter')+''"
></c-input>
</c-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-button
size=
"small"
type=
"primary"
@
click=
"onActpDet"
>
{{
$t
(
'ptsp.CF000081'
)
}}
</c-button>
</c-col>
<c-col
:span=
"12"
>
<c-form-item
label=
"Address Block"
prop=
"fxdgrp.act.pts.adrblk"
>
<c-input
type=
"textarea"
v-model=
"model.fxdgrp.act.pts.adrblk"
maxlength=
"35"
show-word-limit
:placeholder=
"$t('other.please_enter')+'Address Block'"
></c-input>
</c-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-form-item
label=
"Chinese address"
prop=
"fxdgrp.act.dbfadrblkcn"
>
<c-input
type=
"textarea"
v-model=
"model.fxdgrp.act.dbfadrblkcn"
maxlength=
"35"
show-word-limit
:placeholder=
"$t('other.please_enter')+'Chinese address'"
></c-input>
</c-form-item>
<c-col
:span=
"24"
>
<!-- ==================左边================ -->
<c-col
:span=
"12"
style=
"padding-right: 20px"
>
<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>
</c-fullbox>
</c-form-item>
</c-col>
<c-col
:span=
"24"
>
<c-form-item
label=
"经办人"
prop=
"fxdgrp.rec.usr"
>
<c-fullbox>
<c-input
disabled
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
disabled
v-model=
"model.fxdgrp.rec.fxtyp"
style=
"width:100%"
:code=
"codes.fxt_fxtyp"
:filterKey=
"['FS', 'FB']"
>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<el-form-item
label=
"待销账金额"
prop=
"fxdgrp.cbs.nom1.cur"
>
<c-select-cur
disabled
v-model=
"model.fxdgrp.cbs.nom1.cur"
style=
"width: 100%"
dbCode=
"curtxt"
>
</c-select-cur>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label-width=
"5px"
prop=
"fxdgrp.cbs.nom1.amt"
>
<c-input-currency
disabled
:currency=
"model.fxdgrp.cbs.nom1.cur"
v-model=
"model.fxdgrp.cbs.nom1.amt"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<el-form-item
label=
"销账金额"
prop=
"cancur"
>
<c-select-cur
disabled
v-model=
"model.cancur"
style=
"width: 100%"
dbCode=
"curtxt"
>
</c-select-cur>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label-width=
"5px"
prop=
"canamt"
>
<c-input-currency
:currency=
"model.cancur"
v-model=
"model.canamt"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"成交日"
prop=
"fxdgrp.rec.opndat"
>
<c-date-picker
disabled
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
disabled
type=
"date"
v-model=
"model.fxdgrp.rec.valdat"
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
disabled
type=
"textarea"
v-model=
"model.fxdgrp.blk.remark"
maxlength=
"140"
:rows=
"4"
style=
"width:100%"
placeholder=
"请输入备注"
>
</c-input>
</c-form-item>
</c-col>
</c-col>
<!-- S0000009 : 备注 -->
<c-col
:span=
"12"
>
<c-form-item
:label=
"$t('fxtfcn.S0000009')"
prop=
"fxdgrp.blk.remark"
>
<c-input
type=
"textarea"
v-model=
"model.fxdgrp.blk.remark"
maxlength=
"35"
show-word-limit
:placeholder=
"$t('other.please_enter')+$t('fxtfcn.S0000009')"
></c-input>
</c-form-item>
<!-- ==================右边================ -->
<c-col
:span=
"12"
style=
"padding-right: 20px"
>
<c-col
:span=
"24"
>
<c-form-item
label=
"业务名称"
prop=
"fxdgrp.rec.nam"
>
<c-input
v-model=
"model.fxdgrp.rec.nam"
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=
"true"
:disabled=
"true"
:isAdrblk=
"true"
:haveAdrLabel=
"true"
: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-card
class=
"box-card"
>
<c-ptap
:model=
"model"
:requiredExtkey=
"true"
:disabledExtkey=
"true"
:disabled=
"true"
:isAdrblk=
"true"
:haveAdrLabel=
"true"
:isShowCard=
"false"
:argadr=
"{title: '我行账户行', grp: 'fxdgrp', rol: 'act',}"
:label=
"{labelExtkey:'我行账户行',labelNam:'名称',labelAdrblk:'地址',}"
ptytyp=
"B"
>
</c-ptap>
</el-card>
</c-col>
</c-col>
<c-col
:span=
"12"
>
<c-checkbox
v-model=
"model.mtabut.clsflg"
>
{{
$t
(
'mtabut.CF000215'
)
}}
</c-checkbox>
</c-col>
<c-col
:span=
"12"
>
<c-form-item
:label=
"$t('fxtfcn.S0000019')"
prop=
"fxdgrp.cbs.opn2.cur"
>
<c-input
v-model=
"model.fxdgrp.cbs.opn2.cur"
maxlength=
"3"
:placeholder=
"$t('other.please_enter')+$t('fxtfcn.S0000019')"
></c-input>
</c-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-form-item
label=
"Balance"
prop=
"fxdgrp.cbs.opn2.amt"
>
<c-input
v-model=
"model.fxdgrp.cbs.opn2.amt"
:placeholder=
"$t('other.please_enter')+'Balance'"
></c-input>
</c-form-item>
</c-col>
<!-- S0000019 : Orig.Amount -->
</c-col>
</div>
</template>
<
script
>
<
script
>
import
Api
from
"~/service/Api"
import
commonProcess
from
"~/mixin/commonProcess"
;
import
CodeTable
from
"~/config/CodeTable"
...
...
@@ -190,7 +136,7 @@ import Event from "../model/Event"
export
default
{
inject
:
[
'root'
],
props
:[
"model"
,
"codes"
],
mixins
:
[
commonProcess
],
mixins
:
[
Event
,
commonProcess
],
data
(){
return
{
...
...
src/page/Funds/Fxtfcn/views/index.vue
View file @
9115ae45
<
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"
>
<!--fxtfcn PD000001 Cancellation -->
<el-tab-pane
:label=
"$t('fxtfcn.PD000001')"
name=
"canp"
>
<el-tab-pane
label=
"业务信息"
name=
"canp"
>
<c-content>
<m-canp
:model=
"model"
:codes=
"codes"
/>
</c-content>
</el-tab-pane>
<el-tab-pane
label=
"费用/账务"
name=
"setpan"
>
<c-content>
<m-setpan
:codes=
"codes"
:model=
"model"
/>
</c-content>
</el-tab-pane>
<el-tab-pane
label=
"报文/面函"
name=
"docpan"
>
<c-content>
<m-docpan
:codes=
"codes"
:model=
"model"
/>
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-function-btn
:handleCheck=
"handleCheck"
:handleStash=
"handleStash"
:handleSubmit=
"handleSubmit"
@
handleSureWarning=
"handleSureWarning"
ref=
"commonBtn"
></c-function-btn>
</c-page>
</div>
</
template
>
<
script
>
...
...
@@ -15,6 +39,13 @@ import Api from "~/service/Api"
import
CodeTable
from
"~/config/CodeTable"
import
Fxtfcn
from
"../model"
import
commonProcess
from
"~/mixin/commonProcess"
import
Setpan
from
"~/components/business/setmod/views"
;
import
Docpan
from
"~/components/business/docpan/views"
;
import
buildFn
from
"../event/buildCommons.js"
;
import
operationFunc
from
"~/mixin/operationFunc"
;
import
commonDepend
from
"~/mixin/commonDepend"
;
import
event
from
"../event"
;
import
Check
from
"../model/Check"
import
Default
from
"../model/Default"
import
Pattern
from
"../model/Pattern"
...
...
@@ -25,24 +56,26 @@ export default {
name
:
"Fxtfcn"
,
components
:{
"m-canp"
:
Canp
,
"m-setpan"
:
Setpan
,
"m-docpan"
:
Docpan
,
},
provide
()
{
return
{
root
:
this
}
},
mixins
:
[
commonProcess
],
// 里面包含了Default、Check等的公共处理
mixins
:
[
commonProcess
,
operationFunc
,
commonDepend
,
event
,
buildFn
],
// 里面包含了Default、Check等的公共处理
data
(){
return
{
tabVal
:
"canp"
,
trnName
:
"fxtfcn"
,
trnType
:
""
,
model
:
new
Fxtfcn
().
data
,
checkRules
:
Check
,
defaultRules
:
Default
,
pattern
:
Pattern
,
rules
:
null
,
codes
:
{
//
checkRules: Check,
//
defaultRules: Default,
//
pattern: Pattern,
rules
:
Check
,
codes
:
{
...
CodeTable
},
}
},
...
...
@@ -55,18 +88,16 @@ export default {
}
},
created
:
async
function
(){
console
.
log
(
"进入fxtfcn交易"
);
let
rtnmsg
=
{};
// await this.init({})
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
rtnmsg
.
data
)
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
console
.
log
(
"进入fxtfcn交易.."
+
this
.
trnName
);
let
params
=
{
transName
:
this
.
trnName
,
fxdgrp
:
{
rec
:
{
inr
:
this
.
$route
.
query
.
inr
||
""
,
},
},
};
this
.
init
(
params
)
}
}
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment