Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jijin
/
dance-pc
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
d1ddb010
authored
2025-06-13 11:06:25 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
车辆下单
1 parent
7a02ddee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
src/viewsPc/booking/carOrder.vue
src/viewsPc/booking/carOrder.vue
View file @
d1ddb01
...
...
@@ -28,10 +28,12 @@
</el-form-item>
<el-form-item
:label=
"language==0?'用车日期':'Date'"
prop=
"date1"
>
<el-date-picker
v-model=
"form.date1"
:disabled-date=
"disabledDate"
v-model=
"form.date1"
:disabled-date=
"disabledDate"
:placeholder=
"language==0?'选择日期':'Select date'"
format=
"YYYY-MM-DD"
type=
"date"
value-format=
"YYYY-MM-DD"
@
focus=
"handelTime"
/>
</el-form-item>
<el-form-item
:label=
"language==0?'用车时间':'Time'"
prop=
"lvcId"
>
...
...
@@ -220,12 +222,16 @@ function initDays() {
getBaseInfoByActiveId
(
route
.
params
.
cptId
).
then
(
res
=>
{
lform
.
value
=
res
.
data
form
.
value
.
date1
=
dayjs
(
lform
.
value
.
carStart
).
format
(
'YYYY-MM-DD'
)
//
form.value.date1 = dayjs(lform.value.carStart).format('YYYY-MM-DD')
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
}
function
handelTime
()
{
if
(
!
form
.
value
.
date1
)
form
.
value
.
date1
=
dayjs
(
lform
.
value
.
carStart
).
format
(
'YYYY-MM-DD'
)
}
function
disabledDate
(
date
)
{
if
(
lform
.
value
.
carStart
)
{
return
(
date
.
getTime
()
<
dayjs
(
lform
.
value
.
carStart
).
valueOf
())
||
(
date
.
getTime
()
>
dayjs
(
lform
.
value
.
carEnd
).
valueOf
())
...
...
Write
Preview
Styling with
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