index.wxml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!--pages/data/index.wxml-->
  2. <view class="sg-container sg-index-bg">
  3. <van-popup show="{{ projectShow }}" closeable safe-area-inset-top position="top" bind:close="popclose"
  4. custom-style="height: 20%;">
  5. <van-dropdown-menu active-color="#5992fd">
  6. <van-dropdown-item value="{{ project_id }}" options="{{ projects }}" bind:change="onChange"
  7. data-name="project_id" />
  8. <van-dropdown-item value="{{ sort_type }}" options="{{ sort_types }}" bind:change="onChange"
  9. data-name="sort_type" />
  10. </van-dropdown-menu>
  11. <view class="sg-pad">
  12. <van-button type="info" block bind:click="switchShow" data-show="{{false}}" data-name="projectShow">确定
  13. </van-button>
  14. </view>
  15. </van-popup>
  16. <view class="sg-white sg-bold sg-flex sg-align-center sg-space-around">
  17. <view class="sg-center">
  18. <view class="sg-font-lg">{{year_money}}</view>
  19. <view class="sg-font-xs sg-pad-tb-sm">
  20. <view style="margin-bottom:10rpx">当年公司租赁设备</view>
  21. <view>费用总和</view>
  22. </view>
  23. </view>
  24. <view class="sg-center">
  25. <view class="sg-font-lg">{{month_money}}</view>
  26. <view class="sg-font-xs sg-pad-tb-sm">
  27. <view style="margin-bottom:10rpx">当月公司租赁设备</view>
  28. <view>费用总和</view>
  29. </view>
  30. </view>
  31. <view class="sg-center">
  32. <sg-date-picker bind:update="updateDate"></sg-date-picker>
  33. <view class="sg-flex sg-align-center condition">
  34. <view class="sg-flex sg-align-center" bindtap="navigate" data-url="/pages/data-center/index">
  35. <van-icon name="search" class=" sg-index-color" style="font-size:1.3rem" bindtap="switchShow"
  36. data-name="dateShow" data-show="{{true}}"></van-icon>
  37. <text class="sg-index-color" style="font-size:26rpx">条件查找</text>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="sg-white-bg sg-chart-box">
  43. <view class="sg-flex sg-pad sg-align-center" style="justify-content: flex-end;color: #5693FC;">
  44. <view wx:if="{{projectinfoname!=''&&projectinfoprice!=''}}">
  45. <view>
  46. {{projectinfoname}}
  47. </view>
  48. <view>
  49. 租赁总费用:¥{{projectinfoprice}}.00
  50. </view>
  51. </view>
  52. <view wx:if="{{chartIndex == 0}}">
  53. <van-icon name="setting-o" class="sg-icon-lg" bindtap="switchShow" data-name="projectShow"
  54. data-show="{{true}}" />
  55. </view>
  56. <view wx:elif="{{chartIndex == 1}}">
  57. <van-icon name="ascending" wx:if="{{orderBy == 'asc'}}" class="sg-index-color sg-icon-lg" bindtap="updateValue"
  58. data-name="orderBy" data-value="desc" />
  59. <van-icon name="descending" wx:else class="sg-index-color sg-icon-lg" bindtap="updateValue" data-name="orderBy"
  60. data-value="asc" />
  61. </view>
  62. <view wx:elif="{{chartIndex == 2}}">
  63. <van-icon name="ascending" wx:if="{{orderBy == 'asc'}}" class="sg-index-color sg-icon-lg sg-margin-right"
  64. bindtap="updateValue" data-name="orderBy" data-value="desc" />
  65. <van-icon name="descending" wx:else class="sg-index-color sg-icon-lg sg-margin-right" bindtap="updateValue"
  66. data-name="orderBy" data-value="asc" />
  67. <van-icon name="filter-o" class="sg-index-color sg-icon-lg" bindtap="navigate"
  68. data-url="/pages/filter-data/index" />
  69. </view>
  70. <!-- <view class="sg-flex sg-align-center">
  71. <view class="sg-flex sg-align-center" bindtap="navigate" data-url="/pages/data-center/index">
  72. <van-icon name="search" class="sg-icon-lg sg-index-color" bindtap="switchShow" data-name="dateShow"
  73. data-show="{{true}}"></van-icon>
  74. <text class="sg-index-color">条件查找</text>
  75. </view>
  76. </view> -->
  77. </view>
  78. <view class="sg-chart sg-flex sg-align-center sg-space-between" hidden="{{projectShow}}">
  79. <view hidden="{{chartIndex == 0}}" bindtap="changeChartIndex" data-type="-">
  80. <van-icon name="arrow-left" class="sg-icon-lg sg-index-color" />
  81. </view>
  82. <ec-canvas id="mychart-dom-bar" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  83. <view hidden="{{chartIndex == 0}}" hidden="{{chartIndex == 2}}" bindtap="changeChartIndex" data-type="+">
  84. <van-icon name="arrow" class="sg-icon-lg sg-index-color" />
  85. </view>
  86. </view>
  87. </view>
  88. </view>