text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[1],{"713b":function(e,t,a){"use strict";a.r(t);var n,o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("q-layout",{style:{height:e.$q.screen.height,width:e.$q.screen.width},attrs:{view:"hhh LpR lFf"}},[a("q-header",{staticClass:"bg-primary text-white",attrs:{reveal:"",elevated:""}},[a("q-toolbar",{staticClass:"main-headers text-white shadow-18 rounded-borders"},[a("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn"}},[a("q-btn",{attrs:{flat:"",round:"",dense:"",icon:"menu"},on:{click:function(t){e.drawerleft=!e.drawerleft}}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[15,15],"content-style":"font-size: 12px"}},[e._v("\n              "+e._s(e.$t("index.hide_menu"))+"\n            ")])],1)],1),a("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn"}},[a("q-toolbar-title",{directives:[{name:"show",rawName:"v-show",value:e.$q.platform.is.desktop,expression:"$q.platform.is.desktop"}],staticClass:"text-weight-bold",attrs:{shrink:""}},[e._v("\n            "+e._s(e.$t("index.title"))+"\n          ")])],1),a("q-space"),a("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn"}},[a("q-btn",{directives:[{name:"show",rawName:"v-show",value:e.$q.platform.is.desktop,expression:"$q.platform.is.desktop"}],attrs:{icon:"img:statics/icons/logo.png",stretch:"",flat:"",label:e.$t("index.home"),to:"/"}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[10,10],"content-style":"font-size: 12px"}},[e._v("\n              "+e._s(e.$t("index.title_tip"))+"\n            ")])],1)],1),a("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn"}},[a("a",{directives:[{name:"show",rawName:"v-show",value:e.$q.platform.is.desktop,expression:"$q.platform.is.desktop"}],staticStyle:{"text-decoration":"none",color:"#c8e6c9"},attrs:{href:"/docs/"}},[a("q-btn",{staticStyle:{margin:"0 10px 0 10px"},attrs:{icon:"api",round:"",dense:"",flat:""}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[15,15],"content-style":"font-size: 12px"}},[e._v("\n                "+e._s(e.$t("index.api"))+"\n              ")])],1)],1)]),a("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn"}},[a("q-btn",{directives:[{name:"show",rawName:"v-show",value:e.$q.platform.is.desktop,expression:"$q.platform.is.desktop"}],staticStyle:{margin:"0 10px 0 10px"},attrs:{icon:"img:statics/icons/GitHub.png",round:"",dense:"",flat:""},on:{click:function(t){return e.brownlink("https://github.com/Singosgu/GreaterWMS")}}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[15,15],"content-style":"font-size: 12px"}},[e._v("\n              GitHub Link\n            ")])],1)],1),a("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn"}},[a("q-btn",{staticStyle:{margin:"0 10px 0 10px"},attrs:{round:"",dense:"",flat:"",color:"white",icon:"translate"}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[15,15],"content-style":"font-size: 12px"}},[e._v("\n              "+e._s(e.$t("index.translate"))+"\n            ")]),a("q-menu",[a("q-list",{staticStyle:{"min-width":"100px"}},e._l(e.langOptions,(function(t,n){return a("q-item",{directives:[{name:"close-popup",rawName:"v-close-popup"}],key:n,attrs:{clickable:""},on:{click:function(a){return e.langChange(t.value)}}},[a("q-item-section",[e._v(e._s(t.label))])],1)})),1)],1)],1)],1),a("q-separator",{attrs:{vertical:""}}),"1"===e.authin?[a("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn"}},[a("q-btn",{staticStyle:{margin:"0 10px 0 10px"},attrs:{round:"",dense:"",flat:"",color:"white",icon:"notifications"},on:{click:function(t){e.read=!0}}},[a("q-badge",{attrs:{color:"red","text-color":"white",floating:""}},[e._v("\n              "+e._s(e.read_num)+"\n            ")]),a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[15,15],"content-style":"font-size: 12px"}},[e._v("\n                "+e._s(e.$t("index.unread"))+"\n            ")])],1)],1),a("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn"}},[a("q-btn-dropdown",{attrs:{stretch:"",flat:"",color:"white-8",icon:"account_circle"},on:{click:function(t){e.chat=!1}}},[a("div",{staticClass:"row no-wrap q-pa-md"},[a("div",{staticClass:"column",staticStyle:{width:"200px"}},[a("div",{staticClass:"text-h6 q-mb-md"},[e._v("\n                  "+e._s(e.$t("index.user_center"))+"\n                ")]),a("q-btn",{staticClass:"full-width",attrs:{flat:"",rounded:"",align:"left",icon:"connect_without_contact",label:e.$t("index.change_user")},on:{click:function(t){e.login=!0}}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[10,10],"content-style":"font-size: 12px"}},[e._v("\n                          "+e._s(e.$t("index.change_user"))+"\n                      ")])],1),a("q-btn",{staticClass:"full-width",attrs:{flat:"",rounded:"",align:"left",icon:"list",label:e.$t("index.view_my_openid")},on:{click:function(t){e.authid=!0}}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[10,10],"content-style":"font-size: 12px"}},[e._v("\n                          "+e._s(e.$t("index.view_my_openid"))+"\n                      ")])],1),a("q-btn",{staticClass:"full-width",attrs:{flat:"",rounded:"",align:"left",icon:"img:statics/icons/profile.png",label:e.$t("index.contact_list")},on:{click:function(t){return e.Friend()}}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[10,10],"content-style":"font-size: 12px"}},[e._v("\n                          "+e._s(e.$t("index.contact_list"))+"\n                      ")])],1),a("q-btn",{directives:[{name:"show",rawName:"v-show",value:e.$q.platform.is.cordova||e.$q.platform.is.mobile,expression:"$q.platform.is.cordova || $q.platform.is.mobile"}],staticClass:"full-width",attrs:{flat:"",rounded:"",align:"left",icon:"logout",label:e.$t("index.logout")},on:{click:function(t){return e.Logout()}}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[10,10],"content-style":"font-size: 12px"}},[e._v("\n                          "+e._s(e.$t("index.contact_list"))+"\n                      ")])],1)],1),a("q-separator",{directives:[{name:"show",rawName:"v-show",value:e.$q.platform.is.desktop,expression:"$q.platform.is.desktop"}],staticClass:"q-mx-lg",attrs:{vertical:"",inset:""}}),a("div",{directives:[{name:"show",rawName:"v-show",value:e.$q.platform.is.desktop,expression:"$q.platform.is.desktop"}],staticClass:"column items-center"},[a("q-avatar",{attrs:{size:"72px"}},[a("q-img",{attrs:{src:"statics/staff/stafftype.png"}})],1),a("div",{staticClass:"text-subtitle1 q-mt-md q-mb-xs"},[e._v(e._s(e.login_name))]),a("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{color:"primary",label:e.$t("index.logout"),push:"",size:"sm",icon:"img:statics/icons/logout.png"},on:{click:function(t){return e.Logout()}}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[10,10],"content-style":"font-size: 12px"}},[e._v("\n                  "+e._s(e.$t("index.logout")))])],1)],1)],1)])],1)]:e._e(),"0"===e.authin?[a("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn"}},[a("q-btn",{staticStyle:{"margin-left":"10px"},attrs:{label:e.$t("index.login"),color:"primary"},on:{click:function(t){e.login=!0}}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[15,15],"content-style":"font-size: 12px"}},[e._v("\n                "+e._s(e.$t("index.login_tip"))+"\n              ")])],1)],1),a("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn"}},[a("q-btn",{staticStyle:{"margin-left":"10px"},attrs:{label:e.$t("index.register"),color:"primary"},on:{click:function(t){e.register=!0}}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[15,15],"content-style":"font-size: 12px"}},[e._v("\n                "+e._s(e.$t("index.register_tip"))+"\n              ")])],1)],1)]:e._e()],2)],1),a("q-drawer",{attrs:{"show-if-above":"",mini:e.miniState,width:200,breakpoint:500,bordered:"","content-class":"bg-grey-3 shadow-24"},on:{mouseover:function(t){e.miniState=!1},mouseout:function(t){e.miniState=!0}},model:{value:e.drawerleft,callback:function(t){e.drawerleft=t},expression:"drawerleft"}},[a("q-scroll-area",{staticClass:"fit",staticStyle:{"overflow-y":"hidden"}},[a("q-list",[e.$q.platform.is.desktop?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Outbound"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Outbound'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"inbound"===e.link},attrs:{clickable:"",to:"/inbound/asn",exact:"",active:"inbound"===e.link},on:{click:function(t){return e.linkChange("inbound")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"speaker_notes"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("menuItem.inbound"))+"\n            ")])],1):e._e(),e.$q.platform.is.desktop?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Inbound"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Inbound'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"outbound"===e.link},attrs:{clickable:"",to:"/outbound/dn",exact:"",active:"outbound"===e.link},on:{click:function(t){return e.linkChange("outbound")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"rv_hookup"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("menuItem.outbound"))+"\n            ")])],1):e._e(),e.$q.platform.is.desktop?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"stock"===e.link},attrs:{clickable:"",to:"/stock/stocklist",exact:"",active:"stock"===e.link},on:{click:function(t){return e.linkChange("stock")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"multiline_chart"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("menuItem.stock"))+"\n            ")])],1):e._e(),a("q-separator"),e.$q.platform.is.desktop?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Inbound"!==e.$q.localStorage.getItem("staff_type")&&"Outbound"!==e.$q.localStorage.getItem("staff_type")&&"StockControl"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Inbound' &&\n                          $q.localStorage.getItem('staff_type') !== 'Outbound' &&\n                          $q.localStorage.getItem('staff_type') !== 'StockControl'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"finance"===e.link},attrs:{clickable:"",to:"/finance/capitallist",exact:"",active:"finance"===e.link},on:{click:function(t){return e.linkChange("finance")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"devices_other"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("menuItem.finance"))+"\n            ")])],1):e._e(),e.$q.platform.is.desktop?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Inbound"!==e.$q.localStorage.getItem("staff_type")&&"Outbound"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Inbound' &&\n                          $q.localStorage.getItem('staff_type') !== 'Outbound'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"goods"===e.link},attrs:{clickable:"",to:"/goods/goodslist",exact:"",active:"goods"===e.link},on:{click:function(t){return e.linkChange("goods")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"shop_two"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("menuItem.goods"))+"\n            ")])],1):e._e(),e.$q.platform.is.desktop?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Inbound"!==e.$q.localStorage.getItem("staff_type")&&"Outbound"!==e.$q.localStorage.getItem("staff_type")&&"StockControl"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Inbound' &&\n                          $q.localStorage.getItem('staff_type') !== 'Outbound' &&\n                          $q.localStorage.getItem('staff_type') !== 'StockControl'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"baseinfo"===e.link},attrs:{clickable:"",to:"/baseinfo/company",exact:"",active:"baseinfo"===e.link},on:{click:function(t){return e.linkChange("baseinfo")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"info"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("menuItem.baseinfo"))+"\n            ")])],1):e._e(),e.$q.platform.is.desktop?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Inbound"!==e.$q.localStorage.getItem("staff_type")&&"Outbound"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Inbound' &&\n                          $q.localStorage.getItem('staff_type') !== 'Outbound'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"warehouse"===e.link},attrs:{clickable:"",to:"/warehouse/warehouseset",exact:"",active:"warehouse"===e.link},on:{click:function(t){return e.linkChange("warehouse")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"settings"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("menuItem.warehouse"))+"\n            ")])],1):e._e(),a("q-separator"),e.$q.platform.is.desktop?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"staff"===e.link},attrs:{clickable:"",to:"/staff/stafflist",exact:"",active:"staff"===e.link},on:{click:function(t){return e.linkChange("staff")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"assignment_ind"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("menuItem.staff"))+"\n            ")])],1):e._e(),e.$q.platform.is.desktop?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Inbound"!==e.$q.localStorage.getItem("staff_type")&&"StockControl"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Inbound' &&\n                          $q.localStorage.getItem('staff_type') !== 'StockControl'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"driver"===e.link},attrs:{clickable:"",to:"/driver/driverlist",exact:"",active:"driver"===e.link},on:{click:function(t){return e.linkChange("driver")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"img:statics/staff/driver.png"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("menuItem.driver"))+"\n            ")])],1):e._e(),a("q-separator"),e.$q.platform.is.desktop?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Supervisor"!==e.$q.localStorage.getItem("staff_type")&&"Inbound"!==e.$q.localStorage.getItem("staff_type")&&"Outbound"!==e.$q.localStorage.getItem("staff_type")&&"StockControl"!==e.$q.localStorage.getItem("staff_type")&&"Manager"!==e.$q.localStorage.getItem("staff_type")&&"Admin"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Supervisor' &&\n                          $q.localStorage.getItem('staff_type') !== 'Inbound' &&\n                          $q.localStorage.getItem('staff_type') !== 'Outbound' &&\n                          $q.localStorage.getItem('staff_type') !== 'StockControl' &&\n                          $q.localStorage.getItem('staff_type') !== 'Manager' &&\n                          $q.localStorage.getItem('staff_type') !== 'Admin'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"customerdn"===e.link},attrs:{clickable:"",to:"/customerdn",exact:"",active:"customerdn"===e.link},on:{click:function(t){return e.linkChange("customerdn")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"img:statics/outbound/dnlist.png"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("menuItem.customerdn"))+"\n            ")])],1):e._e(),e.$q.platform.is.cordova||e.$q.platform.is.mobile?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Inbound"!==e.$q.localStorage.getItem("staff_type")&&"StockControl"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Inbound' &&\n                          $q.localStorage.getItem('staff_type') !== 'StockControl'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"scan_sorting"===e.link},attrs:{clickable:"",to:"/scan_sorting",exact:"",active:"scan_sorting"===e.link},on:{click:function(t){return e.linkChange("scan_sorting")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"img:statics/inbound/preloadstock.png"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("scan.scan_sorting"))+"\n            ")])],1):e._e(),e.$q.platform.is.cordova||e.$q.platform.is.mobile?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Outbound"!==e.$q.localStorage.getItem("staff_type")&&"StockControl"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Outbound' &&\n                          $q.localStorage.getItem('staff_type') !== 'StockControl'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"scan_uptobin"===e.link},attrs:{clickable:"",to:"/scan_uptobin",exact:"",active:"scan_uptobin"===e.link},on:{click:function(t){return e.linkChange("scan_uptobin")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"img:statics/inbound/presortstock.png"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("scan.scan_uptobin"))+"\n            ")])],1):e._e(),e.$q.platform.is.cordova||e.$q.platform.is.mobile?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Inbound"!==e.$q.localStorage.getItem("staff_type")&&"StockControl"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Inbound' &&\n                          $q.localStorage.getItem('staff_type') !== 'StockControl'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"scan_picking"===e.link},attrs:{clickable:"",to:"/scan_picking",exact:"",active:"scan_picking"===e.link},on:{click:function(t){return e.linkChange("scan_picking")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"img:statics/outbound/picked.png"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("scan.scan_picking"))+"\n            ")])],1):e._e(),e.$q.platform.is.cordova||e.$q.platform.is.mobile?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Inbound"!==e.$q.localStorage.getItem("staff_type")&&"StockControl"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Inbound' &&\n                          $q.localStorage.getItem('staff_type') !== 'StockControl'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"scan_shipping"===e.link},attrs:{clickable:"",to:"/scan_shipping",exact:"",active:"scan_shipping"===e.link},on:{click:function(t){return e.linkChange("scan_shipping")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"rv_hookup"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("dispatch"))+"\n            ")])],1):e._e(),e.$q.platform.is.cordova||e.$q.platform.is.mobile?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Inbound"!==e.$q.localStorage.getItem("staff_type")&&"Outbound"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Inbound' &&\n                          $q.localStorage.getItem('staff_type') !== 'Outbound'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"scan_movetobin"===e.link},attrs:{clickable:"",to:"/scan_movetobin",exact:"",active:"scan_movetobin"===e.link},on:{click:function(t){return e.linkChange("scan_movetobin")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"move_to_inbox"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("movetobin"))+"\n            ")])],1):e._e(),a("q-separator"),e.$q.platform.is.cordova||e.$q.platform.is.mobile?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Outbound"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Outbound'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"scan_asn"===e.link},attrs:{clickable:"",to:"/scan_asn",exact:"",active:"scan_asn"===e.link},on:{click:function(t){return e.linkChange("scan_asn")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"img:statics/inbound/asn.png"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("scan.scan_asn"))+"\n            ")])],1):e._e(),e.$q.platform.is.cordova||e.$q.platform.is.mobile?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Outbound"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Outbound'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"scan_dn"===e.link},attrs:{clickable:"",to:"/scan_dn",exact:"",active:"scan_dn"===e.link},on:{click:function(t){return e.linkChange("scan_dn")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"img:statics/outbound/dnlist.png"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("scan.scan_dn"))+"\n            ")])],1):e._e(),a("q-separator"),e.$q.platform.is.cordova||e.$q.platform.is.mobile?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Inbound"!==e.$q.localStorage.getItem("staff_type")&&"Outbound"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Inbound' &&\n                          $q.localStorage.getItem('staff_type') !== 'Outbound'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"scan_emptybin"===e.link},attrs:{clickable:"",to:"/scan_emptybin",exact:"",active:"scan_emptybin"===e.link},on:{click:function(t){return e.linkChange("scan_emptybin")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"all_out"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("stock.emptybin"))+"\n            ")])],1):e._e(),e.$q.platform.is.cordova||e.$q.platform.is.mobile?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"scan_stockbinlist"===e.link},attrs:{clickable:"",to:"/scan_stockbinlist",exact:"",active:"scan_stockbinlist"===e.link},on:{click:function(t){return e.linkChange("scan_stockbinlist")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"img:statics/warehouse/binset.png"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("stock.stockbinlist"))+"\n            ")])],1):e._e(),e.$q.platform.is.cordova||e.$q.platform.is.mobile?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Supplier"!==e.$q.localStorage.getItem("staff_type")&&"Customer"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Supplier' &&\n                          $q.localStorage.getItem('staff_type') !== 'Customer'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"scan_stocklist"===e.link},attrs:{clickable:"",to:"/scan_stocklist",exact:"",active:"scan_stocklist"===e.link},on:{click:function(t){return e.linkChange("scan_stocklist")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"img:statics/stock/stocklist.png"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("stock.stocklist"))+"\n            ")])],1):e._e(),e.$q.platform.is.cordova||e.$q.platform.is.mobile?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Supplier"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Supplier'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"scan_goodslist"===e.link},attrs:{clickable:"",to:"/scan_goodslist",exact:"",active:"scan_goodslist"===e.link},on:{click:function(t){return e.linkChange("scan_goodslist")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"img:statics/goods/goodslist.png"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("goods.goods_list"))+"\n            ")])],1):e._e(),a("q-separator"),e.$q.platform.is.cordova||e.$q.platform.is.mobile?a("q-item",{directives:[{name:"show",rawName:"v-show",value:"Customer"!==e.$q.localStorage.getItem("staff_type")&&"Supplier"!==e.$q.localStorage.getItem("staff_type"),expression:"$q.localStorage.getItem('staff_type') !== 'Customer' &&\n                          $q.localStorage.getItem('staff_type') !== 'Supplier'\n                         "},{name:"ripple",rawName:"v-ripple"}],class:{"my-menu-link":"scan_stafflist"===e.link},attrs:{clickable:"",to:"/scan_stafflist",exact:"",active:"scan_stafflist"===e.link},on:{click:function(t){return e.linkChange("scan_stafflist")}}},[a("q-item-section",{attrs:{avatar:""}},[a("q-icon",{attrs:{name:"perm_contact_calendar"}})],1),a("q-item-section",[e._v("\n              "+e._s(e.$t("staff.staff"))+"\n            ")])],1):e._e(),a("q-separator")],1)],1)],1),a("q-page-container",{staticClass:"main-page",style:{height:e.container_height,width:e.$q.screen.width}},[a("router-view")],1),a("q-dialog",{model:{value:e.chat,callback:function(t){e.chat=t},expression:"chat"}},[a("q-card",{staticStyle:{width:"600px"}},[a("q-bar",{staticClass:"bg-light-blue-10 text-white rounded-borders",staticStyle:{height:"50px"}},[a("div",[e._v(e._s(e.receiver))]),a("q-space"),a("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{dense:"",flat:"",icon:"close"}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[20,20],"content-style":"font-size: 12px"},on:{click:function(t){return e.ChatClose()}}},[e._v(e._s(e.$t("index.close")))])],1)],1),a("q-separator"),a("q-card-section",{staticClass:"scroll",staticStyle:{"max-height":"50vh",height:"50vh"},attrs:{id:"chat_scroll"}},[[a("div",{staticClass:"q-pa-md row justify-center"},[a("q-btn",{directives:[{name:"show",rawName:"v-show",value:null!==e.chat_next,expression:"chat_next !== null"}],attrs:{flat:"",rounded:"",label:e.$t("index.chat_more")},on:{click:function(t){return e.LoadChatList()}}}),a("div",{staticStyle:{width:"100%"}},[a("q-chat-message",{directives:[{name:"show",rawName:"v-show",value:null===e.chat_next,expression:"chat_next === null"}],attrs:{label:e.$t("index.chat_no_more")}}),e._l(e.chat_list,(function(t){return a("div",{key:t.id},[t.sender===e.sender+"-"+e.openid?a("q-chat-message",{attrs:{name:e.sender,text:[t.detail],"bg-color":"light-green-4","name-sanitize":"",sent:"","text-sanitize":""}}):a("q-chat-message",{attrs:{name:e.receiver,text:[t.detail],"text-sanitize":"","name-sanitize":"","bg-color":"grey-4"}})],1)}))],2)],1)]],2),a("q-separator"),a("q-card-actions",{attrs:{align:"right"}},[a("q-input",{staticClass:"bg-white col",attrs:{autofocus:"",dense:"",outlined:"",square:"",placeholder:"Send Message"},on:{keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.websocketsend()},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.ChatClose()}]},model:{value:e.chat_text,callback:function(t){e.chat_text=t},expression:"chat_text"}}),a("q-btn",{attrs:{flat:"",label:e.$t("index.chat_send"),color:"primary"},on:{click:function(t){return e.websocketsend()}}})],1)],1)],1),a("q-dialog",{attrs:{position:"right"},model:{value:e.read,callback:function(t){e.read=t},expression:"read"}},[a("q-card",{staticStyle:{width:"300px"}},[a("q-bar",{staticClass:"bg-light-blue-10 text-white rounded-borders",staticStyle:{height:"50px"}},[a("div",[e._v(e._s(e.$t("index.unread"))+"("+e._s(e.read_num)+")")]),a("q-space"),a("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{dense:"",flat:"",icon:"close"}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[20,20],"content-style":"font-size: 12px"}},[e._v(e._s(e.$t("index.close")))])],1)],1),a("q-separator"),a("q-card-section",{staticClass:"scroll",staticStyle:{"max-height":"50vh",height:"50vh"}},[a("q-list",e._l(e.read_list,(function(t){return a("div",{key:t.id},[a("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],attrs:{clickable:""}},[a("q-item-section",[a("q-item-label",{on:{click:function(a){e.ChatWith(t.sender.split("-")[0])}}},[e._v(e._s(t.sender.split("-")[0]))]),a("q-item-label",{attrs:{caption:"",lines:"2"},on:{click:function(a){e.ChatWith(t.sender.split("-")[0])}}},[e._v(e._s(t.detail))])],1)],1)],1)})),0)],1),a("q-separator",{directives:[{name:"show",rawName:"v-show",value:e.read_num>30,expression:"read_num > 30"}]}),a("q-card-actions",{attrs:{align:"left"}},[a("q-btn",{directives:[{name:"show",rawName:"v-show",value:null!==e.read_previous,expression:"read_previous !== null"}],attrs:{flat:"",label:e.$t("index.previous"),color:"primary"},on:{click:function(t){return e.ReadnumPrevious()}}}),a("q-btn",{directives:[{name:"show",rawName:"v-show",value:null!==e.read_next,expression:"read_next !== null"}],attrs:{flat:"",label:e.$t("index.next"),color:"primary"},on:{click:function(t){return e.ReadnumNext()}}})],1)],1)],1),a("q-dialog",{attrs:{"transition-show":"jump-down","transition-hide":"jump-up"},model:{value:e.authid,callback:function(t){e.authid=t},expression:"authid"}},[a("q-card",{staticStyle:{"min-width":"350px"}},[a("q-bar",{staticClass:"bg-light-blue-10 text-white rounded-borders",staticStyle:{height:"50px"}},[a("div",[e._v(e._s(e.$t("index.your_openid")))]),a("q-space"),a("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{dense:"",flat:"",icon:"close"}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[20,20],"content-style":"font-size: 12px"}},[e._v(e._s(e.$t("index.close")))])],1)],1),a("q-card-section",{staticClass:"q-pt-md"},[a("q-input",{attrs:{dense:"",outlined:"",square:"",label:"Openid",readonly:""},model:{value:e.openid,callback:function(t){e.openid=t},expression:"openid"}})],1)],1)],1),a("q-dialog",{attrs:{position:"right"},model:{value:e.friend,callback:function(t){e.friend=t},expression:"friend"}},[a("q-card",{staticStyle:{width:"300px"}},[a("q-bar",{staticClass:"bg-light-blue-10 text-white rounded-borders",staticStyle:{height:"50px"}},[a("div",[e._v(e._s(e.$t("index.contact_list"))+"("+e._s(e.friend_num)+")")]),a("q-space"),a("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{dense:"",flat:"",icon:"close"}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[20,20],"content-style":"font-size: 12px"}},[e._v("关闭")])],1)],1),a("q-separator"),a("q-card-section",{staticClass:"scroll",staticStyle:{"max-height":"50vh",height:"50vh"}},[a("q-list",[e._l(e.friend_list,(function(t){return[a("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],key:t.id,attrs:{clickable:""}},[a("q-item-section",[a("q-item-label",{on:{click:function(a){return e.ChatWith(t.staff_name)}}},[e._v(e._s(t.staff_name))])],1)],1)]}))],2)],1),a("q-separator",{directives:[{name:"show",rawName:"v-show",value:e.friend_num>30,expression:"friend_num > 30"}]}),a("q-card-actions",{attrs:{align:"left"}},[a("q-btn",{directives:[{name:"show",rawName:"v-show",value:null!==e.friend_previous,expression:"friend_previous !== null"}],attrs:{flat:"",label:e.$t("index.previous"),color:"primary"},on:{click:function(t){return e.Friend_previous()}}}),a("q-btn",{directives:[{name:"show",rawName:"v-show",value:null!==e.friend_next,expression:"friend_next !== null"}],attrs:{flat:"",label:e.$t("index.next"),color:"primary"},on:{click:function(t){return e.Friend_next()}}})],1)],1)],1),a("q-dialog",{attrs:{"transition-show":"jump-down","transition-hide":"jump-up"},model:{value:e.login,callback:function(t){e.login=t},expression:"login"}},[a("q-card",{staticStyle:{"min-width":"350px"}},[a("q-bar",{staticClass:"bg-light-blue-10 text-white rounded-borders",staticStyle:{height:"50px"}},[a("div",[e._v(e._s(e.$t("index.user_login")))]),a("q-space"),e.admin?[a("q-btn",{attrs:{dense:"",flat:"",label:e.$t("index.user_login")},on:{click:function(t){e.admin=!1}}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[20,20],"content-style":"font-size: 12px"}},[e._v(e._s(e.$t("index.user_login")))])],1)]:e.admin?e._e():[a("q-btn",{attrs:{dense:"",flat:"",label:e.$t("index.admin_login")},on:{click:function(t){e.admin=!0}}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[20,20],"content-style":"font-size: 12px"}},[e._v(e._s(e.$t("index.admin_login")))])],1)],a("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{dense:"",flat:"",icon:"close"}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[20,20],"content-style":"font-size: 12px"}},[e._v(e._s(e.$t("index.close")))])],1)],2),a("q-card-section",{staticClass:"q-pt-md"},[e.admin?[a("q-input",{attrs:{dense:"",outlined:"",square:"",label:e.$t("index.admin_name"),autofocus:""},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.adminLogin()}},model:{value:e.adminlogin.name,callback:function(t){e.$set(e.adminlogin,"name",t)},expression:"adminlogin.name"}}),a("q-input",{staticStyle:{"margin-top":"5px"},attrs:{dense:"",outlined:"",square:"",label:e.$t("index.password"),type:e.isPwd?"password":"text"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.adminLogin()}},scopedSlots:e._u([{key:"append",fn:function(){return[a("q-icon",{staticClass:"cursor-pointer",attrs:{name:e.isPwd?"visibility_off":"visibility"},on:{click:function(t){e.isPwd=!e.isPwd}}})]},proxy:!0}],null,!1,3635466494),model:{value:e.adminlogin.password,callback:function(t){e.$set(e.adminlogin,"password",t)},expression:"adminlogin.password"}})]:e._e(),e.admin?e._e():[a("q-input",{attrs:{dense:"",outlined:"",square:"",label:e.$t("index.your_openid")},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.Login()}},model:{value:e.openid,callback:function(t){e.openid=t},expression:"openid"}}),a("q-input",{staticStyle:{"margin-top":"5px"},attrs:{dense:"",outlined:"",square:"",label:e.$t("index.staff_name"),autofocus:""},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.Login()}},model:{value:e.login_name,callback:function(t){e.login_name=t},expression:"login_name"}})]],2),a("q-card-actions",{staticClass:"text-primary",attrs:{align:"left"}},[a("q-input",{directives:[{name:"show",rawName:"v-show",value:!e.admin,expression:"!admin"}],staticStyle:{width:"40%","margin-left":"10px"},attrs:{dense:""},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.Login()}},scopedSlots:e._u([{key:"prepend",fn:function(){return[a("div",{staticStyle:{color:"black","font-size":"15px!important"}},[e._v("\n              "+e._s(e.$t("staff.check_code"))+"\n            ")])]},proxy:!0}]),model:{value:e.check_code,callback:function(t){e.check_code=t},expression:"check_code"}}),a("q-space"),a("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{flat:"",label:e.$t("index.cancel")}}),e.admin?[a("q-btn",{attrs:{color:"primary",label:e.$t("index.login")},on:{click:function(t){return e.adminLogin()}}})]:e._e(),e.admin?e._e():[a("q-btn",{attrs:{color:"primary",label:e.$t("index.login")},on:{click:function(t){return e.Login()}}})]],2)],1)],1),a("q-dialog",{attrs:{"transition-show":"jump-down","transition-hide":"jump-up"},model:{value:e.register,callback:function(t){e.register=t},expression:"register"}},[a("q-card",{staticStyle:{"min-width":"350px"}},[a("q-bar",{staticClass:"bg-light-blue-10 text-white rounded-borders",staticStyle:{height:"50px"}},[a("div",[e._v(e._s(e.$t("index.register_tip")))]),a("q-space"),a("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{dense:"",flat:"",icon:"close"}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[20,20],"content-style":"font-size: 12px"}},[e._v(e._s(e.$t("index.close")))])],1)],1),a("q-card-section",{staticClass:"q-pt-md"},[a("q-input",{attrs:{dense:"",outlined:"",square:"",label:e.$t("index.staff_name"),autofocus:""},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.Register()}},model:{value:e.registerform.name,callback:function(t){e.$set(e.registerform,"name",t)},expression:"registerform.name"}}),a("q-input",{staticStyle:{"margin-top":"5px"},attrs:{dense:"",outlined:"",square:"",label:e.$t("index.password"),type:e.isPwd?"password":"text"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.Register()}},scopedSlots:e._u([{key:"append",fn:function(){return[a("q-icon",{staticClass:"cursor-pointer",attrs:{name:e.isPwd?"visibility_off":"visibility"},on:{click:function(t){e.isPwd=!e.isPwd}}})]},proxy:!0}]),model:{value:e.registerform.password1,callback:function(t){e.$set(e.registerform,"password1",t)},expression:"registerform.password1"}}),a("q-input",{staticStyle:{"margin-top":"5px"},attrs:{dense:"",outlined:"",square:"",label:e.$t("index.confirm_password"),type:e.isPwd2?"password":"text"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.Register()}},scopedSlots:e._u([{key:"append",fn:function(){return[a("q-icon",{staticClass:"cursor-pointer",attrs:{name:e.isPwd2?"visibility_off":"visibility"},on:{click:function(t){e.isPwd2=!e.isPwd2}}})]},proxy:!0}]),model:{value:e.registerform.password2,callback:function(t){e.$set(e.registerform,"password2",t)},expression:"registerform.password2"}})],1),a("q-card-actions",{staticClass:"text-primary",attrs:{align:"right"}},[a("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{flat:"",label:e.$t("index.cancel")}}),a("q-btn",{attrs:{color:"primary",label:e.$t("index.register")},on:{click:function(t){return e.Register()}}})],1)],1)],1),a("q-dialog",{attrs:{"transition-show":"jump-down","transition-hide":"jump-up",persistent:""},model:{value:e.versionCheck,callback:function(t){e.versionCheck=t},expression:"versionCheck"}},[a("q-card",{staticStyle:{"min-width":"350px"}},[a("q-bar",{staticClass:"bg-light-blue-10 text-white rounded-borders",staticStyle:{height:"50px"}},[a("div",[e._v(e._s(e.$t("index.updatetitle")))]),a("q-space"),a("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{dense:"",flat:"",icon:"close"},on:{click:function(t){return e.NewVersionignore()}}},[a("q-tooltip",{attrs:{"content-class":"bg-indigo",offset:[20,20],"content-style":"font-size: 12px"}},[e._v(e._s(e.$t("index.close")))])],1)],1),a("q-card-section",{staticClass:"q-pt-md"},[e._v("\n        "+e._s(e.version)+" "+e._s(e.$t("index.updatedesc"))+"\n      ")]),a("q-card-actions",{staticClass:"text-primary",attrs:{align:"right"}},[a("q-btn",{directives:[{name:"show",rawName:"v-show",value:!e.downloadprocess,expression:"!downloadprocess"},{name:"close-popup",rawName:"v-close-popup"}],attrs:{flat:"",label:e.$t("index.cancel")},on:{click:function(t){return e.NewVersionignore()}}}),a("q-btn",{directives:[{name:"show",rawName:"v-show",value:!e.downloadprocess,expression:"!downloadprocess"}],attrs:{color:"primary",label:e.$t("index.download")},on:{click:function(t){return e.NewVersionDownload()}}}),a("q-linear-progress",{directives:[{name:"show",rawName:"v-show",value:e.downloadprocess,expression:"downloadprocess"}],attrs:{size:"25px",value:e.processpercent,color:"accent"}},[a("div",{staticClass:"absolute-full flex flex-center"},[a("q-badge",{attrs:{color:"white","text-color":"accent",label:e.processpercent}})],1)])],1)],1)],1),a("q-dialog",{attrs:{"transition-show":"jump-down","transition-hide":"jump-up",persistent:""},model:{value:e.updateNow,callback:function(t){e.updateNow=t},expression:"updateNow"}},[a("q-card",{staticStyle:{"min-width":"350px"}},[a("q-bar",{staticClass:"bg-light-blue-10 text-white rounded-borders",staticStyle:{height:"50px"}},[a("div",[e._v(e._s(e.$t("index.updatetitle")))]),a("q-space")],1),a("q-card-section",{staticClass:"q-pt-md"},[e._v("\n        "+e._s(e.version)+" "+e._s(e.$t("index.updatedesc"))+"\n      ")]),a("q-card-actions",{staticClass:"text-primary",attrs:{align:"right"}},[a("q-btn",{attrs:{color:"primary",label:e.$t("index.update")},on:{click:function(t){return e.NewVersionUpdate()}}})],1)],1)],1)],1)},s=[],i=(a("26e9"),a("5319"),a("3004")),r=a("bd4c"),l=a("18d6"),c=a("b06b"),p={data(){return{lang:this.$i18n.locale,versionCheck:!1,version:"",updateNow:!1,processpercent:0,downloadprocess:!1,container_height:"",langOptions:[{value:"en-us",label:"English"},{value:"zh-hans",label:"中文简体"},{value:"zh-hant",label:"中文繁體"},{value:"ja",label:"日本語"}],title:this.$t("index.webtitle"),admin:!1,adminlogin:{name:"",password:""},openid:"",isPwd:!0,isPwd2:!0,authin:"0",authid:!1,left:!1,drawerleft:!1,miniState:!0,tab:"",login:!1,link:localStorage.getItem("menulink"),login_name:"",check_code:"",register:!1,registerform:{name:"",password1:"",password2:""},friend:!1,friend_num:0,friend_list:[],friend_previous:null,friend_next:null,sender:"",receiver:"",chat:!1,chat_list:"",chat_text:"",chat_next:null,read:!1,read_num:0,read_list:[],read_previous:"",read_next:""}},meta(){var e=this;return{title:e.title}},methods:{linkChange(e){var t=this;localStorage.setItem("menulink",e),t.link=e},drawerClick(e){var t=this;t.miniState&&(t.miniState=!1,e.stopPropagation())},brownlink(e){Object(c["a"])(e)},Login(){var e=this;""===e.login_name?e.$q.notify({message:"Please enter the login name",color:"negative",icon:"close"}):""===e.openid?e.$q.notify({message:"Please Enter The Openid",icon:"close",color:"negative"}):""===e.check_code?e.$q.notify({message:"Please Enter The Check Code",icon:"close",color:"negative"}):(e.$q.localStorage.set("openid",e.openid),Object(i["d"])("staff/?staff_name="+e.login_name+"&check_code="+e.check_code).then((t=>{1===t.count?(e.authin="1",e.login=!1,e.$q.localStorage.set("auth","1"),e.$q.localStorage.set("login_name",e.login_name),e.$q.notify({message:"Success Login",icon:"check",color:"green"}),window.location.reload()):e.$q.notify({message:"No User's Data Or Check Code Wrong",icon:"close",color:"negative"})})).catch((t=>{e.$q.notify({message:t.detail,icon:"close",color:"negative"})})))},adminLogin(){var e=this;""===e.admin_name?e.$q.notify({message:"Please enter the admin name",color:"negative",icon:"close"}):""===e.admin_password?e.$q.notify({message:"Please enter the admin password",icon:"close",color:"negative"}):Object(i["f"])("login/",e.adminlogin).then((t=>{"200"===t.code?(e.authin="1",e.login=!1,e.admin=!1,e.openid=t.data.openid,e.login_name=t.data.name,e.$q.localStorage.set("auth","1"),e.$q.localStorage.set("openid",t.data.openid),e.$q.localStorage.set("login_name",e.login_name),e.$q.notify({message:"Success Login",icon:"check",color:"green"}),window.location.reload()):e.$q.notify({message:"No user's Data",icon:"close",color:"negative"})})).catch((t=>{e.$q.notify({message:t.detail,icon:"close",color:"negative"})}))},Logout(){var e=this;e.authin="0",e.login_name="",e.$q.localStorage.remove("auth"),e.$q.localStorage.set("login_name",""),e.$q.notify({message:"Success Logout",icon:"check",color:"negative"}),e.staffType(),window.location.reload()},Register(){var e=this;Object(i["f"])("register/",e.registerform).then((t=>{"200"===t.code?(e.register=!1,e.openid=t.data.openid,e.login_name=e.registerform.name,e.authin="1",e.$q.localStorage.set("openid",t.data.openid),e.$q.localStorage.set("login_name",e.registerform.name),e.$q.localStorage.set("auth","1"),e.registerform={name:"",password1:"",password2:""},e.$q.notify({message:t.msg,icon:"check",color:"green"}),e.staffType(),window.location.reload()):e.$q.notify({message:t.msg,icon:"close",color:"negative"})})).catch((t=>{e.$q.notify({message:t.detail,icon:"close",color:"negative"})}))},staffType(){var e=this;Object(i["d"])("staff/?staff_name="+e.login_name).then((t=>{e.$q.localStorage.set("staff_type",t.results[0].staff_type)}))},initWebSocket(){var e=this;n=new WebSocket(i["i"]+"?sender="+e.login_name+"&receiver="+e.receiver+"&openid="+e.openid),n.onmessage=e.websocketonmessage,n.onopen=e.websocketonopen,n.onerror=e.websocketonerror,n.onclose=e.websocketclose},websocketonopen(){console.log("Success Connect")},websocketonerror(){var e=this;e.initWebSocket()},websocketonmessage(e){var t=this;t.$q.sessionStorage.getItem("receiver")===JSON.parse(e.data).sender&&t.chat_list.push(JSON.parse(e.data)),t.Readnum(),t.$q.notify({message:JSON.parse(e.data).sender+"Send you a message",color:"deep-purple",icon:"textsms",position:"right",actions:[{label:"View",color:"yellow",handler:()=>{t.ChatWith(JSON.parse(e.data).sender)}}]})},websocketsend(){var e=this;""===e.chat_text||(n.send(e.chat_text),e.chat_list.push({sender:e.sender+"-"+e.openid,receiver:e.receiver,detail:e.chat_text,create_time:r["a"].formatDate(Date.now(),"YYYY-MM-DD HH:mm:ss")}),e.chat_text="")},websocketclose(e){console.log("Disconnect",e)},ChatWith(e){var t=this;t.sender=t.login_name,t.receiver=e,t.$q.sessionStorage.set("receiver",e),t.sender===t.receiver?t.$q.notify({message:"Cannot Chat with yourself",icon:"close",color:"negative"}):(t.chat=!0,t.chat_text="",t.initWebSocket(),Object(i["d"])("chat/?sender="+t.sender+"&receiver="+t.receiver).then((e=>{if(t.chat_list=e.results.reverse(),t.Readnum(),e.next){var a=e.next.split(":")[0];e.next.replace(a,window.location.href.split(":")[0]),t.chat_next=e.next}else t.chat_next=e.next})).catch((e=>{console.log(e),t.$q.notify({message:e.detail,icon:"close",color:"negative"})})))},LoadChatList(){var e=this;Object(i["d"])(e.chat_next).then((t=>{if(t.results.forEach((t=>{e.chat_list.unshift(t)})),t.next){var a=t.next.split(":")[0];t.next.replace(a,window.location.href.split(":")[0]),e.chat_next=t.next}else e.chat_next=t.next})).catch((t=>{e.$q.notify({message:t.detail,icon:"close",color:"negative"})}))},ChatClose(){var e=this;e.receiver="",e.$q.sessionStorage.set("receiver",""),e.chat_list=[],e.chat_text="",e.chat_next=null},Readnum(){var e=this;Object(i["d"])("chat/read/?sender="+e.login_name).then((t=>{if(t.previous){var a=t.previous.split(":")[0];t.previous.replace(a,window.location.href.split(":")[0]),e.read_previous=t.previous}else e.read_previous=t.previous;if(t.next){var n=t.next.split(":")[0];t.next.replace(n,window.location.href.split(":")[0]),e.read_next=t.next}else e.read_next=t.next;e.read_list=t.results,e.read_num=t.count})).catch((t=>{e.$q.notify({message:t.detail,icon:"close",color:"negative"})}))},ReadnumPrevious(){var e=this;Object(i["d"])(e.read_previous,{}).then((t=>{if(e.read_list=t.results,t.previous){var a=t.previous.split(":")[0];t.previous.replace(a,window.location.href.split(":")[0]),e.read_previous=t.previous}else e.read_previous=t.previous;if(t.next){var n=t.next.split(":")[0];t.next.replace(n,window.location.href.split(":")[0]),e.read_next=t.next}else e.read_next=t.next})).catch((t=>{e.$q.notify({message:t.detail,icon:"close",color:"negative"})}))},ReadnumNext(){var e=this;Object(i["d"])(e.read_next,{}).then((t=>{if(e.read_list=t.results,t.previous){var a=t.previous.split(":")[0];t.previous.replace(a,window.location.href.split(":")[0]),e.read_previous=t.previous}else e.read_previous=t.previous;if(t.next){var n=t.next.split(":")[0];t.next.replace(n,window.location.href.split(":")[0]),e.read_next=t.next}else e.read_next=t.next})).catch((t=>{e.$q.notify({message:t.detail,icon:"close",color:"negative"})}))},Friend(){var e=this;e.friend=!0,Object(i["d"])("staff/",{}).then((t=>{if(e.friend_list=t.results,t.previous){var a=t.previous.split(":")[0];t.previous.replace(a,window.location.href.split(":")[0]),e.friend_previous=t.previous}else e.friend_previous=t.previous;if(t.next){var n=t.next.split(":")[0];t.next.replace(n,window.location.href.split(":")[0]),e.friend_next=t.next}else e.friend_next=t.next;e.friend_num=t.count})).catch((t=>{e.$q.notify({message:t.detail,icon:"close",color:"negative"})}))},Friend_previous(){var e=this;Object(i["d"])(e.friend_previous,{}).then((t=>{if(e.friend_list=t.results,t.previous){var a=t.previous.split(":")[0];t.previous.replace(a,window.location.href.split(":")[0]),e.friend_previous=t.previous}else e.friend_previous=t.previous;if(t.next){var n=t.next.split(":")[0];t.next.replace(n,window.location.href.split(":")[0]),e.friend_next=t.next}else e.friend_next=t.next})).catch((t=>{e.$q.notify({message:t.detail,icon:"close",color:"negative"})}))},Friend_next(){var e=this;Object(i["d"])(e.friend_next,{}).then((t=>{if(e.friend_list=t.results,t.previous){var a=t.previous.split(":")[0];t.previous.replace(a,window.location.href.split(":")[0]),e.friend_previous=t.previous}else e.friend_previous=t.previous;if(t.next){var n=t.next.split(":")[0];t.next.replace(n,window.location.href.split(":")[0]),e.friend_next=t.next}else e.friend_next=t.next})).catch((t=>{e.$q.notify({message:t.detail,icon:"close",color:"negative"})}))},langChange(e){var t=this;t.lang=e,window.setTimeout((()=>{location.reload()}),1)},NewVersionignore(){var e=this;e.versionCheck=!1,e.version=""},NewVersionDownload(){var e=this;e.version="",a("bdb9").ipcRenderer.send("downloadUpdate"),100===e.processpercent?(e.versionCheck=!1,e.downloadprocess=!1):e.downloadprocess=!0},NewVersionUpdate(){var e=this;a("bdb9").ipcRenderer.send("updateNow"),e.updateNow=!1}},created(){var e=this;e.$q.platform.is.cordova||e.$q.platform.is.mobile?e.container_height=e.$q.screen.height-90+"px":e.container_height=e.$q.screen.height,e.$q.localStorage.has("openid")?e.openid=e.$q.localStorage.getItem("openid"):(e.openid="",e.$q.localStorage.set("openid","")),e.$q.localStorage.has("login_name")?e.login_name=e.$q.localStorage.getItem("login_name"):(e.login_name="",e.$q.localStorage.set("login_name","")),e.$q.localStorage.has("auth")?(e.authin="1",e.initWebSocket(),e.staffType(),e.Readnum()):(e.$q.localStorage.set("staff_type","Admin"),e.authin="0")},mounted(){var e=this;if(e.$q.platform.is.electron){const t=a("bdb9").ipcRenderer;t.on("message",((t,a)=>{"update-available"===a.cmd?(e.versionCheck=!0,e.version=a.message.version):"download-progress"===a.cmd?e.processpercent=a.message.percent:"update-downloaded"===a.cmd&&(e.updateNow=!0)})),window.setTimeout((()=>{t.send("checkForUpdate")}),1e3),clearTimeout()}},updated(){document.getElementById("chat_scroll")?document.getElementById("chat_scroll").scrollTop=document.getElementById("chat_scroll").scrollHeight:document.getElementById("m_chat_scroll")&&(document.getElementById("m_chat_scroll").scrollTop=document.getElementById("m_chat_scroll").scrollHeight)},beforeDestroy(){a("bdb9").ipcRenderer.removeAllListeners(["message","updateNow","downloadUpdate","checkForUpdate"])},destroyed(){n&&n.readyState===n.OPEN&&n.close()},watch:{lang(e){var t=this;l["a"].set("lang",e),t.$i18n.locale=e}}},m=p,d=a("2877"),f=a("4d5a"),u=a("e359"),g=a("65c6"),_=a("9c40"),v=a("05c0"),q=a("6ac5"),h=a("2c91"),y=a("4e73"),w=a("1c1c"),b=a("66e5"),k=a("4074"),$=a("eb85"),x=a("58a81"),S=a("f20b"),I=a("cb32"),C=a("068f"),N=a("9404"),O=a("4983"),z=a("0016"),Q=a("09e3"),j=a("24e8"),L=a("f09f"),P=a("d847"),E=a("a370"),R=a("8169"),T=a("4b7e"),D=a("27f9"),W=a("0170"),B=a("6b1d"),F=a("7f67"),M=a("714f"),V=a("eebe"),A=a.n(V),H=Object(d["a"])(m,o,s,!1,null,null,null);t["default"]=H.exports;A()(H,"components",{QLayout:f["a"],QHeader:u["a"],QToolbar:g["a"],QBtn:_["a"],QTooltip:v["a"],QToolbarTitle:q["a"],QSpace:h["a"],QMenu:y["a"],QList:w["a"],QItem:b["a"],QItemSection:k["a"],QSeparator:$["a"],QBadge:x["a"],QBtnDropdown:S["a"],QAvatar:I["a"],QImg:C["a"],QDrawer:N["a"],QScrollArea:O["a"],QIcon:z["a"],QPageContainer:Q["a"],QDialog:j["a"],QCard:L["a"],QBar:P["a"],QCardSection:E["a"],QChatMessage:R["a"],QCardActions:T["a"],QInput:D["a"],QItemLabel:W["a"],QLinearProgress:B["a"]}),A()(H,"directives",{ClosePopup:F["a"],Ripple:M["a"]})}}]);