소스 검색

成本分配表/成本分配列表-面料/辅料sheet-损耗百分比计算

jingbb 8 달 전
부모
커밋
c515f155c6
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      src/views/reportForms/cost-allocation-table/tabs.vue

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

@@ -310,7 +310,8 @@ export default {
           className: 'replacecolor',
           customRender: (text, record, index) => {
             if(text!==''&&text){
-              return Number(text).toFixed(2)
+              var num = (Number(text)*100).toFixed(2)
+              return num+'%'
             }
           },
         },
@@ -429,7 +430,8 @@ export default {
           className: 'replacecolor',
           customRender: (text, record, index) => {
             if(text!==''&&text){
-              return Number(text).toFixed(4)
+              var num = (Number(text)*100).toFixed(2)
+              return num+'%'
             }
           },
         },
@@ -450,7 +452,7 @@ export default {
           width: '6%',
           className: 'replacecolor',
           customRender: (text, record, index) => {
-            if(text!==''&&text){
+            if(text!==''&&text&&text!=='Infinity'){
               return Number(text).toFixed(2)
             }
           },