SonGroup.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <view class="box">
  3. <view class="mainBox">
  4. <view class="workBox2" v-for="(item,index) in itemList" :key="index">
  5. <view class="leftBox">
  6. <view class="name">{{item.name}}</view>
  7. <view @click="goModelThree(item)" class="code">{{item.partnum}}</view>
  8. <view class="comment">{{item.caption}}</view>
  9. <view class="comment">{{item.group}}</view>
  10. </view>
  11. <image src="../../static/img/rightArrow.png" mode="" style="width: 12rpx; height: 20rpx"></image>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. epc_id:'',
  21. token:'',
  22. param:'',
  23. access_time:'',
  24. itemData:{},
  25. itemList: []
  26. }
  27. },
  28. onLoad(opt) {
  29. this.epc_id = opt.epc_id;
  30. this.token = opt.token;
  31. this.param = opt.param;
  32. this.access_time = opt.access_time;
  33. this.getItemData();
  34. },
  35. methods: {
  36. // 配件组别
  37. getItemData() {
  38. uni.showLoading({
  39. title: '加载中'
  40. });
  41. this.$http('advancedEpc/findInModelPc', {
  42. epc_id:this.epc_id,
  43. token:this.token,
  44. param:this.param,
  45. access_time:this.access_time,
  46. }, 'GET').then(res => {
  47. uni.hideLoading();
  48. this.itemData = res.data.result;
  49. this.itemList = res.data.result.list;
  50. });
  51. },
  52. goModelThree(item) {
  53. // console.log('num==',item);
  54. uni.navigateTo({
  55. url: 'modelThree?epc_id=' + this.epc_id + '&token=' + item.token + '&param=' + item.param+ '&access_time=' + this.itemData.access_time + '&oemSearch=true'
  56. })
  57. }
  58. }
  59. }
  60. </script>
  61. <style>
  62. .box {
  63. min-height: 100vh;
  64. background: #F4F5F7;
  65. padding-top: 20rpx;
  66. }
  67. .mainBox {
  68. background: #FFFFFF;
  69. }
  70. .workBox2 {
  71. background: #FFFFFF;
  72. border-bottom: 1rpx solid #EEEEEE;
  73. padding: 20rpx 24rpx 0rpx;
  74. display: flex;
  75. align-items: center;
  76. }
  77. .leftBox {
  78. width: calc(100vw - 20rpx);
  79. }
  80. .name {
  81. color: #333333;
  82. font-size: 26rpx;
  83. font-weight: bold;
  84. padding-bottom: 15rpx;
  85. }
  86. .comment {
  87. color: #999999;
  88. font-size: 24rpx;
  89. padding-bottom: 15rpx;
  90. }
  91. .code {
  92. color: #3F90F7;
  93. font-size: 24rpx;
  94. padding-bottom: 15rpx;
  95. }
  96. .rightBox {
  97. width: 20rpx;
  98. }
  99. </style>