scrollView.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <template>
  2. <view class="listview">
  3. <view class="listview-all">
  4. <view class="listview-name">
  5. 数据检测
  6. </view>
  7. <view class="listview-seleven">
  8. <uni-data-select v-model="value" :localdata="range" @change="change" :clear="false"></uni-data-select>
  9. </view>
  10. </view>
  11. <view class="listview-table">
  12. <view class="listview-all-b">
  13. <view class="listview-table-all-one">
  14. <view class="listview-table-name">
  15. 总消耗金额(元)
  16. </view>
  17. <view class="listview-table-many">
  18. <span>¥</span>
  19. {{dataList.sumAmt}}
  20. </view>
  21. </view>
  22. <view class="listview-table-all-two">
  23. <view class="listview-table-name">
  24. 总消耗数量
  25. </view>
  26. <view class="listview-table-many">
  27. <span style=" visibility: hidden;">¥</span>
  28. {{dataList.sumCnt}}
  29. </view>
  30. </view>
  31. <view class="boxList"></view>
  32. <view class="xian"></view>
  33. <view class="xianList"></view>
  34. </view>
  35. <view class="listview-all-b">
  36. <view class="listview-table-all-three">
  37. <view class="listview-table-name">
  38. 院内申领次数
  39. </view>
  40. <view class="listview-table-many">
  41. <span style=" visibility: hidden;">¥</span>
  42. {{dataList.appyCnt}}
  43. </view>
  44. </view>
  45. <view class="listview-table-all-four">
  46. <view class="listview-table-name">
  47. 院内配送次数
  48. </view>
  49. <view class="listview-table-many">
  50. <span style=" visibility: hidden;">¥</span>
  51. {{dataList.delvCnt}}
  52. </view>
  53. </view>
  54. </view>
  55. <view class="listview-all-b">
  56. <view class="listview-table-all-three">
  57. <view class="listview-table-name">
  58. 集采条目数
  59. </view>
  60. <view class="listview-table-many">
  61. <span style=" visibility: hidden;">¥</span>
  62. {{dataList.fasCnt}}
  63. </view>
  64. </view>
  65. <view class="listview-table-all-four">
  66. <view class="listview-table-name">
  67. 非集采条目数
  68. </view>
  69. <view class="listview-table-many">
  70. <span style=" visibility: hidden;">¥</span>
  71. {{dataList.othCnt}}
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. </template>
  78. <script>
  79. export default {
  80. data() {
  81. return {
  82. dataList: {
  83. cosmAmt: "", //消耗金额
  84. cosmCnt: "", //消耗数量
  85. appyCnt: "", //申领次数
  86. stooutCnt: "", //院内配送次数
  87. },
  88. value: 'Y',
  89. range: [{
  90. value: 'Y',
  91. text: "年"
  92. },
  93. {
  94. value: 'M',
  95. text: "月"
  96. },
  97. {
  98. value: 'D',
  99. text: "日"
  100. },
  101. {
  102. value: 'W',
  103. text: "周"
  104. },
  105. ],
  106. };
  107. },
  108. methods: {
  109. listData() {
  110. this.$http('homePage.totalCosm', {
  111. timeType: this.value
  112. }, '加载中').then((res) => {
  113. this.dataList = res.data
  114. })
  115. },
  116. change(e) {
  117. this.value = e;
  118. this.listData({
  119. timeType: this.value
  120. })
  121. },
  122. },
  123. created() {
  124. this.listData()
  125. }
  126. };
  127. </script>
  128. <style scoped lang="scss">
  129. .listview {
  130. padding: 30rpx;
  131. .listview-all {
  132. width: 100%;
  133. height: 100rpx;
  134. display: flex;
  135. justify-content: space-between;
  136. background-color: #ffffff;
  137. padding: 20rpx;
  138. box-sizing: border-box;
  139. border-top-left-radius: 20rpx;
  140. border-top-right-radius: 20rpx;
  141. border-width: 4rpx 4rpx 4rpx 4rpx;
  142. border-style: solid;
  143. border-color: #90ffe4;
  144. }
  145. .listview-name {
  146. font-size: 35rpx;
  147. font-weight: bold;
  148. }
  149. .listview-table {
  150. background-color: #fff;
  151. border-style: solid;
  152. border-color: #90ffe4;
  153. border-width: 0 4rpx 4rpx 4rpx;
  154. border-bottom-right-radius: 20rpx;
  155. border-bottom-left-radius: 20rpx;
  156. .listview-all-b {
  157. display: flex;
  158. justify-content: space-around;
  159. position: relative;
  160. .listview-table-all-one,
  161. .listview-table-all-three {
  162. width: 300rpx;
  163. height: 100rpx;
  164. text-align: left
  165. }
  166. .listview-table-all-two,
  167. .listview-table-all-four {
  168. width: 300rpx;
  169. height: 100rpx;
  170. text-align: right
  171. }
  172. .boxList {
  173. width: 50rpx;
  174. height: 50rpx;
  175. background: #fff;
  176. /* left: 46%; */
  177. top: 70%;
  178. position: absolute;
  179. z-index: 999;
  180. }
  181. .xian {
  182. position: absolute;
  183. top: 95rpx;
  184. width: 100%;
  185. height: 4rpx;
  186. background-color: #90ffe4;
  187. border-radius: 10rpx;
  188. }
  189. .xianList {
  190. position: absolute;
  191. height: 200rpx;
  192. width: 4rpx;
  193. background-color: #90ffe4;
  194. border-radius: 10rpx;
  195. left: 50%;
  196. }
  197. }
  198. .listview-table-name {
  199. color: #ccc;
  200. font-size: 25rpx;
  201. }
  202. .listview-table-many {
  203. color: #000;
  204. font-size: 30rpx;
  205. font-weight: bold;
  206. }
  207. }
  208. }
  209. </style>