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
6a46ddbb
Commit
6a46ddbb
authored
Aug 21, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
作业端-》包装标签报工
parent
ddecc0dc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
39 deletions
+84
-39
index.vue
pages/mes/prodReport/index.vue
+58
-29
zb-table.vue
uni_modules/zb-table/components/zb-table/zb-table.vue
+26
-10
No files found.
pages/mes/prodReport/index.vue
View file @
6a46ddbb
...
...
@@ -77,22 +77,18 @@
{{
this
.
vuex_workunit
==
null
?
'请选择工作单元'
:
this
.
vuex_workunit
.
workunitName
}}
</view>
<u-button
type=
"primary"
@
click=
"commonClick('Refresh')"
>
刷新
</u-button>
<u-button
type=
"primary"
@
click=
"commonClick('KnifeTemp')"
v-if=
"!buttonShow || buttonShow.processToolView === '1'"
>
刀模版上下机
</u-button>
<u-button
type=
"primary"
@
click=
"commonClick('FeedingInspection')"
v-if=
"!buttonShow || buttonShow.materialView === '1'"
>
投料校验
</u-button>
<u-button
type=
"primary"
@
click=
"commonClick('RecoilMaterial')"
v-if=
"!buttonShow || buttonShow.recoilMaterialView === '1'"
>
反冲料登记
</u-button>
<u-button
type=
"success"
@
click=
"commonClick('StartTask')"
>
开始作业
</u-button>
<u-button
type=
"warning"
@
click=
"commonClick('StopTask')"
>
暂停作业
</u-button>
<u-button
type=
"primary"
@
click=
"commonClick('KnifeTemp')"
v-if=
"!
isWaiXie"
v-show=
"!
buttonShow || buttonShow.processToolView === '1'"
>
刀模版上下机
</u-button>
<u-button
type=
"primary"
@
click=
"commonClick('FeedingInspection')"
v-if=
"!
isWaiXie"
v-show=
"!
buttonShow || buttonShow.materialView === '1'"
>
投料校验
</u-button>
<u-button
type=
"primary"
@
click=
"commonClick('RecoilMaterial')"
v-if=
"!
isWaiXie"
v-show=
"!
buttonShow || buttonShow.recoilMaterialView === '1'"
>
反冲料登记
</u-button>
<u-button
type=
"success"
@
click=
"commonClick('StartTask')"
v-if=
"!isWaiXie"
>
开始作业
</u-button>
<u-button
type=
"warning"
@
click=
"commonClick('StopTask')"
v-if=
"!isWaiXie"
>
暂停作业
</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')"
v-if=
"!buttonShow || buttonShow.MaterialRequestView === '1'"
>
补料申请
</u-button>
<!--
<u-button
type=
"primary"
@
click=
"commonClick('MaterialRequest')"
>
补料申请
</u-button>
-->
<u-button
type=
"primary"
@
click=
"commonClick('MaterialReturn')"
v-if=
"!buttonShow || buttonShow.MaterialReturnView === '1'"
>
退料申请
</u-button>
<!--
<u-button
type=
"primary"
@
click=
"commonClick('MaterialReturn')"
>
退料申请
</u-button>
-->
<u-button
type=
"primary"
@
click=
"commonClick('ViewPpicture')"
>
查看图片
</u-button>
<u-button
type=
"warning"
@
click=
"commonClick('abnormal')"
>
异常报告
</u-button>
<u-button
type=
"success"
@
click=
"commonClick('editProd')"
v-if=
"!isWaiXie"
>
修改报工
</u-button>
<u-button
type=
"primary"
@
click=
"commonClick('FinshTask')"
v-if=
"!isWaiXie"
>
完成作业
</u-button>
<u-button
type=
"primary"
@
click=
"commonClick('MaterialRequest')"
v-if=
"!isWaiXie"
v-show=
"!buttonShow || buttonShow.MaterialRequestView === '1'"
>
补料申请
</u-button>
<u-button
type=
"primary"
@
click=
"commonClick('MaterialReturn')"
v-if=
"!isWaiXie"
v-show=
"!buttonShow || buttonShow.MaterialReturnView === '1'"
>
退料申请
</u-button>
<u-button
type=
"primary"
@
click=
"commonClick('ViewPpicture')"
v-if=
"!isWaiXie"
>
查看图片
</u-button>
<u-button
type=
"warning"
@
click=
"commonClick('abnormal')"
v-if=
"!isWaiXie"
>
异常报告
</u-button>
<!--
<u-button
type=
"primary"
@
click=
"commonClick('StockIn')"
>
完工入库申请
</u-button>
-->
</scroll-view>
</view>
...
...
@@ -299,24 +295,21 @@
</view>
<!-- SIZE列表 -->
<view
v-if=
"feedback.tableSizeData.length"
>
<zb-table
:columns=
"feedback.tableSizeColumn"
:stripe=
"true"
:border=
"true"
:data=
"feedback.tableSizeData"
>
<zb-table
:columns=
"feedback.tableSizeColumn"
ref=
"feedSizeRef"
:stripe=
"true"
:border=
"true"
highlight
:data=
"feedback.tableSizeData"
:isTrClassStyle=
"isSizeClassStyle"
class=
"feedSize"
>
<
template
slot=
"reportQuantity"
slot-scope=
"scope"
>
<!--
{{
scope
.
row
}}
-->
<u-input
v-model=
"scope.row.reportQuantity"
type=
"number"
></u-input>
<u-input
v-model=
"scope.row.reportQuantity"
type=
"number"
v-if=
"!scope.row.highlight"
></u-input>
</
template
>
<
template
slot=
"netWeight"
slot-scope=
"scope"
>
<!--
{{
scope
.
row
}}
-->
<u-input
v-model=
"scope.row.netWeight"
type=
"number"
></u-input>
<u-input
v-model=
"scope.row.netWeight"
type=
"number"
v-if=
"!scope.row.highlight"
></u-input>
</
template
>
<
template
slot=
"grossWeight"
slot-scope=
"scope"
>
<!--
{{
scope
.
row
}}
-->
<u-input
v-model=
"scope.row.grossWeight"
type=
"number"
placeholder=
""
></u-input>
<u-input
v-model=
"scope.row.grossWeight"
type=
"number"
placeholder=
""
v-if=
"!scope.row.highlight"
></u-input>
</
template
>
<
template
slot=
"packageStandard"
slot-scope=
"scope"
>
<!--
{{
scope
.
row
}}
-->
<uni-easyinput
type=
"text"
suffixIcon=
"scan"
v-model=
"scope.row.packageStandard"
style=
"width: 100%"
@
iconClick=
"() => iconPackageStandard(scope.row)"
placeholder=
"装箱规格"
/>
@
iconClick=
"() => iconPackageStandard(scope.row)"
placeholder=
"装箱规格"
v-if=
"!scope.row.highlight"
/>
</
template
>
<
template
slot=
"peration"
slot-scope=
"scope"
>
<!--
{{
scope
.
row
}}
-->
...
...
@@ -326,7 +319,7 @@
style=
"margin-left: 0"
class=
"successBtn"
>
补打印
</u-button>
<u-button
v-else
@
tap=
"handleSubmitPackageFeedback(feedback, scope.row, i)"
<u-button
v-else
-if=
"!scope.row.highlight"
@
tap=
"handleSubmitPackageFeedback(feedback, scope.row, i)"
style=
"margin-left: 0"
class=
"successBtn"
>
打印/报工
</u-button>
</
template
>
</zb-table>
...
...
@@ -1608,6 +1601,10 @@ export default {
uni
.
$off
(
'taskStatusChanged'
);
},
computed
:
{
isWaiXie
()
{
if
(
this
.
vuex_workunit
&&
this
.
vuex_workunit
.
workunitName
===
'广州宝绅委外工作单元'
)
return
true
return
false
},
computedQuantity
()
{
return
this
.
feedbackForm
.
quantityQualify
+
this
.
feedbackForm
.
quantityUnqualify
;
},
...
...
@@ -1777,6 +1774,14 @@ export default {
return
''
;
//第二个大
}
},
// 判断是否显示蓝色
isSizeClassStyle
(
row
,
i
)
{
if
(
row
.
feedbackQuantity
&&
row
.
feedbackQuantity
>
0
&&
row
.
distributes
&&
row
.
distributes
.
length
>
0
)
{
return
'grablue'
;
//已报工
}
else
{
return
''
;
//第二个大
}
},
commonClick
(
oper
)
{
if
([
'Refresh'
,
'MaterialUsageRecord'
,
'editProd'
].
indexOf
(
oper
)
===
-
1
&&
this
.
tableSelectData
.
length
===
0
)
{
this
.
$u
.
toast
(
'请选择工作任务!'
);
...
...
@@ -2668,12 +2673,18 @@ export default {
row
.
tableOrderData
=
[];
}
if
(
res
.
data
.
sizeList
)
{
row
.
tableSizeData
=
res
.
data
.
sizeList
.
map
((
item
)
=>
{
return
{
const
Sizelist
=
[]
res
.
data
.
sizeList
.
forEach
(
item
=>
{
let
distributes
=
[]
if
(
item
.
distributes
)
{
distributes
=
item
.
distributes
.
map
(
v
=>
({...
v
,
highlight
:
true
,
qrcode
:
item
.
qrcode
}))
}
Sizelist
.
push
({
...
item
,
reportQuantity
:
(
Number
(
item
.
packageNum
)
||
0
)
-
(
Number
(
item
.
feedbackQuantity
)
||
0
)
};
});
},
...
distributes
)
})
row
.
tableSizeData
=
Sizelist
row
.
listTabPro
=
[
{
name
:
'SIZE列表'
...
...
@@ -2748,6 +2759,9 @@ export default {
this
.
$u
.
toast
(
'打印机连接失败'
);
return
;
}
if
(
!
item
.
printTemplate
)
{
return
this
.
$u
.
toast
(
'请选择打印模版'
)
}
if
(
!
row
.
grossWeight
||
!
row
.
packageStandard
)
{
this
.
$u
.
toast
(
'请录入毛重、装箱规格'
);
return
;
...
...
@@ -2788,6 +2802,12 @@ export default {
this
.
$u
.
toast
(
'打印机连接失败'
);
return
;
}
if
(
row
.
distributes
&&
row
.
distributes
.
length
>
0
){
const
arr
=
this
.
$refs
[
'feedSizeRef'
][
i
].
currentRow
.
filter
(
v
=>
v
.
qrcode
===
row
.
qrcode
)
if
(
!
arr
||
!
arr
.
length
||
arr
.
length
!==
row
.
distributes
.
length
)
{
return
this
.
$u
.
toast
(
'请点击确认SIZE数量后再报工'
);
}
}
item
.
feedbackTime
=
this
.
parseTime
(
new
Date
())
this
.
$u
.
api
.
feedBackPackage
({
...
...
@@ -3594,6 +3614,15 @@ export default {
color
:
#ffffff
!
important
;
}
}
.feedSize
{
/
deep
/
.grablue
{
background
:
#ecf5ff
!
important
;
}
/
deep
/
.grablue
.even
{
background
:
#ecf5ff
!
important
;
}
}
</
style
>
<
style
lang=
"scss"
>
.mynotable
{
...
...
uni_modules/zb-table/components/zb-table/zb-table.vue
View file @
6a46ddbb
...
...
@@ -674,9 +674,9 @@ export default {
isHighlight
()
{
return
(
item
,
index
)
=>
{
if
(
this
.
rowKey
)
{
return
item
.
key
===
this
.
currentRow
[
'key'
]
;
return
this
.
currentRow
.
findIndex
(
v
=>
v
[
this
.
rowKey
]
===
item
[
this
.
rowKey
])
>
-
1
;
}
else
{
return
index
===
this
.
currentRowIndex
;
return
this
.
currentRowIndex
.
indexOf
(
index
)
>
-
1
;
}
};
},
...
...
@@ -715,8 +715,8 @@ export default {
currentDriver
:
null
,
currentDriver1
:
null
,
bodyTime
:
null
,
currentRowIndex
:
null
,
currentRow
:
{}
,
currentRowIndex
:
[]
,
currentRow
:
[]
,
bodyTime1
:
null
,
headerTime
:
null
,
debounceTime
:
null
,
...
...
@@ -818,8 +818,8 @@ export default {
});
},
resetHighlight
()
{
this
.
currentRowIndex
=
null
;
this
.
currentRow
=
{}
;
this
.
currentRowIndex
=
[]
;
this
.
currentRow
=
[]
;
},
cellClick
(
row
,
index
,
column
)
{
// console.log(row, index, 'rows cellClick');
...
...
@@ -869,10 +869,26 @@ export default {
this
.
$emit
(
'toggleRowSelection'
,
true
,
this
.
selectArr
);
},
rowClick
(
row
,
index
)
{
if
(
this
.
highlight
)
{
this
.
currentRowIndex
=
index
;
this
.
currentRow
=
row
;
this
.
$emit
(
'currentChange'
,
row
,
index
);
if
(
this
.
highlight
&&
row
.
highlight
)
{
let
itemindex
=
-
1
if
(
this
.
rowKey
)
{
itemindex
=
this
.
currentRow
.
findIndex
(
v
=>
v
[
this
.
rowKey
]
===
item
[
this
.
rowKey
])
if
(
itemindex
>
-
1
)
{
this
.
currentRow
.
splice
(
itemindex
,
1
)
}
else
{
this
.
currentRow
.
push
(
row
)
}
}
else
{
itemindex
=
this
.
currentRowIndex
.
indexOf
(
index
)
if
(
itemindex
>
-
1
)
{
this
.
currentRowIndex
.
splice
(
itemindex
,
1
)
this
.
currentRow
.
splice
(
itemindex
,
1
)
}
else
{
this
.
currentRowIndex
.
push
(
index
);
this
.
currentRow
.
push
(
row
)
}
}
this
.
$emit
(
'currentChange'
,
this
.
currentRow
,
this
.
currentRowIndex
);
}
this
.
$emit
(
'rowClick'
,
row
,
index
);
},
...
...
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