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 8cef76da
authored
Aug 30, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复二轮bug
1 parent
2d84c799
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
src/views/saleOrder/detail.vue
src/views/saleOrder/index.vue
src/views/saleOrder/detail.vue
View file @
8cef76d
...
@@ -128,7 +128,7 @@ export default {
...
@@ -128,7 +128,7 @@ export default {
label
:
'申请金额 (元)'
,
label
:
'申请金额 (元)'
,
prop
:
'refundPrice'
,
prop
:
'refundPrice'
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
cell
.
redeemPoints
?
(
cell
.
redeemPoints
*
cell
.
sellQty
)
+
'积分'
+
'+'
+
(
cell
.
refundPrice
*
cell
.
sellQty
)
+
'元'
:
(
cell
.
refundPrice
*
cell
.
sellQty
)
+
'元'
return
cell
.
redeemPoints
?
(
cell
.
redeemPoints
*
cell
.
applyQty
)
+
'积分'
+
'+'
+
cell
.
refundPrice
.
toFixed
(
2
)
+
'元'
:
cell
.
refundPrice
+
'元'
}
}
},
},
{
{
...
@@ -223,8 +223,10 @@ export default {
...
@@ -223,8 +223,10 @@ export default {
tparReturnOrderCode
,
tparReturnOrderCode
,
returnType
,
returnType
,
returnReasonType
,
returnReasonType
,
returnTime
returnTime
,
redeemPoints
}
=
res
||
{}
}
=
res
||
{}
console
.
log
(
res
)
const
{
brandName
,
goodsSkuName
,
goodsImageUrl
}
=
res
.
orderGoods
||
{}
const
{
brandName
,
goodsSkuName
,
goodsImageUrl
}
=
res
.
orderGoods
||
{}
this
.
showEmailInfo
=
returnType
==
1001
this
.
showEmailInfo
=
returnType
==
1001
res
.
returnType
=
{
1001
:
'退货退款'
,
1002
:
'仅退款'
,
1003
:
'退货换货'
}[
returnType
]
||
'--'
res
.
returnType
=
{
1001
:
'退货退款'
,
1002
:
'仅退款'
,
1003
:
'退货换货'
}[
returnType
]
||
'--'
...
@@ -237,12 +239,14 @@ export default {
...
@@ -237,12 +239,14 @@ export default {
applyQty
,
applyQty
,
refundPrice
,
refundPrice
,
refundStatus
,
refundStatus
,
tparReturnOrderCode
tparReturnOrderCode
,
redeemPoints
}]
}]
res
.
createdDate
=
res
.
createdDate
?
util
.
dateFormat
(
res
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
res
.
createdDate
=
res
.
createdDate
?
util
.
dateFormat
(
res
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
res
.
returnTime
=
returnTime
?
util
.
dateFormat
(
returnTime
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
res
.
returnTime
=
returnTime
?
util
.
dateFormat
(
returnTime
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
res
.
expressInfo
=
[{
expressName
:
res
.
expressName
,
expressNo
:
res
.
expressNo
,
returnTime
:
res
.
returnTime
}]
res
.
expressInfo
=
[{
expressName
:
res
.
expressName
,
expressNo
:
res
.
expressNo
,
returnTime
:
res
.
returnTime
}]
this
.
orderInfo
=
res
this
.
orderInfo
=
res
console
.
log
(
this
.
orderInfo
)
}
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
isLoading
=
false
this
.
isLoading
=
false
...
...
src/views/saleOrder/index.vue
View file @
8cef76d
...
@@ -183,7 +183,7 @@ export default {
...
@@ -183,7 +183,7 @@ export default {
width
:
130
,
width
:
130
,
prop
:
'refundPrice'
,
prop
:
'refundPrice'
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
cell
.
businessType
==
1
?
(
cell
.
redeemPoints
*
cell
.
applyQty
)
+
'积分'
+
'+'
+
(
cell
.
refundPrice
*
cell
.
applyQty
)
+
'元'
:
(
cell
.
refundPrice
*
cell
.
applyQty
)
+
'元'
return
cell
.
businessType
==
1
?
(
cell
.
redeemPoints
*
cell
.
applyQty
)
+
'积分'
+
'+'
+
cell
.
refundPrice
+
'元'
:
cell
.
refundPrice
+
'元'
}
}
},
},
{
{
...
...
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