|
@@ -186,7 +186,11 @@
|
|
|
fields: [
|
|
fields: [
|
|
|
f('含税单价', this.money(d.taxSinglePrice)),
|
|
f('含税单价', this.money(d.taxSinglePrice)),
|
|
|
f('不含税单价', Number(d.noTaxSinglePrice).toFixed(4)),
|
|
f('不含税单价', Number(d.noTaxSinglePrice).toFixed(4)),
|
|
|
- f('税率', `${Math.round(d.taxRate * 100)}%`),
|
|
|
|
|
|
|
+ // 接口 taxRate 已按百分数返回(如 13 表示 13%),不再乘 100
|
|
|
|
|
+ f(
|
|
|
|
|
+ '税率',
|
|
|
|
|
+ d.taxRate === null || d.taxRate === undefined || d.taxRate === '' ? '' : `${Math.round(d.taxRate)}%`
|
|
|
|
|
+ ),
|
|
|
f('折扣率', d.discountRate)
|
|
f('折扣率', d.discountRate)
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|