接口格式化
~~~
use VIEW\ServiceOps\SpareParts\Service\VanStockService;
use VIEW\ServiceOps\SpareParts\Service\InterfaceCommonService;
$vanStockService = new VanStockService();
$qty = $vanStockService->isShowDecimal(数量);
$interfaceCommonService = new InterfaceCommonService();
number_locale_format($qty,$interfaceCommonService->getDecimalsQuantitySwitch())
~~~
金额格式化--前端
```
onfocus="monetary_onfocus(this)"
onblur="monetary_onblur(this)"
```
数量格式化
```
onfocus="number_onfocus(this)"
onblur="number_onblur(this)"
```