details.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747
  1. <!--
  2. * @Description: 详情弹框
  3. * @Author: Sugar.
  4. * @Date: 2023-11-24 13:55:00
  5. * @LastEditors: gcz
  6. * @LastEditTime: 2024-03-15 15:13:27
  7. * @FilePath: \great_webui\src\views\order\groupBuyingMr\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="96%"
  15. append-to-body
  16. :close-on-click-modal="false"
  17. @close="cancel"
  18. >
  19. <div v-loading="loading" class="dialog dialog-bbb" v-if="form">
  20. <div>
  21. <!-- 基础信息 -->
  22. <div class="title-class" style="margin-top: 0">基础信息</div>
  23. <el-row>
  24. <el-col :span="12">
  25. <div class="grid-content bg-purple item-class">团队名称: <span>{{ form.teamName || ''}}</span></div>
  26. </el-col>
  27. <el-col :span="12">
  28. <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>
  29. </el-col>
  30. <el-col :span="12">
  31. <div class="grid-content bg-purple item-class">预约场馆: <span>{{ form.theatreName || '' }}</span></div>
  32. </el-col>
  33. <el-col :span="12">
  34. <div class="grid-content bg-purple item-class">预约演出厅: <span>{{ form.auditoriumName || '' }}</span></div>
  35. </el-col>
  36. <el-col :span="12">
  37. <div class="grid-content bg-purple item-class">预约剧目: <span>{{ form.performName || '' }}</span></div>
  38. </el-col>
  39. <el-col :span="12">
  40. <div class="grid-content bg-purple item-class">票务名称: <span>{{ form.goodsName || '' }}</span></div>
  41. </el-col>
  42. <el-col :span="12">
  43. <div class="grid-content bg-purple item-class">座位类型: <span>{{ form.seatTypeName || '' }}</span></div>
  44. </el-col>
  45. <el-col :span="12">
  46. <div class="grid-content bg-purple item-class">团购单价: <span v-if="form.price">¥{{ form.price || '' }}/人</span></div>
  47. </el-col>
  48. <el-col :span="12">
  49. <div class="grid-content bg-purple item-class">预约时间: <span v-if="form.performDate">{{ form.performDate + " " || '' }}{{ form.performTimeStart +' --' || '' }}{{ form.performTimeEnd || '' }}</span></div>
  50. </el-col>
  51. <el-col :span="12">
  52. <div class="grid-content bg-purple item-class">报名时间: <span>{{ form.applyTime || '' }}</span></div>
  53. </el-col>
  54. <el-col :span="12">
  55. <div class="grid-content bg-purple item-class">负责人: <span>{{ form.teamContact || '' }}</span></div>
  56. </el-col>
  57. <el-col :span="12">
  58. <div class="grid-content bg-purple item-class">联系电话: <span>{{ form.teamMobile || '' }}</span></div>
  59. </el-col>
  60. <!-- <el-col :span="12">
  61. <div class="grid-content bg-purple item-class">支付总额: <span>¥{{ form.orderPrice || '' }}</span></div>
  62. </el-col> -->
  63. <el-col :span="12">
  64. <div class="grid-content bg-purple item-class">应付金额: <span>¥{{ form.orderPrice || form.orderPrice == 0 ? form.orderPrice : '' }}</span></div>
  65. </el-col>
  66. <el-col :span="12">
  67. <div class="grid-content bg-purple item-class">实付金额: <span>¥{{ form.realPrice || form.realPrice == 0 ? form.realPrice : '' }}</span></div>
  68. </el-col>
  69. <el-col :span="12">
  70. <div class="grid-content bg-purple item-class">团购人数: <span>{{ form.quantity || '' }}</span></div>
  71. </el-col>
  72. <el-col :span="12">
  73. <div class="grid-content bg-purple item-class">支付时间: <span>{{ form.payTime || '' }}</span></div>
  74. </el-col>
  75. <el-col :span="12">
  76. <div class="grid-content bg-purple item-class">支付方式: <span>{{ payWayList[form.payWay] || '' }}</span></div>
  77. </el-col>
  78. <el-col :span="12">
  79. <div class="grid-content bg-purple item-class">订单状态: <span>{{ statusList[form.status] || '' }}</span></div>
  80. </el-col>
  81. <el-col :span="12">
  82. <div class="grid-content bg-purple item-class" style="display: flex;">是否成功开票: <span style="display: block;margin-left: 5px;">{{ form.ifSuccessInvoice=='1'?'是':'否' }}</span></div>
  83. </el-col>
  84. </el-row>
  85. <!-- 对公支付信息 -->
  86. <div v-if="form.payWay=='corporate'&&form.status>0&&form.corporate">
  87. <div class="title-class">对公支付信息</div>
  88. <el-row>
  89. <el-col :span="24">
  90. <div class="voucher-list">
  91. <el-image
  92. v-for="(item,index) in voucherUrl" :key="index"
  93. style="width: 100px; height: 100px"
  94. :src="item"
  95. :preview-src-list="voucherUrl">
  96. </el-image>
  97. </div>
  98. </el-col>
  99. <el-col class="pay-type-remark" :span="24">
  100. 对公支付备注:{{corporateRremark}}
  101. </el-col>
  102. </el-row>
  103. </div>
  104. <!-- 观影人员信息 -->
  105. <div class="title-class">观影人员信息</div>
  106. <el-row>
  107. <el-col :span="24">
  108. <el-table ref="tables" :data="form.viewersOrderList" border>
  109. <el-table-column label="序号" align="center" type="index" width="60"></el-table-column>
  110. <el-table-column label="姓名" align="center" prop="name" />
  111. <el-table-column label="身份证号码" align="center" prop="idCard" />
  112. <el-table-column label="核销状态" align="center">
  113. <template slot-scope="scope">
  114. <dict-tag :options="dict.type.order_status_type" :value="scope.row.status"/>
  115. <!-- <el-tag v-if="scope.row.qrcodeStatus == 0">未使用</el-tag>
  116. <el-tag v-if="scope.row.qrcodeStatus == 1" type="success">已使用</el-tag>
  117. <el-tag v-if="scope.row.qrcodeStatus == 2" type="info">过期</el-tag> -->
  118. </template>
  119. </el-table-column>
  120. <el-table-column label="核销时间" align="center" prop="useTime" />
  121. <el-table-column label="座位信息" align="center" prop="seatName" />
  122. <el-table-column label="座位类型" align="center" prop="seatTypeName" />
  123. </el-table>
  124. </el-col>
  125. </el-row>
  126. </div>
  127. <div class="dialog-bbb_2">
  128. <div class="seat-tool-box">
  129. <span class="demonstration">座位大小</span>
  130. <div class="seat-tool-box-slider">
  131. <el-slider v-model="scaleNum" :min="30" :max="100"></el-slider>
  132. </div>
  133. <div style="display: flex;margin-left: 20px;" v-if="seatMapList && JSON.stringify(seatMapList) != '{}'">
  134. <div>座位余量:</div>
  135. <div :key="index" v-for="(item, index) in seatTypeList" style="margin-left: 10px;align-items: center;">
  136. <span :style="{ color: item.color ? item.color : 'none' }">{{ item.name ? (item.name + '(剩余:' + (item.num || 0) + ')')
  137. :
  138. '暂未命名'}}</span>
  139. </div>
  140. </div>
  141. </div>
  142. <div class="seat-box" :style="{ '--scaleNum': scaleNum / 100 }">
  143. <!-- 选择座位 -->
  144. <div class="seat-list-box">
  145. <!-- 座位排版 -->
  146. <div id="seatbox-me" ref="seatbox" class="dialogss">
  147. <div class="dialogss-box"
  148. :style="{ width: width * (scaleNum / 100) + 'px', margin: justifyContent ? 'auto' : 'unset' }">
  149. <div style="width: 100%;position: absolute;" class="seat-box-class clearfix" v-if="seatMapList">
  150. <div class="seat-item-class-box" v-for="(item1, index1) in seatMapListKey" :key="item1.key">
  151. <div class="seat-item-class"
  152. :class="setSeatClass(item)"
  153. v-for="(item, index) in seatMapList[item1.key]"
  154. :style="{ backgroundColor: item.color ? item.color : 'none' }" @click.stop="seatClick(item)"
  155. :key="index">
  156. <p class="text-class">{{ item.status != 1 ? '不可售' : (item.name ? item.name : '暂未命名') }}</p>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. </div>
  162. <div style="margin-top: 5px; margin-left: 30px;display: flex;">
  163. <div style="flex-shrink: 0;">
  164. 已勾选:{{ seatSelectList.length }}个座位
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <!-- <span slot="footer" class="dialog-footer">
  172. <el-button type="primary" @click="cancel">关闭</el-button>
  173. </span> -->
  174. </el-dialog>
  175. </template>
  176. <script>
  177. import { getSelectById } from '@/api/order/groupBuyingMr'
  178. import { querySeatList } from '@/api/team/applicationMr'
  179. import { pageList as getSeatType } from '@/api/seatTypeMr/seatTypeMr'
  180. export default {
  181. name: "detailsDia",
  182. props: {
  183. dict: {
  184. type: Object,
  185. default: () => [],
  186. },
  187. },
  188. data() {
  189. return {
  190. title: "编辑",
  191. model: "EDIT",
  192. open: false,
  193. loading: false,
  194. form: {
  195. id: undefined
  196. },
  197. corporateRremark:'',
  198. performerVisible: false,
  199. performerList: [],
  200. refund: false,
  201. statusList: {
  202. 0: '待支付',
  203. 2: '超时取消',
  204. 3: '支付完成,待使用',
  205. 4: '退款中',
  206. 5: '己退款',
  207. 6: '退款失败',
  208. 7: '己使用',
  209. 8: '己超期',
  210. 9: '关闭',
  211. },
  212. payList: {
  213. 0: '未支付',
  214. 1: '已支付',
  215. 2: '支付中',
  216. 3: '支付失败',
  217. 4: '支付退款',
  218. },
  219. payWayList: {
  220. 'cahsh': '现金',
  221. 'wecaht.applet': '微信小程序支付',
  222. 'alipay': '支付宝OTA',
  223. 'wecaht.h5': '微信公众号支付',
  224. 'meituan': '美团支付',
  225. 'corporate': '对公支付',
  226. },
  227. sourceList: {
  228. 1: '小程序',
  229. 2: '公众号',
  230. 3: '美团',
  231. 4: '携程',
  232. 5: '团购',
  233. },
  234. dataList: [],
  235. voucherUrl:[],
  236. merchantTheatreAuditoriumListS: [], // 演出厅
  237. merchantPerformTimeListS: [], // 场次
  238. querySeatListS: [], // 座位
  239. goodsPageListS: [], // 票务
  240. goodsPageListSAll: [], // 票务全部
  241. setList: [],
  242. seatMapList: {},
  243. seatMapListKey: [], // key
  244. seatSelectList: [],
  245. lockOrUnLockLoading: false,
  246. performId: '',// 剧目ID
  247. scaleNum: 30,
  248. width: 0,
  249. justifyContent: false,
  250. activeName: 'first',
  251. seatTypeList: [],
  252. };
  253. },
  254. created() {
  255. this.getSeatTypeList()
  256. },
  257. methods: {
  258. /**
  259. * 打开弹框
  260. * @date 2023-11-22
  261. * @param {any} obj
  262. * @returns {any}
  263. */
  264. openDialog(title, obj, type) {
  265. this.open = true;
  266. this.querySeatListS = [];
  267. this.setList = [];
  268. this.seatSelectList = [];
  269. this.getSelectByIdApi(obj);
  270. },
  271. /** 获取详情 */
  272. async getSelectByIdApi(row) {
  273. try {
  274. this.loading = true
  275. const id = row.id
  276. let res = await getSelectById(id)
  277. this.seatSelectList = res.data.viewersOrderList
  278. this.form = res.data;
  279. if(res.data.corporate){
  280. this.voucherUrl = res.data.corporate.voucherUrl.split(',')||[];
  281. this.corporateRremark = res.data.corporate.remark;
  282. }
  283. let res1 = await querySeatList({
  284. auditoriumId: res.data.auditoriumId,
  285. //seatTypeId: res.data.seatTypeId,
  286. timeId: res.data.performTimeId,
  287. })
  288. this.querySeatListS = res1.data;
  289. this.setList = res1.data;
  290. if (this.setList && this.setList.length > 0) {
  291. this.setSeatMapListCopy(this.setList);
  292. }
  293. this.loading = false
  294. } catch (error) {
  295. this.loading = false
  296. }
  297. },
  298. /**
  299. * 关闭弹框
  300. * @date 2023-11-22
  301. * @returns {any}
  302. */
  303. cancel() {
  304. this.open = false;
  305. },
  306. // 设置座位集合
  307. setSeatMapListCopy(list) {
  308. if (list && list.length > 0) {
  309. let listCopy = {}
  310. let lisyCopy1 = {}
  311. let listNum = JSON.parse(JSON.stringify(this.seatTypeList))
  312. listNum.forEach((item, index) => {
  313. listNum[index]['num'] = 0
  314. })
  315. list.forEach(item => {
  316. item.isDisabled = (item.occupyStatus != null && (item.occupyStatus == 0 || item.occupyStatus == 1) ? true : false); // 座位是否已被选择
  317. item.isSelect = this.setIsSelect(item);
  318. if (item.rowNo) {
  319. listNum.forEach((item1, index) => {
  320. if (item1.id == item.seatTypeId && item.status == 1 && !item.occupyStatus) {
  321. listNum[index]['num'] = listNum[index]['num'] + 1
  322. }
  323. })
  324. if (listCopy['my' + item.rowNo]) {
  325. listCopy['my' + item.rowNo].push(item)
  326. } else {
  327. listCopy['my' + item.rowNo] = [item]
  328. }
  329. }
  330. })
  331. this.seatTypeList = JSON.parse(JSON.stringify(listNum))
  332. let width = 0
  333. let flog = 0
  334. let seatMapListKey = []
  335. Object.keys(listCopy).forEach((item) => {
  336. if (listCopy[item].length > flog) {
  337. flog = listCopy[item].length
  338. }
  339. seatMapListKey.push({
  340. key: item,
  341. sort: Number(item.replace('my', ''))
  342. })
  343. })
  344. seatMapListKey.sort((a, b) => {
  345. return a.sort - b.sort
  346. })
  347. this.seatMapListKey = seatMapListKey
  348. console.log("seatMapListKey=====", seatMapListKey)
  349. this.width = 70 * flog
  350. this.$nextTick(() => {
  351. if (this.$refs.seatbox) {
  352. var ele = document.getElementById('seatbox-me');
  353. console.log(ele.getBoundingClientRect().width); // 100
  354. if (this.width < ele.getBoundingClientRect().width) {
  355. this.justifyContent = true
  356. } else {
  357. //this.justifyContent = false
  358. this.justifyContent = true
  359. }
  360. //this.$refs.seatbox.scrollTo(this.width/4,0)
  361. }
  362. })
  363. console.log("list====", listCopy)
  364. this.seatMapList = JSON.parse(JSON.stringify(listCopy))
  365. }
  366. },
  367. setIsSelect(item) {
  368. if (!this.seatSelectList || this.seatSelectList.length == 0) {
  369. return false
  370. }
  371. let flog = false
  372. this.seatSelectList.forEach((item1, index1) => {
  373. if (item.id == item1.seatId) {
  374. flog = true
  375. }
  376. })
  377. return flog
  378. },
  379. /** 获取座位类型 说明 */
  380. getSeatTypeList() {
  381. getSeatType({
  382. pageNum: 1,
  383. pageSize: 999,
  384. })
  385. .then(response => {
  386. this.seatTypeList = response.data.rows;
  387. });
  388. },
  389. /** 座位状态 展示 */
  390. setSeatClass(item){
  391. let srt =
  392. this.setIsSelect(item)?'purchased-status':
  393. item.occupyStatus == 0 ? 'occupy-status' :
  394. item.occupyStatus == 1 ? 'occupy-status-no' :
  395. item.isDisabled || item.status != 1 ? 'disabled-class' :
  396. item.isSelect ? 'select-class' : ''
  397. console.log("srt=====",srt)
  398. return srt
  399. }
  400. },
  401. };
  402. </script>
  403. <style lang="scss" scoped>
  404. .dialog {
  405. width: 100%;
  406. height: 70vh;
  407. }
  408. .dialog {
  409. padding: 0 30px;
  410. .upload-btn {
  411. width: 100px;
  412. height: 100px;
  413. background-color: #fbfdff;
  414. border: dashed 1px #c0ccda;
  415. border-radius: 5px;
  416. i {
  417. font-size: 30px;
  418. margin-top: 20px;
  419. }
  420. &-text {
  421. margin-top: -10px;
  422. }
  423. }
  424. .avatar {
  425. cursor: pointer;
  426. }
  427. .title-class{
  428. font-size: 16px;
  429. font-weight: bold;
  430. color: black;
  431. margin-bottom: 20px;
  432. margin-top: 20px;
  433. }
  434. .item-class{
  435. margin-bottom: 20px;
  436. }
  437. }
  438. .voucher-list{
  439. display: grid;
  440. grid-template-columns: repeat(4, 1fr);
  441. gap: 24rpx;
  442. }
  443. .pay-type-remark{
  444. margin:14px 0;
  445. }
  446. .dialog-bbb {
  447. width: 100%;
  448. display: flex;
  449. --widdd: 700px;
  450. >div:first-child {
  451. width: var(--widdd);
  452. flex-shrink: 0;
  453. overflow-y: auto;
  454. padding: 0 0 10px 0;
  455. margin-right: 10px;
  456. }
  457. .dialog-bbb_2 {
  458. width: calc(100% - var(--widdd));
  459. height: 100%;
  460. }
  461. }
  462. .dialog-bbb_2 {
  463. .seat-tool-box {
  464. height: 20px;
  465. box-sizing: border-box;
  466. display: flex;
  467. align-items: center;
  468. white-space: nowrap;
  469. span {
  470. flex-shrink: 0;
  471. font-size: 12px;
  472. white-space: nowrap;
  473. }
  474. .seat-tool-box-slider {
  475. width: 100px;
  476. margin-left: 10px;
  477. }
  478. }
  479. .seat-box {
  480. width: 100%;
  481. height: calc(100% - 50px);
  482. box-sizing: border-box;
  483. display: flex;
  484. position: relative;
  485. .seat-list-box {
  486. width: 100%;
  487. height: 100%;
  488. box-sizing: border-box;
  489. position: relative;
  490. }
  491. .seat-select-box {
  492. width: 200px;
  493. height: 100%;
  494. flex-shrink: 0;
  495. box-sizing: border-box;
  496. padding: 0 5px;
  497. margin-left: 10px;
  498. border: 1px solid #ccc;
  499. border-radius: 10px;
  500. .seat-select-info {
  501. width: 100%;
  502. height: calc(100% - 60px);
  503. overflow: hidden;
  504. overflow-y: auto;
  505. .seat-select-item {
  506. border: 1px solid #ccc;
  507. margin-bottom: 5px;
  508. padding: 5px;
  509. border-radius: 5px;
  510. display: flex;
  511. justify-content: space-between;
  512. align-items: center;
  513. font-size: 12px;
  514. >div:first-child {
  515. display: flex;
  516. flex-direction: column;
  517. span:first-child {
  518. font-weight: 600;
  519. }
  520. }
  521. >div:last-child {
  522. span:first-child {
  523. color: #f56c6c;
  524. cursor: pointer;
  525. }
  526. }
  527. }
  528. .seat-select-color-item {
  529. display: flex;
  530. align-items: center;
  531. margin-bottom: 5px;
  532. >span:first-child {
  533. width: 20px;
  534. height: 20px;
  535. flex-shrink: 0;
  536. }
  537. >span:last-child {
  538. font-size: 16px;
  539. font-weight: 600;
  540. margin-left: 10px;
  541. }
  542. }
  543. }
  544. }
  545. }
  546. .seat-list-box::before {
  547. content: "舞台";
  548. position: absolute;
  549. left: 50%;
  550. transform: translateX(-50%);
  551. width: 300px;
  552. height: 30px;
  553. background-color: rgb(204, 204, 204, 0.5);
  554. font-size: 18px;
  555. font-weight: 600;
  556. display: flex;
  557. align-items: center;
  558. justify-content: center;
  559. border-radius: 0 0 20px 20px;
  560. z-index: 99;
  561. }
  562. .dialogss {
  563. padding: 30px 10px 10px;
  564. width: 100%;
  565. height: 100%;
  566. box-sizing: border-box;
  567. overflow: auto;
  568. border-radius: 10px;
  569. border: 1px solid #323333;
  570. .dialogss-box {
  571. position: relative;
  572. }
  573. .upload-btn {
  574. width: 100px;
  575. height: 100px;
  576. background-color: #fbfdff;
  577. border: dashed 1px #c0ccda;
  578. border-radius: 5px;
  579. i {
  580. font-size: 30px;
  581. margin-top: 20px;
  582. }
  583. &-text {
  584. margin-top: -10px;
  585. }
  586. }
  587. .avatar {
  588. cursor: pointer;
  589. }
  590. .title-class {
  591. font-size: 16px;
  592. font-weight: bold;
  593. color: black;
  594. margin-bottom: 20px;
  595. margin-top: 20px;
  596. }
  597. .item-class {
  598. margin-bottom: 20px;
  599. }
  600. .seat-box-class {
  601. padding: 5px;
  602. transform-origin: 50% 0;
  603. transform: scale(var(--scaleNum));
  604. box-sizing: border-box;
  605. .disabled-class {
  606. background-color: #aaabad;
  607. user-select: none;
  608. // pointer-events: none;
  609. cursor: not-allowed !important;
  610. }
  611. .select-class {
  612. //background-color: #e85353 !important;
  613. border: 5px solid #1890ff !important;
  614. // color: #eceaea !important;
  615. position: relative;
  616. }
  617. .purchased-status:after {
  618. content: "";
  619. display: block;
  620. position: absolute;
  621. top: 0;
  622. left: 0;
  623. width: 100%;
  624. height: 100%;
  625. background-color: rgba(0, 0, 0, 0.5);
  626. z-index: -1;
  627. background-image: url('../../../../assets/renyuan.png');
  628. background-size: 50% 50%;
  629. background-position: 50% 50%;
  630. background-repeat: no-repeat;
  631. z-index: 99;
  632. }
  633. .occupy-status:after {
  634. content: "";
  635. display: block;
  636. position: absolute;
  637. top: 0;
  638. left: 0;
  639. width: 100%;
  640. height: 100%;
  641. background-color: rgba(0, 0, 0, 0.3);
  642. z-index: -1;
  643. background-image: url('../../../../assets/jinzhi.png');
  644. background-size: 50% 50%;
  645. background-position: 50% 50%;
  646. background-repeat: no-repeat;
  647. z-index: 99;
  648. }
  649. .occupy-status {
  650. //pointer-events: none;
  651. }
  652. .occupy-status-no {
  653. background-color: #f56c6c !important;
  654. user-select: none;
  655. // pointer-events: none;
  656. cursor: not-allowed !important;
  657. }
  658. .seat-item-class-box {
  659. width: 100%;
  660. display: flex;
  661. flex-wrap: nowrap;
  662. justify-content: center;
  663. margin: auto 0;
  664. text-align: center;
  665. }
  666. .seat-item-class {
  667. flex-shrink: 0;
  668. display: block;
  669. float: left;
  670. width: 60px;
  671. height: 60px;
  672. margin: 5px;
  673. border: 1px solid #4c4d4d;
  674. border-radius: 3px;
  675. cursor: pointer;
  676. position: relative;
  677. user-select: none;
  678. // transform-origin: 50% 50%;
  679. // transform: scale(var(--scaleNum));
  680. &:hover {
  681. opacity: 0.6;
  682. }
  683. .text-class {
  684. font-size: 12px;
  685. padding: 5px;
  686. line-height: 16px;
  687. margin: 0;
  688. color: #000;
  689. }
  690. }
  691. }
  692. }
  693. }
  694. </style>