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
b5c58b4a
Commit
b5c58b4a
authored
Jan 06, 2022
by
liushikai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待经办自定义列添加全选
parent
e5acc24d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
77 deletions
+63
-77
Event.js
src/model/Trnrel/Event.js
+28
-19
Menu.vue
src/views/Business/Sptsel/Menu.vue
+34
-57
Inftrnps.vue
src/views/Business/Trnrel/Inftrnps.vue
+1
-1
No files found.
src/model/Trnrel/Event.js
View file @
b5c58b4a
...
@@ -86,7 +86,7 @@ export default {
...
@@ -86,7 +86,7 @@ export default {
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
},
},
async
onHandle
(
idx
,
row
)
{
async
onHandle
(
idx
,
row
)
{
let
viewurl
=
"/review/ditopn"
;
let
viewurl
=
"/review/ditopn"
;
...
@@ -94,7 +94,7 @@ export default {
...
@@ -94,7 +94,7 @@ export default {
let
pageId
=
this
.
model
.
pageId
;
let
pageId
=
this
.
model
.
pageId
;
debugger
;
debugger
;
this
.
$router
.
push
({
path
:
viewurl
,
query
:{
routeParams
:
{
process
:
"1"
,
commitFlag
:
"1"
},
trn
:
row
[
'INR'
],
idx
:
idx
,
pageId
:
pageId
}
});
this
.
$router
.
push
({
path
:
viewurl
,
query
:
{
routeParams
:
{
process
:
"1"
,
commitFlag
:
"1"
},
trn
:
row
[
'INR'
],
idx
:
idx
,
pageId
:
pageId
}
});
},
},
...
@@ -103,8 +103,8 @@ export default {
...
@@ -103,8 +103,8 @@ export default {
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(
async
()
=>
{
}).
then
(
async
()
=>
{
const
selIds
=
[
idx
+
1
];
//rowno选中行
const
selIds
=
[
idx
+
1
];
//rowno选中行
const
selDst
=
"trncorco.trnstm"
//列表对应后台模型中的stream
const
selDst
=
"trncorco.trnstm"
//列表对应后台模型中的stream
let
params
=
{
selDst
:
selDst
,
selIds
:
selIds
};
let
params
=
{
selDst
:
selDst
,
selIds
:
selIds
};
...
@@ -115,16 +115,16 @@ export default {
...
@@ -115,16 +115,16 @@ export default {
let
errorMsg
=
""
;
let
errorMsg
=
""
;
let
fieldErrorsFlag
=
(
JSON
.
stringify
(
rtnmsg
.
fieldErrors
)
==
"{}"
);
let
fieldErrorsFlag
=
(
JSON
.
stringify
(
rtnmsg
.
fieldErrors
)
==
"{}"
);
if
(
!
fieldErrorsFlag
)
{
if
(
!
fieldErrorsFlag
)
{
let
errorMsgkey
=
""
;
let
errorMsgkey
=
""
;
let
errorMsgVal
=
""
;
let
errorMsgVal
=
""
;
for
(
const
key
in
rtnmsg
.
fieldErrors
)
{
for
(
const
key
in
rtnmsg
.
fieldErrors
)
{
errorMsgkey
=
key
;
errorMsgkey
=
key
;
errorMsgVal
=
rtnmsg
.
fieldErrors
[
key
];
errorMsgVal
=
rtnmsg
.
fieldErrors
[
key
];
}
}
errorMsg
=
errorMsgkey
+
':'
+
errorMsgVal
;
errorMsg
=
errorMsgkey
+
':'
+
errorMsgVal
;
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'复核失败!错误信息['
+
errorMsg
+
']'
});
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'复核失败!错误信息['
+
errorMsg
+
']'
});
}
else
{
}
else
{
this
.
$notify
({
this
.
$notify
({
title
:
'成功'
,
title
:
'成功'
,
message
:
'复核成功'
,
message
:
'复核成功'
,
...
@@ -142,18 +142,18 @@ export default {
...
@@ -142,18 +142,18 @@ export default {
else
{
else
{
let
errorMsg
=
""
;
let
errorMsg
=
""
;
let
fieldErrorsFlag
=
(
JSON
.
stringify
(
rtnmsg
.
fieldErrors
)
==
"{}"
);
let
fieldErrorsFlag
=
(
JSON
.
stringify
(
rtnmsg
.
fieldErrors
)
==
"{}"
);
if
(
!
fieldErrorsFlag
)
{
if
(
!
fieldErrorsFlag
)
{
let
errorMsgkey
=
""
;
let
errorMsgkey
=
""
;
let
errorMsgVal
=
""
;
let
errorMsgVal
=
""
;
for
(
const
key
in
rtnmsg
.
fieldErrors
)
{
for
(
const
key
in
rtnmsg
.
fieldErrors
)
{
errorMsgkey
=
key
;
errorMsgkey
=
key
;
errorMsgVal
=
rtnmsg
.
fieldErrors
[
key
];
errorMsgVal
=
rtnmsg
.
fieldErrors
[
key
];
}
}
errorMsg
=
errorMsgkey
+
':'
+
errorMsgVal
;
errorMsg
=
errorMsgkey
+
':'
+
errorMsgVal
;
}
else
if
(
rtnmsg
.
respMsg
)
{
}
else
if
(
rtnmsg
.
respMsg
)
{
errorMsg
=
rtnmsg
.
respMsg
;
errorMsg
=
rtnmsg
.
respMsg
;
}
}
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'复核失败!错误信息['
+
errorMsg
+
']'
});
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'复核失败!错误信息['
+
errorMsg
+
']'
});
}
}
...
@@ -355,20 +355,29 @@ export default {
...
@@ -355,20 +355,29 @@ export default {
// })
// })
// }
// }
const
res
=
await
this
.
executeRule
(
"searow"
)
const
res
=
await
this
.
executeRule
(
"searow"
)
const
arr
=
[];
const
arr
=
[];
res
.
data
.
trncorco_trnstm
.
rows
.
forEach
(
element
=>
{
res
.
data
.
trncorco_trnstm
.
rows
.
forEach
(
element
=>
{
switch
(
element
.
charAt
(
0
))
{
switch
(
element
.
charAt
(
0
))
{
case
'W'
:
case
'W'
:
arr
.
push
(
"Waiting"
+
element
.
substring
(
1
));
arr
.
push
(
"Waiting"
+
element
.
substring
(
1
));
break
;
break
;
case
'C'
:
case
'C'
:
arr
.
push
(
"Correct"
+
element
.
substring
(
1
));
arr
.
push
(
"Correct"
+
element
.
substring
(
1
));
break
;
break
;
case
'P'
:
case
'P'
:
arr
.
push
(
"Picked up"
+
element
.
substring
(
1
))
;
arr
.
push
(
"Picked up"
+
element
.
substring
(
1
))
;
break
;
break
;
case
'N'
:
case
'N'
:
arr
.
push
(
"Rejected"
+
element
.
substring
(
1
))
;
arr
.
push
(
"Rejected"
+
element
.
substring
(
1
));
break
;
case
'E'
:
arr
.
push
(
"Entered"
+
element
.
substring
(
1
));
break
;
case
'X'
:
arr
.
push
(
"External"
+
element
.
substring
(
1
));
break
;
case
'M'
:
arr
.
push
(
"Closed"
+
element
.
substring
(
1
));
break
;
break
;
default
:
default
:
arr
.
push
(
element
);
arr
.
push
(
element
);
...
@@ -377,7 +386,7 @@ export default {
...
@@ -377,7 +386,7 @@ export default {
});
});
that
.
$refs
.
inftrnps
.
stmData
.
data
=
arr
;
that
.
$refs
.
inftrnps
.
stmData
.
data
=
arr
;
this
.
model
.
trncorco
.
trnstm
=
res
.
data
.
trncorco_trnstm
;
this
.
model
.
trncorco
.
trnstm
=
res
.
data
.
trncorco_trnstm
;
if
(
res
.
data
.
trncorco_trnstm
.
rows
.
length
==
0
)
{
if
(
res
.
data
.
trncorco_trnstm
.
rows
.
length
==
0
)
{
this
.
$notify
({
this
.
$notify
({
title
:
'成功'
,
title
:
'成功'
,
message
:
'搜索完毕,无满足条件记录'
,
message
:
'搜索完毕,无满足条件记录'
,
...
...
src/views/Business/Sptsel/Menu.vue
View file @
b5c58b4a
...
@@ -332,30 +332,20 @@
...
@@ -332,30 +332,20 @@
append-to-body
append-to-body
>
>
<el-form-item
label-width=
"0"
>
<el-form-item
label-width=
"0"
>
<el-checkbox
v-model=
"setColumn.column1.value"
>
交易代码
</el-checkbox>
<el-checkbox-group
v-model=
"columnGroup"
@
change=
"handleColumnChange"
>
<el-checkbox
v-model=
"setColumn.column2.value"
>
业务编号
</el-checkbox>
<el-checkbox
<el-checkbox
v-model=
"setColumn.column3.value"
>
交易名称
</el-checkbox>
v-for=
"item in setColumn"
<el-checkbox
v-model=
"setColumn.column4.value"
>
状态
</el-checkbox>
:key=
"item.label"
<el-checkbox
v-model=
"setColumn.column5.value"
>
报文类型
</el-checkbox>
:label=
"item.index"
<el-checkbox
v-model=
"setColumn.column6.value"
>
对方银行BIC
</el-checkbox>
>
{{ item.label }}
</el-checkbox
<el-checkbox
v-model=
"setColumn.column7.value"
>
创建时间
</el-checkbox>
<el-checkbox
v-model=
"setColumn.column8.value"
>
币种
</el-checkbox>
<el-checkbox
v-model=
"setColumn.column9.value"
>
金额
</el-checkbox>
<el-checkbox
v-model=
"setColumn.column10.value"
>
创建人
</el-checkbox>
<el-checkbox
v-model=
"setColumn.column11.value"
>
当前操作柜员
</el-checkbox
>
>
<el-checkbox
v-model=
"setColumn.column12.value"
>
当前组别
</el-checkbox>
</el-checkbox-group>
<el-checkbox
v-model=
"setColumn.column13.value"
>
上次操作柜员
</el-checkbox
>
<el-checkbox
v-model=
"setColumn.column14.value"
>
来源
</el-checkbox>
<el-checkbox
v-model=
"setColumn.column15.value"
>
提示
</el-checkbox>
<el-checkbox
v-model=
"setColumn.column16.value"
>
信息提示
</el-checkbox>
</el-form-item>
</el-form-item>
<span
slot=
"footer"
>
<span
slot=
"footer"
>
<el-checkbox
class=
"cbClass"
v-model=
"selectAll"
@
change=
"setAll"
>
全选
</el-checkbox>
<el-checkbox
class=
"cbClass"
:indeterminate=
"isIndeterminate"
v-model=
"selectAll"
@
change=
"setAll"
<el-button
type=
"primary"
@
click=
"setColumnEvent"
>
保存
</el-button>
>
全选
</el-checkbox
>
<el-button
type=
"primary"
@
click=
"saveColumnEvent"
>
保存
</el-button>
</span>
</span>
</el-dialog>
</el-dialog>
<!-- <el-row style="margin-top: 2rem">
<!-- <el-row style="margin-top: 2rem">
...
@@ -420,6 +410,7 @@ export default {
...
@@ -420,6 +410,7 @@ export default {
setColumnFlg
:
false
,
setColumnFlg
:
false
,
saveColumnFlg
:
true
,
saveColumnFlg
:
true
,
selectAll
:
true
,
selectAll
:
true
,
isIndeterminate
:
false
,
transactionStatus
:
{
transactionStatus
:
{
busiNo
:
""
,
busiNo
:
""
,
modTimes
:
0
,
modTimes
:
0
,
...
@@ -428,24 +419,8 @@ export default {
...
@@ -428,24 +419,8 @@ export default {
earnCount
:
0
,
earnCount
:
0
,
earnAmt
:
0
,
earnAmt
:
0
,
},
},
setColumn
:
{
setColumn
:
[],
column1
:
{
index
:
1
,
value
:
true
},
columnGroup
:
[],
column2
:
{
index
:
2
,
value
:
true
},
column3
:
{
index
:
3
,
value
:
true
},
column4
:
{
index
:
4
,
value
:
true
},
column5
:
{
index
:
5
,
value
:
true
},
column6
:
{
index
:
6
,
value
:
true
},
column7
:
{
index
:
7
,
value
:
true
},
column8
:
{
index
:
8
,
value
:
true
},
column9
:
{
index
:
9
,
value
:
true
},
column10
:
{
index
:
10
,
value
:
true
},
column11
:
{
index
:
11
,
value
:
true
},
column12
:
{
index
:
12
,
value
:
true
},
column13
:
{
index
:
13
,
value
:
true
},
column14
:
{
index
:
14
,
value
:
true
},
column15
:
{
index
:
15
,
value
:
true
},
column16
:
{
index
:
16
,
value
:
true
},
},
stmData
:
{
stmData
:
{
columns
:
[
columns
:
[
'4 1 "交易代码" 70 '
,
'4 1 "交易代码" 70 '
,
...
@@ -489,6 +464,7 @@ export default {
...
@@ -489,6 +464,7 @@ export default {
// await this.handleSearch()
// await this.handleSearch()
// this.$store.commit("setTaskList", {key: "sptsel", val: this.stmData.data.length})
// this.$store.commit("setTaskList", {key: "sptsel", val: this.stmData.data.length})
},
},
methods
:
{
methods
:
{
sourceChangeEvent
(
val
)
{
sourceChangeEvent
(
val
)
{
this
.
sourceData
.
forEach
((
s
)
=>
{
this
.
sourceData
.
forEach
((
s
)
=>
{
...
@@ -501,29 +477,30 @@ export default {
...
@@ -501,29 +477,30 @@ export default {
clounmSetting
()
{
clounmSetting
()
{
this
.
setColumnFlg
=
true
;
this
.
setColumnFlg
=
true
;
},
},
s
et
ColumnEvent
()
{
s
ave
ColumnEvent
()
{
this
.
setColumnFlg
=
false
;
this
.
setColumnFlg
=
false
;
this
.
saveColumnFlg
=
false
;
this
.
saveColumnFlg
=
false
;
const
arr
=
[];
this
.
saveColumns
=
this
.
setColumn
.
filter
(
item
=>
item
.
value
).
map
(
item
=>
this
.
stmData
.
columns
[
item
.
index
]);
for
(
const
o
in
this
.
setColumn
)
{
},
if
(
this
.
setColumn
[
o
].
value
)
{
setAll
(
val
)
{
arr
.
push
(
this
.
stmData
.
columns
[
this
.
setColumn
[
o
].
index
-
1
]);
this
.
columnGroup
=
val
?
this
.
setColumn
.
map
((
item
)
=>
{
return
item
.
index
})
:
[];
}
this
.
isIndeterminate
=
false
;
}
this
.
saveColumns
=
arr
;
},
},
setAll
()
{
handleColumnChange
()
{
for
(
const
o
in
this
.
setColumn
)
{
this
.
selectAll
=
this
.
setColumn
.
length
===
this
.
columnGroup
.
length
;
if
(
this
.
selectAll
)
{
this
.
isIndeterminate
=
this
.
columnGroup
.
length
>
0
&&
this
.
columnGroup
.
length
<
this
.
setColumn
.
length
;
this
.
setColumn
[
o
].
value
=
true
;
}
else
{
this
.
setColumn
[
o
].
value
=
false
;
}
}
},
},
...
Event
,
...
Event
,
},
},
created
:
function
()
{},
created
:
function
()
{
this
.
setColumn
=
this
.
stmData
.
columns
.
map
((
item
,
index
)
=>
{
let
begIdx
=
item
.
indexOf
(
'"'
)
let
endIdx
=
item
.
indexOf
(
'"'
,
begIdx
+
1
)
let
label
=
item
.
substring
(
begIdx
+
1
,
endIdx
)
return
{
label
,
value
:
true
,
index
}
})
this
.
columnGroup
=
this
.
setColumn
.
map
((
item
)
=>
{
return
item
.
index
})
},
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
...
@@ -531,7 +508,7 @@ export default {
...
@@ -531,7 +508,7 @@ export default {
width
:
60px
;
width
:
60px
;
font-size
:
13px
;
font-size
:
13px
;
}
}
.cbClass
>>>
.el-checkbox__label
{
.cbClass
>>>
.el-checkbox__label
{
width
:
30px
;
width
:
30px
;
font-size
:
13px
;
font-size
:
13px
;
padding-left
:
5px
;
padding-left
:
5px
;
...
...
src/views/Business/Trnrel/Inftrnps.vue
View file @
b5c58b4a
...
@@ -549,7 +549,7 @@ export default {
...
@@ -549,7 +549,7 @@ export default {
'9 7 "签名要求" 70'
,
'9 7 "签名要求" 70'
,
'2 8 "签名状态" 70'
,
'2 8 "签名状态" 70'
,
'16 9 "经办柜员" 70'
,
'16 9 "经办柜员" 70'
,
'0 10 "业务状态"
7
0'
,
'0 10 "业务状态"
8
0'
,
'15 11 "业务机构" 120'
,
'15 11 "业务机构" 120'
,
],
],
data
:
[],
data
:
[],
...
...
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