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
a33fafb6
Commit
a33fafb6
authored
May 20, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.阻止表单的默认上传行为
parent
16c9408a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
checkTheApplicationForExit.vue
src/views/setup/checkTheApplicationForExit.vue
+9
-9
dispose.vue
src/views/setup/dispose.vue
+5
-5
No files found.
src/views/setup/checkTheApplicationForExit.vue
View file @
a33fafb6
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<hr
class=
"disposeHr"
>
<hr
class=
"disposeHr"
>
<div
class=
"disposeTable"
>
<div
class=
"disposeTable"
>
<div
class=
"searchInput"
>
<div
class=
"searchInput"
>
<el-form
ref=
"formRef"
:model=
"searchForm"
:rules=
"rules"
label-width=
"80px"
class=
"formClass"
label-position=
"right"
>
<el-form
@
submit
.
native
.
prevent
ref=
"formRef"
:model=
"searchForm"
:rules=
"rules"
label-width=
"80px"
class=
"formClass"
label-position=
"right"
>
<el-form-item
label=
"位置"
prop=
"search"
>
<el-form-item
label=
"位置"
prop=
"search"
>
<el-input
ref=
"input1"
v-model=
"searchForm.search"
clearable
@
keyup
.
enter
.
native=
"handleSearch"
/>
<el-input
ref=
"input1"
v-model=
"searchForm.search"
clearable
@
keyup
.
enter
.
native=
"handleSearch"
/>
</el-form-item>
</el-form-item>
...
@@ -174,7 +174,7 @@ export default {
...
@@ -174,7 +174,7 @@ export default {
var
list
=
[]
var
list
=
[]
// 判断tableList中location和search及lot相同的元素个数
// 判断tableList中location和search及lot相同的元素个数
this
.
tableList
.
forEach
((
item
,
index
)
=>
{
this
.
tableList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
location
===
search
&&
item
.
lot
===
lot
)
{
if
(
item
.
location
.
toUpperCase
()
===
search
.
toUpperCase
()
&&
item
.
lot
.
toUpperCase
()
===
lot
.
toUpperCase
()
)
{
list
.
push
(
index
)
list
.
push
(
index
)
}
}
})
})
...
@@ -187,8 +187,8 @@ export default {
...
@@ -187,8 +187,8 @@ export default {
}
}
if
(
list
.
length
>
1
)
{
if
(
list
.
length
>
1
)
{
// 是否能从储存中找到location
// 是否能从储存中找到location
if
(
this
.
storeList
.
find
(
Litem
=>
Litem
.
location
===
search
&&
Litem
.
lot
===
lot
))
{
if
(
this
.
storeList
.
find
(
Litem
=>
Litem
.
location
.
toUpperCase
()
===
search
.
toUpperCase
()
&&
Litem
.
lot
.
toUpperCase
()
===
lot
.
toUpperCase
()
))
{
var
index
=
this
.
storeList
.
findIndex
(
Litem
=>
Litem
.
location
===
search
&&
Litem
.
lot
===
lot
)
var
index
=
this
.
storeList
.
findIndex
(
Litem
=>
Litem
.
location
.
toUpperCase
()
===
search
.
toUpperCase
()
&&
Litem
.
lot
.
toUpperCase
()
===
lot
.
toUpperCase
()
)
this
.
storeList
[
index
].
frequency
=
this
.
storeList
[
index
].
frequency
+
1
this
.
storeList
[
index
].
frequency
=
this
.
storeList
[
index
].
frequency
+
1
if
(
this
.
storeList
[
index
].
frequency
<
this
.
storeList
[
index
].
list
.
length
)
{
if
(
this
.
storeList
[
index
].
frequency
<
this
.
storeList
[
index
].
list
.
length
)
{
last
.
index
=
this
.
storeList
[
index
].
list
[
this
.
storeList
[
index
].
frequency
]
last
.
index
=
this
.
storeList
[
index
].
list
[
this
.
storeList
[
index
].
frequency
]
...
@@ -233,9 +233,10 @@ export default {
...
@@ -233,9 +233,10 @@ export default {
list
:
[],
list
:
[],
frequency
:
0
frequency
:
0
}
}
// 判断tableList中location和search相同的元素个数
// 判断tableList中location和search相同的元素个数
this
.
tableList
.
forEach
((
item
,
index
)
=>
{
this
.
tableList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
location
===
search
&&
item
.
lot
===
lot
)
{
if
(
item
.
location
.
toUpperCase
()
===
search
.
toUpperCase
()
&&
item
.
lot
===
lot
)
{
obj
.
list
.
push
(
index
)
obj
.
list
.
push
(
index
)
}
}
})
})
...
@@ -302,7 +303,7 @@ export default {
...
@@ -302,7 +303,7 @@ export default {
judgePush
(
data
)
{
judgePush
(
data
)
{
let
isLegalLocation
=
false
let
isLegalLocation
=
false
this
.
tableList
.
forEach
(
item
=>
{
this
.
tableList
.
forEach
(
item
=>
{
if
(
item
.
location
===
data
)
{
if
(
item
.
location
.
toUpperCase
()
===
data
.
toUpperCase
()
)
{
isLegalLocation
=
true
isLegalLocation
=
true
}
}
})
})
...
@@ -344,10 +345,9 @@ export default {
...
@@ -344,10 +345,9 @@ export default {
qty
:
parseInt
(
values
[
3
]),
qty
:
parseInt
(
values
[
3
]),
rank
:
values
[
2
]
rank
:
values
[
2
]
}
}
console
.
log
(
obj
)
/** ptyp为1的时候*/
/** ptyp为1的时候*/
if
(
this
.
form
.
ptype
===
'1'
)
{
if
(
this
.
form
.
ptype
===
'1'
)
{
if
(
obj
.
pn
!==
this
.
form
.
pn
||
obj
.
lot
!==
this
.
form
.
lot
||
obj
.
rank
!==
this
.
form
.
rank
)
{
if
(
obj
.
pn
.
toUpperCase
()
!==
this
.
form
.
pn
.
toUpperCase
()
||
obj
.
lot
.
toUpperCase
()
!==
this
.
form
.
lot
.
toUpperCase
()
||
obj
.
rank
.
toUpperCase
()
!==
this
.
form
.
rank
.
toUpperCase
()
)
{
playAudio
(
true
)
playAudio
(
true
)
this
.
$message
.
error
({
this
.
$message
.
error
({
message
:
'输入不符合要求请重新输入!'
,
message
:
'输入不符合要求请重新输入!'
,
...
@@ -382,7 +382,7 @@ export default {
...
@@ -382,7 +382,7 @@ export default {
}
}
}
else
{
}
else
{
// ptype不为1的时候
// ptype不为1的时候
if
(
obj
.
pn
!==
this
.
form
.
pn
||
obj
.
lot
!==
this
.
form
.
lot
)
{
if
(
obj
.
pn
.
toUpperCase
()
!==
this
.
form
.
pn
.
toUpperCase
()
||
obj
.
lot
.
toUpperCase
()
!==
this
.
form
.
lot
.
toUpperCase
()
)
{
playAudio
(
true
)
playAudio
(
true
)
this
.
$message
.
error
({
this
.
$message
.
error
({
message
:
'输入不符合要求请重新输入!'
,
message
:
'输入不符合要求请重新输入!'
,
...
...
src/views/setup/dispose.vue
View file @
a33fafb6
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<hr
class=
"disposeHr"
>
<hr
class=
"disposeHr"
>
<div
class=
"disposeTable"
>
<div
class=
"disposeTable"
>
<div
class=
"searchInput"
>
<div
class=
"searchInput"
>
<el-form
ref=
"formRef"
:model=
"searchForm"
:rules=
"rules"
label-width=
"80px"
class=
"formClass"
label-position=
"right"
>
<el-form
@
submit
.
native
.
prevent
ref=
"formRef"
:model=
"searchForm"
:rules=
"rules"
label-width=
"80px"
class=
"formClass"
label-position=
"right"
>
<el-form-item
label=
"位置"
>
<el-form-item
label=
"位置"
>
<el-input
ref=
"input1"
v-model=
"searchForm.search"
clearable
@
keyup
.
enter
.
native=
"handleSearch"
/>
<el-input
ref=
"input1"
v-model=
"searchForm.search"
clearable
@
keyup
.
enter
.
native=
"handleSearch"
/>
</el-form-item>
</el-form-item>
...
@@ -158,7 +158,7 @@ export default {
...
@@ -158,7 +158,7 @@ export default {
var
list
=
[]
var
list
=
[]
// 判断tableList中location和search相同的元素个数
// 判断tableList中location和search相同的元素个数
this
.
tableList
.
forEach
((
item
,
index
)
=>
{
this
.
tableList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
location
===
search
)
{
if
(
item
.
location
.
toUpperCase
()
===
search
.
toUpperCase
()
)
{
list
.
push
(
index
)
list
.
push
(
index
)
}
}
})
})
...
@@ -170,8 +170,8 @@ export default {
...
@@ -170,8 +170,8 @@ export default {
}
}
if
(
list
.
length
>
1
)
{
if
(
list
.
length
>
1
)
{
// 是否能从储存中找到location
// 是否能从储存中找到location
if
(
this
.
storeList
.
find
(
Litem
=>
Litem
.
location
===
search
))
{
if
(
this
.
storeList
.
find
(
Litem
=>
Litem
.
location
.
toUpperCase
()
===
search
.
toUpperCase
()
))
{
var
index
=
this
.
storeList
.
findIndex
(
Litem
=>
Litem
.
location
===
search
)
var
index
=
this
.
storeList
.
findIndex
(
Litem
=>
Litem
.
location
.
toUpperCase
()
===
search
.
toUpperCase
()
)
this
.
storeList
[
index
].
frequency
=
this
.
storeList
[
index
].
frequency
+
1
this
.
storeList
[
index
].
frequency
=
this
.
storeList
[
index
].
frequency
+
1
if
(
this
.
storeList
[
index
].
frequency
<
this
.
storeList
[
index
].
list
.
length
)
{
if
(
this
.
storeList
[
index
].
frequency
<
this
.
storeList
[
index
].
list
.
length
)
{
last
.
index
=
this
.
storeList
[
index
].
list
[
this
.
storeList
[
index
].
frequency
]
last
.
index
=
this
.
storeList
[
index
].
list
[
this
.
storeList
[
index
].
frequency
]
...
@@ -213,7 +213,7 @@ export default {
...
@@ -213,7 +213,7 @@ export default {
}
}
// 判断tableList中location和search相同的元素个数
// 判断tableList中location和search相同的元素个数
this
.
tableList
.
forEach
((
item
,
index
)
=>
{
this
.
tableList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
location
===
search
)
{
if
(
item
.
location
.
toUpperCase
()
===
search
.
toUpperCase
()
)
{
obj
.
list
.
push
(
index
)
obj
.
list
.
push
(
index
)
}
}
})
})
...
...
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