f2204302 by 杨威

权利性质完善

1 parent 4acffee9
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
5 v-for="(items, index) in countList" 5 v-for="(items, index) in countList"
6 :key="items.id" 6 :key="items.id"
7 > 7 >
8 <template v-for="(childItem,childIndex) in items.addQjTdytRequestList" > 8 <template v-for="(childItem,childIndex) in items.list" >
9 <el-col :span="2" class="btnCol" :key="childIndex+'1'" :class="childIndex>0 ? 'childYT noTopBorder':''"> 9 <el-col :span="2" class="btnCol" :key="childIndex+'1'" :class="childIndex>0 ? 'childYT noTopBorder':''">
10 <el-button 10 <el-button
11 v-show="childIndex<1" 11 v-show="childIndex<1"
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
78 <el-date-picker 78 <el-date-picker
79 v-model="childItem.tdsyqssj" 79 v-model="childItem.tdsyqssj"
80 type="date" 80 type="date"
81 value-format="yyyy-MM-dd"
81 placeholder="选择日期" 82 placeholder="选择日期"
82 > 83 >
83 </el-date-picker> 84 </el-date-picker>
...@@ -139,6 +140,7 @@ ...@@ -139,6 +140,7 @@
139 <el-date-picker 140 <el-date-picker
140 v-model="childItem.tdsyjssj" 141 v-model="childItem.tdsyjssj"
141 type="date" 142 type="date"
143 value-format="yyyy-MM-dd"
142 placeholder="选择日期" 144 placeholder="选择日期"
143 > 145 >
144 </el-date-picker> 146 </el-date-picker>
...@@ -182,7 +184,7 @@ export default { ...@@ -182,7 +184,7 @@ export default {
182 "glbsm": "",//宗地BSM、自然幢BSM、户BSM、多幢BSM、宗海BSM 184 "glbsm": "",//宗地BSM、自然幢BSM、户BSM、多幢BSM、宗海BSM
183 "qlxzdm": "", 185 "qlxzdm": "",
184 "zhqlxzlx": "", //除宗海数据外,默认都是空;0:用海类型权利性质;2:海岛用途权利性质 186 "zhqlxzlx": "", //除宗海数据外,默认都是空;0:用海类型权利性质;2:海岛用途权利性质
185 addQjTdytRequestList:[ 187 list:[
186 { 188 {
187 "pzdjbsm": "", 189 "pzdjbsm": "",
188 "pzdjmc": "", 190 "pzdjmc": "",
...@@ -219,7 +221,7 @@ export default { ...@@ -219,7 +221,7 @@ export default {
219 "glbsm": "",//宗地BSM、自然幢BSM、户BSM、多幢BSM、宗海BSM 221 "glbsm": "",//宗地BSM、自然幢BSM、户BSM、多幢BSM、宗海BSM
220 "qlxzdm": "", 222 "qlxzdm": "",
221 "zhqlxzlx": "", //除宗海数据外,默认都是空;0:用海类型权利性质;2:海岛用途权利性质 223 "zhqlxzlx": "", //除宗海数据外,默认都是空;0:用海类型权利性质;2:海岛用途权利性质
222 addQjTdytRequestList:[ 224 list:[
223 { 225 {
224 "pzdjbsm": "", 226 "pzdjbsm": "",
225 "pzdjmc": "", 227 "pzdjmc": "",
...@@ -271,11 +273,11 @@ export default { ...@@ -271,11 +273,11 @@ export default {
271 "tdzh": "" 273 "tdzh": ""
272 }; 274 };
273 if (type === "add") { 275 if (type === "add") {
274 this.countList[index].addQjTdytRequestList.splice(childIndex + 1, 0, insideObj); 276 this.countList[index].list.splice(childIndex + 1, 0, insideObj);
275 } else { 277 } else {
276 this.countList[index].addQjTdytRequestList.forEach((item, childInd) => { 278 this.countList[index].list.forEach((item, childInd) => {
277 if (childIndex == childInd && this.countList[index].addQjTdytRequestList.length > 1) { 279 if (childIndex == childInd && this.countList[index].list.length > 1) {
278 this.countList[index].addQjTdytRequestList.splice(childIndex, 1); 280 this.countList[index].list.splice(childIndex, 1);
279 } 281 }
280 }); 282 });
281 } 283 }
......
...@@ -449,9 +449,28 @@ export default { ...@@ -449,9 +449,28 @@ export default {
449 this.formData.jyjzmd = this.isInterval(this.formData.jyjzmd) ? '-' : this.formData.jyjzmd; 449 this.formData.jyjzmd = this.isInterval(this.formData.jyjzmd) ? '-' : this.formData.jyjzmd;
450 this.jzxg = this.isInterval(this.formData.jyjzxg) ? this.formData.jyjzxg : ''; 450 this.jzxg = this.isInterval(this.formData.jyjzxg) ? this.formData.jyjzxg : '';
451 this.formData.jyjzxg = this.isInterval(this.formData.jyjzxg) ? '-' : this.formData.jyjzxg; 451 this.formData.jyjzxg = this.isInterval(this.formData.jyjzxg) ? '-' : this.formData.jyjzxg;
452 if(res.result.qjQlxzListVOS[0].qjTdytListVOS.length>0){ 452 if(res.result.list.length>0){
453 if(res.result.list[0].list.length<1){
454 res.result.list[0].list.push({
455 "pzdjbsm": "",
456 "pzdjmc": "",
457 "pzytdm": "",
458 "pzytmc": "",
459 "pzytmj": 0,
460 "qlxzbsm": "",
461 "sjdjbsm": "",
462 "sjdjmc": "",
463 "sjytdm": "",
464 "sjytmc": "",
465 "sjytmj": 0,
466 "syqx": "",
467 "tdsyjssj": "",
468 "tdsyqssj": "",
469 "tdzh": ""
470 })
471 }
453 //权利性质数据传给子组件 472 //权利性质数据传给子组件
454 this.$refs.qlxzModule.countList = res.result.qjQlxzListVOS 473 this.$refs.qlxzModule.countList = res.result.list
455 } 474 }
456 } 475 }
457 }) 476 })
...@@ -484,6 +503,8 @@ export default { ...@@ -484,6 +503,8 @@ export default {
484 message: '保存成功', 503 message: '保存成功',
485 type: "success", 504 type: "success",
486 }); 505 });
506 // 保存成功再次查询
507 this.getZdjbxxData();
487 } else { 508 } else {
488 this.$message({ 509 this.$message({
489 message: res.message, 510 message: res.message,
......