Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web
Showing
4 changed files
with
97 additions
and
34 deletions
... | @@ -176,3 +176,11 @@ export function issueCertificate (data) { | ... | @@ -176,3 +176,11 @@ export function issueCertificate (data) { |
176 | data | 176 | data |
177 | }) | 177 | }) |
178 | } | 178 | } |
179 | // 获取受理申请下全部不动产权证 | ||
180 | export function getSlsqBdcqzList (params) { | ||
181 | return request({ | ||
182 | url: '/business/workFlow/getSlsqBdcqzList', | ||
183 | method: 'get', | ||
184 | params | ||
185 | }) | ||
186 | } | ... | ... |
... | @@ -59,22 +59,19 @@ | ... | @@ -59,22 +59,19 @@ |
59 | </div> | 59 | </div> |
60 | </div> | 60 | </div> |
61 | </el-dialog> | 61 | </el-dialog> |
62 | <zsylDialog ref="zsylDialog" v-model="zsylFlag" :value='zsylFlag' /> | ||
63 | <el-empty description="暂无数据" v-if="tableData.length==0"></el-empty> | 62 | <el-empty description="暂无数据" v-if="tableData.length==0"></el-empty> |
64 | </div> | 63 | </div> |
65 | </template> | 64 | </template> |
66 | <script> | 65 | <script> |
67 | import zsylDialog from "./zsyl.vue"; | ||
68 | import { getBdcqzList, invalidCertificate } from "@/api/fqsq.js"; | 66 | import { getBdcqzList, invalidCertificate } from "@/api/fqsq.js"; |
69 | 67 | ||
70 | export default { | 68 | export default { |
71 | components: { zsylDialog }, | 69 | components: { }, |
72 | props: { | 70 | props: { |
73 | }, | 71 | }, |
74 | data () { | 72 | data () { |
75 | return { | 73 | return { |
76 | tableData: [], | 74 | tableData: [], |
77 | zsylFlag: false, | ||
78 | bdcqzlx: 1, | 75 | bdcqzlx: 1, |
79 | bdcqz: {}, | 76 | bdcqz: {}, |
80 | zfyy: '', | 77 | zfyy: '', |
... | @@ -100,14 +97,32 @@ export default { | ... | @@ -100,14 +97,32 @@ export default { |
100 | }, | 97 | }, |
101 | //打开证书预览弹窗 | 98 | //打开证书预览弹窗 |
102 | openZsylDialog (item, type) { | 99 | openZsylDialog (item, type) { |
103 | this.zsylFlag = true; | 100 | var heightSet = "650px"; |
104 | this.bdcqz = item; | 101 | var showButton = false; |
105 | this.$refs.zsylDialog.bdcqz = item; | 102 | if(type == 2){ |
106 | if (type == 2) { | 103 | heightSet = "700px"; |
107 | this.$nextTick(() => { | 104 | showButton = true; |
108 | this.$refs.zsylDialog.ysxlhList(); | ||
109 | }); | ||
110 | } | 105 | } |
106 | let that = this; | ||
107 | this.$popup({ | ||
108 | title: "证书预览", | ||
109 | editItem: "workflow/components/zsyl", | ||
110 | height: heightSet, | ||
111 | width: "800px", | ||
112 | formData: { | ||
113 | bsmSlsq: this.bsmSlsq, | ||
114 | entryType: type, | ||
115 | bdcqz: item | ||
116 | }, | ||
117 | btnShow: showButton, | ||
118 | confirmText: '打印证书', | ||
119 | cancel: () => { | ||
120 | console.log("取消回调"); | ||
121 | }, | ||
122 | confirm: () => { | ||
123 | this.list(); | ||
124 | }, | ||
125 | }) | ||
111 | }, | 126 | }, |
112 | //再次打印 | 127 | //再次打印 |
113 | openInvalidDiglog (item) { | 128 | openInvalidDiglog (item) { | ... | ... |
1 | <template> | 1 | <template> |
2 | <dialogBox title="证书预览" :isReset='false' :isSave='false' width="865px" | ||
3 | @closeDialog="closeDialog" v-model="value"> | ||
4 | <div class="from-clues"> | 2 | <div class="from-clues"> |
5 | <!-- 表单部分 --> | 3 | <!-- 表单部分 --> |
4 | <el-tabs v-model="activeName" @tab-click="handleClick" v-if="headTabBdcqz.length > 1"> | ||
5 | <el-tab-pane :label="item.qlr + '(' + item.bdcqzh + ')'" :name="item.bsmBdcqz" v-for="(item,index) in headTabBdcqz" :key="index"></el-tab-pane> | ||
6 | </el-tabs> | ||
6 | <div class="middle_padding" v-if="isToPrint"> | 7 | <div class="middle_padding" v-if="isToPrint"> |
7 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px"> | 8 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px"> |
8 | <el-form-item label="印刷序列号:" prop="ysxlh"> | 9 | <el-form-item label="印刷序列号:" prop="ysxlh"> |
... | @@ -20,7 +21,8 @@ | ... | @@ -20,7 +21,8 @@ |
20 | <div class="zsyl-box"> | 21 | <div class="zsyl-box"> |
21 | <div class="zsyl-left"> | 22 | <div class="zsyl-left"> |
22 | <div class="zsyl-title"> | 23 | <div class="zsyl-title"> |
23 | <span>{{bdcqz.bdcqzh}}</span> | 24 | <span v-if="bdcqz.bdcqzh">{{bdcqz.bdcqzh}}</span> |
25 | <span v-else>____( )________不动产权第 号</span> | ||
24 | </div> | 26 | </div> |
25 | <table class="table-column"> | 27 | <table class="table-column"> |
26 | <tr v-for="(item, colindex) in columns" :key="colindex"> | 28 | <tr v-for="(item, colindex) in columns" :key="colindex"> |
... | @@ -40,35 +42,35 @@ | ... | @@ -40,35 +42,35 @@ |
40 | <div class="zsyl-text"></div> | 42 | <div class="zsyl-text"></div> |
41 | </div> | 43 | </div> |
42 | </div> | 44 | </div> |
43 | <div class="zsyl-button" v-if="isToPrint"> | ||
44 | <el-button class="operation_button dy-button" type="text" @click="printCertificate()">打印证书</el-button> | ||
45 | <el-button class="operation_button gb-button" type="text" @click="closeDialog()">关闭</el-button> | ||
46 | </div> | 45 | </div> |
47 | </div> | ||
48 | </dialogBox> | ||
49 | </template> | 46 | </template> |
50 | 47 | ||
51 | <script> | 48 | <script> |
52 | import { datas } from "../javascript/zsyl.js"; | 49 | import { datas } from "../javascript/zsyl.js"; |
53 | import { readYsxlh,certificate } from "@/api/fqsq.js" | 50 | import { readYsxlh,certificate,getSlsqBdcqzList} from "@/api/fqsq.js" |
54 | export default { | 51 | export default { |
55 | components: { | 52 | components: { |
56 | }, | 53 | }, |
57 | props: { | 54 | props: { |
58 | value: { type: Boolean, default: false }, | 55 | formData: { |
56 | type: Object, | ||
57 | default: {} | ||
58 | } | ||
59 | }, | 59 | }, |
60 | data () { | 60 | data () { |
61 | return { | 61 | return { |
62 | //印刷序列号集合 | 62 | //印刷序列号集合 |
63 | ysxlh: [], | 63 | ysxlh: [], |
64 | //证书类型 | ||
65 | zslx: '', | ||
66 | //列名称对象 | 64 | //列名称对象 |
67 | columns: [], | 65 | columns: [], |
68 | //选择的不动产权证文件 | 66 | //选择的不动产权证文件 |
69 | bdcqz: '', | 67 | bdcqz: '', |
70 | //证书打开类型 是否需要展示打印按钮 | 68 | //证书打开类型 是否需要展示打印按钮 |
71 | isToPrint: false, | 69 | isToPrint: false, |
70 | //tab切换栏数组 | ||
71 | headTabBdcqz: [], | ||
72 | //tab选择绑定值 | ||
73 | activeName: '', | ||
72 | ruleForm: { | 74 | ruleForm: { |
73 | bsmBdcqz: '', | 75 | bsmBdcqz: '', |
74 | szmc: '不动产权证书', | 76 | szmc: '不动产权证书', |
... | @@ -87,21 +89,27 @@ export default { | ... | @@ -87,21 +89,27 @@ export default { |
87 | }, | 89 | }, |
88 | created() { | 90 | created() { |
89 | this.columns = datas.columns(); | 91 | this.columns = datas.columns(); |
92 | if(this.formData.bdcqz){ | ||
93 | //从缮证进入 | ||
94 | this.bdcqz = this.formData.bdcqz | ||
95 | if(this.formData.entryType == 2){ | ||
96 | this.ysxlhList(); | ||
97 | } | ||
98 | }else{ | ||
99 | //从按钮进入 | ||
100 | this.getHeadTabBdcqz(); | ||
101 | } | ||
90 | }, | 102 | }, |
91 | methods: { | 103 | methods: { |
92 | //获取印刷序列号列表 | 104 | //获取印刷序列号列表 |
93 | ysxlhList() { | 105 | ysxlhList() { |
94 | this.zslx = this.$parent.bdcqzlx | ||
95 | this.isToPrint = true; | 106 | this.isToPrint = true; |
96 | readYsxlh({zslx:this.$parent.bdcqzlx}).then(res => { | 107 | readYsxlh({zslx:this.bdcqz.bdcqzlx}).then(res => { |
97 | if (res.code === 200) { | 108 | if (res.code === 200) { |
98 | this.ysxlh = res.result | 109 | this.ysxlh = res.result |
99 | } | 110 | } |
100 | }) | 111 | }) |
101 | }, | 112 | }, |
102 | closeDialog () { | ||
103 | this.$emit("input", false); | ||
104 | }, | ||
105 | //获取证书内容 | 113 | //获取证书内容 |
106 | getRowValue(code){ | 114 | getRowValue(code){ |
107 | var value = this.bdcqz[code] | 115 | var value = this.bdcqz[code] |
... | @@ -117,16 +125,32 @@ export default { | ... | @@ -117,16 +125,32 @@ export default { |
117 | } | 125 | } |
118 | return value; | 126 | return value; |
119 | }, | 127 | }, |
128 | //获取受理申请下全部不动产权证 | ||
129 | getHeadTabBdcqz(){ | ||
130 | getSlsqBdcqzList({bsmSlsq: this.formData.bsmSlsq}).then(res => { | ||
131 | if(res.code == 200){ | ||
132 | if(res.result){ | ||
133 | this.activeName = res.result[0].bsmBdcqz | ||
134 | this.bdcqz = res.result[0] | ||
135 | } | ||
136 | this.headTabBdcqz = res.result | ||
137 | } | ||
138 | |||
139 | }) | ||
140 | }, | ||
141 | //tab表头切换方法 | ||
142 | handleClick(e){ | ||
143 | this.bdcqz = this.headTabBdcqz[e.index - 0] | ||
144 | this.activeName = this.headTabBdcqz.bsmBdcqz | ||
145 | }, | ||
120 | //打印证书 | 146 | //打印证书 |
121 | printCertificate() { | 147 | printCertificate() { |
122 | this.ruleForm.bsmBdcqz = this.$parent.bdcqz.bsmBdcqz | 148 | this.ruleForm.bsmBdcqz = this.bdcqz.bsmBdcqz |
123 | this.ruleForm.bdcqzlx = this.$parent.bdcqz.bdcqzlx | 149 | this.ruleForm.bdcqzlx = this.bdcqz.bdcqzlx |
124 | this.ruleForm.szzh = this.$parent.bdcqz.bdcqzh | 150 | this.ruleForm.szzh = this.bdcqz.bdcqzh |
125 | certificate(this.ruleForm).then(res => { | 151 | certificate(this.ruleForm).then(res => { |
126 | if (res.code === 200) { | 152 | if (res.code === 200) { |
127 | this.$message.success('打印成功'); | 153 | this.$message.success('打印成功'); |
128 | this.$emit("input", false); | ||
129 | this.$parent.list(); | ||
130 | }else{ | 154 | }else{ |
131 | this.$message.error(res.message); | 155 | this.$message.error(res.message); |
132 | } | 156 | } | ... | ... |
... | @@ -281,7 +281,23 @@ export default { | ... | @@ -281,7 +281,23 @@ export default { |
281 | }); | 281 | }); |
282 | break; | 282 | break; |
283 | case "B5": | 283 | case "B5": |
284 | this.zsylFlag = true; | 284 | this.$popup({ |
285 | title: "证书预览", | ||
286 | editItem: "workflow/components/zsyl", | ||
287 | height: "600px", | ||
288 | width: "800px", | ||
289 | formData: { | ||
290 | bsmSlsq: this.bsmSlsq, | ||
291 | entryType: '1' | ||
292 | }, | ||
293 | btnShow: false, | ||
294 | cancel: () => { | ||
295 | console.log("取消回调"); | ||
296 | }, | ||
297 | confirm: () => { | ||
298 | console.log("确认回调"); | ||
299 | }, | ||
300 | }) | ||
285 | break; | 301 | break; |
286 | case "B7": | 302 | case "B7": |
287 | this.$popup({ | 303 | this.$popup({ | ... | ... |
-
Please register or sign in to post a comment