(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-45491490"],{"0236":function(t,e,i){},13109:function(t,e,i){},"1a4e":function(t,e,i){"use strict";i("30f2")},"21cc":function(t,e,i){"use strict";i("6f59")},"234d":function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"trainRule"}},[i("el-dialog",{staticClass:"ruleDialog",attrs:{title:"退改签规则",visible:t.ruleDialogVisible,width:"800px",center:""},on:{"update:visible":function(e){t.ruleDialogVisible=e}}},[i("div",{staticClass:"ruleContent"},[i("div",{staticClass:"ruleTab dtg-flex dtg-align-start"},t._l(t.ruleTabList,(function(e,a){return i("div",{key:a,staticClass:"tabItem",class:{tabActive:t.tabActive==a},on:{click:function(i){return t.tabClick(e,a)}}},[t._v(t._s(e.name))])})),0),i("div",{staticClass:"ruleTabContent",domProps:{innerHTML:t._s(t.ruleTabInfoList.statementText)}})])])],1)},n=[],s={props:{trainRuleInfoList:{type:Array,default:function(){return[]}}},data:function(){return{ruleDialogVisible:!1,ruleTabList:[],ruleTabInfoList:{},tabActive:0}},methods:{tabClick:function(t,e){this.ruleTabList.forEach((function(i,a){t.isSelected=e==a?1:0})),this.trainRuleInfoList.forEach((function(t,i){t.isSelected=e==i?1:0})),this.tabActive=e,this.getRuleInfo()},open:function(t){this.ruleDialogVisible=!0,this.ruleTabList=this.trainRuleInfoList.map((function(t){return{isSelected:t.isSelected,sort:t.sort,name:t.statementName,statementType:t.statementType}})),this.tabActive=t?this.ruleTabList.findIndex((function(e){return e.statementType==t})):this.ruleTabList.findIndex((function(t){return 1==t.isSelected})),this.getRuleInfo(t)},getRuleInfo:function(t){var e;e=t?this.trainRuleInfoList.find((function(e){return e.statementType==t})):this.trainRuleInfoList.find((function(t){return 1==t.isSelected})),this.ruleTabInfoList.statementText=e.statementText},close:function(){this.ruleDialogVisible=!1}}},r=s,o=(i("21cc"),i("2877")),c=Object(o["a"])(r,a,n,!1,null,null,null);e["a"]=c.exports},2400:function(t,e,i){"use strict";i("f4da")},"2de7":function(t,e,i){"use strict";i("84c6")},"30f2":function(t,e,i){},3809:function(t,e,i){"use strict";i("d2ec")},4415:function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"other-service"},[i("div",{staticClass:"other-ser-tit"},[t._v("定制需求"),i("span",[t._v(t._s(t.config.newTip1))])]),i("div",{staticClass:"other-ser-con"},[t._l(t.config.newServiceConfigList,(function(e,a){return i("div",{directives:[{name:"show",rawName:"v-show",value:a<1||t.isShowMore,expression:"cIndex < 1 || isShowMore"}],key:a,staticClass:"flight-book2-info dtg-flex airplan-info",class:{"br-top":a>0,"dtg-align-center":!e.remarkType}},[i("div",{staticClass:"book2-info-label"},[i("span",{staticClass:"book2-info-title"},[t._v(t._s(e.serviceName))])]),i("div",{staticClass:"bok2-info-con dtg-flex-grow1"},[i("div",{staticClass:"fbook2-contain"},[i("div",{staticClass:"ep-ce dtg-flex dtg-flex-row dtg-align-center"},t._l(t.options,(function(a,n){return i("div",{key:n,staticClass:"mic-label dtg-flex dtg-flex-row dtg-align-center",class:{"m-active":e.selectedType==a.value},on:{click:function(i){return t.handleSelect(a,e)}}},[i("i",{staticClass:"mic-label-icon iconfont icon-xuanzhongyuandian"}),t._v(t._s(a.text)+"\n              ")])})),0)]),e.remarkType?i("div",{staticClass:"dtg-flex remark"},[i("div",{staticClass:"dtg-flex-grow1"},[i("el-input",{attrs:{type:"textarea",rows:3,resize:"none",maxlength:"200",placeholder:"请输入您的备注，不超过200个字符;","show-word-limit":""},model:{value:e.remarkValue,callback:function(i){t.$set(e,"remarkValue",i)},expression:"cItem.remarkValue"}})],1)]):t._e()])])})),t.config.newServiceConfigList.length>1?i("div",{staticClass:"more-bar",on:{click:t.switchAll}},[i("span",{staticClass:"iconfont",class:{"icon-xiangxiazhankai-xianxingyuankuang":!t.isShowMore,"icon-xiangshangshouqi-xianxingyuankuang":t.isShowMore}}),i("span",[t._v(t._s(t.isShowMore?"收起":"展开全部"))])]):t._e()],2)])},n=[],s={props:{config:{type:Object,default:function(){return{newTip1:"",newServiceConfigList:[]}}}},data:function(){return{options:[{value:1,text:"需要"},{value:0,text:"不需要"}],isShowMore:!1}},methods:{handleSelect:function(t,e){e.selectedType=t.value,this.$emit("select",this.config.newServiceConfigList)},switchAll:function(){this.isShowMore=!this.isShowMore}}},r=s,o=(i("2de7"),i("2877")),c=Object(o["a"])(r,a,n,!1,null,"7e2e28f9",null);e["a"]=c.exports},5484:function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"third-login"},[i("el-dialog",{attrs:{title:"",visible:t.showDialog,width:"480px",top:"30vh","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(e){t.showDialog=e},close:t.closeDialog}},[i("div",{staticClass:"dtg-flex dtg-flex-column dtg-align-center"},[i("div",{staticClass:"login-item dtg-flex dtg-flex-row dtg-align-center"},[i("label",{staticClass:"item-label"},[t._v("登录名")]),i("el-input",{staticClass:"item-input",attrs:{placeholder:"12306用户名/邮箱/手机号"},model:{value:t.account_No,callback:function(e){t.account_No=e},expression:"account_No"}})],1),i("div",{staticClass:"login-item dtg-flex dtg-flex-row dtg-align-center"},[i("label",{staticClass:"item-label"},[t._v("密码")]),i("el-input",{staticClass:"item-input",attrs:{type:"password",placeholder:"12306账号密码"},model:{value:t.account_Pwd,callback:function(e){t.account_Pwd=e},expression:"account_Pwd"}})],1),i("div",{staticClass:"login-btn",on:{click:function(e){return t.login()}}},[t._v("\n\t\t\t\t登录12306\n\t\t\t")])])]),i("el-dialog",{attrs:{title:"手机短信核验",visible:t.showCode,width:"480px",top:"30vh","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(e){t.showCode=e},close:t.closeCode}},[i("div",{staticClass:"dtg-flex dtg-flex-column dtg-align-center"},[i("div",{staticClass:"login-item dtg-flex dtg-flex-row dtg-align-center"},[i("div",{staticClass:"code-title"},[t._v("您当前登录的账号需要进行手机号核验。12306规定，手机号码核验通过方可购票，请按以下步骤完成核验。")])]),i("div",{staticClass:"box-cent dtg-flex dtg-flex-row"},[i("div",{staticClass:"box-left dtg-flex"},[i("div",{staticClass:"box-con dtg-flex dtg-align-center dtg-justify-center"},[t._v("1")])]),i("div",{staticClass:"box-right dtg-flex dtg-flex-column"},[i("div",{staticClass:"box-msg"},[t._v("请用您的手机"),i("span",{staticClass:"phone"},[t._v(t._s(t.phoneNo))]),t._v("发送短信"),i("span",{staticClass:"pmessage"},[t._v("666")]),t._v("至12306获取验证码，并在10分钟内提交核验")])])]),i("div",{staticClass:"box-cent bctop dtg-flex dtg-flex-row"},[i("div",{staticClass:"box-left dtg-flex"},[i("div",{staticClass:"box-con box-con- dtg-flex dtg-align-center dtg-justify-center"},[t._v("2")])]),i("div",{staticClass:"box-right dtg-flex dtg-flex-column"},[i("div",{staticClass:"box-msg"},[t._v("输入短信验证码，完成验证")]),i("div",{staticClass:"box-put"},[i("el-input",{staticClass:"item-input box-input",attrs:{placeholder:"输入手机验证码"},model:{value:t.verificationCode,callback:function(e){t.verificationCode=e},expression:"verificationCode"}})],1)])]),i("div",{staticClass:"login-btn",on:{click:function(e){return t.login(1)}}},[t._v("\n\t\t\t\t完成核验\n\t\t\t")])])])],1)},n=[],s=i("f4fd"),r={props:["isShow","tempOrderNo","accountNo","accountPwd","type","orderSerialNo","btType"],data:function(){return{showDialog:!1,account_No:"",account_Pwd:"",verificationCode:"",showCode:!1,phoneNo:"",loading:null}},watch:{isShow:function(t){this.showDialog=!!t},accountNo:function(t){t&&(this.account_No=t)},accountPwd:function(t){t&&(this.account_Pwd=t)}},methods:{closeDialog:function(){this.showCode=!1,this.$emit("closeDialog")},closeCode:function(){this.showCode=!1,this.$emit("closeDialog")},employeeRailwayLogin:function(t){var e=this,i={tempOrderNo:this.tempOrderNo,accountNo:this.account_No,accountPwd:this.account_Pwd,verificationCode:this.verificationCode};"*******************"==this.account_Pwd&&(i.accountPwd=""),i.accountNo?!t||i.verificationCode?(this.loading=t?this.$loading({lock:!0,text:"核验中..."}):this.$loading({lock:!0,text:"登录中..."}),this.$http.post(s["a"].EmployeeRailwayLogin,i).then((function(t){if(e.loading.close(),t.success){var a=t.result.needVerificationCode;a?e.showCodeDialog(t.result.phoneNo):(e.$emit("loginCallBack",i.accountNo),e.closeDialog())}else e.$alert(t.message,"提示",{callback:function(){}})}))):this.$alert("请输入短信验证码","提示"):this.$alert("请输入登录名","提示")},showCodeDialog:function(t){var e=this;this.phoneNo=t,this.showDialog=!1,setTimeout((function(){e.showCode=!0}),200)},trainOrderRailWayAccountLogin:function(t){var e=this,i=0;this.btType&&(i="604"==this.btType?2:1);var a={orderSerialNo:this.orderSerialNo,accountNo:this.account_No,accountPwd:this.account_Pwd,verificationCode:this.verificationCode,loginType:i};"*******************"==this.account_Pwd&&(a.accountPwd=""),!t||a.verificationCode?(this.loading=t?this.$loading({lock:!0,text:"核验中..."}):this.$loading({lock:!0,text:"登录中..."}),this.$http.post(s["a"].TrainOrderRailWayAccountLogin,a).then((function(t){if(e.loading.close(),t.success){var i=t.result.needVerificationCode;i?(e.phoneNo=t.result.phoneNo,e.showDialog=!1,setTimeout((function(){e.showCode=!0}),200)):(e.$emit("loginCallBack",a.accountNo),e.closeDialog())}else e.$alert(t.message,"提示")}))):this.$alert("请输入短信验证码","提示")},login:function(t){0==this.type&&this.employeeRailwayLogin(t),1==this.type&&this.trainOrderRailWayAccountLogin(t)}}},o=r,c=(i("1a4e"),i("2877")),l=Object(c["a"])(o,a,n,!1,null,"69e1d076",null);e["a"]=l.exports},"56fe":function(t,e,i){"use strict";i("13109")},"5ee3":function(t,e,i){"use strict";i("7641")},"6f59":function(t,e,i){},7641:function(t,e,i){},"84c6":function(t,e,i){},"86db":function(t,e,i){"use strict";i("0236")},9753:function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{staticClass:"insuranceDialog",attrs:{title:"购保确认",visible:t.dialogVisibleShow,width:"50%",center:"",top:"15vh"},on:{"update:visible":function(e){t.dialogVisibleShow=e}}},[i("div",{staticClass:"policyPerson"},[i("div",{staticClass:"blockTitle"},[t._v("投保人/被保险人")]),i("div",{staticClass:"policyContent"},t._l(t.passengerList,(function(e,a){return i("div",{key:a,staticClass:"policyItems dtg-flex dtg-align-center dtg-justify-between"},[i("div",{staticClass:"policy-left dtg-flex dtg-align-center"},[i("div",{staticClass:"iconfont icon-lianxiren1"}),i("div",{staticClass:"name"},[t._v(t._s(e.name))])]),i("div",{staticClass:"policy-right"},t._l(e.certificates,(function(a,n){return i("div",{key:n},[a.selected&&a.credentialType==e.selectCredentialType?i("div",[i("span",[t._v(t._s(a.credentialTypeName)+" : ")]),i("span",[t._v(t._s(a.credentialNo))])]):t._e()])})),0)])})),0)]),i("div",{staticClass:"insuranceInformation"},[i("div",{staticClass:"blockTitle"},[t._v("保险信息")]),i("div",{staticClass:"insuranceContent"},t._l(t.insuranceDetailList,(function(e,a){return i("div",{key:a,staticClass:"insuranceItems dtg-flex dtg-align-center dtg-justify-between"},[i("div",{staticClass:"insurance-left dtg-flex dtg-align-center"},[i("div",{staticClass:"iconfont icon-baoxianxiaoshou1"}),i("div",{staticClass:"name"},[t._v(t._s(e.insuranceName))])]),i("div",{staticClass:"insurance-right"},[i("span",{staticClass:"price"},[t._v("￥"+t._s(e.salesPrice))]),t._v("/份\n\t\t\t\t\t\t")])])})),0)]),i("div",{staticClass:"clauseList"},[i("div",{staticClass:"clauseTitle dtg-flex dtg-align-center"},t._l(t.tabTitleList,(function(e,a){return i("div",{key:a,staticClass:"titleItem",class:{active:e.tabType==t.activeIndex},on:{click:function(i){return t.checkState(e)}}},[t._v(t._s(e.tabTitle))])})),0),0==t.activeIndex?i("div",{staticClass:"clauseContent"},t._l(t.insuranceDetailList,(function(e,a){return i("div",{key:a,staticClass:"disclaimer"},[i("div",{staticClass:"labelTitle"},[t._v(t._s(e.insuranceName))]),i("div",{staticClass:"labelContent",domProps:{innerHTML:t._s(e.clause)}})])})),0):t._e(),1==t.activeIndex||3==t.activeIndex?i("div",{staticClass:"clauseContent",domProps:{innerHTML:t._s(t.insuranceContent)}}):t._e(),2==t.activeIndex?i("div",{staticClass:"clauseContent"},[t._v(t._s(t.insuranceContent))]):t._e()]),i("div",{staticClass:"insuranceRead dtg-flex dtg-align-center",attrs:{slot:"footer"},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.insuranceReadCheck(e)}},slot:"footer"},[t.readChecked?i("span",{staticClass:"iconfont icon-Shapecopy"}):i("span",{staticClass:"iconfont icon-danxuan1",class:{iconActive:t.iconShow}}),i("span",[t._v("我已阅读且同意")]),i("span",{staticClass:"insuranceActive",on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.insuranceChange(0)}}},[t._v("《投保须知》")]),i("span",{staticClass:"insuranceActive",on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.insuranceChange(1)}}},[t._v("《客户告知书》")]),i("span",{staticClass:"insuranceActive",on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.insuranceChange(2)}}},[t._v("《被保险人同意说明》")]),i("span",{staticClass:"insuranceActive",on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.insuranceChange(3)}}},[t._v("《个人信息保护政策》")]),t._v("，并确认被保人信息正确。\n\t\t\t")]),i("div",{staticClass:"nextStep",attrs:{slot:"footer"},on:{click:t.goToNextStep},slot:"footer"},[t._v("确认已阅读保险信息, 下一步")])])},n=[],s={props:["passengerList","insuranceDetailList","tabTitleList"],data:function(){return{insuranceList:[],insuranceContent:"",activeIndex:0,dialogVisibleShow:!1,readChecked:!1,iconShow:!1}},methods:{checkState:function(t){this.activeIndex=t.tabType,1==t.tabType&&(this.insuranceContent=this.replaceDetail(t.tabContent)),2!=t.tabType&&3!=t.tabType||(this.insuranceContent=t.tabContent)},open:function(){this.dialogVisibleShow=!0},changeIconShow:function(){this.iconShow=!0},replaceDetail:function(t){var e="";while(-1!=t.indexOf("<img"))e+=t.substring("0",t.indexOf("<img")+4),t=t.substring(t.indexOf("<img")+4),-1!=t.indexOf("style=")&&t.indexOf("style=")<t.indexOf(">")?(e+=t.substring(0,t.indexOf('style="')+7)+"max-width:100%;height:auto;margin:0 auto;",t=t.substring(t.indexOf('style="')+7)):e+=' style="max-width:100%;height:auto;margin:0 auto;" ';return e+=t,e},goToNextStep:function(){this.$emit("nextStep",this.readChecked)},insuranceReadCheck:function(){this.readChecked=!this.readChecked},insuranceChange:function(t){var e=this;if(this.activeIndex=t,1==this.activeIndex){var i=this.tabTitleList.find((function(t){return t.tabType==e.activeIndex})).tabContent;this.insuranceContent=this.replaceDetail(i)}if(2==this.activeIndex||3==this.activeIndex){var a=this.tabTitleList.find((function(t){return t.tabType==e.activeIndex})).tabContent;this.insuranceContent=a}}}},r=s,o=(i("3809"),i("2877")),c=Object(o["a"])(r,a,n,!1,null,"38bc8f58",null);e["a"]=c.exports},b7de:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"train-book emm-full-loading",attrs:{"element-loading-spinner":"dtg-loading","element-loading-text":t.loadingTxt}},[i("div",{ref:"bookLeft",staticClass:"book-left"},[i("warning-tips",{attrs:{infoParams:t.infoTipsParams}}),i("div",{staticClass:"block train-info"},[t._l(t.bookInfoList,(function(e,a){return i("div",{key:a,staticClass:"train-item-box dtg-flex"},[i("div",{staticClass:"label-tag"},[t.bookInfoList.length>1?i("span",{staticClass:"label"},[t._v("第"+t._s(a+1)+"程")]):t._e()]),i("table",[i("tbody",[i("tr",{staticClass:"tr-one"},[i("td",{staticClass:"fs16"},[t._v(t._s(e.trainNo))]),i("td",[t._v(t._s(e.departTimeStruct.date1))]),i("td"),i("td",[t._v(t._s(e.arriveTimeStruct.date1))])]),i("tr",{staticClass:"tr-two"},[i("td",[t._v(t._s(e.seatName))]),i("td",{staticClass:"fwb"},[t._v(t._s(e.departTimeStruct.time))]),t._m(0,!0),i("td",{staticClass:"fwb"},[t._v(t._s(e.arriveTimeStruct.time))])]),i("tr",{staticClass:"tr-three"},[i("td",{staticClass:"price"},[t._v("￥"+t._s(e.price))]),i("td",[t._v(t._s(e.departStation))]),i("td",{attrs:{width:"100'"}},[t._v(t._s(e.lastTime))]),i("td",[t._v(t._s(e.arriveStation))])])])])])})),t.bookInfoList.length>1?i("div",{staticClass:"book-tips-bar"},[t._v("若遇余票不足等情况，"),i("span",{staticClass:"primary"},[t._v("可能导致其中一程购票失败")]),t._v("，建议您购买其他车次或者上车补票。平台无法承担相关损失，敬请原谅")]):t._e()],2),i("dtgTravelForm",{attrs:{show:t.isTravelControl,"order-list":t.travelApplyOrderList}}),t.ruleViolate.violate&&1==t.travelType&&0==t.bookMode?i("div",{staticClass:"block policy"},[t._m(1),i("div",{ref:"rulePolicy",staticClass:"con"},[i("p",[i("el-select",{attrs:{placeholder:"请选择姓名"},on:{change:t.handleReasonChange},model:{value:t.selectedReason,callback:function(e){t.selectedReason=e},expression:"selectedReason"}},t._l(t.foulReasonList,(function(t,e){return i("el-option",{key:e,attrs:{label:t.reason,value:t.id}})})),1)],1),t.showReasonRemark?i("p",{staticClass:"remark-input"},[t.remakRequired?i("span",{staticClass:"required"},[t._v("*")]):t._e(),i("el-input",{attrs:{type:"textarea",rows:2,resize:"none",placeholder:"请填写备注信息"},model:{value:t.reasonRemark,callback:function(e){t.reasonRemark=e},expression:"reasonRemark"}})],1):t._e(),t.selectedReasonItem.noteList&&t.selectedReasonItem.noteList.length?i("div",{staticClass:"violation-note"},t._l(t.selectedReasonItem.noteList,(function(e,a){return i("p",{key:a,staticClass:"note-item",domProps:{innerHTML:t._s(e)}})})),0):t._e(),i("div",{staticClass:"policy-dl"},[i("div",{staticClass:"policy-dt"},[i("i",{staticClass:"iconfont icon-zhuyi"}),t._v("\n\t\t\t\t\t\t\t"+t._s(t.ruleViolationTipTitle)+"\n\t\t\t\t\t\t")]),t._l(t.ruleViolate.detail,(function(e,a){return[e.ruleViolate?i("div",{staticClass:"policy-con dtg-flex"},[0!=t.bookExtendInfo.transferType?i("div",{staticClass:"trip-index"},[t._v("第"+t._s(a+1)+"程")]):t._e(),i("div",{staticClass:"policy-dd-list"},t._l(e.ruleViolateDetailList,(function(e,a){return e.items.length>0?i("div",{key:"policy-dd-"+a,staticClass:"policy-dd"},[i("div",{staticClass:"policy-name"},[t._l(e.ruleViolateEmployeeList,(function(a,n){return i("span",{key:"policy-name-"+n},[t._v(t._s(a.name)+t._s(e.ruleViolateEmployeeList.length==n+1?"":"、"))])})),t._v("超出了如下差旅标准\n\t\t\t\t\t\t\t\t\t\t")],2),i("div",{staticClass:"policy-detail"},t._l(e.items,(function(e,a){return i("div",{key:"policy-detail-"+a},[t._v(t._s(a+1)+"、"+t._s(e.message))])})),0)]):t._e()})),0)]):t._e()]}))],2)])]):t._e(),0!=t.railway.buyMode&&1!=t.railway.buyMode||t.isLoading?t._e():i("div",{staticClass:"railway"},[i("div",{staticClass:"railway-acct dtg-flex dtg-flex-row dtg-align-center"},[i("i",{staticClass:"acct-size iconfont icon-icon-test"}),0==t.railway.railwayAccountLoginStatus?i("div",{staticClass:"login-msg"},[t._v("登录12306账号，出票更快捷，购票成功率更高")]):t._e(),1==t.railway.railwayAccountLoginStatus?i("div",{staticClass:"login-msg"},[t._v("已绑定账号:"),i("span",{staticClass:"msg-acct"},[t._v(t._s(t.railway.showRailWayAccount))])]):t._e(),2==t.railway.railwayAccountLoginStatus?i("div",{staticClass:"login-msg"},[t._v("已登录账号:"),i("span",{staticClass:"msg-acct"},[t._v(t._s(t.railway.showRailWayAccount))])]):t._e(),1==t.railway.railwayAccountLoginStatus||0==t.railway.railwayAccountLoginStatus?i("div",{staticClass:"login-btn",on:{click:t.toThirdLogin}},[t._v("登录12306")]):t._e(),2==t.railway.railwayAccountLoginStatus||2==t.railway.railwayAccountLoginStatus?i("div",{staticClass:"login-btn btn-b",on:{click:t.toThirdLogin}},[t._v("变更账号")]):t._e()])]),i("div",{ref:"passengers",staticClass:"block passenger-box"},[t._m(2),2==t.travelType?i("div",{staticClass:"personal-block"},[i("div",{staticClass:"p-title"},[t._v("因私出行人")]),i("personal-passenger",{ref:"personalPassenger",attrs:{config:t.personalPConfig},on:{select:t.selectPersonalPassenger,modifly:t.modiflyPrivateTraveler}})],1):t._e(),1==t.bookMode?i("div",{staticClass:"personal-block"},[i("dtg-passenger",{ref:"personalPassenger",staticStyle:{padding:"20px"},attrs:{config:t.personalPConfig},on:{select:t.selectPersonalPassenger,modifly:t.modiflyPrivateTraveler}})],1):t._e(),2==t.railway.railwayAccountLoginStatus&&t.trainTravelList.length>0||0==t.trainTravelList.length&&t.travelerLoading?i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.travelerLoading,expression:"travelerLoading"}],staticClass:"railway-traveler"},[i("h4",[i("span",{staticClass:"tit"},[t._v("12306乘客信息")]),i("span",{staticClass:"tips"},[t._v("常旅客乘客最多15人，如有差旅人不在其中，请先添加进常旅客，否则将无法完成预订！")]),i("span",{staticClass:"refresh-btn",on:{click:function(e){return t.getTrainTravelListData(1)}}},[i("i",{staticClass:"iconfont icon-a1"}),t._v("获取最新")])]),i("div",{staticClass:"r-list-con dtg-flex dtg-align-center dtg-flex-warp",class:{"loading-box":t.travelerLoading}},[1==t.travelType?t._l(t.trainTravelList,(function(e,a){return i("div",{key:a,staticClass:"r-item dtg-flex dtg-align-center dtg-justify-between",attrs:{title:e.passengerName}},[i("div",{staticClass:"name"},[t._v(t._s(e.passengerName))]),i("div",{staticClass:"remove",on:{click:function(i){return t.removeTraveler(e)}}},[t._v("移除")])])})):t._e(),2==t.travelType?t._l(t.trainTravelList,(function(e,a){return i("div",{key:a,staticClass:"private-item dtg-flex dtg-align-center dtg-justify-between",attrs:{title:e.passengerName}},[i("div",{class:["name",{active:e.employeeData&&e.employeeData.selected}],on:{click:function(i){return t.handleChooseRailway(e)}}},[i("span",{staticClass:"name-bar"},[t._v(t._s(e.passengerName))]),e.employeeData?t._e():i("span",{staticClass:"add-txt iconfont icon-tianjiadao",attrs:{title:"添加到因私出行人"}})]),i("div",{staticClass:"el-icon-delete remove",on:{click:function(i){return t.removeTraveler(e)}}})])})):t._e()],2),t.passengerList.length?i("div",[t._m(3),i("div",{staticClass:"select-list dtg-flex dtg-align-center dtg-flex-warp"},[t._l(t.passengerList,(function(e){return[t.checkStatusPass(e.checkStatusTxt)||t.checkStatusFail(e.checkStatusTxt)?i("div",{key:e.employeeId,staticClass:"r-item s-item dtg-flex dtg-align-center dtg-justify-between",attrs:{title:e.selectName}},[i("div",{staticClass:"name"},[t._v(t._s(e.selectName))]),i("div",{class:{pass:t.checkStatusPass(e.checkStatusTxt),fail:t.checkStatusFail(e.checkStatusTxt)},on:{click:function(i){return t.trainRule(6,e.checkStatusTxt)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.checkStatusTxt)+" "+t._s(t.checkStatusFail(e.checkStatusTxt)?">":"")+"\n\t\t\t\t\t\t\t\t\t")])]):t._e(),"去添加"==e.checkStatusTxt||"去核验手机"==e.checkStatusTxt?i("div",{key:e.employeeId,staticClass:"r-item s-item dtg-flex dtg-align-center dtg-justify-between go-btn",attrs:{title:e.selectName},on:{click:function(i){return t.handleTravelerOperate(e)}}},[i("div",{staticClass:"name"},[t._v(t._s(e.selectName))]),i("div",{class:{"go-add":"去添加"==e.checkStatusTxt,"go-ver":"去核验手机"==e.checkStatusTxt}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.checkStatusTxt)+"\n\t\t\t\t\t\t\t\t\t")])]):t._e()]}))],2)]):t._e()]):t._e(),i("div",{staticClass:"passenger"},t._l(t.passengerList,(function(e,a){return i("div",{key:a,staticClass:"item"},[i("span",{staticClass:"item-num"},[t._v(t._s(a+1))]),2==t.travelType||1==t.bookMode?i("div",{staticClass:"delete",on:{click:function(i){return t.deletePassenger(a,e)}}},[i("i",{staticClass:"iconfont icon-shanchu1"}),t._v("删除")]):t._e(),i("ul",{staticClass:"passenger-ul"},[i("li",[i("div",{staticClass:"dtg-input-1"},[i("div",{staticClass:"label dtg-flex"},[i("div",[t._v("证件上的姓名")]),i("div",{staticClass:"dtg-flex dtg-align-center dtg-justify-center name-type",on:{click:function(i){return t.bindNameType(e)}}},[i("p",{staticClass:"dtg-flex dtg-align-center dtg-justify-center",class:{"name-type-selected":!e.isEnName}},[t._v("中")]),i("p",{staticClass:"dtg-flex dtg-align-center dtg-justify-center",class:{"name-type-selected":e.isEnName}},[t._v("英")])])]),t.isShowOverlay(e)?i("div",{staticClass:"input-name-overlay",on:{click:function(i){return t.bindName(e)}}}):t._e(),e.isEnName?t._e():i("el-input",{staticClass:"input-name",class:{error:e.zhNameValidate},attrs:{disabled:t.disabledZhName(e),placeholder:"中文姓名"},on:{input:function(i){return t.inputZhName(i,e)},blur:function(i){return t.blurValidatePassenger("zhName",e)}},model:{value:e.name,callback:function(i){t.$set(e,"name",i)},expression:"item.name"}}),!e.isEnName&&e.zhNameValidate?i("p",{staticClass:"error-tip-1 mobile-tip"},[i("i",{staticClass:"iconfont icon-shibai"}),t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.zhNameErrorMsg)+"\n\t\t\t\t\t\t\t\t\t")]):t._e(),e.isEnName?i("el-input",{staticClass:"input-enName",class:{error:e.enSurNameValidate},attrs:{placeholder:"姓（拼音）Surname",disabled:!e.isChangeEnName},on:{input:function(i){return t.inputEnName(i,e)},blur:function(i){return t.blurValidatePassenger("surname",e)}},model:{value:e.enSurName,callback:function(i){t.$set(e,"enSurName",i)},expression:"item.enSurName"}}):t._e(),e.isEnName?i("el-input",{staticClass:"input-enName",class:{error:e.enGivenNameValidate},attrs:{placeholder:"名（拼音）Givenname",disabled:!e.isChangeEnName},on:{input:function(i){return t.inputEnName(i,e)},blur:function(i){return t.blurValidatePassenger("givenname",e)}},model:{value:e.enGivenName,callback:function(i){t.$set(e,"enGivenName",i)},expression:"item.enGivenName"}}):t._e(),e.enSurNameValidate&&e.isEnName?i("p",{staticClass:"error-tip-1 mobile-tip"},[i("i",{staticClass:"iconfont icon-shibai"}),t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.enSurNameErrorMsg)+"\n\t\t\t\t\t\t\t\t\t")]):t._e(),e.enGivenNameValidate&&e.isEnName?i("p",{staticClass:"error-tip-2 mobile-tip"},[i("i",{staticClass:"iconfont icon-shibai"}),t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.enGivenNameErrorMsg)+"\n\t\t\t\t\t\t\t\t\t")]):t._e()],1),i("div",{staticClass:"dtg-input-1",class:{error:e.phoneValidate}},[i("p",{staticClass:"label"},[t._v("手机号码")]),i("el-input",{attrs:{placeholder:"手机号码",maxlength:"11"},on:{focus:function(i){return t.handlePhoneFocus(e)},blur:function(i){return t.blurValidatePassenger("phone",e)}},model:{value:e.phone,callback:function(i){t.$set(e,"phone",i)},expression:"item.phone"}}),i("p",{staticClass:"error-tip"},[i("i",{staticClass:"iconfont icon-shibai"}),t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.phoneErrorMsg)+"\n\t\t\t\t\t\t\t\t\t")])],1)]),i("li",[i("div",{staticClass:"dtg-input-1"},[i("p",{staticClass:"label"},[t._v("证件类型")]),i("el-select",{attrs:{placeholder:"请选择证件类型"},on:{change:function(i){return t.handleCredengialType(i,e)}},model:{value:e.selectCredentialType,callback:function(i){t.$set(e,"selectCredentialType",i)},expression:"item.selectCredentialType"}},[t._l(e.certificates,(function(e){return[e.isHide?t._e():i("el-option",{key:e.credentialType,attrs:{label:e.credentialTypeName,value:e.credentialType}})]}))],2)],1),i("div",{staticClass:"dtg-input-1",class:{error:e.credentialValidate}},[i("p",{staticClass:"label"},[t._v("证件号码")]),t._l(e.certificates,(function(a,n){return[a.credentialType==e.selectCredentialType?i("el-input",{key:n,attrs:{maxlength:"40",placeholder:"证件号码"},on:{focus:function(i){return t.handleCredentialNoFocus(e,a)},blur:function(i){return t.blurValidatePassenger("number",e)}},model:{value:a.credentialNo,callback:function(e){t.$set(a,"credentialNo",e)},expression:"citem.credentialNo"}}):t._e()]})),i("p",{staticClass:"error-tip"},[i("i",{staticClass:"iconfont icon-shibai"}),t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.credentialErrorMsg)+"\n\t\t\t\t\t\t\t\t\t")])],2)]),i("li",{directives:[{name:"show",rawName:"v-show",value:1!=e.selectCredentialType,expression:"item.selectCredentialType!=1"}]},[i("div",{staticClass:"dtg-input-1"},[i("p",{staticClass:"label"},[t._v("性别")]),i("el-select",{attrs:{placeholder:"请选择性别"},model:{value:e.gender,callback:function(i){t.$set(e,"gender",i)},expression:"item.gender"}},t._l(e.genderList,(function(t,e){return i("el-option",{key:e,attrs:{label:t.type,value:t.id}})})),1)],1),i("div",{staticClass:"dtg-input-1",class:{error:e.birthDayValidate},on:{blur:function(i){return t.blurValidatePassenger("birthDay",e)}}},[i("p",{staticClass:"label"},[t._v("生日")]),i("el-date-picker",{attrs:{clearable:!1,editable:!1,type:"date","picker-options":t.birthDateOptions,placeholder:"选择日期"},model:{value:e.birthDate,callback:function(i){t.$set(e,"birthDate",i)},expression:"item.birthDate"}}),i("p",{staticClass:"error-tip"},[i("i",{staticClass:"iconfont icon-shibai"}),t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.birthDayErrorMsg)+"\n\t\t\t\t\t\t\t\t\t")])],1)]),i("li",{directives:[{name:"show",rawName:"v-show",value:1!=e.selectCredentialType,expression:"item.selectCredentialType!=1"}]},[i("div",{staticClass:"dtg-input-1 end-time",class:{error:e.endTimeValidate}},[i("p",{staticClass:"label"},[t._v("\n\t\t\t\t\t\t\t\t\t\t证件有效期\n\t\t\t\t\t\t\t\t\t\t"),i("el-popover",{attrs:{placement:"bottom-start",trigger:"hover","popper-class":"dtg-popper"}},[i("i",{staticClass:"iconfont icon-zhuyi",attrs:{slot:"reference"},slot:"reference"}),i("div",{staticClass:"end-tips"},[t._v("温馨提示：为了确保您出行顺利，请确保证件有效期大于6个月")])])],1),t._l(e.certificates,(function(a,n){return[a.credentialType==e.selectCredentialType?i("el-date-picker",{key:n,attrs:{type:"date",editable:!1,clearable:!1,placeholder:"选择证件有效期","picker-options":t.expiryDateOptons},on:{blur:function(i){return t.blurValidatePassenger("endTime",e)}},model:{value:a.endTime,callback:function(e){t.$set(a,"endTime",e)},expression:"citem.endTime"}}):t._e()]})),i("p",{staticClass:"error-tip"},[i("i",{staticClass:"iconfont icon-shibai"}),t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.endTimeErrorMsg)+"\n\t\t\t\t\t\t\t\t\t")])],2),i("div",{staticClass:"dtg-input-1"},[i("p",{staticClass:"label"},[t._v("国籍")]),i("el-select",{attrs:{filterable:"",placeholder:"请选择国籍"},model:{value:e.countryId,callback:function(i){t.$set(e,"countryId",i)},expression:"item.countryId"}},t._l(t.countryList,(function(t,e){return i("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1)])])])})),0),2!=t.railway.buyMode?i("div",{staticClass:"tips-two"}):t._e()]),i("book-insurance",{attrs:{bookInfos:t.insuranceConfig.bookInfoList,isShowInsurance:t.insuranceConfig.isShowInsurance,travelType:t.travelType,passengerCount:t.passengerList.length,productType:5,tripCount:t.bookInfoList.length},on:{select:t.handleSelectInsurance}}),t.trainInfo.allowChooseSeat?i("div",{staticClass:"block online-seat"},[t._m(4),i("div",{staticClass:"choose-seat con"},[i("div",{staticClass:"select-box"},[t._v("\n\t\t\t\t\t\t已选座\n\t\t\t\t\t\t"),i("span",[t._v(t._s(t.selectedSeat.length)+"/"+t._s(t.passengerList.length))])]),i("div",{staticClass:"seat-list"},t._l(t.onlineSeatData,(function(e,a){return 1==t.passengerList.length&&0==a||t.passengerList.length>1?i("dl",{key:a,staticClass:"seat-row"},[i("dt",[t._v("靠窗")]),t._l(e[0],(function(e,n){return i("dd",{key:e.number,class:{checked:e.isSelected},on:{click:function(i){return t.chooseOnlineSeat(e,a,0,n)}}},[i("i",{staticClass:"iconfont icon-zuowei"}),i("span",{staticClass:"seat-num"},[t._v(t._s(e.number))])])})),i("dt",[t._v("过道")]),t._l(e[1],(function(e,n){return i("dd",{key:e.number,class:{checked:e.isSelected},on:{click:function(i){return t.chooseOnlineSeat(e,a,1,n)}}},[i("i",{staticClass:"iconfont icon-zuowei"}),i("span",{staticClass:"seat-num"},[t._v(t._s(e.number))])])})),i("dt",[t._v("靠窗")])],2):t._e()})),0)])]):t._e(),i("div",{staticClass:"block no-seat"},[i("div",{class:["allcheckbox",{checked:t.isAcceptNoSeat}],on:{click:t.handleNoSeatCheck}},[t._m(5)])]),t.transferData.newServiceConfigList.length>0?i("dtg-book-transfer",{attrs:{config:t.transferData},on:{select:t.handleTransferSelect}}):t._e(),i("div",{staticClass:"block"},[i("h3",[t._v("联系人")]),i("div",{staticClass:"con contact-list"},[i("ul",t._l(t.contactList,(function(e,a){return i("li",{key:a},[i("div",{staticClass:"dtg-input-1",class:{error:e.nameValidate}},[i("p",{staticClass:"label"},[t._v("姓名")]),i("el-input",{attrs:{placeholder:"联系人姓名",maxlength:"20"},on:{blur:function(i){return t.blurValidateContact("name",e)}},model:{value:e.contactName,callback:function(i){t.$set(e,"contactName",i)},expression:"item.contactName"}}),i("p",{staticClass:"error-tip"},[i("i",{staticClass:"iconfont icon-shibai"}),t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(e.nameErrorMsg)+"\n\t\t\t\t\t\t\t\t")])],1),i("div",{staticClass:"dtg-input-1",class:{error:e.phoneValidate}},[i("p",{staticClass:"label"},[t._v("手机号码")]),i("el-input",{attrs:{placeholder:"联系人手机号",maxlength:"11"},on:{blur:function(i){return t.blurValidateContact("phone",e)}},model:{value:e.contactPhone,callback:function(i){t.$set(e,"contactPhone",i)},expression:"item.contactPhone"}}),i("p",{staticClass:"error-tip"},[i("i",{staticClass:"iconfont icon-shibai"}),t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(e.phoneErrorMsg)+"\n\t\t\t\t\t\t\t\t")])],1),i("div",{staticClass:"dtg-input-1"},[i("p",{staticClass:"label"},[t._v("邮箱")]),i("el-input",{attrs:{placeholder:"联系人邮箱",maxlength:"40"},model:{value:e.contactEmail,callback:function(i){t.$set(e,"contactEmail",i)},expression:"item.contactEmail"}})],1),t.contactList.length>1?i("span",{staticClass:"del",on:{click:function(e){return t.deleteContact(a)}}},[t._v("删除")]):t._e()])})),0),i("div",{staticClass:"add-contacts",on:{click:t.addContact}},[i("i",{staticClass:"iconfont icon-iconjia"}),t._v("添加联系人\n\t\t\t\t\t")])])]),t.invoiceInfo&&t.invoiceInfo.title?i("div",{staticClass:"block voucher"},[i("h3",[t._v(t._s(t.invoiceInfo.title))]),i("div",{staticClass:"con"},[i("p",[t._v(t._s(t.invoiceInfo.description))])])]):t._e(),1==t.travelType?i("div",{staticClass:"block payment"},[i("h3",[t._v("支付方式")]),t._l(t.paymentTypeList,(function(e,a){return[1!==e.groupPayType||1==e.groupPayType&&1!==e.paymentType||1==e.groupPayType&&1==e.paymentType&&t.ruleViolate.violate&&t.groupPrice.personalPrice>0?i("div",{key:a,staticClass:"con payment-list",class:{active:t.selectPayment==e.paymentType},on:{click:function(i){return t.getPayTypeMethods(e)}}},[i("span",{staticClass:"label-icon iconfont icon-xuanzhongyuandian"}),i("span",{staticClass:"paymentTypeName"},[t._v(t._s(e.paymentTypeName))]),i("span",{staticClass:"paymentTypeDetail"},[t.priceData.orderTotalPrice?i("span",{staticClass:"companyCredit"},[t._v("订单总额: "),i("span",{staticClass:"price"},[t._v("￥"+t._s(t.priceData.orderTotalPrice))])]):t._e(),1==e.paymentType||3==e.paymentType?i("span",{staticClass:"companyCredit"},[t._v("公司授信: "),i("span",{staticClass:"price"},[t._v("￥"+t._s(e.companyPrice))])]):t._e(),2==e.paymentType||3==e.paymentType?i("span",{staticClass:"personPay"},[t._v("个人支付(现结): "),i("span",{staticClass:"price"},[t._v("￥"+t._s(e.personalPrice))])]):t._e()])]):t._e()]}))],2):t._e(),i("div",{staticClass:"submit-order",class:{disabled:!t.isCanSubmit},on:{click:t.submitOrder}},[t._v("提交车票订单")])],1),i("div",{ref:"bookRight",staticClass:"book-right",style:t.trainBookStyle},[i("div",{staticClass:"train-price-info"},[i("div",{staticClass:"price-box"},[i("div",{ref:"totalHeight",staticClass:"total"},[i("strong",[t._v("订单总额")]),t.priceData.orderTotalPrice?i("span",{staticClass:"price-num"},[t._v("¥"+t._s(t.priceData.orderTotalPrice))]):i("span",{staticClass:"price-num"},[t._v("--")])]),i("dl",{class:["price-detail",{expand:t.priceData.switchDetail}]},[i("dt",[i("span",{on:{click:t.switchPriceDetail}},[t._v("明细("+t._s(t.priceData.passengerCount)+"名乘客)")])]),i("dd",[i("el-collapse-transition",[t.priceData.switchDetail?i("div",{staticClass:"price-list",style:t.trainMoneyStyle},t._l(t.priceData.listData,(function(e,a){return i("div",{key:a,staticClass:"price-item"},[i("ul",[i("li",{staticClass:"dtg-flex dtg-align-center dtg-justify-between"},[i("div",{staticClass:"label"},[t.priceData.listData.length>1?i("span",[t._v("第"+t._s(a+1)+"程")]):t._e(),t._v("成人票")]),i("div",[i("em",[t._v("¥"+t._s(e.ticketPrice))]),t._v(" * "+t._s(t.priceData.passengerCount)+"\n\t\t\t\t\t\t\t\t\t\t\t\t")])]),i("li",{staticClass:"dtg-flex dtg-align-center dtg-justify-between"},[i("div",{staticClass:"label"},[t.priceData.listData.length>1?i("span",[t._v("第"+t._s(a+1)+"程")]):t._e(),t._v("服务费")]),i("div",[i("em",[t._v("¥"+t._s(e.serviceFee))]),t._v(" * "+t._s(t.priceData.passengerCount)+"\n\t\t\t\t\t\t\t\t\t\t\t\t")])]),e.insurancePrice?i("li",{staticClass:"ins-bar",on:{click:function(i){return t.handlePriceInsDetail(e)}}},[i("div",{staticClass:"dtg-flex dtg-align-center dtg-justify-between"},[i("div",{staticClass:"label"},[t.priceData.listData.length>1?i("span",[t._v("第"+t._s(a+1)+"程")]):t._e(),t._v("保险")]),i("div",[i("em",[t._v("¥"+t._s(e.insurancePrice))]),i("span",{staticClass:"iconfont in-switch",class:{"icon-shang1":e.insDetailsShow,"icon-xiala":!e.insDetailsShow}})])]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.insDetailsShow,expression:"priceItem.insDetailsShow"}],staticClass:"ins-detail"},t._l(e.insuranceList,(function(e,a){return i("div",{key:a,staticClass:"ins-item dtg-flex dtg-align-center dtg-justify-between"},[i("div",{staticClass:"ins-name"},[t._v(t._s(e.name))]),i("div",{staticClass:"ins-price"},[i("em",[t._v("¥"+t._s(e.salesPrice))]),t._v(" * "+t._s(t.priceData.passengerCount))])])})),0)]):t._e()])])})),0):t._e()])],1)]),i("div",{staticClass:"train-rule",on:{click:function(e){return t.trainRule()}}},[i("span",[t._v("退改签规则")])])]),i("div",{ref:"tipsHeight",staticClass:"train-tips"},[i("h3",{staticClass:"tip-head"},[t._v("温馨提示:")]),t._m(6)])])]),i("el-dialog",{attrs:{title:"温馨提示",visible:t.importDialogVisible,width:"520px",center:"","custom-class":"dialog-body"},on:{"update:visible":function(e){t.importDialogVisible=e}}},[i("div",{staticClass:"sms-title"},[t._v("为保证乘车人联系方式正确，请按提示进行核验")]),i("div",{staticClass:"sms-status dtg-flex dtg-align-center"},[i("span",{staticClass:"status-size iconfont icon-gantan1"}),i("span",{staticClass:"status-lab"},[t._v("核验状态：")]),i("span",{staticClass:"status-msg"},[t._v(t._s(t.verificationResult.typeText))])]),i("div",{staticClass:"sms-content"},[t._l(t.verificationResult.messageTextList,(function(e,a,n){return["code"==a?[i("span",{staticClass:"sms-con-num"},[t._v(t._s(e))])]:[t._v("\n\t\t\t\t\t\t"+t._s(e)+"\n\t\t\t\t\t")]]}))],2),i("div",{staticClass:"btn-pop"},[i("label",{staticClass:"confirm",on:{click:function(e){return t.confirmSms()}}},[t._v("确 定")])])]),i("rule-dialog",{ref:"ruleDialog",attrs:{trainRuleInfoList:t.trainRuleInfoList}}),i("check-dialog",{attrs:{tipsData:t.verTipsConfig.data,isShow:t.verTipsConfig.show},on:{close:t.closeVerTips,confirm:t.handleVerTipsConfirm}}),i("thirdLogin",{attrs:{isShow:t.thirdLoginShow,tempOrderNo:t.tempOrderNo,accountNo:t.thirdLoginConfig.account,accountPwd:t.thirdLoginConfig.pwd,type:0},on:{closeDialog:t.closeDialog,loginCallBack:t.handleLoginInfo}}),i("submit-items",{attrs:{travelOrder:t.submitData.travelOrder,approvalInfo:t.submitData.approvalInfo,items:t.submitData.submitItems,maxAttachmentCount:t.submitData.maxAttachmentCount,isShow:t.submitData.isShowDialog,priceInfo:t.submitData.priceInfo,approveFlowInfoList:t.submitData.approveFlowInfoList,defaultRule:t.submitData.defaultRule,bookType:t.bookType},on:{close:t.closeSubmitDialog,notSubmit:t.notSubmitFn}}),i("oneOrder",{ref:"oneOrder",attrs:{bookType:t.bookType},on:{close:t.closeOneOrder}}),i("insuranceConfirm",{ref:"insurance",attrs:{passengerList:t.passengerList,tabTitleList:t.tabTitleList,insuranceDetailList:t.insuranceDetailList},on:{nextStep:t.goToNextStep}}),i("passengerCheckDialog",{attrs:{isShow:t.passengerVerTipsConfig.show,tipsData:t.passengerVerTipsConfig.data},on:{close:t.closePassengerVerTips,confirm:t.handlePassengerVerTipsConfirm}})],1)},n=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("td",{attrs:{width:"100'"}},[i("img",{attrs:{src:"//img.dttrip.cn/pc/v2/tmc/greentrain.png"}})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("h3",[t._v("\n\t\t\t\t\t差旅标准\n\t\t\t\t\t"),i("span",[t._v("请严格执行贵公司差旅标准")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("h3",[t._v("\n\t\t\t\t\t乘客\n\t\t\t\t\t"),i("span",[t._v("出行期间，请您注意证件的有效期，过期证件可能造成无法乘车")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("h4",[i("span",{staticClass:"tit"},[t._v("已选差旅人")]),i("span",{staticClass:"tips"},[t._v("差旅人未全部核验通过则将无法预订！")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("h3",[t._v("\n\t\t\t\t\t在线选座\n\t\t\t\t\t"),i("span",[t._v("*选座后如果系统票额不足，系统将随机为您申请席位。")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("span",{staticClass:"check"},[i("i"),t._v("是否接受无座\n\t\t\t\t\t")])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{staticClass:"tip-content"},[i("li",[t._v("1.购票结果会及时短信通知您；您也可以到订单中心查看。")]),i("li",[t._v("2.乘客姓名与证件号码必须与乘车时所使用证件上的名字和号码一致。")])])}],s=i("0091"),r=i("bafd"),o=i("cb59"),c=i("a33f"),l=i("f4fd"),u=i("e70c"),d=(i("ee7c"),i("081b")),p=i("4a14"),h=i("d85e"),f=i("5484"),g=i("f446"),v=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-dialog",{attrs:{title:"",visible:t.isShowCheck,width:"630px",center:!0,top:"20vh","before-close":t.handleConfirm,"close-on-click-modal":!1,"close-on-press-escape":!1,customClass:"flight-time-tips"}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("div",{staticClass:"tips-tit"},[t._v("联系方式核验")])]),t._l(t.checkInfo,(function(e,a){return i("div",{key:a,staticClass:"content",attrs:{id:"checkLoading"}},[i("div",{staticClass:"header"},[i("i",{staticClass:"iconfont icon-tuigaiqian"}),t._v("\n\t\t\t乘车人联系方式需要核验\n\t\t")]),i("div",{staticClass:"tips"},[t._v("铁路部门最新规定，乘车人需进行手机号核验，否则无法购票")]),i("div",{staticClass:"check-block"},[i("p",[t._v("请按照下方提示完成核验")]),i("div",{staticClass:"step-content"},[i("div",{staticClass:"step dtg-flex"},[i("p",{staticClass:"step-num dtg-flex dtg-align-center dtg-justify-center"},[t._v("1")]),i("p",{staticClass:"step-name"},[t._v("发送短信")])]),i("div",{staticClass:"step-info"},[i("div",{staticClass:"step-info-line"},[t._v("\n\t\t\t\t\t\t请通知"),i("span",[t._v(t._s(e.name))]),t._v("，使用"),i("span",[t._v(t._s(e.mobile))]),t._v("在30分钟内向"),i("span",[t._v("12306")]),t._v("发 送下方短信验证码完成核验\n\t\t\t\t\t")])]),i("div",{staticClass:"step dtg-flex"},[i("p",{staticClass:"step-num dtg-flex dtg-align-center dtg-justify-center"},[t._v("2")]),i("p",{staticClass:"step-name"},[t._v("验证码")])]),i("div",{staticClass:"check-code dtg-flex"},[i("P",{staticClass:"code dtg-flex dtg-align-center dtg-justify-center"},[t._v(t._s(e.captcha))]),i("p",{staticClass:"copy dtg-flex dtg-align-center dtg-justify-center",attrs:{id:"copyBtn","data-clipboard-text":e.captcha},on:{click:t.copyCaptcha}},[t._v("复制")])],1),i("p",{staticClass:"valid-time"},[t._v("验证码30分钟内有效")])])]),i("div",{staticClass:"check-block"},[i("p",[t._v("当前核验状态")]),1==e.checkStatus?i("div",{staticClass:"check-status dtg-flex dtg-align-center dtg-justify-center"},[i("i",{staticClass:"iconfont icon-checked-o"}),t._v("\n\t\t\t\t"+t._s(t.checkTxt(e.checkStatus))+"\n\t\t\t")]):i("div",{staticClass:"check-status check-fail dtg-flex dtg-align-center"},[i("i",{staticClass:"iconfont icon-tixing1"}),i("p",{staticClass:"check-fail-status dtg-flex-grow1"},[t._v(t._s(t.checkTxt(e.checkStatus)))]),i("p",{staticClass:"check-fail-update"},[i("span",[t._v(t._s(t.time)+"s ")]),t._v("后更新状态")])])])])})),i("div",{staticClass:"btn dtg-flex dtg-align-center dtg-justify-center",class:{"success-btn":t.checkInfo[0]&&1==t.checkInfo[0].checkStatus},on:{click:function(e){return t.checkResult()}}},[t._v("\n\t\t  我已核验状态，刷新结果\n\t  ")])],2)],1)},m=[],y={props:["isShow","tipsData"],data:function(){return{checkInfo:[],time:30,timer:null,isShowCheck:!1,loading:null,isLock:!1}},watch:{isShow:function(t){t?this.getTravelerVerifyCode():this.isShowCheck=!1}},methods:{stopCountdown:function(){clearInterval(this.timer),this.timer=null},getTravelerVerifyCode:function(){var t=this;if(!this.isLock){this.isLock=!0,this.loading=this.$loading({target:"#checkLoading"}),this.time=30;var e={tempOrderNo:this.tipsData.tempOrderNo,passengers:[{guid:this.tipsData.guid,passengerType:this.tipsData.passengerType,passengerName:this.tipsData.passengerName,cretType:this.tipsData.cretType,cretNo:this.tipsData.cretNo}]};this.$http.post(l["a"].GetTravelerVerifyCode,e).then((function(e){t.isShowCheck=!0,t.isLock=!1,t.loading.close(),e.success&&e.result?(t.checkInfo=e.result.passengers,t.checkInfo&&t.checkInfo[0]&&1==t.checkInfo[0].checkStatus?(t.stopCountdown(),setTimeout((function(){t.$emit("confirm",t.tipsData)}),1e3)):(t.time=30,t.timer||(t.timer=setInterval((function(){t.countDown()}),1e3)))):t.$alert(e.message,"提示")})).catch((function(){t.isLock=!1,t.loading.close()}))}},checkTxt:function(t){var e="";return 1==t?e="核验通过":2==t?e="核验失败":3==t?e="待完善":4==t?e="待核验":5==t?e="请报验":6==t?e="预通过":7==t&&(e="待核验"),e},checkResult:function(){this.getTravelerVerifyCode()},countDown:function(){this.checkInfo&&this.checkInfo[0]&&1==this.checkInfo[0].checkStatus||(0==this.time?(this.getTravelerVerifyCode(),this.time=30):this.time--)},copyCaptcha:function(t){var e=this,i=new this.clipboard("#copyBtn");i.on("success",(function(){e.$message({message:"复制成功！",type:"success"}),i.destroy()})),i.on("error",(function(){e.$message.close(),e.$message({message:"复制失败！",type:"error"}),i.destroy()}))},handleConfirm:function(){this.stopCountdown(),this.$emit("close",!0)}}},C=y,b=(i("56fe"),i("2877")),T=Object(b["a"])(C,v,m,!1,null,"f1901072",null),_=T.exports,k=i("4415"),w=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isShowInsurance&&t.passengerCount>0?i("div",{staticClass:"block insurance"},[i("h3",[t._v("保险 "),i("span",{staticClass:"book2-info-tip"},[1==t.travelType?[t._v("\n\t\t  护您周全，使您安心\n        ")]:t._e(),2==t.travelType?[t._v("\n\t\t  护您周全，使您安心\n        ")]:t._e()],2)]),i("div",{staticClass:"con insurance-block"},t._l(t.bookInfos,(function(e,a){return i("div",{key:a,staticClass:"insurance-item"},[t.bookInfos.length>1?i("div",{staticClass:"trip-info"},[0==a?i("span",{staticClass:"trip-txt go"},[t._v("去")]):t._e(),1==a?i("span",{staticClass:"trip-txt back"},[t._v("返")]):t._e(),i("span",[t._v(t._s(e.departCityName)+" - "+t._s(e.arriveCityName))])]):t._e(),i("div",{staticClass:"ins-item-content"},t._l(e.insuranceList,(function(e,a){return i("div",{key:a,staticClass:"content-item dtg-flex"},[i("div",{staticClass:"con-item-info dtg-flex-grow1"},[i("div",{staticClass:"con-item-name"},[i("span",{staticClass:"name"},[t._v(t._s(e.name))]),i("el-popover",{attrs:{placement:"bottom-start",trigger:"hover","popper-class":"dtg-popper",width:"500"},on:{show:function(i){return t.insuranceShow(e)}}},[i("div",{staticClass:"reamrk-con"},[i("div",{domProps:{innerHTML:t._s(e.clause)}}),e.detailsClauseURL?i("div",{staticClass:"link-btn"},[i("a",{attrs:{href:e.detailsClauseURL,target:"_blank"}},[t._v("查看保险条款")])]):t._e()]),i("span",{staticClass:"iconfont icon-problem",attrs:{slot:"reference"},slot:"reference"})]),2==e.buyType?i("span",{staticClass:"tag-item"},[t._v("赠送")]):t._e(),e.recommendTag?i("span",{staticClass:"con-item-tag"},[t._v(t._s(e.recommendTag))]):t._e()],1),e.maxCoverage?i("div",{staticClass:"con-item-maxCoverage"},[i("span",{staticClass:"iconfont icon-Shapecopy"}),t._v("\n\t\t\t\t\t最高保额"),i("span",[t._v("￥"+t._s(e.maxCoverage))])]):t._e(),e.advertisement?i("div",{staticClass:"con-item-remark",attrs:{title:e.advertisement}},[i("span",{staticClass:"iconfont icon-Shapecopy"}),t._v("\n\t\t\t\t\t"+t._s(e.advertisement)+"\n\t\t\t\t")]):t._e()]),i("div",{staticClass:"con-item-td con-item-price",attrs:{title:e.name},on:{click:function(i){return t.handleInsCheckChange(e)}}},[i("span",[t._v("¥"+t._s(e.salesPrice)+"/份")]),t.passengerCount&&5==t.productType?i("span",{staticClass:"p-num"},[t._v(" * "+t._s(t.passengerCount*t.tripCount))]):t._e(),t.passengerCount&&5!=t.productType?i("span",{staticClass:"p-num"},[t._v(" * "+t._s(t.passengerCount))]):t._e(),2!=e.buyType?[e.disabled?[i("span",{staticClass:"iconfont icon-checked-o check-box disabled"})]:[i("span",{staticClass:"iconfont icon-danxuan1 check-box",class:{checked:e.checked}})]]:t._e()],2)])})),0)])})),0)]):t._e()},N=[],x={props:{travelType:{type:Number,default:1},isShowInsurance:{type:Boolean,default:!1},passengerCount:{type:Number,default:0},bookInfos:{type:Array,default:function(){return[]}},productType:{type:Number,default:0},tripCount:{type:Number,default:1}},data:function(){return{}},created:function(){},methods:{handleInsCheckChange:function(t){0!=t.isSelect&&(t.checked=!t.checked,this.$emit("select",t),Object(s["a"])(this.$http,[{eventCode:t.checked?"TrainTicket_Insurance_Tick":"TrainTicket_Insurance_Cancel",entranceCode:t.checked?"TrainTicketInsuranceTick":"TrainTicketInsuranceCancel",eventType:2,dynamicEventName:t.name||""}]))},insuranceShow:function(t){Object(s["a"])(this.$http,[{eventCode:"TrainTicket_Insurance_Detail",entranceCode:"TrainTicketInsuranceDetail",eventType:2,dynamicEventName:t.name||""}])}}},S=x,L=(i("defc"),Object(b["a"])(S,w,N,!1,null,"e5f19ab4",null)),I=L.exports,D=i("9f64"),P=i("6323"),E=i("98bc"),O=i("acdb"),V=i("9753"),$=i("234d");function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function A(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */A=function(){return e};var t,e={},i=Object.prototype,a=i.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},s="function"==typeof Symbol?Symbol:{},r=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function u(t,e,i,a){var s=e&&e.prototype instanceof m?e:m,r=Object.create(s.prototype),o=new D(a||[]);return n(r,"_invoke",{value:x(t,i,o)}),r}function d(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",g="completed",v={};function m(){}function y(){}function C(){}var b={};l(b,r,(function(){return this}));var T=Object.getPrototypeOf,_=T&&T(T(P([])));_&&_!==i&&a.call(_,r)&&(b=_);var k=C.prototype=m.prototype=Object.create(b);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function N(t,e){function i(n,s,r,o){var c=d(t[n],t,s);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==R(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){i("next",t,r,o)}),(function(t){i("throw",t,r,o)})):e.resolve(u).then((function(t){l.value=t,r(l)}),(function(t){return i("throw",t,r,o)}))}o(c.arg)}var s;n(this,"_invoke",{value:function(t,a){function n(){return new e((function(e,n){i(t,a,e,n)}))}return s=s?s.then(n,n):n()}})}function x(e,i,a){var n=p;return function(s,r){if(n===f)throw Error("Generator is already running");if(n===g){if("throw"===s)throw r;return{value:t,done:!0}}for(a.method=s,a.arg=r;;){var o=a.delegate;if(o){var c=S(o,a);if(c){if(c===v)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(n===p)throw n=g,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n=f;var l=d(e,i,a);if("normal"===l.type){if(n=a.done?g:h,l.arg===v)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(n=g,a.method="throw",a.arg=l.arg)}}}function S(e,i){var a=i.method,n=e.iterator[a];if(n===t)return i.delegate=null,"throw"===a&&e.iterator.return&&(i.method="return",i.arg=t,S(e,i),"throw"===i.method)||"return"!==a&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var s=d(n,e.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,v;var r=s.arg;return r?r.done?(i[e.resultName]=r.value,i.next=e.nextLoc,"return"!==i.method&&(i.method="next",i.arg=t),i.delegate=null,v):r:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function P(e){if(e||""===e){var i=e[r];if(i)return i.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,s=function i(){for(;++n<e.length;)if(a.call(e,n))return i.value=e[n],i.done=!1,i;return i.value=t,i.done=!0,i};return s.next=s}}throw new TypeError(R(e)+" is not iterable")}return y.prototype=C,n(k,"constructor",{value:C,configurable:!0}),n(C,"constructor",{value:y,configurable:!0}),y.displayName=l(C,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,C):(t.__proto__=C,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},w(N.prototype),l(N.prototype,o,(function(){return this})),e.AsyncIterator=N,e.async=function(t,i,a,n,s){void 0===s&&(s=Promise);var r=new N(u(t,i,a,n),s);return e.isGeneratorFunction(i)?r:r.next().then((function(t){return t.done?t.value:r.next()}))},w(k),l(k,c,"Generator"),l(k,r,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),i=[];for(var a in e)i.push(a);return i.reverse(),function t(){for(;i.length;){var a=i.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=P,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var i in this)"t"===i.charAt(0)&&a.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var i=this;function n(a,n){return o.type="throw",o.arg=e,i.next=a,n&&(i.method="next",i.arg=t),!!n}for(var s=this.tryEntries.length-1;s>=0;--s){var r=this.tryEntries[s],o=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var c=a.call(r,"catchLoc"),l=a.call(r,"finallyLoc");if(c&&l){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(c){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var s=n;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=e&&e<=s.finallyLoc&&(s=null);var r=s?s.completion:{};return r.type=t,r.arg=e,s?(this.method="next",this.next=s.finallyLoc,v):this.complete(r)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),I(i),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var a=i.completion;if("throw"===a.type){var n=a.arg;I(i)}return n}}throw Error("illegal catch attempt")},delegateYield:function(e,i,a){return this.delegate={iterator:P(e),resultName:i,nextLoc:a},"next"===this.method&&(this.arg=t),v}},e}function M(t,e,i,a,n,s,r){try{var o=t[s](r),c=o.value}catch(l){return void i(l)}o.done?e(c):Promise.resolve(c).then(a,n)}function j(t){return function(){var e=this,i=arguments;return new Promise((function(a,n){var s=t.apply(e,i);function r(t){M(s,a,n,r,o,"next",t)}function o(t){M(s,a,n,r,o,"throw",t)}r(void 0)}))}}function G(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function z(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?G(Object(i),!0).forEach((function(e){B(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):G(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function B(t,e,i){return e=H(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function H(t){var e=F(t,"string");return"symbol"==R(e)?e:e+""}function F(t,e){if("object"!=R(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var a=i.call(t,e||"default");if("object"!=R(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var W={components:{dtgTravelForm:p["a"],PersonalPassenger:h["a"],thirdLogin:f["a"],checkDialog:g["a"],dtgBookTransfer:k["a"],BookInsurance:I,dtgPassenger:D["a"],WarningTips:P["a"],submitItems:E["a"],insuranceConfirm:V["a"],ruleDialog:$["a"],passengerCheckDialog:_,oneOrder:O["a"]},data:function(){return{tempOrderNo:"",isLoading:!0,loadingTxt:"加载中...",submiting:!1,trainInfo:{departTimeStruct:{},arriveTimeStruct:{}},passengerList:[],priceData:{switchDetail:!0,passengerCount:1,listData:[]},isAcceptNoSeat:0,onlineSeatData:[],tempLastSeat:{},selectedSeat:[],paymentTypeList:[],selectPayment:1,contactList:[],birthDateOptions:{disabledDate:function(t){return t.getTime()>(new Date).getTime()}},foulReasonList:[],selectedReason:0,reasonRemark:"",showReasonRemark:!1,remakRequired:!1,ruleViolate:{violate:!1,detail:[]},isTravelControl:!1,travelApplyOrderList:[],expiryDateOptons:{disabledDate:function(t){return t.getTime()<(new Date).getTime()}},lastArriveDate:"",countryList:[],subLoading:!1,ruleViolationTipTitle:"超标",travelType:1,personalPConfig:{tempOrderNo:"",type:5},isInconformity:!1,importDialogVisible:!1,verificationResult:{type:2,messageBoxStype:2,typeText:"",passengerName:"",mobile:"",messageTextList:{key1:""}},railway:{railwayAccountLoginStatus:0,showRailWayAccount:"",buyMode:0,buyModeTip:"",trainAgentBuyEnable:!1},thirdLoginShow:!1,userInfo:{userName:"",bindUserName:""},trainTravelList:[],verTipsConfig:{show:!1,data:{}},passengerVerTipsConfig:{show:!1,data:{}},thirdLoginConfig:{account:"",pwd:""},travelerLoading:!1,transferData:{newTip1:"",newServiceConfigList:[]},transferDataResult:null,passengerItemData:{},personalPassengerList:[],insuranceConfig:{isShowInsurance:!1,bookInfoList:[]},selectedInsurance:[],selectedReasonItem:{},bookMode:0,paymentConfig:0,isCanSubmit:!1,invoiceInfo:{title:"",description:"",descriptionExt:""},infoTipsParams:{},submitData:{isShowDialog:!1,submitItems:[],approvalInfo:{},travelOrder:{},priceInfo:{},approveFlowInfoList:[],defaultRule:{},maxAttachmentCount:1},loadingObj:"",bookType:0,isCloseSubmitDialog:!1,travelOrderNo:"",isPassCheckTrainExist:!1,isNeedConfirmation:!1,insuranceIds:[],nextStepShow:!1,groupPrice:{companyPrice:0,personalPrice:0},rightLeft:"",pageTop:"",isCeiling:!1,priceHeight:"",trainRuleInfoList:[],tabTitleList:[],insuranceDetailList:[],bookInfoList:[],bookExtendInfo:{}}},created:function(){this.tempOrderNo=this.$route.query.tempOrderNo||"",this.personalPConfig.tempOrderNo=this.tempOrderNo,this.initPageData();var t=this.$sessionStorage.get("TmpUserInfo");t&&(t.systemConfig&&(this.ruleViolationTipTitle=t.systemConfig.ruleViolationTipTitle),this.paymentConfig=t.settlementControlMode)},watch:{passengerList:function(){this.isPassCheckTrainExist=!1,this.getTrainPriceV2(),this.trainInfo.allowChooseSeat&&this.resetOnlineSeatData(),this.modiflyPaymentData()}},computed:{trainBookStyle:function(){if(this.isCeiling){var t={};return this.pageTop<=0&&(t.position="fixed",t.top="-6px",t.left=this.rightLeft+"px"),t}},trainMoneyStyle:function(){var t={};return t.height=this.priceHeight+"px",t.overflow="auto",t}},mounted:function(){window.addEventListener("resize",this.pageResize,!0),window.addEventListener("scroll",this.pageScroll,!0)},destroyed:function(){window.removeEventListener("resize",this.pageResize,!0),window.removeEventListener("scroll",this.pageScroll,!0)},methods:{initPageData:function(){var t=this;this.getTrainTempOrder(),this.getCountryListData(),this.$nextTick((function(){t.pageResize(),t.pageScroll()}))},pageResize:function(){var t=1200+this.$refs.bookLeft.getBoundingClientRect().left-370;this.rightLeft=t},pageScroll:function(){this.pageTop=this.$refs.bookLeft.getBoundingClientRect().top},getCountryListData:function(){var t=this;this.$http.get(u["a"].GetCountryList,{}).then((function(e){e.success&&(t.countryList=e.result.countryList)}))},getTrainTempOrder:function(){var t=this,e={tempOrderNo:this.tempOrderNo,type:1};this.$http.get(l["a"].GetTrainTicketOrderTemp,{params:e}).then((function(e){if(t.isLoading=!1,e.success){var i=e.result;t.travelType=i.travelType,t.isTravelControl=i.isTravelControl,t.bookMode=i.bookMode||0,t.trainInfo=i.bookInfos[0],t.bookInfoList=i.bookInfos;var a=i.trainRuleStatementInfoList||[];if(t.trainRuleInfoList=a,1==t.travelType&&0==t.bookMode?t.passengerList=t.processPassengerData(i.passengerList):i.passengerList.length&&(t.passengerItemData=i.passengerList[0]),t.onlineSeatData=t.trainInfo.trainChooseSeatInfo.chooseSeatLines,t.bookExtendInfo=i.bookExtendInfo,t.bookExtendInfo.ruleViolate&&(t.ruleViolate={violate:t.bookExtendInfo.ruleViolate,detail:t.bookExtendInfo.trainRuleViolateDetailList},t.foulReasonList=t.bookExtendInfo.foulReasonList||[],t.foulReasonList.unshift({id:0,reason:"请选择"+t.ruleViolationTipTitle+"原因"})),t.contactList=[],t.contactList.push({contactName:i.name,contactPhone:i.mobilePhone,mobileDiallingCode:i.mobileDiallingCode,contactEmail:i.email,phoneValidate:!1,phoneErrorMsg:"",nameValidate:!1,nameErrorMsg:""}),i.travelApplyOrder.travelApplyNo&&(t.travelApplyOrderList=[i.travelApplyOrder]),t.lastArriveDate=t.trainInfo.arriveTimeStruct.fullDate,t.railway={railwayAccountLoginStatus:i.railwayAccountLoginStatus,showRailWayAccount:i.showRailWayAccount,buyMode:i.buyMode,buyModeTip:i.buyModeTip,trainAgentBuyEnable:i.trainAgentBuyEnable},0!=t.railway.buyMode&&1!=t.railway.buyMode||(2==t.railway.railwayAccountLoginStatus?(t.userInfo.userName=t.railway.showRailWayAccount,t.getTrainTravelListData()):1==t.railway.railwayAccountLoginStatus&&(t.userInfo.bindUserName=t.railway.showRailWayAccount),1==t.railway.buyMode&&t.railway.showRailWayAccount&&1==t.railway.railwayAccountLoginStatus&&t.railwayAutoLogin()),i.transferInfo){t.transferData.newTip1=i.transferInfo.newTip1;var n=i.transferInfo.newServiceConfigList||[];t.transferData.newServiceConfigList=n.map((function(t){return z(z({},t),{},{remarkValue:""})})),t.transferDataResult=t.transferData.newServiceConfigList}t.processInsuranceData(i.bookInfos),t.infoTipsParams={isTipbar:!0,fromCity:"",toCity:"",fromStation:i.searchParams.departStationCode,toStation:i.searchParams.arriveStationCode,matchText1:"",matchText2:"",departDate:t.trainInfo.departTime?t.trainInfo.departTimeStruct.fullDate:"",arriveDate:t.trainInfo.arriveTime?t.trainInfo.arriveTimeStruct.fullDate:"",entrance:43,productType:5,styles:"",barStyles:"margin: 10px 0 10px 0;"},setTimeout((function(){t.$nextTick((function(){var e="",i=window.innerHeight-230;t.$refs.bookRight&&(e=t.$refs.bookRight.offsetHeight),e<i&&(t.isCeiling=!0)}))}),1e3)}else t.$alert(e.message,"提示");t.getTrainPriceV2()}))},processInsuranceData:function(t){var e=this;t.forEach((function(t){var i=[];t.insuranceList.forEach((function(t,a){t.checked=1==t.isDefault,t.disabled=3==t.buyType,3==t.buyType&&(t.checked=!0),t.checked&&e.insuranceIds.push(t.insuranceId),i.push(z({},t)),1!=t.isDefault&&3!=t.buyType||Object(s["a"])(e.$http,[{eventCode:"TrainTicket_Insurance_Force",entranceCode:"TrainTicketInsuranceForce",eventType:2,dynamicEventName:t.name||""}])})),t.insuranceList=i,t.insuranceList.length&&(e.insuranceConfig.isShowInsurance=!0,Object(s["a"])(e.$http,[{eventCode:"TrainTicket_Insurance_Show",entranceCode:"TrainTicketInsuranceShow",eventType:1}]))})),this.insuranceConfig.bookInfoList=[t[0]],this.getInsuranceList()},bindName:function(t){t.isEnName&&t.isChangeEnName||this.$alert("仅贵司差旅负责人有权修改","提示",{confirmButtonText:"好的，了解",type:"info",center:!0})},railwayAutoLogin:function(){var t=this,e={tempOrderNo:this.tempOrderNo,accountNo:this.railway.showRailWayAccount,accountPwd:"",verificationCode:""};this.isLoading=!0,this.$http.post(l["a"].EmployeeRailwayLogin,e).then((function(e){t.isLoading=!1,e.success&&!e.result.needVerificationCode&&(t.userInfo.userName=t.bindUserName,t.railway.railwayAccountLoginStatus=2,t.getTrainTravelListData())}))},getTrainPriceV2:function(){var t=this,e=this.getInsuranceParams();this.selectedInsurance=e.map((function(t){return t.id}));var i={tempOrderNo:this.tempOrderNo,passengerCount:this.passengerList.length,insuranceList:this.selectedInsurance,travelerIdList:[]};if(1==this.paymentConfig){var a=this.passengerList.map((function(t){return t.employeeId}));i.travelerIdList=a}this.$http.post(l["a"].GetTrainPriceV2,i).then((function(e){if(e.success){if(t.paymentTypeList=e.result.paymentTypeList,t.invoiceInfo=e.result.invoiceInfo,t.paymentTypeList&&t.paymentTypeList.length>0){var i=t.paymentTypeList.find((function(t){return t.isSelect}));t.selectPayment=i?i.paymentType:t.paymentTypeList[0].paymentType,t.isCanSubmit=!0;var a=t.paymentTypeList.find((function(t){return 3==t.paymentType}));a&&(t.groupPrice={companyPrice:a.companyPrice,personalPrice:a.personalPrice})}var n=e.result.pricesDetailList.map((function(t,e){return z(z({},t),{},{insDetailsShow:0==e})}));t.priceData={switchDetail:!0,orderTotalPrice:e.result.totalPrice,passengerCount:t.passengerList.length,listData:n}}else t.paymentTypeList=[],t.isCanSubmit=!1,t.$alert(e.message,"提示")}))},getPayTypeMethods:function(t){this.selectPayment=t.paymentType},switchPriceDetail:function(){this.priceData.switchDetail=!this.priceData.switchDetail},handleNoSeatCheck:function(){this.isAcceptNoSeat=this.isAcceptNoSeat?0:1},chooseOnlineSeat:function(t,e,i,a){t.isSelected?this.removeSelectSeat(t):(this.selectedSeat.length==this.passengerList.length&&(this.onlineSeatData[this.tempLastSeat.i][this.tempLastSeat.k][this.tempLastSeat.j].isSelected=!1,this.removeSelectSeat(this.tempLastSeat.item)),this.selectedSeat.length==this.passengerList.length-1&&(this.tempLastSeat={item:t,i:e,k:i,j:a}),this.selectedSeat.push(t.code)),this.onlineSeatData[e][i][a].isSelected=!t.isSelected},removeSelectSeat:function(t){var e=this.selectedSeat.findIndex((function(e){return t.code==e}));this.selectedSeat.splice(e,1)},resetOnlineSeatData:function(){this.selectedSeat=[];for(var t=0;t<this.onlineSeatData.length;t++)for(var e=this.onlineSeatData[t],i=0;i<e.length;i++)for(var a=e[i],n=0;n<a.length;n++){var s=a[n];s.isSelected=!1}},handleReasonChange:function(t){var e=this.foulReasonList.filter((function(e){return e.id==t}));if(e.length){var i=e[0];this.selectedReasonItem=i,this.showReasonRemark=i.isAddBOX,this.remakRequired=i.addBoxRequired}},validateRuleReason:function(){var t=!0;if(this.ruleViolate.violate){if(!this.selectedReason)return this.$alert("请选择"+this.ruleViolationTipTitle+"原因","提示"),!1;if(this.remakRequired&&!this.reasonRemark)return this.$alert("请填写"+this.ruleViolationTipTitle+"原因备注信息","提示"),!1}return t},goToNextStep:function(t){if(!t)return this.$alert("请确认已阅读且同意，并确认被保人信息正确","提示",{type:"warning",center:!0,showClose:!1}),void this.$refs["insurance"].changeIconShow();this.nextStepShow=!0,this.submitOrder()},submitOrder:function(){var t=this;if(this.isCloseSubmitDialog&&this.$refs["oneOrder"].open(this.travelOrderNo),!this.submiting)if(1!=this.railway.buyMode||1!=this.railway.railwayAccountLoginStatus){if(2!=this.railway.buyMode&&2==this.railway.railwayAccountLoginStatus){var e=this.checkAllPassengerStatus();if(!e)return void this.$alert("请确保所有差旅人身份信息正确并且核验通过，否则无法预订！","提示",{type:"warning",callback:function(){}})}if(0!=this.paymentTypeList.length)if(this.validateRuleReason())if(this.passengerList.length){var i=this.validatePassenger(),a=this.validateContact();if(i&&a){var n=this.contactList.map((function(t){return{contactName:t.contactName,contactPhone:t.contactPhone,contactEmail:t.contactEmail}})),s=this.passengerList.map((function(e){var i=e.certificates.findIndex((function(t){return 1==t.selected}));i=-1!=i?i:0;var a=e.certificates[i].credentialNo,n=e.certificates[i].endTime;"string"==typeof n?(n=n.replace("T"," "),n=d["a"].format(n)):n=d["a"].format(n);var s=t.getInsuranceParams();return e.isEnName?e.selectName=e.enSurName.toUpperCase()+"/"+e.enGivenName.toUpperCase():e.selectName=e.name,{employeeId:e.employeeId,name:e.selectName,enSurName:e.enSurName?e.enSurName.toUpperCase():"",enGivenName:e.enGivenName?e.enGivenName.toUpperCase():"",cnSurName:e.cnSurName||"",cnGivenName:e.cnGivenName||"",credentialType:e.selectCredentialType,credentialNo:a,gender:e.gender,contactPhone:e.phone,birthday:d["a"].format(e.birthDate),insuranceList:s,contactEmail:e.email,identityExpiredDate:n,countryId:e.countryId,TCUniqueId:e.passengerGuid}})),r=this.transferDataResult;if(r&&r.length>0){if(1==r.length&&r[0].serviceName&&-1==r[0].selectedType)return void this.$confirm(r[0].newTip2,"提示",{confirmButtonText:"需要",cancelButtonText:"不需要",showClose:!1}).then((function(e){r[0].selectedType=1,t.submitOrder()})).catch((function(){r[0].selectedType=0,t.submitOrder()}));if(r.length>1){var o=r.filter((function(t){return-1==t.selectedType}));if(o&&o.length==r.length){var c=r.map((function(t){return t.serviceName}));return void this.$confirm("请确认是否需要".concat(c.join("/"),"?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1}).then((function(t){})).catch((function(){}))}}}if(!this.isNeedConfirmation||this.nextStepShow){var u={tempOrderNo:this.tempOrderNo,orderContactList:n,isAcceptNoSeat:this.isAcceptNoSeat,paymentType:this.selectPayment,chooseSeatsRule:this.selectedSeat.join(""),bookInfoList:[],passengerList:s,isPassCheckTrainExist:this.isPassCheckTrainExist};if(this.bookInfoList.forEach((function(e){var i={bookInfoStr:e.bookInfoStr,foulResonId:"",addFoulReason:""};e.ruleViolate&&(i.foulResonId=t.selectedReason,i.addFoulReason=t.reasonRemark),u.bookInfoList.push(i)})),this.transferDataResult&&this.transferDataResult.length){var p=this.transferDataResult.map((function(t){return{isNeed:t.selectedType,servieTypeId:t.servieTypeId,remark:t.remarkValue}}));u.collectInfoV2View=p}this.submiting=!0,this.subLoading=this.$loading({lock:!0,text:"提交订单..."}),this.$http.post(l["a"].CreateTrainOrder,u).then((function(e){if(t.subLoading.close(),e.success){var i=e.result.travelOrderNo;t.travelOrderNo=i;e.result.orderSerialNos[0];e.result.quickTicketing?(t.bookType=5,t.$refs["oneOrder"].open(i)):t.$router.push({path:"/center/submitschedule",query:{tripId:i,type:5}})}else if(t.subLoading.close(),t.submiting=!1,"900995"==e.code)t.verificationResult=e.result.verificationResult,t.importDialogVisible=!0;else if("500308"==e.code)t.isPassCheckTrainExist=!0,t.$alert(e.message,"温馨提示");else if("500307"==e.code){var a=e.result.conflictSegmentOrderSerialNo;a?t.$confirm(e.message,"提示",{confirmButtonText:"去处理",type:"info",center:!0}).then((function(){t.$router.push({path:"/order/train/detail",query:{orderId:a}})})).catch((function(){})):t.$alert(e.message,"提示")}else t.$alert(e.message,"提示")}),(function(){t.submiting=!1}))}else this.$refs["insurance"].open()}else i||this.$nextTick((function(){t.$refs.passengers.scrollIntoView()}))}else this.$alert("请添加乘车人","提示",{type:"warning",callback:function(){}});else this.$nextTick((function(){t.$refs.rulePolicy.scrollIntoView()}));else this.$alert("查无支付方式配置，请联系贵司差旅负责人或者专属客服处理","提示")}else this.handleErrorTips({code:"510004",message:"请登录12306账户"})},submitTravel:function(){var t=j(A().mark((function t(e){var i=this;return A().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.GetTravelBizOrderSubmitInfo(e,(function(t){var a=!1,n=!1;if(t.isSetHidden&&(a=t.ignoreApprovalInfo,n=t.ignoreSubmitItem),a&&n){for(var s=[],o=0;o<t.submitItems.length;o++){var c=t.submitItems[o],l={code:c.code,contentId:c.contentId,type:c.type,content:c.contentValue,attachmentList:c.attachmentList||[]};s.push(l)}var u=e,d={travelOrderNo:u,submitItemList:s};return i.btnShow=!1,void i.$http.post(r["a"].SubmitTravelBizOrder,d).then((function(t){t.success?i.$router.push({path:"/center/travelView",query:{tripId:u,isTip:1,bookType:5}}):(i.$alert(t.message,"提示"),i.btnShow=!0)}))}i.submitData.approvalInfo={needApproval:t.needApproval,approvalPersons:t.approvalPersons,approvalType:t.approvalType,submintContext:t.submintContext,isSetSubmitItem:t.isSetSubmitItem,ignoreApprovalMode:t.ignoreApprovalMode,ignoreApprovalInfo:a,ignoreSubmitItem:n},t.submitItems.forEach((function(t){3!=t.showRule&&4!=t.showRule||(t.searchOptions=[],t.contentValue?t.searchOptions=[{label:t.contentValue,value:t.contentId,path:""}]:t.contentId="")})),i.submitData.submitItems=t.submitItems,i.submitData.submitItems.forEach((function(t,e){8==t.type&&(i.submitData.maxAttachmentCount=t.maxAttachmentCount)})),i.submitData.travelOrder={travelOrderNo:e},i.submitData.isShowDialog=!0,i.submitData.priceInfo={companysPrice:t.companysPrice,personalPrice:t.personalPrice,payAtHotelPrice:t.payAtHotelPrice,totalPrice:t.totalPrice},i.submitData.approveFlowInfoList=t.approveFlowInfoList,i.submitData.defaultRule=z(z({},t.defaultRule),{},{layoutSetting:t.layoutSetting})}));case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),GetTravelBizOrderSubmitInfo:function(){var t=j(A().mark((function t(e,i){var a,n=this;return A().wrap((function(t){while(1)switch(t.prev=t.next){case 0:a={travelOrderNo:e},this.$http.get(r["a"].GetTravelBizOrderSubmitInfo,{params:a}).then((function(t){t.success?i&&i(t.result):n.$alert(t.message,"提示")})).catch((function(){}));case 2:case"end":return t.stop()}}),t,this)})));function e(e,i){return t.apply(this,arguments)}return e}(),closeOneOrder:function(){this.isCloseSubmitDialog=!0},closeSubmitDialog:function(){this.isCloseSubmitDialog=!0,this.submitData.isShowDialog=!1},notSubmitFn:function(){this.isCloseSubmitDialog=!0},bindNameType:function(t){t.isEnName=!t.isEnName,t.isEnName?(t.selectName=(t.enSurName+"/"+t.enGivenName).toUpperCase(),1==t.selectCredentialType&&(t.selectCredentialType=3,t.selectName=t.name)):t.selectName=t.name,this.handleCredengialType(t.selectCredentialType,t),this.passengerList=this.passengerList.concat([])},addContact:function(){if(8!=this.contactList.length){var t={contactName:"",contactPhone:"",contactEmail:"",mobileDiallingCode:"86",phoneValidate:!1,phoneErrorMsg:"",nameValidate:!1,nameErrorMsg:""};this.contactList.push(t)}else this.$alert("抱歉，最多只能添加8个联系人","提示")},deleteContact:function(t){this.contactList.splice(t,1)},validateContact:function(){var t=!0;return this.contactList.forEach((function(e){var i=o["a"].validateName(e.contactName);e.nameValidate=i.result,e.nameErrorMsg=i.msg;var a=o["a"].validatePhone(e.contactPhone,!0,"请正确输入中国大陆手机号码");e.phoneValidate=a.result,e.phoneErrorMsg=a.msg,(i.result||a.result)&&(t=!1)})),t},blurValidateContact:function(t,e){if("phone"==t){var i=o["a"].validatePhone(e.contactPhone,!0,"请正确输入中国大陆手机号码");e.phoneValidate=i.result,e.phoneErrorMsg=i.msg}else if("name"==t){var a=o["a"].validateName(e.contactName);e.nameValidate=a.result,e.nameErrorMsg=a.msg}},processPassengerData:function(t){var e=this,i=[];return t.forEach((function(t){t.nameList=[t.name,t.enName],t.genderList=[{id:1,type:"男"},{id:0,type:"女"}];var a=t.certificates.find((function(t){return 1==t.selected}));t.certificates.forEach((function(t){"1900-01-01T00:00:00"==t.endTime&&(t.endTime="")})),t.credentialNo=a?a.credentialNo:"",t.selectCredentialType=a?a.credentialType:1,t.originCredentialNo=t.credentialNo,t.originPhone=t.phone,t.phoneValidate=!1,t.phoneErrorMsg="",t.credentiaValidate=!1,t.credentialErrorMsg="",t.birthDayValidate=!1,t.birthDayErrorMsg="",t.endTimeValidate=!1,t.endTimeErrorMsg="",t.enSurNameValidate=!1,t.enSurNameErrorMsg="",t.enGivenNameValidate=!1,t.enGivenNameErrorMsg="",t.zhNameValidate=!1,t.zhNameErrorMsg="",t.checkStatus=0,t.checkStatusTxt="",t.phoneNo="",t.passengerType="",t.railWayIndex=-1,t.passengerGuid="",[1,9,12].indexOf(t.selectCredentialType),t.enSurName&&t.enGivenName&&(2!=e.travelType||2==e.travelType&&0==t.employeeType)?t.isChangeEnName=!1:t.isChangeEnName=!0,i.push(z({},t))})),i},isShowOverlay:function(t){if(t.isEnName){if(!t.isChangeEnName)return!0}else{if(2!=this.travelType)return!0;if(0==t.employeeType)return!0}return!1},disabledZhName:function(t){return 2!=this.travelType||2==this.travelType&&0==t.employeeType},validatePassenger:function(){var t=this,e=!0;return this.passengerList.forEach((function(i){var a=-1==i.phone.indexOf("*")||i.originPhone!=i.phone||"86"!=i.mobileDiallingCode,n=o["a"].validatePhone(i.phone,a,"请正确输入中国大陆手机号码");i.phoneValidate=n.result,i.phoneErrorMsg=n.msg;var s=o["a"].validateCredentialNo(i);if(i.credentialValidate=s.result,i.credentialErrorMsg=s.msg,1!=i.selectCredentialType){var r=o["a"].validateCredentialEndTime(i,t.lastArriveDate);i.endTimeValidate=r.result,i.endTimeErrorMsg=r.msg;var c=o["a"].validateBirthDay(i);i.birthDayValidate=c.result,i.birthDayErrorMsg=c.msg,(c.result||r.result)&&(e=!1)}if(i.isEnName){var l=o["a"].validateSurGivenName(i.enSurName,i.enGivenName,1);i.enSurNameValidate=l.result,i.enSurNameErrorMsg=l.msg;var u=o["a"].validateSurGivenName(i.enSurName,i.enGivenName,2);i.enGivenNameValidate=u.result,i.enGivenNameErrorMsg=u.msg,(l.result||u.result)&&(e=!1)}else{var d=o["a"].validateZhName(i.name);i.zhNameValidate=d.result,i.zhNameErrorMsg=d.msg,d.result&&(e=!1)}(n.result||s.result)&&(e=!1)})),e},blurValidatePassenger:function(t,e){var i=this;if("phone"==t){e.phone||-1==e.originPhone.indexOf("*")||(e.phone=e.originPhone);var a=-1==e.phone.indexOf("*")||e.originPhone!=e.phone||"86"!=e.mobileDiallingCode,n=o["a"].validatePhone(e.phone,a,"请正确输入中国大陆手机号码");e.phoneValidate=n.result,e.phoneErrorMsg=n.msg,2==this.travelType&&this.$nextTick((function(){i.matchingPrivateTraveler()}))}else if("number"==t){var s=e.certificates.find((function(t){return 1==t.selected}));s&&!s.credentialNo&&-1!=e.originCredentialNo.indexOf("*")?(s.credentialNo=e.originCredentialNo,e.credentialNo=s.credentialNo,this.matchingTraveler(),2==this.travelType&&this.$nextTick((function(){i.matchingPrivateTraveler()}))):(e.credentialNo=s.credentialNo,this.matchingTraveler(),2==this.travelType&&this.$nextTick((function(){i.matchingPrivateTraveler()})));var r=o["a"].validateCredentialNo(e);e.credentialValidate=r.result,e.credentialErrorMsg=r.msg}else if("birthDay"==t){var c=o["a"].validateBirthDay(e);e.birthDayValidate=c.result,e.birthDayErrorMsg=c.msg}else if("endTime"==t){var l=o["a"].validateCredentialEndTime(e,this.lastArriveDate);e.endTimeValidate=l.result,e.endTimeErrorMsg=l.msg}else if("surname"==t){var u=o["a"].validateSurGivenName(e.enSurName,e.enGivenName,1);e.enSurNameValidate=u.result,e.enSurNameErrorMsg=u.msg}else if("givenname"==t){var d=o["a"].validateSurGivenName(e.enSurName,e.enGivenName,2);e.enGivenNameValidate=d.result,e.enGivenNameErrorMsg=d.msg}else if("zhName"==t){var p=o["a"].validateZhName(e.name);e.zhNameValidate=p.result,e.zhNameErrorMsg=p.msg}},handleCredengialType:function(t,e){e.certificates.forEach((function(i){i.selected=!1,i.credentialType==t&&(i.selected=!0,e.originCredentialNo=i.credentialNo,e.credentialNo=i.credentialNo)})),1==t&&(e.selectName=e.name,e.isEnName=!1),this.blurValidatePassenger("number",e),1!=t&&this.blurValidatePassenger("endTime",e)},inputEnName:function(t,e){e.enSurName=e.enSurName.toUpperCase(),e.enGivenName=e.enGivenName.toUpperCase(),e.selectName=(e.enSurName+"/"+e.enGivenName).toUpperCase()},inputZhName:function(t,e){e.selectName=e.name,e.cnSurName=this.checkName(t)[0],e.cnGivenName=this.checkName(t)[1]},checkName:function(t){var e=Object(c["d"])(t);return[e.firstname,e.lastname]},handleNameChange:function(t,e){t==e.enName?(e.selectCredentialType=3,e.certificates.forEach((function(t){t.selected=!1,t.isHide=!1,3==t.credentialType&&(t.selected=!0,e.credentialNo=t.credentialNo,e.credentialType=t.credentialType,e.originCredentialNo=t.credentialNo),1==t.credentialType&&(t.isHide=!0)}))):e.certificates.forEach((function(t){t.isHide=!1})),this.matchingTraveler()},deletePassenger:function(t,e){2!=this.travelType&&1!=this.bookMode||this.$refs.personalPassenger.deletePassenger(e.employeeId),this.passengerList.splice(t,1),this.matchingTraveler()},selectPersonalPassenger:function(t){if(!t.selected&&this.passengerList.length>=5)this.$refs.personalPassenger.messageTips("一个订单最多选择5位乘车人",2e3);else{t.selected=!t.selected,[1,9,12].indexOf(t.selectCredentialType),this.$refs.personalPassenger.selectedRecodeList(t);var e=this.processPassengerData([t])[0];if(t.selected)this.passengerList.push(z({},e));else{var i=this.passengerList.findIndex((function(t){return t.employeeId==e.employeeId}));this.passengerList.splice(i,1)}this.matchingTraveler()}},handleChooseRailway:function(t){t.employeeData?this.selectPersonalPassenger(t.employeeData):this.quickAddPersonalPassenger(t)},quickAddPersonalPassenger:function(t){this.$refs.personalPassenger.dialogTitle="添加到因私出行人",this.$refs.personalPassenger.dialogShow=!0,this.$refs.personalPassenger.formData={country:1,firstName:t.passengerName.substring(0,1),lastName:t.passengerName.substring(1),identityType:t.cretType,identityNo:-1!=t.certNo.indexOf("*")?"":t.certNo,expiryDate:"",gender:"M"==t.sexCode?1:0,birthDate:"",mobile:-1!=t.phoneNo.indexOf("*")?"":t.phoneNo,mobileDiallingCode:"86",email:""}},confirmSms:function(){this.importDialogVisible=!1},handleCredentialNoFocus:function(t,e){-1!=e.credentialNo.indexOf("*")&&t.originCredentialNo==e.credentialNo&&(e.credentialNo="")},handlePhoneFocus:function(t){-1!=t.phone.indexOf("*")&&t.originPhone==t.phone&&(t.phone="")},toThirdLogin:function(){this.railway.showRailWayAccount&&(this.thirdLoginConfig={account:this.railway.showRailWayAccount,pwd:"*******************"}),this.thirdLoginShow=!0},closeDialog:function(){this.thirdLoginShow=!1},getTrainTravelListData:function(t,e){var i=this,a={tempOrderNo:this.tempOrderNo,queryType:t||0};this.travelerLoading=!0,this.trainTravelList=[],this.$http.post(l["a"].GetRailwayTravelers,a).then((function(t){i.travelerLoading=!1,t.success&&t.result.railwayTravelerList?(t.result.railwayTravelerList.forEach((function(t,e){t.index=e,t.selected=!1,t.employeeData="",i.trainTravelList.push(t)})),i.matchingTraveler(e),2==i.travelType&&i.matchingPrivateTraveler()):i.handleErrorTips(t)}))},matchingTraveler:function(t){var e=this;this.passengerList.forEach((function(t){var i=e.trainTravelList.find((function(e){var i=4,a=3;1!=e.cretType&&(i=2,a=2);var n=e.certNo.substring(0,i),s=e.certNo.substring(e.certNo.length-a),r=t.credentialNo.substring(0,i),o=t.credentialNo.substring(t.credentialNo.length-a),c=n==r&&s==o,l=e.passengerName.replace("/","").toLowerCase(),u=t.selectName.replace("/","").toLowerCase();return l==u&&c}));i?(-1!=i.certNo.indexOf("*")&&e.updateTrainTraveler(t,i),t.checkStatus=i.checkStatus,t.phoneNo=i.phoneNo,t.passengerType=i.passengerType,t.checkStatusTxt=e.getCheckStatusTxt(i.checkStatus),t.railWayIndex=i.index,t.passengerGuid=i.passengerGuid):(t.checkStatus=0,t.checkStatusTxt="去添加",t.phoneNo="",t.passengerType="",t.railWayIndex=-1,t.passengerGuid=""),1!=t.checkStatus&&!1}))},updateTrainTraveler:function(t,e){var i=this,a={tempOrderNo:this.tempOrderNo,employeeId:t.employeeId,passengerName:t.selectName,passengerType:e.passengerType,cretType:t.selectCredentialType,railWayCretNo:e.certNo};this.$http.post(l["a"].UpdateTraverCret,a).then((function(t){t.success||i.handleErrorTips(t)}))},getCheckStatusTxt:function(t){var e="";return 1==t?e="已通过":2==t?e="未通过":3==t?e="手机待完善":4==t?e="待核验":5==t?e="请报验":6==t?e="预通过":7==t&&(e="去核验手机"),e},checkStatusPass:function(t){return"已通过"==t||"预通过"==t},checkStatusFail:function(t){return"待核验"==t||"未通过"==t||"请报验"==t||"手机待完善"==t},checkAllPassengerStatus:function(){for(var t=!0,e=0;e<this.passengerList.length;e++){var i=this.passengerList[e];if(1!=i.checkStatus){t=!1;break}}return t},handleTravelerOperate:function(t){t.certificates&&t.certificates.length>0&&t.certificates.map((function(e){return e.credentialType==t.selectCredentialType&&("string"==typeof e.endTime?(t.credentialEndTime=e.endTime.replace("T"," "),t.credentialEndTime&&(t.credentialEndTime=d["a"].format(t.credentialEndTime))):t.credentialEndTime=d["a"].format(e.endTime)),e})),"去添加"==t.checkStatusTxt?this.goHandleAddTraveler(t,0):"去核验手机"==t.checkStatusTxt&&this.goHandleVerification(t,0)},goHandleVerification:function(t,e){var i=this,a={tempOrderNo:this.tempOrderNo,passengers:[{guid:t.passengerGuid,passengerType:t.passengerType,passengerName:t.selectName,cretType:t.selectCredentialType,cretNo:t.credentialNo}]};if(t.countryId){var n=this.countryList.find((function(e){return e.id==t.countryId}));n&&(a.country=n.code)}this.showLoading("核验中..."),this.$http.post(l["a"].GetTravelerVerifyCode,a).then((function(a){if(i.hideLoading(),a.success){var n=a.result.passengers||"";if(n&&n[0]&&7==n[0].checkStatus&&n[0].mobile){var s={guid:t.passengerGuid,tempOrderNo:i.tempOrderNo,passengerType:t.passengerType,operateType:2,passengerName:t.selectName,cretType:t.selectCredentialType,cretNo:t.credentialNo,index:t.railWayIndex};i.showVerTravelerModual(s)}else i.getTrainTravelListData(1,e)}else i.handleErrorTips(a)}))},showLoading:function(t){this.isLoading=!0,this.loadingTxt=t},hideLoading:function(){this.isLoading=!1,this.loadingTxt="加载中..."},goHandleAddTraveler:function(t,e){var i=this;if(t.credentialNo)if(1==t.selectCredentialType||t.credentialEndTime){var a={tempOrderNo:this.tempOrderNo,employeeId:t.employeeId,passengerName:t.selectName,phone:t.phone,cretType:t.selectCredentialType,cretNo:t.credentialNo,expiryDate:t.credentialEndTime,birthday:d["a"].format(t.birthDate)};if(t.countryId){var n=this.countryList.find((function(e){return e.id==t.countryId}));n&&(a.country=n.code)}this.showLoading("添加中..."),this.$http.post(l["a"].AddRailWayTraveler,a).then((function(n){if(i.hideLoading(),n.success)if(7==n.result.checkStatus&&n.result.phone){var s=z(z({name:t.selectName,phone:n.result.phone,captcha:n.result.captcha,operateType:1},a),{},{passengerType:t.passengerType,guid:n.result.guid});i.showVerTravelerModual(s)}else i.getTrainTravelListData(1,e);else i.handleErrorTips(n)}))}else this.$alert("请完善证件有效期","提示",{type:"warning",callback:function(){i.validatePassenger()}});else this.$alert("请完善证件号码信息","提示",{type:"warning",callback:function(){i.validatePassenger()}})},showVerTravelerModual:function(t){this.passengerVerTipsConfig={data:t,show:!0}},closeVerTips:function(){this.verTipsConfig.show=!1},closePassengerVerTips:function(){this.passengerVerTipsConfig.show=!1},handleVerTipsConfirm:function(t){this.closeVerTips(),1==t.operateType?this.getTrainTravelListData(1):2==t.operateType&&this.checkMobileResult(t)},handlePassengerVerTipsConfirm:function(t){this.closePassengerVerTips(),1==t.operateType?this.getTrainTravelListData(1):2==t.operateType&&this.checkMobileResult(t)},checkMobileResult:function(t){var e=this,i={tempOrderNo:this.tempOrderNo,passengerType:t.passengerType,passengerName:t.passengerName,cretType:t.cretType,cretNo:t.cretNo};this.$http.post(l["a"].GetTravelerVerifyResult,i).then((function(i){i.success?(e.trainTravelList[t.index]&&(e.trainTravelList[t.index].checkStatus=i.result.checkStatus),e.matchingTraveler()):e.handleErrorTips(i)}))},handleErrorTips:function(t){var e=this;"510003"==t.code||"510004"==t.code?(2==this.railway.railwayAccountLoginStatus&&(this.railway.railwayAccountLoginStatus=1),this.$alert(t.message,"提示",{type:"warning",callback:function(){e.toThirdLogin()}})):this.$alert(t.message,"提示",{type:"warning",callback:function(){}})},removeTraveler:function(t){var e=this;this.$confirm("请确认移除乘客信息?","",{confirmButtonText:"确认",cancelButtonText:"取消",center:!0}).then((function(){e.deleteRailWayTraveler(t)})).catch((function(){}))},deleteRailWayTraveler:function(t){var e=this,i={tempOrderNo:this.tempOrderNo,passengerName:t.passengerName,cretNo:t.certNo,cretType:t.cretType,passengerType:t.passengerType,sexCode:t.sexCode};this.showLoading("移除中..."),this.$http.post(l["a"].DeleteRailWayTraveler,i).then((function(t){e.hideLoading(),t.success?e.$alert("移除成功","提示",{callback:function(){e.getTrainTravelListData(1)}}):e.handleErrorTips(t)}))},handleLoginInfo:function(t){this.getTrainTempOrder()},handleTransferSelect:function(t){this.transferDataResult=t},modiflyPrivateTraveler:function(t){this.personalPassengerList=t,this.matchingPrivateTraveler()},matchingPrivateTraveler:function(){var t=this;this.passengerList.length&&this.personalPassengerList.forEach((function(e){var i=t.passengerList.find((function(t){return e.employeeId==t.employeeId}));i&&(e.selectCredentialType=i.selectCredentialType,e.phone=i.phone)})),this.trainTravelList.forEach((function(e){var i=t.personalPassengerList.find((function(t){var i=t.certificates.find((function(e){return e.credentialType==t.selectCredentialType})),a=e.certNo.substring(0,4),n=e.certNo.substring(e.certNo.length-3),s=i.credentialNo.substring(0,4),r=i.credentialNo.substring(i.credentialNo.length-3),o=a==s&&n==r&&t.selectCredentialType==e.cretType,c=e.phoneNo.substring(0,3),l=e.phoneNo.substring(e.phoneNo.length-4),u=t.phone.substring(0,3),d=t.phone.substring(t.phone.length-4),p=c==u&&l==d;return t.selectName==e.passengerName&&(o||p)}));e.employeeData=i||""}))},getInsuranceParams:function(){for(var t=this,e=[],i=function(){var i=t.insuranceConfig.bookInfoList[a];i.insuranceList.forEach((function(t){t.checked&&e.push({bookInfoStr:i.bookInfoStr,id:t.insuranceId})}))},a=0;a<this.insuranceConfig.bookInfoList.length;a++)i();return e},handleSelectInsurance:function(t){var e=this;t.checked?this.insuranceIds.push(t.insuranceId):this.insuranceIds=this.insuranceIds.filter((function(e){return e!=t.insuranceId})),this.getInsuranceList(),this.getTrainPriceV2(),setTimeout((function(){e.$nextTick((function(){var t="",i="",a="",n=window.innerHeight-230;e.$refs.bookRight&&(t=e.$refs.bookRight.offsetHeight),e.$refs.totalHeight&&(i=e.$refs.totalHeight.offsetHeight),e.$refs.tipsHeight&&(a=e.$refs.tipsHeight.offsetHeight),t>n&&1==e.isCeiling&&(e.priceHeight=n-i-a-130)}))}),1e3)},getInsuranceList:function(){var t=this,e={insuranceIds:this.insuranceIds};this.$http.post(u["a"].GetInsuranceList,e).then((function(e){e.success&&(t.isNeedConfirmation=e.result.isNeedConfirmation,t.insuranceDetailList=e.result.insuranceDetailList||[],t.tabTitleList=e.result.tabTitleList||[])}))},handlePriceInsDetail:function(t){t.insDetailsShow=!t.insDetailsShow},modiflyPaymentData:function(){1==this.travelType&&1==this.paymentConfig&&this.getTrainPriceV2()},trainRule:function(t,e){6==t&&this.checkStatusPass(e)||this.$refs["ruleDialog"].open(t)}}},q=W,U=(i("2400"),i("86db"),Object(b["a"])(q,a,n,!1,null,"797d0cd5",null));e["default"]=U.exports},c8d1:function(t,e,i){},d2ec:function(t,e,i){},defc:function(t,e,i){"use strict";i("c8d1")},f446:function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-dialog",{attrs:{title:"",visible:t.isShow,width:"520px",center:!0,top:"35vh","before-close":t.handleConfirm,"close-on-click-modal":!1,"close-on-press-escape":!1,customClass:"flight-time-tips"}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("div",{staticClass:"tips-tit"},[t._v("提示")])]),i("div",{staticClass:"content"},[i("div",{staticClass:"tips-bar-1"},[t._v("乘车人【"+t._s(t.tipsData.name)+"】手机号核验失败,请使用手机号码：【"+t._s(t.tipsData.phone)+"】发送短信内容："),i("span",{staticClass:"cf60"},[t._v(t._s(t.tipsData.captcha))]),t._v("至12306进行核验。")])]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:t.handleConfirm}},[t._v("短信已发送")])],1)])],1)},n=[],s={props:["isShow","tipsData"],data:function(){return{}},methods:{handleConfirm:function(){this.$emit("confirm",this.tipsData)}}},r=s,o=(i("5ee3"),i("2877")),c=Object(o["a"])(r,a,n,!1,null,"27110eb2",null);e["a"]=c.exports},f4da:function(t,e,i){}}]);