index.vue 27 KB

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