debb055d by zhaoqian

权利人数据保存修改

1 parent 9db815d8
...@@ -17,7 +17,6 @@ export default { ...@@ -17,7 +17,6 @@ export default {
17 }, 17 },
18 //请求字典数据 18 //请求字典数据
19 getDic() { 19 getDic() {
20 debugger
21 let s = this.$store.state; 20 let s = this.$store.state;
22 s.zjzlList = s.zjzlList.length == 0 ? this.getDicData("证件种类") : s.zjzlList; 21 s.zjzlList = s.zjzlList.length == 0 ? this.getDicData("证件种类") : s.zjzlList;
23 s.gjList = s.gjList.length == 0 ? this.getDicData("国家和地区") : s.gjList; 22 s.gjList = s.gjList.length == 0 ? this.getDicData("国家和地区") : s.gjList;
......
1 import request from '@/plugin/axios'
2 /**
3 * 新增权利人法人代理人
4 */
5 export function insertQlrDlrFr(data) {
6 return request({
7 url: '/system/Qlr/insertQlrDlrFr',
8 method: 'post',
9 data: data,
10 })
11 }
12
13 /**
14 * 根据glbsm查询qlr信息
15 */
16 export function getQlrInfoByGlbsm(data) {
17 return request({
18 url: '/system/Qlr/getQlrByGlbsm',
19 method: 'get',
20 params: {
21 glbsm:data
22 },
23 })
24 }
...\ No newline at end of file ...\ No newline at end of file
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
75 <td colspan="3"> 75 <td colspan="3">
76 <el-select class="formSelect" v-model="formData.zjzlbsm"> 76 <el-select class="formSelect" v-model="formData.zjzlbsm">
77 <el-option 77 <el-option
78 v-for="item in qllxList" 78 v-for="item in zjlxList"
79 :key="item.bsm" 79 :key="item.bsm"
80 :label="item.mc" 80 :label="item.mc"
81 :value="item.bsm" 81 :value="item.bsm"
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
103 <td colspan="3"> 103 <td colspan="3">
104 <el-select class="formSelect" v-model="formData.gjbsm"> 104 <el-select class="formSelect" v-model="formData.gjbsm">
105 <el-option 105 <el-option
106 v-for="item in qllxList" 106 v-for="item in gjList"
107 :key="item.bsm" 107 :key="item.bsm"
108 :label="item.mc" 108 :label="item.mc"
109 :value="item.bsm" 109 :value="item.bsm"
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
115 <td colspan="3"> 115 <td colspan="3">
116 <el-select class="formSelect" v-model="formData.hjszssbsm"> 116 <el-select class="formSelect" v-model="formData.hjszssbsm">
117 <el-option 117 <el-option
118 v-for="item in qllxList" 118 v-for="item in ssList"
119 :key="item.bsm" 119 :key="item.bsm"
120 :label="item.mc" 120 :label="item.mc"
121 :value="item.bsm" 121 :value="item.bsm"
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
129 <td colspan="3"> 129 <td colspan="3">
130 <el-select class="formSelect" v-model="formData.xbbsm"> 130 <el-select class="formSelect" v-model="formData.xbbsm">
131 <el-option 131 <el-option
132 v-for="item in qllxList" 132 v-for="item in xbList"
133 :key="item.bsm" 133 :key="item.bsm"
134 :label="item.mc" 134 :label="item.mc"
135 :value="item.bsm" 135 :value="item.bsm"
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
147 <td colspan="3"> 147 <td colspan="3">
148 <el-select class="formSelect" v-model="formData.sshy"> 148 <el-select class="formSelect" v-model="formData.sshy">
149 <el-option 149 <el-option
150 v-for="item in qllxList" 150 v-for="item in sshyList"
151 :key="item.bsm" 151 :key="item.bsm"
152 :label="item.mc" 152 :label="item.mc"
153 :value="item.bsm" 153 :value="item.bsm"
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
176 <td colspan="3"> 176 <td colspan="3">
177 <el-select class="formSelect" v-model="formData.fr.zjzlbsm"> 177 <el-select class="formSelect" v-model="formData.fr.zjzlbsm">
178 <el-option 178 <el-option
179 v-for="item in qllxList" 179 v-for="item in zjlxList"
180 :key="item.bsm" 180 :key="item.bsm"
181 :label="item.mc" 181 :label="item.mc"
182 :value="item.bsm" 182 :value="item.bsm"
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
199 <td colspan="10">代理人信息</td> 199 <td colspan="10">代理人信息</td>
200 </tr> 200 </tr>
201 <template v-for="(item, index) in formData.dlr"> 201 <template v-for="(item, index) in formData.dlr">
202 <tr :key="item.zjh"> 202 <tr :key="item.index">
203 <td rowspan="2" class="btnCol"> 203 <td rowspan="2" class="btnCol">
204 <el-button 204 <el-button
205 type="primary" 205 type="primary"
...@@ -222,7 +222,7 @@ ...@@ -222,7 +222,7 @@
222 <td colspan="3"> 222 <td colspan="3">
223 <el-select class="formSelect" v-model="item.zjzlbsm"> 223 <el-select class="formSelect" v-model="item.zjzlbsm">
224 <el-option 224 <el-option
225 v-for="item in qllxList" 225 v-for="item in zjlxList"
226 :key="item.bsm" 226 :key="item.bsm"
227 :label="item.mc" 227 :label="item.mc"
228 :value="item.bsm" 228 :value="item.bsm"
...@@ -231,7 +231,8 @@ ...@@ -231,7 +231,8 @@
231 </el-select> 231 </el-select>
232 </td> 232 </td>
233 </tr> 233 </tr>
234 <tr :key="item.dh"> 234 <!-- <tr :key="item.dh">-->
235 <tr>
235 <td>证件号码</td> 236 <td>证件号码</td>
236 <td colspan="3"> 237 <td colspan="3">
237 <input type="text" class="formInput" v-model="item.zjh" /> 238 <input type="text" class="formInput" v-model="item.zjh" />
...@@ -251,7 +252,7 @@ ...@@ -251,7 +252,7 @@
251 <td colspan="3"> 252 <td colspan="3">
252 <el-select class="formSelect" v-model="formData.gyfsbsm"> 253 <el-select class="formSelect" v-model="formData.gyfsbsm">
253 <el-option 254 <el-option
254 v-for="item in qllxList" 255 v-for="item in gyfsList"
255 :key="item.bsm" 256 :key="item.bsm"
256 :label="item.mc" 257 :label="item.mc"
257 :value="item.bsm" 258 :value="item.bsm"
...@@ -283,7 +284,7 @@ ...@@ -283,7 +284,7 @@
283 </table> 284 </table>
284 </el-form> 285 </el-form>
285 <span slot="footer" class="dialog-footer"> 286 <span slot="footer" class="dialog-footer">
286 <el-button type="primary" @click="dialogVisible = false" 287 <el-button type="primary" @click="addNewQlrInfo"
287 >确 定</el-button 288 >确 定</el-button
288 > 289 >
289 <el-button @click="dialogVisible = false">取 消</el-button> 290 <el-button @click="dialogVisible = false">取 消</el-button>
...@@ -293,20 +294,30 @@ ...@@ -293,20 +294,30 @@
293 </template> 294 </template>
294 295
295 <script> 296 <script>
296 export default { 297 import {getDdicByMC} from "../../api/common";
298 import {insertQlrDlrFr,getQlrInfoByGlbsm} from "../../api/qlr";
299
300 export default {
297 props: { 301 props: {
298 widtd: { 302 // widtd: {
299 type: String, 303 // type: String,
300 default: "70%", 304 // default: "70%",
301 }, 305 // },
302 title: { 306 // title: {
303 type: String, 307 // type: String,
304 default: "", 308 // default: "",
305 }, 309 // },
306 topHeight: { 310 // topHeight: {
307 type: String, 311 // type: String,
308 default: "15vh", 312 // default: "15vh",
313 // },
314 lx: {
315 type:String,
309 }, 316 },
317 bsm: {
318 type:String,
319 required:true
320 }
310 }, 321 },
311 data() { 322 data() {
312 return { 323 return {
...@@ -316,6 +327,7 @@ export default { ...@@ -316,6 +327,7 @@ export default {
316 multipleSelection: {}, 327 multipleSelection: {},
317 dialogVisible: false, 328 dialogVisible: false,
318 formData: { 329 formData: {
330 addQjDlrFrRequest:[],
319 dlr: [ 331 dlr: [
320 { 332 {
321 dh: "", 333 dh: "",
...@@ -357,6 +369,12 @@ export default { ...@@ -357,6 +369,12 @@ export default {
357 zjzlbsm: "", 369 zjzlbsm: "",
358 }, 370 },
359 qllxList: [], 371 qllxList: [],
372 zjlxList: [],
373 gjList: [],
374 ssList: [],
375 xbList: [],
376 sshyList: [],
377 gyfsList: [],
360 }; 378 };
361 }, 379 },
362 methods: { 380 methods: {
...@@ -371,6 +389,25 @@ export default { ...@@ -371,6 +389,25 @@ export default {
371 this.dialogVisible = true; 389 this.dialogVisible = true;
372 } 390 }
373 }, 391 },
392 addNewQlrInfo(){
393 //todo 权利人页面调整
394 this.formData.glbsm=this.bsm;
395 //将代理人,法人数据合在一起,名称为addQjDlrFrRequest;
396 //法人的type字段类型为0
397 this.formData.fr.type=0;
398 this.formData.addQjDlrFrRequest.push(this.formData.fr);
399 for(let k=0;k<this.formData.dlr.length;k++){
400 this.formData.dlr[k].type=1;
401 this.formData.addQjDlrFrRequest.push(this.formData.dlr[k]);
402 }
403 insertQlrDlrFr(this.formData).then((res)=>{
404 if(res.code===200){
405 this.tableData.push(this.formData);
406 Object.assign(this.$data, this.$options.data())
407 this.dialogVisible = false;
408 }
409 })
410 },
374 //修改行数据 411 //修改行数据
375 changeRow() { 412 changeRow() {
376 if (this.multipleSelection.length == 1) { 413 if (this.multipleSelection.length == 1) {
...@@ -437,8 +474,51 @@ export default { ...@@ -437,8 +474,51 @@ export default {
437 }); 474 });
438 } 475 }
439 }, 476 },
477 getDdic(){
478 getDdicByMC("权利人类型").then((res)=>{
479 this.qllxList=res.result;
480 })
481 getDdicByMC("证件种类").then((res)=>{
482 this.zjlxList=res.result;
483 })
484 getDdicByMC("国家和地区").then((res)=>{
485 this.gjList=res.result;
486 })
487 getDdicByMC("省市").then((res)=>{
488 this.ssList=res.result;
489 })
490 getDdicByMC("性别").then((res)=>{
491 this.xbList=res.result;
492 })
493 getDdicByMC("所属行业").then((res)=>{
494 this.sshyList=res.result;
495 })
496 getDdicByMC("共有方式").then((res)=>{
497 this.gyfsList=res.result;
498 })
499 },
500 getQlrInfo(){
501 console.log("===========================")
502 console.log(this.bsm)
503 getQlrInfoByGlbsm(this.bsm).then((res)=>{
504 if(res.code){
505 if(res.result!=null){
506 this.tableData=res.result;
507 }
508 }
509 })
510 }
440 }, 511 },
441 }; 512 created(){
513 console.log("===========================cres")
514 console.log(this.bsm)
515
516 this.getQlrInfo();
517 },
518 mounted() {
519 this.getDdic();
520 }
521 };
442 </script> 522 </script>
443 <style lang="less"> 523 <style lang="less">
444 .temp { 524 .temp {
......
1 <template> 1 <template>
2 <div class="zrz content-form" v-loading="loading"> 2 <div class="zrz content-form" v-loading="loading">
3 <el-form ref="form" :model="form" label-width="160px"> 3 <el-form ref="form" :model="form" label-width="160px">
4 <Qlr ref="qlrxxModule"></Qlr> 4 <Qlr ref="qlrxxModule" :lx="lx" :bsm="zrzbsm"></Qlr>
5 <table border="1" width="100%" cellspacing="0" cellpadding="0" class="zrzTable"> 5 <table border="1" width="100%" cellspacing="0" cellpadding="0" class="zrzTable">
6 <tbody> 6 <tbody>
7 <tr height="30"> 7 <tr height="30">
...@@ -280,6 +280,8 @@ ...@@ -280,6 +280,8 @@
280 }, 280 },
281 data () { 281 data () {
282 return { 282 return {
283 lx:"zrz",
284 zrzbsm:'',
283 form:{ 285 form:{
284 zrzbsm:'', //自然幢标识码 286 zrzbsm:'', //自然幢标识码
285 zdbsm:'', //宗地标识码 287 zdbsm:'', //宗地标识码
...@@ -395,7 +397,6 @@ ...@@ -395,7 +397,6 @@
395 } 397 }
396 }, 398 },
397 onSave(){ 399 onSave(){
398 console.log(this.form)
399 this.loading=true; 400 this.loading=true;
400 // this.form.qlxzList=this.$refs.qlxzModule.getQlxzDataList(); 401 // this.form.qlxzList=this.$refs.qlxzModule.getQlxzDataList();
401 this.form.qlxzList= 402 this.form.qlxzList=
...@@ -532,16 +533,17 @@ ...@@ -532,16 +533,17 @@
532 getZrzDetailByBsm(data){ 533 getZrzDetailByBsm(data){
533 getZrzDetailByBsm(data).then((res)=>{ 534 getZrzDetailByBsm(data).then((res)=>{
534 if(res.code===200){ 535 if(res.code===200){
535 console.log(res.result)
536 this.form=res.result; 536 this.form=res.result;
537 } 537 }
538 }) 538 })
539 },
540 consoleLog(data){
541 console.log("============================")
542 console.log(data)
539 } 543 }
540 },
541 created(){
542 544
543 }, 545 },
544 mounted() { 546 created(){
545 this.getDDic(); 547 this.getDDic();
546 //todo 怎么判断进入到该页面是从新建处进来的,还是从右键宗地进来的!如果是从新建进来的就需要把虚拟宗标识码带过来; 548 //todo 怎么判断进入到该页面是从新建处进来的,还是从右键宗地进来的!如果是从新建进来的就需要把虚拟宗标识码带过来;
547 this.source = this.$route.query.source; 549 this.source = this.$route.query.source;
...@@ -551,10 +553,14 @@ ...@@ -551,10 +553,14 @@
551 this.getZddm(this.$store.zdbsm); 553 this.getZddm(this.$store.zdbsm);
552 this.form.xmmc=this.$store.xmmc; 554 this.form.xmmc=this.$store.xmmc;
553 this.form.zrzbsm=this.$store.zrzbsm; 555 this.form.zrzbsm=this.$store.zrzbsm;
556
554 }else { 557 }else {
558 this.zrzbsm=this.$route.query.bsm;
555 this.getZrzDetailByBsm(this.$route.query.bsm) 559 this.getZrzDetailByBsm(this.$route.query.bsm)
560 this.consoleLog(this.zrzbsm)
556 } 561 }
557 562 },
563 mounted() {
558 } 564 }
559 } 565 }
560 </script> 566 </script>
......