cylinderTransfer.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <view>
  3. <u-navbar title="钢瓶调拨" autoBack placeholder></u-navbar>
  4. <view style="width: 100%;">
  5. <!-- <view class="transfer_cardil" @click="transferRecord">
  6. <view class="title_eeeeiul">调拨记录</view>
  7. <u-icon name="file-text" size="30"></u-icon>
  8. </view> -->
  9. <view class="transfer_card" v-for="(item,index) in dataList" :key="index" @click="getAllot(item)">
  10. <view class="title_eeee">{{item.title}}</view>
  11. <u-icon name="arrow-right"></u-icon>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. dataList: [],
  21. // 气站
  22. dataList1: [{
  23. id: '13',
  24. title: '确认空瓶到达气站'
  25. }, {
  26. id: '016',
  27. title: '确认重瓶到达气站'
  28. }, {
  29. id: 'Unqualified',
  30. title: '回收不合格钢瓶'
  31. }],
  32. // 司机
  33. dataList2: [{
  34. id: '17',
  35. title: '确认重瓶从气站出库'
  36. }, {
  37. id: '11',
  38. title: '确认空瓶装车'
  39. }, {
  40. id: '033',
  41. title: '确认重瓶从门店出库'
  42. }, {
  43. id: 'Unqualified',
  44. title: '回收不合格钢瓶'
  45. }],
  46. // 门店
  47. dataList3: [{
  48. id: '31',
  49. title: '确认重瓶卸货入库'
  50. }, {
  51. id: '35',
  52. title: '确认未配送重瓶返库'
  53. }, {
  54. id: '21',
  55. title: '门店回收空瓶'
  56. }, {
  57. id: 'Unqualified',
  58. title: '回收不合格钢瓶'
  59. }],
  60. // 送气员
  61. dataList4: [{
  62. id: '25',
  63. title: '领重瓶出库'
  64. }],
  65. }
  66. },
  67. mounted() {
  68. var userInfo = this.$cache.getCache('userInfo')
  69. if (userInfo.provUser) {
  70. if (userInfo.provUser.isorders == 0 && userInfo.provUser.userType == 3) {
  71. // '送气员端'
  72. this.dataList = this.dataList4
  73. } else if (userInfo.provUser.userType == 3) {
  74. // '门店端'
  75. this.dataList = this.dataList3
  76. } else if (userInfo.provUser.userType == 4) {
  77. // '司机端'
  78. this.dataList = this.dataList2
  79. } else if (userInfo.provUser.userType == 5) {
  80. // '气站端'
  81. this.dataList = this.dataList1
  82. }
  83. } else {
  84. // '送气员端'
  85. this.dataList = this.dataList4
  86. }
  87. },
  88. methods: {
  89. getAllot(value) {
  90. uni.navigateTo({
  91. url: '/pages/order/cannibalize?type=' + value.id + '&title=' + value.title
  92. });
  93. },
  94. // 调拨记录
  95. transferRecord() {
  96. uni.navigateTo({
  97. url: '/pages/information/transferRecord'
  98. });
  99. }
  100. }
  101. }
  102. </script>
  103. <style lang="scss">
  104. .transfer_cardil {
  105. display: flex;
  106. align-items: center;
  107. justify-content: space-between;
  108. margin: 25rpx;
  109. padding: 20rpx 30rpx;
  110. border-radius: 10rpx;
  111. border: 1rpx solid #e7e6e4;
  112. }
  113. .title_eeeeiul {
  114. font-size: 32rpx;
  115. font-weight: 600;
  116. }
  117. .transfer_card {
  118. display: flex;
  119. justify-content: space-between;
  120. align-items: center;
  121. margin: 0px 30rpx;
  122. padding: 30rpx 10rpx;
  123. border-bottom: 1rpx solid #e7e6e4;
  124. }
  125. .title_eeee {
  126. font-size: 32rpx;
  127. }
  128. </style>