transferCompositeList.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <div>
  3. <view class="ul">
  4. <view class="li" v-for="i in dataList" :key="i.id">
  5. <view class="line">
  6. 提交人员:{{i.submitUser}}
  7. <view class="span">
  8. 接收人员:<span>{{i.receiveUser}}</span>
  9. </view>
  10. </view>
  11. <view class="line">
  12. 提交时间:{{i.submitTime}}
  13. </view>
  14. <view class="line">
  15. 面料卷数:{{i.submitNum}}
  16. <view class="span">
  17. 面料米数:<span >{{i.submitMeters}}</span>
  18. </view>
  19. </view>
  20. <view class="btn-warp">
  21. <button @click="operation(i.id)" style="background-color: blue;color:#fff">去复核</button>
  22. </view>
  23. </view>
  24. </view>
  25. </div>
  26. </template>
  27. <script>
  28. export default{
  29. name:"xx",
  30. data(){
  31. return{
  32. userInfo:null,
  33. dataList:[],
  34. }
  35. },
  36. created(){
  37. setTimeout(()=>{
  38. this.getList()
  39. },100)
  40. },
  41. methods:{
  42. operation(_id){
  43. const v = this
  44. uni.navigateTo({
  45. url: '/pages/materialTransfer/transferComposite?id=' + _id
  46. })
  47. },
  48. getList(){
  49. const v = this
  50. uni.getStorage({
  51. key: 'Authorization',
  52. success: function (res) {
  53. v.$post('/stockTransfer/page',{
  54. account:res.data.account,
  55. pageNum:1,
  56. pageSize:10000,
  57. }).then(res=>{
  58. console.log(res)
  59. v.dataList = res.data.records
  60. })
  61. }
  62. });
  63. },
  64. },
  65. }
  66. </script>
  67. <style scoped lang="less">
  68. .ul{
  69. min-height: 100vh;
  70. background-color: #f2f2f2;
  71. }
  72. .li{
  73. background-color: #fff;
  74. margin: 20rpx 20rpx 0;
  75. padding: 20rpx;
  76. list-style: none;
  77. .line{
  78. position: relative;
  79. line-height: 70rpx;
  80. border: none;
  81. display: flex;
  82. padding: 0 20rpx;
  83. .span{
  84. position: absolute;
  85. left: 50%;
  86. }
  87. }
  88. }
  89. .btn-warp{
  90. }
  91. .footer-btn{
  92. position: fixed;
  93. bottom: 10rpx;
  94. left: 10rpx;
  95. right: 10rpx;
  96. background-color: red;
  97. color: #fff;
  98. }
  99. </style>