瀏覽代碼

成本分配表-转入数量-单位成本小数位数

jbb 2 年之前
父節點
當前提交
179172da35
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/views/cost-allocation-total/modal/fabRemQuaModal.vue

+ 5 - 1
src/views/cost-allocation-total/modal/fabRemQuaModal.vue

@@ -67,7 +67,11 @@ export default {
           title: '单位成本',
           dataIndex: 'unitCost',
           width: 120,
-          className: 'replacecolor'
+          className: 'replacecolor',
+          customRender: (text, record, index) => {
+            var re =  Number(text).toFixed(4)
+            return re
+         }
         },
         {
           title: '总成本',