(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6a439183"],{1276:function(t,e,n){"use strict";var r=n("d784"),i=n("44e7"),a=n("825a"),o=n("1d80"),s=n("4840"),c=n("8aa5"),l=n("50c4"),u=n("14c3"),f=n("9263"),d=n("d039"),h=[].push,p=Math.min,v=4294967295,g=!d((function(){return!RegExp(v,"y")}));r("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(o(this)),a=void 0===n?v:n>>>0;if(0===a)return[];if(void 0===t)return[r];if(!i(t))return e.call(r,t,a);var s,c,l,u=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,g=new RegExp(t.source,d+"g");while(s=f.call(g,r)){if(c=g.lastIndex,c>p&&(u.push(r.slice(p,s.index)),s.length>1&&s.index=a))break;g.lastIndex===s.index&&g.lastIndex++}return p===r.length?!l&&g.test("")||u.push(""):u.push(r.slice(p)),u.length>a?u.slice(0,a):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var i=o(this),a=void 0==e?void 0:e[t];return void 0!==a?a.call(e,i,n):r.call(String(i),e,n)},function(t,i){var o=n(r,t,this,i,r!==e);if(o.done)return o.value;var f=a(t),d=String(this),h=s(f,RegExp),m=f.unicode,y=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(g?"y":"g"),b=new h(g?f:"^(?:"+f.source+")",y),w=void 0===i?v:i>>>0;if(0===w)return[];if(0===d.length)return null===u(b,d)?[d]:[];var _=0,I=0,T=[];while(I1?arguments[1]:void 0)}})},"25f0":function(t,e,n){"use strict";var r=n("6eeb"),i=n("825a"),a=n("d039"),o=n("ad6d"),s="toString",c=RegExp.prototype,l=c[s],u=a((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=l.name!=s;(u||f)&&r(RegExp.prototype,s,(function(){var t=i(this),e=String(t.source),n=t.flags,r=String(void 0===n&&t instanceof RegExp&&!("flags"in c)?o.call(t):n);return"/"+e+"/"+r}),{unsafe:!0})},"2e91":function(t,e,n){"use strict";n("a467")},"37cd":function(t,e,n){"use strict";n("67a5")},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,i=n("69f3"),a=n("7dd0"),o="String Iterator",s=i.set,c=i.getterFor(o);a(String,"String",(function(t){s(this,{type:o,string:String(t),index:0})}),(function(){var t,e=c(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},"44e7":function(t,e,n){var r=n("861d"),i=n("c6b6"),a=n("b622"),o=a("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},"47f1":function(t){t.exports=JSON.parse('[{"keyCode":"7|144","value":"0"},{"keyCode":"8|145","value":"1"},{"keyCode":"9|146","value":"2"},{"keyCode":"10|147","value":"3"},{"keyCode":"11|148","value":"4"},{"keyCode":"12|149","value":"5"},{"keyCode":"13|150","value":"6"},{"keyCode":"14|151","value":"7"},{"keyCode":"15|152","value":"8"},{"keyCode":"16|153","value":"9"},{"keyCode":"131|158","value":"."}]')},"4b1c":function(t,e,n){"use strict";n("5422")},"4df4":function(t,e,n){"use strict";var r=n("0366"),i=n("7b0b"),a=n("9bdd"),o=n("e95a"),s=n("50c4"),c=n("8418"),l=n("35a1");t.exports=function(t){var e,n,u,f,d,h,p=i(t),v="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,y=void 0!==m,b=l(p),w=0;if(y&&(m=r(m,g>2?arguments[2]:void 0,2)),void 0==b||v==Array&&o(b))for(e=s(p.length),n=new v(e);e>w;w++)h=y?m(p[w],w):p[w],c(n,w,h);else for(f=b.call(p),d=f.next,n=new v;!(u=d.call(f)).done;w++)h=y?a(f,m,[u.value,w],!0):u.value,c(n,w,h);return n.length=w,n}},5422:function(t,e,n){},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"5899a":function(t,e,n){"use strict";n("1423")},"58a8":function(t,e,n){var r=n("1d80"),i=n("5899"),a="["+i+"]",o=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),c=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(o,"")),2&t&&(n=n.replace(s,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},"5a34":function(t,e,n){var r=n("44e7");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5e3a":function(t,e,n){"use strict";n("e1f1")},"5f58":function(t,e,n){},6547:function(t,e,n){var r=n("a691"),i=n("1d80"),a=function(t){return function(e,n){var a,o,s=String(i(e)),c=r(n),l=s.length;return c<0||c>=l?t?"":void 0:(a=s.charCodeAt(c),a<55296||a>56319||c+1===l||(o=s.charCodeAt(c+1))<56320||o>57343?t?s.charAt(c):a:t?s.slice(c,c+2):o-56320+(a-55296<<10)+65536)}};t.exports={codeAt:a(!1),charAt:a(!0)}},"67a5":function(t,e,n){},7114:function(t,e,n){},7156:function(t,e,n){var r=n("861d"),i=n("d2bb");t.exports=function(t,e,n){var a,o;return i&&"function"==typeof(a=e.constructor)&&a!==n&&r(o=a.prototype)&&o!==n.prototype&&i(t,o),t}},"7b35":function(t,e,n){"use strict";n("7114")},"7db0":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").find,a=n("44d2"),o=n("ae40"),s="find",c=!0,l=o(s);s in[]&&Array(1)[s]((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!l},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a(s)},8830:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("table",{attrs:{border:"1",cellspacing:"0",cellpadding:"3"}},[t._m(0),n("tbody",t._l(t.userMealInfo,(function(e,r){return n("tr",{key:r},[n("td",[t._v(t._s(e.meal_name))]),n("td",[t._v(t._s(e.dish_name))]),n("td",[t._v(t._s(e.dish_price)+"元")]),n("td",[t._v(t._s(e.dish_amount))])])})),0)])])},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",[n("tr",[n("th",[t._v("类型")]),n("th",[t._v("菜名")]),n("th",[t._v("价格")]),n("th",[t._v("份数")])])])}],a={props:{userMealInfo:{type:Array}}},o=a,s=(n("9c3a"),n("2877")),c=Object(s["a"])(o,r,i,!1,null,"01053884",null);e["a"]=c.exports},"8aa5":function(t,e,n){"use strict";var r=n("6547").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},9263:function(t,e,n){"use strict";var r=n("ad6d"),i=n("9f7f"),a=RegExp.prototype.exec,o=String.prototype.replace,s=a,c=function(){var t=/a/,e=/b*/g;return a.call(t,"a"),a.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),l=i.UNSUPPORTED_Y||i.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],f=c||u||l;f&&(s=function(t){var e,n,i,s,f=this,d=l&&f.sticky,h=r.call(f),p=f.source,v=0,g=t;return d&&(h=h.replace("y",""),-1===h.indexOf("g")&&(h+="g"),g=String(t).slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==t[f.lastIndex-1])&&(p="(?: "+p+")",g=" "+g,v++),n=new RegExp("^(?:"+p+")",h)),u&&(n=new RegExp("^"+p+"$(?!\\s)",h)),c&&(e=f.lastIndex),i=a.call(d?n:f,g),d?i?(i.input=i.input.slice(v),i[0]=i[0].slice(v),i.index=f.lastIndex,f.lastIndex+=i[0].length):f.lastIndex=0:c&&i&&(f.lastIndex=f.global?i.index+i[0].length:e),u&&i&&i.length>1&&o.call(i[0],n,(function(){for(s=1;s=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(c&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("d039"),a=n("e8b5"),o=n("861d"),s=n("7b0b"),c=n("50c4"),l=n("8418"),u=n("65f0"),f=n("1dde"),d=n("b622"),h=n("2d00"),p=d("isConcatSpreadable"),v=9007199254740991,g="Maximum allowed index exceeded",m=h>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),y=f("concat"),b=function(t){if(!o(t))return!1;var e=t[p];return void 0!==e?!!e:a(t)},w=!m||!y;r({target:"Array",proto:!0,forced:w},{concat:function(t){var e,n,r,i,a,o=s(this),f=u(o,0),d=0;for(e=-1,r=arguments.length;ev)throw TypeError(g);for(n=0;n=v)throw TypeError(g);l(f,d++,a)}return f.length=d,f}})},"9bdd":function(t,e,n){var r=n("825a"),i=n("2a62");t.exports=function(t,e,n,a){try{return a?e(r(n)[0],n[1]):e(n)}catch(o){throw i(t),o}}},"9c3a":function(t,e,n){"use strict";n("5f58")},"9f7f":function(t,e,n){"use strict";var r=n("d039");function i(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},a434:function(t,e,n){"use strict";var r=n("23e7"),i=n("23cb"),a=n("a691"),o=n("50c4"),s=n("7b0b"),c=n("65f0"),l=n("8418"),u=n("1dde"),f=n("ae40"),d=u("splice"),h=f("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,v=Math.min,g=9007199254740991,m="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!d||!h},{splice:function(t,e){var n,r,u,f,d,h,y=s(this),b=o(y.length),w=i(t,b),_=arguments.length;if(0===_?n=r=0:1===_?(n=0,r=b-w):(n=_-2,r=v(p(a(e),0),b-w)),b+n-r>g)throw TypeError(m);for(u=c(y,r),f=0;fb-r+n;f--)delete y[f-1]}else if(n>r)for(f=b-r;f>w;f--)d=f+r-1,h=f+n-1,d in y?y[h]=y[d]:delete y[h];for(f=0;f2)if(l=g(l),e=l.charCodeAt(0),43===e||45===e){if(n=l.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+l}for(a=l.slice(2),o=a.length,s=0;si)return NaN;return parseInt(a,r)}return+l};if(a(m,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var I,T=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof T&&(w?f((function(){b.valueOf.call(n)})):c(n)!=m)?l(new y(_(e)),n,T):_(e)},x=r?h(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),C=0;x.length>C;C++)s(y,I=x[C])&&!s(T,I)&&v(T,I,p(y,I));T.prototype=b,b.constructor=T,o(i,m,T)}},ab13:function(t,e,n){var r=n("b622"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},ac1f:function(t,e,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ad6d:function(t,e,n){"use strict";var r=n("825a");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},b0c0:function(t,e,n){var r=n("83ab"),i=n("9bf2").f,a=Function.prototype,o=a.toString,s=/^\s*function ([^ (]*)/,c="name";r&&!(c in a)&&i(a,c,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(t){return""}}})},bd91:function(t,e,n){},c975:function(t,e,n){"use strict";var r=n("23e7"),i=n("4d64").indexOf,a=n("a640"),o=n("ae40"),s=[].indexOf,c=!!s&&1/[1].indexOf(1,-0)<0,l=a("indexOf"),u=o("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:c||!l||!u},{indexOf:function(t){return c?s.apply(this,arguments)||0:i(this,t,arguments.length>1?arguments[1]:void 0)}})},caad:function(t,e,n){"use strict";var r=n("23e7"),i=n("4d64").includes,a=n("44d2"),o=n("ae40"),s=o("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},d28b:function(t,e,n){var r=n("746f");r("iterator")},d5ab:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"title"},[n("div",{staticClass:"keypad_type"}),n("div",{staticClass:"title-btn"},[n("van-button",{staticClass:"title-btn-all",attrs:{type:0==t.hideTable?"info":"default"}},[t._v("取餐")]),n("van-button",{staticClass:"title-btn-all",attrs:{type:1==t.hideTable?"info":"default"}},[t._v("消费")]),n("van-button",{staticClass:"title-btn-all",attrs:{type:2==t.hideTable?"info":"default"}},[t._v("消费记录")]),3==t.btnNum?n("van-button",{staticClass:"title-btn-all",attrs:{type:3==t.hideTable?"info":"default"}},[t._v("查看余额")]):t._e()],1)]),n("div",{directives:[{name:"show",rawName:"v-show",value:2!=t.hideTable,expression:"hideTable!=2"}],staticClass:"title"},[n("div",{staticClass:"titlte-content",staticStyle:{margin:"auto"}},[n("h2",[t._v(t._s(t.title.ftTile.name)+" "+t._s(t.title.ftUnit.channel_name))])])]),0==t.isTake?n("div",{staticClass:"outside-take"},[n("h2",[t._v(t._s(this.defaultMsg))])]):1==t.isTake?n("div",{staticClass:"inside-table"},[n("meal-controller",{ref:"mealController",attrs:{hideTable:t.hideTable,userMealInfo:t.userMealInfo,isTake:t.isTake,infoDetail:t.title,takeStatus:t.takeStatus,companyId:t.companyId},on:{handleInit:t.handleInit}})],1):t._e(),0==t.hideTable?n("div",{staticClass:"inside-footer"},[n("h4",{directives:[{name:"show",rawName:"v-show",value:t.isTake,expression:"isTake"}]},[t._v(t._s(t.userInfo.username))]),n("notice-bar",{attrs:{paomaStr:t.paomaStr}})],1):t._e(),n("van-overlay",{attrs:{show:t.showLoading}},[n("div",{staticClass:"wrapper-loading"},[n("van-loading",{attrs:{type:"spinner"}})],1)]),2==t.hideTable?n("div",{staticClass:"outside-take"},[n("h4",{staticStyle:{margin:"1rem 0"}},[t._v("今天共收入:"),n("span",[t._v(t._s(t.allConsumePrice))])]),n("div",{ref:"consume",staticClass:"consume_list"},[n("table",{ref:"consumeTable"},[t._m(0),n("tbody",{domProps:{innerHTML:t._s(t.consumeListHtml)}})])])]):t._e(),3==t.hideTable?n("div",{staticClass:"outside-take"},["{}"==JSON.stringify(t.cardNoInfo)?n("h4",[t._v("请刷卡查看余额")]):n("div",[n("div",{ref:"consume",staticClass:"user_info_table",staticStyle:{margin:"auto"}},[n("table",[n("tr",[n("td",[t._v("姓名:")]),n("td",[t._v(t._s(t.cardNoInfo.username))])]),""!=t.cardNoInfo.cardNo&&"-"!=t.cardNoInfo.cardNo?n("tr",[n("td",[t._v("卡号:")]),n("td",[t._v(t._s(t.cardNoInfo.cardNo))])]):t._e(),n("tr",[n("td",[t._v("余额:")]),n("td",{staticStyle:{color:"green"}},[t._v(t._s(t.cardNoInfo.ye)+"元")])]),n("tr",[n("td",{staticStyle:{"text-align":"center","font-size":"2rem","padding-top":"20px"},attrs:{colspan:"2"}},[t._v(t._s(t.cardNoCountdownSecond)+" 秒后自动退出")])])])])])]):t._e()],1)},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",[n("tr",[n("th",[t._v("姓名")]),n("th",[t._v("金额")]),n("th",[t._v("扣费时间")]),n("th",{staticStyle:{width:"1rem"}},[t._v("|")]),n("th",[t._v("姓名")]),n("th",[t._v("金额")]),n("th",[t._v("扣费时间")])])])}];n("99af"),n("7db0"),n("4160"),n("c975"),n("a434"),n("ac1f"),n("1276"),n("159b"),n("96cf"),n("d3b7");function a(t,e,n,r,i,a,o){try{var s=t[a](o),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,i)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function s(t){a(o,r,i,s,c,"next",t)}function c(t){a(o,r,i,s,c,"throw",t)}s(void 0)}))}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&this.tagIndex--},handleCofirm:function(t){var e=r(t),n=0;function r(t){var e=t.split(".")[0];return""!=t&&"0"!=t&&""!=e}this.tagIndex<=-1&&!e||this.showPay||this.showResult||(this.showPay=!0,n=this.tagIndex<=-1?t:this.count[this.tagIndex].toString(),this.defalutMsg="请刷码或刷卡支付"+n+"元",this.tagIndex=-1,this.setResetShowPay())},handleCloseAndOpen:function(){this.showResult=!0},handleInit:function(){this.$emit("handleInit"),this.tagIndex=-1,this.showPay=!1,this.showResult=!1,this.feeInit=0,this.showFeeInit=0,this.getResultInfo={},this.testInput="",window.clearTimeout(this.resetShowPayTimer),window.clearTimeout(this.setTime)},handleQrpayApi:function(t,e,n){var r=this;window.clearTimeout(this.resetShowPayTimer),window.clearTimeout(this.setTime);var i=3e4;if("lqj"==this.companyId&&(i=2e4),this.setTime=setTimeout((function(){r.showResult=!1,r.showFeeInit=0,r.setResetShowPay()}),i),!this.showPay)return!1;if(n<=0)return this.defalutMsg="支付的金额必须大于0",void setTimeout((function(){r.handleInit()}),5e3);var a={fee:n,ftid:this.infoDetail.ftTile.id,channelid:this.infoDetail.ftUnit.channel_id,code:t,type:e};this.$api.ftInfo.qrpay(a).then((function(t){if(t&&1==t.status){try{window.androidJs.getAudioInfo(1)}catch(e){console.log(e)}r.getResultInfo=t.data,r.getResultInfo.imgUrl="../../show/get.php?act=hkface_get_face_data&uid="+t.data.user_id+"&raw=1",r.showFeeInit=t.data.fee,window.clearTimeout(r.resetShowPayTimer),window.clearTimeout(r.setTime),setTimeout((function(){r.showResult=!1,r.showFeeInit=0,window.clearTimeout(r.setTime),r.setResetShowPay()}),2e4),r.handleCloseAndOpen()}else{try{t.message.includes("余额不足")?window.androidJs.getAudioInfo(2):t.message.includes("消费间隔")?window.androidJs.getAudioInfo(3):t.message.includes("消费限制")?window.androidJs.getAudioInfo(5):window.androidJs.getAudioInfo(4)}catch(e){console.log(e)}n>0&&(r.showPay=!0,r.showResult=!1,r.showFeeInit=0,r.defalutMsg=t.message,setTimeout((function(){r.defalutMsg="请刷码或刷卡支付"+n+"元"}),3e3))}}))},setResetShowPay:function(){var t=this;if("lqj"!=this.companyId)return!1;null!=this.resetShowPayTimer&&clearTimeout(this.resetShowPayTimer),this.resetShowPayTimer=setTimeout((function(){t.handleInit(),t.resetShowPayTimer=null}),12e4)}}},P=R,O=(n("2e91"),Object(I["a"])(P,g,m,!1,null,"3d548ea4",null)),$=O.exports,M={props:{hideTable:{type:String,defalut:0},userMealInfo:{type:Array},infoDetail:{type:Object},takeStatus:Number,companyId:Number},components:{myTable:v["a"],mealPay:$},methods:{handleRef:function(t){this.$refs.mealPay.handleRef(t)},handleNext:function(){this.$refs.mealPay.handleNext()},handleForward:function(){this.$refs.mealPay.handleForward()},handleCofirm:function(t){this.$refs.mealPay.handleCofirm(t)},handleInit2:function(){this.$emit("handleInit")},handleLostBlur:function(){this.$refs.mealPay.handleLostBlur()},hadnleInit:function(){this.$refs.mealPay.handleInit()},handleQrpayApi:function(t,e,n){this.$refs.mealPay.handleQrpayApi(t,e,n)}}},F=M,j=(n("4b1c"),Object(I["a"])(F,h,p,!1,null,"618df8b8",null)),D=j.exports,U=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"inside-notice-bar",staticStyle:{"font-size":"1px"}},[n("van-notice-bar",{attrs:{scrollable:"",text:t.paomaStr}})],1)},q=[],G={props:{paomaStr:{type:String,default:""}}},H=G,J=(n("37cd"),Object(I["a"])(H,U,q,!1,null,null,null)),Q=J.exports,B={components:{mealController:D,noticeBar:Q},data:function(){return{hideTable:!1,isTake:!1,title:{ftTile:{},ftUnit:{}},ftAllList:[],userMealInfo:[],userInfo:{},paomaStr:"",currentFtInfo:{},defaultMsg:"请刷卡/刷脸/刷付款码取餐",faceCode:"",icCode:"",takeStatus:0,showLoading:!1,allConsumePrice:"-",consumeList:[],consumeListHtml:"",timer:null,scrollTop:0,cardNoInfo:{},cardNoCountdownSecond:10,yeTimer:null,uname:"",companyId:0,btnNum:2,feeLog:""}},watch:{faceCode:{handler:function(t){t&&(1==this.hideTable?this.$refs.mealController.handleQrpayApi(t,"face",this.feeLog):(0==this.hideTable||3==this.hideTable)&&this.getFaceTakeCode())}},icCode:{handler:function(t){t&&(1==this.hideTable?this.$refs.mealController.handleQrpayApi(t,"ic",this.feeLog):(0==this.hideTable||3==this.hideTable)&&this.getIcTakeCode())}},hideTable:{handler:function(t){var e=this,n=this.$route.query.channel_id;2==t?null==e.timer&&e.getConsumeList(n):null!=e.timer&&(e.timer=clearInterval(e.timer))}}},methods:{getFaceTakeCode:function(){var t=this;this.faceCode&&(this.userMealInfo=[],3==this.hideTable?this.$api.ftInfo.faceUserInfo({facecard:this.faceCode}).then((function(e){t.cardNoCountdown(),1==e.status?t.cardNoInfo=e.data.user:(t.isTake=!1,t.defaultMsg=e.message)})):this.$api.ftInfo.facegetcode({dining_hall_id:this.title.ftTile.id,facecard:this.faceCode}).then((function(e){1==e.status?t.renderData(e.data):(t.isTake=!1,t.defaultMsg=e.message)})))},facegetcode:function(t){var e=this;try{return this.faceCode="",setTimeout((function(){e.faceCode=t}),0),t}catch(n){return n}},icgetcode:function(t){var e=this;try{return this.icCode="",setTimeout((function(){e.icCode=t}),0),t}catch(n){return n}},getIcTakeCode:function(){var t=this;this.icCode&&(this.userMealInfo=[],3==this.hideTable?this.$api.ftInfo.icUserInfo({cardno:this.icCode}).then((function(e){t.cardNoCountdown(),1==e.status?t.cardNoInfo=e.data.user:(t.isTake=!1,t.defaultMsg=e.message)})):this.$api.ftInfo.icgetcode({dining_hall_id:this.title.ftTile.id,cardno:this.icCode}).then((function(e){1==e.status?t.renderData(e.data):(t.isTake=!1,t.defaultMsg=e.message)})))},cardNoCountdown:function(){var t=this;clearInterval(this.yeTimer),t.cardNoCountdownSecond=10,this.yeTimer=setInterval((function(){t.cardNoCountdownSecond--,0==t.cardNoCountdownSecond&&(clearInterval(t.yeTimer),t.cardNoInfo={},t.cardNoCountdownSecond=10)}),1e3)},qrCode:function(t){var e=this,n=t.split("]")[1].split(",")[0];try{return setTimeout((function(){1==e.hideTable?e.$refs.mealController.handleQrpayApi(n,"qr",e.feeLog):0==e.hideTable&&e.handleTake(n)}),0),t}catch(r){return r}},renderData:function(t){t.take_code.length>0||""!=t.take_code?this.handleTake(t.take_code):(this.isTake=!1,this.defaultMsg="当前暂无餐可取")},handleTake:function(t){var e=this;this.takeStatus=0,this.$api.ftInfo.take({channelid:this.title.ftUnit.channel_id,dining_hall_id:this.title.ftTile.id,take_code:t}).then((function(t){t&&1==t.status?(e.isTake=!0,e.paomaStr=e.resetPaomaLis(t.data.list),e.userInfo=t.data.user):(e.isTake=!1,e.defaultMsg=t.message)}))},getFtInfo:function(){var t=this;this.showLoading=!0;var e=this.$route.query.channel_id,n=this.$route.query.ft_id;this.$api.ftInfo.chkserver(n).then((function(r){if(t.showLoading=!1,r&&1==r.status){t.companyId=r.data.company_id,t.btnNum=2;var i=r.data.dining_hall_ids.find((function(t){return t.id==n}));if(!i)return t.defaultMsg="请设置正确的饭堂信息",void(lqbrid={});t.title.ftTile=i,t.ftAllList=i.channel_ids,t.title.ftUnit=t.ftAllList.find((function(t){return t.channel_id==e}))}})).catch((function(e){console.log(e),t.showLoading=!1}))},resetPaomaLis:function(t){var e=this;this.userMealInfo=[];var n="",r=[];return t.forEach((function(t){var i="",a={};e.takeStatus=t.take_status,t.rest_info.forEach((function(t){i+=t.dish_name+" 剩:"+t.rest_num+"份 "})),t.order_detail.forEach((function(e){a={meal_name:t.meal_name,dish_name:e.dish_name,dish_price:e.dish_price,dish_amount:e.dish_amount},r.push(a)})),n+=" "+t.meal_name+":"+i+" "})),this.userMealInfo=r,n},keyDown:function(t){var e=this;155!=t&&277!=t||(this.feeLog="",this.hideTable==this.btnNum?this.hideTable=0:this.hideTable=this.hideTable+1,localStorage.setItem("keypadType",this.hideTable),this.isTake=this.hideTable);var r=n("47f1");if(1==this.hideTable&&r.find((function(n){var r=n.keyCode.split("|");if(-1!=r.indexOf(t))return e.$refs.mealController.handleRef(n.value),void(e.feeLog=e.feeLog.concat(n.value))})),2==this.hideTable){if("156"==t||"92"==t){if(this.scrollTop<=0)return;return this.scrollTop-=50,void(this.$refs.consume.scrollTop=this.scrollTop)}if("157"==t||"93"==t){var i=this.$refs.consume.offsetHeight,a=this.$refs.consumeTable.offsetHeight;if(this.scrollTop>=a-i)return;return this.scrollTop+=50,void(this.$refs.consume.scrollTop=this.scrollTop)}}switch(t){case"92":case"156":return this.feeLog="",this.hideTable&&this.$refs.mealController.handleForward(),"键位:"+t+"一键录入功能 上一个";case"93":case"157":return this.feeLog="",this.hideTable&&this.$refs.mealController.handleNext(),"键位:"+t+"一键录入功能 获取焦点 下一个";case"66":return this.hideTable&&this.$refs.mealController.handleCofirm(this.feeLog),"键位:"+t+"确认功能";case"67":return this.hideTable&&this.$refs.mealController.hadnleInit(),this.defaultMsg="请刷卡/刷脸/刷付款码取餐",this.feeLog="","键位:"+t+"数据初始化";default:return"键位:"+t+"调用成功"}},handleInit:function(){this.feeLog=""},handleQC:function(){this.hideTable=!this.hideTable},getConsumeList:function(t){var e=this;this.$api.ftInfo.getConsumeList(t).then((function(t){if(1==t.status){if(e.consumeList.splice(0,50),e.allConsumePrice=t.data.all_consume_price+" 元",e.consumeListHtml="",t.data.consume_list.length<=0){var n,r=[{username:"-",recharge_amount:"-",record_datetime_short:"-"},{username:"-",recharge_amount:"-",record_datetime_short:"-"}];(n=e.consumeList).push.apply(n,r)}else{var i;(i=e.consumeList).push.apply(i,d(t.data.consume_list))}for(var a in e.consumeList)a%2==0&&(e.consumeListHtml+=""),e.consumeListHtml+=""+e.consumeList[a].username+""+e.consumeList[a].recharge_amount+""+e.consumeList[a].record_datetime_short+"",a%2==0&&(e.consumeListHtml+="|"),a%2==1&&(e.consumeListHtml+="")}else e.$toast.fail("获取消费记录异常")}))}},created:function(){var t=this;return o(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=localStorage.getItem("keypadType"),n&&(t.keypadType=n),e.next=4,t.getFtInfo();case 4:A.facegetcode=t.facegetcode,A.icgetcode=t.icgetcode,A.keyDown=t.keyDown,A.qrCode=t.qrCode;case 8:case"end":return e.stop()}}),e)})))()},mounted:function(){var t=this;document.onkeydown=function(){var e=window.event.keyCode;111==e&&(t.keypadType=1==t.keypadType?2:1,localStorage.setItem("keypadType",t.keypadType)),106==e&&(t.feeLog="",t.hideTable==t.btnNum?t.hideTable=0:t.hideTable=t.hideTable+1,t.isTake=t.hideTable)}}},V=B,Y=(n("5899a"),n("e5d3"),Object(I["a"])(V,r,i,!1,null,"ac3bed18",null));e["default"]=Y.exports},d784:function(t,e,n){"use strict";n("ac1f");var r=n("6eeb"),i=n("d039"),a=n("b622"),o=n("9263"),s=n("9112"),c=a("species"),l=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),f=a("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),h=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,f){var p=a(t),v=!i((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),g=v&&!i((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return e=!0,null},n[p](""),!e}));if(!v||!g||"replace"===t&&(!l||!u||d)||"split"===t&&!h){var m=/./[p],y=n(p,""[t],(function(t,e,n,r,i){return e.exec===o?v&&!i?{done:!0,value:m.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],w=y[1];r(String.prototype,t,b),r(RegExp.prototype,p,2==e?function(t,e){return w.call(t,this,e)}:function(t){return w.call(t,this)})}f&&s(RegExp.prototype[p],"sham",!0)}},ddb0:function(t,e,n){var r=n("da84"),i=n("fdbc"),a=n("e260"),o=n("9112"),s=n("b622"),c=s("iterator"),l=s("toStringTag"),u=a.values;for(var f in i){var d=r[f],h=d&&d.prototype;if(h){if(h[c]!==u)try{o(h,c,u)}catch(v){h[c]=u}if(h[l]||o(h,l,f),i[f])for(var p in a)if(h[p]!==a[p])try{o(h,p,a[p])}catch(v){h[p]=a[p]}}}},e01a:function(t,e,n){"use strict";var r=n("23e7"),i=n("83ab"),a=n("da84"),o=n("5135"),s=n("861d"),c=n("9bf2").f,l=n("e893"),u=a.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var f={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof d?new u(t):void 0===t?u():u(t);return""===t&&(f[e]=!0),e};l(d,u);var h=d.prototype=u.prototype;h.constructor=d;var p=h.toString,v="Symbol(test)"==String(u("test")),g=/^Symbol\((.*)\)[^)]+$/;c(h,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=p.call(t);if(o(f,t))return"";var n=v?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},e1f1:function(t,e,n){},e5d3:function(t,e,n){"use strict";n("bd91")},fb6a:function(t,e,n){"use strict";var r=n("23e7"),i=n("861d"),a=n("e8b5"),o=n("23cb"),s=n("50c4"),c=n("fc6a"),l=n("8418"),u=n("b622"),f=n("1dde"),d=n("ae40"),h=f("slice"),p=d("slice",{ACCESSORS:!0,0:0,1:2}),v=u("species"),g=[].slice,m=Math.max;r({target:"Array",proto:!0,forced:!h||!p},{slice:function(t,e){var n,r,u,f=c(this),d=s(f.length),h=o(t,d),p=o(void 0===e?d:e,d);if(a(f)&&(n=f.constructor,"function"!=typeof n||n!==Array&&!a(n.prototype)?i(n)&&(n=n[v],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return g.call(f,h,p);for(r=new(void 0===n?Array:n)(m(p-h,0)),u=0;h