Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pda-scan
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-pda-scan
Commits
f3fb308c
Commit
f3fb308c
authored
Nov 13, 2024
by
tanjunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 余料退料退料数量改为可填写负数
parent
ca10137d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
oddmentsItem.vue
pages/produceReturn/components/oddmentsItem.vue
+12
-6
No files found.
pages/produceReturn/components/oddmentsItem.vue
View file @
f3fb308c
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
均摊明细
均摊明细
</u-button>
</u-button>
</view>
</view>
<view
class=
"item input"
>
退料数量:
<uni-easyinput
v-model=
"num"
trim=
"all"
type=
"
number
"
<view
class=
"item input"
>
退料数量:
<uni-easyinput
v-model=
"num"
trim=
"all"
type=
"
text
"
@
input=
"handleChange"
></uni-easyinput>
/PCS
@
input=
"handleChange"
></uni-easyinput>
/PCS
</view>
</view>
<view
class=
"item"
>
申请数量:
{{
batchNum
}}
/PCS
</view>
<view
class=
"item"
>
申请数量:
{{
batchNum
}}
/PCS
</view>
...
@@ -132,12 +132,18 @@
...
@@ -132,12 +132,18 @@
this
.
visible
=
false
this
.
visible
=
false
},
},
handleChange
(
val
)
{
handleChange
(
val
)
{
if
(
val
>
this
.
batchNum
)
{
if
(
!
val
.
replace
(
/^
\d
+$/g
,
''
)
||
val
.
replace
(
/^
((
-
\d
+
)
|
(
0+
))
$/g
,
''
))
{
this
.
$u
.
toast
(
"退料数量不可以超过申请数量!"
);
if
(
val
.
length
>
1
)
{
this
.
$u
.
toast
(
"请输入正数、负数或者0"
);
}
}
else
{
}
else
{
this
.
sapList
.
forEach
(
ele
=>
{
if
(
val
>
this
.
batchNum
)
{
ele
.
ERFMG
=
(
val
*
(
ele
.
quantity
/
this
.
totalNum
)).
toFixed
(
2
);
this
.
$u
.
toast
(
"退料数量不可以超过申请数量!"
);
})
}
else
{
this
.
sapList
.
forEach
(
ele
=>
{
ele
.
ERFMG
=
(
val
*
(
ele
.
quantity
/
this
.
totalNum
)).
toFixed
(
2
);
})
}
}
}
},
},
}
}
...
...
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