Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-mall
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7e5b2151
authored
Dec 18, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.5.0' into 'master'
上线合并 See merge request
!31
2 parents
09779cda
e549376a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
75 additions
and
24 deletions
src/api/modules/platformGoods.js
src/views/goodsOrder/detail.vue
src/views/goodsOrder/index.vue
src/api/modules/platformGoods.js
View file @
7e5b215
...
...
@@ -132,6 +132,15 @@ const subOrderExpress = params => {
returnAll
:
true
})
}
// 子订单确认收货(自营商品)
const
subOrderReceive
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.platform.web.confirm.receipt'
return
http
({
url
,
data
:
params
,
returnAll
:
true
})
}
// 售后列表
const
getSaleOrderList
=
params
=>
{
...
...
@@ -345,6 +354,7 @@ export default {
getOrderList
,
getOrderDetail
,
subOrderExpress
,
subOrderReceive
,
getSaleOrderList
,
getAfterSalesDetail
,
getYZHAfterSalesDetail
,
...
...
src/views/goodsOrder/detail.vue
View file @
7e5b215
...
...
@@ -3,26 +3,22 @@
<div
class=
"ctnr"
>
<div
class=
"stutas-wrap"
>
<span>
订单状态:
</span>
<span
v-if=
"!isLoading"
class=
"stutas-circle"
:style=
"
{ backgroundColor: transfStatus(orderInfo.payStatus, orderInfo.orderStatus, orderInfo.orderType).color }">
</span>
<span
v-if=
"!isLoading"
class=
"stutas-circle"
:style=
"
{ backgroundColor: transfStatus(orderInfo.payStatus, orderInfo.orderStatus, orderInfo.orderType).color }">
</span>
<span
v-if=
"!isLoading"
>
{{
transfStatus
(
orderInfo
.
payStatus
,
orderInfo
.
orderStatus
,
orderInfo
.
orderType
).
name
}}
</span>
</div>
<div
class=
"info-wrap order-info"
>
<div
class=
"title"
>
订单信息
</div>
<div
class=
"detail"
>
<glsxCombiForm
ref=
"editFormRef"
labelWidth=
"154px"
defaultWidth=
"214px"
:formObj=
"orderInfo"
:formData=
"editFormData"
></glsxCombiForm>
<glsxCombiForm
ref=
"editFormRef"
labelWidth=
"154px"
defaultWidth=
"214px"
:formObj=
"orderInfo"
:formData=
"editFormData"
></glsxCombiForm>
</div>
</div>
<div
class=
"info-wrap"
>
<div
class=
"title"
>
商品信息
</div>
<div
class=
"detail"
>
<GLTable
:hasPage=
"false"
ref=
"goodsTableRef"
:tableParams=
"tableParams"
:tableData=
"orderInfo.subOrderGoodsList"
>
<GLTable
:hasPage=
"false"
ref=
"goodsTableRef"
:tableParams=
"tableParams"
:tableData=
"orderInfo.subOrderGoodsList"
>
<div
slot=
"goodsNameSlot"
class=
"goodsNameSlot"
slot-scope=
"scope"
>
<img
:src=
"scope.scope.goodsImageUrl"
alt=
""
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')"
placement=
"top"
>
<span
class=
"name"
>
{{
scope
.
scope
.
brandName
}}
{{
scope
.
scope
.
goodsSkuName
}}
</span>
</el-tooltip>
</div>
...
...
@@ -38,19 +34,16 @@
<div
class=
"info-wrap"
>
<div
class=
"title"
>
发货信息
</div>
<div
class=
"detail"
>
<GLTable
:hasPage=
"false"
ref=
"shipmentsRef"
:tableParams=
"shipmentsParams"
:tableData=
"orderInfo.subOrderGoodsList"
>
<GLTable
:hasPage=
"false"
ref=
"shipmentsRef"
:tableParams=
"shipmentsParams"
:tableData=
"orderInfo.subOrderGoodsList"
>
<div
slot=
"goodsNameSlot"
class=
"goodsNameSlot"
slot-scope=
"scope"
>
<img
:src=
"scope.scope.goodsImageUrl"
alt=
""
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')"
placement=
"top"
>
<span
class=
"name"
>
{{
scope
.
scope
.
brandName
}}
{{
scope
.
scope
.
goodsSkuName
}}
</span>
</el-tooltip>
</div>
<div
slot=
"effectiveDays"
>
<span
v-show=
"orderInfo.logisticsStatus"
class=
"circle"
:style=
"
{backgroundColor: '#5850FF'}">
</span>
<span
v-show=
"orderInfo.logisticsStatus"
class=
"circle"
:style=
"
{backgroundColor: '#5850FF'}">
</span>
<span>
{{
{
1000
:
'待揽件'
,
...
...
@@ -123,6 +116,13 @@ export default {
// 1004: '拒收'
//
}
[
this
.
orderInfo
.
logisticsStatus
]
||
'--'
//
}
}
,
{
label
:
'发货时间'
,
prop
:
'deliverTime'
,
formatter
:
cell
=>
{
return
this
.
orderInfo
.
deliverTime
?
util
.
dateFormat
(
this
.
orderInfo
.
deliverTime
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
}
}
]
}
,
...
...
@@ -179,7 +179,7 @@ export default {
type
:
'showTxt'
}
,
{
label
:
'
支付金额
'
,
label
:
'
商品总价
'
,
name
:
'payPrice'
,
type
:
'showTxt'
}
,
...
...
@@ -217,6 +217,11 @@ export default {
label
:
'运费'
,
name
:
'freightAmount'
,
type
:
'showTxt'
}
,
{
label
:
'实付金额'
,
name
:
'totalScore'
,
type
:
'showTxt'
}
]
}
...
...
@@ -234,7 +239,7 @@ export default {
methods
:
{
transfStatus
:
util
.
transfStatus
,
getDetailById
()
{
const
{
id
}
=
this
.
$route
.
params
const
{
id
}
=
this
.
$route
.
params
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'Loading'
,
...
...
@@ -242,14 +247,15 @@ export default {
background
:
'rgba(0, 0, 0, 0.3)'
}
)
this
.
isLoading
=
true
this
.
$apis
.
platformGoods
.
getOrderDetail
({
subOrderCode
:
id
}
).
then
(
res
=>
{
this
.
$apis
.
platformGoods
.
getOrderDetail
({
subOrderCode
:
id
}
).
then
(
res
=>
{
loading
.
close
()
this
.
isLoading
=
false
if
(
res
?.
id
)
{
const
{
receiveName
,
receiveMobile
,
provinceName
,
cityName
,
townName
,
address
}
=
res
?.
receiveAddress
||
{
}
res
.
addInfo
=
`${receiveName
}
${receiveMobile
}
${provinceName
}
${cityName
}
${townName
}
${address
}
`
const
{
receiveName
,
receiveMobile
,
provinceName
,
cityName
,
countyName
,
townName
,
address
}
=
res
?.
receiveAddress
||
{
}
res
.
addInfo
=
`${receiveName
}
${receiveMobile
}
${provinceName
}
${cityName
}
${
countyName
}
${
townName
}
${address
}
`
res
.
addInfo
=
res
.
addInfo
.
replaceAll
(
'null'
,
''
)
res
.
payPrice
=
res
.
redeemPoints
?
res
.
redeemPoints
+
'积分'
+
'+'
+
(
res
.
payPrice
||
0
)
+
'元'
:
res
.
payPrice
+
'元'
res
.
totalScore
=
res
.
totalScore
+
'积分'
res
.
subOrderGoodsList
=
res
?.
subOrderGoodsList
?.
length
?
res
?.
subOrderGoodsList
:
[]
// res.logisticsStatus = undefined
this
.
orderInfo
=
res
...
...
@@ -280,7 +286,7 @@ export default {
border
-
radius
:
50
%
;
width
:
10
px
;
height
:
10
px
;
background
:
#
FDB
757
;
background
:
#
fdb
757
;
margin
-
right
:
10
px
;
vertical
-
align
:
middle
;
}
...
...
@@ -293,7 +299,7 @@ export default {
.
title
{
height
:
60
px
;
line
-
height
:
60
px
;
border
-
bottom
:
1
px
solid
#
E5E5E
5
;
border
-
bottom
:
1
px
solid
#
e5e5e
5
;
padding
:
0
20
px
;
font
-
weight
:
500
;
font
-
size
:
20
px
;
...
...
@@ -306,11 +312,10 @@ export default {
}
.
order
-
info
{
}
}
.
orderAmount
{
color
:
#
2
CCA
74
;
color
:
#
2
cca
74
;
}
<
/style
>
src/views/goodsOrder/index.vue
View file @
7e5b215
...
...
@@ -106,6 +106,18 @@ export default {
listeners
:
{
click
:
row
=>
this
.
handleOrderExpress
(
row
.
scope
)
}
},
{
type
:
'el-button'
,
name
:
'确认收货'
,
attrs
:
{
type
:
'text'
,
fn
:
'确认收货'
},
condition
:
row
=>
row
.
scope
.
goodsSource
==
2
&&
row
.
scope
.
orderStatus
==
1008
,
listeners
:
{
click
:
row
=>
this
.
handleOrderReceive
(
row
.
scope
)
}
}
],
searchForm
:
{},
...
...
@@ -205,7 +217,7 @@ export default {
prop
:
'sellQty'
},
{
label
:
'
实收金额 (元)
'
,
label
:
'
商品总价
'
,
width
:
150
,
line
:
1
,
align
:
'right'
,
...
...
@@ -381,6 +393,30 @@ export default {
.
finally
(()
=>
{
this
.
batchLoading
=
false
})
},
handleOrderReceive
(
row
)
{
this
.
$messageBox
.
confirm
(
'请先与收货人确认收货后再进行此操作,是否确认收货?'
,
'确认收货'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
this
.
$apis
.
platformGoods
.
subOrderReceive
({
subOrderCode
:
row
.
subOrderCode
})
.
then
(
res
=>
{
let
{
code
,
message
}
=
res
if
(
code
==
0
)
{
this
.
$message
.
success
(
'操作成功'
)
this
.
handleSearch
()
}
else
{
this
.
$message
.
error
(
message
)
}
})
}
}
})
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment