ListOrder.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <view class="list-cell" v-if="list">
  3. <view class="list-cell-flex">
  4. <view class="code">
  5. 编号:{{list.jobe_code}}
  6. </view>
  7. <view class="time">
  8. {{list.time}}
  9. </view>
  10. </view>
  11. <view class="list-cell-flex">
  12. <view class="">
  13. <text class="span-dian">{{list.productName}}</text>
  14. <text class="span-dian span-dian1">{{list.lineCode}}</text>
  15. </view>
  16. <view class="btn-status">
  17. <view class="btn btn-warning" v-if="list.worksheetStatus == 0">
  18. 未完成
  19. </view>
  20. <view class="btn btn-primary" v-else>
  21. 已接单
  22. </view>
  23. </view>
  24. </view>
  25. <view class="list-cell-flex">
  26. <view class="">
  27. 姓名:{{list.name}}
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. name:"ListOrder",
  35. props:{
  36. list:{
  37. type: Object
  38. }
  39. },
  40. data() {
  41. return {
  42. };
  43. }
  44. }
  45. </script>
  46. <style lang="scss" scoped>
  47. .list-cell{
  48. padding: 10rpx 0 10rpx 20rpx;
  49. font-size: $uni-font-size-base;
  50. color: $uni-text-regular-color;
  51. border-bottom: 1px solid #eee;
  52. .list-cell-flex{
  53. margin: 10rpx 0;
  54. display: flex;
  55. justify-content: space-between;
  56. align-items: center;
  57. }
  58. .code{
  59. color: $uni-text-color;
  60. }
  61. .time{
  62. font-size: $uni-font-size-sm;
  63. }
  64. .span-dian{
  65. position: relative;
  66. padding-left: 30rpx;
  67. margin-right: 30rpx;
  68. :after{
  69. content: '';
  70. position: absolute;
  71. top: 2rpx;
  72. bottom: 0;
  73. left: 0;
  74. margin: auto 0;
  75. display: inline-block;
  76. width: 15rpx;
  77. height: 15rpx;
  78. background-color: $uni-color-success;
  79. border-radius: 50%;
  80. }
  81. &.span-dian1{
  82. :after{
  83. background-color: $uni-color-warning;
  84. }
  85. }
  86. }
  87. .btn-status{
  88. display: flex;
  89. font-size: $uni-font-size-sm;
  90. }
  91. }
  92. </style>