Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
Overview
Overview
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
wangweidong
patzn-cloud-web-back-soil
Commits
fd22911b
Commit
fd22911b
authored
Jan 12, 2021
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了入库
parent
eaed550d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
+14
-1
Instock.vue
pages/soil-alone-sample-instock/Instock.vue
+14
-1
No files found.
pages/soil-alone-sample-instock/Instock.vue
View file @
fd22911b
...
@@ -51,6 +51,13 @@ export default {
...
@@ -51,6 +51,13 @@ export default {
storageSelect
storageSelect
},
},
data
()
{
data
()
{
const
valistorehouse
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
formObj
.
storehouse
===
''
)
{
callback
(
new
Error
(
'内容不能为空'
))
}
else
{
callback
()
}
}
return
{
return
{
formId
:
''
,
formId
:
''
,
id
:
''
,
id
:
''
,
...
@@ -99,7 +106,12 @@ export default {
...
@@ -99,7 +106,12 @@ export default {
],
],
ruleValidate
:
{
ruleValidate
:
{
storehouse
:
[
storehouse
:
[
{
required
:
true
,
message
:
'库房号不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'库房号不能为空'
,
trigger
:
'blur'
,
validator
:
valistorehouse
}
]
]
},
},
showEditModal
:
false
,
showEditModal
:
false
,
...
@@ -183,6 +195,7 @@ export default {
...
@@ -183,6 +195,7 @@ export default {
console
.
log
(
data
)
console
.
log
(
data
)
data
.
ids
=
this
.
id
data
.
ids
=
this
.
id
this
.
_instockSubmit
(
data
)
this
.
_instockSubmit
(
data
)
this
.
_hideLoading
()
}
else
{
}
else
{
this
.
$Message
.
error
(
'表单验证失败!'
)
this
.
$Message
.
error
(
'表单验证失败!'
)
this
.
_hideLoading
()
this
.
_hideLoading
()
...
...
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