微信小程序
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

165 linhas
8.6 KiB

  1. <!--pages/statistics/statistics.wxml-->
  2. <cover-view class="ns" id="top_ban" style="height:{{isIPX?'88px':'64px'}};">
  3. <cover-image src="https://www.nongshen.net/static/wechat/lubeijing.jpg" style="top:0;left: 0;width: 100%;height: 100%;" mode="widthFix" bindtap="back"></cover-image>
  4. <cover-image src="/image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};height: 19.0909px;" mode="widthFix" bindtap="back"></cover-image>
  5. <cover-image src="/image/icon/sztj_tit.png" style="top:{{isIPX?'54px':'30px'}};width: 80px;height:20px;left: 50%;transform: translateX(-50%);"></cover-image>
  6. </cover-view>
  7. <view style="margin:{{isIPX?'108px':'83px'}} auto 0;display: flex; justify-content: space-between; width: 90%;">
  8. <view bindtap="onTimeShow" class="wrap">
  9. <picker mode="date" fields="year" value="{{date}}" bindchange="bindDateChange">
  10. <view class="picker">
  11. <text class="color-gray">{{date}}年</text>
  12. <image src="/image/icon/triangle.png" style="width: 12px;height: 8px;margin-left: 5px;"></image>
  13. </view>
  14. </picker>
  15. </view>
  16. <!-- <view style="display: flex;align-items: center;border: 1px solid #DCDCDC; padding: 2px 10px;border-radius: 20px;">
  17. <image src="/image/icon/icon_user.png" style="width:15.38px;height:12.53px;"></image>
  18. <text style="color: #878787;">古龙村一组合作社</text>
  19. </view> -->
  20. </view>
  21. <view class="main-box">
  22. <view class="shouzhi_box">
  23. <view class="pro_box">
  24. <text class="pro_tit">· 收入</text>
  25. <text class="pro_money">¥{{topDetail.jieAmount}}</text>
  26. <view style="width: 50%;margin: 0 auto;;">
  27. <van-progress percentage="50" stroke-width="8" color="#5CAE77" show-pivot="{{false}}" />
  28. </view>
  29. </view>
  30. <image src="/image/icon/icon_ddd.png" style="width: 5px;height: 25px;"></image>
  31. <view class="pro_box">
  32. <text class="pro_tit">· 支出</text>
  33. <text class="pro_money red">¥{{topDetail.daiAmount}}</text>
  34. <view style="width: 50%;margin: 0 auto;;">
  35. <van-progress percentage="50" stroke-width="8" color="#E90000" show-pivot="{{false}}" />
  36. </view>
  37. </view>
  38. </view>
  39. <view style="display: flex;justify-content: space-between;margin-top: 15px;">
  40. <view class="boxPro_box">
  41. <view class="pro_box">
  42. <text class="pro_tit">总笔数</text>
  43. <text class="pro_money small">{{topDetail.incomeTransactionsNum}}</text>
  44. </view>
  45. <view class="pro_box">
  46. <text class="pro_tit">大额笔数</text>
  47. <text class="pro_money small">{{topDetail.incomeLargeTransactionsNum}}</text>
  48. </view>
  49. </view>
  50. <view class="boxPro_box">
  51. <view class="pro_box">
  52. <text class="pro_tit">总笔数</text>
  53. <text class="pro_money small red">{{topDetail.transactionsNum}}</text>
  54. </view>
  55. <view class="pro_box">
  56. <text class="pro_tit">大额笔数</text>
  57. <text class="pro_money small red">{{topDetail.largeTransactionsNum}}</text>
  58. </view>
  59. <view class="pro_box">
  60. <text class="pro_tit">总人次</text>
  61. <text class="pro_money small red">{{topDetail.peopleSecond}}</text>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="main-box">
  67. <view style="display: flex;align-items: center;justify-content: space-between;">
  68. <view style="display: flex;align-items: center;">
  69. <image src="/image/icon/icon_tjzb.png" style="width: 14px;height: 14px;margin-right: 5px;"></image>
  70. <text>统计占比</text>
  71. </view>
  72. <view class="tab" wx:if="{{showList}}">
  73. <text class="{{showSR ? 'active':''}}" bindtap="goSR">收入</text>
  74. <text class="{{showZC ? 'active':''}}" bindtap="goZC">支出</text>
  75. </view>
  76. <text style="background:#F1F1F1;color:#878787;font-size:12px;padding:2px 10px;border-radius:15px;">单位:%</text>
  77. </view>
  78. <view class="container" wx:if="{{!showList}}">
  79. <ec-canvas id="mychart-one" force-use-old-canvas="true" canvas-id="mychart-pie" ec="{{ ec }}"></ec-canvas>
  80. </view>
  81. <view class="container" wx:if="{{showSR}}">
  82. <ec-canvas id="mychart-one2" force-use-old-canvas="true" canvas-id="mychart-pie" ec="{{ ec3 }}"></ec-canvas>
  83. </view>
  84. <view class="container" wx:if="{{showZC}}">
  85. <ec-canvas id="mychart-one3" force-use-old-canvas="true" canvas-id="mychart-pie" ec="{{ ec4 }}"></ec-canvas>
  86. </view>
  87. <block wx:if="{{showSR}}">
  88. <view style="display: flex;align-items: center;margin-bottom: 15px;" wx:for="{{centerRow[1]}}" wx:key="index">
  89. <image src="/image/icon/icon_jy.png" style="width: 34px;height: 34px;margin-right: 10px;" wx:if="{{item.incomeType == 1}}"></image>
  90. <image src="/image/icon/icon_fb.png" style="width: 34px;height: 34px;margin-right: 10px;" wx:if="{{item.incomeType == 2}}"></image>
  91. <image src="/image/icon/icon_bz.png" style="width: 34px;height: 34px;margin-right: 10px;" wx:if="{{item.incomeType == 3}}"></image>
  92. <image src="/image/icon/icon_qt.png" style="width: 34px;height: 34px;margin-right: 10px;" wx:if="{{item.incomeType == 4}}"></image>
  93. <image src="/image/icon/icon_tz.png" style="width: 34px;height: 34px;margin-right: 10px;" wx:if="{{item.incomeType == 5}}"></image>
  94. <view style="flex: 1;">
  95. <view style="display:flex;justify-content: space-between;">
  96. <text style="margin-bottom: 5px;display: block;">{{item.incomeType == 1 ? '经营收入' : item.incomeType == 2 ? '发包收入' : item.incomeType == 3 ? '补助收入' : item.incomeType == 4 ? '其他收入' : item.incomeType == 5 ? '投资收益' : ''}}</text>
  97. <text style="font-size: 18px;display: block;"><text style="font-size: 14px;">¥</text>{{item.jieAmount}}</text>
  98. </view>
  99. <van-progress percentage="{{item.percentage}}" stroke-width="10" color="{{item.incomeType == 1 ? '#FC9A55' : item.incomeType == 2 ? '#B3DB62 ' : item.incomeType == 3 ? '#5CAE77' : item.incomeType == 4 ? '#1F78B4' : item.incomeType == 5 ? '#F67474' : ''}}" show-pivot="{{false}}" />
  100. </view>
  101. </view>
  102. </block>
  103. <block wx:if="{{showZC}}">
  104. <view style="display: flex;align-items: center;margin-bottom: 15px;" wx:for="{{centerRow[2]}}" wx:key="index" wx:if="{{item.expenditureType != 3}}">
  105. <image src="/image/icon/icon_jy.png" style="width: 34px;height: 34px;margin-right: 10px;" wx:if="{{item.expenditureType == 1}}"></image>
  106. <image src="/image/icon/icon_fb.png" style="width: 34px;height: 34px;margin-right: 10px;" wx:if="{{item.expenditureType == 2}}"></image>
  107. <image src="/image/icon/icon_qt.png" style="width: 34px;height: 34px;margin-right: 10px;" wx:if="{{item.expenditureType == 5}}"></image>
  108. <image src="/image/icon/icon_tz.png" style="width: 34px;height: 34px;margin-right: 10px;" wx:if="{{item.expenditureType == 4}}"></image>
  109. <view style="flex: 1;">
  110. <view style="display:flex;justify-content: space-between;">
  111. <text style="margin-bottom: 5px;display: block;">{{item.expenditureType == 1 ? '结算' : item.expenditureType == 2 ? '工程项目 ' : item.expenditureType == 4 ? '合同' : item.expenditureType == 5 ? '其他' : ''}}</text>
  112. <text style="font-size: 18px;display: block;"><text style="font-size: 14px;">¥</text>{{item.daiAmount}}</text>
  113. </view>
  114. <van-progress percentage="{{item.percentage}}" stroke-width="10" color="{{item.expenditureType == 1 ? '#FC9A55' : item.expenditureType == 2 ? '#B3DB62 ' : item.expenditureType == 4 ? '#1F78B4' : item.expenditureType == 5 ? '#F67474' : ''}}" show-pivot="{{false}}" />
  115. </view>
  116. </view>
  117. </block>
  118. <view style="text-align:center;">
  119. <image src="/image/icon/icon_cBtn.png" style="width: 22px;height: 22px;margin: 0 auto;" wx:if="{{!showList}}" bindtap="showList"></image>
  120. <image src="/image/icon/icon_cTop.png" style="width: 22px;height: 22px;margin: 0 auto;" wx:if="{{showList}}" bindtap="CloseList"></image>
  121. </view>
  122. </view>
  123. <view class="main-box">
  124. <view style="display: flex;align-items: center;">
  125. <image src="/image/icon/icon_zs.png" style="width: 14px;height: 14px;margin-right: 5px;"></image>
  126. <text>收/支走势</text>
  127. <text style="background:#F1F1F1;color:#878787;font-size:12px;padding:2px 10px;border-radius:15px;margin-left: auto;">单位:元</text>
  128. </view>
  129. <view class="container">
  130. <ec-canvas id="mychart-one4" force-use-old-canvas="true" canvas-id="mychart-pie" ec="{{ ec2 }}"></ec-canvas>
  131. </view>
  132. <view class="tr head">
  133. <text>笔数</text>
  134. <text>收入</text>
  135. <text>月份</text>
  136. <text>笔数</text>
  137. <text>支出</text>
  138. </view>
  139. <view class="tr" wx:for="{{list}}">
  140. <text>{{item.incomeTransactionsNum}}</text>
  141. <text>{{item.jieAmount}}</text>
  142. <text>{{item.month}}月</text>
  143. <text>{{item.transactionsNum}}</text>
  144. <text>{{item.daiAmount}}</text>
  145. </view>
  146. </view>