LocationOrderItem.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <view class="order-item">
  3. <view class="order-header">
  4. <view class="order-info">
  5. <view class="info-row">
  6. <text class="label">订单编号:</text>
  7. <text class="value">{{ item.orderId }}</text>
  8. </view>
  9. <view class="info-row">
  10. <text class="label">不良数量:</text>
  11. <text class="value">{{ item.badNum }}</text>
  12. </view>
  13. <view class="info-row">
  14. <text class="label">物流单号:</text>
  15. <text class="value">{{ item.waybillCode }}</text>
  16. </view>
  17. <view class="info-row">
  18. <text class="label">验货完成日期:</text>
  19. <text class="value">{{ item.auditFinishTime }}</text>
  20. </view>
  21. <view class="info-row">
  22. <text class="label">录入人:</text>
  23. <text class="value">{{ item.auditUserName }}</text>
  24. </view>
  25. </view>
  26. <view class="check-icon" v-if="isCheck">
  27. <u-icon :name="item.checked ? 'checkmark-circle-fill' : 'checkmark-circle'"
  28. :color="item.checked ? '#19be6b' : '#c8c9cc'" size="28" @click="toggleSelect"></u-icon>
  29. </view>
  30. <view class="flex flex-d flex-a-c flex-j-c quick-jump" @click="handleQuickJump">
  31. <image src="/static/img/share.png" mode="widthFix" style="width: 30px;"></image>
  32. <text style="font-size: 28rpx;color: #19be6b;">快速跳转</text>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script setup>
  38. import { defineProps, defineEmits } from 'vue'
  39. const props = defineProps({
  40. item: {
  41. type: Object,
  42. required: true
  43. },
  44. isCheck: {
  45. type: Boolean,
  46. default: false
  47. }
  48. })
  49. const emit = defineEmits(['select'])
  50. const toggleSelect = () => {
  51. emit('select', props.item)
  52. }
  53. const handleQuickJump = () => {
  54. uni.navigateTo({
  55. url: `/pages/index/wms/order-query-list?id=${props.item.orderId}`
  56. })
  57. }
  58. </script>
  59. <style lang="scss" scoped>
  60. .order-item {
  61. background-color: #ffffff;
  62. padding: 20rpx;
  63. border-bottom: 1px solid #eee;
  64. margin-top: 20rpx;
  65. }
  66. .order-header {
  67. display: flex;
  68. justify-content: space-between;
  69. align-items: flex-start;
  70. }
  71. .order-info {
  72. flex: 1;
  73. }
  74. .info-row {
  75. display: flex;
  76. margin-bottom: 12rpx;
  77. font-size: 28rpx;
  78. line-height: 40rpx;
  79. &:last-child {
  80. margin-bottom: 0;
  81. }
  82. }
  83. .label {
  84. color: #666;
  85. margin-right: 16rpx;
  86. min-width: 180rpx;
  87. }
  88. .value {
  89. color: #333;
  90. flex: 1;
  91. }
  92. .check-icon {
  93. padding: 0 10rpx;
  94. }
  95. </style>