Commit b2e4006e authored by 潘永坪's avatar 潘永坪

途比达售票页面bug处理

parent ce1fee66
<!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.e29771e10a7235fa6f1bbe6eee4b5f3e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/js/manifest.5f316c21e270985086d7.js></script><script type=text/javascript src=/js/app.f6d58d28ee4ffbacbe08.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.fd5b100e518d53f308d9b59a362d73e9.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/js/manifest.866a09f86dce1bc59003.js></script><script type=text/javascript src=/js/app.f6d58d28ee4ffbacbe08.js></script></body></html>
\ No newline at end of file \ No newline at end of file
webpackJsonp([5],{"6cxS":function(e,t,r){var s=r("kM2E");s(s.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},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("VU/8")(s,i,!1,function(e){r("SD0h")},null,null);t.default=a.exports},Eyp2:function(e,t,r){"use strict";(function(e){var s=r("woOf"),i=r.n(s),a=r("mvHQ"),o=r.n(a),n=r("Dd8w"),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("NYxO");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,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="扫码成功",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="扫码成功",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("7t+N"))},H62i:function(e,t,r){"use strict";var s=r("Eyp2"),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",background:"#006599"},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("XIyr")},o=r("VU/8")(s.a,i,!1,a,"data-v-1cac6ee7",null);t.a=o.exports},M521:function(e,t){},SD0h:function(e,t){},X0uZ:function(e,t,r){var s=r("kM2E");s(s.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},XIyr:function(e,t){},dSOO:function(e,t,r){r("X0uZ"),e.exports=9007199254740991},"e/Cv":function(e,t,r){r("6cxS"),e.exports=-9007199254740991},eeyJ:function(e,t,r){"use strict";var s=r("mvHQ"),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("VU/8")(a,o,!1,function(e){r("M521")},"data-v-1ce763d2",null);t.a=n.exports},hiCB:function(e,t,r){e.exports={default:r("dSOO"),__esModule:!0}},nx28:function(e,t){},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("VU/8")(s,i,!1,function(e){r("nx28")},"data-v-678c99b0",null);t.a=a.exports},tOck:function(e,t,r){e.exports={default:r("e/Cv"),__esModule:!0}},uRfC:function(e,t,r){"use strict";r.d(t,"a",function(){return l});var s=r("tOck"),i=r.n(s),a=r("hiCB"),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))}}});
\ No newline at end of file
webpackJsonp([5],{"2TsV":function(e,t){},"6cxS":function(e,t,r){var s=r("kM2E");s(s.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},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("VU/8")(s,i,!1,function(e){r("SD0h")},null,null);t.default=a.exports},Eyp2:function(e,t,r){"use strict";(function(e){var s=r("woOf"),i=r.n(s),a=r("mvHQ"),o=r.n(a),n=r("Dd8w"),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"),P=r("NYxO");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(P.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,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},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="扫码成功",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="扫码成功",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("7t+N"))},H62i:function(e,t,r){"use strict";var s=r("Eyp2"),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",background:"#006599"},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("2TsV")},o=r("VU/8")(s.a,i,!1,a,"data-v-87a2663a",null);t.a=o.exports},M521:function(e,t){},SD0h:function(e,t){},X0uZ:function(e,t,r){var s=r("kM2E");s(s.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},dSOO:function(e,t,r){r("X0uZ"),e.exports=9007199254740991},"e/Cv":function(e,t,r){r("6cxS"),e.exports=-9007199254740991},eeyJ:function(e,t,r){"use strict";var s=r("mvHQ"),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("VU/8")(a,o,!1,function(e){r("M521")},"data-v-1ce763d2",null);t.a=n.exports},hiCB:function(e,t,r){e.exports={default:r("dSOO"),__esModule:!0}},nx28:function(e,t){},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("VU/8")(s,i,!1,function(e){r("nx28")},"data-v-678c99b0",null);t.a=a.exports},tOck:function(e,t,r){e.exports={default:r("e/Cv"),__esModule:!0}},uRfC:function(e,t,r){"use strict";r.d(t,"a",function(){return l});var s=r("tOck"),i=r.n(s),a=r("hiCB"),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))}}});
\ No newline at end of file
webpackJsonp([6],{"/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("VU/8")(s,i,!1,function(e){r("ql+m")},null,null);t.default=a.exports},"2TsV":function(e,t){},"6cxS":function(e,t,r){var s=r("kM2E");s(s.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},Eyp2:function(e,t,r){"use strict";(function(e){var s=r("woOf"),i=r.n(s),a=r("mvHQ"),o=r.n(a),n=r("Dd8w"),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"),P=r("NYxO");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(P.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,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},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="扫码成功",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="扫码成功",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("7t+N"))},H62i:function(e,t,r){"use strict";var s=r("Eyp2"),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",background:"#006599"},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("2TsV")},o=r("VU/8")(s.a,i,!1,a,"data-v-87a2663a",null);t.a=o.exports},M521:function(e,t){},X0uZ:function(e,t,r){var s=r("kM2E");s(s.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},dSOO:function(e,t,r){r("X0uZ"),e.exports=9007199254740991},"e/Cv":function(e,t,r){r("6cxS"),e.exports=-9007199254740991},eeyJ:function(e,t,r){"use strict";var s=r("mvHQ"),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("VU/8")(a,o,!1,function(e){r("M521")},"data-v-1ce763d2",null);t.a=n.exports},hiCB:function(e,t,r){e.exports={default:r("dSOO"),__esModule:!0}},nx28:function(e,t){},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("VU/8")(s,i,!1,function(e){r("nx28")},"data-v-678c99b0",null);t.a=a.exports},"ql+m":function(e,t){},tOck:function(e,t,r){e.exports={default:r("e/Cv"),__esModule:!0}},uRfC:function(e,t,r){"use strict";r.d(t,"a",function(){return l});var s=r("tOck"),i=r.n(s),a=r("hiCB"),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))}}});
\ No newline at end of file
webpackJsonp([6],{"/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("VU/8")(s,i,!1,function(e){r("ql+m")},null,null);t.default=a.exports},"6cxS":function(e,t,r){var s=r("kM2E");s(s.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},Eyp2:function(e,t,r){"use strict";(function(e){var s=r("woOf"),i=r.n(s),a=r("mvHQ"),o=r.n(a),n=r("Dd8w"),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("NYxO");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,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="扫码成功",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="扫码成功",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("7t+N"))},H62i:function(e,t,r){"use strict";var s=r("Eyp2"),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",background:"#006599"},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("XIyr")},o=r("VU/8")(s.a,i,!1,a,"data-v-1cac6ee7",null);t.a=o.exports},M521:function(e,t){},X0uZ:function(e,t,r){var s=r("kM2E");s(s.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},XIyr:function(e,t){},dSOO:function(e,t,r){r("X0uZ"),e.exports=9007199254740991},"e/Cv":function(e,t,r){r("6cxS"),e.exports=-9007199254740991},eeyJ:function(e,t,r){"use strict";var s=r("mvHQ"),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("VU/8")(a,o,!1,function(e){r("M521")},"data-v-1ce763d2",null);t.a=n.exports},hiCB:function(e,t,r){e.exports={default:r("dSOO"),__esModule:!0}},nx28:function(e,t){},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("VU/8")(s,i,!1,function(e){r("nx28")},"data-v-678c99b0",null);t.a=a.exports},"ql+m":function(e,t){},tOck:function(e,t,r){e.exports={default:r("e/Cv"),__esModule:!0}},uRfC:function(e,t,r){"use strict";r.d(t,"a",function(){return l});var s=r("tOck"),i=r.n(s),a=r("hiCB"),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))}}});
\ No newline at end of file
!function(e){var f=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,u=0,i=[];u<c.length;u++)t=c[u],d[t]&&i.push(d[t][0]),d[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(f&&f(c,b,n);i.length;)i.shift()();if(n)for(u=0;u<n.length;u++)o=a(a.s=n[u]);return o};var c={},d={147:0};function a(f){if(c[f])return c[f].exports;var d=c[f]={i:f,l:!1,exports:{}};return e[f].call(d.exports,d,d.exports,a),d.l=!0,d.exports}a.e=function(e){var f=d[e];if(0===f)return new Promise(function(e){e()});if(f)return f[2];var c=new Promise(function(c,a){f=d[e]=[c,a]});f[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,a.nc&&n.setAttribute("nonce",a.nc),n.src=a.p+"js/"+e+"."+{0:"ed11592adbd8e6be9f15",1:"367731e0ff114ffba0cf",2:"09f1e5d2f26f267b0df7",3:"78597adba0c3f5ecd363",4:"185e5423aed6f53fa8d0",5:"831d91444837321fdafc",6:"c91640809a2e0d644472",7:"41fcb6dc6bd5636cb357",8:"a9f8463d80af4574a6ca",9:"0998ea8437428a40c5a6",10:"70dd3377febbfd46d9d3",11:"0b06b4e3c630c6c97817",12:"0f6bbe20bfbbeedff2b2",13:"e027ec5901100eb1ca63",14:"a75f75372c5ea3dac56f",15:"e4f3c2ff3d167bc8a7c1",16:"0f593a03a0964d3f2df6",17:"8f098de628f627e73280",18:"4dad2fedee47977f117f",19:"22eeb3da807f3dc407a1",20:"3ed8fbf9490b96ac81fa",21:"7074b96c75645267b8f9",22:"92b411b04a29f1cd26b1",23:"83777547c9c654c501ad",24:"f8d4060327f6cccec937",25:"95775c4dc07baddc708f",26:"a16a03988d0f280d38a3",27:"dee863715994547019cb",28:"f316da1cbcdbfcf70002",29:"0595efe94ddb8ba316e7",30:"14fe00e6f85dac5b2e01",31:"36e640eec87a5b35fb7c",32:"75a9fdd3d42dff18054c",33:"ecd0e272e94412163609",34:"2be10c323c2b3486ea72",35:"e60d572ae0e0c17e5242",36:"829d6fd7e6c6692d271f",37:"3647d0f369581854bcf5",38:"933478be80d240fa1eb1",39:"fde2d935a0d04352bc6b",40:"375bc1efd4d29bc399ac",41:"217dafeba758e5f03184",42:"83caa000c2f6811c6b69",43:"3552c51ce388f79f91d4",44:"41427a5d2913962f587b",45:"5f2aa1d621cbf402c344",46:"2ede1cc779bb53a76916",47:"19f269bceb3086e1b2f1",48:"fbe904e1fb2e42f424ea",49:"2aa15354d8916ade4df2",50:"2730ae415ef31d60e070",51:"4fc8c8f04d1767c9e12a",52:"70e6ad9c0b62252015b6",53:"b635fe7443ad7f06e88f",54:"937bf1640aa73814c27d",55:"34941fa8ade807a62a8d",56:"bc36d5150e0e343151e2",57:"27c6658f3e8920ba1e56",58:"e948326b008564741cf2",59:"fd0d612460689b6802eb",60:"cdba6434c09fe44ce0c4",61:"9e16bd10736eaad72484",62:"81c87afe16a7e5aca9a2",63:"43fbb50739192d2f2411",64:"9a65d92f9457854cbba6",65:"53a6daf887bb1df32770",66:"dd992e8f351f595cd2cb",67:"b63ffca79b31d66e76b8",68:"32edcc7d9ceee5c625f4",69:"e4c1edc015e3ca318326",70:"1afe27e70f2a9e2d8dc4",71:"4b5741c63e0f66080b69",72:"5e0709bde593d581820a",73:"2bd66532d0055ceb596b",74:"e5e6e1750c39f247bcf7",75:"ddcec9a1d8ae2e603bb9",76:"6a77c38071d3298400d7",77:"7c6c21a96ff0439ff1f7",78:"12fb1dfb3817c9fa32bf",79:"f0ff820df258d25cdbc0",80:"ec62860872581afb70e9",81:"345160ef91de70202c67",82:"2f5e96866a1935d82e2d",83:"16fe6d508028454ab25a",84:"6b71f5e77d33521905da",85:"d5a2f4d335f68247c958",86:"e036b90bc7602670b401",87:"84bc73dc85d5c3bd0384",88:"35331a49717a68e360db",89:"df3ae20f0657adaf5771",90:"acdb7c056b1c4bee8442",91:"6f74a8f698ff8d847cf1",92:"89902c870da35c746e62",93:"c1402f11dce87fe58bee",94:"0fc016ca18e149556f21",95:"cc49ab377ee26560aa92",96:"7850b3f81f298773c502",97:"b7efbdc095438c02bb37",98:"2f967392fd1aa9091c80",99:"70ae6d240a874c2f2c20",100:"dffd0fda7a954b588d59",101:"3d6edee28b32d1ea9157",102:"b187d3262fc5f88130b0",103:"633654089d0821affa30",104:"1f541bab276fca04c432",105:"d63ffdad60034df84c12",106:"eb435552748e00ec2eb5",107:"ed82b73fca8e75d075a5",108:"39b66cdbb5388d8b3633",109:"6c0ff2f0000b9811c808",110:"d436aab70c38a1065b1a",111:"04302b46f30b4e20493b",112:"408c881c36d9712d29de",113:"d688ae9b58c26fa4c009",114:"67604086ede3291bd206",115:"66f7dd9deb332ccec375",116:"eb06650e5fee69774728",117:"5bb574a54145b27c8825",118:"2d634922ffbc2e28e38c",119:"57ad2cc55f43dbd0fb97",120:"e4bb73b9c3e51bfd5a49",121:"527b8963fc3b115f9288",122:"006a0b802726953ae001",123:"8f18b3a02749c4a4ad07",124:"bb491b143e5314ff6340",125:"f00e23f905c5dd4080d1",126:"3b8b13a51f8f51a57930",127:"d8ff1c4d4d51d3763006",128:"75f0c96cdff7536007a5",129:"667f8c7b3646db368ed4",130:"4000d48fd6f8ed4ebbac",131:"ba537a5e9330f069bfcd",132:"cce00eac14fcd897d62c",133:"af4a5e161325cbd3170f",134:"6387695503c862031716",135:"d15c7b9fe9a519065a2d",136:"57db117661221e655781",137:"dfd12543abcd4d91a433",138:"b4f5b6ec4e5fa5ce8dce",139:"731203d47e264b5ff9da",140:"644a1e682d5e107f78c1",141:"a35e086f1c6eaa37d58c",142:"00dc4e3ae9f20c5e6e29",143:"c9a97a4e856ca24a4a22",144:"c2cd783d162fdb263038",145:"d35b7bf9ca2c2bb02654"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var f=d[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),d[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},a.m=e,a.c=c,a.d=function(e,f,c){a.o(e,f)||Object.defineProperty(e,f,{configurable:!1,enumerable:!0,get:c})},a.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(f,"a",f),f},a.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},a.p="/",a.oe=function(e){throw console.error(e),e}}([]); !function(e){var f=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,u=0,i=[];u<c.length;u++)t=c[u],d[t]&&i.push(d[t][0]),d[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(f&&f(c,b,n);i.length;)i.shift()();if(n)for(u=0;u<n.length;u++)o=a(a.s=n[u]);return o};var c={},d={147:0};function a(f){if(c[f])return c[f].exports;var d=c[f]={i:f,l:!1,exports:{}};return e[f].call(d.exports,d,d.exports,a),d.l=!0,d.exports}a.e=function(e){var f=d[e];if(0===f)return new Promise(function(e){e()});if(f)return f[2];var c=new Promise(function(c,a){f=d[e]=[c,a]});f[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,a.nc&&n.setAttribute("nonce",a.nc),n.src=a.p+"js/"+e+"."+{0:"ed11592adbd8e6be9f15",1:"367731e0ff114ffba0cf",2:"09f1e5d2f26f267b0df7",3:"78597adba0c3f5ecd363",4:"185e5423aed6f53fa8d0",5:"218a3389c0215fe954a1",6:"dbe43eda05d7a08c8f3f",7:"41fcb6dc6bd5636cb357",8:"a9f8463d80af4574a6ca",9:"0998ea8437428a40c5a6",10:"70dd3377febbfd46d9d3",11:"0b06b4e3c630c6c97817",12:"0f6bbe20bfbbeedff2b2",13:"e027ec5901100eb1ca63",14:"a75f75372c5ea3dac56f",15:"e4f3c2ff3d167bc8a7c1",16:"0f593a03a0964d3f2df6",17:"8f098de628f627e73280",18:"4dad2fedee47977f117f",19:"22eeb3da807f3dc407a1",20:"3ed8fbf9490b96ac81fa",21:"7074b96c75645267b8f9",22:"92b411b04a29f1cd26b1",23:"83777547c9c654c501ad",24:"f8d4060327f6cccec937",25:"95775c4dc07baddc708f",26:"a16a03988d0f280d38a3",27:"dee863715994547019cb",28:"f316da1cbcdbfcf70002",29:"0595efe94ddb8ba316e7",30:"14fe00e6f85dac5b2e01",31:"36e640eec87a5b35fb7c",32:"75a9fdd3d42dff18054c",33:"ecd0e272e94412163609",34:"2be10c323c2b3486ea72",35:"e60d572ae0e0c17e5242",36:"829d6fd7e6c6692d271f",37:"3647d0f369581854bcf5",38:"933478be80d240fa1eb1",39:"fde2d935a0d04352bc6b",40:"375bc1efd4d29bc399ac",41:"217dafeba758e5f03184",42:"83caa000c2f6811c6b69",43:"3552c51ce388f79f91d4",44:"41427a5d2913962f587b",45:"5f2aa1d621cbf402c344",46:"2ede1cc779bb53a76916",47:"19f269bceb3086e1b2f1",48:"fbe904e1fb2e42f424ea",49:"2aa15354d8916ade4df2",50:"2730ae415ef31d60e070",51:"4fc8c8f04d1767c9e12a",52:"70e6ad9c0b62252015b6",53:"b635fe7443ad7f06e88f",54:"937bf1640aa73814c27d",55:"34941fa8ade807a62a8d",56:"bc36d5150e0e343151e2",57:"27c6658f3e8920ba1e56",58:"e948326b008564741cf2",59:"fd0d612460689b6802eb",60:"cdba6434c09fe44ce0c4",61:"9e16bd10736eaad72484",62:"81c87afe16a7e5aca9a2",63:"43fbb50739192d2f2411",64:"9a65d92f9457854cbba6",65:"53a6daf887bb1df32770",66:"dd992e8f351f595cd2cb",67:"b63ffca79b31d66e76b8",68:"32edcc7d9ceee5c625f4",69:"e4c1edc015e3ca318326",70:"1afe27e70f2a9e2d8dc4",71:"4b5741c63e0f66080b69",72:"5e0709bde593d581820a",73:"2bd66532d0055ceb596b",74:"e5e6e1750c39f247bcf7",75:"ddcec9a1d8ae2e603bb9",76:"6a77c38071d3298400d7",77:"7c6c21a96ff0439ff1f7",78:"12fb1dfb3817c9fa32bf",79:"f0ff820df258d25cdbc0",80:"ec62860872581afb70e9",81:"345160ef91de70202c67",82:"2f5e96866a1935d82e2d",83:"16fe6d508028454ab25a",84:"6b71f5e77d33521905da",85:"d5a2f4d335f68247c958",86:"e036b90bc7602670b401",87:"84bc73dc85d5c3bd0384",88:"35331a49717a68e360db",89:"df3ae20f0657adaf5771",90:"acdb7c056b1c4bee8442",91:"6f74a8f698ff8d847cf1",92:"89902c870da35c746e62",93:"c1402f11dce87fe58bee",94:"0fc016ca18e149556f21",95:"cc49ab377ee26560aa92",96:"7850b3f81f298773c502",97:"b7efbdc095438c02bb37",98:"2f967392fd1aa9091c80",99:"70ae6d240a874c2f2c20",100:"dffd0fda7a954b588d59",101:"3d6edee28b32d1ea9157",102:"b187d3262fc5f88130b0",103:"633654089d0821affa30",104:"1f541bab276fca04c432",105:"d63ffdad60034df84c12",106:"eb435552748e00ec2eb5",107:"ed82b73fca8e75d075a5",108:"39b66cdbb5388d8b3633",109:"6c0ff2f0000b9811c808",110:"d436aab70c38a1065b1a",111:"04302b46f30b4e20493b",112:"408c881c36d9712d29de",113:"d688ae9b58c26fa4c009",114:"67604086ede3291bd206",115:"66f7dd9deb332ccec375",116:"eb06650e5fee69774728",117:"5bb574a54145b27c8825",118:"2d634922ffbc2e28e38c",119:"57ad2cc55f43dbd0fb97",120:"e4bb73b9c3e51bfd5a49",121:"527b8963fc3b115f9288",122:"006a0b802726953ae001",123:"8f18b3a02749c4a4ad07",124:"bb491b143e5314ff6340",125:"f00e23f905c5dd4080d1",126:"3b8b13a51f8f51a57930",127:"d8ff1c4d4d51d3763006",128:"75f0c96cdff7536007a5",129:"667f8c7b3646db368ed4",130:"4000d48fd6f8ed4ebbac",131:"ba537a5e9330f069bfcd",132:"cce00eac14fcd897d62c",133:"af4a5e161325cbd3170f",134:"6387695503c862031716",135:"d15c7b9fe9a519065a2d",136:"57db117661221e655781",137:"dfd12543abcd4d91a433",138:"b4f5b6ec4e5fa5ce8dce",139:"731203d47e264b5ff9da",140:"644a1e682d5e107f78c1",141:"a35e086f1c6eaa37d58c",142:"00dc4e3ae9f20c5e6e29",143:"c9a97a4e856ca24a4a22",144:"c2cd783d162fdb263038",145:"d35b7bf9ca2c2bb02654"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var f=d[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),d[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},a.m=e,a.c=c,a.d=function(e,f,c){a.o(e,f)||Object.defineProperty(e,f,{configurable:!1,enumerable:!0,get:c})},a.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(f,"a",f),f},a.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},a.p="/",a.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