Inventoryentrydetails.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <template>
  2. <view>
  3. <view class='search'>
  4. <u-search placeholder='可按货源查找' search-icon-color='#AFB3BF' bg-color='#F5F6F9' :shape='"round"' :clearabled="true" :show-action='false'></u-search>
  5. </view>
  6. <view style='justify-content: space-between;background:#fff;padding:20rpx;' class='flex'>
  7. <view @click='show=true'>{{startDate}}-{{endDate}}></view>
  8. <view>全部仓库></view>
  9. </view>
  10. <u-calendar v-model="show" :mode="mode"></u-calendar>
  11. <view class='contractwrap' v-for='(item,index) in warehouseList'>
  12. <view class='flex contractwrap-title'>
  13. <view class='contractNo'>{{item.contractNo}}</view>
  14. <view class='contractNo'>{{item.date}}</view>
  15. </view>
  16. <view style='background:#EFFAF4;border-radius:10rpx;'>
  17. <view style='color:#22C572;padding:20rpx;border-bottom:1rpx solid #D8E8E0;' class='flex'>
  18. <view>111</view>
  19. <view></view>
  20. <view></view>
  21. </view>
  22. <view class='flex contractwrap-item'>
  23. <view class="title">买方</view>
  24. <view></view>
  25. </view>
  26. <view class='flex contractwrap-item'>
  27. <view class="title">卖方</view>
  28. <view></view>
  29. </view>
  30. <view class='flex contractwrap-item'>
  31. <view class="title">最终完成量(吨)</view>
  32. <view></view>
  33. </view>
  34. <view class='flex contractwrap-item'>
  35. <view class="title">利润(元)</view>
  36. <view></view>
  37. </view>
  38. <view class='flex contractwrap-item'>
  39. <view class="title">结算日期</view>
  40. <view></view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. export default {
  48. data() {
  49. return {
  50. startDate:'',
  51. endDate:'',
  52. mode:'range',
  53. show:false,
  54. warehouseList:[
  55. {status:'已完成',
  56. contractNo:'HT39854455',
  57. costtype:'水费',
  58. costmoney:'121111',
  59. warehouse:'金信库',
  60. name:'张三',
  61. date:'2022.11.22 15:32:21'},
  62. ]
  63. }
  64. },
  65. onLoad() {
  66. },
  67. onShow() {
  68. var date=new Date()
  69. this.startDate=date.getFullYear()+'-'+((date.getMonth()+1)<10?('0'+(date.getMonth()+1)):(date.getMonth()+1))+'-'+(date.getDate()-1)
  70. this.endDate=date.getFullYear()+'-'+((date.getMonth()+1)<10?('0'+(date.getMonth()+1)):(date.getMonth()+1))+'-'+date.getDate()
  71. },
  72. methods: {
  73. }
  74. }
  75. </script>
  76. <style lang='scss' scoped>
  77. .contractwrap{
  78. background:#fff;
  79. margin:20rpx;
  80. padding:20rpx 20rpx 40rpx 20rpx;
  81. border-radius:20rpx;
  82. .contractwrap-title{
  83. font-size:28rpx;
  84. padding:20rpx;
  85. justify-content: space-between;
  86. align-items: center;
  87. }
  88. .contractwrap-item{
  89. display:flex;
  90. justify-content: space-between;
  91. padding:10rpx 20rpx;
  92. font-size:28rpx;
  93. .title{
  94. font-size:24rpx;
  95. color:#8F8F8F;
  96. }
  97. }
  98. }
  99. .search{
  100. width:100vw;
  101. background:#fff;
  102. }
  103. .u-search{
  104. width:94%;
  105. margin:0 auto !important;
  106. }
  107. </style>