profit-report.wxml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <wxs src='/utils/numberFormat.wxs' module="numberFormat"></wxs>
  2. <loading wx:if="{{loading}}" loadingName="加载中" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
  3. <!-- 顶部 -->
  4. <view bindtap="handleTap">
  5. <!-- 顶部筛选条件 -->
  6. <!-- <view class="head" style="position: fixed;top:0; z-index: 95;"> 20240808edit 刘尧 修复销售利润表显示问题
  7. <view style="overflow: hidden;position: absolute;width: 100%; z-index: 6666;">
  8. 顶部筛选条件
  9. <view class="head" style="position: fixed;top:0; z-index: 95;">
  10. <view style="overflow: hidden;position: absolute;width: 100%; z-index: 6666;">
  11. </view>
  12. </view> -->
  13. <van-sticky scroll-top="0">
  14. <dk-navbar titleFontColor="#000000" navbarTitle="销售利润" bind:clickBack="handleNavBack" operateShow="{{ guideUrl ? true: false}}" operateUrl="{{guideUrl}}" bind:getNavbarHeight="getNavbarHeight" />
  15. <dk-dropdown-menu id="menu" model:value="{{searchForm}}" menuList="{{searchContent}}" bind:dkdropdowndateCommit="changeSearchContent" bind:search="getSaleProfit" flgSearchText="{{false}}">
  16. </dk-dropdown-menu>
  17. </van-sticky>
  18. <view class="func">
  19. <!-- 报表相关 -->
  20. <view class="main">
  21. <view class="card-view">
  22. <view class="top-card">
  23. <view class="top-card-title">销售利润</view>
  24. <view class="top-card-icon">
  25. <!-- <van-icon size="26rpx" name="question-o" data-item="销售利润=收入-成本" catchtap="showTip"/> -->
  26. <dk-tip style="display: inline-block;" id="dk-tip1" Down="{{true}}" Right="{{true}}" tipContent='销售利润=收入-成本' bind:clickTip="clickTip"></dk-tip>
  27. </view>
  28. <view class="top-card-money">
  29. <dk-cell left="0rpx" height="45rpx" contentRight="{{false}}" contentFontSize="16" contentColor="#caa977" contentFontWeight="bold" content="{{profit.profit || 0}}"></dk-cell>
  30. </view>
  31. <view style="clear: both;" />
  32. </view>
  33. <view class="top-card">
  34. <view class="top-card-title">销售利润率</view>
  35. <view class="top-card-icon">
  36. <!-- <van-icon size="26rpx" name="question-o" data-item="销售利润率=(收入-成本)/收入×100%" catchtap="showTip"/> -->
  37. <dk-tip style="display: inline-block;" id="dk-tip2" Down="{{true}}" Right="{{true}}" tipContent='销售利润率=(收入-成本)/收入×100%' bind:clickTip="clickTip"></dk-tip>
  38. </view>
  39. <view class="top-card-percent">{{profit.profitRate || 0}}%</view>
  40. <view style="clear: both;" />
  41. </view>
  42. <view class="top-card top-card-bottom">
  43. <view class="top-card-bottom-text">
  44. <view class="top-card-bottom-text-title">销售总额</view>
  45. <dk-cell left="0rpx" height="50rpx" contentRight="{{false}}" contentFontSize="13" contentColor="#95a8cb" content="{{profit.outbound || 0}}"></dk-cell>
  46. </view>
  47. <view class="top-card-bottom-text">
  48. <view class="top-card-bottom-text-title">成本总额</view>
  49. <dk-cell left="0rpx" height="50rpx" contentRight="{{false}}" contentFontSize="13" contentColor="#95a8cb" content="{{profit.inbound || 0}}"></dk-cell>
  50. </view>
  51. </view>
  52. </view>
  53. <!-- 销售利润 -->
  54. <view class="card-view2">
  55. <view class="card-view-header2">
  56. <view class="card-view-header-name2">
  57. 销售利润
  58. <span class="card-view-header-name3" wx:if="{{byDate=='true'}}">(近一月)</span>
  59. <span class="card-view-header-name3" wx:if="{{!byDate || byDate=='false'}}">(近一年)</span>
  60. </view>
  61. <view class="card-view-header-tags2">
  62. <van-button color="#f0f0f0" size="mini" bind:click="clickProfitDate" data-value="true" custom-style="{{byDate=='true'?'color: #5c91ce; border: 1px solid #5c91ce':'color: black'}}" style="margin-right: 10rpx">按日</van-button>
  63. <van-button color="#ecf1fa" size="mini" bind:click="clickProfitDate" data-value="false" custom-style="{{!byDate || byDate=='false'?'color: #5c91ce; border: 1px solid #5c91ce':'color: black'}}">按月</van-button>
  64. <!-- <view class="card-view-header-tags-tag">详情
  65. <van-icon style="margin-left: 14rpx;" name="arrow" />
  66. </view> -->
  67. </view>
  68. </view>
  69. <view style="z-index: 0 !important;width: 100%; height: 600rpx;">
  70. <ec-canvas type="2d" canvas-id="echartsProfitDate" id="echartsProfitDate" ec="{{ ec }}" />
  71. </view>
  72. </view>
  73. <!-- 部门利润排行 -->
  74. <view class="card-view">
  75. <view class="card-view-header">
  76. <view class="card-view-header-name">
  77. <!-- <image src="/static/image/app.png" class="header-icon" style="width: 30rpx;height:30rpx;margin-right: 15rpx;"></image> -->
  78. 部门利润排行
  79. </view>
  80. <view class="card-view-header-tags" catchtap="toDetail" data-url="org-rank/org-rank">
  81. <view class="card-view-header-tags-tag">详情
  82. <van-icon style="margin-left: 14rpx;" name="arrow" />
  83. </view>
  84. </view>
  85. </view>
  86. <view style="z-index: 0 !important;width: 100%; height: 327rpx;">
  87. <ec-canvas type="2d" canvas-id="echartsProfitOrg" id="echartsProfitOrg" ec="{{ ec }}" />
  88. </view>
  89. </view>
  90. <!-- 业务员利润排行 -->
  91. <view class="card-view">
  92. <view class="card-view-header">
  93. <view class="card-view-header-name">
  94. <!-- <image src="/static/image/app.png" class="header-icon" style="width: 30rpx;height:30rpx;margin-right: 15rpx;"></image> -->
  95. 业务员利润排行
  96. </view>
  97. <view class="card-view-header-tags" catchtap="toDetail" data-url="staff-rank/staff-rank">
  98. <view class="card-view-header-tags-tag">详情
  99. <van-icon style="margin-left: 14rpx;" name="arrow" />
  100. </view>
  101. </view>
  102. </view>
  103. <view style="z-index: 0 !important;width: 100%; height: 327rpx;">
  104. <ec-canvas type="2d" canvas-id="echartsProfitStaff" id="echartsProfitStaff" ec="{{ ec }}" />
  105. </view>
  106. </view>
  107. <!-- 商品利润排行 -->
  108. <view class="card-view">
  109. <view class="card-view-header">
  110. <view class="card-view-header-name">
  111. <!-- <image src="/static/image/app.png" class="header-icon" style="width: 30rpx;height:30rpx;margin-right: 15rpx;"></image> -->
  112. 商品利润排行
  113. </view>
  114. <view class="card-view-header-tags" catchtap="toDetail" data-url="sku-rank/sku-rank">
  115. <view class="card-view-header-tags-tag">详情
  116. <van-icon style="margin-left: 14rpx;" name="arrow" />
  117. </view>
  118. </view>
  119. </view>
  120. <!-- <view class="card-view-content-data-echarts">
  121. <view class="card-view-content-data-echarts-data">
  122. <view>
  123. <text class="small-small-font">¥</text>{{indexStaffOrder.sumAmount ? numberFormat.toThousandCents(numberFormat.numberFormat(indexStaffOrder.sumAmount/10000)) : '0.00'}}
  124. </view>
  125. <view>成交额(万)</view>
  126. </view>
  127. </view> -->
  128. <view style="z-index: 0 !important;width: 100%; height: 327rpx;">
  129. <ec-canvas type="2d" canvas-id="echartsProfitSku" id="echartsProfitSku" ec="{{ ec }}" />
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. <!-- 购买功能包 -->
  135. <view wx:if="{{params.testFlag}}" style="position: fixed;bottom: 230rpx;right: 30rpx;">
  136. <view bind:tap="toBuy" class="btn-add-class">
  137. <van-icon name="cart-o" color="#FFFFFF" size="60rpx" />
  138. </view>
  139. </view>
  140. </view>