fix: eslint --fix
This commit is contained in:
parent
d2ad2920d1
commit
54d0942dae
@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import { Document, Page, Text, View, StyleSheet, renderToStream } from '@hera/plugin-core';
|
import { Document, Page, Text, View, StyleSheet, renderToStream } from '@hera/plugin-core';
|
||||||
import { formatCurrency, formatQuantity } from '../../utils/currencyUtils';
|
import { formatCurrency, formatQuantity } from '../../utils/currencyUtils';
|
||||||
import { converDate } from '../../utils/daysUtils';
|
import { converDate } from '../../utils/daysUtils';
|
||||||
import { Waybill } from '../interfaces/waybill';
|
import { Waybill } from '../../interfaces/waybill';
|
||||||
|
|
||||||
const boldFont = {
|
const boldFont = {
|
||||||
fontFamily: 'source-han-sans',
|
fontFamily: 'source-han-sans',
|
||||||
@ -291,7 +291,7 @@ const PreviewDocument = ({ waybill }: { waybill: Waybill }) => {
|
|||||||
<Text>
|
<Text>
|
||||||
附加价格
|
附加价格
|
||||||
<Text style={styles.mainSize}>
|
<Text style={styles.mainSize}>
|
||||||
{formatQuantity(waybill.additional_cost, 2) == '0.00'
|
{formatQuantity(waybill.additional_cost, 2) === '0.00'
|
||||||
? '0'
|
? '0'
|
||||||
: formatQuantity(waybill.additional_cost, 2)}
|
: formatQuantity(waybill.additional_cost, 2)}
|
||||||
元
|
元
|
||||||
|
Loading…
Reference in New Issue
Block a user