Parcourir la source

成分分配表美元相关数值隐藏条件

jbb il y a 2 ans
Parent
commit
0167081d10
1 fichiers modifiés avec 14 ajouts et 2 suppressions
  1. 14 2
      src/views/reportForms/cost-allocation-table/tabs.vue

+ 14 - 2
src/views/reportForms/cost-allocation-table/tabs.vue

@@ -290,7 +290,13 @@ export default {
           title: '美元金额',
           dataIndex: 'usdAmount',
           width: 160,
-          className: 'replacecolor'
+          className: 'replacecolor',
+          customRender: (text, record, index) => {
+            if (record.rmbAmount == record.usdAmount)
+              return "";
+            else
+              return record.usdAmount;
+           } 
         },
         {
           title: '不含税金额',
@@ -385,7 +391,13 @@ export default {
           title: '加工单价(美元)',
           dataIndex: 'procesUnitPriceusd',
           width: 160,
-          className: 'replacecolor'
+          className: 'replacecolor',
+          customRender: (text, record, index) => {
+            if (record.procesUnitPricermb == record.procesUnitPriceusd)
+              return "";
+            else
+              return record.procesUnitPriceusd;
+           } 
         },
         {
           title: '加工费',