task-item.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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>快马阳光便利店</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">去出库</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. }
  44. </script>
  45. <style lang="scss" scoped>
  46. .task-item {
  47. width: 100%;
  48. background-color: #fff;
  49. border-radius: 16rpx;
  50. padding: 24rpx 24rpx 0;
  51. margin-bottom: 24rpx;
  52. .task-head {
  53. display: flex;
  54. align-items: center;
  55. justify-content: space-between;
  56. .sn-box {
  57. color: #333;
  58. font-family: "PingFang SC";
  59. font-size: 28rpx;
  60. font-weight: 500;
  61. }
  62. .tips {
  63. font-family: "PingFang SC";
  64. font-size: 22rpx;
  65. font-weight: 400;
  66. width: 120rpx;
  67. height: 44rpx;
  68. border-radius: 8rpx;
  69. display: flex;
  70. align-items: center;
  71. justify-content: center;
  72. }
  73. .tips-red {
  74. color: #FF3B1D;
  75. background-color: #fff;
  76. background: rgba(255, 59, 29, 0.20);
  77. }
  78. }
  79. .task-line {
  80. display: flex;
  81. align-items: center;
  82. color: #666;
  83. font-family: "PingFang SC";
  84. font-size: 28rpx;
  85. font-weight: 400;
  86. margin-top: 16rpx;
  87. }
  88. .task-line2 {
  89. width: 50%;
  90. display: flex;
  91. align-items: center;
  92. .task-num {
  93. color: #0256FF;;
  94. }
  95. }
  96. .task-bottom {
  97. border-top: 1px solid #F0F0F0;
  98. margin-top: 32rpx;
  99. height: 104rpx;
  100. display: flex;
  101. align-items: center;
  102. justify-content: flex-end;
  103. .btn {
  104. width: 144rpx;
  105. height: 56rpx;
  106. border-radius: 8rpx;
  107. font-size: 28rpx;
  108. display: flex;
  109. align-items: center;
  110. justify-content: center;
  111. font-family: "PingFang SC";
  112. }
  113. .btn-1 {
  114. background: #0256FF;
  115. color: #FFF;
  116. }
  117. .btn-2 {
  118. border: 1px solid #0256FF;
  119. background: rgba(2, 86, 255, 0.20);
  120. color: #0256FF;
  121. }
  122. }
  123. }
  124. </style>