Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
61371fb9
Commit
61371fb9
authored
Aug 29, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
费用详情特价里商品类型和名称错误
parent
0007ce83
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
3 deletions
+27
-3
FeeDetail.vue
src/views/ecw/order/components/FeeDetail.vue
+27
-3
No files found.
src/views/ecw/order/components/FeeDetail.vue
View file @
61371fb9
...
...
@@ -373,8 +373,12 @@
<el-card
class=
"mt-10"
>
<span
slot=
"header"
>
{{$t('特价折扣')}}
</span>
<el-table
:data=
"orderSpecialApplyVOList"
>
<el-table-column
:label=
"$t('商品类型')"
prop=
"prodType"
></el-table-column>
<el-table-column
:label=
"$t('商品名称')"
prop=
"prodTitleEn"
></el-table-column>
<el-table-column
:label=
"$t('商品类型')"
prop=
"prodType"
>
<
template
slot-scope=
"{row}"
>
{{
showProductTypeName
(
row
.
prodType
)
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('商品名称')"
prop=
"prodTitleZh"
></el-table-column>
<el-table-column
:label=
"$t('英文名称')"
prop=
"prodTitleEn"
></el-table-column>
<!--<el-table-column :label="$t('线路')" width="120" prop="line">
...
...
@@ -420,6 +424,7 @@ import Price from "@/views/ecw/order/components/price.vue";
import
{
parseTime
}
from
"
@/utils/ruoyi
"
;
import
Decimal
from
"
decimal.js
"
;
import
{
createElementVNode
}
from
"
@vue/runtime-dom
"
;
import
{
getProductTypeList
}
from
"
@/api/ecw/productType
"
;
export
default
{
props
:{
orderId
:
[
Number
,
String
],
...
...
@@ -437,7 +442,9 @@ export default {
// 订单费用汇总
orderSummary
:
null
,
// 订单费用明细汇总
orderDetailSummary
:
null
orderDetailSummary
:
null
,
// 商品类型
productTypeList
:
[]
}
},
computed
:{
...
...
@@ -467,6 +474,23 @@ export default {
// 特价折扣
orderSpecialApplyVOList
(){
return
this
.
orderDetailSummary
?.
orderSpecialApplyVOList
||
[]
},
// 根据商品类型ID返回名称
showProductTypeName
(){
return
id
=>
{
if
(
!
this
.
productTypeList
.
length
)
return
'
-
'
const
item
=
this
.
productTypeList
.
find
(
item
=>
item
.
id
===
id
)
return
this
.
$l
(
item
,
'
title
'
)
}
}
},
watch
:{
orderSpecialApplyVOList
(
list
){
if
(
list
.
length
&&
!
this
.
productTypeList
.
length
){
getProductTypeList
().
then
(
res
=>
{
this
.
productTypeList
=
res
.
data
})
}
}
},
mounted
()
{
...
...
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