Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
45b268ff
Commit
45b268ff
authored
Jul 12, 2022
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
必填校验
parent
66f5dc48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
index.vue
src/views/ecw/box/index.vue
+21
-1
No files found.
src/views/ecw/box/index.vue
View file @
45b268ff
...
@@ -223,7 +223,12 @@
...
@@ -223,7 +223,12 @@
// 表单参数
// 表单参数
form
:
{},
form
:
{},
// 表单校验
// 表单校验
rules
:
{}
rules
:
{
transportType
:
[{
required
:
true
,
message
:
"
运输方式不能为空
"
,
trigger
:
"
blur
"
}],
startWarehouseId
:
[{
required
:
true
,
message
:
"
始发地不能为空
"
,
trigger
:
"
blur
"
}],
destWarehouseId
:
[{
required
:
true
,
message
:
"
目的地不能为空
"
,
trigger
:
"
blur
"
}],
}
};
};
},
},
computed
:
{
computed
:
{
...
@@ -342,6 +347,21 @@
...
@@ -342,6 +347,21 @@
if
(
!
valid
)
{
if
(
!
valid
)
{
return
;
return
;
}
}
if
(
this
.
form
.
transportType
!=
3
)
{
if
(
!
this
.
form
.
cabinetId
)
{
this
.
$message
.
error
(
'
柜型不能为空
'
);
return
;
}
}
if
(
this
.
form
.
transportType
==
3
||
this
.
form
.
transportType
==
4
)
{
if
(
!
this
.
form
.
shippingChannelId
)
{
this
.
$message
.
error
(
'
出货渠道不能为空
'
);
return
;
}
}
// 修改的提交
// 修改的提交
if
(
this
.
form
.
id
!=
null
)
{
if
(
this
.
form
.
id
!=
null
)
{
updatebox
(
this
.
form
).
then
(
response
=>
{
updatebox
(
this
.
form
).
then
(
response
=>
{
...
...
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