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
67ed1d4a
Commit
67ed1d4a
authored
Jun 11, 2023
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单详情打包记录完善
parent
be916223
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
369 additions
and
3 deletions
+369
-3
order.js
src/api/ecw/order.js
+8
-0
PackHistory.vue
src/views/ecw/order/components/PackHistory.vue
+85
-0
PackHistoryDetail.vue
src/views/ecw/order/components/PackHistoryDetail.vue
+227
-0
WarehouseDetail.vue
src/views/ecw/order/components/WarehouseDetail.vue
+4
-0
detail.vue
src/views/ecw/order/detail.vue
+19
-2
prepayDeal.vue
src/views/ecw/order/prepayDeal.vue
+26
-1
No files found.
src/api/ecw/order.js
View file @
67ed1d4a
...
...
@@ -833,3 +833,11 @@ export function batchException(data){
data
})
}
// 打包记录列表
export
function
orderItemPackLogPage
(
params
){
return
request
({
url
:
'
/order/item-pack-log/page
'
,
method
:
'
get
'
,
params
})
}
\ No newline at end of file
src/views/ecw/order/components/PackHistory.vue
0 → 100644
View file @
67ed1d4a
<
template
>
<!-- 订单获取入仓记录 -->
<el-dialog
:title=
"title"
visible
:before-close=
"closeDialog"
:close-on-click-modal=
"false"
width=
"800px"
>
<el-table
v-if=
"packData"
:data=
"packData"
>
<el-table-column
type=
"index"
:label=
"$t('序号')"
/>
<el-table-column
:label=
"$t('打包人')"
prop=
"name"
>
<template
slot-scope=
"
{row}">
{{
row
.
creatorName
}}
</
template
>
</el-table-column>
isNoNeedToPack
<el-table-column
:label=
"$t('打包时间')"
prop=
"time"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
createTime
|
parseTime
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('备注')"
prop=
"time"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
isNoNeedToPack
?
this
.
$t
(
'
无需打包
'
):
''
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('操作')"
>
<
template
slot-scope=
"{row}"
>
<el-button
type=
"primary"
@
click=
"showPackDetail(row)"
>
{{
$t
(
'
详情
'
)
}}
</el-button>
</
template
>
</el-table-column>
</el-table>
<!-- 分页组件 -->
<pagination
v-show=
"total > 0"
:total=
"total"
:page.sync=
"queryParams.page"
:limit.sync=
"queryParams.rows"
@
pagination=
"getList"
/>
</el-dialog>
</template>
<
script
>
import
{
orderItemPackLogPage
}
from
'
@/api/ecw/order
'
import
{
parseTime
}
from
'
@/utils/ruoyi
'
export
default
{
filters
:
{
parseTime
},
props
:{
order
:
Object
,
orderItemId
:
Number
,
},
data
(){
return
{
total
:
0
,
queryParams
:{
page
:
1
,
rows
:
10
},
packData
:[]
}
},
computed
:{
title
(){
if
(
!
this
.
order
||!
this
.
orderItemId
)
return
this
.
$t
(
'
打包历史
'
)
var
orderItem
=
this
.
order
.
orderItemVOList
.
find
(
item
=>
item
.
orderItemId
==
this
.
orderItemId
)
if
(
!
orderItem
)
return
this
.
$t
(
'
打包历史
'
)
return
orderItem
.
prodTitleZh
+
'
(
'
+
orderItem
.
prodTitleEn
+
'
)
'
+
this
.
$t
(
'
打包历史
'
)
}
},
created
(){
this
.
show
=
true
if
(
this
.
order
&&
this
.
orderItemId
){
this
.
queryParams
.
orderId
=
this
.
order
.
orderId
;
this
.
queryParams
.
orderItemId
=
this
.
orderItemId
;
orderItemPackLogPage
(
this
.
queryParams
).
then
(
res
=>
{
this
.
packData
=
[]
this
.
$nextTick
(()
=>
{
this
.
packData
=
res
.
data
.
list
})
this
.
total
=
res
.
data
.
total
;
})
}
},
methods
:{
getList
(){
},
closeDialog
(){
this
.
show
=
false
this
.
$emit
(
'
close
'
);
},
showPackDetail
(
orderWarehouseInContent
){
this
.
$emit
(
'
showPackDetail
'
,
orderWarehouseInContent
);
}
}
}
</
script
>
src/views/ecw/order/components/PackHistoryDetail.vue
0 → 100644
View file @
67ed1d4a
This diff is collapsed.
Click to expand it.
src/views/ecw/order/components/WarehouseDetail.vue
View file @
67ed1d4a
<
template
>
<!-- 订单获取入仓记录 -->
<el-dialog
:title=
"title"
visible
:before-close=
"closeDialog"
:close-on-click-modal=
"false"
width=
"1000px"
>
<el-button
v-if=
"[3,4].indexOf(+info.transportId) > -1"
style=
"position:absolute;top:15px;left:340px"
type=
"primary"
@
click=
"seePackLog"
>
{{
$t
(
'
查看打包历史
'
)
}}
</el-button>
<el-table
v-if=
"warehouseItem && warehouseItem.orderWarehouseInBackItemDoList"
:data=
"warehouseItem.orderWarehouseInBackItemDoList"
>
<el-table-column
type=
"index"
:label=
"$t('序号')"
/>
<el-table-column
:label=
"$t('箱数')"
prop=
"cartonsNum"
/>
...
...
@@ -110,6 +111,9 @@ export default {
getOrderWarehouseIn
(
this
.
info
.
orderId
).
then
(
res
=>
{
this
.
warehouseList
=
res
.
data
})
},
seePackLog
(){
this
.
$emit
(
'
openPackHistory
'
,
2
)
}
}
}
...
...
src/views/ecw/order/detail.vue
View file @
67ed1d4a
...
...
@@ -376,7 +376,7 @@
<
print
-
warehouse
-
receipt
v
-
if
=
"
showWarehouseReceipt
"
:
order
-
id
=
"
order.orderId
"
@
close
=
"
showWarehouseReceipt=false
"
/>
<
print
-
lading
-
bill
v
-
if
=
"
showLadingBill
"
:
order
-
id
=
"
order.orderId
"
:
transport
-
type
=
"
order.transportId
"
@
close
=
"
showLadingBill=false
"
/>
<
warehouse
-
detail
:
order
=
"
order
"
:
orderItemId
=
"
showWarehouseInItemId
"
v
-
if
=
"
showWarehouseInItemId
"
@
close
=
"
showWarehouseInItemId=null
"
/>
<
warehouse
-
detail
:
order
=
"
order
"
@
openPackHistory
=
"
openPackHistory
"
:
orderItemId
=
"
showWarehouseInItemId
"
v
-
if
=
"
showWarehouseInItemId
"
@
close
=
"
showWarehouseInItemId=null
"
/>
<
el
-
dialog
:
title
=
"
$t('付款人')
"
:
visible
.
sync
=
"
showDarweeDialog
"
v
-
if
=
"
order && order.customDraweeVOList
"
>
<
el
-
table
:
data
=
"
order.customDraweeVOList
"
v
-
if
=
"
order.drawee==3
"
>
<
el
-
table
-
column
:
label
=
"
$t('费用类型')
"
prop
=
"
label
"
width
=
"
200px
"
>
...
...
@@ -444,6 +444,10 @@
<!--
日志详情
-->
<
operate
-
log
-
detail
v
-
if
=
"
showLogDetailId
"
:
log
-
id
=
"
showLogDetailId
"
@
close
=
"
showLogDetailId=null
"
><
/operate-log-detail
>
<!--
打包历史
-->
<
pack
-
history
v
-
if
=
"
shopPackId
"
:
order
=
"
order
"
:
orderItemId
=
"
shopPackId
"
@
showPackDetail
=
"
showPackDetail
"
@
close
=
"
shopPackId=null
"
><
/pack-history
>
<!--
打包历史详情
-->
<
pack
-
history
-
detail
v
-
if
=
"
packAfterData
"
:
order
=
"
order
"
:
packAfterData
=
"
packAfterData
"
:
orderItemId
=
"
showWarehouseInItemId
"
@
close
=
"
packAfterData=null
"
><
/pack-history-detail
>
<
/div
>
<
/template
>
...
...
@@ -464,11 +468,13 @@ import { parseTime } from '@/utils/ruoyi';
import
WarehouseAreaSelect
from
"
@/components/WarehouseAreaSelect
"
import
{
checkPermi
}
from
'
@/utils/permission
'
import
OperateLogDetail
from
"
@/views/ecw/order/components/OprateLogDetail
"
;
import
PackHistory
from
'
./components/PackHistory
'
;
import
PackHistoryDetail
from
'
./components/PackHistoryDetail
'
;
export
default
{
name
:
"
detail
"
,
components
:
{
OperateLogDetail
,
PrintWarehouseReceipt
,
PrintLadingBill
,
WarehouseDetail
,
WarehouseAreaSelect
PrintWarehouseReceipt
,
PrintLadingBill
,
WarehouseDetail
,
WarehouseAreaSelect
,
PackHistory
,
PackHistoryDetail
}
,
filters
:
{
customsTypeFilter
(
e
,
customsTypeList
)
{
...
...
@@ -513,6 +519,8 @@ export default {
showMore
:
false
,
consigneeText
:
this
.
$t
(
'
更多
'
),
showLogDetailId
:
null
,
// 显示日志详情的ID
shopPackId
:
null
,
//显示打包历史的ID
packAfterData
:
null
,
//显示打包历史详情
}
}
,
computed
:{
...
...
@@ -745,6 +753,15 @@ export default {
parseLogNote
(
note
){
if
(
!
note
)
return
[]
return
JSON
.
parse
(
note
)
}
,
//查看打包历史
openPackHistory
(){
this
.
shopPackId
=
this
.
showWarehouseInItemId
}
,
//查看打包历史详情
showPackDetail
(
packAfterData
){
this
.
packAfterData
=
packAfterData
}
}
}
;
...
...
src/views/ecw/order/prepayDeal.vue
View file @
67ed1d4a
...
...
@@ -478,6 +478,7 @@
:
key
=
"
dict.value
"
:
label
=
"
dict.label
"
:
value
=
"
dict.value
"
/>
<
/el-select
>
<
/el-form-item
>
<!--
不可出渠道异常
-->
<
div
v
-
if
=
"
orderExceptionData.orderExceptionType=='not_shipping_channel_exception'&&handlerParams.orderExceptionHandlerResult=='change_channel'
"
>
<
el
-
form
-
item
:
label
=
"
$t('出货渠道')
"
prop
=
"
channelId
"
v
-
if
=
"
getDictData(DICT_TYPE.ECW_TRANSPORT_TYPE, orderData.transportId).cssClass == 'channel'
"
>
<!--
嵌套一个
form
来脱离
disabled
控制
-->
...
...
@@ -501,6 +502,30 @@
<
/option
>
<
/select
>
<
/div
>
<
div
v
-
if
=
"
orderExceptionData.orderExceptionType=='not_shipping_channel_exception'&&(handlerParams.orderExceptionHandlerResult=='change_channel'||handlerParams.orderExceptionHandlerResult=='hand_confirm')
"
>
<
div
>
<
el
-
form
-
item
:
label
=
"
$t('运费成交单价')+':'
"
size
=
"
medium
"
>
<
el
-
select
v
-
model
=
"
handlerParams.currency
"
style
=
"
width: 120px !important;
"
clearable
:
disabled
=
"
orderExceptionData.orderExceptionStatus==2
"
>
<
el
-
option
v
-
for
=
"
dict in currencyList
"
:
key
=
"
dict.id
"
:
label
=
"
dict.titleZh
"
:
value
=
"
dict.id
"
/>
<
/el-select
>
<
/el-form-item
>
<
el
-
input
style
=
"
width: 100px;
"
type
=
"
text
"
v
-
model
=
"
handlerParams.amount
"
/>
<
span
style
=
"
margin:0 20px;font-size:16px
"
>
/</
span
>
<
el
-
input
style
=
"
width: 100px;
"
type
=
"
text
"
v
-
model
=
"
handlerParams.amount
"
/>
<
/div
>
<
div
>
<
el
-
form
-
item
:
label
=
"
$t('清关费成交单价')+':'
"
size
=
"
medium
"
>
<
el
-
select
v
-
model
=
"
handlerParams.currency
"
style
=
"
width: 12 0px !important;
"
clearable
:
disabled
=
"
orderExceptionData.orderExceptionStatus==2
"
>
<
el
-
option
v
-
for
=
"
dict in currencyList
"
:
key
=
"
dict.id
"
:
label
=
"
dict.titleZh
"
:
value
=
"
dict.id
"
/>
<
/el-select
>
<
/el-form-item
>
<
el
-
input
style
=
"
width: 100px;
"
type
=
"
text
"
v
-
model
=
"
handlerParams.amount
"
/>
<
span
style
=
"
margin:0 20px;font-size:16px
"
>
/</
span
>
<
el
-
input
style
=
"
width: 100px;
"
type
=
"
text
"
v
-
model
=
"
handlerParams.amount
"
/>
<
/div
>
<
/div
>
<
/el-row
>
<
/div
>
<
/el-form
>
...
...
@@ -732,7 +757,7 @@
// that.orderExceptionData.orderExceptionType = 'order_other_exception'
// that.orderExceptionData.orderExceptionType = 'order_miss_exception'
// that.orderExceptionData.orderExceptionType = 'not_customer_service_exception'
//
that.orderExceptionData.orderExceptionType = 'not_shipping_channel_exception'
that
.
orderExceptionData
.
orderExceptionType
=
'
not_shipping_channel_exception
'
that
.
loading
=
false
;
that
.
orderId
=
response
.
data
.
orderId
that
.
getOrderData
()
...
...
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