index.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view>
  3. <view class="menu">
  4. <view class="btn">
  5. <u-button type="success" @click="goScanBox">按计划装箱</u-button>
  6. </view>
  7. <view class="btn">
  8. <u-button @click="goScanSet">无计划装箱</u-button>
  9. </view>
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. boxForm: {
  19. invType: '',
  20. org: '',
  21. workshop: '',
  22. packType: '',
  23. },
  24. invTypes: [],
  25. orgs: [],
  26. workshops: [],
  27. packTypes: [],
  28. }
  29. },
  30. mounted() {},
  31. onLoad(option) {
  32. // const Info = JSON.parse(decodeURIComponent(option.Info))
  33. // console.log(Info);
  34. uni.setStorageSync('box_invType', '');
  35. },
  36. methods: {
  37. goScanBox() {
  38. uni.setStorageSync('box_invType', 'AJHZX');
  39. this.$tab.navigateTo('/pages/index/scan-box')
  40. },
  41. goScanSet() {
  42. uni.setStorageSync('box_invType', 'ZXRGJC');
  43. this.$tab.navigateTo('/pages/index/scan-set')
  44. },
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. page {
  50. // background-image: linear-gradient(to bottom, #b9c4de, #ffffff);
  51. }
  52. .menu {
  53. display: flex;
  54. flex-wrap: wrap;
  55. padding-top: 20%;
  56. flex-direction: column;
  57. align-items: center;
  58. .btn {
  59. margin: 5%;
  60. width: 50%;
  61. }
  62. }
  63. </style>