Browse Source

成本分配表-表头运杂费弹窗-字段更改

jbb 1 year ago
parent
commit
48897ac53d

+ 47 - 5
src/views/cost-allocation-total/modal/mainTableExpenseCNYModal.vue

@@ -91,12 +91,54 @@ export default {
           width: 120,
           className: 'replacecolor'
         },
-        {
-          title: '金额',
-          dataIndex: 'disbursedLocalmoney',
+        { 
+          title: '美元', 
+          dataIndex: 'disbursedOriginalmoney', 
           width: 120,
-          className: 'replacecolor'
-        },
+          className: 'replacecolor' ,
+          customRender: (text, record, index) => {
+            if(text!==''&&text){
+              return Number(text).toFixed(2)
+            }
+          },
+          },
+        { 
+          title: '人民币(不含税)', 
+          dataIndex: 'disbursedLocalmoney', 
+          width: 120, className: 'replacecolor',
+          customRender: (text, record, index) => {
+            if(text!==''&&text){
+              return Number(text).toFixed(2)
+            }
+          },
+         },
+        { 
+          title: '人民币(税额)', 
+          dataIndex: 'shuiemoney', 
+          width: 120, 
+          className: 'replacecolor',
+          customRender: (text, record, index) => {
+            if(text!==''&&text){
+              return Number(text).toFixed(2)
+            }
+          },
+         },
+        { 
+          title: '人民币(价税合计)', 
+          dataIndex: 'iNatMoney', 
+          width: 120, 
+          className: 'replacecolor',
+          customRender: (text, record, index) => {
+            if(text!==''&&text){
+              return Number(text).toFixed(2)
+            }
+          }, },
+        // {
+        //   title: '金额',
+        //   dataIndex: 'disbursedLocalmoney',
+        //   width: 120,
+        //   className: 'replacecolor'
+        // },
         {
           title: '供应商',
           dataIndex: 'processUnit',

+ 47 - 5
src/views/cost-allocation-total/modal/mainTableExpenseUSDModal.vue

@@ -92,12 +92,54 @@ export default {
           width: 120,
           className: 'replacecolor'
         },
-        {
-          title: '金额',
-          dataIndex: 'disbursedOriginalmoney',
+        { 
+          title: '美元', 
+          dataIndex: 'disbursedOriginalmoney', 
           width: 120,
-          className: 'replacecolor'
-        },
+          className: 'replacecolor' ,
+          customRender: (text, record, index) => {
+            if(text!==''&&text){
+              return Number(text).toFixed(2)
+            }
+          },
+          },
+        { 
+          title: '人民币(不含税)', 
+          dataIndex: 'disbursedLocalmoney', 
+          width: 120, className: 'replacecolor',
+          customRender: (text, record, index) => {
+            if(text!==''&&text){
+              return Number(text).toFixed(2)
+            }
+          },
+         },
+        { 
+          title: '人民币(税额)', 
+          dataIndex: 'shuiemoney', 
+          width: 120, 
+          className: 'replacecolor',
+          customRender: (text, record, index) => {
+            if(text!==''&&text){
+              return Number(text).toFixed(2)
+            }
+          },
+         },
+        { 
+          title: '人民币(价税合计)', 
+          dataIndex: 'iNatMoney', 
+          width: 120, 
+          className: 'replacecolor',
+          customRender: (text, record, index) => {
+            if(text!==''&&text){
+              return Number(text).toFixed(2)
+            }
+          }, },
+        // {
+        //   title: '金额',
+        //   dataIndex: 'disbursedOriginalmoney',
+        //   width: 120,
+        //   className: 'replacecolor'
+        // },
         {
           title: '供应商',
           dataIndex: 'processUnit',