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
6d9de9f5
Commit
6d9de9f5
authored
Apr 02, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev1.6' into dev1.6
parents
53a83095
9f380f9f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
14 deletions
+48
-14
Warehouse.vue
src/views/ecw/order/warehousing/components/Warehouse.vue
+15
-6
index.vue
src/views/ecw/order/warehousing/index.vue
+33
-8
No files found.
src/views/ecw/order/warehousing/components/Warehouse.vue
View file @
6d9de9f5
...
...
@@ -359,7 +359,6 @@
</el-tab-pane>
</el-tabs>
<div
v-if=
"edit"
>
<h2>
{{ $t('审批流程') }}
</h2>
<work-flow
xmlkey=
"free_apply"
v-model=
"selectedUsers"
/>
...
...
@@ -420,7 +419,17 @@ export default {
type
:
Boolean
,
default
:
false
},
warehousing
:
{
orderItemA
:
{
type
:
Object
,
default
:
()
=>
{
return
{
material
:
undefined
,
inTime
:
undefined
,
orderWarehouseInBackItemDoList
:
[]
}
}
},
orderItemB
:
{
type
:
Object
,
default
:
()
=>
{
return
{
...
...
@@ -433,6 +442,9 @@ export default {
},
computed
:
{
warehousing
(){
return
{...
this
.
orderItemA
,
...
this
.
orderItemB
}
},
orderId
(){
return
this
.
order
.
orderId
},
...
...
@@ -490,6 +502,7 @@ export default {
if
(
val
)
{
this
.
getProductBrandPage
(
this
.
warehousing
.
brandName
)
this
.
handleBrandChange
(
parseInt
(
this
.
form
.
brand
))
this
.
init
()
}
else
{
this
.
$emit
(
'
close
'
)
}
...
...
@@ -564,10 +577,6 @@ export default {
}
},
mounted
()
{
this
.
init
()
},
methods
:
{
init
(){
this
.
form
.
table
=
this
.
warehousing
.
orderWarehouseInBackItemDoList
...
...
src/views/ecw/order/warehousing/index.vue
View file @
6d9de9f5
...
...
@@ -11,6 +11,7 @@
<h2>
{{
$t
(
'
货物信息
'
)
}}
</h2>
<el-table
v-if=
"order.orderItemVOList && order.orderItemVOList.length > 0 && orderItemList && orderItemList.length > 0"
:data=
"order.orderItemVOList || []"
style=
"width: 100%"
>
<el-table-column
...
...
@@ -81,16 +82,36 @@
prop=
"address"
:label=
"$t('操作')"
>
<
template
v-slot=
"{ row, column, $index }"
>
<warehouse
v-if=
"isEdit"
:warehousing=
"
{...order.orderItemVOList[$index], ...orderItemList[$index]}" :title="$t('修改')" :order="order" @close="getList">
</warehouse>
<warehouse
v-if=
"isEdit"
:order-item-a=
"order.orderItemVOList[$index]"
:order-item-b=
"orderItemList[$index]"
:title=
"$t('修改')"
:order=
"order"
@
close=
"getList"
></warehouse>
<!--
<el-button
v-if=
"isEdit"
size=
"mini"
type=
"text"
@
click=
"handleWarehousing(row)"
>
{{
$t
(
'
修改
'
)
}}
</el-button>
-->
<template
v-else-if=
"isAdd"
>
<template
v-else-if=
"
wareItem(row.orderItemId)
&& wareItem(row.orderItemId).orderWarehouseInBackItemDoList
&& wareItem(row.orderItemId).orderWarehouseInBackItemDoList.length > 0"
>
<!--
<template
v-if=
"!order.parentOrderId"
>
-->
<warehouse
:warehousing=
"
{...order.orderItemVOList[$index], ...orderItemList[$index]}" :title="$t('追加')" :order="order" @close="getList">
</warehouse>
<warehouse
:order-item-a=
"order.orderItemVOList[$index]"
:order-item-b=
"orderItemList[$index]"
:title=
"$t('追加')"
:order=
"order"
@
close=
"getList"
></warehouse>
<!--
<el-button
size=
"mini"
type=
"text"
@
click=
"handleWarehousing(row)"
>
{{
$t
(
'
追加
'
)
}}
</el-button>
-->
<el-button
size=
"mini"
type=
"text"
@
click=
"handleWarehousingReturn(row)"
>
{{
$t
(
'
退仓
'
)
}}
</el-button>
<!--
</
template
>
-->
</template>
<warehouse
v-else
:warehousing=
"{...order.orderItemVOList[$index], ...orderItemList[$index]}"
:title=
"$t('入仓')"
:order=
"order"
@
close=
"getList"
></warehouse>
<warehouse
v-else
:order-item-a=
"order.orderItemVOList[$index]"
:order-item-b=
"orderItemList[$index]"
:title=
"$t('入仓')"
:order=
"order"
@
close=
"getList"
></warehouse>
<!-- <el-button v-else size="mini" type="text" @click="handleWarehousing(row)">{{$t('入仓')}}</el-button>-->
</template>
</el-table-column>
...
...
@@ -233,7 +254,7 @@ export default {
mounted
()
{
if
(
this
.
$route
.
query
.
id
){
this
.
orderId
=
parseInt
(
this
.
$route
.
query
.
id
||
undefined
)
getOrderWarehouseIn
(
this
.
orderId
).
then
(
r
=>
this
.
orderItemList
=
r
.
data
)
this
.
getOrderItemList
(
)
getSpecialListByOrderId
(
this
.
orderId
).
then
(
r
=>
this
.
specialList
=
r
.
data
)
Promise
.
all
([
...
...
@@ -291,9 +312,13 @@ export default {
},
methods
:
{
getOrderItemList
(){
this
.
orderItemList
=
[]
return
getOrderWarehouseIn
(
this
.
orderId
).
then
(
r
=>
this
.
orderItemList
=
r
.
data
)
},
getList
(){
this
.
getOrder
()
getOrderWarehouseIn
(
this
.
orderId
).
then
(
r
=>
this
.
orderItemList
=
r
.
data
)
this
.
getOrderItemList
(
)
},
getWarehousePictureList
(){
return
warehousePictureList
({
...
...
@@ -448,7 +473,7 @@ export default {
message
:
this
.
$t
(
'
货物退仓成功!
'
)
});
getOrderWarehouseIn
(
this
.
orderId
).
then
(
r
=>
this
.
orderItemList
=
r
.
data
)
this
.
getOrderItemList
(
)
this
.
getOrder
()
})
...
...
@@ -461,7 +486,7 @@ export default {
warehousingVisible
(
val
)
{
if
(
!
val
){
this
.
getOrder
()
getOrderWarehouseIn
(
this
.
orderId
).
then
(
r
=>
this
.
orderItemList
=
r
.
data
)
this
.
getOrderItemList
(
)
}
},
orderSpecialNeeds
(
val
){
...
...
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