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
92176c5f
Commit
92176c5f
authored
May 20, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:修改开始任务和生产报工
parent
a08b7a08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
26 deletions
+32
-26
index.vue
pages/mes/prodReport/index.vue
+32
-26
No files found.
pages/mes/prodReport/index.vue
View file @
92176c5f
...
@@ -239,7 +239,7 @@
...
@@ -239,7 +239,7 @@
</
template
>
</
template
>
<
template
slot=
"peration"
slot-scope=
"scope"
>
<
template
slot=
"peration"
slot-scope=
"scope"
>
<!--
{{
scope
.
row
}}
-->
<!--
{{
scope
.
row
}}
-->
<u-button
@
tap=
"handleSubmitPackageFeedback(feedback, scope.row)"
type=
"success"
style=
"margin-left: 20rpx"
size=
"mini"
>
打印/报工
</u-button>
<u-button
v-if=
"Number(scope.row.packageNum) > Number(scope.row.feedbackQuantity)"
@
tap=
"handleSubmitPackageFeedback(feedback, scope.row)"
type=
"success"
style=
"margin-left: 20rpx"
size=
"mini"
>
打印/报工
</u-button>
<!--
<u-input
v-model=
"scope.row.reportQuantity"
type=
"number"
></u-input>
-->
<!--
<u-input
v-model=
"scope.row.reportQuantity"
type=
"number"
></u-input>
-->
</
template
>
</
template
>
</zb-table>
</zb-table>
...
@@ -1473,8 +1473,11 @@ export default {
...
@@ -1473,8 +1473,11 @@ export default {
}
else
{
}
else
{
this
.
$u
.
api
.
changeCheckMachineTool
({
this
.
$u
.
api
.
changeCheckMachineTool
({
taskWorkunitId
:
item
.
taskWorkunitId
taskWorkunitId
:
item
.
taskWorkunitId
});
}).
then
(
res
=>
{
this
.
changeStatus
(
item
.
taskId
,
item
.
taskWorkunitId
,
'BEGINNING'
,
item
.
workunitId
,
false
);
if
(
res
.
code
===
200
)
{
this
.
changeStatus
(
item
.
taskId
,
item
.
taskWorkunitId
,
'BEGINNING'
,
item
.
workunitId
,
false
);
}
})
}
}
});
});
if
(
status
)
{
if
(
status
)
{
...
@@ -1591,28 +1594,28 @@ export default {
...
@@ -1591,28 +1594,28 @@ export default {
},
},
// 新增刀模版上下机记录
// 新增刀模版上下机记录
async
addDModelRecord
(
params
)
{
async
addDModelRecord
(
params
)
{
const
{
data
}
=
await
this
.
$u
.
api
.
dModel
.
getToolsByProcessIdAndArrangeCode
(
params
);
//
const { data } = await this.$u.api.dModel.getToolsByProcessIdAndArrangeCode(params);
if
(
data
?.
length
)
{
//
if (data?.length) {
const
[
selectData
]
=
this
.
tableSelectData
;
const
[
selectData
]
=
this
.
tableSelectData
;
const
ps
=
{
const
ps
=
{
toolMachinesCode
:
''
,
//
toolMachinesCode: '',
arrangeCode
:
selectData
.
arrangeCode
,
//
arrangeCode: selectData.arrangeCode,
workunitId
:
this
.
vuex_workunit
.
workunitId
,
//
workunitId: this.vuex_workunit.workunitId,
workunitCode
:
this
.
vuex_workunit
.
workunitCode
,
//
workunitCode: this.vuex_workunit.workunitCode,
workunitName
:
this
.
vuex_workunit
.
workunitName
,
//
workunitName: this.vuex_workunit.workunitName,
processId
:
selectData
.
processId
,
//
processId: selectData.processId,
taskId
:
selectData
.
taskId
,
//
taskId: selectData.taskId,
taskWorkunitId
:
selectData
.
taskWorkunitId
,
taskWorkunitId
:
selectData
.
taskWorkunitId
,
workorderId
:
selectData
.
workorderId
,
//
workorderId: selectData.workorderId,
toolRequestUseId
:
data
[
0
].
toolRequestUseId
,
//
toolRequestUseId: data[0].toolRequestUseId,
toolMachinesRecordList
:
data
.
map
((
v
)
=>
{
//
toolMachinesRecordList: data.map((v) => {
return
{
//
return {
toolRequestUseItemId
:
v
.
toolRequestUseItemId
,
//
toolRequestUseItemId: v.toolRequestUseItemId,
type
:
3
,
//
type: 3,
upDate
:
''
,
//
upDate: '',
downDate
:
''
//
downDate: ''
};
//
};
})
//
})
};
};
// 新增
// 新增
const
data2
=
await
this
.
$u
.
api
.
dModel
.
tmToolMachines
(
ps
);
const
data2
=
await
this
.
$u
.
api
.
dModel
.
tmToolMachines
(
ps
);
...
@@ -1621,7 +1624,7 @@ export default {
...
@@ -1621,7 +1624,7 @@ export default {
this
.
dModelData
=
records
.
data
||
[];
this
.
dModelData
=
records
.
data
||
[];
this
.
knifeTempVisible
=
true
;
this
.
knifeTempVisible
=
true
;
}
}
}
//
}
},
},
getIssusLinebyWorkorderCodes
()
{
getIssusLinebyWorkorderCodes
()
{
this
.
issusLineList
=
[];
this
.
issusLineList
=
[];
...
@@ -2065,6 +2068,7 @@ export default {
...
@@ -2065,6 +2068,7 @@ export default {
"mergePack"
:
row
.
mergePack
||
0
,
"mergePack"
:
row
.
mergePack
||
0
,
"packNum"
:
row
.
packNum
,
"packNum"
:
row
.
packNum
,
"quantity"
:
row
.
quantity
,
"quantity"
:
row
.
quantity
,
"taskId"
:
row
.
taskId
,
"workorderId"
:
row
.
workorderId
"workorderId"
:
row
.
workorderId
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
...
@@ -2076,7 +2080,7 @@ export default {
...
@@ -2076,7 +2080,7 @@ export default {
row
.
tableDirectiveData
=
res
.
data
.
directiveList
.
map
(
item
=>
{
row
.
tableDirectiveData
=
res
.
data
.
directiveList
.
map
(
item
=>
{
return
{
return
{
...
item
,
...
item
,
reportQuantity
:
item
.
packageNum
reportQuantity
:
Number
(
item
.
packageNum
)
||
0
-
Number
(
item
.
feedbackQuantity
)
||
0
}
}
})
})
row
.
listTabPro
=
[
row
.
listTabPro
=
[
...
@@ -2091,7 +2095,7 @@ export default {
...
@@ -2091,7 +2095,7 @@ export default {
row
.
tableOrderData
=
res
.
data
.
orderPackageList
.
map
(
item
=>
{
row
.
tableOrderData
=
res
.
data
.
orderPackageList
.
map
(
item
=>
{
return
{
return
{
...
item
,
...
item
,
reportQuantity
:
item
.
packageNum
reportQuantity
:
Number
(
item
.
packageNum
)
||
0
-
Number
(
item
.
feedbackQuantity
)
||
0
}
}
})
})
row
.
listTabPro
=
[
row
.
listTabPro
=
[
...
@@ -2106,7 +2110,7 @@ export default {
...
@@ -2106,7 +2110,7 @@ export default {
row
.
tableSizeData
=
res
.
data
.
sizeList
.
map
(
item
=>
{
row
.
tableSizeData
=
res
.
data
.
sizeList
.
map
(
item
=>
{
return
{
return
{
...
item
,
...
item
,
reportQuantity
:
item
.
packageNum
reportQuantity
:
Number
(
item
.
packageNum
)
||
0
-
Number
(
item
.
feedbackQuantity
)
||
0
}
}
})
})
row
.
listTabPro
=
[
row
.
listTabPro
=
[
...
@@ -2146,9 +2150,11 @@ export default {
...
@@ -2146,9 +2150,11 @@ export default {
printTemplate
:
item
.
printTemplate
,
printTemplate
:
item
.
printTemplate
,
quantityUnqualify
:
item
.
quantityUnqualify
,
quantityUnqualify
:
item
.
quantityUnqualify
,
taskId
:
item
.
taskId
,
taskId
:
item
.
taskId
,
feedbackTime
:
item
.
feedbackTime
,
workorderId
:
item
.
workorderId
,
workorderId
:
item
.
workorderId
,
'reportData.netWeight'
:
row
.
netWeight
,
'reportData.netWeight'
:
row
.
netWeight
,
'reportData.reportQuantity'
:
row
.
reportQuantity
,
'reportData.reportQuantity'
:
row
.
reportQuantity
,
'reportData.packageNum'
:
row
.
packageNum
,
'reportData.qrcode'
:
row
.
qrcode
,
'reportData.qrcode'
:
row
.
qrcode
,
'reportData.workorderSoDirectiveId'
:
row
.
workorderSoDirectiveId
,
'reportData.workorderSoDirectiveId'
:
row
.
workorderSoDirectiveId
,
'reportData.workorderSoSizeItemId'
:
row
.
workorderSoSizeItemId
'reportData.workorderSoSizeItemId'
:
row
.
workorderSoSizeItemId
...
...
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