ticketingSales.vue 29 KB

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