|
@@ -220,6 +220,7 @@ export default {
|
|
performId: row.performId,
|
|
performId: row.performId,
|
|
auditoriumId: row.auditoriumId,
|
|
auditoriumId: row.auditoriumId,
|
|
paymentType: "1", // 支付方式
|
|
paymentType: "1", // 支付方式
|
|
|
|
+ seatList: []
|
|
}
|
|
}
|
|
await this.countBySeatTypFun(row.auditoriumId)
|
|
await this.countBySeatTypFun(row.auditoriumId)
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
@@ -263,6 +264,10 @@ export default {
|
|
submitRebook() {
|
|
submitRebook() {
|
|
this.$refs.rebookForm.validate((valid) => {
|
|
this.$refs.rebookForm.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
+ if(!this.rebookForm.seatList||this.rebookForm.seatList.length==0) {
|
|
|
|
+ this.$message.error('请选择座位!!!');
|
|
|
|
+ return
|
|
|
|
+ }
|
|
this.orderInfoSubmitFun()
|
|
this.orderInfoSubmitFun()
|
|
} else {
|
|
} else {
|
|
return false;
|
|
return false;
|
|
@@ -281,7 +286,7 @@ export default {
|
|
document.removeEventListener('keydown',this.keydownAdd);
|
|
document.removeEventListener('keydown',this.keydownAdd);
|
|
this.orderInfoCancelFun(true)
|
|
this.orderInfoCancelFun(true)
|
|
}else {
|
|
}else {
|
|
- this.dialogVisible = false
|
|
|
|
|
|
+ this.rebookDialog = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch(_ => {});
|
|
.catch(_ => {});
|
|
@@ -304,7 +309,7 @@ export default {
|
|
this.orderId = null
|
|
this.orderId = null
|
|
this.payStatus = null
|
|
this.payStatus = null
|
|
this.$emit('clearDialogVisible')
|
|
this.$emit('clearDialogVisible')
|
|
- this.dialogVisible = false
|
|
|
|
|
|
+ this.rebookDialog = false
|
|
}else {
|
|
}else {
|
|
this.payStatus = 9
|
|
this.payStatus = 9
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -781,12 +786,12 @@ export default {
|
|
ignoreSSL.post(url,
|
|
ignoreSSL.post(url,
|
|
{ ...data }
|
|
{ ...data }
|
|
).then(()=>{
|
|
).then(()=>{
|
|
- this.dialogVisible = false
|
|
|
|
|
|
+ this.rebookDialog = false
|
|
this.loading = false
|
|
this.loading = false
|
|
}).catch(()=>{
|
|
}).catch(()=>{
|
|
this.loading = false
|
|
this.loading = false
|
|
this.payStatus = 8
|
|
this.payStatus = 8
|
|
- // this.dialogVisible = false
|
|
|
|
|
|
+ // this.rebookDialog = false
|
|
// this.loading = false
|
|
// this.loading = false
|
|
})
|
|
})
|
|
// 在 axios 请求时,选择性忽略 SSL
|
|
// 在 axios 请求时,选择性忽略 SSL
|
|
@@ -797,11 +802,11 @@ export default {
|
|
// url,
|
|
// url,
|
|
// { httpsAgent: agent,...data }
|
|
// { httpsAgent: agent,...data }
|
|
// ).then(()=>{
|
|
// ).then(()=>{
|
|
- // this.dialogVisible = false
|
|
|
|
|
|
+ // this.rebookDialog = false
|
|
// this.loading = false
|
|
// this.loading = false
|
|
// })
|
|
// })
|
|
// .catch(()=>{
|
|
// .catch(()=>{
|
|
- // this.dialogVisible = false
|
|
|
|
|
|
+ // this.rebookDialog = false
|
|
// this.loading = false
|
|
// this.loading = false
|
|
// })
|
|
// })
|
|
},
|
|
},
|
|
@@ -832,7 +837,6 @@ export default {
|
|
/** 获取座位 */
|
|
/** 获取座位 */
|
|
async querySeatListFun(type){
|
|
async querySeatListFun(type){
|
|
try {
|
|
try {
|
|
-
|
|
|
|
let res = await querySeatList({
|
|
let res = await querySeatList({
|
|
auditoriumId: this.rebookForm.auditoriumId,
|
|
auditoriumId: this.rebookForm.auditoriumId,
|
|
timeId: this.rebookForm.performTimeId,
|
|
timeId: this.rebookForm.performTimeId,
|
|
@@ -897,6 +901,13 @@ export default {
|
|
},
|
|
},
|
|
/** 选择座位 */
|
|
/** 选择座位 */
|
|
selectSeat(list) {
|
|
selectSeat(list) {
|
|
|
|
+ let list1 = []
|
|
|
|
+ list.forEach((item)=>{
|
|
|
|
+ list1.push({
|
|
|
|
+ seatId: item.id
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ this.rebookForm.seatList = list1
|
|
console.log("已选择的====",list)
|
|
console.log("已选择的====",list)
|
|
},
|
|
},
|
|
}
|
|
}
|