ticketingSales.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
  1. <template>
  2. <div class="app-container app-container-me">
  3. <el-form
  4. :model="queryParams"
  5. ref="queryForm"
  6. size="small"
  7. :inline="true"
  8. :rules="rules"
  9. label-width="80px">
  10. <el-form-item label="演出厅" prop="auditoriumId">
  11. <el-select
  12. v-model="queryParams.auditoriumId"
  13. placeholder="演出厅"
  14. clearable
  15. style="width: 100%"
  16. @change="changeTime($event,'auditoriumId')"
  17. >
  18. <el-option
  19. v-for="dict in merchantTheatreAuditoriumListS"
  20. :key="dict.id"
  21. :label="dict.name"
  22. :value="dict.id"
  23. />
  24. </el-select>
  25. </el-form-item>
  26. <el-form-item label="演出时间" prop="performDate">
  27. <el-date-picker
  28. type="date"
  29. placeholder="选择演出时间"
  30. v-model="queryParams.performDate"
  31. @change="changeTime($event,'performDate')"
  32. value-format="yyyy-MM-dd"
  33. ></el-date-picker>
  34. </el-form-item>
  35. <el-form-item label="场次" prop="timeId">
  36. <el-select
  37. v-model="queryParams.timeId"
  38. placeholder="场次"
  39. clearable
  40. style="width: 100%"
  41. @change="changeTime($event,'timeId')"
  42. >
  43. <el-option
  44. v-for="dict in merchantPerformTimeListS"
  45. :key="dict.id"
  46. :label="dict.timeSnapshot+'('+dict.performTimeStart+'-'+dict.performTimeEnd+')'"
  47. :value="dict.id"
  48. />
  49. </el-select>
  50. </el-form-item>
  51. <el-form-item label="票务类型" prop="goodsId">
  52. <el-select
  53. v-model="queryParams.goodsId"
  54. placeholder="票务类型"
  55. clearable
  56. style="width: 100%"
  57. @change="changeTime($event,'goodsId')"
  58. >
  59. <el-option
  60. v-for="dict in goodsPageListS"
  61. :key="dict.id"
  62. :label="dict.goodsName"
  63. :value="dict.id"
  64. :disabled="dict.status==1 || dict.goodsPerform.channelWindow != 0"
  65. />
  66. </el-select>
  67. </el-form-item>
  68. <el-form-item>
  69. <el-button :loading="loading" type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  70. <el-button :loading="loading" icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  71. </el-form-item>
  72. </el-form>
  73. <div class="seat-tool-box">
  74. <span class="demonstration">座位大小</span>
  75. <div>
  76. <el-slider v-model="scaleNum" :min="30" :max="100"></el-slider>
  77. </div>
  78. </div>
  79. <div class="seat-box" :style="{'--scaleNum': scaleNum/100}">
  80. <!-- 选择座位 -->
  81. <div class="seat-list-box" v-loading="loading">
  82. <!-- 座位排版 -->
  83. <div id="seatbox-me" ref="seatbox" class="dialog">
  84. <div class="dialog-box" :style="{width: width*(scaleNum/100) + 'px', margin: justifyContent ? 'auto' : 'unset'}">
  85. <div
  86. style="width: 100%;position: absolute;"
  87. class="seat-box-class clearfix" v-if="seatMapList"
  88. >
  89. <div
  90. class="seat-item-class-box"
  91. v-for="(item1, index1) in seatMapListKey"
  92. :key="item1.key"
  93. >
  94. <div
  95. class="seat-item-class"
  96. :class="item.occupyStatus==0?'occupy-status': item.occupyStatus==1?'occupy-status-no':item.isDisabled || item.status != 1 ? 'disabled-class' : item.isSelect ? 'select-class' : ''"
  97. v-for="(item, index) in seatMapList[item1.key]"
  98. :style="{backgroundColor: item.color ? item.color : 'none'}"
  99. @click.stop="seatClick(item)"
  100. :key="index">
  101. <p class="text-class">{{ item.status != 1 ? '不可售':(item.name ? item.name : '暂未命名') }}</p>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. <div style="margin-top: 5px; margin-left: 30px;display: flex;">
  108. <div style="flex-shrink: 0;">
  109. 已勾选:{{ seatSelectList.length }}个座位
  110. </div>
  111. <div style="width: 100%;display: flex;justify-content: center;height: 30px;">
  112. <el-button size="mini" type="warning" :loading="lockOrUnLockLoading" @click="lockOrUnLockFun(seatSelectList,0)">锁定</el-button>
  113. <el-button size="mini" type="primary" @click="increaseViewersFun">预约</el-button>
  114. </div>
  115. </div>
  116. </div>
  117. <div class="seat-select-box">
  118. <div class="seat-select-box-top">
  119. <el-tabs v-model="activeName" @tab-click="handleClickTab">
  120. <el-tab-pane label="已选座位" name="first"></el-tab-pane>
  121. <!-- <el-tab-pane label="座位图例" name="second"></el-tab-pane> -->
  122. </el-tabs>
  123. </div>
  124. <div class="seat-select-info" v-if="activeName=='first'">
  125. <div
  126. class="seat-select-item"
  127. :key="index"
  128. v-for="(item,index) in seatSelectList">
  129. <div>
  130. <span>{{item.name ? item.name : '暂未命名'}}</span>
  131. <span>{{ setSeatTypeShow(item.seatTypeId) }}</span>
  132. </div>
  133. <div>
  134. <span @click="delSeatSelect(item)">删除</span>
  135. </div>
  136. </div>
  137. </div>
  138. <div class="seat-select-info" v-if="activeName=='second'">
  139. <div
  140. class="seat-select-color-item"
  141. :key="index"
  142. v-for="(item,index) in seatTypeList">
  143. <span :style="{backgroundColor: item.color?item.color:'none'}"></span>
  144. <span>{{item.name ? item.name : '暂未命名'}}</span>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. <!-- 添加观影人 -->
  150. <increaseViewers ref="increaseViewers" @clearDialogVisible="clearDialogVisible" />
  151. </div>
  152. </template>
  153. <script>
  154. import {
  155. querySeatList,
  156. merchantPerformTimeList,
  157. lockOrUnLock,
  158. merchantTheatreAuditoriumList,
  159. goodsPageList,
  160. } from '@/api/windowTicketSales/ticketingSales'
  161. import increaseViewers from "./model/increaseViewers"
  162. import moment from "moment"
  163. import { pageList as getSeatType } from '@/api/seatTypeMr/seatTypeMr'
  164. export default {
  165. name: "TicketingSales1",
  166. components: {
  167. increaseViewers
  168. },
  169. data() {
  170. return {
  171. // 遮罩层
  172. loading: false,
  173. // 查询参数
  174. queryParams: {
  175. timeId: '',
  176. performDate: null,
  177. auditoriumId: null,
  178. goodsId: null,
  179. },
  180. rules: {
  181. auditoriumId: [
  182. { required: true, message: '请选择选择演出厅', trigger: ['blur','change'] }
  183. ],
  184. performDate: [
  185. { required: true, message: '请选择时间', trigger: ['blur','change'] }
  186. ],
  187. timeId: [
  188. { required: true, message: '请选择场次', trigger: ['blur','change'] }
  189. ],
  190. goodsId: [
  191. { required: true, message: '请选择票务类型', trigger: ['blur','change'] }
  192. ],
  193. },
  194. merchantTheatreAuditoriumListS: [], // 演出厅
  195. merchantPerformTimeListS: [], // 场次
  196. querySeatListS: [], // 座位
  197. goodsPageListS: [], // 票务
  198. goodsPageListSAll: [], // 票务全部
  199. setList: [],
  200. seatMapList: [],
  201. seatMapListKey: [], // key
  202. seatSelectList: [],
  203. lockOrUnLockLoading: false,
  204. performId: '',// 剧目ID
  205. scaleNum: 30,
  206. width: 0,
  207. justifyContent: false,
  208. activeName: 'first',
  209. seatTypeList: [],
  210. };
  211. },
  212. created() {
  213. this.merchantTheatreAuditoriumListFun()
  214. this.goodsPageListFun()
  215. this.getSeatTypeList()
  216. },
  217. mounted() {
  218. this.$set(this.queryParams,'performDate',moment().format("yyyy-MM-DD"))
  219. },
  220. methods: {
  221. moment,
  222. /** 票务信息 */
  223. async goodsPageListFun(){
  224. try {
  225. let res = await goodsPageList({
  226. pageNum: 1,
  227. pageSize: 999,
  228. classifyId: 1,
  229. goodsType: 2,
  230. })
  231. if(res.code == 200){
  232. this.goodsPageListSAll = res.data.rows
  233. // let list = []
  234. // res.data.rows.forEach((item,index)=>{
  235. // if(item.status != 1) {
  236. // list.push(item)
  237. // }
  238. // })
  239. // this.goodsPageListS = list
  240. }
  241. } catch (error) {
  242. }
  243. },
  244. /** 获取演出厅 */
  245. async merchantTheatreAuditoriumListFun(){
  246. try {
  247. let res = await merchantTheatreAuditoriumList({
  248. pageNum: 1,
  249. pageSize: 999
  250. })
  251. if(res.code == 200){
  252. this.merchantTheatreAuditoriumListS = res.data.rows
  253. }
  254. } catch (error) {
  255. }
  256. },
  257. /** 获取场次 */
  258. async merchantPerformTimeListFun(){
  259. try {
  260. let res = await merchantPerformTimeList({
  261. ...this.queryParams
  262. })
  263. if(res.code == 200){
  264. this.merchantPerformTimeListS = res.data.rows
  265. }
  266. } catch (error) {
  267. }
  268. },
  269. /** 座位锁定/解锁 */
  270. async lockOrUnLockFun(listS,type){
  271. try {
  272. this.lockOrUnLockLoading = true
  273. let list = []
  274. listS.forEach((item,index)=>{
  275. list.push({
  276. "auditoriumId": this.queryParams.auditoriumId,
  277. "seatId": item.id,
  278. "timeId": this.queryParams.timeId
  279. })
  280. })
  281. let res = await lockOrUnLock({
  282. type: type,
  283. seatList: list
  284. })
  285. this.lockOrUnLockLoading = false
  286. if(res.code) {
  287. this.$message({
  288. showClose: true,
  289. message: res.msg,
  290. type: 'success'
  291. });
  292. this.querySeatListFun(true)
  293. }
  294. } catch (error) {
  295. this.lockOrUnLockLoading = false
  296. this.$message({
  297. showClose: true,
  298. message: "操作失败!!!",
  299. type: 'error'
  300. });
  301. console.error('error===',error)
  302. }
  303. },
  304. /** 获取座位 */
  305. async querySeatListFun(type){
  306. try {
  307. this.loading = true
  308. this.performId = ''
  309. if(type) { // 是否清除已选
  310. this.seatSelectList = []
  311. }
  312. this.seatMapList = {}
  313. this.seatList = []
  314. let res = await querySeatList({
  315. ...this.queryParams
  316. })
  317. if(res.code == 200){
  318. this.querySeatListS = res.data;
  319. this.setList = res.data;
  320. if(this.setList && this.setList.length > 0) {
  321. this.setSeatMapList(this.setList);
  322. }
  323. }
  324. this.loading = false
  325. } catch (error) {
  326. this.loading = false
  327. console.error("error===",error)
  328. }
  329. },
  330. // 设置座位集合
  331. setSeatMapList(list) {
  332. if(list && list.length > 0) {
  333. let listCopy = {}
  334. let lisyCopy1 = {}
  335. list.forEach(item => {
  336. item.isDisabled = (item.occupyStatus != null && (item.occupyStatus == 0 || item.occupyStatus == 1) ? true : false); // 座位是否已被选择
  337. item.isSelect = this.setIsSelect(item);
  338. if(item.rowNo){
  339. if(listCopy['my'+item.rowNo]){
  340. listCopy['my'+item.rowNo].push(item)
  341. }else {
  342. listCopy['my'+item.rowNo] = [item]
  343. }
  344. }
  345. })
  346. let width = 0
  347. let flog = 0
  348. let seatMapListKey = []
  349. Object.keys(listCopy).forEach((item)=>{
  350. if(listCopy[item].length>flog) {
  351. flog = listCopy[item].length
  352. }
  353. seatMapListKey.push({
  354. key: item,
  355. sort: Number(item.replace('my',''))
  356. })
  357. })
  358. seatMapListKey.sort((a,b)=>{
  359. return a.sort - b.sort
  360. })
  361. this.seatMapListKey = seatMapListKey
  362. console.log("seatMapListKey=====",seatMapListKey)
  363. this.width = 70*flog
  364. this.$nextTick(()=>{
  365. if(this.$refs.seatbox) {
  366. var ele = document.getElementById('seatbox-me');
  367. console.log(ele.getBoundingClientRect().width); // 100
  368. if(this.width<ele.getBoundingClientRect().width) {
  369. this.justifyContent = true
  370. }else {
  371. //this.justifyContent = false
  372. this.justifyContent = true
  373. }
  374. //this.$refs.seatbox.scrollTo(this.width/4,0)
  375. }
  376. })
  377. console.log("list====",listCopy)
  378. this.seatMapList = JSON.parse(JSON.stringify(listCopy))
  379. }
  380. },
  381. setIsSelect(item){
  382. if(!this.seatSelectList||this.seatSelectList.length==0){
  383. return false
  384. }
  385. let flog = false
  386. this.seatSelectList.forEach((item1,index1)=>{
  387. if(item.id == item1.id){
  388. flog = true
  389. }
  390. })
  391. return flog
  392. },
  393. /** 选择演出时间 */
  394. changeTime(value,type){
  395. console.log("fsdfsdf----",value,type)
  396. if(type == 'timeId') {
  397. this.$set(this.queryParams,'goodsId','')
  398. if(value) {
  399. let flog = false
  400. let list2 = []
  401. this.merchantPerformTimeListS.forEach((item,index)=>{
  402. if(item.id==value) {
  403. let list = item.goodsIds ? item.goodsIds.split(','): []
  404. list.forEach((item,index)=>{
  405. this.goodsPageListSAll.forEach((item1,index1)=>{
  406. if(item1.id == item) {
  407. flog = true
  408. list2.push({
  409. ...item1
  410. })
  411. }
  412. })
  413. })
  414. }
  415. })
  416. if(flog) {
  417. this.goodsPageListS = JSON.parse(JSON.stringify(list2))
  418. }else {
  419. this.goodsPageListS = JSON.parse(JSON.stringify(this.goodsPageListSAll))
  420. }
  421. }else {
  422. this.goodsPageListS = []
  423. }
  424. }
  425. this.changeTimeCheck(value,type)
  426. },
  427. /** 选择演出时间 */
  428. changeTimeCheck(value,type){
  429. console.log("fsdfsdf")
  430. if(this.queryParams && this.queryParams.timeId && type != 'timeId' && type != 'goodsId') {
  431. console.log('sdfsdfsdf',this.queryParams)
  432. this.$set(this.queryParams,'timeId','')
  433. this.$set(this.queryParams,'goodsId','')
  434. this.merchantPerformTimeListS = []
  435. this.goodsPageListS = []
  436. }
  437. if(this.queryParams.auditoriumId&&this.queryParams.performDate){
  438. // 获取场次
  439. this.merchantPerformTimeListFun()
  440. }
  441. this.performId = ''
  442. this.seatSelectList = []
  443. this.seatMapList = {}
  444. this.seatList = []
  445. this.handleQuery()
  446. },
  447. /** 设置 场次 对应得剧目ID */
  448. changePerformId(value){
  449. console.log("value=====",value)
  450. this.performId = ''
  451. this.merchantPerformTimeListS.forEach((item,index)=>{
  452. if(item.id == value){
  453. this.performId = item.performId
  454. }
  455. })
  456. },
  457. /** 搜索按钮操作 */
  458. handleQuery() {
  459. this.$refs.queryForm.validate((valid) => {
  460. if (valid) {
  461. this.querySeatListFun();
  462. } else {
  463. console.log('error submit!!');
  464. return false;
  465. }
  466. });
  467. },
  468. /** 重置按钮操作 */
  469. resetQuery() {
  470. this.$refs.queryForm.resetFields()
  471. this.performId = ''
  472. this.seatSelectList = []
  473. this.seatMapList = {}
  474. this.seatList = []
  475. this.handleQuery();
  476. },
  477. // 座位点击事件
  478. seatClick(row) {
  479. console.log(row)
  480. if(row.occupyStatus == 0){
  481. console.log("weqwrwerewrer")
  482. this.$confirm('此座已被锁定,请先解锁', '提示', {
  483. confirmButtonText: '确定',
  484. cancelButtonText: '取消',
  485. type: 'warning'
  486. }).then(() => {
  487. this.lockOrUnLockFun([row],1)
  488. }).catch((error) => {
  489. console.log("error====",error)
  490. });
  491. }else if(row.isDisabled || row.status == 2){
  492. return false
  493. }else {
  494. let flog = false;
  495. this.seatSelectList.forEach((item,index)=>{
  496. if(item.seatTypeId != row.seatTypeId ) {
  497. flog = true
  498. }
  499. })
  500. if(flog){
  501. this.$message.error('只能选同一类型得座位');
  502. return
  503. }
  504. row.isSelect = !row.isSelect
  505. if(row.isSelect){
  506. this.seatSelectList.push(JSON.parse(JSON.stringify(row)))
  507. }else {
  508. let list = JSON.parse(JSON.stringify(this.seatSelectList))
  509. list.forEach((item,index)=>{
  510. if(item.id == row.id) {
  511. this.seatSelectList.splice(index, 1)
  512. }
  513. })
  514. }
  515. this.$forceUpdate()
  516. }
  517. },
  518. /** 删除已选座位 */
  519. delSeatSelect(row){
  520. row.isSelect = !row.isSelect
  521. if(row.isSelect){
  522. this.seatSelectList.push(JSON.parse(JSON.stringify(row)))
  523. }else {
  524. let list = JSON.parse(JSON.stringify(this.seatSelectList))
  525. list.forEach((item,index)=>{
  526. if(item.id == row.id) {
  527. this.seatSelectList.splice(index, 1)
  528. }
  529. })
  530. }
  531. Object.keys(this.seatMapList).forEach((item1,index)=>{
  532. this.seatMapList[item1].forEach((item,index)=>{
  533. if(item.id == row.id) {
  534. item.isSelect = !item.isSelect
  535. }
  536. })
  537. })
  538. this.$forceUpdate()
  539. },
  540. increaseViewersFun(){
  541. if(this.seatSelectList.length>0){
  542. this.changePerformId(this.queryParams.timeId)
  543. this.$refs.increaseViewers.initData(this.seatSelectList,{
  544. ...this.queryParams,
  545. performId:this.performId
  546. })
  547. }else {
  548. this.$alert('请先选择座位!!!', '提示', {
  549. confirmButtonText: '确定',
  550. callback: action => {
  551. }
  552. });
  553. }
  554. },
  555. /** 弹窗关闭 */
  556. clearDialogVisible(){
  557. //this.
  558. this.querySeatListFun(true)
  559. },
  560. /** 选择tab */
  561. handleClickTab(){
  562. },
  563. /** 获取座位类型 说明 */
  564. getSeatTypeList() {
  565. getSeatType({
  566. pageNum: 1,
  567. pageSize: 999,
  568. })
  569. .then(response => {
  570. this.seatTypeList = response.data.rows;
  571. }
  572. );
  573. },
  574. /** 显示座位类型 */
  575. setSeatTypeShow(value){
  576. let srt = ''
  577. this.seatTypeList.forEach((item,index)=>{
  578. if(value == item.id) {
  579. srt = item.name
  580. }
  581. })
  582. return srt
  583. },
  584. }
  585. };
  586. </script>
  587. <style lang="scss" scoped>
  588. .app-container-me {
  589. width: 100%;
  590. height: calc( 100vh - 120px );
  591. }
  592. .seat-tool-box {
  593. height: 20px;
  594. box-sizing: border-box;
  595. display: flex;
  596. align-items: center;
  597. span{
  598. flex-shrink: 0;
  599. font-size: 12px;
  600. }
  601. >div {
  602. width: 100px;
  603. margin-left: 10px;
  604. }
  605. }
  606. .seat-box {
  607. width: 100%;
  608. height: calc( 100% - 100px ) ;
  609. box-sizing: border-box;
  610. display: flex;
  611. position: relative;
  612. .seat-list-box {
  613. width: calc(100% - 210px);
  614. //width: 100%;
  615. height: 100%;
  616. box-sizing: border-box;
  617. position: relative;
  618. }
  619. .seat-select-box {
  620. width: 200px;
  621. height: 100%;
  622. flex-shrink: 0;
  623. box-sizing: border-box;
  624. padding: 0 5px;
  625. margin-left: 10px;
  626. border: 1px solid #ccc;
  627. border-radius: 10px;
  628. .seat-select-info {
  629. width: 100%;
  630. height: calc( 100% - 60px );
  631. overflow: hidden;
  632. overflow-y: auto;
  633. .seat-select-item {
  634. border: 1px solid #ccc;
  635. margin-bottom: 5px;
  636. padding: 5px;
  637. border-radius: 5px;
  638. display: flex;
  639. justify-content: space-between;
  640. align-items: center;
  641. font-size: 12px;
  642. >div:first-child {
  643. display: flex;
  644. flex-direction: column;
  645. span:first-child {
  646. font-weight: 600;
  647. }
  648. }
  649. >div:last-child {
  650. span:first-child {
  651. color: #f56c6c;
  652. cursor: pointer;
  653. }
  654. }
  655. }
  656. .seat-select-color-item {
  657. display: flex;
  658. align-items: center;
  659. margin-bottom: 5px;
  660. >span:first-child {
  661. width: 20px;
  662. height: 20px;
  663. flex-shrink: 0;
  664. }
  665. >span:last-child {
  666. font-size: 16px;
  667. font-weight: 600;
  668. margin-left: 10px;
  669. }
  670. }
  671. }
  672. }
  673. }
  674. .seat-list-box::before {
  675. content: "舞台";
  676. position: absolute;
  677. left: 50%;
  678. transform: translateX(-50%);
  679. width: 300px;
  680. height: 30px;
  681. background-color: rgb(204, 204, 204,0.5);
  682. font-size: 18px;
  683. font-weight: 600;
  684. display: flex;
  685. align-items: center;
  686. justify-content: center;
  687. border-radius: 0 0 20px 20px;
  688. z-index: 99;
  689. }
  690. .dialog {
  691. padding: 30px 10px 10px;
  692. width: 100%;
  693. height: 100%;
  694. box-sizing: border-box;
  695. overflow: auto;
  696. border-radius: 10px;
  697. border: 1px solid #323333;
  698. .dialog-box {
  699. position: relative;
  700. }
  701. .upload-btn {
  702. width: 100px;
  703. height: 100px;
  704. background-color: #fbfdff;
  705. border: dashed 1px #c0ccda;
  706. border-radius: 5px;
  707. i {
  708. font-size: 30px;
  709. margin-top: 20px;
  710. }
  711. &-text {
  712. margin-top: -10px;
  713. }
  714. }
  715. .avatar {
  716. cursor: pointer;
  717. }
  718. .title-class{
  719. font-size: 16px;
  720. font-weight: bold;
  721. color: black;
  722. margin-bottom: 20px;
  723. margin-top: 20px;
  724. }
  725. .item-class{
  726. margin-bottom: 20px;
  727. }
  728. .seat-box-class{
  729. padding: 5px;
  730. transform-origin: 50% 0;
  731. transform: scale(var(--scaleNum));
  732. box-sizing: border-box;
  733. .disabled-class{
  734. background-color: #aaabad;
  735. user-select: none;
  736. // pointer-events: none;
  737. cursor: not-allowed !important;
  738. }
  739. .select-class{
  740. //background-color: #e85353 !important;
  741. border: 5px solid #1890ff !important;
  742. // color: #eceaea !important;
  743. position: relative;
  744. }
  745. .occupy-status:after{
  746. content:"";
  747. display:block;
  748. position:absolute;
  749. top:0;
  750. left:0;
  751. width:100%;
  752. height:100%;
  753. background-color:rgba(0,0,0,0.3);
  754. z-index:-1;
  755. background-image: url('../../assets/jinzhi.png');
  756. background-size: 50% 50%;
  757. background-position: 50% 50%;
  758. background-repeat: no-repeat;
  759. z-index: 99;
  760. }
  761. .occupy-status {
  762. //pointer-events: none;
  763. }
  764. .occupy-status-no {
  765. background-color: #f56c6c !important;
  766. user-select: none;
  767. // pointer-events: none;
  768. cursor: not-allowed !important;
  769. }
  770. .seat-item-class-box {
  771. width: 100%;
  772. display: flex;
  773. flex-wrap: nowrap;
  774. justify-content: center;
  775. margin: auto 0;
  776. text-align: center;
  777. }
  778. .seat-item-class{
  779. flex-shrink: 0;
  780. display: block;
  781. float: left;
  782. width: 60px;
  783. height: 60px;
  784. margin: 5px;
  785. border: 1px solid #4c4d4d;
  786. border-radius: 3px;
  787. cursor: pointer;
  788. position: relative;
  789. user-select: none;
  790. // transform-origin: 50% 50%;
  791. // transform: scale(var(--scaleNum));
  792. &:hover{
  793. opacity: 0.6;
  794. }
  795. .text-class{
  796. font-size: 12px;
  797. padding: 5px;
  798. line-height: 16px;
  799. margin: 0;
  800. color: #000;
  801. }
  802. }
  803. }
  804. }
  805. </style>