artificial-paste.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!-- 手动贴标列表 -->
  2. <template>
  3. <view class="container-wrap">
  4. <uni-nav-bar title="手动贴标" :status-bar="true" background-color="#3F92F9" color="#FFF">
  5. <view slot="left">
  6. <u-icon name="account-fill" color="#FFF" size="35"></u-icon>
  7. <span style="padding: 0 5rpx;color: #FFFFFF;">{{ userInfo.name }}</span>
  8. </view>
  9. <view slot="right" @tap="$utils.back()">
  10. <span style="color: #FFFFFF;">返回</span>
  11. </view>
  12. </uni-nav-bar>
  13. <view class="container">
  14. <view class="list">
  15. <view class="item" v-for="(item, index) in data" :key="index" @tap="toDetail(item)">
  16. <view class="row">
  17. <view class="col">
  18. <text class="label">物料名称:</text>
  19. <text class="value">{{ item.materialName }}</text>
  20. </view>
  21. </view>
  22. <view class="row">
  23. <view class="col">{{ item.stockInNum }}个入库单</view>
  24. <view class="col" style="justify-content: flex-end;"><a href="#">查看详情</a></view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. // #ifdef APP-PLUS
  33. // #endif
  34. export default {
  35. data() {
  36. return {
  37. data: [],
  38. isReading: false
  39. };
  40. },
  41. methods: {
  42. /* 查看详情 */
  43. toDetail(data) {
  44. console.log(data)
  45. this.$utils.open(`/pages/store-in-manage/artificial-paste/artificial-paste-detail?data=${this.$utils.object2Code(data)}`)
  46. },
  47. getList() {
  48. this.$http.GetStockInRfidLabel().then(res => {
  49. console.log(res)
  50. if(res.code === 0) {
  51. this.data = res.result
  52. }
  53. })
  54. }
  55. },
  56. onLoad(option) {
  57. this.getList()
  58. },
  59. onUnload() {
  60. // #ifdef APP-PLUS
  61. // #endif
  62. }
  63. }
  64. </script>
  65. <style lang="scss" scoped>
  66. .container-wrap {
  67. overflow: hidden;
  68. .container {
  69. padding: 10rpx;
  70. height: calc(100vh - var(--status-bar-height) - 44px);
  71. overflow: auto;
  72. .list {
  73. .item {
  74. padding: 20rpx;
  75. margin-bottom: 10rpx;
  76. background-color: #FFFFFF;
  77. border: 1rpx solid rgba(215, 215, 215, 1);
  78. border-radius: 10rpx;
  79. }
  80. }
  81. }
  82. }
  83. </style>