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
1facd21c
Commit
1facd21c
authored
Dec 31, 2021
by
liushikai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://114.115.138.98:8900/fukai/vue-gjjs
parents
0e1680bb
b14ab33e
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
222 additions
and
42 deletions
+222
-42
Event.js
src/model/Infbdd/Event.js
+18
-0
Event.js
src/model/Trnrel/Event.js
+3
-5
index.vue
src/views/Business/Bopsel/index.vue
+2
-2
BusNavbar.vue
src/views/Business/Infbdd/BusNavbar.vue
+117
-0
Infsea.vue
src/views/Business/Infbdd/Infsea.vue
+76
-32
index.vue
src/views/Business/Infbdd/index.vue
+4
-3
index.vue
src/views/TaskList/index.vue
+2
-0
No files found.
src/model/Infbdd/Event.js
View file @
1facd21c
...
...
@@ -110,5 +110,22 @@ export default {
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
handleReset
()
{
},
async
handleSearch
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"infbut.searow"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
stmData
.
data
=
rtnmsg
.
data
.
infbut_dspstm
.
rows
;
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
}
\ No newline at end of file
src/model/Trnrel/Event.js
View file @
1facd21c
...
...
@@ -108,13 +108,11 @@ export default {
const
selDst
=
"trncorco.trnstm"
//列表对应后台模型中的stream
let
params
=
{
selDst
:
selDst
,
selIds
:
selIds
};
debugger
;
let
initRtnmsg
=
await
this
.
init
();
if
(
initRtnmsg
.
respCode
==
SUCCESS
){
let
rtnmsg
=
await
this
.
executeRule
(
"relrow"
,
params
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
debugger
;
let
errorMsg
=
""
;
let
fieldErrorsFlag
=
(
JSON
.
stringify
(
rtnmsg
.
fieldErrors
)
==
"{}"
);
if
(
!
fieldErrorsFlag
){
...
...
@@ -158,7 +156,7 @@ export default {
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'复核失败!错误信息['
+
errorMsg
+
']'
});
}
}
})
...
...
src/views/Business/Bopsel/index.vue
View file @
1facd21c
...
...
@@ -112,8 +112,8 @@ export default {
that
.
init
(
that
.
model
).
then
((
res
)
=>
{
//TODO 处理数据逻辑
that
.
model
=
Utils
.
copyValueFromVO
(
that
.
model
,
res
.
data
);
this
.
$refs
.
selp
.
selpHandleSearch
();
this
.
$refs
.
errp
.
errpHandleSearch
();
//
this.$refs.selp.selpHandleSearch();
//
this.$refs.errp.errpHandleSearch();
});
},
};
...
...
src/views/Business/Infbdd/BusNavbar.vue
0 → 100644
View file @
1facd21c
<
template
>
<div
class=
"busnavbar"
>
<div
class=
"busnavbar-items"
>
<c-button
v-for=
"(item,index) in codeList"
v-bind:key=
"index"
@
click
.
native=
"onNarBtnClick(item.code,index)"
:title=
"item.title"
:disabled=
"item.isDis==='N'"
>
{{
item
.
label
}}
</c-button>
</div>
</div>
</
template
>
<
script
>
import
Api
from
"~/service/Api"
import
CodeTable
from
"~/config/CodeTable"
import
Litsel
from
"~/model/Ditsel"
import
CommonProcess
from
"~/mixin/CommonProcess"
export
default
{
props
:[
"ownref"
],
components
:{
},
mixins
:
[
CommonProcess
],
// 里面包含了Default、Check等的公共处理
data
(){
return
{
trnName
:
'ditsel'
,
model
:
new
Litsel
().
data
,
navcode
:[
{
code
:
""
,
label
:
""
,
isDis
:
""
,
title
:
""
},
],
}
},
methods
:{
//各入口按钮请求
async
onNarBtnClick
(
code
,
i
){
this
.
model
.
cfgfil
.
subtrn1
=
code
let
rtnmsg
=
await
this
.
executeRule
(
"cfgfil.hotsub3"
)
console
.
log
(
"cfgfil.code:"
+
this
.
model
.
cfgfil
.
subtrn1
);
if
(
rtnmsg
.
respCode
=
SUCCESS
){
this
.
$emit
(
"onChoose"
,
code
.
toLowerCase
());
}
else
{
}
},
},
computed
:{
codeList
(){
//将model中的数据映射成数组
return
this
.
navcode
.
map
(
item
=>
{
let
entireItem
=
{...
item
}
//TODO 根据数据判断当前的code,是否可以继续
// entireItem.enable = item.isDis
return
entireItem
})
}
},
watch
:{
"ownref"
:
async
function
(
n
,
o
){
if
(
!
this
.
ownref
){
console
.
log
(
"11111"
)
// onTigger()
return
;
}
}
},
mounted
(){
this
.
$nextTick
(
function
(){
this
.
$on
(
'childmethods'
,
async
function
(){
//请求按钮数据
//this.model.didgrp.rec.ownref = 'KZ3500210540AA'
this
.
model
.
bddgrp
.
rec
.
ownref
=
this
.
ownref
console
.
log
(
"ownref:"
+
this
.
ownref
);
// let rtnmsg = await this.executeRule("didgrp.rec.ownref");//didgrp_rec_ownref
let
rtnmsg0
=
await
this
.
executeRule
(
"bddgrp.rec.ownref"
);
//cfgfil.hotreg3
if
(
rtnmsg0
.
respCode
=
SUCCESS
){
this
.
updateModel
(
rtnmsg0
.
data
)
let
rtnmsg
=
await
this
.
executeRule
(
"cfgfil.hotreg3"
);
//cfgfil.hotreg3
if
(
rtnmsg
.
respCode
=
SUCCESS
){
//重置数组
this
.
navcode
=
[]
this
.
updateModel
(
rtnmsg
.
data
)
//this.model.cfgfil.btnstm = rtnmsg.data.cfgfil_btnstm.rows
//给inr赋值,后面弹窗里面的按钮请求会用到
//this.model.didgrp.rec.inr = rtnmsg.data.didgrp_rec_inr
const
length
=
this
.
model
.
cfgfil
.
btnstm
.
rows
.
length
let
btnStr
=
this
.
model
.
cfgfil
.
btnstm
.
rows
for
(
let
i
=
0
;
i
<
length
;
i
++
){
//获取数组中每行的数据
let
arr
=
btnStr
[
i
].
split
(
"
\
t"
);
let
newList
=
{
code
:
arr
[
0
],
label
:
arr
[
1
],
//isDis:arr[2],
isDis
:
'Y'
,
title
:
arr
[
3
]
}
//添加到navcode数组中
this
.
navcode
.
splice
(
i
,
0
,
newList
)
}
}
}
})
})
}
}
</
script
>
<
style
>
.busnavbar-items
{
/*TODO完善按钮间隔等样式 */
}
</
style
>
src/views/Business/Infbdd/Infsea.vue
View file @
1facd21c
...
...
@@ -222,23 +222,56 @@
</c-col>
</c-row> -->
<c-row
style=
"padding: 0 10px 0 10px"
>
<el-row>
<c-col
:span=
"24"
>
<c-istream-table
:list=
"stmData.data"
:columns=
"stmData.columns"
>
<el-table-column
fixed=
"right"
prop=
"op"
label=
"OP"
width=
"120px"
>
<el-table-column
fixed=
"right"
prop=
"op"
label=
"操作"
width=
"150px"
>
<
template
slot=
"header"
>
<c-col
:span=
"11"
style=
"text-align: left"
><span>
操作
</span></c-col>
<c-col
:span=
"12"
style=
"text-align: right"
><c-button
icon=
"el-icon-s-tools"
></c-button
></c-col>
<c-col
:span=
"11"
style=
"text-align:left"
><span>
操作
</span></c-col>
<c-col
:span=
"12"
style=
"text-align:right"
><c-button
icon=
"el-icon-s-tools"
></c-button></c-col>
</
template
>
<
template
slot-scope=
"scope"
>
<a
href=
"javascript:void(0)"
@
click=
"continueEdit(scope.row)"
>
操作
</a
<c-button
style=
"margin-left: 0"
size=
"small"
>
详情
</c-button>
<c-button
style=
"margin-left: 0"
size=
"small"
type=
"primary"
@
click=
"getButtons(scope.row['Reference'])"
>
处理
</c-button>
<!--
<c-button
style=
"margin-left: 0"
size=
"small"
type=
"primary"
@
click=
"getDitSelInfo(scope.row['Reference'])"
>
info
</c-button>
-->
</
template
>
</el-table-column>
</c-istream-table>
</c-row>
</c-col>
</el-row>
<el-dialog
:visible
.
sync=
"initdialog"
:title=
"'交易列表'"
append-to-body
>
<div
class=
"m-list-btns"
>
<m-busbtn
ref=
"childs"
:ownref=
"ownref"
@
onChoose=
"onChoose"
>
11
</m-busbtn>
</div>
</el-dialog>
</div>
</template>
<
script
>
...
...
@@ -246,29 +279,33 @@ import Api from "~/service/Api";
import
CommonProcess
from
"~/mixin/CommonProcess"
;
import
CodeTable
from
"~/config/CodeTable"
;
import
Event
from
"~/model/Infbdd/Event"
;
import
BusNavbar
from
"~/views/Business/Infbdd/BusNavbar"
export
default
{
inject
:
[
"root"
],
props
:
[
"model"
,
"codes"
],
mixins
:
[
CommonProcess
],
components
:{
'm-busbtn'
:
BusNavbar
},
data
()
{
return
{
ownref
:
""
,
initdialog
:
false
,
stmData
:
{
columns
:
[
'1 1 "Reference" 100 '
,
'2 2 "Resp
.
User" 100 '
,
'
1 3 "
Party Number" 120'
,
'
2
4 "Applicant" 100'
,
'
1 5 "
Party Number" 120'
,
'
2
6 "Beneficiary" 120'
,
'
1
7 "Party Number" 120'
,
'
2
8 "Presenting Bank" 150'
,
'
1
9 "Opened" 80'
,
'
2
10 "Closed" 80'
,
'1
11 "
Cur" 70'
,
'
2 12 "Cur
" 70'
,
'1
13 "Doc.Amount
" 100'
,
'
2 14 "Open.
Amount" 120'
,
'2 2 "Resp User" 100 '
,
'
5 3 "Applicant
Party Number" 120'
,
'
6
4 "Applicant" 100'
,
'
7 5 "Beneficiary
Party Number" 120'
,
'
8
6 "Beneficiary" 120'
,
'
9
7 "Party Number" 120'
,
'
10
8 "Presenting Bank" 150'
,
'
3
9 "Opened" 80'
,
'
4
10 "Closed" 80'
,
'1
1 11 "Doc Amount
Cur" 70'
,
'
12 12 "Doc Amount
" 70'
,
'1
3 13 "Open Amount Cur
" 100'
,
'
14 14 "Open
Amount" 120'
,
],
data
:
[],
},
...
...
@@ -276,17 +313,24 @@ export default {
},
methods
:
{
...
Event
,
handleSearch
(
callback
)
{
setTimeout
(()
=>
{
this
.
$notify
.
info
({
title
:
"提示"
,
message
:
"模拟post请求控制按钮状态"
,
});
// 执行子组件回调函数控制按钮状态
callback
();
},
1000
);
async
getButtons
(
ownref
){
this
.
initdialog
=
true
this
.
ownref
=
ownref
console
.
log
(
"ownref:"
+
ownref
);
setTimeout
(()
=>
{
this
.
$refs
.
childs
.
$emit
(
"childmethods"
)
},
10
)
},
handleReset
()
{},
async
onChoose
(
code
){
//跳转交易
this
.
$router
.
history
.
push
(
"/business/"
+
code
)
this
.
initdialog
=
false
}
,
async
getDitSelInfo
(
code
){
//跳转交易
this
.
$router
.
history
.
push
(
"/business/"
+
code
)
this
.
initdialog
=
false
}
},
created
:
function
()
{},
};
...
...
src/views/Business/Infbdd/index.vue
View file @
1facd21c
...
...
@@ -5,9 +5,9 @@
<!--
<c-tabs
v-model=
"tabVal"
ref=
"elment"
type=
"card"
@
tab-click=
"tabClick"
class=
"infbddTab"
>
-->
<!--
<el-tab-pane
label=
"查询信息"
name=
"infsea"
>
-->
<
!--
<c-content>
--
>
<
c-content
>
<m-infsea
:model=
"model"
:codes=
"codes"
/>
<
!--
</c-content>
--
>
<
/c-content
>
<!--
</el-tab-pane>
-->
<!--
<el-tab-pane
label=
"内容"
name=
"ovwp"
>
...
...
@@ -65,7 +65,7 @@
<el-tab-pane
label=
"Order"
name=
"ordpan"
>
<m-ordpan
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
-->
<!--
</c-tabs>
-->
</el-form>
</div>
</
template
>
...
...
@@ -140,6 +140,7 @@
let
rtnmsg
=
await
this
.
init
({})
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
updateModel
(
rtnmsg
.
data
)
}
else
{
...
...
src/views/TaskList/index.vue
View file @
1facd21c
...
...
@@ -36,7 +36,9 @@
<t-sptbrk
/>
</el-tab-pane>
<el-tab-pane
label=
"到期提示"
name=
"diasel"
>
<c-content>
<t-diasel/>
</c-content>
</el-tab-pane>
</c-tabs>
</div>
...
...
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