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
ad30d108
Commit
ad30d108
authored
Aug 17, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.local.topsunit.com/mes/mes-pad
into dev
parents
51770141
7abaee5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
3 deletions
+42
-3
index.vue
pages/mes/prodReport/index.vue
+42
-3
No files found.
pages/mes/prodReport/index.vue
View file @
ad30d108
...
@@ -87,8 +87,10 @@
...
@@ -87,8 +87,10 @@
<u-button
type=
"primary"
@
click=
"commonClick('FinshTask')"
>
完成作业
</u-button>
<u-button
type=
"primary"
@
click=
"commonClick('FinshTask')"
>
完成作业
</u-button>
<!--
<u-button
type=
"primary"
@
click=
"commonClick('KnifeTemp2')"
>
刀模版上下机2
</u-button>
-->
<!--
<u-button
type=
"primary"
@
click=
"commonClick('KnifeTemp2')"
>
刀模版上下机2
</u-button>
-->
<u-button
type=
"primary"
@
click=
"commonClick('MaterialRequest')"
>
补料申请
</u-button>
<u-button
type=
"primary"
@
click=
"commonClick('MaterialRequest')"
v-if=
"!buttonShow || buttonShow.MaterialRequestView === '1'"
>
补料申请
</u-button>
<u-button
type=
"primary"
@
click=
"commonClick('MaterialReturn')"
>
退料申请
</u-button>
<!--
<u-button
type=
"primary"
@
click=
"commonClick('MaterialRequest')"
>
补料申请
</u-button>
-->
<u-button
type=
"primary"
@
click=
"commonClick('MaterialReturn')"
v-if=
"!buttonShow || buttonShow.MaterialReturnView === '1'"
>
退料申请
</u-button>
<!--
<u-button
type=
"primary"
@
click=
"commonClick('MaterialReturn')"
>
退料申请
</u-button>
-->
<u-button
type=
"primary"
@
click=
"commonClick('ViewPpicture')"
>
查看图片
</u-button>
<u-button
type=
"primary"
@
click=
"commonClick('ViewPpicture')"
>
查看图片
</u-button>
<u-button
type=
"warning"
@
click=
"commonClick('abnormal')"
>
异常报告
</u-button>
<u-button
type=
"warning"
@
click=
"commonClick('abnormal')"
>
异常报告
</u-button>
<!--
<u-button
type=
"primary"
@
click=
"commonClick('StockIn')"
>
完工入库申请
</u-button>
-->
<!--
<u-button
type=
"primary"
@
click=
"commonClick('StockIn')"
>
完工入库申请
</u-button>
-->
...
@@ -1786,6 +1788,10 @@ export default {
...
@@ -1786,6 +1788,10 @@ export default {
break
;
break
;
case
'StartTask'
:
case
'StartTask'
:
let
status
=
false
;
let
status
=
false
;
if
(
this
.
tableSelectData
.
length
>
1
){
this
.
$u
.
toast
(
'不允许同时操作多条任务'
);
return
;
}
this
.
tableSelectData
.
forEach
((
item
)
=>
{
this
.
tableSelectData
.
forEach
((
item
)
=>
{
if
(
item
.
status
===
'BEGINNING'
)
{
if
(
item
.
status
===
'BEGINNING'
)
{
status
=
true
;
status
=
true
;
...
@@ -1809,14 +1815,26 @@ export default {
...
@@ -1809,14 +1815,26 @@ export default {
case
'StopTask'
:
case
'StopTask'
:
this
.
stopCause
();
this
.
stopCause
();
this
.
stopReason
=
''
;
this
.
stopReason
=
''
;
if
(
this
.
tableSelectData
.
length
>
1
){
this
.
$u
.
toast
(
'不允许同时操作多条任务'
);
return
;
}
this
.
stopReasonVisible
=
true
;
this
.
stopReasonVisible
=
true
;
break
;
break
;
case
'FinshTask'
:
case
'FinshTask'
:
if
(
this
.
tableSelectData
.
length
>
1
){
this
.
$u
.
toast
(
'不允许同时操作多条任务'
);
return
;
}
this
.
tableSelectData
.
forEach
((
item
)
=>
{
this
.
tableSelectData
.
forEach
((
item
)
=>
{
this
.
changeStatus
(
item
.
taskId
,
item
.
taskWorkunitId
,
'FINISHED'
,
item
.
workunitId
);
this
.
changeStatus
(
item
.
taskId
,
item
.
taskWorkunitId
,
'FINISHED'
,
item
.
workunitId
);
});
});
break
;
break
;
case
'Prod'
:
case
'Prod'
:
if
(
this
.
tableSelectData
.
length
>
1
){
this
.
$u
.
toast
(
'不允许同时操作多条任务'
);
return
;
}
if
(
this
.
tableSelectData
[
0
].
status
===
'PREPARE'
)
{
if
(
this
.
tableSelectData
[
0
].
status
===
'PREPARE'
)
{
this
.
$u
.
toast
(
'工序未开工'
);
this
.
$u
.
toast
(
'工序未开工'
);
return
;
return
;
...
@@ -1876,6 +1894,10 @@ export default {
...
@@ -1876,6 +1894,10 @@ export default {
this
.
jobAssignmentForm
.
workunitName
=
this
.
$refs
.
workunitRef
.
tableSelectData
[
0
].
workunitName
;
this
.
jobAssignmentForm
.
workunitName
=
this
.
$refs
.
workunitRef
.
tableSelectData
[
0
].
workunitName
;
},
},
doEditProd
(){
doEditProd
(){
if
(
this
.
tableSelectData
.
length
>
1
){
this
.
$u
.
toast
(
'不允许同时操作多条任务'
);
return
;
}
// console.log('vuex_workstation', this.$store.state.vuex_workunit)
// 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
().
then
(()
=>
{
this
.
$refs
[
'editFeeding'
].
getList
().
then
(()
=>
{
...
@@ -1898,6 +1920,7 @@ export default {
...
@@ -1898,6 +1920,7 @@ export default {
},
},
async
knifeTempShow
()
{
async
knifeTempShow
()
{
if
(
this
.
tableSelectData
.
length
>
1
)
{
if
(
this
.
tableSelectData
.
length
>
1
)
{
this
.
$u
.
toast
(
'不允许同时操作多条任务'
);
return
;
return
;
}
}
const
params
=
{
const
params
=
{
...
@@ -2858,6 +2881,10 @@ export default {
...
@@ -2858,6 +2881,10 @@ export default {
},
},
doException
()
{
doException
()
{
if
(
this
.
tableSelectData
.
length
>
1
){
this
.
$u
.
toast
(
'不允许同时操作多条任务'
);
return
;
}
this
.
ExceptionForms
=
{
this
.
ExceptionForms
=
{
abnormalType
:
null
,
abnormalType
:
null
,
abnormalReason
:
null
abnormalReason
:
null
...
@@ -3008,7 +3035,11 @@ export default {
...
@@ -3008,7 +3035,11 @@ export default {
});
});
},
},
feedingInspectionShow
()
{
feedingInspectionShow
()
{
this
.
feedingInspectionVisible
=
true
;
if
(
this
.
tableSelectData
.
length
>
1
){
this
.
$u
.
toast
(
'不允许同时操作多条任务'
);
return
;
}
this
.
feedingInspectionVisible
=
true
;
this
.
getPemissionScan
();
this
.
getPemissionScan
();
this
.
feedingInspectionLoadAndScan
();
this
.
feedingInspectionLoadAndScan
();
},
},
...
@@ -3060,6 +3091,10 @@ export default {
...
@@ -3060,6 +3091,10 @@ export default {
});
});
},
},
recoilMaterialShow
()
{
recoilMaterialShow
()
{
if
(
this
.
tableSelectData
.
length
>
1
){
this
.
$u
.
toast
(
'不允许同时操作多条任务'
);
return
;
}
this
.
recoilMaterialVisible
=
true
;
this
.
recoilMaterialVisible
=
true
;
this
.
getPemissionScan
();
this
.
getPemissionScan
();
this
.
recoilMaterialLoadAndScan
();
this
.
recoilMaterialLoadAndScan
();
...
@@ -3201,6 +3236,10 @@ export default {
...
@@ -3201,6 +3236,10 @@ export default {
});
});
},
},
viewiPctureShow
()
{
viewiPctureShow
()
{
if
(
this
.
tableSelectData
.
length
>
1
){
this
.
$u
.
toast
(
'不允许同时操作多条任务'
);
return
;
}
this
.
materialReturn
=
true
;
this
.
materialReturn
=
true
;
// this.viewSopPicture = this.tableSelectData[0];
// this.viewSopPicture = this.tableSelectData[0];
const
taskInfo
=
this
.
tableSelectData
[
0
];
const
taskInfo
=
this
.
tableSelectData
[
0
];
...
...
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