Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
9bc7a3f6
Commit
9bc7a3f6
authored
Dec 06, 2022
by
黄卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调仓储位相关修改
parent
d267a48f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
63 deletions
+10
-63
transferWarehousing.vue
src/views/ecw/order/transferWarehousing.vue
+10
-63
No files found.
src/views/ecw/order/transferWarehousing.vue
View file @
9bc7a3f6
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
<
el
-
descriptions
style
=
"
margin-top: 20px
"
:
column
=
"
4
"
border
>
<
el
-
descriptions
style
=
"
margin-top: 20px
"
:
column
=
"
4
"
border
>
<
el
-
descriptions
-
item
:
label
=
"
$t('集运仓库')
"
>
{{
warehouseDetails
&&
warehouseDetails
.
warehouseOutName
?
warehouseDetails
.
warehouseOutName
:
''
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('集运仓库')
"
>
{{
warehouseDetails
&&
warehouseDetails
.
warehouseOutName
?
warehouseDetails
.
warehouseOutName
:
''
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('储位')
"
>
<
el
-
descriptions
-
item
:
label
=
"
$t('储位')
"
>
<
div
v
-
for
=
"
item in storageSpaceList
"
style
=
"
display: flex;
"
><
div
>
{{
item
.
warehouseName
?
item
.
warehouseName
:
''
}}
{{
$t
(
'
仓
'
)
}}
<
/div><div>{{item.warehouseName
?
item.regionName :''
}}
{{$t
(
'区'
)
}}
</
div
>
<
div
>
{{
item
.
code
}}
<
/div></
div
>
{{
(
$refs
.
area
?
$refs
.
area
.
selected
:
[]).
join
(
'
,
'
)
}}
<
/el-descriptions-item
>
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
v
-
if
=
"
type == 2
"
:
label
=
"
$t('选择储位')
"
>
<
el
-
descriptions
-
item
v
-
if
=
"
type == 2
"
:
label
=
"
$t('选择储位')
"
>
<
div
@
click
=
"
areaVisible = true
"
style
=
"
color: #0a84ff;cursor: pointer;
"
>
{{
$t
(
'
选择储位
'
)
}}
<
/div
>
<
div
@
click
=
"
areaVisible = true
"
style
=
"
color: #0a84ff;cursor: pointer;
"
>
{{
$t
(
'
选择储位
'
)
}}
<
/div
>
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
<
el
-
button
v
-
if
=
"
type == 1
"
size
=
"
medium
"
@
click
=
"
cancellationOfOrder
"
>
{{
$t
(
'
取消调仓
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
type == 1
"
size
=
"
medium
"
@
click
=
"
cancellationOfOrder
"
>
{{
$t
(
'
取消调仓
'
)
}}
<
/el-button
>
<
el
-
button
size
=
"
medium
"
@
click
=
"
$tab.closeOpenPage({path:'/order/order'
}
)
"
>
{{
$t
(
'
返回
'
)
}}
<
/el-button
>
<
el
-
button
size
=
"
medium
"
@
click
=
"
$tab.closeOpenPage({path:'/order/order'
}
)
"
>
{{
$t
(
'
返回
'
)
}}
<
/el-button
>
<
/div
>
<
/div
>
<
warehouse
-
location
ref
=
"
area
"
:
city
-
id
=
"
warehouseInShi
"
:
visible
.
sync
=
"
areaVisible
"
v
-
model
=
"
params.orderLocationCreateReqVOList
"
:
warehouse
-
id
=
"
warehouseDetails.warehouseInId
"
:
order
-
id
=
"
Number(orderId)
"
><
/warehouse-location
>
<
warehouse
-
location
ref
=
"
area
"
:
visible
.
sync
=
"
areaVisible
"
v
-
model
=
"
params.orderLocationCreateReqVOList
"
:
warehouse
-
id
=
"
warehouseDetails.warehouseInId
"
:
order
-
id
=
"
Number(orderId)
"
><
/warehouse-location
>
<
el
-
dialog
:
title
=
"
$t('订单转异')
"
center
:
visible
.
sync
=
"
escapeBol
"
>
<
el
-
dialog
:
title
=
"
$t('订单转异')
"
center
:
visible
.
sync
=
"
escapeBol
"
>
<
el
-
form
label
-
position
=
"
top
"
label
-
width
=
"
200
"
>
<
el
-
form
label
-
position
=
"
top
"
label
-
width
=
"
200
"
>
<
el
-
form
-
item
:
label
=
"
$t('原因类型')
"
>
<
el
-
form
-
item
:
label
=
"
$t('原因类型')
"
>
...
@@ -160,7 +160,7 @@ import ImageAndVideoUpload from "@/components/ImageAndVideoUpload/index";
...
@@ -160,7 +160,7 @@ import ImageAndVideoUpload from "@/components/ImageAndVideoUpload/index";
import
{
getSupplierPage
}
from
"
@/api/ecw/supplier
"
;
import
{
getSupplierPage
}
from
"
@/api/ecw/supplier
"
;
import
{
getByWarehouseId
}
from
"
@/api/ecw/warehouseArea
"
;
import
{
getByWarehouseId
}
from
"
@/api/ecw/warehouseArea
"
;
import
{
adjustLastWithStatus
,
warehouseApprovalCancel
}
from
"
@/api/ecw/batchSingleApplication
"
;
import
{
adjustLastWithStatus
,
warehouseApprovalCancel
}
from
"
@/api/ecw/batchSingleApplication
"
;
import
warehouseLocation
from
"
@/
views/ecw/order/components/warehouseLocation
"
;
import
warehouseLocation
from
"
@/
components/WarehouseAreaDialog
"
;
import
imageUpload
from
"
@/components/ImageUpload
"
;
import
imageUpload
from
"
@/components/ImageUpload
"
;
import
{
getProductBrankPage
}
from
"
@/api/ecw/productBrank
"
;
import
{
getProductBrankPage
}
from
"
@/api/ecw/productBrank
"
;
import
{
parseTime
}
from
"
@/utils/ruoyi
"
;
import
{
parseTime
}
from
"
@/utils/ruoyi
"
;
...
@@ -280,35 +280,11 @@ export default {
...
@@ -280,35 +280,11 @@ export default {
this
.
warehouseDetails
=
r
.
data
[
r
.
data
.
length
-
1
]
this
.
warehouseDetails
=
r
.
data
[
r
.
data
.
length
-
1
]
listByOrderId
({
orderId
:
this
.
orderId
}
).
then
(
res
=>
{
listByOrderId
({
orderId
:
this
.
orderId
}
).
then
(
res
=>
{
if
(
res
.
code
===
0
){
if
(
res
.
code
===
0
){
getByWarehouseId
().
then
(
r
=>
{
this
.
params
.
orderLocationCreateReqVOList
=
res
.
data
let
obj
=
[];
res
.
data
.
forEach
(
item
=>
{
// 等待仓库id和已选的储位后初始化储位信息
r
.
data
.
forEach
(
itemm
=>
{
this
.
$nextTick
(()
=>
{
if
(
item
.
wareId
===
itemm
.
id
){
this
.
$refs
.
area
.
updateArea
()
itemm
.
children
.
forEach
(
itemmm
=>
{
if
(
itemmm
.
id
===
item
.
areaId
){
if
(
itemmm
.
positionList
.
length
>
0
){
itemmm
.
positionList
.
forEach
(
ic
=>
{
if
(
ic
.
children
&&
ic
.
children
.
length
>
0
){
ic
.
children
.
forEach
(
icc
=>
{
if
(
icc
.
id
===
item
.
locationId
){
obj
.
push
({
warehouseName
:
itemm
.
name
,
regionName
:
itemmm
.
name
,
code
:
icc
.
code
}
)
}
}
)
}
}
)
}
}
}
)
}
}
)
}
)
console
.
log
(
obj
)
this
.
storageSpaceList
=
obj
;
}
)
}
)
}
}
}
)
}
)
...
@@ -392,37 +368,8 @@ export default {
...
@@ -392,37 +368,8 @@ export default {
}
,
}
,
}
,
}
,
watch
:{
watch
:{
'
params.orderLocationCreateReqVOList
'
(
val
){
'
params.orderLocationCreateReqVOList
'
(
vo
,
vn
){
console
.
log
(
val
,
'
val
'
);
console
.
log
(
vo
,
vn
)
getByWarehouseId
().
then
(
r
=>
{
let
obj
=
[];
val
.
forEach
(
item
=>
{
r
.
data
.
forEach
(
itemm
=>
{
if
(
item
.
wareId
===
itemm
.
id
){
itemm
.
children
.
forEach
(
itemmm
=>
{
if
(
itemmm
.
id
===
item
.
areaId
){
if
(
itemmm
.
positionList
&&
itemmm
.
positionList
.
length
>
0
){
itemmm
.
positionList
.
forEach
(
ic
=>
{
if
(
ic
.
children
&&
ic
.
children
.
length
>
0
){
ic
.
children
.
forEach
(
icc
=>
{
if
(
icc
.
id
===
item
.
locationId
){
obj
.
push
({
warehouseName
:
itemm
.
name
,
regionName
:
itemmm
.
name
,
code
:
icc
.
code
}
)
}
}
)
}
}
)
}
}
}
)
}
}
)
}
)
this
.
storageSpaceList
=
obj
;
}
)
}
}
}
}
}
}
...
...
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