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
9dc392aa
Commit
9dc392aa
authored
Aug 13, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退料申请新增一个退料原因
parent
03fff270
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
index.vue
pages/mes/prodReport/index.vue
+34
-2
No files found.
pages/mes/prodReport/index.vue
View file @
9dc392aa
...
...
@@ -790,6 +790,12 @@
:localdata=
"curTaskInfo.workorderOption"
></uni-data-select>
</u-form-item>
</u-col>
<u-col
span=
"4"
>
<u-form-item
label=
"退料原因"
prop=
"returnReason"
>
<uni-data-select
v-model=
"curTaskInfo.returnReason"
:localdata=
"reasonReturnList"
@
change=
"pickingCauses"
></uni-data-select>
</u-form-item>
</u-col>
</u-row>
</u-form>
...
...
@@ -1170,7 +1176,8 @@ export default {
depletionMethod
:
1
},
curTaskInfo
:
{
pickingReason
:
null
pickingReason
:
null
,
returnReason
:
null
,
},
buttonShow
:
null
,
currentType
:
0
,
...
...
@@ -1329,6 +1336,7 @@ export default {
viewSop
:
[],
causeList
:
[],
reasonList
:
[],
reasonReturnList
:
[],
workorderList
:
[],
materialUsageRecordList
:
[],
materialusagerecordLoading
:
false
,
...
...
@@ -1743,6 +1751,7 @@ export default {
break
;
case
'MaterialReturn'
:
this
.
materialReturnShow
();
this
.
pickingCauses
();
break
;
case
'StockIn'
:
this
.
stockInShow
();
...
...
@@ -2020,6 +2029,23 @@ export default {
};
});
});
},
pickingCauses
()
{
// 查询原因
this
.
$u
.
api
.
abnormal
.
detail
({
pageNum
:
1
,
pageSize
:
10
,
abnormalType
:
'RETURN_REASON'
})
.
then
((
res
)
=>
{
this
.
reasonReturnList
=
res
.
rows
.
map
((
item
)
=>
{
return
{
value
:
item
.
abnormalReason
,
text
:
item
.
abnormalReason
};
});
});
},
async
getWorkorderWithSizeAndDirective
(
item
,
index
)
{
...
...
@@ -3085,6 +3111,11 @@ export default {
});
},
async
materialReturnSave
()
{
if
(
!
this
.
curTaskInfo
.
returnReason
)
{
this
.
materialReturnVisible
=
true
;
this
.
$u
.
toast
(
'原因不能为空!'
);
return
;
}
await
this
.
formatDateRandom
()
let
a
=
null
;
const
taskInfo
=
this
.
tableSelectData
[
0
];
...
...
@@ -3099,7 +3130,8 @@ export default {
batchNo
:
s
.
batchCode
,
packNo
:
s
.
packNo
,
applyNo
:
this
.
applyNo
,
isQualified
:
s
.
isQualified
isQualified
:
s
.
isQualified
,
returnReason
:
this
.
curTaskInfo
.
returnReason
,
};
a
=
a
+
s
.
applyNum
;
if
(
this
.
materialReturnFormData
.
workorderCode
)
{
...
...
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