d39a1b5e by 田浩浩

修改证书打印内容

1 parent 7c93ae9d
......@@ -2,7 +2,6 @@
<dialogBox
title="不动产权证书"
width="60%"
isMain
v-model="myValue"
@closeDialog="closeDialog"
@submitForm="handleSubmit"
......@@ -28,7 +27,13 @@
</el-form-item>
</el-form>
</div>
<div class="aaaa" v-if="bdcqz.bdcqzlx==1" :style="{backgroundImage: 'url(' + require('@/image/bdcqz/bdcqzs2.jpg') + ')',}">
<div
class="aaaa"
v-if="bdcqz.bdcqzlx == 1"
:style="{
backgroundImage: 'url(' + require('@/image/bdcqz/bdcqzs2.jpg') + ')',
}"
>
<div class="bdcqzh">
<span>{{ bdcqz.sjjc }}</span> <span>{{ bdcqz.djnd }}</span>
<span>{{ bdcqz.sxqc }}</span> <span>{{ bdcqz.sxh }}</span>
......@@ -71,43 +76,49 @@
</div>
</div>
</div>
<div class="bdcdjzm" v-else :style="{backgroundImage: 'url(' + require('@/image/bdcqz/bdcdjzm.jpg') + ')',}">
<div
class="bdcdjzm"
v-else
:style="{
backgroundImage: 'url(' + require('@/image/bdcqz/bdcdjzm.jpg') + ')',
}"
>
<div class="bdcqzh">
<span>{{ bdcqz.sjjc }}</span> <span>{{ bdcqz.djnd }}</span>
<span>{{ bdcqz.sxqc }}</span> <span>{{ bdcqz.sxh }}</span>
</div>
<div class="zmyl-box">
<div class="qlr">
{{ bdcqz.qlr }}
</div>
<div class="gyqk">
{{ bdcqz.gyqk }}
</div>
<div class="zl">
{{ bdcqz.zl }}
</div>
<div class="bdcdyh">
{{ bdcqz.bdcdyh }}
</div>
<div class="qllx">
{{ bdcqz.qllx }}
</div>
<div class="qlxz">
{{ bdcqz.qlxz }}
</div>
<div class="yt">
{{ bdcqz.yt }}
</div>
<div class="mj">
{{ bdcqz.mj }}
</div>
<div class="syqx">
{{ bdcqz.syqx }}
</div>
<div class="qt">
{{ bdcqz.qlqtzk }}
</div>
<div class="fj">{{ bdcqz.fj }}</div>
{{ bdcqz.qlr }}
</div>
<div class="gyqk">
{{ bdcqz.gyqk }}
</div>
<div class="zl">
{{ bdcqz.zl }}
</div>
<div class="bdcdyh">
{{ bdcqz.bdcdyh }}
</div>
<div class="qllx">
{{ bdcqz.qllx }}
</div>
<div class="qlxz">
{{ bdcqz.qlxz }}
</div>
<div class="yt">
{{ bdcqz.yt }}
</div>
<div class="mj">
{{ bdcqz.mj }}
</div>
<div class="syqx">
{{ bdcqz.syqx }}
</div>
<div class="qt">
{{ bdcqz.qlqtzk }}
</div>
<div class="fj">{{ bdcqz.fj }}</div>
</div>
</div>
</div>
......@@ -116,12 +127,12 @@
<script>
import { datas } from "../javascript/zsyl.js";
import { readYsxlh, certificate, getSlsqBdcqzList,bdcqzPreview } from "@/api/bdcqz.js";
import { readYsxlh, certificate, bdcqzPreview } from "@/api/bdcqz.js";
export default {
components: {},
props: {
value: { type: Boolean, default: false },
bdcqz: { type: Object, default: {} },
bdcqz: { type: Object, default: () => {} },
},
data() {
return {
......@@ -130,8 +141,6 @@ export default {
ysxlh: [],
//列名称对象
columns: [],
//选择的不动产权证文件
bdcqz: this.bdcqz,
ruleForm: {
bsmBdcqz: "",
szmc: "不动产权证书",
......@@ -149,21 +158,18 @@ export default {
watch: {
value(val) {
this.myValue = val;
this.columns = datas.columns();
if (val) {
this.columns = datas.columns();
this.ysxlhList();
}
},
},
created() {
this.ysxlhList();
},
methods: {
//获取印刷序列号列表
ysxlhList() {
console.log(this.bdcqz);
readYsxlh({ zslx: this.bdcqz.bdcqzlx }).then((res) => {
if (res.code === 200) {
this.ysxlh = res.result;
console.log(this.ysxlh);
//this.bdcqz.ysxlh= this.ysxlh[0];
}
});
},
......@@ -171,25 +177,24 @@ export default {
this.$emit("input", false);
},
handleSubmit() {
this.$emit("input", false);
this.savePrintRecord();
},
//获取证书内容
getRowValue(code) {
var value = this.bdcqz[code];
return value;
},
getBdcqzPreview(){
bdcqzPreview(this.bdcqz).then(res => {
})
getBdcqzPreview() {
bdcqzPreview(this.bdcqz).then((res) => {});
},
//打印证书
childFn() {
//保存打印记录
savePrintRecord() {
this.ruleForm.bsmBdcqz = this.bdcqz.bsmBdcqz;
this.ruleForm.bdcqzlx = this.bdcqz.bdcqzlx;
this.ruleForm.szzh = this.bdcqz.bdcqzh;
certificate(this.ruleForm).then((res) => {
if (res.code === 200) {
this.$message.success("打印成功");
this.$emit("input", false);
} else {
this.$message.error(res.message);
}
......@@ -215,7 +220,7 @@ export default {
}
.zmyl-box {
//position: relative;
position:absolute;
position: absolute;
height: 600px;
width: 280px;
margin-left: 775px;
......