details.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <!--
  2. * @Description: 详情弹框
  3. * @Author: Sugar.
  4. * @Date: 2023-11-24 13:55:00
  5. * @LastEditors: Sugar.
  6. * @LastEditTime: 2023-11-24 13:55:00
  7. * @FilePath: \cattle_webui\src\views\distribution\recordMr\dialog\details.vue
  8. * @Copyright: Copyright (c) 2016~2023 by Sugar., All Rights Reserved.
  9. -->
  10. <template>
  11. <el-dialog
  12. title="订单详情"
  13. :visible.sync="open"
  14. width="800px"
  15. append-to-body
  16. :close-on-click-modal="false"
  17. @close="cancel"
  18. >
  19. <div class="dialog" v-if="form">
  20. <!-- 基础信息 -->
  21. <div class="title-class" style="margin-top: 0">基础信息</div>
  22. <el-row>
  23. <el-col :span="12">
  24. <div class="grid-content bg-purple item-class">票务名称: <span>{{ form.goodsName || ''}}</span></div>
  25. </el-col>
  26. <el-col :span="12">
  27. <div class="grid-content bg-purple item-class">订单号: <span>{{ form.id || '' }}</span></div>
  28. </el-col>
  29. <el-col :span="12">
  30. <div class="grid-content bg-purple item-class">购票人姓名: <span>{{ form.memberName || '' }}</span></div>
  31. </el-col>
  32. <el-col :span="12">
  33. <div class="grid-content bg-purple item-class">购票人手机号: <span>{{ form.memberMobile || '' }}</span></div>
  34. </el-col>
  35. <el-col :span="12">
  36. <div class="grid-content bg-purple item-class">购票人身份证号: <span>{{ form.memberCardId || '' }}</span></div>
  37. </el-col>
  38. <el-col :span="12">
  39. <div class="grid-content bg-purple item-class">剧名名称: <span>{{ form.performName || '' }}</span></div>
  40. </el-col>
  41. <el-col :span="12">
  42. <div class="grid-content bg-purple item-class">票务类型: <span>{{ form.seatTypeName || '' }}</span></div>
  43. </el-col>
  44. <el-col :span="12">
  45. <div class="grid-content bg-purple item-class">场次: <span>{{form.performDate}} {{ form.performTimeStart }} -- {{ form.performTimeEnd }}</span></div>
  46. </el-col>
  47. <el-col :span="12">
  48. <div class="grid-content bg-purple item-class">购票渠道: <span>{{ sourceList[form.source] || '' }}</span></div>
  49. </el-col>
  50. <el-col :span="12">
  51. <div class="grid-content bg-purple item-class">购票数量: <span>{{ form.viewerNum || '' }}</span></div>
  52. </el-col>
  53. <!-- <el-col :span="12">
  54. <div class="grid-content bg-purple item-class">支付总额: <span>¥{{ form.orderPrice || '' }}</span></div>
  55. </el-col> -->
  56. <el-col :span="12">
  57. <div class="grid-content bg-purple item-class">应收金额: <span>¥{{ form.orderPrice || form.orderPrice == 0 ?
  58. form.orderPrice : '' }}</span></div>
  59. </el-col>
  60. <el-col :span="12">
  61. <div class="grid-content bg-purple item-class">实收金额: <span>¥{{ form.realPrice || form.realPrice == 0 ?
  62. form.realPrice : '' }}</span></div>
  63. </el-col>
  64. <el-col :span="12">
  65. <div class="grid-content bg-purple item-class">下单时间: <span>{{ form.createTime || '' }}</span></div>
  66. </el-col>
  67. <el-col :span="12">
  68. <div class="grid-content bg-purple item-class">优惠信息: <span>暂无</span></div>
  69. </el-col>
  70. <el-col :span="12">
  71. <div class="grid-content bg-purple item-class">支付时间: <span>{{ form.payTime || '' }}</span></div>
  72. </el-col>
  73. <!-- <el-col :span="12">
  74. <div class="grid-content bg-purple item-class">支付方式: <span>{{ payWayList[form.payWay] || '' }}</span></div>
  75. </el-col>
  76. <el-col :span="12">
  77. <div class="grid-content bg-purple item-class">订单状态: <span>{{ statusList[form.status] || '' }}</span></div>
  78. </el-col> -->
  79. <el-col :span="12">
  80. <div class="grid-content bg-purple item-class" style="display: flex;">支付方式: <span
  81. style="display: block;margin-left: 5px;"><dict-tag :options="dict.type.pay_way_type"
  82. :value="form.payWay" /></span></div>
  83. </el-col>
  84. <el-col :span="12">
  85. <div class="grid-content bg-purple item-class" style="display: flex;">订单状态: <span
  86. style="display: block;margin-left: 5px;"><dict-tag :options="dict.type.order_status_type"
  87. :value="form.status" /></span></div>
  88. </el-col>
  89. </el-row>
  90. <!-- 观影人员信息 -->
  91. <div class="title-class">观影人员信息</div>
  92. <el-row>
  93. <el-col :span="24">
  94. <el-table ref="tables" :data="form.viewersList" border>
  95. <el-table-column label="序号" align="center" type="index" width="60"></el-table-column>
  96. <el-table-column label="姓名" align="center" prop="name" />
  97. <el-table-column label="身份证号码" align="center" prop="idcard" />
  98. <el-table-column label="核销状态" align="center">
  99. <template slot-scope="scope">
  100. <el-tag v-if="scope.row.qrcodeStatus == 0">未使用</el-tag>
  101. <el-tag v-if="scope.row.qrcodeStatus == 1" type="success">已使用</el-tag>
  102. <el-tag v-if="scope.row.qrcodeStatus == 2" type="info">过期</el-tag>
  103. </template>
  104. </el-table-column>
  105. <el-table-column label="核销时间" align="center" prop="qrcodeUseTime" />
  106. <el-table-column label="座位信息" align="center" prop="seatName" />
  107. </el-table>
  108. </el-col>
  109. </el-row>
  110. </div>
  111. <span slot="footer" class="dialog-footer">
  112. <el-button type="primary" @click="cancel">确定</el-button>
  113. </span>
  114. </el-dialog>
  115. </template>
  116. <script>
  117. import { getSelectById } from '@/api/order/orderMr'
  118. export default {
  119. name: "detailsDia",
  120. dicts: ['order_form_type', 'order_status_type', 'pay_way_type', 'personnel_type'],
  121. data() {
  122. return {
  123. title: "编辑",
  124. model: "EDIT",
  125. open: false,
  126. loading: false,
  127. form: {
  128. id: undefined,
  129. },
  130. performerVisible: false,
  131. performerList: [],
  132. refund: false,
  133. statusList: {
  134. 0: '待支付',
  135. 2: '超时取消',
  136. 3: '待使用',
  137. 4: '退款中',
  138. 5: '己退款',
  139. 6: '退款失败',
  140. 7: '己使用',
  141. 8: '己超期',
  142. 9: '关闭',
  143. },
  144. payList: {
  145. 0: '未支付',
  146. 1: '已支付',
  147. 2: '支付中',
  148. 3: '支付失败',
  149. 4: '支付退款',
  150. },
  151. payWayList: {
  152. 'cahsh': '现金',
  153. 'wecaht.applet': '微信小程序支付',
  154. 'alipay': '支付宝',
  155. 'wecaht.h5': '微信公众号支付',
  156. 'meituan': '美团支付',
  157. },
  158. sourceList: {
  159. 1: '小程序',
  160. 2: '公众号',
  161. 3: '美团',
  162. 4: '携程',
  163. 5: '团购',
  164. },
  165. dataList: []
  166. };
  167. },
  168. methods: {
  169. /**
  170. * 打开弹框
  171. * @date 2023-11-22
  172. * @param {any} obj
  173. * @returns {any}
  174. */
  175. openDialog(title, obj, type) {
  176. this.open = true;
  177. this.getSelectByIdApi(obj);
  178. },
  179. /** 获取详情 */
  180. getSelectByIdApi(row) {
  181. const id = row.orderId
  182. getSelectById(id).then(response => {
  183. this.form = response.data;
  184. });
  185. },
  186. /**
  187. * 关闭弹框
  188. * @date 2023-11-22
  189. * @returns {any}
  190. */
  191. cancel() {
  192. this.open = false;
  193. },
  194. },
  195. };
  196. </script>
  197. <style lang="scss" scoped>
  198. .dialog {
  199. padding: 0 30px;
  200. max-height: 65vh;
  201. overflow-y: auto;
  202. }
  203. .dialog {
  204. padding: 0 30px;
  205. .upload-btn {
  206. width: 100px;
  207. height: 100px;
  208. background-color: #fbfdff;
  209. border: dashed 1px #c0ccda;
  210. border-radius: 5px;
  211. i {
  212. font-size: 30px;
  213. margin-top: 20px;
  214. }
  215. &-text {
  216. margin-top: -10px;
  217. }
  218. }
  219. .avatar {
  220. cursor: pointer;
  221. }
  222. .title-class{
  223. font-size: 16px;
  224. font-weight: bold;
  225. color: black;
  226. margin-bottom: 20px;
  227. margin-top: 20px;
  228. }
  229. .item-class{
  230. margin-bottom: 20px;
  231. }
  232. }
  233. </style>