55
Showing
4 changed files
with
4 additions
and
211 deletions
src/views/lpb/hbj/index.vue
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
src/views/lpb/hbj/lpb-hbj/index.vue
deleted
100644 → 0
1 | <template> | ||
2 | <el-tabs v-model="activeName" @tab-click="handleClick"> | ||
3 | <el-tab-pane label="户基本信息表" name="hjbxx"> | ||
4 | <hbj ref="hbj" :bsm="hbsm"></hbj> | ||
5 | </el-tab-pane> | ||
6 | <el-tab-pane label="登记簿" name="djb"> | ||
7 | <!-- <djb v-if="djbVisible" :style="{ 'height': formHeight + 'px' }"></djb> --> | ||
8 | </el-tab-pane> | ||
9 | <el-tab-pane label="附件材料" name="fjcl"> | ||
10 | <!-- <fjcl v-if="fjclVisible" ref="fjcl" :lpbParent="true" :style="{ 'height': formHeight + 'px' }" | ||
11 | :is-disabled="isDisabled"></fjcl> --> | ||
12 | </el-tab-pane> | ||
13 | </el-tabs> | ||
14 | </template> | ||
15 | |||
16 | <script> | ||
17 | import hbj from "../index" | ||
18 | // import djb from "../../../../../zd/djb/index"; | ||
19 | // import fjcl from "../../../../../zd/fjcl/fjcl" | ||
20 | // import { queryStatus } from "@api/search" | ||
21 | export default { | ||
22 | name: "index", | ||
23 | components: { | ||
24 | hbj, | ||
25 | // djb, | ||
26 | // fjcl | ||
27 | }, | ||
28 | props: { | ||
29 | bsm: String, //户标识码 | ||
30 | }, | ||
31 | data () { | ||
32 | return { | ||
33 | isDisabled: false, | ||
34 | hbsm: this.$store.state.hbsm, | ||
35 | activeName: "hjbxx", | ||
36 | djbVisible: false, | ||
37 | fjclVisible: false, | ||
38 | formHeight: 0, | ||
39 | } | ||
40 | }, | ||
41 | mounted () { | ||
42 | this.formHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 260 | ||
43 | }, | ||
44 | methods: { | ||
45 | loadingStatus () { | ||
46 | let bsm = this.$store.state.hbsm; | ||
47 | // queryStatus(bsm).then(res => { | ||
48 | // if (res.success) { | ||
49 | // let qszt = res.result.qszt; | ||
50 | // this.isDisabled = +qszt !== 0; | ||
51 | // } | ||
52 | // }) | ||
53 | }, | ||
54 | handleClick (tab, event) { | ||
55 | this.loadingStatus() | ||
56 | // console.log(tab, event); | ||
57 | switch (tab.name) { | ||
58 | case 'djb': | ||
59 | this.djbVisible = true; | ||
60 | break; | ||
61 | case 'fjcl': | ||
62 | this.fjclVisible = true; | ||
63 | break; | ||
64 | default: | ||
65 | break; | ||
66 | } | ||
67 | }, | ||
68 | }, | ||
69 | watch: {} | ||
70 | } | ||
71 | </script> | ||
72 | |||
73 | <style scoped lang="scss"> | ||
74 | .el-tabs { | ||
75 | /deep/.el-tabs__nav-scroll { | ||
76 | margin-left: -35px; | ||
77 | } | ||
78 | } | ||
79 | </style> |
... | @@ -134,10 +134,7 @@ export default { | ... | @@ -134,10 +134,7 @@ export default { |
134 | bsms: [], | 134 | bsms: [], |
135 | dialogVisible: false, | 135 | dialogVisible: false, |
136 | scyclx: "0", //1是实测 0是预测 | 136 | scyclx: "0", //1是实测 0是预测 |
137 | pd: [], //创建楼盘的树结构数据 | ||
138 | menuType: "", | 137 | menuType: "", |
139 | treeData: {}, | ||
140 | inputWidth: 200, | ||
141 | selectedZt: "dyzt", //图例选中项,默认选中单元状态 | 138 | selectedZt: "dyzt", //图例选中项,默认选中单元状态 |
142 | dyztList: [ | 139 | dyztList: [ |
143 | { | 140 | { |
... | @@ -222,21 +219,6 @@ export default { | ... | @@ -222,21 +219,6 @@ export default { |
222 | }, 100); | 219 | }, 100); |
223 | }, | 220 | }, |
224 | methods: { | 221 | methods: { |
225 | //取消选中 | ||
226 | batchCancelChoosed () { | ||
227 | this.bsms = []; | ||
228 | this.qsztList = []; | ||
229 | this.$refs.lpbContent.hbsmList = []; | ||
230 | this.$refs.lpbContent.choosedList = []; | ||
231 | this.$refs.lpbContent.$refs.hBsm.forEach((item) => { | ||
232 | item.style.border = ''; | ||
233 | item.className = ""; | ||
234 | }); | ||
235 | this.$refs.lpbContent.$refs.cBsm.forEach((item) => { | ||
236 | item.style.border = ''; | ||
237 | item.className = ""; | ||
238 | }); | ||
239 | }, | ||
240 | 222 | ||
241 | loading () { | 223 | loading () { |
242 | this.getLpbMenuTree(this.$store.state.zrzbsm); | 224 | this.getLpbMenuTree(this.$store.state.zrzbsm); |
... | @@ -250,49 +232,6 @@ export default { | ... | @@ -250,49 +232,6 @@ export default { |
250 | this.lpbContentHight = window.innerHeight - 190; | 232 | this.lpbContentHight = window.innerHeight - 190; |
251 | }, | 233 | }, |
252 | 234 | ||
253 | //弹框中的保存按钮,根据不同菜单点击类型调用不同子组件的保存方法 | ||
254 | saveInfo () { | ||
255 | switch (this.menuType) { | ||
256 | case "ljz": | ||
257 | this.$refs.ljz.onSave(this.$refs.ljz.form, this.treeData.bsm); | ||
258 | break; | ||
259 | case "zdy": | ||
260 | this.$refs.zdy.submitForm("form", this.pd[0].bsm, this.treeData.bsm); | ||
261 | break; | ||
262 | case "ch": | ||
263 | this.$refs.ch.onSave(this.pd[0].bsm); | ||
264 | break; | ||
265 | case "c": | ||
266 | this.$refs.c.onSave(this.pd[0].bsm); | ||
267 | break; | ||
268 | default: | ||
269 | break; | ||
270 | } | ||
271 | }, | ||
272 | //弹框中的重置按钮 | ||
273 | resetInfo () { | ||
274 | switch (this.menuType) { | ||
275 | case "ljz": | ||
276 | this.$refs.ljz.reset(); | ||
277 | break; | ||
278 | case "zdy": | ||
279 | this.$refs.zdy.reset(); | ||
280 | break; | ||
281 | case "ch": | ||
282 | this.$refs.ch.reset(); | ||
283 | break; | ||
284 | case "c": | ||
285 | this.$refs.c.reset(); | ||
286 | break; | ||
287 | |||
288 | default: | ||
289 | break; | ||
290 | } | ||
291 | }, | ||
292 | //关闭弹框 | ||
293 | closeDaialog () { | ||
294 | this.dialogVisible = false; | ||
295 | }, | ||
296 | //图例的展开收起 | 235 | //图例的展开收起 |
297 | legendToggle () { | 236 | legendToggle () { |
298 | this.legendToggleFlag = !this.legendToggleFlag; | 237 | this.legendToggleFlag = !this.legendToggleFlag; | ... | ... |
... | @@ -190,11 +190,9 @@ | ... | @@ -190,11 +190,9 @@ |
190 | </template> | 190 | </template> |
191 | <script> | 191 | <script> |
192 | import { getLpb } from '@/api/zhcx' | 192 | import { getLpb } from '@/api/zhcx' |
193 | import { Message } from 'element-ui'; | ||
194 | import hbj from "../hbj/lpb-hbj/index"; | ||
195 | export default { | 193 | export default { |
196 | name: "", | 194 | name: "", |
197 | components: { hbj }, | 195 | components: { }, |
198 | props: { | 196 | props: { |
199 | zrzbsm: { | 197 | zrzbsm: { |
200 | type: String, | 198 | type: String, |
... | @@ -240,26 +238,12 @@ export default { | ... | @@ -240,26 +238,12 @@ export default { |
240 | //右键层户数据 | 238 | //右键层户数据 |
241 | chData: "", | 239 | chData: "", |
242 | rightClickFlag: "", | 240 | rightClickFlag: "", |
243 | //层操作数据 | 241 | |
244 | addCVisible: false, | ||
245 | addCData: { | ||
246 | title: "", | ||
247 | cbsm: "", //层标识码 | ||
248 | hcount: "", //添加户数 | ||
249 | scyclx: "", //实测预测类型 | ||
250 | sjc: "", //当前的层的SJC +1 | ||
251 | }, | ||
252 | formLabelWidth: "120px", | 242 | formLabelWidth: "120px", |
253 | yclpbData: {}, | 243 | yclpbData: {}, |
254 | sclpbData: {}, | 244 | sclpbData: {}, |
255 | fghbChoosedList: [], | 245 | |
256 | canHb: '',//判断合并类型 | 246 | |
257 | hfgDialogVisible: false, //户分割弹框 | ||
258 | fgData: { | ||
259 | fghs: "", | ||
260 | oldbsm: '', | ||
261 | fgfx: 0 | ||
262 | }, | ||
263 | zrzChecked: false, //自然幢全选 | 247 | zrzChecked: false, //自然幢全选 |
264 | }; | 248 | }; |
265 | }, | 249 | }, |
... | @@ -425,10 +409,7 @@ export default { | ... | @@ -425,10 +409,7 @@ export default { |
425 | 409 | ||
426 | break; | 410 | break; |
427 | case 'isLpb': | 411 | case 'isLpb': |
428 | this.$parent.getHbsm(this.hbsmList, false); | ||
429 | this.$parent.getQsztList(this.hqsztList, false); | ||
430 | break; | 412 | break; |
431 | |||
432 | default: | 413 | default: |
433 | break; | 414 | break; |
434 | } | 415 | } |
... | @@ -499,55 +480,10 @@ export default { | ... | @@ -499,55 +480,10 @@ export default { |
499 | this.chData = item; | 480 | this.chData = item; |
500 | switch (this.lpbParent) { | 481 | switch (this.lpbParent) { |
501 | case 'isHbfg': | 482 | case 'isHbfg': |
502 | this.rightClickFlag = this.isHb ? 'hb' : 'fg'; | ||
503 | if (this.fghbChoosedList.length > 1) { | ||
504 | //合并 | ||
505 | this.lpbChVisible = this.hbsmList.indexOf(this.chData.bsm) > -1 ? true : false; | ||
506 | //判断选中户可以执行的合并类型 | ||
507 | let chIsSame = this.fghbChoosedList.every((item) => { | ||
508 | return item.ch == this.fghbChoosedList[0].ch; | ||
509 | }); | ||
510 | let hhIsSame = this.fghbChoosedList.every((item) => { | ||
511 | return item.hh == this.fghbChoosedList[0].hh; | ||
512 | }); | ||
513 | this.$nextTick(() => { | ||
514 | if (chIsSame) { | ||
515 | this.canHb = 'zyhb' | ||
516 | } else if (hhIsSame) { | ||
517 | this.canHb = 'sxhb' | ||
518 | } else { | ||
519 | this.canHb = '' | ||
520 | } | ||
521 | }) | ||
522 | } else { | ||
523 | //分割 | ||
524 | this.lpbChVisible = this.hbsmList.indexOf(this.chData.bsm) > -1 ? true : false; | ||
525 | this.fgData.oldbsm = item.bsm; | ||
526 | console.log(item, 'item'); | ||
527 | //判断户的实际sjcs为1,只能水平分割 | ||
528 | this.fgData.fgfx = item.sjcs == 1 ? 0 : 1; | ||
529 | if (item.sjcs == 1) { | ||
530 | //判断户的实际sjcs为1,只能水平分割 | ||
531 | this.fgData.fgfx = 0; | ||
532 | this.fgData.fghs = ''; | ||
533 | } else { | ||
534 | this.fgData.fgfx = 1; | ||
535 | //判断户的实际sjhs不为1,分割户数为sjhs的值 | ||
536 | this.fgData.fghs = item.sjcs; | ||
537 | } | ||
538 | } | ||
539 | break; | 483 | break; |
540 | case 'isFwsxbg': | 484 | case 'isFwsxbg': |
541 | if (this.hbsmList[0] == item.bsm) { | ||
542 | this.rightClickFlag = 'fwsxbg'; | ||
543 | this.lpbChVisible = true; | ||
544 | } else { | ||
545 | this.lpbChVisible = false; | ||
546 | } | ||
547 | break; | 485 | break; |
548 | case 'isCxlz': | 486 | case 'isCxlz': |
549 | this.rightClickFlag = 'cxlz'; | ||
550 | this.lpbChVisible = this.hbsmList.indexOf(this.chData.bsm) > -1 ? true : false; | ||
551 | break; | 487 | break; |
552 | case 'isLpb': | 488 | case 'isLpb': |
553 | this.rightClickFlag = type; | 489 | this.rightClickFlag = type; |
... | @@ -562,9 +498,6 @@ export default { | ... | @@ -562,9 +498,6 @@ export default { |
562 | hDyztClick (e, bsm, hs) { | 498 | hDyztClick (e, bsm, hs) { |
563 | this.handleTdClick(e.target.parentNode, bsm, hs); | 499 | this.handleTdClick(e.target.parentNode, bsm, hs); |
564 | }, | 500 | }, |
565 | dyztIconClick () { | ||
566 | |||
567 | }, | ||
568 | // 层选中事件 | 501 | // 层选中事件 |
569 | handleClickC (e, item) { | 502 | handleClickC (e, item) { |
570 | if (this.lpbParent == 'isLpb') { | 503 | if (this.lpbParent == 'isLpb') { | ... | ... |
-
Please register or sign in to post a comment