review.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <div>
  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.open(`/pages/index/index`)">
  9. <span style="color: #FFFFFF;">返回</span>
  10. </view>
  11. </uni-nav-bar>
  12. <ul >
  13. <li v-for="i in checkList" :key="i.stockBackId">
  14. <view class="text">
  15. 退仓人员:{{i.realName}}
  16. </view>
  17. <view class="text">
  18. 提交时间:{{i.operationTime}}
  19. </view>
  20. <view class="text">
  21. 面料卷数:{{i.operationNum}}
  22. </view>
  23. <view class="text">
  24. 面料米数:{{i.operationMeters}}
  25. </view>
  26. <button style="" @click="toDtl(i.stockBackId)">去复核</button>
  27. </li>
  28. </ul>
  29. </div>
  30. </template>
  31. <script>
  32. export default{
  33. name:"xx",
  34. data(){
  35. return{
  36. checkList:[],
  37. }
  38. },
  39. created(){
  40. this.selectList()
  41. },
  42. methods:{
  43. toDtl(_id){
  44. console.log(_id)
  45. const v = this
  46. uni.removeStorage({
  47. key: 'reviewDtl',
  48. success: function (res) {
  49. v.$utils.open(`/pages/warehouse/reviewDtl?id=${_id}`)
  50. },fail() {
  51. v.$utils.open(`/pages/warehouse/reviewDtl?id=${_id}`)
  52. }
  53. });
  54. },
  55. selectList(){
  56. const v = this
  57. uni.request({
  58. url: 'http://120.79.80.64:8050' + '/cloudApi/stockBack/checkList',
  59. method: 'POST',
  60. header:{
  61. 'Content-Type' : 'application/json',
  62. },
  63. data: v.req,
  64. success: res => {
  65. console.log(res)
  66. this.checkList = res.data.data
  67. },
  68. });
  69. },
  70. },
  71. }
  72. </script>
  73. <style scoped lang="less">
  74. ul{
  75. padding: 0 20rpx;
  76. li{
  77. .text{
  78. height: 60rpx;
  79. line-height: 60rpx;
  80. padding: 0 20rpx;
  81. }
  82. border-radius: 5rpx;
  83. list-style: none;
  84. background-color: #fff;
  85. overflow: hidden;
  86. margin-top: 20rpx;
  87. button{
  88. background-color: blue;
  89. margin-top: 20prx;
  90. color: #fff;
  91. }
  92. }
  93. }
  94. </style>