details.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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\performMr\dialog\AddOrEditDialog.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.teamName || ''}}</span></div>
  25. </el-col>
  26. <el-col :span="12">
  27. <div class="grid-content bg-purple item-class">团队类型: <span><dict-tag style="display: inline-block" :options="dict.type.team_type" :value="form.teamType"/></span></div>
  28. </el-col>
  29. <el-col :span="12">
  30. <div class="grid-content bg-purple item-class">预约场馆: <span>{{ form.theatreName || '' }}</span></div>
  31. </el-col>
  32. <el-col :span="12">
  33. <div class="grid-content bg-purple item-class">预约演出厅: <span>{{ form.auditoriumName || '' }}</span></div>
  34. </el-col>
  35. <el-col :span="12">
  36. <div class="grid-content bg-purple item-class">预约剧目: <span>{{ form.performName || '' }}</span></div>
  37. </el-col>
  38. <el-col :span="12">
  39. <div class="grid-content bg-purple item-class">票务名称: <span>{{ form.goodsName || '' }}</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.price || '' }}</span></div>
  46. </el-col>
  47. <el-col :span="12">
  48. <div class="grid-content bg-purple item-class">预约时间: <span>{{ form.performDate || '' }}日 {{ form.performTimeStart || '' }} {{ form.performTimeEnd || '' }}</span></div>
  49. </el-col>
  50. <el-col :span="12">
  51. <div class="grid-content bg-purple item-class">报名时间: <span>{{ form.createTime || '' }}</span></div>
  52. </el-col>
  53. <el-col :span="12">
  54. <div class="grid-content bg-purple item-class">负责人: <span>{{ form.teamContact || '' }}</span></div>
  55. </el-col>
  56. <el-col :span="12">
  57. <div class="grid-content bg-purple item-class">联系电话: <span>{{ form.teamMobile || '' }}</span></div>
  58. </el-col>
  59. <el-col :span="12">
  60. <div class="grid-content bg-purple item-class">支付总额: <span>¥{{ form.orderPrice || '' }}</span></div>
  61. </el-col>
  62. <el-col :span="12">
  63. <div class="grid-content bg-purple item-class">团购人数: <span>{{ form.viewerNum || '' }}</span></div>
  64. </el-col>
  65. <el-col :span="12">
  66. <div class="grid-content bg-purple item-class">支付时间: <span>{{ form.payTime || '' }}</span></div>
  67. </el-col>
  68. <el-col :span="12">
  69. <div class="grid-content bg-purple item-class">支付方式: <span>{{ payList[form.payStatus] || '' }}</span></div>
  70. </el-col>
  71. <el-col :span="12">
  72. <div class="grid-content bg-purple item-class">订单状态: <span>{{ statusList[form.status] || '' }}</span></div>
  73. </el-col>
  74. </el-row>
  75. <!-- 观影人员信息 -->
  76. <div class="title-class">观影人员信息</div>
  77. <el-row>
  78. <el-col :span="24">
  79. <el-table ref="tables" :data="form.viewersList" border>
  80. <el-table-column label="序号" align="center" type="index" width="60"></el-table-column>
  81. <el-table-column label="姓名" align="center" prop="name" />
  82. <el-table-column label="身份证号码" align="center" prop="idcard" />
  83. <el-table-column label="核销状态" align="center">
  84. <template slot-scope="scope">
  85. <el-tag v-if="scope.row.qrcodeStatus == 0">未使用</el-tag>
  86. <el-tag v-if="scope.row.qrcodeStatus == 1" type="success">已使用</el-tag>
  87. <el-tag v-if="scope.row.qrcodeStatus == 2" type="info">过期</el-tag>
  88. </template>
  89. </el-table-column>
  90. <el-table-column label="核销时间" align="center" prop="useTime" />
  91. <el-table-column label="座位信息" align="center" prop="seatName" />
  92. </el-table>
  93. </el-col>
  94. </el-row>
  95. </div>
  96. <span slot="footer" class="dialog-footer">
  97. <el-button type="primary" @click="cancel">确定</el-button>
  98. </span>
  99. </el-dialog>
  100. </template>
  101. <script>
  102. import { getSelectById } from '@/api/order/orderMr'
  103. export default {
  104. name: "detailsDia",
  105. data() {
  106. return {
  107. title: "编辑",
  108. model: "EDIT",
  109. open: false,
  110. loading: false,
  111. form: {
  112. id: undefined,
  113. },
  114. performerVisible: false,
  115. performerList: [],
  116. refund: false,
  117. statusList: {
  118. 0: '待支付',
  119. 2: '超时取消',
  120. 3: '支付完成,待使用',
  121. 4: '退款中',
  122. 5: '己退款',
  123. 6: '退款失败',
  124. 7: '己使用',
  125. 8: '己超期',
  126. 9: '关闭',
  127. },
  128. payList: {
  129. 0: '未支付',
  130. 1: '已支付',
  131. 2: '支付中',
  132. 3: '支付失败',
  133. 4: '支付退款',
  134. },
  135. sourceList: {
  136. 1: '小程序',
  137. 2: '美团',
  138. 3: '携程',
  139. 4: '公众号',
  140. 5: '支付宝',
  141. },
  142. dataList: []
  143. };
  144. },
  145. methods: {
  146. /**
  147. * 打开弹框
  148. * @date 2023-11-22
  149. * @param {any} obj
  150. * @returns {any}
  151. */
  152. openDialog(title, obj, type) {
  153. this.open = true;
  154. this.getSelectByIdApi(obj);
  155. },
  156. /** 获取详情 */
  157. getSelectByIdApi(row) {
  158. const id = row.id
  159. getSelectById(id).then(response => {
  160. this.form = response.data;
  161. });
  162. },
  163. /**
  164. * 关闭弹框
  165. * @date 2023-11-22
  166. * @returns {any}
  167. */
  168. cancel() {
  169. this.open = false;
  170. },
  171. },
  172. };
  173. </script>
  174. <style lang="scss" scoped>
  175. .dialog {
  176. padding: 0 30px;
  177. max-height: 65vh;
  178. overflow-y: auto;
  179. }
  180. .dialog {
  181. padding: 0 30px;
  182. .upload-btn {
  183. width: 100px;
  184. height: 100px;
  185. background-color: #fbfdff;
  186. border: dashed 1px #c0ccda;
  187. border-radius: 5px;
  188. i {
  189. font-size: 30px;
  190. margin-top: 20px;
  191. }
  192. &-text {
  193. margin-top: -10px;
  194. }
  195. }
  196. .avatar {
  197. cursor: pointer;
  198. }
  199. .title-class{
  200. font-size: 16px;
  201. font-weight: bold;
  202. color: black;
  203. margin-bottom: 20px;
  204. margin-top: 20px;
  205. }
  206. .item-class{
  207. margin-bottom: 20px;
  208. }
  209. }
  210. </style>