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
9ad3ec0c
Commit
9ad3ec0c
authored
Mar 20, 2025
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除template按钮,增加n9x业务编号校验
parent
e7906289
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
7 deletions
+25
-7
LeadPage.js
src/swift/LeadPage.js
+2
-2
SWFPage2.js
src/swift/SWFPage2.js
+19
-4
ServiceAPI.js
src/swift/ServiceAPI.js
+3
-0
T20.js
src/swift/Tags/T20.js
+1
-1
No files found.
src/swift/LeadPage.js
View file @
9ad3ec0c
...
...
@@ -174,12 +174,12 @@ export class LeadPage extends Component
<
Col
span
=
{
3
}
>
<
Affix
offsetTop
=
{
100
}
>
<
div
style
=
{{
textAlign
:
'right'
}}
>
<
Button
type
=
"primary"
title
=
"Return"
style
=
{{
marginRight
:
'1em'
,
width
:
'8em'
}}
>
{
/*
<Button type="primary" title="Return" style={{marginRight:'1em',width:'8em'}} >
<a onClick={ () => {
this.props.history.push(`entry/${this.props.params.mctid ? this.props.params.mctid : ''}`)
} }
>Go Back</a>
<
/Button
>
</Button>
*/
}
<
/div
>
<
/Affix
>
<
/Col
>
...
...
src/swift/SWFPage2.js
View file @
9ad3ec0c
...
...
@@ -63,6 +63,14 @@ export class SWFPage extends Component
rs
.
hasError
=
true
console
.
log
(
item
.
tag
)
console
.
log
(
item
.
tagValue
)
}
else
{
if
(
"20"
==
item
.
tag
&&
item
.
tagValue
[
1
]
&&
(
/
\d
9
\d
/g
.
test
(
mty
))){
ServiceAPI
.
checkOwnref
(
item
.
tagValue
[
1
]).
then
(
rtnmsg
=>
{
if
(
rtnmsg
.
errorCode
!=
"0000"
){
notification
.
warn
({
description
:
'the reference does not exist,please confirm!'
,
message
:
'Warn'
})
}
})
}
}
}
else
if
(
item
.
cyclist
)
...
...
@@ -234,10 +242,17 @@ export class SWFPage extends Component
if
(
data
.
txt
)
data
=
data
.
txt
data
=
JSON
.
parse
(
data
)
if
(
typeof
data
==
'string'
)
{
data
=
JSON
.
parse
(
data
)
}
this
.
props
.
actions
.
updateRcvBic
({
rcv_bic
:
data
.
rcv_bic_info
.
rcv_bic
})
let
tree
=
data
.
swift_message_tree
if
(
typeof
tree
==
'string'
)
{
tree
=
JSON
.
parse
(
tree
)
tree
=
JSON
.
parse
(
tree
.
sf2temp
).
swift_message_tree
}
this
.
props
.
actions
.
initSwiftMessageTree
(
tree
);
}).
catch
(
err
=>
{
console
.
log
(
err
)
...
...
@@ -416,9 +431,9 @@ export class SWFPage extends Component
:
null
}
<
TempSaver
getTemplateJSON
=
{
this
.
saveTemp
}
mty
=
{
mty
}
mctid
=
{
this
.
props
.
extra
.
mctid
}
style
=
{{
marginRight
:
'1em'
,
width
:
'8em'
}}
/>
<
br
/>
{
/* <TempSaver getTemplateJSON={this.saveTemp} mty={mty} mctid={this.props.extra.mctid} style={{marginRight:'1em',width:'8em'}}/>
<br/>
<br/> */
}
{
!
this
.
isdirect
?
...
...
src/swift/ServiceAPI.js
View file @
9ad3ec0c
...
...
@@ -36,4 +36,7 @@ export default class ServiceAPI{
{
return
API
.
post
(
""
,{
params
:{
action
:
'getmtm'
},
data
:{
sf2temp_inr
}})
}
static
checkOwnref
(
ownref
){
return
API
.
post
(
""
,{
params
:{
action
:
'checkownref'
},
data
:{
sf2msg
:
ownref
}})
}
}
src/swift/Tags/T20.js
View file @
9ad3ec0c
...
...
@@ -25,7 +25,7 @@ export default class T20 extends Component
let
day
=
new
Date
()
let
dayWrapper
=
moment
(
day
)
let
mty
=
this
.
props
.
mty
.
substring
(
2
).
substring
(
0
,
3
)
let
ref
=
"BW"
+
mty
+
dayWrapper
.
format
(
"X"
)
+
random
.
string
(
1
)
;
let
ref
=
''
;
//console.log("ref-->"+ref)
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