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
7acd75c9
Commit
7acd75c9
authored
May 15, 2022
by
hulei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临时调整处理getTrnNameByInr接口缺失
parent
8b03345b
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
103 additions
and
47 deletions
+103
-47
Event.js
src/model/Infbdd/Event.js
+3
-6
Event.js
src/model/Infbed/Event.js
+11
-5
Event.js
src/model/Infbfd/Event.js
+11
-5
Event.js
src/model/Infcpd/Event.js
+11
-5
Event.js
src/model/Infdet/Event.js
+12
-5
Event.js
src/model/Infdid/Event.js
+12
-5
Event.js
src/model/Infled/Event.js
+10
-5
Event.js
src/model/Infltd/Event.js
+11
-5
publicFun.js
src/utils/publicFun.js
+18
-1
vue.config.js
vue.config.js
+4
-5
No files found.
src/model/Infbdd/Event.js
View file @
7acd75c9
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils"
import
Utils
from
"~/utils"
import
PubFun
from
"~/utils/publicFun.js"
export
default
{
export
default
{
async
onInfbutSearow
(){
async
onInfbutSearow
(){
...
@@ -141,13 +142,10 @@ export default {
...
@@ -141,13 +142,10 @@ export default {
},
},
display
(
index
,
row
)
{
display
(
index
,
row
)
{
debugger
;
debugger
;
Api
.
post
(
"getTrnNameByInr"
,
{
inr
:
row
[
'INR'
]
}).
then
((
res
)
=>
{
const
name
=
row
[
'交易名称'
];
if
(
res
.
respCode
==
SUCCESS
)
{
let
trnName
=
PubFun
.
getTrnNameByDesc
(
name
);
const
trnName
=
res
.
data
.
toLowerCase
();
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'
);
}
});
},
},
}
}
\ No newline at end of file
src/model/Infbed/Event.js
View file @
7acd75c9
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils"
import
Utils
from
"~/utils"
import
PubFun
from
"~/utils/publicFun.js"
export
default
{
export
default
{
async
onInfbutSearow
(){
async
onInfbutSearow
(){
...
@@ -146,13 +147,17 @@ export default {
...
@@ -146,13 +147,17 @@ export default {
},
},
display
(
index
,
row
)
{
display
(
index
,
row
)
{
debugger
;
debugger
;
Api
.
post
(
"getTrnNameByInr"
,
{
inr
:
row
[
'INR'
]
}).
then
((
res
)
=>
{
const
name
=
row
[
'交易名称'
];
if
(
res
.
respCode
==
SUCCESS
)
{
let
trnName
=
PubFun
.
getTrnNameByDesc
(
name
);
const
trnName
=
res
.
data
.
toLowerCase
();
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'
);
}
// 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/Infbfd/Event.js
View file @
7acd75c9
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils"
import
Utils
from
"~/utils"
import
PubFun
from
"~/utils/publicFun.js"
export
default
{
export
default
{
async
onInfbutSearow
()
{
async
onInfbutSearow
()
{
...
@@ -112,13 +113,17 @@ export default {
...
@@ -112,13 +113,17 @@ export default {
display
(
index
,
row
)
{
display
(
index
,
row
)
{
debugger
;
debugger
;
Api
.
post
(
"getTrnNameByInr"
,
{
inr
:
row
[
'INR'
]
}).
then
((
res
)
=>
{
const
name
=
row
[
'交易名称'
];
if
(
res
.
respCode
==
SUCCESS
)
{
let
trnName
=
PubFun
.
getTrnNameByDesc
(
name
);
const
trnName
=
res
.
data
.
toLowerCase
();
let
viewurl
=
"/#/display/"
+
trnName
+
"?trn="
+
row
[
'INR'
]
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'
);
window
.
open
(
viewurl
,
'newwindow'
,
'height=1500,width=1200,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');
// }
// });
},
},
}
}
\ No newline at end of file
src/model/Infcpd/Event.js
View file @
7acd75c9
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils"
import
Utils
from
"~/utils"
import
PubFun
from
"~/utils/publicFun.js"
export
default
{
export
default
{
async
onInfbutSearow
(){
async
onInfbutSearow
(){
...
@@ -30,13 +31,18 @@ export default {
...
@@ -30,13 +31,18 @@ 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
=
PubFun
.
getTrnNameByDesc
(
name
);
const
trnName
=
res
.
data
.
toLowerCase
();
let
viewurl
=
"/#/display/"
+
trnName
+
"?trn="
+
row
[
'INR'
]
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'
);
window
.
open
(
viewurl
,
'newwindow'
,
'height=1500,width=1200,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/Infdet/Event.js
View file @
7acd75c9
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils"
import
Utils
from
"~/utils"
import
PubFun
from
"~/utils/publicFun.js"
export
default
{
export
default
{
async
onInfbutSearow
()
{
async
onInfbutSearow
()
{
...
@@ -201,13 +202,18 @@ export default {
...
@@ -201,13 +202,18 @@ export default {
display
(
index
,
row
)
{
display
(
index
,
row
)
{
debugger
;
debugger
;
Api
.
post
(
"getTrnNameByInr"
,
{
inr
:
row
[
'INR'
]
}).
then
((
res
)
=>
{
const
name
=
row
[
'交易名称'
];
if
(
res
.
respCode
==
SUCCESS
)
{
let
trnName
=
PubFun
.
getTrnNameByDesc
(
name
);
const
trnName
=
res
.
data
.
toLowerCase
();
let
viewurl
=
"/#/display/"
+
trnName
+
"?trn="
+
row
[
'INR'
]
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'
);
window
.
open
(
viewurl
,
'newwindow'
,
'height=1500,width=1200,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');
// }
// });
},
},
}
}
\ No newline at end of file
src/model/Infdid/Event.js
View file @
7acd75c9
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils"
import
Utils
from
"~/utils"
import
PubFun
from
"~/utils/publicFun.js"
export
default
{
export
default
{
async
onInfbutSearow
()
{
async
onInfbutSearow
()
{
...
@@ -199,13 +200,18 @@ export default {
...
@@ -199,13 +200,18 @@ export default {
},
},
display
(
index
,
row
)
{
display
(
index
,
row
)
{
debugger
;
debugger
;
Api
.
post
(
"getTrnNameByInr"
,
{
inr
:
row
[
'INR'
]
}).
then
((
res
)
=>
{
const
name
=
row
[
'交易名称'
];
if
(
res
.
respCode
==
SUCCESS
)
{
let
trnName
=
PubFun
.
getTrnNameByDesc
(
name
);
const
trnName
=
res
.
data
.
toLowerCase
();
let
viewurl
=
"/#/display/"
+
trnName
+
"?trn="
+
row
[
'INR'
]
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'
);
window
.
open
(
viewurl
,
'newwindow'
,
'height=1500,width=1200,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');
// }
// });
},
},
}
}
\ No newline at end of file
src/model/Infled/Event.js
View file @
7acd75c9
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils"
import
Utils
from
"~/utils"
import
PubFun
from
"~/utils/publicFun.js"
export
default
{
export
default
{
// 顶部查询按钮
// 顶部查询按钮
...
@@ -364,13 +365,17 @@ export default {
...
@@ -364,13 +365,17 @@ export default {
// },
// },
getDetails
(
index
,
row
)
{
getDetails
(
index
,
row
)
{
debugger
;
debugger
;
Api
.
post
(
"getTrnNameByInr"
,
{
inr
:
row
[
'INR'
]
}).
then
((
res
)
=>
{
const
name
=
row
[
'交易名称'
];
if
(
res
.
respCode
==
SUCCESS
)
{
let
trnName
=
PubFun
.
getTrnNameByDesc
(
name
);
const
trnName
=
res
.
data
.
toLowerCase
();
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'
);
}
// 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');
// }
// });
},
},
...
...
src/model/Infltd/Event.js
View file @
7acd75c9
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils"
import
Utils
from
"~/utils"
import
PubFun
from
"~/utils/publicFun.js"
export
default
{
export
default
{
/*async onInfbutSearow() {
/*async onInfbutSearow() {
...
@@ -92,13 +93,18 @@ export default {
...
@@ -92,13 +93,18 @@ export default {
},
},
display
(
index
,
row
)
{
display
(
index
,
row
)
{
debugger
;
debugger
;
Api
.
post
(
"getTrnNameByInr"
,
{
inr
:
row
[
'INR'
]
}).
then
((
res
)
=>
{
const
name
=
row
[
'交易名称'
];
if
(
res
.
respCode
==
SUCCESS
)
{
let
trnName
=
PubFun
.
getTrnNameByDesc
(
name
);
const
trnName
=
res
.
data
.
toLowerCase
();
let
viewurl
=
"/#/display/"
+
trnName
+
"?trn="
+
row
[
'INR'
]
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'
);
window
.
open
(
viewurl
,
'newwindow'
,
'height=1500,width=1200,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
onInfbutDsp
(
row
)
{
async
onInfbutDsp
(
row
)
{
...
...
src/utils/publicFun.js
View file @
7acd75c9
...
@@ -3,7 +3,16 @@
...
@@ -3,7 +3,16 @@
* UUID
* UUID
*/
*/
export
function
getUUID
()
{
const
map
=
{
'开立信用证'
:
'ditopn'
,
'到单'
:
'ditdck'
,
'付款'
:
'bdtset'
,
'Incoming payment'
:
'cptopn'
,
'Outgoing payment'
:
'cptadv'
}
var
PubFun
=
{
getUUID
:
function
()
{
var
s
=
[];
var
s
=
[];
var
hexDigits
=
"0123456789abcdef"
;
var
hexDigits
=
"0123456789abcdef"
;
for
(
var
i
=
0
;
i
<
36
;
i
++
){
for
(
var
i
=
0
;
i
<
36
;
i
++
){
...
@@ -14,4 +23,12 @@ export function getUUID() {
...
@@ -14,4 +23,12 @@ export function getUUID() {
s
[
8
]
=
s
[
13
]
=
s
[
18
]
=
s
[
23
]
=
""
;
s
[
8
]
=
s
[
13
]
=
s
[
18
]
=
s
[
23
]
=
""
;
return
s
.
join
(
""
);
return
s
.
join
(
""
);
},
getTrnNameByDesc
:
function
(
descri
){
return
map
[
descri
]
||
''
;
}
}
}
export
default
PubFun
;
vue.config.js
View file @
7acd75c9
...
@@ -47,27 +47,26 @@ module.exports = {
...
@@ -47,27 +47,26 @@ 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
}
}
},
},
/**
/**
* ocr智能识别服务
* ocr智能识别服务
*/
*/
'/ocr/'
:
{
'/ocr/'
:
{
target
:
'http://192.168.0.110:5010'
,
//
target: 'http://192.168.0.110:5010',
//
target: 'http://127.0.0.1:5000',
target
:
'http://127.0.0.1:5000'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
'^/ocr'
:
'/'
'^/ocr'
:
'/'
...
...
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