workTable.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <template>
  2. <view class="wrap">
  3. <view class="orderMonitor">
  4. <u-row class="userinfo-topbox" gutter="16" justify="center">
  5. <u-col span="6" text-align="center" style="margin: 1px;">
  6. <view style="color: #CCFFFF;">{{ defaultTruckCode }}</view>
  7. </u-col>
  8. <u-col span="6" text-align="center" style="margin: 1px;">
  9. <view style="color: #CCFFFF;"></view>
  10. </u-col>
  11. </u-row>
  12. <u-row style="margin-top:-25rpx;" class="userinfo-topbox" gutter="16" justify="center">
  13. <u-col span="6" text-align="center" style="margin: 1px;">
  14. <view style="color: #CCFFFF;">未配送订单</view>
  15. <view class="number">50</view>
  16. </u-col>
  17. <u-col span="6" text-align="center" style="margin: 1px;">
  18. <view style="color: #CCFFFF;">已配送订单</view>
  19. <view class="number">20</view>
  20. </u-col>
  21. </u-row>
  22. </view>
  23. <view class="workbench-title">常用应用</view>
  24. <view class="toolbar">
  25. <u-grid class="grid" :col="4" :border="false">
  26. <u-grid-item @click="navTo('/pages/feedback/scancodeCar')" :index="0">
  27. <view class="home-icon icon-color02">
  28. <i class="iconfont icon-cangpeitubiao_huanhuorukutuihuoruku"></i>
  29. </view>
  30. <view class="grid-text">扫码装车</view>
  31. </u-grid-item>
  32. <u-grid-item @click="navTo('/pages/feedback/print')" :index="1">
  33. <view class="home-icon icon-color02">
  34. <i class="iconfont icon-fahuo"></i>
  35. </view>
  36. <view class="grid-text">支线交接</view>
  37. </u-grid-item>
  38. <u-grid-item @click="navTo('/pages/feedback/signOrderCode')" :index="2">
  39. <view class="home-icon icon-color02">
  40. <i class="iconfont icon-kechengfankui"></i>
  41. </view>
  42. <view class="grid-text">扫码签收</view>
  43. </u-grid-item>
  44. </u-grid>
  45. </view>
  46. <view class="workbench-title">查询统计</view>
  47. <view class="toolbar">
  48. <u-grid class="grid" :col="4" :border="false">
  49. <u-grid-item @click="navTo('/pages/order/recordOrder')" :index="0">
  50. <view class="home-icon icon-color01">
  51. <i class="iconfont icon-lishigongdan"></i>
  52. </view>
  53. <view class="grid-text">签收记录</view>
  54. </u-grid-item>
  55. </u-grid>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. import request from '@/common/libs/request.js';
  61. export default {
  62. data() {
  63. return {
  64. defaultTruckCode: "",
  65. orderData: [],
  66. cardData: "",
  67. listData: {
  68. total: 0,
  69. page: 1,
  70. pageSize: 20
  71. },
  72. }
  73. },
  74. mounted: function (option) {
  75. this.initData()
  76. uni.setNavigationBarTitle({
  77. title:'工作台'
  78. })
  79. },
  80. methods: {
  81. initData() {
  82. let _that = this;
  83. request.httpPost("/dnyDriver/getDriverInfo", {}).then(res => {
  84. // console.log("res33333",res);
  85. if (res.httpCode == 200) {
  86. uni.setStorageSync("idDefaultTruck", res.data.idDefaultTruck);
  87. _that.defaultTruckCode = res.data.defaultTruckCode
  88. } else {
  89. uni.showToast({
  90. title: res.msg,
  91. icon: "error"
  92. })
  93. }
  94. });
  95. },
  96. navTo(url) {
  97. uni.navigateTo({
  98. url: url
  99. });
  100. },
  101. pullDownRefresh: function() {
  102. this.initData();
  103. }
  104. }
  105. }
  106. </script>
  107. <style lang="scss">
  108. .orderMonitor {
  109. height: 190 upx;
  110. border-radius: 4 upx;
  111. color: #F0F0F0;
  112. // background-image: linear-gradient(to right, #ffffff 0%, #ffffff 100%);
  113. background-image: linear-gradient(to right, #006699 0%, #6699CC 100%);
  114. border: #ffffff;
  115. padding: 16 upx;
  116. margin: 16 upx;
  117. box-shadow: 4 upx 4 upx 6 upx rgba(102, 153, 204, 0.4);
  118. }
  119. .userinfo-topbox {
  120. padding: 4px 8px;
  121. color: #000000;
  122. .number {
  123. font-size: 14px;
  124. font-weight: bold;
  125. color: #FF9900;
  126. }
  127. }
  128. .userinfo-infobox {
  129. color: #000000;
  130. background-image: linear-gradient(to right, #CCCCCC 0%, #CCCCCC 100%);
  131. .number {
  132. font-size: 12px;
  133. }
  134. }
  135. .wrap {
  136. background: #FFFFFF;
  137. .search {
  138. padding: 20 rpx 20 rpx 0;
  139. background: #f8f8f8;
  140. height: 105 rpx;
  141. }
  142. .scroll-list {
  143. height: calc(100vh - var(--window-top) - var(--window-bottom) - 105rpx); // 105rpx 为 .search 的高度
  144. width: 100%;
  145. .loadmore {
  146. padding: 30 rpx;
  147. }
  148. }
  149. .box {
  150. padding-bottom: 10 rpx;
  151. .item {
  152. margin: 0 20 rpx 20 rpx;
  153. padding: 8 rpx 20 rpx;
  154. border-radius: 20 rpx;
  155. box-sizing: border-box;
  156. background-color: #fff;
  157. font-size: 28 rpx;
  158. .title {
  159. display: flex;
  160. justify-content: space-between;
  161. background-color: #fff;
  162. padding-left: 15 rpx;
  163. align-items: center;
  164. .text {
  165. margin: 0 20 rpx;
  166. font-size: 35 rpx;
  167. font-weight: bold;
  168. }
  169. }
  170. }
  171. }
  172. .list {
  173. .u-cell-item-box {
  174. .u-swipe-content {
  175. width: 750 rpx;
  176. }
  177. .u-cell_title {
  178. overflow: hidden;
  179. white-space: nowrap;
  180. text-overflow: ellipsis;
  181. min-width: 655 rpx;
  182. }
  183. .u-border-bottom:last-child:after {
  184. border-bottom: 0;
  185. }
  186. }
  187. }
  188. .form {
  189. display: flex;
  190. flex-direction: column;
  191. padding: 20 rpx 30 rpx;
  192. .u-cell-item-box {
  193. border-radius: 20 rpx;
  194. }
  195. }
  196. .form-footer {
  197. display: flex;
  198. margin: 10 rpx;
  199. padding-bottom: 30 rpx;
  200. .btn {
  201. flex: 1;
  202. margin: 20 rpx;
  203. }
  204. }
  205. .u-cell-box {
  206. .u-cell {
  207. font-size: 30 rpx;
  208. }
  209. .u-cell_title {
  210. font-size: 30 rpx;
  211. }
  212. .u-cell__left-icon-wrap {
  213. margin-right: 18 rpx;
  214. }
  215. }
  216. }
  217. .workbench-title {
  218. font-size: 38rpx;
  219. font-weight: bold;
  220. color: #333333;
  221. padding: 15rpx 44rpx;
  222. display: inline-block;
  223. }
  224. .grid {
  225. .grid-icon {
  226. color: #666;
  227. }
  228. .grid-text {
  229. font-size: 24 rpx;
  230. padding: 15 rpx;
  231. color: #202328;
  232. }
  233. }
  234. .toolbar {
  235. background-color: #fff;
  236. padding-bottom: 30rpx;
  237. }
  238. </style>