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
biyuewuhua
isc-web-vue
Commits
107a3c30
Commit
107a3c30
authored
Oct 14, 2024
by
jianglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增fxtfcm开发
parent
8540ea43
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
87 additions
and
161 deletions
+87
-161
index.js
src/components/business/commonModel/fxdgrp/index.js
+12
-0
buildCommons.js
src/page/Funds/Fxtfcm/event/buildCommons.js
+7
-6
Check.js
src/page/Funds/Fxtfcm/model/Check.js
+0
-0
Default.js
src/page/Funds/Fxtfcm/model/Default.js
+8
-41
index.js
src/page/Funds/Fxtfcm/model/index.js
+14
-77
Cnfp.vue
src/page/Funds/Fxtfcm/views/Cnfp.vue
+0
-0
index.vue
src/page/Funds/Fxtfcm/views/index.vue
+40
-35
Check.js
src/page/Funds/Fxtfop/model/Check.js
+1
-1
Regp.vue
src/page/Funds/Fxtfop/views/Regp.vue
+5
-1
No files found.
src/components/business/commonModel/fxdgrp/index.js
View file @
107a3c30
...
...
@@ -4,6 +4,7 @@ export default class Fxdgrp {
constructor
()
{
this
.
data
=
{
rec
:
{
inr
:
""
,
ownref
:
""
,
// 结售汇业务参考号 fxdgrp.rec.ownref
nam
:
""
,
// 名称 fxdgrp.rec.nam
fxtyp
:
""
,
// 结售汇类型 fxdgrp.rec.fxtyp
...
...
@@ -25,6 +26,17 @@ export default class Fxdgrp {
dsp2
:
""
,
// 本币结算账号 fxdgrp.rec.dsp2
usr
:
""
,
// 业务经办人 fxdgrp.rec.usr
ownusr
:
""
,
// Clearing Department Responsible User fxdgrp.rec.ownusr
cnfdat
:
""
,
clsdat
:
""
,
ver
:
""
,
branchinr
:
""
,
bchkeyinr
:
""
,
cshpct
:
0
,
rat1
:
0.000000
,
accmng
:
""
,
hdbch
:
""
,
etyextkey
:
""
,
},
blk
:
{
remark
:
""
,
// 备注 fxdgrp.blk.remark
...
...
src/page/Funds/Fxtfcm/event/buildCommons.js
View file @
107a3c30
...
...
@@ -21,16 +21,17 @@ export default {
};
},
buildCommonData
(
model
,
trnName
)
{
let
ptsptaList
=
Utils
.
formatPtspta
(
model
.
fx
tp
.
fx
dgrp
,
this
.
buildPtspta
);
let
ptsptaList
=
Utils
.
formatPtspta
(
model
.
fxdgrp
,
this
.
buildPtspta
);
return
{
rec
:
{
objtyp
:
"FXT"
,
objinr
:
model
.
fxtp
.
fxdgrp
.
rec
.
inr
,
ownref
:
model
.
fxtp
.
fxdgrp
.
rec
.
ownref
,
objtyp
:
"FXD"
,
objinr
:
model
.
fxdgrp
.
rec
.
inr
,
ownref
:
model
.
fxdgrp
.
rec
.
ownref
,
fxtyp
:
model
.
fxdgrp
.
rec
.
fxtyp
,
},
cbsMap
:
{
MAX
:
model
.
fx
tp
.
fx
dgrp
.
cbs
.
max
,
NOM1
:
model
.
fx
tp
.
fx
dgrp
.
cbs
.
nom1
,
MAX
:
model
.
fxdgrp
.
cbs
.
max
,
NOM1
:
model
.
fxdgrp
.
cbs
.
nom1
,
},
ptsList
:
ptsptaList
,
transName
:
trnName
,
...
...
src/page/Funds/Fxtfcm/model/Check.js
View file @
107a3c30
This diff is collapsed.
Click to expand it.
src/page/Funds/Fxtfcm/model/Default.js
View file @
107a3c30
/**
* Fxtfcm Default规则
*/
import
Api
from
"~/service/Api"
;
import
Utils
from
"~/utils/index"
import
commonFunctions
from
"~/mixin/commonFunctions.js"
;
import
commonDepend
from
"~/mixin/commonDepend"
;
export
default
{
"mt30m.c85.pts.extkey"
:
Utils
.
defaultFunction
,
"mt30m.deamet"
:
Utils
.
defaultFunction
,
"fxtp.cnychk"
:
Utils
.
defaultFunction
,
"fxtp.frgchk"
:
Utils
.
defaultFunction
,
"fxdgrp.rec.ownusr"
:
Utils
.
defaultFunction
,
"fxdgrp.apl.dbfadrblkcn"
:
Utils
.
defaultFunction
,
"swtflg"
:
Utils
.
defaultFunction
,
"fxtp.usr.extkey"
:
Utils
.
defaultFunction
,
"fxdgrp.rec.usr"
:
Utils
.
defaultFunction
,
"fxdgrp.cbs.nom1.cur"
:
Utils
.
defaultFunction
,
"fxdgrp.cbs.max.cur"
:
Utils
.
defaultFunction
,
"fxdgrp.rec.rat"
:
Utils
.
defaultFunction
,
"fxdgrp.cbs.nom1.amt"
:
Utils
.
defaultFunction
,
"fxdgrp.cbs.max.amt"
:
Utils
.
defaultFunction
,
"mt30m.c84.pts.extkey"
:
Utils
.
defaultFunction
,
"fxdgrp.apl.pts.adrblk"
:
Utils
.
defaultFunction
,
"mt30m.deamettxt"
:
Utils
.
defaultFunction
,
"mt30m.b58.pts.extkey"
:
Utils
.
defaultFunction
,
"fxdgrp.act.pts.extkey"
:
Utils
.
defaultFunction
,
"fxdgrp.rec.fxtyp"
:
Utils
.
defaultFunction
,
"fxdgrp.apl.pts.extkey"
:
Utils
.
defaultFunction
,
"mt30m.a53.pts.extkey"
:
Utils
.
defaultFunction
,
"aplacc.pts.extkey"
:
Utils
.
defaultFunction
,
"mt30m.b53.pts.extkey"
:
Utils
.
defaultFunction
,
"mt30m.b56.pts.extkey"
:
Utils
.
defaultFunction
,
"fxdgrp.rec.ownref"
:
Utils
.
defaultFunction
,
"mt30m.rbc.pts.extkey"
:
Utils
.
defaultFunction
,
"mt30m.ini.pts.extkey"
:
Utils
.
defaultFunction
,
"mt30m.s94a"
:
Utils
.
defaultFunction
,
"mt30m.owc.pts.extkey"
:
Utils
.
defaultFunction
,
"mt30m.c88.pts.extkey"
:
Utils
.
defaultFunction
,
"mt30m.s22a"
:
Utils
.
defaultFunction
,
}
//你可以添加自动default处理
mixins
:
[
commonFunctions
,
commonDepend
],
methods
:
{
},
};
\ No newline at end of file
src/page/Funds/Fxtfcm/model/index.js
View file @
107a3c30
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
Fxtfcm
{
constructor
()
{
this
.
data
=
{
fxtfcm
:{
rec
:{
ownref
:
""
,
// 平盘业务参考号 .fxtfcm.rec.ownref
nam
:
""
,
// 名称 .fxtfcm.rec.nam
fxtyp
:
""
,
// 平盘类型 .fxtfcm.rec.fxtyp
opndat
:
""
,
// 平盘日期 .fxtfcm.rec.opndat
valdat
:
""
,
// 起息日 .fxtfcm.rec.valdat
rat
:
""
,
// 平盘牌价 .fxtfcm.rec.rat
midrat
:
""
,
// 中间价 .fxtfcm.rec.midrat
ownusr
:
""
,
// 资金部负责人 .fxtfcm.rec.ownusr
usr
:
""
,
// 清算中心负责人 .fxtfcm.rec.usr
detail
:
""
,
// 详情 .fxtfcm.rec.detail
other
:
""
,
//其它
},
apl
:{
pts
:
new
Pts
().
data
,
dbfadrblkcn
:
""
,
// Chinese address .fxtfcm.apl.dbfadrblkcn
},
blk
:{
remark
:
""
,
// 备注 .fxtfcm.blk.remark
},
cbs
:{
max
:{
cur
:
""
,
// Currency .fxtfcm.cbs.max.cur
amt
:
""
,
// Balance .fxtfcm.cbs.max.amt
},
nom1
:{
cur
:
""
,
// Currency .fxtfcm.cbs.nom1.cur
amt
:
""
,
// Balance .fxtfcm.cbs.nom1.amt
},
},
act
:{
pts
:
new
Pts
().
data
,
},
},
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
:
""
,
// User ID .fxtp.usr.extkey
},
actp
:{
ptsget
:{
sdamod
:{
dadsnd
:
""
,
// Drag Drop Sender .fxtp.actp.ptsget.sdamod.dadsnd
seainf
:
""
,
// .fxtp.actp.ptsget.sdamod.seainf
},
},
},
},
aplacc
:{
pts
:
new
Pts
().
data
,
},
aplaccp
:{
ptsget
:{
sdamod
:{
dadsnd
:
""
,
// Drag Drop Sender .aplaccp.ptsget.sdamod.dadsnd
seainf
:
""
,
// .aplaccp.ptsget.sdamod.seainf
},
},
frgchk
:
"X"
},
acc2
:
""
,
// APLACC's Account .acc2
acc1
:
""
,
// OWNACC's Account .acc1
swtflg
:
""
,
// 发送MT300 .swtflg
swtflg
:
""
,
mt30m
:{
s22a
:
""
,
// Typeof Operation(:22A) .mt30m.s22a
s94a
:
""
,
// Scope of Operation(:94A) .mt30m.s94a
...
...
@@ -215,8 +146,13 @@ export default class Fxtfcm{
c88ref
:
""
,
// Broker's Reference .mt30m.c88ref
str300
:
""
,
// Sender to Receiver Information .mt30m.str300
},
fxt300l1blk
:
""
,
// XMLPanel fxt300l1的内置block .fxt300l1blk
pageId
:
""
// ctx的key
fxt300l1blk
:
""
,
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/Fxtfcm/views/Cnfp.vue
View file @
107a3c30
This diff is collapsed.
Click to expand it.
src/page/Funds/Fxtfcm/views/index.vue
View file @
107a3c30
<
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-content>
<el-form
:model=
"model"
:rules=
"rules"
ref=
"modelForm"
label-width=
"150px"
label-position=
"right"
size=
"small"
:validate-on-rule-change=
"false"
>
<c-tabs
v-model=
"tabVal"
ref=
"elment"
type=
"card"
@
tab-click=
"myTabClick"
>
<!--fxtfcm PD000001 Confirmation -->
<el-tab-pane
label=
"
概要
"
name=
"cnfp"
>
<el-tab-pane
label=
"
Confirmation
"
name=
"cnfp"
>
<m-cnfp
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
<el-tab-pane
label=
"费用/账务"
name=
"setpan"
>
<c-content>
<m-setpan
:codes=
"codes"
:model=
"model"
/>
</c-content>
</el-tab-pane>
<el-tab-pane
label=
"报文/面函"
name=
"docpan"
>
<c-content>
<m-docpan
:codes=
"codes"
:model=
"model"
/>
</c-content>
</el-tab-pane>
<!--fxtfcm PD000023 MT300 -->
<el-tab-pane
label=
"MT300"
name=
"mt300"
>
<m-mt300
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
<!--fxtfcm PD000065 MT300 -->
<el-tab-pane
label=
"fxt300l1"
name=
"fxt300l1"
>
<m-fxt300l1
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
</c-tabs>
</el-form>
...
...
@@ -35,14 +33,23 @@
@
handleSureWarning=
"handleSureWarning"
ref=
"commonBtn"
></c-function-btn>
</c-
page
>
</c-
content
>
</div>
</
template
>
<
script
>
import
Api
from
"~/service/Api"
import
CodeTable
from
"~/config/CodeTable"
import
Fxtfcm
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
Fxtfcm
from
"../model"
;
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"
...
...
@@ -55,6 +62,8 @@ export default {
name
:
"Fxtfcm"
,
components
:{
"m-cnfp"
:
Cnfp
,
"m-setpan"
:
Setpan
,
"m-docpan"
:
Docpan
,
"m-mt300"
:
Mt300
,
"m-fxt300l1"
:
Fxt300l1
,
},
...
...
@@ -63,7 +72,7 @@ export default {
root
:
this
}
},
mixins
:
[
commonProcess
],
// 里面包含了Default、Check等的公共处理
mixins
:
[
commonProcess
,
operationFunc
,
commonDepend
,
event
,
buildFn
],
// 里面包含了Default、Check等的公共处理
data
(){
return
{
tabVal
:
"cnfp"
,
...
...
@@ -74,31 +83,27 @@ export default {
// defaultRules: Default,
// pattern: Pattern,
rules
:
Check
,
codes
:
{
codes
:
{
...
CodeTable
},
}
},
methods
:{
myTabClick
(
tab
){
this
.
tabClick
(
tab
)
/**
* do it yourself
**/
}
},
created
:
async
function
(){
console
.
log
(
"进入fxtfcm交易"
);
let
rtnmsg
=
{};
// await this.init({})
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
rtnmsg
.
data
)
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
console
.
log
(
"进入fxtfcm交易.."
+
this
.
trnName
);
let
params
=
{
transName
:
this
.
trnName
,
fxdgrp
:
{
rec
:
{
inr
:
this
.
$route
.
query
.
inr
||
""
,
},
},
};
this
.
init
(
params
)
}
}
</
script
>
...
...
src/page/Funds/Fxtfop/model/Check.js
View file @
107a3c30
...
...
@@ -35,7 +35,7 @@ export default {
],
"fxdgrp.rec.rat"
:
[
{
required
:
true
,
message
:
"必输项"
},
{
max
:
14
,
message
:
"长度不能超过14"
}
],
"fxdgrp.rec.midrat"
:
[
...
...
src/page/Funds/Fxtfop/views/Regp.vue
View file @
107a3c30
...
...
@@ -144,8 +144,12 @@ export default {
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"
)
+
","
let
nam
=
this
.
getCodelabel
(
this
.
model
.
fxdgrp
.
rec
.
fxtyp
,
"fxt_fxtyp"
)
+
","
+
this
.
model
.
fxdgrp
.
cbs
.
max
.
cur
+
" "
+
amount
;
debugger
console
.
log
(
"nam---"
,
nam
)
this
.
model
.
fxdgrp
.
rec
.
nam
=
nam
;
return
nam
},
},
...
...
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