Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
daac245c
authored
2023-09-15 14:59:24 +0800
by
yangwei
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
楼盘表显示内容及是否可操作判断
1 parent
cc7683e0
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
82 additions
and
60 deletions
src/views/djbworkflow/mixin/index.js
src/views/lpb/index.vue
src/views/lpb/lpbContent/ch.vue
src/views/lpb/lpbContent/index.vue
src/views/lpb/lpbContent/ljzs.vue
src/views/lpb/lpbContent/zdys.vue
src/views/workflow/mixin/index.js
src/views/ywbl/ywsq/components/fwsyq.vue
src/views/ywbl/ywsq/components/selectFwsyq.vue
src/views/zhcx/djbcx/djbcx.vue
src/views/zhcx/zxgcdycx/zxgcdycx.vue
src/views/djbworkflow/mixin/index.js
View file @
daac245
...
...
@@ -173,7 +173,8 @@ export default {
break
;
case
"B8"
:
this
.
$popupDialog
(
'楼盘表'
,
'lpb/index'
,
{
bsm
:
''
bsm
:
''
,
onlyShow
:
true
,
},
'90%'
,
true
)
break
;
case
"back"
:
//退回按钮
...
...
src/views/lpb/index.vue
View file @
daac245
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-1
2 16:55:35
* @LastEditTime: 2023-09-1
5 14:46:47
-->
<
template
>
<div
class=
"edit"
>
...
...
@@ -22,6 +22,7 @@
:zrzbsm=
"formData.bsm"
:scyclx=
"formData.scyclx"
:onlyShow=
"formData.onlyShow"
:showSave=
"formData.showSave"
:unitData=
"formData.unitData"
:sqywInfo=
"formData"
:key=
"time"
></lpbContent>
...
...
src/views/lpb/lpbContent/ch.vue
View file @
daac245
...
...
@@ -2,7 +2,7 @@
* @Author: yangwei
* @Date: 2023-02-28 15:47:12
* @LastEditors: yangwei
* @LastEditTime: 2023-09-1
4 15:04:2
0
* @LastEditTime: 2023-09-1
5 14:52:5
0
* @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue
* @Description:
*
...
...
@@ -96,6 +96,10 @@ export default {
return
[];
},
},
onlyShow
:{
type
:
Boolean
,
default
:
true
,
}
},
data
()
{
return
{
...
...
@@ -140,23 +144,25 @@ export default {
* @author: renchao
*/
handleClickC
(
e
,
item
)
{
// 判断点击的层是否选中
if
(
e
.
target
.
className
.
indexOf
(
"tdSelect"
)
==
-
1
)
{
//未选中→选中
item
.
hs
.
forEach
((
h
)
=>
{
//加边框
e
.
target
.
className
+=
" tdSelect"
;
h
.
select
=
true
;
// 使用hbsmList时,需要去重
this
.
hbsmList
.
push
(
h
.
bsm
)
});
}
else
{
//选中→未选中
item
.
hs
.
forEach
((
h
)
=>
{
e
.
target
.
className
=
"floor"
;
h
.
select
=
false
;
this
.
hbsmList
=
this
.
hbsmList
.
filter
((
i
)
=>
i
!=
h
.
bsm
);
});
if
(
!
this
.
onlyShow
)
{
// 判断点击的层是否选中
if
(
e
.
target
.
className
.
indexOf
(
"tdSelect"
)
==
-
1
)
{
//未选中→选中
item
.
hs
.
forEach
((
h
)
=>
{
//加边框
e
.
target
.
className
+=
" tdSelect"
;
h
.
select
=
true
;
// 使用hbsmList时,需要去重
this
.
hbsmList
.
push
(
h
.
bsm
)
});
}
else
{
//选中→未选中
item
.
hs
.
forEach
((
h
)
=>
{
e
.
target
.
className
=
"floor"
;
h
.
select
=
false
;
this
.
hbsmList
=
this
.
hbsmList
.
filter
((
i
)
=>
i
!=
h
.
bsm
);
});
}
}
},
//户单击事件
...
...
@@ -168,26 +174,28 @@ export default {
* @author: renchao
*/
handleClickH
(
e
,
bsm
,
hs
)
{
let
self
=
this
;
// 开启延时器,200ms的间隔区分单击和双击,解决双击时执行两次单击事件
clearTimeout
(
self
.
time
);
self
.
time
=
setTimeout
(()
=>
{
// this.closeMenu();
//判断点击的户是否选中
if
(
!
hs
.
select
)
{
//未选中→选中
//加边框
hs
.
select
=
true
;
// 将户bsm放进hbsmList
self
.
hbsmList
.
push
(
bsm
);
}
else
{
//选中→未选中
hs
.
select
=
false
;
self
.
hbsmList
=
self
.
hbsmList
.
filter
((
i
)
=>
i
!=
bsm
);
}
//更新当前选中户数据
this
.
$forceUpdate
();
},
200
);
if
(
!
this
.
onlyShow
)
{
let
self
=
this
;
// 开启延时器,200ms的间隔区分单击和双击,解决双击时执行两次单击事件
clearTimeout
(
self
.
time
);
self
.
time
=
setTimeout
(()
=>
{
// this.closeMenu();
//判断点击的户是否选中
if
(
!
hs
.
select
)
{
//未选中→选中
//加边框
hs
.
select
=
true
;
// 将户bsm放进hbsmList
self
.
hbsmList
.
push
(
bsm
);
}
else
{
//选中→未选中
hs
.
select
=
false
;
self
.
hbsmList
=
self
.
hbsmList
.
filter
((
i
)
=>
i
!=
bsm
);
}
//更新当前选中户数据
this
.
$forceUpdate
();
},
200
);
}
},
// 户单元状态点击事件
/**
...
...
@@ -198,7 +206,9 @@ export default {
* @author: renchao
*/
hDyztClick
(
e
,
bsm
,
hs
)
{
this
.
handleClickH
(
e
.
target
.
parentNode
,
bsm
,
hs
);
if
(
!
this
.
onlyShow
)
{
this
.
handleClickH
(
e
.
target
.
parentNode
,
bsm
,
hs
);
}
},
//户双击事件
/**
...
...
src/views/lpb/lpbContent/index.vue
View file @
daac245
...
...
@@ -4,22 +4,22 @@
<!-- 纵向倒序排列 逻辑幢位于独立幢单元和独立层户的上方 -->
<div
class=
"ch-zdy-wrap"
>
<!-- 幢单元 -->
<zdy-cpn
v-if=
"lpbData.zdys.length"
:zdys=
"lpbData.zdys"
:onlyShow=
"onlyShow"
/>
<zdy-cpn
v-if=
"lpbData.zdys.length"
:zdys=
"lpbData.zdys"
:onlyShow=
"onlyShow"
/>
<!-- 独立层户 -->
<ch-cpn
v-if=
"lpbData.cs.length"
:ch=
"lpbData.cs"
/>
<ch-cpn
v-if=
"lpbData.cs.length"
:ch=
"lpbData.cs"
:onlyShow=
"onlyShow"
/>
</div>
<!-- 逻辑幢 -->
<ljzs-cpn
v-if=
"lpbData.ljzs.length"
:ljzs=
"lpbData.ljzs"
:onlyShow=
"onlyShow"
/>
</div>
<!-- 自然幢名称 -->
<
!--
<p
class=
"lpb-xmmc"
:style=
"
{ 'border-bottom': onlyShow ? 0 : '1px solid #e6e6e6'}"> --
>
<p
class=
"lpb-xmmc"
:style=
"
{ 'border-bottom':'1px solid #e6e6e6'}">
<
p
class=
"lpb-xmmc"
v-if=
"onlyShow"
style=
"border-bottom: 1px solid #e6e6e6"
>
{{
lpbData
.
xmmc
}}
</p
>
<p
class=
"lpb-xmmc"
v-else
:style=
"
{ 'border-bottom':'1px solid #e6e6e6'}">
<el-checkbox
@
change=
"zdySelectAll($event)"
>
{{
lpbData
.
xmmc
}}
</el-checkbox>
</p>
<el-button
type=
"primary"
class=
"save-btn"
v-if=
"!onlyShow"
@
click=
"saveLpb"
>
保存
</el-button>
<el-button
type=
"primary"
class=
"save-btn"
v-
else
@
click=
"submitForm"
:loading=
"loading"
>
发起申请
</el-button>
<el-button
type=
"primary"
class=
"save-btn"
v-if=
"!onlyShow
&& showSave
"
@
click=
"saveLpb"
>
保存
</el-button>
<el-button
type=
"primary"
class=
"save-btn"
v-
if=
"!onlyShow"
@
click=
"submitForm"
:loading=
"loading"
>
发起申请
</el-button>
<!-- 右键菜单 -->
<ul
v-show=
"lpbChVisible"
...
...
@@ -70,6 +70,10 @@ export default {
type
:
Boolean
,
default
:
true
,
},
showSave
:{
type
:
Boolean
,
default
:
false
,
},
scyclx
:
{
type
:
Number
,
default
:
0
,
...
...
@@ -278,8 +282,8 @@ export default {
},
computed
:{
lpbContentHeight
(){
// return this.onlyShow ? 36
: 76
return
76
return
this
.
onlyShow
?
32
:
76
//
return 76
}
},
watch
:
{
...
...
src/views/lpb/lpbContent/ljzs.vue
View file @
daac245
...
...
@@ -2,7 +2,7 @@
* @Author: yangwei
* @Date: 2023-02-28 17:25:45
* @LastEditors: yangwei
* @LastEditTime: 2023-09-1
4 14:35:19
* @LastEditTime: 2023-09-1
5 14:55:58
* @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ljzs.vue
* @Description:
*
...
...
@@ -40,7 +40,8 @@
v-else
>
<!-- 逻辑幢名称 -->
<p
class=
"lpb-xmmc ljz-xmmc"
>
<p
class=
"lpb-xmmc ljz-xmmc"
v-if=
"onlyShow"
>
{{
ljzarr
[
0
].
ljzmc
}}
</p>
<p
class=
"lpb-xmmc ljz-xmmc"
v-else
>
<el-checkbox
@
change=
"zdySelectAll($event,ljzarr[0].bsm)"
>
{{
ljzarr
[
0
].
ljzmc
}}
</el-checkbox>
...
...
src/views/lpb/lpbContent/zdys.vue
View file @
daac245
...
...
@@ -2,7 +2,7 @@
* @Author: yangwei
* @Date: 2023-02-28 16:29:04
* @LastEditors: yangwei
* @LastEditTime: 2023-09-1
4 14:36:51
* @LastEditTime: 2023-09-1
5 14:57:10
* @FilePath: \bdcdj-web\src\views\lpb\lpbContent\zdys.vue
* @Description:
*
...
...
@@ -13,9 +13,10 @@
<div
v-for=
"zdy in realZdys"
:key=
"zdy.bsm"
>
<!-- 幢单元名称 -->
<p
class=
"lpb-xmmc"
>
<el-checkbox
@
change=
"zdySelectAll($event,zdy.bsm)"
>
{{
<el-checkbox
@
change=
"zdySelectAll($event,zdy.bsm)"
v-if=
"!onlyShow"
>
{{
zdy
.
zdymc
}}
</el-checkbox>
<span
v-else
>
{{
zdy
.
zdymc
}}
</span>
</p>
<!-- 每个幢单元下的层户 -->
<ch-cpn
:ref=
"zdy.bsm"
:ch=
"zdy.cs"
/>
...
...
src/views/workflow/mixin/index.js
View file @
daac245
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-0
8-31 09:35:49
* @LastEditTime: 2023-0
9-15 14:44:53
*/
import
{
getPrintTemplateByCode
}
from
"@/api/print"
;
import
{
uploadUndo
}
from
"@/api/clxx"
;
...
...
@@ -163,6 +163,7 @@ export default {
this
.
$popupDialog
(
'楼盘表'
,
'lpb/index'
,
{
bsm
:
res
.
result
[
0
],
onlyShow
:
false
,
showSave
:
true
,
unitData
:
window
.
unitData
},
'90%'
,
true
)
}
else
{
...
...
src/views/ywbl/ywsq/components/fwsyq.vue
View file @
daac245
...
...
@@ -306,6 +306,7 @@
ywPopupDialog
(
'楼盘表'
,
'lpb/index'
,
{
bsm
:
item
.
bsm
,
bsmSqyw
:
this
.
sqywInfo
.
bsmSqyw
,
onlyShow
:
false
,
scyclx
:
1
},
'85%'
,
true
,
false
)
},
...
...
src/views/ywbl/ywsq/components/selectFwsyq.vue
View file @
daac245
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-0
8-24 11:00:59
* @LastEditTime: 2023-0
9-15 14:34:40
-->
<
template
>
<!-- 主体权利信息查询 -->
...
...
@@ -249,9 +249,9 @@
* @param {*} row
* @author: miaofang
*/
handleLpbClick
(
item
)
{
console
.
log
(
"item"
,
item
);
console
.
log
(
"this.sqywInfo"
,
this
.
sqywInfo
);
handleLpbClick
(
item
)
{
console
.
log
(
"item"
,
item
);
console
.
log
(
"this.sqywInfo"
,
this
.
sqywInfo
);
this
.
$popup
(
'楼盘表'
,
'lpb/index'
,
{
width
:
'85%'
,
formData
:
{
...
...
@@ -261,6 +261,7 @@
bsmSqyw
:
this
.
sqywInfo
.
bsmSqyw
,
djqxbm
:
this
.
sqywInfo
.
nodetype
==
"djqx"
?
this
.
sqywInfo
.
nodecode
:
""
,
djqxmc
:
this
.
sqywInfo
.
nodetype
==
"djqx"
?
this
.
sqywInfo
.
nodename
:
""
,
onlyShow
:
false
}
})
},
...
...
src/views/zhcx/djbcx/djbcx.vue
View file @
daac245
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-0
7-25 14:47:41
* @LastEditTime: 2023-0
9-15 14:24:32
-->
<
template
>
<div
class=
"from-clues"
>
...
...
@@ -199,7 +199,7 @@
bsm
:
item
.
zrzbsm
,
zrzbsm
:
item
.
zrzbsm
,
zdbsm
:
item
.
zrzbsm
,
onlyShow
:
true
}
})
}
...
...
src/views/zhcx/zxgcdycx/zxgcdycx.vue
View file @
daac245
...
...
@@ -100,6 +100,7 @@
// onlyShow: true,
djqxbm
:
this
.
sqywInfo
.
nodetype
==
"djqx"
?
this
.
sqywInfo
.
nodecode
:
""
,
djqxmc
:
this
.
sqywInfo
.
nodetype
==
"djqx"
?
this
.
sqywInfo
.
nodename
:
""
,
onlyShow
:
true
}
})
}
...
...
Please
register
or
sign in
to post a comment