|
@@ -48,19 +48,19 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="票务类型" prop="goodsId">
|
|
|
+ <el-form-item label="票种" prop="goodsId">
|
|
|
<el-select
|
|
|
v-model="queryParams.goodsId"
|
|
|
- placeholder="票务类型"
|
|
|
+ placeholder="请选择票种"
|
|
|
clearable
|
|
|
style="width: 100%"
|
|
|
@change="changeTime($event,'goodsId')"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="dict in goodsPageListS"
|
|
|
- :key="dict.id"
|
|
|
+ :key="dict.goodsId"
|
|
|
:label="dict.goodsName"
|
|
|
- :value="dict.id"
|
|
|
+ :value="dict.goodsId"
|
|
|
:disabled="dict.status==1"
|
|
|
/>
|
|
|
</el-select>
|
|
@@ -258,7 +258,7 @@ import LockSeat from './model/lockSeat.vue'
|
|
|
{ required: true, message: '请选择场次', trigger: ['blur','change'] }
|
|
|
],
|
|
|
goodsId: [
|
|
|
- { required: true, message: '请选择票务类型', trigger: ['blur','change'] }
|
|
|
+ { required: true, message: '请选择票种', trigger: ['blur','change'] }
|
|
|
],
|
|
|
},
|
|
|
merchantTheatreAuditoriumListS: [], // 演出厅
|
|
@@ -549,25 +549,14 @@ import LockSeat from './model/lockSeat.vue'
|
|
|
let list2 = []
|
|
|
this.merchantPerformTimeListS.forEach((item,index)=>{
|
|
|
if(item.id==value) {
|
|
|
- // let list = item.goodsIds ? item.goodsIds.split(','): []
|
|
|
- // list.forEach((item,index)=>{
|
|
|
- // this.goodsPageListSAll.forEach((item1,index1)=>{
|
|
|
- // if(item1.id == item) {
|
|
|
- // flog = true
|
|
|
- // list2.push({
|
|
|
- // ...item1
|
|
|
- // })
|
|
|
- // }
|
|
|
- // })
|
|
|
- // })
|
|
|
+ flog = true
|
|
|
list2 = item.goodsList
|
|
|
}
|
|
|
})
|
|
|
- if(flog) {
|
|
|
- this.goodsPageListS = JSON.parse(JSON.stringify(list2))
|
|
|
- }else {
|
|
|
- this.goodsPageListS = JSON.parse(JSON.stringify(this.goodsPageListSAll))
|
|
|
- }
|
|
|
+ this.goodsPageListS = []
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.goodsPageListS = list2
|
|
|
+ },500)
|
|
|
|
|
|
}else {
|
|
|
this.goodsPageListS = []
|
|
@@ -577,7 +566,7 @@ import LockSeat from './model/lockSeat.vue'
|
|
|
|
|
|
},
|
|
|
/** 选择场次时间 */
|
|
|
- changeTimeCheck(value,type){
|
|
|
+ async changeTimeCheck(value,type){
|
|
|
console.log("fsdfsdf")
|
|
|
if(this.queryParams && this.queryParams.timeId && type != 'timeId' && type != 'goodsId') {
|
|
|
console.log('sdfsdfsdf',this.queryParams)
|
|
@@ -586,13 +575,17 @@ import LockSeat from './model/lockSeat.vue'
|
|
|
this.merchantPerformTimeListS = []
|
|
|
this.goodsPageListS = []
|
|
|
}
|
|
|
- if(this.queryParams.auditoriumId&&this.queryParams.performDate){
|
|
|
+ if(this.queryParams.auditoriumId&&this.queryParams.performDate && type != 'timeId' && type != 'goodsId'){
|
|
|
// 获取场次
|
|
|
this.merchantPerformTimeListFun()
|
|
|
}
|
|
|
if(type == 'goodsId'){
|
|
|
+ //this.$refs.queryForm.clearValidate("goodsId")
|
|
|
if(value) {
|
|
|
- this.getGoodsPerformFun(value)
|
|
|
+ console.log("dsfsdfdsfds===",value)
|
|
|
+ await this.getGoodsPerformFun(value);
|
|
|
+
|
|
|
+ this.handleQuery()
|
|
|
}
|
|
|
}else {
|
|
|
this.ifRealUser = 0 // 散客是否实名:0-否 1-是
|
|
@@ -606,7 +599,7 @@ import LockSeat from './model/lockSeat.vue'
|
|
|
this.seatSelectListNo = []
|
|
|
this.seatMapList = {}
|
|
|
this.seatList = []
|
|
|
- this.handleQuery()
|
|
|
+ // this.handleQuery()
|
|
|
|
|
|
},
|
|
|
/** 设置 场次 对应得剧目ID */
|
|
@@ -625,7 +618,7 @@ import LockSeat from './model/lockSeat.vue'
|
|
|
if (valid) {
|
|
|
this.querySeatListFun(true);
|
|
|
} else {
|
|
|
- console.log('error submit!!');
|
|
|
+ console.log('error submit!!',valid);
|
|
|
return false;
|
|
|
}
|
|
|
});
|