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
be35de58
Commit
be35de58
authored
Mar 09, 2022
by
qiaoyanqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
e3dc1da8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
pageType.js
develop/@gms/gms-plugin-billexpand/src/actions/pageType.js
+2
-7
printBill.vue
develop/@gms/gms-plugin-billexpand/src/control/printBill.vue
+10
-1
package.json
develop/@rbc/runner-bill-form/package.json
+1
-1
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/pageType.js
View file @
be35de58
...
...
@@ -6,10 +6,7 @@ export default {
if
(
param
.
name
.
split
(
'_action_gams'
))
{
actionName
=
param
.
name
.
split
(
'_action_gams'
)[
1
];
}
let
flag
=
GMS
.
queryObject
&&
GMS
.
queryObject
.
isReadOnly
?
true
:
compareData
(
GMS
.
oldBillData
,
bill
.
getBuillData
());
let
flag
=
compareData
(
GMS
.
oldBillData
,
bill
.
getBuillData
());
if
(
flag
)
{
this
.
getOtherPage
(
actionName
);
}
else
{
...
...
@@ -17,9 +14,7 @@ export default {
title
:
"信息提示"
,
content
:
"信息发生变化,确认切换?"
,
onOk
:
()
=>
{
if
(
Object
.
keys
(
param
.
param
).
length
>
0
)
{
this
.
getOtherPage
(
actionName
);
}
},
onCancel
:
()
=>
{
GMS
.
$hideContainer
.
$Message
[
"info"
]({
...
...
@@ -56,7 +51,7 @@ export default {
}
else
if
(
action
==
"last"
)
{
GMS
.
queryObject
.
index
=
data
.
data
.
count
-
1
;
}
let
state
=
GMS
.
queryObject
.
isReadOnly
?
'readOnly'
:
'
'
;
let
state
=
'readOnly
'
;
if
(
window
.
osConfig
.
appOpenMode
&&
window
.
osConfig
.
appOpenMode
==
"apploader"
...
...
develop/@gms/gms-plugin-billexpand/src/control/printBill.vue
View file @
be35de58
<
template
>
<div>
<Modal
v-model=
"modalShow"
title=
"打印"
@
on-ok=
"printAsync"
>
<Modal
v-model=
"modalShow"
title=
"打印"
>
<span>
打印模板
</span>
<Select
v-model=
"printTemplate"
clearable
>
<Option
...
...
@@ -10,6 +10,10 @@
>
{{
item
.
title
}}
</Option
>
</Select>
<div
slot=
"footer"
>
<Button
@
click=
"modalShow = false"
>
取消
</Button>
<Button
@
click=
"printAsync"
type=
"primary"
>
确定
</Button>
</div>
</Modal>
</div>
</
template
>
...
...
@@ -41,6 +45,10 @@ export default {
},
methods
:
{
printAsync
()
{
if
(
!
this
.
printTemplate
){
GMS
.
$hideContainer
.
$Message
.
info
(
'请选择打印模板'
);
return
;
}
//打印接口
return
new
Promise
((
resolve
,
reject
)
=>
{
// let url=`/gms/bill/print/${this.billDefineName}/${this.billId}/${this.printTemplate}`;
...
...
@@ -61,6 +69,7 @@ export default {
let
href
=
window
.
URL
.
createObjectURL
(
blob
);
//创建下载的链接
downloadElement
.
href
=
href
;
window
.
open
(
href
)
this
.
modalShow
=
false
;
// let routeData = GMS.routerManager.getRouter().resolve({
// path: "/showPrint",
// query: { src: href },
...
...
develop/@rbc/runner-bill-form/package.json
View file @
be35de58
{
"name"
:
"@rbc/runner-bill-form"
,
"version"
:
"0.0.
1
"
,
"version"
:
"0.0.
2
"
,
"scripts"
:
{
"build"
:
"vue-cli-service build"
,
"build-dev"
:
"vue-cli-service build --mode development"
,
...
...
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