修改证书打印内容
Showing
1 changed file
with
26 additions
and
21 deletions
... | @@ -2,7 +2,6 @@ | ... | @@ -2,7 +2,6 @@ |
2 | <dialogBox | 2 | <dialogBox |
3 | title="不动产权证书" | 3 | title="不动产权证书" |
4 | width="60%" | 4 | width="60%" |
5 | isMain | ||
6 | v-model="myValue" | 5 | v-model="myValue" |
7 | @closeDialog="closeDialog" | 6 | @closeDialog="closeDialog" |
8 | @submitForm="handleSubmit" | 7 | @submitForm="handleSubmit" |
... | @@ -28,7 +27,13 @@ | ... | @@ -28,7 +27,13 @@ |
28 | </el-form-item> | 27 | </el-form-item> |
29 | </el-form> | 28 | </el-form> |
30 | </div> | 29 | </div> |
31 | <div class="aaaa" v-if="bdcqz.bdcqzlx==1" :style="{backgroundImage: 'url(' + require('@/image/bdcqz/bdcqzs2.jpg') + ')',}"> | 30 | <div |
31 | class="aaaa" | ||
32 | v-if="bdcqz.bdcqzlx == 1" | ||
33 | :style="{ | ||
34 | backgroundImage: 'url(' + require('@/image/bdcqz/bdcqzs2.jpg') + ')', | ||
35 | }" | ||
36 | > | ||
32 | <div class="bdcqzh"> | 37 | <div class="bdcqzh"> |
33 | <span>{{ bdcqz.sjjc }}</span> <span>{{ bdcqz.djnd }}</span> | 38 | <span>{{ bdcqz.sjjc }}</span> <span>{{ bdcqz.djnd }}</span> |
34 | <span>{{ bdcqz.sxqc }}</span> <span>{{ bdcqz.sxh }}</span> | 39 | <span>{{ bdcqz.sxqc }}</span> <span>{{ bdcqz.sxh }}</span> |
... | @@ -71,7 +76,13 @@ | ... | @@ -71,7 +76,13 @@ |
71 | </div> | 76 | </div> |
72 | </div> | 77 | </div> |
73 | </div> | 78 | </div> |
74 | <div class="bdcdjzm" v-else :style="{backgroundImage: 'url(' + require('@/image/bdcqz/bdcdjzm.jpg') + ')',}"> | 79 | <div |
80 | class="bdcdjzm" | ||
81 | v-else | ||
82 | :style="{ | ||
83 | backgroundImage: 'url(' + require('@/image/bdcqz/bdcdjzm.jpg') + ')', | ||
84 | }" | ||
85 | > | ||
75 | <div class="bdcqzh"> | 86 | <div class="bdcqzh"> |
76 | <span>{{ bdcqz.sjjc }}</span> <span>{{ bdcqz.djnd }}</span> | 87 | <span>{{ bdcqz.sjjc }}</span> <span>{{ bdcqz.djnd }}</span> |
77 | <span>{{ bdcqz.sxqc }}</span> <span>{{ bdcqz.sxh }}</span> | 88 | <span>{{ bdcqz.sxqc }}</span> <span>{{ bdcqz.sxh }}</span> |
... | @@ -116,12 +127,12 @@ | ... | @@ -116,12 +127,12 @@ |
116 | 127 | ||
117 | <script> | 128 | <script> |
118 | import { datas } from "../javascript/zsyl.js"; | 129 | import { datas } from "../javascript/zsyl.js"; |
119 | import { readYsxlh, certificate, getSlsqBdcqzList,bdcqzPreview } from "@/api/bdcqz.js"; | 130 | import { readYsxlh, certificate, bdcqzPreview } from "@/api/bdcqz.js"; |
120 | export default { | 131 | export default { |
121 | components: {}, | 132 | components: {}, |
122 | props: { | 133 | props: { |
123 | value: { type: Boolean, default: false }, | 134 | value: { type: Boolean, default: false }, |
124 | bdcqz: { type: Object, default: {} }, | 135 | bdcqz: { type: Object, default: () => {} }, |
125 | }, | 136 | }, |
126 | data() { | 137 | data() { |
127 | return { | 138 | return { |
... | @@ -130,8 +141,6 @@ export default { | ... | @@ -130,8 +141,6 @@ export default { |
130 | ysxlh: [], | 141 | ysxlh: [], |
131 | //列名称对象 | 142 | //列名称对象 |
132 | columns: [], | 143 | columns: [], |
133 | //选择的不动产权证文件 | ||
134 | bdcqz: this.bdcqz, | ||
135 | ruleForm: { | 144 | ruleForm: { |
136 | bsmBdcqz: "", | 145 | bsmBdcqz: "", |
137 | szmc: "不动产权证书", | 146 | szmc: "不动产权证书", |
... | @@ -149,21 +158,18 @@ export default { | ... | @@ -149,21 +158,18 @@ export default { |
149 | watch: { | 158 | watch: { |
150 | value(val) { | 159 | value(val) { |
151 | this.myValue = val; | 160 | this.myValue = val; |
161 | if (val) { | ||
152 | this.columns = datas.columns(); | 162 | this.columns = datas.columns(); |
153 | }, | ||
154 | }, | ||
155 | created() { | ||
156 | this.ysxlhList(); | 163 | this.ysxlhList(); |
164 | } | ||
165 | }, | ||
157 | }, | 166 | }, |
158 | methods: { | 167 | methods: { |
159 | //获取印刷序列号列表 | 168 | //获取印刷序列号列表 |
160 | ysxlhList() { | 169 | ysxlhList() { |
161 | console.log(this.bdcqz); | ||
162 | readYsxlh({ zslx: this.bdcqz.bdcqzlx }).then((res) => { | 170 | readYsxlh({ zslx: this.bdcqz.bdcqzlx }).then((res) => { |
163 | if (res.code === 200) { | 171 | if (res.code === 200) { |
164 | this.ysxlh = res.result; | 172 | this.ysxlh = res.result; |
165 | console.log(this.ysxlh); | ||
166 | //this.bdcqz.ysxlh= this.ysxlh[0]; | ||
167 | } | 173 | } |
168 | }); | 174 | }); |
169 | }, | 175 | }, |
... | @@ -171,25 +177,24 @@ export default { | ... | @@ -171,25 +177,24 @@ export default { |
171 | this.$emit("input", false); | 177 | this.$emit("input", false); |
172 | }, | 178 | }, |
173 | handleSubmit() { | 179 | handleSubmit() { |
174 | this.$emit("input", false); | 180 | this.savePrintRecord(); |
175 | }, | 181 | }, |
176 | //获取证书内容 | 182 | //获取证书内容 |
177 | getRowValue(code) { | 183 | getRowValue(code) { |
178 | var value = this.bdcqz[code]; | 184 | var value = this.bdcqz[code]; |
179 | return value; | 185 | return value; |
180 | }, | 186 | }, |
181 | getBdcqzPreview(){ | 187 | getBdcqzPreview() { |
182 | bdcqzPreview(this.bdcqz).then(res => { | 188 | bdcqzPreview(this.bdcqz).then((res) => {}); |
183 | }) | ||
184 | }, | 189 | }, |
185 | //打印证书 | 190 | //保存打印记录 |
186 | childFn() { | 191 | savePrintRecord() { |
187 | this.ruleForm.bsmBdcqz = this.bdcqz.bsmBdcqz; | 192 | this.ruleForm.bsmBdcqz = this.bdcqz.bsmBdcqz; |
188 | this.ruleForm.bdcqzlx = this.bdcqz.bdcqzlx; | 193 | this.ruleForm.bdcqzlx = this.bdcqz.bdcqzlx; |
189 | this.ruleForm.szzh = this.bdcqz.bdcqzh; | 194 | this.ruleForm.szzh = this.bdcqz.bdcqzh; |
190 | certificate(this.ruleForm).then((res) => { | 195 | certificate(this.ruleForm).then((res) => { |
191 | if (res.code === 200) { | 196 | if (res.code === 200) { |
192 | this.$message.success("打印成功"); | 197 | this.$emit("input", false); |
193 | } else { | 198 | } else { |
194 | this.$message.error(res.message); | 199 | this.$message.error(res.message); |
195 | } | 200 | } |
... | @@ -215,7 +220,7 @@ export default { | ... | @@ -215,7 +220,7 @@ export default { |
215 | } | 220 | } |
216 | .zmyl-box { | 221 | .zmyl-box { |
217 | //position: relative; | 222 | //position: relative; |
218 | position:absolute; | 223 | position: absolute; |
219 | height: 600px; | 224 | height: 600px; |
220 | width: 280px; | 225 | width: 280px; |
221 | margin-left: 775px; | 226 | margin-left: 775px; | ... | ... |
-
Please register or sign in to post a comment