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
44835ad6
Commit
44835ad6
authored
Nov 08, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产报工时,不合格数量为0时,不允许填写不良原因
parent
458ddf4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
editFeeding.vue
pages/mes/prodReport/components/editFeeding.vue
+12
-2
index.vue
pages/mes/prodReport/index.vue
+12
-4
No files found.
pages/mes/prodReport/components/editFeeding.vue
View file @
44835ad6
...
...
@@ -109,7 +109,7 @@
</u-col>
<u-col
:span=
"6"
>
<u-form-item
:label=
"$t('不良品报工')"
prop=
"quantityUnqualify"
>
<u-number-box
:min=
"0"
@
change=
"
handleQuantityChanged
"
:input-width=
"190"
v-model=
"form.quantityUnqualify"
:long-press=
"false"
:placeholder=
"$t('请输入不良品报工')"
/>
<u-number-box
:min=
"0"
@
change=
"
changeUnqualify
"
:input-width=
"190"
v-model=
"form.quantityUnqualify"
:long-press=
"false"
:placeholder=
"$t('请输入不良品报工')"
/>
</u-form-item>
</u-col>
<u-col
:span=
"6"
>
...
...
@@ -122,6 +122,7 @@
<u-input
v-model=
"form.abnormalReason"
disabled
></u-input>
<u-button
@
tap=
"choose"
:disabled=
"!form.quantityUnqualify || Number(form.quantityUnqualify) === 0"
type=
"success"
size=
"mini"
>
{{ $t('选择原因') }}
</u-button
...
...
@@ -244,9 +245,18 @@ export default {
},
methods
:
{
choose
()
{
console
.
log
(
'aa'
,
this
.
$emit
)
if
(
!
this
.
form
.
quantityUnqualify
||
Number
(
this
.
form
.
quantityUnqualify
)
===
0
)
return
this
.
$emit
(
'chooseReason'
,
this
.
form
)
},
changeUnqualify
()
{
this
.
form
.
quantityFeedback
=
this
.
form
.
quantityQualify
+
this
.
form
.
quantityUnqualify
;
if
(
!
this
.
form
.
quantityUnqualify
||
Number
(
this
.
form
.
quantityUnqualify
)
===
0
)
{
this
.
form
.
abnormalReason
=
''
this
.
form
.
abnormalId
=
''
this
.
form
.
abnormalType
=
''
this
.
form
.
abnormalRemark
=
''
}
},
handleQuantityChanged
(){
this
.
form
.
quantityFeedback
=
this
.
form
.
quantityQualify
+
this
.
form
.
quantityUnqualify
;
},
...
...
pages/mes/prodReport/index.vue
View file @
44835ad6
...
...
@@ -122,9 +122,7 @@
show
-
cancel
-
button
:
cancelText
=
"$t('取消')"
:
confirmText
=
"$t('确认')"
:
show
-
confirm
-
button
=
"
feedbackForms[0] && feedbackForms[0].isPackage === '1' ? false : true
"
:
show
-
confirm
-
button
=
"true"
ref
=
"uModal"
:
title
-
style
=
"{
'background-color': '#1E3770',
...
...
@@ -298,6 +296,7 @@
<
u
-
number
-
box
:
min
=
"0"
:
max
=
"getquantityQualifyMax(feedback)"
@
change
=
"changeUnqualify(feedback)"
:
input
-
width
=
"190"
v
-
model
=
"feedback.quantityUnqualify"
:
long
-
press
=
"false"
...
...
@@ -320,6 +319,7 @@
<
u
-
input
v
-
model
=
"feedback.abnormalReason"
disabled
><
/u-input
>
<
u
-
button
@
tap
=
"chooseReason(feedback)"
:
disabled
=
"!feedback.quantityUnqualify || Number(feedback.quantityUnqualify) === 0"
type
=
"success"
size
=
"mini"
>
{{
$t
(
'选择原因'
)
}}
<
/u-butto
n
...
...
@@ -1467,6 +1467,14 @@ export default {
tagClick
(
index
)
{
this
.
userList
.
splice
(
index
,
1
)
}
,
changeUnqualify
(
row
)
{
if
(
!
row
.
quantityUnqualify
||
Number
(
row
.
quantityUnqualify
)
===
0
)
{
row
.
abnormalReason
=
''
row
.
abnormalId
=
''
row
.
abnormalType
=
''
row
.
abnormalRemark
=
''
}
}
,
async
onUserConfirm
(
item
)
{
if
(
this
.
userList
.
find
(
v
=>
v
.
userName
===
item
)
||
this
.
userList
.
find
(
v
=>
v
.
nickName
===
item
))
{
return
...
...
@@ -1938,7 +1946,7 @@ export default {
this
.
userTempVisible
=
true
}
,
chooseReason
(
row
)
{
console
.
log
(
'sada'
,
row
)
if
(
!
row
.
quantityUnqualify
||
Number
(
row
.
quantityUnqualify
)
===
0
)
return
this
.
reasonOBJ
=
row
this
.
abnormalReasonVisible
=
true
}
,
...
...
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