details.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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\order\orderMr\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 style="display: flex;" class="grid-content bg-purple item-class">购票渠道: <span style="display: block;margin-left: 5px;"><dict-tag :options="dict.type.order_form_type" :value="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.createTime || '' }}</span></div>
  58. </el-col>
  59. <el-col :span="12">
  60. <div class="grid-content bg-purple item-class">优惠信息: <span>暂无</span></div>
  61. </el-col>
  62. <el-col :span="12">
  63. <div class="grid-content bg-purple item-class">支付时间: <span>{{ form.payTime || '' }}</span></div>
  64. </el-col>
  65. <el-col :span="12">
  66. <div class="grid-content bg-purple item-class" style="display: flex;">支付方式: <span style="display: block;margin-left: 5px;"><dict-tag :options="dict.type.pay_way_type" :value="form.payWay"/></span></div>
  67. </el-col>
  68. <el-col :span="12">
  69. <div class="grid-content bg-purple item-class" style="display: flex;">订单状态: <span style="display: block;margin-left: 5px;"><dict-tag :options="dict.type.order_status_type" :value="form.status"/></span></div>
  70. </el-col>
  71. </el-row>
  72. <!-- 观影人员信息 -->
  73. <div class="title-class">观影人员信息</div>
  74. <el-row>
  75. <el-col :span="24">
  76. <el-table ref="tables" :data="form.viewersList" border>
  77. <el-table-column label="序号" align="center" type="index" width="60"></el-table-column>
  78. <el-table-column label="姓名" align="center" prop="name" />
  79. <el-table-column label="身份证号码" align="center" prop="idcard" />
  80. <el-table-column label="核销状态" align="center">
  81. <template slot-scope="scope">
  82. <el-tag v-if="scope.row.qrcodeStatus == 0">未使用</el-tag>
  83. <el-tag v-if="scope.row.qrcodeStatus == 1" type="success">已使用</el-tag>
  84. <el-tag v-if="scope.row.qrcodeStatus == 2" type="info">过期</el-tag>
  85. </template>
  86. </el-table-column>
  87. <el-table-column label="核销时间" align="center" prop="qrcodeUseTime" />
  88. <el-table-column label="座位信息" align="center" prop="seatName" />
  89. </el-table>
  90. </el-col>
  91. </el-row>
  92. </div>
  93. <span slot="footer" class="dialog-footer">
  94. <el-button type="primary" @click="cancel">确定</el-button>
  95. </span>
  96. </el-dialog>
  97. </template>
  98. <script>
  99. import { getSelectById } from '@/api/order/orderMr'
  100. export default {
  101. name: "detailsDia",
  102. dicts: ['order_form_type','order_status_type','pay_way_type'],
  103. data() {
  104. return {
  105. title: "编辑",
  106. model: "EDIT",
  107. open: false,
  108. loading: false,
  109. form: {
  110. id: undefined,
  111. },
  112. performerVisible: false,
  113. performerList: [],
  114. refund: false,
  115. dataList: []
  116. };
  117. },
  118. methods: {
  119. /**
  120. * 打开弹框
  121. * @date 2023-11-22
  122. * @param {any} obj
  123. * @returns {any}
  124. */
  125. openDialog(title, obj, type) {
  126. this.open = true;
  127. this.getSelectByIdApi(obj);
  128. },
  129. /** 获取详情 */
  130. getSelectByIdApi(row) {
  131. const id = row.id
  132. getSelectById(id).then(response => {
  133. this.form = response.data;
  134. });
  135. },
  136. /**
  137. * 关闭弹框
  138. * @date 2023-11-22
  139. * @returns {any}
  140. */
  141. cancel() {
  142. this.open = false;
  143. },
  144. },
  145. };
  146. </script>
  147. <style lang="scss" scoped>
  148. .dialog {
  149. padding: 0 30px;
  150. max-height: 65vh;
  151. overflow-y: auto;
  152. }
  153. .dialog {
  154. padding: 0 30px;
  155. .upload-btn {
  156. width: 100px;
  157. height: 100px;
  158. background-color: #fbfdff;
  159. border: dashed 1px #c0ccda;
  160. border-radius: 5px;
  161. i {
  162. font-size: 30px;
  163. margin-top: 20px;
  164. }
  165. &-text {
  166. margin-top: -10px;
  167. }
  168. }
  169. .avatar {
  170. cursor: pointer;
  171. }
  172. .title-class{
  173. font-size: 16px;
  174. font-weight: bold;
  175. color: black;
  176. margin-bottom: 20px;
  177. margin-top: 20px;
  178. }
  179. .item-class{
  180. margin-bottom: 20px;
  181. }
  182. }
  183. </style>