Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
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
王衍超
rbc-demo
Commits
1361e00f
Commit
1361e00f
authored
Feb 23, 2022
by
Joey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(@gms/gms-plugin-billexpand): 凭证按钮展示凭证逻辑修改
parent
be83a1a9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
21 deletions
+20
-21
leafletGenerationTYAction.js
...billexpand/src/query-actions/leafletGenerationTYAction.js
+4
-3
summaryGenerationTYAction.js
...billexpand/src/query-actions/summaryGenerationTYAction.js
+4
-3
undoGenerationTYAction.js
...in-billexpand/src/query-actions/undoGenerationTYAction.js
+8
-12
voucherQueryTYAction.js
...ugin-billexpand/src/query-actions/voucherQueryTYAction.js
+4
-3
No files found.
develop/@gms/gms-plugin-billexpand/src/query-actions/leafletGenerationTYAction.js
View file @
1361e00f
...
...
@@ -54,9 +54,7 @@ export default {
generateVoucher
(
list
,
context
){
GMS
.
$http
.
post
(
'/mechanismVchr/singleCreateVchr'
,
list
).
then
(
res
=>
{
if
(
res
.
status
===
200
)
{
if
(
res
.
data
.
data
.
showVoucher
){
//展示凭证
GMS
.
vbus
.
$emit
(
'previewVoucher'
,
res
.
data
.
data
);
}
else
{
if
(
res
.
data
.
data
&&
typeof
res
.
data
.
data
==
'object'
&&
res
.
data
.
data
.
showVoucher
===
false
)
{
if
(
res
.
data
.
data
.
successVchrs
&&
res
.
data
.
data
.
successVchrs
.
length
>
0
){
GMS
.
vbus
.
$emit
(
'custom-query-refresh'
);
GMS
.
vbus
.
$emit
(
'tab-count-refresh'
);
...
...
@@ -67,6 +65,9 @@ export default {
onOk
:
()
=>
{},
});
}
else
{
GMS
.
vbus
.
$emit
(
'previewVoucherTY'
,
res
.
data
.
data
);
}
}
})
},
...
...
develop/@gms/gms-plugin-billexpand/src/query-actions/summaryGenerationTYAction.js
View file @
1361e00f
...
...
@@ -54,9 +54,7 @@ export default {
generateVoucher
(
list
,
context
){
GMS
.
$http
.
post
(
'/mechanismVchr/allCreateVchr'
,
list
).
then
(
res
=>
{
if
(
res
.
status
===
200
)
{
if
(
res
.
data
.
data
.
showVoucher
){
//展示凭证
GMS
.
vbus
.
$emit
(
'previewVoucher'
,
res
.
data
.
data
);
}
else
{
if
(
res
.
data
.
data
&&
typeof
res
.
data
.
data
==
'object'
&&
res
.
data
.
data
.
showVoucher
===
false
)
{
if
(
res
.
data
.
data
.
successVchrs
&&
res
.
data
.
data
.
successVchrs
.
length
>
0
){
GMS
.
vbus
.
$emit
(
'custom-query-refresh'
);
GMS
.
vbus
.
$emit
(
'tab-count-refresh'
);
...
...
@@ -67,6 +65,9 @@ export default {
onOk
:
()
=>
{},
});
}
else
{
GMS
.
vbus
.
$emit
(
'previewVoucherTY'
,
res
.
data
.
data
);
}
}
})
},
...
...
develop/@gms/gms-plugin-billexpand/src/query-actions/undoGenerationTYAction.js
View file @
1361e00f
...
...
@@ -26,19 +26,15 @@ export default {
deleteVchrAsync
(
list
,
context
){
GMS
.
$http
.
post
(
'/mechanismVchr/deleteVchr'
,
list
).
then
(
res
=>
{
if
(
res
.
status
===
200
)
{
if
(
res
.
data
.
data
.
showVoucher
){
//展示凭证
GMS
.
vbus
.
$emit
(
'previewVoucher'
,
res
.
data
.
data
);
}
else
{
if
(
res
.
data
.
data
.
successVchrs
&&
res
.
data
.
data
.
successVchrs
.
length
>
0
){
GMS
.
vbus
.
$emit
(
'custom-query-refresh'
);
GMS
.
vbus
.
$emit
(
'tab-count-refresh'
);
}
context
.
dom
.
$Modal
.
warning
({
title
:
'信息提示'
,
content
:
res
.
data
.
data
.
processMsg
,
onOk
:
()
=>
{},
});
if
(
res
.
data
.
data
.
successVchrs
&&
res
.
data
.
data
.
successVchrs
.
length
>
0
){
GMS
.
vbus
.
$emit
(
'custom-query-refresh'
);
GMS
.
vbus
.
$emit
(
'tab-count-refresh'
);
}
context
.
dom
.
$Modal
.
warning
({
title
:
'信息提示'
,
content
:
res
.
data
.
data
.
processMsg
,
onOk
:
()
=>
{},
});
}
})
}
...
...
develop/@gms/gms-plugin-billexpand/src/query-actions/voucherQueryTYAction.js
View file @
1361e00f
...
...
@@ -32,15 +32,16 @@ export default {
showVchrAsync
(
obj
,
context
){
GMS
.
$http
.
post
(
'/mechanismVchr/showVchr'
,
obj
).
then
(
res
=>
{
if
(
res
.
status
===
200
)
{
if
(
res
.
data
.
data
){
//展示凭证
GMS
.
vbus
.
$emit
(
'previewVoucherTY'
,
res
.
data
.
data
);
}
else
{
if
(
res
.
data
.
data
&&
typeof
res
.
data
.
data
==
'object'
&&
res
.
data
.
data
.
showVoucher
===
false
)
{
context
.
dom
.
$Modal
.
warning
({
title
:
'信息提示'
,
content
:
res
.
data
.
data
.
processMsg
,
onOk
:
()
=>
{},
});
}
else
{
GMS
.
vbus
.
$emit
(
'previewVoucherTY'
,
res
.
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