Browse Source

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

jbb 2 years ago
parent
commit
0167081d10
1 changed files with 14 additions and 2 deletions
  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: '加工费',