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
e1f9027f
Commit
e1f9027f
authored
Mar 11, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复暂停作业bug
parent
56227fcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
4 deletions
+25
-4
index.vue
pages/mes/prodReport/index.vue
+25
-4
No files found.
pages/mes/prodReport/index.vue
View file @
e1f9027f
...
@@ -219,10 +219,12 @@
...
@@ -219,10 +219,12 @@
<view
class=
"feedback-card"
style=
"height: 200px"
>
<view
class=
"feedback-card"
style=
"height: 200px"
>
<u-form
label-width=
"120px"
:model=
"stopReasonForm"
:rules=
"rules"
>
<u-form
label-width=
"120px"
:model=
"stopReasonForm"
:rules=
"rules"
>
<u-form-item
label=
"暂停原因"
prop=
"reason"
>
<u-form-item
label=
"暂停原因"
prop=
"reason"
>
<uni-data-select
v-model=
"stopReasonForm.reason"
:localdata=
"exception"
@
change=
"stopReas"
></uni-data-select>
<!--
<uni-data-select
v-model=
"stopReasonForm.reason"
:localdata=
"exception"
@
change=
"stopReas"
></uni-data-select>
-->
</u-form-item>
<uni-data-select
v-model=
"stopReasonForm.reason"
:localdata=
"causeList"
@
change=
"stopCause"
></uni-data-select>
<u-form-item
label=
"暂停描述"
prop=
"desc"
>
</u-form-item>
<uni-data-select
v-model=
"stopReasonForm.desc"
:localdata=
"reasonList"
></uni-data-select>
<u-form-item
label=
"暂停描述"
prop=
"desc"
>
<!--
<uni-data-selec
v-model=
"stopReasonForm.desc"
:localdata=
"reasonList"
type=
“textarea”
></uni-data-select>
-->
<u-input
v-model=
"stopReasonForm.desc"
type=
"textarea"
></u-input>
</u-form-item>
</u-form-item>
</u-form>
</u-form>
</view>
</view>
...
@@ -821,6 +823,7 @@ export default {
...
@@ -821,6 +823,7 @@ export default {
viewSopPicture
:
[],
viewSopPicture
:
[],
viewSop
:
[],
viewSop
:
[],
reasonList
:
[],
reasonList
:
[],
causeList
:
[],
workorderList
:
[],
workorderList
:
[],
materialUsageRecordList
:
[],
materialUsageRecordList
:
[],
materialusagerecordLoading
:
false
,
materialusagerecordLoading
:
false
,
...
@@ -1008,6 +1011,7 @@ userTempVisible: false,
...
@@ -1008,6 +1011,7 @@ userTempVisible: false,
this
.
getTaskList
();
this
.
getTaskList
();
break
;
break
;
case
'StopTask'
:
case
'StopTask'
:
this
.
stopCause
();
this
.
stopReason
=
''
;
this
.
stopReason
=
''
;
this
.
stopReasonVisible
=
true
;
this
.
stopReasonVisible
=
true
;
break
;
break
;
...
@@ -1185,6 +1189,23 @@ userTempVisible: false,
...
@@ -1185,6 +1189,23 @@ userTempVisible: false,
});
});
});
});
},
},
stopCause
()
{
// 查询原因
this
.
$u
.
api
.
abnormal
.
detail
({
pageNum
:
1
,
pageSize
:
10
,
abnormalType
:
'WORK'
})
.
then
((
res
)
=>
{
this
.
causeList
=
res
.
rows
.
map
((
item
)
=>
{
return
{
value
:
item
.
abnormalReason
,
text
:
item
.
abnormalReason
};
});
});
},
stopWorkorder
(
item
)
{
stopWorkorder
(
item
)
{
// 查询原因
// 查询原因
this
.
$u
.
api
this
.
$u
.
api
...
...
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