1
Showing
3 changed files
with
4 additions
and
426 deletions
| ... | @@ -125,7 +125,7 @@ import editCinfo from "./c/index"; | ... | @@ -125,7 +125,7 @@ import editCinfo from "./c/index"; |
| 125 | import lpbContent from "./lpbContent/index"; | 125 | import lpbContent from "./lpbContent/index"; |
| 126 | 126 | ||
| 127 | export default { | 127 | export default { |
| 128 | name: "bjlp", | 128 | name: "lpb", |
| 129 | props: { | 129 | props: { |
| 130 | formData: { | 130 | formData: { |
| 131 | type: Object, | 131 | type: Object, |
| ... | @@ -133,7 +133,6 @@ export default { | ... | @@ -133,7 +133,6 @@ export default { |
| 133 | } | 133 | } |
| 134 | }, | 134 | }, |
| 135 | components: { | 135 | components: { |
| 136 | // LineTree, | ||
| 137 | addLjz, | 136 | addLjz, |
| 138 | addZdy, | 137 | addZdy, |
| 139 | addCh, | 138 | addCh, |
| ... | @@ -145,9 +144,6 @@ export default { | ... | @@ -145,9 +144,6 @@ export default { |
| 145 | bsms: [], | 144 | bsms: [], |
| 146 | dialogVisible: false, | 145 | dialogVisible: false, |
| 147 | scyclx: "0", //1是实测 0是预测 | 146 | scyclx: "0", //1是实测 0是预测 |
| 148 | radio1: "", | ||
| 149 | radio2: "", | ||
| 150 | createFlag: false, | ||
| 151 | bdcdyh: "", | 147 | bdcdyh: "", |
| 152 | islpb: true, | 148 | islpb: true, |
| 153 | pd: [], //创建楼盘的树结构数据 | 149 | pd: [], //创建楼盘的树结构数据 |
| ... | @@ -219,7 +215,6 @@ export default { | ... | @@ -219,7 +215,6 @@ export default { |
| 219 | lpbContentwidth: "", | 215 | lpbContentwidth: "", |
| 220 | time: "", | 216 | time: "", |
| 221 | dyztBsmList: {}, //单元状态bsmList | 217 | dyztBsmList: {}, //单元状态bsmList |
| 222 | cbsmList: [], // 层bsmlist | ||
| 223 | bjztFlag: true, | 218 | bjztFlag: true, |
| 224 | taskTitle: '添加', | 219 | taskTitle: '添加', |
| 225 | curBsm: '', | 220 | curBsm: '', |
| ... | @@ -236,8 +231,6 @@ export default { | ... | @@ -236,8 +231,6 @@ export default { |
| 236 | this.getHeight(); | 231 | this.getHeight(); |
| 237 | }, | 232 | }, |
| 238 | mounted () { | 233 | mounted () { |
| 239 | //获取楼盘表树结构 | ||
| 240 | // this.getLpbMenuTree(formData.zrzbsm); | ||
| 241 | //获取各项单元状态的户bsm | 234 | //获取各项单元状态的户bsm |
| 242 | // this.getDyztBsmList(); | 235 | // this.getDyztBsmList(); |
| 243 | //获取房屋用途统计数据 | 236 | //获取房屋用途统计数据 |
| ... | @@ -248,62 +241,11 @@ export default { | ... | @@ -248,62 +241,11 @@ export default { |
| 248 | }, 100); | 241 | }, 100); |
| 249 | }, | 242 | }, |
| 250 | methods: { | 243 | methods: { |
| 251 | //批量提交 | ||
| 252 | batchCommit () { | ||
| 253 | if (this.bsms.length <= 0) { | ||
| 254 | Message.warning("请选择操作户") | ||
| 255 | return | ||
| 256 | } else { | ||
| 257 | if (this.qsztList.indexOf('1') > -1) { | ||
| 258 | Message.warning("已提交的户无法继续操作") | ||
| 259 | } else { | ||
| 260 | batchCommit(this.bsms).then(res => { | ||
| 261 | if (res.code === 200) { | ||
| 262 | Message.success("提交成功"); | ||
| 263 | this.getlpbData(); | ||
| 264 | } else { | ||
| 265 | this.$message.error(res.message); | ||
| 266 | } | ||
| 267 | }) | ||
| 268 | } | ||
| 269 | } | ||
| 270 | }, | ||
| 271 | //批量删除 | ||
| 272 | batchDelete () { | ||
| 273 | if (this.bsms.length <= 0) { | ||
| 274 | Message.warning("请选择操作户") | ||
| 275 | return | ||
| 276 | } else { | ||
| 277 | if (this.qsztList.indexOf('1') > -1) { | ||
| 278 | Message.warning("已提交的户无法继续操作") | ||
| 279 | } else { | ||
| 280 | batchDelete(this.bsms).then(res => { | ||
| 281 | if (res.code === 200) { | ||
| 282 | Message.success("删除成功"); | ||
| 283 | this.getlpbData(); | ||
| 284 | } else { | ||
| 285 | this.$message.error(res.message); | ||
| 286 | } | ||
| 287 | }) | ||
| 288 | } | ||
| 289 | } | ||
| 290 | }, | ||
| 291 | //批量上传 start | ||
| 292 | batchUpload () { | ||
| 293 | if (this.bsms.length < 1) { | ||
| 294 | Message.warning("请选择操作户") | ||
| 295 | return | ||
| 296 | } else { | ||
| 297 | this.uploadVisible = true | ||
| 298 | } | ||
| 299 | }, | ||
| 300 | //取消选中 | 244 | //取消选中 |
| 301 | batchCancelChoosed () { | 245 | batchCancelChoosed () { |
| 302 | this.cbsmList = []; | ||
| 303 | this.bsms = []; | 246 | this.bsms = []; |
| 304 | this.qsztList = []; | 247 | this.qsztList = []; |
| 305 | this.$refs.lpbContent.hbsmList = []; | 248 | this.$refs.lpbContent.hbsmList = []; |
| 306 | this.$refs.lpbContent.cbsmList = []; | ||
| 307 | this.$refs.lpbContent.choosedList = []; | 249 | this.$refs.lpbContent.choosedList = []; |
| 308 | this.$refs.lpbContent.$refs.hBsm.forEach((item) => { | 250 | this.$refs.lpbContent.$refs.hBsm.forEach((item) => { |
| 309 | item.style.border = ''; | 251 | item.style.border = ''; |
| ... | @@ -314,32 +256,6 @@ export default { | ... | @@ -314,32 +256,6 @@ export default { |
| 314 | item.className = ""; | 256 | item.className = ""; |
| 315 | }); | 257 | }); |
| 316 | }, | 258 | }, |
| 317 | uploadError (err, file, fileList) { | ||
| 318 | Message.error("上传文件失败") | ||
| 319 | console.log("上传文件失败", err) | ||
| 320 | }, | ||
| 321 | uploadProgress () { | ||
| 322 | vm.loadingShow('正在上传中') | ||
| 323 | }, | ||
| 324 | uploadSuccess (res, file, fileList) { | ||
| 325 | vm.loadingHide(); | ||
| 326 | Message.success("上传成功") | ||
| 327 | this.uploadVisible = false; | ||
| 328 | }, | ||
| 329 | handleRemove (file, fileList) { | ||
| 330 | console.log(file, fileList); | ||
| 331 | }, | ||
| 332 | handlePreview (file) { | ||
| 333 | console.log(file); | ||
| 334 | }, | ||
| 335 | handleExceed (files, fileList) { | ||
| 336 | // this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`); | ||
| 337 | this.$message.warning("上传失败") | ||
| 338 | }, | ||
| 339 | beforeRemove (file, fileList) { | ||
| 340 | return this.$confirm(`确定移除 ${file.name}?`); | ||
| 341 | }, | ||
| 342 | //批量上传 end | ||
| 343 | 259 | ||
| 344 | loading () { | 260 | loading () { |
| 345 | this.getLpbMenuTree(this.$store.state.zrzbsm); | 261 | this.getLpbMenuTree(this.$store.state.zrzbsm); |
| ... | @@ -347,68 +263,12 @@ export default { | ... | @@ -347,68 +263,12 @@ export default { |
| 347 | lodding () { | 263 | lodding () { |
| 348 | this.getlpbData(); | 264 | this.getlpbData(); |
| 349 | }, | 265 | }, |
| 350 | //改变编辑或详细信息状态 | 266 | |
| 351 | bjztChange () { | ||
| 352 | this.bjztFlag = !this.bjztFlag; | ||
| 353 | }, | ||
| 354 | //改变实预测数据类型 | ||
| 355 | scyclxChange (val) { | ||
| 356 | //清空已选中层户 | ||
| 357 | this.cbsmList = []; | ||
| 358 | this.bsms = []; | ||
| 359 | this.qsztList = []; | ||
| 360 | this.$refs.lpbContent.hbsmList = []; | ||
| 361 | this.$nextTick(() => { | ||
| 362 | //户 | ||
| 363 | if (this.$refs.lpbContent.$refs.hBsm) { | ||
| 364 | this.$refs.lpbContent.$refs.hBsm.forEach(item => { | ||
| 365 | item.style.borderColor = 'rgb(230, 230, 230)'; | ||
| 366 | if (item.className == "tdSelect") { | ||
| 367 | item.className = ""; | ||
| 368 | } | ||
| 369 | }); | ||
| 370 | } | ||
| 371 | //层 | ||
| 372 | if (this.$refs.lpbContent.$refs.cBsm) { | ||
| 373 | this.$refs.lpbContent.$refs.cBsm.forEach(item => { | ||
| 374 | console.log(item.className, 'item.className'); | ||
| 375 | item.className = "floor"; | ||
| 376 | }); | ||
| 377 | } | ||
| 378 | }) | ||
| 379 | //获取图例数据 | ||
| 380 | this.getDyztBsmList(); | ||
| 381 | this.getLpbFwytAndQlxz(); | ||
| 382 | //重新渲染楼盘表 | ||
| 383 | this.$refs.lpbContent.dataChange(); | ||
| 384 | }, | ||
| 385 | //获取高度计算lpb内容区高度 | 267 | //获取高度计算lpb内容区高度 |
| 386 | getHeight () { | 268 | getHeight () { |
| 387 | this.lpbContentHight = window.innerHeight - 190; | 269 | this.lpbContentHight = window.innerHeight - 190; |
| 388 | }, | 270 | }, |
| 389 | //创建楼盘 | 271 | |
| 390 | create () { | ||
| 391 | this.createFlag = true; | ||
| 392 | }, | ||
| 393 | //获取自然幢树结构数据 | ||
| 394 | getLpbMenuTree (zrzbsm) { | ||
| 395 | getLpbMenuTree(zrzbsm) | ||
| 396 | .then((res) => { | ||
| 397 | this.pd = res.result; | ||
| 398 | }) | ||
| 399 | .catch((error) => { }); | ||
| 400 | }, | ||
| 401 | //打开新建楼盘树结构右键菜单唤起的弹框 | ||
| 402 | openLpbDialog (data, type) { | ||
| 403 | this.treeData = data; | ||
| 404 | this.menuType = type; | ||
| 405 | this.$nextTick(() => { | ||
| 406 | this.resetInfo(); | ||
| 407 | }); | ||
| 408 | this.dialogVisible = true; | ||
| 409 | this.taskTitle = '添加'; | ||
| 410 | this.curBsm = ''; | ||
| 411 | }, | ||
| 412 | //弹框中的保存按钮,根据不同菜单点击类型调用不同子组件的保存方法 | 272 | //弹框中的保存按钮,根据不同菜单点击类型调用不同子组件的保存方法 |
| 413 | saveInfo () { | 273 | saveInfo () { |
| 414 | switch (this.menuType) { | 274 | switch (this.menuType) { |
| ... | @@ -466,20 +326,6 @@ export default { | ... | @@ -466,20 +326,6 @@ export default { |
| 466 | this.bsms = data; | 326 | this.bsms = data; |
| 467 | } | 327 | } |
| 468 | }, | 328 | }, |
| 469 | //获取选中户信息 | ||
| 470 | getQsztList (data, type) { | ||
| 471 | if (type) { | ||
| 472 | // 双击 | ||
| 473 | |||
| 474 | } else { | ||
| 475 | //单击 TO DO | ||
| 476 | this.qsztList = data; | ||
| 477 | } | ||
| 478 | }, | ||
| 479 | //获取选中层bsmlist | ||
| 480 | getCbsm (data) { | ||
| 481 | this.cbsmList = data; | ||
| 482 | }, | ||
| 483 | inputChange () { | 329 | inputChange () { |
| 484 | console.log(this.bdcdyh, 'this.bdcdyh'); | 330 | console.log(this.bdcdyh, 'this.bdcdyh'); |
| 485 | if (this.bdcdyh != "") { | 331 | if (this.bdcdyh != "") { |
| ... | @@ -500,22 +346,6 @@ export default { | ... | @@ -500,22 +346,6 @@ export default { |
| 500 | //改变楼盘表子组件的key值,重新渲染 | 346 | //改变楼盘表子组件的key值,重新渲染 |
| 501 | // this.time = new Date().getTime(); | 347 | // this.time = new Date().getTime(); |
| 502 | }, | 348 | }, |
| 503 | //实预测装换 | ||
| 504 | plScYcChange () { | ||
| 505 | let data = { | ||
| 506 | zrzbsm: this.$store.state.zrzbsm, | ||
| 507 | scyclx: this.scyclx, | ||
| 508 | }; | ||
| 509 | batchScYcChange(data).then((res) => { | ||
| 510 | if (res.code === 200) { | ||
| 511 | this.$message.success("实预测转换成功"); | ||
| 512 | this.$refs.lpbContent.loadingData(this.$store.state.zrzbsm, '1'); | ||
| 513 | this.$refs.lpbContent.loadingData(this.$store.state.zrzbsm, '0'); | ||
| 514 | } else if (res.code === 500) { | ||
| 515 | this.$message.warning(res.message); | ||
| 516 | } | ||
| 517 | }); | ||
| 518 | }, | ||
| 519 | //切换房屋状态 | 349 | //切换房屋状态 |
| 520 | handleChoosedH (bsms, color) { | 350 | handleChoosedH (bsms, color) { |
| 521 | //每次切换房屋状态,将之前高亮的户边框颜色重置为默认 | 351 | //每次切换房屋状态,将之前高亮的户边框颜色重置为默认 |
| ... | @@ -533,30 +363,6 @@ export default { | ... | @@ -533,30 +363,6 @@ export default { |
| 533 | this.$refs.lpbContent.borderColor = color; | 363 | this.$refs.lpbContent.borderColor = color; |
| 534 | }) | 364 | }) |
| 535 | }, | 365 | }, |
| 536 | //批量添加不动产单元号 | ||
| 537 | addBdcdyh () { | ||
| 538 | if (this.qsztList.indexOf('1') > -1) { | ||
| 539 | Message.warning("已提交的户无法继续操作") | ||
| 540 | } else { | ||
| 541 | batchGeneratorBdcdyh(this.$store.state.zrzh, this.pd[0].bsm, 0).then( | ||
| 542 | (res) => { | ||
| 543 | if (res.code === 200) { | ||
| 544 | this.$message.success("生成完成!"); | ||
| 545 | } else if (res.code === 206) { | ||
| 546 | let hasGenerateCount = res.result.hasGenerateCount; | ||
| 547 | let unGenerateCount = res.result.unGenerateCount; | ||
| 548 | if (+unGenerateCount === 0) { | ||
| 549 | this.$message.warning("不存在未生成不动产单元号的户,无需生成不动产单元号!") | ||
| 550 | return | ||
| 551 | } | ||
| 552 | this.open(hasGenerateCount, unGenerateCount); | ||
| 553 | } else { | ||
| 554 | this.$message.warning(res.message) | ||
| 555 | } | ||
| 556 | } | ||
| 557 | ); | ||
| 558 | } | ||
| 559 | }, | ||
| 560 | 366 | ||
| 561 | open (hasGenerateCount, unGenerateCount) { | 367 | open (hasGenerateCount, unGenerateCount) { |
| 562 | 368 | ||
| ... | @@ -707,13 +513,6 @@ export default { | ... | @@ -707,13 +513,6 @@ export default { |
| 707 | this.lpbContentwidth += 204; | 513 | this.lpbContentwidth += 204; |
| 708 | } | 514 | } |
| 709 | }, | 515 | }, |
| 710 | createFlag (n) { | ||
| 711 | if (n) { | ||
| 712 | this.lpbContentwidth -= 260; | ||
| 713 | } else { | ||
| 714 | this.lpbContentwidth += 260; | ||
| 715 | } | ||
| 716 | }, | ||
| 717 | selectedZt (n) { | 516 | selectedZt (n) { |
| 718 | this.legendToggleFlag = true; | 517 | this.legendToggleFlag = true; |
| 719 | }, | 518 | }, |
| ... | @@ -728,7 +527,6 @@ export default { | ... | @@ -728,7 +527,6 @@ export default { |
| 728 | .edit { | 527 | .edit { |
| 729 | height: 100%; | 528 | height: 100%; |
| 730 | background-color: #F4F9FF; | 529 | background-color: #F4F9FF; |
| 731 | |||
| 732 | .tab-header { | 530 | .tab-header { |
| 733 | border: 1px solid #dedede; | 531 | border: 1px solid #dedede; |
| 734 | box-sizing: border-box; | 532 | box-sizing: border-box; |
| ... | @@ -736,19 +534,16 @@ export default { | ... | @@ -736,19 +534,16 @@ export default { |
| 736 | background-color: #ffffff; | 534 | background-color: #ffffff; |
| 737 | margin-bottom: 10px; | 535 | margin-bottom: 10px; |
| 738 | position: relative; | 536 | position: relative; |
| 739 | |||
| 740 | .searchContent { | 537 | .searchContent { |
| 741 | margin-left: 62px; | 538 | margin-left: 62px; |
| 742 | box-sizing: border-box; | 539 | box-sizing: border-box; |
| 743 | padding: 0 20px; | 540 | padding: 0 20px; |
| 744 | |||
| 745 | .searchInput { | 541 | .searchInput { |
| 746 | transition: 0.5s; | 542 | transition: 0.5s; |
| 747 | margin-left: 20px; | 543 | margin-left: 20px; |
| 748 | display: inline-block; | 544 | display: inline-block; |
| 749 | } | 545 | } |
| 750 | } | 546 | } |
| 751 | |||
| 752 | .change { | 547 | .change { |
| 753 | position: absolute; | 548 | position: absolute; |
| 754 | left: 0; | 549 | left: 0; |
| ... | @@ -756,7 +551,6 @@ export default { | ... | @@ -756,7 +551,6 @@ export default { |
| 756 | height: 100%; | 551 | height: 100%; |
| 757 | width: 80px; | 552 | width: 80px; |
| 758 | border-right: 1px solid #dedede; | 553 | border-right: 1px solid #dedede; |
| 759 | |||
| 760 | i { | 554 | i { |
| 761 | cursor: pointer; | 555 | cursor: pointer; |
| 762 | color: #0090FF; | 556 | color: #0090FF; |
| ... | @@ -771,12 +565,10 @@ export default { | ... | @@ -771,12 +565,10 @@ export default { |
| 771 | margin-left: 10px; | 565 | margin-left: 10px; |
| 772 | padding: 12px 10px; | 566 | padding: 12px 10px; |
| 773 | border: 0; | 567 | border: 0; |
| 774 | |||
| 775 | i { | 568 | i { |
| 776 | font-size: 13px; | 569 | font-size: 13px; |
| 777 | padding-right: 4px; | 570 | padding-right: 4px; |
| 778 | } | 571 | } |
| 779 | |||
| 780 | /deep/.el-radio-button__inner { | 572 | /deep/.el-radio-button__inner { |
| 781 | border: 1px solid #dcdfe6; | 573 | border: 1px solid #dcdfe6; |
| 782 | border-radius: 4px; | 574 | border-radius: 4px; |
| ... | @@ -789,12 +581,10 @@ export default { | ... | @@ -789,12 +581,10 @@ export default { |
| 789 | border: 1px solid #dedede; | 581 | border: 1px solid #dedede; |
| 790 | background-color: #ffffff; | 582 | background-color: #ffffff; |
| 791 | display: flex; | 583 | display: flex; |
| 792 | |||
| 793 | .lp-tree { | 584 | .lp-tree { |
| 794 | height: 100%; | 585 | height: 100%; |
| 795 | overflow: hidden; | 586 | overflow: hidden; |
| 796 | transition: 0.5s; | 587 | transition: 0.5s; |
| 797 | |||
| 798 | .treeData { | 588 | .treeData { |
| 799 | margin-top: 20px; | 589 | margin-top: 20px; |
| 800 | margin-left: 26px; | 590 | margin-left: 26px; | ... | ... |
| ... | @@ -182,56 +182,6 @@ | ... | @@ -182,56 +182,6 @@ |
| 182 | <el-checkbox v-model="zrzChecked" @change='lpbSelectAll'>{{ lpbData.xmmc }}</el-checkbox> | 182 | <el-checkbox v-model="zrzChecked" @change='lpbSelectAll'>{{ lpbData.xmmc }}</el-checkbox> |
| 183 | </div> | 183 | </div> |
| 184 | </div> | 184 | </div> |
| 185 | <ul v-show="lpbChVisible" :style="{ left: lpbChLeft + 'px', top: lpbChTop + 'px' }" class="contextmenu"> | ||
| 186 | <li v-show="rightClickFlag == 'h'" @click="handleAddH">添加</li> | ||
| 187 | <li v-show="rightClickFlag == 'h'" @click="handleSyczh">实预测转换</li> | ||
| 188 | <li v-show="rightClickFlag == 'c'" @click="handleAddC('up')"> | ||
| 189 | 向上添加层 | ||
| 190 | </li> | ||
| 191 | <li v-show="rightClickFlag == 'c'" @click="handleAddC('down')"> | ||
| 192 | 向下添加层 | ||
| 193 | </li> | ||
| 194 | <li v-show="rightClickFlag == 'c'" @click="handleDeleteC">删除层</li> | ||
| 195 | <!-- 合并 --> | ||
| 196 | <li v-show="rightClickFlag == 'hb'" :class="canHb != 'zyhb' ? 'cantHb' : ''" @click="handleHb('zyhb')">左右合并</li> | ||
| 197 | <li v-show="rightClickFlag == 'hb'" :class="canHb != 'sxhb' ? 'cantHb' : ''" @click="handleHb('sxhb')">上下合并</li> | ||
| 198 | <!-- 分割 --> | ||
| 199 | <li v-show="rightClickFlag == 'fg'" @click="handleFg">户分割</li> | ||
| 200 | <!-- 范围属性变更 --> | ||
| 201 | <li v-show="rightClickFlag == 'fwsxbg'" @click="handleFwsxbg">变更信息</li> | ||
| 202 | |||
| 203 | |||
| 204 | </ul> | ||
| 205 | <!-- 层操作弹框 --> | ||
| 206 | <el-dialog :close-on-click-modal="false" :title="addCData.title" :visible.sync="addCVisible" width="50%"> | ||
| 207 | <el-form :model="addCData"> | ||
| 208 | <el-form-item label="层号" :label-width="formLabelWidth"> | ||
| 209 | <el-input disabled v-model="addCData.sjc" autocomplete="off"></el-input> | ||
| 210 | </el-form-item> | ||
| 211 | <el-form-item label="实际层" :label-width="formLabelWidth"> | ||
| 212 | <el-input disabled v-model="addCData.sjc" autocomplete="off"></el-input> | ||
| 213 | </el-form-item> | ||
| 214 | <el-form-item label="添加的户数" :label-width="formLabelWidth"> | ||
| 215 | <el-input v-model="addCData.hcount" autocomplete="off"></el-input> | ||
| 216 | </el-form-item> | ||
| 217 | </el-form> | ||
| 218 | <div class="btnGroup"> | ||
| 219 | <el-button type="primary" @click="saveAddC">保存</el-button> | ||
| 220 | <el-button type="primary" @click="addCVisible = false">取消</el-button> | ||
| 221 | </div> | ||
| 222 | </el-dialog> | ||
| 223 | <!-- 户分割弹框 --> | ||
| 224 | <el-dialog :close-on-click-modal="false" title="户分割" :visible.sync="hfgDialogVisible" width="800px"> | ||
| 225 | <el-form :model="fgData"> | ||
| 226 | <el-form-item label="分割户数" required="" :label-width="formLabelWidth"> | ||
| 227 | <el-input :disabled="fgData.fgfx != 0" v-model="fgData.fghs" autocomplete="off"></el-input> | ||
| 228 | </el-form-item> | ||
| 229 | </el-form> | ||
| 230 | <div class="btnGroup"> | ||
| 231 | <el-button type="primary" @click="savefgData">保存</el-button> | ||
| 232 | <el-button type="primary" @click="hfgDialogVisible = false">取消</el-button> | ||
| 233 | </div> | ||
| 234 | </el-dialog> | ||
| 235 | <!-- 双击户的弹出框 --> | 185 | <!-- 双击户的弹出框 --> |
| 236 | <el-dialog :close-on-click-modal="false" title="户编辑" class="hbjDialog" :visible.sync="hbjVisible" width="80%"> | 186 | <el-dialog :close-on-click-modal="false" title="户编辑" class="hbjDialog" :visible.sync="hbjVisible" width="80%"> |
| 237 | <hbj ref="hbj" :bsm="hbsm" :scyclx="scyclx" :lpbParent="lpbParent"></hbj> | 187 | <hbj ref="hbj" :bsm="hbsm" :scyclx="scyclx" :lpbParent="lpbParent"></hbj> |
| ... | @@ -660,169 +610,7 @@ export default { | ... | @@ -660,169 +610,7 @@ export default { |
| 660 | closeMenu () { | 610 | closeMenu () { |
| 661 | this.lpbChVisible = false; | 611 | this.lpbChVisible = false; |
| 662 | }, | 612 | }, |
| 663 | //户右键菜单 start | ||
| 664 | handleAddH () { }, | ||
| 665 | handleDeleteH () { }, | ||
| 666 | handleSyczh () { }, | ||
| 667 | //end | 613 | //end |
| 668 | // 层右键菜单 start | ||
| 669 | //添加 | ||
| 670 | handleAddC (type) { | ||
| 671 | this.addCData.title = type == "up" ? "向上添加层" : "向下添加层"; | ||
| 672 | this.addCVisible = true; | ||
| 673 | this.addCData.sjc = | ||
| 674 | type == "up" | ||
| 675 | ? Number(this.chData.sjc) + 1 | ||
| 676 | : Number(this.chData.sjc) - 1; | ||
| 677 | this.addCData.cbsm = this.chData.bsm; | ||
| 678 | this.addCData.scyclx = this.$parent.scyclx; | ||
| 679 | }, | ||
| 680 | //删除 | ||
| 681 | handleDeleteC () { | ||
| 682 | let params = { | ||
| 683 | cbsm: this.chData.bsm, | ||
| 684 | scyclx: this.$parent.scyclx, | ||
| 685 | }; | ||
| 686 | this.$confirm("是否确认删除该层?", "提示", { | ||
| 687 | confirmButtonText: "确定", | ||
| 688 | cancelButtonText: "取消", | ||
| 689 | type: "warning", | ||
| 690 | }) | ||
| 691 | .then(() => { | ||
| 692 | deleteCByBsm(params).then((res) => { | ||
| 693 | if (res.code == 200) { | ||
| 694 | this.$message({ | ||
| 695 | message: "删除成功", | ||
| 696 | type: "success", | ||
| 697 | }); | ||
| 698 | this.getLpb(this.$store.state.zrzbsm, this.$parent.scyclx); | ||
| 699 | } else { | ||
| 700 | this.$message({ | ||
| 701 | message: res.message, | ||
| 702 | type: "warning", | ||
| 703 | }); | ||
| 704 | } | ||
| 705 | }) | ||
| 706 | }) | ||
| 707 | .catch(() => { }); | ||
| 708 | }, | ||
| 709 | //确认添加 | ||
| 710 | saveAddC () { | ||
| 711 | insertUpDownC(this.addCData).then((res) => { | ||
| 712 | if (res.code == 200) { | ||
| 713 | this.$message({ | ||
| 714 | message: "添加成功", | ||
| 715 | type: "success", | ||
| 716 | }); | ||
| 717 | this.getLpb(this.$store.state.zrzbsm, this.$parent.scyclx); | ||
| 718 | this.addCVisible = false; | ||
| 719 | } else { | ||
| 720 | this.$message({ | ||
| 721 | message: res.message, | ||
| 722 | type: "warning" | ||
| 723 | }) | ||
| 724 | } | ||
| 725 | }) | ||
| 726 | }, | ||
| 727 | //户合并 | ||
| 728 | handleHb (type) { | ||
| 729 | let olbBsms = ''; | ||
| 730 | this.hbsmList.forEach((item, index) => { | ||
| 731 | olbBsms += index < this.hbsmList.length - 1 ? item + ',' : item | ||
| 732 | }) | ||
| 733 | if (type == this.canHb) { | ||
| 734 | this.$confirm("是否确认合并选中户?", "提示", { | ||
| 735 | confirmButtonText: "确定", | ||
| 736 | cancelButtonText: "取消", | ||
| 737 | type: "warning", | ||
| 738 | }) | ||
| 739 | .then(() => { | ||
| 740 | //确定合并 调用合并接口 this.hbsmList为选中户bsm数组 TO DO | ||
| 741 | let params = { | ||
| 742 | "newuserbsm": "", | ||
| 743 | "oldBsms": olbBsms, | ||
| 744 | "scyclx": this.$parent.scyclx, | ||
| 745 | "ljzbsm": this.fghbChoosedList[0].ljzbsm, | ||
| 746 | "zdybsm": this.fghbChoosedList[0].zdybsm, | ||
| 747 | "zrzbsm": this.fghbChoosedList[0].zrzbsm | ||
| 748 | } | ||
| 749 | // hhb(params).then((res) => { | ||
| 750 | // vm.loadingHide(); | ||
| 751 | // if (res.code == 200) { | ||
| 752 | // Message.success('合并成功'); | ||
| 753 | // // 清除选中户 | ||
| 754 | // this.clearChoosedH(); | ||
| 755 | // this.fghbChoosedList = []; | ||
| 756 | // // 更新楼盘表 | ||
| 757 | // this.getLpb(this.zrzbsm, this.$parent.scyclx); | ||
| 758 | // } else { | ||
| 759 | // Message.error(res.message); | ||
| 760 | // } | ||
| 761 | // }) | ||
| 762 | // .catch((error) => { | ||
| 763 | // vm.loadingHide(); | ||
| 764 | // console.log(error); | ||
| 765 | // }); | ||
| 766 | }) | ||
| 767 | .catch(() => { }); | ||
| 768 | } else { | ||
| 769 | |||
| 770 | } | ||
| 771 | }, | ||
| 772 | //户分割 | ||
| 773 | handleFg () { | ||
| 774 | this.hfgDialogVisible = true; | ||
| 775 | }, | ||
| 776 | //户分割保存 | ||
| 777 | savefgData () { | ||
| 778 | // hfg(this.fgData).then((res) => { | ||
| 779 | // vm.loadingHide(); | ||
| 780 | // if (res.code == 200) { | ||
| 781 | // Message.success('分割成功'); | ||
| 782 | // // 清除选中户 | ||
| 783 | // this.hfgDialogVisible = false | ||
| 784 | // this.clearChoosedH(); | ||
| 785 | // this.fghbChoosedList = []; | ||
| 786 | // // 更新楼盘表 | ||
| 787 | // this.getLpb(this.zrzbsm, this.$parent.scyclx); | ||
| 788 | // } else { | ||
| 789 | // Message.error(res.message); | ||
| 790 | // } | ||
| 791 | // }) | ||
| 792 | // .catch((error) => { | ||
| 793 | // vm.loadingHide(); | ||
| 794 | // console.log(error); | ||
| 795 | // }); | ||
| 796 | }, | ||
| 797 | //范围属性变更 | ||
| 798 | handleFwsxbg () { | ||
| 799 | let params = { bsm: this.chData.bsm, type: 'h' }; | ||
| 800 | this.$confirm('是否确定范围属性变更?', '提示', { | ||
| 801 | confirmButtonText: '确定', | ||
| 802 | cancelButtonText: '取消', | ||
| 803 | type: 'warning' | ||
| 804 | }).then(() => { | ||
| 805 | // fwsxbgbl(params) | ||
| 806 | // .then((res) => { | ||
| 807 | // if (res.code == 200) { | ||
| 808 | // this.$message({ | ||
| 809 | // message: '变更成功', | ||
| 810 | // type: "success", | ||
| 811 | // }); | ||
| 812 | // this.getLpb(this.zrzbsm, this.scyclx); | ||
| 813 | // } else { | ||
| 814 | // this.$message({ | ||
| 815 | // message: res.message, | ||
| 816 | // type: "warning", | ||
| 817 | // }) | ||
| 818 | // } | ||
| 819 | // }).catch((error) => { | ||
| 820 | |||
| 821 | // }); | ||
| 822 | }).catch(() => { | ||
| 823 | |||
| 824 | }); | ||
| 825 | }, | ||
| 826 | //楼盘表户全选 | 614 | //楼盘表户全选 |
| 827 | lpbSelectAll (val) { | 615 | lpbSelectAll (val) { |
| 828 | if (val) { | 616 | if (val) { | ... | ... |
| ... | @@ -100,7 +100,7 @@ export default { | ... | @@ -100,7 +100,7 @@ export default { |
| 100 | width: '90%', | 100 | width: '90%', |
| 101 | height: "92%", | 101 | height: "92%", |
| 102 | formData: { | 102 | formData: { |
| 103 | bsm: '' | 103 | bsm: scope.row.bsm |
| 104 | } | 104 | } |
| 105 | }) | 105 | }) |
| 106 | // getLpb({ zrzbsm: zrzbsm }) | 106 | // getLpb({ zrzbsm: zrzbsm }) | ... | ... |
-
Please register or sign in to post a comment