Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_pda_Web
Project
Project
Details
Activity
Releases
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
胡宝山
template_pda_Web
Commits
cedeae8a
Commit
cedeae8a
authored
Jul 15, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "去空格问题"
This reverts commit
e74405dd
parent
55a6cf7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
common.js
src/utils/common.js
+2
-2
dispose.vue
src/views/setup/dispose.vue
+7
-9
No files found.
src/utils/common.js
View file @
cedeae8a
...
...
@@ -214,6 +214,6 @@ export function customUpperCase(sourceStr) {
return
sourceStr
&&
sourceStr
!==
''
?
sourceStr
.
toUpperCase
()
:
sourceStr
}
export
function
trimAnd
UpperCaseStr
(
sourceStr
)
{
return
sourceStr
&&
sourceStr
!==
''
?
sourceStr
.
trim
(
).
toUpperCase
()
:
sourceStr
export
function
UpperCaseStr
(
sourceStr
)
{
return
sourceStr
&&
sourceStr
!==
''
?
sourceStr
.
replace
(
/
\s
+/g
,
''
).
toUpperCase
()
:
sourceStr
}
src/views/setup/dispose.vue
View file @
cedeae8a
...
...
@@ -64,7 +64,7 @@
import
{
handleOutWarehouse
,
persistOut
}
from
'@/api/setup/applicationTable'
import
{
getDict
}
from
'@/api/system/dict/data'
import
{
playAudio
,
successAudio
,
trimAnd
UpperCaseStr
}
from
'@/utils/common'
import
{
playAudio
,
successAudio
,
UpperCaseStr
}
from
'@/utils/common'
import
{
customUpperCase
}
from
'@/utils/common'
export
default
{
name
:
'Dispose'
,
...
...
@@ -167,10 +167,9 @@ export default {
for
(
let
i
=
0
;
i
<
this
.
tableList
.
length
;
i
++
)
{
const
tableObj
=
this
.
tableList
[
i
]
// 1. 匹配成功
if
(
trimAndUpperCaseStr
(
tableObj
.
location
)
===
trimAndUpperCaseStr
(
location
)
&&
trimAndUpperCaseStr
(
tableObj
.
lot
)
===
trimAndUpperCaseStr
(
lot
)
&&
this
.
formatCheBzq
(
tableObj
.
cheBzq
)
===
this
.
formatCheBzq
(
cheBzq
))
{
console
.
log
(
'56565'
,
cheBzq
)
if
(
UpperCaseStr
(
tableObj
.
location
)
===
UpperCaseStr
(
location
)
&&
UpperCaseStr
(
tableObj
.
lot
)
===
UpperCaseStr
(
lot
)
&&
this
.
formatCheBzq
(
tableObj
.
cheBzq
)
===
customUpperCase
(
cheBzq
))
{
matchFlag
=
true
matchObj
=
tableObj
matchIndex
=
i
...
...
@@ -221,7 +220,7 @@ export default {
judgePush
(
data
)
{
let
isLegalLocation
=
false
this
.
tableList
.
forEach
(
item
=>
{
if
(
trimAndUpperCaseStr
(
item
.
location
)
===
trimAnd
UpperCaseStr
(
data
))
{
if
(
UpperCaseStr
(
item
.
location
)
===
UpperCaseStr
(
data
))
{
isLegalLocation
=
true
}
})
...
...
@@ -272,7 +271,7 @@ export default {
cj_name
:
values
[
5
]
}
// 1. pn 校验
if
(
trimAndUpperCaseStr
(
obj
.
pn
)
!==
trimAnd
UpperCaseStr
(
this
.
form
.
pn
))
{
if
(
UpperCaseStr
(
obj
.
pn
)
!==
UpperCaseStr
(
this
.
form
.
pn
))
{
playAudio
(
true
)
this
.
$message
.
error
({
message
:
'PN值不符合要求请重新输入!'
,
...
...
@@ -332,8 +331,7 @@ export default {
}
},
formatCheBzq
(
date
)
{
const
NewDate
=
date
.
trim
()
return
NewDate
?
NewDate
.
split
(
' '
)[
0
].
replace
(
/-/g
,
'/'
)
:
''
return
date
?
date
.
split
(
' '
)[
0
].
replace
(
/-/g
,
'/'
)
:
''
}
}
}
...
...
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