style:善证
Showing
3 changed files
with
54 additions
and
60 deletions
1 | <template> | 1 | <template> |
2 | <dialogBox | ||
3 | title="不动产权证书" | ||
4 | width="60%" | ||
5 | v-model="myValue" | ||
6 | @closeDialog="closeDialog" | ||
7 | @submitForm="handleSubmit"> | ||
8 | <div> | ||
9 | <div> | 2 | <div> |
3 | <div class="zsdy-content loadingtext"> | ||
10 | <el-form | 4 | <el-form |
11 | :model="ruleForm" | 5 | :model="ruleForm" |
12 | :rules="rules" | 6 | :rules="rules" |
... | @@ -23,25 +17,30 @@ | ... | @@ -23,25 +17,30 @@ |
23 | </el-select> | 17 | </el-select> |
24 | </el-form-item> | 18 | </el-form-item> |
25 | </el-form> | 19 | </el-form> |
20 | <img :src="previewImage" style="width: 100%"> | ||
21 | </div> | ||
22 | <div class="text-center paddingtop10"> | ||
23 | <el-button @click="$popupCacel">取消</el-button> | ||
24 | <el-button type="primary" @click="handleSubmit">确定</el-button> | ||
26 | </div> | 25 | </div> |
27 | <img :src="previewImage"> | ||
28 | |||
29 | </div> | 26 | </div> |
30 | </dialogBox> | ||
31 | </template> | 27 | </template> |
32 | 28 | ||
33 | <script> | 29 | <script> |
34 | import { datas } from "../javascript/zsyl.js"; | 30 | import store from '@/store/index.js' |
31 | import { datas } from "../../javascript/zsyl.js"; | ||
35 | import { readYsxlh, certificate, bdcqzPreview } from "@/api/bdcqz.js"; | 32 | import { readYsxlh, certificate, bdcqzPreview } from "@/api/bdcqz.js"; |
36 | export default { | 33 | export default { |
37 | components: {}, | ||
38 | props: { | 34 | props: { |
39 | value: { type: Boolean, default: false }, | 35 | formData: { |
40 | bdcqz: { type: Object, default: () => { } }, | 36 | type: Object, |
37 | default: () => { | ||
38 | return {} | ||
39 | } | ||
40 | } | ||
41 | }, | 41 | }, |
42 | data () { | 42 | data () { |
43 | return { | 43 | return { |
44 | myValue: this.value, | ||
45 | //印刷序列号集合 | 44 | //印刷序列号集合 |
46 | ysxlh: [], | 45 | ysxlh: [], |
47 | //证书预览图片 | 46 | //证书预览图片 |
... | @@ -53,38 +52,31 @@ | ... | @@ -53,38 +52,31 @@ |
53 | szmc: "不动产权证书", | 52 | szmc: "不动产权证书", |
54 | bdcqzlx: "", | 53 | bdcqzlx: "", |
55 | szzh: "", | 54 | szzh: "", |
56 | ysxlh: "", | 55 | ysxlh: "" |
57 | }, | 56 | }, |
58 | rules: { | 57 | rules: { |
59 | ysxlh: [ | 58 | ysxlh: [ |
60 | { required: true, message: "请选择印刷序列号", trigger: "change" }, | 59 | { required: true, message: "请选择印刷序列号", trigger: "change" } |
61 | ], | 60 | ] |
62 | }, | 61 | } |
63 | }; | ||
64 | }, | ||
65 | watch: { | ||
66 | value (val) { | ||
67 | this.myValue = val; | ||
68 | if (val) { | ||
69 | this.columns = datas.columns(); | ||
70 | this.ysxlhList(); | ||
71 | } | 62 | } |
72 | }, | 63 | }, |
64 | created () { | ||
65 | this.columns = datas.columns() | ||
66 | this.ysxlhList() | ||
67 | this.getBdcqzPreview() | ||
73 | }, | 68 | }, |
74 | methods: { | 69 | methods: { |
75 | //获取印刷序列号列表 | 70 | //获取印刷序列号列表 |
76 | ysxlhList () { | 71 | ysxlhList () { |
77 | readYsxlh({ zslx: this.bdcqz.bdcqzlx }).then((res) => { | 72 | readYsxlh({ zslx: this.formData.bdcqz.bdcqzlx }).then((res) => { |
78 | if (res.code === 200) { | 73 | if (res.code === 200) { |
79 | this.ysxlh = res.result; | 74 | this.ysxlh = res.result; |
80 | } | 75 | } |
81 | }); | 76 | }) |
82 | }, | ||
83 | closeDialog () { | ||
84 | this.$emit("input", false); | ||
85 | }, | 77 | }, |
86 | handleSubmit () { | 78 | handleSubmit () { |
87 | this.savePrintRecord(); | 79 | this.savePrintRecord() |
88 | }, | 80 | }, |
89 | //获取证书内容 | 81 | //获取证书内容 |
90 | getRowValue (code) { | 82 | getRowValue (code) { |
... | @@ -93,7 +85,7 @@ | ... | @@ -93,7 +85,7 @@ |
93 | }, | 85 | }, |
94 | getBdcqzPreview () { | 86 | getBdcqzPreview () { |
95 | this.$startLoading() | 87 | this.$startLoading() |
96 | bdcqzPreview(this.bdcqz).then(res => { | 88 | bdcqzPreview(this.formData.bdcqz).then(res => { |
97 | this.$endLoading() | 89 | this.$endLoading() |
98 | let blob = new Blob([res]); | 90 | let blob = new Blob([res]); |
99 | let url = window.URL.createObjectURL(blob); | 91 | let url = window.URL.createObjectURL(blob); |
... | @@ -102,17 +94,17 @@ | ... | @@ -102,17 +94,17 @@ |
102 | }, | 94 | }, |
103 | //保存打印记录 | 95 | //保存打印记录 |
104 | savePrintRecord () { | 96 | savePrintRecord () { |
105 | this.ruleForm.bsmBdcqz = this.bdcqz.bsmBdcqz; | 97 | this.ruleForm.bsmBdcqz = this.formData.bdcqz.bsmBdcqz; |
106 | this.ruleForm.bdcqzlx = this.bdcqz.bdcqzlx; | 98 | this.ruleForm.bdcqzlx = this.formData.bdcqz.bdcqzlx; |
107 | this.ruleForm.szzh = this.bdcqz.bdcqzh; | 99 | this.ruleForm.szzh = this.formData.bdcqz.bdcqzh; |
108 | certificate(this.ruleForm).then((res) => { | 100 | certificate(this.ruleForm).then((res) => { |
109 | if (res.code === 200) { | 101 | if (res.code === 200) { |
110 | this.$emit("input", false); | 102 | this.$popupCacel() |
111 | this.$message.success("提交成功"); | 103 | this.$message.success("提交成功") |
112 | //刷新列表 | 104 | //刷新列表 |
113 | this.$parent.list(); | 105 | store.dispatch('user/refreshPage', true); |
114 | } else { | 106 | } else { |
115 | this.$message.error(res.message); | 107 | this.$message.error(res.message) |
116 | } | 108 | } |
117 | }); | 109 | }); |
118 | }, | 110 | }, |
... | @@ -121,7 +113,13 @@ | ... | @@ -121,7 +113,13 @@ |
121 | </script> | 113 | </script> |
122 | <style scoped lang="scss"> | 114 | <style scoped lang="scss"> |
123 | @import "~@/styles/mixin.scss"; | 115 | @import "~@/styles/mixin.scss"; |
124 | 116 | .zsdy-content { | |
117 | height: 80vh; | ||
118 | overflow-y: scroll; | ||
119 | } | ||
120 | .paddingtop10 { | ||
121 | padding-top: 10px; | ||
122 | } | ||
125 | .aaaa { | 123 | .aaaa { |
126 | width: 1024px; | 124 | width: 1024px; |
127 | height: 739px; | 125 | height: 739px; | ... | ... |
... | @@ -11,7 +11,7 @@ | ... | @@ -11,7 +11,7 @@ |
11 | </template> | 11 | </template> |
12 | 12 | ||
13 | <script> | 13 | <script> |
14 | import { datas } from "../javascript/zsyl.js"; | 14 | import { datas } from "../../javascript/zsyl.js"; |
15 | import { getSlsqBdcqzList, bdcqzPreview } from "@/api/bdcqz.js" | 15 | import { getSlsqBdcqzList, bdcqzPreview } from "@/api/bdcqz.js" |
16 | export default { | 16 | export default { |
17 | name: "zsyl", | 17 | name: "zsyl", | ... | ... |
... | @@ -32,7 +32,6 @@ | ... | @@ -32,7 +32,6 @@ |
32 | <div class="text color_red"> | 32 | <div class="text color_red"> |
33 | <span>{{ item.syqx }}</span> | 33 | <span>{{ item.syqx }}</span> |
34 | </div> | 34 | </div> |
35 | <!-- <div class="top_line middle_margin"></div> --> | ||
36 | <div class="text color_iray"> | 35 | <div class="text color_iray"> |
37 | <span>印刷序列号:{{ item.ysxlh }}</span> | 36 | <span>印刷序列号:{{ item.ysxlh }}</span> |
38 | </div> | 37 | </div> |
... | @@ -65,15 +64,13 @@ | ... | @@ -65,15 +64,13 @@ |
65 | </div> | 64 | </div> |
66 | </div> | 65 | </div> |
67 | </el-dialog> | 66 | </el-dialog> |
68 | <bdcqzPrint ref="bdcqzPrint" v-model="dialog" :bdcqz="bdcqz" /> | ||
69 | <el-empty description="暂无数据" v-if="tableData.length == 0"></el-empty> | 67 | <el-empty description="暂无数据" v-if="tableData.length == 0"></el-empty> |
70 | </div> | 68 | </div> |
71 | </template> | 69 | </template> |
72 | <script> | 70 | <script> |
71 | import { mapGetters } from 'vuex' | ||
73 | import { getSlsqBdcqzList, invalidCertificate, getSzRecordList } from "@/api/bdcqz.js"; | 72 | import { getSlsqBdcqzList, invalidCertificate, getSzRecordList } from "@/api/bdcqz.js"; |
74 | import bdcqzPrint from "./zsdy.vue"; | ||
75 | export default { | 73 | export default { |
76 | components: { bdcqzPrint }, | ||
77 | props: {}, | 74 | props: {}, |
78 | data () { | 75 | data () { |
79 | return { | 76 | return { |
... | @@ -87,6 +84,16 @@ | ... | @@ -87,6 +84,16 @@ |
87 | bsmBdcqz: "" | 84 | bsmBdcqz: "" |
88 | }; | 85 | }; |
89 | }, | 86 | }, |
87 | computed: { | ||
88 | ...mapGetters(['isRefresh']) | ||
89 | }, | ||
90 | watch: { | ||
91 | isRefresh: { | ||
92 | handler (newVal, oldVal) { | ||
93 | if (newVal) this.list() | ||
94 | } | ||
95 | } | ||
96 | }, | ||
90 | created () { | 97 | created () { |
91 | this.list(); | 98 | this.list(); |
92 | }, | 99 | }, |
... | @@ -105,22 +112,11 @@ | ... | @@ -105,22 +112,11 @@ |
105 | }, | 112 | }, |
106 | //打开证书预览弹窗 | 113 | //打开证书预览弹窗 |
107 | openZsylDialog (item, type) { | 114 | openZsylDialog (item, type) { |
108 | let that = this; | ||
109 | if (type == 1) { | 115 | if (type == 1) { |
110 | //证书预览 | 116 | //证书预览 |
111 | this.$popup("证书预览", "workflow/components/zsyl", { | 117 | this.$popupDialog("证书预览", "workflow/components/dialog/zsyl", { bdcqz: item }, "70%", true); |
112 | height: "630px", | ||
113 | width: "800px", | ||
114 | formData: { | ||
115 | bdcqz: item, | ||
116 | } | ||
117 | }); | ||
118 | } else { | 118 | } else { |
119 | this.$nextTick(() => { | 119 | this.$popupDialog("不动产权证书", "workflow/components/dialog/zsdy", { bdcqz: item }, "70%", true); |
120 | this.dialog = true; | ||
121 | this.bdcqz = item; | ||
122 | this.$refs.bdcqzPrint.getBdcqzPreview(); | ||
123 | }) | ||
124 | } | 120 | } |
125 | }, | 121 | }, |
126 | //再次打印 | 122 | //再次打印 | ... | ... |
-
Please register or sign in to post a comment