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
d0b167ad
Commit
d0b167ad
authored
Oct 11, 2024
by
huangshunlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重复码表删除,即期结汇注释面函,界面调用接口
parent
14481c37
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
89 additions
and
44 deletions
+89
-44
index.js
src/config/CodeTable/index.js
+0
-16
buildCommons.js
src/page/Funds/Fxtssb/event/buildCommons.js
+10
-1
index.js
src/page/Funds/Fxtssb/event/index.js
+53
-1
Check.js
src/page/Funds/Fxtssb/model/Check.js
+5
-13
Ovwp.vue
src/page/Funds/Fxtssb/views/Ovwp.vue
+16
-8
index.vue
src/page/Funds/Fxtssb/views/index.vue
+5
-5
No files found.
src/config/CodeTable/index.js
View file @
d0b167ad
...
...
@@ -9825,22 +9825,6 @@ const CodeTable = {
{
label
:
"头寸调拨"
,
value
:
"PT"
},
{
label
:
"资金拆出"
,
value
:
"LO"
},
],
fxt_fxtyp
:
[
{
label
:
"远期结汇"
,
value
:
"UB"
},
{
label
:
"即期结汇"
,
value
:
"SB"
},
{
label
:
"择期结汇"
,
value
:
"NB"
},
{
label
:
"代客外汇买入"
,
value
:
"XB"
},
{
label
:
"外汇平盘买入"
,
value
:
"BX"
},
{
label
:
"择期售汇"
,
value
:
"NS"
},
{
label
:
"兑换平盘卖出"
,
value
:
"FS"
},
{
label
:
"平盘买入"
,
value
:
"LB"
},
{
label
:
"远期售汇"
,
value
:
"US"
},
{
label
:
"代客外汇卖出"
,
value
:
"XS"
},
{
label
:
"即期售汇"
,
value
:
"SS"
},
{
label
:
"外汇平盘卖出"
,
value
:
"SX"
},
{
label
:
"平盘卖出"
,
value
:
"LS"
},
{
label
:
"兑换平盘买入"
,
value
:
"FB"
},
],
mttyp
:
[
{
label
:
"100"
,
value
:
"100"
},
{
label
:
"103"
,
value
:
"103"
},
...
...
src/page/Funds/Fxtssb/event/buildCommons.js
View file @
d0b167ad
...
...
@@ -24,9 +24,18 @@ export default {
let
ptsptaList
=
Utils
.
formatPtspta
(
model
.
fxdgrp
,
this
.
buildPtspta
);
return
{
rec
:
{
objtyp
:
"FX
T
"
,
objtyp
:
"FX
D
"
,
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
,
...
...
src/page/Funds/Fxtssb/event/index.js
View file @
d0b167ad
...
...
@@ -13,7 +13,7 @@ export default {
return
;
}
const
loading
=
this
.
loading
();
let
res
=
await
Api
.
post
(
`/
${
this
.
moduleRouter
()}
/fxtssb/getRef`
,
this
.
model
);
let
res
=
await
Api
.
post
(
`/
${
this
.
moduleRouter
()}
/fxtssb/getRef`
,
this
.
model
);
loading
.
close
();
if
(
res
.
respCode
!==
SUCCESS
)
{
this
.
$message
.
error
(
res
.
respMsg
);
...
...
@@ -45,5 +45,56 @@ export default {
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
();
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
();
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
;
},
}
}
\ No newline at end of file
src/page/Funds/Fxtssb/model/Check.js
View file @
d0b167ad
...
...
@@ -33,36 +33,28 @@ export default {
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
"fxdgrp.rec.rat"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
12
,
message
:
"长度不能超过12"
}
],
"fxdgrp.rec.quoref"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
16
,
message
:
"长度不能超过16"
}
],
"fxdgrp.rec.midrat"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
12
,
message
:
"长度不能超过12"
}
],
"fxdgrp.rec.fudref"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
16
,
message
:
"长度不能超过16"
}
],
"fxdgrp.rec.opndat"
:
[
{
type
:
"date"
,
required
:
true
,
message
:
"输入正确的日期"
}
{
required
:
true
,
message
:
"输入正确的日期"
}
],
"fxdgrp.rec.valdat"
:
[
{
type
:
"date"
,
required
:
true
,
message
:
"输入正确的日期"
}
{
required
:
true
,
message
:
"输入正确的日期"
}
],
"fxdgrp.rec.setdat"
:
[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
"fxdgrp.rec.setdatto"
:
[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
"fxdgrp.rec.setdatfrm"
:
[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
"fxdgrp.blk.remark"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
...
...
src/page/Funds/Fxtssb/views/Ovwp.vue
View file @
d0b167ad
...
...
@@ -31,6 +31,7 @@
<c-col
:span=
"24"
>
<el-form-item
:label=
"$t('fxtp.结售汇类型')"
prop=
"fxdgrp.rec.fxtyp"
>
<c-select
v-model=
"model.fxdgrp.rec.fxtyp"
:code=
"codes.fxt_fxtyp"
style=
"width:100%"
:filterKey=
"['SB']"
@
change=
"defaultAccountsN1000"
>
</c-select>
</el-form-item>
...
...
@@ -40,7 +41,7 @@
<c-col
:span=
"12"
>
<el-form-item
label=
"Purchase Amount"
prop=
"fxdgrp.cbs.max.cur"
>
<c-select-cur
v-model=
"model.fxdgrp.cbs.max.cur"
style=
"width: 100%"
dbCode=
"curtxt"
@
change=
"defaultAcc
ountsN1000
"
dbCode=
"curtxt"
@
change=
"defaultAcc
AndRate
"
></c-select-cur>
</el-form-item>
</c-col>
...
...
@@ -48,7 +49,8 @@
<el-form-item
label-width=
"5px"
prop=
"fxdgrp.cbs.max.amt"
>
<c-input-currency
:currency=
"model.fxdgrp.cbs.max.cur"
v-model=
"model.fxdgrp.cbs.max.amt"
></c-input-currency>
v-model=
"model.fxdgrp.cbs.max.amt"
@
change=
"defaultCalculateN1100"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
...
...
@@ -124,7 +126,9 @@
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<el-form-item
:label=
"$t('fxtp.外币结算账号')"
prop=
"fxdgrp.rec.dsp"
>
<c-select
v-model=
"model.fxdgrp.rec.dsp"
:code=
"codes.fxt_dsp"
style=
"width:100%"
@
change=
"defaultAccountsN1000"
>
<c-select
v-model=
"model.fxdgrp.rec.dsp"
:code=
"codes.fxt_dsp"
style=
"width:100%"
:filterKey=
"['SP','HA','VT','LO']"
@
change=
"defaultAccountsN1000"
>
</c-select>
</el-form-item>
</c-col>
...
...
@@ -217,7 +221,9 @@
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<el-form-item
:label=
"$t('fxtp.本币结算账号')"
prop=
"fxdgrp.rec.dsp2"
>
<c-select
v-model=
"model.fxdgrp.rec.dsp2"
:code=
"codes.fxt_dsp2"
style=
"width:100%"
@
change=
"defaultAccountsN1000"
>
<c-select
v-model=
"model.fxdgrp.rec.dsp2"
:code=
"codes.fxt_dsp2"
style=
"width:100%"
:filterKey=
"['SP','LO']"
@
change=
"defaultAccountsN1000"
>
</c-select>
</el-form-item>
</c-col>
...
...
@@ -240,7 +246,8 @@
<c-col
:span=
"24"
>
<el-form-item
:label=
"$t('fxtp.结售汇类型')"
prop=
"fxdgrp.rec.trdint"
>
<c-select
v-model=
"model.fxdgrp.rec.trdint"
style=
"width:100%"
dbCode=
"TRAINT"
>
<c-select
v-model=
"model.fxdgrp.rec.trdint"
style=
"width:100%"
dbCode=
"TRAINT"
:filterKey=
"['110','121','122','123','124','125','126','12X','131','132','210','220','221','222','223','231','232','240','241','242','250','260','261','262','270']"
>
</c-select>
</el-form-item>
<el-form-item
prop=
"fxdgrp.rec.trdout"
style=
"display:none"
>
...
...
@@ -267,10 +274,11 @@
},
computed
:
{
getOwnrefFlg
:
function
()
{
return
this
.
model
.
fxdgrp
.
rec
.
fxtyp
==
''
||
this
.
model
.
fxdgrp
.
rec
.
ownref
!=
''
;
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
()
{
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
;
...
...
@@ -297,7 +305,7 @@
this
.
model
.
accLst2
=
[];
return
}
this
.
defaultAcc
ountsN1000
();
this
.
defaultAcc
AndRate
();
},
},
}
...
...
src/page/Funds/Fxtssb/views/index.vue
View file @
d0b167ad
...
...
@@ -14,11 +14,11 @@
<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
>
<!--
<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
...
...
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