Merge branch 'master' of http://yun.pashanhoo.com:9090/renchao/CadastralSystem
Showing
4 changed files
with
73 additions
and
2 deletions
... | @@ -231,3 +231,13 @@ export function getZrz(zdBsm) { | ... | @@ -231,3 +231,13 @@ export function getZrz(zdBsm) { |
231 | }) | 231 | }) |
232 | } | 232 | } |
233 | 233 | ||
234 | /** | ||
235 | * 宗地合并 | ||
236 | */ | ||
237 | export function ZdHb(data) { | ||
238 | return request({ | ||
239 | url:"/bg/zdSplitMerge/zdHb", | ||
240 | method:'post', | ||
241 | data:data | ||
242 | }) | ||
243 | } | ... | ... |
... | @@ -21,7 +21,7 @@ | ... | @@ -21,7 +21,7 @@ |
21 | </el-col> | 21 | </el-col> |
22 | <el-col :span="8"> | 22 | <el-col :span="8"> |
23 | <el-form-item label="不动产单元号"> | 23 | <el-form-item label="不动产单元号"> |
24 | <el-input | 24 | <el-input |
25 | maxlength="28" | 25 | maxlength="28" |
26 | v-model="queryData.bdcdyh" | 26 | v-model="queryData.bdcdyh" |
27 | placeholder="输入不动产单元号" | 27 | placeholder="输入不动产单元号" | ... | ... |
This diff is collapsed.
Click to expand it.
... | @@ -15,6 +15,7 @@ | ... | @@ -15,6 +15,7 @@ |
15 | <td class="bdcqzh">不动产权证号</td> | 15 | <td class="bdcqzh">不动产权证号</td> |
16 | <td class="qlr">权利人</td> | 16 | <td class="qlr">权利人</td> |
17 | <td class="zl">坐落</td> | 17 | <td class="zl">坐落</td> |
18 | <td class="cz">操作</td> | ||
18 | </tr> | 19 | </tr> |
19 | <tr v-if="zdhbqData.length==0"> | 20 | <tr v-if="zdhbqData.length==0"> |
20 | <td colspan="7"> | 21 | <td colspan="7"> |
... | @@ -35,6 +36,7 @@ | ... | @@ -35,6 +36,7 @@ |
35 | readonly="readonly"/></td> | 36 | readonly="readonly"/></td> |
36 | <td class="zl"><input type="text" class="formInput" v-model="item.zl" | 37 | <td class="zl"><input type="text" class="formInput" v-model="item.zl" |
37 | readonly="readonly"/></td> | 38 | readonly="readonly"/></td> |
39 | <td class="cz" @click="deleteData(index)"><span>删除</span></td> | ||
38 | </tr> | 40 | </tr> |
39 | </table> | 41 | </table> |
40 | </div> | 42 | </div> |
... | @@ -114,7 +116,7 @@ | ... | @@ -114,7 +116,7 @@ |
114 | @close="close"></zd-query-data> | 116 | @close="close"></zd-query-data> |
115 | 117 | ||
116 | <div class="header-button" :style="{width:fgBoxWidth+'px'}"> | 118 | <div class="header-button" :style="{width:fgBoxWidth+'px'}"> |
117 | <el-button type="primary" class="saveBtn">保存</el-button> | 119 | <el-button type="primary" class="saveBtn" @click="save">保存</el-button> |
118 | </div> | 120 | </div> |
119 | </div> | 121 | </div> |
120 | </el-tab-pane> | 122 | </el-tab-pane> |
... | @@ -361,6 +363,7 @@ | ... | @@ -361,6 +363,7 @@ |
361 | getListByPbsm, | 363 | getListByPbsm, |
362 | getDdicByMC | 364 | getDdicByMC |
363 | } from "./../../../../api/common"; | 365 | } from "./../../../../api/common"; |
366 | import {ZdHb} from "./../../../../api/zd" | ||
364 | import QueryData from './../../../../components/queryData/queryData' | 367 | import QueryData from './../../../../components/queryData/queryData' |
365 | import zdQueryData from './../../../../components/zdQueryData/zdQueryData' | 368 | import zdQueryData from './../../../../components/zdQueryData/zdQueryData' |
366 | 369 | ||
... | @@ -409,6 +412,64 @@ | ... | @@ -409,6 +412,64 @@ |
409 | }) | 412 | }) |
410 | }, | 413 | }, |
411 | methods: { | 414 | methods: { |
415 | save(){ | ||
416 | switch (this.tabName) { | ||
417 | case "zd": | ||
418 | this.zdHb(); | ||
419 | break | ||
420 | case "dz": | ||
421 | break | ||
422 | case "h": | ||
423 | break; | ||
424 | default: | ||
425 | break | ||
426 | } | ||
427 | }, | ||
428 | zdHb(){ | ||
429 | let oldBsm= this.zdhbqData.map(function (item,index) { | ||
430 | return item.zdbsm; | ||
431 | }).join(",") | ||
432 | let data={ | ||
433 | newzddjqbsm: this.zdhbhData.djqbsm, | ||
434 | newzddjzqbsm: this.zdhbhData.djzqbsm, | ||
435 | newzdsyqlxbsm: this.zdhbqData.syqlxbsm, | ||
436 | newzduserbsm: "", | ||
437 | newzdxmmc: this.zdhbqData.xmmc, | ||
438 | newzdxzqbsm: this.zdhbqData.xzqbsm, | ||
439 | newzdzdtzmbsm: this.zdhbqData.zdtzmbsm, | ||
440 | oldzdbsms: oldBsm | ||
441 | } | ||
442 | console.log(this.zdhbhData,"宗地合并后数据"); | ||
443 | console.log(this.zdhbqData,"宗地合并前数据") | ||
444 | ZdHb(data).then(res=>{ | ||
445 | if (res.success) { | ||
446 | this.$message.success("合并成功") | ||
447 | }else { | ||
448 | this.$message.error("合并失败") | ||
449 | } | ||
450 | }) | ||
451 | }, | ||
452 | dzHb(){ | ||
453 | |||
454 | }, | ||
455 | hHb(){ | ||
456 | |||
457 | }, | ||
458 | deleteData(index){ | ||
459 | switch (this.tabName) { | ||
460 | case "zd": | ||
461 | this.zdhbqData.splice(index,1) | ||
462 | break | ||
463 | case "dz": | ||
464 | this.dzhbqData.splice(index,1) | ||
465 | break | ||
466 | case "h": | ||
467 | this.hhbqData.splice(index,1) | ||
468 | break | ||
469 | default: | ||
470 | break | ||
471 | } | ||
472 | }, | ||
412 | getzdtzm() { | 473 | getzdtzm() { |
413 | getDdicByMC('宗地(宗海)特征码').then(res => { | 474 | getDdicByMC('宗地(宗海)特征码').then(res => { |
414 | this.tdtzm = res.result | 475 | this.tdtzm = res.result | ... | ... |
-
Please register or sign in to post a comment