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
416303e4
Commit
416303e4
authored
Jun 28, 2024
by
hubaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a2f38d94
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
214 additions
and
77 deletions
+214
-77
incomeWmsBox.vue
src/views/template/incomeWmsBox.vue
+21
-16
templateFirst.vue
src/views/template/templateFirst.vue
+193
-61
No files found.
src/views/template/incomeWmsBox.vue
View file @
416303e4
...
...
@@ -316,7 +316,8 @@ export default {
rules
:
{
},
typeList
:
[],
typelistTemp
:
[]
typelistTemp
:
[],
temp
:
[]
}
},
computed
:
{
...
...
@@ -438,19 +439,15 @@ export default {
submitForm
:
function
()
{
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
businessId
!==
undefined
)
{
updateIncomeWmsBox
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
'修改成功'
)
this
.
open
=
false
this
.
getList
()
})
}
else
{
addIncomeWmsBox
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
this
.
getList
()
})
const
data
=
{
labelId
:
this
.
form
.
businessId
}
console
.
log
(
this
.
form
)
updateIncomeWmsBox
(
data
).
then
(
response
=>
{
this
.
msgSuccess
(
'修改成功'
)
this
.
open
=
false
this
.
getList
()
})
}
})
},
...
...
@@ -477,11 +474,19 @@ export default {
listIncomeWmsLabel
().
then
(
response
=>
{
this
.
typelistTemp
=
response
.
rows
this
.
typeList
=
[]
console
.
log
(
row
.
pn
)
this
.
typelistTemp
.
forEach
(
item
=>
{
const
type
=
item
.
mac
+
' '
+
item
.
location
this
.
typeList
.
push
(
type
)
if
(
item
.
pn
===
row
.
pn
)
{
this
.
form
=
item
const
type
=
item
.
mac
+
' '
+
item
.
location
const
abc
=
{
businessId
:
item
.
businessId
,
location
:
item
.
location
}
this
.
typeList
.
push
(
type
)
this
.
temp
.
push
(
abc
)
}
})
console
.
log
(
'typeList'
+
this
.
typeList
)
this
.
open
=
true
this
.
title
=
'修改库存管理'
})
...
...
src/views/template/templateFirst.vue
View file @
416303e4
This diff is collapsed.
Click to expand it.
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