|
@@ -220,7 +220,7 @@
|
|
|
goodsPageList,
|
|
|
getGoodsPerformApi,
|
|
|
lockOrUnLockApi,
|
|
|
- querySeatListNew
|
|
|
+ querySeatListNew,
|
|
|
} from '@/api/windowTicketSales/ticketingSales'
|
|
|
//import increaseViewers from "./model/increaseViewers"
|
|
|
import increaseViewers from "./model/increaseViewersNew"
|
|
@@ -299,6 +299,7 @@ import LockSeat from './model/lockSeat.vue'
|
|
|
remark: ''
|
|
|
},
|
|
|
salePrice: null,
|
|
|
+ stockType: null,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -435,7 +436,8 @@ import LockSeat from './model/lockSeat.vue'
|
|
|
}
|
|
|
this.seatMapList = {}
|
|
|
this.seatList = []
|
|
|
- let res = await querySeatListNew({
|
|
|
+ let fun = this.stockType === 0 ? querySeatList: querySeatListNew
|
|
|
+ let res = await fun({
|
|
|
...this.queryParams,
|
|
|
channelType: 'window'
|
|
|
})
|
|
@@ -546,6 +548,7 @@ import LockSeat from './model/lockSeat.vue'
|
|
|
console.log("fsdfsdf----",value,type)
|
|
|
if(type == 'timeId') {
|
|
|
this.$set(this.queryParams,'goodsId','')
|
|
|
+ this.stockType = null
|
|
|
if(value) {
|
|
|
let flog = false
|
|
|
let list2 = []
|
|
@@ -553,6 +556,7 @@ import LockSeat from './model/lockSeat.vue'
|
|
|
if(item.id==value) {
|
|
|
flog = true
|
|
|
list2 = item.goodsList
|
|
|
+ this.stockType = item.stockType
|
|
|
}
|
|
|
})
|
|
|
this.goodsPageListS = []
|
|
@@ -653,8 +657,13 @@ import LockSeat from './model/lockSeat.vue'
|
|
|
if(row.isDisabled || row.status == 2){
|
|
|
return false
|
|
|
}
|
|
|
- if(row.channelType && row.channelType != 'window'){
|
|
|
- this.$message.error(`该座位仅限${ this.setChanneltype(row.channelType) }渠道购买!!!`);
|
|
|
+ if(this.stockType == 1 && row.channelType != 'window'){
|
|
|
+ if(row.channelType) {
|
|
|
+ this.$message.error(`该座位仅限${ this.setChanneltype(row.channelType) }渠道购买!!!`);
|
|
|
+ }else if(item.isUse == 2){
|
|
|
+ this.$message.error(`该座位仅限其他渠道购买!!!`);
|
|
|
+ }
|
|
|
+
|
|
|
return false
|
|
|
}
|
|
|
|
|
@@ -917,9 +926,12 @@ import LockSeat from './model/lockSeat.vue'
|
|
|
'occupy-status': item.occupyStatus==1?'occupy-status-no':
|
|
|
item.isDisabled || item.status != 1 ? 'disabled-class' :
|
|
|
item.isSelect ? 'select-class' : ''
|
|
|
- if(!srt && item.channelType && item.channelType != 'window') {
|
|
|
- return 'seat_channel_type'
|
|
|
+ if(this.stockType == 1) {
|
|
|
+ if(!srt && (item.channelType != 'window' || item.isUse == 2)) {
|
|
|
+ return 'seat_channel_type'
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
return srt
|
|
|
}
|
|
|
}
|