|
@@ -13,7 +13,7 @@
|
|
|
placeholder="演出厅"
|
|
|
clearable
|
|
|
style="width: 100%"
|
|
|
- @change="changeTime($event)"
|
|
|
+ @change="changeTime($event,'auditoriumId')"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="dict in merchantTheatreAuditoriumListS"
|
|
@@ -28,7 +28,7 @@
|
|
|
type="date"
|
|
|
placeholder="选择演出时间"
|
|
|
v-model="queryParams.performDate"
|
|
|
- @change="changeTime($event)"
|
|
|
+ @change="changeTime($event,'performDate')"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
></el-date-picker>
|
|
|
</el-form-item>
|
|
@@ -38,7 +38,7 @@
|
|
|
placeholder="场次"
|
|
|
clearable
|
|
|
style="width: 100%"
|
|
|
- @change="changeTime($event,true)"
|
|
|
+ @change="changeTime($event,'timeId')"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="dict in merchantPerformTimeListS"
|
|
@@ -54,7 +54,7 @@
|
|
|
placeholder="票务类型"
|
|
|
clearable
|
|
|
style="width: 100%"
|
|
|
- @change="changeTime($event,true)"
|
|
|
+ @change="changeTime($event,'goodsId')"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="dict in goodsPageListS"
|
|
@@ -166,7 +166,7 @@
|
|
|
import moment from "moment"
|
|
|
import { pageList as getSeatType } from '@/api/seatTypeMr/seatTypeMr'
|
|
|
export default {
|
|
|
- name: "distributionapplication",
|
|
|
+ name: "TicketingSales1",
|
|
|
components: {
|
|
|
increaseViewers
|
|
|
},
|
|
@@ -199,6 +199,7 @@
|
|
|
merchantPerformTimeListS: [], // 场次
|
|
|
querySeatListS: [], // 座位
|
|
|
goodsPageListS: [], // 票务
|
|
|
+ goodsPageListSAll: [], // 票务全部
|
|
|
setList: [],
|
|
|
seatMapList: [],
|
|
|
seatSelectList: [],
|
|
@@ -234,7 +235,7 @@
|
|
|
goodsType: 2,
|
|
|
})
|
|
|
if(res.code == 200){
|
|
|
- this.goodsPageListS = res.data.rows
|
|
|
+ this.goodsPageListSAll = res.data.rows
|
|
|
// let list = []
|
|
|
// res.data.rows.forEach((item,index)=>{
|
|
|
// if(item.status != 1) {
|
|
@@ -394,14 +395,50 @@
|
|
|
/** 选择演出时间 */
|
|
|
changeTime(value,type){
|
|
|
console.log("fsdfsdf----",value,type)
|
|
|
+ if(type == 'timeId') {
|
|
|
+ this.$set(this.queryParams,'goodsId','')
|
|
|
+ if(value) {
|
|
|
+ let flog = false
|
|
|
+ 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
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if(flog) {
|
|
|
+ this.goodsPageListS = JSON.parse(JSON.stringify(list2))
|
|
|
+ }else {
|
|
|
+ this.goodsPageListS = JSON.parse(JSON.stringify(this.goodsPageListSAll))
|
|
|
+ }
|
|
|
+
|
|
|
+ }else {
|
|
|
+ this.goodsPageListS = []
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
this.changeTimeCheck(value,type)
|
|
|
+
|
|
|
},
|
|
|
/** 选择演出时间 */
|
|
|
changeTimeCheck(value,type){
|
|
|
console.log("fsdfsdf")
|
|
|
- if(this.queryParams && this.queryParams.timeId && !type) {
|
|
|
+ if(this.queryParams && this.queryParams.timeId && type != 'timeId' && type != 'goodsId') {
|
|
|
console.log('sdfsdfsdf',this.queryParams)
|
|
|
this.$set(this.queryParams,'timeId','')
|
|
|
+ this.$set(this.queryParams,'goodsId','')
|
|
|
+ this.merchantPerformTimeListS = []
|
|
|
+ this.goodsPageListS = []
|
|
|
}
|
|
|
if(this.queryParams.auditoriumId&&this.queryParams.performDate){
|
|
|
// 获取场次
|