瀏覽代碼

物料资料计算期初总价小数点处理

zhuth 7 年之前
父節點
當前提交
3d542065de
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      frontend/saas-web/app/view/document/product/FormController.js

+ 2 - 1
frontend/saas-web/app/view/document/product/FormController.js

@@ -163,7 +163,8 @@ Ext.define('saas.view.document.product.FormController', {
         Ext.Array.each(items, function(item, i) {
            var pd_num = item.get('pd_num') || 0 ;
            var pd_price = item.get('pd_price') || 0 ;
-           item.set('pd_amount', pd_num*pd_price);               
+           var m = Ext.util.Format.number(pd_num*pd_price, '0,000.00');
+           item.set('pd_amount', m);               
         });
     }
 });