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