MONSTER-ygh 1 سال پیش
والد
کامیت
fbc17f5a31
2فایلهای تغییر یافته به همراه126 افزوده شده و 112 حذف شده
  1. 61 56
      src/views/officesale/model/increaseViewers.vue
  2. 65 56
      src/views/windowTicketSales/model/increaseViewers.vue

+ 61 - 56
src/views/officesale/model/increaseViewers.vue

@@ -315,64 +315,69 @@ import {
     },
     methods: {
         async initData(list,params){
-            this.websocketClear()
-            this.idcardLoading = false
-            this.ruleForm = {
-                performId: "", // 剧目ID
-                retailId: "", // 分销ID
-                goodsList: [], // 商品列表
-                auditoriumId: "", // 演出厅ID
-                performTimeId: "", // 场次时段ID
-                seatTypeId: "", // 座位类型ID
-                source: '12', // 订单来源
-                purchaser: {},// 购票人信息
-                viewerList: [], // 观影人列表
-                orderIdOrQrCode: '',
-                paymentType: '2', // 支付方式
-                small: '',// 找零
-                realPrice: '0', // 实付金额
-            }
-            this.payStatus = null
-            this.orderId = null
-            this.websocket_connected = false
-            this.dialogVisible = true
-            this.loading = true
-            this.actionIndex = null
-            this.viewerList = []
-            let perform = await this.selectRegionFun(params,list[0].seatTypeId)
-            console.log("perform===",perform)
-            // let perform = {
-            //     money: 1,
-            //     name: '普通票'
-            // }
-            let listCopy = []
-            let listCopy1 = []
-            list.forEach((item,index)=>{
-                listCopy.push({
-                    id: index+1,
-                    name: '赠票', // 姓名
-                    mobile: '', // 电话
-                    idcard: 'ticket_'+new Date().getTime()+"_"+index, // 身份证
-                    identity: null, // 观影人身份
-                    remark: '', // 备注信息
-                    salePrice: perform.money, // 原价
-                    realPrice: perform.money, // 实付金额
-                    seatId: item.id, // 座位ID
-                    seatName: item.name?item.name:'暂无命名', // 座位名称
-                    seatType: perform.seatTypeId, // 座位类型
-                    seatTypeId: perform.seatTypeId,
-                    seatTypeName: perform.seatTypeName,
+            try {
+                this.websocketClear()
+                this.idcardLoading = false
+                this.ruleForm = {
+                    performId: "", // 剧目ID
+                    retailId: "", // 分销ID
+                    goodsList: [], // 商品列表
+                    auditoriumId: "", // 演出厅ID
+                    performTimeId: "", // 场次时段ID
+                    seatTypeId: "", // 座位类型ID
+                    source: '12', // 订单来源
+                    purchaser: {},// 购票人信息
+                    viewerList: [], // 观影人列表
+                    orderIdOrQrCode: '',
+                    paymentType: '2', // 支付方式
+                    small: '',// 找零
+                    realPrice: '0', // 实付金额
+                }
+                this.payStatus = null
+                this.orderId = null
+                this.websocket_connected = false
+                this.dialogVisible = true
+                this.loading = true
+                this.actionIndex = null
+                this.viewerList = []
+                let perform = await this.selectRegionFun(params,list[0].seatTypeId)
+                console.log("perform===",perform)
+                // let perform = {
+                //     money: 1,
+                //     name: '普通票'
+                // }
+                let listCopy = []
+                let listCopy1 = []
+                list.forEach((item,index)=>{
+                    listCopy.push({
+                        id: index+1,
+                        name: '赠票', // 姓名
+                        mobile: '', // 电话
+                        idcard: 'ticket_'+new Date().getTime()+"_"+index, // 身份证
+                        identity: null, // 观影人身份
+                        remark: '', // 备注信息
+                        salePrice: perform.money, // 原价
+                        realPrice: perform.money, // 实付金额
+                        seatId: item.id, // 座位ID
+                        seatName: item.name?item.name:'暂无命名', // 座位名称
+                        seatType: perform.seatTypeId, // 座位类型
+                        seatTypeId: perform.seatTypeId,
+                        seatTypeName: perform.seatTypeName,
+                    })
                 })
-            })
-            //this.goodsList = 
-            this.viewerList = JSON.parse(JSON.stringify(listCopy))
-            this.setMoneyAll()
+                //this.goodsList = 
+                this.viewerList = JSON.parse(JSON.stringify(listCopy))
+                this.setMoneyAll()
+                
+                console.log(this.viewerList)
+                this.loading = false
+                // this.$nextTick(()=>{
+                //     this.$refs.ruleForm11.clearValidate()
+                // })
+            } catch (error) {
+                console.error("error====",error)
+            }
             
-            console.log(this.viewerList)
-            this.loading = false
-            // this.$nextTick(()=>{
-            //     this.$refs.ruleForm11.clearValidate()
-            // })
         },
         /**  获取票务信息  */
         async selectRegionFun(params,seatTypeId){

+ 65 - 56
src/views/windowTicketSales/model/increaseViewers.vue

@@ -159,6 +159,9 @@
                         <el-radio label="7">窗口</el-radio>
                         <el-radio label="10">美团</el-radio>
                         <el-radio label="11">携程</el-radio>
+                        <el-radio label="13">抖音</el-radio>
+                        <el-radio label="14">猫眼</el-radio>
+                        <el-radio label="15">去哪儿</el-radio>
                     </el-radio-group>
                 </el-form-item>
                 <el-form-item v-if="ruleForm.source && ruleForm.source != 7" label="核销码/订单码" prop="orderIdOrQrCode">
@@ -197,6 +200,7 @@
                     payStatus==3 ? '现金支付记录入库失败,请重新提交' : '未知状态' }}
                 </span>
                 <!-- 重新生成订单 1  -->
+                <!-- <el-button v-if="payStatus==1" @click="payStatus = null" type="primary">修改信息</el-button> -->
                 <el-button v-if="payStatus==1" @click="orderInfoSubmitFun()" type="primary">重新生成订单</el-button>
                 <!-- 扫码支付 2 -->
                 <el-button v-if="payStatus==2" @click="vbar_open(orderId)" type="success">扫码支付</el-button>
@@ -322,64 +326,69 @@ import {
     },
     methods: {
         async initData(list,params){
-            this.websocketClear()
-            this.idcardLoading = false
-            this.ruleForm = {
-                performId: "", // 剧目ID
-                retailId: "", // 分销ID
-                goodsList: [], // 商品列表
-                auditoriumId: "", // 演出厅ID
-                performTimeId: "", // 场次时段ID
-                seatTypeId: "", // 座位类型ID
-                source: '', // 订单来源
-                purchaser: {},// 购票人信息
-                viewerList: [], // 观影人列表
-                orderIdOrQrCode: '',
-                paymentType: '', // 支付方式
-                small: '',// 实付金额
-                realPrice: '', // 实付金额
-            }
-            this.payStatus = null
-            this.orderId = null
-            this.websocket_connected = false
-            this.dialogVisible = true
-            this.loading = true
-            this.actionIndex = null
-            this.viewerList = []
-            let perform = await this.selectRegionFun(params,list[0].seatTypeId)
-            console.log("perform===",perform)
-            // let perform = {
-            //     money: 1,
-            //     name: '普通票'
-            // }
-            let listCopy = []
-            let listCopy1 = []
-            list.forEach((item,index)=>{
-                listCopy.push({
-                    id: index+1,
-                    name: '', // 姓名
-                    mobile: '', // 电话
-                    idcard: '', // 身份证
-                    identity: '', // 观影人身份
-                    remark: '', // 备注信息
-                    salePrice: perform.money, // 原价
-                    realPrice: perform.money, // 实付金额
-                    seatId: item.id, // 座位ID
-                    seatName: item.name?item.name:'暂无命名', // 座位名称
-                    seatType: perform.seatTypeId, // 座位类型
-                    seatTypeId: perform.seatTypeId,
-                    seatTypeName: perform.seatTypeName,
+            try {
+                this.websocketClear()
+                this.idcardLoading = false
+                this.ruleForm = {
+                    performId: "", // 剧目ID
+                    retailId: "", // 分销ID
+                    goodsList: [], // 商品列表
+                    auditoriumId: "", // 演出厅ID
+                    performTimeId: "", // 场次时段ID
+                    seatTypeId: "", // 座位类型ID
+                    source: '', // 订单来源
+                    purchaser: {},// 购票人信息
+                    viewerList: [], // 观影人列表
+                    orderIdOrQrCode: '',
+                    paymentType: '', // 支付方式
+                    small: '',// 实付金额
+                    realPrice: '', // 实付金额
+                }
+                this.payStatus = null
+                this.orderId = null
+                this.websocket_connected = false
+                this.dialogVisible = true
+                this.loading = true
+                this.actionIndex = null
+                this.viewerList = []
+                let perform = await this.selectRegionFun(params,list[0].seatTypeId)
+                console.log("perform===",perform)
+                // let perform = {
+                //     money: 1,
+                //     name: '普通票'
+                // }
+                let listCopy = []
+                let listCopy1 = []
+                list.forEach((item,index)=>{
+                    listCopy.push({
+                        id: index+1,
+                        name: '', // 姓名
+                        mobile: '', // 电话
+                        idcard: '', // 身份证
+                        identity: '', // 观影人身份
+                        remark: '', // 备注信息
+                        salePrice: perform.money, // 原价
+                        realPrice: perform.money, // 实付金额
+                        seatId: item.id, // 座位ID
+                        seatName: item.name?item.name:'暂无命名', // 座位名称
+                        seatType: perform.seatTypeId, // 座位类型
+                        seatTypeId: perform.seatTypeId,
+                        seatTypeName: perform.seatTypeName,
+                    })
                 })
-            })
-            //this.goodsList = 
-            this.viewerList = JSON.parse(JSON.stringify(listCopy))
-            this.setMoneyAll()
+                //this.goodsList = 
+                this.viewerList = JSON.parse(JSON.stringify(listCopy))
+                this.setMoneyAll()
+                
+                console.log(this.viewerList)
+                this.loading = false
+                this.$nextTick(()=>{
+                    this.$refs.ruleForm11.clearValidate()
+                })
+            } catch (error) {
+                console.error("error====",error)
+            }
             
-            console.log(this.viewerList)
-            this.loading = false
-            this.$nextTick(()=>{
-                this.$refs.ruleForm11.clearValidate()
-            })
         },
         /**  获取票务信息  */
         async selectRegionFun(params,seatTypeId){