task-item.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <view class="task-item">
  3. <view class="task-head">
  4. <view class="sn-box">单据编号:CGDD00000000692</view>
  5. <view class="tips tips-red">待拣货</view>
  6. </view>
  7. <view class="task-line">
  8. <view>客户名称:</view>
  9. <view>快马阳光便利店</view>
  10. </view>
  11. <view class="task-line">
  12. <view>单据日期:</view>
  13. <view>2021-11-21 00:00:03</view>
  14. </view>
  15. <view class="task-line">
  16. <view class="task-line2">
  17. <view>货物总数:</view>
  18. <view class="task-num">55件</view>
  19. </view>
  20. <view class="task-line2">
  21. <view>货物种类:</view>
  22. <view class="task-num">55件</view>
  23. </view>
  24. </view>
  25. <view class="task-bottom">
  26. <view class="btn btn-1" @click="toStorage">去出库</view>
  27. <!-- <view class="btn btn-2">详情</view> -->
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default{
  33. props:{
  34. item:{
  35. type:Object,
  36. default:()=>{}
  37. }
  38. },
  39. data() {
  40. return{
  41. }
  42. },
  43. methods:{
  44. toStorage() {
  45. this.$emit('toStorage')
  46. }
  47. }
  48. }
  49. </script>
  50. <style lang="scss" scoped>
  51. .task-item {
  52. width: 100%;
  53. background-color: #fff;
  54. border-radius: 16rpx;
  55. padding: 24rpx 24rpx 0;
  56. margin-bottom: 24rpx;
  57. .task-head {
  58. display: flex;
  59. align-items: center;
  60. justify-content: space-between;
  61. .sn-box {
  62. color: #333;
  63. font-family: "PingFang SC";
  64. font-size: 28rpx;
  65. font-weight: 500;
  66. }
  67. .tips {
  68. font-family: "PingFang SC";
  69. font-size: 22rpx;
  70. font-weight: 400;
  71. width: 120rpx;
  72. height: 44rpx;
  73. border-radius: 8rpx;
  74. display: flex;
  75. align-items: center;
  76. justify-content: center;
  77. }
  78. .tips-red {
  79. color: #FF3B1D;
  80. background-color: #fff;
  81. background: rgba(255, 59, 29, 0.20);
  82. }
  83. }
  84. .task-line {
  85. display: flex;
  86. align-items: center;
  87. color: #666;
  88. font-family: "PingFang SC";
  89. font-size: 28rpx;
  90. font-weight: 400;
  91. margin-top: 16rpx;
  92. }
  93. .task-line2 {
  94. width: 50%;
  95. display: flex;
  96. align-items: center;
  97. .task-num {
  98. color: #0256FF;;
  99. }
  100. }
  101. .task-bottom {
  102. border-top: 1px solid #F0F0F0;
  103. margin-top: 32rpx;
  104. height: 104rpx;
  105. display: flex;
  106. align-items: center;
  107. justify-content: flex-end;
  108. .btn {
  109. width: 144rpx;
  110. height: 56rpx;
  111. border-radius: 8rpx;
  112. font-size: 28rpx;
  113. display: flex;
  114. align-items: center;
  115. justify-content: center;
  116. font-family: "PingFang SC";
  117. }
  118. .btn-1 {
  119. background: #0256FF;
  120. color: #FFF;
  121. }
  122. .btn-2 {
  123. border: 1px solid #0256FF;
  124. background: rgba(2, 86, 255, 0.20);
  125. color: #0256FF;
  126. }
  127. }
  128. }
  129. </style>