details.vue 22 KB

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