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
59fd9ded
Commit
59fd9ded
authored
Aug 29, 2022
by
黄卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入仓储位只显示当前城市的仓库
parent
54a7f545
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
24 deletions
+26
-24
index.vue
src/components/WarehouseAreaDialog/index.vue
+20
-22
index.vue
src/views/ecw/order/warehousing/index.vue
+6
-2
No files found.
src/components/WarehouseAreaDialog/index.vue
View file @
59fd9ded
...
...
@@ -86,6 +86,25 @@ export default {
visible
(
val
)
{
if
(
val
)
{
this
.
opened
=
true
getByWarehouseId
({
cityId
:
this
.
cityId
}).
then
(
r
=>
{
const
area
=
r
.
data
area
.
forEach
(
e
=>
{
// 仓库
e
.
children
.
forEach
(
f
=>
{
// 区域
f
.
selected
=
false
if
(
f
.
positionList
)
f
.
positionList
.
forEach
(
g
=>
{
// 位置
g
.
children
.
forEach
(
k
=>
{
// 子位置
k
.
selected
=
false
})
})
})
})
this
.
area
=
area
})
}
else
{
}
},
...
...
@@ -148,28 +167,7 @@ export default {
},
mounted
()
{
if
(
this
.
visible
)
{
this
.
opened
=
true
}
getByWarehouseId
({
cityId
:
this
.
cityId
}).
then
(
r
=>
{
const
area
=
r
.
data
area
.
forEach
(
e
=>
{
// 仓库
e
.
children
.
forEach
(
f
=>
{
// 区域
f
.
selected
=
false
if
(
f
.
positionList
)
f
.
positionList
.
forEach
(
g
=>
{
// 位置
g
.
children
.
forEach
(
k
=>
{
// 子位置
k
.
selected
=
false
})
})
})
})
this
.
area
=
area
})
console
.
log
(
'
area dialog mounted
'
)
},
computed
:
{
...
...
src/views/ecw/order/warehousing/index.vue
View file @
59fd9ded
...
...
@@ -58,7 +58,7 @@
v-slot=
"{row}"
label=
"状态"
>
<dict-tag
v-if=
"row.warehouseInInfoVO && row.warehouseInInfoVO.diffType"
:type=
"DICT_TYPE.ORDER_WAREHOUSE_IN_STATUS"
:value=
"row.warehouseInInfoVO.diffType"
class=
"red"
:class=
"{green: row.warehouseInInfoVO.diffType === 4}"
/>
<span
class=
"red"
v-
show=
"
row.warehouseInInfoVO.cartonsNumDiff"
>
{{ row.warehouseInInfoVO.cartonsNumDiff }}箱
</span>
<span
class=
"red"
v-
if=
"row.warehouseInInfoVO &&
row.warehouseInInfoVO.cartonsNumDiff"
>
{{ row.warehouseInInfoVO.cartonsNumDiff }}箱
</span>
</el-table-column>
<el-table-column
prop=
"address"
...
...
@@ -105,7 +105,8 @@
</div>
</el-form>
<warehouse-area-dialog
ref=
"area"
:visible.sync=
"areaVisible"
v-model=
"form.orderLocationCreateReqVOList"
:order-id=
"orderId"
:city-id=
"order.departureVO.departureId"
></warehouse-area-dialog>
<warehouse-area-dialog
ref=
"area"
:visible.sync=
"areaVisible"
v-model=
"form.orderLocationCreateReqVOList"
:order-id=
"orderId"
:city-id=
"cityId"
></warehouse-area-dialog>
<edit-dialog
:visible.sync=
"warehousingVisible"
:warehousing=
"warehousing"
:edit=
"order.status === 5"
></edit-dialog>
...
...
@@ -318,6 +319,9 @@ export default {
}
})
return
result
},
cityId
(){
return
this
.
order
?.
departureVO
?.
departureId
}
}
}
...
...
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