Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
a3ae20a0
提交
a3ae20a0
编写于
8月 25, 2020
作者:
yi.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
订单里价格相关的都做处理
上级
0fcae6d8
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
30 行增加
和
8 行删除
+30
-8
order-detail.vue
src/views/goods/order-detail.vue
+17
-6
order-manage.vue
src/views/goods/order-manage.vue
+13
-2
未找到文件。
src/views/goods/order-detail.vue
浏览文件 @
a3ae20a0
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
</el-table-column>
</el-table-column>
<el-table-column
prop=
"price"
label=
"单价"
min-width=
"100"
align=
"center"
>
<el-table-column
prop=
"price"
label=
"单价"
min-width=
"100"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
¥
{{
scope
.
row
.
price
}}
</span>
<span>
¥
{{
scope
.
row
.
price
|
toFixed2
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"status"
label=
"状态"
min-width=
"100"
align=
"center"
>
<el-table-column
prop=
"status"
label=
"状态"
min-width=
"100"
align=
"center"
>
...
@@ -89,11 +89,11 @@
...
@@ -89,11 +89,11 @@
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<div
class=
"total-set"
>
<div
class=
"total-set"
>
<p><span>
商品总额:
</span><span>
¥{{orderDetailData.totalPrice}}
</span></p>
<p><span>
商品总额:
</span><span>
¥{{orderDetailData.totalPrice
| toFixed2
}}
</span></p>
<p
><span>
优惠:
</span><span>
¥{{orderDetailData.totalCouponFee
}}
</span></p>
<p
v-if=
"orderDetailData.totalCouponFee"
><span>
优惠:
</span><span>
-¥{{orderDetailData.totalCouponFee | toFixed2
}}
</span></p>
<p
class=
"total-price"
v-if=
"showStatus == 1 || showStatus == 2 || showStatus == 3"
><span>
实付:
</span><span>
¥{{orderDetailData.amount}}
</span></p>
<p
class=
"total-price"
v-if=
"showStatus == 1 || showStatus == 2 || showStatus == 3"
><span>
实付:
</span><span>
¥{{orderDetailData.amount
| toFixed2
}}
</span></p>
<p
class=
"total-price"
v-if=
"showStatus == 4"
><span>
应付:
</span><span>
¥{{orderDetailData.totalPrice}}
</span></p>
<p
class=
"total-price"
v-if=
"showStatus == 4"
><span>
应付:
</span><span>
¥{{orderDetailData.totalPrice
| toFixed2
}}
</span></p>
<p
class=
"total-price"
v-if=
"showStatus == 5"
><span>
实付:
</span><span>
¥0
</span></p>
<p
class=
"total-price"
v-if=
"showStatus == 5"
><span>
实付:
</span><span>
¥0
.00
</span></p>
</div>
</div>
</div>
</div>
<send-set-dialog
<send-set-dialog
...
@@ -196,6 +196,17 @@
...
@@ -196,6 +196,17 @@
})
})
},
},
},
},
filters
:
{
toFixed2
:
function
(
value
)
{
let
val
;
if
(
value
)
{
val
=
(
value
/
100
).
toFixed
(
2
);
}
else
{
val
=
0.00
}
return
val
;
}
},
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
...
...
src/views/goods/order-manage.vue
浏览文件 @
a3ae20a0
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
</el-table-column>
</el-table-column>
<el-table-column
prop=
"amount"
label=
"实收款"
min-width=
"100"
align=
"center"
>
<el-table-column
prop=
"amount"
label=
"实收款"
min-width=
"100"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
¥
{{
scope
.
row
.
amount
}}
</span>
<span>
¥
{{
scope
.
row
.
amount
|
toFixed2
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"receiver"
label=
"买家"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"receiver"
label=
"买家"
min-width=
"100"
align=
"center"
></el-table-column>
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
<el-table-column
prop=
"priceList"
label=
"单价"
min-width=
"100"
align=
"center"
>
<el-table-column
prop=
"priceList"
label=
"单价"
min-width=
"100"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<!--
<span>
¥
{{
scope
.
row
.
price
}}
</span>
-->
<!--
<span>
¥
{{
scope
.
row
.
price
}}
</span>
-->
<p
v-for=
"(item, index) in scope.row.priceList"
:key=
"index"
class=
"p-normal"
>
¥
{{
item
}}
</p>
<p
v-for=
"(item, index) in scope.row.priceList"
:key=
"index"
class=
"p-normal"
>
¥
{{
item
|
toFixed2
}}
</p>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"createTime"
label=
"下单时间"
min-width=
"100"
align=
"center"
>
<el-table-column
prop=
"createTime"
label=
"下单时间"
min-width=
"100"
align=
"center"
>
...
@@ -456,6 +456,17 @@
...
@@ -456,6 +456,17 @@
})
})
},
},
},
},
filters
:
{
toFixed2
:
function
(
value
)
{
let
val
;
if
(
value
)
{
val
=
(
value
/
100
).
toFixed
(
2
);
}
else
{
val
=
0.00
}
return
val
;
}
},
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录