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
6508ee13
Commit
6508ee13
authored
Nov 13, 2024
by
tanjunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 去除退料的判断
parent
f3fb308c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
manifest.json
manifest.json
+2
-2
oddmentsItem.vue
pages/produceReturn/components/oddmentsItem.vue
+11
-11
No files found.
manifest.json
View file @
6508ee13
...
...
@@ -2,8 +2,8 @@
"name"
:
"mes-pda"
,
"appid"
:
"__UNI__FB0FD5F"
,
"description"
:
"MES-PDA"
,
"versionName"
:
"1.
1.7
"
,
"versionCode"
:
1
17
,
"versionName"
:
"1.
2.3
"
,
"versionCode"
:
1
23
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
"app-plus"
:
{
...
...
pages/produceReturn/components/oddmentsItem.vue
View file @
6508ee13
...
...
@@ -132,19 +132,19 @@
this
.
visible
=
false
},
handleChange
(
val
)
{
if
(
!
val
.
replace
(
/^
\d
+$/g
,
''
)
||
val
.
replace
(
/^
((
-
\d
+
)
|
(
0+
))
$/g
,
''
))
{
if
(
val
.
length
>
1
)
{
this
.
$u
.
toast
(
"请输入正数、负数或者0"
);
}
// if (!val.replace(/^\d+$/g, '') || val.replace(/^((-\d+)|(0+))$/g, '')) {
// if (val.length > 1) {
// this.$u.toast("请输入正数、负数或者0");
// }
// } else {
if
(
val
>
this
.
batchNum
)
{
this
.
$u
.
toast
(
"退料数量不可以超过申请数量!"
);
}
else
{
if
(
val
>
this
.
batchNum
)
{
this
.
$u
.
toast
(
"退料数量不可以超过申请数量!"
);
}
else
{
this
.
sapList
.
forEach
(
ele
=>
{
ele
.
ERFMG
=
(
val
*
(
ele
.
quantity
/
this
.
totalNum
)).
toFixed
(
2
);
})
}
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