reviewDtl-2.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <view class="">
  3. <uni-nav-bar title="退仓复核-详情" :status-bar="true" background-color="#3F92F9" color="#FFF">
  4. <view slot="left">
  5. <u-icon name="account-fill" color="#FFF" size="35"></u-icon>
  6. <span style="padding: 0 5rpx;color: #FFFFFF;">{{ userInfo.name }}</span>
  7. </view>
  8. <view slot="right" @tap="$utils.back()">
  9. <span style="color: #FFFFFF;">返回</span>
  10. </view>
  11. </uni-nav-bar>
  12. <ul>
  13. <li v-for="i in dtlData.checkDetailsInfoList" :key="i.materialId">
  14. <view class="title">
  15. 物料名称:{{i.materialName}}
  16. </view>
  17. <view class="lists">
  18. <view class="list-box" v-for="(j,jindex) in i.stockBackDetailsList" :key="i.id">
  19. <view class="col">
  20. 卷{{jindex + 1}}
  21. </view>
  22. <view class="col" style="padding: 0 10rpx;">
  23. {{j.materialMeters}}
  24. </view style="padding: 0 10rpx;">
  25. <view class="col">
  26. {{j.id}}
  27. </view>
  28. <view class="col">
  29. <button>扫描</button>
  30. </view>
  31. <view class="col">
  32. <button>生成</button>
  33. </view>
  34. </view>
  35. <view class="footer-btn-warp" style="margin-top: 20rpx;">
  36. <button class="cancel" style="color:#333">删除</button>
  37. <button class="upload" style="color:#333" @click="pushList">修改</button>
  38. </view>
  39. </view>
  40. </li>
  41. </ul>
  42. <view class="footer-btn-warp" style="margin-top: 20rpx;">
  43. <button class="cancel" style="background-color:red">取消</button>
  44. <button class="upload" style="background-color:blue" @click="pushList">确定</button>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. data(){
  51. return {
  52. dtlData:{},
  53. }
  54. },
  55. onLoad(option){
  56. console.log(option)
  57. this.getDtl(option.id)
  58. },
  59. methods:{
  60. pushList(){},
  61. getDtl(_id){
  62. console.log(_id)
  63. uni.request({
  64. url: 'http://120.79.80.64:8050' + '/cloudApi/stockBack/checkDetails',
  65. method: 'POST',
  66. header:{
  67. 'Content-Type' : 'application/json',
  68. },
  69. data: {
  70. stockBackId:_id
  71. },
  72. success: res => {
  73. this.dtlData = res.data.data
  74. console.log(this.dtlData)
  75. },
  76. });
  77. },
  78. },
  79. }
  80. </script>
  81. <style scoped lang="less">
  82. .footer-btn-warp{
  83. display: flex;
  84. padding: 20rpx;
  85. button{
  86. width: 48%;
  87. color: #fff;
  88. }
  89. }
  90. ul{
  91. padding: 0 20rpx;
  92. li{
  93. background-color: #fff;
  94. border-radius: 6rpx;
  95. list-style: none;
  96. margin-top: 20rpx;
  97. .title{
  98. height: 100rpx;
  99. line-height: 100rpx;
  100. font-size: 30rpx;
  101. border-bottom: 1px solid #dcdcdc;
  102. padding: 0 20rpx;
  103. }
  104. .lists{
  105. .list-box{
  106. overflow: hidden;
  107. line-height: 80rpx;
  108. .col{
  109. float: left;
  110. width: 20%;
  111. text-align: center;
  112. overflow: hidden;
  113. button{
  114. width: 80%;
  115. }
  116. }
  117. }
  118. }
  119. }
  120. }
  121. </style>