mayPayStat.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <template>
  2. <view class="ex-page">
  3. <view class="top-bar">
  4. <DateSelect class="bar" top="0" @selectDateFn="selectDateFn" />
  5. </view>
  6. <scroll-view scroll-y scroll-with-animation class="main-view">
  7. <view class="space-view ex-table">
  8. <block>
  9. <t-table :headerBackgroundColor="'#F0F2F6'">
  10. <t-tr header><t-th>供货商</t-th><t-th>应付款(元)</t-th><t-th>操作</t-th></t-tr>
  11. <t-tr><t-td><view>盛丰</view></t-td><t-td><view>286500.00</view></t-td><t-td><view></view></t-td></t-tr>
  12. <t-tr><t-td><view>茗星花卉</view></t-td><t-td><view>170129.00</view></t-td><t-td><view></view></t-td></t-tr>
  13. <t-tr><t-td><view>珍情花卉</view></t-td><t-td><view>367111.00</view></t-td><t-td><view></view></t-td></t-tr>
  14. <t-tr><t-td><view>花伍鲜花</view></t-td><t-td><view>551906.00</view></t-td><t-td><view></view></t-td></t-tr>
  15. <t-tr><t-td><view>花醉美</view></t-td><t-td><view>74403.00</view></t-td><t-td><view></view></t-td></t-tr>
  16. <t-tr><t-td><view>美旗鲜花</view></t-td><t-td><view>64403.00</view></t-td><t-td><view></view></t-td></t-tr>
  17. <t-tr><t-td><view>花醉美</view></t-td><t-td><view>94403.00</view></t-td><t-td><view></view></t-td></t-tr>
  18. </t-table>
  19. </block>
  20. </view>
  21. </scroll-view>
  22. </view>
  23. </template>
  24. <script>
  25. import AppWrapperEmpty from "@/components/app-wrapper-empty";
  26. import SelectList from "@/components/plugin/selectList";
  27. import { getStatProfit } from "@/api/stat/index";
  28. import { list } from "@/mixins";
  29. import DorpdownSelect from "@/components/module/shopSelect";
  30. import {mapActions, mapGetters} from "vuex";
  31. export default {
  32. components: { SelectList, AppWrapperEmpty,DorpdownSelect },
  33. mixins: [list],
  34. computed: { ...mapGetters(["getDictionariesInfo","getLoginInfo"]) },
  35. data() {
  36. return {
  37. isShow:false,
  38. customizationTime:'',
  39. shopId:'',
  40. itemId:'',
  41. nowTime: "",
  42. showTimeDropdown: false,
  43. nowShop: "",
  44. showShopDropdown: false,
  45. columns: [
  46. {
  47. name: "姓名",
  48. dataIndex: "name",
  49. color: "info"
  50. },
  51. {
  52. name: "开单额",
  53. dataIndex: "amount",
  54. color: "info",
  55. width: 120,
  56. align: "center"
  57. },
  58. {
  59. name: "开单数",
  60. dataIndex: "num",
  61. color: "info",
  62. align: "center"
  63. }
  64. ],
  65. dataList: [],
  66. params:{
  67. itemId: '',
  68. searchTime:'',
  69. startTime: "",
  70. endTime: "",
  71. shopId: "",
  72. },
  73. profit:[],
  74. };
  75. },
  76. onPullDownRefresh() {
  77. this.resetList();
  78. this._list().then(res => {
  79. uni.stopPullDownRefresh();
  80. });
  81. },
  82. onLoad(e) {
  83. this.itemId = e.id;
  84. this.params.itemId = e.id;
  85. this.shopId = this.getLoginInfo.shopId;
  86. },
  87. methods: {
  88. ...mapActions(['setUserShopAll']),
  89. async init() {
  90. this._list();
  91. },
  92. _list() {
  93. let that = this
  94. getStatProfit(this.params).then(res => {
  95. that.profit = res.data
  96. });
  97. }
  98. }
  99. };
  100. </script>
  101. <style lang="scss" scoped>
  102. .ex-page {
  103. background: white;
  104. height: 100%;
  105. display: flex;
  106. flex-direction: column;
  107. .top-bar {
  108. position: absolute;
  109. left: 0;
  110. display: flex;
  111. width: 100%;
  112. top:116upx;
  113. z-index: 20;
  114. .bar{
  115. width: 50%;
  116. height: 100%;
  117. text-align: center;
  118. &:nth-child(1){
  119. border-right: 1upx solid #eeeeec;
  120. }
  121. }
  122. }
  123. .main-view {
  124. margin-top: 80upx;
  125. flex: 1;
  126. background-color: #f9fbfc;
  127. .space-view {
  128. background-color: #fff;
  129. }
  130. .ex-info {
  131. padding: 30upx;
  132. .info-cell {
  133. display: flex;
  134. align-items: center;
  135. font-size: 28upx;
  136. &:not(:first-child) {
  137. margin-top: 20upx;
  138. }
  139. .cell-label {
  140. width: 110upx;
  141. color: #666666;
  142. }
  143. .cell-value {
  144. margin-left: 40upx;
  145. color: #333;
  146. &.warning {
  147. color: #ffaf1d;
  148. }
  149. &.success {
  150. color: #27c325;
  151. }
  152. }
  153. }
  154. }
  155. .ex-table {
  156. ::v-deep.icon-info {
  157. color: #333333;
  158. }
  159. }
  160. }
  161. .bar-view {
  162. display: flex;
  163. justify-content: space-between;
  164. align-items: center;
  165. padding: 0 30upx;
  166. width: 100%;
  167. height: 100upx;
  168. box-shadow: 0upx -1upx 6upx 0upx rgba(4, 0, 0, 0.06);
  169. .info-view {
  170. font-size: 26upx;
  171. }
  172. .btn-view {
  173. display: flex;
  174. .admin-button-com {
  175. margin: 0 10upx;
  176. }
  177. }
  178. }
  179. }
  180. </style>