在使用js自带的api toFixed时有时会报类似这个的错误:Uncaught (in promise) TypeError: $props.printTable.disAmount.toFixed is not a function,意思是disAmount不是数字类型
要转成数字类型才能进行toFixed,如parseFloat(printTable.disAmount).toFixed(2),把得出的结果取小数后两位,这里要注意parseInt和parseFloat的区别,parseInt只取整数,parseFloat可取小数