overCloth.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view class="overCloth">
  3. <uni-search-bar @confirm="getData" v-model="req.keyword" @cancel="reload">
  4. </uni-search-bar>
  5. <view class="addQrcode-list" v-for="(i,index) in listData" :key="index" @click="toRouter(i.id)">
  6. <view class="fl">
  7. <view class="" style="color: #aaaaaa;">
  8. 物料编码:{{i.code}}
  9. </view>
  10. <view class="" style="color: #aaaaaa;">
  11. 仓库名称:{{i.houseName}}
  12. </view>
  13. <view class="">
  14. 物料名称:<span>{{i.name}}</span>
  15. </view>
  16. <view class="">
  17. 待过布:{{i.notOut}}
  18. <span style="color: #0066CC;margin-left: 40rpx;" >过布出库:{{i.alreadyOut}}</span>
  19. <span style="color: #F59A23;margin-left: 40rpx;" >已过布待归还:{{i.notIn}}</span>
  20. </view>
  21. </view>
  22. <view class="fr">
  23. <uni-icons type="forward" color="#0066CC" size="30"></uni-icons>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. import {
  30. getInfo
  31. } from "@/util/api.js";
  32. import {dateFormat,getTime} from '../../util/uitl.js'
  33. export default {
  34. data() {
  35. return {
  36. listData:[],
  37. req:{
  38. keyword:null,
  39. }
  40. }
  41. },
  42. onLoad() {
  43. const v = this
  44. v.getData()
  45. },
  46. methods: {
  47. reload(){
  48. this.req.keyword = null
  49. this.getData()
  50. },
  51. getData(){
  52. const v = this
  53. v.$post('/wx/shrinkHandle/getShrinkHandleList',v.req).then(res=>{
  54. v.listData = res.data
  55. })
  56. },
  57. toRouter(id){
  58. const v = this
  59. console.log(id)
  60. uni.navigateTo({
  61. url: '/pages/Inventory/InventoryDtl?id=' + id
  62. })
  63. },
  64. },
  65. }
  66. </script>
  67. <style lang="less">
  68. .overCloth{
  69. .addQrcode-list {
  70. height: 100rpx;
  71. display: flex;
  72. justify-content: space-between;
  73. padding: 15rpx;
  74. border-bottom: 1rpx solid #dcdcdc;
  75. font-size: 24rpx;
  76. .fr {
  77. line-height: 100rpx;
  78. color: #0066CC;
  79. }
  80. }
  81. }
  82. </style>