Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
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
ef94474d
authored
2021-01-15 14:45:37 +0800
by
zhaoqian
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
自然幢不动产单元号的更改影响其自然幢下的户的不动产单元号的信息
1 parent
f142be6b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
5 deletions
src/api/zrz.js
src/views/zrz/zrzxx/index.vue
src/api/zrz.js
View file @
ef94474
...
...
@@ -126,3 +126,13 @@ export function cxlzZrzList(data) {
})
}
/**
* 查询权籍_建筑物区分所有权业主共有部分调查表
*/
export
function
getHCountByZrzbsm
(
id
)
{
return
request
({
url
:
'/fw/qjZrz/getHCountByZrzbsm'
,
method
:
'get'
,
params
:
{
id
}
})
}
...
...
src/views/zrz/zrzxx/index.vue
View file @
ef94474
...
...
@@ -14,7 +14,7 @@
</td>
<td
colspan=
"2"
class=
"tdright"
><i
class=
"requisite"
>
*
</i>
自然幢号
</td>
<td
colspan=
"4"
class=
"psr"
>
<input
class=
"formInput percent80"
ref=
"zrzh"
@
blur=
"inputBlur($event)"
:disabled=
"disabled"
maxlength=
"24"
v-model=
"form.zrzh"
>
<input
class=
"formInput percent80"
ref=
"zrzh"
@
blur=
"inputBlur
Zrzh
($event)"
:disabled=
"disabled"
maxlength=
"24"
v-model=
"form.zrzh"
>
<el-button
@
click
.
prevent=
"generatorCode"
type=
"warning"
:disabled=
"disabled"
class=
"createBtn"
size=
"mini"
>
生成
</el-button>
</td>
</tr>
...
...
@@ -25,7 +25,7 @@
</td>
<td
colspan=
"2"
class=
"tdright"
><i
class=
"requisite"
>
*
</i>
不动产单元号
</td>
<td
colspan=
"4"
>
<input
class=
"formInput "
ref=
"bdcdyh"
@
blur=
"inputBlur($event)"
:disabled=
"disabled"
maxlength=
"28"
v-model=
"form.bdcdyh"
>
<input
class=
"formInput "
ref=
"bdcdyh"
@
blur=
"inputBlur($event)"
disabled
maxlength=
"28"
v-model=
"form.bdcdyh"
>
</td>
</tr>
...
...
@@ -285,7 +285,7 @@
<
script
>
import
Qlr
from
"@components/formMenu/qlr"
;
import
Qlxz
from
"@components/formMenu/qlxz"
;
import
{
getBdcdyh
,
saveZrzInfo
,
getZrzDetailByBsm
}
from
"@api/zrz"
import
{
getBdcdyh
,
saveZrzInfo
,
getZrzDetailByBsm
,
getHCountByZrzbsm
}
from
"@api/zrz"
import
{
getQjZdjbxxDetailById
}
from
"@api/zd"
import
{
submit
,
registerCall
}
from
"@api/common"
import
geoUtils
from
"@components/lineTree/tx/js/geoUtils"
;
...
...
@@ -315,6 +315,12 @@
lx
:
"zrz"
,
bsm
:
''
,
initZrzh
:
''
,
finishZrzh
:
''
,
hcount
:
0
,
booleanUpdateH
:
false
,
form
:{
zrzbsm
:
''
,
//自然幢标识码
zdbsm
:
''
,
//宗地标识码
...
...
@@ -360,6 +366,7 @@
glbsm
:
''
,
//关联标识码
sx
:
''
,
//顺序
}],
booleanUpdateH
:
false
,
},
value
:
''
,
ytTitleRowspan
:
1
,
//用途的单元格垂直合并数量
...
...
@@ -467,6 +474,10 @@
}
},
onSave
(){
//保存之前的自然幢号,用于判断该自然幢的不动产单元号是否更改,是否更改其下户的不动产单元号
this
.
finishZrzh
=
this
.
form
.
zrzh
;
this
.
form
.
booleanUpdateH
=
this
.
booleanUpdateH
;
//判断自然幢号和不动产单元号是否手动修改过(自然幢号和不动产单元号的前19位是否和宗地代码一致)
console
.
log
(
this
.
form
,
'this.form'
);
//给校验项赋值
...
...
@@ -614,6 +625,7 @@
})
},
open
()
{
const
self
=
this
;
this
.
$confirm
(
'已经存在不动产单元号或者自然幢号, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
...
...
@@ -623,6 +635,16 @@
.
then
((
res
)
=>
{
this
.
form
.
zrzh
=
res
.
result
.
substring
(
0
,
24
);
this
.
form
.
bdcdyh
=
res
.
result
;
console
.
log
(
self
.
initZrzh
,
self
.
hcount
,
"self"
)
if
(
self
.
initZrzh
!=
null
&&
self
.
initZrzh
!==
''
&&
self
.
hcount
>
0
){
self
.
booleanUpdateH
=
true
;
self
.
$notify
({
title
:
'提示'
,
message
:
'修改自然幢号,可能会影响该自然幢下户的不动产单元号的重新生成!'
,
duration
:
0
,
type
:
'warning'
});
}
});
this
.
$message
({
type
:
'success'
,
...
...
@@ -636,6 +658,7 @@
});
},
generatorCode
(){
const
self
=
this
;
console
.
log
(
this
.
form
,
'this.form'
);
if
((
this
.
form
.
zrzh
!=
null
&&
this
.
form
.
zrzh
!==
''
)
||
(
this
.
form
.
bdcdyh
!=
null
&&
this
.
form
.
bdcdyh
!==
''
)){
this
.
open
();
...
...
@@ -643,8 +666,18 @@
}
getBdcdyh
(
this
.
form
.
zddm
,
"zrz"
)
.
then
((
res
)
=>
{
this
.
form
.
zrzh
=
res
.
result
.
substring
(
0
,
24
);
this
.
form
.
bdcdyh
=
res
.
result
;
self
.
form
.
zrzh
=
res
.
result
.
substring
(
0
,
24
);
self
.
form
.
bdcdyh
=
res
.
result
;
console
.
log
(
self
.
initZrzh
,
self
.
hcount
,
"self"
)
if
(
self
.
initZrzh
!=
null
&&
self
.
initZrzh
!==
''
&&
self
.
hcount
>
0
){
self
.
booleanUpdateH
=
true
;
self
.
$notify
({
title
:
'提示'
,
message
:
'修改自然幢号,可能会影响该自然幢下户的不动产单元号的重新生成!'
,
duration
:
0
,
type
:
'warning'
});
}
})
},
...
...
@@ -681,6 +714,8 @@
}
else
{
this
.
disabled
=
true
}
//初始化的自然幢号,用于判断该自然幢的不动产单元号是否更改,是否更改其下户的不动产单元号
this
.
initZrzh
=
res
.
result
.
zrzh
;
this
.
$store
.
state
.
zrzh
=
res
.
result
.
zrzh
;
if
(
this
.
form
.
fwjgList
.
length
===
0
){
this
.
form
.
fwjgList
.
push
({
...
...
@@ -734,6 +769,27 @@
e
.
target
.
style
.
boxSizing
=
'border-box'
;
}
},
inputBlurZrzh
(
e
){
if
(
this
.
initZrzh
!=
null
&&
this
.
initZrzh
!==
''
&&
e
.
target
.
value
!==
''
&&
this
.
hcount
>
0
){
if
(
this
.
initZrzh
!==
e
.
target
.
value
){
this
.
booleanUpdateH
=
true
;
this
.
$notify
({
title
:
'提示'
,
message
:
'修改自然幢号,可能会影响该自然幢下户的不动产单元号的重新生成!'
,
duration
:
0
,
type
:
'warning'
});
}
else
{
this
.
booleanUpdateH
=
false
;
}
}
if
(
e
.
target
.
value
!=
''
){
e
.
target
.
style
.
border
=
""
}
else
{
e
.
target
.
style
.
border
=
"1px solid red"
;
e
.
target
.
style
.
boxSizing
=
'border-box'
;
}
}
},
created
(){
//todo 怎么判断进入到该页面是从新建处进来的,还是从右键宗地进来的!如果是从新建进来的就需要把虚拟宗标识码带过来;
...
...
@@ -753,6 +809,11 @@
}
},
mounted
()
{
getHCountByZrzbsm
(
this
.
$route
.
query
.
bsm
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
this
.
hcount
=
res
.
result
;
}
});
this
.
$nextTick
(()
=>
{
this
.
mainBoxWidth
=
this
.
$refs
.
mainBox
.
clientWidth
;
})
...
...
@@ -775,6 +836,7 @@
"form.zrzh"
:
function
(
val
)
{
if
(
val
!=
''
)
{
this
.
$refs
.
zrzh
.
style
.
border
=
''
;
this
.
form
.
bdcdyh
=
val
+
"0000"
;
}
},
"form.fwxzbsm"
:{
...
...
Please
register
or
sign in
to post a comment