| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959 | 
							- <!--
 
-  * @Description: 详情弹框
 
-  * @Author: Sugar.
 
-  * @Date: 2023-11-24 13:55:00
 
-  * @LastEditors: Sugar.
 
-  * @LastEditTime: 2023-11-24 13:55:00
 
-  * @FilePath: \cattle_webui\src\views\team\applicationMr\applicationDetails.vue
 
-  * @Copyright: Copyright (c) 2016~2023 by Sugar., All Rights Reserved.
 
- -->
 
- <template>
 
-   <el-dialog
 
-     :title="title"
 
-     :visible.sync="open"
 
-     :width="detailsType?'95%':'800px'"
 
-     append-to-body
 
-     :close-on-click-modal="false"
 
-     @close="cancel"
 
-   >
 
-     <div v-loading="initLoading" class="dialog dialog-bbb" :style="{'--widdd': detailsType?'500px':'100%'}" v-if="form">
 
-       <div>
 
-         <!--   基础信息   -->
 
-         <div class="title-class" style="margin-top: 0">基础信息</div>
 
-         <el-row>
 
-           <el-col :span="12">
 
-             <div class="grid-content bg-purple item-class">团队名称: <span>{{ details.teamName || ''}}</span></div>
 
-           </el-col>
 
-           <el-col :span="12">
 
-             <div class="grid-content bg-purple item-class">团队类型: <span><dict-tag style="display: inline-block" :options="dict.type.team_type" :value="details.teamType"/></span></div>
 
-           </el-col>
 
-           <el-col :span="12">
 
-             <div class="grid-content bg-purple item-class">预约场馆: <span>{{ details.theatreName || '' }}</span></div>
 
-           </el-col>
 
-           <el-col :span="12">
 
-             <div class="grid-content bg-purple item-class">预约演出厅: <span>{{ details.auditoriumName || '' }}</span></div>
 
-           </el-col>
 
-           <el-col :span="12">
 
-             <div class="grid-content bg-purple item-class">预约剧目: <span>{{ details.performName || '' }}</span></div>
 
-           </el-col>
 
-           <el-col :span="12">
 
-             <div class="grid-content bg-purple item-class">票务名称: <span>{{ details.goodsName || '' }}</span></div>
 
-           </el-col>
 
-           <el-col :span="12">
 
-             <div class="grid-content bg-purple item-class">座位类型: <span>{{ details.seatTypeName || '' }}</span></div>
 
-           </el-col>
 
-           <el-col :span="12">
 
-             <div class="grid-content bg-purple item-class">团购单价: <span>¥{{ details.price || '' }}</span></div>
 
-           </el-col>
 
-           <el-col :span="12">
 
-             <div class="grid-content bg-purple item-class">预约时间: <span>{{ details.performDate || '' }}日 {{ details.performTimeStart +'  --' || '' }} {{ details.performTimeEnd || '' }}</span></div>
 
-           </el-col>
 
-           <el-col :span="12">
 
-             <div class="grid-content bg-purple item-class">报名时间: <span>{{ details.createTime || '' }}</span></div>
 
-           </el-col>
 
-           <el-col :span="12">
 
-             <div class="grid-content bg-purple item-class">负责人: <span>{{ details.teamContact || '' }}</span></div>
 
-           </el-col>
 
-           <el-col :span="12">
 
-             <div class="grid-content bg-purple item-class">联系电话: <span>{{ details.teamMobile || '' }}</span></div>
 
-           </el-col>
 
-           <el-col :span="12" v-if="details.errReason">
 
-             <div class="grid-content bg-purple item-class">驳回原因: <span style="color: red;">{{ details.errReason || '' }}</span></div>
 
-           </el-col>
 
-         </el-row>
 
-         <!--   观影人员信息   -->
 
-         <div class="title-class">观影人员信息</div>
 
-         <el-row>
 
-           <el-col :span="24">
 
-             <el-table size="mini" ref="tables" :data="details.viewersList" border>
 
-               <el-table-column label="序号" align="center" type="index" width="60"></el-table-column>
 
-               <el-table-column label="姓名" align="center" prop="name" />
 
-               <el-table-column label="身份证号码" align="center" prop="cardId" />
 
-             </el-table>
 
-           </el-col>
 
-         </el-row>
 
-       </div>
 
-       <div class="dialog-bbb_2" v-if="detailsType">
 
-         <div class="seat-tool-box">
 
-           <span class="demonstration">座位大小</span>
 
-           <div class="seat-tool-box-slider">
 
-               <el-slider v-model="scaleNum" :min="30" :max="100"></el-slider>
 
-           </div>
 
-           <div style="display: flex;margin-left: 20px;" v-if="seatMapList&&JSON.stringify(seatMapList) != '{}'">
 
-               <div>座位余量:</div>
 
-               <div
 
-               :key="index" 
 
-               v-for="(item,index) in seatTypeList"
 
-               style="margin-left: 10px;align-items: center;"
 
-               >
 
-                   <span :style="{color: item.color?item.color:'none'}">{{item.name ? (item.name+'(剩余:'+ (item.num||0) +')') : '暂未命名'}}</span>
 
-               </div>
 
-           </div>
 
-         </div>
 
-         <div class="seat-box" :style="{'--scaleNum': scaleNum/100}">
 
-           <!-- 选择座位  -->
 
-           <div class="seat-list-box">
 
-               <!--  座位排版  -->
 
-               <div  id="seatbox-me" ref="seatbox" class="dialogss">
 
-                   <div class="dialogss-box" :style="{width: width*(scaleNum/100) + 'px', margin: justifyContent ? 'auto' : 'unset'}">
 
-                       <div 
 
-                       style="width: 100%;position: absolute;"
 
-                       class="seat-box-class clearfix" v-if="seatMapList"
 
-                       >
 
-                               <div
 
-                             
 
-                               class="seat-item-class-box" 
 
-                               v-for="(item1, index1) in seatMapListKey" 
 
-                               :key="item1.key"
 
-                               >
 
-                                   <div 
 
-                                   class="seat-item-class" 
 
-                                   :class="setSeatClass(item)"
 
-                                   v-for="(item, index) in seatMapList[item1.key]" 
 
-                                   :style="{backgroundColor: item.color ? item.color : 'none'}"
 
-                                   @click.stop="seatClick(item)" 
 
-                                   :key="index">
 
-                                       <p class="text-class">{{ item.status != 1 ? '不可售':(item.name ? item.name : '暂未命名') }}</p>
 
-                                   </div>
 
-                               </div>
 
-                       </div>
 
-                   </div>
 
-                   
 
-               </div>
 
-               <div style="margin-top: 5px; margin-left: 30px;display: flex;">
 
-                   <div style="flex-shrink: 0;">
 
-                       已勾选:{{ seatSelectList.length }}个座位
 
-                   </div>
 
-               </div>
 
-           </div>
 
-         </div>
 
-       </div>
 
-     </div>
 
-     <span slot="footer" class="dialog-footer" v-if="!detailsType">
 
-       <el-button type="primary" @click="cancel">关闭</el-button>
 
-     </span>
 
-     <span slot="footer" class="dialog-footer" v-if="detailsType">
 
-       <!-- <el-button type="primary" @click="passOpenEven" style="margin-right: 20px">通过</el-button> -->
 
-       <el-button
 
-         type="primary"
 
-         @click="submitPass"
 
-         :loading="loading"
 
-       >
 
-         <span v-if="loading">提交中...</span>
 
-         <span v-else>通过</span>
 
-       </el-button>
 
-       <el-button type="danger" @click="setRejectOpen" >驳回</el-button>
 
-     </span>
 
-     <!--  审核驳回  -->
 
-     <el-dialog
 
-       title="审核驳回"
 
-       :visible.sync="rejectOpen"
 
-       width="700px"
 
-       append-to-body
 
-       :close-on-click-modal="false"
 
-       @close="rejectOpen = false"
 
-     >
 
-       <div class="dialog">
 
-         <el-form :model="rejectForm" ref="refRejectForm" :rules="rejectRules" label-width="90px">
 
-           <el-form-item label="驳回原因:" prop="errReason">
 
-             <el-input
 
-               type="textarea"
 
-               placeholder="请输入驳回原因"
 
-               v-model="rejectForm.errReason"
 
-               maxlength="300"
 
-               show-word-limit
 
-             >
 
-             </el-input>
 
-           </el-form-item>
 
-         </el-form>
 
-       </div>
 
-       <span slot="footer" class="dialog-footer">
 
-       <el-button @click="rejectOpen = false">取消</el-button>
 
-       <el-button
 
-         type="primary"
 
-         @click="submitForm"
 
-         v-loading.fullscreen.lock="loading"
 
-         element-loading-text="提交中..."
 
-         element-loading-spinner="el-icon-loading"
 
-         element-loading-background="rgba(0, 0, 0, 0.8)"
 
-       >
 
-         <span v-if="loading">提交中...</span>
 
-         <span v-else>保存</span>
 
-       </el-button>
 
-     </span>
 
-     </el-dialog>
 
-     <!--  审核通过  -->
 
-     <el-dialog
 
-       title="选择座位"
 
-       :visible.sync="passOpen"
 
-       width="910px"
 
-       append-to-body
 
-       :close-on-click-modal="false"
 
-       @close="passOpen = false"
 
-     >
 
-       <!--  座位排版  -->
 
-       <div class="dialog">
 
-         <div class="seat-box-class1 clearfix" v-if="seatMapList && seatMapList.length > 0">
 
-           <div class="seat-item-class" :class="item.isDisabled ? 'disabled-class' : item.isSelect ? 'select-class' : ''" v-for="(item, index) in seatMapList" @click.stop="seatClick(item)" :key="index">
 
-             <p class="text-class">{{item.name ? item.name : (item.rowNo + '排' + item.columnNo + '座')}}</p>
 
-           </div>
 
-         </div>
 
-       </div>
 
-       <div style="margin-top: 5px; margin-left: 30px">已勾选:{{ seatSelectList.length }}个座位</div>
 
-       <span slot="footer" class="dialog-footer">
 
-       <el-button @click="passOpen = false">取消</el-button>
 
-       <el-button
 
-         type="primary"
 
-         @click="submitPass"
 
-         v-loading.fullscreen.lock="passLoading"
 
-         element-loading-text="提交中..."
 
-         element-loading-spinner="el-icon-loading"
 
-         element-loading-background="rgba(0, 0, 0, 0.8)"
 
-       >
 
-         <span v-if="passLoading">提交中...</span>
 
-         <span v-else>保存</span>
 
-       </el-button>
 
-     </span>
 
-     </el-dialog>
 
-   </el-dialog>
 
- </template>
 
- <script>
 
- import { getSelectById, teamApplyAudit, querySeatList } from '@/api/team/applicationMr'
 
- import { updateStatus } from '@/api/team/ticketMr'
 
- import { pageList as getSeatType } from '@/api/seatTypeMr/seatTypeMr'
 
- export default {
 
-   name: "applicationDetails",
 
-   props: {
 
-     dict: {
 
-       type: Object,
 
-       default: () => [],
 
-     },
 
-   },
 
-   data() {
 
-     return {
 
-       title: "编辑",
 
-       model: "EDIT",
 
-       open: false,
 
-       rejectOpen: false,
 
-       passOpen: false,
 
-       initLoading: false,
 
-       loading: false,
 
-       passLoading: false,
 
-       form: {
 
-         id: undefined,
 
-       },
 
-       details: {},
 
-       performerVisible: false,
 
-       performerList: [],
 
-       refund: false,
 
-       rejectRules: {
 
-         errReason: [{ required: true, message: "请输入驳回原因", trigger: ["change","blur"] }],
 
-       },
 
-       dataList: [],
 
-       rejectForm: {
 
-         status: 2
 
-       },
 
-       detailsType: false,
 
-       //seatMapList: [], // 座位集合
 
-       applyId: '', // 申请单id
 
-       applyMap: {},
 
-       //setList: [],
 
-       seatSelectList: [],
 
-       merchantTheatreAuditoriumListS: [], // 演出厅
 
-         merchantPerformTimeListS: [], // 场次
 
-         querySeatListS: [], // 座位
 
-         goodsPageListS: [], // 票务
 
-         goodsPageListSAll: [], // 票务全部
 
-         setList: [],
 
-         seatMapList: {},
 
-         seatMapListKey: [], // key
 
-         seatSelectList: [],
 
-         lockOrUnLockLoading: false,
 
-         performId: '',// 剧目ID
 
-         scaleNum: 30,
 
-         width: 0,
 
-         justifyContent: false,
 
-         activeName: 'first',
 
-         seatTypeList: [],
 
-     };
 
-   },
 
-   created() {
 
-     this.getSeatTypeList()
 
-   },
 
-   methods: {
 
-     /**
 
-      * 打开弹框
 
-      * @date 2023-11-22
 
-      * @param {any} obj
 
-      * @returns {any}
 
-      */
 
-     openDialog(title, obj, type) {
 
-       this.initLoading = true
 
-       this.open = true;
 
-       this.rejectOpen = false;
 
-       this.passOpen = false;
 
-       this.applyId = obj.id;
 
-       this.applyMap = obj;
 
-       this.querySeatListS = [];
 
-       this.setList = [];
 
-       this.seatSelectList = [];
 
-       if(type) {
 
-         this.detailsType = true
 
-         this.title = '审核'
 
-       } else {
 
-         this.detailsType = false
 
-         this.title = '详情'
 
-       }
 
-       this.getSelectByIdApi(obj);
 
-     },
 
-     /** 获取详情 */
 
-     async getSelectByIdApi(row) {
 
-       try {
 
-         const id = row.id
 
-         let res = await getSelectById(id)
 
-         this.details = {}
 
-         this.details = res.data;
 
-         let res1 = await querySeatList({
 
-           auditoriumId: this.applyMap.auditoriumId,
 
-           //seatTypeId: this.applyMap.seatTypeId,
 
-           timeId: this.applyMap.performTimeId,
 
-         })
 
-         this.querySeatListS = res1.data;
 
-         this.setList = res1.data;
 
-         if(this.setList && this.setList.length > 0) {
 
-           this.setSeatMapListCopy(this.setList);
 
-         }
 
-         this.initLoading = false
 
-       } catch (error) {
 
-         this.initLoading = false
 
-       }
 
-       
 
-     },
 
-     /** 获取座位信息 */
 
-     getSeatApi(row) {
 
-       let map = {
 
-         auditoriumId: this.applyMap.auditoriumId,
 
-         seatTypeId: this.applyMap.seatTypeId,
 
-         timeId: this.applyMap.performTimeId,
 
-       }
 
-       querySeatList(map).then(response => {
 
-         this.setList = response.data;
 
-         if(this.setList && this.setList.length > 0) {
 
-           this.setSeatMapList(this.setList);
 
-         }
 
-       });
 
-     },
 
-     // 设置座位集合
 
-     setSeatMapList(list) {
 
-       if(list && list.length > 0) {
 
-         let listCopy = {}
 
-         list.forEach(item => {
 
-           item.isDisabled = item.status!=1||((item.occupyStatus != null && (item.occupyStatus == 0 || item.occupyStatus == 1)) ? true : false); // 座位是否已被选择
 
-           item.isSelect = false;
 
-           if(!listCopy['key_'+item.rowNo]) {
 
-             listCopy['key_'+item.rowNo] = [item]
 
-           }else {
 
-             listCopy['key_'+item.rowNo].push(item)
 
-           }
 
-           
 
-           //this.seatMapList.push(item)
 
-         })
 
-         let listCopy2 = Object.keys(listCopy)
 
-         let listCopy3 = []
 
-         listCopy2.forEach((item)=>{
 
-           listCopy3.push({
 
-             key: item,
 
-             sort: Number(item.replace('key_',''))
 
-           })
 
-         })
 
-         listCopy3.sort((a,b)=>{
 
-           return a.sort - b.sort
 
-         })
 
-         let listCopy1 = []
 
-         listCopy3.forEach((item,index)=>{
 
-           listCopy1 = listCopy1.concat(listCopy[item.key])
 
-         })
 
-         this.seatMapList = [].concat(listCopy1)
 
-       }
 
-     },
 
-     // 座位点击事件
 
-     seatClickCopy(row) {
 
-       if(row.isDisabled){
 
-         return false
 
-       }
 
-       if(this.seatSelectList.length >= this.details.viewersList.length ){
 
-         if(row.isSelect) {
 
-           let indexs = null;
 
-           this.seatSelectList.forEach((item, index) =>{
 
-             if(item.id == row.id){
 
-               indexs = index;
 
-             }
 
-           })
 
-           if(indexs != null) {
 
-             row.isSelect = !row.isSelect;
 
-             this.seatSelectList.splice(indexs, 1)
 
-           }
 
-         } else {
 
-           this.$message.error("观影人数限制" + this.details.viewersList.length + "人!");
 
-         }
 
-         return false
 
-       }
 
-       row.isSelect = !row.isSelect
 
-       this.seatSelectList.push(JSON.parse(JSON.stringify(row)))
 
-       //this.seatSelectList = this.setList.filter(item => item.isSelect);
 
-       console.log("this.seatSelectList===",this.seatSelectList)
 
-       this.$forceUpdate()
 
-     },
 
-     seatClick(row) {
 
-             console.log(row)
 
-             if(row.occupyStatus == 0){
 
-                 console.log("weqwrwerewrer")
 
-                 this.$confirm('此座已被锁定,请先解锁', '提示', {
 
-                     confirmButtonText: '关闭',
 
-                     cancelButtonText: '取消',
 
-                     type: 'warning'
 
-                 }).then(() => {
 
-                     //this.lockOrUnLockFun([row],1)
 
-                 }).catch((error) => {
 
-                     console.log("error====",error)
 
-                 });
 
-             }else if(row.isDisabled || row.status == 2){
 
-                 return false
 
-             }else {
 
-                 if(this.applyMap.seatTypeId != row.seatTypeId){
 
-                     this.$message.error('只能选同一类型得座位');
 
-                     return
 
-                 }
 
-                 if(this.seatSelectList.length >= this.details.viewersList.length ){
 
-                   if(row.isSelect) {
 
-                     let indexs = null;
 
-                     this.seatSelectList.forEach((item, index) =>{
 
-                       if(item.id == row.id){
 
-                         indexs = index;
 
-                       }
 
-                     })
 
-                     if(indexs != null) {
 
-                       row.isSelect = !row.isSelect;
 
-                       this.seatSelectList.splice(indexs, 1)
 
-                     }
 
-                   } else {
 
-                     this.$message.error("观影人数限制" + this.details.viewersList.length + "人!");
 
-                   }
 
-                   return false
 
-                 }
 
-                 row.isSelect = !row.isSelect
 
-                 this.seatSelectList.push(JSON.parse(JSON.stringify(row)))
 
-                 //this.seatSelectList = this.setList.filter(item => item.isSelect);
 
-                 console.log("this.seatSelectList===",this.seatSelectList)
 
-                 this.$forceUpdate()
 
-             }
 
-             
 
-         },
 
-     // 审核通过
 
-     passOpenEven() {
 
-       this.passOpen = true;
 
-       this.seatMapList = [];
 
-       this.seatSelectList = [];
 
-       this.getSeatApi();
 
-       //this.setSeatMapList()
 
-     },
 
-     /**
 
-      * 保存
 
-      * @date 2023-11-22
 
-      * @returns {any}
 
-      */
 
-     submitForm() {
 
-       this.$refs["refRejectForm"].validate(async (valid) => {
 
-         if (valid) {
 
-           try {
 
-             this.loading = true;
 
-             setTimeout(() => {
 
-               this.loading = false;
 
-             }, 3000)
 
-             this.rejectForm.applyId = this.details.id || this.applyId;
 
-             const { code } = await teamApplyAudit({ ...this.rejectForm });
 
-             if (code === 200) {
 
-               this.loading = false;
 
-               this.rejectOpen = false;
 
-               this.$message.success("操作成功!");
 
-               this.$emit("getList");
 
-               this.cancel();
 
-             }
 
-           } catch (error) {
 
-             this.loading = false;
 
-           } finally {
 
-           }
 
-         }
 
-       });
 
-     },
 
-     // 审核通过 - 座位选择保存
 
-     submitPass() {
 
-       try {
 
-         // this.passLoading = true;
 
-         //let seatList = this.setList.filter(item => item.isSelect);
 
-         let seatList = this.seatSelectList
 
-         if(seatList && seatList.length > 0 && this.seatSelectList.length == this.details.viewersList.length ) {
 
-           this.passLoading = true;
 
-           let postMap = {
 
-             applyId: this.details.id || this.applyId,
 
-             status: 1,
 
-             seatList: seatList
 
-           }
 
-           teamApplyAudit(postMap).then((res) => {
 
-             this.passLoading = false;
 
-             if (res.code == 200) {
 
-               this.$message.success("操作成功!");
 
-               this.passOpen = false;
 
-               this.$emit("getList");
 
-               this.cancel();
 
-             }
 
-           });
 
-         } else {
 
-           this.$message.error("请选择座位!");
 
-         }
 
-       } catch (error) {
 
-         this.passLoading = false;
 
-       } finally {
 
-       }
 
-     },
 
-     /**
 
-      * 关闭弹框
 
-      * @date 2023-11-22
 
-      * @returns {any}
 
-      */
 
-     cancel() {
 
-       this.open = false;
 
-     },
 
-     setRejectOpen() {
 
-       this.rejectOpen = true
 
-       this.$set(this.rejectForm,'errReason','')
 
-       this.$nextTick(()=>{
 
-         this.$refs.refRejectForm.clearValidate('errReason')
 
-       })
 
-     },
 
-     // 设置座位集合
 
-     setSeatMapListCopy(list) {
 
-             if(list && list.length > 0) {
 
-                 let listCopy = {}
 
-                 let lisyCopy1 = {}
 
-                 let listNum = JSON.parse(JSON.stringify(this.seatTypeList))
 
-                 listNum.forEach((item,index)=>{
 
-                     listNum[index]['num'] = 0 
 
-                 })
 
-                 list.forEach(item => {
 
-                     item.isDisabled = (item.occupyStatus != null && (item.occupyStatus == 0 || item.occupyStatus == 1) ? true : false); // 座位是否已被选择
 
-                     item.isSelect = this.setIsSelect(item);
 
-                     if(item.rowNo){
 
-                         listNum.forEach((item1,index)=>{
 
-                             if(item1.id == item.seatTypeId && item.status ==1 && !item.occupyStatus) {
 
-                                 listNum[index]['num'] = listNum[index]['num'] + 1 
 
-                             }
 
-                         })
 
-                         if(listCopy['my'+item.rowNo]){
 
-                             listCopy['my'+item.rowNo].push(item)
 
-                         }else {
 
-                             listCopy['my'+item.rowNo] = [item] 
 
-                         }
 
-                     }
 
-                 })
 
-                 this.seatTypeList = JSON.parse(JSON.stringify(listNum))
 
-                 let width = 0
 
-                 let flog = 0
 
-                 let seatMapListKey = []
 
-                 Object.keys(listCopy).forEach((item)=>{
 
-                     if(listCopy[item].length>flog) {
 
-                         flog = listCopy[item].length
 
-                     }
 
-                     seatMapListKey.push({
 
-                         key: item,
 
-                         sort: Number(item.replace('my',''))
 
-                     })
 
-                 })
 
-                 seatMapListKey.sort((a,b)=>{
 
-                     return a.sort - b.sort
 
-                 })
 
-                 this.seatMapListKey = seatMapListKey
 
-                 console.log("seatMapListKey=====",seatMapListKey)
 
-                 this.width = 70*flog
 
-                 this.$nextTick(()=>{
 
-                     if(this.$refs.seatbox) {
 
-                         var ele = document.getElementById('seatbox-me');
 
-                         console.log(ele.getBoundingClientRect().width); // 100
 
-                         if(this.width<ele.getBoundingClientRect().width) {
 
-                             this.justifyContent = true
 
-                         }else {
 
-                             //this.justifyContent = false
 
-                             this.justifyContent = true
 
-                         }
 
-                         //this.$refs.seatbox.scrollTo(this.width/4,0)
 
-                     }
 
-                 })
 
-                 
 
-                 console.log("list====",listCopy)
 
-                 this.seatMapList = JSON.parse(JSON.stringify(listCopy))
 
-             }
 
-         },
 
-         setIsSelect(item){
 
-             if(!this.seatSelectList||this.seatSelectList.length==0){
 
-                 return false
 
-             }
 
-             let flog = false
 
-             this.seatSelectList.forEach((item1,index1)=>{
 
-                 if(item.id == item1.id){
 
-                     flog = true
 
-                 }
 
-             })
 
-             return flog
 
-         },
 
-     /** 获取座位类型 说明 */
 
-     getSeatTypeList() {
 
-       getSeatType({
 
-         pageNum: 1,
 
-         pageSize: 999,
 
-       })
 
-       .then(response => {
 
-         this.seatTypeList = response.data.rows;
 
-       });
 
-     },
 
-      /** 座位状态 展示  */
 
-      setSeatClass(item){
 
-       let srt =
 
-       item.seatTypeId != this.applyMap.seatTypeId?'disabled-class':
 
-       item.occupyStatus == 0 ? 'occupy-status' : 
 
-       item.occupyStatus == 1 ? 'occupy-status-no' : 
 
-       item.isDisabled || item.status != 1 ? 'disabled-class' : 
 
-       item.isSelect ? 'select-class' : ''
 
-       console.log("srt=====",srt)
 
-       return srt
 
-     }
 
-   },
 
- };
 
- </script>
 
- <style lang="scss" scoped>
 
- .dialog {
 
-   width: 100%;
 
-   height: 70vh;
 
- }
 
- .dialog-bbb {
 
-   width: 100%;
 
-   display: flex;
 
-   
 
-   >div:first-child {
 
-     width: var(--widdd);
 
-     flex-shrink: 0;
 
-     overflow-y: auto;
 
-     padding: 0 0 10px 0;
 
-     margin-right: 10px;
 
-   }
 
-   .dialog-bbb_2 {
 
-     width: calc( 100% - var(--widdd) );
 
-     height: 100%;
 
-   }
 
- }
 
- .dialog {
 
-   .upload-btn {
 
-     width: 100px;
 
-     height: 100px;
 
-     background-color: #fbfdff;
 
-     border: dashed 1px #c0ccda;
 
-     border-radius: 5px;
 
-     i {
 
-       font-size: 30px;
 
-       margin-top: 20px;
 
-     }
 
-     &-text {
 
-       margin-top: -10px;
 
-     }
 
-   }
 
-   .avatar {
 
-     cursor: pointer;
 
-   }
 
-   .title-class{
 
-     font-size: 16px;
 
-     font-weight: bold;
 
-     color: black;
 
-     margin-bottom: 20px;
 
-     margin-top: 20px;
 
-   }
 
-   .item-class{
 
-     margin-bottom: 20px;
 
-   }
 
-   .seat-box-class1{
 
-     width: 800px;
 
-     height: auto;
 
-     padding: 5px;
 
-     border-radius: 10px;
 
-     border: 1px  solid #323333;
 
-     .disabled-class{
 
-       background-color: #aaabad;
 
-     }
 
-     .select-class{
 
-       background-color: #e85353 !important;
 
-       color: #eceaea !important;
 
-     }
 
-     .seat-item-class{
 
-       display: block;
 
-       float: left;
 
-       width: 60px;
 
-       height: 60px;
 
-       margin: 5px;
 
-       border: 1px solid #4c4d4d;
 
-       border-radius: 3px;
 
-       cursor: pointer;
 
-       position: relative;
 
-       &:hover{
 
-         opacity: 0.6;
 
-       }
 
-       .text-class{
 
-         font-size: 12px;
 
-         padding: 5px;
 
-         line-height: 16px;
 
-         margin: 0;
 
-       }
 
-     }
 
-   }
 
- }
 
- .dialog-bbb_2 {
 
-   .seat-tool-box {
 
-     height: 20px;
 
-     box-sizing: border-box;
 
-     display: flex;
 
-     align-items: center;
 
-     white-space: nowrap;
 
-     span{
 
-         flex-shrink: 0;
 
-         font-size: 12px;
 
-         white-space: nowrap;
 
-     }
 
-     .seat-tool-box-slider {
 
-         width: 100px;
 
-         margin-left: 10px;
 
-     }
 
-   }
 
-   .seat-box {
 
-     width: 100%;
 
-     height: calc( 100% - 50px );
 
-     box-sizing: border-box;
 
-     display: flex;
 
-     position: relative;
 
-     .seat-list-box {
 
-         width: 100%;
 
-         height: 100%;
 
-         box-sizing: border-box;
 
-         position: relative;
 
-     }
 
-     .seat-select-box {
 
-         width: 200px;
 
-         height: 100%;
 
-         flex-shrink: 0;
 
-         box-sizing: border-box;
 
-         padding: 0 5px;
 
-         margin-left: 10px;
 
-         border: 1px solid #ccc;
 
-         border-radius: 10px;
 
-         .seat-select-info {
 
-             width: 100%;
 
-             height: calc( 100% - 60px );
 
-             overflow: hidden;
 
-             overflow-y: auto;
 
-             .seat-select-item {
 
-                 border: 1px solid #ccc;
 
-                 margin-bottom: 5px;
 
-                 padding: 5px;
 
-                 border-radius: 5px;
 
-                 display: flex;
 
-                 justify-content: space-between;
 
-                 align-items: center;
 
-                 font-size: 12px;
 
-                 >div:first-child {
 
-                     display: flex;
 
-                     flex-direction: column;
 
-                     span:first-child {
 
-                         font-weight: 600;
 
-                     }
 
-                 }
 
-                 >div:last-child {
 
-                     span:first-child {
 
-                         color: #f56c6c;
 
-                         cursor: pointer;
 
-                     }
 
-                 }
 
-             }
 
-             .seat-select-color-item {
 
-                 display: flex;
 
-                 align-items: center;
 
-                 margin-bottom: 5px;
 
-                 >span:first-child {
 
-                     width: 20px;
 
-                     height: 20px;
 
-                     flex-shrink: 0;
 
-                 }
 
-                 >span:last-child {
 
-                     font-size: 16px;
 
-                     font-weight: 600;
 
-                     margin-left: 10px;
 
-                 }
 
-             }
 
-         }
 
-     }
 
-   }
 
-   .seat-list-box::before {
 
-     content: "舞台";
 
-     position: absolute;
 
-     left: 50%;
 
-     transform: translateX(-50%);
 
-     width: 300px;
 
-     height: 30px;
 
-     background-color: rgb(204, 204, 204,0.5);
 
-     font-size: 18px;
 
-     font-weight: 600;
 
-     display: flex;
 
-     align-items: center;
 
-     justify-content: center;
 
-     border-radius: 0 0 20px 20px;
 
-     z-index: 99;
 
-   }
 
-   .dialogss {
 
-     padding: 30px 10px 10px;
 
-     width: 100%;
 
-     height: 100%;
 
-     box-sizing: border-box;
 
-     overflow: auto;
 
-     border-radius: 10px;
 
-     border: 1px  solid #323333;
 
-     .dialogss-box {
 
-         position: relative;
 
-     }
 
-     .upload-btn {
 
-       width: 100px;
 
-       height: 100px;
 
-       background-color: #fbfdff;
 
-       border: dashed 1px #c0ccda;
 
-       border-radius: 5px;
 
-       i {
 
-         font-size: 30px;
 
-         margin-top: 20px;
 
-       }
 
-       &-text {
 
-         margin-top: -10px;
 
-       }
 
-     }
 
-     .avatar {
 
-       cursor: pointer;
 
-     }
 
-     .title-class{
 
-       font-size: 16px;
 
-       font-weight: bold;
 
-       color: black;
 
-       margin-bottom: 20px;
 
-       margin-top: 20px;
 
-     }
 
-     .item-class{
 
-       margin-bottom: 20px;
 
-     }
 
-     .seat-box-class{
 
-       padding: 5px;
 
-       transform-origin: 50% 0;
 
-       transform: scale(var(--scaleNum));
 
-       box-sizing: border-box;
 
-       .disabled-class{
 
-         background-color: #aaabad;
 
-         user-select: none;
 
-         // pointer-events: none;
 
-         cursor: not-allowed !important;
 
-       }
 
-       .select-class{
 
-         //background-color: #e85353 !important;
 
-         border: 5px solid #1890ff !important;
 
-        // color: #eceaea !important;
 
-        position: relative;
 
-       }
 
-       .occupy-status:after{
 
-         content:"";
 
-         display:block;
 
-         position:absolute;
 
-         top:0;
 
-         left:0;
 
-         width:100%;
 
-         height:100%;
 
-         background-color:rgba(0,0,0,0.3);
 
-         z-index:-1;
 
-         background-image: url('../../../../assets/jinzhi.png');
 
-         background-size: 50% 50%;
 
-         background-position: 50% 50%;
 
-         background-repeat: no-repeat;
 
-         z-index: 99;
 
-     }
 
-       .occupy-status {
 
-         //pointer-events: none;
 
-       }
 
-       .occupy-status-no {
 
-         background-color: #f56c6c !important;
 
-         user-select: none;
 
-         // pointer-events: none;
 
-         cursor: not-allowed !important;
 
-       }
 
-       .seat-item-class-box {
 
-         width: 100%;
 
-         display: flex;
 
-         flex-wrap: nowrap;
 
-         justify-content: center;
 
-         margin: auto 0;
 
-         text-align: center;
 
-       }
 
-       .seat-item-class{
 
-         flex-shrink: 0;
 
-         display: block;
 
-         float: left;
 
-         width: 60px;
 
-         height: 60px;
 
-         margin: 5px;
 
-         border: 1px solid #4c4d4d;
 
-         border-radius: 3px;
 
-         cursor: pointer;
 
-         position: relative;
 
-         user-select: none;
 
-         // transform-origin: 50% 50%;
 
-         // transform: scale(var(--scaleNum));
 
-         &:hover{
 
-           opacity: 0.6;
 
-         }
 
-   
 
-         .text-class{
 
-           font-size: 12px;
 
-           padding: 5px;
 
-           line-height: 16px;
 
-           margin: 0;
 
-           color: #000;
 
-         }
 
-       }
 
-     }
 
-   }
 
- }
 
-   
 
- </style>
 
 
  |