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
881ea074
Commit
881ea074
authored
Apr 01, 2023
by
Marcus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.第三行选择了储位X,保存后再次打开X不见了
https://zentao.test.jdshangmen.com/bug-view-2694.html
parent
27ca8d80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
13 deletions
+44
-13
Warehouse.vue
src/views/ecw/order/warehousing/components/Warehouse.vue
+15
-6
index.vue
src/views/ecw/order/warehousing/index.vue
+29
-7
No files found.
src/views/ecw/order/warehousing/components/Warehouse.vue
View file @
881ea074
...
@@ -359,7 +359,6 @@
...
@@ -359,7 +359,6 @@
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
<div
v-if=
"edit"
>
<div
v-if=
"edit"
>
<h2>
{{ $t('审批流程') }}
</h2>
<h2>
{{ $t('审批流程') }}
</h2>
<work-flow
xmlkey=
"free_apply"
v-model=
"selectedUsers"
/>
<work-flow
xmlkey=
"free_apply"
v-model=
"selectedUsers"
/>
...
@@ -420,7 +419,17 @@ export default {
...
@@ -420,7 +419,17 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
warehousing
:
{
orderItemA
:
{
type
:
Object
,
default
:
()
=>
{
return
{
material
:
undefined
,
inTime
:
undefined
,
orderWarehouseInBackItemDoList
:
[]
}
}
},
orderItemB
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
default
:
()
=>
{
return
{
return
{
...
@@ -433,6 +442,9 @@ export default {
...
@@ -433,6 +442,9 @@ export default {
},
},
computed
:
{
computed
:
{
warehousing
(){
return
{...
this
.
orderItemA
,
...
this
.
orderItemB
}
},
orderId
(){
orderId
(){
return
this
.
order
.
orderId
return
this
.
order
.
orderId
},
},
...
@@ -490,6 +502,7 @@ export default {
...
@@ -490,6 +502,7 @@ export default {
if
(
val
)
{
if
(
val
)
{
this
.
getProductBrandPage
(
this
.
warehousing
.
brandName
)
this
.
getProductBrandPage
(
this
.
warehousing
.
brandName
)
this
.
handleBrandChange
(
parseInt
(
this
.
form
.
brand
))
this
.
handleBrandChange
(
parseInt
(
this
.
form
.
brand
))
this
.
init
()
}
else
{
}
else
{
this
.
$emit
(
'
close
'
)
this
.
$emit
(
'
close
'
)
}
}
...
@@ -564,10 +577,6 @@ export default {
...
@@ -564,10 +577,6 @@ export default {
}
}
},
},
mounted
()
{
this
.
init
()
},
methods
:
{
methods
:
{
init
(){
init
(){
this
.
form
.
table
=
this
.
warehousing
.
orderWarehouseInBackItemDoList
this
.
form
.
table
=
this
.
warehousing
.
orderWarehouseInBackItemDoList
...
...
src/views/ecw/order/warehousing/index.vue
View file @
881ea074
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
<h2>
{{
$t
(
'
货物信息
'
)
}}
</h2>
<h2>
{{
$t
(
'
货物信息
'
)
}}
</h2>
<el-table
<el-table
v-if=
"order.orderItemVOList && order.orderItemVOList.length > 0 && orderItemList && orderItemList.length > 0"
:data=
"order.orderItemVOList || []"
:data=
"order.orderItemVOList || []"
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-table-column
<el-table-column
...
@@ -81,16 +82,33 @@
...
@@ -81,16 +82,33 @@
prop=
"address"
prop=
"address"
:label=
"$t('操作')"
>
:label=
"$t('操作')"
>
<
template
v-slot=
"{ row, column, $index }"
>
<
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>
-->
<!--
<el-button
v-if=
"isEdit"
size=
"mini"
type=
"text"
@
click=
"handleWarehousing(row)"
>
{{
$t
(
'
修改
'
)
}}
</el-button>
-->
<template
v-else-if=
"isAdd"
>
<template
v-else-if=
"isAdd"
>
<!--
<template
v-if=
"!order.parentOrderId"
>
-->
<!--
<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=
"handleWarehousing(row)"
>
{{
$t
(
'
追加
'
)
}}
</el-button>
-->
<el-button
size=
"mini"
type=
"text"
@
click=
"handleWarehousingReturn(row)"
>
{{
$t
(
'
退仓
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"handleWarehousingReturn(row)"
>
{{
$t
(
'
退仓
'
)
}}
</el-button>
<!--
</
template
>
-->
<!--
</
template
>
-->
</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>-->
<!-- <el-button v-else size="mini" type="text" @click="handleWarehousing(row)">{{$t('入仓')}}</el-button>-->
</template>
</template>
</el-table-column>
</el-table-column>
...
@@ -233,7 +251,7 @@ export default {
...
@@ -233,7 +251,7 @@ export default {
mounted
()
{
mounted
()
{
if
(
this
.
$route
.
query
.
id
){
if
(
this
.
$route
.
query
.
id
){
this
.
orderId
=
parseInt
(
this
.
$route
.
query
.
id
||
undefined
)
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
)
getSpecialListByOrderId
(
this
.
orderId
).
then
(
r
=>
this
.
specialList
=
r
.
data
)
Promise
.
all
([
Promise
.
all
([
...
@@ -291,9 +309,13 @@ export default {
...
@@ -291,9 +309,13 @@ export default {
},
},
methods
:
{
methods
:
{
getOrderItemList
(){
this
.
orderItemList
=
[]
return
getOrderWarehouseIn
(
this
.
orderId
).
then
(
r
=>
this
.
orderItemList
=
r
.
data
)
},
getList
(){
getList
(){
this
.
getOrder
()
this
.
getOrder
()
getOrderWarehouseIn
(
this
.
orderId
).
then
(
r
=>
this
.
orderItemList
=
r
.
data
)
this
.
getOrderItemList
(
)
},
},
getWarehousePictureList
(){
getWarehousePictureList
(){
return
warehousePictureList
({
return
warehousePictureList
({
...
@@ -448,7 +470,7 @@ export default {
...
@@ -448,7 +470,7 @@ export default {
message
:
this
.
$t
(
'
货物退仓成功!
'
)
message
:
this
.
$t
(
'
货物退仓成功!
'
)
});
});
getOrderWarehouseIn
(
this
.
orderId
).
then
(
r
=>
this
.
orderItemList
=
r
.
data
)
this
.
getOrderItemList
(
)
this
.
getOrder
()
this
.
getOrder
()
})
})
...
@@ -461,7 +483,7 @@ export default {
...
@@ -461,7 +483,7 @@ export default {
warehousingVisible
(
val
)
{
warehousingVisible
(
val
)
{
if
(
!
val
){
if
(
!
val
){
this
.
getOrder
()
this
.
getOrder
()
getOrderWarehouseIn
(
this
.
orderId
).
then
(
r
=>
this
.
orderItemList
=
r
.
data
)
this
.
getOrderItemList
(
)
}
}
},
},
orderSpecialNeeds
(
val
){
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