sel-ship-confirm.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <div class="sel-ship-confirm-module">
  3. <!-- 列表 -->
  4. <time-axis v-if="!$util.isEmpty(orderComData)">
  5. <!-- 完成 -->
  6. <timeaxis-item class="axis-list axis-first confirm-wrap" bgcolor="none">
  7. <template v-slot:node>
  8. <div class="tui-node node-big">
  9. <div class="node-small"></div>
  10. </div>
  11. </template>
  12. <template v-slot:content>
  13. <div class="axis-slot-wrap">
  14. <div class="axis-title">{{ orderComData[0].actionName }}</div>
  15. <div class="axis-det">
  16. <div class="app-color-0 app-bold">{{ orderComData[0].finishTime | formatTime }}</div>
  17. <div>订单归类: {{ orderComData[0].classify.category }}</div>
  18. <div>用途:{{ orderComData[0].classify.usage }}</div>
  19. <!-- <div>消息推送:已推送</div> -->
  20. </div>
  21. </div>
  22. </template>
  23. </timeaxis-item>
  24. <!-- 送达 -->
  25. <timeaxis-item class="axis-list com-wrap" bgcolor="none">
  26. <template v-slot:content>
  27. <div class="axis-slot-wrap">
  28. <div class="axis-title">{{ orderComData[1].actionName }}</div>
  29. <div class="axis-det">
  30. <div class="app-bold">{{ orderComData[1].addTime | formatTime }}</div>
  31. </div>
  32. </div>
  33. </template>
  34. </timeaxis-item>
  35. <!-- 发货 -->
  36. <timeaxis-item class="axis-list confirm-wrap" bgcolor="none">
  37. <template v-slot:content>
  38. <div class="axis-slot-wrap">
  39. <div class="axis-title">{{ orderComData[2].actionName}}</div>
  40. <div class="axis-det">
  41. <div class="app-color-0 app-bold">{{ orderComData[2].addTime | formatTime }}</div>
  42. <block v-if="!$util.isEmpty(orderComData[2].sendInfo)">
  43. <div>配送方:{{ orderComData[2].sendInfo.sendSideName }}</div>
  44. <div>距离:{{ orderComData[2].sendInfo.sendDistance }}km</div>
  45. <div>运费:¥{{ orderComData[2].sendInfo.sendCost }}</div>
  46. <div>小费:¥{{ orderComData[2].sendInfo.sendTip }}</div>
  47. <div>状态:{{ orderComData[2].sendInfo.sendStatus | constantfilter('SEND_STATUS') }}</div>
  48. </block>
  49. <block v-else>
  50. <div>配送方:自己送</div>
  51. </block>
  52. </div>
  53. </div>
  54. </template>
  55. </timeaxis-item>
  56. <!-- 打单 -->
  57. <timeaxis-item class="axis-list com-wrap" bgcolor="none">
  58. <template v-slot:content>
  59. <div class="axis-slot-wrap">
  60. <div class="axis-title">{{ orderComData[3].actionName}}</div>
  61. <div class="axis-det">
  62. <div class="app-bold">{{ orderComData[3].addTime | formatTime }}</div>
  63. <card-name v-if="!$util.isEmpty(orderComData[3].receive)" :info="orderComData[3].receive" />
  64. <div class="btn-wrap-com">
  65. <!-- <button class="admin-button-com default">明细</button> -->
  66. <button class="admin-button-com default" @click="() => { alert('打印功能待开发!') }">打印</button>
  67. </div>
  68. </div>
  69. </div>
  70. </template>
  71. </timeaxis-item>
  72. <!-- 下单 -->
  73. <timeaxis-item class="axis-list com-wrap" bgcolor="none">
  74. <template v-slot:content>
  75. <div class="axis-slot-wrap">
  76. <div class="axis-title">{{ orderComData[4].actionName}}</div>
  77. <div class="axis-det">
  78. <div class="app-bold">{{ orderComData[4].addTime | formatTime }}</div>
  79. </div>
  80. </div>
  81. </template>
  82. </timeaxis-item>
  83. </time-axis>
  84. </div>
  85. </template>
  86. <script>
  87. import TimeAxis from '@/admin/home/components/plugin/time-axis'
  88. import TimeaxisItem from '@/admin/home/components/plugin/timeaxis-item'
  89. import CardName from './card-name'
  90. export default {
  91. name: 'sel-ship-confirm-module',
  92. components: {
  93. TimeAxis,
  94. TimeaxisItem,
  95. CardName
  96. },
  97. props: {
  98. query: {
  99. type: Object,
  100. default: () => {}
  101. },
  102. orderData: {
  103. type: Object,
  104. default: () => {}
  105. },
  106. orderComData: {
  107. type: Array,
  108. default: () => []
  109. }
  110. }
  111. }
  112. </script>
  113. <style lang="scss" scoped>
  114. // 发货
  115. .confirm-wrap {
  116. .axis-det {
  117. margin-top: 20px;
  118. margin-bottom: 10px;
  119. color: $fontColor2;
  120. & > div {
  121. margin-top: 10px;
  122. &:first-child {
  123. margin-top: 0;
  124. }
  125. }
  126. .admin-button-com {
  127. width: 120px;
  128. margin-top: 20px;
  129. }
  130. .modify-btn {
  131. color: $mainColor;
  132. font-size: 24px;
  133. margin-left: 30px;
  134. }
  135. }
  136. }
  137. // 打单
  138. .com-wrap {
  139. .axis-det {
  140. margin-top: 14px;
  141. & > div {
  142. margin-top: 20px;
  143. &:first-child {
  144. margin-top: 0;
  145. }
  146. }
  147. }
  148. }
  149. </style>