Commit cc0c605b authored by Anderson519's avatar Anderson519

1

parent 771d5fd2
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport><title>途比达后台管理系统</title><link rel="shortcut icon" type=image/x-icon href=static/icon.ico><script src=base.js></script><script src=./static/base.js></script><link href=/css/app.8e83f1f29e55c543a76c82d0580ad850.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/js/manifest.931596ea92f7c98432be.js></script><script type=text/javascript src=/js/app.97ffec196e3329667ff7.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport><title>途比达后台管理系统</title><link rel="shortcut icon" type=image/x-icon href=static/icon.ico><script src=base.js></script><script src=./static/base.js></script><link href=/css/app.5f56f38831bb5d49b56dfa1e04e2d126.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/js/manifest.f367964cec2a16b096f9.js></script><script type=text/javascript src=/js/app.97ffec196e3329667ff7.js></script></body></html>
\ No newline at end of file \ No newline at end of file
webpackJsonp([4],{"/8q3":function(e,t,r){r("20tZ"),e.exports=-9007199254740991},"20tZ":function(e,t,r){var s=r("uSC2");s(s.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},"6yUe":function(e,t,r){r("GLtp"),e.exports=9007199254740991},AUUs:function(e,t,r){"use strict";(function(e){var s=r("aA9S"),i=r.n(s),a=r("3cXf"),o=r.n(a),n=r("4YfN"),c=r.n(n),d=r("8p6T"),l=r("zat1"),u=r("GYc6"),h=r("cxdB"),p=r("eeyJ"),m=r("GZf/"),y=r("hG4X"),f=r("oaxN"),v=r("RwQt"),b=r("nBy1"),g=r("uRfC"),T=r("bSIt");t.a={props:["priceType"],data:function(){return{saleChangePrice:!0,extraServers:[],showServer:!1,fieldsList:[],saleType:"",saleTypeList:[],isLoading:!0,haomiao:6e7,timess:null,TeamTickets:!1,time:null,custom:"",ChannelName:[],Allchannels:[],selectChannel:{},SelectChannelsList:[],totalAmount:0,displaySetup:!1,readonly:!0,border:0,phoneshow:!1,authshow:!1,maxshow:!1,tickshow:!1,index:0,tourGuide:{},payModelList:[],obj:{order:{mergerOrder:(0===this.priceType.groupType?JSON.parse(localStorage.getItem("mergeOrderStatus0")):JSON.parse(localStorage.getItem("mergeOrderStatus1")))||0,patchOrder:0,channelOrderId:"",carCode:"",leaderName:"",leaderId:"",orderCheckDate:"",buyNum:1,salePricePayTotal:0,companyId:this.$store.state.companyId,saleId:"",payType:"0",salePricePayedTotal:"",playDateFrom:"",subscribeDateFrom:"",channelId:"",saleCheckId:"",saleCheckMobile:"",payTypeCode:null},visitors:[]},pageTotal:0,pageshow:!1,product:{saleType:"",notStoreVisible:0,date:this.$commonJs.today(),pageIndex:1,pageSize:18,priceTypeId:"t5",batchDateFrom:this.$commonJs.today()+" 00:00:00",batchDateTo:this.$commonJs.today()+" 23:59:59",channelId:"",deBug:!0},prise:"",oldPrise:"",products:[],products2:[],PrinterList:[],printdata:"",allnum:"",succ:"",todaynum:0,todaymoney:0,newnumm:[],printModel:[],prinmode:JSON.parse(this.$store.state.config).printId,printModelObj:{companyId:this.$store.state.companyId,deviceType:this.$store.state.deviceType,deviceId:this.$store.state.deviceId,configs:[{configKey:"printId",configValue:JSON.parse(this.$store.state.config).printId}]},discounts:{},condition:!0,isShowQrcode:!1,qrcodeContent:"",waitPayStatusTips:"正在等待支付...",requestTimer:null,orderInfo:null,isShowScanningGun:!1,isCancelOrder:!1}},methods:c()({},Object(T.b)(["updateTourGuide"]),{closeServer:function(){this.showServer=!1},changeS:function(){var e=this;this.saleType="",this.product.notStoreVisible?this.$confirm("此操作将永久:不会排号,不能过闸,不会扣库存,是否继续?","提示",{cancelButtonText:"取消",confirmButtonText:"确定",type:"warning"}).then(function(){e.obj.order.patchOrder=1,e.getproduct(),e.$message({type:"success",message:"成功!"})}).catch(function(){e.obj.order.patchOrder=0,e.product.notStoreVisible=0,e.getproduct(),e.$message({type:"info",message:"已取消删除"})}):(this.obj.order.patchOrder=0,this.obj.order.playDateFrom="",this.getproduct())},cccc:function(){this.obj.visitors=[],this.updateTourGuide({}),1===this.priceType.groupType&&1===this.discounts.saleGroupLeader?this.draw():this.TeamTickets=!0},draw:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in this.tourGuide=e,console.log(this.tourGuide),this.TeamTickets=!1,e)this.obj.order[t]=e[t];this.ticketIssue(!1)},datas:function(e){this.TeamTickets=e},data:function(e){this.displaySetup=e},mergerOrderChange:function(e){this.clearInter(),0===this.priceType.groupType?localStorage.setItem("mergeOrderStatus0",e):localStorage.setItem("mergeOrderStatus1",e)},getPrintModel:function(){var e=this;this.axios.post(this.getProductUrl("print/query"),{companyId:this.$store.state.companyId}).then(function(t){"00"===t.data.code&&(e.printModel=t.data.data)})},model:function(e){var t=this;this.printModelObj.configs[0].configValue=e,this.axios.post(this.getSystem("config/save"),this.printModelObj).then(function(e){"00"==e.data.code&&(t.$message({message:"选择成功",type:"success"}),t.$commonJs.printModel(e.data.data,t))})},selectChannelChange:function(e){var t=this;this.clearInter(),this.saleType="",this.obj.order.channelOrderId="",this.custom="";var r=this.Allchannels.filter(function(t,r){return t.priceTypeId===e});this.selectChannel=r[0],setTimeout(function(){t.add(t.obj.order.buyNum)},1e3)},handleSelectcustom:function(e){this.obj.order.channelOrderId="",this.obj.order.channelId=e.channelId||"",this.product.channelId=e.channelId||"",this.saleType="",this.getproduct()},querySearchAsynccustom:function(e,t){var r=this;e||(this.obj.order.channelId="",this.product.channelId="");var s=0===this.ChannelName.length?this.Allchannels[0].channels:this.ChannelName[0].channels;s.forEach(function(e,t){r.$set(e,"value",e.companyName)});var i=e?s.filter(this.createStateFiltercustom(e)):s;clearTimeout(this.time),this.time=setTimeout(function(){t(i)},500*Math.random())},createStateFiltercustom:function(e){return function(t){return-1!==t.value.toLowerCase().indexOf(e.toLowerCase())}},gai:function(e){this.obj.order.salePricePayedTotal=e.target.value,this.obj.order.salePriceTotal=e.target.value},gaiprise:function(e){e?(this.readonly=!1,this.border="1px solid #cccccc"):(this.readonly=!0,this.border=0)},setVisitorField:function(e,t,r,s){var i=(e.checkField||{})[r]||{};(t[i.fieldId]=s,i.fieldInput)?t[i.fieldInput]=s:(t.fields=t.fields||[]).push({fieldId:i.fieldId,fieldValue:s})},initCheckField:function(e){var t=e.fields||[];if(null==e.checkField){for(var r={},s=0;s<t.length;s++){var i=t[s]||{};0!=i.inputType&&(r[i.fieldId]=i,i.fieldInput&&(r[i.fieldInput]=i))}e.checkField=r}},checkVistorField:function(e,t){return this.initCheckField(e),((e.checkField||{})[t]||{}).inputType||0},checkMobileInput:function(e){return this.checkVistorField(e,"visitorMobile")},checkIdInput:function(e){return this.checkVistorField(e,"visitorCardId")},checkVisitorNum:function(e,t,r){this.initCheckField(e);var s=0;switch(r=r||[],e.saleCheckId||0){case 1:s=1;break;case 2:s=t}return r.length>=s},checkCardRepeat:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.initCheckField(e);for(var r=(e.fields||[]).filter(function(e){return e.inputType>0}),s={},i=0;i<t.length;i++)for(var a=t[i],o=0;o<r.length;o++){var n=r[o],c=a[n.fieldInput||n.fieldId];if(0==n.fieldType&&c){var d=s[n.fieldId]=s[n.fieldId]||{};if(d[c])return this.$message.error("证件:"+n.fieldName+c+"重复"),!1;d[c]=!0}}return!0},checkVisitorOrder:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!this.checkVisitorNum(e,t,r))return this.$message.error("请输入游客信息"),!1;for(var s=(e.fields||[]).filter(function(e){return e.inputType>0}),i={},a=0;a<r.length;a++)for(var o=r[a]||{},n=0;n<s.length;n++){var c=s[n]||{},d=o[c.fieldInput||c.fieldId];if(0==c.fieldType&&!d){var l=i[c.fieldId]=i[c.fieldId]||{};if(l[d])return this.$message.error("证件"+c.fieldName+d+"重复"),!1;l[d]=!0}if(1==c.inputType&&!d&&0!==d&&c.fieldId>7&&20!=c.fieldId)return this.$message.error("请输入"+c.fieldName),!1}return!0},addVisitor:function(e){var t=this,r=this.obj||{},s=r.order||{},a=r.visitors||[];e.visitorMobile=e.visitorMobile||r.visitorPhone,a.unshift(e),this.checkCardRepeat(this.fieldsList,a)?this.checkVisitorNum(this.fieldsList,s.buyNum,a)&&this.checkVisitorOrder(this.fieldsList,s.buyNum,a)&&(this.obj.childOrders=[],window.serverList.length>0&&window.serverList.forEach(function(e,r){var s=JSON.parse(o()(t.obj.order)),a={buyNum:e.buyNum,saleId:e.saleId,salePricePayTotal:Object(g.a)(e.buyNum,e.salePricePay),salePricePayedTotal:Object(g.a)(e.buyNum,e.salePricePay),salePriceTotal:Object(g.a)(e.buyNum,e.salePricePay)},n={order:i()(s,a)};t.obj.childOrders.push(n)})):a.pop()},chck:function(e,t,r){var s=this;this.clearInter(),this.fieldsList=t,this.gaiprise(t.saleChangePrice),this.discounts=t,this.index=r.batchId+r.saleId,this.obj.order.channelOrderId="",this.obj.order.salePricePayTotal=Object(g.a)(t.salePricePay,this.obj.order.buyNum),this.obj.order.salePricePayedTotal=Object(g.a)(t.salePricePay,this.obj.order.buyNum),this.obj.order.salePriceTotal=Object(g.a)(t.salePricePay,this.obj.order.buyNum),this.obj.order.saleCheckId=t.saleCheckId,this.obj.order.saleCheckMobile=t.saleCheckMobile,this.prise=t.salePricePay,this.oldPrise=t.salePricePay,t.discountsList.length>0&&t.discountsList.forEach(function(e){1==e.buyNum&&(s.obj.order.salePricePayedTotal=Object(g.a)(e.salePricePay,s.obj.order.buyNum),s.obj.order.salePricePayTotal=Object(g.a)(e.salePricePay,s.obj.order.buyNum),s.obj.order.salePriceTotal=Object(g.a)(e.salePricePay,s.obj.order.buyNum),s.prise=e.salePricePay,s.oldPrise=e.salePricePay)}),this.obj.order.saleId=t.saleId,this.obj.order.subscribeDateFrom=r.batchDateFrom,this.product.date===this.$commonJs.today()?this.obj.order.playDateFrom=r.batchDateFrom:this.obj.order.playDateFrom=this.product.date+" 00:00:00"},dates:function(e){this.product.batchDateFrom=e+" 00:00:00",this.product.batchDateTo=e+" 23:59:59",this.saleType="",this.getproduct()},add:function(e){var t=this;if(this.clearInter(),this.obj.order.channelOrderId="",0!=this.discounts.discountsList.length){this.discounts.discountsList.forEach(function(r){e>=r.buyNum&&(t.prise=r.salePricePay,t.obj.order.salePricePayTotal=Object(g.a)(e,t.prise),t.obj.order.salePricePayedTotal=Object(g.a)(e,t.prise),t.obj.order.salePriceTotal=Object(g.a)(e,t.prise))});var r=Math.min.apply(Math,this.discounts.discountsList.map(function(e){return e.buyNum}));e<r&&(this.obj.order.salePricePayTotal=Object(g.a)(e,this.oldPrise),this.obj.order.salePricePayedTotal=Object(g.a)(e,this.oldPrise),this.obj.order.salePriceTotal=Object(g.a)(e,this.oldPrise))}else this.obj.order.salePricePayTotal=Object(g.a)(e,this.prise),this.obj.order.salePricePayedTotal=Object(g.a)(e,this.prise),this.obj.order.salePriceTotal=Object(g.a)(e,this.prise)},pagess:function(e){this.product.pageIndex=e,this.pageData()},pageData:function(){var e=this;this.axios.post(this.getStoreUrl("time/querySale"),this.product).then(function(t){"00"==t.data.code&&(e.products=t.data.data.list,e.pageshow=!0,e.products.forEach(function(t){t.scenes.forEach(function(t){t.myId=e.$commonJs.randoms()})}))})},dataOrder:function(){return window.order=window.order||{},window.order},interval:function(){var e=this;!function t(){e.timess=setTimeout(function(){e.SoTheChannel(),t()},e.haomiao)}()},clearInter:function(){clearTimeout(this.timess),this.interval()},ticketIssue:function(e){var t=this,r=this;if(this.condition)if(!this.product.notStoreVisible||this.obj.order.playDateFrom){e&&(this.$store.state.tourGuide={});var s=this.dataOrder();s.visitorPhone="",s.sale=this.fieldsList,s.orderObj=this.obj,s.that=this;var i=this.obj.order,a=i.companyId,n=i.saleId;i.salePricePayTotal;if(""!=a&&""!=n)if(JSON.parse(this.$store.state.config).printer){if(this.obj.order.channelOrderId=this.$commonJs.randoms(),sessionStorage.setItem("phonObjs",o()(this.obj)),0==this.products.length)return;var c=this.products.findIndex(function(e){return t.obj.order.saleId==e.saleId});if(this.extraServers=JSON.parse(o()(this.products[c].services)),window.serverList=this.products[c].services,this.extraServers.length>0)return void(this.showServer=!0);if(0===this.checkMobileInput(this.fieldsList)||this.obj.visitors.length)if(this.checkVisitorNum(this.fieldsList,this.obj.order.buyNum,this.obj.visitors)){!function e(){if(t.condition=!1,"6"==t.obj.order.payType){if(!t.obj.order.payTypeCode){console.log("胖丁扫码枪"),t.isShowScanningGun=!0;var s=JSON.parse(t.$store.state.config);return Scan.init(s.HardConfig,function(e){r.isShowScanningGun&&r.$message.error(e)},function(t,s){r.isShowScanningGun&&(r.obj.order.payTypeCode||(r.obj.order.payTypeCode=s.ScanCode,r.waitPayStatusTips="扫码成功",console.log(r.obj),e()))},1),!1}t.waitPayStatusTips="正在等待支付..."}!function e(){t.axios.post(t.getOrderUrl("order/save"),t.obj,{__retryCount:3}).then(function(e){t.condition=!0;var r=e.data||{};if(r.code,"00"!=r.code)return t.obj.order.payTypeCode=null,t.$message.error(r.message);var s=e.data.data,i=s.order;t.orderInfo=s.order;var a=s.pays[0]||null;if("5"==t.obj.order.payType){if(!a)return t.$message.error(e.data.message);var o=JSON.parse(a.channelPayInfo);return t.qrcodeContent=o.PayCode,t.isShowQrcode=!0,void t.openScanQrcodeHandle({companyId:i.companyId,orderId:i.orderId},"isShowQrcode")}if("6"==t.obj.order.payType)return a?(t.openScanQrcodeHandle({companyId:i.companyId,orderId:i.orderId},"isShowScanningGun"),!1):t.$message.error(e.data.message);t.obj.visitors=[],t.obj.visitorPhone="",t.authshow=!1,t.printTickets(r),document.location.reload()}).catch(function(r){t.condition=!0,t.$message.error(err),setTimeout(function(){e()},3e3)})}()}()}else this.authshow=!0;else this.phoneshow=!0}else this.$message.error("打印机名为空,请配置打印机");else this.$message.error("当前未选择票类型,不能出票")}else this.$message.error("请选择补单时间!")},ticketIssue2:function(e){var t=this,r=this;if(this.condition)if(!this.product.notStoreVisible||this.obj.order.playDateFrom){e&&(this.$store.state.tourGuide={});var s=this.dataOrder();s.visitorPhone="",s.sale=this.fieldsList,s.orderObj=this.obj,s.that=this;var a=this.obj.order,n=a.companyId,c=a.saleId;a.salePricePayTotal;if(""!=n&&""!=c)if(JSON.parse(this.$store.state.config).printer)if(this.obj.order.channelOrderId=this.$commonJs.randoms(),sessionStorage.setItem("phonObjs",o()(this.obj)),0===this.checkMobileInput(this.fieldsList)||this.obj.visitors.length)if(this.checkVisitorNum(this.fieldsList,this.obj.order.buyNum,this.obj.visitors)){!function e(){if(t.condition=!1,"6"==t.obj.order.payType){if(!t.obj.order.payTypeCode){console.log("胖丁扫码枪"),t.isShowScanningGun=!0;var s=JSON.parse(t.$store.state.config);return Scan.init(s.HardConfig,function(e){r.isShowScanningGun&&r.$message.error(e)},function(t,s){r.isShowScanningGun&&(r.obj.order.payTypeCode||(r.obj.order.payTypeCode=s.ScanCode,r.waitPayStatusTips="扫码成功",console.log(r.obj),e()))},1),!1}t.waitPayStatusTips="正在等待支付..."}t.obj.childOrders=[],window.serverList.length>0&&window.serverList.forEach(function(e,r){var s=JSON.parse(o()(t.obj.order)),a={buyNum:e.buyNum,saleId:e.saleId,salePricePayTotal:Object(g.a)(e.buyNum,e.salePricePay),salePricePayedTotal:Object(g.a)(e.buyNum,e.salePricePay),salePriceTotal:Object(g.a)(e.buyNum,e.salePricePay)},n={order:i()(s,a)};t.obj.childOrders.push(n)});!function e(){t.axios.post(t.getOrderUrl("order/save"),t.obj,{__retryCount:3}).then(function(e){t.condition=!0;var r=e.data||{};if(r.code,"00"!=r.code)return t.obj.order.payTypeCode=null,t.$message.error(r.message);var s=e.data.data,i=s.order;t.orderInfo=s.order;var a=s.pays[0]||null;if("5"==t.obj.order.payType){if(!a)return t.$message.error("订单返回数据格式错误,不包含支付信息");var o=JSON.parse(a.channelPayInfo);return t.qrcodeContent=o.PayCode,t.isShowQrcode=!0,void t.openScanQrcodeHandle({companyId:i.companyId,orderId:i.orderId},"isShowQrcode")}if("6"==t.obj.order.payType)return a?(t.openScanQrcodeHandle({companyId:i.companyId,orderId:i.orderId},"isShowScanningGun"),!1):t.$message.error("订单返回数据格式错误,不包含支付信息");t.obj.visitors=[],t.obj.visitorPhone="",t.authshow=!1,t.printTickets(r)}).catch(function(r){t.condition=!0,t.$message.error(err),setTimeout(function(){e()},3e3)})}()}()}else this.authshow=!0;else this.phoneshow=!0;else this.$message.error("打印机名为空,请配置打印机");else this.$message.error("当前未选择票类型,不能出票")}else this.$message.error("请选择补单时间!")},PrintError:function(e){var t=this;this.succ=!0,setTimeout(function(){t.tickshow=!1,t.succ=!1},100);var r=e&&(e.msg||e.Msg)||e;alert(r)},__Printed:function(){var e=this;this.succ=!0,window.order={},this.obj.order=this.obj.order||{},this.obj.order.buyNum=1,this.obj.order.channelOrderId="",this.obj.visitorPhone="",this.obj.visitors=[],setTimeout(function(){e.tickshow=!1,e.maxshow=!1,e.succ=!1},1e3),this.gettoday(),this.getproduct()},__PrintIteming:function(e){this.tickshow=!0,this.printdata=e.Data.Pos,this.allnum=e.Data.Count},loadPrint:function(){var t=this;function r(r){r=r||[];var s=[];e.each(r,function(e,t){s.push({id:t,name:t})}),t.Rendering(s)}try{Base.getHard().getPrinter(function(e){r(e)},function(e){r()})}catch(e){r()}},Rendering:function(e){0!=e.length?this.PrinterList=e:this.PrinterList=[{name:"暂无打印机",id:""},{name:"Microsoft XPS Document Writer",id:"Microsoft XPS Document Writer"}]},closephone:function(e){this.phoneshow=e},phonOk:function(){this.phoneshow=!1,this.authshow=!0},auclose:function(){this.obj.visitors=[],this.obj.visitorPhone="",this.obj.order.payTypeCode=null,this.authshow=!1},augoup:function(){this.authshow=!1,this.phoneshow=!0,this.obj.visitors=[]},ticket:function(e){this.maxshow=!1,this.tickshow=!0},fanhui:function(){this.maxshow=!1,this.authshow=!0},tik:function(e){this.tickshow=!0,this.authshow=!1},manual:function(){this.authshow=!1,this.maxshow=!0},maxclose:function(){this.maxshow=!1,this.obj.visitors=[],this.obj.visitorPhone="",this.obj.order.payTypeCode=null},tickclose:function(){this.tickshow=!1},getproduct:function(){var e=this;this.axios.post(this.getStoreUrl("time/querySale"),this.product,{isLoading:this.isLoading}).then(function(t){if("00"!=t.data.code)return!1;if(0==t.data.data.list.length)return e.saleChangePrice=!1,e.products=[],e.products2=[],e.$message.error("暂无当前票种!"),!1;e.saleChangePrice=t.data.data.list.saleChangePrice;var r=t.data.data.list.filter(function(e){return 1!=e.saleServiceType}),s=null,i=((e.obj||{}).order||{}).saleId||"";if(e.products=r.filter(function(e,t){var r=(e.scenes||[]).length>0;return!r||i!=e.saleId&&null!=s||(s=e),r}),e.products2=r.filter(function(e,t){if(0!==!e.scenes.length)return e}),e.fieldsList=r.find(function(e,t){return e.scenes.length>0}),0!=e.products.length&&(e.extraServers=s.services,window.serverList=s.services,e.obj.order.saleId=s.saleId,e.discounts=s,e.obj.order.salePricePayedTotal=s.salePricePay,e.obj.order.salePricePayTotal=Object(g.a)(s.salePricePay,e.obj.order.buyNum),e.gaiprise(s.saleChangePrice),e.obj.order.salePriceTotal=s.salePricePay,e.obj.order.saleCheckId=s.saleCheckId,e.obj.order.saleCheckMobile=s.saleCheckMobile,e.prise=s.salePricePay,e.oldPrise=s.salePricePay,s.discountsList.length>0&&s.discountsList.forEach(function(t){1==t.buyNum&&(e.obj.order.salePricePayedTotal=t.salePricePay,e.obj.order.salePricePayTotal=Object(g.a)(t.salePricePay,e.obj.order.buyNum),e.obj.order.salePriceTotal=t.salePricePay,e.prise=t.salePricePay,e.oldPrise=t.salePricePay)}),e.pageshow=!0,e.pageTotal=t.data.data.pageTotal,0!=s.scenes.length)){e.obj.order.subscribeDateFrom=s.scenes[0].batchDateFrom,e.product.date==e.$commonJs.today()?e.obj.order.playDateFrom=s.scenes[0].batchDateFrom:e.obj.order.playDateFrom=e.product.date+" 00:00:00";var a=s.scenes[0];e.index=a.batchId+a.saleId}})},gettoday:function(){var e=this;this.axios.post(this.getOrderUrl("order/getDay"),{pageSize:1}).then(function(t){"00"==t.data.code&&(e.todaynum=t.data.main.buyNum,e.todaymoney=t.data.main.salePricePayTotal,e.newnumm=t.data.data.list)})},chong:function(e){var t=this;if(this.condition){var r={orderId:e.orderId,all:!0};""==this.obj.order.printer?this.$message.error("请选择打印机"):(this.condition=!1,this.axios.post(this.getOrderUrl("order/load"),r).then(function(e){var r=e.data||{};t.$commonJs.printRes(r,t,Base,t.PrintError,t.__Printed,t.__PrintIteming),t.condition=!0}))}},SoTheChannel:function(){var e=this;0!==this.products.length&&(this.isLoading=!1),this.axios.post(this.getSystem("channel/windowList"),this.priceType,{isLoading:this.isLoading}).then(function(t){"00"===t.data.code?(e.Allchannels=t.data.data,e.selectChannel=e.Allchannels[0]):e.$message.error(t.data.message)})},initTicketType:function(){var e=this,t={companyId:this.companyId,enumType:"saleType",pageIndex:1,pageSize:this.$pageSize};this.axios.post(this.getSystem("systemEnum/drop"),t).then(function(t){"00"==t.data.code?e.saleTypeList=t.data.data:e.$message.error(t.data.message)})},chooseTicket:function(e){this.products2.length>0&&(this.products=this.products2.filter(function(t){return t.saleType==e}))},selectChannelsItemChange:function(e){var t=this;this.obj.order.channelId=e,this.product.channelId=e,this.getproduct();var r=this.SelectChannelsList.filter(function(t){return t.channelId==e});if(0==r.length)return this.payModelList=[],void(this.obj.order.payType="");var s=r[0];if(this.payModelList=s.payTypes,0!=this.payModelList.length){if(0==this.payModelList.filter(function(e){return e.payedType==t.selectChannel.payedType}).length)this.obj.order.payType=this.payModelList[0].payedType;else this.obj.order.payType=this.selectChannel.payedType+"",-1===this.payModelList.findIndex(function(e){return e.payedType===t.obj.order.payType})&&(this.obj.order.payType=this.payModelList[0].payedType);this.totalAmount=s.moneyVo.totalAmount,setTimeout(function(){t.add(t.obj.order.buyNum)},1e3)}else this.obj.order.payType=""},selectPayModelChange:function(e){this.obj.order.payType=e},openScanQrcodeHandle:function(e,t){var r=this;if(window.clearTimeout(this.requestTimer),!this.isCancelOrder&&e){var s={order:e};this.axios.post(this.getOrderUrl("order/wait"),s,{isLoading:!1}).then(function(s){var i=s.data;if("00"!=i.code)return r.$message.error(i.message);r[t]&&((i.data.order||{}).orderStatus<4?r.requestTimer=window.setTimeout(function(){r.openScanQrcodeHandle(e,t)},500):(window.clearTimeout(r.requestTimer),r.waitPayStatusTips="支付完成",r.isShowQrcode=!1,r.isShowScanningGun=!1,r.waitPayStatusTips="正在等待支付...",r.printTickets(i)))}).catch(function(s){window.clearTimeout(r.requestTimer),r.$message.error(s),r.requestTimer=window.setTimeout(function(){r.openScanQrcodeHandle(e,t)},500)})}},closeScanQrcodeHandle:function(){var e=this;if(this.condition=!0,this.isShowQrcode=!1,this.isShowScanningGun=!1,this.isCancelOrder=!0,window.clearTimeout(this.requestTimer),this.orderInfo){var t={order:{orderId:this.orderInfo.orderId,companyId:this.orderInfo.companyId}};this.axios.post(this.getOrderUrl("order/cancel"),t).then(function(t){e.isCancelOrder=!1;var r=t.data;if("00"!=r.code)return e.$message.error(r.message);e.orderInfo=null,e.obj.visitors=[],e.obj.visitorPhone=""}).catch(function(t){console.log("请求失败"),window.clearTimeout(e.requestTimer),e.requestTimer=window.setTimeout(function(){e.closeScanQrcodeHandle()},1e3)},1e3)}},closeScanningGunHandle:function(){this.isShowScanningGun=!1,this.obj.order.payTypeCode=null,this.condition=!0,this.waitPayStatusTips="正在等待支付...",this.closeScanQrcodeHandle()},printTickets:function(e){this.obj.visitors=[],this.obj.visitorPhone="",this.obj.order.payTypeCode=null,this.orderInfo=null,this.$commonJs.printRes(e,this,Base,this.PrintError,this.__Printed,this.__PrintIteming)},closePayQrcodeHandle:function(){console.log("关闭"),this.isShowScanningGun=!1,this.isShowQrcode=!1,this.condition=!0,this.waitPayStatusTips="正在等待支付...",window.clearTimeout(this.requestTimer)},scanDevice:function(){}}),components:{phone:d.a,authent:l.a,maxual:u.a,ticketIssue:h.a,pages:m.a,localSettings:y.a,TeamTicket:f.a,breadNav:v.default,plusServer:p.a,scanQrcode:b.a},created:function(){this.SoTheChannel(),this.loadPrint(),this.gettoday(),this.getPrintModel(),this.initTicketType()},mounted:function(){},watch:{selectChannel:function(e){var t=this;if(this.SelectChannelsList=e.channels,this.product.priceTypeId=e.priceTypeId,this.obj.order.payType=e.payedType+"",0==this.SelectChannelsList.length)return this.products=[],void(this.products2=[]);var r=this.SelectChannelsList[0];this.payModelList=r.payTypes,-1===this.payModelList.findIndex(function(e){return e.payedType===t.obj.order.payType})&&(this.obj.order.payType=this.payModelList[0].payedType),this.custom=r.channelId,this.product.channelId=r.channelId,this.obj.order.channelId=r.channelId,this.getproduct(),this.totalAmount=r.moneyVo.totalAmount}},beforeDestroy:function(){clearTimeout(this.timess),this.timess=null}}}).call(t,r("SXXC"))},AttR:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s={data:function(){return{priceType:{channelFromKey:"computer",companyId:this.$store.state.companyId,groupType:1}}},components:{TheDrawerComponents:r("H62i").a},methods:{dianji:function(){this.$refs.mychild.cccc()}}},i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("TheDrawerComponents",{ref:"mychild",attrs:{priceType:this.priceType}},[t("button",{on:{click:this.dianji}},[this._v("团队出票")])])},staticRenderFns:[]};var a=r("C7Lr")(s,i,!1,function(e){r("rnDA")},null,null);t.default=a.exports},GLtp:function(e,t,r){var s=r("uSC2");s(s.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},H62i:function(e,t,r){"use strict";var s=r("AUUs"),i={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"bigBox"},[r("breadNav",[e._v("窗口售票")]),e._v(" "),r("div",{staticClass:"tab"},[r("div",[r("p",[e._v("最新记录")]),e._v(" "),r("p",[r("span",[e._v("今日售票量:"),r("i",[e._v(e._s(e.todaynum))]),e._v("张")]),r("span",[e._v("金额:"),r("i",[e._v(e._s(e.todaymoney))]),e._v("元")])])]),e._v(" "),e._l(e.newnumm,function(t,s){return r("div",{key:s},[r("p",[e._v(e._s(t.productName))]),e._v(" "),r("p",[e._v(e._s(t.buyNum)+"张")]),e._v(" "),r("p",[e._v(e._s(t.salePricePayTotal)+"元")]),e._v(" "),r("p",[e._v(e._s(t.createDate))]),e._v(" "),r("p",{staticClass:"chon",on:{click:function(r){return e.chong(t)}}},[e._v("重新打印")])])})],2),e._v(" "),r("div",{staticClass:"box"},[r("div",[r("div",{staticClass:"tit query-row"},[r("div",{staticClass:"query-item"},[r("span",[e._v("时间:")]),e._v(" "),r("el-date-picker",{attrs:{"prefix-icon":"none",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},on:{change:e.dates},model:{value:e.product.date,callback:function(t){e.$set(e.product,"date",t)},expression:"product.date"}})],1),e._v(" "),r("div",{staticClass:"query-item"},[r("span",[e._v("渠道类型:")]),e._v(" "),r("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:e.selectChannelChange},model:{value:e.product.priceTypeId,callback:function(t){e.$set(e.product,"priceTypeId",t)},expression:"product.priceTypeId"}},e._l(e.Allchannels,function(e,t){return r("el-option",{key:t,attrs:{label:e.priceTypeName,value:e.priceTypeId}})}),1)],1),e._v(" "),r("div",{staticClass:"query-item"},[r("span",[e._v("渠道名称:")]),e._v(" "),r("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:e.selectChannelsItemChange},model:{value:e.custom,callback:function(t){e.custom=t},expression:"custom"}},e._l(e.SelectChannelsList,function(e){return r("el-option",{key:e.channelId,attrs:{label:e.companyName,value:e.channelId}})}),1)],1),e._v(" "),r("div",{staticClass:"query-item"},[r("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.changeS},model:{value:e.product.notStoreVisible,callback:function(t){e.$set(e.product,"notStoreVisible",t)},expression:"product.notStoreVisible"}},[e._v(" "+e._s(e.obj.order.patchOrder?"补单时间":"补单"))]),e._v(" "),e.obj.order.patchOrder?r("el-date-picker",{attrs:{"prefix-icon":"none",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.obj.order.playDateFrom,callback:function(t){e.$set(e.obj.order,"playDateFrom",t)},expression:"obj.order.playDateFrom"}}):e._e()],1),e._v(" "),r("div",{staticClass:"chu query-item"},[e._t("default"),e._v(" "),r("button",{staticStyle:{"margin-left":"0.1rem"},on:{click:function(t){e.displaySetup=!0}}},[e._v("\n 设置\n ")])],2)]),e._v(" "),r("div",{staticClass:"num query-row"},[r("div",{staticClass:"query-item"},[r("span",[e._v("数量:")]),e._v(" "),r("el-input-number",{attrs:{min:1,label:"描述文字"},on:{change:e.add},model:{value:e.obj.order.buyNum,callback:function(t){e.$set(e.obj.order,"buyNum",t)},expression:"obj.order.buyNum"}})],1),e._v(" "),r("div",{staticClass:"query-item"},[r("span",{staticStyle:{display:"inline-block"}},[e._v("总票价:   ")]),e._v(" "),e.saleChangePrice?r("el-input",{staticClass:"no-border",attrs:{type:"text"},model:{value:e.obj.order.salePricePayTotal,callback:function(t){e.$set(e.obj.order,"salePricePayTotal",t)},expression:"obj.order.salePricePayTotal"}}):r("input",{directives:[{name:"model",rawName:"v-model",value:e.obj.order.salePricePayTotal,expression:"obj.order.salePricePayTotal"}],staticClass:"no-border",style:{border:e.border,paddingLeft:"10px"},attrs:{readonly:e.readonly},domProps:{value:e.obj.order.salePricePayTotal},on:{change:function(t){return e.gai(t)},input:function(t){t.target.composing||e.$set(e.obj.order,"salePricePayTotal",t.target.value)}}}),e._v("\n\n ")],1),e._v(" "),r("div",{staticClass:"query-item"},[r("span",[e._v("结算方式:")]),e._v(" "),r("el-select",{attrs:{placeholder:"请选择结算方式"},on:{change:e.selectPayModelChange},model:{value:e.obj.order.payType,callback:function(t){e.$set(e.obj.order,"payType",t)},expression:"obj.order.payType"}},e._l(e.payModelList,function(e){return r("el-option",{key:e.payedType,attrs:{label:e.payedTypeName,value:e.payedType}})}),1)],1),e._v(" "),r("div",{staticClass:"query-item",staticStyle:{width:"4rem"}},[r("p",{staticStyle:{display:"inline"}},[e._v("\n 余额:"),r("b",{staticStyle:{"font-weight":"bold"}},[e._v(e._s(e.totalAmount))]),e._v(" 元\n ")]),e._v(" "),r("p",{staticStyle:{display:"inline","margin-left":"0.3rem"}},[r("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.mergerOrderChange},model:{value:e.obj.order.mergerOrder,callback:function(t){e.$set(e.obj.order,"mergerOrder",t)},expression:"obj.order.mergerOrder"}},[e._v("单张出票")])],1)])])])]),e._v(" "),r("div",{staticClass:"allbox"},[r("div",{staticClass:"piao"},[r("p",{staticStyle:{"align-items":"center",display:"flex","margin-bottom":"0.1rem"}},[r("span",[e._v(" 票种: ")]),e._v(" "),r("el-select",{on:{change:function(t){return e.chooseTicket(e.product.saleType)}},model:{value:e.product.saleType,callback:function(t){e.$set(e.product,"saleType",t)},expression:"product.saleType"}},[r("el-option",{attrs:{label:"--所有--",value:""}}),e._v(" "),e._l(e.saleTypeList,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})],2)],1),e._v(" "),r("div",e._l(e.products,function(t,s){return r("div",{key:s},e._l(t.scenes,function(s,i){return r("div",{key:i,class:{dan:!0,hui:e.index==s.batchId+s.saleId},on:{click:function(r){return e.chck(i,t,s)}}},[r("div",[r("div",[e._v("\n "+e._s(t.productName)+"\n "),r("p",[0!=t.scenes.length?r("span",[e._v("\n "+e._s(s.batchDateFrom.slice(10,s.batchDateFrom.length-3))+"-"+e._s(s.batchDateTo.slice(10,s.batchDateTo.length-3))+"\n ")]):e._e()])]),e._v(" "),r("div",[e._v("¥"+e._s(t.salePricePay))])]),e._v(" "),r("p",{staticStyle:{display:"flex","justify-content":"space-between","padding-right":"0.2rem"}},[r("span",[e._v(" 库存:"+e._s(s.hasNum)+" ")]),e._v(" "),r("span",{staticStyle:{color:"#666666","font-size":"0.1rem"}},[e._v("\n "+e._s(t.saleTypeName)+"\n ")])])])}),0)}),0)]),e._v(" "),r("pages",{directives:[{name:"show",rawName:"v-show",value:e.pageshow,expression:"pageshow"}],attrs:{pagesize:e.product.pageSize,total:e.pageTotal},on:{page:e.pagess}})],1),e._v(" "),e.phoneshow?r("phone",{attrs:{tourGuide:e.tourGuide},on:{closed:e.closephone,phonOk:e.phonOk}}):e._e(),e._v(" "),e.authshow?r("authent",{attrs:{tourGuide:e.tourGuide,buyNum:e.obj.order.buyNum,fieldsList:e.fieldsList},on:{closed:e.auclose,goup:e.augoup,manual:e.manual,tik:e.tik}}):e._e(),e._v(" "),e.maxshow?r("maxual",{attrs:{fieldsList:e.fieldsList},on:{ticket:e.ticket,closed:e.maxclose}}):e._e(),e._v(" "),e.tickshow?r("ticketIssue",{attrs:{succ:e.succ},on:{closed:e.tickclose}},[r("span",{attrs:{slot:"pag"},slot:"pag"},[e._v(e._s(e.printdata))]),e._v(" "),r("span",{attrs:{slot:"num"},slot:"num"},[e._v(e._s(e.allnum))])]):e._e(),e._v(" "),e.displaySetup?r("localSettings",{attrs:{PrinterList:e.PrinterList,printModel:e.printModel},on:{data:e.data}}):e._e(),e._v(" "),e.TeamTickets?r("TeamTicket",{on:{datas:e.datas,draw:e.draw}}):e._e(),e._v(" "),e.showServer?r("plusServer",{attrs:{num:e.obj.order.buyNum,extraServers:e.extraServers},on:{close:function(t){return e.closeServer()}}}):e._e(),e._v(" "),r("el-dialog",{attrs:{width:"400",title:"请扫描二维码",center:"",visible:e.isShowQrcode,"close-on-click-modal":!1,"append-to-body":"","show-close":!1},on:{"update:visible":function(t){e.isShowQrcode=t},open:e.openScanQrcodeHandle,close:e.closePayQrcodeHandle}},[r("scan-qrcode",{attrs:{value:e.qrcodeContent}}),e._v(" "),r("p",{staticStyle:{"font-size":"0.18rem","text-align":"center",margin:"0.2rem 0"}},[e._v(e._s(e.waitPayStatusTips))]),e._v(" "),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"normal"},on:{click:e.closeScanQrcodeHandle}},[e._v("取消支付")])],1)],1),e._v(" "),r("el-dialog",{attrs:{width:"200",title:"胖丁扫码枪",center:"",visible:e.isShowScanningGun,"close-on-click-modal":!1,"append-to-body":"","show-close":!1},on:{"update:visible":function(t){e.isShowScanningGun=t},close:e.closePayQrcodeHandle}},[r("p",{staticStyle:{"font-size":"0.18rem","text-align":"center",margin:"0.2rem 0"}},[e._v(e._s(e.waitPayStatusTips))]),e._v(" "),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"normal"},on:{click:e.closeScanningGunHandle}},[e._v("取消支付")])],1)])],1)},staticRenderFns:[]};var a=function(e){r("fx+J")},o=r("C7Lr")(s.a,i,!1,a,"data-v-874cb54a",null);t.a=o.exports},K9HK:function(e,t){},aUYq:function(e,t,r){e.exports={default:r("6yUe"),__esModule:!0}},eeyJ:function(e,t,r){"use strict";var s=r("3cXf"),i=r.n(s),a={props:["num","extraServers"],data:function(){return{numbers:0,serverList:JSON.parse(i()(window.serverList)),getPriceList:[]}},methods:{close:function(){this.$emit("close")},next:function(){var e=this;this.serverList.length>0&&this.serverList.forEach(function(t,r){t.buyNum=e.numbers}),window.serverList=this.serverList,this.$emit("close"),this.$parent.ticketIssue2(!0)},numberChange:function(){for(var e=this,t=0;t<this.getPriceList.length;t++)this.extraServers[t].salePricePay=this.getSalePricePay(this.getPriceList[t],this.numbers);for(var r=function(t){var r=e.getPriceList.findIndex(function(r){return e.serverList[t].saleId==r.saleId});e.serverList[t].salePricePay=e.getSalePricePay(e.getPriceList[r],e.numbers)},s=0;s<this.serverList.length;s++)r(s)},getSalePricePay:function(e,t){for(var r=e.salePricePay||0,s=e.discountsList||[],i=null,a=0;a<s.length;a++){var o=s[a]||{};null==o||0==o.buyNum||(null==i||o.buyNum>i.buyNum)&&o.buyNum<=t&&(i=o)}return null!=i&&(r=i.salePricePay||0),r}},mounted:function(){var e=this;this.numbers=this.num,this.getPriceList=JSON.parse(i()(this.extraServers)),window.serverList.length>0&&window.serverList.forEach(function(t,r){t.buyNum=e.numbers}),this.numberChange(),console.log(this.serverList)}},o={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"server"},[r("div",{staticClass:"serverBox"},[r("p",{staticStyle:{position:"relative"}},[e._v("\n 增加服务\n "),r("span",{staticStyle:{position:"absolute",right:"20px",top:"5px","font-size":"0.24rem",color:"#666666","font-weight":"400",cursor:"pointer"},on:{click:e.close}},[e._v("x")])]),e._v(" "),r("div",{staticClass:"serverDiv"},[r("div",e._l(e.extraServers,function(t,s){return r("p",{key:s},[r("span",{staticStyle:{display:"inline-block",width:"2.2rem"}},[e._v(e._s(t.productName))]),e._v(" "),r("span",{staticStyle:{display:"inline-block",width:"0.7rem"}},[e._v(e._s(t.salePricePay)+"元/份")]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.serverList,expression:"serverList"}],attrs:{type:"checkbox"},domProps:{value:t,checked:Array.isArray(e.serverList)?e._i(e.serverList,t)>-1:e.serverList},on:{change:[function(r){var s=e.serverList,i=r.target,a=!!i.checked;if(Array.isArray(s)){var o=t,n=e._i(s,o);i.checked?n<0&&(e.serverList=s.concat([o])):n>-1&&(e.serverList=s.slice(0,n).concat(s.slice(n+1)))}else e.serverList=a},function(t){return e.numberChange()}]}})])}),0),e._v(" "),r("div",[r("span",[e._v("购买数量:")]),e._v(" "),r("el-input-number",{attrs:{min:0},on:{change:function(t){return e.numberChange()}},model:{value:e.numbers,callback:function(t){e.numbers=t},expression:"numbers"}})],1),e._v(" "),e._m(0)]),e._v(" "),r("p",[r("a",{staticClass:"btn4",on:{click:function(t){return e.next()}}},[e._v("下一步")])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("span",[this._v("退改规则:")]),this._v("\n 不可退\n ")])}]};var n=r("C7Lr")(a,o,!1,function(e){r("w/NI")},"data-v-1ce763d2",null);t.a=n.exports},"fx+J":function(e,t){},lOuq:function(e,t,r){e.exports={default:r("/8q3"),__esModule:!0}},oaxN:function(e,t,r){"use strict";var s={data:function(){return{time:null,shenfen:"",draw:{leaderId:"",leaderName:"",orderCheckDate:"",carCode:""},list:[]}},created:function(){var e=this;this.axios.post(this.getChanel("leader/list"),{companyId:this.$store.state.companyId,companyName:this.trench,pageIndex:1,pageSize:999}).then(function(t){"00"===t.data.code&&(e.list=t.data.data.list,e.list.forEach(function(t,r){var s=t.leaderName+t.leaderNo;e.$set(t,"value",s)}),""!==e.list[0].leaderCardId&&""!==e.list[0].leaderMobile&&(e.$store.state.tourGuide=e.list[0]))})},methods:{handleSelectcustom:function(e){this.draw.leaderId=e.leaderId,this.draw.leaderName=e.leaderName,this.draw.leaderMobile=e.leaderMobile,this.draw.leaderCardId=e.leaderCardId,this.shenfen=e.leaderCardId,""!==e.leaderCardId&&""!==e.leaderMobile?this.$store.state.tourGuide=e:this.$store.state.tourGuide={}},querySearchAsynccustom:function(e,t){var r=this,s=this.list;s.forEach(function(e,t){var s=e.leaderName+e.leaderNo;r.$set(e,"value",s)});var i=e?s.filter(this.createStateFiltercustom(e)):s;clearTimeout(this.time),this.time=setTimeout(function(){t(i)},500*Math.random())},createStateFiltercustom:function(e){return function(t){return-1!==t.value.toLowerCase().indexOf(e.toLowerCase())}},daoyou:function(e){var t=this;this.list.forEach(function(e,r){e.leaderId===t.draw.leaderId&&(t.draw.leaderName=e.leaderName,t.shenfen=e.leaderCardId,""!==e.leaderCardId&&""!==e.leaderMobile?t.$store.state.tourGuide=e:t.$store.state.tourGuide={})})},youwan:function(e){this.draw.orderCheckDate=this.$commonJs.formattime(this.draw.orderCheckDate)},ticketIssue:function(){""!==this.draw.leaderId?""!==this.draw.orderCheckDate?this.$emit("draw",this.draw):this.$message.error("请选择游玩日期!"):this.$message.error("请选择导游!")},cc:function(){this.$emit("datas",!1)}}},i={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"table"},[r("div",{staticClass:"box"},[r("p",{staticClass:"p"},[r("span",[e._v("团队出票")]),e._v(" "),r("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"},on:{click:e.cc}},[r("use",{attrs:{"xlink:href":"#iconguanbi1"}})])]),e._v(" "),r("div",[r("p",[r("span",{staticClass:"span"},[e._v("导游:")]),e._v(" "),r("el-autocomplete",{attrs:{"fetch-suggestions":e.querySearchAsynccustom,placeholder:"请输入内容"},on:{select:e.handleSelectcustom},model:{value:e.draw.leaderName,callback:function(t){e.$set(e.draw,"leaderName",t)},expression:"draw.leaderName"}})],1),e._v(" "),""!==e.shenfen?r("p",[r("span",{staticClass:"span"},[e._v("导游身份证:")]),r("span",[e._v(e._s(e.shenfen))])]):e._e(),e._v(" "),r("p",[r("span",{staticClass:"span"},[e._v("游玩日期:")]),e._v(" "),r("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},on:{change:e.youwan},model:{value:e.draw.orderCheckDate,callback:function(t){e.$set(e.draw,"orderCheckDate",t)},expression:"draw.orderCheckDate"}})],1),e._v(" "),r("p",[r("span",{staticClass:"span"},[e._v("车牌号:")]),e._v(" "),r("el-input",{attrs:{placeholder:"请输入内容"},model:{value:e.draw.carCode,callback:function(t){e.$set(e.draw,"carCode",t)},expression:"draw.carCode"}})],1)]),e._v(" "),r("p",{staticStyle:{"text-align":"center"}},[r("button",{staticClass:"button",on:{click:e.ticketIssue}},[e._v("团队出票")])])])])},staticRenderFns:[]};var a=r("C7Lr")(s,i,!1,function(e){r("K9HK")},"data-v-678c99b0",null);t.a=a.exports},rnDA:function(e,t){},uRfC:function(e,t,r){"use strict";r.d(t,"a",function(){return l});var s=r("lOuq"),i=r.n(s),a=r("aUYq"),o=r.n(a);function n(e){var t=(""+e).split("e"),r=(t[0].split(".")[1]||"").length-(+t[1]||0);return r>0?r:0}function c(e){var t=""+e;return-1===t.indexOf("e")?+t.replace(".",""):+e*Math.pow(10,n(e))}function d(e){return(+e>o.a||+e<i.a)&&(console.warn(e+" is beyond boundary when transfer to integer, the results may not be accurate"),!0)}function l(e,t){for(var r=arguments.length,s=Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];if(s.length>0)return l(l(e,t),s[0],s.slice(1));var a=c(e)*c(t);return d(a),a/Math.pow(10,n(e)+n(t))}},"w/NI":function(e,t){}});
\ No newline at end of file
webpackJsonp([4],{"/8q3":function(e,t,r){r("20tZ"),e.exports=-9007199254740991},"20tZ":function(e,t,r){var s=r("uSC2");s(s.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},"6yUe":function(e,t,r){r("GLtp"),e.exports=9007199254740991},"7hOx":function(e,t){},AUUs:function(e,t,r){"use strict";(function(e){var s=r("aA9S"),i=r.n(s),a=r("3cXf"),o=r.n(a),n=r("4YfN"),c=r.n(n),d=r("8p6T"),l=r("zat1"),u=r("GYc6"),h=r("cxdB"),p=r("eeyJ"),m=r("GZf/"),y=r("hG4X"),f=r("oaxN"),v=r("RwQt"),b=r("nBy1"),g=r("uRfC"),T=r("bSIt");t.a={props:["priceType"],data:function(){return{saleChangePrice:!0,extraServers:[],showServer:!1,fieldsList:[],saleType:"",saleTypeList:[],isLoading:!0,haomiao:6e7,timess:null,TeamTickets:!1,time:null,custom:"",ChannelName:[],Allchannels:[],selectChannel:{},SelectChannelsList:[],totalAmount:0,displaySetup:!1,readonly:!0,border:0,phoneshow:!1,authshow:!1,maxshow:!1,tickshow:!1,index:0,tourGuide:{},payModelList:[],obj:{order:{mergerOrder:(0===this.priceType.groupType?JSON.parse(localStorage.getItem("mergeOrderStatus0")):JSON.parse(localStorage.getItem("mergeOrderStatus1")))||0,patchOrder:0,channelOrderId:"",carCode:"",leaderName:"",leaderId:"",orderCheckDate:"",buyNum:1,salePricePayTotal:0,companyId:this.$store.state.companyId,saleId:"",payType:"0",salePricePayedTotal:"",playDateFrom:"",subscribeDateFrom:"",channelId:"",saleCheckId:"",saleCheckMobile:"",payTypeCode:null},visitors:[]},pageTotal:0,pageshow:!1,product:{saleType:"",notStoreVisible:0,date:this.$commonJs.today(),pageIndex:1,pageSize:18,priceTypeId:"t5",batchDateFrom:this.$commonJs.today()+" 00:00:00",batchDateTo:this.$commonJs.today()+" 23:59:59",channelId:"",deBug:!0},prise:"",oldPrise:"",products:[],products2:[],PrinterList:[],printdata:"",allnum:"",succ:"",todaynum:0,todaymoney:0,newnumm:[],printModel:[],prinmode:JSON.parse(this.$store.state.config).printId,printModelObj:{companyId:this.$store.state.companyId,deviceType:this.$store.state.deviceType,deviceId:this.$store.state.deviceId,configs:[{configKey:"printId",configValue:JSON.parse(this.$store.state.config).printId}]},discounts:{},condition:!0,isShowQrcode:!1,qrcodeContent:"",waitPayStatusTips:"正在等待支付...",requestTimer:null,orderInfo:null,isShowScanningGun:!1,isCancelOrder:!1}},methods:c()({},Object(T.b)(["updateTourGuide"]),{closeServer:function(){this.showServer=!1},changeS:function(){var e=this;this.saleType="",this.product.notStoreVisible?this.$confirm("此操作将永久:不会排号,不能过闸,不会扣库存,是否继续?","提示",{cancelButtonText:"取消",confirmButtonText:"确定",type:"warning"}).then(function(){e.obj.order.patchOrder=1,e.getproduct(),e.$message({type:"success",message:"成功!"})}).catch(function(){e.obj.order.patchOrder=0,e.product.notStoreVisible=0,e.getproduct(),e.$message({type:"info",message:"已取消删除"})}):(this.obj.order.patchOrder=0,this.obj.order.playDateFrom="",this.getproduct())},cccc:function(){this.obj.visitors=[],this.updateTourGuide({}),1===this.priceType.groupType&&1===this.discounts.saleGroupLeader?this.draw():this.TeamTickets=!0},draw:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in this.tourGuide=e,console.log(this.tourGuide),this.TeamTickets=!1,e)this.obj.order[t]=e[t];this.ticketIssue(!1)},datas:function(e){this.TeamTickets=e},data:function(e){this.displaySetup=e},mergerOrderChange:function(e){this.clearInter(),0===this.priceType.groupType?localStorage.setItem("mergeOrderStatus0",e):localStorage.setItem("mergeOrderStatus1",e)},getPrintModel:function(){var e=this;this.axios.post(this.getProductUrl("print/query"),{companyId:this.$store.state.companyId}).then(function(t){"00"===t.data.code&&(e.printModel=t.data.data)})},model:function(e){var t=this;this.printModelObj.configs[0].configValue=e,this.axios.post(this.getSystem("config/save"),this.printModelObj).then(function(e){"00"==e.data.code&&(t.$message({message:"选择成功",type:"success"}),t.$commonJs.printModel(e.data.data,t))})},selectChannelChange:function(e){var t=this;this.clearInter(),this.saleType="",this.obj.order.channelOrderId="",this.custom="";var r=this.Allchannels.filter(function(t,r){return t.priceTypeId===e});this.selectChannel=r[0],setTimeout(function(){t.add(t.obj.order.buyNum)},1e3)},handleSelectcustom:function(e){this.obj.order.channelOrderId="",this.obj.order.channelId=e.channelId||"",this.product.channelId=e.channelId||"",this.saleType="",this.getproduct()},querySearchAsynccustom:function(e,t){var r=this;e||(this.obj.order.channelId="",this.product.channelId="");var s=0===this.ChannelName.length?this.Allchannels[0].channels:this.ChannelName[0].channels;s.forEach(function(e,t){r.$set(e,"value",e.companyName)});var i=e?s.filter(this.createStateFiltercustom(e)):s;clearTimeout(this.time),this.time=setTimeout(function(){t(i)},500*Math.random())},createStateFiltercustom:function(e){return function(t){return-1!==t.value.toLowerCase().indexOf(e.toLowerCase())}},gai:function(e){this.obj.order.salePricePayedTotal=e.target.value,this.obj.order.salePriceTotal=e.target.value},gaiprise:function(e){e?(this.readonly=!1,this.border="1px solid #cccccc"):(this.readonly=!0,this.border=0)},setVisitorField:function(e,t,r,s){var i=(e.checkField||{})[r]||{};(t[i.fieldId]=s,i.fieldInput)?t[i.fieldInput]=s:(t.fields=t.fields||[]).push({fieldId:i.fieldId,fieldValue:s})},initCheckField:function(e){var t=e.fields||[];if(null==e.checkField){for(var r={},s=0;s<t.length;s++){var i=t[s]||{};0!=i.inputType&&(r[i.fieldId]=i,i.fieldInput&&(r[i.fieldInput]=i))}e.checkField=r}},checkVistorField:function(e,t){return this.initCheckField(e),((e.checkField||{})[t]||{}).inputType||0},checkMobileInput:function(e){return this.checkVistorField(e,"visitorMobile")},checkIdInput:function(e){return this.checkVistorField(e,"visitorCardId")},checkVisitorNum:function(e,t,r){this.initCheckField(e);var s=0;switch(r=r||[],e.saleCheckId||0){case 1:s=1;break;case 2:s=t}return r.length>=s},checkCardRepeat:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.initCheckField(e);for(var r=(e.fields||[]).filter(function(e){return e.inputType>0}),s={},i=0;i<t.length;i++)for(var a=t[i],o=0;o<r.length;o++){var n=r[o],c=a[n.fieldInput||n.fieldId];if(0==n.fieldType&&c){var d=s[n.fieldId]=s[n.fieldId]||{};if(d[c])return this.$message.error("证件:"+n.fieldName+c+"重复"),!1;d[c]=!0}}return!0},checkVisitorOrder:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!this.checkVisitorNum(e,t,r))return this.$message.error("请输入游客信息"),!1;for(var s=(e.fields||[]).filter(function(e){return e.inputType>0}),i={},a=0;a<r.length;a++)for(var o=r[a]||{},n=0;n<s.length;n++){var c=s[n]||{},d=o[c.fieldInput||c.fieldId];if(0==c.fieldType&&!d){var l=i[c.fieldId]=i[c.fieldId]||{};if(l[d])return this.$message.error("证件"+c.fieldName+d+"重复"),!1;l[d]=!0}if(1==c.inputType&&!d&&0!==d&&c.fieldId>7)return this.$message.error("请输入"+c.fieldName),!1}return!0},addVisitor:function(e){var t=this,r=this.obj||{},s=r.order||{},a=r.visitors||[];e.visitorMobile=e.visitorMobile||r.visitorPhone,a.unshift(e),this.checkCardRepeat(this.fieldsList,a)?this.checkVisitorNum(this.fieldsList,s.buyNum,a)&&this.checkVisitorOrder(this.fieldsList,s.buyNum,a)&&(this.obj.childOrders=[],window.serverList.length>0&&window.serverList.forEach(function(e,r){var s=JSON.parse(o()(t.obj.order)),a={buyNum:e.buyNum,saleId:e.saleId,salePricePayTotal:Object(g.a)(e.buyNum,e.salePricePay),salePricePayedTotal:Object(g.a)(e.buyNum,e.salePricePay),salePriceTotal:Object(g.a)(e.buyNum,e.salePricePay)},n={order:i()(s,a)};t.obj.childOrders.push(n)})):a.pop()},chck:function(e,t,r){var s=this;this.clearInter(),this.fieldsList=t,this.gaiprise(t.saleChangePrice),this.discounts=t,this.index=r.batchId+r.saleId,this.obj.order.channelOrderId="",this.obj.order.salePricePayTotal=Object(g.a)(t.salePricePay,this.obj.order.buyNum),this.obj.order.salePricePayedTotal=Object(g.a)(t.salePricePay,this.obj.order.buyNum),this.obj.order.salePriceTotal=Object(g.a)(t.salePricePay,this.obj.order.buyNum),this.obj.order.saleCheckId=t.saleCheckId,this.obj.order.saleCheckMobile=t.saleCheckMobile,this.prise=t.salePricePay,this.oldPrise=t.salePricePay,t.discountsList.length>0&&t.discountsList.forEach(function(e){1==e.buyNum&&(s.obj.order.salePricePayedTotal=Object(g.a)(e.salePricePay,s.obj.order.buyNum),s.obj.order.salePricePayTotal=Object(g.a)(e.salePricePay,s.obj.order.buyNum),s.obj.order.salePriceTotal=Object(g.a)(e.salePricePay,s.obj.order.buyNum),s.prise=e.salePricePay,s.oldPrise=e.salePricePay)}),this.obj.order.saleId=t.saleId,this.obj.order.subscribeDateFrom=r.batchDateFrom,this.product.date===this.$commonJs.today()?this.obj.order.playDateFrom=r.batchDateFrom:this.obj.order.playDateFrom=this.product.date+" 00:00:00"},dates:function(e){this.product.batchDateFrom=e+" 00:00:00",this.product.batchDateTo=e+" 23:59:59",this.saleType="",this.getproduct()},add:function(e){var t=this;if(this.clearInter(),this.obj.order.channelOrderId="",0!=this.discounts.discountsList.length){this.discounts.discountsList.forEach(function(r){e>=r.buyNum&&(t.prise=r.salePricePay,t.obj.order.salePricePayTotal=Object(g.a)(e,t.prise),t.obj.order.salePricePayedTotal=Object(g.a)(e,t.prise),t.obj.order.salePriceTotal=Object(g.a)(e,t.prise))});var r=Math.min.apply(Math,this.discounts.discountsList.map(function(e){return e.buyNum}));e<r&&(this.obj.order.salePricePayTotal=Object(g.a)(e,this.oldPrise),this.obj.order.salePricePayedTotal=Object(g.a)(e,this.oldPrise),this.obj.order.salePriceTotal=Object(g.a)(e,this.oldPrise))}else this.obj.order.salePricePayTotal=Object(g.a)(e,this.prise),this.obj.order.salePricePayedTotal=Object(g.a)(e,this.prise),this.obj.order.salePriceTotal=Object(g.a)(e,this.prise)},pagess:function(e){this.product.pageIndex=e,this.pageData()},pageData:function(){var e=this;this.axios.post(this.getStoreUrl("time/querySale"),this.product).then(function(t){"00"==t.data.code&&(e.products=t.data.data.list,e.pageshow=!0,e.products.forEach(function(t){t.scenes.forEach(function(t){t.myId=e.$commonJs.randoms()})}))})},dataOrder:function(){return window.order=window.order||{},window.order},interval:function(){var e=this;!function t(){e.timess=setTimeout(function(){e.SoTheChannel(),t()},e.haomiao)}()},clearInter:function(){clearTimeout(this.timess),this.interval()},ticketIssue:function(e){var t=this,r=this;if(this.condition)if(!this.product.notStoreVisible||this.obj.order.playDateFrom){e&&(this.$store.state.tourGuide={});var s=this.dataOrder();s.visitorPhone="",s.sale=this.fieldsList,s.orderObj=this.obj,s.that=this;var i=this.obj.order,a=i.companyId,n=i.saleId;i.salePricePayTotal;if(""!=a&&""!=n)if(JSON.parse(this.$store.state.config).printer){if(this.obj.order.channelOrderId=this.$commonJs.randoms(),sessionStorage.setItem("phonObjs",o()(this.obj)),0==this.products.length)return;var c=this.products.findIndex(function(e){return t.obj.order.saleId==e.saleId});if(this.extraServers=JSON.parse(o()(this.products[c].services)),window.serverList=this.products[c].services,this.extraServers.length>0)return void(this.showServer=!0);if(0===this.checkMobileInput(this.fieldsList)||this.obj.visitors.length)if(this.checkVisitorNum(this.fieldsList,this.obj.order.buyNum,this.obj.visitors)){!function e(){if(t.condition=!1,"6"==t.obj.order.payType){if(!t.obj.order.payTypeCode){console.log("胖丁扫码枪"),t.isShowScanningGun=!0;var s=JSON.parse(t.$store.state.config);return Scan.init(s.HardConfig,function(e){r.isShowScanningGun&&r.$message.error(e)},function(t,s){r.isShowScanningGun&&(r.obj.order.payTypeCode||(r.obj.order.payTypeCode=s.ScanCode,r.waitPayStatusTips="扫码成功",console.log(r.obj),e()))},1),!1}t.waitPayStatusTips="正在等待支付..."}!function e(){t.axios.post(t.getOrderUrl("order/save"),t.obj,{__retryCount:3}).then(function(e){t.condition=!0;var r=e.data||{};if(r.code,"00"!=r.code)return t.obj.order.payTypeCode=null,t.$message.error(r.message);var s=e.data.data,i=s.order;t.orderInfo=s.order;var a=s.pays[0]||null;if("5"==t.obj.order.payType){if(!a)return t.$message.error(e.data.message);var o=JSON.parse(a.channelPayInfo);return t.qrcodeContent=o.PayCode,t.isShowQrcode=!0,void t.openScanQrcodeHandle({companyId:i.companyId,orderId:i.orderId},"isShowQrcode")}if("6"==t.obj.order.payType)return a?(t.openScanQrcodeHandle({companyId:i.companyId,orderId:i.orderId},"isShowScanningGun"),!1):t.$message.error(e.data.message);t.obj.visitors=[],t.obj.visitorPhone="",t.authshow=!1,t.printTickets(r)}).catch(function(r){t.condition=!0,t.$message.error(err),setTimeout(function(){e()},3e3)})}()}()}else this.authshow=!0;else this.phoneshow=!0}else this.$message.error("打印机名为空,请配置打印机");else this.$message.error("当前未选择票类型,不能出票")}else this.$message.error("请选择补单时间!")},ticketIssue2:function(e){var t=this,r=this;if(this.condition)if(!this.product.notStoreVisible||this.obj.order.playDateFrom){e&&(this.$store.state.tourGuide={});var s=this.dataOrder();s.visitorPhone="",s.sale=this.fieldsList,s.orderObj=this.obj,s.that=this;var a=this.obj.order,n=a.companyId,c=a.saleId;a.salePricePayTotal;if(""!=n&&""!=c)if(JSON.parse(this.$store.state.config).printer)if(this.obj.order.channelOrderId=this.$commonJs.randoms(),sessionStorage.setItem("phonObjs",o()(this.obj)),0===this.checkMobileInput(this.fieldsList)||this.obj.visitors.length)if(this.checkVisitorNum(this.fieldsList,this.obj.order.buyNum,this.obj.visitors)){!function e(){if(t.condition=!1,"6"==t.obj.order.payType){if(!t.obj.order.payTypeCode){console.log("胖丁扫码枪"),t.isShowScanningGun=!0;var s=JSON.parse(t.$store.state.config);return Scan.init(s.HardConfig,function(e){r.isShowScanningGun&&r.$message.error(e)},function(t,s){r.isShowScanningGun&&(r.obj.order.payTypeCode||(r.obj.order.payTypeCode=s.ScanCode,r.waitPayStatusTips="扫码成功",console.log(r.obj),e()))},1),!1}t.waitPayStatusTips="正在等待支付..."}t.obj.childOrders=[],window.serverList.length>0&&window.serverList.forEach(function(e,r){var s=JSON.parse(o()(t.obj.order)),a={buyNum:e.buyNum,saleId:e.saleId,salePricePayTotal:Object(g.a)(e.buyNum,e.salePricePay),salePricePayedTotal:Object(g.a)(e.buyNum,e.salePricePay),salePriceTotal:Object(g.a)(e.buyNum,e.salePricePay)},n={order:i()(s,a)};t.obj.childOrders.push(n)});!function e(){t.axios.post(t.getOrderUrl("order/save"),t.obj,{__retryCount:3}).then(function(e){t.condition=!0;var r=e.data||{};if(r.code,"00"!=r.code)return t.obj.order.payTypeCode=null,t.$message.error(r.message);var s=e.data.data,i=s.order;t.orderInfo=s.order;var a=s.pays[0]||null;if("5"==t.obj.order.payType){if(!a)return t.$message.error("订单返回数据格式错误,不包含支付信息");var o=JSON.parse(a.channelPayInfo);return t.qrcodeContent=o.PayCode,t.isShowQrcode=!0,void t.openScanQrcodeHandle({companyId:i.companyId,orderId:i.orderId},"isShowQrcode")}if("6"==t.obj.order.payType)return a?(t.openScanQrcodeHandle({companyId:i.companyId,orderId:i.orderId},"isShowScanningGun"),!1):t.$message.error("订单返回数据格式错误,不包含支付信息");t.obj.visitors=[],t.obj.visitorPhone="",t.authshow=!1,t.printTickets(r)}).catch(function(r){t.condition=!0,t.$message.error(err),setTimeout(function(){e()},3e3)})}()}()}else this.authshow=!0;else this.phoneshow=!0;else this.$message.error("打印机名为空,请配置打印机");else this.$message.error("当前未选择票类型,不能出票")}else this.$message.error("请选择补单时间!")},PrintError:function(e){var t=this;this.succ=!0,setTimeout(function(){t.tickshow=!1,t.succ=!1},100);var r=e&&(e.msg||e.Msg)||e;alert(r)},__Printed:function(){var e=this;this.succ=!0,window.order={},this.obj.order=this.obj.order||{},this.obj.order.buyNum=1,this.obj.order.channelOrderId="",this.obj.visitorPhone="",this.obj.visitors=[],setTimeout(function(){e.tickshow=!1,e.maxshow=!1,e.succ=!1},1e3),this.gettoday(),this.getproduct()},__PrintIteming:function(e){this.tickshow=!0,this.printdata=e.Data.Pos,this.allnum=e.Data.Count},loadPrint:function(){var t=this;function r(r){r=r||[];var s=[];e.each(r,function(e,t){s.push({id:t,name:t})}),t.Rendering(s)}try{Base.getHard().getPrinter(function(e){r(e)},function(e){r()})}catch(e){r()}},Rendering:function(e){0!=e.length?this.PrinterList=e:this.PrinterList=[{name:"暂无打印机",id:""},{name:"Microsoft XPS Document Writer",id:"Microsoft XPS Document Writer"}]},closephone:function(e){this.phoneshow=e},phonOk:function(){this.phoneshow=!1,this.authshow=!0},auclose:function(){this.obj.visitors=[],this.obj.visitorPhone="",this.obj.order.payTypeCode=null,this.authshow=!1},augoup:function(){this.authshow=!1,this.phoneshow=!0,this.obj.visitors=[]},ticket:function(e){this.maxshow=!1,this.tickshow=!0},fanhui:function(){this.maxshow=!1,this.authshow=!0},tik:function(e){this.tickshow=!0,this.authshow=!1},manual:function(){this.authshow=!1,this.maxshow=!0},maxclose:function(){this.maxshow=!1,this.obj.visitors=[],this.obj.visitorPhone="",this.obj.order.payTypeCode=null},tickclose:function(){this.tickshow=!1},getproduct:function(){var e=this;this.axios.post(this.getStoreUrl("time/querySale"),this.product,{isLoading:this.isLoading}).then(function(t){if("00"!=t.data.code)return!1;if(0==t.data.data.list.length)return e.saleChangePrice=!1,e.products=[],e.products2=[],e.$message.error("暂无当前票种!"),!1;e.saleChangePrice=t.data.data.list.saleChangePrice;var r=t.data.data.list.filter(function(e){return 1!=e.saleServiceType}),s=null,i=((e.obj||{}).order||{}).saleId||"";if(e.products=r.filter(function(e,t){var r=(e.scenes||[]).length>0;return!r||i!=e.saleId&&null!=s||(s=e),r}),e.products2=r.filter(function(e,t){if(0!==!e.scenes.length)return e}),e.fieldsList=r.find(function(e,t){return e.scenes.length>0}),0!=e.products.length&&(e.extraServers=s.services,window.serverList=s.services,e.obj.order.saleId=s.saleId,e.discounts=s,e.obj.order.salePricePayedTotal=s.salePricePay,e.obj.order.salePricePayTotal=Object(g.a)(s.salePricePay,e.obj.order.buyNum),e.gaiprise(s.saleChangePrice),e.obj.order.salePriceTotal=s.salePricePay,e.obj.order.saleCheckId=s.saleCheckId,e.obj.order.saleCheckMobile=s.saleCheckMobile,e.prise=s.salePricePay,e.oldPrise=s.salePricePay,s.discountsList.length>0&&s.discountsList.forEach(function(t){1==t.buyNum&&(e.obj.order.salePricePayedTotal=t.salePricePay,e.obj.order.salePricePayTotal=Object(g.a)(t.salePricePay,e.obj.order.buyNum),e.obj.order.salePriceTotal=t.salePricePay,e.prise=t.salePricePay,e.oldPrise=t.salePricePay)}),e.pageshow=!0,e.pageTotal=t.data.data.pageTotal,0!=s.scenes.length)){e.obj.order.subscribeDateFrom=s.scenes[0].batchDateFrom,e.product.date==e.$commonJs.today()?e.obj.order.playDateFrom=s.scenes[0].batchDateFrom:e.obj.order.playDateFrom=e.product.date+" 00:00:00";var a=s.scenes[0];e.index=a.batchId+a.saleId}})},gettoday:function(){var e=this;this.axios.post(this.getOrderUrl("order/getDay"),{pageSize:1}).then(function(t){"00"==t.data.code&&(e.todaynum=t.data.main.buyNum,e.todaymoney=t.data.main.salePricePayTotal,e.newnumm=t.data.data.list)})},chong:function(e){var t=this;if(this.condition){var r={orderId:e.orderId,all:!0};""==this.obj.order.printer?this.$message.error("请选择打印机"):(this.condition=!1,this.axios.post(this.getOrderUrl("order/load"),r).then(function(e){var r=e.data||{};t.$commonJs.printRes(r,t,Base,t.PrintError,t.__Printed,t.__PrintIteming),t.condition=!0}))}},SoTheChannel:function(){var e=this;0!==this.products.length&&(this.isLoading=!1),this.axios.post(this.getSystem("channel/windowList"),this.priceType,{isLoading:this.isLoading}).then(function(t){"00"===t.data.code?(e.Allchannels=t.data.data,e.selectChannel=e.Allchannels[0]):e.$message.error(t.data.message)})},initTicketType:function(){var e=this,t={companyId:this.companyId,enumType:"saleType",pageIndex:1,pageSize:this.$pageSize};this.axios.post(this.getSystem("systemEnum/drop"),t).then(function(t){"00"==t.data.code?e.saleTypeList=t.data.data:e.$message.error(t.data.message)})},chooseTicket:function(e){this.products2.length>0&&(this.products=this.products2.filter(function(t){return t.saleType==e}))},selectChannelsItemChange:function(e){var t=this;this.obj.order.channelId=e,this.product.channelId=e,this.getproduct();var r=this.SelectChannelsList.filter(function(t){return t.channelId==e});if(0==r.length)return this.payModelList=[],void(this.obj.order.payType="");var s=r[0];if(this.payModelList=s.payTypes,0!=this.payModelList.length){if(0==this.payModelList.filter(function(e){return e.payedType==t.selectChannel.payedType}).length)this.obj.order.payType=this.payModelList[0].payedType;else this.obj.order.payType=this.selectChannel.payedType+"",-1===this.payModelList.findIndex(function(e){return e.payedType===t.obj.order.payType})&&(this.obj.order.payType=this.payModelList[0].payedType);this.totalAmount=s.moneyVo.totalAmount,setTimeout(function(){t.add(t.obj.order.buyNum)},1e3)}else this.obj.order.payType=""},selectPayModelChange:function(e){this.obj.order.payType=e},openScanQrcodeHandle:function(e,t){var r=this;if(window.clearTimeout(this.requestTimer),!this.isCancelOrder&&e){var s={order:e};this.axios.post(this.getOrderUrl("order/wait"),s,{isLoading:!1}).then(function(s){var i=s.data;if("00"!=i.code)return r.$message.error(i.message);r[t]&&((i.data.order||{}).orderStatus<4?r.requestTimer=window.setTimeout(function(){r.openScanQrcodeHandle(e,t)},500):(window.clearTimeout(r.requestTimer),r.waitPayStatusTips="支付完成",r.isShowQrcode=!1,r.isShowScanningGun=!1,r.waitPayStatusTips="正在等待支付...",r.printTickets(i)))}).catch(function(s){window.clearTimeout(r.requestTimer),r.$message.error(s),r.requestTimer=window.setTimeout(function(){r.openScanQrcodeHandle(e,t)},500)})}},closeScanQrcodeHandle:function(){var e=this;if(this.condition=!0,this.isShowQrcode=!1,this.isShowScanningGun=!1,this.isCancelOrder=!0,window.clearTimeout(this.requestTimer),this.orderInfo){var t={order:{orderId:this.orderInfo.orderId,companyId:this.orderInfo.companyId}};this.axios.post(this.getOrderUrl("order/cancel"),t).then(function(t){e.isCancelOrder=!1;var r=t.data;if("00"!=r.code)return e.$message.error(r.message);e.orderInfo=null,e.obj.visitors=[],e.obj.visitorPhone=""}).catch(function(t){console.log("请求失败"),window.clearTimeout(e.requestTimer),e.requestTimer=window.setTimeout(function(){e.closeScanQrcodeHandle()},1e3)},1e3)}},closeScanningGunHandle:function(){this.isShowScanningGun=!1,this.obj.order.payTypeCode=null,this.condition=!0,this.waitPayStatusTips="正在等待支付...",this.closeScanQrcodeHandle()},printTickets:function(e){this.obj.visitors=[],this.obj.visitorPhone="",this.obj.order.payTypeCode=null,this.orderInfo=null,this.$commonJs.printRes(e,this,Base,this.PrintError,this.__Printed,this.__PrintIteming)},closePayQrcodeHandle:function(){console.log("关闭"),this.isShowScanningGun=!1,this.isShowQrcode=!1,this.condition=!0,this.waitPayStatusTips="正在等待支付...",window.clearTimeout(this.requestTimer)},scanDevice:function(){}}),components:{phone:d.a,authent:l.a,maxual:u.a,ticketIssue:h.a,pages:m.a,localSettings:y.a,TeamTicket:f.a,breadNav:v.default,plusServer:p.a,scanQrcode:b.a},created:function(){this.SoTheChannel(),this.loadPrint(),this.gettoday(),this.getPrintModel(),this.initTicketType()},mounted:function(){},watch:{selectChannel:function(e){var t=this;if(this.SelectChannelsList=e.channels,this.product.priceTypeId=e.priceTypeId,this.obj.order.payType=e.payedType+"",0==this.SelectChannelsList.length)return this.products=[],void(this.products2=[]);var r=this.SelectChannelsList[0];this.payModelList=r.payTypes,-1===this.payModelList.findIndex(function(e){return e.payedType===t.obj.order.payType})&&(this.obj.order.payType=this.payModelList[0].payedType),this.custom=r.channelId,this.product.channelId=r.channelId,this.obj.order.channelId=r.channelId,this.getproduct(),this.totalAmount=r.moneyVo.totalAmount}},beforeDestroy:function(){clearTimeout(this.timess),this.timess=null}}}).call(t,r("SXXC"))},AttR:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s={data:function(){return{priceType:{channelFromKey:"computer",companyId:this.$store.state.companyId,groupType:1}}},components:{TheDrawerComponents:r("H62i").a},methods:{dianji:function(){this.$refs.mychild.cccc()}}},i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("TheDrawerComponents",{ref:"mychild",attrs:{priceType:this.priceType}},[t("button",{on:{click:this.dianji}},[this._v("团队出票")])])},staticRenderFns:[]};var a=r("C7Lr")(s,i,!1,function(e){r("rnDA")},null,null);t.default=a.exports},GLtp:function(e,t,r){var s=r("uSC2");s(s.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},H62i:function(e,t,r){"use strict";var s=r("AUUs"),i={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"bigBox"},[r("breadNav",[e._v("窗口售票")]),e._v(" "),r("div",{staticClass:"tab"},[r("div",[r("p",[e._v("最新记录")]),e._v(" "),r("p",[r("span",[e._v("今日售票量:"),r("i",[e._v(e._s(e.todaynum))]),e._v("张")]),r("span",[e._v("金额:"),r("i",[e._v(e._s(e.todaymoney))]),e._v("元")])])]),e._v(" "),e._l(e.newnumm,function(t,s){return r("div",{key:s},[r("p",[e._v(e._s(t.productName))]),e._v(" "),r("p",[e._v(e._s(t.buyNum)+"张")]),e._v(" "),r("p",[e._v(e._s(t.salePricePayTotal)+"元")]),e._v(" "),r("p",[e._v(e._s(t.createDate))]),e._v(" "),r("p",{staticClass:"chon",on:{click:function(r){return e.chong(t)}}},[e._v("重新打印")])])})],2),e._v(" "),r("div",{staticClass:"box"},[r("div",[r("div",{staticClass:"tit query-row"},[r("div",{staticClass:"query-item"},[r("span",[e._v("时间:")]),e._v(" "),r("el-date-picker",{attrs:{"prefix-icon":"none",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},on:{change:e.dates},model:{value:e.product.date,callback:function(t){e.$set(e.product,"date",t)},expression:"product.date"}})],1),e._v(" "),r("div",{staticClass:"query-item"},[r("span",[e._v("渠道类型:")]),e._v(" "),r("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:e.selectChannelChange},model:{value:e.product.priceTypeId,callback:function(t){e.$set(e.product,"priceTypeId",t)},expression:"product.priceTypeId"}},e._l(e.Allchannels,function(e,t){return r("el-option",{key:t,attrs:{label:e.priceTypeName,value:e.priceTypeId}})}),1)],1),e._v(" "),r("div",{staticClass:"query-item"},[r("span",[e._v("渠道名称:")]),e._v(" "),r("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:e.selectChannelsItemChange},model:{value:e.custom,callback:function(t){e.custom=t},expression:"custom"}},e._l(e.SelectChannelsList,function(e){return r("el-option",{key:e.channelId,attrs:{label:e.companyName,value:e.channelId}})}),1)],1),e._v(" "),r("div",{staticClass:"query-item"},[r("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.changeS},model:{value:e.product.notStoreVisible,callback:function(t){e.$set(e.product,"notStoreVisible",t)},expression:"product.notStoreVisible"}},[e._v(" "+e._s(e.obj.order.patchOrder?"补单时间":"补单"))]),e._v(" "),e.obj.order.patchOrder?r("el-date-picker",{attrs:{"prefix-icon":"none",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.obj.order.playDateFrom,callback:function(t){e.$set(e.obj.order,"playDateFrom",t)},expression:"obj.order.playDateFrom"}}):e._e()],1),e._v(" "),r("div",{staticClass:"chu query-item"},[e._t("default"),e._v(" "),r("button",{staticStyle:{"margin-left":"0.1rem"},on:{click:function(t){e.displaySetup=!0}}},[e._v("\n 设置\n ")])],2)]),e._v(" "),r("div",{staticClass:"num query-row"},[r("div",{staticClass:"query-item"},[r("span",[e._v("数量:")]),e._v(" "),r("el-input-number",{attrs:{min:1,label:"描述文字"},on:{change:e.add},model:{value:e.obj.order.buyNum,callback:function(t){e.$set(e.obj.order,"buyNum",t)},expression:"obj.order.buyNum"}})],1),e._v(" "),r("div",{staticClass:"query-item"},[r("span",{staticStyle:{display:"inline-block"}},[e._v("总票价:   ")]),e._v(" "),e.saleChangePrice?r("el-input",{staticClass:"no-border",attrs:{type:"text"},model:{value:e.obj.order.salePricePayTotal,callback:function(t){e.$set(e.obj.order,"salePricePayTotal",t)},expression:"obj.order.salePricePayTotal"}}):r("input",{directives:[{name:"model",rawName:"v-model",value:e.obj.order.salePricePayTotal,expression:"obj.order.salePricePayTotal"}],staticClass:"no-border",style:{border:e.border,paddingLeft:"10px"},attrs:{readonly:e.readonly},domProps:{value:e.obj.order.salePricePayTotal},on:{change:function(t){return e.gai(t)},input:function(t){t.target.composing||e.$set(e.obj.order,"salePricePayTotal",t.target.value)}}}),e._v("\n\n ")],1),e._v(" "),r("div",{staticClass:"query-item"},[r("span",[e._v("结算方式:")]),e._v(" "),r("el-select",{attrs:{placeholder:"请选择结算方式"},on:{change:e.selectPayModelChange},model:{value:e.obj.order.payType,callback:function(t){e.$set(e.obj.order,"payType",t)},expression:"obj.order.payType"}},e._l(e.payModelList,function(e){return r("el-option",{key:e.payedType,attrs:{label:e.payedTypeName,value:e.payedType}})}),1)],1),e._v(" "),r("div",{staticClass:"query-item",staticStyle:{width:"4rem"}},[r("p",{staticStyle:{display:"inline"}},[e._v("\n 余额:"),r("b",{staticStyle:{"font-weight":"bold"}},[e._v(e._s(e.totalAmount))]),e._v(" 元\n ")]),e._v(" "),r("p",{staticStyle:{display:"inline","margin-left":"0.3rem"}},[r("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.mergerOrderChange},model:{value:e.obj.order.mergerOrder,callback:function(t){e.$set(e.obj.order,"mergerOrder",t)},expression:"obj.order.mergerOrder"}},[e._v("单张出票")])],1)])])])]),e._v(" "),r("div",{staticClass:"allbox"},[r("div",{staticClass:"piao"},[r("p",{staticStyle:{"align-items":"center",display:"flex","margin-bottom":"0.1rem"}},[r("span",[e._v(" 票种: ")]),e._v(" "),r("el-select",{on:{change:function(t){return e.chooseTicket(e.product.saleType)}},model:{value:e.product.saleType,callback:function(t){e.$set(e.product,"saleType",t)},expression:"product.saleType"}},[r("el-option",{attrs:{label:"--所有--",value:""}}),e._v(" "),e._l(e.saleTypeList,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})],2)],1),e._v(" "),r("div",e._l(e.products,function(t,s){return r("div",{key:s},e._l(t.scenes,function(s,i){return r("div",{key:i,class:{dan:!0,hui:e.index==s.batchId+s.saleId},on:{click:function(r){return e.chck(i,t,s)}}},[r("div",[r("div",[e._v("\n "+e._s(t.productName)+"\n "),r("p",[0!=t.scenes.length?r("span",[e._v("\n "+e._s(s.batchDateFrom.slice(10,s.batchDateFrom.length-3))+"-"+e._s(s.batchDateTo.slice(10,s.batchDateTo.length-3))+"\n ")]):e._e()])]),e._v(" "),r("div",[e._v("¥"+e._s(t.salePricePay))])]),e._v(" "),r("p",{staticStyle:{display:"flex","justify-content":"space-between","padding-right":"0.2rem"}},[r("span",[e._v(" 库存:"+e._s(s.hasNum)+" ")]),e._v(" "),r("span",{staticStyle:{color:"#666666","font-size":"0.1rem"}},[e._v("\n "+e._s(t.saleTypeName)+"\n ")])])])}),0)}),0)]),e._v(" "),r("pages",{directives:[{name:"show",rawName:"v-show",value:e.pageshow,expression:"pageshow"}],attrs:{pagesize:e.product.pageSize,total:e.pageTotal},on:{page:e.pagess}})],1),e._v(" "),e.phoneshow?r("phone",{attrs:{tourGuide:e.tourGuide},on:{closed:e.closephone,phonOk:e.phonOk}}):e._e(),e._v(" "),e.authshow?r("authent",{attrs:{tourGuide:e.tourGuide,buyNum:e.obj.order.buyNum,fieldsList:e.fieldsList},on:{closed:e.auclose,goup:e.augoup,manual:e.manual,tik:e.tik}}):e._e(),e._v(" "),e.maxshow?r("maxual",{attrs:{fieldsList:e.fieldsList},on:{ticket:e.ticket,closed:e.maxclose}}):e._e(),e._v(" "),e.tickshow?r("ticketIssue",{attrs:{succ:e.succ},on:{closed:e.tickclose}},[r("span",{attrs:{slot:"pag"},slot:"pag"},[e._v(e._s(e.printdata))]),e._v(" "),r("span",{attrs:{slot:"num"},slot:"num"},[e._v(e._s(e.allnum))])]):e._e(),e._v(" "),e.displaySetup?r("localSettings",{attrs:{PrinterList:e.PrinterList,printModel:e.printModel},on:{data:e.data}}):e._e(),e._v(" "),e.TeamTickets?r("TeamTicket",{on:{datas:e.datas,draw:e.draw}}):e._e(),e._v(" "),e.showServer?r("plusServer",{attrs:{num:e.obj.order.buyNum,extraServers:e.extraServers},on:{close:function(t){return e.closeServer()}}}):e._e(),e._v(" "),r("el-dialog",{attrs:{width:"400",title:"请扫描二维码",center:"",visible:e.isShowQrcode,"close-on-click-modal":!1,"append-to-body":"","show-close":!1},on:{"update:visible":function(t){e.isShowQrcode=t},open:e.openScanQrcodeHandle,close:e.closePayQrcodeHandle}},[r("scan-qrcode",{attrs:{value:e.qrcodeContent}}),e._v(" "),r("p",{staticStyle:{"font-size":"0.18rem","text-align":"center",margin:"0.2rem 0"}},[e._v(e._s(e.waitPayStatusTips))]),e._v(" "),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"normal"},on:{click:e.closeScanQrcodeHandle}},[e._v("取消支付")])],1)],1),e._v(" "),r("el-dialog",{attrs:{width:"200",title:"胖丁扫码枪",center:"",visible:e.isShowScanningGun,"close-on-click-modal":!1,"append-to-body":"","show-close":!1},on:{"update:visible":function(t){e.isShowScanningGun=t},close:e.closePayQrcodeHandle}},[r("p",{staticStyle:{"font-size":"0.18rem","text-align":"center",margin:"0.2rem 0"}},[e._v(e._s(e.waitPayStatusTips))]),e._v(" "),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"normal"},on:{click:e.closeScanningGunHandle}},[e._v("取消支付")])],1)])],1)},staticRenderFns:[]};var a=function(e){r("7hOx")},o=r("C7Lr")(s.a,i,!1,a,"data-v-6581dfe4",null);t.a=o.exports},K9HK:function(e,t){},aUYq:function(e,t,r){e.exports={default:r("6yUe"),__esModule:!0}},eeyJ:function(e,t,r){"use strict";var s=r("3cXf"),i=r.n(s),a={props:["num","extraServers"],data:function(){return{numbers:0,serverList:JSON.parse(i()(window.serverList)),getPriceList:[]}},methods:{close:function(){this.$emit("close")},next:function(){var e=this;this.serverList.length>0&&this.serverList.forEach(function(t,r){t.buyNum=e.numbers}),window.serverList=this.serverList,this.$emit("close"),this.$parent.ticketIssue2(!0)},numberChange:function(){for(var e=this,t=0;t<this.getPriceList.length;t++)this.extraServers[t].salePricePay=this.getSalePricePay(this.getPriceList[t],this.numbers);for(var r=function(t){var r=e.getPriceList.findIndex(function(r){return e.serverList[t].saleId==r.saleId});e.serverList[t].salePricePay=e.getSalePricePay(e.getPriceList[r],e.numbers)},s=0;s<this.serverList.length;s++)r(s)},getSalePricePay:function(e,t){for(var r=e.salePricePay||0,s=e.discountsList||[],i=null,a=0;a<s.length;a++){var o=s[a]||{};null==o||0==o.buyNum||(null==i||o.buyNum>i.buyNum)&&o.buyNum<=t&&(i=o)}return null!=i&&(r=i.salePricePay||0),r}},mounted:function(){var e=this;this.numbers=this.num,this.getPriceList=JSON.parse(i()(this.extraServers)),window.serverList.length>0&&window.serverList.forEach(function(t,r){t.buyNum=e.numbers}),this.numberChange(),console.log(this.serverList)}},o={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"server"},[r("div",{staticClass:"serverBox"},[r("p",{staticStyle:{position:"relative"}},[e._v("\n 增加服务\n "),r("span",{staticStyle:{position:"absolute",right:"20px",top:"5px","font-size":"0.24rem",color:"#666666","font-weight":"400",cursor:"pointer"},on:{click:e.close}},[e._v("x")])]),e._v(" "),r("div",{staticClass:"serverDiv"},[r("div",e._l(e.extraServers,function(t,s){return r("p",{key:s},[r("span",{staticStyle:{display:"inline-block",width:"2.2rem"}},[e._v(e._s(t.productName))]),e._v(" "),r("span",{staticStyle:{display:"inline-block",width:"0.7rem"}},[e._v(e._s(t.salePricePay)+"元/份")]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.serverList,expression:"serverList"}],attrs:{type:"checkbox"},domProps:{value:t,checked:Array.isArray(e.serverList)?e._i(e.serverList,t)>-1:e.serverList},on:{change:[function(r){var s=e.serverList,i=r.target,a=!!i.checked;if(Array.isArray(s)){var o=t,n=e._i(s,o);i.checked?n<0&&(e.serverList=s.concat([o])):n>-1&&(e.serverList=s.slice(0,n).concat(s.slice(n+1)))}else e.serverList=a},function(t){return e.numberChange()}]}})])}),0),e._v(" "),r("div",[r("span",[e._v("购买数量:")]),e._v(" "),r("el-input-number",{attrs:{min:0},on:{change:function(t){return e.numberChange()}},model:{value:e.numbers,callback:function(t){e.numbers=t},expression:"numbers"}})],1),e._v(" "),e._m(0)]),e._v(" "),r("p",[r("a",{staticClass:"btn4",on:{click:function(t){return e.next()}}},[e._v("下一步")])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("span",[this._v("退改规则:")]),this._v("\n 不可退\n ")])}]};var n=r("C7Lr")(a,o,!1,function(e){r("w/NI")},"data-v-1ce763d2",null);t.a=n.exports},lOuq:function(e,t,r){e.exports={default:r("/8q3"),__esModule:!0}},oaxN:function(e,t,r){"use strict";var s={data:function(){return{time:null,shenfen:"",draw:{leaderId:"",leaderName:"",orderCheckDate:"",carCode:""},list:[]}},created:function(){var e=this;this.axios.post(this.getChanel("leader/list"),{companyId:this.$store.state.companyId,companyName:this.trench,pageIndex:1,pageSize:999}).then(function(t){"00"===t.data.code&&(e.list=t.data.data.list,e.list.forEach(function(t,r){var s=t.leaderName+t.leaderNo;e.$set(t,"value",s)}),""!==e.list[0].leaderCardId&&""!==e.list[0].leaderMobile&&(e.$store.state.tourGuide=e.list[0]))})},methods:{handleSelectcustom:function(e){this.draw.leaderId=e.leaderId,this.draw.leaderName=e.leaderName,this.draw.leaderMobile=e.leaderMobile,this.draw.leaderCardId=e.leaderCardId,this.shenfen=e.leaderCardId,""!==e.leaderCardId&&""!==e.leaderMobile?this.$store.state.tourGuide=e:this.$store.state.tourGuide={}},querySearchAsynccustom:function(e,t){var r=this,s=this.list;s.forEach(function(e,t){var s=e.leaderName+e.leaderNo;r.$set(e,"value",s)});var i=e?s.filter(this.createStateFiltercustom(e)):s;clearTimeout(this.time),this.time=setTimeout(function(){t(i)},500*Math.random())},createStateFiltercustom:function(e){return function(t){return-1!==t.value.toLowerCase().indexOf(e.toLowerCase())}},daoyou:function(e){var t=this;this.list.forEach(function(e,r){e.leaderId===t.draw.leaderId&&(t.draw.leaderName=e.leaderName,t.shenfen=e.leaderCardId,""!==e.leaderCardId&&""!==e.leaderMobile?t.$store.state.tourGuide=e:t.$store.state.tourGuide={})})},youwan:function(e){this.draw.orderCheckDate=this.$commonJs.formattime(this.draw.orderCheckDate)},ticketIssue:function(){""!==this.draw.leaderId?""!==this.draw.orderCheckDate?this.$emit("draw",this.draw):this.$message.error("请选择游玩日期!"):this.$message.error("请选择导游!")},cc:function(){this.$emit("datas",!1)}}},i={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"table"},[r("div",{staticClass:"box"},[r("p",{staticClass:"p"},[r("span",[e._v("团队出票")]),e._v(" "),r("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"},on:{click:e.cc}},[r("use",{attrs:{"xlink:href":"#iconguanbi1"}})])]),e._v(" "),r("div",[r("p",[r("span",{staticClass:"span"},[e._v("导游:")]),e._v(" "),r("el-autocomplete",{attrs:{"fetch-suggestions":e.querySearchAsynccustom,placeholder:"请输入内容"},on:{select:e.handleSelectcustom},model:{value:e.draw.leaderName,callback:function(t){e.$set(e.draw,"leaderName",t)},expression:"draw.leaderName"}})],1),e._v(" "),""!==e.shenfen?r("p",[r("span",{staticClass:"span"},[e._v("导游身份证:")]),r("span",[e._v(e._s(e.shenfen))])]):e._e(),e._v(" "),r("p",[r("span",{staticClass:"span"},[e._v("游玩日期:")]),e._v(" "),r("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},on:{change:e.youwan},model:{value:e.draw.orderCheckDate,callback:function(t){e.$set(e.draw,"orderCheckDate",t)},expression:"draw.orderCheckDate"}})],1),e._v(" "),r("p",[r("span",{staticClass:"span"},[e._v("车牌号:")]),e._v(" "),r("el-input",{attrs:{placeholder:"请输入内容"},model:{value:e.draw.carCode,callback:function(t){e.$set(e.draw,"carCode",t)},expression:"draw.carCode"}})],1)]),e._v(" "),r("p",{staticStyle:{"text-align":"center"}},[r("button",{staticClass:"button",on:{click:e.ticketIssue}},[e._v("团队出票")])])])])},staticRenderFns:[]};var a=r("C7Lr")(s,i,!1,function(e){r("K9HK")},"data-v-678c99b0",null);t.a=a.exports},rnDA:function(e,t){},uRfC:function(e,t,r){"use strict";r.d(t,"a",function(){return l});var s=r("lOuq"),i=r.n(s),a=r("aUYq"),o=r.n(a);function n(e){var t=(""+e).split("e"),r=(t[0].split(".")[1]||"").length-(+t[1]||0);return r>0?r:0}function c(e){var t=""+e;return-1===t.indexOf("e")?+t.replace(".",""):+e*Math.pow(10,n(e))}function d(e){return(+e>o.a||+e<i.a)&&(console.warn(e+" is beyond boundary when transfer to integer, the results may not be accurate"),!0)}function l(e,t){for(var r=arguments.length,s=Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];if(s.length>0)return l(l(e,t),s[0],s.slice(1));var a=c(e)*c(t);return d(a),a/Math.pow(10,n(e)+n(t))}},"w/NI":function(e,t){}});
\ No newline at end of file
webpackJsonp([5],{"/8q3":function(e,t,r){r("20tZ"),e.exports=-9007199254740991},"/ycp":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s={data:function(){return{priceType:{channelFromKey:"computer",companyId:this.$store.state.companyId,groupType:0}}},components:{TheDrawerComponents:r("H62i").a},methods:{dianji:function(){this.$refs.mychild.ticketIssue(!0)}},created:function(){}},i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("TheDrawerComponents",{ref:"mychild",attrs:{priceType:this.priceType}},[t("button",{on:{click:this.dianji}},[this._v("出票")])])},staticRenderFns:[]};var a=r("C7Lr")(s,i,!1,function(e){r("4IdM")},null,null);t.default=a.exports},"20tZ":function(e,t,r){var s=r("uSC2");s(s.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},"4IdM":function(e,t){},"6yUe":function(e,t,r){r("GLtp"),e.exports=9007199254740991},AUUs:function(e,t,r){"use strict";(function(e){var s=r("aA9S"),i=r.n(s),a=r("3cXf"),o=r.n(a),n=r("4YfN"),c=r.n(n),d=r("8p6T"),l=r("zat1"),u=r("GYc6"),h=r("cxdB"),p=r("eeyJ"),m=r("GZf/"),y=r("hG4X"),f=r("oaxN"),v=r("RwQt"),b=r("nBy1"),g=r("uRfC"),T=r("bSIt");t.a={props:["priceType"],data:function(){return{saleChangePrice:!0,extraServers:[],showServer:!1,fieldsList:[],saleType:"",saleTypeList:[],isLoading:!0,haomiao:6e7,timess:null,TeamTickets:!1,time:null,custom:"",ChannelName:[],Allchannels:[],selectChannel:{},SelectChannelsList:[],totalAmount:0,displaySetup:!1,readonly:!0,border:0,phoneshow:!1,authshow:!1,maxshow:!1,tickshow:!1,index:0,tourGuide:{},payModelList:[],obj:{order:{mergerOrder:(0===this.priceType.groupType?JSON.parse(localStorage.getItem("mergeOrderStatus0")):JSON.parse(localStorage.getItem("mergeOrderStatus1")))||0,patchOrder:0,channelOrderId:"",carCode:"",leaderName:"",leaderId:"",orderCheckDate:"",buyNum:1,salePricePayTotal:0,companyId:this.$store.state.companyId,saleId:"",payType:"0",salePricePayedTotal:"",playDateFrom:"",subscribeDateFrom:"",channelId:"",saleCheckId:"",saleCheckMobile:"",payTypeCode:null},visitors:[]},pageTotal:0,pageshow:!1,product:{saleType:"",notStoreVisible:0,date:this.$commonJs.today(),pageIndex:1,pageSize:18,priceTypeId:"t5",batchDateFrom:this.$commonJs.today()+" 00:00:00",batchDateTo:this.$commonJs.today()+" 23:59:59",channelId:"",deBug:!0},prise:"",oldPrise:"",products:[],products2:[],PrinterList:[],printdata:"",allnum:"",succ:"",todaynum:0,todaymoney:0,newnumm:[],printModel:[],prinmode:JSON.parse(this.$store.state.config).printId,printModelObj:{companyId:this.$store.state.companyId,deviceType:this.$store.state.deviceType,deviceId:this.$store.state.deviceId,configs:[{configKey:"printId",configValue:JSON.parse(this.$store.state.config).printId}]},discounts:{},condition:!0,isShowQrcode:!1,qrcodeContent:"",waitPayStatusTips:"正在等待支付...",requestTimer:null,orderInfo:null,isShowScanningGun:!1,isCancelOrder:!1}},methods:c()({},Object(T.b)(["updateTourGuide"]),{closeServer:function(){this.showServer=!1},changeS:function(){var e=this;this.saleType="",this.product.notStoreVisible?this.$confirm("此操作将永久:不会排号,不能过闸,不会扣库存,是否继续?","提示",{cancelButtonText:"取消",confirmButtonText:"确定",type:"warning"}).then(function(){e.obj.order.patchOrder=1,e.getproduct(),e.$message({type:"success",message:"成功!"})}).catch(function(){e.obj.order.patchOrder=0,e.product.notStoreVisible=0,e.getproduct(),e.$message({type:"info",message:"已取消删除"})}):(this.obj.order.patchOrder=0,this.obj.order.playDateFrom="",this.getproduct())},cccc:function(){this.obj.visitors=[],this.updateTourGuide({}),1===this.priceType.groupType&&1===this.discounts.saleGroupLeader?this.draw():this.TeamTickets=!0},draw:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in this.tourGuide=e,console.log(this.tourGuide),this.TeamTickets=!1,e)this.obj.order[t]=e[t];this.ticketIssue(!1)},datas:function(e){this.TeamTickets=e},data:function(e){this.displaySetup=e},mergerOrderChange:function(e){this.clearInter(),0===this.priceType.groupType?localStorage.setItem("mergeOrderStatus0",e):localStorage.setItem("mergeOrderStatus1",e)},getPrintModel:function(){var e=this;this.axios.post(this.getProductUrl("print/query"),{companyId:this.$store.state.companyId}).then(function(t){"00"===t.data.code&&(e.printModel=t.data.data)})},model:function(e){var t=this;this.printModelObj.configs[0].configValue=e,this.axios.post(this.getSystem("config/save"),this.printModelObj).then(function(e){"00"==e.data.code&&(t.$message({message:"选择成功",type:"success"}),t.$commonJs.printModel(e.data.data,t))})},selectChannelChange:function(e){var t=this;this.clearInter(),this.saleType="",this.obj.order.channelOrderId="",this.custom="";var r=this.Allchannels.filter(function(t,r){return t.priceTypeId===e});this.selectChannel=r[0],setTimeout(function(){t.add(t.obj.order.buyNum)},1e3)},handleSelectcustom:function(e){this.obj.order.channelOrderId="",this.obj.order.channelId=e.channelId||"",this.product.channelId=e.channelId||"",this.saleType="",this.getproduct()},querySearchAsynccustom:function(e,t){var r=this;e||(this.obj.order.channelId="",this.product.channelId="");var s=0===this.ChannelName.length?this.Allchannels[0].channels:this.ChannelName[0].channels;s.forEach(function(e,t){r.$set(e,"value",e.companyName)});var i=e?s.filter(this.createStateFiltercustom(e)):s;clearTimeout(this.time),this.time=setTimeout(function(){t(i)},500*Math.random())},createStateFiltercustom:function(e){return function(t){return-1!==t.value.toLowerCase().indexOf(e.toLowerCase())}},gai:function(e){this.obj.order.salePricePayedTotal=e.target.value,this.obj.order.salePriceTotal=e.target.value},gaiprise:function(e){e?(this.readonly=!1,this.border="1px solid #cccccc"):(this.readonly=!0,this.border=0)},setVisitorField:function(e,t,r,s){var i=(e.checkField||{})[r]||{};(t[i.fieldId]=s,i.fieldInput)?t[i.fieldInput]=s:(t.fields=t.fields||[]).push({fieldId:i.fieldId,fieldValue:s})},initCheckField:function(e){var t=e.fields||[];if(null==e.checkField){for(var r={},s=0;s<t.length;s++){var i=t[s]||{};0!=i.inputType&&(r[i.fieldId]=i,i.fieldInput&&(r[i.fieldInput]=i))}e.checkField=r}},checkVistorField:function(e,t){return this.initCheckField(e),((e.checkField||{})[t]||{}).inputType||0},checkMobileInput:function(e){return this.checkVistorField(e,"visitorMobile")},checkIdInput:function(e){return this.checkVistorField(e,"visitorCardId")},checkVisitorNum:function(e,t,r){this.initCheckField(e);var s=0;switch(r=r||[],e.saleCheckId||0){case 1:s=1;break;case 2:s=t}return r.length>=s},checkCardRepeat:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.initCheckField(e);for(var r=(e.fields||[]).filter(function(e){return e.inputType>0}),s={},i=0;i<t.length;i++)for(var a=t[i],o=0;o<r.length;o++){var n=r[o],c=a[n.fieldInput||n.fieldId];if(0==n.fieldType&&c){var d=s[n.fieldId]=s[n.fieldId]||{};if(d[c])return this.$message.error("证件:"+n.fieldName+c+"重复"),!1;d[c]=!0}}return!0},checkVisitorOrder:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!this.checkVisitorNum(e,t,r))return this.$message.error("请输入游客信息"),!1;for(var s=(e.fields||[]).filter(function(e){return e.inputType>0}),i={},a=0;a<r.length;a++)for(var o=r[a]||{},n=0;n<s.length;n++){var c=s[n]||{},d=o[c.fieldInput||c.fieldId];if(0==c.fieldType&&!d){var l=i[c.fieldId]=i[c.fieldId]||{};if(l[d])return this.$message.error("证件"+c.fieldName+d+"重复"),!1;l[d]=!0}if(1==c.inputType&&!d&&0!==d&&c.fieldId>7&&20!=c.fieldId)return this.$message.error("请输入"+c.fieldName),!1}return!0},addVisitor:function(e){var t=this,r=this.obj||{},s=r.order||{},a=r.visitors||[];e.visitorMobile=e.visitorMobile||r.visitorPhone,a.unshift(e),this.checkCardRepeat(this.fieldsList,a)?this.checkVisitorNum(this.fieldsList,s.buyNum,a)&&this.checkVisitorOrder(this.fieldsList,s.buyNum,a)&&(this.obj.childOrders=[],window.serverList.length>0&&window.serverList.forEach(function(e,r){var s=JSON.parse(o()(t.obj.order)),a={buyNum:e.buyNum,saleId:e.saleId,salePricePayTotal:Object(g.a)(e.buyNum,e.salePricePay),salePricePayedTotal:Object(g.a)(e.buyNum,e.salePricePay),salePriceTotal:Object(g.a)(e.buyNum,e.salePricePay)},n={order:i()(s,a)};t.obj.childOrders.push(n)})):a.pop()},chck:function(e,t,r){var s=this;this.clearInter(),this.fieldsList=t,this.gaiprise(t.saleChangePrice),this.discounts=t,this.index=r.batchId+r.saleId,this.obj.order.channelOrderId="",this.obj.order.salePricePayTotal=Object(g.a)(t.salePricePay,this.obj.order.buyNum),this.obj.order.salePricePayedTotal=Object(g.a)(t.salePricePay,this.obj.order.buyNum),this.obj.order.salePriceTotal=Object(g.a)(t.salePricePay,this.obj.order.buyNum),this.obj.order.saleCheckId=t.saleCheckId,this.obj.order.saleCheckMobile=t.saleCheckMobile,this.prise=t.salePricePay,this.oldPrise=t.salePricePay,t.discountsList.length>0&&t.discountsList.forEach(function(e){1==e.buyNum&&(s.obj.order.salePricePayedTotal=Object(g.a)(e.salePricePay,s.obj.order.buyNum),s.obj.order.salePricePayTotal=Object(g.a)(e.salePricePay,s.obj.order.buyNum),s.obj.order.salePriceTotal=Object(g.a)(e.salePricePay,s.obj.order.buyNum),s.prise=e.salePricePay,s.oldPrise=e.salePricePay)}),this.obj.order.saleId=t.saleId,this.obj.order.subscribeDateFrom=r.batchDateFrom,this.product.date===this.$commonJs.today()?this.obj.order.playDateFrom=r.batchDateFrom:this.obj.order.playDateFrom=this.product.date+" 00:00:00"},dates:function(e){this.product.batchDateFrom=e+" 00:00:00",this.product.batchDateTo=e+" 23:59:59",this.saleType="",this.getproduct()},add:function(e){var t=this;if(this.clearInter(),this.obj.order.channelOrderId="",0!=this.discounts.discountsList.length){this.discounts.discountsList.forEach(function(r){e>=r.buyNum&&(t.prise=r.salePricePay,t.obj.order.salePricePayTotal=Object(g.a)(e,t.prise),t.obj.order.salePricePayedTotal=Object(g.a)(e,t.prise),t.obj.order.salePriceTotal=Object(g.a)(e,t.prise))});var r=Math.min.apply(Math,this.discounts.discountsList.map(function(e){return e.buyNum}));e<r&&(this.obj.order.salePricePayTotal=Object(g.a)(e,this.oldPrise),this.obj.order.salePricePayedTotal=Object(g.a)(e,this.oldPrise),this.obj.order.salePriceTotal=Object(g.a)(e,this.oldPrise))}else this.obj.order.salePricePayTotal=Object(g.a)(e,this.prise),this.obj.order.salePricePayedTotal=Object(g.a)(e,this.prise),this.obj.order.salePriceTotal=Object(g.a)(e,this.prise)},pagess:function(e){this.product.pageIndex=e,this.pageData()},pageData:function(){var e=this;this.axios.post(this.getStoreUrl("time/querySale"),this.product).then(function(t){"00"==t.data.code&&(e.products=t.data.data.list,e.pageshow=!0,e.products.forEach(function(t){t.scenes.forEach(function(t){t.myId=e.$commonJs.randoms()})}))})},dataOrder:function(){return window.order=window.order||{},window.order},interval:function(){var e=this;!function t(){e.timess=setTimeout(function(){e.SoTheChannel(),t()},e.haomiao)}()},clearInter:function(){clearTimeout(this.timess),this.interval()},ticketIssue:function(e){var t=this,r=this;if(this.condition)if(!this.product.notStoreVisible||this.obj.order.playDateFrom){e&&(this.$store.state.tourGuide={});var s=this.dataOrder();s.visitorPhone="",s.sale=this.fieldsList,s.orderObj=this.obj,s.that=this;var i=this.obj.order,a=i.companyId,n=i.saleId;i.salePricePayTotal;if(""!=a&&""!=n)if(JSON.parse(this.$store.state.config).printer){if(this.obj.order.channelOrderId=this.$commonJs.randoms(),sessionStorage.setItem("phonObjs",o()(this.obj)),0==this.products.length)return;var c=this.products.findIndex(function(e){return t.obj.order.saleId==e.saleId});if(this.extraServers=JSON.parse(o()(this.products[c].services)),window.serverList=this.products[c].services,this.extraServers.length>0)return void(this.showServer=!0);if(0===this.checkMobileInput(this.fieldsList)||this.obj.visitors.length)if(this.checkVisitorNum(this.fieldsList,this.obj.order.buyNum,this.obj.visitors)){!function e(){if(t.condition=!1,"6"==t.obj.order.payType){if(!t.obj.order.payTypeCode){console.log("胖丁扫码枪"),t.isShowScanningGun=!0;var s=JSON.parse(t.$store.state.config);return Scan.init(s.HardConfig,function(e){r.isShowScanningGun&&r.$message.error(e)},function(t,s){r.isShowScanningGun&&(r.obj.order.payTypeCode||(r.obj.order.payTypeCode=s.ScanCode,r.waitPayStatusTips="扫码成功",console.log(r.obj),e()))},1),!1}t.waitPayStatusTips="正在等待支付..."}!function e(){t.axios.post(t.getOrderUrl("order/save"),t.obj,{__retryCount:3}).then(function(e){t.condition=!0;var r=e.data||{};if(r.code,"00"!=r.code)return t.obj.order.payTypeCode=null,t.$message.error(r.message);var s=e.data.data,i=s.order;t.orderInfo=s.order;var a=s.pays[0]||null;if("5"==t.obj.order.payType){if(!a)return t.$message.error(e.data.message);var o=JSON.parse(a.channelPayInfo);return t.qrcodeContent=o.PayCode,t.isShowQrcode=!0,void t.openScanQrcodeHandle({companyId:i.companyId,orderId:i.orderId},"isShowQrcode")}if("6"==t.obj.order.payType)return a?(t.openScanQrcodeHandle({companyId:i.companyId,orderId:i.orderId},"isShowScanningGun"),!1):t.$message.error(e.data.message);t.obj.visitors=[],t.obj.visitorPhone="",t.authshow=!1,t.printTickets(r),document.location.reload()}).catch(function(r){t.condition=!0,t.$message.error(err),setTimeout(function(){e()},3e3)})}()}()}else this.authshow=!0;else this.phoneshow=!0}else this.$message.error("打印机名为空,请配置打印机");else this.$message.error("当前未选择票类型,不能出票")}else this.$message.error("请选择补单时间!")},ticketIssue2:function(e){var t=this,r=this;if(this.condition)if(!this.product.notStoreVisible||this.obj.order.playDateFrom){e&&(this.$store.state.tourGuide={});var s=this.dataOrder();s.visitorPhone="",s.sale=this.fieldsList,s.orderObj=this.obj,s.that=this;var a=this.obj.order,n=a.companyId,c=a.saleId;a.salePricePayTotal;if(""!=n&&""!=c)if(JSON.parse(this.$store.state.config).printer)if(this.obj.order.channelOrderId=this.$commonJs.randoms(),sessionStorage.setItem("phonObjs",o()(this.obj)),0===this.checkMobileInput(this.fieldsList)||this.obj.visitors.length)if(this.checkVisitorNum(this.fieldsList,this.obj.order.buyNum,this.obj.visitors)){!function e(){if(t.condition=!1,"6"==t.obj.order.payType){if(!t.obj.order.payTypeCode){console.log("胖丁扫码枪"),t.isShowScanningGun=!0;var s=JSON.parse(t.$store.state.config);return Scan.init(s.HardConfig,function(e){r.isShowScanningGun&&r.$message.error(e)},function(t,s){r.isShowScanningGun&&(r.obj.order.payTypeCode||(r.obj.order.payTypeCode=s.ScanCode,r.waitPayStatusTips="扫码成功",console.log(r.obj),e()))},1),!1}t.waitPayStatusTips="正在等待支付..."}t.obj.childOrders=[],window.serverList.length>0&&window.serverList.forEach(function(e,r){var s=JSON.parse(o()(t.obj.order)),a={buyNum:e.buyNum,saleId:e.saleId,salePricePayTotal:Object(g.a)(e.buyNum,e.salePricePay),salePricePayedTotal:Object(g.a)(e.buyNum,e.salePricePay),salePriceTotal:Object(g.a)(e.buyNum,e.salePricePay)},n={order:i()(s,a)};t.obj.childOrders.push(n)});!function e(){t.axios.post(t.getOrderUrl("order/save"),t.obj,{__retryCount:3}).then(function(e){t.condition=!0;var r=e.data||{};if(r.code,"00"!=r.code)return t.obj.order.payTypeCode=null,t.$message.error(r.message);var s=e.data.data,i=s.order;t.orderInfo=s.order;var a=s.pays[0]||null;if("5"==t.obj.order.payType){if(!a)return t.$message.error("订单返回数据格式错误,不包含支付信息");var o=JSON.parse(a.channelPayInfo);return t.qrcodeContent=o.PayCode,t.isShowQrcode=!0,void t.openScanQrcodeHandle({companyId:i.companyId,orderId:i.orderId},"isShowQrcode")}if("6"==t.obj.order.payType)return a?(t.openScanQrcodeHandle({companyId:i.companyId,orderId:i.orderId},"isShowScanningGun"),!1):t.$message.error("订单返回数据格式错误,不包含支付信息");t.obj.visitors=[],t.obj.visitorPhone="",t.authshow=!1,t.printTickets(r)}).catch(function(r){t.condition=!0,t.$message.error(err),setTimeout(function(){e()},3e3)})}()}()}else this.authshow=!0;else this.phoneshow=!0;else this.$message.error("打印机名为空,请配置打印机");else this.$message.error("当前未选择票类型,不能出票")}else this.$message.error("请选择补单时间!")},PrintError:function(e){var t=this;this.succ=!0,setTimeout(function(){t.tickshow=!1,t.succ=!1},100);var r=e&&(e.msg||e.Msg)||e;alert(r)},__Printed:function(){var e=this;this.succ=!0,window.order={},this.obj.order=this.obj.order||{},this.obj.order.buyNum=1,this.obj.order.channelOrderId="",this.obj.visitorPhone="",this.obj.visitors=[],setTimeout(function(){e.tickshow=!1,e.maxshow=!1,e.succ=!1},1e3),this.gettoday(),this.getproduct()},__PrintIteming:function(e){this.tickshow=!0,this.printdata=e.Data.Pos,this.allnum=e.Data.Count},loadPrint:function(){var t=this;function r(r){r=r||[];var s=[];e.each(r,function(e,t){s.push({id:t,name:t})}),t.Rendering(s)}try{Base.getHard().getPrinter(function(e){r(e)},function(e){r()})}catch(e){r()}},Rendering:function(e){0!=e.length?this.PrinterList=e:this.PrinterList=[{name:"暂无打印机",id:""},{name:"Microsoft XPS Document Writer",id:"Microsoft XPS Document Writer"}]},closephone:function(e){this.phoneshow=e},phonOk:function(){this.phoneshow=!1,this.authshow=!0},auclose:function(){this.obj.visitors=[],this.obj.visitorPhone="",this.obj.order.payTypeCode=null,this.authshow=!1},augoup:function(){this.authshow=!1,this.phoneshow=!0,this.obj.visitors=[]},ticket:function(e){this.maxshow=!1,this.tickshow=!0},fanhui:function(){this.maxshow=!1,this.authshow=!0},tik:function(e){this.tickshow=!0,this.authshow=!1},manual:function(){this.authshow=!1,this.maxshow=!0},maxclose:function(){this.maxshow=!1,this.obj.visitors=[],this.obj.visitorPhone="",this.obj.order.payTypeCode=null},tickclose:function(){this.tickshow=!1},getproduct:function(){var e=this;this.axios.post(this.getStoreUrl("time/querySale"),this.product,{isLoading:this.isLoading}).then(function(t){if("00"!=t.data.code)return!1;if(0==t.data.data.list.length)return e.saleChangePrice=!1,e.products=[],e.products2=[],e.$message.error("暂无当前票种!"),!1;e.saleChangePrice=t.data.data.list.saleChangePrice;var r=t.data.data.list.filter(function(e){return 1!=e.saleServiceType}),s=null,i=((e.obj||{}).order||{}).saleId||"";if(e.products=r.filter(function(e,t){var r=(e.scenes||[]).length>0;return!r||i!=e.saleId&&null!=s||(s=e),r}),e.products2=r.filter(function(e,t){if(0!==!e.scenes.length)return e}),e.fieldsList=r.find(function(e,t){return e.scenes.length>0}),0!=e.products.length&&(e.extraServers=s.services,window.serverList=s.services,e.obj.order.saleId=s.saleId,e.discounts=s,e.obj.order.salePricePayedTotal=s.salePricePay,e.obj.order.salePricePayTotal=Object(g.a)(s.salePricePay,e.obj.order.buyNum),e.gaiprise(s.saleChangePrice),e.obj.order.salePriceTotal=s.salePricePay,e.obj.order.saleCheckId=s.saleCheckId,e.obj.order.saleCheckMobile=s.saleCheckMobile,e.prise=s.salePricePay,e.oldPrise=s.salePricePay,s.discountsList.length>0&&s.discountsList.forEach(function(t){1==t.buyNum&&(e.obj.order.salePricePayedTotal=t.salePricePay,e.obj.order.salePricePayTotal=Object(g.a)(t.salePricePay,e.obj.order.buyNum),e.obj.order.salePriceTotal=t.salePricePay,e.prise=t.salePricePay,e.oldPrise=t.salePricePay)}),e.pageshow=!0,e.pageTotal=t.data.data.pageTotal,0!=s.scenes.length)){e.obj.order.subscribeDateFrom=s.scenes[0].batchDateFrom,e.product.date==e.$commonJs.today()?e.obj.order.playDateFrom=s.scenes[0].batchDateFrom:e.obj.order.playDateFrom=e.product.date+" 00:00:00";var a=s.scenes[0];e.index=a.batchId+a.saleId}})},gettoday:function(){var e=this;this.axios.post(this.getOrderUrl("order/getDay"),{pageSize:1}).then(function(t){"00"==t.data.code&&(e.todaynum=t.data.main.buyNum,e.todaymoney=t.data.main.salePricePayTotal,e.newnumm=t.data.data.list)})},chong:function(e){var t=this;if(this.condition){var r={orderId:e.orderId,all:!0};""==this.obj.order.printer?this.$message.error("请选择打印机"):(this.condition=!1,this.axios.post(this.getOrderUrl("order/load"),r).then(function(e){var r=e.data||{};t.$commonJs.printRes(r,t,Base,t.PrintError,t.__Printed,t.__PrintIteming),t.condition=!0}))}},SoTheChannel:function(){var e=this;0!==this.products.length&&(this.isLoading=!1),this.axios.post(this.getSystem("channel/windowList"),this.priceType,{isLoading:this.isLoading}).then(function(t){"00"===t.data.code?(e.Allchannels=t.data.data,e.selectChannel=e.Allchannels[0]):e.$message.error(t.data.message)})},initTicketType:function(){var e=this,t={companyId:this.companyId,enumType:"saleType",pageIndex:1,pageSize:this.$pageSize};this.axios.post(this.getSystem("systemEnum/drop"),t).then(function(t){"00"==t.data.code?e.saleTypeList=t.data.data:e.$message.error(t.data.message)})},chooseTicket:function(e){this.products2.length>0&&(this.products=this.products2.filter(function(t){return t.saleType==e}))},selectChannelsItemChange:function(e){var t=this;this.obj.order.channelId=e,this.product.channelId=e,this.getproduct();var r=this.SelectChannelsList.filter(function(t){return t.channelId==e});if(0==r.length)return this.payModelList=[],void(this.obj.order.payType="");var s=r[0];if(this.payModelList=s.payTypes,0!=this.payModelList.length){if(0==this.payModelList.filter(function(e){return e.payedType==t.selectChannel.payedType}).length)this.obj.order.payType=this.payModelList[0].payedType;else this.obj.order.payType=this.selectChannel.payedType+"",-1===this.payModelList.findIndex(function(e){return e.payedType===t.obj.order.payType})&&(this.obj.order.payType=this.payModelList[0].payedType);this.totalAmount=s.moneyVo.totalAmount,setTimeout(function(){t.add(t.obj.order.buyNum)},1e3)}else this.obj.order.payType=""},selectPayModelChange:function(e){this.obj.order.payType=e},openScanQrcodeHandle:function(e,t){var r=this;if(window.clearTimeout(this.requestTimer),!this.isCancelOrder&&e){var s={order:e};this.axios.post(this.getOrderUrl("order/wait"),s,{isLoading:!1}).then(function(s){var i=s.data;if("00"!=i.code)return r.$message.error(i.message);r[t]&&((i.data.order||{}).orderStatus<4?r.requestTimer=window.setTimeout(function(){r.openScanQrcodeHandle(e,t)},500):(window.clearTimeout(r.requestTimer),r.waitPayStatusTips="支付完成",r.isShowQrcode=!1,r.isShowScanningGun=!1,r.waitPayStatusTips="正在等待支付...",r.printTickets(i)))}).catch(function(s){window.clearTimeout(r.requestTimer),r.$message.error(s),r.requestTimer=window.setTimeout(function(){r.openScanQrcodeHandle(e,t)},500)})}},closeScanQrcodeHandle:function(){var e=this;if(this.condition=!0,this.isShowQrcode=!1,this.isShowScanningGun=!1,this.isCancelOrder=!0,window.clearTimeout(this.requestTimer),this.orderInfo){var t={order:{orderId:this.orderInfo.orderId,companyId:this.orderInfo.companyId}};this.axios.post(this.getOrderUrl("order/cancel"),t).then(function(t){e.isCancelOrder=!1;var r=t.data;if("00"!=r.code)return e.$message.error(r.message);e.orderInfo=null,e.obj.visitors=[],e.obj.visitorPhone=""}).catch(function(t){console.log("请求失败"),window.clearTimeout(e.requestTimer),e.requestTimer=window.setTimeout(function(){e.closeScanQrcodeHandle()},1e3)},1e3)}},closeScanningGunHandle:function(){this.isShowScanningGun=!1,this.obj.order.payTypeCode=null,this.condition=!0,this.waitPayStatusTips="正在等待支付...",this.closeScanQrcodeHandle()},printTickets:function(e){this.obj.visitors=[],this.obj.visitorPhone="",this.obj.order.payTypeCode=null,this.orderInfo=null,this.$commonJs.printRes(e,this,Base,this.PrintError,this.__Printed,this.__PrintIteming)},closePayQrcodeHandle:function(){console.log("关闭"),this.isShowScanningGun=!1,this.isShowQrcode=!1,this.condition=!0,this.waitPayStatusTips="正在等待支付...",window.clearTimeout(this.requestTimer)},scanDevice:function(){}}),components:{phone:d.a,authent:l.a,maxual:u.a,ticketIssue:h.a,pages:m.a,localSettings:y.a,TeamTicket:f.a,breadNav:v.default,plusServer:p.a,scanQrcode:b.a},created:function(){this.SoTheChannel(),this.loadPrint(),this.gettoday(),this.getPrintModel(),this.initTicketType()},mounted:function(){},watch:{selectChannel:function(e){var t=this;if(this.SelectChannelsList=e.channels,this.product.priceTypeId=e.priceTypeId,this.obj.order.payType=e.payedType+"",0==this.SelectChannelsList.length)return this.products=[],void(this.products2=[]);var r=this.SelectChannelsList[0];this.payModelList=r.payTypes,-1===this.payModelList.findIndex(function(e){return e.payedType===t.obj.order.payType})&&(this.obj.order.payType=this.payModelList[0].payedType),this.custom=r.channelId,this.product.channelId=r.channelId,this.obj.order.channelId=r.channelId,this.getproduct(),this.totalAmount=r.moneyVo.totalAmount}},beforeDestroy:function(){clearTimeout(this.timess),this.timess=null}}}).call(t,r("SXXC"))},GLtp:function(e,t,r){var s=r("uSC2");s(s.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},H62i:function(e,t,r){"use strict";var s=r("AUUs"),i={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"bigBox"},[r("breadNav",[e._v("窗口售票")]),e._v(" "),r("div",{staticClass:"tab"},[r("div",[r("p",[e._v("最新记录")]),e._v(" "),r("p",[r("span",[e._v("今日售票量:"),r("i",[e._v(e._s(e.todaynum))]),e._v("张")]),r("span",[e._v("金额:"),r("i",[e._v(e._s(e.todaymoney))]),e._v("元")])])]),e._v(" "),e._l(e.newnumm,function(t,s){return r("div",{key:s},[r("p",[e._v(e._s(t.productName))]),e._v(" "),r("p",[e._v(e._s(t.buyNum)+"张")]),e._v(" "),r("p",[e._v(e._s(t.salePricePayTotal)+"元")]),e._v(" "),r("p",[e._v(e._s(t.createDate))]),e._v(" "),r("p",{staticClass:"chon",on:{click:function(r){return e.chong(t)}}},[e._v("重新打印")])])})],2),e._v(" "),r("div",{staticClass:"box"},[r("div",[r("div",{staticClass:"tit query-row"},[r("div",{staticClass:"query-item"},[r("span",[e._v("时间:")]),e._v(" "),r("el-date-picker",{attrs:{"prefix-icon":"none",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},on:{change:e.dates},model:{value:e.product.date,callback:function(t){e.$set(e.product,"date",t)},expression:"product.date"}})],1),e._v(" "),r("div",{staticClass:"query-item"},[r("span",[e._v("渠道类型:")]),e._v(" "),r("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:e.selectChannelChange},model:{value:e.product.priceTypeId,callback:function(t){e.$set(e.product,"priceTypeId",t)},expression:"product.priceTypeId"}},e._l(e.Allchannels,function(e,t){return r("el-option",{key:t,attrs:{label:e.priceTypeName,value:e.priceTypeId}})}),1)],1),e._v(" "),r("div",{staticClass:"query-item"},[r("span",[e._v("渠道名称:")]),e._v(" "),r("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:e.selectChannelsItemChange},model:{value:e.custom,callback:function(t){e.custom=t},expression:"custom"}},e._l(e.SelectChannelsList,function(e){return r("el-option",{key:e.channelId,attrs:{label:e.companyName,value:e.channelId}})}),1)],1),e._v(" "),r("div",{staticClass:"query-item"},[r("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.changeS},model:{value:e.product.notStoreVisible,callback:function(t){e.$set(e.product,"notStoreVisible",t)},expression:"product.notStoreVisible"}},[e._v(" "+e._s(e.obj.order.patchOrder?"补单时间":"补单"))]),e._v(" "),e.obj.order.patchOrder?r("el-date-picker",{attrs:{"prefix-icon":"none",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.obj.order.playDateFrom,callback:function(t){e.$set(e.obj.order,"playDateFrom",t)},expression:"obj.order.playDateFrom"}}):e._e()],1),e._v(" "),r("div",{staticClass:"chu query-item"},[e._t("default"),e._v(" "),r("button",{staticStyle:{"margin-left":"0.1rem"},on:{click:function(t){e.displaySetup=!0}}},[e._v("\n 设置\n ")])],2)]),e._v(" "),r("div",{staticClass:"num query-row"},[r("div",{staticClass:"query-item"},[r("span",[e._v("数量:")]),e._v(" "),r("el-input-number",{attrs:{min:1,label:"描述文字"},on:{change:e.add},model:{value:e.obj.order.buyNum,callback:function(t){e.$set(e.obj.order,"buyNum",t)},expression:"obj.order.buyNum"}})],1),e._v(" "),r("div",{staticClass:"query-item"},[r("span",{staticStyle:{display:"inline-block"}},[e._v("总票价:   ")]),e._v(" "),e.saleChangePrice?r("el-input",{staticClass:"no-border",attrs:{type:"text"},model:{value:e.obj.order.salePricePayTotal,callback:function(t){e.$set(e.obj.order,"salePricePayTotal",t)},expression:"obj.order.salePricePayTotal"}}):r("input",{directives:[{name:"model",rawName:"v-model",value:e.obj.order.salePricePayTotal,expression:"obj.order.salePricePayTotal"}],staticClass:"no-border",style:{border:e.border,paddingLeft:"10px"},attrs:{readonly:e.readonly},domProps:{value:e.obj.order.salePricePayTotal},on:{change:function(t){return e.gai(t)},input:function(t){t.target.composing||e.$set(e.obj.order,"salePricePayTotal",t.target.value)}}}),e._v("\n\n ")],1),e._v(" "),r("div",{staticClass:"query-item"},[r("span",[e._v("结算方式:")]),e._v(" "),r("el-select",{attrs:{placeholder:"请选择结算方式"},on:{change:e.selectPayModelChange},model:{value:e.obj.order.payType,callback:function(t){e.$set(e.obj.order,"payType",t)},expression:"obj.order.payType"}},e._l(e.payModelList,function(e){return r("el-option",{key:e.payedType,attrs:{label:e.payedTypeName,value:e.payedType}})}),1)],1),e._v(" "),r("div",{staticClass:"query-item",staticStyle:{width:"4rem"}},[r("p",{staticStyle:{display:"inline"}},[e._v("\n 余额:"),r("b",{staticStyle:{"font-weight":"bold"}},[e._v(e._s(e.totalAmount))]),e._v(" 元\n ")]),e._v(" "),r("p",{staticStyle:{display:"inline","margin-left":"0.3rem"}},[r("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.mergerOrderChange},model:{value:e.obj.order.mergerOrder,callback:function(t){e.$set(e.obj.order,"mergerOrder",t)},expression:"obj.order.mergerOrder"}},[e._v("单张出票")])],1)])])])]),e._v(" "),r("div",{staticClass:"allbox"},[r("div",{staticClass:"piao"},[r("p",{staticStyle:{"align-items":"center",display:"flex","margin-bottom":"0.1rem"}},[r("span",[e._v(" 票种: ")]),e._v(" "),r("el-select",{on:{change:function(t){return e.chooseTicket(e.product.saleType)}},model:{value:e.product.saleType,callback:function(t){e.$set(e.product,"saleType",t)},expression:"product.saleType"}},[r("el-option",{attrs:{label:"--所有--",value:""}}),e._v(" "),e._l(e.saleTypeList,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})],2)],1),e._v(" "),r("div",e._l(e.products,function(t,s){return r("div",{key:s},e._l(t.scenes,function(s,i){return r("div",{key:i,class:{dan:!0,hui:e.index==s.batchId+s.saleId},on:{click:function(r){return e.chck(i,t,s)}}},[r("div",[r("div",[e._v("\n "+e._s(t.productName)+"\n "),r("p",[0!=t.scenes.length?r("span",[e._v("\n "+e._s(s.batchDateFrom.slice(10,s.batchDateFrom.length-3))+"-"+e._s(s.batchDateTo.slice(10,s.batchDateTo.length-3))+"\n ")]):e._e()])]),e._v(" "),r("div",[e._v("¥"+e._s(t.salePricePay))])]),e._v(" "),r("p",{staticStyle:{display:"flex","justify-content":"space-between","padding-right":"0.2rem"}},[r("span",[e._v(" 库存:"+e._s(s.hasNum)+" ")]),e._v(" "),r("span",{staticStyle:{color:"#666666","font-size":"0.1rem"}},[e._v("\n "+e._s(t.saleTypeName)+"\n ")])])])}),0)}),0)]),e._v(" "),r("pages",{directives:[{name:"show",rawName:"v-show",value:e.pageshow,expression:"pageshow"}],attrs:{pagesize:e.product.pageSize,total:e.pageTotal},on:{page:e.pagess}})],1),e._v(" "),e.phoneshow?r("phone",{attrs:{tourGuide:e.tourGuide},on:{closed:e.closephone,phonOk:e.phonOk}}):e._e(),e._v(" "),e.authshow?r("authent",{attrs:{tourGuide:e.tourGuide,buyNum:e.obj.order.buyNum,fieldsList:e.fieldsList},on:{closed:e.auclose,goup:e.augoup,manual:e.manual,tik:e.tik}}):e._e(),e._v(" "),e.maxshow?r("maxual",{attrs:{fieldsList:e.fieldsList},on:{ticket:e.ticket,closed:e.maxclose}}):e._e(),e._v(" "),e.tickshow?r("ticketIssue",{attrs:{succ:e.succ},on:{closed:e.tickclose}},[r("span",{attrs:{slot:"pag"},slot:"pag"},[e._v(e._s(e.printdata))]),e._v(" "),r("span",{attrs:{slot:"num"},slot:"num"},[e._v(e._s(e.allnum))])]):e._e(),e._v(" "),e.displaySetup?r("localSettings",{attrs:{PrinterList:e.PrinterList,printModel:e.printModel},on:{data:e.data}}):e._e(),e._v(" "),e.TeamTickets?r("TeamTicket",{on:{datas:e.datas,draw:e.draw}}):e._e(),e._v(" "),e.showServer?r("plusServer",{attrs:{num:e.obj.order.buyNum,extraServers:e.extraServers},on:{close:function(t){return e.closeServer()}}}):e._e(),e._v(" "),r("el-dialog",{attrs:{width:"400",title:"请扫描二维码",center:"",visible:e.isShowQrcode,"close-on-click-modal":!1,"append-to-body":"","show-close":!1},on:{"update:visible":function(t){e.isShowQrcode=t},open:e.openScanQrcodeHandle,close:e.closePayQrcodeHandle}},[r("scan-qrcode",{attrs:{value:e.qrcodeContent}}),e._v(" "),r("p",{staticStyle:{"font-size":"0.18rem","text-align":"center",margin:"0.2rem 0"}},[e._v(e._s(e.waitPayStatusTips))]),e._v(" "),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"normal"},on:{click:e.closeScanQrcodeHandle}},[e._v("取消支付")])],1)],1),e._v(" "),r("el-dialog",{attrs:{width:"200",title:"胖丁扫码枪",center:"",visible:e.isShowScanningGun,"close-on-click-modal":!1,"append-to-body":"","show-close":!1},on:{"update:visible":function(t){e.isShowScanningGun=t},close:e.closePayQrcodeHandle}},[r("p",{staticStyle:{"font-size":"0.18rem","text-align":"center",margin:"0.2rem 0"}},[e._v(e._s(e.waitPayStatusTips))]),e._v(" "),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"normal"},on:{click:e.closeScanningGunHandle}},[e._v("取消支付")])],1)])],1)},staticRenderFns:[]};var a=function(e){r("fx+J")},o=r("C7Lr")(s.a,i,!1,a,"data-v-874cb54a",null);t.a=o.exports},K9HK:function(e,t){},aUYq:function(e,t,r){e.exports={default:r("6yUe"),__esModule:!0}},eeyJ:function(e,t,r){"use strict";var s=r("3cXf"),i=r.n(s),a={props:["num","extraServers"],data:function(){return{numbers:0,serverList:JSON.parse(i()(window.serverList)),getPriceList:[]}},methods:{close:function(){this.$emit("close")},next:function(){var e=this;this.serverList.length>0&&this.serverList.forEach(function(t,r){t.buyNum=e.numbers}),window.serverList=this.serverList,this.$emit("close"),this.$parent.ticketIssue2(!0)},numberChange:function(){for(var e=this,t=0;t<this.getPriceList.length;t++)this.extraServers[t].salePricePay=this.getSalePricePay(this.getPriceList[t],this.numbers);for(var r=function(t){var r=e.getPriceList.findIndex(function(r){return e.serverList[t].saleId==r.saleId});e.serverList[t].salePricePay=e.getSalePricePay(e.getPriceList[r],e.numbers)},s=0;s<this.serverList.length;s++)r(s)},getSalePricePay:function(e,t){for(var r=e.salePricePay||0,s=e.discountsList||[],i=null,a=0;a<s.length;a++){var o=s[a]||{};null==o||0==o.buyNum||(null==i||o.buyNum>i.buyNum)&&o.buyNum<=t&&(i=o)}return null!=i&&(r=i.salePricePay||0),r}},mounted:function(){var e=this;this.numbers=this.num,this.getPriceList=JSON.parse(i()(this.extraServers)),window.serverList.length>0&&window.serverList.forEach(function(t,r){t.buyNum=e.numbers}),this.numberChange(),console.log(this.serverList)}},o={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"server"},[r("div",{staticClass:"serverBox"},[r("p",{staticStyle:{position:"relative"}},[e._v("\n 增加服务\n "),r("span",{staticStyle:{position:"absolute",right:"20px",top:"5px","font-size":"0.24rem",color:"#666666","font-weight":"400",cursor:"pointer"},on:{click:e.close}},[e._v("x")])]),e._v(" "),r("div",{staticClass:"serverDiv"},[r("div",e._l(e.extraServers,function(t,s){return r("p",{key:s},[r("span",{staticStyle:{display:"inline-block",width:"2.2rem"}},[e._v(e._s(t.productName))]),e._v(" "),r("span",{staticStyle:{display:"inline-block",width:"0.7rem"}},[e._v(e._s(t.salePricePay)+"元/份")]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.serverList,expression:"serverList"}],attrs:{type:"checkbox"},domProps:{value:t,checked:Array.isArray(e.serverList)?e._i(e.serverList,t)>-1:e.serverList},on:{change:[function(r){var s=e.serverList,i=r.target,a=!!i.checked;if(Array.isArray(s)){var o=t,n=e._i(s,o);i.checked?n<0&&(e.serverList=s.concat([o])):n>-1&&(e.serverList=s.slice(0,n).concat(s.slice(n+1)))}else e.serverList=a},function(t){return e.numberChange()}]}})])}),0),e._v(" "),r("div",[r("span",[e._v("购买数量:")]),e._v(" "),r("el-input-number",{attrs:{min:0},on:{change:function(t){return e.numberChange()}},model:{value:e.numbers,callback:function(t){e.numbers=t},expression:"numbers"}})],1),e._v(" "),e._m(0)]),e._v(" "),r("p",[r("a",{staticClass:"btn4",on:{click:function(t){return e.next()}}},[e._v("下一步")])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("span",[this._v("退改规则:")]),this._v("\n 不可退\n ")])}]};var n=r("C7Lr")(a,o,!1,function(e){r("w/NI")},"data-v-1ce763d2",null);t.a=n.exports},"fx+J":function(e,t){},lOuq:function(e,t,r){e.exports={default:r("/8q3"),__esModule:!0}},oaxN:function(e,t,r){"use strict";var s={data:function(){return{time:null,shenfen:"",draw:{leaderId:"",leaderName:"",orderCheckDate:"",carCode:""},list:[]}},created:function(){var e=this;this.axios.post(this.getChanel("leader/list"),{companyId:this.$store.state.companyId,companyName:this.trench,pageIndex:1,pageSize:999}).then(function(t){"00"===t.data.code&&(e.list=t.data.data.list,e.list.forEach(function(t,r){var s=t.leaderName+t.leaderNo;e.$set(t,"value",s)}),""!==e.list[0].leaderCardId&&""!==e.list[0].leaderMobile&&(e.$store.state.tourGuide=e.list[0]))})},methods:{handleSelectcustom:function(e){this.draw.leaderId=e.leaderId,this.draw.leaderName=e.leaderName,this.draw.leaderMobile=e.leaderMobile,this.draw.leaderCardId=e.leaderCardId,this.shenfen=e.leaderCardId,""!==e.leaderCardId&&""!==e.leaderMobile?this.$store.state.tourGuide=e:this.$store.state.tourGuide={}},querySearchAsynccustom:function(e,t){var r=this,s=this.list;s.forEach(function(e,t){var s=e.leaderName+e.leaderNo;r.$set(e,"value",s)});var i=e?s.filter(this.createStateFiltercustom(e)):s;clearTimeout(this.time),this.time=setTimeout(function(){t(i)},500*Math.random())},createStateFiltercustom:function(e){return function(t){return-1!==t.value.toLowerCase().indexOf(e.toLowerCase())}},daoyou:function(e){var t=this;this.list.forEach(function(e,r){e.leaderId===t.draw.leaderId&&(t.draw.leaderName=e.leaderName,t.shenfen=e.leaderCardId,""!==e.leaderCardId&&""!==e.leaderMobile?t.$store.state.tourGuide=e:t.$store.state.tourGuide={})})},youwan:function(e){this.draw.orderCheckDate=this.$commonJs.formattime(this.draw.orderCheckDate)},ticketIssue:function(){""!==this.draw.leaderId?""!==this.draw.orderCheckDate?this.$emit("draw",this.draw):this.$message.error("请选择游玩日期!"):this.$message.error("请选择导游!")},cc:function(){this.$emit("datas",!1)}}},i={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"table"},[r("div",{staticClass:"box"},[r("p",{staticClass:"p"},[r("span",[e._v("团队出票")]),e._v(" "),r("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"},on:{click:e.cc}},[r("use",{attrs:{"xlink:href":"#iconguanbi1"}})])]),e._v(" "),r("div",[r("p",[r("span",{staticClass:"span"},[e._v("导游:")]),e._v(" "),r("el-autocomplete",{attrs:{"fetch-suggestions":e.querySearchAsynccustom,placeholder:"请输入内容"},on:{select:e.handleSelectcustom},model:{value:e.draw.leaderName,callback:function(t){e.$set(e.draw,"leaderName",t)},expression:"draw.leaderName"}})],1),e._v(" "),""!==e.shenfen?r("p",[r("span",{staticClass:"span"},[e._v("导游身份证:")]),r("span",[e._v(e._s(e.shenfen))])]):e._e(),e._v(" "),r("p",[r("span",{staticClass:"span"},[e._v("游玩日期:")]),e._v(" "),r("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},on:{change:e.youwan},model:{value:e.draw.orderCheckDate,callback:function(t){e.$set(e.draw,"orderCheckDate",t)},expression:"draw.orderCheckDate"}})],1),e._v(" "),r("p",[r("span",{staticClass:"span"},[e._v("车牌号:")]),e._v(" "),r("el-input",{attrs:{placeholder:"请输入内容"},model:{value:e.draw.carCode,callback:function(t){e.$set(e.draw,"carCode",t)},expression:"draw.carCode"}})],1)]),e._v(" "),r("p",{staticStyle:{"text-align":"center"}},[r("button",{staticClass:"button",on:{click:e.ticketIssue}},[e._v("团队出票")])])])])},staticRenderFns:[]};var a=r("C7Lr")(s,i,!1,function(e){r("K9HK")},"data-v-678c99b0",null);t.a=a.exports},uRfC:function(e,t,r){"use strict";r.d(t,"a",function(){return l});var s=r("lOuq"),i=r.n(s),a=r("aUYq"),o=r.n(a);function n(e){var t=(""+e).split("e"),r=(t[0].split(".")[1]||"").length-(+t[1]||0);return r>0?r:0}function c(e){var t=""+e;return-1===t.indexOf("e")?+t.replace(".",""):+e*Math.pow(10,n(e))}function d(e){return(+e>o.a||+e<i.a)&&(console.warn(e+" is beyond boundary when transfer to integer, the results may not be accurate"),!0)}function l(e,t){for(var r=arguments.length,s=Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];if(s.length>0)return l(l(e,t),s[0],s.slice(1));var a=c(e)*c(t);return d(a),a/Math.pow(10,n(e)+n(t))}},"w/NI":function(e,t){}});
\ No newline at end of file
webpackJsonp([5],{"/8q3":function(e,t,r){r("20tZ"),e.exports=-9007199254740991},"/ycp":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s={data:function(){return{priceType:{channelFromKey:"computer",companyId:this.$store.state.companyId,groupType:0}}},components:{TheDrawerComponents:r("H62i").a},methods:{dianji:function(){this.$refs.mychild.ticketIssue(!0)}},created:function(){}},i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("TheDrawerComponents",{ref:"mychild",attrs:{priceType:this.priceType}},[t("button",{on:{click:this.dianji}},[this._v("出票")])])},staticRenderFns:[]};var a=r("C7Lr")(s,i,!1,function(e){r("4IdM")},null,null);t.default=a.exports},"20tZ":function(e,t,r){var s=r("uSC2");s(s.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},"4IdM":function(e,t){},"6yUe":function(e,t,r){r("GLtp"),e.exports=9007199254740991},"7hOx":function(e,t){},AUUs:function(e,t,r){"use strict";(function(e){var s=r("aA9S"),i=r.n(s),a=r("3cXf"),o=r.n(a),n=r("4YfN"),c=r.n(n),d=r("8p6T"),l=r("zat1"),u=r("GYc6"),h=r("cxdB"),p=r("eeyJ"),y=r("GZf/"),m=r("hG4X"),f=r("oaxN"),v=r("RwQt"),b=r("nBy1"),g=r("uRfC"),T=r("bSIt");t.a={props:["priceType"],data:function(){return{saleChangePrice:!0,extraServers:[],showServer:!1,fieldsList:[],saleType:"",saleTypeList:[],isLoading:!0,haomiao:6e7,timess:null,TeamTickets:!1,time:null,custom:"",ChannelName:[],Allchannels:[],selectChannel:{},SelectChannelsList:[],totalAmount:0,displaySetup:!1,readonly:!0,border:0,phoneshow:!1,authshow:!1,maxshow:!1,tickshow:!1,index:0,tourGuide:{},payModelList:[],obj:{order:{mergerOrder:(0===this.priceType.groupType?JSON.parse(localStorage.getItem("mergeOrderStatus0")):JSON.parse(localStorage.getItem("mergeOrderStatus1")))||0,patchOrder:0,channelOrderId:"",carCode:"",leaderName:"",leaderId:"",orderCheckDate:"",buyNum:1,salePricePayTotal:0,companyId:this.$store.state.companyId,saleId:"",payType:"0",salePricePayedTotal:"",playDateFrom:"",subscribeDateFrom:"",channelId:"",saleCheckId:"",saleCheckMobile:"",payTypeCode:null},visitors:[]},pageTotal:0,pageshow:!1,product:{saleType:"",notStoreVisible:0,date:this.$commonJs.today(),pageIndex:1,pageSize:18,priceTypeId:"t5",batchDateFrom:this.$commonJs.today()+" 00:00:00",batchDateTo:this.$commonJs.today()+" 23:59:59",channelId:"",deBug:!0},prise:"",oldPrise:"",products:[],products2:[],PrinterList:[],printdata:"",allnum:"",succ:"",todaynum:0,todaymoney:0,newnumm:[],printModel:[],prinmode:JSON.parse(this.$store.state.config).printId,printModelObj:{companyId:this.$store.state.companyId,deviceType:this.$store.state.deviceType,deviceId:this.$store.state.deviceId,configs:[{configKey:"printId",configValue:JSON.parse(this.$store.state.config).printId}]},discounts:{},condition:!0,isShowQrcode:!1,qrcodeContent:"",waitPayStatusTips:"正在等待支付...",requestTimer:null,orderInfo:null,isShowScanningGun:!1,isCancelOrder:!1}},methods:c()({},Object(T.b)(["updateTourGuide"]),{closeServer:function(){this.showServer=!1},changeS:function(){var e=this;this.saleType="",this.product.notStoreVisible?this.$confirm("此操作将永久:不会排号,不能过闸,不会扣库存,是否继续?","提示",{cancelButtonText:"取消",confirmButtonText:"确定",type:"warning"}).then(function(){e.obj.order.patchOrder=1,e.getproduct(),e.$message({type:"success",message:"成功!"})}).catch(function(){e.obj.order.patchOrder=0,e.product.notStoreVisible=0,e.getproduct(),e.$message({type:"info",message:"已取消删除"})}):(this.obj.order.patchOrder=0,this.obj.order.playDateFrom="",this.getproduct())},cccc:function(){this.obj.visitors=[],this.updateTourGuide({}),1===this.priceType.groupType&&1===this.discounts.saleGroupLeader?this.draw():this.TeamTickets=!0},draw:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in this.tourGuide=e,console.log(this.tourGuide),this.TeamTickets=!1,e)this.obj.order[t]=e[t];this.ticketIssue(!1)},datas:function(e){this.TeamTickets=e},data:function(e){this.displaySetup=e},mergerOrderChange:function(e){this.clearInter(),0===this.priceType.groupType?localStorage.setItem("mergeOrderStatus0",e):localStorage.setItem("mergeOrderStatus1",e)},getPrintModel:function(){var e=this;this.axios.post(this.getProductUrl("print/query"),{companyId:this.$store.state.companyId}).then(function(t){"00"===t.data.code&&(e.printModel=t.data.data)})},model:function(e){var t=this;this.printModelObj.configs[0].configValue=e,this.axios.post(this.getSystem("config/save"),this.printModelObj).then(function(e){"00"==e.data.code&&(t.$message({message:"选择成功",type:"success"}),t.$commonJs.printModel(e.data.data,t))})},selectChannelChange:function(e){var t=this;this.clearInter(),this.saleType="",this.obj.order.channelOrderId="",this.custom="";var r=this.Allchannels.filter(function(t,r){return t.priceTypeId===e});this.selectChannel=r[0],setTimeout(function(){t.add(t.obj.order.buyNum)},1e3)},handleSelectcustom:function(e){this.obj.order.channelOrderId="",this.obj.order.channelId=e.channelId||"",this.product.channelId=e.channelId||"",this.saleType="",this.getproduct()},querySearchAsynccustom:function(e,t){var r=this;e||(this.obj.order.channelId="",this.product.channelId="");var s=0===this.ChannelName.length?this.Allchannels[0].channels:this.ChannelName[0].channels;s.forEach(function(e,t){r.$set(e,"value",e.companyName)});var i=e?s.filter(this.createStateFiltercustom(e)):s;clearTimeout(this.time),this.time=setTimeout(function(){t(i)},500*Math.random())},createStateFiltercustom:function(e){return function(t){return-1!==t.value.toLowerCase().indexOf(e.toLowerCase())}},gai:function(e){this.obj.order.salePricePayedTotal=e.target.value,this.obj.order.salePriceTotal=e.target.value},gaiprise:function(e){e?(this.readonly=!1,this.border="1px solid #cccccc"):(this.readonly=!0,this.border=0)},setVisitorField:function(e,t,r,s){var i=(e.checkField||{})[r]||{};(t[i.fieldId]=s,i.fieldInput)?t[i.fieldInput]=s:(t.fields=t.fields||[]).push({fieldId:i.fieldId,fieldValue:s})},initCheckField:function(e){var t=e.fields||[];if(null==e.checkField){for(var r={},s=0;s<t.length;s++){var i=t[s]||{};0!=i.inputType&&(r[i.fieldId]=i,i.fieldInput&&(r[i.fieldInput]=i))}e.checkField=r}},checkVistorField:function(e,t){return this.initCheckField(e),((e.checkField||{})[t]||{}).inputType||0},checkMobileInput:function(e){return this.checkVistorField(e,"visitorMobile")},checkIdInput:function(e){return this.checkVistorField(e,"visitorCardId")},checkVisitorNum:function(e,t,r){this.initCheckField(e);var s=0;switch(r=r||[],e.saleCheckId||0){case 1:s=1;break;case 2:s=t}return r.length>=s},checkCardRepeat:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.initCheckField(e);for(var r=(e.fields||[]).filter(function(e){return e.inputType>0}),s={},i=0;i<t.length;i++)for(var a=t[i],o=0;o<r.length;o++){var n=r[o],c=a[n.fieldInput||n.fieldId];if(0==n.fieldType&&c){var d=s[n.fieldId]=s[n.fieldId]||{};if(d[c])return this.$message.error("证件:"+n.fieldName+c+"重复"),!1;d[c]=!0}}return!0},checkVisitorOrder:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!this.checkVisitorNum(e,t,r))return this.$message.error("请输入游客信息"),!1;for(var s=(e.fields||[]).filter(function(e){return e.inputType>0}),i={},a=0;a<r.length;a++)for(var o=r[a]||{},n=0;n<s.length;n++){var c=s[n]||{},d=o[c.fieldInput||c.fieldId];if(0==c.fieldType&&!d){var l=i[c.fieldId]=i[c.fieldId]||{};if(l[d])return this.$message.error("证件"+c.fieldName+d+"重复"),!1;l[d]=!0}if(1==c.inputType&&!d&&0!==d&&c.fieldId>7)return this.$message.error("请输入"+c.fieldName),!1}return!0},addVisitor:function(e){var t=this,r=this.obj||{},s=r.order||{},a=r.visitors||[];e.visitorMobile=e.visitorMobile||r.visitorPhone,a.unshift(e),this.checkCardRepeat(this.fieldsList,a)?this.checkVisitorNum(this.fieldsList,s.buyNum,a)&&this.checkVisitorOrder(this.fieldsList,s.buyNum,a)&&(this.obj.childOrders=[],window.serverList.length>0&&window.serverList.forEach(function(e,r){var s=JSON.parse(o()(t.obj.order)),a={buyNum:e.buyNum,saleId:e.saleId,salePricePayTotal:Object(g.a)(e.buyNum,e.salePricePay),salePricePayedTotal:Object(g.a)(e.buyNum,e.salePricePay),salePriceTotal:Object(g.a)(e.buyNum,e.salePricePay)},n={order:i()(s,a)};t.obj.childOrders.push(n)})):a.pop()},chck:function(e,t,r){var s=this;this.clearInter(),this.fieldsList=t,this.gaiprise(t.saleChangePrice),this.discounts=t,this.index=r.batchId+r.saleId,this.obj.order.channelOrderId="",this.obj.order.salePricePayTotal=Object(g.a)(t.salePricePay,this.obj.order.buyNum),this.obj.order.salePricePayedTotal=Object(g.a)(t.salePricePay,this.obj.order.buyNum),this.obj.order.salePriceTotal=Object(g.a)(t.salePricePay,this.obj.order.buyNum),this.obj.order.saleCheckId=t.saleCheckId,this.obj.order.saleCheckMobile=t.saleCheckMobile,this.prise=t.salePricePay,this.oldPrise=t.salePricePay,t.discountsList.length>0&&t.discountsList.forEach(function(e){1==e.buyNum&&(s.obj.order.salePricePayedTotal=Object(g.a)(e.salePricePay,s.obj.order.buyNum),s.obj.order.salePricePayTotal=Object(g.a)(e.salePricePay,s.obj.order.buyNum),s.obj.order.salePriceTotal=Object(g.a)(e.salePricePay,s.obj.order.buyNum),s.prise=e.salePricePay,s.oldPrise=e.salePricePay)}),this.obj.order.saleId=t.saleId,this.obj.order.subscribeDateFrom=r.batchDateFrom,this.product.date===this.$commonJs.today()?this.obj.order.playDateFrom=r.batchDateFrom:this.obj.order.playDateFrom=this.product.date+" 00:00:00"},dates:function(e){this.product.batchDateFrom=e+" 00:00:00",this.product.batchDateTo=e+" 23:59:59",this.saleType="",this.getproduct()},add:function(e){var t=this;if(this.clearInter(),this.obj.order.channelOrderId="",0!=this.discounts.discountsList.length){this.discounts.discountsList.forEach(function(r){e>=r.buyNum&&(t.prise=r.salePricePay,t.obj.order.salePricePayTotal=Object(g.a)(e,t.prise),t.obj.order.salePricePayedTotal=Object(g.a)(e,t.prise),t.obj.order.salePriceTotal=Object(g.a)(e,t.prise))});var r=Math.min.apply(Math,this.discounts.discountsList.map(function(e){return e.buyNum}));e<r&&(this.obj.order.salePricePayTotal=Object(g.a)(e,this.oldPrise),this.obj.order.salePricePayedTotal=Object(g.a)(e,this.oldPrise),this.obj.order.salePriceTotal=Object(g.a)(e,this.oldPrise))}else this.obj.order.salePricePayTotal=Object(g.a)(e,this.prise),this.obj.order.salePricePayedTotal=Object(g.a)(e,this.prise),this.obj.order.salePriceTotal=Object(g.a)(e,this.prise)},pagess:function(e){this.product.pageIndex=e,this.pageData()},pageData:function(){var e=this;this.axios.post(this.getStoreUrl("time/querySale"),this.product).then(function(t){"00"==t.data.code&&(e.products=t.data.data.list,e.pageshow=!0,e.products.forEach(function(t){t.scenes.forEach(function(t){t.myId=e.$commonJs.randoms()})}))})},dataOrder:function(){return window.order=window.order||{},window.order},interval:function(){var e=this;!function t(){e.timess=setTimeout(function(){e.SoTheChannel(),t()},e.haomiao)}()},clearInter:function(){clearTimeout(this.timess),this.interval()},ticketIssue:function(e){var t=this,r=this;if(this.condition)if(!this.product.notStoreVisible||this.obj.order.playDateFrom){e&&(this.$store.state.tourGuide={});var s=this.dataOrder();s.visitorPhone="",s.sale=this.fieldsList,s.orderObj=this.obj,s.that=this;var i=this.obj.order,a=i.companyId,n=i.saleId;i.salePricePayTotal;if(""!=a&&""!=n)if(JSON.parse(this.$store.state.config).printer){if(this.obj.order.channelOrderId=this.$commonJs.randoms(),sessionStorage.setItem("phonObjs",o()(this.obj)),0==this.products.length)return;var c=this.products.findIndex(function(e){return t.obj.order.saleId==e.saleId});if(this.extraServers=JSON.parse(o()(this.products[c].services)),window.serverList=this.products[c].services,this.extraServers.length>0)return void(this.showServer=!0);if(0===this.checkMobileInput(this.fieldsList)||this.obj.visitors.length)if(this.checkVisitorNum(this.fieldsList,this.obj.order.buyNum,this.obj.visitors)){!function e(){if(t.condition=!1,"6"==t.obj.order.payType){if(!t.obj.order.payTypeCode){console.log("胖丁扫码枪"),t.isShowScanningGun=!0;var s=JSON.parse(t.$store.state.config);return Scan.init(s.HardConfig,function(e){r.isShowScanningGun&&r.$message.error(e)},function(t,s){r.isShowScanningGun&&(r.obj.order.payTypeCode||(r.obj.order.payTypeCode=s.ScanCode,r.waitPayStatusTips="扫码成功",console.log(r.obj),e()))},1),!1}t.waitPayStatusTips="正在等待支付..."}!function e(){t.axios.post(t.getOrderUrl("order/save"),t.obj,{__retryCount:3}).then(function(e){t.condition=!0;var r=e.data||{};if(r.code,"00"!=r.code)return t.obj.order.payTypeCode=null,t.$message.error(r.message);var s=e.data.data,i=s.order;t.orderInfo=s.order;var a=s.pays[0]||null;if("5"==t.obj.order.payType){if(!a)return t.$message.error(e.data.message);var o=JSON.parse(a.channelPayInfo);return t.qrcodeContent=o.PayCode,t.isShowQrcode=!0,void t.openScanQrcodeHandle({companyId:i.companyId,orderId:i.orderId},"isShowQrcode")}if("6"==t.obj.order.payType)return a?(t.openScanQrcodeHandle({companyId:i.companyId,orderId:i.orderId},"isShowScanningGun"),!1):t.$message.error(e.data.message);t.obj.visitors=[],t.obj.visitorPhone="",t.authshow=!1,t.printTickets(r)}).catch(function(r){t.condition=!0,t.$message.error(err),setTimeout(function(){e()},3e3)})}()}()}else this.authshow=!0;else this.phoneshow=!0}else this.$message.error("打印机名为空,请配置打印机");else this.$message.error("当前未选择票类型,不能出票")}else this.$message.error("请选择补单时间!")},ticketIssue2:function(e){var t=this,r=this;if(this.condition)if(!this.product.notStoreVisible||this.obj.order.playDateFrom){e&&(this.$store.state.tourGuide={});var s=this.dataOrder();s.visitorPhone="",s.sale=this.fieldsList,s.orderObj=this.obj,s.that=this;var a=this.obj.order,n=a.companyId,c=a.saleId;a.salePricePayTotal;if(""!=n&&""!=c)if(JSON.parse(this.$store.state.config).printer)if(this.obj.order.channelOrderId=this.$commonJs.randoms(),sessionStorage.setItem("phonObjs",o()(this.obj)),0===this.checkMobileInput(this.fieldsList)||this.obj.visitors.length)if(this.checkVisitorNum(this.fieldsList,this.obj.order.buyNum,this.obj.visitors)){!function e(){if(t.condition=!1,"6"==t.obj.order.payType){if(!t.obj.order.payTypeCode){console.log("胖丁扫码枪"),t.isShowScanningGun=!0;var s=JSON.parse(t.$store.state.config);return Scan.init(s.HardConfig,function(e){r.isShowScanningGun&&r.$message.error(e)},function(t,s){r.isShowScanningGun&&(r.obj.order.payTypeCode||(r.obj.order.payTypeCode=s.ScanCode,r.waitPayStatusTips="扫码成功",console.log(r.obj),e()))},1),!1}t.waitPayStatusTips="正在等待支付..."}t.obj.childOrders=[],window.serverList.length>0&&window.serverList.forEach(function(e,r){var s=JSON.parse(o()(t.obj.order)),a={buyNum:e.buyNum,saleId:e.saleId,salePricePayTotal:Object(g.a)(e.buyNum,e.salePricePay),salePricePayedTotal:Object(g.a)(e.buyNum,e.salePricePay),salePriceTotal:Object(g.a)(e.buyNum,e.salePricePay)},n={order:i()(s,a)};t.obj.childOrders.push(n)});!function e(){t.axios.post(t.getOrderUrl("order/save"),t.obj,{__retryCount:3}).then(function(e){t.condition=!0;var r=e.data||{};if(r.code,"00"!=r.code)return t.obj.order.payTypeCode=null,t.$message.error(r.message);var s=e.data.data,i=s.order;t.orderInfo=s.order;var a=s.pays[0]||null;if("5"==t.obj.order.payType){if(!a)return t.$message.error("订单返回数据格式错误,不包含支付信息");var o=JSON.parse(a.channelPayInfo);return t.qrcodeContent=o.PayCode,t.isShowQrcode=!0,void t.openScanQrcodeHandle({companyId:i.companyId,orderId:i.orderId},"isShowQrcode")}if("6"==t.obj.order.payType)return a?(t.openScanQrcodeHandle({companyId:i.companyId,orderId:i.orderId},"isShowScanningGun"),!1):t.$message.error("订单返回数据格式错误,不包含支付信息");t.obj.visitors=[],t.obj.visitorPhone="",t.authshow=!1,t.printTickets(r)}).catch(function(r){t.condition=!0,t.$message.error(err),setTimeout(function(){e()},3e3)})}()}()}else this.authshow=!0;else this.phoneshow=!0;else this.$message.error("打印机名为空,请配置打印机");else this.$message.error("当前未选择票类型,不能出票")}else this.$message.error("请选择补单时间!")},PrintError:function(e){var t=this;this.succ=!0,setTimeout(function(){t.tickshow=!1,t.succ=!1},100);var r=e&&(e.msg||e.Msg)||e;alert(r)},__Printed:function(){var e=this;this.succ=!0,window.order={},this.obj.order=this.obj.order||{},this.obj.order.buyNum=1,this.obj.order.channelOrderId="",this.obj.visitorPhone="",this.obj.visitors=[],setTimeout(function(){e.tickshow=!1,e.maxshow=!1,e.succ=!1},1e3),this.gettoday(),this.getproduct()},__PrintIteming:function(e){this.tickshow=!0,this.printdata=e.Data.Pos,this.allnum=e.Data.Count},loadPrint:function(){var t=this;function r(r){r=r||[];var s=[];e.each(r,function(e,t){s.push({id:t,name:t})}),t.Rendering(s)}try{Base.getHard().getPrinter(function(e){r(e)},function(e){r()})}catch(e){r()}},Rendering:function(e){0!=e.length?this.PrinterList=e:this.PrinterList=[{name:"暂无打印机",id:""},{name:"Microsoft XPS Document Writer",id:"Microsoft XPS Document Writer"}]},closephone:function(e){this.phoneshow=e},phonOk:function(){this.phoneshow=!1,this.authshow=!0},auclose:function(){this.obj.visitors=[],this.obj.visitorPhone="",this.obj.order.payTypeCode=null,this.authshow=!1},augoup:function(){this.authshow=!1,this.phoneshow=!0,this.obj.visitors=[]},ticket:function(e){this.maxshow=!1,this.tickshow=!0},fanhui:function(){this.maxshow=!1,this.authshow=!0},tik:function(e){this.tickshow=!0,this.authshow=!1},manual:function(){this.authshow=!1,this.maxshow=!0},maxclose:function(){this.maxshow=!1,this.obj.visitors=[],this.obj.visitorPhone="",this.obj.order.payTypeCode=null},tickclose:function(){this.tickshow=!1},getproduct:function(){var e=this;this.axios.post(this.getStoreUrl("time/querySale"),this.product,{isLoading:this.isLoading}).then(function(t){if("00"!=t.data.code)return!1;if(0==t.data.data.list.length)return e.saleChangePrice=!1,e.products=[],e.products2=[],e.$message.error("暂无当前票种!"),!1;e.saleChangePrice=t.data.data.list.saleChangePrice;var r=t.data.data.list.filter(function(e){return 1!=e.saleServiceType}),s=null,i=((e.obj||{}).order||{}).saleId||"";if(e.products=r.filter(function(e,t){var r=(e.scenes||[]).length>0;return!r||i!=e.saleId&&null!=s||(s=e),r}),e.products2=r.filter(function(e,t){if(0!==!e.scenes.length)return e}),e.fieldsList=r.find(function(e,t){return e.scenes.length>0}),0!=e.products.length&&(e.extraServers=s.services,window.serverList=s.services,e.obj.order.saleId=s.saleId,e.discounts=s,e.obj.order.salePricePayedTotal=s.salePricePay,e.obj.order.salePricePayTotal=Object(g.a)(s.salePricePay,e.obj.order.buyNum),e.gaiprise(s.saleChangePrice),e.obj.order.salePriceTotal=s.salePricePay,e.obj.order.saleCheckId=s.saleCheckId,e.obj.order.saleCheckMobile=s.saleCheckMobile,e.prise=s.salePricePay,e.oldPrise=s.salePricePay,s.discountsList.length>0&&s.discountsList.forEach(function(t){1==t.buyNum&&(e.obj.order.salePricePayedTotal=t.salePricePay,e.obj.order.salePricePayTotal=Object(g.a)(t.salePricePay,e.obj.order.buyNum),e.obj.order.salePriceTotal=t.salePricePay,e.prise=t.salePricePay,e.oldPrise=t.salePricePay)}),e.pageshow=!0,e.pageTotal=t.data.data.pageTotal,0!=s.scenes.length)){e.obj.order.subscribeDateFrom=s.scenes[0].batchDateFrom,e.product.date==e.$commonJs.today()?e.obj.order.playDateFrom=s.scenes[0].batchDateFrom:e.obj.order.playDateFrom=e.product.date+" 00:00:00";var a=s.scenes[0];e.index=a.batchId+a.saleId}})},gettoday:function(){var e=this;this.axios.post(this.getOrderUrl("order/getDay"),{pageSize:1}).then(function(t){"00"==t.data.code&&(e.todaynum=t.data.main.buyNum,e.todaymoney=t.data.main.salePricePayTotal,e.newnumm=t.data.data.list)})},chong:function(e){var t=this;if(this.condition){var r={orderId:e.orderId,all:!0};""==this.obj.order.printer?this.$message.error("请选择打印机"):(this.condition=!1,this.axios.post(this.getOrderUrl("order/load"),r).then(function(e){var r=e.data||{};t.$commonJs.printRes(r,t,Base,t.PrintError,t.__Printed,t.__PrintIteming),t.condition=!0}))}},SoTheChannel:function(){var e=this;0!==this.products.length&&(this.isLoading=!1),this.axios.post(this.getSystem("channel/windowList"),this.priceType,{isLoading:this.isLoading}).then(function(t){"00"===t.data.code?(e.Allchannels=t.data.data,e.selectChannel=e.Allchannels[0]):e.$message.error(t.data.message)})},initTicketType:function(){var e=this,t={companyId:this.companyId,enumType:"saleType",pageIndex:1,pageSize:this.$pageSize};this.axios.post(this.getSystem("systemEnum/drop"),t).then(function(t){"00"==t.data.code?e.saleTypeList=t.data.data:e.$message.error(t.data.message)})},chooseTicket:function(e){this.products2.length>0&&(this.products=this.products2.filter(function(t){return t.saleType==e}))},selectChannelsItemChange:function(e){var t=this;this.obj.order.channelId=e,this.product.channelId=e,this.getproduct();var r=this.SelectChannelsList.filter(function(t){return t.channelId==e});if(0==r.length)return this.payModelList=[],void(this.obj.order.payType="");var s=r[0];if(this.payModelList=s.payTypes,0!=this.payModelList.length){if(0==this.payModelList.filter(function(e){return e.payedType==t.selectChannel.payedType}).length)this.obj.order.payType=this.payModelList[0].payedType;else this.obj.order.payType=this.selectChannel.payedType+"",-1===this.payModelList.findIndex(function(e){return e.payedType===t.obj.order.payType})&&(this.obj.order.payType=this.payModelList[0].payedType);this.totalAmount=s.moneyVo.totalAmount,setTimeout(function(){t.add(t.obj.order.buyNum)},1e3)}else this.obj.order.payType=""},selectPayModelChange:function(e){this.obj.order.payType=e},openScanQrcodeHandle:function(e,t){var r=this;if(window.clearTimeout(this.requestTimer),!this.isCancelOrder&&e){var s={order:e};this.axios.post(this.getOrderUrl("order/wait"),s,{isLoading:!1}).then(function(s){var i=s.data;if("00"!=i.code)return r.$message.error(i.message);r[t]&&((i.data.order||{}).orderStatus<4?r.requestTimer=window.setTimeout(function(){r.openScanQrcodeHandle(e,t)},500):(window.clearTimeout(r.requestTimer),r.waitPayStatusTips="支付完成",r.isShowQrcode=!1,r.isShowScanningGun=!1,r.waitPayStatusTips="正在等待支付...",r.printTickets(i)))}).catch(function(s){window.clearTimeout(r.requestTimer),r.$message.error(s),r.requestTimer=window.setTimeout(function(){r.openScanQrcodeHandle(e,t)},500)})}},closeScanQrcodeHandle:function(){var e=this;if(this.condition=!0,this.isShowQrcode=!1,this.isShowScanningGun=!1,this.isCancelOrder=!0,window.clearTimeout(this.requestTimer),this.orderInfo){var t={order:{orderId:this.orderInfo.orderId,companyId:this.orderInfo.companyId}};this.axios.post(this.getOrderUrl("order/cancel"),t).then(function(t){e.isCancelOrder=!1;var r=t.data;if("00"!=r.code)return e.$message.error(r.message);e.orderInfo=null,e.obj.visitors=[],e.obj.visitorPhone=""}).catch(function(t){console.log("请求失败"),window.clearTimeout(e.requestTimer),e.requestTimer=window.setTimeout(function(){e.closeScanQrcodeHandle()},1e3)},1e3)}},closeScanningGunHandle:function(){this.isShowScanningGun=!1,this.obj.order.payTypeCode=null,this.condition=!0,this.waitPayStatusTips="正在等待支付...",this.closeScanQrcodeHandle()},printTickets:function(e){this.obj.visitors=[],this.obj.visitorPhone="",this.obj.order.payTypeCode=null,this.orderInfo=null,this.$commonJs.printRes(e,this,Base,this.PrintError,this.__Printed,this.__PrintIteming)},closePayQrcodeHandle:function(){console.log("关闭"),this.isShowScanningGun=!1,this.isShowQrcode=!1,this.condition=!0,this.waitPayStatusTips="正在等待支付...",window.clearTimeout(this.requestTimer)},scanDevice:function(){}}),components:{phone:d.a,authent:l.a,maxual:u.a,ticketIssue:h.a,pages:y.a,localSettings:m.a,TeamTicket:f.a,breadNav:v.default,plusServer:p.a,scanQrcode:b.a},created:function(){this.SoTheChannel(),this.loadPrint(),this.gettoday(),this.getPrintModel(),this.initTicketType()},mounted:function(){},watch:{selectChannel:function(e){var t=this;if(this.SelectChannelsList=e.channels,this.product.priceTypeId=e.priceTypeId,this.obj.order.payType=e.payedType+"",0==this.SelectChannelsList.length)return this.products=[],void(this.products2=[]);var r=this.SelectChannelsList[0];this.payModelList=r.payTypes,-1===this.payModelList.findIndex(function(e){return e.payedType===t.obj.order.payType})&&(this.obj.order.payType=this.payModelList[0].payedType),this.custom=r.channelId,this.product.channelId=r.channelId,this.obj.order.channelId=r.channelId,this.getproduct(),this.totalAmount=r.moneyVo.totalAmount}},beforeDestroy:function(){clearTimeout(this.timess),this.timess=null}}}).call(t,r("SXXC"))},GLtp:function(e,t,r){var s=r("uSC2");s(s.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},H62i:function(e,t,r){"use strict";var s=r("AUUs"),i={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"bigBox"},[r("breadNav",[e._v("窗口售票")]),e._v(" "),r("div",{staticClass:"tab"},[r("div",[r("p",[e._v("最新记录")]),e._v(" "),r("p",[r("span",[e._v("今日售票量:"),r("i",[e._v(e._s(e.todaynum))]),e._v("张")]),r("span",[e._v("金额:"),r("i",[e._v(e._s(e.todaymoney))]),e._v("元")])])]),e._v(" "),e._l(e.newnumm,function(t,s){return r("div",{key:s},[r("p",[e._v(e._s(t.productName))]),e._v(" "),r("p",[e._v(e._s(t.buyNum)+"张")]),e._v(" "),r("p",[e._v(e._s(t.salePricePayTotal)+"元")]),e._v(" "),r("p",[e._v(e._s(t.createDate))]),e._v(" "),r("p",{staticClass:"chon",on:{click:function(r){return e.chong(t)}}},[e._v("重新打印")])])})],2),e._v(" "),r("div",{staticClass:"box"},[r("div",[r("div",{staticClass:"tit query-row"},[r("div",{staticClass:"query-item"},[r("span",[e._v("时间:")]),e._v(" "),r("el-date-picker",{attrs:{"prefix-icon":"none",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},on:{change:e.dates},model:{value:e.product.date,callback:function(t){e.$set(e.product,"date",t)},expression:"product.date"}})],1),e._v(" "),r("div",{staticClass:"query-item"},[r("span",[e._v("渠道类型:")]),e._v(" "),r("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:e.selectChannelChange},model:{value:e.product.priceTypeId,callback:function(t){e.$set(e.product,"priceTypeId",t)},expression:"product.priceTypeId"}},e._l(e.Allchannels,function(e,t){return r("el-option",{key:t,attrs:{label:e.priceTypeName,value:e.priceTypeId}})}),1)],1),e._v(" "),r("div",{staticClass:"query-item"},[r("span",[e._v("渠道名称:")]),e._v(" "),r("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:e.selectChannelsItemChange},model:{value:e.custom,callback:function(t){e.custom=t},expression:"custom"}},e._l(e.SelectChannelsList,function(e){return r("el-option",{key:e.channelId,attrs:{label:e.companyName,value:e.channelId}})}),1)],1),e._v(" "),r("div",{staticClass:"query-item"},[r("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.changeS},model:{value:e.product.notStoreVisible,callback:function(t){e.$set(e.product,"notStoreVisible",t)},expression:"product.notStoreVisible"}},[e._v(" "+e._s(e.obj.order.patchOrder?"补单时间":"补单"))]),e._v(" "),e.obj.order.patchOrder?r("el-date-picker",{attrs:{"prefix-icon":"none",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.obj.order.playDateFrom,callback:function(t){e.$set(e.obj.order,"playDateFrom",t)},expression:"obj.order.playDateFrom"}}):e._e()],1),e._v(" "),r("div",{staticClass:"chu query-item"},[e._t("default"),e._v(" "),r("button",{staticStyle:{"margin-left":"0.1rem"},on:{click:function(t){e.displaySetup=!0}}},[e._v("\n 设置\n ")])],2)]),e._v(" "),r("div",{staticClass:"num query-row"},[r("div",{staticClass:"query-item"},[r("span",[e._v("数量:")]),e._v(" "),r("el-input-number",{attrs:{min:1,label:"描述文字"},on:{change:e.add},model:{value:e.obj.order.buyNum,callback:function(t){e.$set(e.obj.order,"buyNum",t)},expression:"obj.order.buyNum"}})],1),e._v(" "),r("div",{staticClass:"query-item"},[r("span",{staticStyle:{display:"inline-block"}},[e._v("总票价:   ")]),e._v(" "),e.saleChangePrice?r("el-input",{staticClass:"no-border",attrs:{type:"text"},model:{value:e.obj.order.salePricePayTotal,callback:function(t){e.$set(e.obj.order,"salePricePayTotal",t)},expression:"obj.order.salePricePayTotal"}}):r("input",{directives:[{name:"model",rawName:"v-model",value:e.obj.order.salePricePayTotal,expression:"obj.order.salePricePayTotal"}],staticClass:"no-border",style:{border:e.border,paddingLeft:"10px"},attrs:{readonly:e.readonly},domProps:{value:e.obj.order.salePricePayTotal},on:{change:function(t){return e.gai(t)},input:function(t){t.target.composing||e.$set(e.obj.order,"salePricePayTotal",t.target.value)}}}),e._v("\n\n ")],1),e._v(" "),r("div",{staticClass:"query-item"},[r("span",[e._v("结算方式:")]),e._v(" "),r("el-select",{attrs:{placeholder:"请选择结算方式"},on:{change:e.selectPayModelChange},model:{value:e.obj.order.payType,callback:function(t){e.$set(e.obj.order,"payType",t)},expression:"obj.order.payType"}},e._l(e.payModelList,function(e){return r("el-option",{key:e.payedType,attrs:{label:e.payedTypeName,value:e.payedType}})}),1)],1),e._v(" "),r("div",{staticClass:"query-item",staticStyle:{width:"4rem"}},[r("p",{staticStyle:{display:"inline"}},[e._v("\n 余额:"),r("b",{staticStyle:{"font-weight":"bold"}},[e._v(e._s(e.totalAmount))]),e._v(" 元\n ")]),e._v(" "),r("p",{staticStyle:{display:"inline","margin-left":"0.3rem"}},[r("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.mergerOrderChange},model:{value:e.obj.order.mergerOrder,callback:function(t){e.$set(e.obj.order,"mergerOrder",t)},expression:"obj.order.mergerOrder"}},[e._v("单张出票")])],1)])])])]),e._v(" "),r("div",{staticClass:"allbox"},[r("div",{staticClass:"piao"},[r("p",{staticStyle:{"align-items":"center",display:"flex","margin-bottom":"0.1rem"}},[r("span",[e._v(" 票种: ")]),e._v(" "),r("el-select",{on:{change:function(t){return e.chooseTicket(e.product.saleType)}},model:{value:e.product.saleType,callback:function(t){e.$set(e.product,"saleType",t)},expression:"product.saleType"}},[r("el-option",{attrs:{label:"--所有--",value:""}}),e._v(" "),e._l(e.saleTypeList,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})],2)],1),e._v(" "),r("div",e._l(e.products,function(t,s){return r("div",{key:s},e._l(t.scenes,function(s,i){return r("div",{key:i,class:{dan:!0,hui:e.index==s.batchId+s.saleId},on:{click:function(r){return e.chck(i,t,s)}}},[r("div",[r("div",[e._v("\n "+e._s(t.productName)+"\n "),r("p",[0!=t.scenes.length?r("span",[e._v("\n "+e._s(s.batchDateFrom.slice(10,s.batchDateFrom.length-3))+"-"+e._s(s.batchDateTo.slice(10,s.batchDateTo.length-3))+"\n ")]):e._e()])]),e._v(" "),r("div",[e._v("¥"+e._s(t.salePricePay))])]),e._v(" "),r("p",{staticStyle:{display:"flex","justify-content":"space-between","padding-right":"0.2rem"}},[r("span",[e._v(" 库存:"+e._s(s.hasNum)+" ")]),e._v(" "),r("span",{staticStyle:{color:"#666666","font-size":"0.1rem"}},[e._v("\n "+e._s(t.saleTypeName)+"\n ")])])])}),0)}),0)]),e._v(" "),r("pages",{directives:[{name:"show",rawName:"v-show",value:e.pageshow,expression:"pageshow"}],attrs:{pagesize:e.product.pageSize,total:e.pageTotal},on:{page:e.pagess}})],1),e._v(" "),e.phoneshow?r("phone",{attrs:{tourGuide:e.tourGuide},on:{closed:e.closephone,phonOk:e.phonOk}}):e._e(),e._v(" "),e.authshow?r("authent",{attrs:{tourGuide:e.tourGuide,buyNum:e.obj.order.buyNum,fieldsList:e.fieldsList},on:{closed:e.auclose,goup:e.augoup,manual:e.manual,tik:e.tik}}):e._e(),e._v(" "),e.maxshow?r("maxual",{attrs:{fieldsList:e.fieldsList},on:{ticket:e.ticket,closed:e.maxclose}}):e._e(),e._v(" "),e.tickshow?r("ticketIssue",{attrs:{succ:e.succ},on:{closed:e.tickclose}},[r("span",{attrs:{slot:"pag"},slot:"pag"},[e._v(e._s(e.printdata))]),e._v(" "),r("span",{attrs:{slot:"num"},slot:"num"},[e._v(e._s(e.allnum))])]):e._e(),e._v(" "),e.displaySetup?r("localSettings",{attrs:{PrinterList:e.PrinterList,printModel:e.printModel},on:{data:e.data}}):e._e(),e._v(" "),e.TeamTickets?r("TeamTicket",{on:{datas:e.datas,draw:e.draw}}):e._e(),e._v(" "),e.showServer?r("plusServer",{attrs:{num:e.obj.order.buyNum,extraServers:e.extraServers},on:{close:function(t){return e.closeServer()}}}):e._e(),e._v(" "),r("el-dialog",{attrs:{width:"400",title:"请扫描二维码",center:"",visible:e.isShowQrcode,"close-on-click-modal":!1,"append-to-body":"","show-close":!1},on:{"update:visible":function(t){e.isShowQrcode=t},open:e.openScanQrcodeHandle,close:e.closePayQrcodeHandle}},[r("scan-qrcode",{attrs:{value:e.qrcodeContent}}),e._v(" "),r("p",{staticStyle:{"font-size":"0.18rem","text-align":"center",margin:"0.2rem 0"}},[e._v(e._s(e.waitPayStatusTips))]),e._v(" "),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"normal"},on:{click:e.closeScanQrcodeHandle}},[e._v("取消支付")])],1)],1),e._v(" "),r("el-dialog",{attrs:{width:"200",title:"胖丁扫码枪",center:"",visible:e.isShowScanningGun,"close-on-click-modal":!1,"append-to-body":"","show-close":!1},on:{"update:visible":function(t){e.isShowScanningGun=t},close:e.closePayQrcodeHandle}},[r("p",{staticStyle:{"font-size":"0.18rem","text-align":"center",margin:"0.2rem 0"}},[e._v(e._s(e.waitPayStatusTips))]),e._v(" "),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"normal"},on:{click:e.closeScanningGunHandle}},[e._v("取消支付")])],1)])],1)},staticRenderFns:[]};var a=function(e){r("7hOx")},o=r("C7Lr")(s.a,i,!1,a,"data-v-6581dfe4",null);t.a=o.exports},K9HK:function(e,t){},aUYq:function(e,t,r){e.exports={default:r("6yUe"),__esModule:!0}},eeyJ:function(e,t,r){"use strict";var s=r("3cXf"),i=r.n(s),a={props:["num","extraServers"],data:function(){return{numbers:0,serverList:JSON.parse(i()(window.serverList)),getPriceList:[]}},methods:{close:function(){this.$emit("close")},next:function(){var e=this;this.serverList.length>0&&this.serverList.forEach(function(t,r){t.buyNum=e.numbers}),window.serverList=this.serverList,this.$emit("close"),this.$parent.ticketIssue2(!0)},numberChange:function(){for(var e=this,t=0;t<this.getPriceList.length;t++)this.extraServers[t].salePricePay=this.getSalePricePay(this.getPriceList[t],this.numbers);for(var r=function(t){var r=e.getPriceList.findIndex(function(r){return e.serverList[t].saleId==r.saleId});e.serverList[t].salePricePay=e.getSalePricePay(e.getPriceList[r],e.numbers)},s=0;s<this.serverList.length;s++)r(s)},getSalePricePay:function(e,t){for(var r=e.salePricePay||0,s=e.discountsList||[],i=null,a=0;a<s.length;a++){var o=s[a]||{};null==o||0==o.buyNum||(null==i||o.buyNum>i.buyNum)&&o.buyNum<=t&&(i=o)}return null!=i&&(r=i.salePricePay||0),r}},mounted:function(){var e=this;this.numbers=this.num,this.getPriceList=JSON.parse(i()(this.extraServers)),window.serverList.length>0&&window.serverList.forEach(function(t,r){t.buyNum=e.numbers}),this.numberChange(),console.log(this.serverList)}},o={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"server"},[r("div",{staticClass:"serverBox"},[r("p",{staticStyle:{position:"relative"}},[e._v("\n 增加服务\n "),r("span",{staticStyle:{position:"absolute",right:"20px",top:"5px","font-size":"0.24rem",color:"#666666","font-weight":"400",cursor:"pointer"},on:{click:e.close}},[e._v("x")])]),e._v(" "),r("div",{staticClass:"serverDiv"},[r("div",e._l(e.extraServers,function(t,s){return r("p",{key:s},[r("span",{staticStyle:{display:"inline-block",width:"2.2rem"}},[e._v(e._s(t.productName))]),e._v(" "),r("span",{staticStyle:{display:"inline-block",width:"0.7rem"}},[e._v(e._s(t.salePricePay)+"元/份")]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.serverList,expression:"serverList"}],attrs:{type:"checkbox"},domProps:{value:t,checked:Array.isArray(e.serverList)?e._i(e.serverList,t)>-1:e.serverList},on:{change:[function(r){var s=e.serverList,i=r.target,a=!!i.checked;if(Array.isArray(s)){var o=t,n=e._i(s,o);i.checked?n<0&&(e.serverList=s.concat([o])):n>-1&&(e.serverList=s.slice(0,n).concat(s.slice(n+1)))}else e.serverList=a},function(t){return e.numberChange()}]}})])}),0),e._v(" "),r("div",[r("span",[e._v("购买数量:")]),e._v(" "),r("el-input-number",{attrs:{min:0},on:{change:function(t){return e.numberChange()}},model:{value:e.numbers,callback:function(t){e.numbers=t},expression:"numbers"}})],1),e._v(" "),e._m(0)]),e._v(" "),r("p",[r("a",{staticClass:"btn4",on:{click:function(t){return e.next()}}},[e._v("下一步")])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("span",[this._v("退改规则:")]),this._v("\n 不可退\n ")])}]};var n=r("C7Lr")(a,o,!1,function(e){r("w/NI")},"data-v-1ce763d2",null);t.a=n.exports},lOuq:function(e,t,r){e.exports={default:r("/8q3"),__esModule:!0}},oaxN:function(e,t,r){"use strict";var s={data:function(){return{time:null,shenfen:"",draw:{leaderId:"",leaderName:"",orderCheckDate:"",carCode:""},list:[]}},created:function(){var e=this;this.axios.post(this.getChanel("leader/list"),{companyId:this.$store.state.companyId,companyName:this.trench,pageIndex:1,pageSize:999}).then(function(t){"00"===t.data.code&&(e.list=t.data.data.list,e.list.forEach(function(t,r){var s=t.leaderName+t.leaderNo;e.$set(t,"value",s)}),""!==e.list[0].leaderCardId&&""!==e.list[0].leaderMobile&&(e.$store.state.tourGuide=e.list[0]))})},methods:{handleSelectcustom:function(e){this.draw.leaderId=e.leaderId,this.draw.leaderName=e.leaderName,this.draw.leaderMobile=e.leaderMobile,this.draw.leaderCardId=e.leaderCardId,this.shenfen=e.leaderCardId,""!==e.leaderCardId&&""!==e.leaderMobile?this.$store.state.tourGuide=e:this.$store.state.tourGuide={}},querySearchAsynccustom:function(e,t){var r=this,s=this.list;s.forEach(function(e,t){var s=e.leaderName+e.leaderNo;r.$set(e,"value",s)});var i=e?s.filter(this.createStateFiltercustom(e)):s;clearTimeout(this.time),this.time=setTimeout(function(){t(i)},500*Math.random())},createStateFiltercustom:function(e){return function(t){return-1!==t.value.toLowerCase().indexOf(e.toLowerCase())}},daoyou:function(e){var t=this;this.list.forEach(function(e,r){e.leaderId===t.draw.leaderId&&(t.draw.leaderName=e.leaderName,t.shenfen=e.leaderCardId,""!==e.leaderCardId&&""!==e.leaderMobile?t.$store.state.tourGuide=e:t.$store.state.tourGuide={})})},youwan:function(e){this.draw.orderCheckDate=this.$commonJs.formattime(this.draw.orderCheckDate)},ticketIssue:function(){""!==this.draw.leaderId?""!==this.draw.orderCheckDate?this.$emit("draw",this.draw):this.$message.error("请选择游玩日期!"):this.$message.error("请选择导游!")},cc:function(){this.$emit("datas",!1)}}},i={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"table"},[r("div",{staticClass:"box"},[r("p",{staticClass:"p"},[r("span",[e._v("团队出票")]),e._v(" "),r("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"},on:{click:e.cc}},[r("use",{attrs:{"xlink:href":"#iconguanbi1"}})])]),e._v(" "),r("div",[r("p",[r("span",{staticClass:"span"},[e._v("导游:")]),e._v(" "),r("el-autocomplete",{attrs:{"fetch-suggestions":e.querySearchAsynccustom,placeholder:"请输入内容"},on:{select:e.handleSelectcustom},model:{value:e.draw.leaderName,callback:function(t){e.$set(e.draw,"leaderName",t)},expression:"draw.leaderName"}})],1),e._v(" "),""!==e.shenfen?r("p",[r("span",{staticClass:"span"},[e._v("导游身份证:")]),r("span",[e._v(e._s(e.shenfen))])]):e._e(),e._v(" "),r("p",[r("span",{staticClass:"span"},[e._v("游玩日期:")]),e._v(" "),r("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},on:{change:e.youwan},model:{value:e.draw.orderCheckDate,callback:function(t){e.$set(e.draw,"orderCheckDate",t)},expression:"draw.orderCheckDate"}})],1),e._v(" "),r("p",[r("span",{staticClass:"span"},[e._v("车牌号:")]),e._v(" "),r("el-input",{attrs:{placeholder:"请输入内容"},model:{value:e.draw.carCode,callback:function(t){e.$set(e.draw,"carCode",t)},expression:"draw.carCode"}})],1)]),e._v(" "),r("p",{staticStyle:{"text-align":"center"}},[r("button",{staticClass:"button",on:{click:e.ticketIssue}},[e._v("团队出票")])])])])},staticRenderFns:[]};var a=r("C7Lr")(s,i,!1,function(e){r("K9HK")},"data-v-678c99b0",null);t.a=a.exports},uRfC:function(e,t,r){"use strict";r.d(t,"a",function(){return l});var s=r("lOuq"),i=r.n(s),a=r("aUYq"),o=r.n(a);function n(e){var t=(""+e).split("e"),r=(t[0].split(".")[1]||"").length-(+t[1]||0);return r>0?r:0}function c(e){var t=""+e;return-1===t.indexOf("e")?+t.replace(".",""):+e*Math.pow(10,n(e))}function d(e){return(+e>o.a||+e<i.a)&&(console.warn(e+" is beyond boundary when transfer to integer, the results may not be accurate"),!0)}function l(e,t){for(var r=arguments.length,s=Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];if(s.length>0)return l(l(e,t),s[0],s.slice(1));var a=c(e)*c(t);return d(a),a/Math.pow(10,n(e)+n(t))}},"w/NI":function(e,t){}});
\ No newline at end of file
webpackJsonp([6],{"18l2":function(t,e,s){"use strict";var o={data:function(){return{looking:{channelId:""},date:"",obj:{lockDateTo:"",lockDateFrom:""},nowproduct:[],chanle:[]}},methods:{closed:function(){this.$emit("closed")},datetime:function(t){this.obj.lockDateFrom=t[0],this.obj.lockDateTo=t[1]},ok:function(){var t=this;this.axios.post(this.getStoreUrl("/scene/lock"),this.obj).then(function(e){"00"==e.data.code?(0==t.obj.lockStatus?t.$message({message:"锁定成功",type:"success"}):1==t.obj.lockStatus&&t.$message({message:"解锁成功",type:"success"}),t.$emit("clasd"),sessionStorage.removeItem("lockObj")):t.$message.error(e.data.message)})}},created:function(){var t=sessionStorage.getItem("lockObj");this.obj=JSON.parse(t)}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"boxs"},[s("div",[s("div",{staticClass:"headert"},[s("p",[t._t("default"),t._v("填写")],2),t._v(" "),s("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"},on:{click:t.closed}},[s("use",{attrs:{"xlink:href":"#iconguanbi1"}})])]),t._v(" "),s("div",{staticClass:"conn"},[s("div",{staticClass:"df"},[s("span",[t._t("default"),t._v("时间:")],2),t._v(" "),s("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","value-format":"yyyy-MM-dd","end-placeholder":"结束日期"},on:{change:t.datetime},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}})],1),t._v(" "),s("button",{on:{click:t.ok}},[t._v("确定")])])])])},staticRenderFns:[]};var a=s("C7Lr")(o,i,!1,function(t){s("zQLK")},"data-v-5eba0bf2",null);e.a=a.exports},CvJH:function(t,e){},FVx2:function(t,e,s){"use strict";var o={data:function(){return{readonly:!0,border:0,looking:{contacts:"",phone:"",channelId:""},obj:{order:{orderRemark:"",hidePrice:!1},visitors:[]},nowproduct:[],chanle:[]}},methods:{closed:function(){this.$emit("closed")},gai:function(t){this.obj.order.salePricePayedTotal=t.target.value,this.obj.order.salePriceTotal=t.target.value,this.$emit("prise",t.target.value)},ok:function(){var t=this,e=this.looking;e.contacts,e.phone;""!=e.channelId?(this.obj.visitors[0].visitorName=this.looking.contacts,this.obj.visitors[0].visitorMobile=this.looking.phone,this.axios.post(this.getOrderUrl("order/save"),this.obj).then(function(e){var s=e.data||{},o=s.code||"";!parseInt(o)?(t.printRes(s),t.$emit("que")):t.$message.error(s.message)})):this.$message.error("请选择团体对象")},chalse:function(t){var e=this;this.chanle.forEach(function(s){s.channelId+s.saleId==t&&(s.saleChangePrice?(e.readonly=!1,e.border="1px solid #cccccc"):(e.readonly=!0,e.border=0),e.obj.order.salePricePayTotal=e.obj.order.buyNum*s.salePricePay,e.obj.order.salePricePayedTotal=e.obj.order.buyNum*s.salePricePay,e.obj.order.salePriceTotal=s.salePricePay*e.obj.order.buyNum,e.obj.order.saleCheckId=s.saleCheckId,e.obj.order.saleCheckMobile=s.saleCheckMobile,e.obj.order.channelId=s.channelId,e.obj.order.saleId=s.saleId,e.$emit("prise",e.obj.order.salePricePayTotal))})},printRes:function(t){var e=this,s=t.data,o=s.printer;console.log(s),o?s.printModel?this.Print(o,JSON.parse(s.printModel),s.printDatas,function(){},{error:function(t){e.PrintError(t)},timeout:5e3}):this.$message.error("打印模板为空,请检查打印机配置"):this.$message.error("打印机为空,请检查打印机配置")},Print:function(t,e,s,o){this.__PrintExecute(t,e,s,o)},__PrintExecute:function(t,e,s,o){var i=this;if(null!=s&&0!=s.length){var a=Base.getPrint();a.printInit(t,e),a.print(s,function(t){i.run(function(){"printed"==t.EventName?(i.__Printed(),o&&o()):"printItemed"==t.EventName?i.__PrintItemed(t):"printIteming"==t.EventName&&i.__PrintIteming(t)})},function(t){i.PrintError(t),o&&o()})}},PrintError:function(t){this.$Bus.$emit("priok",{data:!0});var e=t&&(t.msg||t.Msg)||t;alert(e)},__Printed:function(){this.$Bus.$emit("priok",{data:!0})},__PrintIteming:function(t){this.$emit("clasd"),this.$Bus.$emit("prinpage",t)},run:function(t,e){var s=this;try{t&&t()}catch(t){var o=t&&t.msg||t;(e||function(t){s.$message.error(t)})(o)}}},created:function(){var t=this,e=sessionStorage.getItem("phonObjs");this.obj=JSON.parse(e),this.obj.visitors.forEach(function(e){t.nowproduct.push(e.psroductId)}),this.axios.post(this.getProductUrlTwo("sale/querySaleChannel"),{productIds:this.nowproduct,companyId:this.$store.state.companyId}).then(function(e){0!=e.data.data.length&&(t.chanle=e.data.data)})}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return""!=t.obj.order.buyNum?s("div",{staticClass:"boxs"},[s("div",[s("div",{staticClass:"headert"},[s("p",[t._v("锁定填写")]),t._v(" "),s("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"},on:{click:t.closed}},[s("use",{attrs:{"xlink:href":"#iconguanbi1"}})])]),t._v(" "),s("div",{staticClass:"conn"},[s("div",[s("span",[t._v("锁定数量:")]),t._v(" "),s("i",[t._v(t._s(t.obj.order.buyNum))])]),t._v(" "),s("div",[s("span",[t._v("锁定金额:")]),t._v(" "),s("p",{staticStyle:{display:"flex","align-items":"center"}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.obj.order.salePricePayTotal,expression:"obj.order.salePricePayTotal"}],staticClass:"prise",style:{border:t.border},attrs:{readonly:t.readonly},domProps:{value:t.obj.order.salePricePayTotal},on:{change:function(e){return t.gai(e)},input:function(e){e.target.composing||t.$set(t.obj.order,"salePricePayTotal",e.target.value)}}}),t._v("\n 元")])]),t._v(" "),s("div",{staticClass:"df"},[s("span",[t._v("团体对象:")]),t._v(" "),s("el-select",{attrs:{placeholder:"请选择渠道名称"},on:{change:t.chalse},model:{value:t.looking.channelId,callback:function(e){t.$set(t.looking,"channelId",e)},expression:"looking.channelId"}},t._l(t.chanle,function(t,e){return s("el-option",{key:e,attrs:{label:t.channelName,value:t.channelId+t.saleId}})}),1)],1),t._v(" "),s("div",[s("span",[t._v("联系人:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.looking.contacts,expression:"looking.contacts"}],domProps:{value:t.looking.contacts},on:{input:function(e){e.target.composing||t.$set(t.looking,"contacts",e.target.value)}}})]),t._v(" "),s("div",[s("span",[t._v("电话:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.looking.phone,expression:"looking.phone"}],domProps:{value:t.looking.phone},on:{input:function(e){e.target.composing||t.$set(t.looking,"phone",e.target.value)}}})]),t._v(" "),s("div",[s("span",[t._v("订单备注:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.obj.order.orderRemark,expression:"obj.order.orderRemark"}],domProps:{value:t.obj.order.orderRemark},on:{input:function(e){e.target.composing||t.$set(t.obj.order,"orderRemark",e.target.value)}}})]),t._v(" "),s("div",[s("span",[t._v("隐藏价格:")]),t._v(" "),s("el-checkbox",{model:{value:t.obj.order.hidePrice,callback:function(e){t.$set(t.obj.order,"hidePrice",e)},expression:"obj.order.hidePrice"}})],1),t._v(" "),s("button",{on:{click:t.ok}},[t._v("出票")])])])]):t._e()},staticRenderFns:[]};var a=s("C7Lr")(o,i,!1,function(t){s("CvJH")},"data-v-752860a8",null);e.a=a.exports},OFGQ:function(t,e,s){var o=s("uSC2"),i=s("DH3n"),a=s("cqFu");t.exports=function(t,e){var s=(i.Object||{})[t]||Object[t],r={};r[t]=e(s),o(o.S+o.F*a(function(){s(1)}),"Object",r)}},ZLEe:function(t,e,s){t.exports={default:s("qMAo"),__esModule:!0}},lhxZ:function(t,e,s){"use strict";(function(t){var o=s("ZLEe"),i=s.n(o),a=s("zsLt"),r=s.n(a),n=s("IHPB"),c=s.n(n),l=s("3cXf"),u=s.n(l),d=s("8p6T"),h=s("zat1"),v=s("GYc6"),p=s("cxdB"),m=s("FVx2"),f=s("18l2"),b=s("hG4X"),_=s("RwQt");e.a={data:function(){return{fieldsList:[],displaySetup:!1,lock:!1,titles:"锁定",phoneshow:!1,authshow:!1,maxshow:!1,tickshow:!1,lockshow:!1,locks:!1,seatingChart:[{area:"E下区",row:[]},{area:"D下区",row:[]},{area:"C下区",row:[]},{area:"B下区",row:[]},{area:"A下区",row:[]},{area:"E上区",row:[]},{area:"D上区",row:[]},{area:"C上区",row:[]},{area:"B上区",row:[]},{area:"A上区",row:[]}],readonly:!0,border:0,initAreaData:[[3,7,13,7,3],[7,8,15,8,7],[8,10,18,10,8],[8,11,20,11,8],[9,12,22,12,9],[9,14,24,14,9],[10,15,26,15,10],[10,17,0,17,10],[12,19,41,19,12],[14,22,42,22,14],[21,18,15,18,21],[23,19,16,19,23],[24,20,17,19,24],[25,21,18,21,25],[27,22,19,22,27],[30,29,26,29,30],[32,30,26,30,32]],qu:"",index:"",itms:[],suo:[],seatNumber:"",query:{reservationGroup:"",contacts:""},quer:{batchDate:this.$commonJs.today(),companyId:this.$store.state.companyId},a:"",dataTime:"",allTime:[],PrinterList:[],sets:[],prodes:[],obj:{order:{patchOrder:"",buyNum:0,salePricePayTotal:0,subscribeDateFrom:"",channelOrderId:"",companyId:this.$store.state.companyId,saleId:"",payType:"0",salePricePayedTotal:"",playDateFrom:"",channelFromKey:"computer",saleCheckId:"",saleCheckMobile:"",orderRemark:"",hidePrice:!1},visitors:[]},todaynum:0,todaymoney:0,newnumm:[],prise:"",printdata:"",allnum:"",succ:"",bol:!0,setArea:"",setRow:"",setIndex:"",posin:"",dataObj:{sceneId:"",subscribeDateFrom:""},timeObj:{companyId:this.$store.state.companyId,sceneId:"",priceTypeId:"t5",batchDateFrom:"",batchDateTo:"",channelFromKey:"computer"},queryData:"",scas:{x:"",y:""},suoObj:{companyId:this.$store.state.companyId,sceneId:"",lockStatus:0,channelId:"",picturePositions:[],psroductId:[],lockDateFrom:"",lockDateTo:""},sca:1,position:{x:0,y:0},nx:"",ny:"",dx:"",dy:"",xPum:"",yPum:"",moves:!1,prisef:"",sceneIds:"",oldPrise:"",printModel:[],prinmode:this.$store.state.config.printId,printModelObj:{companyId:this.$store.state.companyId,deviceType:this.$store.state.deviceType,deviceId:this.$store.state.deviceId,configs:[{configKey:"printId",configValue:this.$store.state.config.printId}]},single:0}},created:function(){var t=this;this.getprinter(),this.autoDta(),this.loadPrint(),this.gettoday(),this.getorder(),this.$Bus.$off("prinpage"),this.$Bus.$on("prinpage",function(e){t.tickshow=!0,t.printdata=e.Data.Pos,t.allnum=e.Data.Count}),this.$Bus.$off("priok"),this.$Bus.$on("priok",function(e){1==e.data&&(t.succ=!0,setTimeout(function(){t.tickshow=!1,t.maxshow=!1,t.succ=!1},1e3),t.getorder(),t.gettoday(),t.getnosucc())}),this.allMap(),this.getPrintModel(),this.lock="true"===localStorage.getItem("bool")},mounted:function(){var t=this.$refs.wheel;t.addEventListener("DOMMouseScroll",this.wll)||t.addEventListener("mousewheel",this.wll)},methods:{data:function(t){this.displaySetup=t},shuoding:function(){localStorage.setItem("bool",this.lock)},getPrintModel:function(){var t=this;this.axios.post(this.getProductUrl("print/query"),{companyId:this.$store.state.companyId}).then(function(e){"00"==e.data.code&&(t.printModel=e.data.data)})},model:function(t){this.printModelObj.configs[0].configValue=t,this.logined()},logined:function(){var t=this;this.axios.post(this.getSystem("config/save"),this.printModelObj).then(function(e){if("00"==e.data.code){var s=e.data.data.deviceId,o=e.data.data.deviceType,i=e.data.data.config,a=e.data.data.token,r=e.data.data.companyId,n=e.data.data.userName,c=e.data.data.userId;t.$store.dispatch("getToken",a),t.$store.dispatch("getCompanyId",r),t.$store.dispatch("getUserName",n),t.$store.dispatch("getCreateUserId",c),t.$store.dispatch("getDeviceId",s),t.$store.dispatch("getDeviceType",o),t.$store.dispatch("getConfig",i),t.$message({message:"选择成功",type:"success"}),t.$commonJs.printModel(e.data.data,t)}})},wll:function(t){var e=t||window.event;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1;var s=.2;e.wheelDelta>0||e.detail<0?this.sca+=Number(s):(e.wheelDelta<0&&this.sca>=1||e.detail>0&&this.sca>=1)&&(this.sca-=Number(s));s=e.clientX-this.$refs.all.offsetLeft;var o=e.clientY-this.$refs.all.offsetTop;this.scas.x=s/100+"rem",this.scas.y=o/100+"rem"},down:function(){var t;this.moves=!0,t=event.touches?event.touches[0]:event,this.position.x=t.clientX,this.position.y=t.clientY,this.dx=all.offsetLeft,this.dy=all.offsetTop},move:function(t){var e;this.moves&&(e=event.touches?event.touches[0]:event,this.nx=e.clientX-this.position.x,this.ny=e.clientY-this.position.y,this.xPum=this.dx+this.nx,this.yPum=this.dy+this.ny,all.style.left=this.xPum+"px",all.style.top=this.yPum+"px",document.addEventListener("touchmove",function(){event.preventDefault()},!1))},end:function(){this.moves=!1},getprinter:function(){var t=localStorage.getItem("printer"),e=localStorage.getItem("groupPrintId");null!=t&&(this.obj.order.printer=t),null!=e&&(this.obj.order.groupPrintId=e)},dayin:function(t){localStorage.setItem("printer",t)},autoDta:function(){var t=this;this.getsuccess(),this.dataTime="",this.allTime=[],this.axios.post(this.getStoreUrl("scene/queryTime"),this.quer).then(function(e){0!=e.data.data.length&&(t.allTime=e.data.data,t.dataObj.sceneId=t.allTime[0].sceneId,t.sceneIds=t.allTime[0].sceneId,t.dataTime=t.allTime[0].pictureName+" "+t.allTime[0].sceneDateFrom.substring(0,t.allTime[0].sceneDateFrom.length-3)+"-"+t.allTime[0].sceneDateTo.substring(0,t.allTime[0].sceneDateFrom.length-3),t.autoTime())})},autoTime:function(){var t=this;this.obj.order.subscribeDateFrom=this.quer.batchDate+" "+this.allTime[0].sceneDateFrom,this.quer.batchDate==this.$commonJs.today()?this.obj.order.playDateFrom=this.quer.batchDate+" "+this.allTime[0].sceneDateFrom:this.obj.order.playDateFrom=this.quer.batchDate+" 00:00:00";var e=this.quer.batchDate+" "+this.allTime[0].sceneDateFrom,s=this.quer.batchDate+" "+this.allTime[0].sceneDateTo;this.timeObj.sceneId=this.dataObj.sceneId,this.suoObj.sceneId=this.dataObj.sceneId;var o={sceneId:this.dataObj.sceneId,companyId:this.$store.state.companyId,batchDateFrom:e,batchDateTo:s,channelFromKey:"computer",priceTypeId:"t5"};this.axios.post(this.getStoreUrl("time/querySaleSet"),o).then(function(e){"00"==e.data.code?(t.queryData=e.data.data,t.setDta(e.data.data)):"99"==e.data.code&&t.$message.error(e.data.message)})},yiru:function(e,s){var o=this;t(s)[0].toElement;""!=this.queryData&&this.queryData.sets.forEach(function(t){t.picturePosition==e.coordinate&&(o.posin=e.coordinate,o.setArea=t.setArea,o.setRow=t.setRow,o.setIndex=t.setIndex)})},prised:function(t){this.obj.order.salePricePayTotal=t},setVisitorField:function(t,e,s,o){var i=(t.checkField||{})[s]||{};(e[i.fieldId]=o,i.fieldInput)?e[i.fieldInput]=o:(e.fields=e.fields||[]).push({fieldId:i.fieldId,fieldValue:o})},initCheckField:function(t){var e=t.fields||[];if(null==t.checkField){for(var s={},o=0;o<e.length;o++){var i=e[o]||{};0!=i.inputType&&(s[i.fieldId]=i,i.fieldInput&&(s[i.fieldInput]=i))}t.checkField=s}},checkVistorField:function(t,e){return this.initCheckField(t),((t.checkField||{})[e]||{}).inputType||0},checkMobileInput:function(t){return this.checkVistorField(t,"visitorMobile")},checkIdInput:function(t){return this.checkVistorField(t,"visitorCardId")},checkVisitorNum:function(t,e,s){this.initCheckField(t);var o=0;switch(s=s||[],t.saleCheckId||0){case 1:o=1;break;case 2:o=e}return s.length>=o},checkCardRepeat:function(t,e){this.initCheckField(t);var s=t.fields||[],o={};e=e||[];for(var i=0;i<e.length;i++)for(var a=e[i]||{},r=0;r<s.length;r++){var n=s[r]||{},c=a[n.fieldInput||n.fieldId];if(0==n.fieldType&&c){var l=o[n.fieldId]=o[n.fieldId]||{};if(l[c])return this.$message.error("证件"+n.fieldName+c+"重复"),!1;l[c]=!0}}return!0},checkVisitorOrder:function(t,e,s){if(!this.checkVisitorNum(t,e,s))return this.$message.error("请输入游客信息"),!1;var o=t.fields||[],i={};s=s||[];for(var a=0;a<s.length;a++)for(var r=s[a]||{},n=0;n<o.length;n++){var c=o[n]||{},l=r[c.fieldInput||c.fieldId];if(0==c.fieldType&&!l){var u=i[c.fieldId]=i[c.fieldId]||{};if(u[l])return this.$message.error("证件"+c.fieldName+l+"重复"),!1;u[l]=!0}if(1==c.inputType&&!l&&0!==l)return this.$message.error("请输入"+c.fieldName),!1}return!0},addVisitor:function(t){var e=this.obj||{},s=e.order||{},o=e.visitors||[];t.visitorMobile=t.visitorMobile||e.visitorPhone,o.unshift(t),this.checkCardRepeat(this.fieldsList,o)?this.checkVisitorNum(this.fieldsList,s.buyNum,o)&&this.checkVisitorOrder(this.fieldsList,s.buyNum,o)&&this.ticketIssue():o.pop()},dataOrder:function(){return window.order=window.order||{},window.order},ticketIssue:function(){var t=this;if(0!=this.obj.visitors.length)if(!this.obj.order.notStoreVisible||this.obj.order.playDateFrom){for(var e=!1,s=0;s<this.obj.visitors.length;s++){if(this.obj.visitors[s].psroductId!=this.obj.visitors[0].psroductId){e=!1;break}e=!0}if(!e)return this.$message.error("请选择相同产品的座次"),this.getsuccess(),void this.qutime(this.sceneIds);var o=this.dataOrder();o.visitorPhone="",o.sale=this.fieldsList,o.orderObj=this.obj,o.that=this,this.$store.state.config.printer?(this.obj.order.channelOrderId=this.$commonJs.randoms(),sessionStorage.setItem("phonObjs",u()(this.obj)),0===this.checkMobileInput(this.fieldsList)||this.obj.visitors.length?this.checkVisitorNum(this.fieldsList,this.obj.order.buyNum,this.obj.visitors)?this.axios.post(this.getOrderUrl("order/save"),this.obj).then(function(e){var s=e.data||{},o=s.code||"";!parseInt(o)?(t.printRes(s),document.location.reload()):t.$message.error(s.message)}):this.authshow=!0:this.phoneshow=!0):this.$message.error("打印机名为空,请配置打印机")}else this.$message.error("请选择补单时间!");else this.$message.error("请选取座位")},lockings:function(){if(0!=this.obj.visitors.length){for(var t=!1,e=0;e<this.obj.visitors.length;e++){if(this.obj.visitors[e].psroductId!=this.obj.visitors[0].psroductId){t=!1;break}t=!0}if(!t)return this.$message.error("请选择相同产品的座次"),this.getsuccess(),void this.qutime(this.sceneIds);this.obj.order.channelOrderId=this.$commonJs.randoms(),sessionStorage.setItem("phonObjs",u()(this.obj)),this.lockshow=!0}else this.$message.error("请选取座位")},gai:function(t){this.obj.order.salePricePayedTotal=t.target.value},calculation:function(t){var e=this;this.oldPrise=t.salePricePay;var s=JSON.parse(u()(t));if(this.fieldsList=s,this.obj.order.buyNum=this.obj.visitors.length,0!=s.discountsList.length){s.discountsList.forEach(function(t){e.obj.order.buyNum>=t.buyNum&&(s.salePricePay=t.salePricePay,e.obj.order.salePricePayTotal=s.salePricePay*e.obj.order.buyNum,e.obj.order.salePricePayedTotal=s.salePricePay*e.obj.order.buyNum,e.prisef=s.salePricePay)});var o=Math.min.apply(Math,s.discountsList.map(function(t){return t.buyNum}));this.obj.order.buyNum<o&&(this.obj.order.salePricePayTotal=this.oldPrise*this.obj.order.buyNum,this.obj.order.salePricePayedTotal=this.oldPrise*this.obj.order.buyNum,this.prisef=s.salePricePay)}else this.prisef=s.salePricePay,this.obj.order.salePricePayTotal=this.oldPrise*this.obj.order.buyNum,this.obj.order.salePricePayedTotal=this.oldPrise*this.obj.order.buyNum;this.obj.order.saleId=s.saleId,this.obj.order.saleCheckMobile=s.saleCheckMobile},Edowm:function(t,e,s){var o=this;if(1!=e.setStatus)if(null!=e.setStatus){var i=this,a="",n="",l="",d="";this.queryData.sets.forEach(function(t){t.picturePosition==e.coordinate&&(d=t.setName,a=t.picturePosition,n=t.productColor,l=t.productId)});var h=this.obj.visitors.some(function(t){if(t.picturePostion==a)return!0});if(0==this.single)h?(this.obj.visitors=this.obj.visitors.filter(function(t){return t.picturePostion!=a}),this.suoObj.picturePositions=this.suoObj.picturePositions.filter(function(t){return t!=a}),this.queryData.sales.forEach(function(t){t.productId==l&&o.calculation(t)}),this.queryData.sets.forEach(function(t){t.picturePosition==e.coordinate&&(""!=t.channelId?e.bgColor="#505050":e.bgColor=n)})):(this.obj.visitors.push({picturePostion:a,psroductId:l,allproId:this.queryData.sales,setName:d,picturePostionName:d}),this.suoObj.picturePositions.push(a),e.bgColor="#44b549",this.queryData.sales.forEach(function(t){t.productId==l&&(o.calculation(t),o.suoObj.psroductId=t.productId)}));else{var v=JSON.parse(u()(t.th)),p=[],m=[],f=[];v.forEach(function(t){o.queryData.sets.forEach(function(e){t.coordinate==e.picturePosition&&p.push(e)})}),p.forEach(function(t){t.setIndex%2==0?m.push(t):f.push(t)}),1==this.single?y(v,"coordinate"):2==this.single?y(f,"picturePosition"):3==this.single&&y(m,"picturePosition");var b={},_=this.obj.visitors.reduce(function(t,e){return!b[e.picturePostion]&&(b[e.picturePostion]=t.push(e)),t},[]);this.obj.visitors=_,this.suoObj.picturePositions=[].concat(c()(new r.a(this.suoObj.picturePositions))),this.queryData.sales.forEach(function(t){t.productId==l&&o.calculation(t)})}0!=this.obj.order.buyNum?this.queryData.sales.forEach(function(t){t.productId==l&&(t.saleChangePrice?(o.readonly=!1,o.border="1px solid #cccccc"):(o.readonly=!0,o.border=0))}):(this.readonly=!0,this.border=0)}else this.$message.error("当前座位不可选");else this.$message.error("当前座位已出票");function g(t,e,s){return i.lock?t.coordinate===Number(e[s])&&0===e.setStatus:t.coordinate===Number(e[s])&&0===e.setStatus&&""===e.channelId}function y(t,e){var s=[];t.forEach(function(t){(function(t){return i.lock?0===t.setStatus:0===t.setStatus&&""===t.channelId})(t)&&s.push(t[e])});var o,a={};i.queryData.sets.forEach(function(t,e){a[t.picturePosition]=t}),(o=i.suoObj.picturePositions,s.every(function(t){return o.includes(t)}))?(t.forEach(function(t){i.seatingChart.forEach(function(s){s.row.forEach(function(s){s.th.forEach(function(s){g(s,t,e)&&(""==s.channelId?s.bgColor=n:s.bgColor="#505050")})})})}),i.suoObj.picturePositions=i.suoObj.picturePositions.filter(function(s){return t.every(function(t){return s!=t[e]})}),i.obj.visitors=i.obj.visitors.filter(function(s){return t.every(function(t){return s.picturePostion!=t[e]})})):t.forEach(function(t){i.seatingChart.forEach(function(s){s.row.forEach(function(s){s.th.forEach(function(s){g(s,t,e)&&(i.obj.visitors.push({picturePostion:t[e],psroductId:l,allproId:i.queryData.sales,setName:a[s[e]]&&a[s[e]].setName||t.setName,picturePostionName:a[s[e]]&&a[s[e]].setName||t.setName}),i.suoObj.picturePositions.push(t[e]),s.bgColor="#44b549")})})})})}},suos:function(){this.titles="锁定",this.suoObj.lockStatus=0,this.suoObj.channelId="mxc001",0!=this.suoObj.picturePositions.length?(sessionStorage.setItem("lockObj",u()(this.suoObj)),this.locks=!0):this.$message.error("请选择锁定座位")},jie:function(){this.titles="解锁",this.suoObj.lockStatus=1,0!=this.suoObj.picturePositions.length?(sessionStorage.setItem("lockObj",u()(this.suoObj)),this.locks=!0):this.$message.error("请选择解锁座位")},getall:function(){var t=this;this.getsuccess(),this.dataTime="",this.allTime=[],this.axios.post(this.getStoreUrl("scene/queryTime"),this.quer).then(function(e){0!=e.data.data.length&&(t.allTime=e.data.data)})},qutime:function(t){var e=this;this.sceneIds=t,this.getsuccess(),this.allTime.forEach(function(s){s.sceneId==t&&(e.obj.order.subscribeDateFrom=e.quer.batchDate+" "+s.sceneDateFrom,e.quer.batchDate==e.$commonJs.today()?e.obj.order.playDateFrom=e.quer.batchDate+" "+s.sceneDateFrom:e.obj.order.playDateFrom=e.quer.batchDate+" 00:00:00",e.timeObj.batchDateFrom=e.quer.batchDate+" "+s.sceneDateFrom,e.timeObj.batchDateTo=e.quer.batchDate+" "+s.sceneDateTo)}),this.timeObj.sceneId=t,this.suoObj.sceneId=t,this.axios.post(this.getStoreUrl("time/querySaleSet"),this.timeObj).then(function(t){"00"==t.data.code&&""!=t.data.data?(e.$message({message:"查询成功",type:"success"}),e.queryData=t.data.data,console.log(e.queryData),e.setDta(t.data.data)):"99"==t.data.code&&e.$message.error(t.data.message)}).catch(function(t){console.log(t)}),this.obj.order.patchOrder=0,this.obj.order.playDateFrom=""},setDta:function(t){var e=this;this.seatingChart.forEach(function(t){t.row.forEach(function(t){t.th.forEach(function(t){t.bgColor="",t.setStatus=null,t.index=""})})}),t.sets.forEach(function(t){e.seatingChart.forEach(function(e){e.row.forEach(function(e){e.th.forEach(function(e){e.coordinate==t.picturePosition&&(""==t.channelId?e.bgColor=t.productColor:e.bgColor="#505050",1==t.setStatus&&(e.bgColor=null,e.clor="#030000"),e.setStatus=t.setStatus,e.index=t.setIndex,e.channelId=t.channelId)})})})})},loadPrint:function(){var e=this;function s(s){s=s||[];var o=[];t.each(s,function(t,e){o.push({id:e,name:e})}),e.Rendering(o)}try{Base.getHard().getPrinter(function(t){s(t)},function(t){s()})}catch(t){s()}},Rendering:function(t){0!=t.length?this.PrinterList=t:this.PrinterList=[{name:"暂无打印机",id:""}]},printRes:function(t){var e=this,s=t.data,o=s.printer;o?s.printModel?this.Print(o,JSON.parse(s.printModel),s.printDatas,function(){},{error:function(t){e.PrintError(t)},timeout:5e3}):this.$message.error("打印模板为空,请检查打印机配置"):this.$message.error("打印机为空,请检查打印机配置")},PrintError:function(t){var e=this;this.succ=!0,setTimeout(function(){e.tickshow=!1,e.succ=!1},100);var s=t&&(t.msg||t.Msg)||t;alert(s)},Print:function(t,e,s,o){this.__PrintExecute(t,e,s,o)},__PrintExecute:function(t,e,s,o){var i=this;if(null!=s&&0!=s.length){var a=Base.getPrint();a.printInit(t,e),a.print(s,function(t){i.run(function(){"printed"==t.EventName?(i.__Printed(),o&&o()):"printItemed"==t.EventName?i.__PrintItemed(t):"printIteming"==t.EventName&&i.__PrintIteming(t)})},function(t){i.PrintError(t),o&&o()})}},__Printed:function(){var t=this;this.succ=!0,window.order={},this.obj.order.buyNum=1,this.obj.order.channelOrderId="",this.obj.visitorPhone="",this.obj.visitors=[],setTimeout(function(){t.tickshow=!1,t.maxshow=!1,t.succ=!1},1e3),this.getorder(),this.gettoday(),this.getnosucc()},__PrintIteming:function(t){this.tickshow=!0,this.printdata=t.Data.Pos,this.allnum=t.Data.Count},run:function(t,e){var s=this;try{t&&t()}catch(t){var o=t&&t.msg||t;(e||function(t){s.$message.error(t)})(o)}},getsuccess:function(){var t=this,e=localStorage.getItem("printer");this.bol=!0,this.sets=[],this.prodes=[],this.obj.order={printer:e,buyNum:0,salePricePayTotal:0,subscribeDateFrom:"",channelOrderId:"",companyId:this.$store.state.companyId,saleId:"",payType:"0",salePricePayedTotal:"",playDateFrom:this.$commonJs.today()+" 00:00:00",channelFromKey:"computer",saleCheckId:"",saleCheckMobile:"",patchOrder:this.obj.order.patchOrder},this.obj.visitors=[],this.seatingChart.forEach(function(t){t.row.forEach(function(t){t.th.forEach(function(t){t.setStatus=null,t.bgColor="",t.index=""})})}),i()(this.suoObj).forEach(function(e){return t.suoObj[e]=""}),this.suoObj.picturePositions=[],this.suoObj.companyId=this.$store.state.companyId,this.suoObj.psroductId=[]},getnosucc:function(){var t=this,e=localStorage.getItem("printer");this.obj.visitors=[],this.bol=!0,this.obj.order.printer=e,this.obj.order.buyNum=0,this.obj.order.salePricePayTotal=0,this.obj.order.channelOrderId="",this.obj.order.saleId="",this.obj.order.salePricePayedTotal="",this.obj.order.saleCheckId="",this.obj.order.saleCheckMobile="",i()(this.suoObj).forEach(function(e){return t.suoObj[e]=""}),this.suoObj.picturePositions=[],this.suoObj.psroductId=[],this.suoObj.companyId=this.$store.state.companyId,this.qutime(this.sceneIds)},gettoday:function(){var t=this;this.axios.post(this.getOrderUrl("order/getDay"),{pageSize:1,companyId:this.$store.state.companyId}).then(function(e){if("00"==e.data.code){var s=e.data.data.buyNum,o=e.data.data.salePricePayTotal;t.todaynum=s,t.todaymoney=o}})},getorder:function(){var t=this;this.axios.post(this.getOrderUrl("order/query"),{pageSize:1,companyId:this.$store.state.companyId}).then(function(e){console.log(e),0!=e.data.data.list.length&&"00"==e.data.code&&(t.newnumm=e.data.data.list)})},chong:function(t){var e=this,s={orderId:t.orderId,all:!0};""==this.obj.order.printer?this.$message.error("请选择打印机"):this.axios.post(this.getOrderUrl("order/load"),s).then(function(t){e.printRes(t.data)})},closephone:function(t){this.phoneshow=t},phonOk:function(){this.phoneshow=!1,this.authshow=!0},auclose:function(){this.authshow=!1},augoup:function(){this.authshow=!1,this.phoneshow=!0},ticket:function(){this.maxshow=!1,this.tickshow=!0},clasd:function(){this.lockshow=!1,this.tickshow=!0},que:function(){this.lockshow=!1},manual:function(){this.authshow=!1,this.maxshow=!0},tik:function(t){this.tickshow=!0,this.authshow=!1},maxclose:function(){this.maxshow=!1},tickclose:function(){this.tickshow=!1},lovka:function(){this.locks=!1,this.qutime(this.sceneIds)},lockclose:function(){this.lockshow=!1,this.locks=!1,this.getsuccess(),this.qutime(this.sceneIds)},lockcledf:function(){this.lockshow=!1,this.locks=!1},getInitAreaRowSize:function(t){for(var e=0,s=this.initAreaData[t],o=0;o<s.length;o++)e+=s[o];return e},getInitAreaColumnPosition:function(t,e,s){var o=0,i=this.initAreaData[t];if(t%2==0){for(var a=0;a<e;a++)o+=i[a];o+=s+1}else{for(a=i.length-1;a>e;a--)o+=i[a];o+=i[e]-s}return o},initArea:function(t,e,s,o,i){for(var a=1,r=0,n=0;n<s;n++)r+=this.getInitAreaRowSize(n);for(var c=s;c<=o;c++){var l={th:[],pai:c-s+1,qu:e};t.row.push(l);for(var u=this.initAreaData[c][i],d=0;d<u;d++){var h=r+this.getInitAreaColumnPosition(c,i,d);l.th.push({hao:a++,suo:!1,coordinate:h,setStatus:null,bgColor:"none"})}r+=this.getInitAreaRowSize(c)}},allMap:function(){this.initArea(this.seatingChart[0],"E下区",0,9,0),this.initArea(this.seatingChart[1],"D下区",0,9,1),this.initArea(this.seatingChart[2],"C下区",0,9,2),this.initArea(this.seatingChart[3],"B下区",0,9,3),this.initArea(this.seatingChart[4],"A下区",0,9,4),this.initArea(this.seatingChart[5],"E上区",10,16,0),this.initArea(this.seatingChart[6],"D上区",10,16,1),this.initArea(this.seatingChart[7],"C上区",10,16,2),this.initArea(this.seatingChart[8],"B上区",10,16,3),this.initArea(this.seatingChart[9],"A上区",10,16,4)}},components:{phone:d.a,authent:h.a,maxual:v.a,ticketIssue:p.a,locking:m.a,lock:f.a,localSettings:b.a,breadNav:_.default}}}).call(e,s("SXXC"))},oGQd:function(t,e,s){var o=s("PGvq"),i=s("Lzmh");s("OFGQ")("keys",function(){return function(t){return i(o(t))}})},pfli:function(t,e){},qMAo:function(t,e,s){s("oGQd"),t.exports=s("DH3n").Object.keys},vthr:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=s("lhxZ"),i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bigBox"},[s("breadNav",[t._v("座次售票")]),t._v(" "),s("div",{staticClass:"tab"},[s("div",[s("p",[t._v("最新记录")]),t._v(" "),s("p",[s("span",[t._v("今日售票量:"),s("i",[t._v(t._s(t.todaynum))]),t._v("张")]),s("span",[t._v("金额:"),s("i",[t._v(t._s(t.todaymoney))]),t._v("元")])])]),t._v(" "),t._l(t.newnumm,function(e,o){return s("div",{key:o},[s("p",[t._v(t._s(e.productName))]),t._v(" "),s("p",[t._v(t._s(e.buyNum)+"张")]),t._v(" "),s("p",[t._v(t._s(e.salePricePayTotal)+"元")]),t._v(" "),s("p",[t._v(t._s(e.createDate))]),t._v(" "),s("p",{staticClass:"chon",on:{click:function(s){return t.chong(e)}}},[t._v("重新打印")])])})],2),t._v(" "),s("div",{staticClass:"head"},[s("div",{staticClass:"num"},[s("div",[s("p",[t._v("数量"),s("span",[t._v(t._s(t.obj.order.buyNum))])]),t._v(" "),s("p",[t._v("总价\n "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.obj.order.salePricePayTotal,expression:"obj.order.salePricePayTotal"}],style:{border:t.border},attrs:{readonly:t.readonly},domProps:{value:t.obj.order.salePricePayTotal},on:{change:function(e){return t.gai(e)},input:function(e){e.target.composing||t.$set(t.obj.order,"salePricePayTotal",e.target.value)}}}),t._v("\n 元")]),t._v(" "),s("button",{staticClass:"btn4",on:{click:t.ticketIssue}},[t._v("出票")]),t._v(" "),s("button",{staticClass:"btn4",on:{click:t.lockings}},[t._v("团队出票")]),t._v(" "),s("button",{staticClass:"btn4",on:{click:t.suos}},[t._v("锁定")]),t._v(" "),s("button",{staticClass:"btn4",on:{click:t.jie}},[t._v("解锁")]),t._v(" "),s("button",{staticClass:"btn4",on:{click:function(e){t.displaySetup=!0}}},[t._v("设置")])])])]),t._v(" "),s("div",{staticClass:"box"},[s("div",{staticClass:"show"},[s("div",{staticClass:"dats"},[s("span",[t._v("游玩日期:")]),t._v(" "),s("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},on:{change:t.getall},model:{value:t.quer.batchDate,callback:function(e){t.$set(t.quer,"batchDate",e)},expression:"quer.batchDate"}}),t._v(" "),s("span",[t._v("演出时间:")]),t._v(" "),s("el-select",{staticClass:"timf",attrs:{placeholder:"请选择时间"},on:{change:t.qutime},model:{value:t.dataTime,callback:function(e){t.dataTime=e},expression:"dataTime"}},t._l(t.allTime,function(t,e){return s("el-option",{key:e,attrs:{label:t.pictureName+" "+t.sceneDateFrom.substring(0,t.sceneDateFrom.length-3)+"-"+t.sceneDateTo.substring(0,t.sceneDateTo.length-3),value:t.sceneId}})}),1),t._v(" "),t.obj.order.patchOrder?s("p",{staticClass:"ppp"},[s("span",[t._v("补单时间")]),t._v(" "),s("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:t.obj.order.playDateFrom,callback:function(e){t.$set(t.obj.order,"playDateFrom",e)},expression:"obj.order.playDateFrom"}})],1):t._e(),t._v(" "),s("p",{staticClass:"pai"},[s("span",[t._v("选座方式:")]),t._v(" "),s("el-radio-group",{model:{value:t.single,callback:function(e){t.single=e},expression:"single"}},[s("el-radio",{attrs:{label:0}},[t._v("单选")]),t._v(" "),s("el-radio",{attrs:{label:1}},[t._v("排选")]),t._v(" "),s("el-radio",{attrs:{label:2}},[t._v("单数排选")]),t._v(" "),s("el-radio",{attrs:{label:3}},[t._v("双数排选")]),t._v(" "),s("el-checkbox",{on:{change:t.shuoding},model:{value:t.lock,callback:function(e){t.lock=e},expression:"lock"}},[t._v("可选锁定")]),t._v(" "),s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.obj.order.patchOrder,callback:function(e){t.$set(t.obj.order,"patchOrder",e)},expression:"obj.order.patchOrder"}},[t._v("补单")])],1)],1)],1),t._v(" "),t._m(0)]),t._v(" "),s("div",{ref:"wheel",staticClass:"tu"},[s("div",{ref:"all",style:{transform:"scale("+t.sca+")",transformOrigin:t.scas.x+" "+t.scas.y},attrs:{id:"all"},on:{mousedown:t.down,mousemove:t.move,mouseup:t.end}},[s("span",{staticClass:"ma"},[t._v("马圈舞台")]),t._v(" "),s("div",{ref:"ssa",staticClass:"Earea"},[t._m(1),t._v(" "),t._l(t.seatingChart[0].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Ddowm"},[s("div",{staticStyle:{transform:"rotate(-55deg)"}},[t._v("D下区 共135座")]),t._v(" "),t._l(t.seatingChart[1].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Cdowm"},[s("div",{staticStyle:{transform:"rotate(0)"}},[t._v("C下区 共223座")]),t._v(" "),t._l(t.seatingChart[2].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Bdowm"},[s("div",{staticStyle:{transform:"rotate(50deg)"}},[t._v("B下区 共135座")]),t._v(" "),t._l(t.seatingChart[3].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Adown",attrs:{id:"Adowns"}},[t._m(2),t._v(" "),t._l(t.seatingChart[4].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Eup"},[t._m(3),t._v(" "),t._l(t.seatingChart[5].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Dup"},[s("div",{staticStyle:{transform:"rotate(-30deg)"}},[t._v("D上区 共159座")]),t._v(" "),t._l(t.seatingChart[6].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Cup"},[s("div",{staticStyle:{transform:"rotate(0deg)"}},[t._v("C上区 共137座")]),t._v(" "),t._l(t.seatingChart[7].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Bup"},[s("div",{staticStyle:{transform:"rotate(30deg)"}},[t._v("B上区 共159座")]),t._v(" "),t._l(t.seatingChart[8].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Aup"},[t._m(4),t._v(" "),t._l(t.seatingChart[9].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor,color:o.clor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2)])])]),t._v(" "),t.phoneshow?s("phone",{on:{closed:t.closephone,phonOk:t.phonOk}}):t._e(),t._v(" "),t.authshow?s("authent",{on:{closed:t.auclose,goup:t.augoup,manual:t.manual,tik:t.tik}}):t._e(),t._v(" "),t.maxshow?s("maxual",{on:{ticket:t.ticket,closed:t.maxclose}}):t._e(),t._v(" "),t.tickshow?s("ticketIssue",{attrs:{succ:t.succ},on:{closed:t.tickclose}},[s("span",{attrs:{slot:"pag"},slot:"pag"},[t._v(t._s(t.printdata))]),t._v(" "),s("span",{attrs:{slot:"num"},slot:"num"},[t._v(t._s(t.allnum))])]):t._e(),t._v(" "),t.lockshow?s("locking",{on:{closed:t.lockclose,que:t.que,prise:t.prised,clasd:t.clasd}}):t._e(),t._v(" "),t.locks?s("lock",{on:{closed:t.lockcledf,clasd:t.lovka}},[s("span",[t._v(t._s(t.titles))])]):t._e(),t._v(" "),t.displaySetup?s("localSettings",{attrs:{PrinterList:t.PrinterList,printModel:t.printModel},on:{data:t.data}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("p",[e("span"),this._v("已出票")]),this._v(" "),e("p",[e("span"),this._v("已选中")]),this._v(" "),e("p",[e("span"),this._v("已锁定")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{transform:"rotate(-88deg)"}},[this._v("E下区"),e("br"),this._v("共90座")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{transform:"rotate(90deg)"}},[this._v("A下区"),e("br"),this._v("共90座")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{transform:"rotate(-68deg)"}},[this._v("E上区"),e("br"),this._v("共186座")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{transform:"rotate(70deg)"}},[this._v("A上区"),e("br"),this._v("共182座")])}]};var a=function(t){s("pfli")},r=s("C7Lr")(o.a,i,!1,a,"data-v-34034aae",null);e.default=r.exports},zQLK:function(t,e){}});
\ No newline at end of file
webpackJsonp([6],{"18l2":function(t,e,s){"use strict";var o={data:function(){return{looking:{channelId:""},date:"",obj:{lockDateTo:"",lockDateFrom:""},nowproduct:[],chanle:[]}},methods:{closed:function(){this.$emit("closed")},datetime:function(t){this.obj.lockDateFrom=t[0],this.obj.lockDateTo=t[1]},ok:function(){var t=this;this.axios.post(this.getStoreUrl("/scene/lock"),this.obj).then(function(e){"00"==e.data.code?(0==t.obj.lockStatus?t.$message({message:"锁定成功",type:"success"}):1==t.obj.lockStatus&&t.$message({message:"解锁成功",type:"success"}),t.$emit("clasd"),sessionStorage.removeItem("lockObj")):t.$message.error(e.data.message)})}},created:function(){var t=sessionStorage.getItem("lockObj");this.obj=JSON.parse(t)}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"boxs"},[s("div",[s("div",{staticClass:"headert"},[s("p",[t._t("default"),t._v("填写")],2),t._v(" "),s("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"},on:{click:t.closed}},[s("use",{attrs:{"xlink:href":"#iconguanbi1"}})])]),t._v(" "),s("div",{staticClass:"conn"},[s("div",{staticClass:"df"},[s("span",[t._t("default"),t._v("时间:")],2),t._v(" "),s("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","value-format":"yyyy-MM-dd","end-placeholder":"结束日期"},on:{change:t.datetime},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}})],1),t._v(" "),s("button",{on:{click:t.ok}},[t._v("确定")])])])])},staticRenderFns:[]};var a=s("C7Lr")(o,i,!1,function(t){s("zQLK")},"data-v-5eba0bf2",null);e.a=a.exports},CvJH:function(t,e){},FVx2:function(t,e,s){"use strict";var o={data:function(){return{readonly:!0,border:0,looking:{contacts:"",phone:"",channelId:""},obj:{order:{orderRemark:"",hidePrice:!1},visitors:[]},nowproduct:[],chanle:[]}},methods:{closed:function(){this.$emit("closed")},gai:function(t){this.obj.order.salePricePayedTotal=t.target.value,this.obj.order.salePriceTotal=t.target.value,this.$emit("prise",t.target.value)},ok:function(){var t=this,e=this.looking;e.contacts,e.phone;""!=e.channelId?(this.obj.visitors[0].visitorName=this.looking.contacts,this.obj.visitors[0].visitorMobile=this.looking.phone,this.axios.post(this.getOrderUrl("order/save"),this.obj).then(function(e){var s=e.data||{},o=s.code||"";!parseInt(o)?(t.printRes(s),t.$emit("que")):t.$message.error(s.message)})):this.$message.error("请选择团体对象")},chalse:function(t){var e=this;this.chanle.forEach(function(s){s.channelId+s.saleId==t&&(s.saleChangePrice?(e.readonly=!1,e.border="1px solid #cccccc"):(e.readonly=!0,e.border=0),e.obj.order.salePricePayTotal=e.obj.order.buyNum*s.salePricePay,e.obj.order.salePricePayedTotal=e.obj.order.buyNum*s.salePricePay,e.obj.order.salePriceTotal=s.salePricePay*e.obj.order.buyNum,e.obj.order.saleCheckId=s.saleCheckId,e.obj.order.saleCheckMobile=s.saleCheckMobile,e.obj.order.channelId=s.channelId,e.obj.order.saleId=s.saleId,e.$emit("prise",e.obj.order.salePricePayTotal))})},printRes:function(t){var e=this,s=t.data,o=s.printer;console.log(s),o?s.printModel?this.Print(o,JSON.parse(s.printModel),s.printDatas,function(){},{error:function(t){e.PrintError(t)},timeout:5e3}):this.$message.error("打印模板为空,请检查打印机配置"):this.$message.error("打印机为空,请检查打印机配置")},Print:function(t,e,s,o){this.__PrintExecute(t,e,s,o)},__PrintExecute:function(t,e,s,o){var i=this;if(null!=s&&0!=s.length){var a=Base.getPrint();a.printInit(t,e),a.print(s,function(t){i.run(function(){"printed"==t.EventName?(i.__Printed(),o&&o()):"printItemed"==t.EventName?i.__PrintItemed(t):"printIteming"==t.EventName&&i.__PrintIteming(t)})},function(t){i.PrintError(t),o&&o()})}},PrintError:function(t){this.$Bus.$emit("priok",{data:!0});var e=t&&(t.msg||t.Msg)||t;alert(e)},__Printed:function(){this.$Bus.$emit("priok",{data:!0})},__PrintIteming:function(t){this.$emit("clasd"),this.$Bus.$emit("prinpage",t)},run:function(t,e){var s=this;try{t&&t()}catch(t){var o=t&&t.msg||t;(e||function(t){s.$message.error(t)})(o)}}},created:function(){var t=this,e=sessionStorage.getItem("phonObjs");this.obj=JSON.parse(e),this.obj.visitors.forEach(function(e){t.nowproduct.push(e.psroductId)}),this.axios.post(this.getProductUrlTwo("sale/querySaleChannel"),{productIds:this.nowproduct,companyId:this.$store.state.companyId}).then(function(e){0!=e.data.data.length&&(t.chanle=e.data.data)})}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return""!=t.obj.order.buyNum?s("div",{staticClass:"boxs"},[s("div",[s("div",{staticClass:"headert"},[s("p",[t._v("锁定填写")]),t._v(" "),s("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"},on:{click:t.closed}},[s("use",{attrs:{"xlink:href":"#iconguanbi1"}})])]),t._v(" "),s("div",{staticClass:"conn"},[s("div",[s("span",[t._v("锁定数量:")]),t._v(" "),s("i",[t._v(t._s(t.obj.order.buyNum))])]),t._v(" "),s("div",[s("span",[t._v("锁定金额:")]),t._v(" "),s("p",{staticStyle:{display:"flex","align-items":"center"}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.obj.order.salePricePayTotal,expression:"obj.order.salePricePayTotal"}],staticClass:"prise",style:{border:t.border},attrs:{readonly:t.readonly},domProps:{value:t.obj.order.salePricePayTotal},on:{change:function(e){return t.gai(e)},input:function(e){e.target.composing||t.$set(t.obj.order,"salePricePayTotal",e.target.value)}}}),t._v("\n 元")])]),t._v(" "),s("div",{staticClass:"df"},[s("span",[t._v("团体对象:")]),t._v(" "),s("el-select",{attrs:{placeholder:"请选择渠道名称"},on:{change:t.chalse},model:{value:t.looking.channelId,callback:function(e){t.$set(t.looking,"channelId",e)},expression:"looking.channelId"}},t._l(t.chanle,function(t,e){return s("el-option",{key:e,attrs:{label:t.channelName,value:t.channelId+t.saleId}})}),1)],1),t._v(" "),s("div",[s("span",[t._v("联系人:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.looking.contacts,expression:"looking.contacts"}],domProps:{value:t.looking.contacts},on:{input:function(e){e.target.composing||t.$set(t.looking,"contacts",e.target.value)}}})]),t._v(" "),s("div",[s("span",[t._v("电话:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.looking.phone,expression:"looking.phone"}],domProps:{value:t.looking.phone},on:{input:function(e){e.target.composing||t.$set(t.looking,"phone",e.target.value)}}})]),t._v(" "),s("div",[s("span",[t._v("订单备注:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.obj.order.orderRemark,expression:"obj.order.orderRemark"}],domProps:{value:t.obj.order.orderRemark},on:{input:function(e){e.target.composing||t.$set(t.obj.order,"orderRemark",e.target.value)}}})]),t._v(" "),s("div",[s("span",[t._v("隐藏价格:")]),t._v(" "),s("el-checkbox",{model:{value:t.obj.order.hidePrice,callback:function(e){t.$set(t.obj.order,"hidePrice",e)},expression:"obj.order.hidePrice"}})],1),t._v(" "),s("button",{on:{click:t.ok}},[t._v("出票")])])])]):t._e()},staticRenderFns:[]};var a=s("C7Lr")(o,i,!1,function(t){s("CvJH")},"data-v-752860a8",null);e.a=a.exports},Nxbc:function(t,e){},OFGQ:function(t,e,s){var o=s("uSC2"),i=s("DH3n"),a=s("cqFu");t.exports=function(t,e){var s=(i.Object||{})[t]||Object[t],r={};r[t]=e(s),o(o.S+o.F*a(function(){s(1)}),"Object",r)}},ZLEe:function(t,e,s){t.exports={default:s("qMAo"),__esModule:!0}},lhxZ:function(t,e,s){"use strict";(function(t){var o=s("ZLEe"),i=s.n(o),a=s("zsLt"),r=s.n(a),n=s("IHPB"),c=s.n(n),l=s("3cXf"),u=s.n(l),d=s("8p6T"),h=s("zat1"),v=s("GYc6"),p=s("cxdB"),m=s("FVx2"),f=s("18l2"),b=s("hG4X"),_=s("RwQt");e.a={data:function(){return{fieldsList:[],displaySetup:!1,lock:!1,titles:"锁定",phoneshow:!1,authshow:!1,maxshow:!1,tickshow:!1,lockshow:!1,locks:!1,seatingChart:[{area:"E下区",row:[]},{area:"D下区",row:[]},{area:"C下区",row:[]},{area:"B下区",row:[]},{area:"A下区",row:[]},{area:"E上区",row:[]},{area:"D上区",row:[]},{area:"C上区",row:[]},{area:"B上区",row:[]},{area:"A上区",row:[]}],readonly:!0,border:0,initAreaData:[[3,7,13,7,3],[7,8,15,8,7],[8,10,18,10,8],[8,11,20,11,8],[9,12,22,12,9],[9,14,24,14,9],[10,15,26,15,10],[10,17,0,17,10],[12,19,41,19,12],[14,22,42,22,14],[21,18,15,18,21],[23,19,16,19,23],[24,20,17,19,24],[25,21,18,21,25],[27,22,19,22,27],[30,29,26,29,30],[32,30,26,30,32]],qu:"",index:"",itms:[],suo:[],seatNumber:"",query:{reservationGroup:"",contacts:""},quer:{batchDate:this.$commonJs.today(),companyId:this.$store.state.companyId},a:"",dataTime:"",allTime:[],PrinterList:[],sets:[],prodes:[],obj:{order:{patchOrder:"",buyNum:0,salePricePayTotal:0,subscribeDateFrom:"",channelOrderId:"",companyId:this.$store.state.companyId,saleId:"",payType:"0",salePricePayedTotal:"",playDateFrom:"",channelFromKey:"computer",saleCheckId:"",saleCheckMobile:"",orderRemark:"",hidePrice:!1},visitors:[]},todaynum:0,todaymoney:0,newnumm:[],prise:"",printdata:"",allnum:"",succ:"",bol:!0,setArea:"",setRow:"",setIndex:"",posin:"",dataObj:{sceneId:"",subscribeDateFrom:""},timeObj:{companyId:this.$store.state.companyId,sceneId:"",priceTypeId:"t5",batchDateFrom:"",batchDateTo:"",channelFromKey:"computer"},queryData:"",scas:{x:"",y:""},suoObj:{companyId:this.$store.state.companyId,sceneId:"",lockStatus:0,channelId:"",picturePositions:[],psroductId:[],lockDateFrom:"",lockDateTo:""},sca:1,position:{x:0,y:0},nx:"",ny:"",dx:"",dy:"",xPum:"",yPum:"",moves:!1,prisef:"",sceneIds:"",oldPrise:"",printModel:[],prinmode:this.$store.state.config.printId,printModelObj:{companyId:this.$store.state.companyId,deviceType:this.$store.state.deviceType,deviceId:this.$store.state.deviceId,configs:[{configKey:"printId",configValue:this.$store.state.config.printId}]},single:0}},created:function(){var t=this;this.getprinter(),this.autoDta(),this.loadPrint(),this.gettoday(),this.getorder(),this.$Bus.$off("prinpage"),this.$Bus.$on("prinpage",function(e){t.tickshow=!0,t.printdata=e.Data.Pos,t.allnum=e.Data.Count}),this.$Bus.$off("priok"),this.$Bus.$on("priok",function(e){1==e.data&&(t.succ=!0,setTimeout(function(){t.tickshow=!1,t.maxshow=!1,t.succ=!1},1e3),t.getorder(),t.gettoday(),t.getnosucc())}),this.allMap(),this.getPrintModel(),this.lock="true"===localStorage.getItem("bool")},mounted:function(){var t=this.$refs.wheel;t.addEventListener("DOMMouseScroll",this.wll)||t.addEventListener("mousewheel",this.wll)},methods:{data:function(t){this.displaySetup=t},shuoding:function(){localStorage.setItem("bool",this.lock)},getPrintModel:function(){var t=this;this.axios.post(this.getProductUrl("print/query"),{companyId:this.$store.state.companyId}).then(function(e){"00"==e.data.code&&(t.printModel=e.data.data)})},model:function(t){this.printModelObj.configs[0].configValue=t,this.logined()},logined:function(){var t=this;this.axios.post(this.getSystem("config/save"),this.printModelObj).then(function(e){if("00"==e.data.code){var s=e.data.data.deviceId,o=e.data.data.deviceType,i=e.data.data.config,a=e.data.data.token,r=e.data.data.companyId,n=e.data.data.userName,c=e.data.data.userId;t.$store.dispatch("getToken",a),t.$store.dispatch("getCompanyId",r),t.$store.dispatch("getUserName",n),t.$store.dispatch("getCreateUserId",c),t.$store.dispatch("getDeviceId",s),t.$store.dispatch("getDeviceType",o),t.$store.dispatch("getConfig",i),t.$message({message:"选择成功",type:"success"}),t.$commonJs.printModel(e.data.data,t)}})},wll:function(t){var e=t||window.event;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1;var s=.2;e.wheelDelta>0||e.detail<0?this.sca+=Number(s):(e.wheelDelta<0&&this.sca>=1||e.detail>0&&this.sca>=1)&&(this.sca-=Number(s));s=e.clientX-this.$refs.all.offsetLeft;var o=e.clientY-this.$refs.all.offsetTop;this.scas.x=s/100+"rem",this.scas.y=o/100+"rem"},down:function(){var t;this.moves=!0,t=event.touches?event.touches[0]:event,this.position.x=t.clientX,this.position.y=t.clientY,this.dx=all.offsetLeft,this.dy=all.offsetTop},move:function(t){var e;this.moves&&(e=event.touches?event.touches[0]:event,this.nx=e.clientX-this.position.x,this.ny=e.clientY-this.position.y,this.xPum=this.dx+this.nx,this.yPum=this.dy+this.ny,all.style.left=this.xPum+"px",all.style.top=this.yPum+"px",document.addEventListener("touchmove",function(){event.preventDefault()},!1))},end:function(){this.moves=!1},getprinter:function(){var t=localStorage.getItem("printer"),e=localStorage.getItem("groupPrintId");null!=t&&(this.obj.order.printer=t),null!=e&&(this.obj.order.groupPrintId=e)},dayin:function(t){localStorage.setItem("printer",t)},autoDta:function(){var t=this;this.getsuccess(),this.dataTime="",this.allTime=[],this.axios.post(this.getStoreUrl("scene/queryTime"),this.quer).then(function(e){0!=e.data.data.length&&(t.allTime=e.data.data,t.dataObj.sceneId=t.allTime[0].sceneId,t.sceneIds=t.allTime[0].sceneId,t.dataTime=t.allTime[0].pictureName+" "+t.allTime[0].sceneDateFrom.substring(0,t.allTime[0].sceneDateFrom.length-3)+"-"+t.allTime[0].sceneDateTo.substring(0,t.allTime[0].sceneDateFrom.length-3),t.autoTime())})},autoTime:function(){var t=this;this.obj.order.subscribeDateFrom=this.quer.batchDate+" "+this.allTime[0].sceneDateFrom,this.quer.batchDate==this.$commonJs.today()?this.obj.order.playDateFrom=this.quer.batchDate+" "+this.allTime[0].sceneDateFrom:this.obj.order.playDateFrom=this.quer.batchDate+" 00:00:00";var e=this.quer.batchDate+" "+this.allTime[0].sceneDateFrom,s=this.quer.batchDate+" "+this.allTime[0].sceneDateTo;this.timeObj.sceneId=this.dataObj.sceneId,this.suoObj.sceneId=this.dataObj.sceneId;var o={sceneId:this.dataObj.sceneId,companyId:this.$store.state.companyId,batchDateFrom:e,batchDateTo:s,channelFromKey:"computer",priceTypeId:"t5"};this.axios.post(this.getStoreUrl("time/querySaleSet"),o).then(function(e){"00"==e.data.code?(t.queryData=e.data.data,t.setDta(e.data.data)):"99"==e.data.code&&t.$message.error(e.data.message)})},yiru:function(e,s){var o=this;t(s)[0].toElement;""!=this.queryData&&this.queryData.sets.forEach(function(t){t.picturePosition==e.coordinate&&(o.posin=e.coordinate,o.setArea=t.setArea,o.setRow=t.setRow,o.setIndex=t.setIndex)})},prised:function(t){this.obj.order.salePricePayTotal=t},setVisitorField:function(t,e,s,o){var i=(t.checkField||{})[s]||{};(e[i.fieldId]=o,i.fieldInput)?e[i.fieldInput]=o:(e.fields=e.fields||[]).push({fieldId:i.fieldId,fieldValue:o})},initCheckField:function(t){var e=t.fields||[];if(null==t.checkField){for(var s={},o=0;o<e.length;o++){var i=e[o]||{};0!=i.inputType&&(s[i.fieldId]=i,i.fieldInput&&(s[i.fieldInput]=i))}t.checkField=s}},checkVistorField:function(t,e){return this.initCheckField(t),((t.checkField||{})[e]||{}).inputType||0},checkMobileInput:function(t){return this.checkVistorField(t,"visitorMobile")},checkIdInput:function(t){return this.checkVistorField(t,"visitorCardId")},checkVisitorNum:function(t,e,s){this.initCheckField(t);var o=0;switch(s=s||[],t.saleCheckId||0){case 1:o=1;break;case 2:o=e}return s.length>=o},checkCardRepeat:function(t,e){this.initCheckField(t);var s=t.fields||[],o={};e=e||[];for(var i=0;i<e.length;i++)for(var a=e[i]||{},r=0;r<s.length;r++){var n=s[r]||{},c=a[n.fieldInput||n.fieldId];if(0==n.fieldType&&c){var l=o[n.fieldId]=o[n.fieldId]||{};if(l[c])return this.$message.error("证件"+n.fieldName+c+"重复"),!1;l[c]=!0}}return!0},checkVisitorOrder:function(t,e,s){if(!this.checkVisitorNum(t,e,s))return this.$message.error("请输入游客信息"),!1;var o=t.fields||[],i={};s=s||[];for(var a=0;a<s.length;a++)for(var r=s[a]||{},n=0;n<o.length;n++){var c=o[n]||{},l=r[c.fieldInput||c.fieldId];if(0==c.fieldType&&!l){var u=i[c.fieldId]=i[c.fieldId]||{};if(u[l])return this.$message.error("证件"+c.fieldName+l+"重复"),!1;u[l]=!0}if(1==c.inputType&&!l&&0!==l)return this.$message.error("请输入"+c.fieldName),!1}return!0},addVisitor:function(t){var e=this.obj||{},s=e.order||{},o=e.visitors||[];t.visitorMobile=t.visitorMobile||e.visitorPhone,o.unshift(t),this.checkCardRepeat(this.fieldsList,o)?this.checkVisitorNum(this.fieldsList,s.buyNum,o)&&this.checkVisitorOrder(this.fieldsList,s.buyNum,o)&&this.ticketIssue():o.pop()},dataOrder:function(){return window.order=window.order||{},window.order},ticketIssue:function(){var t=this;if(0!=this.obj.visitors.length)if(!this.obj.order.notStoreVisible||this.obj.order.playDateFrom){for(var e=!1,s=0;s<this.obj.visitors.length;s++){if(this.obj.visitors[s].psroductId!=this.obj.visitors[0].psroductId){e=!1;break}e=!0}if(!e)return this.$message.error("请选择相同产品的座次"),this.getsuccess(),void this.qutime(this.sceneIds);var o=this.dataOrder();o.visitorPhone="",o.sale=this.fieldsList,o.orderObj=this.obj,o.that=this,this.$store.state.config.printer?(this.obj.order.channelOrderId=this.$commonJs.randoms(),sessionStorage.setItem("phonObjs",u()(this.obj)),0===this.checkMobileInput(this.fieldsList)||this.obj.visitors.length?this.checkVisitorNum(this.fieldsList,this.obj.order.buyNum,this.obj.visitors)?this.axios.post(this.getOrderUrl("order/save"),this.obj).then(function(e){var s=e.data||{},o=s.code||"";!parseInt(o)?t.printRes(s):t.$message.error(s.message)}):this.authshow=!0:this.phoneshow=!0):this.$message.error("打印机名为空,请配置打印机")}else this.$message.error("请选择补单时间!");else this.$message.error("请选取座位")},lockings:function(){if(0!=this.obj.visitors.length){for(var t=!1,e=0;e<this.obj.visitors.length;e++){if(this.obj.visitors[e].psroductId!=this.obj.visitors[0].psroductId){t=!1;break}t=!0}if(!t)return this.$message.error("请选择相同产品的座次"),this.getsuccess(),void this.qutime(this.sceneIds);this.obj.order.channelOrderId=this.$commonJs.randoms(),sessionStorage.setItem("phonObjs",u()(this.obj)),this.lockshow=!0}else this.$message.error("请选取座位")},gai:function(t){this.obj.order.salePricePayedTotal=t.target.value},calculation:function(t){var e=this;this.oldPrise=t.salePricePay;var s=JSON.parse(u()(t));if(this.fieldsList=s,this.obj.order.buyNum=this.obj.visitors.length,0!=s.discountsList.length){s.discountsList.forEach(function(t){e.obj.order.buyNum>=t.buyNum&&(s.salePricePay=t.salePricePay,e.obj.order.salePricePayTotal=s.salePricePay*e.obj.order.buyNum,e.obj.order.salePricePayedTotal=s.salePricePay*e.obj.order.buyNum,e.prisef=s.salePricePay)});var o=Math.min.apply(Math,s.discountsList.map(function(t){return t.buyNum}));this.obj.order.buyNum<o&&(this.obj.order.salePricePayTotal=this.oldPrise*this.obj.order.buyNum,this.obj.order.salePricePayedTotal=this.oldPrise*this.obj.order.buyNum,this.prisef=s.salePricePay)}else this.prisef=s.salePricePay,this.obj.order.salePricePayTotal=this.oldPrise*this.obj.order.buyNum,this.obj.order.salePricePayedTotal=this.oldPrise*this.obj.order.buyNum;this.obj.order.saleId=s.saleId,this.obj.order.saleCheckMobile=s.saleCheckMobile},Edowm:function(t,e,s){var o=this;if(1!=e.setStatus)if(null!=e.setStatus){var i=this,a="",n="",l="",d="";this.queryData.sets.forEach(function(t){t.picturePosition==e.coordinate&&(d=t.setName,a=t.picturePosition,n=t.productColor,l=t.productId)});var h=this.obj.visitors.some(function(t){if(t.picturePostion==a)return!0});if(0==this.single)h?(this.obj.visitors=this.obj.visitors.filter(function(t){return t.picturePostion!=a}),this.suoObj.picturePositions=this.suoObj.picturePositions.filter(function(t){return t!=a}),this.queryData.sales.forEach(function(t){t.productId==l&&o.calculation(t)}),this.queryData.sets.forEach(function(t){t.picturePosition==e.coordinate&&(""!=t.channelId?e.bgColor="#505050":e.bgColor=n)})):(this.obj.visitors.push({picturePostion:a,psroductId:l,allproId:this.queryData.sales,setName:d,picturePostionName:d}),this.suoObj.picturePositions.push(a),e.bgColor="#44b549",this.queryData.sales.forEach(function(t){t.productId==l&&(o.calculation(t),o.suoObj.psroductId=t.productId)}));else{var v=JSON.parse(u()(t.th)),p=[],m=[],f=[];v.forEach(function(t){o.queryData.sets.forEach(function(e){t.coordinate==e.picturePosition&&p.push(e)})}),p.forEach(function(t){t.setIndex%2==0?m.push(t):f.push(t)}),1==this.single?y(v,"coordinate"):2==this.single?y(f,"picturePosition"):3==this.single&&y(m,"picturePosition");var b={},_=this.obj.visitors.reduce(function(t,e){return!b[e.picturePostion]&&(b[e.picturePostion]=t.push(e)),t},[]);this.obj.visitors=_,this.suoObj.picturePositions=[].concat(c()(new r.a(this.suoObj.picturePositions))),this.queryData.sales.forEach(function(t){t.productId==l&&o.calculation(t)})}0!=this.obj.order.buyNum?this.queryData.sales.forEach(function(t){t.productId==l&&(t.saleChangePrice?(o.readonly=!1,o.border="1px solid #cccccc"):(o.readonly=!0,o.border=0))}):(this.readonly=!0,this.border=0)}else this.$message.error("当前座位不可选");else this.$message.error("当前座位已出票");function g(t,e,s){return i.lock?t.coordinate===Number(e[s])&&0===e.setStatus:t.coordinate===Number(e[s])&&0===e.setStatus&&""===e.channelId}function y(t,e){var s=[];t.forEach(function(t){(function(t){return i.lock?0===t.setStatus:0===t.setStatus&&""===t.channelId})(t)&&s.push(t[e])});var o,a={};i.queryData.sets.forEach(function(t,e){a[t.picturePosition]=t}),(o=i.suoObj.picturePositions,s.every(function(t){return o.includes(t)}))?(t.forEach(function(t){i.seatingChart.forEach(function(s){s.row.forEach(function(s){s.th.forEach(function(s){g(s,t,e)&&(""==s.channelId?s.bgColor=n:s.bgColor="#505050")})})})}),i.suoObj.picturePositions=i.suoObj.picturePositions.filter(function(s){return t.every(function(t){return s!=t[e]})}),i.obj.visitors=i.obj.visitors.filter(function(s){return t.every(function(t){return s.picturePostion!=t[e]})})):t.forEach(function(t){i.seatingChart.forEach(function(s){s.row.forEach(function(s){s.th.forEach(function(s){g(s,t,e)&&(i.obj.visitors.push({picturePostion:t[e],psroductId:l,allproId:i.queryData.sales,setName:a[s[e]]&&a[s[e]].setName||t.setName,picturePostionName:a[s[e]]&&a[s[e]].setName||t.setName}),i.suoObj.picturePositions.push(t[e]),s.bgColor="#44b549")})})})})}},suos:function(){this.titles="锁定",this.suoObj.lockStatus=0,this.suoObj.channelId="mxc001",0!=this.suoObj.picturePositions.length?(sessionStorage.setItem("lockObj",u()(this.suoObj)),this.locks=!0):this.$message.error("请选择锁定座位")},jie:function(){this.titles="解锁",this.suoObj.lockStatus=1,0!=this.suoObj.picturePositions.length?(sessionStorage.setItem("lockObj",u()(this.suoObj)),this.locks=!0):this.$message.error("请选择解锁座位")},getall:function(){var t=this;this.getsuccess(),this.dataTime="",this.allTime=[],this.axios.post(this.getStoreUrl("scene/queryTime"),this.quer).then(function(e){0!=e.data.data.length&&(t.allTime=e.data.data)})},qutime:function(t){var e=this;this.sceneIds=t,this.getsuccess(),this.allTime.forEach(function(s){s.sceneId==t&&(e.obj.order.subscribeDateFrom=e.quer.batchDate+" "+s.sceneDateFrom,e.quer.batchDate==e.$commonJs.today()?e.obj.order.playDateFrom=e.quer.batchDate+" "+s.sceneDateFrom:e.obj.order.playDateFrom=e.quer.batchDate+" 00:00:00",e.timeObj.batchDateFrom=e.quer.batchDate+" "+s.sceneDateFrom,e.timeObj.batchDateTo=e.quer.batchDate+" "+s.sceneDateTo)}),this.timeObj.sceneId=t,this.suoObj.sceneId=t,this.axios.post(this.getStoreUrl("time/querySaleSet"),this.timeObj).then(function(t){"00"==t.data.code&&""!=t.data.data?(e.$message({message:"查询成功",type:"success"}),e.queryData=t.data.data,console.log(e.queryData),e.setDta(t.data.data)):"99"==t.data.code&&e.$message.error(t.data.message)}).catch(function(t){console.log(t)}),this.obj.order.patchOrder=0,this.obj.order.playDateFrom=""},setDta:function(t){var e=this;this.seatingChart.forEach(function(t){t.row.forEach(function(t){t.th.forEach(function(t){t.bgColor="",t.setStatus=null,t.index=""})})}),t.sets.forEach(function(t){e.seatingChart.forEach(function(e){e.row.forEach(function(e){e.th.forEach(function(e){e.coordinate==t.picturePosition&&(""==t.channelId?e.bgColor=t.productColor:e.bgColor="#505050",1==t.setStatus&&(e.bgColor=null,e.clor="#030000"),e.setStatus=t.setStatus,e.index=t.setIndex,e.channelId=t.channelId)})})})})},loadPrint:function(){var e=this;function s(s){s=s||[];var o=[];t.each(s,function(t,e){o.push({id:e,name:e})}),e.Rendering(o)}try{Base.getHard().getPrinter(function(t){s(t)},function(t){s()})}catch(t){s()}},Rendering:function(t){0!=t.length?this.PrinterList=t:this.PrinterList=[{name:"暂无打印机",id:""}]},printRes:function(t){var e=this,s=t.data,o=s.printer;o?s.printModel?this.Print(o,JSON.parse(s.printModel),s.printDatas,function(){},{error:function(t){e.PrintError(t)},timeout:5e3}):this.$message.error("打印模板为空,请检查打印机配置"):this.$message.error("打印机为空,请检查打印机配置")},PrintError:function(t){var e=this;this.succ=!0,setTimeout(function(){e.tickshow=!1,e.succ=!1},100);var s=t&&(t.msg||t.Msg)||t;alert(s)},Print:function(t,e,s,o){this.__PrintExecute(t,e,s,o)},__PrintExecute:function(t,e,s,o){var i=this;if(null!=s&&0!=s.length){var a=Base.getPrint();a.printInit(t,e),a.print(s,function(t){i.run(function(){"printed"==t.EventName?(i.__Printed(),o&&o()):"printItemed"==t.EventName?i.__PrintItemed(t):"printIteming"==t.EventName&&i.__PrintIteming(t)})},function(t){i.PrintError(t),o&&o()})}},__Printed:function(){var t=this;this.succ=!0,window.order={},this.obj.order.buyNum=1,this.obj.order.channelOrderId="",this.obj.visitorPhone="",this.obj.visitors=[],setTimeout(function(){t.tickshow=!1,t.maxshow=!1,t.succ=!1},1e3),this.getorder(),this.gettoday(),this.getnosucc()},__PrintIteming:function(t){this.tickshow=!0,this.printdata=t.Data.Pos,this.allnum=t.Data.Count},run:function(t,e){var s=this;try{t&&t()}catch(t){var o=t&&t.msg||t;(e||function(t){s.$message.error(t)})(o)}},getsuccess:function(){var t=this,e=localStorage.getItem("printer");this.bol=!0,this.sets=[],this.prodes=[],this.obj.order={printer:e,buyNum:0,salePricePayTotal:0,subscribeDateFrom:"",channelOrderId:"",companyId:this.$store.state.companyId,saleId:"",payType:"0",salePricePayedTotal:"",playDateFrom:this.$commonJs.today()+" 00:00:00",channelFromKey:"computer",saleCheckId:"",saleCheckMobile:"",patchOrder:this.obj.order.patchOrder},this.obj.visitors=[],this.seatingChart.forEach(function(t){t.row.forEach(function(t){t.th.forEach(function(t){t.setStatus=null,t.bgColor="",t.index=""})})}),i()(this.suoObj).forEach(function(e){return t.suoObj[e]=""}),this.suoObj.picturePositions=[],this.suoObj.companyId=this.$store.state.companyId,this.suoObj.psroductId=[]},getnosucc:function(){var t=this,e=localStorage.getItem("printer");this.obj.visitors=[],this.bol=!0,this.obj.order.printer=e,this.obj.order.buyNum=0,this.obj.order.salePricePayTotal=0,this.obj.order.channelOrderId="",this.obj.order.saleId="",this.obj.order.salePricePayedTotal="",this.obj.order.saleCheckId="",this.obj.order.saleCheckMobile="",i()(this.suoObj).forEach(function(e){return t.suoObj[e]=""}),this.suoObj.picturePositions=[],this.suoObj.psroductId=[],this.suoObj.companyId=this.$store.state.companyId,this.qutime(this.sceneIds)},gettoday:function(){var t=this;this.axios.post(this.getOrderUrl("order/getDay"),{pageSize:1,companyId:this.$store.state.companyId}).then(function(e){if("00"==e.data.code){var s=e.data.data.buyNum,o=e.data.data.salePricePayTotal;t.todaynum=s,t.todaymoney=o}})},getorder:function(){var t=this;this.axios.post(this.getOrderUrl("order/query"),{pageSize:1,companyId:this.$store.state.companyId}).then(function(e){console.log(e),0!=e.data.data.list.length&&"00"==e.data.code&&(t.newnumm=e.data.data.list)})},chong:function(t){var e=this,s={orderId:t.orderId,all:!0};""==this.obj.order.printer?this.$message.error("请选择打印机"):this.axios.post(this.getOrderUrl("order/load"),s).then(function(t){e.printRes(t.data)})},closephone:function(t){this.phoneshow=t},phonOk:function(){this.phoneshow=!1,this.authshow=!0},auclose:function(){this.authshow=!1},augoup:function(){this.authshow=!1,this.phoneshow=!0},ticket:function(){this.maxshow=!1,this.tickshow=!0},clasd:function(){this.lockshow=!1,this.tickshow=!0},que:function(){this.lockshow=!1},manual:function(){this.authshow=!1,this.maxshow=!0},tik:function(t){this.tickshow=!0,this.authshow=!1},maxclose:function(){this.maxshow=!1},tickclose:function(){this.tickshow=!1},lovka:function(){this.locks=!1,this.qutime(this.sceneIds)},lockclose:function(){this.lockshow=!1,this.locks=!1,this.getsuccess(),this.qutime(this.sceneIds)},lockcledf:function(){this.lockshow=!1,this.locks=!1},getInitAreaRowSize:function(t){for(var e=0,s=this.initAreaData[t],o=0;o<s.length;o++)e+=s[o];return e},getInitAreaColumnPosition:function(t,e,s){var o=0,i=this.initAreaData[t];if(t%2==0){for(var a=0;a<e;a++)o+=i[a];o+=s+1}else{for(a=i.length-1;a>e;a--)o+=i[a];o+=i[e]-s}return o},initArea:function(t,e,s,o,i){for(var a=1,r=0,n=0;n<s;n++)r+=this.getInitAreaRowSize(n);for(var c=s;c<=o;c++){var l={th:[],pai:c-s+1,qu:e};t.row.push(l);for(var u=this.initAreaData[c][i],d=0;d<u;d++){var h=r+this.getInitAreaColumnPosition(c,i,d);l.th.push({hao:a++,suo:!1,coordinate:h,setStatus:null,bgColor:"none"})}r+=this.getInitAreaRowSize(c)}},allMap:function(){this.initArea(this.seatingChart[0],"E下区",0,9,0),this.initArea(this.seatingChart[1],"D下区",0,9,1),this.initArea(this.seatingChart[2],"C下区",0,9,2),this.initArea(this.seatingChart[3],"B下区",0,9,3),this.initArea(this.seatingChart[4],"A下区",0,9,4),this.initArea(this.seatingChart[5],"E上区",10,16,0),this.initArea(this.seatingChart[6],"D上区",10,16,1),this.initArea(this.seatingChart[7],"C上区",10,16,2),this.initArea(this.seatingChart[8],"B上区",10,16,3),this.initArea(this.seatingChart[9],"A上区",10,16,4)}},components:{phone:d.a,authent:h.a,maxual:v.a,ticketIssue:p.a,locking:m.a,lock:f.a,localSettings:b.a,breadNav:_.default}}}).call(e,s("SXXC"))},oGQd:function(t,e,s){var o=s("PGvq"),i=s("Lzmh");s("OFGQ")("keys",function(){return function(t){return i(o(t))}})},qMAo:function(t,e,s){s("oGQd"),t.exports=s("DH3n").Object.keys},vthr:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=s("lhxZ"),i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bigBox"},[s("breadNav",[t._v("座次售票")]),t._v(" "),s("div",{staticClass:"tab"},[s("div",[s("p",[t._v("最新记录")]),t._v(" "),s("p",[s("span",[t._v("今日售票量:"),s("i",[t._v(t._s(t.todaynum))]),t._v("张")]),s("span",[t._v("金额:"),s("i",[t._v(t._s(t.todaymoney))]),t._v("元")])])]),t._v(" "),t._l(t.newnumm,function(e,o){return s("div",{key:o},[s("p",[t._v(t._s(e.productName))]),t._v(" "),s("p",[t._v(t._s(e.buyNum)+"张")]),t._v(" "),s("p",[t._v(t._s(e.salePricePayTotal)+"元")]),t._v(" "),s("p",[t._v(t._s(e.createDate))]),t._v(" "),s("p",{staticClass:"chon",on:{click:function(s){return t.chong(e)}}},[t._v("重新打印")])])})],2),t._v(" "),s("div",{staticClass:"head"},[s("div",{staticClass:"num"},[s("div",[s("p",[t._v("数量"),s("span",[t._v(t._s(t.obj.order.buyNum))])]),t._v(" "),s("p",[t._v("总价\n "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.obj.order.salePricePayTotal,expression:"obj.order.salePricePayTotal"}],style:{border:t.border},attrs:{readonly:t.readonly},domProps:{value:t.obj.order.salePricePayTotal},on:{change:function(e){return t.gai(e)},input:function(e){e.target.composing||t.$set(t.obj.order,"salePricePayTotal",e.target.value)}}}),t._v("\n 元")]),t._v(" "),s("button",{staticClass:"btn4",on:{click:t.ticketIssue}},[t._v("出票")]),t._v(" "),s("button",{staticClass:"btn4",on:{click:t.lockings}},[t._v("团队出票")]),t._v(" "),s("button",{staticClass:"btn4",on:{click:t.suos}},[t._v("锁定")]),t._v(" "),s("button",{staticClass:"btn4",on:{click:t.jie}},[t._v("解锁")]),t._v(" "),s("button",{staticClass:"btn4",on:{click:function(e){t.displaySetup=!0}}},[t._v("设置")])])])]),t._v(" "),s("div",{staticClass:"box"},[s("div",{staticClass:"show"},[s("div",{staticClass:"dats"},[s("span",[t._v("游玩日期:")]),t._v(" "),s("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},on:{change:t.getall},model:{value:t.quer.batchDate,callback:function(e){t.$set(t.quer,"batchDate",e)},expression:"quer.batchDate"}}),t._v(" "),s("span",[t._v("演出时间:")]),t._v(" "),s("el-select",{staticClass:"timf",attrs:{placeholder:"请选择时间"},on:{change:t.qutime},model:{value:t.dataTime,callback:function(e){t.dataTime=e},expression:"dataTime"}},t._l(t.allTime,function(t,e){return s("el-option",{key:e,attrs:{label:t.pictureName+" "+t.sceneDateFrom.substring(0,t.sceneDateFrom.length-3)+"-"+t.sceneDateTo.substring(0,t.sceneDateTo.length-3),value:t.sceneId}})}),1),t._v(" "),t.obj.order.patchOrder?s("p",{staticClass:"ppp"},[s("span",[t._v("补单时间")]),t._v(" "),s("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:t.obj.order.playDateFrom,callback:function(e){t.$set(t.obj.order,"playDateFrom",e)},expression:"obj.order.playDateFrom"}})],1):t._e(),t._v(" "),s("p",{staticClass:"pai"},[s("span",[t._v("选座方式:")]),t._v(" "),s("el-radio-group",{model:{value:t.single,callback:function(e){t.single=e},expression:"single"}},[s("el-radio",{attrs:{label:0}},[t._v("单选")]),t._v(" "),s("el-radio",{attrs:{label:1}},[t._v("排选")]),t._v(" "),s("el-radio",{attrs:{label:2}},[t._v("单数排选")]),t._v(" "),s("el-radio",{attrs:{label:3}},[t._v("双数排选")]),t._v(" "),s("el-checkbox",{on:{change:t.shuoding},model:{value:t.lock,callback:function(e){t.lock=e},expression:"lock"}},[t._v("可选锁定")]),t._v(" "),s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.obj.order.patchOrder,callback:function(e){t.$set(t.obj.order,"patchOrder",e)},expression:"obj.order.patchOrder"}},[t._v("补单")])],1)],1)],1),t._v(" "),t._m(0)]),t._v(" "),s("div",{ref:"wheel",staticClass:"tu"},[s("div",{ref:"all",style:{transform:"scale("+t.sca+")",transformOrigin:t.scas.x+" "+t.scas.y},attrs:{id:"all"},on:{mousedown:t.down,mousemove:t.move,mouseup:t.end}},[s("span",{staticClass:"ma"},[t._v("马圈舞台")]),t._v(" "),s("div",{ref:"ssa",staticClass:"Earea"},[t._m(1),t._v(" "),t._l(t.seatingChart[0].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Ddowm"},[s("div",{staticStyle:{transform:"rotate(-55deg)"}},[t._v("D下区 共135座")]),t._v(" "),t._l(t.seatingChart[1].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Cdowm"},[s("div",{staticStyle:{transform:"rotate(0)"}},[t._v("C下区 共223座")]),t._v(" "),t._l(t.seatingChart[2].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Bdowm"},[s("div",{staticStyle:{transform:"rotate(50deg)"}},[t._v("B下区 共135座")]),t._v(" "),t._l(t.seatingChart[3].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Adown",attrs:{id:"Adowns"}},[t._m(2),t._v(" "),t._l(t.seatingChart[4].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Eup"},[t._m(3),t._v(" "),t._l(t.seatingChart[5].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Dup"},[s("div",{staticStyle:{transform:"rotate(-30deg)"}},[t._v("D上区 共159座")]),t._v(" "),t._l(t.seatingChart[6].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Cup"},[s("div",{staticStyle:{transform:"rotate(0deg)"}},[t._v("C上区 共137座")]),t._v(" "),t._l(t.seatingChart[7].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Bup"},[s("div",{staticStyle:{transform:"rotate(30deg)"}},[t._v("B上区 共159座")]),t._v(" "),t._l(t.seatingChart[8].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2),t._v(" "),s("div",{staticClass:"Aup"},[t._m(4),t._v(" "),t._l(t.seatingChart[9].row,function(e,o){return s("p",{key:o},t._l(e.th,function(o,i){return s("span",{key:i,class:{suo:3==o.setStatus,ticket:null==o.setStatus,payment:1==o.setStatus},style:{backgroundColor:o.bgColor,color:o.clor},on:{click:function(s){return t.Edowm(e,o,o.hao)},mouseover:function(e){return t.yiru(o,e)}}},[s("span",{staticClass:"indexs",style:{color:o.clor}},[t._v(t._s(o.index))]),t._v(" "),t.posin==o.coordinate?s("i",[s("i",[t._v("区域:"+t._s(t.setArea))]),t._v(" "),s("i",[t._v("排:"+t._s(t.setRow))]),t._v(" "),s("i",[t._v("座位号:"+t._s(t.setIndex))])]):t._e()])}),0)})],2)])])]),t._v(" "),t.phoneshow?s("phone",{on:{closed:t.closephone,phonOk:t.phonOk}}):t._e(),t._v(" "),t.authshow?s("authent",{on:{closed:t.auclose,goup:t.augoup,manual:t.manual,tik:t.tik}}):t._e(),t._v(" "),t.maxshow?s("maxual",{on:{ticket:t.ticket,closed:t.maxclose}}):t._e(),t._v(" "),t.tickshow?s("ticketIssue",{attrs:{succ:t.succ},on:{closed:t.tickclose}},[s("span",{attrs:{slot:"pag"},slot:"pag"},[t._v(t._s(t.printdata))]),t._v(" "),s("span",{attrs:{slot:"num"},slot:"num"},[t._v(t._s(t.allnum))])]):t._e(),t._v(" "),t.lockshow?s("locking",{on:{closed:t.lockclose,que:t.que,prise:t.prised,clasd:t.clasd}}):t._e(),t._v(" "),t.locks?s("lock",{on:{closed:t.lockcledf,clasd:t.lovka}},[s("span",[t._v(t._s(t.titles))])]):t._e(),t._v(" "),t.displaySetup?s("localSettings",{attrs:{PrinterList:t.PrinterList,printModel:t.printModel},on:{data:t.data}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("p",[e("span"),this._v("已出票")]),this._v(" "),e("p",[e("span"),this._v("已选中")]),this._v(" "),e("p",[e("span"),this._v("已锁定")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{transform:"rotate(-88deg)"}},[this._v("E下区"),e("br"),this._v("共90座")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{transform:"rotate(90deg)"}},[this._v("A下区"),e("br"),this._v("共90座")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{transform:"rotate(-68deg)"}},[this._v("E上区"),e("br"),this._v("共186座")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{transform:"rotate(70deg)"}},[this._v("A上区"),e("br"),this._v("共182座")])}]};var a=function(t){s("Nxbc")},r=s("C7Lr")(o.a,i,!1,a,"data-v-07551374",null);e.default=r.exports},zQLK:function(t,e){}});
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,d,n){for(var r,t,o,u=0,i=[];u<c.length;u++)t=c[u],f[t]&&i.push(f[t][0]),f[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(a&&a(c,d,n);i.length;)i.shift()();if(n)for(u=0;u<n.length;u++)o=b(b.s=n[u]);return o};var c={},f={129:0};function b(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,b){a=f[e]=[c,b]});a[2]=c;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"js/"+e+"."+{0:"d3fcc448f665fae15e9a",1:"ad5f26696b64b94e4cf1",2:"75156e2b047c34d9f60c",3:"fdeda59b86c90958303b",4:"b687345a68625a6a601a",5:"8e7d15b0db11b11e3a6a",6:"e535dd0cd8202cf05446",7:"0a7923292bf6fdf1ba4a",8:"41c06083cf66487aec42",9:"44cee6ed8c7b0b3b5f25",10:"14948d6fd1773513054c",11:"6fb61c6c2ab880d34c11",12:"ea61ea218ffeb262f0da",13:"4abf112da8d148786847",14:"e2eaf670e2fe4de2e9d5",15:"ca74069d63ffdb4077d7",16:"74821e225721a51f135b",17:"5aa2b9aef584d9f1c8de",18:"705639b1786598b1341d",19:"f53fe13e921e6df30e90",20:"eb024b0e04efb1b29b19",21:"b5504e1bb2a7a49de6e1",22:"28935049ce1e3438d7b7",23:"f44e24ecd20c404aad56",24:"1ab8e1efcf36ae4f4b70",25:"62ba05701aa3ebf5ee78",26:"3e654147629149d3e2cb",27:"8071257e977ed2dbd3b0",28:"9124edc8cb90c3c2c211",29:"a88b123423bbc3e208a4",30:"a9a76ef86eb1d9f2be65",31:"9be973c4ca07c92ac6d5",32:"2854d9c949de531bda4d",33:"aa553a14043b3f2eae74",34:"61e31d6c4a2d52b84701",35:"9c57e2518ecc007ce48b",36:"8692e9a5352e075868a8",37:"22216dec1ea4b85ce0dd",38:"793ec7b32ba97e6d721f",39:"3f9af89256ddba723d9c",40:"9d72d1c12211df694fbe",41:"f27c1bae6b94329f7a4c",42:"9062954ce05a18cf7201",43:"d7e7704759c105bc274a",44:"d6ea306baf7f09996286",45:"c08160f4bfd148a5eb45",46:"5afc93e88eb30f3caef5",47:"877d201436cd882fc837",48:"f87214225a1782a79957",49:"06fd8b7aedd10840aec1",50:"eeaa598e269ae228b6ca",51:"30b4c23f28602ea4951a",52:"18b237eee555318912e2",53:"e45d040af4a39ac2b632",54:"b18628b3750478821dd3",55:"19f88ad592c5e3b43c47",56:"fda9ea2c9c76b9db131f",57:"f5f91d666e7cd3f9345e",58:"1aa58a6a4310c858bcbd",59:"c243c91e28ed5e14f98d",60:"445e0ea4688574339849",61:"428c9ce3723e38cd3a50",62:"19859ae34c4b62fdb501",63:"0e2b8bfd4a04ba086a68",64:"e6bce87c2cab2fbacc7c",65:"209ef187b286a3a11201",66:"3c7f61db04347d2be400",67:"a96e8b31759574f013fe",68:"bc309e598c59401dcce7",69:"5a14a79b7343da2dff3e",70:"469ba97eda6962b03b8e",71:"e6c762f46cc114736536",72:"0e4a0c6e2b42dc23e3ae",73:"526d034f8c22c107cb71",74:"6e870721f8212b3faf4d",75:"a1e1883a8e99cf2d4b08",76:"cee274e8122a31274580",77:"6f62149f40c3f3dda83e",78:"6adc2caee80962f3e83e",79:"7b3248cb091191df2370",80:"b0bce354b0a88d988bae",81:"e0dd9ee0881d08b026bf",82:"355398956f48265e8a5e",83:"55c556ed3eb599bbd9bf",84:"de54ad7bd6d7e3dc226b",85:"663b342b4be354d9fb81",86:"c45bf9a1f730ed0692ef",87:"24646400a9dddb70a80e",88:"a1a255970594fa2ce99c",89:"e149a1ab4d275484d441",90:"f45e1b909900b8e7fa3f",91:"8e597d17062316bc97cc",92:"f64851aef8593e03dfe2",93:"3007f2029d2cf159a56d",94:"680caf82760d64c037c0",95:"89b3d8df0b7d2c33784b",96:"6cebe80329e05d72845a",97:"95dfd306fc424a93f41a",98:"df71008a2e140ec2b014",99:"29b3473d9bdd42c446e7",100:"7488cb3237f47b1bec82",101:"53f9d65b8636b00a4f24",102:"9eaaee1e437e26e803bc",103:"fa85f98813084c2e5fdb",104:"8bd20c1ee37993987bf5",105:"53b6a45529e14812c691",106:"24ef29948788c5f3d577",107:"3075aa3c707d76ec39a3",108:"ebd60391a2ca37d7e788",109:"d73f9baa0edb67fba86e",110:"51f68e9b67cacf5bfa2c",111:"5affa573ebc59a9f2579",112:"74fef4bb24c0da17f122",113:"bf51a2d65340193d7d52",114:"c6e317b0a976328a4419",115:"d52b2e5474ad3726f7e9",116:"bd2651a9ab0e0b3faadc",117:"157343482e8c0ff4857c",118:"ae0633534a496139c55e",119:"220e7cbca541ae49b16d",120:"96468350f3c92cffb5a7",121:"aa3422169463a154642b",122:"675862fdd33a7a4fb1f5",123:"33988e27605f2601286c",124:"182395a9892f16784a32",125:"08a0bc97cb6bf9bf2878",126:"7da9e76d50f4cd0168e5",127:"2956d39701131d2e2c57"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),c},b.m=e,b.c=c,b.d=function(e,a,c){b.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},b.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(a,"a",a),a},b.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},b.p="/",b.oe=function(e){throw console.error(e),e}}([]); !function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,d,n){for(var r,t,o,u=0,i=[];u<c.length;u++)t=c[u],f[t]&&i.push(f[t][0]),f[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(a&&a(c,d,n);i.length;)i.shift()();if(n)for(u=0;u<n.length;u++)o=b(b.s=n[u]);return o};var c={},f={129:0};function b(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,b){a=f[e]=[c,b]});a[2]=c;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"js/"+e+"."+{0:"b9afc5abe86fd9568989",1:"ad5f26696b64b94e4cf1",2:"75156e2b047c34d9f60c",3:"fdeda59b86c90958303b",4:"010475d5e7917afaf173",5:"28f22b37e981e8b3fb20",6:"4738a4c3fdc9fa7645f3",7:"0a7923292bf6fdf1ba4a",8:"41c06083cf66487aec42",9:"44cee6ed8c7b0b3b5f25",10:"14948d6fd1773513054c",11:"6fb61c6c2ab880d34c11",12:"ea61ea218ffeb262f0da",13:"4abf112da8d148786847",14:"e2eaf670e2fe4de2e9d5",15:"ca74069d63ffdb4077d7",16:"74821e225721a51f135b",17:"5aa2b9aef584d9f1c8de",18:"705639b1786598b1341d",19:"f53fe13e921e6df30e90",20:"eb024b0e04efb1b29b19",21:"b5504e1bb2a7a49de6e1",22:"28935049ce1e3438d7b7",23:"f44e24ecd20c404aad56",24:"1ab8e1efcf36ae4f4b70",25:"62ba05701aa3ebf5ee78",26:"3e654147629149d3e2cb",27:"8071257e977ed2dbd3b0",28:"9124edc8cb90c3c2c211",29:"a88b123423bbc3e208a4",30:"a9a76ef86eb1d9f2be65",31:"9be973c4ca07c92ac6d5",32:"2854d9c949de531bda4d",33:"aa553a14043b3f2eae74",34:"61e31d6c4a2d52b84701",35:"9c57e2518ecc007ce48b",36:"8692e9a5352e075868a8",37:"22216dec1ea4b85ce0dd",38:"793ec7b32ba97e6d721f",39:"3f9af89256ddba723d9c",40:"9d72d1c12211df694fbe",41:"f27c1bae6b94329f7a4c",42:"9062954ce05a18cf7201",43:"d7e7704759c105bc274a",44:"d6ea306baf7f09996286",45:"c08160f4bfd148a5eb45",46:"5afc93e88eb30f3caef5",47:"877d201436cd882fc837",48:"f87214225a1782a79957",49:"06fd8b7aedd10840aec1",50:"eeaa598e269ae228b6ca",51:"30b4c23f28602ea4951a",52:"18b237eee555318912e2",53:"e45d040af4a39ac2b632",54:"b18628b3750478821dd3",55:"19f88ad592c5e3b43c47",56:"fda9ea2c9c76b9db131f",57:"f5f91d666e7cd3f9345e",58:"1aa58a6a4310c858bcbd",59:"c243c91e28ed5e14f98d",60:"445e0ea4688574339849",61:"428c9ce3723e38cd3a50",62:"19859ae34c4b62fdb501",63:"0e2b8bfd4a04ba086a68",64:"e6bce87c2cab2fbacc7c",65:"209ef187b286a3a11201",66:"3c7f61db04347d2be400",67:"a96e8b31759574f013fe",68:"bc309e598c59401dcce7",69:"5a14a79b7343da2dff3e",70:"469ba97eda6962b03b8e",71:"e6c762f46cc114736536",72:"0e4a0c6e2b42dc23e3ae",73:"526d034f8c22c107cb71",74:"6e870721f8212b3faf4d",75:"a1e1883a8e99cf2d4b08",76:"cee274e8122a31274580",77:"6f62149f40c3f3dda83e",78:"6adc2caee80962f3e83e",79:"7b3248cb091191df2370",80:"b0bce354b0a88d988bae",81:"e0dd9ee0881d08b026bf",82:"355398956f48265e8a5e",83:"55c556ed3eb599bbd9bf",84:"de54ad7bd6d7e3dc226b",85:"663b342b4be354d9fb81",86:"c45bf9a1f730ed0692ef",87:"24646400a9dddb70a80e",88:"a1a255970594fa2ce99c",89:"e149a1ab4d275484d441",90:"f45e1b909900b8e7fa3f",91:"8e597d17062316bc97cc",92:"f64851aef8593e03dfe2",93:"3007f2029d2cf159a56d",94:"680caf82760d64c037c0",95:"89b3d8df0b7d2c33784b",96:"6cebe80329e05d72845a",97:"95dfd306fc424a93f41a",98:"df71008a2e140ec2b014",99:"29b3473d9bdd42c446e7",100:"7488cb3237f47b1bec82",101:"53f9d65b8636b00a4f24",102:"9eaaee1e437e26e803bc",103:"fa85f98813084c2e5fdb",104:"8bd20c1ee37993987bf5",105:"53b6a45529e14812c691",106:"24ef29948788c5f3d577",107:"3075aa3c707d76ec39a3",108:"ebd60391a2ca37d7e788",109:"d73f9baa0edb67fba86e",110:"51f68e9b67cacf5bfa2c",111:"5affa573ebc59a9f2579",112:"74fef4bb24c0da17f122",113:"bf51a2d65340193d7d52",114:"c6e317b0a976328a4419",115:"d52b2e5474ad3726f7e9",116:"bd2651a9ab0e0b3faadc",117:"157343482e8c0ff4857c",118:"ae0633534a496139c55e",119:"220e7cbca541ae49b16d",120:"96468350f3c92cffb5a7",121:"aa3422169463a154642b",122:"675862fdd33a7a4fb1f5",123:"33988e27605f2601286c",124:"182395a9892f16784a32",125:"08a0bc97cb6bf9bf2878",126:"7da9e76d50f4cd0168e5",127:"2956d39701131d2e2c57"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),c},b.m=e,b.c=c,b.d=function(e,a,c){b.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},b.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(a,"a",a),a},b.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},b.p="/",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment