Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
Project
Project
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
ximai
mes-pad
Commits
27e35b8e
Commit
27e35b8e
authored
Mar 07, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复领料和反冲料一进来就提示保存成功的提示
parent
1bff5e0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
index.vue
pages/mes/prodReport/index.vue
+10
-6
No files found.
pages/mes/prodReport/index.vue
View file @
27e35b8e
...
...
@@ -1385,13 +1385,15 @@ export default {
this
.
feedingInspectionVisible
=
true
;
this
.
feedingInspectionLoadAndScan
();
},
feedingInspectionLoadAndScan
()
{
feedingInspectionLoadAndScan
(
bool
)
{
const
t
=
this
;
const
taskInfo
=
this
.
tableSelectData
[
0
];
this
.
$u
.
api
.
listFeedingInspection
({
taskId
:
taskInfo
.
taskId
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
t
.
feedingInspectionList
=
res
.
data
;
t
.
$u
.
toast
(
'保存成功'
);
if
(
bool
)
{
t
.
$u
.
toast
(
'保存成功'
);
}
let
timer
=
setTimeout
(()
=>
{
t
.
feedingInspectionScan
();
},
1000
);
...
...
@@ -1404,7 +1406,7 @@ export default {
success
:
function
(
res
)
{
t
.
$u
.
api
.
validateFeedingInspection
({
plnr
:
res
.
result
}).
then
((
res2
)
=>
{
if
(
res2
.
code
===
200
)
{
t
.
feedingInspectionLoadAndScan
();
t
.
feedingInspectionLoadAndScan
(
true
);
}
});
}
...
...
@@ -1428,13 +1430,15 @@ export default {
this
.
recoilMaterialVisible
=
true
;
this
.
recoilMaterialLoadAndScan
();
},
recoilMaterialLoadAndScan
()
{
recoilMaterialLoadAndScan
(
bool
)
{
const
t
=
this
;
const
taskInfo
=
this
.
tableSelectData
[
0
];
this
.
$u
.
api
.
recoilMaterialList
({
taskId
:
taskInfo
.
taskId
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
t
.
recoilMaterialList
=
res
.
data
;
t
.
$u
.
toast
(
'保存成功'
);
if
(
bool
)
{
t
.
$u
.
toast
(
'保存成功'
);
}
let
timer
=
setTimeout
(()
=>
{
t
.
recoilMaterialScan
();
},
1000
);
...
...
@@ -1448,7 +1452,7 @@ export default {
success
:
function
(
res
)
{
t
.
$u
.
api
.
addRecoilMaterial
({
taskId
:
taskInfo
.
taskId
,
plnr
:
res
.
result
}).
then
((
res2
)
=>
{
if
(
res2
.
code
===
200
)
{
t
.
recoilMaterialLoadAndScan
();
t
.
recoilMaterialLoadAndScan
(
true
);
}
});
}
...
...
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