Home.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <page-header-wrapper>
  3. <a-page-header
  4. style="border: 1px solid rgb(235, 237, 240)"
  5. title="订单状态数量统计"
  6. sub-title='点击数字可以跳转到对应的订单列表'
  7. @back="() => null"
  8. />
  9. <div style="padding: 10px">
  10. <a-row :gutter="16">
  11. <a-col :span="4" v-for="order in orderStatusList" :key="order.status" style='background: #ffffff;border: none'>
  12. <a-card :title="order.status_text" style='border: none '>
  13. <router-link style='cursor: pointer;color: red;font-size: 40px;' :to="{ name: 'logistics_orderList', query: { order_status: order.status} }">{{ order.count }}单</router-link>
  14. </a-card>
  15. </a-col>
  16. </a-row>
  17. </div>
  18. <a-page-header
  19. style="border: 1px solid rgb(235, 237, 240)"
  20. title="订单状态流程说明"
  21. sub-title=''
  22. @back="() => null"
  23. />
  24. <a-card :bordered="false">
  25. <a-steps class="steps" :current="5" direction='vertical'>
  26. <a-step title="拆包中" subTitle='触发条件:用户申请打包;' description="物流商需操作:拆包->打包->【物流商后台-订单列表】点击【打包完成】录入相关信息;" status='process' />
  27. <a-step title="未付款" subTitle='触发条件:物流商录入打包信息' description="无需物流商操作,待用户付款通知发货" status='process' />
  28. <a-step title="待发货" subTitle="触发条件:用户订单付完款" description="物流商需操作:发货->【物流商后台-订单列表】点击【已发货】录入相关信息;" status='process' />
  29. <a-step title="已发货" subTitle="触发条件:物流商在订单列表点击已发货" description="物流商需操作:在用户收货后,在【物流商后台-订单列表】点击【完成】录入相关信息;" status='process' />
  30. <a-step title="已完成" subTitle="触发条件:用户收货后,物流商在【物流商后台-订单列表】点击【完成】;" description="流程完成" status='process' />
  31. </a-steps>
  32. </a-card>
  33. <a-page-header
  34. style="border: 1px solid rgb(235, 237, 240)"
  35. title="包裹状态流程说明"
  36. sub-title=''
  37. @back="() => null"
  38. />
  39. <a-card :bordered="false">
  40. <a-steps class="steps" :current="5" direction='vertical'>
  41. <a-step title="待入库" subTitle='触发条件:用户包裹报备入库;' description="物流商需操作:如果包裹已到仓库,需在【物流商后台-包裹列表】中点击【入库】的录入相关信息" status='process' />
  42. <a-step title="运输中" subTitle='触发条件:用户录入物流单号,api查询物流信息' description="物流商需操作:如果包裹已到仓库,需在【物流商后台-包裹列表】中点击【入库】的录入相关信息" status='process' />
  43. <a-step title="待认领" subTitle="触发条件:物流商录入包裹信息中,用户没有报备的包裹;" description="无需物流商操作" status='process' />
  44. <a-step title="已入库" subTitle="触发条件:物流商录入包裹信息中,用户已报备(或已认领)的包裹;" description="无需物流商操作" status='process' />
  45. <a-step title="申请打包" subTitle="触发条件:用户申请打包;" description="物流商需操作:拆包->打包->【物流商后台-订单列表】找到对应包裹的订单录入相关信息;" status='process' />
  46. <a-step title="已发货" subTitle="触发条件:物流商在【物流商后台-订单列表】找到对应包裹的订单点击【已发货】;" description="" status='process' />
  47. <a-step title="已完成" subTitle="触发条件:物流商在【物流商后台-订单列表】找到对应包裹的订单点击【完成】;" description="流程完成" status='process' />
  48. </a-steps>
  49. </a-card>
  50. </page-header-wrapper>
  51. </template>
  52. <script>
  53. import { orderStatusStatApi } from '@/api/manage'
  54. export default {
  55. name: 'StandardList',
  56. data () {
  57. return {
  58. orderStatusList: []
  59. }
  60. },
  61. methods: {
  62. orderStatusStat () {
  63. orderStatusStatApi().then(res => {
  64. this.orderStatusList = res.data
  65. })
  66. }
  67. },
  68. created () {
  69. this.orderStatusStat()
  70. }
  71. }
  72. </script>
  73. <style lang="less" scoped>
  74. .ant-avatar-lg {
  75. width: 48px;
  76. height: 48px;
  77. line-height: 48px;
  78. }
  79. .list-content-item {
  80. color: rgba(0, 0, 0, .45);
  81. display: inline-block;
  82. vertical-align: middle;
  83. font-size: 14px;
  84. margin-left: 40px;
  85. span {
  86. line-height: 20px;
  87. }
  88. p {
  89. margin-top: 4px;
  90. margin-bottom: 0;
  91. line-height: 22px;
  92. }
  93. }
  94. .steps {
  95. max-width: 750px;
  96. }
  97. </style>