index.vue 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940
  1. <template>
  2. <div class="app-container-seat" :style="{height: height}">
  3. <div class="app-container-seat-tool">
  4. <!-- 座位类型 -->
  5. <slot name="info">
  6. <div class="seat-tool-box-seat_info">
  7. <div class="seat-tool-box-seat_type" v-if="seatMapList&&JSON.stringify(seatMapList) != '{}'">
  8. <div style="flex-shrink: 0;">各类型座位的剩余数量:</div>
  9. <div class="seat-tool-box-seat_type-list">
  10. <div
  11. class="seat-tool-box-seat_type-item"
  12. :key="index"
  13. v-for="(item,index) in seatTypeList"
  14. style="margin-left: 10px;align-items: center;"
  15. >
  16. <span :style="{color: item.color?item.color:'none'}">{{item.name ? (item.name+'('+ (item.num||0) +')') : '暂未命名'}}</span>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. </slot>
  22. <div class="seat-tool-box">
  23. <div class="seat-tool-box-slider-box">
  24. <span class="demonstration">座位大小:</span>
  25. <div class="seat-tool-box-slider">
  26. <el-slider
  27. v-model="scaleNum"
  28. :min="30"
  29. :max="100"
  30. @change="scaleNumChange"
  31. ></el-slider>
  32. </div>
  33. </div>
  34. <div>
  35. <el-button size="mini" @click="clearSeatSelectListAll" type="danger">清空已选({{ seatSelectList.length }})</el-button>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="seat-box" :style="{'--scaleNum': scaleNum/100}">
  40. <!-- 选择座位 -->
  41. <div
  42. class="seat-list-box"
  43. v-loading="loading">
  44. <!-- 座位排版 -->
  45. <div
  46. id="sm-scroll-box"
  47. ref="seatbox"
  48. class="dialog"
  49. @mousedown="mousedownFun"
  50. @mouseleave="mouseleaveFun"
  51. @scroll="scrollFun"
  52. >
  53. <div
  54. class="dialog-box"
  55. :style="{width: width*(scaleNum/100) + 'px', margin: justifyContent ? 'auto' : 'unset'}"
  56. >
  57. <div
  58. style="width: 100%;position: absolute;"
  59. class="seat-box-class clearfix"
  60. v-if="seatMapList"
  61. >
  62. <div
  63. class="seat-item-class-box"
  64. v-for="(item1, index1) in seatMapListKey"
  65. :key="item1.key"
  66. >
  67. <div class="seat-item-class seat-box-class-row" style="">{{ index1 != 0 ?((index1) + '排') :'' }}</div>
  68. <div
  69. :class="[
  70. 'seat-item-class',
  71. setShowStatus(item1,item)
  72. ]"
  73. v-for="(item, index) in seatMapList[item1.key]"
  74. :style="{backgroundColor: item.color && !(item.isDisabled || item.status != 1) ? item.color : 'none'}"
  75. @click.stop="seatClick(item)"
  76. @mouseenter="lockOrUnLockDeatilFun($event,item)"
  77. @mouseleave="lockOrUnLockDeatilFun1"
  78. :dragSelectId="item.id"
  79. :index="item1.key +'_'+ index"
  80. :key="index">
  81. <p
  82. v-if="item1.key != 'my_column'"
  83. class="text-class"
  84. >{{ item.status != 1 ? '不可售':(item.name ? item.name : '暂未命名') }}</p>
  85. <p v-else>{{ (index+1) + '号' }}</p>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <!-- 鼠标拖拽出的遮罩 (定位为 position:absolute)-->
  91. <!-- 遮罩最好是在绑定了mouseover事件的元素内部,并且不要阻止遮罩的冒泡事件。这样鼠标移到了遮罩上面,依然可以利用冒泡执行父元素的mouseover事件,就不会出现遮罩只能扩大,不能缩小的情况了(亲自试过) -->
  92. <div id="moveSelected"></div>
  93. </div>
  94. </div>
  95. </div>
  96. <!-- 提示信息 -->
  97. <div :style="lockStyle" v-if="isLcokShow" class="lock-style-box">
  98. <div><span>锁定人:</span><span>{{ lockObj.auth }}</span></div>
  99. <div><span>锁定原因:</span><span>{{ lockObj.remark }}</span></div>
  100. </div>
  101. </div>
  102. </template>
  103. <script>
  104. import moment from "moment"
  105. import selectListMixin from "./mixins/selectList"
  106. import {
  107. lockOrUnLockApi,
  108. } from '@/api/windowTicketSales/ticketingSales'
  109. export default {
  110. name: "TicketingSales1",
  111. mixins: [selectListMixin],
  112. dicts: ['channel_type'],
  113. props: {
  114. // 是否限制只能选择同一种类型
  115. isOccupyStatus: {
  116. type: [Boolean],
  117. default: true
  118. },
  119. /**
  120. * 限制座位类型选择数量
  121. *
  122. */
  123. seatTypeLimit: {
  124. type: [Object],
  125. default: ()=>{
  126. return {}
  127. }
  128. },
  129. height: {
  130. type: [String],
  131. default: 'calc( 100vh - 120px )'
  132. },
  133. channelType: {
  134. type: [String],
  135. default: 'window'
  136. }
  137. },
  138. data() {
  139. return {
  140. // 遮罩层
  141. loading: false,
  142. rules: {
  143. },
  144. merchantTheatreAuditoriumListS: [], // 演出厅
  145. merchantPerformTimeListS: [], // 场次
  146. querySeatListS: [], // 座位
  147. goodsPageListS: [], // 票务
  148. goodsPageListSAll: [], // 票务全部
  149. setList: [],
  150. seatMapList: {},
  151. seatMapListKey: [], // key
  152. seatSelectList: [],
  153. seatSelectListNo: [], // 锁定的座位
  154. lockOrUnLockLoading: false,
  155. performId: '',// 剧目ID
  156. scaleNum: 30,
  157. width: 0,
  158. justifyContent: false,
  159. activeName: 'first',
  160. seatTypeList: [],
  161. // 限购条件
  162. ifRealUser: 0,// 散客是否实名:0-否 1-是
  163. ifRealTeam: 0,// 团购是否实名:0否 1-是
  164. oneMany: 0,// 证件要求: 1一证一票,2一证多票
  165. personnelNum: 0,// 人员要求:0-表示不限制 其他数字表示限制人数
  166. isLcokShow: false,
  167. lckTime: null,
  168. seatId: null,
  169. lockStyle: {
  170. },
  171. lockObj: {
  172. auth: '',
  173. remark: ''
  174. }
  175. };
  176. },
  177. created() {
  178. //this.getSeatTypeList()
  179. },
  180. mounted() {
  181. },
  182. methods: {
  183. moment,
  184. setChanneltype(key){
  185. let srt = ''
  186. this.dict.type.channel_type.forEach((item,index)=>{
  187. if(key == item.value) {
  188. srt = item.label
  189. }
  190. })
  191. return srt
  192. },
  193. /** 获取座位 */
  194. async querySeatListFun(type,list,list1,seatTypeList){
  195. try {
  196. this.loading = true
  197. this.performId = ''
  198. this.screenTop = 0
  199. this.scrollLeft = 0
  200. this.seatTypeList = seatTypeList
  201. if(type) { // 是否清除已选
  202. this.seatSelectList = []
  203. this.seatSelectListNo = []
  204. }
  205. this.seatSelectList = list1
  206. this.seatMapList = {}
  207. this.seatList = []
  208. this.querySeatListS = list;
  209. this.setList = list;
  210. if(this.setList && this.setList.length > 0) {
  211. this.setSeatMapList(this.setList);
  212. }
  213. // let res = await querySeatList({
  214. // ...this.queryParams
  215. // })
  216. this.loading = false
  217. } catch (error) {
  218. this.loading = false
  219. console.error("error===",error)
  220. }
  221. },
  222. // 设置座位集合
  223. setSeatMapList(list) {
  224. if(list && list.length > 0) {
  225. let listCopy = {}
  226. let lisyCopy1 = {}
  227. let listNum = JSON.parse(JSON.stringify(this.seatTypeList))
  228. listNum.forEach((item,index)=>{
  229. listNum[index]['num'] = 0
  230. })
  231. list.forEach(item => {
  232. item.isDisabled = item.occupyStatus == 1 || (item.occupyStatus==0 && item.occupyOrderId) ? true : false //(item.occupyStatus != null && (item.occupyStatus == 0 || item.occupyStatus == 1) ? true : false); // 座位是否已被选择
  233. item.isSelect = this.setIsSelect(item);
  234. if(item.rowNo){
  235. listNum.forEach((item1,index)=>{
  236. if(item1.id == item.seatTypeId && item.status ==1 && !item.occupyStatus && item.occupyStatus !=0 ) {
  237. listNum[index]['num'] = listNum[index]['num'] + 1
  238. }
  239. })
  240. if(listCopy['my'+item.rowNo]){
  241. listCopy['my'+item.rowNo].push(item)
  242. }else {
  243. listCopy['my'+item.rowNo] = [item]
  244. }
  245. }
  246. })
  247. this.seatTypeList = JSON.parse(JSON.stringify(listNum))
  248. let width = 0
  249. let flog = 0
  250. let seatMapListKey = []
  251. Object.keys(listCopy).forEach((item)=>{
  252. if(listCopy[item].length>flog) {
  253. flog = listCopy[item].length
  254. }
  255. seatMapListKey.push({
  256. key: item,
  257. sort: Number(item.replace('my',''))
  258. })
  259. })
  260. seatMapListKey.sort((a,b)=>{
  261. return a.sort - b.sort
  262. })
  263. this.seatMapListKey = seatMapListKey
  264. console.log("seatMapListKey=====",seatMapListKey)
  265. this.width = 70*(flog + 1)
  266. this.$nextTick(()=>{
  267. if(this.$refs.seatbox) {
  268. var ele = this.$refs.seatbox
  269. console.log(ele.getBoundingClientRect().width); // 100
  270. if(this.width<ele.getBoundingClientRect().width) {
  271. this.justifyContent = true
  272. }else {
  273. //this.justifyContent = false
  274. this.justifyContent = true
  275. }
  276. //this.$refs.seatbox.scrollTo(this.width/4,0)
  277. }
  278. })
  279. console.log("list====",listCopy)
  280. let columnList = []
  281. listCopy[seatMapListKey[0].key].forEach((item,index)=>{
  282. columnList.push({
  283. ...item,
  284. occupyStatus: 2,
  285. isDisabled: true,
  286. status: 0
  287. })
  288. })
  289. this.seatMapListKey.unshift({
  290. key: "my_column",
  291. sort: -99
  292. })
  293. listCopy['my_column'] = columnList
  294. this.seatMapList = JSON.parse(JSON.stringify(listCopy))
  295. }
  296. },
  297. setIsSelect(item){
  298. if(!this.seatSelectList||this.seatSelectList.length==0){
  299. return false
  300. }
  301. let flog = false
  302. this.seatSelectList.forEach((item1,index1)=>{
  303. if(item.id == item1.id){
  304. flog = true
  305. }
  306. })
  307. return flog
  308. },
  309. // 座位点击事件
  310. seatClick(row) {
  311. console.log("是的发给我大是个的风格====",row,this.seatTypeLimit)
  312. if(!row.seatTypeId){
  313. this.$message.error('未设置的座位不可售卖!!!');
  314. return
  315. }
  316. if(row.isDisabled || row.status == 2){
  317. return false
  318. }
  319. if(this.seatSelectListNo.length>0 && row.occupyStatus != 0) {
  320. this.$message.error('你已选择锁定座位,只能再选择被锁定的座位!!!');
  321. return
  322. }
  323. if(this.seatSelectList.length > 0 && row.occupyStatus == 0){
  324. this.$message.error('此座已被锁定,请先解锁!!!');
  325. return
  326. }
  327. if(this.seatTypeLimit['seatNum_'+row.seatTypeId].isNoSelect){
  328. this.$message.error('该座位类型不可选!!!');
  329. return
  330. }
  331. if(!row.isSelect){
  332. let seatTypeNum = 0
  333. this.seatSelectList.forEach((item,index)=>{
  334. if(item.seatTypeId == row.seatTypeId) {
  335. seatTypeNum++
  336. }
  337. })
  338. if( seatTypeNum >= this.seatTypeLimit['seatNum_'+row.seatTypeId].stockTotal-this.seatTypeLimit['seatNum_'+row.seatTypeId].stockYes ) {
  339. this.$message.error('选择的座位类型已超过库存!!!');
  340. return
  341. }
  342. }
  343. if(row.occupyStatus == 0){
  344. // console.log("weqwrwerewrer")
  345. // this.$confirm('此座已被锁定,请先解锁', '提示', {
  346. // confirmButtonText: '确定',
  347. // cancelButtonText: '取消',
  348. // type: 'warning'
  349. // }).then(() => {
  350. // this.lockOrUnLockFun([row],1)
  351. // }).catch((error) => {
  352. // console.log("error====",error)
  353. // });
  354. row.isSelect = !row.isSelect
  355. if(row.isSelect){
  356. this.seatSelectListNo.push(JSON.parse(JSON.stringify(row)))
  357. }else {
  358. let list = JSON.parse(JSON.stringify(this.seatSelectListNo))
  359. list.forEach((item,index)=>{
  360. if(item.id == row.id) {
  361. this.seatSelectListNo.splice(index, 1)
  362. }
  363. })
  364. }
  365. }else if(row.isDisabled || row.status == 2){
  366. return false
  367. }else {
  368. let flog = false;
  369. this.seatSelectList.forEach((item,index)=>{
  370. if(item.seatTypeId != row.seatTypeId ) {
  371. flog = true
  372. }
  373. })
  374. if(flog && this.isOccupyStatus){
  375. this.$message.error('只能选同一类型的座位');
  376. return
  377. }
  378. row.isSelect = !row.isSelect
  379. if(row.isSelect){
  380. this.seatSelectList.push(JSON.parse(JSON.stringify(row)))
  381. }else {
  382. let list = JSON.parse(JSON.stringify(this.seatSelectList))
  383. list.forEach((item,index)=>{
  384. if(item.id == row.id) {
  385. this.seatSelectList.splice(index, 1)
  386. }
  387. })
  388. }
  389. this.$emit('selectSeat',this.seatSelectList)
  390. //this.$forceUpdate()
  391. }
  392. },
  393. /** 删除已选座位 */
  394. delSeatSelect(row){
  395. let list = JSON.parse(JSON.stringify(this.seatSelectList))
  396. list.forEach((item,index)=>{
  397. if(item.id == row.id) {
  398. this.seatSelectList.splice(index, 1)
  399. }
  400. })
  401. Object.keys(this.seatMapList).forEach((item1,index)=>{
  402. this.seatMapList[item1].forEach((item,index)=>{
  403. if(item.id == row.id) {
  404. item.isSelect = !item.isSelect
  405. }
  406. })
  407. })
  408. this.$forceUpdate()
  409. },
  410. increaseViewersFun(){
  411. },
  412. /** 选择tab */
  413. handleClickTab(){
  414. },
  415. /** 显示座位类型 */
  416. setSeatTypeShow(value){
  417. let srt = ''
  418. this.seatTypeList.forEach((item,index)=>{
  419. if(value == item.id) {
  420. srt = item.name
  421. }
  422. })
  423. return srt
  424. },
  425. /** 获取锁定人和锁定备注 */
  426. async lockOrUnLockDeatilFun(e,item) {
  427. try {
  428. if(this.lckTime) {
  429. clearTimeout(this.lckTime)
  430. }
  431. if(item.occupyStatus !== 0) {
  432. if(item.channelType && item.channelType != this.channelType){
  433. this.isLcokShow = true
  434. this.lockObj = {
  435. remark: `该座位仅限${ this.setChanneltype(item.channelType) }渠道购买!!!`,
  436. auth: ''
  437. }
  438. this.lockStyle = {
  439. position: "fixed",
  440. top: (e.y + 10) + 'px',
  441. left: (e.x + 10)+ 'px',
  442. zIndex: 999999
  443. }
  444. return
  445. }else {
  446. this.isLcokShow = false
  447. return
  448. }
  449. }
  450. if(item.id == this.seatId){ return }
  451. this.seatId = item.id
  452. this.isLcokShow = false
  453. this.lckTime = setTimeout(async ()=>{
  454. let res = await lockOrUnLockApi({
  455. auditoriumId: this.queryParams.auditoriumId,
  456. timeId: this.queryParams.timeId,
  457. seatId: item.id
  458. })
  459. if (res.code == 200) {
  460. this.isLcokShow = true
  461. this.lockObj = {
  462. remark: res.data.remark,
  463. auth: res.data.createBy
  464. }
  465. this.lockStyle = {
  466. position: "fixed",
  467. top: (e.y + 10) + 'px',
  468. left: (e.x + 10)+ 'px',
  469. zIndex: 999999
  470. }
  471. } else {
  472. }
  473. },500)
  474. } catch (error) {
  475. }
  476. },
  477. lockOrUnLockDeatilFun1() {
  478. this.isLcokShow = false
  479. this.seatId = null
  480. },
  481. /** 设置显示状态 */
  482. setShowStatus(item1,item) {
  483. let str = ''
  484. /**
  485. * key == my_column 排和列的 序号位置
  486. *
  487. * occupyStatus null-表示未占用,0-锁定 1-占用
  488. *
  489. * occupyOrderId // 订单待支付锁定
  490. *
  491. * status 0-初始(该状态下不C端显示) 1-可用 2-不可用
  492. *
  493. */
  494. str = item1.key == 'my_column'?'seat-item-class-column':
  495. item.occupyStatus===0?item.occupyOrderId?'order-occupy-status':
  496. item.occupyStatus===0&&item.isSelect?'occupy-status-select occupy-status':
  497. 'occupy-status': item.occupyStatus==1?'occupy-status-no':
  498. item.isDisabled || item.status != 1 ? 'disabled-class' :
  499. item.isSelect ? 'select-class' : ''
  500. if(!str) {
  501. if(item.isSame || item.isUse == 2) { // 是否为可选的座位类型
  502. str = 'seat_is_same'
  503. }
  504. if(item.channelType && item.channelType != this.channelType) { // 是否属于窗口售卖座位
  505. str = 'seat_channel_type'
  506. }
  507. }
  508. return str
  509. }
  510. }
  511. };
  512. </script>
  513. <style>
  514. .lock-style-box {
  515. padding: 10px;
  516. border-radius: 10px;
  517. position: fixed;
  518. z-index: 99999;
  519. background-color: rgba(0,0,0,0.5);
  520. color: #fff;
  521. font-size: 12px;
  522. }
  523. </style>
  524. <style lang="scss" scoped>
  525. .app-container-seat {
  526. width: 100%;
  527. display: flex;
  528. flex-direction: column;
  529. }
  530. .app-container-seat-tool {
  531. width: 100%;
  532. .seat-tool-box-seat_type {
  533. display: flex;
  534. padding-bottom: 10px;
  535. .seat-tool-box-seat_type-list {
  536. width: 100%;
  537. display: flex;
  538. overflow-x: auto;
  539. flex-wrap: nowrap;
  540. }
  541. .seat-tool-box-seat_type-item {
  542. span {
  543. white-space: nowrap;
  544. }
  545. }
  546. }
  547. .seat-tool-box {
  548. box-sizing: border-box;
  549. display: flex;
  550. align-items: center;
  551. justify-content: space-between;
  552. .seat-tool-box-slider-box {
  553. height: 100%;
  554. display: flex;
  555. align-items: center;
  556. span{
  557. flex-shrink: 0;
  558. font-size: 12px;
  559. }
  560. .seat-tool-box-slider {
  561. width: 100px;
  562. margin-left: 10px;
  563. }
  564. }
  565. }
  566. }
  567. .seat-box {
  568. width: 100%;
  569. flex: auto;
  570. box-sizing: border-box;
  571. display: flex;
  572. position: relative;
  573. .seat-list-box {
  574. width: 100%;//calc(100% - 210px);
  575. //width: 100%;
  576. height: 100%;
  577. box-sizing: border-box;
  578. position: relative;
  579. }
  580. .seat-select-box {
  581. width: 200px;
  582. height: 100%;
  583. flex-shrink: 0;
  584. box-sizing: border-box;
  585. padding: 0 5px;
  586. margin-left: 10px;
  587. border: 1px solid #ccc;
  588. border-radius: 10px;
  589. .seat-select-info {
  590. width: 100%;
  591. height: calc( 100% - 60px );
  592. overflow: hidden;
  593. overflow-y: auto;
  594. .seat-select-item {
  595. border: 1px solid #ccc;
  596. margin-bottom: 5px;
  597. padding: 5px;
  598. border-radius: 5px;
  599. display: flex;
  600. justify-content: space-between;
  601. align-items: center;
  602. font-size: 12px;
  603. >div:first-child {
  604. display: flex;
  605. flex-direction: column;
  606. span:first-child {
  607. font-weight: 600;
  608. }
  609. }
  610. >div:last-child {
  611. span:first-child {
  612. color: #f56c6c;
  613. cursor: pointer;
  614. }
  615. }
  616. }
  617. .seat-select-color-item {
  618. display: flex;
  619. align-items: center;
  620. margin-bottom: 5px;
  621. >span:first-child {
  622. width: 20px;
  623. height: 20px;
  624. flex-shrink: 0;
  625. }
  626. >span:last-child {
  627. font-size: 16px;
  628. font-weight: 600;
  629. margin-left: 10px;
  630. }
  631. }
  632. }
  633. }
  634. }
  635. .seat-list-box::before {
  636. content: "舞台";
  637. position: absolute;
  638. left: 50%;
  639. transform: translateX(-50%);
  640. width: 300px;
  641. height: 30px;
  642. background-color: rgb(204, 204, 204,0.5);
  643. font-size: 18px;
  644. font-weight: 600;
  645. display: flex;
  646. align-items: center;
  647. justify-content: center;
  648. border-radius: 0 0 20px 20px;
  649. z-index: 99;
  650. }
  651. .dialog {
  652. padding: 30px 10px 10px;
  653. width: 100%;
  654. height: 100%;
  655. box-sizing: border-box;
  656. overflow: auto;
  657. border-radius: 10px;
  658. border: 1px solid #323333;
  659. position: relative;
  660. .dialog-box {
  661. position: relative;
  662. }
  663. .upload-btn {
  664. width: 100px;
  665. height: 100px;
  666. background-color: #fbfdff;
  667. border: dashed 1px #c0ccda;
  668. border-radius: 5px;
  669. i {
  670. font-size: 30px;
  671. margin-top: 20px;
  672. }
  673. &-text {
  674. margin-top: -10px;
  675. }
  676. }
  677. .avatar {
  678. cursor: pointer;
  679. }
  680. .title-class{
  681. font-size: 16px;
  682. font-weight: bold;
  683. color: black;
  684. margin-bottom: 20px;
  685. margin-top: 20px;
  686. }
  687. .item-class{
  688. margin-bottom: 20px;
  689. }
  690. .seat-box-class{
  691. padding: 5px;
  692. transform-origin: 50% 0;
  693. transform: scale(var(--scaleNum));
  694. box-sizing: border-box;
  695. /** 是否属于windown座位 */
  696. .seat_is_same {
  697. user-select: none;
  698. }
  699. .seat_is_same:after {
  700. content:"";
  701. display:block;
  702. position:absolute;
  703. top:0;
  704. left:0;
  705. width:100%;
  706. height:100%;
  707. background-color:rgba(0,0,0,0.3);
  708. z-index:-1;
  709. background-image: url('../../assets/jinxuan_1.png');
  710. background-size: 50% 50%;
  711. background-position: 50% 50%;
  712. background-repeat: no-repeat;
  713. z-index: 99;
  714. }
  715. /** 是否属于windown座位 */
  716. .seat_channel_type {
  717. user-select: none;
  718. }
  719. .seat_channel_type:after {
  720. content:"";
  721. display:block;
  722. position:absolute;
  723. top:0;
  724. left:0;
  725. width:100%;
  726. height:100%;
  727. background-color:rgba(0,0,0,0.3);
  728. z-index:-1;
  729. background-image: url('../../assets/jinxuan_1.png');
  730. background-size: 50% 50%;
  731. background-position: 50% 50%;
  732. background-repeat: no-repeat;
  733. z-index: 99;
  734. }
  735. /** 不可售 座位 */
  736. .disabled-class{
  737. background-color: #ffffff;
  738. border: none !important;
  739. user-select: none;
  740. // pointer-events: none;
  741. //cursor: not-allowed !important;
  742. cursor: default !important;
  743. .text-class {
  744. color: #fff !important;
  745. }
  746. }
  747. .no_select-class{
  748. user-select: none;
  749. cursor: not-allowed !important;
  750. }
  751. .select-class{
  752. //background-color: #e85353 !important;
  753. border: 5px solid #1890ff !important;
  754. // color: #eceaea !important;
  755. position: relative;
  756. }
  757. /** 手动锁定 */
  758. .occupy-status:after{
  759. content:"";
  760. display:block;
  761. position:absolute;
  762. top:0;
  763. left:0;
  764. width:100%;
  765. height:100%;
  766. background-color:rgba(0,0,0,0.3);
  767. z-index:-1;
  768. background-image: url('../../assets/jinzhi_1.png');
  769. background-size: 50% 50%;
  770. background-position: 50% 50%;
  771. background-repeat: no-repeat;
  772. z-index: 99;
  773. }
  774. .occupy-status {
  775. //pointer-events: none;
  776. }
  777. /** 锁定被选择 */
  778. .occupy-status-select {
  779. border: 5px solid #ff182f !important;
  780. }
  781. /** 订单待支付锁定 */
  782. .order-occupy-status {
  783. }
  784. .order-occupy-status:after{
  785. content:"";
  786. display:block;
  787. position:absolute;
  788. top:0;
  789. left:0;
  790. width:100%;
  791. height:100%;
  792. background-color:rgba(0,0,0,0.3);
  793. z-index:-1;
  794. background-image: url('../../assets/jinzhi.png');
  795. background-size: 50% 50%;
  796. background-position: 50% 50%;
  797. background-repeat: no-repeat;
  798. z-index: 99;
  799. }
  800. .occupy-status-no {
  801. background-color: #f56c6c !important;
  802. user-select: none;
  803. // pointer-events: none;
  804. cursor: not-allowed !important;
  805. position: relative;
  806. }
  807. .occupy-status-no:after{
  808. content:"";
  809. display:block;
  810. position:absolute;
  811. top:0;
  812. left:0;
  813. width:100%;
  814. height:100%;
  815. background-color:rgba(0,0,0,0.3);
  816. z-index:-1;
  817. background-image: url('../../assets/jinzhi_1.png');
  818. background-size: 50% 50%;
  819. background-position: 50% 50%;
  820. background-repeat: no-repeat;
  821. z-index: 99;
  822. }
  823. .seat-item-class-box {
  824. width: 100%;
  825. display: flex;
  826. flex-wrap: nowrap;
  827. justify-content: center;
  828. margin: auto 0;
  829. text-align: center;
  830. }
  831. .seat-item-class{
  832. flex-shrink: 0;
  833. display: block;
  834. float: left;
  835. width: 60px;
  836. height: 60px;
  837. margin: 5px;
  838. border: 1px solid #4c4d4d;
  839. border-radius: 3px;
  840. cursor: pointer;
  841. position: relative;
  842. user-select: none;
  843. // transform-origin: 50% 50%;
  844. // transform: scale(var(--scaleNum));
  845. z-index: 999;
  846. &:hover{
  847. opacity: 0.6;
  848. }
  849. .text-class{
  850. font-size: 12px;
  851. padding: 5px;
  852. line-height: 16px;
  853. margin: 0;
  854. color: #000;
  855. }
  856. }
  857. }
  858. .seat-box-class-row {
  859. display: flex !important;
  860. align-items: center;
  861. user-select: none;
  862. cursor: not-allowed !important;
  863. border: none !important;
  864. font-weight: 600;
  865. font-size: 24px;
  866. }
  867. .seat-item-class-column {
  868. display: flex !important;
  869. align-items: center;
  870. justify-content: center;
  871. user-select: none;
  872. cursor: not-allowed !important;
  873. border: none !important;
  874. font-weight: 600;
  875. font-size: 24px;
  876. }
  877. }
  878. .dialog::-webkit-scrollbar {
  879. width: 10x !important;
  880. height: 10px !important;
  881. }
  882. .dialog::-webkit-scrollbar {
  883. width: 10px;
  884. height: 10px;
  885. opacity: 0.5;
  886. }
  887. .dialog::-webkit-scrollbar-thumb {
  888. border-radius: 15px;
  889. //background-color: #0257aa;
  890. }
  891. #moveSelected{
  892. position:absolute;
  893. background-color: blue;
  894. opacity:0.3;
  895. border:1px dashed #d9d9d9;
  896. top:0;
  897. left:0;
  898. }
  899. </style>