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
c4a187a2
Commit
c4a187a2
authored
Jul 26, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5分钟内的报工记录可以修改
parent
8eb9a909
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
414 additions
and
28 deletions
+414
-28
http.api.js
common/http.api.js
+7
-1
editFeeding.vue
pages/mes/prodReport/components/editFeeding.vue
+338
-0
index.vue
pages/mes/prodReport/index.vue
+66
-27
global.scss
static/css/global.scss
+3
-0
No files found.
common/http.api.js
View file @
c4a187a2
...
...
@@ -84,13 +84,19 @@ const install = (Vue, vm) => {
vm
.
$u
.
delete
(
config
.
adminPath
+
'/mes/pro/feedback/deleteOut5Min/'
+
recordId
),
// 修改修改报工列表
updateFeedback
:
(
params
)
=>
vm
.
$u
.
putJson
(
config
.
adminPath
+
'/mes/pro/feedback/
/editOut5Mi
'
,
params
),
vm
.
$u
.
putJson
(
config
.
adminPath
+
'/mes/pro/feedback/
editOut5Min
'
,
params
),
//生产报工feedBackPackage
feedBackPackage
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/protask/feedBackPackage'
,
params
),
//生产报工补打印
rePackageInfoPrint
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/dev-api/pro/packagePrintRecord/rePackageInfoPrint'
,
params
),
// 生产指令列表
workOrderSoDirectiveApi
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
...
...
pages/mes/prodReport/components/editFeeding.vue
0 → 100644
View file @
c4a187a2
This diff is collapsed.
Click to expand it.
pages/mes/prodReport/index.vue
View file @
c4a187a2
...
...
@@ -56,7 +56,7 @@
<!--
</u-col>
-->
<!--
<u-col
span=
"2"
>
-->
<!--
<u-form-item
label=
"数量"
>
-->
<!--
<u
-number-box
:min=
"0"
v-model=
"materialRecordInfo.quantity"
></u
-number-box>
-->
<!--
<u
ni-number-box
:min=
"0"
v-model=
"materialRecordInfo.quantity"
></uni
-number-box>
-->
<!--
</u-form-item>
-->
<!--
</u-col>
-->
<!--
<u-col
span=
"1"
>
-->
...
...
@@ -83,13 +83,13 @@
<u-button
type=
"success"
@
click=
"commonClick('StartTask')"
>
开始作业
</u-button>
<u-button
type=
"warning"
@
click=
"commonClick('StopTask')"
>
暂停作业
</u-button>
<u-button
type=
"success"
@
click=
"commonClick('Prod')"
>
生产报工
</u-button>
<u-button
type=
"success"
@
click=
"commonClick('editProd')"
>
修改报工
</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('MaterialRequest')"
>
补料申请
</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('jobAssignment')"
>
作业分派
</u-button>
-->
<u-button
type=
"warning"
@
click=
"commonClick('abnormal')"
>
异常报告
</u-button>
<!--
<u-button
type=
"primary"
@
click=
"commonClick('StockIn')"
>
完工入库申请
</u-button>
-->
</scroll-view>
...
...
@@ -240,6 +240,11 @@
style=
"margin-left: 20rpx"
size=
"mini"
>
打印/报工
</u-button>
<u-button
v-if=
"scope.row.feedbackQuantity && Number(scope.row.feedbackQuantity) > 0"
@
tap=
"rePackageInfoPrint(feedback, scope.row, i)"
type=
"success"
style=
"margin-left: 20rpx"
size=
"mini"
>
补打印
</u-button>
<!--
<u-input
v-model=
"scope.row.reportQuantity"
type=
"number"
></u-input>
-->
</
template
>
</zb-table>
...
...
@@ -408,14 +413,14 @@
<view class="box" v-if="timeTest.isshow">
<u-col span="6">
<u-form-item label="合格数量(副):" prop="feedbackQuantityFu">
<u-number-box :min="0" @change="quantityChangedV2(feedback, feedbackQuantityFu)"
v-model="feedbackQuantityFu"></u-number-box>
<u
ni
-number-box :min="0" @change="quantityChangedV2(feedback, feedbackQuantityFu)"
v-model="feedbackQuantityFu"></u
ni
-number-box>
</u-form-item>
</u-col>
<u-col span="6">
<u-form-item label="不良品数量(副):" prop="feedbackUnQuantityFu">
<u-number-box :min="0" @change="quantityChangedV2(feedback, feedbackUnQuantityFu)"
v-model="feedbackUnQuantityFu"></u-number-box>
<u
ni
-number-box :min="0" @change="quantityChangedV2(feedback, feedbackUnQuantityFu)"
v-model="feedbackUnQuantityFu"></u
ni
-number-box>
</u-form-item>
</u-col>
</view> -->
...
...
@@ -811,6 +816,7 @@
<zb-table
:columns=
"tableDetailColumn"
:stripe=
"true"
:border=
"true"
:data=
"tableDataDetail"
></zb-table>
</view>
</u-modal>
<u-modal
title=
"查看倒冲批次"
:showRecoilMaterialButton=
"true"
@
confirm=
"$refs.appScan.start()"
:title-style=
"{ 'background-color': '#1E3770', color: '#FFFFFF', 'line-height': '37px', 'padding-top': '0px',' z-index': 9999 }"
v-model=
"recoilMaterialFlag"
width=
"1300rpx"
>
...
...
@@ -865,23 +871,6 @@
</view>
</u-modal>
<u-modal
title=
"作业分派"
@
confirm=
"handleSubmitJobAssignment"
show-cancel-button
:title-style=
"{ 'background-color': '#1E3770', color: '#FFFFFF', 'line-height': '37px', 'padding-top': '0px' }"
v-model=
"jobAssignmentVisible"
width=
"1200rpx"
>
<view
class=
"feedback-card"
>
<u-form
:mode=
"jobAssignmentForm"
label-width=
"100px"
>
<u-form-item
label=
"排产数量"
>
<u-number-box
v-model=
"jobAssignmentForm.quantity"
:long-press=
"false"
:positive-integer=
"false"
:size=
"50"
:input-width=
"190"
></u-number-box>
</u-form-item>
<u-form-item
label=
"工作单元"
>
<u-input
disabled
v-model=
"jobAssignmentForm.workunitName"
placeholder=
"选择工作单元"
></u-input>
<u-button
@
tap=
"workunitVisible = true"
type=
"success"
size=
"mini"
>
选择工作单元
</u-button>
</u-form-item>
</u-form>
</view>
</u-modal>
<u-modal
title=
"选择工作单元"
@
confirm=
"handleSubmitWorkunit"
show-cancel-button
:title-style=
"{ 'background-color': '#1E3770', color: '#FFFFFF', 'line-height': '37px', 'padding-top': '0px' }"
v-model=
"workunitVisible"
width=
"1800rpx"
>
...
...
@@ -889,6 +878,7 @@
<workunitList
ref=
"workunitRef"
/>
</view>
</u-modal>
<editFeeding
ref=
"editFeeding"
v-model=
"editFeedingVisible"
@
close=
"editFeedingVisible = false"
/>
</view>
</template>
<
style
scoped
>
...
...
@@ -901,6 +891,7 @@ import dModelList from './components/dModelList.vue';
import
User
from
'@/components/User/User.vue'
;
import
userPersonnel
from
'./components/userPersonnel.vue'
;
import
printTemplate
from
'./components/printTemplate.vue'
;
import
editFeeding
from
'./components/editFeeding.vue'
;
import
workunitList
from
'./components/workunitList.vue'
;
import
ProogingSpecificationSheet
from
'./components/ProogingSpecificationSheet.vue'
;
import
UButton
from
'../../../uview-ui/components/u-button/u-button.vue'
;
...
...
@@ -913,6 +904,7 @@ export default {
mixins
:
[
cameraAuthMixin
],
components
:
{
SearchInput
,
editFeeding
,
dModelList
,
userPersonnel
,
printTemplate
,
...
...
@@ -925,6 +917,7 @@ export default {
data
()
{
return
{
getWorkorderDirectiveLoading
:
false
,
editFeedingVisible
:
false
,
tableOrderColumn
:
[
{
name
:
'quantity'
,
...
...
@@ -1614,6 +1607,13 @@ export default {
}
this
.
doFeedback
();
break
;
case
'editProd'
:
if
(
this
.
tableSelectData
[
0
].
status
===
'PREPARE'
)
{
this
.
$u
.
toast
(
'工序未开工'
);
return
;
}
this
.
doEditProd
();
break
;
case
'MaterialUsageRecord'
:
this
.
addMaterialUsageRecord
();
break
;
...
...
@@ -1642,9 +1642,6 @@ export default {
case
'MaterialReturn'
:
this
.
materialReturnShow
();
break
;
case
'jobAssignment'
:
// 作业分派
this
.
handleJobAssignment
();
break
;
case
'StockIn'
:
this
.
stockInShow
();
break
;
...
...
@@ -1665,6 +1662,14 @@ export default {
this
.
jobAssignmentForm
.
workunitId
=
this
.
$refs
.
workunitRef
.
tableSelectData
[
0
].
workunitId
;
this
.
jobAssignmentForm
.
workunitName
=
this
.
$refs
.
workunitRef
.
tableSelectData
[
0
].
workunitName
;
},
doEditProd
(){
const
datas
=
Object
.
assign
({},
this
.
tableSelectData
[
0
]);
this
.
$refs
[
'editFeeding'
].
getList
(
datas
).
then
(()
=>
{
this
.
editFeedingVisible
=
true
}).
catch
(()
=>
{
this
.
$u
.
toast
(
'修改报工出现问题'
)
})
},
handleSubmitJobAssignment
()
{
let
datas
=
Object
.
assign
({},
this
.
tableSelectData
[
0
]);
datas
.
taskWorkunit
=
this
.
jobAssignmentForm
;
...
...
@@ -2030,6 +2035,7 @@ export default {
}
});
},
addMaterialUsageRecord
()
{
if
(
this
.
materialRecordInfo
.
materialBatchNumber
!==
this
.
curTaskInfo
.
itemCode
&&
this
.
currentType
===
0
)
{
this
.
$u
.
toast
(
'物料不在生产目录中!'
);
...
...
@@ -2368,6 +2374,39 @@ export default {
}
});
},
rePackageInfoPrint
(
item
,
row
,
i
){
if
(
item
.
printTemplate
&&
!
this
.
vuex_printConnect
)
{
this
.
$u
.
toast
(
'打印机连接失败'
);
return
;
}
item
.
feedbackTime
=
this
.
parseTime
(
new
Date
())
this
.
$u
.
api
.
rePackageInfoPrint
({
workorderId
:
item
.
workorderId
,
qrcode
:
row
.
qrcode
,
})
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
// this.proVisible = false;
item
.
quantityUnqualify
=
0
;
this
.
$u
.
toast
(
'上报成功'
);
this
.
getWorkorderDirectiveList
(
item
,
i
)
if
(
item
.
printTemplate
)
{
let
params
=
{};
res
.
data
.
forEach
((
datas
)
=>
{
params
=
{
reportName
:
'mysql:'
+
item
.
printTemplate
,
values
:
{
packagePrint
:
datas
}
};
this
.
printPdfSocket
(
params
);
});
}
this
.
getTaskList
();
}
});
},
handleSubmitPackageFeedback
(
item
,
row
,
i
)
{
if
(
item
.
printTemplate
&&
!
this
.
vuex_printConnect
)
{
this
.
$u
.
toast
(
'打印机连接失败'
);
...
...
static/css/global.scss
View file @
c4a187a2
...
...
@@ -29,3 +29,6 @@
body
{
position
:
relative
;
}
uni-modal
{
z-index
:
999999
!
important
;
}
\ No newline at end of file
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