Commit e3afda52 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

fix: 修复营销活动执行明细

parent 37945cb4
......@@ -215,6 +215,11 @@ const DetialLayout = () => {
}
}, [value])
const isHasTax = (tax: number) => {
const taxText = tax === 1 ? '是' : '否';
return taxText
}
const tableModalColumns: ColumnType<any>[] = [
{
title: '单据号',
......@@ -245,7 +250,8 @@ const DetialLayout = () => {
{
title: '单据时间',
key: 'orderTime',
dataIndex: 'orderTime'
dataIndex: 'orderTime',
render: (text) => format(text)
},
{
title: '单据状态',
......@@ -255,7 +261,8 @@ const DetialLayout = () => {
{
title: '含税/税率',
key: 'isHasTax',
dataIndex: 'isHasTax'
dataIndex: 'isHasTax',
render: (text, record) => `${isHasTax(text)} / ${record.taxRate}%`
},
{
title: '购买数量',
......@@ -265,17 +272,20 @@ const DetialLayout = () => {
{
title: '应付金额',
key: 'skuPrice',
dataIndex: 'skuPrice'
dataIndex: 'skuPrice',
render: (text) => `¥${Number(text).toFixed(2)}`
},
{
title: '实付金额',
key: 'amount',
dataIndex: 'amount'
dataIndex: 'amount',
render: (text) => `¥${Number(text).toFixed(2)}`
},
{
title: '优惠金额',
key: 'discountPrice',
dataIndex: 'discountPrice'
dataIndex: 'discountPrice',
render: (_text, record) => `¥${(record.skuPrice - record.amount).toFixed(2)}`
},
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment