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
ac61b2de
authored
2023-11-20 17:34:27 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:打印申请书
1 parent
76f3cd14
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
183 additions
and
157 deletions
public/config.json
src/utils/sqs/adapter.js
src/views/workflow/components/dialog/zsxg.vue
src/views/workflow/mixin/index.js
public/config.json
View file @
ac61b2d
{
"TITLE"
:
"不动产登记系统"
,
"SERVERAPI"
:
"/bdcdj"
,
"IDCARDURL"
:
"http://127.0.0.1:33088/function=get_idcard&readnew=0"
}
"IDCARDURL"
:
"http://127.0.0.1:33088/function=get_idcard&readnew=0"
,
"adapter"
:
"dysqs"
}
\ No newline at end of file
...
...
src/utils/sqs/adapter.js
0 → 100644
View file @
ac61b2d
/*
* @Description: 申请书
* @Autor: renchao
* @LastEditTime: 2023-11-20 15:42:45
*/
import
Vue
from
'vue'
// 创建不同的适配器策略
const
strategies
=
{
dysqs
:
function
(
data
)
{
return
data
.
name
;
},
default
:
function
(
data
)
{
return
data
;
}
};
// 创建适配器函数,并使用策略模式进行数据处理
export
default
function
adapter
(
data
)
{
const
type
=
Vue
.
prototype
.
BASE_API
.
adapter
;
const
selectedStrategy
=
strategies
[
type
]
||
strategies
[
'default'
];
return
selectedStrategy
(
data
);
}
\ No newline at end of file
src/views/workflow/components/dialog/zsxg.vue
View file @
ac61b2d
...
...
@@ -12,148 +12,150 @@
</el-tab-pane>
</el-tabs>
<el-empty
description=
"暂无数据"
v-if=
"headTabBdcqz.length == 0 && noData"
></el-empty>
<div
style=
"height:540px"
>
<el-form
class=
"zs"
:model=
"bdcqz"
v-if=
"this.bdcqz.bdcqzlx==1"
ref=
"ruleForm"
label-width=
"100px"
>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"权利人"
>
<el-input
v-model=
"bdcqz.qlr"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"共有情况"
>
<el-select
v-model=
"bdcqz.gyqk"
class=
"width100"
placeholder=
"请选择"
>
<el-option
v-for=
"item in gyqkList"
:key=
"item.dcode"
:label=
"item.dname"
:value=
"item.dcode"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"坐落"
>
<el-input
v-model=
"bdcqz.zl"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"不动产单元号"
>
<el-input
v-model=
"bdcqz.bdcdyh"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"权利类型"
>
<el-input
v-model=
"bdcqz.qllx"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"权利性质 "
>
<el-input
v-model=
"bdcqz.qlxz"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"用途"
>
<el-input
v-model=
"bdcqz.yt"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"面积"
>
<el-input
v-model=
"bdcqz.mj"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"使用期限 "
>
<el-input
v-model=
"bdcqz.syqx"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"权利其他状况"
>
<el-input
v-model=
"bdcqz.qlqtzk"
:rows=
"4"
type=
"textarea"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"附记"
>
<el-input
v-model=
"bdcqz.fj"
:rows=
"4"
type=
"textarea"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-form
:model=
"bdcqz"
class=
"zm"
v-else
ref=
"ruleForm"
label-width=
"110px"
>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"证明权利或事项"
>
<el-input
v-model=
"bdcqz.zmqlhsx"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"权利人(申请人)"
>
<el-input
v-model=
"bdcqz.qlr"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"义务人"
>
<el-input
v-model=
"bdcqz.ywr"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"坐落"
>
<el-input
v-model=
"bdcqz.zl"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"不动产单元号"
>
<el-input
v-model=
"bdcqz.bdcdyh"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"其他状况"
>
<el-input
v-model=
"bdcqz.qlqtzk"
:rows=
"6"
type=
"textarea"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"附记"
>
<el-input
v-model=
"bdcqz.fj"
:rows=
"6"
type=
"textarea"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<div
style=
"text-align:center"
>
<el-button
@
click=
"$popupCacel"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
保存
</el-button>
<div
v-else
>
<div
style=
"height:540px"
>
<el-form
class=
"zs"
:model=
"bdcqz"
v-if=
"this.bdcqz.bdcqzlx==1"
ref=
"ruleForm"
label-width=
"100px"
>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"权利人"
>
<el-input
v-model=
"bdcqz.qlr"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"共有情况"
>
<el-select
v-model=
"bdcqz.gyqk"
class=
"width100"
placeholder=
"请选择"
>
<el-option
v-for=
"item in gyqkList"
:key=
"item.dcode"
:label=
"item.dname"
:value=
"item.dcode"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"坐落"
>
<el-input
v-model=
"bdcqz.zl"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"不动产单元号"
>
<el-input
v-model=
"bdcqz.bdcdyh"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"权利类型"
>
<el-input
v-model=
"bdcqz.qllx"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"权利性质 "
>
<el-input
v-model=
"bdcqz.qlxz"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"用途"
>
<el-input
v-model=
"bdcqz.yt"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"面积"
>
<el-input
v-model=
"bdcqz.mj"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"使用期限 "
>
<el-input
v-model=
"bdcqz.syqx"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"权利其他状况"
>
<el-input
v-model=
"bdcqz.qlqtzk"
:rows=
"4"
type=
"textarea"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"附记"
>
<el-input
v-model=
"bdcqz.fj"
:rows=
"4"
type=
"textarea"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-form
:model=
"bdcqz"
class=
"zm"
v-else
ref=
"ruleForm"
label-width=
"110px"
>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"证明权利或事项"
>
<el-input
v-model=
"bdcqz.zmqlhsx"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"权利人(申请人)"
>
<el-input
v-model=
"bdcqz.qlr"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"义务人"
>
<el-input
v-model=
"bdcqz.ywr"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"坐落"
>
<el-input
v-model=
"bdcqz.zl"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"不动产单元号"
>
<el-input
v-model=
"bdcqz.bdcdyh"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"其他状况"
>
<el-input
v-model=
"bdcqz.qlqtzk"
:rows=
"6"
type=
"textarea"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"附记"
>
<el-input
v-model=
"bdcqz.fj"
:rows=
"6"
type=
"textarea"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<div
style=
"text-align:center"
>
<el-button
@
click=
"$popupCacel"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
保存
</el-button>
</div>
</div>
</div>
</
template
>
...
...
src/views/workflow/mixin/index.js
View file @
ac61b2d
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-11-
15 11:29:32
* @LastEditTime: 2023-11-
20 15:24:10
*/
import
Vue
from
'vue'
import
{
getPrintTemplateByCode
}
from
"@/api/print"
;
import
{
uploadUndo
}
from
"@/api/clxx"
;
import
{
getLodop
}
from
"@/utils/LodopFuncs"
import
{
getLodop
}
from
"@/utils/LodopFuncs"
;
import
adapter
from
"@/utils/sqs/adapter"
;
import
{
stepExpandInfo
,
record
,
...
...
@@ -131,23 +133,21 @@ export default {
case
"B-ZSXG"
:
this
.
$popupDialog
(
"证书修改"
,
"workflow/components/dialog/zsxg"
,
{
bsmSlsq
:
this
.
bsmSlsq
,
},
'55%'
,
true
)
break
;
case
"B-SQD"
:
break
;
case
"B6"
:
//根据编号获取对应信息
getPrintTemplateByCode
({
tmpno
:
'dysqs'
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
getPrintApplicationForm
(
this
.
currentSelectProps
.
bsmSldy
).
then
(
infoRes
=>
{
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
();
//
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
)
}
...
...
Please
register
or
sign in
to post a comment