shipeng 4 сар өмнө
parent
commit
7b0947d546

+ 339 - 0
src/views/windowTicketSales/model/changePerform.vue

@@ -0,0 +1,339 @@
+<template>
+  <!-- 更换场次 -->
+  <el-dialog title="更换场次" modal-append-to-body :close-on-click-modal="false" :visible.sync="isOpen" width="30%">
+    <el-form :model="queryForm" ref="queryForm" size="small" :rules="rules" label-width="80px">
+      <el-form-item label="场次时间" prop="performDate">
+        <el-date-picker type="date" placeholder="选择场次时间" v-model="queryForm.performDate"
+          @change="changeTime($event, 'performDate')" value-format="yyyy-MM-dd"></el-date-picker>
+      </el-form-item>
+      <el-form-item label="场次" prop="timeId">
+        <el-select v-model="queryForm.timeId" placeholder="场次" clearable style="width: 100%"
+          @change="changeTime($event, 'timeId')">
+          <el-option v-for="dict in merchantPerformTimeListS" :key="dict.id"
+            :label="dict.timeSnapshot + '(' + dict.performTimeStart + '-' + dict.performTimeEnd + ')'"
+            :value="dict.id" />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="票种" prop="goodsId">
+        <el-select v-model="queryForm.goodsId" placeholder="请选择票种" clearable style="width: 100%">
+          <el-option v-for="dict in goodsPageListS" :key="dict.goodsId" :label="dict.goodsName" :value="dict.goodsId"
+            :disabled="dict.status == 1" />
+        </el-select>
+      </el-form-item>
+    </el-form>
+    <span slot="footer" class="dialog-footer">
+      <el-button @click="isOpen = false">取 消</el-button>
+      <el-button type="primary" @click="handleSave">保 存</el-button>
+    </span>
+  </el-dialog>
+</template>
+
+
+<script>
+import {
+  querySeatList,
+  merchantPerformTimeList,
+  merchantPerformTimeListNew,
+  merchantTheatreAuditoriumList,
+  goodsPageList,
+  getGoodsPerformApi,
+} from '@/api/windowTicketSales/ticketingSales'
+import moment from "moment"
+import { pageList as getSeatType } from '@/api/seatTypeMr/seatTypeMr'
+// import selectListMixin from "./mixins/selectList"
+export default {
+  name: "TicketSales",
+  // props: {
+  //   queryForm: {
+  //     type: Object,
+  //     required: true
+  //   }
+  // },
+  components: {
+  },
+  // mixins: [selectListMixin],
+  dicts: ['channel_type'],
+  data() {
+    return {
+      // 遮罩层
+      loading: false,
+      // 查询参数
+      queryForm: {
+        timeId: '',
+        performDate: null,
+        auditoriumId: null,
+        goodsId: null,
+      },
+      rules: {
+        // auditoriumId: [
+        //   { required: true, message: '请选择演出厅', trigger: ['blur', 'change'] }
+        // ],
+        performDate: [
+          { required: true, message: '请选择时间', trigger: ['blur', 'change'] }
+        ],
+        timeId: [
+          { required: true, message: '请选择场次', trigger: ['blur', 'change'] }
+        ],
+        goodsId: [
+          { required: true, message: '请选择票种', trigger: ['blur', 'change'] }
+        ],
+      },
+      merchantTheatreAuditoriumListS: [], // 演出厅
+      merchantPerformTimeListS: [], // 场次
+      goodsPageListS: [], // 票务
+      goodsPageListSAll: [], // 票务全部
+      setList: [],
+      seatMapList: {},
+      seatMapListKey: [], // key
+      seatSelectList: [],
+      seatSelectListNo: [], // 锁定的座位
+
+      lockOrUnLockLoading: false,
+
+      performId: '',// 剧目ID
+      scaleNum: 30,
+
+      width: 0,
+      justifyContent: false,
+      seatTypeList: [],
+
+      // 限购条件
+      ifRealUser: 0,// 散客是否实名:0-否 1-是
+      ifRealTeam: 0,// 团购是否实名:0否 1-是
+      oneMany: 0,// 证件要求: 1一证一票,2一证多票
+      personnelNum: 0,// 人员要求:0-表示不限制 其他数字表示限制人数
+
+      isLcokShow: false,
+      lckTime: null,
+      seatId: null,
+      lockStyle: {
+
+      },
+
+      salePrice: null,
+      stockType: null,
+      debounceTimer: null,
+      isOpen: false,
+    };
+  },
+  created() {
+    // if (this.queryForm.auditoriumId) {
+    //   this.getOptions();
+    // }
+    this.merchantTheatreAuditoriumListFun()
+    this.goodsPageListFun()
+    this.getSeatTypeList()
+  },
+  mounted() {
+    // // this.$set(this.queryForm, 'performDate', moment().format("yyyy-MM-DD"))
+    // if (this.queryForm.goodsId) {
+    //   this.changeTime(this.queryForm.goodsId, 'goodsId')
+    // }
+  },
+  methods: {
+    moment,
+    initData(obj) {
+      // console.log(this.queryForm, obj, 'this.queryForm');
+      this.queryForm = {
+        auditoriumId: obj.auditoriumId,
+        performDate: obj.performDate,
+        timeId: obj.timeId,
+        goodsId: obj.goodsId,
+      }
+      this.isOpen = true
+      this.merchantTheatreAuditoriumListFun();
+      this.getOptions();
+    },
+    /**  票务信息  */
+    async goodsPageListFun() {
+      try {
+        let res = await goodsPageList({
+          pageNum: 1,
+          pageSize: 999,
+          classifyId: 1,
+          goodsType: 2,
+        })
+        if (res.code == 200) {
+          this.goodsPageListSAll = res.data.rows
+          // let list = []
+          // res.data.rows.forEach((item,index)=>{
+          //     if(item.status != 1) {
+          //         list.push(item)
+          //     }
+          // })
+          // this.goodsPageListS = list
+        }
+      } catch (error) {
+
+      }
+    },
+    /**  获取演出厅  */
+    async merchantTheatreAuditoriumListFun() {
+      try {
+        let res = await merchantTheatreAuditoriumList({
+          pageNum: 1,
+          pageSize: 999
+        })
+        if (res.code == 200) {
+          this.merchantTheatreAuditoriumListS = res.data.rows
+        }
+      } catch (error) {
+
+      }
+    },
+    /**  获取场次  */
+    async merchantPerformTimeListFun() {
+      try {
+        let param = JSON.parse(JSON.stringify(this.queryForm));
+        param.status = 1;
+        let res = await merchantPerformTimeListNew(param)
+        if (res.code == 200) {
+          this.merchantPerformTimeListS = res.data.list
+
+        }
+      } catch (error) {
+
+      }
+    },
+    /**  选择场次时间  */
+    changeTime(value, type) {
+      if (type == 'timeId') {
+        this.$set(this.queryForm, 'goodsId', '')
+        this.stockType = null
+        if (value) {
+          let flog = false
+          let list2 = []
+          this.merchantPerformTimeListS.forEach((item, index) => {
+            if (item.id == value) {
+              flog = true
+              list2 = item.goodsList
+              this.stockType = item.stockType
+            }
+          })
+          this.goodsPageListS = []
+          setTimeout(() => {
+            this.goodsPageListS = list2
+            // // if (this.$route.params.goodsId) {
+            // if (this.queryForm.goodsId) {
+            //     // this.$set(this.queryForm, 'goodsId', this.$route.params.goodsId)
+            //     this.changeTime(this.queryForm.goodsId, 'goodsId')
+            // }
+          }, 500)
+
+        } else {
+          this.goodsPageListS = []
+        }
+      }
+      this.changeTimeCheck(value, type)
+
+    },
+    /**  选择场次时间  */
+    async changeTimeCheck(value, type) {
+      if (this.queryForm && this.queryForm.timeId && type != 'timeId' && type != 'goodsId') {
+        this.$set(this.queryForm, 'timeId', '')
+        this.$set(this.queryForm, 'goodsId', '')
+        this.merchantPerformTimeListS = []
+        this.goodsPageListS = []
+      }
+      if (this.queryForm.auditoriumId && this.queryForm.performDate && type != 'timeId' && type != 'goodsId') {
+        //  获取场次
+        this.merchantPerformTimeListFun()
+      }
+      if (type == 'goodsId') {
+        //this.$refs.queryForm.clearValidate("goodsId")
+        if (value) {
+          // await this.getGoodsPerformFun(value);
+          // this.handleQuery()
+        }
+      } else {
+        this.ifRealUser = 0  // 散客是否实名:0-否 1-是
+        this.ifRealTeam = 0   // 团购是否实名:0否 1-是
+        this.oneMany = 1   // 证件要求: 1一证一票,2一证多票
+        this.personnelNum = 0   // 人员要求:0-表示不限制 其他数字表示限制人数
+      }
+      this.seatMapListKey = {}
+      this.performId = ''
+      this.seatSelectList = []
+      this.seatSelectListNo = []
+      this.seatMapList = {}
+      this.seatList = []
+
+    },
+    /**  设置 场次 对应得剧目ID */
+    changePerformId(value) {
+      this.performId = ''
+      this.merchantPerformTimeListS.forEach((item, index) => {
+        if (item.id == value) {
+          this.performId = item.performId
+          console.log("value==this.performId", value)
+        }
+      })
+    },
+    /**  设置 票务 对应价格 */
+    changeSalePrice(value) {
+      // console.log("value=====", value)
+      this.salePrice = null
+      this.goodsPageListS.forEach((item, index) => {
+        if (item.goodsId == value) {
+          this.salePrice = item.salePrice
+        }
+      })
+    },
+    // 获取数据源
+    async getOptions() {
+      // 获取场次
+      if (this.queryForm.performDate && this.queryForm.auditoriumId) {
+        await this.merchantPerformTimeListFun()
+        // 获取票种数据源
+        if (this.queryForm.timeId) {
+          // let flog = false
+          let list2 = []
+          this.merchantPerformTimeListS.forEach((item, index) => {
+            if (item.id == this.queryForm.timeId) {
+              // flog = true
+              list2 = item.goodsList
+              this.stockType = item.stockType
+            }
+          })
+          this.goodsPageListS = []
+          setTimeout(() => {
+            this.goodsPageListS = list2
+          }, 500)
+        } else {
+          this.goodsPageListS = []
+        }
+      }
+
+    },
+    // 更换场次 保存
+    handleSave() {
+      this.$refs.queryForm.validate(async (valid) => {
+        if (valid) {
+          console.log(this.merchantPerformTimeListS, this.goodsPageListS,'666');
+          console.log(this.queryForm,'777');
+          this.$emit('getSeatListFun', this.queryForm)
+          this.isOpen = false;
+          // await this.getGoodsPerformFun(this.queryForm.goodsId);
+          // this.querySeatListFun(true);
+        } else {
+          console.log('error submit!!', valid);
+          return false;
+        }
+      });
+    },
+    /** 获取座位类型 说明 */
+    getSeatTypeList() {
+      getSeatType({
+        pageNum: 1,
+        pageSize: 999,
+      })
+        .then(response => {
+          this.seatTypeList = response.data.rows;
+        }
+        );
+    },
+
+  }
+};
+</script>
+<style></style>

+ 40 - 32
src/views/windowTicketSales/model/ticketInfo.vue

@@ -88,7 +88,6 @@
       <div>
         <el-form :model="ruleForm" :rules="rules" ref="ruleForm11" label-width="100px" class="demo-ruleForm"
           size="mini">
-          <div style="display: flex;">
             <!-- <el-form-item label="用户来源 :" prop="source">
               <el-radio-group @input="selectMarketTeamBySourceFun" v-model="ruleForm.source">
                 <el-radio label="7">窗口</el-radio>
@@ -101,22 +100,21 @@
                 <el-radio label="16">其他</el-radio>
               </el-radio-group>
             </el-form-item> -->
-            <el-form-item label="观影人员:">
-              {{ viewerList.length }}人
-              <el-button type="danger" @click="handleRealName" style="margin-left: 30px;">实名</el-button>
-            </el-form-item>
-            <el-form-item label-width="60px" v-if="ruleForm.source && ruleForm.source == 16" label="备注 :"
-              prop="sourceRemark">
-              <el-input style="width: 200px;" v-model="ruleForm.sourceRemark"></el-input>
-            </el-form-item>
-          </div>
+          <el-form-item label="观影人员:">
+            {{ viewerList.length }}人
+            <el-button type="danger" @click="handleRealName" style="margin-left: 30px;">实名</el-button>
+          </el-form-item>
+          <el-form-item v-if="ruleForm.source && ruleForm.source == 16" label="备注 :"
+            prop="sourceRemark">
+            <el-input style="width: 90%;" v-model="ruleForm.sourceRemark"></el-input>
+          </el-form-item>
           <el-form-item v-if="ruleForm.source && ruleForm.source != 7" label="核销码/订单码" prop="orderIdOrQrCode">
-            <el-input style="width: 100%;" type="textarea" :rows="2" v-model="ruleForm.orderIdOrQrCode"></el-input>
+            <el-input style="width: 90%;" type="textarea" :rows="3" v-model="ruleForm.orderIdOrQrCode"></el-input>
           </el-form-item>
-          <el-form-item label="支付方式 :" prop="paymentType">
-            <el-radio-group v-model="ruleForm.paymentType">
+          <el-form-item v-if="ifShow" label="支付方式 :" prop="paymentType">
+            <el-radio-group :disabled="ruleForm.source != '7' && ruleForm.source" v-model="ruleForm.paymentType">
+              <el-radio label="1">扫码</el-radio>
               <el-radio label="2">现金</el-radio>
-              <el-radio v-if="ruleForm.source == '7'" label="1">扫码</el-radio>
               <!-- <el-radio v-if="['10','11','13','14','18','19'].includes(ruleForm.source)" label="3">对公支付</el-radio> -->
               <!-- <el-radio v-if="['10', '11', '13', '14', '18', '19'].includes(ruleForm.source)" label="4">账户余额({{ balance
               }})</el-radio>
@@ -125,23 +123,25 @@
               }})</el-radio> -->
             </el-radio-group>
           </el-form-item>
-          <el-form-item label="应收金额 :">
+          <div v-show="ifShow">
+            <el-form-item label="应收金额 :">
             ¥{{ moneyAll }}元
-          </el-form-item>
-          <!-- <el-form-item label="找零计算(注:只用于找零不提交数据 找零金额 = 收到金额 - 实收金额)" v-if="ruleForm.paymentType == 2 || ruleForm.paymentType == 3" label-width="480px"></el-form-item> -->
-          <el-form-item v-if="ruleForm.paymentType == 2 || ruleForm.paymentType == 3" label="收取现金 :" prop="realPrice_1">
-            <el-input @input="setRealPrice_1" style="width: 90%;" v-model="ruleForm.realPrice_1"></el-input>
-            <span>元</span>
-          </el-form-item>
-          <el-form-item label="找零金额 :" v-if="ruleForm.paymentType == 2">
-            ¥{{ ruleForm.small }}元
-          </el-form-item>
-          <el-form-item v-if="ruleForm.paymentType == 2 || ruleForm.paymentType == 3" label="实收金额 :" prop="realPrice">
-            <el-input @input="setRealPrice" style="width: 90%;" v-model="ruleForm.realPrice"></el-input>
-            <span>元</span>
-          </el-form-item>
+            </el-form-item>
+            <!-- <el-form-item label="找零计算(注:只用于找零不提交数据 找零金额 = 收到金额 - 实收金额)" v-if="ruleForm.paymentType == 2 || ruleForm.paymentType == 3" label-width="480px"></el-form-item> -->
+            <el-form-item v-if="ruleForm.paymentType == 2 || ruleForm.paymentType == 3" label="收取现金 :" prop="realPrice_1">
+              <el-input @input="setRealPrice_1" style="width: 90%;" v-model="ruleForm.realPrice_1"></el-input>
+              <span>元</span>
+            </el-form-item>
+            <el-form-item label="找零金额 :" v-if="ruleForm.paymentType == 2">
+              ¥{{ ruleForm.small }}元
+            </el-form-item>
+            <el-form-item v-if="ruleForm.paymentType == 2 || ruleForm.paymentType == 3" label="实收金额 :" prop="realPrice">
+              <el-input @input="setRealPrice" style="width: 90%;" v-model="ruleForm.realPrice"></el-input>
+              <span>元</span>
+            </el-form-item>
+          </div>
           <el-form-item label="订单备注 :" prop="remark">
-            <el-input style="width: 100%;" type="textarea" :rows="2" maxlength="200" v-model="ruleForm.remark"
+            <el-input style="width: 90%;" type="textarea" :rows="3" maxlength="200" v-model="ruleForm.remark"
               show-word-limit></el-input>
           </el-form-item>
           <el-form-item>
@@ -353,6 +353,7 @@
                   v-for="(item, index) in printList"></el-option>
               </el-select>
               <el-button style="margin-left: 15px" @click="print" type="success">打印门票</el-button>
+              <el-button style="margin-left: 15px" @click="goTicketingCollections" type="info">取消</el-button>
               <!-- <el-button style="margin-left: 15px" @click="goTicketingCollections" type="success">跳转取票界面</el-button> -->
             </div>
             <!-- 支付超时 9  -->
@@ -433,6 +434,7 @@ export default {
         realPrice: '', // 实收金额
       },
       viewerList: [], // 观影人列表
+      ifShow:false,
       rules: {
         source: [
           { required: true, message: '请选择用户来源', trigger: ['blur', 'change'] },
@@ -527,7 +529,7 @@ export default {
           purchaser: {},// 购票人信息
           viewerList: [], // 观影人列表
           orderIdOrQrCode: '',
-          paymentType: '2', // 支付方式
+          paymentType: params.source == '7' ? '1':'2', // 支付方式
           small: '',// 实收金额
           realPrice: '', // 实收金额
           remark: '', // 订单备注
@@ -538,7 +540,7 @@ export default {
         this.orderId = null
         this.websocket_connected = false
         // this.dialogVisible = true
-        this.loading = true
+        // this.loading = true
         this.actionIndex = null
         this.viewerList = []
         let perform = await this.selectRegionFun(params, list[0].seatTypeId)
@@ -551,6 +553,9 @@ export default {
         // }
         let listCopy = []
         if(list.length > 0) {
+          console.log(list,'list11');
+          
+          this.ifShow = true
           list.forEach((item, index) => {
             listCopy.push({
               id: index + 1,
@@ -568,6 +573,9 @@ export default {
               seatTypeName: perform.seatTypeName,
             })
           })
+        } else {
+           console.log(list,'list12221');
+          this.ifShow = false
         }
         //this.goodsList = 
         this.viewerList = JSON.parse(JSON.stringify(listCopy))
@@ -578,7 +586,7 @@ export default {
           this.$set(this.ruleForm, 'realPrice', this.moneyAll)
         }
         // console.log(this.viewerList)
-        this.loading = false
+        // this.loading = false
 
         this.$nextTick(() => {
           this.$refs.ruleForm11.clearValidate()

+ 45 - 44
src/views/windowTicketSales/ticketSales.vue

@@ -202,7 +202,10 @@
             <div><span>锁定原因:</span><span>{{ lockObj.remark }}</span></div>
         </div>
         <!-- 更换场次 -->
-        <el-dialog title="更换场次" modal-append-to-body :close-on-click-modal="false" :visible.sync="isOpen" width="30%">
+        <!-- <change-perform ref="changePerform" :queryParams="queryParams" @getSeatListFun="getSeatListFun" /> -->
+        <change-perform ref="changePerform" @getSeatListFun="getSeatListFun" />
+        
+        <!-- <el-dialog title="更换场次" modal-append-to-body :close-on-click-modal="false" :visible.sync="isOpen" width="30%">
             <el-form :model="queryParams" ref="queryForm" size="small" :rules="rules" label-width="80px">
                 <el-form-item label="场次时间" prop="performDate">
                     <el-date-picker type="date" placeholder="选择场次时间" v-model="queryParams.performDate"
@@ -227,10 +230,7 @@
                 <el-button @click="isOpen = false">取 消</el-button>
                 <el-button type="primary" @click="handleSave">保 存</el-button>
             </span>
-        </el-dialog>
-
-
-
+        </el-dialog> -->
 
     </div>
 </template>
@@ -255,13 +255,15 @@ import moment from "moment"
 import { pageList as getSeatType } from '@/api/seatTypeMr/seatTypeMr'
 import selectListMixin from "./mixins/selectList"
 import LockSeat from './model/lockSeat.vue'
+import changePerform from './model/changePerform.vue'
 import { tr } from 'voca'
 export default {
     name: "TicketSales",
     components: {
         increaseViewers,
         ticketInfo,
-        LockSeat
+        LockSeat,
+        changePerform
     },
     mixins: [selectListMixin],
     dicts: ['channel_type'],
@@ -334,7 +336,7 @@ export default {
         };
     },
     created() {
-        console.log(this.$route.params, 'this.$route.params');
+        // console.log(this.$route.params, '$route');
         if (this.$route.params.auditoriumId) {
             this.$set(this.queryParams, 'auditoriumId', this.$route.params.auditoriumId)
             this.$set(this.queryParams, 'performDate', this.$route.params.performDate)
@@ -561,12 +563,12 @@ export default {
                     return a.sort - b.sort
                 })
                 this.seatMapListKey = seatMapListKey
-                console.log("seatMapListKey=====", seatMapListKey)
+                // console.log("seatMapListKey=====", seatMapListKey)
                 this.width = 70 * (flog + 1)
                 this.$nextTick(() => {
                     if (this.$refs.seatbox) {
                         var ele = this.$refs.seatbox
-                        console.log(ele.getBoundingClientRect().width); // 100
+                        // console.log(ele.getBoundingClientRect().width); // 100
                         if (this.width < ele.getBoundingClientRect().width) {
                             this.justifyContent = true
                         } else {
@@ -577,7 +579,7 @@ export default {
                     }
                 })
 
-                console.log("list====", listCopy)
+                // console.log("list====", listCopy)
 
                 let columnList = []
                 listCopy[seatMapListKey[0].key].forEach((item, index) => {
@@ -610,7 +612,6 @@ export default {
         },
         // 选择日期 场次
         hanldeChangeTime(value, type) {
-            console.log(value, '6666');
             if (type == 'performDate' && this.queryParams.performDate) {
                 this.$set(this.queryParams, 'timeId', '')
                 this.$set(this.queryParams, 'goodsId', '')
@@ -644,7 +645,6 @@ export default {
         },
         /**  选择场次时间  */
         changeTime(value, type) {
-            // console.log("fsdfsdf----",value,type)
             if (type == 'timeId') {
                 this.$set(this.queryParams, 'goodsId', '')
                 this.stockType = null
@@ -677,7 +677,6 @@ export default {
         },
         /**  选择场次时间  */
         async changeTimeCheck(value, type) {
-            // console.log("fsdfsdf")
             if (this.queryParams && this.queryParams.timeId && type != 'timeId' && type != 'goodsId') {
                 this.$set(this.queryParams, 'timeId', '')
                 this.$set(this.queryParams, 'goodsId', '')
@@ -691,7 +690,6 @@ export default {
             if (type == 'goodsId') {
                 //this.$refs.queryForm.clearValidate("goodsId")
                 if (value) {
-                    // console.log("dsfsdfdsfds===",value)
                     await this.getGoodsPerformFun(value);
 
                     this.handleQuery()
@@ -713,18 +711,15 @@ export default {
         },
         /**  设置 场次 对应得剧目ID */
         changePerformId(value) {
-            console.log("value=====", value)
             this.performId = ''
             this.merchantPerformTimeListS.forEach((item, index) => {
                 if (item.id == value) {
                     this.performId = item.performId
-                    console.log("value==this.performId", value)
                 }
             })
         },
         /**  设置 票务 对应价格 */
         changeSalePrice(value) {
-            // console.log("value=====", value)
             this.salePrice = null
             this.goodsPageListS.forEach((item, index) => {
                 if (item.goodsId == value) {
@@ -734,32 +729,33 @@ export default {
         },
         // 更换场次
         performChange() {
-            this.isOpen = true;
-            this.getOptions();
+            // this.isOpen = true;
+            this.$refs.changePerform.initData(this.queryParams)
+            // this.getOptions();
         },
         // 获取数据源
-        getOptions() {
+        async getOptions() {
             // 获取场次
             if (this.queryParams.performDate && this.queryParams.auditoriumId) {
-                this.merchantPerformTimeListFun()
-            }
-            // 获取票种数据源
-            if (this.queryParams.timeId) {
-                // let flog = false
-                let list2 = []
-                this.merchantPerformTimeListS.forEach((item, index) => {
-                    if (item.id == this.queryParams.timeId) {
-                        // flog = true
-                        list2 = item.goodsList
-                        this.stockType = item.stockType
-                    }
-                })
-                this.goodsPageListS = []
-                setTimeout(() => {
-                    this.goodsPageListS = list2
-                }, 500)
-            } else {
-                this.goodsPageListS = []
+                await this.merchantPerformTimeListFun()
+                // 获取票种数据源
+                if (this.queryParams.timeId) {
+                    // let flog = false
+                    let list2 = []
+                    this.merchantPerformTimeListS.forEach((item, index) => {
+                        if (item.id == this.queryParams.timeId) {
+                            // flog = true
+                            list2 = item.goodsList
+                            this.stockType = item.stockType
+                        }
+                    })
+                    this.goodsPageListS = []
+                    setTimeout(() => {
+                        this.goodsPageListS = list2
+                    }, 500)
+                } else {
+                    this.goodsPageListS = []
+                }
             }
         },
         // 更换场次 保存
@@ -824,7 +820,6 @@ export default {
                 return
             }
             if (row.occupyStatus == 0) {
-                // console.log("weqwrwerewrer")
                 // this.$confirm('此座已被锁定,请先解锁', '提示', {
                 //     confirmButtonText: '确定',
                 //     cancelButtonText: '取消',
@@ -875,7 +870,6 @@ export default {
         },
         /** 删除已选座位  */
         delSeatSelect(row) {
-            console.log(row, 'row222');
 
             // row.isSelect = !row.isSelect
             // if(row.isSelect){
@@ -922,7 +916,6 @@ export default {
                 }
                 this.changePerformId(this.queryParams.timeId)
                 this.changeSalePrice(this.queryParams.goodsId)
-                console.log(this.queryParams, 'this.queryParams');
 
                 this.$refs.increaseViewers.initData(this.seatSelectList, {
                     ...this.queryParams,
@@ -946,7 +939,8 @@ export default {
                     personnelNum: this.personnelNum,   // 人员要求:0-表示不限制 其他数字表示限制人数
                     seatTypeId: '',
                     seatTypeName: '',
-                    salePrice: 0
+                    salePrice: 0,
+                    source: this.$route.params.source || '',
                 })
                 // this.$alert('请先选择座位!!!', '提示', {
                 //     confirmButtonText: '确定',
@@ -957,6 +951,13 @@ export default {
             }
 
         },
+        // 保存切换场次
+        async getSeatListFun(obj) {
+            this.queryParams = { ...this.queryParams, ...obj };
+            // console.log(obj,this.queryParams,'0000');
+            await this.getGoodsPerformFun(this.queryParams.goodsId);
+            this.querySeatListFun(true);
+        },
         /**  弹窗关闭 */
         clearDialogVisible() {
             //this.
@@ -1033,7 +1034,7 @@ export default {
                             left: (e.x + 10) + 'px',
                             zIndex: 999999
                         }
-                        console.log('dsfdsff====', this.lockObj, this.lockStyle)
+                        // console.log('dsfdsff====', this.lockObj, this.lockStyle)
                         return
                     } else {
                         this.isLcokShow = false