LocationOrderItem.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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" v-if="isLink">
  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. isLink: {
  49. type: Boolean,
  50. default: true
  51. }
  52. })
  53. const emit = defineEmits(['select'])
  54. const toggleSelect = () => {
  55. emit('select', props.item)
  56. }
  57. const handleQuickJump = () => {
  58. uni.navigateTo({
  59. url: `/pages/index/wms/order-query-list?id=${props.item.orderId}`
  60. })
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .order-item {
  65. background-color: #ffffff;
  66. padding: 20rpx;
  67. border-bottom: 1px solid #eee;
  68. margin-top: 20rpx;
  69. }
  70. .order-header {
  71. display: flex;
  72. justify-content: space-between;
  73. align-items: flex-start;
  74. }
  75. .order-info {
  76. flex: 1;
  77. }
  78. .info-row {
  79. display: flex;
  80. margin-bottom: 12rpx;
  81. font-size: 28rpx;
  82. line-height: 40rpx;
  83. &:last-child {
  84. margin-bottom: 0;
  85. }
  86. }
  87. .label {
  88. color: #666;
  89. margin-right: 16rpx;
  90. min-width: 180rpx;
  91. }
  92. .value {
  93. color: #333;
  94. flex: 1;
  95. }
  96. .check-icon {
  97. padding: 0 10rpx;
  98. }
  99. </style>