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
9413b701
Commit
9413b701
authored
Aug 01, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产报工
parent
f65e8a50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
21 deletions
+37
-21
index.vue
pages/mes/prodReport/index.vue
+37
-21
No files found.
pages/mes/prodReport/index.vue
View file @
9413b701
...
@@ -317,21 +317,21 @@
...
@@ -317,21 +317,21 @@
</u-col>
</u-col>
</u-row>
</u-row>
<u-row>
<u-row>
<u-col
:span=
"
feedback.taskType&&feedback.taskType===3 ? 6: 4
"
>
<u-col
:span=
"
6
"
>
<u-form-item
:label=
"feedback.taskType&&feedback.taskType===3 ? '委外数量:' : '
报工总数量
:'"
prop=
"quantity"
>
<u-form-item
:label=
"feedback.taskType&&feedback.taskType===3 ? '委外数量:' : '
已报工数
:'"
prop=
"quantity"
>
{{ feedback.taskType
&&
feedback.taskType===3 ? (feedback.quantityQualify) : (feedback.
arrange
FeedbackSum) }}
{{ feedback.taskType
&&
feedback.taskType===3 ? (feedback.quantityQualify) : (feedback.
workorder
FeedbackSum) }}
<!-- {{ computedQuantityV2 }} -->
<!-- {{ computedQuantityV2 }} -->
</u-form-item>
</u-form-item>
</u-col>
</u-col>
<u-col
:span=
"
4
"
v-if=
"!feedback.taskType || feedback.taskType!==3"
>
<u-col
:span=
"
6
"
v-if=
"!feedback.taskType || feedback.taskType!==3"
>
<u-form-item
label=
"
工单已
报工数:"
>
<u-form-item
label=
"
未
报工数:"
>
{{ feedback.workorder
F
eedbackSum }}
{{ feedback.workorder
Unf
eedbackSum }}
<!-- {{ computedQuantityV2 }} -->
<!-- {{ computedQuantityV2 }} -->
</u-form-item>
</u-form-item>
</u-col>
</u-col>
<u-col
:span=
"
feedback.taskType&&feedback.taskType===3 ? 6: 4"
>
<u-col
:span=
"
6"
v-else
>
<u-form-item
label=
"报工人:"
prop=
"nickName"
>
<u-form-item
label=
"报工人:"
prop=
"nickName"
>
<u-input
v-model=
"feedback.nickName"
></u-input>
<u-input
v-model=
"feedback.nickName"
></u-input>
<u-button
@
tap=
"getCode(feedback)"
type=
"success"
size=
"mini"
>
报工人员
</u-button>
<u-button
@
tap=
"getCode(feedback)"
type=
"success"
size=
"mini"
>
报工人员
</u-button>
...
@@ -340,19 +340,13 @@
...
@@ -340,19 +340,13 @@
</u-row>
</u-row>
<u-row>
<u-row>
<u-col
:span=
"
feedback.taskType&&feedback.taskType===3 ? 6: 4
"
>
<u-col
:span=
"
6
"
>
<u-form-item
label=
"编排单号:"
prop=
"quantity"
>
<u-form-item
label=
"编排单号:"
prop=
"quantity"
>
{{ feedback.arrangeCode }}
{{ feedback.arrangeCode }}
</u-form-item>
</u-form-item>
</u-col>
</u-col>
<u-col
:span=
"4"
v-if=
"!feedback.taskType || feedback.taskType!==3"
>
<u-form-item
label=
"工单未报工数:"
>
<u-col
:span=
"6"
>
{{ feedback.workorderUnfeedbackSum }}
<!-- {{ computedQuantityV2 }} -->
</u-form-item>
</u-col>
<u-col
:span=
"feedback.taskType&&feedback.taskType===3 ? 6: 4"
>
<u-form-item
label=
"生产工单:"
prop=
"workorderId"
>
<u-form-item
label=
"生产工单:"
prop=
"workorderId"
>
<view
v-if=
"feedback.taskType&&feedback.taskType===3"
>
{{feedback.workorderCode}}
</view>
<view
v-if=
"feedback.taskType&&feedback.taskType===3"
>
{{feedback.workorderCode}}
</view>
<uni-data-select
v-model=
"feedback.workorderId"
v-else
:localdata=
"feedback.workorderOption"
<uni-data-select
v-model=
"feedback.workorderId"
v-else
:localdata=
"feedback.workorderOption"
...
@@ -439,6 +433,14 @@
...
@@ -439,6 +433,14 @@
</u-form-item>
</u-form-item>
</u-col>
</u-col>
</u-row>
</u-row>
<u-row
v-if=
"!feedback.taskType || feedback.taskType!==3"
>
<u-col
:span=
"6"
>
<u-form-item
label=
"报工人:"
prop=
"nickName"
>
<u-input
v-model=
"feedback.nickName"
></u-input>
<u-button
@
tap=
"getCode(feedback)"
type=
"success"
size=
"mini"
>
报工人员
</u-button>
</u-form-item>
</u-col>
</u-row>
<!-- <u-row> -->
<!-- <u-row> -->
<!-- <u-col span="3" width: max-content>
<!-- <u-col span="3" width: max-content>
...
@@ -782,7 +784,7 @@
...
@@ -782,7 +784,7 @@
<uni-th
width=
"80px"
align=
"center"
>
领料数量
</uni-th>
<uni-th
width=
"80px"
align=
"center"
>
领料数量
</uni-th>
<uni-th
width=
"80px"
align=
"center"
>
本次退料数
</uni-th>
<uni-th
width=
"80px"
align=
"center"
>
本次退料数
</uni-th>
<uni-th
width=
"80px"
align=
"center"
>
累计退料数
</uni-th>
<uni-th
width=
"80px"
align=
"center"
>
累计退料数
</uni-th>
<uni-th
width=
"100px"
align=
"center"
>
版号
</uni-th>
<uni-th
width=
"100px"
align=
"center"
>
版号
</uni-th>
<uni-th
width=
"110px"
align=
"center"
>
批次号
</uni-th>
<uni-th
width=
"110px"
align=
"center"
>
批次号
</uni-th>
<uni-th
width=
"60"
align=
"center"
>
合格
</uni-th>
<uni-th
width=
"60"
align=
"center"
>
合格
</uni-th>
</uni-tr>
</uni-tr>
...
@@ -932,6 +934,7 @@ import UButton from '../../../uview-ui/components/u-button/u-button.vue';
...
@@ -932,6 +934,7 @@ import UButton from '../../../uview-ui/components/u-button/u-button.vue';
import
cameraAuthMixin
from
'@/components/AppScan/appScanMixins.js'
;
import
cameraAuthMixin
from
'@/components/AppScan/appScanMixins.js'
;
import
{
handleError
}
from
'vue'
;
import
{
handleError
}
from
'vue'
;
import
AppScan
from
'../../../components/AppScan/AppScan.vue'
;
import
AppScan
from
'../../../components/AppScan/AppScan.vue'
;
import
URow
from
'../../../uview-ui/components/u-row/u-row.vue'
;
export
default
{
export
default
{
name
:
'ProdReport'
,
name
:
'ProdReport'
,
dicts
:
[
'pro_pack_type'
,
'sap_yes_no'
],
dicts
:
[
'pro_pack_type'
,
'sap_yes_no'
],
...
@@ -946,7 +949,8 @@ export default {
...
@@ -946,7 +949,8 @@ export default {
workunitList
,
workunitList
,
AppScan
,
AppScan
,
User
,
User
,
ProogingSpecificationSheet
ProogingSpecificationSheet
,
URow
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -1876,8 +1880,8 @@ export default {
...
@@ -1876,8 +1880,8 @@ export default {
row
.
packType
=
''
;
row
.
packType
=
''
;
row
.
lossIndividuallyWrap
=
undefined
;
row
.
lossIndividuallyWrap
=
undefined
;
row
.
currentTabPro
=
0
;
row
.
currentTabPro
=
0
;
row
.
workorderFeedbackSum
=
''
row
.
workorderFeedbackSum
=
row
.
workorderFeedback
row
.
workorderUnfeedbackSum
=
''
row
.
workorderUnfeedbackSum
=
row
.
workorderUnfeedback
row
.
quantityQualify
=
row
.
quantityWait
row
.
quantityQualify
=
row
.
quantityWait
this
.
$set
(
this
.
feedbackForms
,
index
,
row
)
this
.
$set
(
this
.
feedbackForms
,
index
,
row
)
return
;
return
;
...
@@ -2269,6 +2273,8 @@ export default {
...
@@ -2269,6 +2273,8 @@ export default {
defQualify
=
defQualify
>
item
.
quantityWait
?
item
.
quantityWait
:
defQualify
;
defQualify
=
defQualify
>
item
.
quantityWait
?
item
.
quantityWait
:
defQualify
;
const
feedback
=
{
const
feedback
=
{
...
item
,
...
item
,
workorderFeedback
:
0
,
workorderUnfeedback
:
0
,
workstationId
:
item
.
workstationId
,
workstationId
:
item
.
workstationId
,
userName
:
this
.
vuex_user
.
userName
,
userName
:
this
.
vuex_user
.
userName
,
taskId
:
item
.
taskId
,
taskId
:
item
.
taskId
,
...
@@ -2365,7 +2371,17 @@ export default {
...
@@ -2365,7 +2371,17 @@ export default {
feedback
.
workorderCode
=
item
.
workorderCode
feedback
.
workorderCode
=
item
.
workorderCode
feedback
.
closeType
=
''
feedback
.
closeType
=
''
}
else
if
(
!
feedback
.
isPackage
||
feedback
.
isPackage
!==
'1'
)
{
}
else
if
(
!
feedback
.
isPackage
||
feedback
.
isPackage
!==
'1'
)
{
feedback
.
arrangeFeedbackSum
=
item
.
arrangeFeedbackSum
this
.
$u
.
api
.
quantitywaitsum
({
taskWorkunitId
:
item
.
taskWorkunitId
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
// row.quantityQualify = res.data.workorderQualify
feedback
.
workorderFeedbackSum
=
res
.
data
.
workorderFeedbackSum
feedback
.
workorderUnfeedbackSum
=
res
.
data
.
workorderUnfeedbackSum
feedback
.
workorderFeedback
=
res
.
data
.
workorderFeedbackSum
feedback
.
workorderUnfeedback
=
res
.
data
.
workorderUnfeedbackSum
}
})
}
}
this
.
getWorkorderWithSizeAndDirective
(
feedback
,
index
);
this
.
getWorkorderWithSizeAndDirective
(
feedback
,
index
);
this
.
feedbackForms
.
push
(
feedback
);
this
.
feedbackForms
.
push
(
feedback
);
...
...
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