Browse Source

成本分配表-辅料sheet-美元金额保留小数

jingbb 1 năm trước cách đây
mục cha
commit
0afd724413
1 tập tin đã thay đổi với 5 bổ sung6 xóa
  1. 5 6
      src/views/reportForms/cost-allocation-table/tabs.vue

+ 5 - 6
src/views/reportForms/cost-allocation-table/tabs.vue

@@ -449,12 +449,11 @@ export default {
           dataIndex: 'usdAmount',
           width: '6%',
           className: 'replacecolor',
-          // customRender: (text, record, index) => {
-          //   if (record.rmbAmount == record.usdAmount)
-          //     return "";
-          //   else
-          //     return Number(record.usdAmount).toFixed(2);
-          //  } 
+          customRender: (text, record, index) => {
+            if(text!==''&&text){
+              return Number(text).toFixed(2)
+            }
+          },
         },
         {
           title: '不含税金额',