户重新落宗修改
Showing
2 changed files
with
14 additions
and
10 deletions
... | @@ -62,7 +62,7 @@ | ... | @@ -62,7 +62,7 @@ |
62 | </div> | 62 | </div> |
63 | <div class="footer"> | 63 | <div class="footer"> |
64 | <el-button type="primary" @click="save">保存</el-button> | 64 | <el-button type="primary" @click="save">保存</el-button> |
65 | <el-button type="primary" @click="cancel">取消</el-button> | 65 | <el-button type="primary" @click="close">取消</el-button> |
66 | </div> | 66 | </div> |
67 | <zd-query-data :centerDialogVisible="xzzdVisible" @close="xzzdClose" @getData="getZdxx" | 67 | <zd-query-data :centerDialogVisible="xzzdVisible" @close="xzzdClose" @getData="getZdxx" |
68 | :isZdClose="true"></zd-query-data> | 68 | :isZdClose="true"></zd-query-data> |
... | @@ -160,9 +160,6 @@ | ... | @@ -160,9 +160,6 @@ |
160 | }; | 160 | }; |
161 | this.hcxlzData.bsms = this.bsms; | 161 | this.hcxlzData.bsms = this.bsms; |
162 | }, | 162 | }, |
163 | cancel() { | ||
164 | this.close(); | ||
165 | }, | ||
166 | save() { | 163 | save() { |
167 | if (this.hcxlzData.zrzbsm === '') { | 164 | if (this.hcxlzData.zrzbsm === '') { |
168 | Message.error("请选择自然幢"); | 165 | Message.error("请选择自然幢"); |
... | @@ -170,7 +167,14 @@ | ... | @@ -170,7 +167,14 @@ |
170 | } | 167 | } |
171 | hzl(this.hcxlzData).then(res => { | 168 | hzl(this.hcxlzData).then(res => { |
172 | if (res.success) { | 169 | if (res.success) { |
173 | this.close(); | 170 | this.$router.push({ |
171 | path:'zrz', | ||
172 | query: { | ||
173 | bsm:this.hcxlzData.zrzbsm, | ||
174 | source: 2, | ||
175 | auth: '0,1,2' | ||
176 | } | ||
177 | }) | ||
174 | } else { | 178 | } else { |
175 | Message.error(res.message) | 179 | Message.error(res.message) |
176 | } | 180 | } | ... | ... |
... | @@ -730,7 +730,7 @@ export default { | ... | @@ -730,7 +730,7 @@ export default { |
730 | this.rightClickFlag = this.isHb ? 'hb':'fg'; | 730 | this.rightClickFlag = this.isHb ? 'hb':'fg'; |
731 | if (this.fghbChoosedList.length>1) { | 731 | if (this.fghbChoosedList.length>1) { |
732 | //合并 | 732 | //合并 |
733 | this.lpbChVisible = true; | 733 | this.lpbChVisible = this.hbsmList.indexOf(this.chData.bsm) > -1 ? true : false; |
734 | //判断选中户可以执行的合并类型 | 734 | //判断选中户可以执行的合并类型 |
735 | let chIsSame = this.fghbChoosedList.every((item)=> { | 735 | let chIsSame = this.fghbChoosedList.every((item)=> { |
736 | return item.ch == this.fghbChoosedList[0].ch; | 736 | return item.ch == this.fghbChoosedList[0].ch; |
... | @@ -749,7 +749,7 @@ export default { | ... | @@ -749,7 +749,7 @@ export default { |
749 | }) | 749 | }) |
750 | }else{ | 750 | }else{ |
751 | //分割 | 751 | //分割 |
752 | this.lpbChVisible = true; | 752 | this.lpbChVisible = this.hbsmList.indexOf(this.chData.bsm) > -1 ? true : false; |
753 | this.fgData.oldbsm = item.bsm; | 753 | this.fgData.oldbsm = item.bsm; |
754 | console.log(item,'item'); | 754 | console.log(item,'item'); |
755 | //判断户的实际sjcs为1,只能水平分割 | 755 | //判断户的实际sjcs为1,只能水平分割 |
... | @@ -775,7 +775,7 @@ export default { | ... | @@ -775,7 +775,7 @@ export default { |
775 | break; | 775 | break; |
776 | case 'isCxlz': | 776 | case 'isCxlz': |
777 | this.rightClickFlag = 'cxlz'; | 777 | this.rightClickFlag = 'cxlz'; |
778 | this.lpbChVisible = true; | 778 | this.lpbChVisible = this.hbsmList.indexOf(this.chData.bsm) > -1 ? true : false; |
779 | break; | 779 | break; |
780 | case 'isLpb': | 780 | case 'isLpb': |
781 | this.rightClickFlag = type; | 781 | this.rightClickFlag = type; |
... | @@ -980,8 +980,8 @@ export default { | ... | @@ -980,8 +980,8 @@ export default { |
980 | }, | 980 | }, |
981 | //户重新落宗 | 981 | //户重新落宗 |
982 | handleCxlz(){ | 982 | handleCxlz(){ |
983 | if (this.hbsmList.length <= 0) { | 983 | if (this.hbsmList.indexOf(this.chData.bsm) == -1) { |
984 | this.hbsmList.push(this.chData); | 984 | this.hbsmList.push(this.chData.bsm); |
985 | } | 985 | } |
986 | this.hcxlzVisible = true | 986 | this.hcxlzVisible = true |
987 | }, | 987 | }, | ... | ... |
-
Please register or sign in to post a comment