style:打印申请书
Showing
4 changed files
with
183 additions
and
157 deletions
1 | { | 1 | { |
2 | "TITLE": "不动产登记系统", | 2 | "TITLE": "不动产登记系统", |
3 | "SERVERAPI": "/bdcdj", | 3 | "SERVERAPI": "/bdcdj", |
4 | "IDCARDURL": "http://127.0.0.1:33088/function=get_idcard&readnew=0" | 4 | "IDCARDURL": "http://127.0.0.1:33088/function=get_idcard&readnew=0", |
5 | } | 5 | "adapter": "dysqs" |
6 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
src/utils/sqs/adapter.js
0 → 100644
1 | /* | ||
2 | * @Description: 申请书 | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-11-20 15:42:45 | ||
5 | */ | ||
6 | import Vue from 'vue' | ||
7 | // 创建不同的适配器策略 | ||
8 | const strategies = { | ||
9 | dysqs: function (data) { | ||
10 | return data.name; | ||
11 | }, | ||
12 | default: function (data) { | ||
13 | return data; | ||
14 | } | ||
15 | }; | ||
16 | |||
17 | // 创建适配器函数,并使用策略模式进行数据处理 | ||
18 | export default function adapter (data) { | ||
19 | const type = Vue.prototype.BASE_API.adapter; | ||
20 | const selectedStrategy = strategies[type] || strategies['default']; | ||
21 | |||
22 | return selectedStrategy(data); | ||
23 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -12,148 +12,150 @@ | ... | @@ -12,148 +12,150 @@ |
12 | </el-tab-pane> | 12 | </el-tab-pane> |
13 | </el-tabs> | 13 | </el-tabs> |
14 | <el-empty description="暂无数据" v-if="headTabBdcqz.length == 0 && noData"></el-empty> | 14 | <el-empty description="暂无数据" v-if="headTabBdcqz.length == 0 && noData"></el-empty> |
15 | <div style="height:540px"> | 15 | <div v-else> |
16 | <el-form class="zs" :model="bdcqz" v-if="this.bdcqz.bdcqzlx==1" ref="ruleForm" label-width="100px"> | 16 | <div style="height:540px"> |
17 | <el-row> | 17 | <el-form class="zs" :model="bdcqz" v-if="this.bdcqz.bdcqzlx==1" ref="ruleForm" label-width="100px"> |
18 | <el-col :span="24"> | 18 | <el-row> |
19 | <el-form-item label="权利人"> | 19 | <el-col :span="24"> |
20 | <el-input v-model="bdcqz.qlr"></el-input> | 20 | <el-form-item label="权利人"> |
21 | </el-form-item> | 21 | <el-input v-model="bdcqz.qlr"></el-input> |
22 | </el-col> | 22 | </el-form-item> |
23 | </el-row> | 23 | </el-col> |
24 | <el-row> | 24 | </el-row> |
25 | <el-col :span="24"> | 25 | <el-row> |
26 | <el-form-item label="共有情况"> | 26 | <el-col :span="24"> |
27 | <el-select v-model="bdcqz.gyqk" class="width100" placeholder="请选择"> | 27 | <el-form-item label="共有情况"> |
28 | <el-option | 28 | <el-select v-model="bdcqz.gyqk" class="width100" placeholder="请选择"> |
29 | v-for="item in gyqkList" | 29 | <el-option |
30 | :key="item.dcode" | 30 | v-for="item in gyqkList" |
31 | :label="item.dname" | 31 | :key="item.dcode" |
32 | :value="item.dcode"> | 32 | :label="item.dname" |
33 | </el-option> | 33 | :value="item.dcode"> |
34 | </el-select> | 34 | </el-option> |
35 | </el-form-item> | 35 | </el-select> |
36 | </el-col> | 36 | </el-form-item> |
37 | </el-row> | 37 | </el-col> |
38 | <el-row> | 38 | </el-row> |
39 | <el-col :span="24"> | 39 | <el-row> |
40 | <el-form-item label="坐落"> | 40 | <el-col :span="24"> |
41 | <el-input v-model="bdcqz.zl"></el-input> | 41 | <el-form-item label="坐落"> |
42 | </el-form-item> | 42 | <el-input v-model="bdcqz.zl"></el-input> |
43 | </el-col> | 43 | </el-form-item> |
44 | </el-row> | 44 | </el-col> |
45 | <el-row> | 45 | </el-row> |
46 | <el-col :span="24"> | 46 | <el-row> |
47 | <el-form-item label="不动产单元号"> | 47 | <el-col :span="24"> |
48 | <el-input v-model="bdcqz.bdcdyh"></el-input> | 48 | <el-form-item label="不动产单元号"> |
49 | </el-form-item> | 49 | <el-input v-model="bdcqz.bdcdyh"></el-input> |
50 | </el-col> | 50 | </el-form-item> |
51 | </el-row> | 51 | </el-col> |
52 | <el-row> | 52 | </el-row> |
53 | <el-col :span="24"> | 53 | <el-row> |
54 | <el-form-item label="权利类型"> | 54 | <el-col :span="24"> |
55 | <el-input v-model="bdcqz.qllx"></el-input> | 55 | <el-form-item label="权利类型"> |
56 | </el-form-item> | 56 | <el-input v-model="bdcqz.qllx"></el-input> |
57 | </el-col> | 57 | </el-form-item> |
58 | </el-row> | 58 | </el-col> |
59 | <el-row> | 59 | </el-row> |
60 | <el-col :span="24"> | 60 | <el-row> |
61 | <el-form-item label="权利性质 "> | 61 | <el-col :span="24"> |
62 | <el-input v-model="bdcqz.qlxz"></el-input> | 62 | <el-form-item label="权利性质 "> |
63 | </el-form-item> | 63 | <el-input v-model="bdcqz.qlxz"></el-input> |
64 | </el-col> | 64 | </el-form-item> |
65 | </el-row> | 65 | </el-col> |
66 | <el-row> | 66 | </el-row> |
67 | <el-col :span="24"> | 67 | <el-row> |
68 | <el-form-item label="用途"> | 68 | <el-col :span="24"> |
69 | <el-input v-model="bdcqz.yt"></el-input> | 69 | <el-form-item label="用途"> |
70 | </el-form-item> | 70 | <el-input v-model="bdcqz.yt"></el-input> |
71 | </el-col> | 71 | </el-form-item> |
72 | </el-row> | 72 | </el-col> |
73 | <el-row> | 73 | </el-row> |
74 | <el-col :span="24"> | 74 | <el-row> |
75 | <el-form-item label="面积"> | 75 | <el-col :span="24"> |
76 | <el-input v-model="bdcqz.mj"></el-input> | 76 | <el-form-item label="面积"> |
77 | </el-form-item> | 77 | <el-input v-model="bdcqz.mj"></el-input> |
78 | </el-col> | 78 | </el-form-item> |
79 | </el-row> | 79 | </el-col> |
80 | <el-row> | 80 | </el-row> |
81 | <el-col :span="24"> | 81 | <el-row> |
82 | <el-form-item label="使用期限 "> | 82 | <el-col :span="24"> |
83 | <el-input v-model="bdcqz.syqx"></el-input> | 83 | <el-form-item label="使用期限 "> |
84 | </el-form-item> | 84 | <el-input v-model="bdcqz.syqx"></el-input> |
85 | </el-col> | 85 | </el-form-item> |
86 | </el-row> | 86 | </el-col> |
87 | <el-row> | 87 | </el-row> |
88 | <el-col :span="24"> | 88 | <el-row> |
89 | <el-form-item label="权利其他状况"> | 89 | <el-col :span="24"> |
90 | <el-input v-model="bdcqz.qlqtzk" :rows="4" type="textarea"></el-input> | 90 | <el-form-item label="权利其他状况"> |
91 | </el-form-item> | 91 | <el-input v-model="bdcqz.qlqtzk" :rows="4" type="textarea"></el-input> |
92 | </el-col> | 92 | </el-form-item> |
93 | </el-row> | 93 | </el-col> |
94 | <el-row> | 94 | </el-row> |
95 | <el-col :span="24"> | 95 | <el-row> |
96 | <el-form-item label="附记"> | 96 | <el-col :span="24"> |
97 | <el-input v-model="bdcqz.fj" :rows="4" type="textarea"></el-input> | 97 | <el-form-item label="附记"> |
98 | </el-form-item> | 98 | <el-input v-model="bdcqz.fj" :rows="4" type="textarea"></el-input> |
99 | </el-col> | 99 | </el-form-item> |
100 | </el-row> | 100 | </el-col> |
101 | </el-form> | 101 | </el-row> |
102 | <el-form :model="bdcqz" class="zm" v-else ref="ruleForm" label-width="110px"> | 102 | </el-form> |
103 | <el-row> | 103 | <el-form :model="bdcqz" class="zm" v-else ref="ruleForm" label-width="110px"> |
104 | <el-col :span="24"> | 104 | <el-row> |
105 | <el-form-item label="证明权利或事项"> | 105 | <el-col :span="24"> |
106 | <el-input v-model="bdcqz.zmqlhsx"></el-input> | 106 | <el-form-item label="证明权利或事项"> |
107 | </el-form-item> | 107 | <el-input v-model="bdcqz.zmqlhsx"></el-input> |
108 | </el-col> | 108 | </el-form-item> |
109 | </el-row> | 109 | </el-col> |
110 | <el-row> | 110 | </el-row> |
111 | <el-col :span="24"> | 111 | <el-row> |
112 | <el-form-item label="权利人(申请人)"> | 112 | <el-col :span="24"> |
113 | <el-input v-model="bdcqz.qlr"></el-input> | 113 | <el-form-item label="权利人(申请人)"> |
114 | </el-form-item> | 114 | <el-input v-model="bdcqz.qlr"></el-input> |
115 | </el-col> | 115 | </el-form-item> |
116 | </el-row> | 116 | </el-col> |
117 | <el-row> | 117 | </el-row> |
118 | <el-col :span="24"> | 118 | <el-row> |
119 | <el-form-item label="义务人"> | 119 | <el-col :span="24"> |
120 | <el-input v-model="bdcqz.ywr"></el-input> | 120 | <el-form-item label="义务人"> |
121 | </el-form-item> | 121 | <el-input v-model="bdcqz.ywr"></el-input> |
122 | </el-col> | 122 | </el-form-item> |
123 | </el-row> | 123 | </el-col> |
124 | <el-row> | 124 | </el-row> |
125 | <el-col :span="24"> | 125 | <el-row> |
126 | <el-form-item label="坐落"> | 126 | <el-col :span="24"> |
127 | <el-input v-model="bdcqz.zl"></el-input> | 127 | <el-form-item label="坐落"> |
128 | </el-form-item> | 128 | <el-input v-model="bdcqz.zl"></el-input> |
129 | </el-col> | 129 | </el-form-item> |
130 | </el-row> | 130 | </el-col> |
131 | <el-row> | 131 | </el-row> |
132 | <el-col :span="24"> | 132 | <el-row> |
133 | <el-form-item label="不动产单元号"> | 133 | <el-col :span="24"> |
134 | <el-input v-model="bdcqz.bdcdyh"></el-input> | 134 | <el-form-item label="不动产单元号"> |
135 | </el-form-item> | 135 | <el-input v-model="bdcqz.bdcdyh"></el-input> |
136 | </el-col> | 136 | </el-form-item> |
137 | </el-row> | 137 | </el-col> |
138 | <el-row> | 138 | </el-row> |
139 | <el-col :span="24"> | 139 | <el-row> |
140 | <el-form-item label="其他状况"> | 140 | <el-col :span="24"> |
141 | <el-input v-model="bdcqz.qlqtzk" :rows="6" type="textarea"></el-input> | 141 | <el-form-item label="其他状况"> |
142 | </el-form-item> | 142 | <el-input v-model="bdcqz.qlqtzk" :rows="6" type="textarea"></el-input> |
143 | </el-col> | 143 | </el-form-item> |
144 | </el-row> | 144 | </el-col> |
145 | <el-row> | 145 | </el-row> |
146 | <el-col :span="24"> | 146 | <el-row> |
147 | <el-form-item label="附记"> | 147 | <el-col :span="24"> |
148 | <el-input v-model="bdcqz.fj" :rows="6" type="textarea"></el-input> | 148 | <el-form-item label="附记"> |
149 | </el-form-item> | 149 | <el-input v-model="bdcqz.fj" :rows="6" type="textarea"></el-input> |
150 | </el-col> | 150 | </el-form-item> |
151 | </el-row> | 151 | </el-col> |
152 | </el-form> | 152 | </el-row> |
153 | </div> | 153 | </el-form> |
154 | <div style="text-align:center"> | 154 | </div> |
155 | <el-button @click="$popupCacel">取消</el-button> | 155 | <div style="text-align:center"> |
156 | <el-button type="primary" @click="handleSubmit">保存</el-button> | 156 | <el-button @click="$popupCacel">取消</el-button> |
157 | <el-button type="primary" @click="handleSubmit">保存</el-button> | ||
158 | </div> | ||
157 | </div> | 159 | </div> |
158 | </div> | 160 | </div> |
159 | </template> | 161 | </template> | ... | ... |
1 | /* | 1 | /* |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-11-15 11:29:32 | 4 | * @LastEditTime: 2023-11-20 15:24:10 |
5 | */ | 5 | */ |
6 | import Vue from 'vue' | ||
6 | import { getPrintTemplateByCode } from "@/api/print"; | 7 | import { getPrintTemplateByCode } from "@/api/print"; |
7 | import { uploadUndo } from "@/api/clxx"; | 8 | import { uploadUndo } from "@/api/clxx"; |
8 | import { getLodop } from "@/utils/LodopFuncs" | 9 | import { getLodop } from "@/utils/LodopFuncs"; |
10 | import adapter from "@/utils/sqs/adapter"; | ||
9 | import { | 11 | import { |
10 | stepExpandInfo, | 12 | stepExpandInfo, |
11 | record, | 13 | record, |
... | @@ -131,23 +133,21 @@ export default { | ... | @@ -131,23 +133,21 @@ export default { |
131 | case "B-ZSXG": | 133 | case "B-ZSXG": |
132 | this.$popupDialog("证书修改", "workflow/components/dialog/zsxg", { bsmSlsq: this.bsmSlsq, }, '55%', true) | 134 | this.$popupDialog("证书修改", "workflow/components/dialog/zsxg", { bsmSlsq: this.bsmSlsq, }, '55%', true) |
133 | break; | 135 | break; |
134 | case "B-SQD": | ||
135 | |||
136 | break; | ||
137 | case "B6": | 136 | case "B6": |
138 | //根据编号获取对应信息 | 137 | //根据编号获取对应信息 |
139 | getPrintTemplateByCode({ tmpno: 'dysqs' }).then(res => { | 138 | getPrintTemplateByCode({ tmpno: 'dysqs' }).then(res => { |
140 | if (res.code == 200) { | 139 | if (res.code == 200) { |
141 | getPrintApplicationForm(this.currentSelectProps.bsmSldy).then(infoRes => { | 140 | getPrintApplicationForm(this.currentSelectProps.bsmSldy).then(async infoRes => { |
142 | if (infoRes.code == 200) { | 141 | if (infoRes.code == 200) { |
142 | console.log(adapter({ name: 2 })); | ||
143 | //打开模板设计 | 143 | //打开模板设计 |
144 | let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM')); | 144 | // let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM')); |
145 | LODOP.ADD_PRINT_DATA("ProgramData", res.result.tmpcontent); //装载模板 | 145 | // LODOP.ADD_PRINT_DATA("ProgramData", res.result.tmpcontent); //装载模板 |
146 | //todo 调取后端接口获取数据 循环set | 146 | // //todo 调取后端接口获取数据 循环set |
147 | for (let key in infoRes.result) { | 147 | // for (let key in infoRes.result) { |
148 | LODOP.SET_PRINT_STYLEA(key, "CONTENT", infoRes.result[key]); | 148 | // LODOP.SET_PRINT_STYLEA(key, "CONTENT", infoRes.result[key]); |
149 | } | 149 | // } |
150 | LODOP.PREVIEW(); | 150 | // LODOP.PREVIEW(); |
151 | } else { | 151 | } else { |
152 | this.$message.error(infoRes.message) | 152 | this.$message.error(infoRes.message) |
153 | } | 153 | } | ... | ... |
-
Please register or sign in to post a comment