Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b31a0bfb
authored
2023-08-30 09:21:30 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
打印设计
1 parent
4cc1df44
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
src/views/system/dymbgl/components/editDialog.vue
src/views/system/dymbgl/components/editDialog.vue
View file @
b31a0bf
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-
29 14:13:09
* @LastEditTime: 2023-08-
30 08:40:36
-->
<
template
>
<el-form
ref=
"ruleForm"
:model=
"ruleForm"
label-width=
"100px"
:rules=
"rules"
>
...
...
@@ -160,7 +160,6 @@
this
.
ruleForm
=
item
;
this
.
editFlag
=
true
;
},
//设计打印模板
/**
* @description: 设计打印模板
* @author: renchao
...
...
@@ -169,6 +168,10 @@
let
that
=
this
;
that
.
loadStatus
=
'1'
;
let
LODOP
=
getLodop
(
document
.
getElementById
(
'LODOP_OB'
),
document
.
getElementById
(
'LODOP_EM'
));
if
([
'zsdy'
,
'zmdy'
].
includes
(
that
.
ruleForm
.
tmpno
))
{
LODOP
.
SET_PRINT_PAGESIZE
(
2
,
0
,
0
,
"B4"
);
// 设置纸张大小为 B4
LODOP
.
SET_PRINT_MODE
(
"RESELECT_ORIENT"
,
true
);
// 手动设置方向
}
LODOP
.
ADD_PRINT_DATA
(
"ProgramData"
,
this
.
ruleForm
.
tmpcontent
);
//装载模板
//窗口关闭后,回调函数中保存的设计代码
if
(
LODOP
.
CVERSION
)
...
...
@@ -192,10 +195,6 @@
that
.
loadStatus
=
'2'
;
},
1000
);
};
if
([
'zsdy'
,
'zmdy'
].
includes
(
that
.
ruleForm
.
tmpno
))
{
LODOP
.
SET_PRINT_PAGESIZE
(
2
,
0
,
0
,
"B4"
);
// LODOP.SET_PRINT_MODE("RESELECT_ORIENT", true); // 手动设置方向
}
LODOP
.
PRINT_DESIGN
();
//打印设计或者打印维护需要放到最后
}
}
...
...
Please
register
or
sign in
to post a comment