Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
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
胡宝山
template_vue
Commits
a7a34648
Commit
a7a34648
authored
Sep 21, 2023
by
shifangwuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
9/21(时间格式已经解决)
parent
044ffa3c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
index.vue
src/views/production/gfual/index.vue
+18
-12
No files found.
src/views/production/gfual/index.vue
View file @
a7a34648
...
@@ -327,8 +327,12 @@ export default {
...
@@ -327,8 +327,12 @@ export default {
this
.
form
.
jltype
=
parts
[
0
]
||
''
this
.
form
.
jltype
=
parts
[
0
]
||
''
this
.
form
.
jllot
=
parts
[
1
]
||
''
this
.
form
.
jllot
=
parts
[
1
]
||
''
//
验证并格式化 jlbzq
//
获取 jlbzqPart
const
jlbzqPart
=
parts
[
2
]
||
''
const
jlbzqPart
=
parts
[
2
]
||
''
// 检查 jlbzqPart 是否有数据
if
(
jlbzqPart
.
trim
()
!==
''
)
{
// 验证并格式化 jlbzq
const
jlbzqRegex
=
/^
\d{4}
-
\d{2}
-
\d{2}
$/
// 正则表达式用于验证 'yyyy-mm-dd' 格式
const
jlbzqRegex
=
/^
\d{4}
-
\d{2}
-
\d{2}
$/
// 正则表达式用于验证 'yyyy-mm-dd' 格式
if
(
jlbzqRegex
.
test
(
jlbzqPart
))
{
if
(
jlbzqRegex
.
test
(
jlbzqPart
))
{
this
.
form
.
jlbzq
=
jlbzqPart
this
.
form
.
jlbzq
=
jlbzqPart
...
@@ -341,10 +345,12 @@ export default {
...
@@ -341,10 +345,12 @@ export default {
type
:
'error'
type
:
'error'
})
})
}
}
}
},
},
immediate
:
true
// 立即执行一次以处理初始值
immediate
:
true
// 立即执行一次以处理初始值
}
}
},
},
mounted
()
{
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
...
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