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
c53c9ce9
Commit
c53c9ce9
authored
Apr 08, 2024
by
Hagsn3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
f9b9fb17
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
32 deletions
+45
-32
enterbound.vue
src/views/setup/enterbound.vue
+45
-32
No files found.
src/views/setup/enterbound.vue
View file @
c53c9ce9
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
v-for=
"(item,index) in warehouseList"
v-for=
"(item,index) in warehouseList"
:key=
"index"
:key=
"index"
:label=
"item.dictLabel"
:label=
"item.dictLabel"
:value=
"item.dictValue"
>
:value=
"item.dictValue"
</el-option
>
/
>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"XX:"
prop=
"value1"
>
<el-form-item
label=
"XX:"
prop=
"value1"
>
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<el-form-item>
<el-form-item>
<div
class=
"location"
>
location:
{{
queryForm
.
location
}}
</div>
<div
class=
"location"
>
location:
{{
queryForm
.
location
}}
</div>
<div
v-show=
"showPN(queryForm.location,incomeWmsLabelList.pn)"
>
<div
v-show=
"showPN(queryForm.location,incomeWmsLabelList.pn)"
>
<!-- 库PN:
{{
incomeWmsLabelList
.
pn
}}
-->
<!-- 库PN:
{{
incomeWmsLabelList
.
pn
}}
-->
<span
style=
"color: black;"
>
库PN:
</span><span
style=
"color: red;"
>
{{
incomeWmsLabelList
.
pn
}}
</span>
<span
style=
"color: black;"
>
库PN:
</span><span
style=
"color: red;"
>
{{
incomeWmsLabelList
.
pn
}}
</span>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -81,8 +81,7 @@ import {
...
@@ -81,8 +81,7 @@ import {
}
from
'@/api/incomeWmsBox'
}
from
'@/api/incomeWmsBox'
import
{
findByLocation
,
updateIncomeWmsLabel
}
from
'@/api/incomeWmsLabel'
import
{
findByLocation
,
updateIncomeWmsLabel
}
from
'@/api/incomeWmsLabel'
import
{
getInfo
}
from
'@/api/login'
import
{
getInfo
}
from
'@/api/login'
import
{
error
}
from
'autoprefixer/lib/utils'
import
{
getDict
}
from
'@/api/system/dict/data'
import
{
getDict
}
from
"@/api/system/dict/data"
;
export
default
{
export
default
{
name
:
'EnterBound'
,
name
:
'EnterBound'
,
data
()
{
data
()
{
...
@@ -138,9 +137,9 @@ export default {
...
@@ -138,9 +137,9 @@ export default {
getDictData
()
{
getDictData
()
{
// 获取仓库的数据字段
// 获取仓库的数据字段
getDict
(
'WAREHOUSE'
).
then
(
res
=>
{
getDict
(
'WAREHOUSE'
).
then
(
res
=>
{
console
.
log
(
'仓库数据字典'
,
res
)
console
.
log
(
'仓库数据字典'
,
res
)
this
.
warehouseList
=
res
.
data
this
.
warehouseList
=
res
.
data
le
t
whId
=
res
.
data
[
0
].
dictValue
cons
t
whId
=
res
.
data
[
0
].
dictValue
this
.
queryForm
.
whId
=
whId
this
.
queryForm
.
whId
=
whId
})
})
},
},
...
@@ -293,6 +292,8 @@ export default {
...
@@ -293,6 +292,8 @@ export default {
}
}
}
else
{
}
else
{
this
.
$message
.
error
(
'数据库中无对应数据'
)
this
.
$message
.
error
(
'数据库中无对应数据'
)
this
.
incomeWmsLabelList
.
pn
=
''
this
.
queryForm
.
value2
=
''
}
}
}
}
})
})
...
@@ -332,6 +333,8 @@ export default {
...
@@ -332,6 +333,8 @@ export default {
}
}
}
else
{
}
else
{
this
.
$message
.
error
(
'数据库中无对应数据'
)
this
.
$message
.
error
(
'数据库中无对应数据'
)
this
.
incomeWmsLabelList
.
pn
=
''
this
.
queryForm
.
value2
=
''
}
}
}
}
})
})
...
@@ -422,6 +425,11 @@ export default {
...
@@ -422,6 +425,11 @@ export default {
}
}
}
}
}
else
{
}
else
{
const
inputValues
=
this
.
queryForm
.
value1
.
split
(
','
)
this
.
queryForm
.
location
=
inputValues
[
0
].
trim
()
findByLocation
(
this
.
queryForm
.
location
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
data
!=
null
)
{
let
isLegalLot
=
false
let
isLegalLot
=
false
this
.
enterTable
.
forEach
(
item
=>
{
this
.
enterTable
.
forEach
(
item
=>
{
if
(
item
.
lot
===
obj
.
lot
)
{
if
(
item
.
lot
===
obj
.
lot
)
{
...
@@ -457,6 +465,11 @@ export default {
...
@@ -457,6 +465,11 @@ export default {
}
}
})
})
}
}
}
else
{
this
.
$message
.
error
(
'请输入有效的location值'
)
}
}
})
}
}
}
else
{
}
else
{
this
.
$message
.
error
(
'输入格式不符合要求,请重新输入'
)
this
.
$message
.
error
(
'输入格式不符合要求,请重新输入'
)
...
...
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