Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
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
vue-gjjs
Commits
a625f5ee
Commit
a625f5ee
authored
May 15, 2022
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getTrnNameByInr的临时替换
parent
757199d3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
22 deletions
+79
-22
Event.js
src/model/Infbdd/Event.js
+26
-6
Event.js
src/model/Infcpd/Event.js
+24
-6
Event.js
src/model/Infdid/Event.js
+27
-7
vue.config.js
vue.config.js
+2
-3
No files found.
src/model/Infbdd/Event.js
View file @
a625f5ee
...
@@ -140,14 +140,33 @@ export default {
...
@@ -140,14 +140,33 @@ export default {
}
}
},
},
display
(
index
,
row
)
{
display
(
index
,
row
)
{
debugger
;
const
name
=
row
[
'交易名称'
];
Api
.
post
(
"getTrnNameByInr"
,
{
inr
:
row
[
'INR'
]
}).
then
((
res
)
=>
{
let
trnName
if
(
res
.
respCode
==
SUCCESS
)
{
if
(
name
===
'开立信用证'
)
{
const
trnName
=
res
.
data
.
toLowerCase
();
trnName
=
'ditopn'
}
else
if
(
name
===
'到单'
)
{
trnName
=
'ditdck'
}
else
if
(
name
===
'付款'
)
{
trnName
=
'bdtset'
}
else
if
(
name
===
'Incoming payment'
)
{
trnName
=
'cptopn'
}
else
if
(
name
===
'Outgoing payment'
)
{
trnName
=
'cptadv'
}
else
{
return
;
}
let
viewurl
=
"/#/display/"
+
trnName
+
"?trn="
+
row
[
'INR'
]
let
viewurl
=
"/#/display/"
+
trnName
+
"?trn="
+
row
[
'INR'
]
window
.
open
(
viewurl
,
'newwindow'
,
'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'
);
window
.
open
(
viewurl
,
'newwindow'
,
'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'
);
}
});
// debugger;
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
},
}
}
\ No newline at end of file
src/model/Infcpd/Event.js
View file @
a625f5ee
...
@@ -30,13 +30,31 @@ export default {
...
@@ -30,13 +30,31 @@ export default {
}
}
},
},
display
(
index
,
row
)
{
display
(
index
,
row
)
{
Api
.
post
(
"getTrnNameByInr"
,
{
inr
:
row
[
'INR'
]
}).
then
((
res
)
=>
{
const
name
=
row
[
'交易名称'
];
if
(
res
.
respCode
==
SUCCESS
)
{
let
trnName
const
trnName
=
res
.
data
.
toLowerCase
();
if
(
name
===
'开立信用证'
)
{
let
viewurl
=
"/#/display/"
+
trnName
+
"?trn="
+
row
[
'INR'
]
trnName
=
'ditopn'
window
.
open
(
viewurl
,
'newwindow'
,
'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'
);
}
else
if
(
name
===
'到单'
)
{
trnName
=
'ditdck'
}
else
if
(
name
===
'付款'
)
{
trnName
=
'bdtset'
}
else
if
(
name
===
'Incoming payment'
)
{
trnName
=
'cptopn'
}
else
if
(
name
===
'Outgoing payment'
)
{
trnName
=
'cptadv'
}
else
{
return
;
}
}
});
let
viewurl
=
"/#/display/"
+
trnName
+
"?trn="
+
row
[
'INR'
]
window
.
open
(
viewurl
,
'newwindow'
,
'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'
);
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
},
async
onInfbutUserow
(){
async
onInfbutUserow
(){
let
rtnmsg
=
await
this
.
executeRule
(
"infbut.userow"
)
let
rtnmsg
=
await
this
.
executeRule
(
"infbut.userow"
)
...
...
src/model/Infdid/Event.js
View file @
a625f5ee
...
@@ -198,14 +198,33 @@ export default {
...
@@ -198,14 +198,33 @@ export default {
}
}
},
},
display
(
index
,
row
)
{
display
(
index
,
row
)
{
debugger
;
const
name
=
row
[
'交易名称'
];
Api
.
post
(
"getTrnNameByInr"
,
{
inr
:
row
[
'INR'
]
}).
then
((
res
)
=>
{
let
trnName
if
(
res
.
respCode
==
SUCCESS
)
{
if
(
name
===
'开立信用证'
)
{
const
trnName
=
res
.
data
.
toLowerCase
();
trnName
=
'ditopn'
let
viewurl
=
"/#/display/"
+
trnName
+
"?trn="
+
row
[
'INR'
]
}
else
if
(
name
===
'到单'
)
{
window
.
open
(
viewurl
,
'newwindow'
,
'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'
);
trnName
=
'ditdck'
}
else
if
(
name
===
'付款'
)
{
trnName
=
'bdtset'
}
else
if
(
name
===
'Incoming payment'
)
{
trnName
=
'cptopn'
}
else
if
(
name
===
'Outgoing payment'
)
{
trnName
=
'cptadv'
}
else
{
return
;
}
}
});
let
viewurl
=
"/#/display/"
+
trnName
+
"?trn="
+
row
[
'INR'
]
window
.
open
(
viewurl
,
'newwindow'
,
'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'
);
// debugger;
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
},
}
}
\ No newline at end of file
vue.config.js
View file @
a625f5ee
...
@@ -47,19 +47,18 @@ module.exports = {
...
@@ -47,19 +47,18 @@ module.exports = {
'^/gjjs/report'
:
'/gjjs/report'
'^/gjjs/report'
:
'/gjjs/report'
}
}
},
},
<<<<<<<
HEAD
'/gjjs/notice/'
:
{
'/gjjs/notice/'
:
{
target
:
'http://127.0.0.1:8085'
,
target
:
'http://127.0.0.1:8085'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
'^/gjjs/notice'
:
'/gjjs/notice'
'^/gjjs/notice'
:
'/gjjs/notice'
=======
}
},
'/gjjs/devtools/'
:
{
'/gjjs/devtools/'
:
{
target
:
'http://127.0.0.1:8083'
,
target
:
'http://127.0.0.1:8083'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
'^/gjjs/devtools'
:
'/gjjs/devtools'
'^/gjjs/devtools'
:
'/gjjs/devtools'
>>>>>>>
e711bf965506eb41654c479eae2b7e633e370da4
}
}
},
},
/**
/**
...
...
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