details.vue 22 KB

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