"),e.content=a,e.$nextTick((function(){e.tempPosition={width:e.$el.offsetWidth,top:e.$el.offsetTop},"home"==(e.$route.name||"").toLocaleLowerCase()&&e.toggleOpen(e.tipOpen)}))})).catch((function(e){}))}}},rt=st,ct=(i("d88e"),Object(C["a"])(rt,at,ot,!1,null,"44ecac2a",null)),lt=ct.exports,dt=function(){var e=this,t=e._self._c;return t("div",{ref:"dragBox",staticClass:"main-plus",class:e.iconPic,on:{mousedown:function(t){return e.touchstartHandle("dragBox",t)},mouseup:function(t){return e.touchendHandle("dragBox",t)}}})},ut=[],ft={data:function(){return{coordinate:{client:{},elePosition:{}},flag:!1}},props:{iconPic:{type:String,default:""}},methods:{touchstartHandle:function(e,t){var i=this;this.flag=!0,document.addEventListener("mousemove",(function(e){i.touchmoveHandle("dragBox",e)}),!1),this.coordinate.client={x:t.clientX,y:t.clientY},this.coordinate.elePosition.left=this.$refs[e].offsetLeft,this.coordinate.elePosition.top=this.$refs[e].offsetTop},touchmoveHandle:function(e,t){if(this.flag){var i=this.coordinate.elePosition.left+(t.clientX-this.coordinate.client.x),n=this.coordinate.elePosition.top+(t.clientY-this.coordinate.client.y);i=i<=0?0:i>=innerWidth-this.$refs[e].offsetWidth?innerWidth-this.$refs[e].offsetWidth:i,n=n<=0?0:n>=innerHeight-this.$refs[e].offsetHeight?innerHeight-this.$refs[e].offsetHeight:n,this.$refs[e].style.left=i+"px",this.$refs[e].style.top=n+"px"}},touchendHandle:function(e,t){this.flag=!1;var i=t.clientX,n=t.clientY;i===this.coordinate.client.x&&n===this.coordinate.client.y&&this.$emit("goItem")}}},mt=ft,ht=(i("1354"),Object(C["a"])(mt,dt,ut,!1,null,"35deb838",null)),pt=ht.exports,gt=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{title:"提示信息",width:"490px",visible:e.dialogVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"message-content",domProps:{innerHTML:e._s(e.messageHtml)}}),t("div",{staticClass:"ac mTop30"},[t("el-button",{staticStyle:{"margin-left":"0px"},attrs:{type:"primary",size:"medium",disabled:e.disabled},on:{click:e.handleConfirm}},[e._v(e._s(e.confirmButtonText))])],1)])],1)},vt=[],bt={props:{visible:{type:Boolean,default:!1},message:{type:String,default:""},strongErrorTipInfo:{type:Object,default:{isCountDown:!0}}},data:function(){return{dialogVisible:!1,defaultTime:5,tipCountDownTime:this.defaultTime,messageHtml:"",tipCountDownTimer:null}},created:function(){},computed:{confirmButtonText:function(){var e=this.strongErrorTipInfo.isCountDown;return"我已知晓".concat(this.tipCountDownTime>0&&e?"(".concat(this.tipCountDownTime,"s)"):"")},disabled:function(){var e=this.tipCountDownTime,t=this.strongErrorTipInfo.isCountDown;return e>0&&t}},watch:{visible:function(e){this.dialogVisible=e,e&&this.init()},dialogVisible:function(e){e||this.$emit("close")}},methods:{init:function(){var e=this;this.tipCountDownTime=this.defaultTime,clearInterval(this.tipCountDownTimer),this.messageHtml=this.handleLink(this.message);var t=this.strongErrorTipInfo.isCountDown;t&&(this.tipCountDownTimer=setInterval((function(){e.tipCountDownTime--,e.tipCountDownTime<=0&&clearInterval(e.tipCountDownTimer)}),1e3))},handleConfirm:function(){this.dialogVisible=!1},handleLink:function(e){var t=/(http:\/\/|https:\/\/)((\w|=|\?|\.|\/|&|-)+)/g;return e.replace(t,'$1$2')}},beforeDestroy:function(){clearInterval(this.tipCountDownTimer)}},yt=bt,It=(i("bfc7"),Object(C["a"])(yt,gt,vt,!1,null,"a71a585c",null)),St=It.exports,wt=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{title:"登录认证失效提醒",width:"490px",visible:e.dialogVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,"custom-class":"login-auth-invalid-dialog"},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"title"},[e._v(" 系统检测到"),t("span",{staticClass:"red"},[e._v("开票员【"+e._s(e.loginAuthInvalidTipInfo.endName)+"】"+e._s(e.errorDesc))])]),t("div",{staticClass:"sub-title mb30"},[e._v(" 为避免业务操作失败,请先完成数电登录认证,再使用相关业务功能! ")]),t("div",{staticClass:"ac mTop30"},[t("el-button",{staticStyle:{"margin-left":"0"},attrs:{type:"primary",size:"medium"},on:{click:e.handleConfirm}},[e._v("数电登录认证")])],1)])],1)},Tt=[],Ct={props:{visible:{type:Boolean,default:!1},loginAuthInvalidTipInfo:{type:Object,default:{}}},data:function(){return{dialogVisible:!1}},created:function(){},computed:{errorDesc:function(){var e="",t=this.loginAuthInvalidTipInfo.resultCode;return["needCheckCode","nnNeedLogin"].includes(t)?e="登录失效":["needScanFace","nnNeedCertification"].includes(t)&&(e="扫脸认证超时"),e}},watch:{visible:function(e){this.dialogVisible=e},dialogVisible:function(e){e||this.$emit("close")}},methods:{handleConfirm:function(){this.dialogVisible=!1,window.aeiLoginAuth()}}},xt=Ct,At=(i("daff"),Object(C["a"])(xt,wt,Tt,!1,null,"03fa3aa5",null)),Lt=At.exports,kt=function(){var e=this,t=e._self._c;return e.aeiFlag||e.tipVisible?t("div",{staticClass:"login-auth-wrap"},[t("div",{directives:[{name:"dragtip",rawName:"v-dragtip"}],ref:"dragItem",staticClass:"btn-list-wrap",class:{active:e.showGuide,onlyOne:1===e.btnList.length},on:{mousedown:e.mouseDownFn,mouseup:e.mouseUpFn}},[t("div",{staticClass:"btn-list"},e._l(e.btnList,(function(i,n){return t("div",{key:n,staticClass:"btn-item",on:{click:function(t){return e.handleItemClick(i.type)}}},[t("div",{staticClass:"icon"},[t("img",{attrs:{src:i.img,alt:""}}),"auth"===i.type&&e.notFinishLoginAuth?t("div",{staticClass:"tag"},[t("div",{staticClass:"item"})]):e._e()]),t("div",{staticClass:"label"},[e._v(e._s(i.label))]),n4}},[t("div",{staticClass:"terminal-list",style:"width:".concat(e.terminalWidth,"px;").concat(e.showPrevBtn?"margin-left: 20px;":"",";").concat(e.showNextBtn?"margin-right: 20px;":"",";")},e._l(e.terminalList,(function(i,n){return t("div",{key:n,ref:"terminalItem".concat(n),refInFor:!0,staticClass:"terminal-item",class:{active:e.currentIndex===n},on:{click:function(t){return e.switchTerminal(n)}}},[t("div",{staticClass:"name-wrap"},[t("div",{staticClass:"name"},[e._v(e._s(i.endName))]),e.currentIndex===n?t("div",{staticClass:"tag"},[e._v(" 当前 ")]):e._e()]),t("div",{staticClass:"mobile"},[e._v(" 税局账号:"+e._s(i.eleAccount)+" ")]),e.currentIndex===n?t("div",{staticClass:"success"},[t("img",{staticClass:"icon",attrs:{src:e.img.checkArrow,alt:""}})]):e._e()])})),0)]),e.showPrevBtn?t("div",{staticClass:"left-btn btn-common",on:{click:e.prev}},[t("img",{staticClass:"icon",attrs:{src:e.img.leftArrow,alt:""}})]):e._e(),e.showNextBtn?t("div",{staticClass:"right-btn btn-common",on:{click:e.next}},[t("img",{staticClass:"icon",attrs:{src:e.img.rightArrow,alt:""}})]):e._e()]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.terminalLoading,expression:"terminalLoading"}],staticClass:"bottom"},[t("div",{staticClass:"title"},[t("span",{staticClass:"label"},[e._v("正在登录认证【"+e._s(e.terminal.endName)+"】 ")]),t("div",{staticClass:"refresh"},[t("i",{staticClass:"el-icon-refresh",style:"".concat(e.isRefreshing?"animation: rotating 2s linear infinite reverse;":"")}),t("time-button",{ref:"timeB",staticClass:"txt",attrs:{type:"text",className:"underline","all-time":90},on:{click:e.refreshTerminal}},[e._v("状态刷新")])],1)]),t("div",{staticClass:"tips"},[e._v(" 温馨提示:状态刷新按钮,每个税号每日仅限使用20次,请门店谨慎使用此功能。 ")]),t("div",{staticClass:"result-list"},e._l(e.resultList,(function(i,n){return t("div",{key:n,staticClass:"result-item"},[t("div",{staticClass:"left"},[t("div",{staticClass:"title-wrap"},[t("span",{staticClass:"title"},[e._v(e._s(i.title))]),e.showPasswordError&&"password"===i.type?t("div",{staticClass:"error"},[e._v(" 密码错误 ")]):e._e()]),"password"===i.type?t("div",{staticClass:"status"},[e._v(" ******** ")]):e.refreshLoading&&!e.terminalLoading?t("div",{staticClass:"status"},[t("i",{staticClass:"el-icon-loading",staticStyle:{"margin-right":"2px"}}),t("span",[e._v("状态更新中")])]):t("div",{staticClass:"status"},[t("span",{staticClass:"icon",class:{success:"success"===i.status}}),t("span",[e._v(e._s(i.statusText))])]),t("div",{staticClass:"btn"},["password"===i.type?t("el-button",{attrs:{type:"primary",plain:"",size:"medium"},on:{click:function(t){return e.handleTaxPassword()}}},[e._v("重输税局密码")]):e._e(),"login"===i.type?t("CountDownBtn",{ref:"loginBtn",refInFor:!0,attrs:{text:"".concat(e.isAei?"登录":"无需登录"),showCountDown:e.isAei,type:"primary",disabled:!e.isAei,loading:e.loginBtnLoading,width:124,defaultTime:60},on:{click:function(t){return e.getNNClientStatus({cb:e.loginCommand})}}}):e._e(),"auth"===i.type?t("CountDownBtn",{ref:"authBtn",refInFor:!0,attrs:{text:"认证",type:"primary",loading:e.authBtnLoading,width:124,defaultTime:60},on:{click:function(t){return e.getNNClientStatus({cb:e.authCommand})}}}):e._e()],1)]),n<2?t("div",{staticClass:"right"},[t("div",{staticClass:"line"})]):e._e()])})),0)]),t("div",{staticClass:"help",on:{click:function(t){return e.onShowHelp()}}},[e._v(" 登录/认证失败如何处理? ")])]),t("NNAuthLoginByQR",{ref:"authLoginQR",attrs:{visible:e.qrVisible,terminal:e.terminal},on:{success:e.handleLoginSuccess}}),t("NNAuthLoginBySMS",{ref:"NNAuthLoginBySMS",attrs:{visible:e.smsVisible,terminal:e.terminal},on:{handleSmsResult:e.handleSmsResult,success:e.handleLoginSuccess,openTaxPassword:e.openTaxPassword}}),t("NNAuthRealName",{ref:"authRealName",attrs:{visible:e.realnameVisible,terminal:e.terminal},on:{success:e.showCertificateMessageBox}}),t("AeiLoginHelp",{attrs:{visible:e.helpVisible}}),t("TaxHelpDialog",{attrs:{visible:e.taxHelp.visible,type:e.taxHelp.type}}),e.terminalId?t("ModifyTaxPassword",{attrs:{visible:e.taxAccountVisible,terminalId:e.terminalId,eleAccount:e.currentEleAccount,isSmsError:e.isSmsError},on:{refresh:e.refresh}}):e._e(),t("NNClientOnlineDialog",{attrs:{visible:e.clientOnlineDialog.visible}})],1)},Mt=[],Ot=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{id:"NNAuthLoginByQR",title:"开票点快捷登录-扫码登录",width:"500px",visible:e.dialogVisible,"close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"row-group"},[t("span",[e._v("开票点:")]),t("span",[e._v(e._s(e.terminal.endName))])]),t("div",{staticClass:"row-group"},[t("span",[e._v("验证二维码"),t("el-link",{attrs:{type:"primary",underline:!1}},[e._v("("+e._s(e.qrObj.qrCodeTypeTip)+")")]),e._v(":")],1)]),t("div",{staticClass:"row-group"},[t("div",{staticClass:"qr-row"},[t("div",{staticClass:"qrimg",attrs:{id:"qrimgl"}}),t("span",[e._v("剩余时长:"+e._s(e.timeStr))])])]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("div",{staticStyle:{"text-align":"center"}},[t("CountDownBtn",{ref:"refreshQrcodeBtn",attrs:{loading:e.refreshLoading},on:{refresh:e.handleRefresh}}),t("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.onSubmit}},[e._v("验证完成")])],1),t("div",{staticStyle:{"text-align":"center","margin-top":"10px"}},[t("span",{staticClass:"errormsg"},[e._v("扫码完成后,请在此处点击“验证完成”按钮")])])])])},Nt=[],Dt={name:"NNAuthLoginByQR",components:{CountDownBtn:A},props:{visible:{type:Number,default:0},terminal:{type:Object,default:function(){return{id:"",storeId:"",endNum:"",endName:"",eleAccount:"",loginStatus:"",loginFlag:"",loginMsg:"",certificationStatus:"",certificationFlag:"",certificationMsg:"",loginType:""}}}},data:function(){return{dialogVisible:!1,loading:!1,timeNum:300,timeInterval:{},qrObj:{},refreshLoading:!1}},watch:{visible:function(){var e=this;this.dialogVisible=!0,this.$nextTick((function(){e.$refs.refreshQrcodeBtn.countDown()}))}},computed:{timeStr:function(){var e="mm:ss",t=Math.floor(this.timeNum/60),i=Math.floor(this.timeNum-60*t),n={"m+":t,"s+":i};for(var a in n)new RegExp("("+a+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[a]:("00"+n[a]).substr((""+n[a]).length)));return e}},methods:{handleRefresh:function(){this.refreshLoading=!0,this.refreshQrCode()},countDown:function(){var e=this;clearInterval(this.timeInterval),this.timeNum=300,this.timeInterval=setInterval((function(){e.timeNum--,e.timeNum<=0&&(clearInterval(e.timeInterval),e.timeNum=300)}),1e3)},renderQrCode:function(e){this.qrObj=e,this.countDown(),document.querySelector("#qrimgl").innerHTML="",new y.a("qrimgl",{width:210,height:210,text:e.qrCode,render:"canvas"})},queryQrCode:function(){var e=this;u["a"].axiosPost("/gp/aei/qrCode/queryLoginQrCode",{taxMachineId:this.terminal.id}).then((function(t){t.data.success?(e.qrObj=t.data.data,"1"===e.qrObj.status?e.renderQrCode(e.qrObj):["0","2"].includes(e.qrObj.status)&&e.$message.warning(e.qrObj.subMessage)):e.$message.error(t.data.message)})).catch((function(e){}))},refreshQrCode:function(){var e=this;u["a"].axiosPost("/gp/aei/qrCode/refreshLoginQrCode",{taxMachineId:this.terminal.id}).then((function(t){t.data.success?setTimeout((function(){e.queryQrCode()}),1e3):e.$message.error(t.data.message)})).catch((function(e){})).finally((function(){e.refreshLoading=!1}))},onSubmit:function(){var e=this;this.loading=!0,u["a"].axiosPost("/gp/aei/verifyComplete/confirmLogin",{taxMachineId:this.terminal.id}).then((function(t){e.loading=!1,t.data.success?(e.$emit("success"),e.dialogVisible=!1):e.$message.error(t.data.message)})).catch((function(e){}))}},created:function(){}},Rt=Dt,jt=(i("e184"),Object(C["a"])(Rt,Ot,Nt,!1,null,null,null)),Vt=jt.exports,Ut=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{id:"NNAuthLoginBySMS",title:"短信验证码登录",width:"500px",visible:e.dialogVisible,"close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"dialog-content"},[t("div",{staticClass:"title"},[e._v("正在登录开票点【"+e._s(e.terminal.endName)+"】")]),t("div",{staticClass:"desc"},[e._v(" 验证码已发送至 "+e._s(e.terminal.eleAccount)+",有效期 5 分钟。如未收到,请重新获取。 ")]),t("div",{staticClass:"input-wrap"},[t("el-input",{staticStyle:{width:"337px","margin-right":"10px"},attrs:{placeholder:"请输入短信验证码"},model:{value:e.smsCode,callback:function(t){e.smsCode=t},expression:"smsCode"}}),t("CountDownBtn",{ref:"sendSmsBtn",attrs:{text:"重新获取",width:113,defaultTime:60},on:{click:e.sendSms}})],1)]),t("div",{staticClass:"dialog-footer ac",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.onSubmit}},[e._v("登录")])],1)])},$t=[],Bt=function(){var e=this,t=e._self._c;return t("el-button",{style:"".concat(e.width?"width: ".concat(e.width,"px;"):""),attrs:{loading:e.loading,type:e.type,disabled:e.disabled||e.btnDisabled},on:{click:e.handleClick}},[e._v(e._s(e.text)+e._s(e.showCountDown?e.btnTxt:""))])},Et=[],Ft={props:{defaultTime:{type:Number,default:30},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},text:{type:String,default:"确认"},type:{type:String,default:"default"},width:{type:Number},showCountDown:{type:Boolean,default:!0}},data:function(){return{currentTime:null}},created:function(){this.extraData={timer:null}},computed:{btnDisabled:function(){var e=this.currentTime;return e>0},btnTxt:function(){var e=this.currentTime,t="";return e>0&&(t="(".concat(e,"s)")),t}},methods:{handleClick:function(){this.$emit("click")},countDown:function(){var e=this;this.currentTime=this.defaultTime,clearInterval(this.extraData.timer),this.extraData.timer=setInterval((function(){e.currentTime--,e.currentTime<=0&&clearInterval(e.extraData.timer)}),1e3)}},beforeDestroy:function(){}},qt=Ft,Ht=Object(C["a"])(qt,Bt,Et,!1,null,"1eab7b28",null),zt=Ht.exports,Qt={name:"NNAuthLoginBySMS",components:{CountDownBtn:zt},props:{visible:{type:Number,default:0},terminal:{type:Object,default:function(){return{id:"",storeId:"",endNum:"",endName:"",eleAccount:"",loginStatus:"",loginFlag:"",loginMsg:"",certificationStatus:"",certificationFlag:"",certificationMsg:"",loginType:""}}}},data:function(){return{dialogVisible:!1,loading:!1,smsCode:"",timeStr:"获取验证码"}},watch:{visible:function(){this.dialogVisible=!0,this.smsCode="",this.$nextTick((function(){}))},dialogVisible:function(e){this.smsCode=""}},methods:{sendSms:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.isAuto;i||this.$refs.sendSmsBtn.countDown(),u["a"].axiosPost("/gp/aei/qrCode/sendSmsCode",{taxMachineId:this.terminal.id}).then((function(t){var n,a;t.data.success?e.querySmsStatus({isAuto:i}):(i&&e.$emit("handleSmsResult"),null!==(n=t.data.message)&&void 0!==n&&n.includes("密码错误")?(e.dialogVisible=!1,e.$emit("openTaxPassword")):null!==(a=t.data.message)&&void 0!==a&&a.includes("已存在有效的短信验证码")&&i?(e.dialogVisible=!0,e.$nextTick((function(){var t;null===(t=e.$refs.sendSmsBtn)||void 0===t||t.countDown()})),setTimeout((function(){e.$message.error(t.data.message)}),0)):e.$message.error(t.data.message))})).catch((function(t){i&&e.$emit("handleSmsResult")}))},clearTime:function(){this.timeStr="获取验证码"},querySmsStatus:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.isAuto;this.timeStr="发送中...",u["a"].axiosPost("/gp/aei/qrCode/querySmsStatus",{taxMachineId:this.terminal.id},32e3).then((function(t){if(i&&e.$emit("handleSmsResult"),t.data.success){var n=t.data.data;switch(n.status){case"1":e.timeStr="发送成功",e.$message.success(n.message),i&&(e.dialogVisible=!0,e.$nextTick((function(){var t;null===(t=e.$refs.sendSmsBtn)||void 0===t||t.countDown()})));break;case"2":var a=n.subMessage;null!==a&&void 0!==a&&a.includes("密码错误")?(e.dialogVisible=!1,e.$emit("openTaxPassword")):e.$message.error(n.subMessage);break}}else{var o=t.data.message;null!==o&&void 0!==o&&o.includes("密码错误")?(e.dialogVisible=!1,e.$emit("openTaxPassword")):e.$message.error(o)}})).catch((function(t){e.$message.error(t.message),i&&e.$emit("handleSmsResult")}))},onSubmit:function(){var e=this;this.smsCode?(this.loading=!0,u["a"].axiosPost("/gp/aei/verifyComplete/loginByVerifyCode",{taxMachineId:this.terminal.id,verifyCode:this.smsCode}).then((function(t){e.loading=!1,t.data.success?(e.$message.success("已发送登录请求,请稍后刷新查看登录结果"),e.$emit("success"),e.dialogVisible=!1):e.$message.error(t.data.message)})).catch((function(e){}))):this.$message.error("请输入短信验证码")}},created:function(){}},Gt=Qt,Wt=(i("808f"),i("7fe0"),Object(C["a"])(Gt,Ut,$t,!1,null,"f70b1af0",null)),Kt=Wt.exports,Yt=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{id:"NNAuthRealName",title:"开票点实名认证",width:"500px",visible:e.dialogVisible,"close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"dialog-content"},[t("div",{staticClass:"title"},[e._v("正在认证开票点【"+e._s(e.terminal.endName)+"】")]),t("div",{staticClass:"desc"},[e._v(" 请打开税务app扫描下方二维码,进行人脸实名认证 ")]),t("div",{},[t("div",{staticClass:"qr-row"},[t("div",{staticClass:"qrimg",attrs:{id:"qrimgs"}}),t("span",[e._v("剩余时长:"+e._s(e.timeStr))])])]),t("div",{staticClass:"tips"},[e._v(" 温馨提示:人脸实名认证完成后,务必点击【提交认证】按钮 ")])]),t("div",{staticClass:"dialog-footer ac",attrs:{slot:"footer"},slot:"footer"},[t("CountDownBtn",{ref:"refreshQrcodeBtn",attrs:{loading:e.refreshLoading},on:{refresh:e.handleRefresh}}),t("el-button",{attrs:{size:"medium",type:"danger"},on:{click:function(t){return e.onCompleted()}}},[e._v("提交认证")])],1)])},Jt=[],Zt={name:"NNAuthRealName",components:{CountDownBtn:A},props:{visible:{type:Number,default:0},terminal:{type:Object,default:function(){return{id:"",storeId:"",endNum:"",endName:"",eleAccount:"",loginStatus:"",loginFlag:"",loginMsg:"",certificationStatus:"",certificationFlag:"",certificationMsg:"",loginType:""}}}},data:function(){return{dialogVisible:!1,timeNum:300,timeInterval:{},qrObj:{},authId:"",refreshLoading:!1}},watch:{visible:function(){var e=this;this.dialogVisible=!0,this.$nextTick((function(){e.$refs.refreshQrcodeBtn.countDown()}))},dialogVisible:function(e){e||clearInterval(this.timeInterval)}},computed:{timeStr:function(){var e="mm:ss",t=Math.floor(this.timeNum/60),i=Math.floor(this.timeNum-60*t),n={"m+":t,"s+":i};for(var a in n)new RegExp("("+a+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[a]:("00"+n[a]).substr((""+n[a]).length)));return e}},methods:{handleRefresh:function(){this.refreshLoading=!0,this.refreshQrCode()},countDown:function(){var e=this;clearInterval(this.timeInterval),this.timeNum=300,this.timeInterval=setInterval((function(){e.timeNum--,e.timeNum<=0&&(clearInterval(e.timeInterval),e.timeNum=300)}),1e3)},renderQrCode:function(e){this.qrObj=e,this.countDown(),document.querySelector("#qrimgs").innerHTML="",new y.a("qrimgs",{width:210,height:210,text:e.qrCode,render:"canvas"})},queryQrCode:function(){var e=this;u["a"].axiosPost("/gp/aei/qrCode/queryVerifyQrCode",{taxMachineId:this.terminal.id}).then((function(t){console.log("res",t),t.data.success?(e.qrObj=t.data.data,e.authId=e.qrObj.authId,console.log("this.authId 定时刷新",e.authId),"1"===e.qrObj.status?e.renderQrCode(e.qrObj):["0","2"].includes(e.qrObj.status)&&e.$message.warning(e.qrObj.subMessage||e.qrObj.message)):e.$message.error(t.data.message)})).catch((function(e){console.log(e)}))},refreshQrCode:function(){var e=this;u["a"].axiosPost("/gp/aei/qrCode/refreshVerifyQrCode",{taxMachineId:this.terminal.id}).then((function(t){t.data.success?setTimeout((function(){e.queryQrCode()}),1e3):e.$message.error(t.data.message)})).catch((function(e){})).finally((function(){e.refreshLoading=!1}))},onCompleted:function(){this.$emit("success",{authId:this.authId}),this.dialogVisible=!1}},created:function(){}},Xt=Zt,ei=(i("db47"),i("68a0"),Object(C["a"])(Xt,Yt,Jt,!1,null,"1fcad4a8",null)),ti=ei.exports,ii=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{title:"提示信息",width:"680px","append-to-body":"",top:"25vh",visible:e.dialogVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"dialog-content"},[t("div",{staticClass:"title"},[e._v(" 检测到[诺诺数电票]客户端"),t("span",{staticClass:"red"},[e._v("未正常开启或未登录!")])]),t("div",{staticClass:"tips"},[e._v(" 1.电脑右下角检查是否打开【诺诺数电票】,如有,请鼠标右键退出此功能。"),t("br"),e._v(" 2.请在电脑桌面或【开始】菜单搜索【诺诺数电票】功能,打开并完成账号登录。 ")])]),t("span",{staticClass:"dialog-footer ac",attrs:{slot:"footer"},slot:"footer"},[t("CountDownBtn",{ref:"confirmOpenBtn",staticStyle:{"margin-left":"0"},attrs:{text:"确认已开启",type:"primary",width:124,defaultTime:5},on:{click:e.confirmOpen}}),t("el-link",{staticClass:"link-btn",attrs:{type:"primary"},on:{click:e.seeHelp}},[e._v("数电发票不使用客户端小技巧")])],1)]),t("NNClientHelp",{attrs:{visible:e.clientHelp.visible}})],1)},ni=[],ai=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{title:"",width:"660px",visible:e.dialogVisible,"append-to-body":""},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("el-scrollbar",{staticStyle:{height:"400px"}},[t("el-row",[t("div",{staticClass:"img-preview",staticStyle:{"align-items":"flex-start"}},[t("div",{staticClass:"img-desc",staticStyle:{"margin-bottom":"0"}},[t("div",{staticStyle:{"font-size":"14px","margin-bottom":"15px"}},[e._v(" 门店在易发票开具数电票可以不再打开【诺诺数电票】客户端啦!只需跟随我操作如下步骤即可! ")]),t("div",{staticStyle:{"font-size":"14px"}},[e._v(" 第一步:请在开始菜单搜索【控制面板】使用卸载程序功能卸载【诺诺数电票】功能。 ")])])]),t("div",{staticClass:"img-preview",staticStyle:{"align-items":"flex-start"}},[t("div",{staticClass:"img-desc"},[t("div",{staticStyle:{"font-size":"14px"}},[e._v(" 第二步:请进入易发票【门店设置】-【数电开票员管理】功能,找到税局账号,点击尾部【编辑】按钮,编辑数电账号并保存 ")])]),t("el-image",{staticStyle:{width:"90%"},attrs:{"append-to-body":"",src:e.srcList[0],"preview-src-list":e.srcList}})],1),t("div",{staticClass:"img-preview",staticStyle:{"align-items":"flex-start"}},[t("div",{staticClass:"img-desc"},[t("div",{staticStyle:{"font-size":"14px"}},[e._v(" 第三步:重新尝试该账号登录认证 ")])])])])],1)],1)},oi=[],si={props:["visible"],data:function(){return{dialogVisible:!1,srcList:[i("3559")]}},watch:{visible:function(){this.dialogVisible=!0}}},ri=si,ci=Object(C["a"])(ri,ai,oi,!1,null,null,null),li=ci.exports,di={name:"NNClientOnlineDialog",components:{CountDownBtn:zt,NNClientHelp:li},props:{visible:{type:Number,default:0}},data:function(){return{dialogVisible:!1,clientHelp:{visible:0}}},watch:{visible:function(){var e=this;this.dialogVisible=!0,this.$nextTick((function(){var t;null===(t=e.$refs.confirmOpenBtn)||void 0===t||t.countDown()}))}},methods:{confirmOpen:function(){this.dialogVisible=!1,this.$emit("close")},seeHelp:function(){this.clientHelp.visible+=1}}},ui=di,fi=(i("7dc5"),Object(C["a"])(ui,ii,ni,!1,null,"29d6c2eb",null)),mi=fi.exports;function hi(e){return bi(e)||vi(e)||gi(e)||pi()}function pi(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function gi(e,t){if(e){if("string"===typeof e)return yi(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?yi(e,t):void 0}}function vi(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function bi(e){if(Array.isArray(e))return yi(e)}function yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i0?"(".concat(this.tipCountDownTime,"s)"):"")},showOperateBtn:function(){var e=this.terminal.loginType,t=this.currentEleAccount;return t||""!==e},currentEleAccount:function(){var e=this.currentSelectTerminal.eleAccount;return this.terminal.eleAccount||"".concat("--"!==e?e:"")},showPasswordError:function(){var e=this.terminal.loginErrorMsg;return e&&e.includes("密码错误")},terminalWidth:function(){return 174*this.terminalList.length},showPrevBtn:function(){var e=this.currentIndex,t=this.terminalList;return e>0&&t.length>4},showNextBtn:function(){var e=this.currentIndex,t=this.terminalList;return e4}},watch:{terminal:{handler:function(e){e&&this.showPasswordError&&this.handleTaxPassword()}},dialogVisible:function(e){e||(this.$emit("close"),window.needReloadPage&&location.reload())}},created:function(){var e=this;this.$nextTick((function(){var t;e.loading=!0,null===(t=e.$refs)||void 0===t||t.timeB.clear(),e.searchStateTimer&&clearTimeout(e.searchStateTimer);var i=u["a"].getUserInfo();_.isEmpty(i)||(e.userInfo=i),e.loadTerminalList()}))},methods:{handleLoginSuccess:function(){this.$refs.timeB.onClick("login"),this.switchDirect()},refresh:function(){this.changeTerminal()},handleTaxAccountMaintain:function(){this.dialogVisible=!1,this.$router.push({path:"/aeiTaxmachines"})},showCertificateMessageBox:function(e){var t=this;console.log("data",e);var i=e.authId;i=i||this.authId,this.tipCountDownTime=this.defaultTime,console.log(this.confirmButtonText),clearInterval(this.tipCountDownTimer),a["MessageBox"].alert("正在进行税局认证,认证完成前请勿关闭此页面","提示",{confirmButtonClass:"tip-confirm-btn is-disabled",confirmButtonText:this.confirmButtonText,type:"warning",showClose:!1,callback:function(e){},beforeClose:function(e,n,a){console.log(e,n,a),t.tipCountDownTime<=0&&(a(),t.searchState(!1,"auth",i),t.authId="",t.switchDirect())}}),this.$nextTick((function(){document.querySelector(".tip-confirm-btn").classList.add("is-disabled"),document.querySelector(".tip-confirm-btn").children[0].innerHTML=t.confirmButtonText,t.tipCountDownTimer=setInterval((function(){t.tipCountDownTime--,document.querySelector(".tip-confirm-btn").children[0].innerHTML=t.confirmButtonText,t.tipCountDownTime<=0&&(document.querySelector(".tip-confirm-btn").classList.remove("is-disabled"),clearInterval(t.tipCountDownTimer)),t.tipCountDownTime===t.defaultRefreshTime&&t.searchState(!0,"auth",i)}),1e3)}))},loadTerminalList:function(){var e=this;u["a"].axiosPost("/gp/aei/taxMachine/list",{}).then((function(t){if(t.data.success){e.loading=!1;var i=t.data.data;if(i.length>0){var n=Number(e.userInfo.taxmachineid),a=i.findIndex((function(e){return e.id===n}));if(-1!==a){var o=i.splice(a,1);i=[].concat(hi(o),hi(i)),e.currentIndex=0,e.terminalId=n}else e.currentIndex=0,e.terminalId=i[0].id;e.terminalList=i,e.changeTerminal()}else e.terminalList=i}else e.$message.error(t.data.message)})).catch((function(e){})).finally((function(){e.loading=!1}))},changeTerminal:function(){var e=this;this.terminalLoading=!0,this.queryMultiple=!1;var t=this.terminalList.filter((function(t){return t.id==e.terminalId}));t.length>0?(this.currentSelectTerminal=t[0],console.log(this.currentSelectTerminal),this.clientFlag=t[0].clientFlag&&t[0].onlyAeiFlag):this.clientFlag=!1,this.searchState(!1)},refreshTerminal:function(e){this.isRefreshing=!0,console.log("type",e),this.searchStateTimer&&clearTimeout(this.searchStateTimer),"login"==e||"auth"==e?(this.queryMultiple=!0,this.startTime=(new Date).getTime()):this.queryMultiple=!1,this.$refs.timeB.countDown(),this.searchState("login"!=e,e)},searchState:function(e,t,i){var n=this;console.log("this.queryMultiple",this.queryMultiple),this.refreshLoading=!0,u["a"].axiosPost("/gp/aei/taxMachine/queryState",{refreshFlag:e,taxMachineId:this.terminalId,authId:i},6e4).then((function(e){if(n.isRefreshing=!1,n.terminalLoading=!1,e.data.success){var a=e.data.data;n.queryMultiple&&!i?"login"==t&&"1"==a.loginStatus||"login"!=t&&"1"==a.certificationStatus?(n.refreshLoading=!1,n.terminal=a):n.startTime+9e4>(new Date).getTime()?n.searchStateTimer=setTimeout((function(){n.searchState(!1,t)}),5e3):(n.refreshLoading=!1,n.terminal=a):(n.refreshLoading=!1,n.terminal=a,"1"==a.certificationStatus&&i&&(console.log("认证刷新成功"),n.tipCountDownTime=0,clearInterval(n.tipCountDownTimer),document.querySelector(".tip-confirm-btn").children[0].innerHTML=n.confirmButtonText,document.querySelector(".tip-confirm-btn").classList.remove("is-disabled")))}else n.refreshLoading=!1,n.terminalLoading=!1,n.$message.error(e.data.message)})).catch((function(e){n.refreshLoading=!1,n.isRefreshing=!1}))},getNNClientStatus:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.cb;this.client={message:"",status:-1},this.clientFlag?u["a"].axiosPost("/gp/aei/taxMachine/getClientStatus",{taxMachineId:this.terminalId}).then((function(t){t.data.success?t.data.data.onlineFlag?(e.client.status=1,e.client.message="在线"):(e.client.status=0,e.client.message="不在线"):(e.client.status=2,e.client.message=t.data.message)})).finally((function(e){i&&i()})):i&&i()},showClientOnlineDialog:function(){this.clientOnlineDialog.visible+=1},loginCommand:function(){var e,t=this;if(this.clientFlag&&1!=this.client.status)this.showClientOnlineDialog();else switch(this.terminal.loginType){case"1":this.loginBtnLoading=!0,u["a"].axiosPost("/gp/aei/qrCode/queryLoginQrCode",{taxMachineId:this.terminalId}).then((function(e){if(t.loginBtnLoading=!1,e.data.success){var i=e.data.data;"1"===i.status?(t.qrVisible+=1,t.$nextTick((function(){t.$refs.authLoginQR.renderQrCode(i)}))):["0","2"].includes(i.status)&&t.$message.warning(i.subMessage)}else t.$message.error(e.data.message)})).catch((function(e){t.loginBtnLoading=!1})).finally((function(){var e;null===(e=t.$refs.loginBtn[0])||void 0===e||e.countDown()}));break;case"0":case"2":this.loginBtnLoading=!0,null===(e=this.$refs.NNAuthLoginBySMS)||void 0===e||e.sendSms({isAuto:!0});break}},handleSmsResult:function(){var e;this.loginBtnLoading=!1,null===(e=this.$refs.loginBtn[0])||void 0===e||e.countDown()},authCommand:function(){var e=this;this.clientFlag&&1!=this.client.status?this.showClientOnlineDialog():(this.authBtnLoading=!0,u["a"].axiosPost("/gp/aei/qrCode/queryVerifyQrCode",{taxMachineId:this.terminalId}).then((function(t){var i;if(e.authBtnLoading=!1,null===(i=e.$refs.authBtn[0])||void 0===i||i.countDown(),t.data.success){var n=t.data.data;e.authId=n.authId,console.log("this.authId 按钮触发124",e.authId),"1"===n.status?(e.realnameVisible+=1,e.$nextTick((function(){e.$refs.authRealName.renderQrCode(n)}))):["0","2"].includes(n.status)&&e.$message.warning(n.subMessage||n.message)}else{var a;e.$message.error(t.data.message),null===(a=e.$refs.authBtn[0])||void 0===a||a.countDown()}})).catch((function(t){e.authBtnLoading=!1})))},onShowHelp:function(){this.helpVisible+=1},onShowClientHelp:function(){switch(this.client.status){case 0:this.helpClientFailedVisible+=1;break;case 2:this.client.message.indexOf("分机号")>-1?this.helpClientErrorVisible+=1:this.$alert("请发起工单由运维工程师协助您解决,给您带来的不便请谅解!");break}},handleTaxPassword:function(){this.isSmsError=!1,this.taxAccountVisible+=1},openTaxPassword:function(){this.isSmsError=!0,this.taxAccountVisible+=1},switchTerminal:function(e){var t=this.refreshLoading,i=this.terminal.endName;this.terminalLoading||(t?this.$myMessage.warning("正在更新开票员【".concat(i,"】登录/认证状态,请稍后再试")):(this.currentIndex=e,this.handleSelect(),this.handleScroll()))},handleSelect:function(){var e=this.terminalList,t=this.currentIndex;this.terminalId=e[t].id,this.changeTerminal()},next:function(){this.terminalLoading||this.currentIndex0&&this.switchTerminal(this.currentIndex-1)},handleScroll:function(){console.log(this.$refs["terminalItem".concat(this.currentIndex)]),this.$refs["terminalItem".concat(this.currentIndex)][0].scrollIntoView()},switchDirect:function(){var e=this;Object(je["y"])({aeiTaxMachineId:this.terminalId}).then((function(e){}),(function(t){var i=t.message;e.$message.error(i)})),Object(je["e"])({taxmachineid:this.terminalId}).then((function(e){window.needReloadPage=!0}),(function(t){var i=t.message;e.$message.error(i)}))}}},Si=Ii,wi=(i("e4d16"),i("5a37"),Object(C["a"])(Si,_t,Mt,!1,null,"8cee5a4e",null)),Ti=wi.exports,Ci=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{title:"数电开票点登录&认证",width:"680px",visible:e.dialogVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"dialog-content"},[t("div",{staticClass:"first"},[t("div",{staticClass:"top"},[t("div",{staticClass:"left"},[t("span",{staticClass:"seq"},[e._v("1")]),t("span",{staticClass:"label"},[e._v("请选择开票员:")])]),t("div",{staticClass:"right",on:{click:e.handleTaxAccountMaintain}},[t("img",{staticClass:"icon",attrs:{src:e.img.add,alt:""}}),t("span",{staticClass:"label"},[e._v("开票员新增维护")])])]),t("div",{staticClass:"terminal"},[t("el-select",{staticStyle:{width:"600px"},attrs:{clearable:"",placeholder:"请选择需要登录认证的税局账号"},on:{change:e.changeTerminal},model:{value:e.terminalId,callback:function(t){e.terminalId=t},expression:"terminalId"}},e._l(e.terminalList,(function(e,i){return t("el-option",{key:i,attrs:{label:e.endName,value:e.id}})})),1)],1)]),t("div",{staticClass:"second"},[t("div",{staticClass:"left"},[t("div",{staticClass:"seq-wrap"},[t("span",{staticClass:"seq"},[e._v("2")])]),t("div",{staticClass:"title-wrap"},[t("div",{staticClass:"tips"},[e._v(" 请前往百望云平台税局账号完成登录认证: ")]),t("div",{staticClass:"desc"},[e._v(" 未登录认证的账号无法正常开票,建议您及时前往登录认证 ")])])]),t("div",{staticClass:"right"},[t("el-button",{staticStyle:{"margin-left":"0"},attrs:{type:"danger",loading:e.redirectLoading,size:"medium"},on:{click:e.createUser}},[e._v("前往登录认证")])],1)]),t("div",{staticClass:"authtip"},[e._v(" 确认后本门店【数电直开点】和当前易发票登录人所绑定的开票点均会切换成此开票点。 ")]),t("div",{staticClass:"ac footer"},[t("el-button",{staticStyle:{"margin-left":"0"},attrs:{type:"primary",size:"medium",loading:e.saveLoading},on:{click:e.handleSave}},[e._v("确认登录,去开票")])],1)])]),t("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{title:"提示信息",width:"490px",visible:e.failDialog.visible,"close-on-click-modal":!1,"close-on-press-escape":!1,"custom-class":"login-auth-invalid-dialog"},on:{"update:visible":function(t){return e.$set(e.failDialog,"visible",t)}}},[t("div",{staticClass:"title"},[e._v(" 开票员【"+e._s(e.failDialog.endName)+"】"),t("span",{staticClass:"red"},[e._v("百望云用户自动添加失败")])]),t("div",{staticClass:"sub-title mb30"},[e._v(" 请前往【数电开票员管理】功能,在列表为该开票员手工添加百望云用户,再尝试进行登录认证 ")]),t("div",{staticClass:"ac mTop30"},[t("el-button",{staticStyle:{"margin-left":"0"},attrs:{type:"primary",size:"medium"},on:{click:e.add}},[e._v("手工添加")])],1)])],1)},xi=[],Ai=i("4a0d"),Li={name:"BWAuthDialog",mixins:[_e["a"],Ai["a"]],props:{visible:{type:Number,default:0}},data:function(){return{dialogVisible:!1,terminalList:[],terminalId:null,terminal:{storeId:"",endNum:"",endName:"",eleAccount:"",apiType:""},redirectLoading:!1,saveLoading:!1,failDialog:{visible:!1,endName:""},img:{add:i("d8a7")}}},watch:{visible:function(){var e=this;this.dialogVisible=!0,this.$nextTick((function(){e.reset(),e.loadTerminalList()}))}},created:function(){},methods:{reset:function(){this.terminal={storeId:"",endNum:"",endName:"",eleAccount:"",apiType:""}},loadTerminalList:function(){var e=this;u["a"].axiosPost("/gp/aei/taxMachine/list",{}).then((function(t){if(t.data.success){if(e.terminalList=t.data.data,e.terminalList.length>0){var i=u["a"].getUserInfo(),n=Number(i.taxmachineid),a=e.terminalList.findIndex((function(e){return e.id===n}));e.terminalId=-1!==a?n:e.terminalList[0].id}e.changeTerminal()}else e.$message.error(t.data.message)})).catch((function(e){}))},handleTaxAccountMaintain:function(){this.dialogVisible=!1,this.$router.push({path:"/aeiTaxmachines"})},changeTerminal:function(){var e=this,t=this.terminalList.filter((function(t){return t.id==e.terminalId}));t.length>0?(this.terminal.storeId=t[0].storeId,this.terminal.endNum=t[0].endNum,this.terminal.endName=t[0].endName,this.terminal.eleAccount=t[0].eleAccount,this.terminal.apiType=t[0].apiType):this.terminal={storeId:"",endNum:"",endName:"",eleAccount:"",apiType:""}},createUser:function(){var e=this;Object(Me["a"])({taxMachineId:this.terminalId}).then((function(t){var i=t.data.data||{},n=i.bizStatus,a=i.endName;"showDialog"===n?(e.dialogVisible=!1,e.failDialog.visible=!0,e.failDialog.endName=a):e.toRedirect()}),(function(t){var i=t.message;e.$message.error(i)}))},add:function(){this.failDialog.visible=!1,this.$router.push({path:"/aeiTaxmachines"})},toRedirect:function(){var e=this;this.redirectLoading=!0,u["a"].axiosPost("/gp/terminalUser/getUri",{whichPage:"1000",terminalId:this.terminalId},6e4).then((function(t){t.data.success?(e.$message.warning("即将跳转至百望后台,请完成登录&认证后返回当前页面继续操作!"),setTimeout((function(){e.redirectLoading=!1,window.open(t.data.data.redirectUri)}),2e3)):(e.redirectLoading=!1,e.$message.error(t.data.message))})).catch((function(t){e.redirectLoading=!1}))},handleSave:function(){if(!this.terminalId)return this.$message.error("请选择在线开票点"),!1;this.wrapGetAeiClientStatus({cb:this.saveTerminal,loadingKey:"saveLoading",taxMachineId:this.terminalId})},saveTerminal:function(){var e=this;if(!this.terminalId)return this.$message.error("请选择在线开票点"),!1;this.saveLoading=!0,u["a"].axiosPost("/gp/taxMachine/switchAei",{id:this.terminalId,storeId:this.terminal.storeId}).then((function(t){t.data.success?u["a"].axiosPost("/gp/user/bindTaxMachine",{storeid:e.terminal.storeId,taxmachineid:e.terminalId}).then((function(t){e.saveLoading=!1,t.data.success?(e.refreshUserToken(t.data.data),e.dialogVisible=!1,location.reload()):e.$message.error(t.data.message)})).catch((function(e){})):(e.saveLoading=!1,e.$message.error(t.data.message))})).catch((function(t){e.saveLoading=!1}))},refreshUserToken:function(e){var t=this.userInfo;t.taxmachineid=e.taxmachineid,t.taxmachinename=e.taxmachinename,t.checker=e.checker,t.drawer=e.drawer,t.payee=e.payee,this.setUserInfoCookie(t)}}},ki=Li,Pi=(i("183a"),Object(C["a"])(ki,Ci,xi,!1,null,"0b7a0a7c",null)),_i=Pi.exports,Mi=i("2934"),Oi={components:{NNAuthDialog:Ti,BWAuthDialog:_i},props:{tipVisible:{type:Boolean,default:!1},currentState:{type:Object,default:function(){return{}}}},data:function(){return{img:{arrow:i("dbc2"),person:i("7337"),progress:i("e758")},showGuide:!1,userInfo:{},nnAuthDialog:{visible:!1},bwAuthDialog:{visible:0},aeiFlag:!1,clickObj:{firstTime:"",lastTime:"",isClick:!0}}},watch:{$route:function(e,t){this.refresh()}},computed:{btnList:function(){var e=this.tipVisible,t=this.img,i=this.aeiFlag,n=t.person,a=t.progress,o=[];return i&&o.push({label:"登录认证",img:n,type:"auth"}),e&&o.push({label:"推广进度",img:a,type:"progress"}),o},notFinishLoginAuth:function(){var e=this.currentState,t=this.currentState,i=t.loginStatus,n=t.certificationStatus;return"loginStatus"in e&&("1"!==i||"1"!==n)}},created:function(){this.userInfo=u["a"].getUserInfo(),this.getStoreInfo()},mounted:function(){var e=this;window.aeiLoginAuth=function(){e.handleItemClick("auth")}},methods:{mouseDownFn:function(){this.clickObj.firstTime=(new Date).getTime(),console.log("mouseDownFn")},mouseUpFn:function(){this.clickObj.lastTime=(new Date).getTime(),console.log("mouseUpFn",this.clickObj.lastTime-this.clickObj.firstTime),this.clickObj.lastTime-this.clickObj.firstTime<250?this.clickObj.isClick=!0:(this.setTipTop(),this.clickObj.isClick=!1)},setTipTop:function(){var e=this.$refs.dragItem,t=document.documentElement.clientHeight||document.body.clientHeight,i=e.offsetTop+e.offsetHeight+10;i=i>t?t-e.offsetHeight-10:e.offsetTop,e.style.top=i+"px"},judgeShowGuide:function(){var e,t=this,i=this.userInfo.userName;null!==(e=localStorage.loginAuthUserStr)&&void 0!==e&&e.includes(i)||Object(Mi["c"])({}).then((function(e){var i,n=e.data.data;null!==n&&void 0!==n&&n.showAeiLoginGuide&&((null===(i=localStorage.loginAuthUserStr)||void 0===i?void 0:i.length)>2e3&&(localStorage.loginAuthUserStr=""),t.showGuide=!0)}),(function(e){var i=e.message;t.$message.error(i)}))},refresh:function(){console.log("loginAuth refresh"),this.getStoreInfo()},getStoreInfo:function(){var e=this;u["a"].axiosPost("/gp/store/details",{}).then((function(t){t.data.success&&(e.aeiFlag=t.data.data.aeiFlag,e.apiType=t.data.data.apiType,e.aeiFlag&&e.judgeShowGuide())})).catch((function(e){}))},know:function(){var e;this.showGuide=!1;var t=this.userInfo.userName;localStorage.loginAuthUserStr=localStorage.loginAuthUserStr||"",null!==(e=localStorage.loginAuthUserStr)&&void 0!==e&&e.includes(t)||(localStorage.loginAuthUserStr+="".concat(t,","))},handleItemClick:function(e){if(console.log("handleItemClick"),this.clickObj.isClick){if(!this.showGuide){var t=this.apiType;"auth"===e?"bw"===t?this.bwAuthDialog.visible+=1:this.nnAuthDialog.visible=!0:this.$emit("showProgress")}}else console.log("拖拽")}}},Ni=Oi,Di=(i("22fb"),Object(C["a"])(Ni,kt,Pt,!1,null,"0148870e",null)),Ri=Di.exports,ji=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{title:"提示信息",width:"680px","append-to-body":"",visible:e.dialogVisible,"close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"dialog-content"},[t("div",{staticClass:"title"},[e._v("您所在门店是否只能开具数电发票?")]),t("div",{staticClass:"desc red"},[e._v(" 选择“仅开具数电发票”的场景:门店已无法使用传统税控盘开票或税盘已被回收 ")]),t("div",{staticClass:"tips"},[e._v(" 提示:为了您更好的开票体验,建议根据门店实际情况进行选择 ")])]),t("span",{staticClass:"dialog-footer ac",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticStyle:{"margin-left":"0"},attrs:{type:"danger",size:"medium"},on:{click:e.onlyAei}},[e._v("仅开具数电发票")]),t("el-button",{attrs:{type:"primary",size:"medium"},on:{click:function(t){e.dialogVisible=!1}}},[e._v(" 均可开具 ")])],1)])],1)},Vi=[],Ui=i("3a6e"),$i={components:{},props:{visible:{type:Number,default:0}},data:function(){return{dialogVisible:!1}},watch:{visible:function(){this.dialogVisible=!0}},computed:{},created:function(){var e=Ui["b"].INVOICE_ASK;localStorage.getItem(e)&&(localStorage.setItem(e,""),this.queryToastFlag())},mounted:function(){},methods:{onlyAei:function(){var e=this;Object(je["v"])({}).then((function(t){e.dialogVisible=!1,location.reload()}),(function(t){var i=t.message;e.$message.error(i)}))},queryToastFlag:function(){var e=this;Object(je["u"])({}).then((function(t){var i=t.data.data,n=i.toastFlag;n&&(e.dialogVisible=!0)}),(function(t){var i=t.message;e.$message.error(i)}))}}},Bi=$i,Ei=(i("1e4c"),Object(C["a"])(Bi,ji,Vi,!1,null,"4cc6dd7e",null)),Fi=Ei.exports;function qi(e){return qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qi(e)}function Hi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function zi(e){for(var t=1;t-1?(this.tipHide=!0,!1):(this.tipHide=!1,"home"==e?this.tipOpen+=1:this.tipOpen-=1,!0)}},beforeRouteLeave:function(e,t,i){this.tipStatus((e.name||"").toLocaleLowerCase()),i()}},Yi=Ki,Ji=(i("3ad5"),Object(C["a"])(Yi,r,c,!1,null,null,null)),Zi=Ji.exports,Xi=i("bc3a"),en=i.n(Xi);n["default"].use(s["a"]);var tn=new s["a"]({mode:"history",routes:[{path:"/",component:Zi,redirect:"Home",children:[{name:"Home",path:"Home",component:function(){return i.e("Home").then(i.bind(null,"ccde"))},meta:{title:"易发票2.0",keepAlive:!1}}]},{path:"/",component:Zi,redirect:"openAei",children:[{name:"openAei",path:"openAei",component:function(){return i.e("openAei").then(i.bind(null,"b2ed"))},meta:{title:"易发票2.0",keepAlive:!1}}]},{path:"",component:Zi,redirect:"completed",children:[{name:"completed",path:"completed",component:function(){return Promise.all([i.e("ComplteteInvoice~SpecialPurpose~UniversalTicket"),i.e("ComplteteInvoice")]).then(i.bind(null,"5c5f"))},meta:{title:"已完成发票",keepAlive:!1}}]},{path:"",component:Zi,redirect:"pmsOrderList",children:[{name:"pmsOrderList",path:"pmsOrderList",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("PMSlist")]).then(i.bind(null,"45a4"))},meta:{title:"PMS订单列表",keepAlive:!1}}]},{path:"",component:Zi,redirect:"infrasysOrderList",children:[{name:"infrasysOrderList",path:"infrasysOrderList",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("InfrasysList")]).then(i.bind(null,"0eeb"))},meta:{title:"POS订单列表",keepAlive:!1}}]},{path:"",component:Zi,redirect:"password",children:[{name:"password",path:"password",component:function(){return i.e("password").then(i.bind(null,"e970"))},meta:{title:"修改密码",keepAlive:!1}}]},{path:"",component:Zi,redirect:"time",children:[{name:"time",path:"time",component:function(){return i.e("RealTime").then(i.bind(null,"1a40"))},meta:{title:"今日实时待开发票列表"}}]},{path:"",component:Zi,redirect:"all",children:[{name:"all",path:"all",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("AllInvoice~UncompletedInvoice~searchInvoice"),i.e("AllInvoice")]).then(i.bind(null,"9391"))},meta:{title:"全部发票",keepAlive:!1}}]},{path:"",component:Zi,redirect:"redInfoList",children:[{name:"redInfoList",path:"/invoice/redInfoList",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("RedInfoList")]).then(i.bind(null,"5ed3"))},meta:{title:"红字信息管理",keepAlive:!1}}]},{path:"",component:Zi,redirect:"invoiceConfirmList",children:[{name:"invoiceConfirmList",path:"/invoice/invoiceConfirmList",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("InvoiceConfirmList")]).then(i.bind(null,"2f3e"))},meta:{title:"数电红字管理",keepAlive:!1}}]},{path:"",component:Zi,redirect:"searchBlagFP",children:[{name:"searchBlagFP",path:"/blag/searchBlag",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("searchBlag")]).then(i.bind(null,"7852"))},meta:{title:"索票查询",keepAlive:!1}}]},{path:"",component:Zi,redirect:"searchResvTitleFP",children:[{name:"searchResvTitleFP",path:"/resvTitle/searchResvTitle",component:function(){return i.e("searchResvTitle").then(i.bind(null,"2178"))},meta:{title:"预约开票",keepAlive:!1}}]},{path:"",component:Zi,redirect:"opening",children:[{name:"opening",path:"opening",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("AllInvoice~UncompletedInvoice~searchInvoice"),i.e("UncompletedInvoice")]).then(i.bind(null,"e3b4"))},meta:{title:"待开具发票",keepAlive:!0}}]},{path:"",component:Zi,redirect:"searchDirectFailFP",children:[{name:"searchDirectFailFP",path:"/searchDirectFailFP",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("searchDirectFail")]).then(i.bind(null,"a11a"))},meta:{title:"电票直开异常查询",keepAlive:!1}}]},{path:"",component:Zi,redirect:"searchAeiFailFP",children:[{name:"searchAeiFailFP",path:"/searchAeiFailFP",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("searchAeiFail")]).then(i.bind(null,"f126"))},meta:{title:"数电开具异常查询",keepAlive:!1}}]},{path:"",component:Zi,redirect:"twOpening",children:[{name:"twOpening",path:"twOpening",component:function(){return i.e("TwOpening").then(i.bind(null,"1e80"))},meta:{title:"待开具发票",keepAlive:!1}}]},{path:"",component:Zi,redirect:"twCompleted",children:[{name:"twCompleted",path:"twCompleted",component:function(){return i.e("TwCompleted").then(i.bind(null,"d67c"))},meta:{title:"待开具发票",keepAlive:!1}}]},{path:"",component:Zi,redirect:"twTaxMachine",children:[{name:"twTaxMachine",path:"twTaxMachine",component:function(){return i.e("TwTaxMachine").then(i.bind(null,"63ec"))},meta:{title:"税控机管理",keepAlive:!1}}]},{path:"",component:Zi,redirect:"tovoid",children:[{name:"tovoid",path:"tovoid",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("ToVoid")]).then(i.bind(null,"eea5"))},meta:{title:"作废发票",keepAlive:!1}}]},{path:"",component:Zi,redirect:"toRedify",children:[{name:"toRedify",path:"toRedify",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("ToRedify")]).then(i.bind(null,"1419"))},meta:{title:"红冲发票",keepAlive:!1}}]},{path:"",component:Zi,redirect:"toRedInfo",children:[{name:"toRedInfo",path:"toRedInfo",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("ToRedInfo")]).then(i.bind(null,"b2ab"))},meta:{title:"红字信息表申请",keepAlive:!1}}]},{path:"",component:Zi,redirect:"printing",children:[{name:"printing",path:"printing",component:function(){return i.e("PrintingInvoice").then(i.bind(null,"1daf"))},meta:{title:"待打印发票",keepAlive:!1}}]},{path:"",component:Zi,redirect:"special",children:[{name:"special",path:"special",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("ComplteteInvoice~SpecialPurpose~UniversalTicket"),i.e("SpecialPurpose~UniversalTicket"),i.e("SpecialPurpose")]).then(i.bind(null,"1514"))},meta:{title:"专票",keepAlive:!1}}]},{path:"",component:Zi,redirect:"universal",children:[{name:"universal",path:"universal",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("ComplteteInvoice~SpecialPurpose~UniversalTicket"),i.e("SpecialPurpose~UniversalTicket"),i.e("UniversalTicket")]).then(i.bind(null,"0750"))},meta:{title:"普票",keepAlive:!1}}]},{path:"",component:Zi,children:[{name:"offlineUniversal",path:"offlineUniversal",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("offlineUniversal")]).then(i.bind(null,"34a4"))},meta:{title:"线下补开票",keepAlive:!1}}]},{path:"/selectStore",component:function(){return i.e("selectStore").then(i.bind(null,"513c"))},meta:{title:"选择门店",keepAlive:!1,yc:"tohide"}},{path:"",component:Zi,redirect:"customer",children:[{name:"customer",path:"customer",component:function(){return i.e("CustomerList").then(i.bind(null,"3332"))},meta:{title:"客户管理"}}]},{path:"",component:Zi,redirect:"edit",children:[{name:"edit",path:"edit",component:function(){return i.e("CustomerEdit").then(i.bind(null,"6d28"))},meta:{title:"酒店编辑"}}]},{path:"",component:Zi,redirect:"report",children:[{name:"report",path:"report",component:function(){return i.e("ReportPrinting").then(i.bind(null,"9078"))},meta:{title:"报表统计"}}]},{path:"",component:Zi,redirect:"invoiceTrend",children:[{name:"invoiceTrendFP",path:"invoiceTrend",component:function(){return i.e("invoiceTrends").then(i.bind(null,"991e"))},meta:{title:"发票统计",keepAlive:!1}}]},{path:"",component:Zi,redirect:"invoiceSummarize",children:[{name:"invoiceSummarize",path:"invoiceSummarize",component:function(){return i.e("invoiceSummarize").then(i.bind(null,"a5a6"))},meta:{title:"发票汇总",keepAlive:!1}}]},{path:"",component:Zi,redirect:"deltaInvoiceReport",children:[{name:"deltaInvoiceReport",path:"deltaInvoiceReport",component:function(){return i.e("deltaInvoiceReport").then(i.bind(null,"a680"))},meta:{title:"发票差异汇总",keepAlive:!1}}]},{path:"",component:Zi,redirect:"qrcode",children:[{name:"qrcode",path:"qrcode",component:function(){return Promise.all([i.e("QRCode~taxmachines"),i.e("QRCode")]).then(i.bind(null,"096b"))},meta:{title:"二维码",keepAlive:!1}}]},{path:"",component:Zi,redirect:"scan",children:[{name:"scan",path:"scan",component:function(){return i.e("Scan").then(i.bind(null,"350f"))},meta:{title:"二维码"}}]},{path:"",component:Zi,redirect:"storeInfo",children:[{name:"storeInfo",path:"storeInfo",component:function(){return i.e("storeInfo").then(i.bind(null,"435c"))},meta:{title:"门店资料收集"}}]},{path:"",component:Zi,redirect:"storeInfoV2",children:[{name:"storeInfoV2",path:"storeInfoV2",component:function(){return i.e("StoreInfoV2").then(i.bind(null,"f240"))},meta:{title:"门店资料收集"}}]},{path:"",component:Zi,redirect:"storeApply",children:[{name:"storeApply",path:"storeApply",component:function(){return i.e("StoreApply").then(i.bind(null,"7765"))},meta:{title:"企业变更历史"}}]},{path:"",component:Zi,redirect:"endInfo",children:[{name:"endInfo",path:"endInfo",component:function(){return i.e("endInfo").then(i.bind(null,"510c"))},meta:{title:"终端信息",keepAlive:!1}}]},{path:"",component:Zi,redirect:"ImplementInfo",children:[{name:"ImplementInfo",path:"ImplementInfo",component:function(){return i.e("ImplementInfo").then(i.bind(null,"ccc4"))},meta:{title:"实施信息"}}]},{path:"",component:Zi,redirect:"markInfo",children:[{name:"markInfo",path:"markInfo",component:function(){return i.e("markInfo").then(i.bind(null,"77de"))},meta:{title:"销方信息"}}]},{path:"",component:Zi,redirect:"upload",children:[{name:"upload",path:"upload",component:function(){return i.e("upload").then(i.bind(null,"9ca5"))},meta:{title:"上传文件"}}]},{path:"",component:Zi,redirect:"Switchs",children:[{name:"Switchs",path:"Switchs",component:function(){return i.e("Switchs").then(i.bind(null,"57ef"))},meta:{title:"开关"}}]},{path:"",component:Zi,redirect:"marginLeft",children:[{name:"marginLeft",path:"marginLeft",component:function(){return i.e("marginLeft").then(i.bind(null,"b249"))},meta:{title:"门店设置"}}]},{path:"",component:Zi,redirect:"frontPrintMargin",children:[{name:"frontPrintMargin",path:"frontPrintMargin",component:function(){return i.e("frontPrintMargin").then(i.bind(null,"b89e"))},meta:{title:"基本设置"}}]},{path:"",component:Zi,redirect:"terminalStates",children:[{name:"terminalStates",path:"terminalStates",component:function(){return i.e("terminalStates").then(i.bind(null,"ceba"))},meta:{title:"税控机状态"}}]},{path:"",component:Zi,redirect:"helpService",children:[{name:"helpService",path:"helpService",component:function(){return i.e("helpService").then(i.bind(null,"e2df"))},meta:{title:"常用软件"}}]},{path:"",component:Zi,redirect:"onlineHelp",children:[{name:"onlineHelp",path:"onlineHelp",component:function(){return i.e("onlineHelp").then(i.bind(null,"891f"))},meta:{title:"在线知识库"}}]},{path:"",component:Zi,redirect:"taxmachines",children:[{name:"taxmachines",path:"taxmachines",component:function(){return Promise.all([i.e("QRCode~taxmachines"),i.e("taxmachines")]).then(i.bind(null,"64bd"))},meta:{title:"税控机管理"}}]},{path:"",component:Zi,redirect:"aeiTaxmachines",children:[{name:"aeiTaxmachines",path:"aeiTaxmachines",component:function(){return i.e("aeiTaxmachines").then(i.bind(null,"789b"))},meta:{title:"数电开票员管理",keepAlive:!1}}]},{path:"",component:Zi,redirect:"/scan/taxRate",children:[{name:"taxRateFP",path:"taxRate",component:function(){return i.e("taxRate").then(i.bind(null,"cb28"))},meta:{title:"税率管理"}}]},{path:"",component:Zi,redirect:"/scan/storeGoods",children:[{name:"storeGoodsFP",path:"storeGoods",component:function(){return i.e("scanStoreGoods").then(i.bind(null,"da2d"))},meta:{title:"商品管理"}}]},{path:"",component:Zi,redirect:"/scan/storeDrawer",children:[{name:"storeDrawerFP",path:"storeDrawer",component:function(){return i.e("storeDrawer").then(i.bind(null,"3a3b"))},meta:{title:"系统账号管理"}}]},{path:"",component:Zi,redirect:"invoice/ofd2pdf/:serialNo?",children:[{name:"ofd2pdf",path:"invoice/ofd2pdf/:serialNo?",component:function(){return i.e("ofd2pdf").then(i.bind(null,"7548"))},meta:{title:"易发票ofd转pdf"}}]},{path:"",component:Zi,redirect:"invoice/queryFiles/:serialNo?",children:[{name:"queryFiles",path:"invoice/queryFiles/:serialNo?",component:function(){return i.e("queryFiles").then(i.bind(null,"b7ec"))},meta:{title:"发票预览"}}]},{path:"",component:Zi,redirect:"mobile",children:[{name:"mobile",path:"mobile",component:function(){return i.e("mobiles").then(i.bind(null,"cdaf"))},meta:{title:"开具页面"}}]},{path:"",component:Zi,redirect:"agreement",children:[{name:"agreement",path:"agreement",component:function(){return i.e("agreement").then(i.bind(null,"97ef"))},meta:{title:"用户协议"}}]},{path:"",component:Zi,redirect:"appdownload",children:[{name:"appdownload",path:"appdownload",component:function(){return i.e("appdownload").then(i.bind(null,"2bb1"))},meta:{title:"下载税务APP"}}]},{path:"",component:Zi,redirect:"success",children:[{name:"success",path:"success",component:function(){return i.e("Success").then(i.bind(null,"83d9"))},meta:{title:"打印成功"}}]},{path:"",component:Zi,redirect:"admin",children:[{name:"admin",path:"admin",component:function(){return i.e("Admin").then(i.bind(null,"8c67"))},meta:{title:"后台首页"}}]},{path:"",component:Zi,redirect:"admin/company",children:[{name:"company",path:"admin/company",component:function(){return i.e("CompanyInfo").then(i.bind(null,"bea7"))},meta:{title:"公司管理"}}]},{path:"",component:Zi,redirect:"/admin/merchant",children:[{name:"merchant",path:"admin/merchant",component:function(){return i.e("Merchant").then(i.bind(null,"5b25"))},meta:{title:"商户管理"}}]},{path:"",component:Zi,redirect:"/admin/storeAei",children:[{name:"storeAei",path:"admin/storeAei",component:function(){return Promise.all([i.e("aeiTaxmachines"),i.e("storeAei")]).then(i.bind(null,"1f81"))},meta:{title:"数电开票员管理",keepAlive:!1}}]},{path:"",component:Zi,redirect:"/admin/merchantExt",children:[{name:"merchantExt",path:"admin/merchantExt",component:function(){return i.e("MerchantExt").then(i.bind(null,"bddb"))},meta:{title:"商户EXT管理"}}]},{path:"",component:Zi,redirect:"/admin/merchantApiAuth",children:[{name:"merchantApiAuth",path:"admin/merchantApiAuth",component:function(){return i.e("MerchantApiAuth").then(i.bind(null,"53a2"))},meta:{title:"商户API权限管理"}}]},{path:"",component:Zi,redirect:"/admin/store",children:[{name:"store",path:"admin/store",component:function(){return i.e("Store").then(i.bind(null,"43af"))},meta:{title:"门店管理"}}]},{path:"",component:Zi,redirect:"/admin/storeSwitch",children:[{name:"storeSwitch",path:"admin/storeSwitch",component:function(){return i.e("StoreSwitch").then(i.bind(null,"4878"))},meta:{title:"门店开关管理"}}]},{path:"",component:Zi,redirect:"/admin/storeGoods",children:[{name:"storeGoods",path:"admin/storeGoods",component:function(){return i.e("adminStoreGoods").then(i.bind(null,"ac75"))},meta:{title:"税目代码管理"}}]},{path:"",component:Zi,redirect:"/admin/taxCode",children:[{name:"taxCode",path:"admin/taxCode",component:function(){return i.e("TaxCode").then(i.bind(null,"e120"))},meta:{title:"税目代码管理"}}]},{path:"",component:Zi,redirect:"/admin/taxMachine",children:[{name:"taxMachine",path:"admin/taxMachine",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("TaxCodeMachine")]).then(i.bind(null,"a564"))},meta:{title:"税控机管理"}}]},{path:"",component:Zi,redirect:"/admin/firstRateStat",children:[{name:"firstRateStat",path:"admin/firstRateStat",component:function(){return Promise.all([i.e("chunk-4b222ffa"),i.e("firstRateStat")]).then(i.bind(null,"16d5"))},meta:{title:"一次成功率统计"}}]},{path:"",component:Zi,redirect:"/admin/taxCodeMapping",children:[{name:"taxCodeMapping",path:"admin/taxCodeMapping",component:function(){return i.e("TaxCodeMapping").then(i.bind(null,"3a96"))},meta:{title:"税目代码映射管理"}}]},{path:"",component:Zi,redirect:"/admin/user",children:[{name:"user",path:"admin/user",component:function(){return i.e("User").then(i.bind(null,"8ee8"))},meta:{title:"用户管理"}}]},{path:"",component:Zi,redirect:"/admin/troubleshootingReport",children:[{name:"troubleshootingReport",path:"admin/troubleshootingReport",component:function(){return i.e("troubleshootingReport").then(i.bind(null,"3ab2"))},meta:{title:"实施排查报表"}}]},{path:"",component:Zi,redirect:"/admin/bwUser",children:[{name:"bwUser",path:"admin/bwUser",component:function(){return i.e("bwUser").then(i.bind(null,"176e"))},meta:{title:"百望开发者"}}]},{path:"",component:Zi,redirect:"/admin/bwTaxNo",children:[{name:"bwTaxNo",path:"admin/bwTaxNo",component:function(){return i.e("bwTaxNo").then(i.bind(null,"d5b8c"))},meta:{title:"百望税号"}}]},{path:"",component:Zi,redirect:"/admin/bwOrg",children:[{name:"bwOrg",path:"admin/bwOrg",component:function(){return i.e("bwOrg").then(i.bind(null,"c4e8"))},meta:{title:"机构管理"}}]},{path:"",component:Zi,redirect:"/admin/printMargin",children:[{name:"printMargin",path:"admin/printMargin",component:function(){return i.e("PrintMargin").then(i.bind(null,"4935"))},meta:{title:"打印边距设置"}}]},{path:"",component:Zi,redirect:"/admin/aeiAccount",children:[{name:"aeiAccount",path:"admin/aeiAccount",component:function(){return i.e("aeiAccount").then(i.bind(null,"232f"))},meta:{title:"数电账号查询"}}]},{path:"",component:Zi,redirect:"/admin/searchInvoice",children:[{name:"searchInvoice",path:"admin/searchInvoice",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("AllInvoice~UncompletedInvoice~searchInvoice"),i.e("searchInvoice")]).then(i.bind(null,"d752"))},meta:{title:"发票查询"}}]},{path:"",component:Zi,redirect:"/admin/searchInvoiceExt",children:[{name:"searchInvoiceExt",path:"admin/searchInvoiceExt",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("searchInvoiceExt")]).then(i.bind(null,"ccb8"))},meta:{title:"发票扩展信息查询"}}]},{path:"",component:Zi,redirect:"/admin/searchInvoiceSettle",children:[{name:"searchInvoiceSettle",path:"admin/searchInvoiceSettle",component:function(){return i.e("searchInvoiceSettle").then(i.bind(null,"b859"))},meta:{title:"发票结算(老)"}}]},{path:"",component:Zi,redirect:"/admin/vendorInvoiceSettle",children:[{name:"vendorInvoiceSettle",path:"admin/vendorInvoiceSettle",component:function(){return i.e("vendorInvoiceSettle").then(i.bind(null,"8dcb"))},meta:{title:"供应商发票结算"}}]},{path:"",component:Zi,redirect:"/admin/aeiManage",children:[{name:"aeiManage",path:"admin/aeiManage",component:function(){return i.e("aeiManage").then(i.bind(null,"5334"))},meta:{title:"数电功能开通管理"}}]},{path:"",component:Zi,redirect:"/admin/searchDirectFail",children:[{name:"searchDirectFail",path:"admin/searchDirectFail",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("searchDirectFail")]).then(i.bind(null,"166f"))},meta:{title:"电票直开异常查询"}}]},{path:"",component:Zi,redirect:"/admin/searchAeiFail",children:[{name:"searchAeiFail",path:"admin/searchAeiFail",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("searchAeiFail")]).then(i.bind(null,"280b"))},meta:{title:"数电开具异常查询"}}]},{path:"",component:Zi,redirect:"/admin/searchTwInvoice",children:[{name:"searchTwInvoice",path:"admin/searchTwInvoice",component:function(){return i.e("searchTwInvoice").then(i.bind(null,"0618"))},meta:{title:"发票查询(TW)"}}]},{path:"",component:Zi,redirect:"/admin/deltaInvoice",children:[{name:"deltaInvoice",path:"admin/deltaInvoice",component:function(){return i.e("deltaInvoice").then(i.bind(null,"b952"))},meta:{title:"发票差异"}}]},{path:"",component:Zi,redirect:"/admin/searchBlag",children:[{name:"searchBlag",path:"admin/searchBlag",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("searchBlag")]).then(i.bind(null,"d096"))},meta:{title:"索票查询"}}]},{path:"",component:Zi,redirect:"/admin/searchBwInvoice",children:[{name:"searchBwInvoice",path:"admin/searchBwInvoice",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("searchBwInvoice")]).then(i.bind(null,"8e46"))},meta:{title:"发票查询(BW)"}}]},{path:"",component:Zi,redirect:"/admin/searchPlatInvoice",children:[{name:"searchPlatInvoice",path:"admin/searchPlatInvoice",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("searchPlatInvoice")]).then(i.bind(null,"fece"))},meta:{title:"发票查询(税局)"}}]},{path:"",component:Zi,redirect:"/admin/invoiceOpenStat",children:[{name:"invoiceOpenStat",path:"admin/invoiceOpenStat",component:function(){return i.e("invoiceOpenStat").then(i.bind(null,"3f17"))},meta:{title:"总成功率统计"}}]},{path:"",component:Zi,redirect:"/admin/aeiOpenProgressStat",children:[{name:"aeiOpenProgressStat",path:"admin/aeiOpenProgressStat",component:function(){return i.e("aeiOpenProgressStat").then(i.bind(null,"2073"))},meta:{title:"数电开通进度查询"}}]},{path:"",component:Zi,redirect:"/admin/invoiceApplyStat",children:[{name:"invoiceApplyStat",path:"admin/invoiceApplyStat",component:function(){return i.e("invoiceApplyStat").then(i.bind(null,"18f5"))},meta:{title:"渠道开票统计"}}]},{path:"",component:Zi,redirect:"/admin/aeiLoginStat",children:[{name:"aeiLoginStat",path:"admin/aeiLoginStat",component:function(){return i.e("aeiLoginStat").then(i.bind(null,"3841"))},meta:{title:"数电登录频次统计"}}]},{path:"",component:Zi,redirect:"/admin/searchRedInvoice",children:[{name:"searchRedInvoice",path:"admin/searchRedInvoice",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("searchRedInvoice")]).then(i.bind(null,"5eb5"))},meta:{title:"红字信息查询"}}]},{path:"",component:Zi,redirect:"/admin/searchInvoiceConfirm",children:[{name:"searchInvoiceConfirm",path:"admin/searchInvoiceConfirm",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("searchInvoiceConfirm")]).then(i.bind(null,"3cbe"))},meta:{title:"数电红字查询"}}]},{path:"",component:Zi,redirect:"/admin/invoiceTrend",children:[{name:"invoiceTrend",path:"admin/invoiceTrend",component:function(){return i.e("invoiceTrend").then(i.bind(null,"7999"))},meta:{title:"发票走势"}}]},{path:"",component:Zi,redirect:"/admin/performance",children:[{name:"performance",path:"admin/performance",component:function(){return i.e("performance").then(i.bind(null,"160e"))},meta:{title:"性能日志"}}]},{path:"",component:Zi,redirect:"/admin/bwException",children:[{name:"bwException",path:"admin/bwException",component:function(){return i.e("bwException").then(i.bind(null,"4f65"))},meta:{title:"接口异常"}}]},{path:"",component:Zi,redirect:"/admin/apiLimit",children:[{name:"apiLimit",path:"admin/apiLimit",component:function(){return i.e("apiLimit").then(i.bind(null,"dc0a"))},meta:{title:"发票接口限流"}}]},{path:"",component:Zi,redirect:"/admin/bwNotify",children:[{name:"bwNotify",path:"admin/bwNotify",component:function(){return i.e("bwNotify").then(i.bind(null,"f57b"))},meta:{title:"百望通知"}}]},{path:"",component:Zi,redirect:"/admin/bwExceptionStat",children:[{name:"bwExceptionStat",path:"admin/bwExceptionStat",component:function(){return i.e("bwExceptionStat").then(i.bind(null,"4a35c"))},meta:{title:"发票接口汇总统计"}}]},{path:"",component:Zi,redirect:"/admin/storeInvoiceCount",children:[{name:"storeInvoiceCount",path:"admin/storeInvoiceCount",component:function(){return i.e("storeInvoiceCount").then(i.bind(null,"9b08"))},meta:{title:"开票排名"}}]},{path:"",component:Zi,redirect:"/admin/pmsNotify",children:[{name:"pmsNotify",path:"admin/pmsNotify",component:function(){return Promise.all([i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~SpecialPurpose~TaxCodeMachine~ToRedIn~7a0717be"),i.e("AllInvoice~InfrasysList~InvoiceConfirmList~PMSlist~RedInfoList~UncompletedInvoice~pmsNotify~searchAe~b2fa63a0"),i.e("pmsNotify")]).then(i.bind(null,"1bac"))},meta:{title:"Pms通知"}}]},{path:"",component:Zi,redirect:"/admin/storeDrawer",children:[{name:"storeDrawer",path:"admin/storeDrawer",component:function(){return i.e("storeDrawer").then(i.bind(null,"93d1"))},meta:{title:"门店开票员查询"}}]},{path:"",component:Zi,redirect:"/admin/storeStateReport",children:[{name:"storeStateReport",path:"admin/storeStateReport",component:function(){return i.e("storeStateReport").then(i.bind(null,"e72c"))},meta:{title:"门店状态报表"}}]},{path:"",component:Zi,redirect:"/admin/errorRateReport",children:[{name:"errorRateReport",path:"admin/errorRateReport",component:function(){return i.e("errorRateReport").then(i.bind(null,"2150"))},meta:{title:"传统总报错率统计"}}]},{path:"",component:Zi,redirect:"/admin/summaryReport",children:[{name:"summaryReport",path:"admin/summaryReport",component:function(){return i.e("summaryReport").then(i.bind(null,"5894"))},meta:{title:"汇总报表"}}]},{path:"",component:Zi,redirect:"/admin/hotelBasicInfo",children:[{name:"hotelBasicInfo",path:"admin/hotelBasicInfo",component:function(){return i.e("hotelBasicInfo").then(i.bind(null,"bf86"))},meta:{title:"门店信息查询"}}]},{path:"",component:Zi,redirect:"/admin/empInfoList",children:[{name:"empInfoList",path:"admin/empInfoList",component:function(){return i.e("empInfoList").then(i.bind(null,"63d0"))},meta:{title:"人员信息查询"}}]},{path:"",component:Zi,redirect:"/admin/roleMappingList",children:[{name:"roleMappingList",path:"admin/roleMappingList",component:function(){return i.e("roleMappingList").then(i.bind(null,"cf00"))},meta:{title:"职位映射管理"}}]},{path:"",component:Zi,redirect:"/admin/otherEmpHotel",children:[{name:"otherEmpHotel",path:"admin/otherEmpHotel",component:function(){return i.e("otherEmpHotel").then(i.bind(null,"83d7"))},meta:{title:"其他人店查询"}}]},{path:"",component:Zi,redirect:"/admin/empHotel",children:[{name:"empHotel",path:"admin/empHotel",component:function(){return i.e("empHotel").then(i.bind(null,"a84e"))},meta:{title:"人店关系查询"}}]},{path:"",component:Zi,redirect:"/admin/hotelPosition",children:[{name:"hotelPosition",path:"admin/hotelPosition",component:function(){return i.e("hotelPosition").then(i.bind(null,"1af6"))},meta:{title:"管店关系查询"}}]},{path:"",component:Zi,redirect:"/admin/storeAuth",children:[{name:"storeAuth",path:"admin/storeAuth",component:function(){return i.e("storeAuth").then(i.bind(null,"a007"))},meta:{title:"授权码查询"}}]},{path:"",component:Zi,redirect:"/msp/mspSync",children:[{name:"mspSync",path:"admin/mspSync",component:function(){return i.e("mspSync").then(i.bind(null,"0c5a"))},meta:{title:"MSP同步"}}]},{path:"",component:Zi,redirect:"/admin/storeTitle",children:[{name:"storeTitle",path:"admin/storeTitle",component:function(){return i.e("storeTitle").then(i.bind(null,"3cfe"))},meta:{title:"门店开票抬头"}}]},{path:"",component:Zi,redirect:"/admin/codeType",children:[{name:"codeType",path:"admin/codeType",component:function(){return i.e("CodeType").then(i.bind(null,"f861"))},meta:{title:"数据字典"}}]},{path:"",component:Zi,redirect:"/admin/performanceStat",children:[{name:"performanceStat",path:"admin/performanceStat",component:function(){return i.e("PerformanceStat").then(i.bind(null,"0ac4"))},meta:{title:"性能汇总数据"}}]},{path:"",component:Zi,redirect:"taxcodes",children:[{name:"taxcodes",path:"taxcodes",component:function(){return i.e("taxcodes").then(i.bind(null,"9ad5"))},meta:{title:"税目映射"}}]},{path:"",component:Zi,redirect:"orderOpenManage",children:[{name:"orderOpenManage",path:"orderOpenManage",component:function(){return i.e("orderOpenManage").then(i.bind(null,"3c9b"))},meta:{title:"订单开具管理"}}]},{path:"",component:Zi,redirect:"/admin/openingInvoice",children:[{name:"openingInvoice",path:"/admin/openingInvoice",component:function(){return i.e("openingInvoice").then(i.bind(null,"9c6f"))},meta:{title:"超时发票列表"}}]},{path:"",component:Zi,redirect:"/admin/invoiceTitle",children:[{name:"invoiceTitle",path:"/admin/invoiceTitle",component:function(){return i.e("OldInvoiceTitle").then(i.bind(null,"0241"))},meta:{title:"发票抬头管理"}}]},{path:"",component:Zi,redirect:"/admin/esTitle",children:[{name:"esTitle",path:"/admin/esTitle",component:function(){return i.e("OldEsTitle").then(i.bind(null,"9ce1"))},meta:{title:"发票搜索表管理"}}]},{path:"",component:Zi,redirect:"/admin/mbTitle",children:[{name:"mbTitle",path:"/admin/mbTitle",component:function(){return i.e("OldMbTitle").then(i.bind(null,"e8a0"))},meta:{title:"公众号发票"}}]},{path:"",component:Zi,redirect:"/admin/esSearch",children:[{name:"esSearch",path:"/admin/esSearch",component:function(){return i.e("OldSearch").then(i.bind(null,"92f9"))},meta:{title:"发票搜索ES管理"}}]},{path:"",component:Zi,redirect:"/admin/suspectInvoice",children:[{name:"suspectInvoice",path:"/admin/suspectInvoice",component:function(){return i.e("SuspectInvoice").then(i.bind(null,"3550"))},meta:{title:"发票举报管理"}}]},{path:"",component:Zi,redirect:"/admin/operateLog",children:[{name:"operateLog",path:"admin/operateLog",component:function(){return i.e("operateLog").then(i.bind(null,"e457"))},meta:{title:"操作日志"}}]},{path:"",component:Zi,redirect:"/admin/notifyMain",children:[{name:"notifyMain",path:"admin/notifyMain",component:function(){return i.e("notifyMain").then(i.bind(null,"95d8"))},meta:{title:"开屏通知"}}]},{path:"",component:Zi,redirect:"/admin/articleList",children:[{name:"articleList",path:"admin/articleList",component:function(){return i.e("articleList").then(i.bind(null,"45ab"))},meta:{title:"文案管理"}}]},{path:"",component:Zi,redirect:"/admin/errorPushSettings",children:[{name:"errorPushSettings",path:"admin/errorPushSettings",component:function(){return i.e("errorPushSettings").then(i.bind(null,"070d"))},meta:{title:"报错推送配置"}}]},{path:"",component:Zi,redirect:"/admin/smsConfig",children:[{name:"smsConfig",path:"admin/smsConfig",component:function(){return i.e("smsConfig").then(i.bind(null,"14e5"))},meta:{title:"短信网关"}}]},{path:"",component:Zi,redirect:"/admin/resvTitle",children:[{name:"resvTitle",path:"admin/resvTitle",component:function(){return i.e("resvTitle").then(i.bind(null,"6cca"))},meta:{title:"预约开票"}}]},{path:"",component:Zi,redirect:"/admin/mailConfig",children:[{name:"mailConfig",path:"admin/mailConfig",component:function(){return i.e("mailConfig").then(i.bind(null,"39ac"))},meta:{title:"邮箱网关"}}]},{path:"",component:Zi,redirect:"/admin/pushLog",children:[{name:"pushLog",path:"admin/pushLog",component:function(){return i.e("pushLog").then(i.bind(null,"05d9"))},meta:{title:"推送日志"}}]},{path:"",component:Zi,redirect:"/mg_sso_logout",children:[{name:"MgSsoLogout",path:"/mg_sso_logout",component:function(){return i.e("MgSsoLogout").then(i.bind(null,"7ba1"))},meta:{title:"退出盟广SSO"}}]},{path:"",component:Zi,redirect:"ssoSuccess",children:[{name:"ssoSuccess",path:"ssoSuccess",component:function(){return Promise.all([i.e("ssoFail~ssoSuccess"),i.e("ssoSuccess")]).then(i.bind(null,"861a"))},meta:{title:"SSO登录成功"}}]},{path:"",component:Zi,redirect:"ssoFail",children:[{name:"ssoFail",path:"ssoFail",component:function(){return Promise.all([i.e("ssoFail~ssoSuccess"),i.e("ssoFail")]).then(i.bind(null,"08594"))},meta:{title:"SSO登录失败"}}]},{path:"",component:Zi,redirect:"mgsso",children:[{name:"mgsso",path:"mgsso",component:function(){return i.e("MgSsoLogout").then(i.bind(null,"7ba1"))},meta:{title:"mgSso登陆"}}]},{path:"",component:Zi,redirect:"forceChangePwd",children:[{name:"forceChangePwd",path:"forceChangePwd",component:function(){return i.e("forceChangePwd").then(i.bind(null,"3661"))},meta:{title:"密码更新"}}]},{path:"/*",component:Zi,redirect:"error",children:[{name:"error",path:"/error",component:function(){return i.e("404").then(i.bind(null,"f5de"))},meta:{title:"error"}}]}]});tn.afterEach((function(e,t){e.meta.title&&(document.title=e.meta.title)})),tn.beforeEach((function(e,t,i){var n=e.path;if(console.log("beforeEach path",n),["/forceChangePwd","/ssoSuccess","/ssoFail"].includes(n)?console.log("ignore refresh"):en.a.get("/json/build_version.json?v="+(new Date).getTime().toString()).then((function(e){var t=e.data.build_version,i=localStorage.getItem("build_version")||"";console.log(i,t),i!==t&&(console.log("auto refresh"),localStorage.setItem("build_version",t),location.reload())})),u["a"].needNotAuthorize(e.path))i();else if(e.matched.some((function(e){return e.meta.requireAuth})))i();else{var a=u["a"].getCookie("userInfo");if(a)i();else if("/selectStore"==e.path){var o=JSON.parse(localStorage.getItem("tokenInfo"));o?i():window.location.href="/login.html"}else"/mgsso"==e.path?window.location.href="/gp/mgsso/login":window.location.href="/login.html"}})),tn.onError((function(e){console.log("检测到js报错",e);var t=/Loading chunk (\S)+ failed/g,i=/Loading CSS chunk (\S)+ failed/g,n=e.message.match(t||i);n&&window.location.reload()}));var nn=tn,an=function(){var e=this,t=e._self._c;return t("router-view")},on=[],sn={name:"App",data:function(){return{typeId:"",routerData:"",aside:!0,deft:!0,content:!0,style:"",style1:"{'width':aside? 'calc(100% - 200px)':'100%'}",style2:"{'width':aside? 'calc(100% - 160px)':'100%'}",src:"",typeHref:""}},methods:{setTypeId:function(e){this.typeId=e,window.localStorage.setItem("typeId",this.typeId)},queryDeployType:function(){var e=this;u["a"].axiosPost("/gp/common/deployType").then((function(t){t.data.success&&(window.localStorage.setItem("mgSso",t.data.data.mgSso),window.localStorage.setItem("hzSso",t.data.data.hzSso),window.localStorage.setItem("hzSaml",t.data.data.hzSaml),window.localStorage.setItem("hzSamlLogoutUrl",t.data.data.hzSamlLogoutUrl),window.localStorage.setItem("env",t.data.data.env),e.$store.dispatch("saveDeployInfo",t.data.data))})).catch((function(t){console.log(t),clearTimeout(e.extraData.deployTimer),e.extraData.deployTimer=setTimeout((function(){e.queryDeployType()}),2e3)}))},getHotelGreyFlag:function(){var e=u["a"].getUserInfo();_.isEmpty(e)||u["a"].axiosPost("/gp/user/hotelGrayFlag",{}).then((function(e){var t=e.data.data.gray;null!=t&&localStorage.getItem("greyFlag")!=t.toString()&&(localStorage.setItem("greyFlag",t),Object(f["c"])(),location.reload())})).catch((function(e){}))}},created:function(){var e=this;this.extraData={deployTimer:null},this.queryDeployType(),this.setTypeId("0"),setInterval((function(){e.getHotelGreyFlag()}),6e5),this.getHotelGreyFlag()}},rn=sn,cn=(i("62cf"),Object(C["a"])(rn,an,on,!1,null,null,null)),ln=cn.exports,dn=i("4eb5"),un=i.n(dn),fn=null,mn=function(e){fn&&fn.close(),fn=Object(a["Message"])(e)},hn=["success","error","warning","info"];hn.forEach((function(e){mn[e]=function(t){return"string"===typeof t&&(t={message:t}),t.type=e,mn(t)}}));var pn=mn,gn=(i("db4d"),i("313e")),vn=i.n(gn);n["default"].directive("drag",{inserted:function(e,t){console.log("binding",t);var i=e.parentNode,n=document.documentElement.clientWidth||document.body.clientWidth,a=document.documentElement.clientHeight||document.body.clientHeight;e.onmousedown=function(e){i.className;var t=e.clientX-i.offsetLeft,o=e.clientY-i.offsetTop;document.onmousemove=function(e){var s=e.clientX-t,r=e.clientY-o;s-i.offsetWidth/2<0&&(s=i.offsetWidth/2),r-i.offsetHeight/2<0&&(r=i.offsetHeight/2),s>=n-i.offsetWidth+i.offsetWidth/2&&(s=n-i.offsetWidth/2),r>a-i.offsetHeight+i.offsetHeight/2&&(r=a-i.clientHeight+i.offsetHeight/2),i.style.left=s+"px",i.style.top=r+"px"},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}}),n["default"].directive("dragtip",{inserted:function(e){var t=e,i=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight;e.onmousedown=function(e){var a=e.clientX-t.offsetLeft,o=e.clientY-t.offsetTop;t.className.indexOf("open")>-1||(document.onmousemove=function(e){var s=e.clientX-a,r=e.clientY-o;s<10&&(s=10),r<10&&(r=10),s>=i-t.offsetWidth-10&&(s=i-t.offsetWidth-10),r>n-t.offsetHeight-10&&(r=n-t.clientHeight-10),t.style.top=r+"px"},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null})}}}),n["default"].directive("dialogDrag",{bind:function(e,t,i,n){var a=e.querySelector(".el-dialog__header"),o=e.querySelector(".el-dialog");a.style.cursor="move";var s=o.currentStyle||window.getComputedStyle(o,null);a.onmousedown=function(e){var t,i,n=e.clientX-a.offsetLeft,r=e.clientY-a.offsetTop;s.left.includes("%")?(t=+document.body.clientWidth*(+s.left.replace(/\%/g,"")/100),i=+document.body.clientHeight*(+s.top.replace(/\%/g,"")/100)):(t=+s.left.replace(/\px/g,""),i=+s.top.replace(/\px/g,"")),document.onmousemove=function(e){var a=e.clientX-n,s=e.clientY-r;o.style.left="".concat(a+t,"px"),o.style.top="".concat(s+i,"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}}),n["default"].directive("dialogDragWidth",{bind:function(e,t,i,n){var a=t.value.$el.querySelector(".el-dialog");e.onmousedown=function(t){var i=t.clientX-e.offsetLeft;document.onmousemove=function(e){e.preventDefault();var t=e.clientX-i;a.style.width="".concat(t,"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}});i("0abe");var bn=i("f339");n["default"].use(un.a),n["default"].prototype.$echarts=vn.a,n["default"].use(o.a),n["default"].prototype.$myMessage=pn,n["default"].config.productionTip=!1,n["default"].prototype.$bus=new n["default"],n["default"].filter("datafmt",(function(e,t){return Ue()(e).format(t)})),new n["default"]({el:"#app",data:function(){return{bus:new n["default"]}},router:nn,store:bn["a"],render:function(e){return e(ln)}})},"5a37":function(e,t,i){"use strict";i("7ec5")},"5a9c":function(e,t,i){},"5c1d":function(e,t,i){e.exports=i.p+"static/img/2.52b86a91.png"},"5c78":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAYAAAAx8TU7AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAABwSURBVAiZbY2xDcIwFAXPX0h4B/ZIOoZgBUtfLnDHJqRw85ehw3tkB1PYporkIlednnR6qOo7pXRlQoBnrfUTY7zNI865pff+DSEsAE5Vx1T+gJdwwmXyvbX2MLMiAGOMIiKrmZXjaPPe33PO+5H8AffWIpBn7pJDAAAAAElFTkSuQmCC"},"5c93":function(e,t,i){e.exports=i.p+"static/img/invoice3.5534f089.png"},6049:function(e,t,i){},6180:function(e,t,i){"use strict";var n=i("9816");t["a"]={encrypt:function(e,t){var i=new n["a"];return i.setPublicKey(t),i.encrypt(e)}}},"62cf":function(e,t,i){"use strict";i("1cf3")},"68a0":function(e,t,i){"use strict";i("afab")},"6b44":function(e,t,i){e.exports=i.p+"static/img/piao1.f8a93332.png"},"6d0f":function(e,t,i){},7337:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAADZSURBVDiNpZK/CcJAGMW/iANkAYnZQBBrM4qdE9i7gVg6hbiAwQGCvYWHiJ0SneBn4QOPcDGRPDguvH9f7hKzjohCJBCb2dzMpqIOZraJoujZ2AgkwJkPCi3EJW0K9sAdmHjcRNy+KZxq2iKgLaSlPt+r+Abai0B/UfEEC67ax4GCccUTRqc7kDkBSp33BFz0XDZ+BSADcgVewAO48YUDRnXhmWfKanQnz6wqDvWKTn9h3ZAYOMob+8JKzcOfZ/wOA1j6ZA64prDnd8DWzKwvbtc2LKz/9NfjDci3CdU476N3AAAAAElFTkSuQmCC"},7389:function(e,t,i){"use strict";var n=function(){var e=this,t=e._self._c;return t("el-row",[t("el-col",{attrs:{span:14}},[t("el-select",{staticClass:"span type",attrs:{placeholder:e.placeholderText},on:{change:e.changeValue},model:{value:e.myTerminalId,callback:function(t){e.myTerminalId=t},expression:"myTerminalId"}},e._l(e.terminalList,(function(e,i){return t("el-option",{key:i,attrs:{label:e.taxMachineName,value:e.taxMachineId}})})),1)],1),t("el-col",{attrs:{span:10}},[t("el-button",{attrs:{type:"primary",loading:e.saveLoading},on:{click:e.saveTerminal}},[e._v("保存")])],1)],1)},a=[],o=i("2f14"),s={name:"TerminalSelect",props:{placeholderText:{type:String},autoSave:{type:Boolean,default:!0},onlyTraditionTerminal:{type:Boolean,default:!1}},data:function(){return{terminalList:[],myTerminalId:"",storeId:"",saveLoading:!1,hasTerminal:!1}},mounted:function(){var e=o["a"].getUserInfo();this.storeId=e.storeid,""==e.taxmachineid?(this.myTerminalId="",this.hasTerminal=!1):(this.myTerminalId=Number(e.taxmachineid),this.hasTerminal=!0),this.loadTerminalList(this.storeId)},methods:{changeValue:function(e){this.autoSave?this.saveTerminal(e):(this.$emit("update:terminalId",this.myTerminalId),this.$emit("afterSwitch",this.myTerminalId))},loadTerminalList:function(e){var t=this,i={storeid:e};o["a"].axiosPost("/gp/taxMachine/taxMachineList",i).then((function(e){if(e.data.success){var i=t.onlyTraditionTerminal,n=t.myTerminalId,a=e.data.data;if(console.log(i,n),i){var s=a.filter((function(e){return!o["a"].isAeiDiskType(e.diskType)}));console.log(s),t.terminalList=s,t.terminalList.find((function(e){return"".concat(e.taxMachineId)==="".concat(t.myTerminalId)}))||(t.myTerminalId="")}else t.terminalList=e.data.data}else t.$message.error(e.data.message)})).catch((function(e){}))},saveTerminal:function(){var e=this;if(!this.myTerminalId)return this.$message.error("开票点信息不能为空"),!1;var t={storeid:this.storeid,taxmachineid:this.myTerminalId};this.saveLoading=!0,o["a"].axiosPost("/gp/user/bindTaxMachine",t).then((function(t){e.saveLoading=!1,t.data.success?(e.refreshUserToken(t.data.data),e.$emit("update:terminalId",e.myTerminalId),e.$emit("afterSwitch",e.myTerminalId),e.$emit("saveTerminal",e.myTerminalId),e.$message.success("保存开票点成功")):e.$message.error(t.data.message)})).catch((function(e){}))},refreshUserToken:function(e){var t=o["a"].getUserInfo();t.taxmachineid=e.taxmachineid,t.taxmachinename=e.taxmachinename,t.checker=e.checker,t.drawer=e.drawer,t.payee=e.payee;var i=JSON.stringify(t);o["a"].setUserInfoCookie(i),this.$emit("refreshUserInfo",t)}},filters:{}},r=s,c=i("2877"),l=Object(c["a"])(r,n,a,!1,null,null,null);t["a"]=l.exports},"73f5":function(e,t,i){"use strict";i.d(t,"b",(function(){return d})),i.d(t,"p",(function(){return o})),i.d(t,"o",(function(){return s})),i.d(t,"a",(function(){return r})),i.d(t,"A",(function(){return c})),i.d(t,"c",(function(){return l})),i.d(t,"m",(function(){return u})),i.d(t,"j",(function(){return f})),i.d(t,"h",(function(){return m})),i.d(t,"r",(function(){return h})),i.d(t,"x",(function(){return p})),i.d(t,"q",(function(){return g})),i.d(t,"w",(function(){return v})),i.d(t,"f",(function(){return b})),i.d(t,"n",(function(){return y})),i.d(t,"g",(function(){return I})),i.d(t,"i",(function(){return S})),i.d(t,"l",(function(){return w})),i.d(t,"z",(function(){return T})),i.d(t,"k",(function(){return C})),i.d(t,"C",(function(){return x})),i.d(t,"s",(function(){return A})),i.d(t,"d",(function(){return L})),i.d(t,"y",(function(){return k})),i.d(t,"e",(function(){return P})),i.d(t,"B",(function(){return _})),i.d(t,"u",(function(){return M})),i.d(t,"v",(function(){return O})),i.d(t,"t",(function(){return N}));var n=i("aed4"),a="/gp";function o(e,t){var i=e.pageSize,o=e.pageNo;return n["a"].axiosPost("".concat(a,"/taxMachineV2/aeiQueryPage/").concat(o,"/").concat(i),t)}function s(e){return n["a"].axiosPost("".concat(a,"/taxMachineV2/details"),e)}function r(e){return n["a"].axiosPost("".concat(a,"/aei/aeiAccountV2/create"),e)}function c(e){return n["a"].axiosPost("".concat(a,"/aei/aeiAccountV2/edit"),e)}function l(e){return n["a"].axiosPost("".concat(a,"/aei/aeiAccountV2/testConnect"),e)}function d(e){return n["a"].axiosPost("".concat(a,"/aei/aeiAccountV2/testAccount"),e)}function u(e){return n["a"].axiosPost("".concat(a,"/store/details"),e)}function f(e){return n["a"].axiosPost("".concat(a,"/aei/bwTaxMachine/getAeiClientStatus"),e)}function m(e){return n["a"].axiosPost("".concat(a,"/aei/aeiAccountV2/editInUse"),e)}function h(e){return n["a"].axiosPost("".concat(a,"/storeAei/buttonDisplay"),e)}function p(e){return n["a"].axiosPost("".concat(a,"/storeAei/singleApiType"),e)}function g(e){return n["a"].axiosPost("".concat(a,"/storeAei/getVideo"),e)}function v(e){return n["a"].axiosPost("".concat(a,"/storeAei/sendMail"),e)}function b(e){return n["a"].axiosPost("".concat(a,"/aei/aeiAccountV2/createBatch"),e)}function y(e){return n["a"].axiosPost("".concat(a,"/storeAei/taxMachineConfig"),e)}function I(e){return n["a"].axiosPost("".concat(a,"/storeAei/disableTaxMachine"),e)}function S(e){return n["a"].axiosPost("".concat(a,"/storeAei/getAddress"),e)}function w(e){return n["a"].axiosPost("".concat(a,"/storeAei/getProgress"),e)}function T(e){return n["a"].axiosPost("".concat(a,"/storeAei/syncProgress"),e)}function C(e){return n["a"].axiosPost("".concat(a,"/store/invoiceTypeCodeList"),e)}function x(e){return n["a"].axiosPost("".concat(a,"/storeAei/updateInvoiceType"),e)}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.timeout;return n["a"].axiosPost("".concat(a,"/aei/taxMachine/queryState"),e,i)}function L(e){return n["a"].axiosPost("".concat(a,"/taxMachine/batchDelete"),e)}function k(e){return n["a"].axiosPost("".concat(a,"/taxMachine/switchDirect"),e)}function P(e){return n["a"].axiosPost("".concat(a,"/user/bindTaxMachine"),e)}function _(e){return n["a"].axiosPost("".concat(a,"/store/updateAeiBankInfo"),e)}function M(e){return n["a"].axiosPost("".concat(a,"/store/queryToastFlag"),e)}function O(e){return n["a"].axiosPost("".concat(a,"/store/saveOnlyOpenAei"),e)}function N(e){return n["a"].axiosPost("".concat(a,"/taxMachine/taxMachineList"),e)}},"796e":function(e,t,i){e.exports=i.p+"static/img/eye.095e6cbd.svg"},"799e":function(e,t,i){},"7b84":function(e,t,i){"use strict";i("fad5")},"7c7a":function(e,t,i){"use strict";i("10d5")},"7dc5":function(e,t,i){"use strict";i("51db")},"7eb0":function(e,t,i){e.exports=i.p+"static/img/main-eso.3bba2493.png"},"7ec5":function(e,t,i){},"7fe0":function(e,t,i){"use strict";i("53da")},8037:function(e,t,i){},"808f":function(e,t,i){"use strict";i("8cf7")},8098:function(e,t,i){},"83aa":function(e,t,i){},8495:function(e,t,i){e.exports=i.p+"static/img/4.0342cc53.png"},"872c":function(e,t,i){"use strict";i("5a9c")},"88fa":function(e,t,i){e.exports=i.p+"static/img/role-1.e6557060.png"},"8cf7":function(e,t,i){},"8e3d":function(e,t,i){"use strict";i("bdcd")},9747:function(e,t,i){e.exports=i.p+"static/img/piao.ce96fd18.png"},9788:function(e,t,i){e.exports=i.p+"static/img/eye-open.35d76a66.svg"},"98ca":function(e,t,i){e.exports=i.p+"static/img/invoice1.0bb4afc7.png"},"9c83":function(e,t,i){},"9d64":function(e,t,i){e.exports=i.p+"static/img/logo.e9281889.png"},a026:function(e,t,i){"use strict";var n=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{title:e.dialogTitle,width:"450px",visible:e.dialogVisible,"append-to-body":"","custom-class":"tax-help"},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("el-row",[t("div",{staticClass:"title"},[e._v(" 请点击"),t("el-link",{attrs:{type:"primary",href:e.addressInfo.address,target:"_blank"}},[e._v("【电子税局-新版登录】")]),e.isTaxPassword?t("span",[e._v("找回密码!")]):t("span",[e._v(",使用手机号完成登录,并前往【用户管理】模块查看用户税局身份信息")])],1),e.isTaxPassword?t("ImageItem",{attrs:{src:e.taxPassword.srcList[0],srcList:e.taxPassword.srcList}}):e._l(e.taxRole.srcList,(function(i,n){return t("ImageItem",{key:n,staticClass:"mb20",attrs:{src:i,srcList:e.taxRole.srcList}})}))],2)],1)},a=[],o=i("21e3"),s=i("73f5"),r={props:{visible:{type:Number,default:0},type:{type:String,default:""}},components:{ImageItem:o["a"]},created:function(){var e=this;Object(s["i"])({}).then((function(t){e.addressInfo=t.data.data}))},data:function(){return{dialogVisible:!1,addressInfo:{},taxPassword:{srcList:[i("f478")]},taxRole:{srcList:[i("88fa"),i("449c")]}}},watch:{visible:function(){this.dialogVisible=!0}},computed:{dialogTitle:function(){var e=this.type,t="";return"taxPassword"===e?t="如何找回税局密码?":""===t&&(t="如何查看税局身份?"),t},isTaxPassword:function(){return"taxPassword"===this.type}}},c=r,l=(i("8e3d"),i("2877")),d=Object(l["a"])(c,n,a,!1,null,"28747b4c",null);t["a"]=d.exports},a14e:function(e,t,i){},a4b2:function(e,t,i){},a71e:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i("2f14"),a={data:function(){return{captchaObj:"",gtToken:"",gtVerifyFlag:!1}},created:function(){this.initGT()},methods:{gtVerifyCallback:function(){},initGT:function(){var e=this;n["a"].axiosGet("/gp/common/getGtVerify").then((function(t){var i=t.data.data;e.gtToken=i.gtToken,e.gtVerifyFlag=i.enabled,i.offline||window.initGeetest({gt:i.gt,lang:"zh-cn",challenge:i.challenge,offline:i.offline,new_captcha:"true"===i.newCaptcha,product:"bind",https:!0},(function(t){e.captchaObj=t,t.onReady((function(){e.geetestCreated&&e.geetestCreated()})).onSuccess((function(){e.completedVerify()}))}))})).catch((function(e){}))},toGtVerify:function(e){this.gtVerifyCallback=e,this.captchaObj&&this.captchaObj.verify()},completedVerify:function(){var e={};if(this.gtVerifyFlag&&(e=this.captchaObj.getValidate(),!e))return this.$message.error("请完成验证");this.gtVerifyCallback({gtChallenge:e.geetest_challenge,gtSeccode:e.geetest_seccode,gtToken:this.gtToken,gtValidate:e.geetest_validate})},getGbRsaKey:function(e,t){n["a"].axiosGet("/gp/common/getRsaKey",{}).then((function(i){i.data.success?e&&e({uuid:i.data.data.uuid,publicKey:i.data.data.publicKey}):t&&t(i.data.message)})).catch((function(e){t&&t("系统开小差")}))}}}},a761:function(e,t,i){},abae:function(e,t,i){e.exports=i.p+"static/img/5.47469d59.png"},aed4:function(e,t,i){"use strict";var n=i("2b0e"),a=i("2f14"),o=i("bc3a"),s=i.n(o),r=i("852e"),c=i.n(r),l=i("5c96");n["default"].prototype.$message=l["Message"];var d=s.a.create({timeout:65e3,withCredentials:!0,headers:{"Content-Type":"application/json"}});d.interceptors.request.use((function(e){var t=localStorage.getItem("greyFlag");return"true"===t?(c.a.set("canary-cookie","always"),e.headers.common["Version"]="canary"):c.a.remove("canary-cookie"),"get"===e.method&&(e.params=e.params||{},e.params&&(e.params._=(new Date).valueOf())),e}),(function(e){return Promise.reject(e)})),d.interceptors.response.use((function(e){var t=e.data.code;if(401===t)return l["Message"].error(e.data.message),sessionStorage.removeItem("userInfo"),a["a"].delCookie("userInfo"),setTimeout((function(){window.location.href="/login.html"}),3e3),Promise.reject({message:e.data.message});var i=e.data.success;return i?[499,498].includes(t)?(window.showStrongErrorTip&&window.showStrongErrorTip({message:e.data.message}),Promise.reject({message:e.data.message,hideMessage:!0})):e:Promise.reject({message:e.data.message})}),(function(e){return l["Message"].error("接口调用超时,请检查开票电脑网络和e发票助手是否工作正常。"),Promise.reject(e)}));var u=d;t["a"]={getUserToken:function(){return this.getUserInfo().token},getStoreId:function(){return this.getUserInfo().storeid},getUserInfo:function(){var e,t=new RegExp("(^| )userInfo=([^;]*)(;|$)");if(e=document.cookie.match(t))try{return JSON.parse(e[2])}catch(i){return JSON.parse(decodeURIComponent(e[2]))}return{}},axiosPost:function(e,t,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=a.responseType,s={method:"post",url:e,data:t,headers:{Authorization:this.getUserToken(),"Store-Id":this.getStoreId()}};return void 0!==i&&(s.timeout=i),void 0!==n&&(s.headers=n),o&&(s.responseType=o),u(s)},axiosUpload:function(e,t){var i={method:"post",url:e,data:t,headers:{Authorization:this.getUserToken(),"Store-Id":this.getStoreId(),"Content-Type":"multipart/form-data"}};return u(i)},axiosGet:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.headers={Authorization:this.getUserToken(),"Store-Id":this.getStoreId()},u.get(e,t)},axiosTwPost:function(e,t){var i={method:"post",url:e,data:t,withCredentials:!1};return u(i)}}},afaa:function(e,t,i){"use strict";i("da7b")},afab:function(e,t,i){},b03f:function(e,t,i){"use strict";i("6049")},b081:function(e,t,i){e.exports=i.p+"static/img/tip_tax.fc9f603c.png"},b757:function(e,t,i){"use strict";t["a"]={shortenFileName:function(e){var t=30;return e?e.length<=t?e:e.substring(e.length-t):""},humanSize:function(e){return e<=1024?"~1KB":e>1024&&e<1048576?(e/1024).toFixed(1)+"KB":(e/1024/1024).toFixed(1)+"MB"},getDUrl:function(e){return"/gp/notify/download/"+e}}},b764:function(e,t,i){e.exports=i.p+"static/img/invoice2.391e0eef.png"},bdcd:function(e,t,i){},bea9:function(e,t,i){},bfc7:function(e,t,i){"use strict";i("8037")},c24f:function(e,t,i){"use strict";i.d(t,"a",(function(){return o})),i.d(t,"c",(function(){return s})),i.d(t,"b",(function(){return r}));var n=i("aed4"),a="/gp";function o(e){return n["a"].axiosPost("".concat(a,"/terminalUser/fastCreate"),e)}function s(e){return n["a"].axiosPost("".concat(a,"/user/getCurrentUserRole"),e)}function r(e){return n["a"].axiosPost("".concat(a,"/user/getCurrentTaxMachine"),e)}},c3a4:function(e,t,i){e.exports=i.p+"static/img/aimg.b589bc1a.png"},c899:function(e,t,i){"use strict";i("df63")},c8e7:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));i("2f14");var n=i("f339"),a={computed:{userInfo:function(){return n["a"].getters.userInfo}},methods:{setUserInfoCookie:function(e){n["a"].dispatch("saveUserInfo",e)},clearUserInfoCookie:function(){n["a"].dispatch("clearUser")}}}},c996:function(e,t,i){},cd54:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return o}));var n={nn:[{label:"开票员",value:"1"},{label:"办税员",value:"2"},{label:"管理员",value:"3"},{label:"财务负责人",value:"4"},{label:"法定代表人",value:"5"}],bw:[{label:"开票员",value:"2"},{label:"办税员",value:"1"},{label:"财务负责人",value:"3"},{label:"法定代表人",value:"4"},{label:"其他",value:"99"}]},a={sz:"01",sp:"02",zz:"004",zp:"007",dp:"026",dz:"028",jp:"025"},o={"01":"增值税数电专票","02":"增值税数电普票","004":"增值税纸质专票","007":"增值税纸质普票","026":"增值税电子普票","028":"增值税电子专票","025":"卷票"}},cd6d:function(e,t,i){"use strict";i("2105")},d88e:function(e,t,i){"use strict";i("f554")},d8a7:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGGSURBVDiNpVMxTgJBFH1/GcjSeYTlBluuNuIJxBOgiZJQIYmSWImVCZKolQmSCCdQT+BWup0cYY5gJ8HZfRbsroNiobxuXv68//6fN8CKkO9EcH7jSanUAlkF4KW0Jvk4Vepq0t57s+sd+7DeH9akWHwSco1k+71QqLwXChWSbQAox/Fr0BvsLnUQ9Aa74jin/PjYik6aepndjd7Ap+PcA2i/HO0/5AL+5d1aOY5fJUl2njuNiS0KAFGnMVoYsVh8yho5AOAac0hybF+e+xMPIp5NRSdNLUAopVIr34GIbAMIl9lehoQcp0uGSjlvqtQkt512FZFNAAgubrsAAFJHncZoqtSkHMde7mAVZA60a4wPIFxYWNo5Oj7o2pdcY3yI6C8HIqEjUv9D4yrJx1yAs9k1gWpwfuMtlJEapLapjd7AF5H6VKkrwArSen9YA3D5PQs28gwkyVk26sJfyNNIjgGE2cu4xviOSJ1AFVYKfwgA81S6xhym2chG0hAJOZtd/xbzf+MTP9iwdMfgQsIAAAAASUVORK5CYII="},da1e:function(e,t,i){e.exports=i.p+"static/img/1.9aa0d406.png"},da7b:function(e,t,i){},daff:function(e,t,i){"use strict";i("2162")},db47:function(e,t,i){"use strict";i("a761")},dbc2:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAOCAYAAAD9lDaoAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAACISURBVCiRlZG7DcIwFEUftAzAAKzALEzCFlmEXahcGz8rlizhIk1CYUW2TiZwTG59pPsTYFDVQfYEsCwL3vuXMebShAByzozj+FbVaxMCWNeVEMLHWntrQgClFGKMX+fcvQkB1FpJKf1U9SEicgJolZqmSeZ5fp53qx+xOx68O0F3zH9u6R68AcQM9E/dpKj5AAAAAElFTkSuQmCC"},deba:function(e,t,i){"use strict";i("5430")},df63:function(e,t,i){},e184:function(e,t,i){"use strict";i("8098")},e2c9:function(e,t,i){"use strict";var n=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{title:e.dialogTitle,width:e.dialogWidth,"append-to-body":"",visible:e.dialogVisible,"close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[e.noSupportRedInfo?t("div",{staticClass:"dialog-content"},[t("div",{staticClass:"title"},[e._v(" 因税盘回收当前门店不支持"),t("span",{staticClass:"red"},[e._v("红冲"+e._s(e.invoiceLabel))]),e._v(", ")]),t("div",{staticClass:"title"},[e._v(" 如需红冲传统纸票,电票,请前往电子税务局进行红冲 ")])]):e.noSupportVoid?t("div",{staticClass:"dialog-content"},[t("div",{staticClass:"title"},[e._v(" 因税盘回收当前门店不支持"),t("span",{staticClass:"red"},[e._v("作废"+e._s(e.invoiceLabel))]),e._v(", ")]),t("div",{staticClass:"title"},[e._v(" 如需作废传统纸票,电票,请前往电子税务局进行红冲 ")])]):e.autoSwitchAeiTicket?t("div",{staticClass:"dialog-content"},[t("div",{staticClass:"title"},[e._v(" 当前门店不支持开具"),t("span",{staticClass:"red"},[e._v(e._s(e.invoiceLabel))]),e._v(", ")]),t("div",{staticClass:"title"},[e._v("系统将自动为您切换票种至数电票种")])]):e.noSupportOpen?t("div",{staticClass:"dialog-content"},[t("div",{staticClass:"title"},[e._v(" 当前门店不支持开具"),t("span",{staticClass:"red"},[e._v(e._s(e.invoiceLabel))]),e._v(", ")]),e.isAei?t("div",{staticClass:"title"},[e._v(" 如需开具数电发票,请前往【数电开票员】管理功能先进行开票员配置 ")]):t("div",{staticClass:"title"},[e._v("请在业务系统中正确选择票种开具")])]):t("div",{staticClass:"dialog-content"},[e.noSupportOpen?e._e():t("div",{staticClass:"title"},[e._v(" 请选择您"+e._s(e.opereateLabel?"":"开具")),t("span",{staticClass:"red"},[e._v(e._s(e.opereateLabel)+e._s(e.invoiceLabel))]),e._v("使用的"+e._s(e.ticketLabel)+" ")]),e.noSupportOpen?e._e():t("div",{staticClass:"terminal"},[e.isAei?t("TerminalSelectAllElectric",{attrs:{placeholderText:"请选择开票员",autoSave:!1},on:{saveTerminal:e.saveTerminal}}):t("TerminalSelect",{attrs:{placeholderText:"请选择开票点",onlyTraditionTerminal:!0,autoSave:!1},on:{saveTerminal:e.saveTerminal}})],1)]),t("span",{staticClass:"dialog-footer ac",attrs:{slot:"footer"},slot:"footer"},[e.noSupportVoid?[t("el-button",{staticStyle:{"margin-left":"0"},attrs:{type:"default",size:"medium"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary",size:"medium"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("我已知晓")])]:e.autoSwitchAeiTicket?[t("el-button",{staticStyle:{"margin-left":"0"},attrs:{type:"default",size:"medium"},on:{click:e.cancel}},[e._v("取消")]),t("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.handleAutoSwitchAeiTicket}},[e._v("确认")])]:e.noSupportOpen&&e.isAei?[t("el-button",{staticStyle:{"margin-left":"0"},attrs:{type:"default",size:"medium"},on:{click:e.cancel}},[e._v("取消")]),t("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.jump}},[e._v(e._s(e.isAei?"立即前往":"配置税控机"))])]:e.noSupportOpen?[t("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.cancel}},[e._v("确认")])]:e._e()],2)])],1)},a=[],o=i("7389"),s=i("fecc"),r=i("2f14");function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t,i){return t=d(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function d(e){var t=u(e,"string");return"symbol"===c(t)?t:String(t)}function u(e,t){if("object"!==c(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var f={components:{TerminalSelect:o["a"],TerminalSelectAllElectric:s["a"]},props:{invoiceType:{type:String,default:""},autoSwitchAeiTicket:{type:Boolean,default:!1},noSupportOpen:{type:Boolean,default:!1},visible:{type:Number,default:0},opereateType:{type:String,default:""}},data:function(){return{dialogVisible:!1,operateLabelMap:{void:"作废",redInfo:"红冲"}}},watch:{visible:function(){this.dialogVisible=!0}},computed:{dialogTitle:function(){var e=this.isAei,t=this.noSupportOpen,i=this.ticketLabel;return e&&!t?"数电开票员配置":"".concat(i,"选择")},dialogWidth:function(){var e=500;return"".concat(e,"px")},ticketLabel:function(){var e=this.isAei;return e?"开票员":"开票点"},isAei:function(){return r["a"].isAeiInvoice(this.invoiceType)},invoiceLabel:function(){var e=this.isAei;return e?"数电发票":"传统纸票/电票"},opereateLabel:function(){var e=this.opereateType,t=this.operateLabelMap;return t[e]||""},noSupportVoid:function(){var e=this.opereateType,t=this.noSupportOpen;return t&&"void"===e},noSupportRedInfo:function(){var e=this.opereateType,t=this.noSupportOpen;return t&&"redInfo"===e}},created:function(){},mounted:function(){},methods:l({cancel:function(){this.dialogVisible=!1},handleAutoSwitchAeiTicket:function(){this.dialogVisible=!1,this.$emit("handleAutoSwitchAeiTicket")},saveTerminal:function(){this.$emit("saveTerminal"),this.dialogVisible=!1},jump:function(){var e=this.isAei;e?this.redirectTo("/aeiTaxmachines"):this.redirectTo("/taxmachines")},redirectTo:function(e){this.dialogVisible=!1,this.$router.push({path:e})}},"cancel",(function(){this.dialogVisible=!1}))},m=f,h=(i("ea70"),i("2877")),p=Object(h["a"])(m,n,a,!1,null,"36746622",null);t["a"]=p.exports},e3dc:function(e,t,i){e.exports=i.p+"static/img/1.506b4f11.png"},e4d16:function(e,t,i){"use strict";i("a4b2")},e758:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAADgSURBVDiNxZHBcQIxDEW/UsGW4BKSDpYO6IBNBUkJdLAlQAeUQDpgOJGbueW419weh3zPeMguS3Lhz3hsWXqyLEmPErD8D5SADsj86L4kBjcVWNTMga3BosH7F5BvgR1wcHAGemBre23fbu5/GejsWxfY9gD0NfxelbkH2sp3DSfbK40EDT43Y7DvVr5LU50uiXbXsON6YCj2UzlExDkiXiW9SPqUtJT0bageV5J0npyAgdavn6qKSkMzsLk3Qeu1ryYD8PbrC1OKiI+IWEhaVKUf5ypo3MQ04nuee/RPugCPj2CeVIChYwAAAABJRU5ErkJggg=="},ea70:function(e,t,i){"use strict";i("c996")},eacf:function(e,t,i){"use strict";var n=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"notifyDlg"}},[t("el-carousel",{attrs:{interval:5e3,arrow:"hover",autoplay:!0,"indicator-position":"none"}},[e._l(e.notifyMain.pictureList,(function(i){return t("el-carousel-item",{key:i.fileuuid},[t("div",[t("a",{attrs:{href:e._f("getDUrl")(i.fileuuid),target:"_blank",title:"点击下载"}},[t("img",{staticClass:"flipImage",attrs:{src:e._f("getDUrl")(i.fileuuid)}})])]),t("el-row",[t("el-col",{staticClass:"ac",attrs:{span:24}},[t("a",{staticClass:"grey",attrs:{href:e._f("getDUrl")(i.fileuuid),target:"_blank"}},[e._v("下载图片")])])],1)],1)})),e._l(e.notifyMain.documentList,(function(i){return t("el-carousel-item",{key:i.fileuuid},[t("div",{staticClass:"fileDiv"},[t("a",{attrs:{href:e._f("getDUrl")(i.fileuuid),target:"_blank",title:"点击下载"}},[t("img",{staticClass:"fileIcon",attrs:{src:"/static/img/icon_"+i.filetype+".png"}})]),t("div",{staticClass:"ac mt10"},[t("a",{staticClass:"grey",attrs:{href:e._f("getDUrl")(i.fileuuid),target:"_blank",title:"点击下载"}},[e._v(e._s(i.filename))])]),t("div",{staticClass:"ac mt10 grey"},[e._v("( "+e._s(e._f("humanSize")(i.filesize))+" )")])])])}))],2),t("el-row",{staticClass:"mt20 mb5"},[t("el-col",{staticClass:"ac",attrs:{span:24}},[t("el-button",{staticClass:"pointer",attrs:{type:"primary"},on:{click:function(t){return e.$emit("close")}}},[e._v(e._s(e.closeText))])],1)],1)],1)},a=[],o=i("2f14"),s=i("b757"),r={name:"HelloWorld",data:function(){return{notifyMain:{}}},props:["notifyId","closeText"],mounted:function(){this.reload(this.notifyId)},methods:{reload:function(e){var t=this;this.notifyId&&(this.notifyMain={},o["a"].axiosPost("/gp/notify/details",{id:e}).then((function(e){e.data.success?t.notifyMain=e.data.data:(t.$message.error(e.data.message),t.$emit("close"))})).catch((function(e){})))}},filters:{shortenFileName:function(e){return s["a"].shortenFileName(e)},humanSize:function(e){return s["a"].humanSize(e)},getDUrl:function(e){return s["a"].getDUrl(e)}}},c=r,l=(i("afaa"),i("2877")),d=Object(l["a"])(c,n,a,!1,null,null,null);t["a"]=d.exports},ebbf:function(e,t,i){e.exports=i.p+"static/img/2.52b86a91.png"},f339:function(e,t,i){"use strict";var n=i("2b0e"),a=i("2f62");n["default"].use(a["a"]),t["a"]=new a["a"].Store({state:{userInfo:null,isSass:!1,invoiceDirectLabel:"PMS/APP"},mutations:{saveUserInfo:function(e,t){e.userInfo=t},clearUser:function(e){e.userInfo=null},saveDeployInfo:function(e,t){e.isSass="huazhu"!==(null===t||void 0===t?void 0:t.env),e.invoiceDirectLabel=e.isSass?"XPMS":"PMS/APP"}},actions:{saveUserInfo:function(e,t){var i=JSON.stringify(t);sessionStorage.setItem("userInfo",i);var n=new Date;n.setTime(n.getTime()+72e6);var a=window.location.href.startsWith("https"),o=a?"secure=true;":"";document.cookie="userInfo="+i+";path=/;"+o+"expires="+n.toGMTString(),e.commit("saveUserInfo",t)},clearUser:function(e){sessionStorage.removeItem("userInfo"),utils.delCookie("userInfo"),e.commit("clearUserInfo")},saveDeployInfo:function(e,t){e.commit("saveDeployInfo",t)}},getters:{userInfo:function(e){if(e.userInfo)return e.userInfo;var t,i=new RegExp("(^| )userInfo=([^;]*)(;|$)");if(t=document.cookie.match(i))try{return JSON.parse(t[2])}catch(n){return JSON.parse(decodeURIComponent(t[2]))}return{}}}})},f478:function(e,t,i){e.exports=i.p+"static/img/password-1.acaa77cb.jpg"},f554:function(e,t,i){},f9e5:function(e,t,i){"use strict";var n=function(){var e=this,t=e._self._c;return t("el-button",{class:e.className,attrs:{type:e.type,loading:e.loading,disabled:e.refreshDisabled},on:{click:e.onClick}},[e._t("default"),e._v(" "+e._s(e.refreshDisabled&&e.timeNum>0&&e.allTime?"(".concat(e.timeStr,")"):"")+" ")],2)},a=[],o={props:["allTime","type","className","useloading"],data:function(){return{timeNum:this.allTime,timeInterval:{},refreshDisabled:!1,loading:!1}},watch:{allTime:function(e){0===e&&(clearInterval(this.timeInterval),this.timeNum=e,this.refreshDisabled=!1)},useloading:function(e){this.loading=e}},computed:{timeStr:function(){if(this.allTime<61)return this.timeNum;var e="mm:ss",t=Math.floor(this.timeNum/60),i=Math.floor(this.timeNum-60*t),n={"m+":t,"s+":i};for(var a in n)new RegExp("("+a+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[a]:("00"+n[a]).substr((""+n[a]).length)));return e}},methods:{onClick:function(e){this.useloading?this.loading=!0:this.countDown(),this.$emit("click",e)},countDown:function(){var e=this;this.loading=!1,this.refreshDisabled=!0,this.timeInterval=setInterval((function(){e.timeNum--,e.timeNum<=0&&e.clear()}),1e3)},clear:function(){clearInterval(this.timeInterval),this.timeNum=this.allTime,this.loading=!1,this.refreshDisabled=!1,this.$emit("clear")}},beforeDestroy:function(){clearInterval(this.timeInterval),this.timeNum=this.allTime,this.loading=!1,this.refreshDisabled=!1}},s=o,r=i("2877"),c=Object(r["a"])(s,n,a,!1,null,null,null);t["a"]=c.exports},fad5:function(e,t,i){},fc71:function(e,t,i){"use strict";i.d(t,"a",(function(){return c}));var n=i("c24f"),a=i("73f5"),o=i("2f14"),s=i("11e6"),r=i("cd54");function c(e){var t=e.cb,i=e.context,a=e.invoiceTypeCode,s=e.fail,r=e.opereateType,c=e.nnReOpen,d="";d=a&&!r?o["a"].isAeiInvoice(a)?"openAeiInvoice":"openTraditionInvoice":r,Object(n["b"])({}).then((function(e){var n=e.data.data,u=n.id,f=n.disktype,m=o["a"].isAeiDiskType(f);switch(console.log(d),d){case"openTraditionInvoice":case"openAeiInvoice":(!m&&"openTraditionInvoice"===d||m&&"openAeiInvoice"===d)&&u?t&&t():l({cb:t,context:i,type:d,opereateType:r,invoiceTypeCode:a,nnReOpen:c,fail:s});break;case"void":case"redInfo":!m&&u?t&&t():l({cb:t,context:i,type:d,opereateType:r,invoiceTypeCode:a,fail:s});break;default:}}),(function(e){var t=e.message;i&&i.$message.error(t),s&&s()}))}function l(e){var t=e.cb,i=e.context,n=e.type,r=e.fail,c=e.opereateType,l=e.invoiceTypeCode,u=e.nnReOpen;Object(a["t"])({}).then((function(e){var i,a,f=e.data.data,m=[];switch(n){case"openTraditionInvoice":case"openAeiInvoice":m=f.filter((function(e){return"openTraditionInvoice"===n?!o["a"].isAeiDiskType(e.diskType):o["a"].isAeiDiskType(e.diskType)})),console.log("usingList",m),0===m.length?"openTraditionInvoice"===n?(console.log("nnReOpen",u),!0!==u?d({cb:t,fail:r,type:n,invoiceTypeCode:l}):t&&t({resultType:"chooseTerminal",noSupportOpen:!0})):"openAeiInvoice"===n?t&&t({resultType:"chooseTerminal",noSupportOpen:!0}):t&&t({resultType:"chooseTerminal",opereateType:c,noSupportOpen:!0}):(null===(i=m)||void 0===i?void 0:i.length)>1?t&&t({resultType:"chooseTerminal"}):Object(s["a"])({cb:function(){t&&t()},taxMachineId:m[0].taxMachineId,fail:r});break;case"void":case"redInfo":m=f.filter((function(e){return!o["a"].isAeiDiskType(e.diskType)})),console.log("usingList",m),0===m.length?t&&t({resultType:"chooseTerminal",noSupportOpen:!0}):(null===(a=m)||void 0===a?void 0:a.length)>1?t&&t({resultType:"chooseTerminal"}):Object(s["a"])({cb:function(){t&&t()},taxMachineId:m[0].taxMachineId,fail:r});break;default:}}),(function(e){var t=e.message;i&&i.$message.error(t),r&&r()}))}function d(e){var t=this,i=e.cb,n=(e.fail,e.type),s=e.invoiceTypeCode;Object(a["k"])({}).then((function(e){var t=e.data.data,a=t.invoiceTypeCodeList,c=(r["b"].dp,r["b"].dz),l=(r["b"].zp,r["b"].zz),d=r["b"].sz,u=r["b"].sp,f=(r["b"].jp,!![c,l,d].includes(s));(s&&!o["a"].isAeiInvoice(s)||"openTraditionInvoice"===n)&&(a.includes(f?d:u)?i({resultType:"chooseTerminal",autoSwitchAeiTicket:!0}):i({resultType:"chooseTerminal",noSupportOpen:!0}))}),(function(e){var i=e.message;t.$message.error(i)}))}},fd4d:function(e,t,i){"use strict";i("1166")},fecc:function(e,t,i){"use strict";var n=function(){var e=this,t=e._self._c;return t("el-row",[t("el-col",{attrs:{span:14}},[t("el-select",{staticClass:"span type",attrs:{placeholder:e.placeholderText},on:{change:e.changeValue},model:{value:e.myTerminalId,callback:function(t){e.myTerminalId=t},expression:"myTerminalId"}},e._l(e.terminalList,(function(e,i){return t("el-option",{key:i,attrs:{label:e.endName,value:e.id}})})),1)],1),t("el-col",{attrs:{span:10}},[t("el-button",{attrs:{type:"primary",loading:e.saveLoading},on:{click:e.saveTerminal}},[e._v("保存")])],1)],1)},a=[],o=i("2f14"),s={name:"TerminalSelectAllElectric",props:{placeholderText:{type:String},autoSave:{type:Boolean,default:!0}},data:function(){return{terminalList:[],myTerminalId:"",storeId:"",saveLoading:!1,hasTerminal:!1}},mounted:function(){var e=o["a"].getUserInfo();this.storeId=e.storeid,""==e.taxmachineid?(this.myTerminalId="",this.hasTerminal=!1):(this.myTerminalId=Number(e.taxmachineid),this.hasTerminal=!0),console.log(this.myTerminalId),this.loadTerminalList()},methods:{changeValue:function(e){this.autoSave?this.saveTerminal(e):(this.$emit("update:terminalId",this.myTerminalId),this.$emit("afterSwitch",this.myTerminalId))},loadTerminalList:function(){var e=this;o["a"].axiosPost("/gp/aei/taxMachine/list",{}).then((function(t){t.data.success?(e.terminalList=t.data.data,e.terminalList.find((function(t){return"".concat(t.id)==="".concat(e.myTerminalId)}))||(e.myTerminalId="")):e.$message.error(t.data.message)})).catch((function(e){}))},saveTerminal:function(){var e=this;if(!this.myTerminalId)return this.$message.error("开票点信息不能为空"),!1;var t={storeid:this.storeid,taxmachineid:this.myTerminalId};this.saveLoading=!0,o["a"].axiosPost("/gp/user/bindTaxMachine",t).then((function(t){e.saveLoading=!1,t.data.success?(e.refreshUserToken(t.data.data),e.$emit("update:terminalId",e.myTerminalId),e.$emit("afterSwitch",e.myTerminalId),e.$emit("saveTerminal",e.myTerminalId),e.$message.success("保存开票点成功")):e.$message.error(t.data.message)})).catch((function(e){}))},refreshUserToken:function(e){var t=o["a"].getUserInfo();t.taxmachineid=e.taxmachineid,t.taxmachinename=e.taxmachinename,t.checker=e.checker,t.drawer=e.drawer,t.payee=e.payee;var i=JSON.stringify(t);o["a"].setUserInfoCookie(i)}},filters:{}},r=s,c=i("2877"),l=Object(c["a"])(r,n,a,!1,null,null,null);t["a"]=l.exports}});