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
52d46dc6
authored
2021-01-06 15:54:43 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(dzHb,yzgy):权利人,业主共有表单验证
1 parent
845c6ec2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
33 deletions
src/components/dzHb/dzHb.vue
src/views/zrz/yzgy/index.vue
src/components/dzHb/dzHb.vue
View file @
52d46dc
...
...
@@ -17,7 +17,7 @@
<el-button
style=
"border:0;padding:0 10px"
@
click=
"newAddDz"
>
<i
class=
"iconfont iconicon-test2"
style=
"color:#66b1ff;font-size:20px;position: relative;top:2px;left:-2px"
></i>
多幢
</el-button>
<el-button
style=
"border:0;padding:0 10px"
@
click=
"newAdd
D
z"
>
<el-button
style=
"border:0;padding:0 10px"
@
click=
"newAdd
Zr
z"
>
<i
class=
"iconfont iconicon-test2"
style=
"color:#66b1ff;font-size:20px;position: relative;top:2px;left:-2px"
></i>
自然幢
</el-button>
</
template
>
...
...
@@ -245,7 +245,7 @@
<td>
{{item.bdcdyh}}
</td>
<td>
{{item.xmmc}}
</td>
<td>
{{item.bdcqzh}}
</td>
<td>
{{item.qlr}}
</td>
<td>
{{item.qlr
mc
}}
</td>
<td>
{{item.zl}}
</td>
<td>
{{item.zrzCount}}
</td>
</tr>
...
...
@@ -328,7 +328,7 @@
<td>
权利人
</td>
<td>
坐落
</td>
</tr>
<tr
v-if=
"Data.length==0"
>
<tr
v-if=
"Data.length==
=
0"
>
<td
colspan=
"8"
>
<span
class=
"noData"
>
暂无数据
</span>
</td>
...
...
@@ -342,7 +342,7 @@
<td>
{{item.bdcdyh}}
</td>
<td>
{{item.xmmc}}
</td>
<td>
{{item.bdcqzh}}
</td>
<td>
{{item.qlr}}
</td>
<td>
{{item.qlr
mc
}}
</td>
<td>
{{item.zl}}
</td>
</tr>
</table>
...
...
@@ -424,25 +424,26 @@
methods
:
{
getZdData
(
id
)
{
getQjZdjbxxDetailById
(
id
).
then
(
res
=>
{
this
.
dzhbhData
.
xzqbsm
=
res
.
result
.
xzqbsm
this
.
changeXzq
(
this
.
dzhbhData
.
xzqbsm
)
this
.
dzhbhData
.
djqbsm
=
res
.
result
.
djqbsm
this
.
changeDjq
(
this
.
dzhbhData
.
djqbsm
)
this
.
dzhbhData
.
djzqbsm
=
res
.
result
.
djzqbsm
this
.
dzhbhData
.
syqlxbsm
=
res
.
result
.
syqlxbsm
this
.
dzhbhData
.
zdtzmbsm
=
res
.
result
.
zdtzmbsm
this
.
dzhbhData
.
xzqbsm
=
res
.
result
.
xzqbsm
;
this
.
changeXzq
(
this
.
dzhbhData
.
xzqbsm
)
;
this
.
dzhbhData
.
djqbsm
=
res
.
result
.
djqbsm
;
this
.
changeDjq
(
this
.
dzhbhData
.
djqbsm
)
;
this
.
dzhbhData
.
djzqbsm
=
res
.
result
.
djzqbsm
;
this
.
dzhbhData
.
syqlxbsm
=
res
.
result
.
syqlxbsm
;
this
.
dzhbhData
.
zdtzmbsm
=
res
.
result
.
zdtzmbsm
;
})
},
newAddDz
()
{
this
.
dzIsVisible
=
true
;
this
.
reset
();
this
.
geDztData
(
this
.
queryData
)
},
newAddZrz
()
{
this
.
zrzIsVisible
=
true
;
this
.
reset
();
this
.
geZrztData
(
this
.
queryData
)
},
deleteData
(
index
)
{
console
.
log
(
JSON
.
stringify
(
index
)
+
":row"
)
let
data
=
this
.
dzhbqData
[
index
];
// 多幢
if
(
data
.
zrzCount
)
{
...
...
@@ -453,17 +454,17 @@
let
zrzIndex
=
this
.
zrzList
.
indexOf
(
data
);
this
.
zrzList
.
splice
(
zrzIndex
,
1
)
}
this
.
dzhbqData
.
splice
(
index
,
1
)
this
.
dzhbqData
.
splice
(
index
,
1
)
;
if
(
this
.
dzhbqData
.
length
===
0
)
{
this
.
dzhbhData
.
xzqbsm
=
""
this
.
dzhbhData
.
djqbsm
=
""
this
.
dzhbhData
.
djzqbsm
=
""
this
.
dzhbhData
.
syqlxbsm
=
""
this
.
dzhbhData
.
xzqbsm
=
""
;
this
.
dzhbhData
.
djqbsm
=
""
;
this
.
dzhbhData
.
djzqbsm
=
""
;
this
.
dzhbhData
.
syqlxbsm
=
""
;
this
.
dzhbhData
.
zdtzmbsm
=
""
}
},
save
()
{
},
dzClose
()
{
this
.
dzIsVisible
=
false
;
...
...
@@ -473,22 +474,30 @@
},
currentChange
(
val
)
{
this
.
queryData
.
pageNo
=
val
;
this
.
geDztData
(
this
.
queryData
);
if
(
this
.
dzIsVisible
)
{
this
.
geDztData
(
this
.
queryData
);
}
else
{
this
.
geZrztData
(
this
.
queryData
)
}
},
geDztData
(
data
)
{
dzList
(
data
).
then
(
res
=>
{
this
.
Data
=
res
.
result
.
records
this
.
Data
=
res
.
result
.
records
;
this
.
total
=
res
.
result
.
total
;
})
},
geZrztData
(
data
)
{
zrzList
(
data
).
then
(
res
=>
{
this
.
Data
=
res
.
result
.
records
this
.
Data
=
res
.
result
.
records
;
this
.
total
=
res
.
result
.
total
;
})
},
search
()
{
this
.
geDztData
(
this
.
queryData
)
if
(
this
.
dzIsVisible
)
{
this
.
geDztData
(
this
.
queryData
);
}
else
{
this
.
geZrztData
(
this
.
queryData
)
}
},
addData
(
data
)
{
if
(
this
.
dzhbqData
.
length
===
0
)
{
...
...
@@ -502,7 +511,7 @@
let
arr
=
[];
arr
=
this
.
dzhbqData
.
filter
(
i
=>
i
.
bsm
===
data
.
bsm
);
if
(
arr
.
length
>
0
)
{
this
.
$message
.
info
(
"当前多幢已选择,请重新选择"
)
this
.
$message
.
info
(
"当前多幢已选择,请重新选择"
)
;
return
}
arr
=
this
.
dzhbqData
.
filter
(
i
=>
i
.
zdbsm
!==
data
.
zdbsm
);
...
...
@@ -610,19 +619,23 @@
pageNo
:
1
,
pageSize
:
10
};
this
.
geDztData
(
this
.
queryData
)
if
(
this
.
dzIsVisible
)
{
this
.
geDztData
(
this
.
queryData
);
}
else
{
this
.
geZrztData
(
this
.
queryData
)
}
},
},
watch
:
{
zdbsm
:
function
(
bsm
)
{
this
.
getZdData
(
bsm
)
}
}
,
}
}
</
script
>
<
style
scoped
lang=
"less"
>
.psn
{
position
:
unset
!important
;
}
...
...
src/views/zrz/yzgy/index.vue
View file @
52d46dc
...
...
@@ -43,22 +43,22 @@
>
</td>
<td>
<el-input
v-model=
"item.jgzwbh"
placeholder=
"请输入建(构)筑物编号"
></el-input>
<el-input
v-model=
"item.jgzwbh"
placeholder=
"请输入建(构)筑物编号"
maxlength=
"10"
></el-input>
</td>
<td>
<el-input
v-model=
"item.jgzsl"
oninput=
"value = (value.match(/^\d
{0,
10
}/g)) || null"
<el-input
v-model=
"item.jgzsl"
oninput=
"value = (value.match(/^\d
{0,
9
}/g)) || null"
placeholder="请输入建(构)筑物数量">
</el-input>
</td>
<td>
<el-input
v-model=
"item.jgzmj"
oninput=
"value = (value.match(/^\d
{0,
10
}(\.?\d{0,3})/g)[0]) || null"
<el-input
v-model=
"item.jgzmj"
oninput=
"value = (value.match(/^\d
{0,
9
}(\.?\d{0,3})/g)[0]) || null"
placeholder="请输入建(构)筑物面积(㎡)">
</el-input>
</td>
<td>
<el-input
v-model=
"item.zdmj"
oninput=
"value = (value.match(/^\d
{0,
10
}(\.?\d{0,3})/g)[0]) || null"
<el-input
v-model=
"item.zdmj"
oninput=
"value = (value.match(/^\d
{0,
9
}(\.?\d{0,3})/g)[0]) || null"
placeholder="请输入占地面积(㎡)">
</el-input>
</td>
<td>
<el-input
v-model=
"item.fttdmj"
oninput=
"value = (value.match(/^\d
{0,
10
}(\.?\d{0,3})/g)[0]) || null"
<el-input
v-model=
"item.fttdmj"
oninput=
"value = (value.match(/^\d
{0,
9
}(\.?\d{0,3})/g)[0]) || null"
placeholder="请输入分摊土地面积(㎡)">
</el-input>
</td>
<td>
...
...
@@ -102,7 +102,6 @@
methods
:
{
getData
(
id
)
{
queryYzgy
(
id
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
result
!=
null
)
{
this
.
Data
=
res
.
result
}
...
...
@@ -115,7 +114,6 @@
return
}
saveYzgy
(
this
.
Data
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
success
)
{
Message
.
success
(
"新增成功"
)
this
.
getData
(
this
.
$store
.
state
.
zrzbsm
)
...
...
Please
register
or
sign in
to post a comment