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
d7cc907b
Commit
d7cc907b
authored
Sep 28, 2022
by
黄卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入仓名称 及按钮显示
parent
b7e16ce6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
15 deletions
+41
-15
index.vue
src/views/ecw/order/index.vue
+2
-2
editDialog.vue
src/views/ecw/order/warehousing/components/editDialog.vue
+8
-3
index.vue
src/views/ecw/order/warehousing/index.vue
+31
-10
No files found.
src/views/ecw/order/index.vue
View file @
d7cc907b
...
@@ -254,13 +254,13 @@
...
@@ -254,13 +254,13 @@
include(scope.row.inWarehouseState, [201,202, 208, 202, 210, 202, 211, 202, 213, 214, 215, 216]) ||
include(scope.row.inWarehouseState, [201,202, 208, 202, 210, 202, 211, 202, 213, 214, 215, 216]) ||
include(scope.row.abnormalState, [99 ,2 ,3 ,4 ,9 ,10 ,11 ,12 ,14])
include(scope.row.abnormalState, [99 ,2 ,3 ,4 ,9 ,10 ,11 ,12 ,14])
"
>
"
>
<el-dropdown-item
@
click.native=
"$router.push('/order/warehousing?id=' + scope.row.orderId)"
v-hasPermi=
"['ecw:order:update']"
>
{{
$t
(
'
入仓补充
'
)
}}
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"$router.push('/order/warehousing
-add
?id=' + scope.row.orderId)"
v-hasPermi=
"['ecw:order:update']"
>
{{
$t
(
'
入仓补充
'
)
}}
</el-dropdown-item>
</
template
>
</
template
>
<!-- 入仓修改 -->
<!-- 入仓修改 -->
<
template
v-if=
"
<
template
v-if=
"
include(scope.row.inWarehouseState, [202, 207, 208, 202, 209, 210, 202, 211, 212, 202, 213, 214, 215, 216, 204, 205, 206])
include(scope.row.inWarehouseState, [202, 207, 208, 202, 209, 210, 202, 211, 212, 202, 213, 214, 215, 216, 204, 205, 206])
"
>
"
>
<el-dropdown-item
@
click.native=
"$router.push('/order/warehousing?id=' + scope.row.orderId)"
v-hasPermi=
"['ecw:order:update']"
>
{{
$t
(
'
入仓修改
'
)
}}
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"$router.push('/order/warehousing
-update
?id=' + scope.row.orderId)"
v-hasPermi=
"['ecw:order:update']"
>
{{
$t
(
'
入仓修改
'
)
}}
</el-dropdown-item>
</
template
>
</
template
>
<!-- 退仓 -->
<!-- 退仓 -->
...
...
src/views/ecw/order/warehousing/components/editDialog.vue
View file @
d7cc907b
<
template
>
<
template
>
<div>
<div>
<el-dialog
<el-dialog
:title=
"
(edit ? '入仓修改' : (warehousing.orderWarehouseInBackItemDoList.length > 0 ? '入仓补充' : '入仓操作'))
+ ' - ' + warehousing.orderNo"
:title=
"
title
+ ' - ' + warehousing.orderNo"
:visible.sync=
"opened"
:visible.sync=
"opened"
width=
"1080px"
width=
"1080px"
>
>
...
@@ -442,8 +442,10 @@ export default {
...
@@ -442,8 +442,10 @@ export default {
this
.
form
.
orderWarehouseInItemDoList
=
[]
this
.
form
.
orderWarehouseInItemDoList
=
[]
this
.
form1
.
orderWarehouseInItemDoList
=
[]
this
.
form1
.
orderWarehouseInItemDoList
=
[]
this
.
activeName
=
'
first
'
this
.
activeName
=
'
first
'
this
.
handleAdd
()
if
(
!
this
.
edit
){
this
.
handleAdd
(
1
)
this
.
handleAdd
()
this
.
handleAdd
(
1
)
}
}
}
}
}
},
},
...
@@ -587,6 +589,9 @@ export default {
...
@@ -587,6 +589,9 @@ export default {
},
},
computed
:
{
computed
:
{
title
()
{
return
this
.
$route
.
name
},
brandObject
(){
brandObject
(){
return
this
.
brandList
.
find
(
e
=>
e
.
id
===
this
.
form
.
brand
)
||
''
return
this
.
brandList
.
find
(
e
=>
e
.
id
===
this
.
form
.
brand
)
||
''
},
},
...
...
src/views/ecw/order/warehousing/index.vue
View file @
d7cc907b
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<h2>
入仓操作
-
{{
order
.
orderNo
}}
</h2>
<h2>
{{
title
}}
-
{{
order
.
orderNo
}}
</h2>
<order-base-info
:order=
"order"
></order-base-info>
<order-base-info
:order=
"order"
></order-base-info>
...
@@ -74,14 +74,12 @@
...
@@ -74,14 +74,12 @@
prop=
"address"
prop=
"address"
label=
"操作"
>
label=
"操作"
>
<
template
v-slot=
"{ row, column, $index }"
>
<
template
v-slot=
"{ row, column, $index }"
>
<el-button
v-if=
"order.status === 5"
size=
"mini"
type=
"text"
@
click=
"handleWarehousing($index)"
>
修改
</el-button>
<el-button
v-if=
"isEdit"
size=
"mini"
type=
"text"
@
click=
"handleWarehousing($index)"
>
修改
</el-button>
<template
v-else
>
<template
v-else-if=
"orderItemList[$index] && orderItemList[$index].orderWarehouseInBackItemDoList && orderItemList[$index].orderWarehouseInBackItemDoList.length > 0"
>
<template
v-if=
"orderItemList[$index] && orderItemList[$index].orderWarehouseInBackItemDoList && orderItemList[$index].orderWarehouseInBackItemDoList.length > 0"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"handleWarehousing($index)"
>
追加
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"handleWarehousing($index)"
>
追加
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"handleWarehousingReturn(row)"
>
退仓
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"handleWarehousingReturn(row)"
>
退仓
</el-button>
</
template
>
<el-button
v-else
size=
"mini"
type=
"text"
@
click=
"handleWarehousing($index)"
>
入仓
</el-button>
</
template
>
</
template
>
<el-button
v-else
size=
"mini"
type=
"text"
@
click=
"handleWarehousing($index)"
>
入仓
</el-button>
</template>
</template>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -145,7 +143,7 @@
...
@@ -145,7 +143,7 @@
<warehouse-area-dialog
ref=
"area"
:visible.sync=
"areaVisible"
v-model=
"form.orderLocationCreateReqVOList"
<warehouse-area-dialog
ref=
"area"
:visible.sync=
"areaVisible"
v-model=
"form.orderLocationCreateReqVOList"
:order-id=
"orderId"
:city-id=
"cityId"
></warehouse-area-dialog>
:order-id=
"orderId"
:city-id=
"cityId"
></warehouse-area-dialog>
<edit-dialog
:
customer-id=
"order.customerId"
:visible.sync=
"warehousingVisible"
:warehousing=
"warehousing"
:edit=
"order.status === 5
"
></edit-dialog>
<edit-dialog
:
title=
"title"
:customer-id=
"order.customerId"
:visible.sync=
"warehousingVisible"
:warehousing=
"warehousing"
:edit=
"isEdit
"
></edit-dialog>
<!-- 完成入仓 -->
<!-- 完成入仓 -->
<el-dialog
<el-dialog
...
@@ -267,6 +265,16 @@ export default {
...
@@ -267,6 +265,16 @@ export default {
},
},
methods
:
{
methods
:
{
include
(){
return
(
state
,
arr
)
=>
{
return
arr
.
indexOf
(
state
)
>
-
1
}
},
exclude
(){
return
(
state
,
arr
)
=>
{
return
arr
.
indexOf
(
state
)
==
-
1
}
},
handleLabelSubmit
(){
handleLabelSubmit
(){
orderWarehouseInUpdateLabel
({
orderWarehouseInUpdateLabel
({
...
this
.
label
,
...
this
.
label
,
...
@@ -374,7 +382,11 @@ export default {
...
@@ -374,7 +382,11 @@ export default {
this
.
getOrder
()
this
.
getOrder
()
})
})
}).
catch
(()
=>
{
}).
catch
(
e
=>
{
this
.
$message
({
type
:
'
success
'
,
message
:
e
.
msg
||
'
退仓失败!
'
});
});
});
}
}
},
},
...
@@ -398,6 +410,15 @@ export default {
...
@@ -398,6 +410,15 @@ export default {
},
},
computed
:
{
computed
:
{
// isAdd() {
// return this.$route.path === "/order/warehousing-add"
// },
isEdit
()
{
return
this
.
$route
.
path
===
"
/order/warehousing-update
"
},
title
()
{
return
this
.
$route
.
name
},
orderSpecialNeedsDict
()
{
orderSpecialNeedsDict
()
{
return
this
.
$store
.
state
.
dict
.
dictDatas
.
order_special_needs
return
this
.
$store
.
state
.
dict
.
dictDatas
.
order_special_needs
},
},
...
...
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