orderInfo.vue 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <div>
  3. <div class="info-title f-w-5 mb-15">订单信息</div>
  4. <vxe-table ref="vxeTableRef" border :data="info?.testOrderDetailList" :merge-cells="mergeCells">
  5. <vxe-column title="订单号" fixed="left" width="120">
  6. <template #default>{{ info?.orderNo }}</template>
  7. </vxe-column>
  8. <vxe-column title="企业名称" min-width="100">
  9. <template #default>
  10. <div>{{ info?.cpyName }}</div>
  11. <div class="c-999 f-s-12">{{ info?.creditCode }}</div>
  12. </template>
  13. </vxe-column>
  14. <vxe-column title="会员级别" width="100">
  15. <template #default>
  16. {{ info?.vipLevelName }}
  17. </template>
  18. </vxe-column>
  19. <vxe-column title="套餐详情" min-width="100">
  20. <template #default="{ row }">
  21. {{ row?.packageName }}
  22. </template>
  23. </vxe-column>
  24. <vxe-column title="购买数量" width="90">
  25. <template #default="{ row }">
  26. {{ row?.quantity }}
  27. </template>
  28. </vxe-column>
  29. <vxe-column title="实收款" width="100">
  30. <template #default="{ row }">{{ row?.amount }}元</template>
  31. </vxe-column>
  32. <vxe-column title="下单人" min-width="100">
  33. <template #default>
  34. <div>{{ info?.createName }}</div>
  35. </template>
  36. </vxe-column>
  37. <vxe-column title="下单时间" min-width="100">
  38. <template #default>
  39. <div>{{ info?.createTime }}</div>
  40. </template>
  41. </vxe-column>
  42. <vxe-column title="订单状态" width="100">
  43. <template #default>
  44. <div>{{ selectDictLabel(test_order_status_bg, info?.status) }}</div>
  45. </template>
  46. </vxe-column>
  47. </vxe-table>
  48. </div>
  49. </template>
  50. <script setup lang="ts">
  51. import { propTypes } from '@/utils/propTypes';
  52. import { VxeTablePropTypes } from 'vxe-table';
  53. import { colNoData } from '@/utils/noData';
  54. const { proxy } = getCurrentInstance() as ComponentInternalInstance;
  55. const { test_order_status_bg } = toRefs<any>(proxy?.useDict('test_order_status_bg'));
  56. const vxeTableRef = ref<any>(null);
  57. const list = ref<any[]>([]);
  58. const props = defineProps({
  59. info: propTypes.any.def({})
  60. });
  61. // 合并表格
  62. const mergeCells = ref<VxeTablePropTypes.MergeCells>([
  63. { row: 0, col: 0, rowspan: 2, colspan: 0 },
  64. { row: 0, col: 1, rowspan: 2, colspan: 0 },
  65. { row: 0, col: 2, rowspan: 2, colspan: 0 },
  66. { row: 0, col: 6, rowspan: 2, colspan: 0 },
  67. { row: 0, col: 7, rowspan: 2, colspan: 0 },
  68. { row: 0, col: 8, rowspan: 2, colspan: 0 }
  69. ]);
  70. </script>
  71. <style lang="scss" scoped></style>