Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
pseer
gxpt_web
Commits
d18e25ac
Commit
d18e25ac
authored
Feb 27, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改订单统计
parent
84faef18
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
6 deletions
+19
-6
index.vue
src/views/system/consumerCoupon/index.vue
+1
-1
durationIndex.vue
src/views/system/coupon/durationIndex.vue
+1
-1
index.vue
src/views/system/coupon/index.vue
+1
-1
tiktokindex.vue
src/views/system/coupon/tiktokindex.vue
+1
-1
index.vue
src/views/system/order/index.vue
+15
-2
No files found.
src/views/system/consumerCoupon/index.vue
View file @
d18e25ac
...
...
@@ -199,7 +199,7 @@
<dict-tag
:options=
"dict.type.store_order_type"
:value=
"scope.row.orderType"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"适用套餐"
align=
"center"
prop=
"packageId"
>
<el-table-column
label=
"适用套餐"
align=
"center"
prop=
"packageId"
width=
"250px"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.packIds"
>
<dict-tag
:options=
"packList"
:value=
"scope.row.packIds.split(',')"
/>
...
...
src/views/system/coupon/durationIndex.vue
View file @
d18e25ac
...
...
@@ -134,7 +134,7 @@
</
template
>
---------------
</el-table-column>
<el-table-column
label=
"适用套餐"
align=
"center"
prop=
"packIds"
>
<el-table-column
label=
"适用套餐"
align=
"center"
prop=
"packIds"
width=
"250px"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.packIds"
>
<dict-tag
:options=
"packList"
:value=
"scope.row.packIds.split(',')"
/>
...
...
src/views/system/coupon/index.vue
View file @
d18e25ac
...
...
@@ -127,7 +127,7 @@
<dict-tag
:options=
"dict.type.store_order_type"
:value=
"scope.row.orderType"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"适用套餐"
align=
"center"
prop=
"packIds"
>
<el-table-column
label=
"适用套餐"
align=
"center"
prop=
"packIds"
width=
"250px"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.packIds"
>
<dict-tag
:options=
"packList"
:value=
"scope.row.packIds.split(',')"
/>
...
...
src/views/system/coupon/tiktokindex.vue
View file @
d18e25ac
...
...
@@ -127,7 +127,7 @@
<dict-tag
:options=
"dict.type.store_order_type"
:value=
"scope.row.orderType"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"适用套餐"
align=
"center"
prop=
"packIds"
>
<el-table-column
label=
"适用套餐"
align=
"center"
prop=
"packIds"
width=
"250px"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.packIds"
>
<dict-tag
:options=
"packList"
:value=
"scope.row.packIds.split(',')"
/>
...
...
src/views/system/order/index.vue
View file @
d18e25ac
...
...
@@ -198,6 +198,11 @@
<el-button
type=
"primary"
size=
"mini"
disabled
><span>
订单总数:
{{
total
}}
</span></el-button>
<el-button
type=
"primary"
size=
"mini"
disabled
><span>
订单总价:
{{
totalPrice
}}
</span></el-button>
<el-button
type=
"primary"
size=
"mini"
disabled
><span>
实际总支付金额:
{{
payPrice
}}
</span></el-button>
<el-button
type=
"primary"
size=
"mini"
disabled
><span>
已使用总金额:
{{
usedAmount
}}
</span></el-button>
<el-button
type=
"primary"
size=
"mini"
disabled
><span>
已使用实付金额:
{{
usedPayAmount
}}
</span></el-button>
<el-button
type=
"primary"
size=
"mini"
disabled
><span>
以退款总金额:
{{
refundAmount
}}
</span></el-button>
<el-button
type=
"primary"
size=
"mini"
disabled
><span>
以退款实付金额:
{{
refundPayAmount
}}
</span></el-button>
</div>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
...
...
@@ -528,6 +533,10 @@ export default {
totalPrice
:
0
,
//实际支付金额
payPrice
:
0
,
usedAmount
:
0
,
usedPayAmount
:
0
,
refundAmount
:
0
,
refundPayAmount
:
0
,
// 订单表格数据
orderList
:
[],
// 弹出层标题
...
...
@@ -651,9 +660,13 @@ export default {
this
.
orderList
=
response
.
rows
;
this
.
total
=
response
.
total
;
//计算订单总价
this
.
totalPrice
=
response
.
rows
.
reduce
((
total
,
item
)
=>
total
+
item
.
totalPrice
,
0
);
this
.
totalPrice
=
response
.
totalAmount
.
toFixed
(
2
);
//计算实际支付金额,取3位小数
this
.
payPrice
=
response
.
rows
.
reduce
((
total
,
item
)
=>
total
+
item
.
payPrice
,
0
).
toFixed
(
3
);
this
.
payPrice
=
response
.
amount
.
toFixed
(
2
);
this
.
usedAmount
=
response
.
usedAmount
.
toFixed
(
2
);
this
.
usedPayAmount
=
response
.
usedPayAmount
.
toFixed
(
2
);
this
.
refundAmount
=
response
.
refundAmount
.
toFixed
(
2
);
this
.
refundPayAmount
=
response
.
refundPayAmount
.
toFixed
(
2
);
this
.
loading
=
false
;
}
);
}
,
...
...
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