Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1fc1bd4f
authored
Aug 13, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
98595328
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
components/Insurance/Insurance.vue
components/Insurance/components/InsuranceTable.vue
components/Insurance/Insurance.vue
View file @
1fc1bd4
...
@@ -165,11 +165,13 @@ export default {
...
@@ -165,11 +165,13 @@ export default {
this
.
focusIndex
=
-
1
this
.
focusIndex
=
-
1
if
(
e
?.
currentTarget
&&
e
?.
target
)
{
if
(
e
?.
currentTarget
&&
e
?.
target
)
{
const
{
key
}
=
e
.
currentTarget
.
dataset
const
{
key
}
=
e
.
currentTarget
.
dataset
if
(
e
.
target
.
value
.
length
==
0
)
return
if
(
key
==
'newCarFare'
)
{
if
(
key
==
'newCarFare'
)
{
let
value
=
Number
(
e
.
target
.
value
)
>=
9999999
?
9999999
:
e
.
target
.
value
let
value
=
Number
(
e
.
target
.
value
)
>=
9999999
?
9999999
:
e
.
target
.
value
// 判断是否为整数
// 判断是否为整数
if
(
!
Number
.
isInteger
(
value
))
value
=
String
(
value
).
replace
(
/
(\d
*
\.?\d{0,2})\d
*/
,
'$1'
)
if
(
!
Number
.
isInteger
(
value
))
value
=
String
(
value
).
replace
(
/
(\d
*
\.?\d{0,2})\d
*/
,
'$1'
)
this
.
customerInfo
[
key
]
=
Number
(
value
).
toFixed
(
2
)
?
value
>=
0
?
value
:
''
:
''
value
=
Number
(
String
(
value
).
replace
(
/^0+/
,
''
))
this
.
customerInfo
[
key
]
=
Number
(
value
).
toFixed
(
2
)
?
Number
(
value
).
toFixed
(
2
)
>=
0
?
value
:
''
:
''
this
.
inputCustomer
()
this
.
inputCustomer
()
}
}
}
}
...
...
components/Insurance/components/InsuranceTable.vue
View file @
1fc1bd4
...
@@ -176,9 +176,11 @@ export default {
...
@@ -176,9 +176,11 @@ export default {
handleInput
(
event
)
{
handleInput
(
event
)
{
let
value
=
event
.
target
.
value
,
let
value
=
event
.
target
.
value
,
{
index
}
=
event
.
currentTarget
.
dataset
{
index
}
=
event
.
currentTarget
.
dataset
if
(
value
.
length
==
0
)
return
value
=
Number
(
value
)
>
999999
?
999999
:
value
value
=
Number
(
value
)
>
999999
?
999999
:
value
if
(
!
Number
.
isInteger
(
value
))
value
=
String
(
value
).
replace
(
/
(\d
*
\.?\d{0,2})\d
*/
,
'$1'
)
if
(
!
Number
.
isInteger
(
value
))
value
=
String
(
value
).
replace
(
/
(\d
*
\.?\d{0,2})\d
*/
,
'$1'
)
this
.
insuranceList
[
index
].
cost
=
Number
(
value
).
toFixed
(
2
)
?
value
>=
0
?
value
:
''
:
''
value
=
Number
(
String
(
value
).
replace
(
/^0+/
,
''
))
this
.
insuranceList
[
index
].
cost
=
Number
(
value
).
toFixed
(
2
)
?
Number
(
value
).
toFixed
(
2
)
>=
0
?
value
:
''
:
''
},
},
defaultBlock
(
item
)
{
defaultBlock
(
item
)
{
return
item
.
main
==
'交强险'
?
(
this
.
isPreview
?
'has-default'
:
item
.
show
?
'has-default'
:
''
)
:
''
return
item
.
main
==
'交强险'
?
(
this
.
isPreview
?
'has-default'
:
item
.
show
?
'has-default'
:
''
)
:
''
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment