MONSTER-ygh 1 bulan lalu
induk
melakukan
13da90893f

+ 2 - 2
src/api/windowTicketSales/ticketingSales.js

@@ -1,6 +1,6 @@
 import request from '@/utils/request'
 
-// 座位列表
+// 座位列表 (按数量)
 export const querySeatList = (query) => {
   return request({
     url: '/merchant/merchantAuditoriumSeat/querySeatList',
@@ -9,7 +9,7 @@ export const querySeatList = (query) => {
   })
 }
 
-// 座位列表
+// 座位列表 (按具体座位)
 export const querySeatListNew = (query) => {
   return request({
     url: '/merchant/merchantAuditoriumSeat/getChannelTypeSeatList',

+ 13 - 6
src/views/officesale/ticketingSales.vue

@@ -220,10 +220,9 @@
   goodsPageList,
   getGoodsPerformApi,
   lockOrUnLockApi,
-  querySeatListNew
+  querySeatListNew,
  } from '@/api/windowTicketSales/ticketingSales'
  import increaseViewers from "./model/increaseViewers"
- //import increaseViewers from "./model/increaseViewersNew"
  import moment from "moment"
  import { pageList as getSeatType } from '@/api/seatTypeMr/seatTypeMr'
  import selectListMixin from "./mixins/selectList"
@@ -299,6 +298,7 @@ import LockSeat from './model/lockSeat.vue'
             remark: ''
         },
         salePrice: null,
+        stockType: null,
       };
     },
     created() {
@@ -435,8 +435,10 @@ import LockSeat from './model/lockSeat.vue'
                 }
                 this.seatMapList = {}
                 this.seatList = []
-                let res = await querySeatListNew({
-                    ...this.queryParams
+                let fun = this.stockType === 0 ? querySeatList: querySeatListNew
+                let res = await fun({
+                    ...this.queryParams,
+                    channelType: 'window'
                 })
                 if(res.code == 200){
                     this.querySeatListS = res.data;
@@ -545,6 +547,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 = []
@@ -552,6 +555,7 @@ import LockSeat from './model/lockSeat.vue'
                         if(item.id==value) {
                             flog = true
                             list2 = item.goodsList
+                            this.stockType = item.stockType
                         }
                     })
                     this.goodsPageListS = []
@@ -916,9 +920,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
         }
     }   

+ 7 - 2
src/views/windowTicketSales/mixins/selectList.js

@@ -183,8 +183,13 @@ export default {
                     break;
                 }
 
-                if(row.channelType && row.channelType != 'window'){
-                    this.$message.error(`不能选择非窗口出售的座位!!!`);
+                if(this.stockType == 1 && row.channelType != 'window'){
+                    if(row.channelType) {
+                        this.$message.error(`不能选择非窗口出售的座位!!!`);
+                    }else if(item.isUse == 2){
+                        this.$message.error(`不能选择非窗口出售的座位!!!`);
+                    }
+                    
                     flog = true
                     break;
                 }

+ 1 - 1
src/views/windowTicketSales/model/increaseViewersNew.vue

@@ -958,7 +958,7 @@ import {
                                 // this.getPrintListApi()
                                 this.goTicketingCollections()
                             }
-                            
+                            this.dialogVisible = false
                             
                         }else if(res.data.payStatus == 2) {
 

+ 18 - 6
src/views/windowTicketSales/ticketingSales.vue

@@ -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
         }
     }