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 a4411d2b
authored
Feb 01, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.24.0' into 'master'
上线合并 See merge request
!28
2 parents
875e4704
9a3d3bde
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
src/views/goodsOrder/detail.vue
src/views/goodsOrder/index.vue
src/views/goodsOrder/detail.vue
View file @
a4411d2
...
@@ -27,9 +27,10 @@
...
@@ -27,9 +27,10 @@
</el-tooltip>
</el-tooltip>
</div>
</div>
<div
class=
"orderAmount"
slot=
"orderAmount"
slot-scope=
"scope"
>
<div
class=
"orderAmount"
slot=
"orderAmount"
slot-scope=
"scope"
>
{{
<span
v-if=
"orderInfo.payStatus==1002"
>
{{
scope
.
scope
.
redeemPoints
?
(
scope
.
scope
.
redeemPoints
*
scope
.
scope
.
sellQty
)
+
'积分'
+
'+'
+
+
(
scope
.
scope
.
salePrice
*
scope
.
scope
.
sellQty
).
toFixed
(
2
)
+
'元'
:
+
(
scope
.
scope
.
salePrice
*
scope
.
scope
.
sellQty
).
toFixed
(
2
)
+
'元'
scope
.
scope
.
redeemPoints
?
(
scope
.
scope
.
redeemPoints
*
scope
.
scope
.
sellQty
)
+
'积分'
+
'+'
+
+
(
scope
.
scope
.
salePrice
*
scope
.
scope
.
sellQty
).
toFixed
(
2
)
+
'元'
:
+
(
scope
.
scope
.
salePrice
*
scope
.
scope
.
sellQty
).
toFixed
(
2
)
+
'元'
}}
}}
</span>
<span
v-else
>
0
</span>
</div>
</div>
</GLTable>
</GLTable>
</div>
</div>
...
...
src/views/goodsOrder/index.vue
View file @
a4411d2
...
@@ -140,7 +140,10 @@ export default {
...
@@ -140,7 +140,10 @@ export default {
},
},
{
{
id
:
'1'
,
id
:
'1'
,
value
:
'积分订单'
value
:
'B端积分订单'
},{
id
:
'2'
,
value
:
'C端积分订单'
}],
}],
optionId
:
'id'
,
optionId
:
'id'
,
optionLabel
:
'value'
optionLabel
:
'value'
...
@@ -166,7 +169,7 @@ export default {
...
@@ -166,7 +169,7 @@ export default {
prop
:
'salePrice'
,
prop
:
'salePrice'
,
align
:
'right'
,
align
:
'right'
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
cell
.
businessType
==
1
?
cell
.
redeemPoints
+
'积分'
+
'+'
+
cell
.
salePrice
+
'元'
:
cell
.
salePrice
+
'元'
return
cell
.
businessType
==
1
||
cell
.
businessType
==
2
?
cell
.
redeemPoints
+
'积分'
+
'+'
+
cell
.
salePrice
+
'元'
:
cell
.
salePrice
+
'元'
}
}
},
},
{
{
...
@@ -179,7 +182,12 @@ export default {
...
@@ -179,7 +182,12 @@ export default {
line
:
1
,
line
:
1
,
align
:
'right'
,
align
:
'right'
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
cell
.
businessType
==
1
?
(
cell
.
redeemPoints
*
cell
.
sellQty
)
+
'积分'
+
'+'
+
+
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
:
+
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
let
price
=
0
if
(
cell
.
payStatus
==
1002
){
price
=
cell
.
businessType
==
1
||
cell
.
businessType
==
2
?
(
cell
.
redeemPoints
*
cell
.
sellQty
)
+
'积分'
+
'+'
+
+
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
:
+
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
}
return
price
// return cell.businessType == 1 || cell.businessType == 2 ? (cell.redeemPoints * cell.sellQty) + '积分' + '+' + +(cell.salePrice * cell.sellQty).toFixed(2) + '元' : +(cell.salePrice * cell.sellQty).toFixed(2) + '元'
}
}
},
},
{
{
...
@@ -187,7 +195,7 @@ export default {
...
@@ -187,7 +195,7 @@ export default {
width
:
130
,
width
:
130
,
prop
:
'businessType'
,
prop
:
'businessType'
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
cell
.
businessType
==
1
?
'积分订单'
:
'普通订单'
return
cell
.
businessType
==
1
||
cell
.
businessType
==
2
?
'积分订单'
:
'普通订单'
}
}
},
},
{
{
...
...
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