d39a1b5e by 田浩浩

修改证书打印内容

1 parent 7c93ae9d
...@@ -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,43 +76,49 @@ ...@@ -71,43 +76,49 @@
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>
78 </div> 89 </div>
79 <div class="zmyl-box"> 90 <div class="zmyl-box">
80 <div class="qlr"> 91 <div class="qlr">
81 {{ bdcqz.qlr }} 92 {{ bdcqz.qlr }}
82 </div> 93 </div>
83 <div class="gyqk"> 94 <div class="gyqk">
84 {{ bdcqz.gyqk }} 95 {{ bdcqz.gyqk }}
85 </div> 96 </div>
86 <div class="zl"> 97 <div class="zl">
87 {{ bdcqz.zl }} 98 {{ bdcqz.zl }}
88 </div> 99 </div>
89 <div class="bdcdyh"> 100 <div class="bdcdyh">
90 {{ bdcqz.bdcdyh }} 101 {{ bdcqz.bdcdyh }}
91 </div> 102 </div>
92 <div class="qllx"> 103 <div class="qllx">
93 {{ bdcqz.qllx }} 104 {{ bdcqz.qllx }}
94 </div> 105 </div>
95 <div class="qlxz"> 106 <div class="qlxz">
96 {{ bdcqz.qlxz }} 107 {{ bdcqz.qlxz }}
97 </div> 108 </div>
98 <div class="yt"> 109 <div class="yt">
99 {{ bdcqz.yt }} 110 {{ bdcqz.yt }}
100 </div> 111 </div>
101 <div class="mj"> 112 <div class="mj">
102 {{ bdcqz.mj }} 113 {{ bdcqz.mj }}
103 </div> 114 </div>
104 <div class="syqx"> 115 <div class="syqx">
105 {{ bdcqz.syqx }} 116 {{ bdcqz.syqx }}
106 </div> 117 </div>
107 <div class="qt"> 118 <div class="qt">
108 {{ bdcqz.qlqtzk }} 119 {{ bdcqz.qlqtzk }}
109 </div> 120 </div>
110 <div class="fj">{{ bdcqz.fj }}</div> 121 <div class="fj">{{ bdcqz.fj }}</div>
111 </div> 122 </div>
112 </div> 123 </div>
113 </div> 124 </div>
...@@ -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;
152 this.columns = datas.columns(); 161 if (val) {
162 this.columns = datas.columns();
163 this.ysxlhList();
164 }
153 }, 165 },
154 }, 166 },
155 created() {
156 this.ysxlhList();
157 },
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;
......