Ver Fonte

添加权限

chenrui há 1 ano atrás
pai
commit
9e7b495506
1 ficheiros alterados com 13 adições e 13 exclusões
  1. 13 13
      src/views/reportData/promotionSalesOrderReport/list.vue

+ 13 - 13
src/views/reportData/promotionSalesOrderReport/list.vue

@@ -134,31 +134,31 @@
               <a-col span="24">
                 <a-row>
                   <a-col
-                    span="4">销售额:{{ (totalData.totalSaleAmount || totalData.totalSaleAmount==0) ? toThousands(totalData.totalSaleAmount) : '--' }}</a-col>
+                    span="4">销售额:{{ $hasPermissions('M_promotionSalesOrderReportList_salesPrice')&&(totalData.totalSaleAmount || totalData.totalSaleAmount==0) ? toThousands(totalData.totalSaleAmount) : '--' }}</a-col>
                   <a-col
-                    span="4">促销成本费用:{{ (totalData.promoCostFee || totalData.promoCostFee==0) ? toThousands(totalData.promoCostFee) : '--' }}</a-col>
+                    span="4">促销成本费用:{{ $hasPermissions('M_promotionSalesOrderReportList_costPrice')&&(totalData.promoCostFee || totalData.promoCostFee==0) ? toThousands(totalData.promoCostFee) : '--' }}</a-col>
                   <a-col
-                    span="4">促销成本费用比:{{ totalData.promoCostFeeRate ? (totalData.promoCostFeeRate*100).toFixed(2)+'%' : '--' }}</a-col>
+                    span="4">促销成本费用比:{{ $hasPermissions('M_promotionSalesOrderReportList_costPrice')&&totalData.promoCostFeeRate ? (totalData.promoCostFeeRate*100).toFixed(2)+'%' : '--' }}</a-col>
                   <a-col
-                    span="4">促销销售费用:{{ (totalData.promoSaleFee || totalData.promoSaleFee==0) ? toThousands(totalData.promoSaleFee) : '--' }}</a-col>
+                    span="4">促销销售费用:{{ $hasPermissions('M_promotionSalesOrderReportList_salesPrice')&&(totalData.promoSaleFee || totalData.promoSaleFee==0) ? toThousands(totalData.promoSaleFee) : '--' }}</a-col>
                   <a-col
-                    span="4">促销销售费用比:{{ totalData.promoSaleFeeRate ? (totalData.promoSaleFeeRate*100).toFixed(2)+'%' : '--' }}</a-col>
+                    span="4">促销销售费用比:{{ $hasPermissions('M_promotionSalesOrderReportList_salesPrice')&&totalData.promoSaleFeeRate ? (totalData.promoSaleFeeRate*100).toFixed(2)+'%' : '--' }}</a-col>
                   <a-col
-                    span="4">参与活动销售额:{{ (totalData.promoSaleAmount || totalData.promoSaleAmount==0) ? toThousands(totalData.promoSaleAmount) : '--' }}</a-col>
+                    span="4">参与活动销售额:{{ $hasPermissions('M_promotionSalesOrderReportList_salesPrice')&&(totalData.promoSaleAmount || totalData.promoSaleAmount==0) ? toThousands(totalData.promoSaleAmount) : '--' }}</a-col>
                   <a-col
-                    span="4">未参与活动销售额:{{ (totalData.notpromotionSale || totalData.notpromotionSale==0) ? toThousands(totalData.notpromotionSale) : '--' }}</a-col>
+                    span="4">未参与活动销售额:{{ $hasPermissions('M_promotionSalesOrderReportList_salesPrice')&&(totalData.notpromotionSale || totalData.notpromotionSale==0) ? toThousands(totalData.notpromotionSale) : '--' }}</a-col>
                   <a-col
-                    span="4">调拨物料成本费用:{{ (totalData.allocateCost || totalData.allocateCost==0) ? toThousands(totalData.allocateCost) : '--' }}</a-col>
+                    span="4">调拨物料成本费用:{{ $hasPermissions('M_promotionSalesOrderReportList_costPrice')&&(totalData.allocateCost || totalData.allocateCost==0) ? toThousands(totalData.allocateCost) : '--' }}</a-col>
                   <a-col
-                    span="4">调拨物料销售费用:{{ (totalData.allocateSaleAmount || totalData.allocateSaleAmount==0) ? toThousands(totalData.allocateSaleAmount) : '--' }}</a-col>
+                    span="4">调拨物料销售费用:{{ $hasPermissions('M_promotionSalesOrderReportList_salesPrice')&&(totalData.allocateSaleAmount || totalData.allocateSaleAmount==0) ? toThousands(totalData.allocateSaleAmount) : '--' }}</a-col>
                   <a-col
-                    span="4">促销成本费用+物料成本费用合计:{{ (totalData.promoCostFeeAndAllocateCost || totalData.promoCostFeeAndAllocateCost==0)? toThousands(totalData.promoCostFeeAndAllocateCost) : '--' }}</a-col>
+                    span="4">促销成本费用+物料成本费用合计:{{ $hasPermissions('M_promotionSalesOrderReportList_costPrice')&&(totalData.promoCostFeeAndAllocateCost || totalData.promoCostFeeAndAllocateCost==0)? toThousands(totalData.promoCostFeeAndAllocateCost) : '--' }}</a-col>
                   <a-col
-                    span="4">成本合计占比:{{ totalData.totalCostRate ? (totalData.totalCostRate*100).toFixed(2)+'%' : '--' }}</a-col>
+                    span="4">成本合计占比:{{ $hasPermissions('M_promotionSalesOrderReportList_costPrice')&&totalData.totalCostRate ? (totalData.totalCostRate*100).toFixed(2)+'%' : '--' }}</a-col>
                   <a-col
-                    span="4">促销销售费用+物料销售费用合计:{{ (totalData.promoSaleFeeAndAllocateAmount || totalData.promoSaleFeeAndAllocateAmount==0) ? toThousands(totalData.promoSaleFeeAndAllocateAmount) : '--' }}</a-col>
+                    span="4">促销销售费用+物料销售费用合计:{{ $hasPermissions('M_promotionSalesOrderReportList_salesPrice')&&(totalData.promoSaleFeeAndAllocateAmount || totalData.promoSaleFeeAndAllocateAmount==0) ? toThousands(totalData.promoSaleFeeAndAllocateAmount) : '--' }}</a-col>
                   <a-col
-                    span="4">销售合计占比:{{ totalData.totalSaleRate ? (totalData.totalSaleRate*100).toFixed(2)+'%' : '--' }}</a-col>
+                    span="4">销售合计占比:{{ $hasPermissions('M_promotionSalesOrderReportList_salesPrice')&&totalData.totalSaleRate ? (totalData.totalSaleRate*100).toFixed(2)+'%' : '--' }}</a-col>
                 </a-row>
               </a-col>
             </a-row>