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
7f1950dc
authored
2020-10-15 17:31:06 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(mjft):修改面积验证
1 parent
3024659f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
src/views/systemZD/mjftb/index.vue
src/views/systemZD/mjftb/index.vue
View file @
7f1950d
...
...
@@ -3,7 +3,7 @@
<table
border=
"1"
>
<tr>
<td
colspan=
"2"
>
土地坐落
</td>
<td
colspan=
"3"
><input
type=
"number"
class=
"formInput"
v-model
.
number
=
"mjftData.tdzl"
disabled
/></td>
<td
colspan=
"3"
><input
type=
"text"
class=
"formInput"
v-model
=
"mjftData.tdzl"
disabled
/></td>
</tr>
<tr>
<td
colspan=
"2"
>
宗地代码
</td>
...
...
@@ -11,7 +11,7 @@
</tr>
<tr>
<td
colspan=
"2"
>
宗地面积(㎡)
</td>
<td><input
type=
"number"
class=
"formInput"
v-model
.
number=
"mjftData.zj
mj"
disabled
/></td>
<td><input
type=
"number"
class=
"formInput"
v-model
.
number=
"mjftData.zd
mj"
disabled
/></td>
<td>
定着物数量
</td>
<td>
{{
dzwdsl
}}
</td>
</tr>
...
...
@@ -31,9 +31,9 @@
<tr
v-for=
"(item,i) in mjftData.addQjZdftdzwRequestList"
:key=
"i"
>
<td
@
click=
"delRow(i)"
>
-
</td>
<td><input
type=
"text"
class=
"formInput"
v-model=
"item.dzwdm"
/></td>
<td><input
type=
"number"
class=
"formInput"
v-model
.
number=
"item.tdsyqsyqmj
"
/></td>
<td><input
type=
"number"
class=
"formInput"
v-model
.
number=
"item.dydytdmj
"
/></td>
<td><input
type=
"number"
class=
"formInput"
v-model
.
number=
"item.fttdmj
"
/></td>
<td><input
type=
"number"
class=
"formInput"
v-model=
"item.tdsyqsyqmj"
@
keydown=
"oninput
"
/></td>
<td><input
type=
"number"
class=
"formInput"
v-model=
"item.dydytdmj"
@
keydown=
"oninput
"
/></td>
<td><input
type=
"number"
class=
"formInput"
v-model=
"item.fttdmj"
@
keydown=
"oninput
"
/></td>
</tr>
<tr>
<td></td>
...
...
@@ -57,7 +57,7 @@
data
()
{
return
{
mjftData
:
{
zdbsm
:
'
123
'
,
// 宗地标识码 继承获取
zdbsm
:
''
,
// 宗地标识码 继承获取
tdsyqsyqmjhj
:
''
,
// 土地所有权/使用权面积合计
fttdmjhj
:
''
,
// 分摊土地面积合计
dzwdys
:
''
,
// 表示同一宗地内所有的定着物单元数
...
...
@@ -87,6 +87,9 @@
console
.
log
(
error
)
})
},
oninput
(
e
)
{
e
.
target
.
value
=
(
e
.
target
.
value
.
match
(
/^
\d
*
(\.?\d{0,2})
/g
)[
0
])
||
null
},
addRow
()
{
this
.
mjftData
.
addQjZdftdzwRequestList
.
push
({
dydytdmj
:
''
,
...
...
@@ -111,7 +114,7 @@
}
sum
+=
parseFloat
(
data
[
i
].
tdsyqsyqmj
)
}
let
num
=
isNaN
(
sum
)
?
''
:
sum
;
let
num
=
isNaN
(
sum
)
?
''
:
sum
.
toFixed
(
3
)
;
self
.
mjftData
.
tdsyqsyqmjhj
=
num
;
return
num
;
},
...
...
@@ -125,7 +128,7 @@
}
sum
+=
parseFloat
(
data
[
i
].
dydytdmj
)
}
let
num
=
isNaN
(
sum
)
?
''
:
sum
;
let
num
=
isNaN
(
sum
)
?
''
:
sum
.
toFixed
(
3
)
;
self
.
mjftData
.
dydytdmjhj
=
num
;
return
num
;
},
...
...
@@ -139,7 +142,7 @@
}
sum
+=
parseFloat
(
data
[
i
].
fttdmj
)
}
let
num
=
isNaN
(
sum
)
?
''
:
sum
;
let
num
=
isNaN
(
sum
)
?
''
:
sum
.
toFixed
(
3
)
;
self
.
mjftData
.
fttdmjhj
=
num
;
return
num
;
},
...
...
@@ -154,6 +157,12 @@
console
.
log
(
"create init..."
)
},
mounted
()
{
// 暂时随机生成 后续从调查表继承过来
this
.
mjftData
.
zdbsm
=
'ZDDM'
+
parseInt
(
Math
.
random
()
*
100
)
this
.
mjftData
.
zdmj
=
(
Math
.
random
()
*
100
).
toFixed
(
3
)
let
zl
=
[
'西安'
,
'咸阳'
,
'雁塔区'
,
'高新区'
,
'未央区'
,
'莲湖区'
,
'临潼区'
]
let
i
=
parseInt
(
Math
.
random
()
*
7
,
10
);
this
.
mjftData
.
tdzl
=
zl
[
i
]
console
.
log
(
"mounted init..."
)
}
}
...
...
Please
register
or
sign in
to post a comment