🐛 fix: fix web price accuracy
This commit is contained in:
parent
f7cdde4b50
commit
8a34f76851
@ -7,5 +7,8 @@ export function ValueFormatter(value) {
|
|||||||
if (value == null) {
|
if (value == null) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
return `$${parseFloat(value * 0.002).toFixed(4)} / ¥${parseFloat(value * 0.014).toFixed(4)}`;
|
if (value === 0) {
|
||||||
|
return '免费';
|
||||||
|
}
|
||||||
|
return `$${parseFloat(value * 0.002).toFixed(6)} / ¥${parseFloat(value * 0.014).toFixed(6)}`;
|
||||||
}
|
}
|
||||||
|
@ -192,8 +192,8 @@ const Single = ({ ownedby, prices, reloadData }) => {
|
|||||||
field: 'type',
|
field: 'type',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
headerName: '类型',
|
headerName: '类型',
|
||||||
flex: 1,
|
flex: 0.5,
|
||||||
minWidth: 220,
|
minWidth: 100,
|
||||||
type: 'singleSelect',
|
type: 'singleSelect',
|
||||||
valueOptions: priceType,
|
valueOptions: priceType,
|
||||||
editable: true,
|
editable: true,
|
||||||
@ -203,8 +203,8 @@ const Single = ({ ownedby, prices, reloadData }) => {
|
|||||||
field: 'channel_type',
|
field: 'channel_type',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
headerName: '供应商',
|
headerName: '供应商',
|
||||||
flex: 1,
|
flex: 0.5,
|
||||||
minWidth: 220,
|
minWidth: 100,
|
||||||
type: 'singleSelect',
|
type: 'singleSelect',
|
||||||
valueOptions: ownedby,
|
valueOptions: ownedby,
|
||||||
editable: true,
|
editable: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user