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
7c9a48e4
authored
2023-11-22 13:40:53 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:打印设计
1 parent
f66da719
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
25 deletions
public/config.json
src/views/system/dymbgl/components/editDialog.vue
src/views/workflow/mixin/index.js
src/views/workflow/workFrame.vue
public/config.json
View file @
7c9a48e
...
...
@@ -2,5 +2,5 @@
"TITLE"
:
"不动产登记系统"
,
"SERVERAPI"
:
"/bdcdj"
,
"IDCARDURL"
:
"http://127.0.0.1:33088/function=get_idcard&readnew=0"
,
"adapter"
:
"dysqs"
"adapter"
:
"dysqs
-630222
"
}
\ No newline at end of file
...
...
src/views/system/dymbgl/components/editDialog.vue
View file @
7c9a48e
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-
09-01 08:20:51
* @LastEditTime: 2023-
11-21 16:30:43
-->
<
template
>
<el-form
ref=
"ruleForm"
:model=
"ruleForm"
label-width=
"100px"
:rules=
"rules"
>
...
...
@@ -67,7 +67,8 @@
tmpname
:
''
,
tmpfont
:
''
,
tmpfontsize
:
''
,
tmpcontent
:
''
tmpcontent
:
''
,
//模板1
tmpcontent2
:
''
,
//模板2
},
rules
:
{
tmpno
:
[
...
...
@@ -83,7 +84,6 @@
if
(
JSON
.
stringify
(
this
.
formData
)
!=
"{}"
)
this
.
getDetailInfo
(
this
.
formData
)
},
methods
:
{
//表单提交
/**
* @description: 表单提交
* @author: renchao
...
...
@@ -104,7 +104,6 @@
}
});
},
//新增
/**
* @description: 新增
* @author: renchao
...
...
src/views/workflow/mixin/index.js
View file @
7c9a48e
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-11-2
0 15:24:10
* @LastEditTime: 2023-11-2
2 13:18:47
*/
import
Vue
from
'vue'
import
{
getPrintTemplateByCode
}
from
"@/api/print"
;
...
...
@@ -135,25 +135,37 @@ export default {
break
;
case
"B6"
:
//根据编号获取对应信息
getPrintTemplateByCode
({
tmpno
:
'dysqs'
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
getPrintApplicationForm
(
this
.
currentSelectProps
.
bsmSldy
).
then
(
async
infoRes
=>
{
if
(
infoRes
.
code
==
200
)
{
console
.
log
(
adapter
({
name
:
2
}));
//打开模板设计
// let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
// LODOP.ADD_PRINT_DATA("ProgramData", res.result.tmpcontent); //装载模板
// //todo 调取后端接口获取数据 循环set
// for (let key in infoRes.result) {
// LODOP.SET_PRINT_STYLEA(key, "CONTENT", infoRes.result[key]);
// }
// LODOP.PREVIEW();
}
else
{
this
.
$message
.
error
(
infoRes
.
message
)
}
})
getPrintTemplateByCode
({
tmpno
:
Vue
.
prototype
.
BASE_API
.
adapter
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
getPrintTemplateByCode
({
tmpno
:
Vue
.
prototype
.
BASE_API
.
adapter
+
'-2'
}).
then
(
res1
=>
{
getPrintApplicationForm
(
this
.
currentSelectProps
.
bsmSldy
).
then
(
infoRes
=>
{
if
(
infoRes
.
code
===
200
)
{
let
LODOP
=
getLodop
(
document
.
getElementById
(
'LODOP_OB'
),
document
.
getElementById
(
'LODOP_EM'
));
// 装载第一个模板并设置数据
LODOP
.
ADD_PRINT_DATA
(
"ProgramData"
,
res
.
result
.
tmpcontent
);
for
(
let
key
in
infoRes
.
result
)
{
LODOP
.
SET_PRINT_STYLEA
(
key
,
"CONTENT"
,
infoRes
.
result
[
key
]);
}
// 手动分页
LODOP
.
NewPage
();
// 装载第二个模板并设置数据
LODOP
.
ADD_PRINT_DATA
(
"ProgramData"
,
res1
.
result
.
tmpcontent
);
for
(
let
key
in
res1
.
result
)
{
LODOP
.
SET_PRINT_STYLEA
(
key
,
"CONTENT"
,
res1
.
result
[
key
]);
}
// 进行预览
LODOP
.
PREVIEW
();
}
else
{
this
.
$message
.
error
(
infoRes
.
message
);
}
});
});
}
else
{
this
.
$message
.
error
(
res
.
message
)
this
.
$message
.
error
(
res
.
message
)
;
}
})
break
;
...
...
src/views/workflow/workFrame.vue
View file @
7c9a48e
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-11-2
0 13:43:0
6
* @LastEditTime: 2023-11-2
2 13:07:4
6
-->
<
template
>
<div
class=
"container"
>
...
...
Please
register
or
sign in
to post a comment