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
zhouqian
vue-gjjs
Commits
a625f5ee
Commit
a625f5ee
authored
May 15, 2022
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getTrnNameByInr的临时替换
parent
757199d3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
84 additions
and
27 deletions
+84
-27
Event.js
src/model/Infbdd/Event.js
+28
-8
Event.js
src/model/Infcpd/Event.js
+25
-7
Event.js
src/model/Infdid/Event.js
+28
-8
vue.config.js
vue.config.js
+3
-4
No files found.
src/model/Infbdd/Event.js
View file @
a625f5ee
...
...
@@ -140,14 +140,33 @@ export default {
}
},
display
(
index
,
row
)
{
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'
);
}
});
const
name
=
row
[
'交易名称'
];
let
trnName
if
(
name
===
'开立信用证'
)
{
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'
]
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 {
}
},
display
(
index
,
row
)
{
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'
);
}
});
const
name
=
row
[
'交易名称'
];
let
trnName
if
(
name
===
'开立信用证'
)
{
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'
]
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
(){
let
rtnmsg
=
await
this
.
executeRule
(
"infbut.userow"
)
...
...
src/model/Infdid/Event.js
View file @
a625f5ee
...
...
@@ -198,14 +198,33 @@ export default {
}
},
display
(
index
,
row
)
{
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'
);
}
});
const
name
=
row
[
'交易名称'
];
let
trnName
if
(
name
===
'开立信用证'
)
{
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'
]
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 = {
'^/gjjs/report'
:
'/gjjs/report'
}
},
<<<<<<<
HEAD
'/gjjs/notice/'
:
{
target
:
'http://127.0.0.1:8085'
,
changeOrigin
:
true
,
pathRewrite
:
{
'^/gjjs/notice'
:
'/gjjs/notice'
=======
}
},
'/gjjs/devtools/'
:
{
target
:
'http://127.0.0.1:8083'
,
changeOrigin
:
true
,
pathRewrite
:
{
'^/gjjs/devtools'
:
'/gjjs/devtools'
>>>>>>>
e711bf965506eb41654c479eae2b7e633e370da4
}
},
/**
...
...
@@ -117,7 +116,7 @@ module.exports = {
.
plugin
(
'ScriptExtHtmlWebpackPlugin'
)
.
after
(
'html'
)
.
use
(
'script-ext-html-webpack-plugin'
,
[{
// `runtime` must same as runtimeChunk name. default is `runtime`
// `runtime` must same as runtimeChunk name. default is `runtime`
inline
:
/runtime
\.
.*
\.
js$/
}])
.
end
()
...
...
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