增加注释
Showing
8 changed files
with
168 additions
and
0 deletions
... | @@ -27,6 +27,10 @@ | ... | @@ -27,6 +27,10 @@ |
27 | } | 27 | } |
28 | }, | 28 | }, |
29 | methods: { | 29 | methods: { |
30 | /** | ||
31 | * @description: pushRecord | ||
32 | * @author: renchao | ||
33 | */ | ||
30 | pushRecord () { | 34 | pushRecord () { |
31 | this.$startLoading() | 35 | this.$startLoading() |
32 | push(this.formData).then((res) => { | 36 | push(this.formData).then((res) => { | ... | ... |
... | @@ -65,6 +65,10 @@ | ... | @@ -65,6 +65,10 @@ |
65 | }, | 65 | }, |
66 | methods: { | 66 | methods: { |
67 | // 初始化数据 | 67 | // 初始化数据 |
68 | /** | ||
69 | * @description: 初始化数据 | ||
70 | * @author: renchao | ||
71 | */ | ||
68 | queryClick () { | 72 | queryClick () { |
69 | this.$startLoading() | 73 | this.$startLoading() |
70 | list({ ...this.queryForm, ...this.pageData }).then((res) => { | 74 | list({ ...this.queryForm, ...this.pageData }).then((res) => { |
... | @@ -76,6 +80,11 @@ | ... | @@ -76,6 +80,11 @@ |
76 | } | 80 | } |
77 | }); | 81 | }); |
78 | }, | 82 | }, |
83 | /** | ||
84 | * @description: openDialog | ||
85 | * @param {*} scroll | ||
86 | * @author: renchao | ||
87 | */ | ||
79 | openDialog (scroll) { | 88 | openDialog (scroll) { |
80 | const h = this.$createElement; | 89 | const h = this.$createElement; |
81 | this.$msgbox({ | 90 | this.$msgbox({ |
... | @@ -97,6 +106,11 @@ | ... | @@ -97,6 +106,11 @@ |
97 | } | 106 | } |
98 | }).then(action => { }); | 107 | }).then(action => { }); |
99 | }, | 108 | }, |
109 | /** | ||
110 | * @description: detail | ||
111 | * @param {*} row | ||
112 | * @author: renchao | ||
113 | */ | ||
100 | detail (row) { | 114 | detail (row) { |
101 | detail(row.bsm).then((res) => { | 115 | detail(row.bsm).then((res) => { |
102 | this.$endLoading() | 116 | this.$endLoading() | ... | ... |
... | @@ -130,6 +130,10 @@ export default { | ... | @@ -130,6 +130,10 @@ export default { |
130 | } | 130 | } |
131 | }, | 131 | }, |
132 | methods: { | 132 | methods: { |
133 | /** | ||
134 | * @description: closeDialog | ||
135 | * @author: renchao | ||
136 | */ | ||
133 | closeDialog () { | 137 | closeDialog () { |
134 | this.$emit("input", false); | 138 | this.$emit("input", false); |
135 | this.activeStep = 0; | 139 | this.activeStep = 0; |
... | @@ -142,6 +146,10 @@ export default { | ... | @@ -142,6 +146,10 @@ export default { |
142 | } | 146 | } |
143 | }, | 147 | }, |
144 | //加载详细信息 | 148 | //加载详细信息 |
149 | /** | ||
150 | * @description: 加载详细信息 | ||
151 | * @author: renchao | ||
152 | */ | ||
145 | loadData () { | 153 | loadData () { |
146 | this.$startLoading(); | 154 | this.$startLoading(); |
147 | getFwmxInfo({ sqcxBsm: this.sqcxBsm }).then((res) => { | 155 | getFwmxInfo({ sqcxBsm: this.sqcxBsm }).then((res) => { |
... | @@ -156,6 +164,10 @@ export default { | ... | @@ -156,6 +164,10 @@ export default { |
156 | }); | 164 | }); |
157 | }, | 165 | }, |
158 | //查询结果 | 166 | //查询结果 |
167 | /** | ||
168 | * @description: 查询结果 | ||
169 | * @author: renchao | ||
170 | */ | ||
159 | queryChick () { | 171 | queryChick () { |
160 | this.$startLoading(); | 172 | this.$startLoading(); |
161 | this.activeStep = 1; | 173 | this.activeStep = 1; |
... | @@ -172,6 +184,10 @@ export default { | ... | @@ -172,6 +184,10 @@ export default { |
172 | }); | 184 | }); |
173 | }, | 185 | }, |
174 | //重置 | 186 | //重置 |
187 | /** | ||
188 | * @description: 重置 | ||
189 | * @author: renchao | ||
190 | */ | ||
175 | resetClick () { | 191 | resetClick () { |
176 | this.form.djSqcxDO = { ycqrgx: "1", cxyt: "",bdcqzh: "" }; | 192 | this.form.djSqcxDO = { ycqrgx: "1", cxyt: "",bdcqzh: "" }; |
177 | this.form.sqrList = _.cloneDeep([this.newData]); | 193 | this.form.sqrList = _.cloneDeep([this.newData]); |
... | @@ -180,8 +196,17 @@ export default { | ... | @@ -180,8 +196,17 @@ export default { |
180 | this.form.dyjlList = []; | 196 | this.form.dyjlList = []; |
181 | this.isSearch = false; | 197 | this.isSearch = false; |
182 | }, | 198 | }, |
199 | /** | ||
200 | * @description: handleRead | ||
201 | * @author: renchao | ||
202 | */ | ||
183 | handleRead (scope) { }, | 203 | handleRead (scope) { }, |
184 | //添加申请人或权利人 | 204 | //添加申请人或权利人 |
205 | /** | ||
206 | * @description: 添加申请人或权利人 | ||
207 | * @param {*} type | ||
208 | * @author: renchao | ||
209 | */ | ||
185 | add (type) { | 210 | add (type) { |
186 | if (type == "sqr") { | 211 | if (type == "sqr") { |
187 | this.form.sqrList.push(_.cloneDeep(this.newData)); | 212 | this.form.sqrList.push(_.cloneDeep(this.newData)); |
... | @@ -190,6 +215,13 @@ export default { | ... | @@ -190,6 +215,13 @@ export default { |
190 | } | 215 | } |
191 | }, | 216 | }, |
192 | //移除申请人或权利人 | 217 | //移除申请人或权利人 |
218 | /** | ||
219 | * @description: 移除申请人或权利人 | ||
220 | * @param {*} index | ||
221 | * @param {*} row | ||
222 | * @param {*} type | ||
223 | * @author: renchao | ||
224 | */ | ||
193 | remove (index, row, type) { | 225 | remove (index, row, type) { |
194 | if (type == "sqr") { | 226 | if (type == "sqr") { |
195 | this.form.sqrList.splice(index, 1); | 227 | this.form.sqrList.splice(index, 1); |
... | @@ -198,6 +230,11 @@ export default { | ... | @@ -198,6 +230,11 @@ export default { |
198 | } | 230 | } |
199 | }, | 231 | }, |
200 | //电话号码校验 | 232 | //电话号码校验 |
233 | /** | ||
234 | * @description: 电话号码校验 | ||
235 | * @param {*} row | ||
236 | * @author: renchao | ||
237 | */ | ||
201 | teltest (row) { | 238 | teltest (row) { |
202 | const reg = /^1([38]\d|5[0-35-9]|7[3678])\d{8}$/; | 239 | const reg = /^1([38]\d|5[0-35-9]|7[3678])\d{8}$/; |
203 | if (row.lxdh == "" || row.lxdh.length <= 10 || !reg.test(row.lxdh)) { | 240 | if (row.lxdh == "" || row.lxdh.length <= 10 || !reg.test(row.lxdh)) { | ... | ... |
... | @@ -74,9 +74,18 @@ export default { | ... | @@ -74,9 +74,18 @@ export default { |
74 | } | 74 | } |
75 | }, | 75 | }, |
76 | methods: { | 76 | methods: { |
77 | /** | ||
78 | * @description: setResult | ||
79 | * @param {*} data | ||
80 | * @author: renchao | ||
81 | */ | ||
77 | setResult(data){ | 82 | setResult(data){ |
78 | this.resultData = data | 83 | this.resultData = data |
79 | }, | 84 | }, |
85 | /** | ||
86 | * @description: getDetailInfo | ||
87 | * @author: renchao | ||
88 | */ | ||
80 | getDetailInfo(){ | 89 | getDetailInfo(){ |
81 | this.$startLoading(); | 90 | this.$startLoading(); |
82 | getFwmxInfo({ sqcxBsm: this.formData.bsmSqcx }).then((res) => { | 91 | getFwmxInfo({ sqcxBsm: this.formData.bsmSqcx }).then((res) => { | ... | ... |
... | @@ -78,6 +78,10 @@ export default { | ... | @@ -78,6 +78,10 @@ export default { |
78 | }, | 78 | }, |
79 | methods: { | 79 | methods: { |
80 | // 初始化数据 | 80 | // 初始化数据 |
81 | /** | ||
82 | * @description: 初始化数据 | ||
83 | * @author: renchao | ||
84 | */ | ||
81 | queryClick () { | 85 | queryClick () { |
82 | this.$startLoading(); | 86 | this.$startLoading(); |
83 | getSqcxPage({ ...this.queryForm, ...this.pageData }).then((res) => { | 87 | getSqcxPage({ ...this.queryForm, ...this.pageData }).then((res) => { |
... | @@ -89,14 +93,29 @@ export default { | ... | @@ -89,14 +93,29 @@ export default { |
89 | } | 93 | } |
90 | }); | 94 | }); |
91 | }, | 95 | }, |
96 | /** | ||
97 | * @description: dydjbClick | ||
98 | * @param {*} scope | ||
99 | * @author: renchao | ||
100 | */ | ||
92 | dydjbClick (scope) { | 101 | dydjbClick (scope) { |
93 | this.$popupDialog("打印登记薄", "sqcx/dydjb/components/dydjbInfo", { | 102 | this.$popupDialog("打印登记薄", "sqcx/dydjb/components/dydjbInfo", { |
94 | bsmSqcx: scope.row.bsmSqcx, | 103 | bsmSqcx: scope.row.bsmSqcx, |
95 | }) | 104 | }) |
96 | }, | 105 | }, |
106 | /** | ||
107 | * @description: handleSort | ||
108 | * @param {*} name | ||
109 | * @param {*} sort | ||
110 | * @author: renchao | ||
111 | */ | ||
97 | handleSort (name, sort) { | 112 | handleSort (name, sort) { |
98 | console.log(name, sort); | 113 | console.log(name, sort); |
99 | }, | 114 | }, |
115 | /** | ||
116 | * @description: openAddDialog | ||
117 | * @author: renchao | ||
118 | */ | ||
100 | openAddDialog () { | 119 | openAddDialog () { |
101 | this.isDialog = true | 120 | this.isDialog = true |
102 | this.sqcxBsm = '' | 121 | this.sqcxBsm = '' | ... | ... |
... | @@ -324,9 +324,18 @@ | ... | @@ -324,9 +324,18 @@ |
324 | }, | 324 | }, |
325 | methods: { | 325 | methods: { |
326 | // 字典 | 326 | // 字典 |
327 | /** | ||
328 | * @description: 字典 | ||
329 | * @param {*} val | ||
330 | * @author: renchao | ||
331 | */ | ||
327 | getDictData (val) { | 332 | getDictData (val) { |
328 | return store.getters.dictData[val] | 333 | return store.getters.dictData[val] |
329 | }, | 334 | }, |
335 | /** | ||
336 | * @description: closeDialog | ||
337 | * @author: renchao | ||
338 | */ | ||
330 | closeDialog () { | 339 | closeDialog () { |
331 | this.$popupCacel() | 340 | this.$popupCacel() |
332 | this.form = { | 341 | this.form = { |
... | @@ -338,6 +347,10 @@ | ... | @@ -338,6 +347,10 @@ |
338 | } | 347 | } |
339 | }, | 348 | }, |
340 | //加载详细信息 | 349 | //加载详细信息 |
350 | /** | ||
351 | * @description: 加载详细信息 | ||
352 | * @author: renchao | ||
353 | */ | ||
341 | loadData () { | 354 | loadData () { |
342 | this.$startLoading(); | 355 | this.$startLoading(); |
343 | getJtfcInfo({ sqcxBsm: this.formData.sqcxBsm }).then((res) => { | 356 | getJtfcInfo({ sqcxBsm: this.formData.sqcxBsm }).then((res) => { |
... | @@ -350,6 +363,10 @@ | ... | @@ -350,6 +363,10 @@ |
350 | }); | 363 | }); |
351 | }, | 364 | }, |
352 | //查询结果 | 365 | //查询结果 |
366 | /** | ||
367 | * @description: 查询结果 | ||
368 | * @author: renchao | ||
369 | */ | ||
353 | queryChick () { | 370 | queryChick () { |
354 | this.$startLoading(); | 371 | this.$startLoading(); |
355 | addJtfcCxjgXx(this.form).then((res) => { | 372 | addJtfcCxjgXx(this.form).then((res) => { |
... | @@ -362,6 +379,10 @@ | ... | @@ -362,6 +379,10 @@ |
362 | }); | 379 | }); |
363 | }, | 380 | }, |
364 | //重置 | 381 | //重置 |
382 | /** | ||
383 | * @description: 重置 | ||
384 | * @author: renchao | ||
385 | */ | ||
365 | resetClick () { | 386 | resetClick () { |
366 | this.form.djSqcxDO = { ycqrgx: "1", cxyt: "" }; | 387 | this.form.djSqcxDO = { ycqrgx: "1", cxyt: "" }; |
367 | this.form.sqrList = _.cloneDeep([this.newData]); | 388 | this.form.sqrList = _.cloneDeep([this.newData]); |
... | @@ -370,6 +391,12 @@ | ... | @@ -370,6 +391,12 @@ |
370 | this.form.dyjlList = []; | 391 | this.form.dyjlList = []; |
371 | this.isSearch = false; | 392 | this.isSearch = false; |
372 | }, | 393 | }, |
394 | /** | ||
395 | * @description: handleRead | ||
396 | * @param {*} row | ||
397 | * @param {*} type | ||
398 | * @author: renchao | ||
399 | */ | ||
373 | handleRead (row, type) { | 400 | handleRead (row, type) { |
374 | getIdCardInfo().then(res => { | 401 | getIdCardInfo().then(res => { |
375 | if (res.data.code == 0) { | 402 | if (res.data.code == 0) { |
... | @@ -393,13 +420,28 @@ | ... | @@ -393,13 +420,28 @@ |
393 | }) | 420 | }) |
394 | }, | 421 | }, |
395 | //添加申请人 | 422 | //添加申请人 |
423 | /** | ||
424 | * @description: 添加申请人 | ||
425 | * @author: renchao | ||
426 | */ | ||
396 | handleAddsqr () { | 427 | handleAddsqr () { |
397 | this.form.sqrList.push(_.cloneDeep(this.newData)); | 428 | this.form.sqrList.push(_.cloneDeep(this.newData)); |
398 | }, | 429 | }, |
430 | /** | ||
431 | * @description: handleAddqlr | ||
432 | * @author: renchao | ||
433 | */ | ||
399 | handleAddqlr () { | 434 | handleAddqlr () { |
400 | this.form.qlrList.push(_.cloneDeep(this.newData)); | 435 | this.form.qlrList.push(_.cloneDeep(this.newData)); |
401 | }, | 436 | }, |
402 | //移除申请人或权利人 | 437 | //移除申请人或权利人 |
438 | /** | ||
439 | * @description: 移除申请人或权利人 | ||
440 | * @param {*} index | ||
441 | * @param {*} row | ||
442 | * @param {*} type | ||
443 | * @author: renchao | ||
444 | */ | ||
403 | remove (index, row, type) { | 445 | remove (index, row, type) { |
404 | console.log(type, 'type'); | 446 | console.log(type, 'type'); |
405 | if (type == "sqr") { | 447 | if (type == "sqr") { |
... | @@ -409,6 +451,11 @@ | ... | @@ -409,6 +451,11 @@ |
409 | } | 451 | } |
410 | }, | 452 | }, |
411 | //电话号码校验 | 453 | //电话号码校验 |
454 | /** | ||
455 | * @description: 电话号码校验 | ||
456 | * @param {*} row | ||
457 | * @author: renchao | ||
458 | */ | ||
412 | teltest (row) { | 459 | teltest (row) { |
413 | const reg = /^1([38]\d|5[0-35-9]|7[3678])\d{8}$/; | 460 | const reg = /^1([38]\d|5[0-35-9]|7[3678])\d{8}$/; |
414 | if (row.lxdh == "" || row.lxdh.length <= 10 || !reg.test(row.lxdh)) { | 461 | if (row.lxdh == "" || row.lxdh.length <= 10 || !reg.test(row.lxdh)) { |
... | @@ -420,6 +467,10 @@ | ... | @@ -420,6 +467,10 @@ |
420 | } | 467 | } |
421 | }, | 468 | }, |
422 | //打印 | 469 | //打印 |
470 | /** | ||
471 | * @description: 打印 | ||
472 | * @author: renchao | ||
473 | */ | ||
423 | printResult () { | 474 | printResult () { |
424 | this.openPrintPrew(); | 475 | this.openPrintPrew(); |
425 | var formdata = new FormData(); | 476 | var formdata = new FormData(); |
... | @@ -432,6 +483,10 @@ | ... | @@ -432,6 +483,10 @@ |
432 | }); | 483 | }); |
433 | }, | 484 | }, |
434 | //打开打印预览 | 485 | //打开打印预览 |
486 | /** | ||
487 | * @description: 打开打印预览 | ||
488 | * @author: renchao | ||
489 | */ | ||
435 | openPrintPrew () { | 490 | openPrintPrew () { |
436 | let lodop = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM')); | 491 | let lodop = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM')); |
437 | // 获取页面的HTML内容 | 492 | // 获取页面的HTML内容 | ... | ... |
... | @@ -83,14 +83,29 @@ | ... | @@ -83,14 +83,29 @@ |
83 | } | 83 | } |
84 | }); | 84 | }); |
85 | }, | 85 | }, |
86 | /** | ||
87 | * @description: handleSort | ||
88 | * @param {*} name | ||
89 | * @param {*} sort | ||
90 | * @author: renchao | ||
91 | */ | ||
86 | handleSort (name, sort) { | 92 | handleSort (name, sort) { |
87 | console.log(name, sort); | 93 | console.log(name, sort); |
88 | }, | 94 | }, |
95 | /** | ||
96 | * @description: handleAdd | ||
97 | * @author: renchao | ||
98 | */ | ||
89 | handleAdd () { | 99 | handleAdd () { |
90 | this.$popupDialog("家庭房产查询", "sqcx/jtfc/components/addjtfc", { | 100 | this.$popupDialog("家庭房产查询", "sqcx/jtfc/components/addjtfc", { |
91 | sqcxBsm: '' | 101 | sqcxBsm: '' |
92 | }) | 102 | }) |
93 | }, | 103 | }, |
104 | /** | ||
105 | * @description: handleAdd | ||
106 | * @param {*} row | ||
107 | * @author: renchao | ||
108 | */ | ||
94 | handleViewClick (row) { | 109 | handleViewClick (row) { |
95 | this.$popupDialog("家庭房产查询", "sqcx/jtfc/components/addjtfc", { | 110 | this.$popupDialog("家庭房产查询", "sqcx/jtfc/components/addjtfc", { |
96 | sqcxBsm: row.bsmSqcx | 111 | sqcxBsm: row.bsmSqcx | ... | ... |
... | @@ -92,6 +92,10 @@ export default { | ... | @@ -92,6 +92,10 @@ export default { |
92 | }, | 92 | }, |
93 | methods: { | 93 | methods: { |
94 | // 初始化数据 | 94 | // 初始化数据 |
95 | /** | ||
96 | * @description: 初始化数据 | ||
97 | * @author: renchao | ||
98 | */ | ||
95 | queryClick () { | 99 | queryClick () { |
96 | this.$startLoading(); | 100 | this.$startLoading(); |
97 | getSqcxPage({ ...this.queryForm, ...this.pageData }).then((res) => { | 101 | getSqcxPage({ ...this.queryForm, ...this.pageData }).then((res) => { |
... | @@ -103,10 +107,21 @@ export default { | ... | @@ -103,10 +107,21 @@ export default { |
103 | } | 107 | } |
104 | }); | 108 | }); |
105 | }, | 109 | }, |
110 | /** | ||
111 | * @description: handleSort | ||
112 | * @param {*} name | ||
113 | * @param {*} sort | ||
114 | * @author: renchao | ||
115 | */ | ||
106 | handleSort (name, sort) { | 116 | handleSort (name, sort) { |
107 | console.log(name, sort); | 117 | console.log(name, sort); |
108 | }, | 118 | }, |
109 | // 查看 | 119 | // 查看 |
120 | /** | ||
121 | * @description: 查看 | ||
122 | * @param {*} scope | ||
123 | * @author: renchao | ||
124 | */ | ||
110 | handleViewClick (scope) { | 125 | handleViewClick (scope) { |
111 | this.$popupDialog("申请查询记录", "sqcx/sqcxjl/components/sqcxjlInfo", { | 126 | this.$popupDialog("申请查询记录", "sqcx/sqcxjl/components/sqcxjlInfo", { |
112 | sqcxBsm: scope.row.bsmSqcx | 127 | sqcxBsm: scope.row.bsmSqcx | ... | ... |
-
Please register or sign in to post a comment