Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swifteditor
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
fukai
swifteditor
Commits
91535d23
Commit
91535d23
authored
Mar 23, 2025
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
先提交发报行支持修改
parent
9ad3ec0c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
SWFPage2.js
src/swift/SWFPage2.js
+11
-11
T20.js
src/swift/Tags/T20.js
+1
-1
No files found.
src/swift/SWFPage2.js
View file @
91535d23
...
@@ -64,13 +64,13 @@ export class SWFPage extends Component
...
@@ -64,13 +64,13 @@ export class SWFPage extends Component
console
.
log
(
item
.
tag
)
console
.
log
(
item
.
tag
)
console
.
log
(
item
.
tagValue
)
console
.
log
(
item
.
tagValue
)
}
else
{
}
else
{
if
(
"20"
==
item
.
tag
&&
item
.
tagValue
[
1
]
&&
(
/
\d
9
\d
/g
.
test
(
mty
))){
//
if("20" == item.tag && item.tagValue[1] && (/\d9\d/g.test(mty))){
ServiceAPI
.
checkOwnref
(
item
.
tagValue
[
1
]).
then
(
rtnmsg
=>
{
//
ServiceAPI.checkOwnref(item.tagValue[1]).then(rtnmsg=>{
if
(
rtnmsg
.
errorCode
!=
"0000"
){
//
if(rtnmsg.errorCode != "0000"){
notification
.
warn
({
description
:
'the reference does not exist,please confirm!'
,
message
:
'Warn'
})
//
notification.warn({description:'the reference does not exist,please confirm!',message:'Warn'})
}
//
}
})
//
})
}
//
}
}
}
}
else
if
(
item
.
cyclist
)
}
else
if
(
item
.
cyclist
)
...
@@ -101,11 +101,11 @@ export class SWFPage extends Component
...
@@ -101,11 +101,11 @@ export class SWFPage extends Component
let
rcv_bic_err_msg
=
validateRCV_BIC
(
this
.
props
.
rcv_bic_info
.
rcv_bic
)
let
rcv_bic_err_msg
=
validateRCV_BIC
(
this
.
props
.
rcv_bic_info
.
rcv_bic
)
let
snd_bic_err_msg
=
validateRCV_BIC
(
this
.
props
.
snd_bic_info
.
snd_bic
)
let
snd_bic_err_msg
=
validateRCV_BIC
(
this
.
props
.
snd_bic_info
.
snd_bic
)
if
(
rcv_bic_err_msg
||
crs
.
hasError
)
if
(
snd_bic_err_msg
||
rcv_bic_err_msg
||
crs
.
hasError
)
{
{
//更新整个树
//更新整个树
notification
.
error
({
description
:
'There is an error in the input, please check according to the prompt!'
,
message
:
'Error'
})
notification
.
error
({
description
:
'There is an error in the input, please check according to the prompt!'
,
message
:
'Error'
})
this
.
props
.
actions
.
updateSndBic
({
snd_bic
:
this
.
props
.
snd_bic_info
.
snd_bic
,
err_msg
:
snd_bic_err_msg
?
snd_bic_err_msg
.
replace
(
"
收"
,
"发
"
):
''
})
this
.
props
.
actions
.
updateSndBic
({
snd_bic
:
this
.
props
.
snd_bic_info
.
snd_bic
,
err_msg
:
snd_bic_err_msg
?
snd_bic_err_msg
.
replace
(
"
receiving"
,
"sending
"
):
''
})
this
.
props
.
actions
.
updateRcvBic
({
rcv_bic
:
this
.
props
.
rcv_bic_info
.
rcv_bic
,
err_msg
:
rcv_bic_err_msg
})
this
.
props
.
actions
.
updateRcvBic
({
rcv_bic
:
this
.
props
.
rcv_bic_info
.
rcv_bic
,
err_msg
:
rcv_bic_err_msg
})
this
.
props
.
actions
.
updateTreeValue
()
this
.
props
.
actions
.
updateTreeValue
()
//滚动至第一个错误位置
//滚动至第一个错误位置
...
@@ -157,7 +157,7 @@ export class SWFPage extends Component
...
@@ -157,7 +157,7 @@ export class SWFPage extends Component
}
}
//锦州 message = `:MT:${mty}\r\n:IO:${this.props.rcv_bic_info.rcv_bic}\r\n:II:${this.props.snd_bic_info.snd_bic}\r\n:MP:N\r\n${s119}${gpistr}:EOH:\r\n${message}\r\n-\r\n`
//锦州 message = `:MT:${mty}\r\n:IO:${this.props.rcv_bic_info.rcv_bic}\r\n:II:${this.props.snd_bic_info.snd_bic}\r\n:MP:N\r\n${s119}${gpistr}:EOH:\r\n${message}\r\n-\r\n`
//南商
//南商
message
=
`{1:F01
${
window
.
BANK_LOGIC_ADDRESS
}
0000000000}{2:I
${
mty
}${
getLogicAdress
(
this
.
props
.
rcv_bic_info
.
rcv_bic
)}
N}
${
header3
}
{4:\r\n
${
message
}
\r\n-}`
message
=
`{1:F01
${
getLogicAdress
(
this
.
props
.
snd_bic_info
.
snd_bic
)
}
0000000000}{2:I
${
mty
}${
getLogicAdress
(
this
.
props
.
rcv_bic_info
.
rcv_bic
)}
N}
${
header3
}
{4:\r\n
${
message
}
\r\n-}`
}
}
//console.log(message)
//console.log(message)
this
.
props
.
actions
.
updateSwiftMessage
(
message
)
this
.
props
.
actions
.
updateSwiftMessage
(
message
)
...
@@ -395,7 +395,7 @@ export class SWFPage extends Component
...
@@ -395,7 +395,7 @@ export class SWFPage extends Component
<
/Col
>
<
/Col
>
<
Col
span
=
{
8
}
>
<
Col
span
=
{
8
}
>
<
SNDBIC
flag
=
{
true
}
snd_bic
=
{
window
.
BANK_BIC
}
err_msg
=
{
null
}
onChange
=
{(
val
,
msg
)
=>
{
snd_bic_info
.
snd_bic
=
val
;
snd_bic_info
.
err_msg
=
msg
}}
/
>
<
SNDBIC
flag
=
{
false
}
snd_bic
=
{
""
}
err_msg
=
{
snd_bic_info
.
err_msg
}
onChange
=
{(
val
,
msg
)
=>
{
snd_bic_info
.
snd_bic
=
val
;
snd_bic_info
.
err_msg
=
msg
}}
/
>
<
/Col
>
<
/Col
>
<
/Row
>
<
/Row
>
<
Row
style
=
{{}}
>
<
Row
style
=
{{}}
>
...
...
src/swift/Tags/T20.js
View file @
91535d23
...
@@ -25,7 +25,7 @@ export default class T20 extends Component
...
@@ -25,7 +25,7 @@ export default class T20 extends Component
let
day
=
new
Date
()
let
day
=
new
Date
()
let
dayWrapper
=
moment
(
day
)
let
dayWrapper
=
moment
(
day
)
let
mty
=
this
.
props
.
mty
.
substring
(
2
).
substring
(
0
,
3
)
let
mty
=
this
.
props
.
mty
.
substring
(
2
).
substring
(
0
,
3
)
let
ref
=
''
;
let
ref
=
"BW"
+
mty
+
dayWrapper
.
format
(
"X"
)
+
random
.
string
(
1
)
;
//console.log("ref-->"+ref)
//console.log("ref-->"+ref)
if
(
this
.
props
.
value
){
if
(
this
.
props
.
value
){
...
...
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