Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_pda_Web
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_pda_Web
Commits
7bdc4c54
Commit
7bdc4c54
authored
Aug 25, 2024
by
小费同学阿
💬
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/template_pda_vue' into template_pda_vue
parents
4a86b426
2a583832
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
14 deletions
+33
-14
inventory.vue
src/views/setup/inventory.vue
+33
-14
No files found.
src/views/setup/inventory.vue
View file @
7bdc4c54
...
...
@@ -165,6 +165,7 @@
<
script
>
import
{
getInfo
}
from
'@/api/login'
import
{
delPd
,
getDelList
,
getDelListCount
,
getDicts
,
getPdList
,
getViewList
,
updatePd
}
from
'@/api/materialInventory'
import
{
playAudio
,
successAudio
}
from
'@/utils/common'
export
default
{
name
:
'Inventory'
,
...
...
@@ -332,9 +333,16 @@ export default {
}
queryParams
.
pallet
=
this
.
buttonValue
(
this
.
selectedButton
)
getDelList
(
queryParams
).
then
(
response
=>
{
if
(
response
.
data
.
total
===
0
)
{
this
.
$message
({
message
:
'当前无记录'
,
type
:
'error'
})
}
else
{
this
.
queryPdDel
.
PdDelList
=
response
.
data
.
records
this
.
totalPd
[
queryParams
.
pallet
]
=
response
.
data
.
total
this
.
total
=
response
.
data
.
total
}
})
},
getList
()
{
...
...
@@ -375,7 +383,14 @@ export default {
this
.
valuePd
=
'bacc-red'
this
.
queryForm
.
value
=
''
updatePd
(
obj
).
then
(
res
=>
{
this
.
valuePd
=
res
.
code
===
200
?
'bacc-green'
:
'bacc-red'
// this.valuePd = res.code === 200 ? 'bacc-green' : 'bacc-red'
if
(
res
.
code
===
200
)
{
successAudio
(
true
)
this
.
valuePd
=
'bacc-green'
}
else
{
playAudio
(
true
)
this
.
valuePd
=
'bacc-red'
}
this
.
getList
()
})
this
.
move
()
...
...
@@ -395,7 +410,10 @@ export default {
type
:
'warning'
}).
then
(
function
()
{
return
delPd
(
queryParams
)
}).
then
(()
=>
{
}).
then
((
res
)
=>
{
if
(
res
.
code
===
500
)
{
return
}
else
{
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
...
...
@@ -405,6 +423,7 @@ export default {
this
.
getList
()
this
.
totalPd
=
[]
this
.
move
()
}
})
},
rowClassName
({
row
})
{
...
...
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