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 a6fd67d4
authored
Oct 06, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.0.0-1014' of
http://192.168.3.233:8090/glsx/gl_tape
into SAAS+V5.0.0-1014
2 parents
b58e5c7b
851dbac8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
12 deletions
pages/usedCar/tool/components/DailyReport.vue
pages/usedCar/tool/components/DailyReport.vue
View file @
a6fd67d
...
...
@@ -11,7 +11,10 @@
<view
class=
"repoet-box"
>
<template
v-if=
"loadComplete"
>
<view
:class=
"['box',
{'hide-box':!isDateWithin7Days
&&
!orderObj.id}]">
<view
:class=
"['box',
{'hide-box':!isDateWithin7Days
&&
!orderObj.id}]"
:key="repoetKey"
>
<view
class=
"sub-title"
>
二手车日报
</view>
<template
v-for=
"(i,index) in reportObject"
>
...
...
@@ -116,6 +119,7 @@ export default {
name
:
'DailyReport'
,
data
()
{
return
{
repoetKey
:
Date
.
now
(),
to
:
''
,
dateKey
:
{},
loadComplete
:
false
,
...
...
@@ -265,26 +269,28 @@ export default {
uni
.
hideLoading
()
this
.
orderObj
=
orderObj
this
.
loadComplete
=
true
this
.
repoetKey
=
Date
.
now
()
}
else
{
delete
orderObj
.
id
delete
orderObj
.
orderQuantity
delete
orderObj
.
deliveryQuantity
orderObj
.
orderQuantity
=
''
orderObj
.
deliveryQuantity
=
''
this
.
orderObj
=
orderObj
this
.
loadComplete
=
true
this
.
isFilled
=
false
this
.
repoetKey
=
Date
.
now
()
}
},
handleBlur
(
e
,
i
)
{
let
{
value
}
=
e
.
detail
let
{
value
}
=
e
.
detail
,
key
=
i
.
value
if
(
value
)
{
let
key
=
i
.
value
,
numbers
=
value
.
match
(
/
\d
+/g
)
let
numbers
=
value
.
match
(
/
\d
+/g
)
numbers
=
numbers
?
numbers
.
join
(
''
)
:
''
if
(
numbers
.
length
>
1
)
numbers
=
numbers
.
replace
(
/^0+/
,
''
)
this
.
orderObj
[
key
]
=
Math
.
min
(
Math
.
max
(
Math
.
floor
(
Number
(
numbers
)),
0
),
99
).
toString
()
this
.
dateKey
[
key
]
=
Date
.
now
()
}
}
else
this
.
orderObj
[
key
]
=
''
this
.
dateKey
[
key
]
=
Date
.
now
()
},
isNotEmpty
(
value
)
{
return
(
...
...
@@ -305,11 +311,11 @@ export default {
try
{
let
{
orderObj
,
currentDate
}
=
this
,
apiName
=
'addCarDailyReport'
if
(
orderObj
.
orderQuantity
==
null
)
throw
{
if
(
orderObj
.
orderQuantity
==
null
||
orderObj
.
orderQuantity
==
''
)
throw
{
message
:
'新车下订'
,
refId
:
'orderQuantity'
}
if
(
orderObj
.
deliveryQuantity
==
null
)
throw
{
if
(
orderObj
.
deliveryQuantity
==
null
||
orderObj
.
deliveryQuantity
==
''
)
throw
{
message
:
'新车交付'
,
refId
:
'deliveryQuantity'
}
...
...
@@ -420,7 +426,6 @@ export default {
justify-content
:
flex-end
;
font-size
:
toRpx
(
28
);
.unit
{
margin-left
:
toRpx
(
16
);
}
.input
,
...
...
@@ -456,7 +461,7 @@ export default {
border-bottom
:
none
;
}
}
.hide-box
{
.hide-box
{
opacity
:
0
;
}
.btn-box
{
...
...
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