|  | @@ -199,6 +199,7 @@
 | 
	
		
			
				|  |  |    lockOrUnLock,
 | 
	
		
			
				|  |  |    merchantTheatreAuditoriumList,
 | 
	
		
			
				|  |  |    goodsPageList,
 | 
	
		
			
				|  |  | +  getGoodsPerformApi
 | 
	
		
			
				|  |  |   } from '@/api/windowTicketSales/ticketingSales'
 | 
	
		
			
				|  |  |   import increaseViewers from "./model/increaseViewers"
 | 
	
		
			
				|  |  |   import moment from "moment"
 | 
	
	
		
			
				|  | @@ -253,8 +254,13 @@
 | 
	
		
			
				|  |  |          width: 0,
 | 
	
		
			
				|  |  |          justifyContent: false,
 | 
	
		
			
				|  |  |          activeName: 'first',
 | 
	
		
			
				|  |  | -        seatTypeList: [],
 | 
	
		
			
				|  |  | +        seatTypeList: [],   
 | 
	
		
			
				|  |  |          
 | 
	
		
			
				|  |  | +        // 限购条件
 | 
	
		
			
				|  |  | +        ifRealUser: 0,// 散客是否实名:0-否 1-是
 | 
	
		
			
				|  |  | +        ifRealTeam: 0,// 团购是否实名:0否 1-是
 | 
	
		
			
				|  |  | +        oneMany: 0,// 证件要求: 1一证一票,2一证多票
 | 
	
		
			
				|  |  | +        personnelNum: 0,// 人员要求:0-表示不限制 其他数字表示限制人数
 | 
	
		
			
				|  |  |        };
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      created() {
 | 
	
	
		
			
				|  | @@ -494,8 +500,6 @@
 | 
	
		
			
				|  |  |                      this.goodsPageListS = []
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |              this.changeTimeCheck(value,type)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          },
 | 
	
	
		
			
				|  | @@ -513,6 +517,14 @@
 | 
	
		
			
				|  |  |                  //  获取场次
 | 
	
		
			
				|  |  |                  this.merchantPerformTimeListFun()
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +            if(type == 'goodsId'){
 | 
	
		
			
				|  |  | +                this.getGoodsPerformFun(value)
 | 
	
		
			
				|  |  | +            }else {
 | 
	
		
			
				|  |  | +                this.ifRealUser = 0  // 散客是否实名:0-否 1-是
 | 
	
		
			
				|  |  | +                this.ifRealTeam = 0   // 团购是否实名:0否 1-是
 | 
	
		
			
				|  |  | +                this.oneMany = 1   // 证件要求: 1一证一票,2一证多票
 | 
	
		
			
				|  |  | +                this.personnelNum = 0   // 人员要求:0-表示不限制 其他数字表示限制人数
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |              this.performId = ''
 | 
	
		
			
				|  |  |              this.seatSelectList = []
 | 
	
		
			
				|  |  |              this.seatMapList = {}
 | 
	
	
		
			
				|  | @@ -626,10 +638,23 @@
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          increaseViewersFun(){
 | 
	
		
			
				|  |  |              if(this.seatSelectList.length>0){
 | 
	
		
			
				|  |  | +                if(this.ifRealUser != 0 || this.ifRealTeam != 0 ) {
 | 
	
		
			
				|  |  | +                    if(this.personnelNum != 0) {
 | 
	
		
			
				|  |  | +                        if( this.seatSelectList.length != this.personnelNum ) {
 | 
	
		
			
				|  |  | +                            this.$message.error(`票务类型设置了实名要求,选择人数为${ this.personnelNum }人`);
 | 
	
		
			
				|  |  | +                            return
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |                  this.changePerformId(this.queryParams.timeId)
 | 
	
		
			
				|  |  |                  this.$refs.increaseViewers.initData(this.seatSelectList,{
 | 
	
		
			
				|  |  |                      ...this.queryParams,
 | 
	
		
			
				|  |  | -                    performId:this.performId
 | 
	
		
			
				|  |  | +                    performId:this.performId,
 | 
	
		
			
				|  |  | +                    ifRealUser: this.ifRealUser,  // 散客是否实名:0-否 1-是
 | 
	
		
			
				|  |  | +                    ifRealTeam: this.ifRealTeam,   // 团购是否实名:0否 1-是
 | 
	
		
			
				|  |  | +                    oneMany: this.oneMany,   // 证件要求: 1一证一票,2一证多票
 | 
	
		
			
				|  |  | +                    personnelNum: this.personnelNum,   // 人员要求:0-表示不限制 其他数字表示限制人数
 | 
	
		
			
				|  |  |                  })
 | 
	
		
			
				|  |  |              }else {
 | 
	
		
			
				|  |  |                  this.$alert('请先选择座位!!!', '提示', {
 | 
	
	
		
			
				|  | @@ -672,6 +697,32 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              return srt
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        //  获取限购标准
 | 
	
		
			
				|  |  | +        async getGoodsPerformFun(id){
 | 
	
		
			
				|  |  | +            try {
 | 
	
		
			
				|  |  | +                let res = await getGoodsPerformApi({
 | 
	
		
			
				|  |  | +                    goodsId: id
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  | +                if(res.code == 200) {
 | 
	
		
			
				|  |  | +                    this.ifRealUser = res.data.ifRealUser  // 散客是否实名:0-否 1-是
 | 
	
		
			
				|  |  | +                    this.ifRealTeam = res.data.ifRealTeam   // 团购是否实名:0否 1-是
 | 
	
		
			
				|  |  | +                    this.oneMany = res.data.oneMany   // 证件要求: 1一证一票,2一证多票
 | 
	
		
			
				|  |  | +                    this.personnelNum = res.data.personnelNum   // 人员要求:0-表示不限制 其他数字表示限制人数
 | 
	
		
			
				|  |  | +                }else {
 | 
	
		
			
				|  |  | +                    this.ifRealUser = 0  // 散客是否实名:0-否 1-是
 | 
	
		
			
				|  |  | +                    this.ifRealTeam = 0   // 团购是否实名:0否 1-是
 | 
	
		
			
				|  |  | +                    this.oneMany = 1   // 证件要求: 1一证一票,2一证多票
 | 
	
		
			
				|  |  | +                    this.personnelNum = 0   // 人员要求:0-表示不限制 其他数字表示限制人数 
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                
 | 
	
		
			
				|  |  | +            } catch (error) {
 | 
	
		
			
				|  |  | +                this.ifRealUser = 0  // 散客是否实名:0-否 1-是
 | 
	
		
			
				|  |  | +                this.ifRealTeam = 0   // 团购是否实名:0否 1-是
 | 
	
		
			
				|  |  | +                this.oneMany = 1   // 证件要求: 1一证一票,2一证多票
 | 
	
		
			
				|  |  | +                this.personnelNum = 0   // 人员要求:0-表示不限制 其他数字表示限制人数
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |      }   
 | 
	
		
			
				|  |  |    };
 | 
	
		
			
				|  |  |    </script>
 |