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
98cd840f
Commit
98cd840f
authored
Aug 14, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
投料校验
parent
e1bfa2c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
20 deletions
+50
-20
index.vue
pages/mes/prodReport/index.vue
+50
-20
No files found.
pages/mes/prodReport/index.vue
View file @
98cd840f
...
...
@@ -609,7 +609,11 @@
</uni-tr>
</uni-table>
</scroll-view>
<view
class=
"sum"
>
共{{feedingInspectionList.length}}条
</view>
<view
class=
"sum"
>
<view
class=
"pro-wrapper"
><progress
:percent=
"computedPercentage"
show-info
stroke-width=
"10"
/></view>
<view>
已校验:{{ computedAttr3 }}条
</view>
<view>
共{{feedingInspectionList.length}}条
</view>
</view>
</view>
</view>
</u-modal>
...
...
@@ -1542,6 +1546,16 @@ export default {
computed
:
{
computedQuantity
()
{
return
this
.
feedbackForm
.
quantityQualify
+
this
.
feedbackForm
.
quantityUnqualify
;
},
computedAttr3
()
{
const
list
=
this
.
feedingInspectionList
.
filter
(
v
=>
v
.
attr3
==
1
)
return
list
.
length
},
computedPercentage
()
{
if
(
!
this
.
feedingInspectionList
||
this
.
feedingInspectionList
.
length
===
0
)
return
100
let
per
=
(
this
.
computedAttr3
/
this
.
feedingInspectionList
.
length
)
*
100
per
=
Math
.
round
(
per
)
return
per
}
},
methods
:
{
...
...
@@ -1578,27 +1592,37 @@ export default {
handleUpdateKnifeTemp
(
code
)
{
if
(
this
.
knifeTempType
===
'1'
)
{
if
(
this
.
tableSelectData
[
0
].
isExistTool
===
'1'
)
{
this
.
$u
.
api
.
dModel
.
checkIsExsitToolWindow
({
type
:
this
.
knifeTempType
,
sn
:
code
,
taskWorkunitId
:
this
.
tableSelectData
[
0
].
taskWorkunitId
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
data
)
{
uni
.
showModal
({
title
:
'系统提示'
,
content
:
'是否新增刀模版和产品工序的关联?'
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
this
.
confirmKnifeTemp
(
code
)
}
else
{
this
.
$u
.
toast
(
"刀模版SN不一致"
)
const
[
wlbm
,
]
=
code
.
split
(
'-'
)
const
item
=
this
.
dModelData
.
find
(
v
=>
v
.
sapItemCode
===
wlbm
)
if
(
item
)
{
if
(
item
.
typeName
===
'已上机'
)
{
this
.
$u
.
toast
(
'已上机,重复扫码'
)
}
else
{
this
.
confirmKnifeTemp
(
code
)
}
}
else
{
this
.
$u
.
api
.
dModel
.
checkIsExsitToolWindow
({
type
:
this
.
knifeTempType
,
sn
:
code
,
taskWorkunitId
:
this
.
tableSelectData
[
0
].
taskWorkunitId
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
data
)
{
uni
.
showModal
({
title
:
'系统提示'
,
content
:
'是否新增刀模版和产品工序的关联?'
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
this
.
confirmKnifeTemp
(
code
)
}
else
{
this
.
$u
.
toast
(
"刀模版SN不一致"
)
}
}
}
})
})
}
else
{
this
.
confirmKnifeTemp
(
code
)
}
}
else
{
this
.
confirmKnifeTemp
(
code
)
this
.
$u
.
toast
(
res
.
msg
)
}
}
else
{
this
.
$u
.
toast
(
res
.
msg
)
}
})
})
}
}
else
{
this
.
confirmKnifeTemp
(
code
)
}
...
...
@@ -3360,8 +3384,14 @@ export default {
position
:
absolute
;
bottom
:
-30px
;
right
:
5px
;
display
:
flex
;
font-size
:
14px
;
.pro-wrapper
{
width
:
400rpx
;
}
view
{
margin-right
:
10rpx
;
}
}
}
.mynotable
{
...
...
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