home.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <template>
  2. <view>
  3. <view style="
  4. background: url(../../static/homeBG.png)no-repeat;
  5. height: 340rpx;
  6. background-size:100%;
  7. box-shadow: 0px 0px 8px 0px rgba(165, 189, 251, 0.4);">
  8. <u-navbar :is-back="false" :is-fixed="false" :border-bottom="false" :background="background">
  9. <view style="width: 96%;margin: 0 auto;">
  10. <u-search placeholder="请输入您要搜索的内容" bg-color="#FFFFFF" :action-style="actionStyle"></u-search>
  11. </view>
  12. </u-navbar>
  13. <!-- 快捷功能 -->
  14. <view style="height: 150rpx;margin-top: -20rpx;">
  15. <u-grid :col="3" :border="false">
  16. <u-grid-item bg-color="#ffffff00" style="background-color: rgba(0,0,0,0);">
  17. <u-icon name="order" color="#fff" size="60"></u-icon>
  18. <view class="grid-text" style="color: #FFFFFF;margin-top: 10px;">我的数据</view>
  19. </u-grid-item>
  20. <u-grid-item @click="myReview" bg-color="#ffffff00" style="background-color: rgba(0,0,0,0);">
  21. <u-badge type="error" :count="totalTwo" style="margin-right: 30rpx;" />
  22. <u-icon name="edit-pen" color="#fff" size="60"></u-icon>
  23. <view class="grid-text" style="color: #FFFFFF;margin-top: 10px;">我的审核</view>
  24. </u-grid-item>
  25. <u-grid-item @click="scanCode" bg-color="#ffffff00" style="background-color: rgba(0,0,0,0);">
  26. <u-icon name="scan" color="#fff" size="60"></u-icon>
  27. <view class="grid-text" style="color: #FFFFFF;margin-top: 10px;">扫一扫</view>
  28. </u-grid-item>
  29. </u-grid>
  30. </view>
  31. <!-- 正文内容 -->
  32. <view class="content">
  33. <u-grid :col="4" :border="false">
  34. <u-grid-item @click="jumpPath(1)">
  35. <u-icon name="arrow-downward" :size="46"></u-icon>
  36. <view class="grid-text">我的入库</view>
  37. </u-grid-item>
  38. <u-grid-item @click="jumpPath(2)">
  39. <u-icon name="arrow-upward" :size="46"></u-icon>
  40. <view class="grid-text">我的出库</view>
  41. </u-grid-item>
  42. <u-grid-item @click="jumpPath(3)">
  43. <u-icon name="hourglass" :size="46"></u-icon>
  44. <view class="grid-text">我的调拨</view>
  45. </u-grid-item>
  46. <u-grid-item @click="jumpPath(4)">
  47. <u-icon name="photo" :size="46"></u-icon>
  48. <view class="grid-text">我的货转</view>
  49. </u-grid-item>
  50. <u-grid-item @click="jumpPath(5)">
  51. <u-icon name="lock" :size="46"></u-icon>
  52. <view class="grid-text">我的库存</view>
  53. </u-grid-item>
  54. <u-grid-item @click="jumpPath(6)">
  55. <u-icon name="lock" :size="46"></u-icon>
  56. <view class="grid-text">海运费计算</view>
  57. </u-grid-item>
  58. <u-grid-item @click="jumpPath(7)">
  59. <u-icon name="camera" :size="46"></u-icon>
  60. <view class="grid-text">我的巡检</view>
  61. </u-grid-item>
  62. <!-- <u-grid-item @click="jumpPath(12)">
  63. <u-icon name="eye-fill" :size="46"></u-icon>
  64. <view class="grid-text">我的视频</view>
  65. </u-grid-item> -->
  66. <!-- <u-grid-item @click="jumpPath(8)">
  67. <u-badge type="error" :count="total" />
  68. <u-icon name="checkmark-circle" :size="46"></u-icon>
  69. <view class="grid-text">我的采购</view>
  70. </u-grid-item> -->
  71. <u-grid-item @click="jumpPath('null')">
  72. <u-icon name="grid" :size="46"></u-icon>
  73. <view class="grid-text">其他</view>
  74. </u-grid-item>
  75. </u-grid>
  76. </view>
  77. <view style="width: 96%;margin: 0 auto;">
  78. <u-image width="100%" height="170rpx" src="../../static/activityDiagram1.png"></u-image>
  79. </view>
  80. <view style="width: 96%;margin: 10rpx auto;">
  81. <u-image width="100%" height="900rpx" src="../../static/image/advertisingMap.png"></u-image>
  82. <!-- <p style="text-indent:50rpx;margin-bottom: 20rpx;">青岛中电国际物流有限公司业务范围包括:大宗货物运输、大型设备运输、冷链运输等,承接全国各地货物运输业务。</p> -->
  83. <!-- <p style="text-indent:50rpx;margin-bottom: 20rpx;">在传统的国际国内集装箱运输及代理业务基础上,公司现有综合业务包括大型仓储拆箱配送物流、多式联运、大陆桥运输、散杂货物租船代运、项目物流、仓储等全方位的物流服务。 青岛中电国际物流有限公司拥有一支精良的项目管理队伍,以客户需求的为主要目标,致力于为客户提供全方位、一流的物流运输方案和实践。</p> -->
  84. <!-- <p style="text-indent:50rpx;margin-bottom: 20rpx;">公司始终坚持以诚信、效率、创新为经营宗旨,并注重长期关系。从业人员经过物流知识三年专业培训方能上岗,公司坚持“以人为本”的管理思想,以“诚信创新、敬业、奋进”为企业精神,全方位为客户提供服务。</p> -->
  85. <!-- <p style="text-indent:50rpx;">我们可针对客户需求订制个性化解决方案,将运输管理、仓库管理以及订单管理进行一体化整合,公司统一管理,统一调度,实现了规模化,现代化管理模式。</p> -->
  86. </view>
  87. <view style="width: 96%;margin: 0 auto;height: 100rpx;">
  88. <!-- <h1>全新功能正在开发中</h1> -->
  89. </view>
  90. </view>
  91. <!-- 更新组件 force 是否强制更新 tabbar:页面是否有原生tabbar组件-->
  92. <app-update ref="app_update" :force="false" :tabbar="true"></app-update>
  93. </view>
  94. </template>
  95. <script>
  96. import appUpdate from "@/components/yzhua006-update/app-update.vue"
  97. export default {
  98. components: {
  99. appUpdate
  100. },
  101. data() {
  102. return {
  103. background: {
  104. backgroundImage: 'none',
  105. backgroundColor: 'none'
  106. },
  107. actionStyle: {
  108. color: '#fff'
  109. },
  110. deptName: '',
  111. form: {
  112. pageNum: 1,
  113. pageSize: 10,
  114. fBilltype: 'SQ',
  115. fTakeOrders: 0
  116. },
  117. total: '',
  118. totalTwo: ''
  119. }
  120. },
  121. onShow() {
  122. this.$nextTick(function() {
  123. this.testUpgrade()
  124. })
  125. // this.deptName = uni.getStorageSync('deptName')
  126. // if (this.deptName == '外部用户') {
  127. // this.$u.get('/anPin/anPinApp/supplier', this.form).then(res => {
  128. // this.dataList = res.rows
  129. // this.total = res.total
  130. // })
  131. // } else {
  132. // this.$u.get('/anPin/anPinApp/list', this.form).then(res => {
  133. // this.dataList = res.rows
  134. // this.total = res.total
  135. // })
  136. // }
  137. // this.$u.get('/warehouse/paths/selectOrderAuditItems', {
  138. // refno2: 'SQ',
  139. // auditStatus: 'S'
  140. // }).then(res => {
  141. // this.totalTwo = res.data.length
  142. // })
  143. },
  144. methods: {
  145. testUpgrade() {
  146. this.$refs.app_update.update(); //调用子组件 检查更新
  147. },
  148. scanCode() {
  149. uni.scanCode({
  150. success: res => {
  151. console.log(res.result)
  152. }
  153. });
  154. },
  155. jumpPath(res) {
  156. switch (res) {
  157. case 1:
  158. this.$u.route('/pages/home/myorder/index');
  159. break;
  160. case 2:
  161. this.$u.route('/pages/home/delivery/index');
  162. break;
  163. // case 3:
  164. // this.$u.route('/pages/home/allocation/index');
  165. // break;
  166. // case 4:
  167. // this.$u.route('/pages/home/goodsTransfer/index');
  168. // break;
  169. case 5:
  170. this.$u.route('/pages/home/inventoryQuery/index');
  171. break;
  172. case 6:
  173. this.$u.route('/pages/home/freightCalculation/shipSchedule');
  174. break;
  175. case 7:
  176. this.$u.route('/pages/home/patrolInspection/index');
  177. break;
  178. case 8:
  179. this.$u.route('/pages/home/procurementApplicationApproval/index');
  180. break;
  181. case 12:
  182. this.$u.route('/pages/home/ceshi');
  183. break;
  184. default:
  185. uni.showToast({
  186. icon: 'none',
  187. title: '该功能暂未开发~',
  188. position: "bottom"
  189. })
  190. break;
  191. }
  192. },
  193. myReview() {
  194. this.$u.route('/pages/home/myReview/index');
  195. },
  196. myData() {
  197. uni.showToast({
  198. icon: 'none',
  199. title: '该功能暂未开发~',
  200. position: "bottom"
  201. })
  202. }
  203. }
  204. }
  205. </script>
  206. <style scoped lang="scss">
  207. .content {
  208. width: 96%;
  209. margin: 0 auto;
  210. box-shadow: 0px 0px 8px 0px rgba(165, 189, 251, 0.4);
  211. background-color: #FFFFFF;
  212. margin-top: 20rpx;
  213. border-radius: 20rpx;
  214. padding: 10rpx;
  215. }
  216. .grid-text {
  217. font-size: 28rpx;
  218. margin-top: 4rpx;
  219. color: $u-type-info;
  220. }
  221. </style>