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
f65e8a50
Commit
f65e8a50
authored
Aug 01, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
把 taskWorkunitId 这个查询条件去掉, 作业端报工修改 不需要选择任务
parent
20277059
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
+8
-12
editFeeding.vue
pages/mes/prodReport/components/editFeeding.vue
+3
-6
index.vue
pages/mes/prodReport/index.vue
+5
-6
No files found.
pages/mes/prodReport/components/editFeeding.vue
View file @
f65e8a50
...
@@ -206,9 +206,7 @@ export default {
...
@@ -206,9 +206,7 @@ export default {
total
:
0
,
total
:
0
,
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
taskWorkunitId
:
null
,
workunitId
:
null
},
},
title
:
''
,
title
:
''
,
open
:
false
,
open
:
false
,
...
@@ -295,9 +293,8 @@ export default {
...
@@ -295,9 +293,8 @@ export default {
this
.
queryParams
.
pageNum
=
params
.
current
;
this
.
queryParams
.
pageNum
=
params
.
current
;
this
.
getList
()
// 点击的时候去请求查询列表
this
.
getList
()
// 点击的时候去请求查询列表
},
},
getList
(
row
)
{
getList
()
{
if
(
row
&&
row
.
workunitId
)
this
.
queryParams
.
workunitId
=
row
.
workunitId
if
(
this
.
$store
.
state
&&
this
.
$store
.
state
.
vuex_workunit
)
this
.
queryParams
.
workunitId
=
this
.
$store
.
state
.
vuex_workunit
.
workunitId
if
(
row
&&
row
.
taskWorkunitId
)
this
.
queryParams
.
taskWorkunitId
=
row
.
taskWorkunitId
const
params
=
{
const
params
=
{
...
this
.
queryParams
,
...
this
.
queryParams
,
createStartTime
:
dayjs
().
subtract
(
5
,
'minute'
).
format
(
'YYYY-MM-DD HH:mm:ss'
),
createStartTime
:
dayjs
().
subtract
(
5
,
'minute'
).
format
(
'YYYY-MM-DD HH:mm:ss'
),
...
...
pages/mes/prodReport/index.vue
View file @
f65e8a50
...
@@ -1607,7 +1607,7 @@ export default {
...
@@ -1607,7 +1607,7 @@ export default {
}
}
},
},
commonClick
(
oper
)
{
commonClick
(
oper
)
{
if
([
'Refresh'
,
'MaterialUsageRecord'
].
indexOf
(
oper
)
===
-
1
&&
this
.
tableSelectData
.
length
===
0
)
{
if
([
'Refresh'
,
'MaterialUsageRecord'
,
'editProd'
].
indexOf
(
oper
)
===
-
1
&&
this
.
tableSelectData
.
length
===
0
)
{
this
.
$u
.
toast
(
'请选择工作任务!'
);
this
.
$u
.
toast
(
'请选择工作任务!'
);
return
;
return
;
}
}
...
@@ -1655,10 +1655,6 @@ export default {
...
@@ -1655,10 +1655,6 @@ export default {
this
.
doFeedback
();
this
.
doFeedback
();
break
;
break
;
case
'editProd'
:
case
'editProd'
:
if
(
this
.
tableSelectData
[
0
].
status
===
'PREPARE'
)
{
this
.
$u
.
toast
(
'工序未开工'
);
return
;
}
this
.
doEditProd
();
this
.
doEditProd
();
break
;
break
;
case
'MaterialUsageRecord'
:
case
'MaterialUsageRecord'
:
...
@@ -1710,8 +1706,9 @@ export default {
...
@@ -1710,8 +1706,9 @@ export default {
this
.
jobAssignmentForm
.
workunitName
=
this
.
$refs
.
workunitRef
.
tableSelectData
[
0
].
workunitName
;
this
.
jobAssignmentForm
.
workunitName
=
this
.
$refs
.
workunitRef
.
tableSelectData
[
0
].
workunitName
;
},
},
doEditProd
(){
doEditProd
(){
// console.log('vuex_workstation', this.$store.state.vuex_workunit)
const
datas
=
Object
.
assign
({},
this
.
tableSelectData
[
0
]);
const
datas
=
Object
.
assign
({},
this
.
tableSelectData
[
0
]);
this
.
$refs
[
'editFeeding'
].
getList
(
datas
).
then
(()
=>
{
this
.
$refs
[
'editFeeding'
].
getList
().
then
(()
=>
{
this
.
editFeedingVisible
=
true
this
.
editFeedingVisible
=
true
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
$u
.
toast
(
'修改报工出现问题'
)
this
.
$u
.
toast
(
'修改报工出现问题'
)
...
@@ -2412,6 +2409,7 @@ export default {
...
@@ -2412,6 +2409,7 @@ export default {
name
:
'指令列表'
name
:
'指令列表'
}
}
];
];
row
.
tableOrderData
.
push
({
reportQuantity
:
0
,
netWeight
:
0
})
}
else
{
}
else
{
row
.
tableDirectiveData
=
[];
row
.
tableDirectiveData
=
[];
}
}
...
@@ -2427,6 +2425,7 @@ export default {
...
@@ -2427,6 +2425,7 @@ export default {
name
:
'报工列表'
name
:
'报工列表'
}
}
];
];
row
.
tableOrderData
.
push
({
reportQuantity
:
0
,
netWeight
:
0
})
}
else
{
}
else
{
row
.
tableOrderData
=
[];
row
.
tableOrderData
=
[];
}
}
...
...
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