profit-report.wxml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <wxs src='/utils/numberFormat.wxs' module="numberFormat"></wxs>
  2. <loading wx:if="{{loading}}" loadingName="加载中" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
  3. <!-- 顶部 -->
  4. <!-- 顶部筛选条件 -->
  5. <view class="head" style="position: fixed;top:0; z-index: 95;">
  6. <view style="overflow: hidden;position: absolute;width: 100%; z-index: 6666;">
  7. <dk-dropdown-menu model:value="{{searchForm}}" menuList="{{searchContent}}" bind:search="getSaleProfit" flgSearchText="{{false}}">
  8. </dk-dropdown-menu>
  9. </view>
  10. </view>
  11. <view class="func" style="margin-top:100rpx;">
  12. <!-- 报表相关 -->
  13. <view class="main">
  14. <view class="card-view">
  15. <view class="top-card">
  16. <view class="top-card-title">销售利润</view>
  17. <view class="top-card-icon">
  18. <van-icon size="26rpx" name="question-o" data-item="销售利润=收入-成本" catchtap="showTip"/>
  19. </view>
  20. <view class="top-card-money">
  21. <dk-cell left="0rpx" height="45rpx" contentRight="{{false}}" contentFontSize="16" contentColor="#caa977"
  22. contentFontWeight="bold" content="{{profit.profit || 0}}"></dk-cell>
  23. </view>
  24. <view style="clear: both;" />
  25. </view>
  26. <view class="top-card">
  27. <view class="top-card-title">销售利润率</view>
  28. <view class="top-card-icon">
  29. <van-icon size="26rpx" name="question-o" data-item="销售利润率=(收入-成本)/收入×100%" catchtap="showTip"/>
  30. </view>
  31. <view class="top-card-percent">{{profit.profitRate || 0}}%</view>
  32. <view style="clear: both;" />
  33. </view>
  34. <view class="top-card top-card-bottom">
  35. <view class="top-card-bottom-text">
  36. <view class="top-card-bottom-text-title">销售总额</view>
  37. <dk-cell left="0rpx" height="50rpx" contentRight="{{false}}" contentFontSize="13" contentColor="#95a8cb"
  38. content="{{profit.outbound || 0}}"></dk-cell>
  39. </view>
  40. <view class="top-card-bottom-text">
  41. <view class="top-card-bottom-text-title">成本总额</view>
  42. <dk-cell left="0rpx" height="50rpx" contentRight="{{false}}" contentFontSize="13" contentColor="#95a8cb"
  43. content="{{profit.inbound || 0}}"></dk-cell>
  44. </view>
  45. </view>
  46. </view>
  47. <!-- 销售毛利 -->
  48. <view class="card-view2">
  49. <view class="card-view-header2">
  50. <view class="card-view-header-name2">
  51. 销售毛利
  52. <span class="card-view-header-name3">(近一年)</span>
  53. </view>
  54. <view class="card-view-header-tags2">
  55. <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>
  56. <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>
  57. <!-- <view class="card-view-header-tags-tag">详情
  58. <van-icon style="margin-left: 14rpx;" name="arrow" />
  59. </view> -->
  60. </view>
  61. </view>
  62. <view style="z-index: 0 !important;width: 100%; height: 600rpx;">
  63. <ec-canvas type="2d" canvas-id="echartsProfitDate" id="echartsProfitDate" ec="{{ ec }}" />
  64. </view>
  65. </view>
  66. <!-- 部门利润排行 -->
  67. <view class="card-view">
  68. <view class="card-view-header">
  69. <view class="card-view-header-name">
  70. <!-- <image src="/static/image/app.png" class="header-icon" style="width: 30rpx;height:30rpx;margin-right: 15rpx;"></image> -->
  71. 部门利润排行
  72. </view>
  73. <view class="card-view-header-tags" catchtap="toDetail" data-url="org-rank/org-rank">
  74. <view class="card-view-header-tags-tag">详情
  75. <van-icon style="margin-left: 14rpx;" name="arrow" />
  76. </view>
  77. </view>
  78. </view>
  79. <view style="z-index: 0 !important;width: 100%; height: 327rpx;">
  80. <ec-canvas type="2d" canvas-id="echartsProfitOrg" id="echartsProfitOrg" ec="{{ ec }}" />
  81. </view>
  82. </view>
  83. <!-- 业务员利润排行 -->
  84. <view class="card-view">
  85. <view class="card-view-header">
  86. <view class="card-view-header-name">
  87. <!-- <image src="/static/image/app.png" class="header-icon" style="width: 30rpx;height:30rpx;margin-right: 15rpx;"></image> -->
  88. 业务员利润排行
  89. </view>
  90. <view class="card-view-header-tags" catchtap="toDetail" data-url="staff-rank/staff-rank">
  91. <view class="card-view-header-tags-tag">详情
  92. <van-icon style="margin-left: 14rpx;" name="arrow" />
  93. </view>
  94. </view>
  95. </view>
  96. <view style="z-index: 0 !important;width: 100%; height: 327rpx;">
  97. <ec-canvas type="2d" canvas-id="echartsProfitStaff" id="echartsProfitStaff" ec="{{ ec }}" />
  98. </view>
  99. </view>
  100. <!-- 商品利润排行 -->
  101. <view class="card-view">
  102. <view class="card-view-header">
  103. <view class="card-view-header-name">
  104. <!-- <image src="/static/image/app.png" class="header-icon" style="width: 30rpx;height:30rpx;margin-right: 15rpx;"></image> -->
  105. 商品利润排行
  106. </view>
  107. <view class="card-view-header-tags" catchtap="toDetail" data-url="sku-rank/sku-rank">
  108. <view class="card-view-header-tags-tag">详情
  109. <van-icon style="margin-left: 14rpx;" name="arrow" />
  110. </view>
  111. </view>
  112. </view>
  113. <!-- <view class="card-view-content-data-echarts">
  114. <view class="card-view-content-data-echarts-data">
  115. <view>
  116. <text class="small-small-font">¥</text>{{indexStaffOrder.sumAmount ? numberFormat.toThousandCents(numberFormat.numberFormat(indexStaffOrder.sumAmount/10000)) : '0.00'}}
  117. </view>
  118. <view>成交额(万)</view>
  119. </view>
  120. </view> -->
  121. <view style="z-index: 0 !important;width: 100%; height: 327rpx;">
  122. <ec-canvas type="2d" canvas-id="echartsProfitSku" id="echartsProfitSku" ec="{{ ec }}" />
  123. </view>
  124. </view>
  125. </view>
  126. </view>