Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mes
mes-ui
Commits
71341c86
Commit
71341c86
authored
May 16, 2025
by
tanjunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 日期选择器增加限制
parent
463905a2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
index.vue
src/views/mes/pro/scheduleList/index.vue
+15
-4
commandList.vue
src/views/mes/pro/workorder/commandList.vue
+9
-0
No files found.
src/views/mes/pro/scheduleList/index.vue
View file @
71341c86
...
...
@@ -290,6 +290,7 @@
value-format=
"yyyy-MM-dd HH:mm:ss"
format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"请选择计划开始时间"
:picker-options=
"pickerOptions"
@
focus=
"writeRow(scope.row)"
@
change=
"editTime(scope.row, 'start')"
>
...
...
@@ -315,6 +316,7 @@
value-format=
"yyyy-MM-dd HH:mm:ss"
format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"请选择计划结束时间"
:picker-options=
"pickerOptions"
@
focus=
"writeRow(scope.row)"
@
change=
"editTime(scope.row, 'end')"
>
...
...
@@ -730,8 +732,15 @@ export default {
// 表单校验
rules
:
{
},
timestamp
:
0
};
timestamp
:
0
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
<
Date
.
now
()
-
8.64e7
},
selectableRange
:
new
Date
().
getHours
()
+
':'
+
(
new
Date
().
getMinutes
()
+
1
)
+
':00'
+
' - 23:59:59'
,
}
}
},
created
()
{
// this.getList();
...
...
@@ -993,7 +1002,9 @@ export default {
console
.
log
(
'duration'
,
duration
)
row
.
scheduleStartDate
=
dayjs
(
row
.
scheduleEndDate
).
add
(
duration
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
this
.
submitForm
(
row
)
console
.
log
(
scheduleStartDate
)
console
.
log
(
scheduleEndDate
)
// this.submitForm(row)
},
/** 搜索按钮操作 */
handleWorkunitQuery
()
{
...
...
src/views/mes/pro/workorder/commandList.vue
View file @
71341c86
...
...
@@ -36,6 +36,7 @@
style=
"width: 100%;"
placeholder=
"请选择计划开始时间"
format =
"yyyy-MM-dd HH:mm:ss"
:picker-options=
"pickerOptions"
value-format=
"yyyy-MM-dd HH:mm:ss"
>
</el-date-picker>
</el-form-item>
...
...
@@ -51,6 +52,7 @@
style=
"width: 100%;"
placeholder=
"请选择计划结束时间"
format =
"yyyy-MM-dd HH:mm:ss"
:picker-options=
"pickerOptions"
value-format=
"yyyy-MM-dd HH:mm:ss"
>
</el-date-picker>
</el-form-item>
...
...
@@ -110,6 +112,13 @@ export default {
}
]
},
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
<
Date
.
now
()
-
8.64e7
},
selectableRange
:
new
Date
().
getHours
()
+
':'
+
(
new
Date
().
getMinutes
()
+
1
)
+
':00'
+
' - 23:59:59'
,
}
};
},
created
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment