Prechádzať zdrojové kódy

成本分配表-面料/辅料余下数量-使用数量小数位更改

jbb 2 rokov pred
rodič
commit
d470d57637

+ 10 - 3
src/views/cost-allocation-total/modal/fabRemQuaModal.vue

@@ -61,7 +61,11 @@ export default {
           title: '使用数量',
           dataIndex: 'number',
           width: 120,
-          className: 'replacecolor'
+          className: 'replacecolor',
+          customRender: (text, record, index) => {
+            var re =  Number(text).toFixed(4)
+            return re
+         }
         },
         {
           title: '单位成本',
@@ -69,8 +73,11 @@ export default {
           width: 120,
           className: 'replacecolor',
           customRender: (text, record, index) => {
-            var re =  Number(text).toFixed(4)
-            return re
+            if(text!==''&&text){
+              var re =  Number(text).toFixed(4)
+              return re
+            }
+            
          }
         },
         {

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

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