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 c4a044fd
authored
Aug 24, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式修改
1 parent
ceca1744
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
13 deletions
src/views/goodsOrder/detail.vue
src/views/goodsOrder/detail.vue
View file @
c4a044f
...
@@ -26,6 +26,11 @@
...
@@ -26,6 +26,11 @@
<span
class=
"name"
>
{{
scope
.
scope
.
brandName
}}
{{
scope
.
scope
.
goodsSkuName
}}
</span>
<span
class=
"name"
>
{{
scope
.
scope
.
brandName
}}
{{
scope
.
scope
.
goodsSkuName
}}
</span>
</el-tooltip>
</el-tooltip>
</div>
</div>
<div
class=
"orderAmount"
slot=
"orderAmount"
slot-scope=
"scope"
>
{{
scope
.
scope
.
redeemPoints
?
scope
.
scope
.
redeemPoints
+
'积分'
+
'+'
+
+
(
scope
.
scope
.
salePrice
*
scope
.
scope
.
sellQty
).
toFixed
(
2
)
+
'元'
:
+
(
scope
.
scope
.
salePrice
*
scope
.
scope
.
sellQty
).
toFixed
(
2
)
+
'元'
}}
</div>
</GLTable>
</GLTable>
</div>
</div>
</div>
</div>
...
@@ -41,6 +46,21 @@
...
@@ -41,6 +46,21 @@
<span
class=
"name"
>
{{
scope
.
scope
.
brandName
}}
{{
scope
.
scope
.
goodsSkuName
}}
</span>
<span
class=
"name"
>
{{
scope
.
scope
.
brandName
}}
{{
scope
.
scope
.
goodsSkuName
}}
</span>
</el-tooltip>
</el-tooltip>
</div>
</div>
<div
slot=
"effectiveDays"
slot-scope=
"scope"
>
<span
v-show=
"orderInfo.logisticsStatus"
class=
"circle"
:style=
"
{backgroundColor: '#5850FF'}">
</span>
<span>
{{
{
1000
:
'待揽件'
,
1001
:
'已揽件'
,
1002
:
'运输中'
,
1003
:
'已签收'
,
1004
:
'拒收'
}
[
orderInfo
.
logisticsStatus
]
||
'--'
}}
<
/span
>
<
/div
>
<
/GLTable
>
<
/GLTable
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -92,15 +112,16 @@ export default {
...
@@ -92,15 +112,16 @@ export default {
{
{
label
:
'物流状态'
,
label
:
'物流状态'
,
prop
:
'effectiveDays'
,
prop
:
'effectiveDays'
,
formatter
:
cell
=>
{
addHtml
:
'effectiveDays'
return
{
// formatter: cell =>
{
1000
:
'待揽件'
,
// return
{
1001
:
'已揽件'
,
// 1000: '待揽件',
1002
:
'运输中'
,
// 1001: '已揽件',
1003
:
'已签收'
,
// 1002: '运输中',
1004
:
'拒收'
// 1003: '已签收',
}[
this
.
orderInfo
.
logisticsStatus
]
||
'--'
// 1004: '拒收'
}
//
}
[
this
.
orderInfo
.
logisticsStatus
]
||
'--'
//
}
}
}
]
]
}
,
}
,
...
@@ -133,9 +154,10 @@ export default {
...
@@ -133,9 +154,10 @@ export default {
{
{
label
:
'实收金额 (元)'
,
label
:
'实收金额 (元)'
,
prop
:
'orderAmount'
,
prop
:
'orderAmount'
,
formatter
:
cell
=>
{
addHtml
:
'orderAmount'
,
return
cell
.
redeemPoints
?
cell
.
redeemPoints
+
'积分'
+
'+'
+
+
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
:
+
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
// formatter: cell =>
{
}
// return cell.redeemPoints ? cell.redeemPoints + '积分' + '+' + +(cell.salePrice * cell.sellQty).toFixed(2) + '元' : +(cell.salePrice * cell.sellQty).toFixed(2) + '元'
//
}
}
}
]
]
}
,
}
,
...
@@ -221,7 +243,7 @@ export default {
...
@@ -221,7 +243,7 @@ export default {
const
{
receiveName
,
receiveMobile
,
provinceName
,
cityName
,
townName
,
address
}
=
res
?.
receiveAddress
||
{
}
const
{
receiveName
,
receiveMobile
,
provinceName
,
cityName
,
townName
,
address
}
=
res
?.
receiveAddress
||
{
}
res
.
addInfo
=
`${receiveName
}
${receiveMobile
}
${provinceName
}
${cityName
}
${townName
}
${address
}
`
res
.
addInfo
=
`${receiveName
}
${receiveMobile
}
${provinceName
}
${cityName
}
${townName
}
${address
}
`
res
.
addInfo
=
res
.
addInfo
.
replaceAll
(
'null'
,
''
)
res
.
addInfo
=
res
.
addInfo
.
replaceAll
(
'null'
,
''
)
res
.
payPrice
=
res
.
redeemPoints
?
res
.
redeemPoints
+
'积分'
+
'+'
+
(
res
.
payPrice
||
0
)
+
'元'
:
res
.
payPrice
+
'元'
res
.
payPrice
=
res
.
redeemPoints
?
res
.
redeemPoints
+
'积分'
+
'+'
+
(
res
.
payPrice
||
0
)
+
'元'
:
res
.
payPrice
+
'元'
res
.
subOrderGoodsList
=
res
?.
subOrderGoodsList
?.
length
?
res
?.
subOrderGoodsList
:
[]
res
.
subOrderGoodsList
=
res
?.
subOrderGoodsList
?.
length
?
res
?.
subOrderGoodsList
:
[]
// res.logisticsStatus = undefined
// res.logisticsStatus = undefined
this
.
orderInfo
=
res
this
.
orderInfo
=
res
...
@@ -281,4 +303,8 @@ export default {
...
@@ -281,4 +303,8 @@ export default {
}
}
}
}
.
orderAmount
{
color
:
#
2
CCA74
;
}
<
/style
>
<
/style
>
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