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
bc8b1378
Commit
bc8b1378
authored
Nov 18, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
备货退仓
parent
bd145aa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
index.vue
src/views/ecw/order/stocking/index.vue
+25
-8
No files found.
src/views/ecw/order/stocking/index.vue
View file @
bc8b1378
...
...
@@ -151,20 +151,24 @@
</el-table-column>
<el-table-column
prop=
"createTime"
:label=
"$t('打包状态')"
>
:label=
"$t('打包状态')"
width=
"100"
>
<
template
v-slot=
"{row}"
>
<dict-tag
:type=
"DICT_TYPE.ORDER_ITEM_PACK_STATUS"
:value=
"wareItemPackStatus(row.orderItemId)"
/>
</
template
>
</el-table-column>
<el-table-column
prop=
"address"
:label=
"$t('操作')"
>
:label=
"$t('操作')"
width=
"220"
>
<
template
v-slot=
"{ row, column, $index }"
>
<template
v-if=
"wareItemPackStatus(row.orderItemId) == 1"
>
<el-button
size=
"mini"
type=
"warning"
@
click=
"noNeedPack(row)"
>
{{
$t
(
'
无需打包
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"package(row, $t('打包'))"
>
{{
$t
(
'
打包
'
)
}}
</el-button>
</
template
>
<el-button
v-else
size=
"mini"
type=
"primary"
@
click=
"package(row, $t('修改打包'))"
>
{{$t('修改打包')}}
</el-button>
<el-button-group>
<template
v-if=
"wareItemPackStatus(row.orderItemId) == 1"
>
<el-button
size=
"mini"
type=
"warning"
@
click=
"noNeedPack(row)"
>
{{
$t
(
'
无需打包
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"package(row, $t('打包'))"
>
{{
$t
(
'
打包
'
)
}}
</el-button>
</
template
>
<el-button
v-else
size=
"mini"
type=
"primary"
@
click=
"package(row, $t('修改打包'))"
>
{{$t('修改打包')}}
</el-button>
<el-button
size=
"mini"
type=
"danger"
@
click=
"rollback(row)"
>
{{$t('退仓')}}
</el-button>
</el-button-group>
</template>
</el-table-column>
</el-table>
...
...
@@ -255,7 +259,7 @@ import {
getOrder
,
getOrderWarehouseIn
,
getSpecialListByOrderId
,
noNeedPack
,
noNeedPack
,
rollbackDelete
,
warehousePictureList
}
from
'
@/api/ecw/order
'
import
orderBaseInfo
from
"
@/components/OrderBaseInfo
"
...
...
@@ -477,6 +481,19 @@ export default {
finishPacked
(
data
).
then
(
res
=>
{
this
.
$message
.
success
(
this
.
$t
(
'
操作成功
'
))
})
},
// 退仓
async
rollback
(
orderItem
){
this
.
$confirm
(
this
.
$l
(
orderItem
,
'
prodTitle
'
)
+
this
.
$t
(
"
退仓后不可恢复,是否确认退仓?
"
),
this
.
$t
(
'
提示
'
)).
then
(()
=>
{
return
rollbackDelete
({
orderId
:
this
.
orderId
,
orderItemId
:
orderItem
.
orderItemId
,
isPackagingRollback
:
true
})
}).
then
(
res
=>
{
this
.
$message
.
success
(
this
.
$t
(
'
操作成功
'
))
this
.
getList
()
})
}
},
watch
:
{
...
...
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