workTable.vue 5.7 KB

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