🐛 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) {
|
||||
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',
|
||||
sortable: true,
|
||||
headerName: '类型',
|
||||
flex: 1,
|
||||
minWidth: 220,
|
||||
flex: 0.5,
|
||||
minWidth: 100,
|
||||
type: 'singleSelect',
|
||||
valueOptions: priceType,
|
||||
editable: true,
|
||||
@ -203,8 +203,8 @@ const Single = ({ ownedby, prices, reloadData }) => {
|
||||
field: 'channel_type',
|
||||
sortable: true,
|
||||
headerName: '供应商',
|
||||
flex: 1,
|
||||
minWidth: 220,
|
||||
flex: 0.5,
|
||||
minWidth: 100,
|
||||
type: 'singleSelect',
|
||||
valueOptions: ownedby,
|
||||
editable: true,
|
||||
|
Loading…
Reference in New Issue
Block a user