Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
588ce1c9
authored
Oct 01, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trade:微调 order 列表界面
parent
a5808c9e
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
28 additions
and
27 deletions
+28
-27
src/api/pay/wallet/index.ts
+2
-2
src/router/modules/remaining.ts
+4
-4
src/views/mall/trade/order/detail/index.vue
+12
-12
src/views/mall/trade/order/index.vue
+1
-1
src/views/member/user/UserLevelUpdateForm.vue
+0
-0
src/views/member/user/UserPointUpdateForm.vue
+0
-0
src/views/member/user/detail/UserAccountInfo.vue
+5
-4
src/views/member/user/index.vue
+4
-4
No files found.
src/api/pay/wallet/index.ts
View file @
588ce1c9
...
...
@@ -17,6 +17,6 @@ export interface WalletVO {
}
/** 查询用户钱包详情 */
export
const
get
User
Wallet
=
async
(
params
:
PayWalletUserReqVO
)
=>
{
return
await
request
.
get
<
WalletVO
>
({
url
:
`/pay/wallet/
user-wall
et`
,
params
})
export
const
getWallet
=
async
(
params
:
PayWalletUserReqVO
)
=>
{
return
await
request
.
get
<
WalletVO
>
({
url
:
`/pay/wallet/
g
et`
,
params
})
}
src/router/modules/remaining.ts
View file @
588ce1c9
...
...
@@ -392,23 +392,23 @@ const remainingRouter: AppRouteRecordRaw[] = [
]
},
{
path
:
'/trade'
,
// 交易中心
path
:
'/
mall/
trade'
,
// 交易中心
component
:
Layout
,
meta
:
{
hidden
:
true
},
children
:
[
{
path
:
'order/detail/:
orderI
d(\\d+)'
,
path
:
'order/detail/:
i
d(\\d+)'
,
component
:
()
=>
import
(
'@/views/mall/trade/order/detail/index.vue'
),
name
:
'TradeOrderDetail'
,
meta
:
{
title
:
'订单详情'
,
icon
:
'
'
,
activeMenu
:
'/trade
/trade/order'
}
meta
:
{
title
:
'订单详情'
,
icon
:
'
ep:view'
,
activeMenu
:
'/mall
/trade/order'
}
},
{
path
:
'after-sale/detail/:orderId(\\d+)'
,
component
:
()
=>
import
(
'@/views/mall/trade/afterSale/detail/index.vue'
),
name
:
'TradeAfterSaleDetail'
,
meta
:
{
title
:
'退款详情'
,
icon
:
'
'
,
activeMenu
:
'/trade
/trade/after-sale'
}
meta
:
{
title
:
'退款详情'
,
icon
:
'
ep:view'
,
activeMenu
:
'/mall
/trade/after-sale'
}
}
]
},
...
...
src/views/mall/trade/order/detail/index.vue
View file @
588ce1c9
...
...
@@ -75,11 +75,11 @@
</
template
>
</el-table-column>
<el-table-column
label=
"商品原价"
prop=
"price"
width=
"150"
>
<
template
#
default=
"{ row }"
>
{{
f
loatToFixed2
(
row
.
price
)
}}
元
</
template
>
<
template
#
default=
"{ row }"
>
{{
f
enToYuan
(
row
.
price
)
}}
元
</
template
>
</el-table-column>
<el-table-column
label=
"数量"
prop=
"count"
width=
"100"
/>
<el-table-column
label=
"合计"
prop=
"payPrice"
width=
"150"
>
<
template
#
default=
"{ row }"
>
{{
f
loatToFixed2
(
row
.
payPrice
)
}}
元
</
template
>
<
template
#
default=
"{ row }"
>
{{
f
enToYuan
(
row
.
payPrice
)
}}
元
</
template
>
</el-table-column>
<el-table-column
label=
"售后状态"
prop=
"afterSaleStatus"
width=
"120"
>
<
template
#
default=
"{ row }"
>
...
...
@@ -97,32 +97,32 @@
</el-descriptions>
<el-descriptions
:column=
"6"
>
<el-descriptions-item
label=
"商品总额: "
>
{{ f
loatToFixed2
(formData.totalPrice!) }}元
{{ f
enToYuan
(formData.totalPrice!) }}元
</el-descriptions-item>
<el-descriptions-item
label=
"运费金额: "
>
{{ f
loatToFixed2
(formData.deliveryPrice!) }}元
{{ f
enToYuan
(formData.deliveryPrice!) }}元
</el-descriptions-item>
<el-descriptions-item
label=
"订单调价: "
>
{{ f
loatToFixed2
(formData.adjustPrice!) }}元
{{ f
enToYuan
(formData.adjustPrice!) }}元
</el-descriptions-item>
<el-descriptions-item>
<
template
#
label
><span
style=
"color: red"
>
商品优惠:
</span></
template
>
{{ f
loatToFixed2
(formData.couponPrice!) }}元
{{ f
enToYuan
(formData.couponPrice!) }}元
</el-descriptions-item>
<el-descriptions-item>
<
template
#
label
><span
style=
"color: red"
>
订单优惠:
</span></
template
>
{{ f
loatToFixed2
(formData.discountPrice!) }}元
{{ f
enToYuan
(formData.discountPrice!) }}元
</el-descriptions-item>
<el-descriptions-item>
<
template
#
label
><span
style=
"color: red"
>
积分抵扣:
</span></
template
>
{{ f
loatToFixed2
(formData.pointPrice!) }}元
{{ f
enToYuan
(formData.pointPrice!) }}元
</el-descriptions-item>
<el-descriptions-item
v-for=
"item in 5"
:key=
"item"
label-class-name=
"no-colon"
/>
<!-- 占位 -->
<el-descriptions-item
label=
"应付金额: "
>
{{ f
loatToFixed2
(formData.payPrice!) }}元
{{ f
enToYuan
(formData.payPrice!) }}元
</el-descriptions-item>
</el-descriptions>
...
...
@@ -187,7 +187,7 @@
</template>
<
script
lang=
"ts"
setup
>
import
*
as
TradeOrderApi
from
'@/api/mall/trade/order'
import
{
f
loatToFixed2
}
from
'@/utils'
import
{
f
enToYuan
}
from
'@/utils'
import
{
formatDate
}
from
'@/utils/formatTime'
import
{
DICT_TYPE
,
getDictLabel
,
getDictObj
}
from
'@/utils/dict'
import
OrderUpdateRemarkForm
from
'@/views/mall/trade/order/form/OrderUpdateRemarkForm.vue'
...
...
@@ -243,11 +243,11 @@ const updatePrice = () => {
/** 获得详情 */
const
{
params
}
=
useRoute
()
// 查询参数
const
getDetail
=
async
()
=>
{
const
id
=
params
.
orderI
d
as
unknown
as
number
const
id
=
params
.
i
d
as
unknown
as
number
if
(
id
)
{
const
res
=
(
await
TradeOrderApi
.
getOrder
(
id
))
as
TradeOrderApi
.
OrderVO
// 没有表单信息则关闭页面返回
if
(
res
===
null
)
{
if
(
!
res
)
{
message
.
error
(
'交易订单不存在'
)
close
()
}
...
...
src/views/mall/trade/order/index.vue
View file @
588ce1c9
...
...
@@ -466,7 +466,7 @@ const imagePreview = (imgUrl: string) => {
/** 查看订单详情 */
const
openDetail
=
(
id
:
number
)
=>
{
push
({
name
:
'TradeOrderDetail'
,
params
:
{
orderId
:
id
}
})
push
({
name
:
'TradeOrderDetail'
,
params
:
{
id
}
})
}
/** 操作分发 */
...
...
src/views/member/user/U
pdateLevel
Form.vue
→
src/views/member/user/U
serLevelUpdate
Form.vue
View file @
588ce1c9
File moved
src/views/member/user/U
pdatePoint
Form.vue
→
src/views/member/user/U
serPointUpdate
Form.vue
View file @
588ce1c9
File moved
src/views/member/user/detail/UserAccountInfo.vue
View file @
588ce1c9
...
...
@@ -28,19 +28,19 @@
<
template
#
label
>
<descriptions-item-label
label=
" 当前余额 "
icon=
"svg-icon:member_balance"
/>
</
template
>
{{
wallet.balance || 0
}}
{{
fenToYuan(wallet.balance || 0)
}}
</el-descriptions-item>
<el-descriptions-item>
<
template
#
label
>
<descriptions-item-label
label=
" 支出金额 "
icon=
"svg-icon:member_expenditure_balance"
/>
</
template
>
{{
wallet.totalExpense || 0
}}
{{
fenToYuan(wallet.totalExpense || 0)
}}
</el-descriptions-item>
<el-descriptions-item>
<
template
#
label
>
<descriptions-item-label
label=
" 充值金额 "
icon=
"svg-icon:member_recharge_balance"
/>
</
template
>
{{
wallet.totalRecharge || 0
}}
{{
fenToYuan(wallet.totalRecharge || 0)
}}
</el-descriptions-item>
</el-descriptions>
</template>
...
...
@@ -49,6 +49,7 @@ import { DescriptionsItemLabel } from '@/components/Descriptions'
import
*
as
UserApi
from
'@/api/member/user'
import
*
as
WalletApi
from
'@/api/pay/wallet'
import
{
UserTypeEnum
}
from
'@/utils/constants'
import
{
fenToYuan
}
from
'@/utils'
const
props
=
defineProps
<
{
user
:
UserApi
.
UserVO
}
>
()
// 用户信息
const
WALLET_INIT_DATA
=
{
...
...
@@ -65,7 +66,7 @@ const getUserWallet = async () => {
return
}
const
params
=
{
userId
:
props
.
user
.
id
,
userType
:
UserTypeEnum
.
MEMBER
}
wallet
.
value
=
(
await
WalletApi
.
get
User
Wallet
(
params
))
||
WALLET_INIT_DATA
wallet
.
value
=
(
await
WalletApi
.
getWallet
(
params
))
||
WALLET_INIT_DATA
}
/** 监听用户编号变化 */
...
...
src/views/member/user/index.vue
View file @
588ce1c9
...
...
@@ -182,9 +182,9 @@
<!-- 表单弹窗:添加/修改 -->
<UserForm
ref=
"formRef"
@
success=
"getList"
/>
<!-- 修改用户等级弹窗 -->
<U
pdateLevel
Form
ref=
"updateLevelFormRef"
@
success=
"getList"
/>
<U
serLevelUpdate
Form
ref=
"updateLevelFormRef"
@
success=
"getList"
/>
<!-- 修改用户积分弹窗 -->
<U
pdatePoint
Form
ref=
"updatePointFormRef"
@
success=
"getList"
/>
<U
serPointUpdate
Form
ref=
"updatePointFormRef"
@
success=
"getList"
/>
<!-- 发送优惠券弹窗 -->
<CouponSendForm
ref=
"couponSendFormRef"
/>
</template>
...
...
@@ -196,8 +196,8 @@ import UserForm from './UserForm.vue'
import
MemberTagSelect
from
'@/views/member/tag/components/MemberTagSelect.vue'
import
MemberLevelSelect
from
'@/views/member/level/components/MemberLevelSelect.vue'
import
MemberGroupSelect
from
'@/views/member/group/components/MemberGroupSelect.vue'
import
U
pdateLevelForm
from
'./UpdateLevel
Form.vue'
import
U
pdatePointForm
from
'./UpdatePoint
Form.vue'
import
U
serLevelUpdateForm
from
'./UserLevelUpdate
Form.vue'
import
U
serPointUpdateForm
from
'./UserPointUpdate
Form.vue'
import
CouponSendForm
from
'@/views/mall/promotion/coupon/components/CouponSendForm.vue'
import
{
checkPermi
}
from
'@/utils/permission'
...
...
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