Commit 319eb4bd by caoyanzhi

update: dist

parent 7c622b0e
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,html,i,iframe,img,input,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font-weight:400;vertical-align:baseline;-webkit-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,menu,nav,section{display:block}body{line-height:1}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:none}table{border-collapse:collapse;border-spacing:0}a{color:inherit;text-decoration:none;-webkit-backface-visibility:hidden}li{list-style:none}input::-webkit-input-placeholder{color:#c0c4cc}input:-ms-input-placeholder{color:#c0c4cc}input::-moz-placeholder{color:#c0c4cc}::-webkit-scrollbar{width:5px;height:5px;border-radius:6px}::-webkit-scrollbar-track{border-radius:6px}::-webkit-scrollbar-thumb{border-radius:6px;background-color:rgba(0,0,0,.1)}@-moz-document url-prefix(http: //),url-prefix(https://){scrollbar{width:5px;height:5px;border-radius:6px}scrollbar,scrollbarbutton,scrollbarbutton:hover,thumb,thumb:hover{-moz-appearance:none!important}scrollbarbutton{display:none!important}}scrollbar,scrollbarbutton,scrollcorner,thumb{-moz-appearance:none!important}scrollcorner{resize:both}scrollbar[orient=vertical]{color:silver}-moz-scrollbar-face,-moz-scrollbar-track{width:5px;border:none;background:red}-moz-scrollbar-arrow{width:5px;border:none;background:red}-moz-scrollbar{-moz-scrollbar-width:15px;-moz-scrollbar-border:1px solid #000;-moz-scrollbar-background-color:#fff;-moz-scrollbar-track-background-color:silver;-moz-scrollbar-arrow-background-color:silver;-moz-scrollbar-arrow-color:#00f}body,html{width:100%;height:100%;background-color:#f0f2f5;font-size:14px;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,"\5FAE\8F6F\96C5\9ED1",Arial,sans-serif}body{-webkit-text-size-adjust:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}input:focus{-webkit-box-shadow:none;box-shadow:none;outline:none}.fl{float:left}.fr{float:right}.clearfix:after,.clearfix:before{display:block;visibility:hidden;height:0;content:"";clear:both}.clearfix{zoom:1}.vertical-top{vertical-align:top}.vertical-middle{vertical-align:middle}.border-box{-webkit-box-sizing:border-box;box-sizing:border-box}.border-radius-18{border-radius:18px}.cursor-pointer{cursor:pointer}.t-rt{text-align:right}.t-ct{text-align:center}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.color-fff{color:#fff}.color-1890ff{color:#2f54eb}.color-c0c4cc{color:#c0c4cc}.color-606266{color:#606266}.color-303133{color:#303133}.color-f56c6c{color:#f56c6c}.color-909399{color:#909399}.color-2f54eb{color:#2f54eb}.color-dedfe6{color:#dedfe6}.p-0{padding:0}.p-20{padding:20px}.p-24{padding:24px}.p-60{padding:60px}.p-45{padding:45px}.p-l-5{padding-left:5px}.p-l-6{padding-left:6px}.p-l-8{padding-left:8px}.p-l-10{padding-left:10px}.p-l-12{padding-left:12px}.p-l-14{padding-left:14px}.p-l-15{padding-left:15px}.p-l-20{padding-left:20px}.p-l-40{padding-left:40px}.p-l-60{padding-left:60px}.p-l-110{padding-left:110px}.p-lr-11{padding:0 11px}.p-r-6{padding-right:6px}.p-r-10{padding-right:10px}.p-r-20{padding-right:20px}.p-t-12{padding-top:12px}.p-t-14{padding-top:14px}.p-t-20{padding-top:20px}.p-t-35{padding-top:35px}.p-t-185{padding-top:185px}.m-l-10{margin-left:10px}.m-l-16{margin-left:16px}.m-t-8{margin-top:8px}.m-t-10{margin-top:10px}.m-t-15{margin-top:15px}.m-t-20{margin-top:20px}.m-t-22{margin-top:22px}.m-t-24{margin-top:24px}.m-t-30{margin-top:30px}.m-t-40{margin-top:40px}.m-t-45{margin-top:45px}.m-r-10{margin-right:10px}.m-r-20{margin-right:20px}.m-b-10{margin-bottom:10px}.m-b-16{margin-bottom:16px}.m-b-20{margin-bottom:20px}.m-b-25{margin-bottom:25px}.m-b-40{margin-bottom:40px}.m-b-60{margin-bottom:60px}.m-20{margin:20px}.font-0{font-size:0}.font-10{font-size:10px}.font-12{font-size:12px}.font-13{font-size:13px}.font-14{font-size:14px}.font-16{font-size:16px}.font-20{font-size:20px}.font-30{font-size:30px}.font-w-400{font-weight:400}.font-w-500{font-weight:500}.font-w-600{font-weight:600}.line-h-1{line-height:1}.line-h-18{line-height:18px}.w-80{width:80px}.w-105{width:105px}.w-118{width:118px}.w-130{width:130px}.w-250{width:250px}.w-500{width:500px}.w-680{width:680px}.inline-block{display:inline-block}.block{display:block}.text-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.flex-1{-webkit-box-flex:1;-ms-flex:1;flex:1}.flex-column{-moz-flex-direction:column;-ms-flex-direction:column;-o-flex-direction:column;-webkit-box-orient:vertical;flex-direction:column}.flex-column,.flex-row{-webkit-box-direction:normal}.flex-row{-moz-flex-direction:row;-ms-flex-direction:row;-o-flex-direction:row;-webkit-box-orient:horizontal;flex-direction:row}.flex-align-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.flex-align-start{-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start}.flex-pack-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.flex-start{-moz-justify-content:flex-start;-ms-justify-content:flex-start;-o-justify-content:flex-start;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.flex-wrap{-ms-flex-wrap:wrap;-o-flex-wrap:wrap;flex-wrap:wrap}.flex-space-between{-moz-justify-content:space-between;-ms-justify-content:space-between;-o-justify-content:space-between;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.el-table .el-table-column--selection .cell,.el-table .hide-ellipsis .cell{text-overflow:clip}.el-alert--info{width:608px;font-size:14px;color:#606266;background:#f0f5ff;border-radius:2px;border:1px solid #85a5ff}.el-alert--info .el-icon-info{width:12px;font-size:12px;color:#2f54eb;-ms-flex-item-align:start;align-self:flex-start;padding-top:3px}.step-one .el-steps .el-step .el-step__main{margin-left:-15px}.step-one .el-steps .el-step:first-child .el-step__head .el-step__icon{font-size:12px;color:#fff;background:#2f54eb;border:1px}.step-one .el-steps .el-step:first-child .el-step__head .el-step__line{height:1px;background-color:#c4c6cf}.step-one .el-steps .el-step:first-child .el-step__head.is-success{color:#2f54eb;border-color:#2f54eb}.step-one .el-steps .el-step:first-child .el-step__title.is-success,.step-one .el-steps .el-step:first-child .el-step__title.is-wait{color:#303133}.step-one .el-steps .el-step:last-child .el-step__title.is-wait{color:#606266}.step-one .el-steps .el-step:last-child .el-step__icon{border-width:1px}.step-two .el-steps .el-step .el-step__main{margin-left:-15px}.step-two .el-steps .el-step .el-step__head .el-step__icon{font-size:12px;background:#2f54eb;border:1px}.step-two .el-steps .el-step .el-step__head .el-step__line{height:1px;background-color:#c4c6cf}.step-two .el-steps .el-step .el-step__head.is-success{color:#2f54eb;border-color:#2f54eb}.step-two .el-steps .el-step .el-step__head.is-success .el-step__icon{background:#fff;border:1px solid #2f54eb}.step-two .el-steps .el-step .el-step__head.is-wait .el-step__icon,.step-two .el-steps .el-step:last-child .el-step__icon-inner{color:#fff}.step-two .el-steps .el-step .el-step__title.is-success,.step-two .el-steps .el-step .el-step__title.is-wait{color:#303133}.auth-select-tree .el-tree>.el-tree-node{display:inline-block;min-width:100%}@font-face{font-family:iconfont;src:url(../fonts/iconfont.2b1893e9.eot);src:url(../fonts/iconfont.2b1893e9.eot#iefix) format("embedded-opentype"),url("data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAABvAAAsAAAAAM1AAABtyAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCHRArRTL5GATYCJAOBAAtCAAQgBYRtB4M4G8AoRUaGjQMAxfO1kP1/OuDGUEymVb8YEz1Ex5aOLQjokbN1BxwXzJXpqXNOeT8ChdzRpFidfAmmprM3LF8v/06v0/az7pVTXziUEp7HKe39Jl3pT8e6tZYwp85iwUgkCqRYyiHDHJ6f2/+5Mbbdu2TBNsINWoyNS7QLooTBGCUKGzKw6SEfZPYQP84GHnyRmWBgovKCV+iD+cSo/wAjX8DDSjZ16Sdsu3X0sDyOnQgnXHtOoth6sGJQ6FCXyrFdENgB3Ao88RZYS2AIwlacssmrvJ6kp+QDTyEswooPFNRtr/9JIQrSLOAowYA4Kc3P0dv8P2Cgqtd2BZzxmSvwJZPTB9vKkuu9wvVekRWvuD0+DNRE4Eu+IVjFBl2VigjMqOyMCyXTnKO/tg3kVQ8QbIWef13qenKAUC9PQdgBeMsy6v9TbP2vb/g6k6TQ+UKyQrJCZ4e5hGO79XWYTjIqKBnlTL4CTcAb4Ahbp7Fjt44dx3brsO2FWktkQf9woG2medTn5Uw/nI7FU5eyI2LUxQwXXaN2CHDmzQAdz58/YsxysOCQB7US40SE5XQRWUbCuOdM5AsgyZZPsA34TL97+Tkug0g8cOr0ej9l4vYDv5NvmgrKHU1gdXsKYN8LDNgFsIh2Zkw2SIB2qeRYn4x+JXBIDFV/IJA4qtRzMl2ocAmSZMhRaKPN4R1G1LTo5EIogIBKhVe5Izx/jiIO3W5+glcllPx/wRPMc0Qzy4EzKq/BQVEQEavHNJqGZJoAQwuRGLCQTcEgKzhYAfKauxeAALzRmAcCOhozQCBBZAcyRmMWCJTRmAACdTTmgIBhsoQGigdhgNKAcIChhAtMW0QISgEiAkVAHEGJQJxAsSDTQelBQkGpQMJBGUESEB4eSQIlBskApguSA8okSCEoJchGUFqQzRgNg184JaFECsoAQoBSgzRhNFL8FlGmQJJRAgdg0b/HI8FXBPwlBArzJ3LSX5sSa+3qBkvsoTFCFuk5Q2AqlgKGQXA7D3Rxzsov8xixUVW+GDZ2jHFVJaKSI2q2Xk88L6+sqN3tdXG10idXrzcLPr9cqvIjao+vOln11ub2kbKPDXN966tmVdUZW5elrk6rep2aGpqCF+Y55+a6yTH/CFGtaxn7kdfUMVztZ+eCrXk++w7kwYcVeddnvbdONFba3hbqpmnfq0V+927xwPi7gVsljFib0mKDwZ6QpsNtQzSBwc1SQt+KW6lz8zwM0lISNgLuPmhwMTQJDGA4U1Rtc0RldgraLRQuV3W3wlarjNNu/HXGGjSr/RNyxKepcBeoaJK02ORRYoFOWg4I2Z5bZXnpk7Wmv8kbuBBPZRPyis12zD/Zyu/WvPVFkVv3d0BMbv37v4xc9Ppv9c8FLhA9OVcWak58qUoDe2DR4HR/dYXFZADzJOFZBlMvrGf7cPI5f2kG8g1nYApz5cXVqJH9DTFc46iU2sUuOC/up4F3TLJy7eA9X1Qcq3eTI5Net+OsEdtB43cSk6LxW/2kKEeKEYxSWnjTln27Qmd1qn/im7xlsVhWLoMQYtR8psf+CoM4kZCD1408nwoxluTG50qp6EgNa9LeV7Wqa2WoNUyqjJi0Lxz0CkvS5g6sFjOqkOWxOdsA1Z+RtmLIyUDmFBxhxQZ5hEUlYUkzFsKwCbHBFSV3pzJOPcXrOcLAuodC4uoG7dNAO6ZEZvkTmm1VFfIQ7k0y4uYa+9QlXRPz8lrwiDxFq9LtqnVWoYq4sCSU2WEz/YGSVeYmtmZsd4hnNYh7yUAWwFn4Q1dF6AdZVPZIItZV6vtM09XFCsNTdDhd4f2pQOZeTQScMGo5kYnnYSAri4hmOlIOpkn2eoamqbdTNEubdUrdn7neWJq4mk8tTM/O3lysAvZ6zlbT2pSVYkZ+WqZYlNRyzwCNDp5BI+rsdlOht97KKX2wOya7N+Z7aqwdMVt7bzfvC0WZr6yi01cXp+pfv7VTeMrrwXENSia9641UaknNjCfG5clWy5yaaZTWKda0xWa5kNVtcrYuZ0a6d/4nZV5Pkq4m4hojmUyKoyDwQ+qpNHg2HsgKn0JnaEQtFLhVAI2ZKPYgnewp34yu5f1Y1VsrxOQKHFIVa81YTAiN5oaX0OUMLyZN6IAOB/aqrl1yu4wCEmEKnx5WmkdqVqdGqoN388XjY3bERtKVpvlKJV9ZeoUHwdMHNm3VvNw99845b/Wkhouu7Qw2gPqZ7kxfX5Ue3ADGp71FW5EQGFwiMRglpKQqtWLMFCVmh2mfqpBLJU0hZqmZmTJDjE/KScc22oGGpq1Qs6yZ20SWoygQ7SgkLbZASovKcXsiPcIxCAyx5zE/CWpxLOu635mO9g/H7fc6kgEVXER/CdpL1S0kTgwX4/1nDVZyRGFxcqKOu5YPzSidjEXqZ4z85EG9Y8o48UNHtBiehB08xnjakVLZ4cL+r4Zkx6Q8n6JHbP+oIJCiyofprMAejHsQ/1KbvVzd4mq8CIIzyTH1YrKTe1ZjJZ9PIoa0Z2GExbhYhVq6xG3JR7vKAh+NIQonaC4GSFIUXvzYDUWn5apwSnquOCikH7AZCSXnErkJNd6npvgNoa2V4FOlrXVcOpsyUZw0lk9qeznO5EvLnod3HJ4rllV8Df7zWTX8PzQdUHRc4VHAU5rontvFp+7Z81l5/dfcO0Gy1wwDETqWvw3RNqfE5PFCZ52Z7uoC8YNLB5DRPnE0d31UuDV1s1J0THI2obNJBs/QKAt7/j/c5g4zQ+1Iib1ACmHfwHO/+dVzWbEt+Po3yqVWbqn29eq7Kh3e3ZSgIf37njASzkLf5plJg9AxzxhRiqgYwaY42ZdL2MHzRuQcSEHF0mytDy5VNv9AC++ZJmsl2Joqg6RK9LfpaqWpZedMPhWKa4KqgNVqmhdqAaRI4FCGCnurT4uqCqK7+E8ZlIXjjveoTucgKr9auhh2JqQz25NhVkMghKR/jcubWdi3ocaO8+nhnyY7+1dS0+9GK/Pr+ksUtaGqYK0l245GEZ2lYjDthHZ2xmeFxQNJB/DdqR+uW/xeMqCw13+b7eh+Oojo/i8hlxd1dvrlFBY/r7USz66vpDb2QkXfdipFs9hMdU4OlMAggNHRaHphcMEcXtVYWMRGQhq2pHKYyD7JCPf7lGjqEto3DmBW4KjggvBi17nCE9GVwd3SJXn1cu7gBxFjsuy5O86J1HW095RTeFGXQLb6Zjjs7H1W6iCJHCHACxPoTWs3DxLpp/c7uHEu3hpdfGRDXY0KB/3wj3l4GqENE3Gb3qCqWWjFQP9lVIXV5anQZGyXExw0d0ADbmYOPiKweGTWltmAu1kcNVsUE0lbJ0ub7muYAFlmc1odE4BSPhVg79VuFNU1a331l3+NfU0DAtEy7WG0mHCnpbNmFpysQ/acwdUrQ9O8C5ABOOP/w4X44rh0XQkfO9ZneuCVIxZqP3x6amOWr8+3BjRQL8096ao9WF47z97FYseXlEJ08ZFzAoWeRJOgEGm2EGim3KZmUknlLt6qFax7qUiprfXhK4AUM9qBc1moeicQBEIHgRTH7Qr12DiTNvGdUDtbA80QeK9G2qE3oIFAtcJtyhLuywM2dU/c9L+u/fQE/dQ9OMf0eKJTSM+5186UWc1AW5OXVyNBE1zN9dNXt2lGOhcWYxcVLRY6eVdRg1xNBqMgVIpEd1mKG4pelW/qEnRL7AG9rWggBYOIdcE3oaSFOwXxJb6cxmhgfNArtqkapOstZoTcSitEO6QLu6OjnPU41SLsGvFqKElPlztqEX820WtXJB9O7YzfTb7/85AYnogLo3XBuaTcB0/h9MiuTkeVgdeBqqDVP3hlOipbrb5zui96zCX6TZ8XvgPdU+uRcvBXn4jDewVyYf7F22769+l7b6YOOFJ+8L2FbPruM4PWdsN/yyePD5295WK9ncU7EcG7erPxtsbhB5XD8VMQcjZw4Fay7UbUaX/YdGJm+f5l9mW6IeX23Ai33cCwTbciv7/lBx27tSaLdXs19nrdvu07+oF4h29q95/Bw7b+cS+Ci2JB8bfigzCS/RAdn+BXaMx6oF8gFJzxiAPkH+gR5G8hhbk9QkgJSlgF27FJCUFUlLtatEiRh53mIiPdBDjjbIEBZRVQcAFO1rCCA01BWv/wC864xYLV5aVEAZO+RPkpy3iQXJfZ56fxviYeibkEom2qNNX0h+yxUbdBED3UcksmV4mlCglIVct1avRqXhvWKoB9veK9pCCAJQ7yjMdgQZf4WwyZldNunT1bo5GDyXQNkzv48/9mZSOwwFy21gvhmixBf/bwUG7f/eEucPYHA79hE9j8roJrPHq0ims4drTI7r8G3if+mIFbdfRYFW+8oIZV4K96OZs+7DpMZ2NEEJEukmNEoIs1IRPEty2QPnRxxi7zLlucTf7Ndj2xaSj/HCAQZAlzqgIWGN9kG/cLQYuyBQjPFGUXnRaBFmDKqQo25JjAYeXg0lAiZpbfJzOHOLufKNu0xs9NSDwDTsuzBikM3fvETRxam3R7ato8nXC9VEOGvBOCUt0yNxcgJH8qpMtY/r+bIbL0SmHpvDSZdXYdzUMsf3ynlE6+EemhXQHnI+hseUH0aY1q1xCvuG8iodyKlZlwFuwBoFyqLO87g6fpHFxD9e7oOIfB6w72rILrYOMfj9T7/EkMrVl7rtjzqGzBULES0uaAqNIzc+RAcbcVUkFR8ZEKXDtIDIJxctAdKugx6/VGQXWBzuzAdjDbh85Mk8yRS1JnwdUde4zwPNrUVD3Lg1bVw3lw9Z491XAIM2M2cWZXRfGUjgiR9/BKo8njauSN2YG7ov8bp6N0Uq3+f+R+45d8IkSivXxNDGhmva76OewuvNvS19cRDYzyauHaVABSoY8WXVYFMryAdmmVFu1K1KQZH+WP4y1Anpr96tBrdSaQ+9ifDG98gj8+KRO6USD23/2g/zMbUO2FixgLWuJdd7TcpMPmIzmvtn2ak8JT/ZaUShyxsUAxkTr3jsrDJHyn5BLefmTdS54PYjAXkUraRlhQEaGOvKPibTk0mufnTdgxExKlUGXa+fOJ4FyXrpItDZtFd04UsyvTLqQTX+jWrfdQJiZdCM4Hgto1KZ0S7Hw8HPT0iN1BkoqVP9Mgw570gYe5XJLfIV8FETuc4Zbq1OvHq3tyW0GSecjsUgdeLkW5xCFfBHGNGdYScuezBLfu6S0lyqkJI0o0Sy9raY4BuzfJ9UwXUWJCqga7Y3c3KMoiHBOOBqgnSJDd2Eyi83PZWlc3sMTQrP71+mYusQtTEB49/oTi004Vt/anAT+uXk+SD/z/UqF+GzEEkQR2RLspPu/349ZeP6tAZW5SO4b8I54vra6K2rBojnqChsXHU+njanH1ehWoWjmnxPHDDKp1Dn+UBEgjakbtM+xS3TCcPRnAVImjmOl0LXcIgdC+6YM8iDfETb/v7qJy8e+mZiayN7KBfbF0I2JkgZieSSFTCISsnOwR8jHWMfKI5Rj7G1PrIWP+Meax/JUlETtCOWAkrVdSPvTfggKMJFS8EhSe7k0ccvDM269p/ol79PD/BYaf6eyJcBjyXOwh39WpF2j662qcK73SvnPItOoPyN2L5+xIyf5paYRV5wfJLb9Hyg3O83mr7xyMtOpnDHxgVJ77oercrZArHldT1YWCC4ouRbeiDwTfb3Mqc3oY3AW6Sg83hTT51f5Yuy8np7blp31D/LcF4flKOnlVzVqqrINud4NocQyLLbI/aH1s8XcL1zvp5nLXYaU3yppjyJ5xoeZozuQadSdv6VwHLkX3i6eT58/SBCo/iW9eaCf5xdoctYBMR+35drzy29d1WDQ3cXb/irAYwvRq38IGeyqUEHa44doZiUVSuNGRzGGnsk4F4devK/37okos33oz+LY1k7oRAZ18b9kZAn9BKxiOVAbvR4MVw8V0IJoc1nCuIE3YFecsOsh9a6BNCidpxYJjBaV0QAXDpf6BymeDjMHduzc5a50P1daOj19w0U7rJpG/af/AIibbJgmxP6uN5Q/ef2sxUKht85KDI+cdEVEMrMaCM9j9OwfW4bCNw2/jhJ42pr6SqVRINTJU5hC4crZhNr4N30ZvGXYYbqFX0+KvcBv/cq9R25FLtbgfwbYehJh+4tyMgbQGPf5TMaw+3Jt/8ns7qUwrS5dq1S18Gb8ZbVJkHBsIkOT2byRTzEK20EwmG2Qlf7Ip1L9KZAYy2Sy0FzSYfj6Rz/YDEUQ/S4dEAHyt71hbMWkfzl+bYzYUpvlrHzjeQZZ7GEsvXjSWuS9H4BvMpFF/dWR8ZEnIfyIXbt9eeX5mPM2UtzV6hz6dfaA9ZpPhomOyJxm+Sco3lj16VFmWb9eUqwCZmZACUp6IAkRdlJDCK8kZ+zH4R8z5RGtWqy/F8hWbxMf4EziPMp67tqBjnD+O6zomeGMAlTvWiax1R/EY/NhTfmCd4+jHnGKdjiFxLWL1FVnvfAIv4NNty38mfkbg2zg7lo3fEXU+Fz9/9HXCzKF22XdROOPmhclbXpWPN5RL+av6SCBGRAa8Iash07Ms/MWAm7OwfeGvBowBivdbcQ3l89Hpco3PT4uOoBNtvejr1yhi7wZIM02UeWaReY2DmqcbNzwZDQJXQXMGIAwbswhM1fvab7Tv8oL4diFTj13yKSQjY9G1dhE9PO3v0n3TSHFxarUFJE3bV/p3WjiT0l5g7bQujMyYKS78+tQthgrF5eXFjQhtnrea6hb97Ku4EEiH7ZjdNSEHk8MzuhciPX/91YMw2E5sxhDKYKBDoEw/MC96PT87/jP08cejo5pFbpSGoTm7tYLVS/zAbs9evyRu+bqarA01cb0V+g+sowFIQZb9wXUgrXovpYvVVbK3xK8ZBdvbM+kw1fMOpgPo9kC1FC261yhnpa3VcgjvDG400YqcCIXlhUOnaLZDq/EzhNbEVn79VyG/M+lfyPcqsasbay/nwWG6fas4I2B1vXrYubxpBNYqqnDupATfJ+U5buepj9p3kgY5rUZQEAns5Ofpnzd+Sim7po+qJcvFwGMAX5/OTLooZx6ULXAG9/vvA2fERSw/RgAzrfUDUyzFNDfjK5inXXdRsRgd8e4GOCnaT96HfPiAIPYFQJoZoHnDYuX2xrAVWV4//yJUbbmmzwUvL98Z73LpokbV0eudO071OK+PBmep+Ci+Cx/lm9b0O7MmW5jsOADFZ3nSdwn2O2YLe3V6L6NZWCgMTwoDlFgWpKf0sfoo/s1k95jWLfYvGSaPC7MQwzqvRKt2h3ht4rR4WkAg1J+frzpnPL7XIFNCIiEwCYapwXwYgoJjMyGC3XqIzWaxK9aVi1nisjVb5Ygd0oFbEFjMeoiyFGBtRYUEIpSGjOiVACyug3lwqAhFshpMbEw+jpMnHj7Pl+gFPB6Bp/4eAqz1djCju2D8+mAPwgmfYPhtUaidt2ebWPZ6zWxILBkFtkMteEf/1+JUVmu/qgUCt6UePc/zMfppa7k/NoZrfHxgbAI/iP3LD14uEoHmdJMJMpdTKRB2Tz0qXRQdpd4a7O/jH1czEhd190tz9Y9Wb33sRcr4lSNZ/qK0QFoKtguK+Kn5V3SsXpOCT6CjHSmWL+gYEBfRPnM/01YY+eP12EiKEBCL40lFz2cOePavZOVCtbXQROfX/if3yHsWNJ8ja2tzN8ZDOh0UYrwDpEXmaCiXBmgPPe+L6YDuOUvmpOoxdajw97iqo+jfY5gNW2DxHBt1AdW2hE+lCmbjZj1QbeCHJyZWorWtflfHP74OhUAm33+Yq4BlL5ctYEePYxhENpEICP1kCoFozLuKO4EaKysHh6p4X7lVBw7s+miwGWR+ncc7W3ijqAEdldvUNhKtkgdCLZGEu/vCO2uwUd4IRiIb7zK14Dk2yh3FjF7mxjyuwUZ4I5Y1FhvPxn21bRHc2AAb4CLURXDxNVPkx1zcq4VKVsAaOL1kuRZKh0qXP35lNKUr2i+4ct7FA41uZTLnCbiyATnVg27gup7mb4SPpPhkk1NWoTpgEvIYqH6LWQfrqNKSE1tiljK8nJKBLPXMg2XtyY0ypRvV1Vy1Xul36cm5py64RrA1VFqI4JppTy49Pqf0k3F+4aIsmbJt/uYFLzT4amEokiHV4A8WtNVbR3bu8aUpXG7evXFJKfMbozG5ff6LtKhh+2uq+r1N25WUKxsei+3NEji5+B+qMiTFEmpJCaEq/ylOhiVme/HjDb8rqWIDVNTfd4UWpahai+R9Vf9kL/iaksfrr/j+AeRy4BHK68wprzkwCgagpvvGiOrI6gijy0B+bByPHhj1207a1GT4zvML0V/DEjxcGfCq3S2zKFKjKjPtjyO12noesca42zyzdmkH2m1cQ/DqtTXP2EZOgMRF2w+uxmeVUuf7+EK+k/Vh9cvzVeieS4YkgGNkM3+2ZtobI8p6GVRGb9mXp9rWUyxQP/UlhKbuey4iBgAA+BK8jfZDMqD+0rxgNQBT/XUcmfPQ5Q3C199+E0ID2+J3pIhdE0Ca2Be/hDDZEwaRLOO0G0hqnS5lsJU16UfWsd/biIjYergIMRkWk0iJSBdfuJvd4z6iZ38QgSiMswEknqcBmAPtEHyFKiZEDvZu/Yx4ooG2oaj2tFrB7nQCWWTcrG7EdwjIzBP+dVMW2MYL/JzHDH9Dwf+c87I/zE+iKJ2qnw6mSaOUXFSEpSP4jxppTkqePe9SHbR4j+GE6Z/NC0szZLH/jHoEnHsT/LtmS2tM5vRBGPooSwg2F0nNcUZmlbEtdrlY4ZRLZB44Z0fs/QudMj0yc2DbeoMTteNcpPSDM2qXGdtilIuNxrlEneGctzgeC+t9mKo8qAiZTBqJKdlcuXH6dOgXaD4pH0+lg//AB9whd+tteu8LWPBtuIRS72PMZe7pLJ+NusHpRLLwdIA0rk2Mxc1mk7Nc1ymdxdQLDyjRHzEj6TWTLpIiVv7s0TTz7X8BGjtRPOe0t5P+AV6Ar1+SmUUqwLxIVui0ssSXK2l7FUTJSe9Yj5xJMUQBJ9cgUgm7tAOQitaKa+iFG7PJ5Qyi0rr79POWSf3Lyhmcf4HFIjFiJZZEUskkFyeFqHgppZK6prauvqGxiSabarqZZptrvoUWW4KtafGEilIqmkGhsOaxBqszpt08MrWGFVIBdlABZjz0YB3bYQ62AOy2PE7quTpUdtkaZYPBhriO75oHA1bAL2gNDmPRAi8OuSTykBYxLhwrawJa5IS7cYOsTVaPOgd1dmGi8PLKxGJiI9S2ouhxkEiv0e6GFCXdmhw2sIomTU1VeZKWQDoQB5jUSU08nkBhzhVfX4MbcGUyiipODujYaFSPgrk/wPBlplBq5Z98BkNvt1W8uzo9qfExDDc6rzG2LvTuMstByAIB") format("woff2"),url(../fonts/iconfont.937c6d7c.woff) format("woff"),url(../fonts/iconfont.2022bb03.ttf) format("truetype"),url(../img/iconfont.5c6938c6.svg#iconfont) format("svg")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.iconziliaocopy:before{content:"\E61A"}.iconpaixu:before{content:"\E61B"}.icongengduo1:before{content:"\E68C"}.icontuozhuaiopen:before{content:"\E61C"}.iconweidu:before{content:"\E64C"}.iconrenqun:before{content:"\E70B"}.iconfenpei:before{content:"\E78E"}.iconzu:before{content:"\E614"}.iconbiaoqian:before{content:"\E60A"}.iconzhanshiyouxian:before{content:"\E84E"}.iconshenheshezhi:before{content:"\E619"}.iconshenpi:before{content:"\E605"}.iconjiantouxiangyou:before{content:"\E60C"}.iconquanxianguanli1:before{content:"\E665"}.iconyingyong:before{content:"\E63A"}.icongengduo:before{content:"\E733"}.iconshibai:before{content:"\E60E"}.iconshouquanyanzheng:before{content:"\E687"}.iconshuaxin1:before{content:"\E613"}.iconhuaban:before{content:"\E62A"}.iconqiye-tianchong:before{content:"\E730"}.iconchenggong:before{content:"\E63C"}.iconxiala:before{content:"\E608"}.iconrizhifuwu:before{content:"\E65A"}.icontianjiajiahaowubiankuang:before{content:"\E81A"}.iconshanghu:before{content:"\E656"}.icondaishenhe_orange:before{content:"\E604"}.iconrenwu1:before{content:"\E607"}.iconguanliyuanliebiao:before{content:"\E609"}.iconxitongshezhi:before{content:"\E600"}.iconquanxianguanli:before{content:"\E64A"}
\ No newline at end of file
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,html,i,iframe,img,input,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font-weight:400;vertical-align:baseline;-webkit-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,menu,nav,section{display:block}body{line-height:1}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:none}table{border-collapse:collapse;border-spacing:0}a{color:inherit;text-decoration:none;-webkit-backface-visibility:hidden}li{list-style:none}input::-webkit-input-placeholder{color:#c0c4cc}input:-ms-input-placeholder{color:#c0c4cc}input::-moz-placeholder{color:#c0c4cc}::-webkit-scrollbar{width:5px;height:5px;border-radius:6px}::-webkit-scrollbar-track{border-radius:6px}::-webkit-scrollbar-thumb{border-radius:6px;background-color:rgba(0,0,0,.1)}@-moz-document url-prefix(http: //),url-prefix(https://){scrollbar{width:5px;height:5px;border-radius:6px}scrollbar,scrollbarbutton,scrollbarbutton:hover,thumb,thumb:hover{-moz-appearance:none!important}scrollbarbutton{display:none!important}}scrollbar,scrollbarbutton,scrollcorner,thumb{-moz-appearance:none!important}scrollcorner{resize:both}scrollbar[orient=vertical]{color:silver}-moz-scrollbar-face,-moz-scrollbar-track{width:5px;border:none;background:red}-moz-scrollbar-arrow{width:5px;border:none;background:red}-moz-scrollbar{-moz-scrollbar-width:15px;-moz-scrollbar-border:1px solid #000;-moz-scrollbar-background-color:#fff;-moz-scrollbar-track-background-color:silver;-moz-scrollbar-arrow-background-color:silver;-moz-scrollbar-arrow-color:#00f}body,html{width:100%;height:100%;background-color:#f0f2f5;font-size:14px;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,"\5FAE\8F6F\96C5\9ED1",Arial,sans-serif}body{-webkit-text-size-adjust:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}input:focus{-webkit-box-shadow:none;box-shadow:none;outline:none}.fl{float:left}.fr{float:right}.clearfix:after,.clearfix:before{display:block;visibility:hidden;height:0;content:"";clear:both}.clearfix{zoom:1}.vertical-top{vertical-align:top}.vertical-middle{vertical-align:middle}.border-box{-webkit-box-sizing:border-box;box-sizing:border-box}.border-radius-18{border-radius:18px}.cursor-pointer{cursor:pointer}.t-rt{text-align:right}.t-ct{text-align:center}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.color-fff{color:#fff}.color-1890ff{color:#2f54eb}.color-c0c4cc{color:#c0c4cc}.color-606266{color:#606266}.color-303133{color:#303133}.color-f56c6c{color:#f56c6c}.color-909399{color:#909399}.color-2f54eb{color:#2f54eb}.color-dedfe6{color:#dedfe6}.p-0{padding:0}.p-20{padding:20px}.p-24{padding:24px}.p-60{padding:60px}.p-45{padding:45px}.p-l-5{padding-left:5px}.p-l-6{padding-left:6px}.p-l-8{padding-left:8px}.p-l-10{padding-left:10px}.p-l-12{padding-left:12px}.p-l-14{padding-left:14px}.p-l-15{padding-left:15px}.p-l-20{padding-left:20px}.p-l-40{padding-left:40px}.p-l-60{padding-left:60px}.p-l-110{padding-left:110px}.p-lr-11{padding:0 11px}.p-r-6{padding-right:6px}.p-r-10{padding-right:10px}.p-r-20{padding-right:20px}.p-t-12{padding-top:12px}.p-t-14{padding-top:14px}.p-t-20{padding-top:20px}.p-t-35{padding-top:35px}.p-t-185{padding-top:185px}.m-l-10{margin-left:10px}.m-l-16{margin-left:16px}.m-t-8{margin-top:8px}.m-t-10{margin-top:10px}.m-t-15{margin-top:15px}.m-t-20{margin-top:20px}.m-t-22{margin-top:22px}.m-t-24{margin-top:24px}.m-t-30{margin-top:30px}.m-t-40{margin-top:40px}.m-t-45{margin-top:45px}.m-r-10{margin-right:10px}.m-r-20{margin-right:20px}.m-b-10{margin-bottom:10px}.m-b-16{margin-bottom:16px}.m-b-20{margin-bottom:20px}.m-b-25{margin-bottom:25px}.m-b-40{margin-bottom:40px}.m-b-60{margin-bottom:60px}.m-20{margin:20px}.font-0{font-size:0}.font-10{font-size:10px}.font-12{font-size:12px}.font-13{font-size:13px}.font-14{font-size:14px}.font-16{font-size:16px}.font-20{font-size:20px}.font-30{font-size:30px}.font-w-400{font-weight:400}.font-w-500{font-weight:500}.font-w-600{font-weight:600}.line-h-1{line-height:1}.line-h-18{line-height:18px}.w-80{width:80px}.w-105{width:105px}.w-118{width:118px}.w-130{width:130px}.w-250{width:250px}.w-500{width:500px}.w-680{width:680px}.inline-block{display:inline-block}.block{display:block}.text-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.flex-1{-webkit-box-flex:1;-ms-flex:1;flex:1}.flex-column{-moz-flex-direction:column;-ms-flex-direction:column;-o-flex-direction:column;-webkit-box-orient:vertical;flex-direction:column}.flex-column,.flex-row{-webkit-box-direction:normal}.flex-row{-moz-flex-direction:row;-ms-flex-direction:row;-o-flex-direction:row;-webkit-box-orient:horizontal;flex-direction:row}.flex-align-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.flex-align-start{-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start}.flex-pack-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.flex-start{-moz-justify-content:flex-start;-ms-justify-content:flex-start;-o-justify-content:flex-start;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.flex-wrap{-ms-flex-wrap:wrap;-o-flex-wrap:wrap;flex-wrap:wrap}.flex-space-between{-moz-justify-content:space-between;-ms-justify-content:space-between;-o-justify-content:space-between;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.el-table .el-table-column--selection .cell,.el-table .hide-ellipsis .cell{text-overflow:clip}.el-alert--info{width:608px;font-size:14px;color:#606266;background:#f0f5ff;border-radius:2px;border:1px solid #85a5ff}.el-alert--info .el-icon-info{width:12px;font-size:12px;color:#2f54eb;-ms-flex-item-align:start;align-self:flex-start;padding-top:3px}.step-one .el-steps .el-step .el-step__main{margin-left:-15px}.step-one .el-steps .el-step:first-child .el-step__head .el-step__icon{font-size:12px;color:#fff;background:#2f54eb;border:1px}.step-one .el-steps .el-step:first-child .el-step__head .el-step__line{height:1px;background-color:#c4c6cf}.step-one .el-steps .el-step:first-child .el-step__head.is-success{color:#2f54eb;border-color:#2f54eb}.step-one .el-steps .el-step:first-child .el-step__title.is-success,.step-one .el-steps .el-step:first-child .el-step__title.is-wait{color:#303133}.step-one .el-steps .el-step:last-child .el-step__title.is-wait{color:#606266}.step-one .el-steps .el-step:last-child .el-step__icon{border-width:1px}.step-two .el-steps .el-step .el-step__main{margin-left:-15px}.step-two .el-steps .el-step .el-step__head .el-step__icon{font-size:12px;background:#2f54eb;border:1px}.step-two .el-steps .el-step .el-step__head .el-step__line{height:1px;background-color:#c4c6cf}.step-two .el-steps .el-step .el-step__head.is-success{color:#2f54eb;border-color:#2f54eb}.step-two .el-steps .el-step .el-step__head.is-success .el-step__icon{background:#fff;border:1px solid #2f54eb}.step-two .el-steps .el-step .el-step__head.is-wait .el-step__icon,.step-two .el-steps .el-step:last-child .el-step__icon-inner{color:#fff}.step-two .el-steps .el-step .el-step__title.is-success,.step-two .el-steps .el-step .el-step__title.is-wait{color:#303133}.auth-select-tree .el-tree>.el-tree-node{display:inline-block;min-width:100%}@font-face{font-family:iconfont;src:url(../fonts/iconfont.2b1893e9.eot);src:url(../fonts/iconfont.2b1893e9.eot#iefix) format("embedded-opentype"),url("data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAABvAAAsAAAAAM1AAABtyAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCHRArRTL5GATYCJAOBAAtCAAQgBYRtB4M4G8AoRUaGjQMAxfO1kP1/OuDGUEymVb8YEz1Ex5aOLQjokbN1BxwXzJXpqXNOeT8ChdzRpFidfAmmprM3LF8v/06v0/az7pVTXziUEp7HKe39Jl3pT8e6tZYwp85iwUgkCqRYyiHDHJ6f2/+5Mbbdu2TBNsINWoyNS7QLooTBGCUKGzKw6SEfZPYQP84GHnyRmWBgovKCV+iD+cSo/wAjX8DDSjZ16Sdsu3X0sDyOnQgnXHtOoth6sGJQ6FCXyrFdENgB3Ao88RZYS2AIwlacssmrvJ6kp+QDTyEswooPFNRtr/9JIQrSLOAowYA4Kc3P0dv8P2Cgqtd2BZzxmSvwJZPTB9vKkuu9wvVekRWvuD0+DNRE4Eu+IVjFBl2VigjMqOyMCyXTnKO/tg3kVQ8QbIWef13qenKAUC9PQdgBeMsy6v9TbP2vb/g6k6TQ+UKyQrJCZ4e5hGO79XWYTjIqKBnlTL4CTcAb4Ahbp7Fjt44dx3brsO2FWktkQf9woG2medTn5Uw/nI7FU5eyI2LUxQwXXaN2CHDmzQAdz58/YsxysOCQB7US40SE5XQRWUbCuOdM5AsgyZZPsA34TL97+Tkug0g8cOr0ej9l4vYDv5NvmgrKHU1gdXsKYN8LDNgFsIh2Zkw2SIB2qeRYn4x+JXBIDFV/IJA4qtRzMl2ocAmSZMhRaKPN4R1G1LTo5EIogIBKhVe5Izx/jiIO3W5+glcllPx/wRPMc0Qzy4EzKq/BQVEQEavHNJqGZJoAQwuRGLCQTcEgKzhYAfKauxeAALzRmAcCOhozQCBBZAcyRmMWCJTRmAACdTTmgIBhsoQGigdhgNKAcIChhAtMW0QISgEiAkVAHEGJQJxAsSDTQelBQkGpQMJBGUESEB4eSQIlBskApguSA8okSCEoJchGUFqQzRgNg184JaFECsoAQoBSgzRhNFL8FlGmQJJRAgdg0b/HI8FXBPwlBArzJ3LSX5sSa+3qBkvsoTFCFuk5Q2AqlgKGQXA7D3Rxzsov8xixUVW+GDZ2jHFVJaKSI2q2Xk88L6+sqN3tdXG10idXrzcLPr9cqvIjao+vOln11ub2kbKPDXN966tmVdUZW5elrk6rep2aGpqCF+Y55+a6yTH/CFGtaxn7kdfUMVztZ+eCrXk++w7kwYcVeddnvbdONFba3hbqpmnfq0V+927xwPi7gVsljFib0mKDwZ6QpsNtQzSBwc1SQt+KW6lz8zwM0lISNgLuPmhwMTQJDGA4U1Rtc0RldgraLRQuV3W3wlarjNNu/HXGGjSr/RNyxKepcBeoaJK02ORRYoFOWg4I2Z5bZXnpk7Wmv8kbuBBPZRPyis12zD/Zyu/WvPVFkVv3d0BMbv37v4xc9Ppv9c8FLhA9OVcWak58qUoDe2DR4HR/dYXFZADzJOFZBlMvrGf7cPI5f2kG8g1nYApz5cXVqJH9DTFc46iU2sUuOC/up4F3TLJy7eA9X1Qcq3eTI5Net+OsEdtB43cSk6LxW/2kKEeKEYxSWnjTln27Qmd1qn/im7xlsVhWLoMQYtR8psf+CoM4kZCD1408nwoxluTG50qp6EgNa9LeV7Wqa2WoNUyqjJi0Lxz0CkvS5g6sFjOqkOWxOdsA1Z+RtmLIyUDmFBxhxQZ5hEUlYUkzFsKwCbHBFSV3pzJOPcXrOcLAuodC4uoG7dNAO6ZEZvkTmm1VFfIQ7k0y4uYa+9QlXRPz8lrwiDxFq9LtqnVWoYq4sCSU2WEz/YGSVeYmtmZsd4hnNYh7yUAWwFn4Q1dF6AdZVPZIItZV6vtM09XFCsNTdDhd4f2pQOZeTQScMGo5kYnnYSAri4hmOlIOpkn2eoamqbdTNEubdUrdn7neWJq4mk8tTM/O3lysAvZ6zlbT2pSVYkZ+WqZYlNRyzwCNDp5BI+rsdlOht97KKX2wOya7N+Z7aqwdMVt7bzfvC0WZr6yi01cXp+pfv7VTeMrrwXENSia9641UaknNjCfG5clWy5yaaZTWKda0xWa5kNVtcrYuZ0a6d/4nZV5Pkq4m4hojmUyKoyDwQ+qpNHg2HsgKn0JnaEQtFLhVAI2ZKPYgnewp34yu5f1Y1VsrxOQKHFIVa81YTAiN5oaX0OUMLyZN6IAOB/aqrl1yu4wCEmEKnx5WmkdqVqdGqoN388XjY3bERtKVpvlKJV9ZeoUHwdMHNm3VvNw99845b/Wkhouu7Qw2gPqZ7kxfX5Ue3ADGp71FW5EQGFwiMRglpKQqtWLMFCVmh2mfqpBLJU0hZqmZmTJDjE/KScc22oGGpq1Qs6yZ20SWoygQ7SgkLbZASovKcXsiPcIxCAyx5zE/CWpxLOu635mO9g/H7fc6kgEVXER/CdpL1S0kTgwX4/1nDVZyRGFxcqKOu5YPzSidjEXqZ4z85EG9Y8o48UNHtBiehB08xnjakVLZ4cL+r4Zkx6Q8n6JHbP+oIJCiyofprMAejHsQ/1KbvVzd4mq8CIIzyTH1YrKTe1ZjJZ9PIoa0Z2GExbhYhVq6xG3JR7vKAh+NIQonaC4GSFIUXvzYDUWn5apwSnquOCikH7AZCSXnErkJNd6npvgNoa2V4FOlrXVcOpsyUZw0lk9qeznO5EvLnod3HJ4rllV8Df7zWTX8PzQdUHRc4VHAU5rontvFp+7Z81l5/dfcO0Gy1wwDETqWvw3RNqfE5PFCZ52Z7uoC8YNLB5DRPnE0d31UuDV1s1J0THI2obNJBs/QKAt7/j/c5g4zQ+1Iib1ACmHfwHO/+dVzWbEt+Po3yqVWbqn29eq7Kh3e3ZSgIf37njASzkLf5plJg9AxzxhRiqgYwaY42ZdL2MHzRuQcSEHF0mytDy5VNv9AC++ZJmsl2Joqg6RK9LfpaqWpZedMPhWKa4KqgNVqmhdqAaRI4FCGCnurT4uqCqK7+E8ZlIXjjveoTucgKr9auhh2JqQz25NhVkMghKR/jcubWdi3ocaO8+nhnyY7+1dS0+9GK/Pr+ksUtaGqYK0l245GEZ2lYjDthHZ2xmeFxQNJB/DdqR+uW/xeMqCw13+b7eh+Oojo/i8hlxd1dvrlFBY/r7USz66vpDb2QkXfdipFs9hMdU4OlMAggNHRaHphcMEcXtVYWMRGQhq2pHKYyD7JCPf7lGjqEto3DmBW4KjggvBi17nCE9GVwd3SJXn1cu7gBxFjsuy5O86J1HW095RTeFGXQLb6Zjjs7H1W6iCJHCHACxPoTWs3DxLpp/c7uHEu3hpdfGRDXY0KB/3wj3l4GqENE3Gb3qCqWWjFQP9lVIXV5anQZGyXExw0d0ADbmYOPiKweGTWltmAu1kcNVsUE0lbJ0ub7muYAFlmc1odE4BSPhVg79VuFNU1a331l3+NfU0DAtEy7WG0mHCnpbNmFpysQ/acwdUrQ9O8C5ABOOP/w4X44rh0XQkfO9ZneuCVIxZqP3x6amOWr8+3BjRQL8096ao9WF47z97FYseXlEJ08ZFzAoWeRJOgEGm2EGim3KZmUknlLt6qFax7qUiprfXhK4AUM9qBc1moeicQBEIHgRTH7Qr12DiTNvGdUDtbA80QeK9G2qE3oIFAtcJtyhLuywM2dU/c9L+u/fQE/dQ9OMf0eKJTSM+5186UWc1AW5OXVyNBE1zN9dNXt2lGOhcWYxcVLRY6eVdRg1xNBqMgVIpEd1mKG4pelW/qEnRL7AG9rWggBYOIdcE3oaSFOwXxJb6cxmhgfNArtqkapOstZoTcSitEO6QLu6OjnPU41SLsGvFqKElPlztqEX820WtXJB9O7YzfTb7/85AYnogLo3XBuaTcB0/h9MiuTkeVgdeBqqDVP3hlOipbrb5zui96zCX6TZ8XvgPdU+uRcvBXn4jDewVyYf7F22769+l7b6YOOFJ+8L2FbPruM4PWdsN/yyePD5295WK9ncU7EcG7erPxtsbhB5XD8VMQcjZw4Fay7UbUaX/YdGJm+f5l9mW6IeX23Ai33cCwTbciv7/lBx27tSaLdXs19nrdvu07+oF4h29q95/Bw7b+cS+Ci2JB8bfigzCS/RAdn+BXaMx6oF8gFJzxiAPkH+gR5G8hhbk9QkgJSlgF27FJCUFUlLtatEiRh53mIiPdBDjjbIEBZRVQcAFO1rCCA01BWv/wC864xYLV5aVEAZO+RPkpy3iQXJfZ56fxviYeibkEom2qNNX0h+yxUbdBED3UcksmV4mlCglIVct1avRqXhvWKoB9veK9pCCAJQ7yjMdgQZf4WwyZldNunT1bo5GDyXQNkzv48/9mZSOwwFy21gvhmixBf/bwUG7f/eEucPYHA79hE9j8roJrPHq0ims4drTI7r8G3if+mIFbdfRYFW+8oIZV4K96OZs+7DpMZ2NEEJEukmNEoIs1IRPEty2QPnRxxi7zLlucTf7Ndj2xaSj/HCAQZAlzqgIWGN9kG/cLQYuyBQjPFGUXnRaBFmDKqQo25JjAYeXg0lAiZpbfJzOHOLufKNu0xs9NSDwDTsuzBikM3fvETRxam3R7ato8nXC9VEOGvBOCUt0yNxcgJH8qpMtY/r+bIbL0SmHpvDSZdXYdzUMsf3ynlE6+EemhXQHnI+hseUH0aY1q1xCvuG8iodyKlZlwFuwBoFyqLO87g6fpHFxD9e7oOIfB6w72rILrYOMfj9T7/EkMrVl7rtjzqGzBULES0uaAqNIzc+RAcbcVUkFR8ZEKXDtIDIJxctAdKugx6/VGQXWBzuzAdjDbh85Mk8yRS1JnwdUde4zwPNrUVD3Lg1bVw3lw9Z491XAIM2M2cWZXRfGUjgiR9/BKo8njauSN2YG7ov8bp6N0Uq3+f+R+45d8IkSivXxNDGhmva76OewuvNvS19cRDYzyauHaVABSoY8WXVYFMryAdmmVFu1K1KQZH+WP4y1Anpr96tBrdSaQ+9ifDG98gj8+KRO6USD23/2g/zMbUO2FixgLWuJdd7TcpMPmIzmvtn2ak8JT/ZaUShyxsUAxkTr3jsrDJHyn5BLefmTdS54PYjAXkUraRlhQEaGOvKPibTk0mufnTdgxExKlUGXa+fOJ4FyXrpItDZtFd04UsyvTLqQTX+jWrfdQJiZdCM4Hgto1KZ0S7Hw8HPT0iN1BkoqVP9Mgw570gYe5XJLfIV8FETuc4Zbq1OvHq3tyW0GSecjsUgdeLkW5xCFfBHGNGdYScuezBLfu6S0lyqkJI0o0Sy9raY4BuzfJ9UwXUWJCqga7Y3c3KMoiHBOOBqgnSJDd2Eyi83PZWlc3sMTQrP71+mYusQtTEB49/oTi004Vt/anAT+uXk+SD/z/UqF+GzEEkQR2RLspPu/349ZeP6tAZW5SO4b8I54vra6K2rBojnqChsXHU+njanH1ehWoWjmnxPHDDKp1Dn+UBEgjakbtM+xS3TCcPRnAVImjmOl0LXcIgdC+6YM8iDfETb/v7qJy8e+mZiayN7KBfbF0I2JkgZieSSFTCISsnOwR8jHWMfKI5Rj7G1PrIWP+Meax/JUlETtCOWAkrVdSPvTfggKMJFS8EhSe7k0ccvDM269p/ol79PD/BYaf6eyJcBjyXOwh39WpF2j662qcK73SvnPItOoPyN2L5+xIyf5paYRV5wfJLb9Hyg3O83mr7xyMtOpnDHxgVJ77oercrZArHldT1YWCC4ouRbeiDwTfb3Mqc3oY3AW6Sg83hTT51f5Yuy8np7blp31D/LcF4flKOnlVzVqqrINud4NocQyLLbI/aH1s8XcL1zvp5nLXYaU3yppjyJ5xoeZozuQadSdv6VwHLkX3i6eT58/SBCo/iW9eaCf5xdoctYBMR+35drzy29d1WDQ3cXb/irAYwvRq38IGeyqUEHa44doZiUVSuNGRzGGnsk4F4devK/37okos33oz+LY1k7oRAZ18b9kZAn9BKxiOVAbvR4MVw8V0IJoc1nCuIE3YFecsOsh9a6BNCidpxYJjBaV0QAXDpf6BymeDjMHduzc5a50P1daOj19w0U7rJpG/af/AIibbJgmxP6uN5Q/ef2sxUKht85KDI+cdEVEMrMaCM9j9OwfW4bCNw2/jhJ42pr6SqVRINTJU5hC4crZhNr4N30ZvGXYYbqFX0+KvcBv/cq9R25FLtbgfwbYehJh+4tyMgbQGPf5TMaw+3Jt/8ns7qUwrS5dq1S18Gb8ZbVJkHBsIkOT2byRTzEK20EwmG2Qlf7Ip1L9KZAYy2Sy0FzSYfj6Rz/YDEUQ/S4dEAHyt71hbMWkfzl+bYzYUpvlrHzjeQZZ7GEsvXjSWuS9H4BvMpFF/dWR8ZEnIfyIXbt9eeX5mPM2UtzV6hz6dfaA9ZpPhomOyJxm+Sco3lj16VFmWb9eUqwCZmZACUp6IAkRdlJDCK8kZ+zH4R8z5RGtWqy/F8hWbxMf4EziPMp67tqBjnD+O6zomeGMAlTvWiax1R/EY/NhTfmCd4+jHnGKdjiFxLWL1FVnvfAIv4NNty38mfkbg2zg7lo3fEXU+Fz9/9HXCzKF22XdROOPmhclbXpWPN5RL+av6SCBGRAa8Iash07Ms/MWAm7OwfeGvBowBivdbcQ3l89Hpco3PT4uOoBNtvejr1yhi7wZIM02UeWaReY2DmqcbNzwZDQJXQXMGIAwbswhM1fvab7Tv8oL4diFTj13yKSQjY9G1dhE9PO3v0n3TSHFxarUFJE3bV/p3WjiT0l5g7bQujMyYKS78+tQthgrF5eXFjQhtnrea6hb97Ku4EEiH7ZjdNSEHk8MzuhciPX/91YMw2E5sxhDKYKBDoEw/MC96PT87/jP08cejo5pFbpSGoTm7tYLVS/zAbs9evyRu+bqarA01cb0V+g+sowFIQZb9wXUgrXovpYvVVbK3xK8ZBdvbM+kw1fMOpgPo9kC1FC261yhnpa3VcgjvDG400YqcCIXlhUOnaLZDq/EzhNbEVn79VyG/M+lfyPcqsasbay/nwWG6fas4I2B1vXrYubxpBNYqqnDupATfJ+U5buepj9p3kgY5rUZQEAns5Ofpnzd+Sim7po+qJcvFwGMAX5/OTLooZx6ULXAG9/vvA2fERSw/RgAzrfUDUyzFNDfjK5inXXdRsRgd8e4GOCnaT96HfPiAIPYFQJoZoHnDYuX2xrAVWV4//yJUbbmmzwUvL98Z73LpokbV0eudO071OK+PBmep+Ci+Cx/lm9b0O7MmW5jsOADFZ3nSdwn2O2YLe3V6L6NZWCgMTwoDlFgWpKf0sfoo/s1k95jWLfYvGSaPC7MQwzqvRKt2h3ht4rR4WkAg1J+frzpnPL7XIFNCIiEwCYapwXwYgoJjMyGC3XqIzWaxK9aVi1nisjVb5Ygd0oFbEFjMeoiyFGBtRYUEIpSGjOiVACyug3lwqAhFshpMbEw+jpMnHj7Pl+gFPB6Bp/4eAqz1djCju2D8+mAPwgmfYPhtUaidt2ebWPZ6zWxILBkFtkMteEf/1+JUVmu/qgUCt6UePc/zMfppa7k/NoZrfHxgbAI/iP3LD14uEoHmdJMJMpdTKRB2Tz0qXRQdpd4a7O/jH1czEhd190tz9Y9Wb33sRcr4lSNZ/qK0QFoKtguK+Kn5V3SsXpOCT6CjHSmWL+gYEBfRPnM/01YY+eP12EiKEBCL40lFz2cOePavZOVCtbXQROfX/if3yHsWNJ8ja2tzN8ZDOh0UYrwDpEXmaCiXBmgPPe+L6YDuOUvmpOoxdajw97iqo+jfY5gNW2DxHBt1AdW2hE+lCmbjZj1QbeCHJyZWorWtflfHP74OhUAm33+Yq4BlL5ctYEePYxhENpEICP1kCoFozLuKO4EaKysHh6p4X7lVBw7s+miwGWR+ncc7W3ijqAEdldvUNhKtkgdCLZGEu/vCO2uwUd4IRiIb7zK14Dk2yh3FjF7mxjyuwUZ4I5Y1FhvPxn21bRHc2AAb4CLURXDxNVPkx1zcq4VKVsAaOL1kuRZKh0qXP35lNKUr2i+4ct7FA41uZTLnCbiyATnVg27gup7mb4SPpPhkk1NWoTpgEvIYqH6LWQfrqNKSE1tiljK8nJKBLPXMg2XtyY0ypRvV1Vy1Xul36cm5py64RrA1VFqI4JppTy49Pqf0k3F+4aIsmbJt/uYFLzT4amEokiHV4A8WtNVbR3bu8aUpXG7evXFJKfMbozG5ff6LtKhh+2uq+r1N25WUKxsei+3NEji5+B+qMiTFEmpJCaEq/ylOhiVme/HjDb8rqWIDVNTfd4UWpahai+R9Vf9kL/iaksfrr/j+AeRy4BHK68wprzkwCgagpvvGiOrI6gijy0B+bByPHhj1207a1GT4zvML0V/DEjxcGfCq3S2zKFKjKjPtjyO12noesca42zyzdmkH2m1cQ/DqtTXP2EZOgMRF2w+uxmeVUuf7+EK+k/Vh9cvzVeieS4YkgGNkM3+2ZtobI8p6GVRGb9mXp9rWUyxQP/UlhKbuey4iBgAA+BK8jfZDMqD+0rxgNQBT/XUcmfPQ5Q3C199+E0ID2+J3pIhdE0Ca2Be/hDDZEwaRLOO0G0hqnS5lsJU16UfWsd/biIjYergIMRkWk0iJSBdfuJvd4z6iZ38QgSiMswEknqcBmAPtEHyFKiZEDvZu/Yx4ooG2oaj2tFrB7nQCWWTcrG7EdwjIzBP+dVMW2MYL/JzHDH9Dwf+c87I/zE+iKJ2qnw6mSaOUXFSEpSP4jxppTkqePe9SHbR4j+GE6Z/NC0szZLH/jHoEnHsT/LtmS2tM5vRBGPooSwg2F0nNcUZmlbEtdrlY4ZRLZB44Z0fs/QudMj0yc2DbeoMTteNcpPSDM2qXGdtilIuNxrlEneGctzgeC+t9mKo8qAiZTBqJKdlcuXH6dOgXaD4pH0+lg//AB9whd+tteu8LWPBtuIRS72PMZe7pLJ+NusHpRLLwdIA0rk2Mxc1mk7Nc1ymdxdQLDyjRHzEj6TWTLpIiVv7s0TTz7X8BGjtRPOe0t5P+AV6Ar1+SmUUqwLxIVui0ssSXK2l7FUTJSe9Yj5xJMUQBJ9cgUgm7tAOQitaKa+iFG7PJ5Qyi0rr79POWSf3Lyhmcf4HFIjFiJZZEUskkFyeFqHgppZK6prauvqGxiSabarqZZptrvoUWW4KtafGEilIqmkGhsOaxBqszpt08MrWGFVIBdlABZjz0YB3bYQ62AOy2PE7quTpUdtkaZYPBhriO75oHA1bAL2gNDmPRAi8OuSTykBYxLhwrawJa5IS7cYOsTVaPOgd1dmGi8PLKxGJiI9S2ouhxkEiv0e6GFCXdmhw2sIomTU1VeZKWQDoQB5jUSU08nkBhzhVfX4MbcGUyiipODujYaFSPgrk/wPBlplBq5Z98BkNvt1W8uzo9qfExDDc6rzG2LvTuMstByAIB") format("woff2"),url(../fonts/iconfont.937c6d7c.woff) format("woff"),url(../fonts/iconfont.2022bb03.ttf) format("truetype"),url(../img/iconfont.6266c698.svg#iconfont) format("svg")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.iconziliaocopy:before{content:"\E61A"}.iconpaixu:before{content:"\E61B"}.icongengduo1:before{content:"\E68C"}.icontuozhuaiopen:before{content:"\E61C"}.iconweidu:before{content:"\E64C"}.iconrenqun:before{content:"\E70B"}.iconfenpei:before{content:"\E78E"}.iconzu:before{content:"\E614"}.iconbiaoqian:before{content:"\E60A"}.iconzhanshiyouxian:before{content:"\E84E"}.iconshenheshezhi:before{content:"\E619"}.iconshenpi:before{content:"\E605"}.iconjiantouxiangyou:before{content:"\E60C"}.iconquanxianguanli1:before{content:"\E665"}.iconyingyong:before{content:"\E63A"}.icongengduo:before{content:"\E733"}.iconshibai:before{content:"\E60E"}.iconshouquanyanzheng:before{content:"\E687"}.iconshuaxin1:before{content:"\E613"}.iconhuaban:before{content:"\E62A"}.iconqiye-tianchong:before{content:"\E730"}.iconchenggong:before{content:"\E63C"}.iconxiala:before{content:"\E608"}.iconrizhifuwu:before{content:"\E65A"}.icontianjiajiahaowubiankuang:before{content:"\E81A"}.iconshanghu:before{content:"\E656"}.icondaishenhe_orange:before{content:"\E604"}.iconrenwu1:before{content:"\E607"}.iconguanliyuanliebiao:before{content:"\E609"}.iconxitongshezhi:before{content:"\E600"}.iconquanxianguanli:before{content:"\E64A"}
\ No newline at end of file
.nav-wrap[data-v-5ef3b5d2]{height:48px;line-height:48px;padding:0 20px;-webkit-box-sizing:border-box;box-sizing:border-box}.nav-wrap .el-breadcrumb[data-v-5ef3b5d2]{line-height:48px}.el-breadcrumb__inner.is-link[data-v-5ef3b5d2]:hover,.el-breadcrumb__inner a[data-v-5ef3b5d2]:hover{color:#2f54eb}.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-5ef3b5d2],.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-5ef3b5d2]:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-5ef3b5d2],.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-5ef3b5d2]:hover{font-weight:700;text-decoration:none;cursor:pointer;color:#303133}.tab-left-list .tab-left-list-cell[data-v-61fa9846]{position:relative;text-align:left;height:40px;line-height:40px;white-space:nowrap;overflow:hidden;cursor:pointer}.tab-left-list .tab-left-list-cell .iconActive[data-v-61fa9846]{color:#2f54eb}.tab-left-list .tab-left-list-cell[data-v-61fa9846]:hover{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .tab-left-list-cell:hover i[data-v-61fa9846]{color:#2f54eb}.tab-left-list .tab-left-list-cell.active-tab[data-v-61fa9846]{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .tab-left-list-cell.active-tab i[data-v-61fa9846]{color:#2f54eb}.tab-left-list .child-tab-left-list[data-v-61fa9846]{-webkit-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.tab-left-list .child-tab-left-list li[data-v-61fa9846]{position:relative;text-align:left;height:40px;line-height:40px;white-space:nowrap;overflow:hidden;cursor:pointer}.tab-left-list .child-tab-left-list li[data-v-61fa9846]:hover{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .child-tab-left-list li:hover i[data-v-61fa9846]{color:#2f54eb}.tab-left-list .child-tab-left-list li.active-tab[data-v-61fa9846]{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .child-tab-left-list li.active-tab i[data-v-61fa9846]{color:#2f54eb}.line-h-18[data-v-7086c361]{line-height:18px}.my-customer-wrap[data-v-7086c361]{height:100%}.my-customer-wrap .move-row-cell .icontuozhuaiopen[data-v-7086c361]{display:none}.my-customer-wrap .move-row-cell.show-icon .icontuozhuaiopen[data-v-7086c361],.my-customer-wrap .move-row-cell:hover .icontuozhuaiopen[data-v-7086c361]{display:inline-block;vertical-align:middle}.right-content[data-v-7086c361]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-7086c361]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-left[data-v-7086c361]{min-width:205px;height:100%;background:#fff;overflow-x:hidden;overflow-y:auto}.right-content .right-box .apps-content .apps-content-right[data-v-7086c361]{width:calc(100% - 205px);padding-left:10px;background:#f0f2f5}.right-content .right-box .apps-content .apps-content-right .common-app-right[data-v-7086c361]{height:100%;padding:20px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-app-right.no-padding[data-v-7086c361]{padding:0}.right-content .right-box .apps-content .apps-content-right .common-app-right .font-22[data-v-7086c361]{font-size:22px}
\ No newline at end of file
.nav-wrap[data-v-1205f312]{height:48px;line-height:48px;padding:0 20px;-webkit-box-sizing:border-box;box-sizing:border-box}.nav-wrap .el-breadcrumb[data-v-1205f312]{line-height:48px}.el-breadcrumb__inner.is-link[data-v-1205f312]:hover,.el-breadcrumb__inner a[data-v-1205f312]:hover{color:#2f54eb}.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-1205f312],.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-1205f312]:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-1205f312],.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-1205f312]:hover{font-weight:700;text-decoration:none;cursor:pointer;color:#303133}.tab-left-list .tab-left-list-cell[data-v-61fa9846]{position:relative;text-align:left;height:40px;line-height:40px;white-space:nowrap;overflow:hidden;cursor:pointer}.tab-left-list .tab-left-list-cell .iconActive[data-v-61fa9846]{color:#2f54eb}.tab-left-list .tab-left-list-cell[data-v-61fa9846]:hover{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .tab-left-list-cell:hover i[data-v-61fa9846]{color:#2f54eb}.tab-left-list .tab-left-list-cell.active-tab[data-v-61fa9846]{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .tab-left-list-cell.active-tab i[data-v-61fa9846]{color:#2f54eb}.tab-left-list .child-tab-left-list[data-v-61fa9846]{-webkit-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.tab-left-list .child-tab-left-list li[data-v-61fa9846]{position:relative;text-align:left;height:40px;line-height:40px;white-space:nowrap;overflow:hidden;cursor:pointer}.tab-left-list .child-tab-left-list li[data-v-61fa9846]:hover{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .child-tab-left-list li:hover i[data-v-61fa9846]{color:#2f54eb}.tab-left-list .child-tab-left-list li.active-tab[data-v-61fa9846]{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .child-tab-left-list li.active-tab i[data-v-61fa9846]{color:#2f54eb}.line-h-18[data-v-dace1b8e]{line-height:18px}.my-customer-wrap[data-v-dace1b8e]{height:100%}.my-customer-wrap .move-row-cell .icontuozhuaiopen[data-v-dace1b8e]{display:none}.my-customer-wrap .move-row-cell.show-icon .icontuozhuaiopen[data-v-dace1b8e],.my-customer-wrap .move-row-cell:hover .icontuozhuaiopen[data-v-dace1b8e]{display:inline-block;vertical-align:middle}.right-content[data-v-dace1b8e]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-dace1b8e]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-left[data-v-dace1b8e]{min-width:205px;height:100%;background:#fff;overflow-x:hidden;overflow-y:auto}.right-content .right-box .apps-content .apps-content-right[data-v-dace1b8e]{width:calc(100% - 205px);padding-left:10px;background:#f0f2f5}.right-content .right-box .apps-content .apps-content-right .common-app-right[data-v-dace1b8e]{height:100%;padding:20px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-app-right.no-padding[data-v-dace1b8e]{padding:0}.right-content .right-box .apps-content .apps-content-right .common-app-right .font-22[data-v-dace1b8e]{font-size:22px}
\ No newline at end of file
.font-22[data-v-4376d38b]{font-size:22px}.common-bottom-border[data-v-4376d38b]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.common-bottom-border.table-title[data-v-4376d38b]{font-size:14px;line-height:20px;font-weight:600;color:#303133}.data-dimension-table[data-v-4376d38b]{margin-top:32px}.data-dimension-table .m-b-18[data-v-4376d38b]{margin-bottom:18px}.data-dimension-table .data-dimension-table_left[data-v-4376d38b]{width:calc((100% - 47px)/2)}.data-dimension-table .data-dimension-table_right[data-v-4376d38b]{width:calc((100% - 47px)/2);margin-left:47px}
\ No newline at end of file
.bind-store-body[data-v-093214aa]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-093214aa]{width:215px}.bind-store-body .w-115[data-v-093214aa]{width:115px}.bind-store-body .select-tree-wrap[data-v-093214aa]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-093214aa]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-093214aa]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.daily-store-select[data-v-523b69ab]{position:relative;width:331px;min-height:398px;margin:20px 0 0 0;padding:10px;border:1px solid #e4e7ed}.daily-store-select .define-search-select .el-select-dropdown__wrap[data-v-523b69ab]{max-height:343px}.daily-store-select .define-search-select .el-checkbox-group[data-v-523b69ab]{overflow-x:auto;height:338px}.daily-store-select .define-search-select .el-checkbox-group ul[data-v-523b69ab]{height:100%}.daily-store-select .define-search-select .el-checkbox-group ul li[data-v-523b69ab]{overflow:unset;text-overflow:unset}.select-tree-wrap[data-v-047e7ed0]{height:445px;overflow-y:auto;border:1px solid #e4e7ed}
\ No newline at end of file
.bind-store-body[data-v-183b15c0]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-183b15c0]{width:215px}.bind-store-body .w-115[data-v-183b15c0]{width:115px}.bind-store-body .select-tree-wrap[data-v-183b15c0]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-183b15c0]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-183b15c0]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.daily-store-select[data-v-11945d1d]{position:relative;width:331px;min-height:398px;margin:20px 0 0 0;padding:10px;border:1px solid #e4e7ed}.daily-store-select .define-search-select .el-select-dropdown__wrap[data-v-11945d1d]{max-height:343px}.daily-store-select .define-search-select .el-checkbox-group[data-v-11945d1d]{overflow-x:auto;height:338px}.daily-store-select .define-search-select .el-checkbox-group ul[data-v-11945d1d]{height:100%}.daily-store-select .define-search-select .el-checkbox-group ul li[data-v-11945d1d]{overflow:unset;text-overflow:unset}.select-tree-wrap[data-v-047e7ed0]{height:445px;overflow-y:auto;border:1px solid #e4e7ed}
\ No newline at end of file
.input-line-cell[data-v-6cddbd03]{position:relative;display:inline-block}.input-line-cell.limit-color .input-cell-tip[data-v-6cddbd03]{color:hsla(0,0%,100%,.7)}.input-line-cell .input-cell-tip[data-v-6cddbd03]{position:absolute;top:2px;right:10px;display:inline-block;line-height:32px;text-align:right;font-size:12px;color:#c0c4cc}.w-340[data-v-6cddbd03]{width:340px}.w-340[data-v-6cddbd03] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-input[data-v-6cddbd03] .el-input__inner{font-size:14px;color:#606266;background-color:hsla(0,0%,100%,.1)}.el-input.is-disabled[data-v-6cddbd03]{opacity:.5}.el-input .is-disabled[data-v-6cddbd03] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.tag-classify-drop .el-dropdown-menu__item[data-v-d633db26]{padding:0 30px}.tag-classify-body .tag-classify-item[data-v-d633db26]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 10px 0 20px;font-size:14px;font-weight:400;line-height:32px;margin-bottom:10px;color:#606266;cursor:pointer}.tag-classify-body .tag-classify-item.active[data-v-d633db26],.tag-classify-body .tag-classify-item[data-v-d633db26]:hover{color:#2f54ed;background-color:rgba(47,84,235,.05)}.tag-classify-body .tag-classify-item:hover .edit-icon[data-v-d633db26]{opacity:1;color:#909399;background-color:none}.tag-classify-body .tag-classify-item .edit-icon[data-v-d633db26]{padding:4px;opacity:0;font-size:16px}.tag-classify-body .tag-classify-item .edit-icon[data-v-d633db26]:hover{opacity:1;color:#2f54ed;background-color:rgba(47,84,235,.09)}.tag-classify-body .tag-classify-item .tag-classify-name[data-v-d633db26]{display:block;width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag-classify-body .no-data[data-v-d633db26]{padding:10px 0 40px 0;text-align:center;color:#909399}.m-t-5[data-v-29339ea0]{margin-top:5px}.el-form .el-input[data-v-29339ea0],.el-form .el-select[data-v-29339ea0]{width:440px}.el-form .input-tag-div[data-v-29339ea0]{position:relative}.el-form .input-tag-div .input-cell-tip[data-v-29339ea0]{position:absolute;top:2px;right:20px;display:inline-block;line-height:30px;text-align:right;font-size:12px;color:#c0c4cc;font-weight:400}.w-117[data-v-09cf7422]{width:117px}.font-22[data-v-09cf7422]{font-size:22px}.move-row-cell .icontuozhuaiopen[data-v-09cf7422]{display:none;line-height:20px}.move-row-cell:hover .show-icon[data-v-09cf7422]{display:inline-block;vertical-align:middle}.clerk-tag-body .clerk-tag-left[data-v-09cf7422]{position:relative;width:200px;min-width:200px;max-width:200px;padding:30px 0 0 0}.clerk-tag-body .clerk-tag-left .clerk-tag-add .el-button[data-v-09cf7422]{border-style:dashed}.clerk-tag-body .clerk-tag-right[data-v-09cf7422]{position:relative;min-width:calc(100% - 200px);min-height:calc(100vh - 94px);border-left:1px solid #e4e7ed}
\ No newline at end of file
.input-line-cell[data-v-6a34064a]{position:relative;display:inline-block}.input-line-cell.limit-color .input-cell-tip[data-v-6a34064a]{color:hsla(0,0%,100%,.7)}.input-line-cell .input-cell-tip[data-v-6a34064a]{position:absolute;top:2px;right:10px;display:inline-block;line-height:32px;text-align:right;font-size:12px;color:#c0c4cc}.w-340[data-v-6a34064a]{width:340px}.w-340[data-v-6a34064a] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-input[data-v-6a34064a] .el-input__inner{font-size:14px;color:#606266;background-color:hsla(0,0%,100%,.1)}.el-input.is-disabled[data-v-6a34064a]{opacity:.5}.el-input .is-disabled[data-v-6a34064a] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.tag-classify-drop .el-dropdown-menu__item[data-v-d633db26]{padding:0 30px}.tag-classify-body .tag-classify-item[data-v-d633db26]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 10px 0 20px;font-size:14px;font-weight:400;line-height:32px;margin-bottom:10px;color:#606266;cursor:pointer}.tag-classify-body .tag-classify-item.active[data-v-d633db26],.tag-classify-body .tag-classify-item[data-v-d633db26]:hover{color:#2f54ed;background-color:rgba(47,84,235,.05)}.tag-classify-body .tag-classify-item:hover .edit-icon[data-v-d633db26]{opacity:1;color:#909399;background-color:none}.tag-classify-body .tag-classify-item .edit-icon[data-v-d633db26]{padding:4px;opacity:0;font-size:16px}.tag-classify-body .tag-classify-item .edit-icon[data-v-d633db26]:hover{opacity:1;color:#2f54ed;background-color:rgba(47,84,235,.09)}.tag-classify-body .tag-classify-item .tag-classify-name[data-v-d633db26]{display:block;width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag-classify-body .no-data[data-v-d633db26]{padding:10px 0 40px 0;text-align:center;color:#909399}.m-t-5[data-v-29339ea0]{margin-top:5px}.el-form .el-input[data-v-29339ea0],.el-form .el-select[data-v-29339ea0]{width:440px}.el-form .input-tag-div[data-v-29339ea0]{position:relative}.el-form .input-tag-div .input-cell-tip[data-v-29339ea0]{position:absolute;top:2px;right:20px;display:inline-block;line-height:30px;text-align:right;font-size:12px;color:#c0c4cc;font-weight:400}.w-117[data-v-09cf7422]{width:117px}.font-22[data-v-09cf7422]{font-size:22px}.move-row-cell .icontuozhuaiopen[data-v-09cf7422]{display:none;line-height:20px}.move-row-cell:hover .show-icon[data-v-09cf7422]{display:inline-block;vertical-align:middle}.clerk-tag-body .clerk-tag-left[data-v-09cf7422]{position:relative;width:200px;min-width:200px;max-width:200px;padding:30px 0 0 0}.clerk-tag-body .clerk-tag-left .clerk-tag-add .el-button[data-v-09cf7422]{border-style:dashed}.clerk-tag-body .clerk-tag-right[data-v-09cf7422]{position:relative;min-width:calc(100% - 200px);min-height:calc(100vh - 94px);border-left:1px solid #e4e7ed}
\ No newline at end of file
.font-22[data-v-1d4edc0e]{font-size:22px}.common-bottom-border[data-v-1d4edc0e]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.common-bottom-border.table-title[data-v-1d4edc0e]{font-size:14px;line-height:20px;font-weight:600;color:#303133}.data-dimension-table[data-v-1d4edc0e]{margin-top:32px}.data-dimension-table .m-b-18[data-v-1d4edc0e]{margin-bottom:18px}.data-dimension-table .data-dimension-table_left[data-v-1d4edc0e]{width:calc((100% - 47px)/2)}.data-dimension-table .data-dimension-table_right[data-v-1d4edc0e]{width:calc((100% - 47px)/2);margin-left:47px}
\ No newline at end of file
.nav-wrap[data-v-2c2a2724]{padding:12px 20px}.el-breadcrumb__inner.is-link[data-v-2c2a2724]:hover,.el-breadcrumb__inner a[data-v-2c2a2724]:hover{color:#2f54eb}.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-2c2a2724],.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-2c2a2724]:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-2c2a2724],.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-2c2a2724]:hover{font-weight:700;text-decoration:none;cursor:pointer;color:#303133}.menu-tree[data-v-19fa0aa2]{width:510px;min-height:460px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;border:1px solid #e4e7ed}.menu-tree .first-menu[data-v-19fa0aa2]{-ms-flex-negative:0;flex-shrink:0;width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background-color:#f5f7fa}.menu-tree .first-menu .first-menu-item[data-v-19fa0aa2]{padding:0 10px 0 20px;width:100%;height:40px;font-size:14px;font-weight:400;color:#606266;line-height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.menu-tree .first-menu .first-menu-item.active[data-v-19fa0aa2],.menu-tree .first-menu .first-menu-item[data-v-19fa0aa2]:hover{background-color:#fff}.menu-tree .first-menu .no-data[data-v-19fa0aa2]{padding-top:20px;text-align:center;font-size:14px;color:#909399;line-height:60px}.menu-tree .all-menu[data-v-19fa0aa2]{padding:20px 0 0 20px;width:calc(100% - 140px)}.menu-tree .all-menu[data-v-19fa0aa2] .el-checkbox.is-disabled+.el-tree-node__label{color:#909399}.edit-role[data-v-35084821]{padding:20px;background-color:#fff;height:100%}.resource-list[data-v-35084821]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.resource-list .resource-item[data-v-35084821]{padding:10px 20px;width:236px;height:72px;background:#f5f7fa}.resource-list .resource-item .app-name[data-v-35084821]{font-size:14px;font-weight:700;color:#303133;line-height:20px}.type-title[data-v-35084821]{font-size:14px;font-weight:400;color:#606266}.type-label[data-v-35084821]{margin-right:30px;font-size:14px;font-weight:700;color:#303133}
\ No newline at end of file
.nav-wrap[data-v-2c2a2724]{padding:12px 20px}.el-breadcrumb__inner.is-link[data-v-2c2a2724]:hover,.el-breadcrumb__inner a[data-v-2c2a2724]:hover{color:#2f54eb}.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-2c2a2724],.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-2c2a2724]:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-2c2a2724],.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-2c2a2724]:hover{font-weight:700;text-decoration:none;cursor:pointer;color:#303133}.menu-tree[data-v-19fa0aa2]{width:510px;min-height:460px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;border:1px solid #e4e7ed}.menu-tree .first-menu[data-v-19fa0aa2]{-ms-flex-negative:0;flex-shrink:0;width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background-color:#f5f7fa}.menu-tree .first-menu .first-menu-item[data-v-19fa0aa2]{padding:0 10px 0 20px;width:100%;height:40px;font-size:14px;font-weight:400;color:#606266;line-height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.menu-tree .first-menu .first-menu-item.active[data-v-19fa0aa2],.menu-tree .first-menu .first-menu-item[data-v-19fa0aa2]:hover{background-color:#fff}.menu-tree .first-menu .no-data[data-v-19fa0aa2]{padding-top:20px;text-align:center;font-size:14px;color:#909399;line-height:60px}.menu-tree .all-menu[data-v-19fa0aa2]{padding:20px 0 0 20px;width:calc(100% - 140px)}.menu-tree .all-menu[data-v-19fa0aa2] .el-checkbox.is-disabled+.el-tree-node__label{color:#909399}.edit-role[data-v-12d8dddc]{padding:20px;background-color:#fff;height:100%}.resource-list[data-v-12d8dddc]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.resource-list .resource-item[data-v-12d8dddc]{padding:10px 20px;width:236px;height:72px;background:#f5f7fa}.resource-list .resource-item .app-name[data-v-12d8dddc]{font-size:14px;font-weight:700;color:#303133;line-height:20px}.type-title[data-v-12d8dddc]{font-size:14px;font-weight:400;color:#606266}.type-label[data-v-12d8dddc]{margin-right:30px;font-size:14px;font-weight:700;color:#303133}
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.44.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-064f007c.c42ef571.css rel=prefetch><link href=css/chunk-173d2f0c.db2396dd.css rel=prefetch><link href=css/chunk-1cc109e4.d4e92463.css rel=prefetch><link href=css/chunk-2351fb9b.6efba3e1.css rel=prefetch><link href=css/chunk-261261c7.ea49d269.css rel=prefetch><link href=css/chunk-28575e65.a813b5f3.css rel=prefetch><link href=css/chunk-2b9acf53.b4621154.css rel=prefetch><link href=css/chunk-2d0f5358.79adbaee.css rel=prefetch><link href=css/chunk-302ac66a.c5a30faf.css rel=prefetch><link href=css/chunk-30f81def.134f322f.css rel=prefetch><link href=css/chunk-32d6ccb7.10b34206.css rel=prefetch><link href=css/chunk-34a8e7a5.3a1368a9.css rel=prefetch><link href=css/chunk-35e6f8fc.8d54f626.css rel=prefetch><link href=css/chunk-37259986.34356bc6.css rel=prefetch><link href=css/chunk-39362334.c233899e.css rel=prefetch><link href=css/chunk-40e8a9a0.fd78a14e.css rel=prefetch><link href=css/chunk-4782fef8.8c02be36.css rel=prefetch><link href=css/chunk-4b898c1e.07d02776.css rel=prefetch><link href=css/chunk-4d95ae81.d3090a82.css rel=prefetch><link href=css/chunk-4ddcd773.9fc591fa.css rel=prefetch><link href=css/chunk-50f71fea.be3a3db1.css rel=prefetch><link href=css/chunk-52de3f88.7f8e8b41.css rel=prefetch><link href=css/chunk-65356317.034577e3.css rel=prefetch><link href=css/chunk-69be4950.5769d53d.css rel=prefetch><link href=css/chunk-6dfc1c36.effcfd5e.css rel=prefetch><link href=css/chunk-6f32e3dc.b27b0c13.css rel=prefetch><link href=css/chunk-717fd052.7f6fc630.css rel=prefetch><link href=css/chunk-71df8cfa.cabba392.css rel=prefetch><link href=css/chunk-769c26e2.1376fd41.css rel=prefetch><link href=css/chunk-78b3ccdb.7a2a10c9.css rel=prefetch><link href=css/chunk-7c18fb37.93e19818.css rel=prefetch><link href=css/chunk-7e20a98d.0b6786a8.css rel=prefetch><link href=css/chunk-81c7fbf0.7a5e892c.css rel=prefetch><link href=css/chunk-82c9081e.c3dfcb1a.css rel=prefetch><link href=css/chunk-b073f330.b7424a51.css rel=prefetch><link href=css/chunk-b1fb551c.db2396dd.css rel=prefetch><link href=css/chunk-b9a7d4fe.4b46a7ff.css rel=prefetch><link href=css/chunk-ba1c12aa.813bfa0b.css rel=prefetch><link href=css/chunk-c2d4f890.7e26fbb5.css rel=prefetch><link href=css/chunk-d09caf5c.57292024.css rel=prefetch><link href=css/chunk-e81c0d56.d1685639.css rel=prefetch><link href=css/chunk-f4b91c90.030efe69.css rel=prefetch><link href=css/chunk-fb47ac00.8a1ddd0f.css rel=prefetch><link href=css/chunk-fe2e4af2.98b3b0d2.css rel=prefetch><link href=js/chunk-064f007c.cca954a8.js rel=prefetch><link href=js/chunk-06fd5be4.f139d32f.js rel=prefetch><link href=js/chunk-173d2f0c.c5f2ecc6.js rel=prefetch><link href=js/chunk-1cc109e4.d85863d4.js rel=prefetch><link href=js/chunk-2351fb9b.8f3632bd.js rel=prefetch><link href=js/chunk-261261c7.bc250a5a.js rel=prefetch><link href=js/chunk-28575e65.2934bbaf.js rel=prefetch><link href=js/chunk-2b9acf53.cbeb40f6.js rel=prefetch><link href=js/chunk-2d0f5358.a4e13071.js rel=prefetch><link href=js/chunk-302ac66a.784ddc9a.js rel=prefetch><link href=js/chunk-30f81def.ad856fca.js rel=prefetch><link href=js/chunk-32d6ccb7.fb59b610.js rel=prefetch><link href=js/chunk-34a8e7a5.7d94842d.js rel=prefetch><link href=js/chunk-35e6f8fc.e0a48957.js rel=prefetch><link href=js/chunk-37259986.f844e1c7.js rel=prefetch><link href=js/chunk-39362334.e86efdc8.js rel=prefetch><link href=js/chunk-40e8a9a0.45f02e2c.js rel=prefetch><link href=js/chunk-4782fef8.e2427178.js rel=prefetch><link href=js/chunk-4b898c1e.1776e041.js rel=prefetch><link href=js/chunk-4d95ae81.7c9b156a.js rel=prefetch><link href=js/chunk-4ddcd773.0014a155.js rel=prefetch><link href=js/chunk-50f71fea.b4f25ec6.js rel=prefetch><link href=js/chunk-52de3f88.38089c38.js rel=prefetch><link href=js/chunk-65356317.88e3df09.js rel=prefetch><link href=js/chunk-69be4950.75cfb2c7.js rel=prefetch><link href=js/chunk-6dfc1c36.3daf41cf.js rel=prefetch><link href=js/chunk-6f32e3dc.bd190efc.js rel=prefetch><link href=js/chunk-717fd052.3eaa3533.js rel=prefetch><link href=js/chunk-71df8cfa.d056e7cd.js rel=prefetch><link href=js/chunk-769c26e2.50d13382.js rel=prefetch><link href=js/chunk-78b3ccdb.e609fd23.js rel=prefetch><link href=js/chunk-7c18fb37.3ecac0cc.js rel=prefetch><link href=js/chunk-7e20a98d.e9361ba0.js rel=prefetch><link href=js/chunk-81c7fbf0.fd621299.js rel=prefetch><link href=js/chunk-82c9081e.f1f28438.js rel=prefetch><link href=js/chunk-b073f330.e8356f25.js rel=prefetch><link href=js/chunk-b1fb551c.e022603e.js rel=prefetch><link href=js/chunk-b9a7d4fe.3cf8fd52.js rel=prefetch><link href=js/chunk-ba1c12aa.7f20ac59.js rel=prefetch><link href=js/chunk-c2d4f890.8fdfad26.js rel=prefetch><link href=js/chunk-d09caf5c.40f5ae00.js rel=prefetch><link href=js/chunk-e81c0d56.685880f8.js rel=prefetch><link href=js/chunk-f4b91c90.97ddbee5.js rel=prefetch><link href=js/chunk-fb47ac00.a95d8c23.js rel=prefetch><link href=js/chunk-fe2e4af2.dbb4ae1d.js rel=prefetch><link href=css/app.2c65bb5b.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.87b33075.js rel=preload as=script><link href=js/chunk-vendors.4646af85.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.2c65bb5b.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script src=//web-1251519181.file.myqcloud.com/components/perm-button.1.0.0.js></script><script src=//web-1251519181.file.myqcloud.com/components/transfer.1.0.24.js></script><script src=js/chunk-vendors.4646af85.js></script><script src=js/app.87b33075.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.44.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-04441caa.3a1368a9.css rel=prefetch><link href=css/chunk-064f007c.c42ef571.css rel=prefetch><link href=css/chunk-0b289536.775d3d02.css rel=prefetch><link href=css/chunk-14c0f460.e9986bc6.css rel=prefetch><link href=css/chunk-15b0a546.134f322f.css rel=prefetch><link href=css/chunk-1f80e62c.117e86e6.css rel=prefetch><link href=css/chunk-1fbcb7b4.0a6c7a95.css rel=prefetch><link href=css/chunk-21238eb7.9f5327c7.css rel=prefetch><link href=css/chunk-2351fb9b.6efba3e1.css rel=prefetch><link href=css/chunk-256a84d4.d3090a82.css rel=prefetch><link href=css/chunk-2e387478.0939693a.css rel=prefetch><link href=css/chunk-2ea1673a.fb652d49.css rel=prefetch><link href=css/chunk-318c2f14.034577e3.css rel=prefetch><link href=css/chunk-322df9a5.10b34206.css rel=prefetch><link href=css/chunk-37259986.34356bc6.css rel=prefetch><link href=css/chunk-39362334.c233899e.css rel=prefetch><link href=css/chunk-39b3fdd3.5769d53d.css rel=prefetch><link href=css/chunk-3b49fb5d.db2396dd.css rel=prefetch><link href=css/chunk-3e6471d9.d4e92463.css rel=prefetch><link href=css/chunk-3f761645.8d54f626.css rel=prefetch><link href=css/chunk-40e8a9a0.fd78a14e.css rel=prefetch><link href=css/chunk-46528954.09c89a97.css rel=prefetch><link href=css/chunk-49b40f10.f8f82123.css rel=prefetch><link href=css/chunk-4b898c1e.07d02776.css rel=prefetch><link href=css/chunk-4c306652.1376fd41.css rel=prefetch><link href=css/chunk-525806a0.8bd3eb26.css rel=prefetch><link href=css/chunk-57b8b8d6.a813b5f3.css rel=prefetch><link href=css/chunk-5eb2dd58.61d00ce9.css rel=prefetch><link href=css/chunk-5ece0aea.0b6786a8.css rel=prefetch><link href=css/chunk-61797ed2.79adbaee.css rel=prefetch><link href=css/chunk-6a4fb8b3.4b46a7ff.css rel=prefetch><link href=css/chunk-6dfc1c36.effcfd5e.css rel=prefetch><link href=css/chunk-78b3ccdb.7a2a10c9.css rel=prefetch><link href=css/chunk-79a7bce0.d1685639.css rel=prefetch><link href=css/chunk-7abd3da6.69812a03.css rel=prefetch><link href=css/chunk-7de0deb4.b4621154.css rel=prefetch><link href=css/chunk-7e74ea52.ea49d269.css rel=prefetch><link href=css/chunk-9e4bdf18.77f8784e.css rel=prefetch><link href=css/chunk-b073f330.b7424a51.css rel=prefetch><link href=css/chunk-ba1c12aa.813bfa0b.css rel=prefetch><link href=css/chunk-c2d4f890.7e26fbb5.css rel=prefetch><link href=css/chunk-d15b21d6.db2396dd.css rel=prefetch><link href=css/chunk-d7315c84.93e19818.css rel=prefetch><link href=css/chunk-e0fbbb84.7f8e8b41.css rel=prefetch><link href=js/chunk-04441caa.07169b1c.js rel=prefetch><link href=js/chunk-064f007c.3fed927c.js rel=prefetch><link href=js/chunk-0b289536.c2acba67.js rel=prefetch><link href=js/chunk-14c0f460.7bfa1b91.js rel=prefetch><link href=js/chunk-15b0a546.36352e0b.js rel=prefetch><link href=js/chunk-1f80e62c.544d18c1.js rel=prefetch><link href=js/chunk-1fbcb7b4.259d140b.js rel=prefetch><link href=js/chunk-21238eb7.550108ba.js rel=prefetch><link href=js/chunk-2351fb9b.a9c068a1.js rel=prefetch><link href=js/chunk-256a84d4.9bd2e0c8.js rel=prefetch><link href=js/chunk-2e387478.45e246ab.js rel=prefetch><link href=js/chunk-2ea1673a.b19a651e.js rel=prefetch><link href=js/chunk-318c2f14.972fcb8f.js rel=prefetch><link href=js/chunk-322df9a5.551224d1.js rel=prefetch><link href=js/chunk-37259986.5bbb180b.js rel=prefetch><link href=js/chunk-39362334.33c0f30a.js rel=prefetch><link href=js/chunk-39b3fdd3.9436ca8f.js rel=prefetch><link href=js/chunk-3b49fb5d.24651907.js rel=prefetch><link href=js/chunk-3e6471d9.8f54d719.js rel=prefetch><link href=js/chunk-3f761645.8046cee6.js rel=prefetch><link href=js/chunk-40e8a9a0.e5d613b3.js rel=prefetch><link href=js/chunk-46528954.e395fa8e.js rel=prefetch><link href=js/chunk-49b40f10.0b085372.js rel=prefetch><link href=js/chunk-4b898c1e.fec71db8.js rel=prefetch><link href=js/chunk-4c306652.62583db9.js rel=prefetch><link href=js/chunk-525806a0.0e27d556.js rel=prefetch><link href=js/chunk-57b8b8d6.8eacc6dd.js rel=prefetch><link href=js/chunk-5eb2dd58.c3c37924.js rel=prefetch><link href=js/chunk-5ece0aea.55b645ba.js rel=prefetch><link href=js/chunk-61797ed2.cd149c9a.js rel=prefetch><link href=js/chunk-6a4fb8b3.759fc906.js rel=prefetch><link href=js/chunk-6dfc1c36.cca10061.js rel=prefetch><link href=js/chunk-78b3ccdb.938dac01.js rel=prefetch><link href=js/chunk-79a7bce0.56407ada.js rel=prefetch><link href=js/chunk-7abd3da6.a414d4fe.js rel=prefetch><link href=js/chunk-7de0deb4.1bc84735.js rel=prefetch><link href=js/chunk-7e74ea52.923494ee.js rel=prefetch><link href=js/chunk-9e4bdf18.839c0adb.js rel=prefetch><link href=js/chunk-b073f330.6c927054.js rel=prefetch><link href=js/chunk-ba1c12aa.e2ddd7cb.js rel=prefetch><link href=js/chunk-c2d4f890.6efce2e5.js rel=prefetch><link href=js/chunk-d15b21d6.33a0b551.js rel=prefetch><link href=js/chunk-d7315c84.a71325e0.js rel=prefetch><link href=js/chunk-dac82e2c.0bd4699a.js rel=prefetch><link href=js/chunk-e0fbbb84.353d714c.js rel=prefetch><link href=css/app.ddd2e4d4.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.3b03a0dd.js rel=preload as=script><link href=js/chunk-vendors.cda08bb4.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.ddd2e4d4.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script src=//web-1251519181.file.myqcloud.com/components/perm-button.1.0.0.js></script><script src=//web-1251519181.file.myqcloud.com/components/transfer.1.0.24.js></script><script src=js/chunk-vendors.cda08bb4.js></script><script src=js/app.3b03a0dd.js></script></body></html>
\ No newline at end of file
(function(e){function n(n){for(var c,a,o=n[0],i=n[1],d=n[2],s=0,h=[];s<o.length;s++)a=o[s],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&h.push(r[a][0]),r[a]=0;for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&(e[c]=i[c]);p&&p(n);while(h.length)h.shift()();return u.push.apply(u,d||[]),t()}function t(){for(var e,n=0;n<u.length;n++){for(var t=u[n],c=!0,a=1;a<t.length;a++){var o=t[a];0!==r[o]&&(c=!1)}c&&(u.splice(n--,1),e=i(i.s=t[0]))}return e}var c={},a={app:0},r={app:0},u=[];function o(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-04441caa":"07169b1c","chunk-064f007c":"3fed927c","chunk-0b289536":"c2acba67","chunk-14c0f460":"7bfa1b91","chunk-15b0a546":"36352e0b","chunk-1f80e62c":"544d18c1","chunk-1fbcb7b4":"259d140b","chunk-2351fb9b":"a9c068a1","chunk-256a84d4":"9bd2e0c8","chunk-318c2f14":"972fcb8f","chunk-322df9a5":"551224d1","chunk-37259986":"5bbb180b","chunk-39362334":"33c0f30a","chunk-39b3fdd3":"9436ca8f","chunk-3b49fb5d":"24651907","chunk-3e6471d9":"8f54d719","chunk-3f761645":"8046cee6","chunk-40e8a9a0":"e5d613b3","chunk-4b898c1e":"fec71db8","chunk-4c306652":"62583db9","chunk-525806a0":"0e27d556","chunk-57b8b8d6":"8eacc6dd","chunk-5eb2dd58":"c3c37924","chunk-5ece0aea":"55b645ba","chunk-61797ed2":"cd149c9a","chunk-6a4fb8b3":"759fc906","chunk-6dfc1c36":"cca10061","chunk-78b3ccdb":"938dac01","chunk-79a7bce0":"56407ada","chunk-21238eb7":"550108ba","chunk-46528954":"e395fa8e","chunk-7abd3da6":"a414d4fe","chunk-7e74ea52":"923494ee","chunk-9e4bdf18":"839c0adb","chunk-b073f330":"6c927054","chunk-ba1c12aa":"e2ddd7cb","chunk-c2d4f890":"6efce2e5","chunk-d15b21d6":"33a0b551","chunk-d7315c84":"a71325e0","chunk-dac82e2c":"0bd4699a","chunk-2e387478":"45e246ab","chunk-2ea1673a":"b19a651e","chunk-49b40f10":"0b085372","chunk-7de0deb4":"1bc84735","chunk-e0fbbb84":"353d714c"}[e]+".js"}function i(n){if(c[n])return c[n].exports;var t=c[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-04441caa":1,"chunk-064f007c":1,"chunk-0b289536":1,"chunk-14c0f460":1,"chunk-15b0a546":1,"chunk-1f80e62c":1,"chunk-1fbcb7b4":1,"chunk-2351fb9b":1,"chunk-256a84d4":1,"chunk-318c2f14":1,"chunk-322df9a5":1,"chunk-37259986":1,"chunk-39362334":1,"chunk-39b3fdd3":1,"chunk-3b49fb5d":1,"chunk-3e6471d9":1,"chunk-3f761645":1,"chunk-40e8a9a0":1,"chunk-4b898c1e":1,"chunk-4c306652":1,"chunk-525806a0":1,"chunk-57b8b8d6":1,"chunk-5eb2dd58":1,"chunk-5ece0aea":1,"chunk-61797ed2":1,"chunk-6a4fb8b3":1,"chunk-6dfc1c36":1,"chunk-78b3ccdb":1,"chunk-79a7bce0":1,"chunk-21238eb7":1,"chunk-46528954":1,"chunk-7abd3da6":1,"chunk-7e74ea52":1,"chunk-9e4bdf18":1,"chunk-b073f330":1,"chunk-ba1c12aa":1,"chunk-c2d4f890":1,"chunk-d15b21d6":1,"chunk-d7315c84":1,"chunk-2e387478":1,"chunk-2ea1673a":1,"chunk-49b40f10":1,"chunk-7de0deb4":1,"chunk-e0fbbb84":1};a[e]?n.push(a[e]):0!==a[e]&&t[e]&&n.push(a[e]=new Promise((function(n,t){for(var c="css/"+({}[e]||e)+"."+{"chunk-04441caa":"3a1368a9","chunk-064f007c":"c42ef571","chunk-0b289536":"775d3d02","chunk-14c0f460":"e9986bc6","chunk-15b0a546":"134f322f","chunk-1f80e62c":"117e86e6","chunk-1fbcb7b4":"0a6c7a95","chunk-2351fb9b":"6efba3e1","chunk-256a84d4":"d3090a82","chunk-318c2f14":"034577e3","chunk-322df9a5":"10b34206","chunk-37259986":"34356bc6","chunk-39362334":"c233899e","chunk-39b3fdd3":"5769d53d","chunk-3b49fb5d":"db2396dd","chunk-3e6471d9":"d4e92463","chunk-3f761645":"8d54f626","chunk-40e8a9a0":"fd78a14e","chunk-4b898c1e":"07d02776","chunk-4c306652":"1376fd41","chunk-525806a0":"8bd3eb26","chunk-57b8b8d6":"a813b5f3","chunk-5eb2dd58":"61d00ce9","chunk-5ece0aea":"0b6786a8","chunk-61797ed2":"79adbaee","chunk-6a4fb8b3":"4b46a7ff","chunk-6dfc1c36":"effcfd5e","chunk-78b3ccdb":"7a2a10c9","chunk-79a7bce0":"d1685639","chunk-21238eb7":"9f5327c7","chunk-46528954":"09c89a97","chunk-7abd3da6":"69812a03","chunk-7e74ea52":"ea49d269","chunk-9e4bdf18":"77f8784e","chunk-b073f330":"b7424a51","chunk-ba1c12aa":"813bfa0b","chunk-c2d4f890":"7e26fbb5","chunk-d15b21d6":"db2396dd","chunk-d7315c84":"93e19818","chunk-dac82e2c":"31d6cfe0","chunk-2e387478":"0939693a","chunk-2ea1673a":"fb652d49","chunk-49b40f10":"f8f82123","chunk-7de0deb4":"b4621154","chunk-e0fbbb84":"7f8e8b41"}[e]+".css",r=i.p+c,u=document.getElementsByTagName("link"),o=0;o<u.length;o++){var d=u[o],s=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(s===c||s===r))return n()}var h=document.getElementsByTagName("style");for(o=0;o<h.length;o++){d=h[o],s=d.getAttribute("data-href");if(s===c||s===r)return n()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=n,p.onerror=function(n){var c=n&&n.target&&n.target.src||r,u=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=c,delete a[e],p.parentNode.removeChild(p),t(u)},p.href=r;var f=document.getElementsByTagName("head")[0];f.appendChild(p)})).then((function(){a[e]=0})));var c=r[e];if(0!==c)if(c)n.push(c[2]);else{var u=new Promise((function(n,t){c=r[e]=[n,t]}));n.push(c[2]=u);var d,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=o(e);var h=new Error;d=function(n){s.onerror=s.onload=null,clearTimeout(p);var t=r[e];if(0!==t){if(t){var c=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;h.message="Loading chunk "+e+" failed.\n("+c+": "+a+")",h.name="ChunkLoadError",h.type=c,h.request=a,t[1](h)}r[e]=void 0}};var p=setTimeout((function(){d({type:"timeout",target:s})}),12e4);s.onerror=s.onload=d,document.head.appendChild(s)}return Promise.all(n)},i.m=e,i.c=c,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var c in e)i.d(t,c,function(n){return e[n]}.bind(null,c));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="",i.oe=function(e){throw e};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],s=d.push.bind(d);d.push=n,d=d.slice();for(var h=0;h<d.length;h++)n(d[h]);var p=s;u.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){t("db4d"),e.exports=t("56d7")},"1a5d":function(e,n,t){var c={"./app-controls/app-detail.vue":["9bc6","chunk-40e8a9a0"],"./app-controls/app-list.vue":["4a78","chunk-78b3ccdb"],"./app-controls/index.vue":["b04c","chunk-d15b21d6"],"./apps/customer-app/clerk-tag.vue":["b5b0","chunk-dac82e2c","chunk-2ea1673a","chunk-49b40f10"],"./apps/customer-app/crowd-scene.vue":["c7d7","chunk-dac82e2c","chunk-2ea1673a","chunk-7de0deb4"],"./apps/customer-app/customer-assign.vue":["12eb","chunk-7abd3da6"],"./apps/customer-app/customer-data-set.vue":["3cf8","chunk-61797ed2"],"./apps/customer-app/customer-show-set.vue":["f766","chunk-4c306652"],"./apps/customer-app/data-dimension.vue":["55f3","chunk-dac82e2c","chunk-2e387478"],"./apps/customer-app/index.vue":["c3d9","chunk-0b289536"],"./apps/index.vue":["7f2e","chunk-39b3fdd3"],"./business/audit-log.vue":["0912","chunk-1f80e62c"],"./business/auth-merchant.vue":["56b3","chunk-e0fbbb84"],"./business/contacts.vue":["a269","chunk-525806a0"],"./business/index.vue":["50c8","chunk-318c2f14"],"./business/new-auth-merchant.vue":["62a7","chunk-79a7bce0","chunk-46528954"],"./business/sync-log.vue":["b155","chunk-6a4fb8b3"],"./enterprise/admin-list.vue":["db80","chunk-14c0f460"],"./enterprise/admin-list/role-list.vue":["0082","chunk-b073f330"],"./enterprise/edit-admin.vue":["7dc6","chunk-79a7bce0","chunk-21238eb7"],"./enterprise/edit-role.vue":["2249","chunk-3e6471d9"],"./enterprise/edit-role/menu-tree.vue":["a088","chunk-04441caa"],"./enterprise/edit-store-role.vue":["a960","chunk-9e4bdf18"],"./enterprise/enterprise-set.vue":["b735","chunk-5ece0aea"],"./enterprise/index.vue":["ea02","chunk-57b8b8d6"],"./enterprise/store-admin-list.vue":["2058","chunk-1fbcb7b4"],"./enterprise/super-admin.vue":["9b74","chunk-c2d4f890"],"./error-page/403.vue":["5140","chunk-ba1c12aa"],"./error-page/404.vue":["1db4","chunk-2351fb9b"],"./error-page/500.vue":["721c","chunk-6dfc1c36"],"./error-page/gic-error.vue":["442d","chunk-37259986"],"./error-page/index.vue":["4cf1","chunk-d7315c84"],"./index/index.vue":["37f9","chunk-3f761645"],"./login/index.vue":["9ed6","chunk-39362334"],"./review-center/audit-config.vue":["daa8","chunk-4b898c1e"],"./review-center/audit-group-list.vue":["ff23","chunk-064f007c"],"./review-center/audit-item-list.vue":["727c","chunk-256a84d4"],"./review-center/create-audit-group.vue":["ea11","chunk-322df9a5"],"./review-center/create-audit-item.vue":["e0c0","chunk-15b0a546"],"./review-center/index.vue":["2cad","chunk-3b49fb5d"],"./review-center/reviewed.vue":["dacc","chunk-7e74ea52"],"./review-center/unreview.vue":["1005","chunk-5eb2dd58"]};function a(e){if(!t.o(c,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=c[e],a=n[0];return Promise.all(n.slice(1).map(t.e)).then((function(){return t(a)}))}a.keys=function(){return Object.keys(c)},a.id="1a5d",e.exports=a},"4f94":function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);t("456d"),t("ac6a"),t("cadf"),t("551c"),t("f751"),t("097d"),t("db4d"),t("0fae"),t("4f94"),t("d31c");var c=t("8bbf"),a=t.n(c),r=t("8c4f"),u=t("cebe"),o=t.n(u),i=t("5c96"),d=t.n(i),s=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"dm-reset",attrs:{id:"app"}},[t("router-view")],1)},h=[],p={name:"App"},f=p,b=t("2877"),m=Object(b["a"])(f,s,h,!1,null,null,null),l=m.exports,k=t("e2b2"),g=t.n(k),v=function(e){t.e("chunk-d7315c84").then(t.bind(null,"4cf1")).then((function(n){e(n)}))},w=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:g()("login","index")},{path:"/index",name:"index",component:g()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:g()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:g()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:g()("business","sync-log")},{path:"/authMerchant",name:"授权商户",component:g()("business","auth-merchant")},{path:"/newAuthMerchant",name:"新增授权",component:g()("business","new-auth-merchant")},{path:"/auditLog",name:"审核日志",component:g()("business","audit-log")}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:g()("review-center","index"),children:[{path:"/reviewed",name:"已审核",component:g()("review-center","reviewed")},{path:"/unreview",name:"未审核",component:g()("review-center","unreview")},{path:"/audit-group-list",meta:{title:"审核组列表"},component:g()("review-center","audit-group-list")},{path:"/create-audit-group",meta:{title:"新建、编辑审核组"},component:g()("review-center","create-audit-group")},{path:"/audit-item-list",meta:{title:"审核事项列表"},component:g()("review-center","audit-item-list")},{path:"/create-audit-item",meta:{title:"新建、编辑审核事项"},component:g()("review-center","create-audit-item")},{path:"/audit-config",meta:{title:"审核设置"},component:g()("review-center","audit-config")}]},{path:"/enterprise",name:"企业设置",redirect:"enterpriseSet",component:g()("enterprise","index"),children:[{path:"/enterpriseSet",name:"企业信息",component:g()("enterprise","enterprise-set")},{path:"/admin-list",name:"管理员",component:g()("enterprise","admin-list")},{path:"/edit-role",name:"新建、编辑角色",component:g()("enterprise","edit-role")},{path:"/edit-admin",name:"新建编辑管理员",component:g()("enterprise","edit-admin")},{path:"/store-admin-list",name:"门店角色",component:g()("enterprise","store-admin-list")},{path:"/edit-store-role",name:"编辑门店角色",component:g()("enterprise","edit-store-role")},{path:"/superAdmin",name:"超级管理员",component:g()("enterprise","super-admin")}]},{path:"/app-controls",meta:{title:"工作台"},redirect:"/app-list",component:g()("app-controls","index"),children:[{path:"/app-list",meta:{title:"服务应用"},component:g()("app-controls","app-list")},{path:"/app-detail",meta:{title:"服务应用详情"},component:g()("app-controls","app-detail")}]},{path:"/apps",name:"企业应用",component:g()("apps","index"),children:[{path:"/my-customer",name:"我的顾客",component:g()("apps/customer-app","index"),children:[{path:"/data-dimension",name:"数据维度",component:g()("apps/customer-app","data-dimension")},{path:"/crowd-scene",name:"人群场景",component:g()("apps/customer-app","crowd-scene")},{path:"/customer-data-set",name:"顾客资料",component:g()("apps/customer-app","customer-data-set")},{path:"/clerk-tag",name:"导购标签",component:g()("apps/customer-app","clerk-tag")},{path:"/customer-assign",name:"顾客分配",component:g()("apps/customer-app","customer-assign")}]}]},{path:"/gic-error",name:"gic跳转失败页",component:g()("error-page","gic-error")},{path:"/403",name:"无权访问",component:v},{path:"/404",name:"error404",component:v},{path:"/500",name:"error500",component:v},{path:"*",redirect:"/404",hidden:!0}],y=r["a"].prototype.push;r["a"].prototype.push=function(e){return y.call(this,e).catch((function(e){return e}))};var x=new r["a"]({routes:w}),M=x,S=(t("c5f6"),t("3b2b"),t("a481"),t("6b54"),function(e,n){if(!e)return"";e=10===e.toString().length?1e3*e:e;var t=new Date(e),c={"M+":t.getMonth()+1,"D+":t.getDate(),W:"日一二三四五六".charAt(t.getDay()),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var a in/(Y+)/.test(n)&&(n=n.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),c)new RegExp("("+a+")").test(n)&&(n=n.replace(RegExp.$1,1===RegExp.$1.length?c[a]:("00"+c[a]).substr((""+c[a]).length)));return n}),O=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t,r=n.getHours()<10?"0"+n.getHours():n.getHours(),u=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),o=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(n.getFullYear(),"-").concat(a,"-").concat(c," ").concat(r,":").concat(u,":").concat(o)},D=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t,r=n.getHours()<10?"0"+n.getHours():n.getHours(),u=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),o=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(n.getFullYear(),".").concat(a,".").concat(c," ").concat(r,":").concat(u,":").concat(o)},j=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(c)},A=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(a,"-").concat(c)},E=function(e){if(!e)return"";var n=new Date(e),t=n.getHours()<10?"0"+n.getHours():n.getHours(),c=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),a=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(t,":").concat(c,":").concat(a)},P=function(e){if(!e)return"";var n=new Date,t=new Date(Number(e)).getTime()-n.getTime();if(t<0)return"";var c=Math.floor(t/864e5),a=t%864e5,r=Math.floor(a/36e5),u=a%36e5,o=Math.floor(u/6e4);return"".concat(c,"天").concat(r,"小时").concat(o,"分")},T=function(e){return e?(e=e.toString(),e.substr(0,3)+"****"+e.substr(7,11)):""},C=function(e){return e?(e=e.toString(),"**"+e.substr(e.length-1,e.length)):""},H=function(e){return e?(e=e.toString(),e.length>6?e.substr(0,5)+"...":e):""},L=function(e){if(!e)return"00:00:00";var n=e/1e3,t=Math.floor(n/60/60/24),c=24*t+Math.floor(n/60/60)%24<10?"0"+(24*t+Math.floor(n/60/60)%24):24*t+Math.floor(n/60/60)%24,a=Math.floor(n/60)%60<10?"0"+Math.floor(n/60)%60:Math.floor(n/60)%60,r=Math.floor(n)%60<10?"0"+Math.floor(n)%60:Math.floor(n)%60;return"".concat(c,":").concat(a,":").concat(r)},_={dateFormat:S,formatTimeStamp:O,timeStampToYm:j,timeStampToYmd:A,timeStampToHms:E,formatTimeYmdHms:D,formatPhoneNum:T,formatName:C,timeStampSpace:P,formatTime:L,formatWord:H},F=(t("96cf"),t("1da1")),N=(t("5df3"),t("b775")),R=[],Y=[],$={};function U(){var e=new Promise((function(e){Object(N["a"])({url:"/hb-manage-web/list-staff-role-menu"}).then((function(e){Y=q(e.result||[])})).finally(e)})),n=new Promise((function(e){Object(N["a"])({url:"/hb-manage-web/list-staff-role-opeation"}).then((function(e){$=B(e.result||[])})).finally(e)}));return Promise.all([e,n])}function q(e){var n=[];return e.forEach((function(e){e.menuUrl&&n.push(e.menuUrl),Array.isArray(e.children)&&(n=n.concat(q(e.children)))})),n}function B(e){var n={};return e.forEach((function(e){n[e.menuCode]=!0})),n}function I(e){var n=[];return e.forEach((function(e){Array.isArray(e.children)&&(n=n.concat(I(e.children))),n.push(e.path)})),n}function J(e,n,t){var c=Y.some((function(n){return n.indexOf("/#")>=0?n=="/#".concat(e.path):n==e.path}));if(c)return t();R.some((function(n){return n==e.path}))||0==Y.length?t("/gic-error"):t(Y[0])}function W(e){return!!$[e]}var K=function(e){var n=e.whiteRoute,t=e.router,c=e.routes,a=e.createApp;window.onload=Object(F["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=window.location.href,-1!=r.indexOf("/login")||-1!=r.indexOf("/gic-error")){e.next=4;break}return e.next=4,U();case 4:Array.isArray(n)&&(Y=Y.concat(n)),Array.isArray(c)&&(R=I(c)),t.beforeEach(J),"function"==typeof a&&a();case 8:case"end":return e.stop()}}),e)})))},V=t("f121");a.a.use(r["a"]),a.a.use(d.a),o.a.defaults.withCredentials=!0,a.a.prototype.axios=o.a,a.a.prototype.$itemPerm=W,a.a.prototype.$itemCode=V["a"],a.a.config.devtools=!1,a.a.config.productionTip=!1,Object.keys(_).forEach((function(e){a.a.filter(e,_[e])})),K({whiteRoute:["/login","/contactsList","/apps","/gic-error","/403","/404","/500"],router:M,routes:w,createApp:function(){new a.a({router:M,render:function(e){return e(l)}}).$mount("#app")}})},"8bbf":function(e,n){e.exports=Vue},b775:function(e,n,t){"use strict";t.d(n,"a",(function(){return d}));var c=t("cebe"),a=t.n(c),r=t("4328"),u=t.n(r),o=t("5c96"),i=t("f121");a.a.defaults.baseURL=i["c"],a.a.defaults.withCredentials=!0;var d=function(e,n){n=Object.assign({},n),e=Object.assign({},e);var t={url:"",params:"",data:"",method:"get",useFormData:!1,useIntercept:!0,headers:{}};switch(t=Object.assign(t,e),t.useFormData&&(n=u.a.stringify(n)),t.method.toLowerCase()){case"get":t.params=n;break;case"post":t.data=n;break;default:t.data=n;break}return new Promise((function(e,n){a()(t).then((function(c){var a=c.data;return a.code==i["b"]?(window.location.href="".concat(i["c"],"/haoban-4/#/login"),n(a)):t.useIntercept&&a.code!=i["d"]?(Object(o["Message"])({message:a.message||"未知错误",type:"warning"}),n(a)):void e(a)})).catch((function(e){var t=e.response||{},c=t.data||{};Object(o["Message"])({message:c.message||"未知错误",type:"warning"}),n(e)}))}))}},cebe:function(e,n){e.exports=axios},d31c:function(e,n,t){},e2b2:function(e,n,t){e.exports=function(e,n){return function(c){t("1a5d")("./"+e+"/"+n+".vue").then((function(e){c(e)}))}}},f121:function(e,n,t){"use strict";function c(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}t.d(n,"c",(function(){return a})),t.d(n,"d",(function(){return r})),t.d(n,"b",(function(){return u})),t.d(n,"a",(function(){return o}));var a=c(),r="0000",u="0003",o={batchAudit:"batchAudit"}}});
\ No newline at end of file
(function(e){function n(n){for(var c,a,o=n[0],i=n[1],f=n[2],s=0,d=[];s<o.length;s++)a=o[s],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&d.push(r[a][0]),r[a]=0;for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&(e[c]=i[c]);h&&h(n);while(d.length)d.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,n=0;n<u.length;n++){for(var t=u[n],c=!0,a=1;a<t.length;a++){var o=t[a];0!==r[o]&&(c=!1)}c&&(u.splice(n--,1),e=i(i.s=t[0]))}return e}var c={},a={app:0},r={app:0},u=[];function o(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-064f007c":"cca954a8","chunk-06fd5be4":"f139d32f","chunk-4782fef8":"e2427178","chunk-2b9acf53":"cbeb40f6","chunk-fe2e4af2":"dbb4ae1d","chunk-82c9081e":"f1f28438","chunk-173d2f0c":"c5f2ecc6","chunk-1cc109e4":"d85863d4","chunk-2351fb9b":"8f3632bd","chunk-261261c7":"bc250a5a","chunk-28575e65":"2934bbaf","chunk-2d0f5358":"a4e13071","chunk-302ac66a":"784ddc9a","chunk-30f81def":"ad856fca","chunk-32d6ccb7":"fb59b610","chunk-34a8e7a5":"7d94842d","chunk-35e6f8fc":"e0a48957","chunk-37259986":"f844e1c7","chunk-39362334":"e86efdc8","chunk-40e8a9a0":"45f02e2c","chunk-4b898c1e":"1776e041","chunk-4d95ae81":"7c9b156a","chunk-4ddcd773":"0014a155","chunk-50f71fea":"b4f25ec6","chunk-52de3f88":"38089c38","chunk-65356317":"88e3df09","chunk-69be4950":"75cfb2c7","chunk-6dfc1c36":"3daf41cf","chunk-6f32e3dc":"bd190efc","chunk-717fd052":"3eaa3533","chunk-71df8cfa":"d056e7cd","chunk-769c26e2":"50d13382","chunk-78b3ccdb":"e609fd23","chunk-7c18fb37":"3ecac0cc","chunk-7e20a98d":"e9361ba0","chunk-81c7fbf0":"fd621299","chunk-b073f330":"e8356f25","chunk-b1fb551c":"e022603e","chunk-b9a7d4fe":"3cf8fd52","chunk-ba1c12aa":"7f20ac59","chunk-c2d4f890":"8fdfad26","chunk-e81c0d56":"685880f8","chunk-d09caf5c":"40f5ae00","chunk-fb47ac00":"a95d8c23","chunk-f4b91c90":"97ddbee5"}[e]+".js"}function i(n){if(c[n])return c[n].exports;var t=c[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-064f007c":1,"chunk-4782fef8":1,"chunk-2b9acf53":1,"chunk-fe2e4af2":1,"chunk-82c9081e":1,"chunk-173d2f0c":1,"chunk-1cc109e4":1,"chunk-2351fb9b":1,"chunk-261261c7":1,"chunk-28575e65":1,"chunk-2d0f5358":1,"chunk-302ac66a":1,"chunk-30f81def":1,"chunk-32d6ccb7":1,"chunk-34a8e7a5":1,"chunk-35e6f8fc":1,"chunk-37259986":1,"chunk-39362334":1,"chunk-40e8a9a0":1,"chunk-4b898c1e":1,"chunk-4d95ae81":1,"chunk-4ddcd773":1,"chunk-50f71fea":1,"chunk-52de3f88":1,"chunk-65356317":1,"chunk-69be4950":1,"chunk-6dfc1c36":1,"chunk-6f32e3dc":1,"chunk-717fd052":1,"chunk-71df8cfa":1,"chunk-769c26e2":1,"chunk-78b3ccdb":1,"chunk-7c18fb37":1,"chunk-7e20a98d":1,"chunk-81c7fbf0":1,"chunk-b073f330":1,"chunk-b1fb551c":1,"chunk-b9a7d4fe":1,"chunk-ba1c12aa":1,"chunk-c2d4f890":1,"chunk-e81c0d56":1,"chunk-d09caf5c":1,"chunk-fb47ac00":1,"chunk-f4b91c90":1};a[e]?n.push(a[e]):0!==a[e]&&t[e]&&n.push(a[e]=new Promise((function(n,t){for(var c="css/"+({}[e]||e)+"."+{"chunk-064f007c":"c42ef571","chunk-06fd5be4":"31d6cfe0","chunk-4782fef8":"8c02be36","chunk-2b9acf53":"b4621154","chunk-fe2e4af2":"98b3b0d2","chunk-82c9081e":"c3dfcb1a","chunk-173d2f0c":"db2396dd","chunk-1cc109e4":"d4e92463","chunk-2351fb9b":"6efba3e1","chunk-261261c7":"ea49d269","chunk-28575e65":"a813b5f3","chunk-2d0f5358":"79adbaee","chunk-302ac66a":"c5a30faf","chunk-30f81def":"134f322f","chunk-32d6ccb7":"10b34206","chunk-34a8e7a5":"3a1368a9","chunk-35e6f8fc":"8d54f626","chunk-37259986":"34356bc6","chunk-39362334":"c233899e","chunk-40e8a9a0":"fd78a14e","chunk-4b898c1e":"07d02776","chunk-4d95ae81":"d3090a82","chunk-4ddcd773":"9fc591fa","chunk-50f71fea":"be3a3db1","chunk-52de3f88":"7f8e8b41","chunk-65356317":"034577e3","chunk-69be4950":"5769d53d","chunk-6dfc1c36":"effcfd5e","chunk-6f32e3dc":"b27b0c13","chunk-717fd052":"7f6fc630","chunk-71df8cfa":"cabba392","chunk-769c26e2":"1376fd41","chunk-78b3ccdb":"7a2a10c9","chunk-7c18fb37":"93e19818","chunk-7e20a98d":"0b6786a8","chunk-81c7fbf0":"7a5e892c","chunk-b073f330":"b7424a51","chunk-b1fb551c":"db2396dd","chunk-b9a7d4fe":"4b46a7ff","chunk-ba1c12aa":"813bfa0b","chunk-c2d4f890":"7e26fbb5","chunk-e81c0d56":"d1685639","chunk-d09caf5c":"57292024","chunk-fb47ac00":"8a1ddd0f","chunk-f4b91c90":"030efe69"}[e]+".css",r=i.p+c,u=document.getElementsByTagName("link"),o=0;o<u.length;o++){var f=u[o],s=f.getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(s===c||s===r))return n()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){f=d[o],s=f.getAttribute("data-href");if(s===c||s===r)return n()}var h=document.createElement("link");h.rel="stylesheet",h.type="text/css",h.onload=n,h.onerror=function(n){var c=n&&n.target&&n.target.src||r,u=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=c,delete a[e],h.parentNode.removeChild(h),t(u)},h.href=r;var p=document.getElementsByTagName("head")[0];p.appendChild(h)})).then((function(){a[e]=0})));var c=r[e];if(0!==c)if(c)n.push(c[2]);else{var u=new Promise((function(n,t){c=r[e]=[n,t]}));n.push(c[2]=u);var f,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=o(e);var d=new Error;f=function(n){s.onerror=s.onload=null,clearTimeout(h);var t=r[e];if(0!==t){if(t){var c=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;d.message="Loading chunk "+e+" failed.\n("+c+": "+a+")",d.name="ChunkLoadError",d.type=c,d.request=a,t[1](d)}r[e]=void 0}};var h=setTimeout((function(){f({type:"timeout",target:s})}),12e4);s.onerror=s.onload=f,document.head.appendChild(s)}return Promise.all(n)},i.m=e,i.c=c,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var c in e)i.d(t,c,function(n){return e[n]}.bind(null,c));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="",i.oe=function(e){throw e};var f=window["webpackJsonp"]=window["webpackJsonp"]||[],s=f.push.bind(f);f.push=n,f=f.slice();for(var d=0;d<f.length;d++)n(f[d]);var h=s;u.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){t("db4d"),e.exports=t("56d7")},"1a5d":function(e,n,t){var c={"./app-controls/app-detail.vue":["9bc6","chunk-40e8a9a0"],"./app-controls/app-list.vue":["4a78","chunk-78b3ccdb"],"./app-controls/index.vue":["b04c","chunk-b1fb551c"],"./apps/customer-app/clerk-tag.vue":["b5b0","chunk-06fd5be4","chunk-4782fef8","chunk-fe2e4af2"],"./apps/customer-app/crowd-scene.vue":["c7d7","chunk-06fd5be4","chunk-4782fef8","chunk-2b9acf53"],"./apps/customer-app/customer-assign.vue":["12eb","chunk-302ac66a"],"./apps/customer-app/customer-data-set.vue":["3cf8","chunk-2d0f5358"],"./apps/customer-app/customer-show-set.vue":["f766","chunk-769c26e2"],"./apps/customer-app/data-dimension.vue":["55f3","chunk-06fd5be4","chunk-82c9081e"],"./apps/customer-app/index.vue":["c3d9","chunk-4ddcd773"],"./apps/index.vue":["7f2e","chunk-69be4950"],"./business/audit-log.vue":["0912","chunk-81c7fbf0"],"./business/auth-merchant.vue":["56b3","chunk-52de3f88"],"./business/contacts.vue":["a269","chunk-50f71fea"],"./business/index.vue":["50c8","chunk-65356317"],"./business/new-auth-merchant.vue":["62a7","chunk-e81c0d56","chunk-d09caf5c"],"./business/sync-log.vue":["b155","chunk-b9a7d4fe"],"./enterprise/admin-list.vue":["db80","chunk-f4b91c90"],"./enterprise/admin-list/role-list.vue":["0082","chunk-b073f330"],"./enterprise/edit-admin.vue":["7dc6","chunk-e81c0d56","chunk-fb47ac00"],"./enterprise/edit-role.vue":["2249","chunk-1cc109e4"],"./enterprise/edit-role/menu-tree.vue":["a088","chunk-34a8e7a5"],"./enterprise/edit-store-role.vue":["a960","chunk-71df8cfa"],"./enterprise/enterprise-set.vue":["b735","chunk-7e20a98d"],"./enterprise/index.vue":["ea02","chunk-28575e65"],"./enterprise/store-admin-list.vue":["2058","chunk-6f32e3dc"],"./enterprise/super-admin.vue":["9b74","chunk-c2d4f890"],"./error-page/403.vue":["5140","chunk-ba1c12aa"],"./error-page/404.vue":["1db4","chunk-2351fb9b"],"./error-page/500.vue":["721c","chunk-6dfc1c36"],"./error-page/gic-error.vue":["442d","chunk-37259986"],"./error-page/index.vue":["4cf1","chunk-7c18fb37"],"./index/index.vue":["37f9","chunk-35e6f8fc"],"./login/index.vue":["9ed6","chunk-39362334"],"./review-center/audit-config.vue":["daa8","chunk-4b898c1e"],"./review-center/audit-group-list.vue":["ff23","chunk-064f007c"],"./review-center/audit-item-list.vue":["727c","chunk-4d95ae81"],"./review-center/create-audit-group.vue":["ea11","chunk-32d6ccb7"],"./review-center/create-audit-item.vue":["e0c0","chunk-30f81def"],"./review-center/index.vue":["2cad","chunk-173d2f0c"],"./review-center/reviewed.vue":["dacc","chunk-261261c7"],"./review-center/unreview.vue":["1005","chunk-717fd052"]};function a(e){if(!t.o(c,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=c[e],a=n[0];return Promise.all(n.slice(1).map(t.e)).then((function(){return t(a)}))}a.keys=function(){return Object.keys(c)},a.id="1a5d",e.exports=a},"4f94":function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);t("456d"),t("ac6a"),t("cadf"),t("551c"),t("f751"),t("097d"),t("db4d"),t("0fae"),t("4f94"),t("d31c");var c=t("8bbf"),a=t.n(c),r=t("8c4f"),u=t("cebe"),o=t.n(u),i=t("5c96"),f=t.n(i),s=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"dm-reset",attrs:{id:"app"}},[t("router-view")],1)},d=[],h={name:"App"},p=h,m=t("2877"),l=Object(m["a"])(p,s,d,!1,null,null,null),b=l.exports,k=t("e2b2"),g=t.n(k),v=function(e){t.e("chunk-7c18fb37").then(t.bind(null,"4cf1")).then((function(n){e(n)}))},w=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:g()("login","index")},{path:"/index",name:"index",component:g()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:g()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:g()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:g()("business","sync-log")},{path:"/authMerchant",name:"授权商户",component:g()("business","auth-merchant")},{path:"/newAuthMerchant",name:"新增授权",component:g()("business","new-auth-merchant")},{path:"/auditLog",name:"审核日志",component:g()("business","audit-log")}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:g()("review-center","index"),children:[{path:"/reviewed",name:"已审核",component:g()("review-center","reviewed")},{path:"/unreview",name:"未审核",component:g()("review-center","unreview")},{path:"/audit-group-list",meta:{title:"审核组列表"},component:g()("review-center","audit-group-list")},{path:"/create-audit-group",meta:{title:"新建、编辑审核组"},component:g()("review-center","create-audit-group")},{path:"/audit-item-list",meta:{title:"审核事项列表"},component:g()("review-center","audit-item-list")},{path:"/create-audit-item",meta:{title:"新建、编辑审核事项"},component:g()("review-center","create-audit-item")},{path:"/audit-config",meta:{title:"审核设置"},component:g()("review-center","audit-config")}]},{path:"/enterprise",name:"企业设置",redirect:"enterpriseSet",component:g()("enterprise","index"),children:[{path:"/enterpriseSet",name:"企业信息",component:g()("enterprise","enterprise-set")},{path:"/admin-list",name:"管理员",component:g()("enterprise","admin-list")},{path:"/edit-role",name:"新建、编辑角色",component:g()("enterprise","edit-role")},{path:"/edit-admin",name:"新建编辑管理员",component:g()("enterprise","edit-admin")},{path:"/store-admin-list",name:"门店角色",component:g()("enterprise","store-admin-list")},{path:"/edit-store-role",name:"编辑门店角色",component:g()("enterprise","edit-store-role")},{path:"/superAdmin",name:"超级管理员",component:g()("enterprise","super-admin")}]},{path:"/app-controls",meta:{title:"工作台"},redirect:"/app-list",component:g()("app-controls","index"),children:[{path:"/app-list",meta:{title:"服务应用"},component:g()("app-controls","app-list")},{path:"/app-detail",meta:{title:"服务应用详情"},component:g()("app-controls","app-detail")}]},{path:"/apps",name:"企业应用",component:g()("apps","index"),children:[{path:"/my-customer",name:"我的顾客",component:g()("apps/customer-app","index"),children:[{path:"/data-dimension",name:"数据维度",component:g()("apps/customer-app","data-dimension")},{path:"/crowd-scene",name:"人群场景",component:g()("apps/customer-app","crowd-scene")},{path:"/customer-data-set",name:"顾客资料",component:g()("apps/customer-app","customer-data-set")},{path:"/clerk-tag",name:"导购标签",component:g()("apps/customer-app","clerk-tag")},{path:"/customer-assign",name:"顾客分配",component:g()("apps/customer-app","customer-assign")}]}]},{path:"/gic-error",name:"gic跳转失败页",component:g()("error-page","gic-error")},{path:"/403",name:"无权访问",component:v},{path:"/404",name:"error404",component:v},{path:"/500",name:"error500",component:v},{path:"*",redirect:"/404",hidden:!0}],y=r["a"].prototype.push;r["a"].prototype.push=function(e){return y.call(this,e).catch((function(e){return e}))};var x=new r["a"]({routes:w}),M=x,S=(t("c5f6"),t("3b2b"),t("a481"),t("6b54"),function(e,n){if(!e)return"";e=10===e.toString().length?1e3*e:e;var t=new Date(e),c={"M+":t.getMonth()+1,"D+":t.getDate(),W:"日一二三四五六".charAt(t.getDay()),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var a in/(Y+)/.test(n)&&(n=n.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),c)new RegExp("("+a+")").test(n)&&(n=n.replace(RegExp.$1,1===RegExp.$1.length?c[a]:("00"+c[a]).substr((""+c[a]).length)));return n}),O=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t,r=n.getHours()<10?"0"+n.getHours():n.getHours(),u=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),o=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(n.getFullYear(),"-").concat(a,"-").concat(c," ").concat(r,":").concat(u,":").concat(o)},D=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t,r=n.getHours()<10?"0"+n.getHours():n.getHours(),u=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),o=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(n.getFullYear(),".").concat(a,".").concat(c," ").concat(r,":").concat(u,":").concat(o)},j=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(c)},A=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(a,"-").concat(c)},E=function(e){if(!e)return"";var n=new Date(e),t=n.getHours()<10?"0"+n.getHours():n.getHours(),c=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),a=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(t,":").concat(c,":").concat(a)},P=function(e){if(!e)return"";var n=new Date,t=new Date(Number(e)).getTime()-n.getTime();if(t<0)return"";var c=Math.floor(t/864e5),a=t%864e5,r=Math.floor(a/36e5),u=a%36e5,o=Math.floor(u/6e4);return"".concat(c,"天").concat(r,"小时").concat(o,"分")},T=function(e){return e?(e=e.toString(),e.substr(0,3)+"****"+e.substr(7,11)):""},C=function(e){return e?(e=e.toString(),"**"+e.substr(e.length-1,e.length)):""},H=function(e){return e?(e=e.toString(),e.length>6?e.substr(0,5)+"...":e):""},L=function(e){if(!e)return"00:00:00";var n=e/1e3,t=Math.floor(n/60/60/24),c=24*t+Math.floor(n/60/60)%24<10?"0"+(24*t+Math.floor(n/60/60)%24):24*t+Math.floor(n/60/60)%24,a=Math.floor(n/60)%60<10?"0"+Math.floor(n/60)%60:Math.floor(n/60)%60,r=Math.floor(n)%60<10?"0"+Math.floor(n)%60:Math.floor(n)%60;return"".concat(c,":").concat(a,":").concat(r)},_={dateFormat:S,formatTimeStamp:O,timeStampToYm:j,timeStampToYmd:A,timeStampToHms:E,formatTimeYmdHms:D,formatPhoneNum:T,formatName:C,timeStampSpace:P,formatTime:L,formatWord:H},F=(t("96cf"),t("1da1")),N=(t("5df3"),t("b775")),R=[],Y=[],$={};function U(){var e=new Promise((function(e){Object(N["a"])({url:"/hb-manage-web/list-staff-role-menu"}).then((function(e){Y=q(e.result||[])})).finally(e)})),n=new Promise((function(e){Object(N["a"])({url:"/hb-manage-web/list-staff-role-opeation"}).then((function(e){$=B(e.result||[])})).finally(e)}));return Promise.all([e,n])}function q(e){var n=[];return e.forEach((function(e){e.menuUrl&&n.push(e.menuUrl),Array.isArray(e.children)&&(n=n.concat(q(e.children)))})),n}function B(e){var n={};return e.forEach((function(e){n[e.menuCode]=!0})),n}function I(e){var n=[];return e.forEach((function(e){Array.isArray(e.children)&&(n=n.concat(I(e.children))),n.push(e.path)})),n}function J(e,n,t){var c=Y.some((function(n){return n.indexOf("/#")>=0?n=="/#".concat(e.path):n==e.path}));if(c)return t();R.some((function(n){return n==e.path}))||0==Y.length?t("/gic-error"):t(Y[0])}function W(e){return!!$[e]}var K=function(e){var n=e.whiteRoute,t=e.router,c=e.routes,a=e.createApp;window.onload=Object(F["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=window.location.href,-1!=r.indexOf("/login")||-1!=r.indexOf("/gic-error")){e.next=4;break}return e.next=4,U();case 4:Array.isArray(n)&&(Y=Y.concat(n)),Array.isArray(c)&&(R=I(c)),t.beforeEach(J),"function"==typeof a&&a();case 8:case"end":return e.stop()}}),e)})))},V=t("f121");a.a.use(r["a"]),a.a.use(f.a),o.a.defaults.withCredentials=!0,a.a.prototype.axios=o.a,a.a.prototype.$itemPerm=W,a.a.prototype.$itemCode=V["a"],a.a.config.devtools=!1,a.a.config.productionTip=!1,Object.keys(_).forEach((function(e){a.a.filter(e,_[e])})),K({whiteRoute:["/login","/contactsList","/apps","/gic-error","/403","/404","/500"],router:M,routes:w,createApp:function(){new a.a({router:M,render:function(e){return e(b)}}).$mount("#app")}})},"8bbf":function(e,n){e.exports=Vue},b775:function(e,n,t){"use strict";t.d(n,"a",(function(){return f}));var c=t("cebe"),a=t.n(c),r=t("4328"),u=t.n(r),o=t("5c96"),i=t("f121");a.a.defaults.baseURL=i["c"],a.a.defaults.withCredentials=!0;var f=function(e,n){n=Object.assign({},n),e=Object.assign({},e);var t={url:"",params:"",data:"",method:"get",useFormData:!1,useIntercept:!0,headers:{}};switch(t=Object.assign(t,e),t.useFormData&&(n=u.a.stringify(n)),t.method.toLowerCase()){case"get":t.params=n;break;case"post":t.data=n;break;default:t.data=n;break}return new Promise((function(e,n){a()(t).then((function(c){var a=c.data;return a.code==i["b"]?(window.location.href="".concat(i["c"],"/haoban-4/#/login"),n(a)):t.useIntercept&&a.code!=i["d"]?(Object(o["Message"])({message:a.message||"未知错误",type:"warning"}),n(a)):void e(a)})).catch((function(e){var t=e.response||{},c=t.data||{};Object(o["Message"])({message:c.message||"未知错误",type:"warning"}),n(e)}))}))}},cebe:function(e,n){e.exports=axios},d31c:function(e,n,t){},e2b2:function(e,n,t){e.exports=function(e,n){return function(c){t("1a5d")("./"+e+"/"+n+".vue").then((function(e){c(e)}))}}},f121:function(e,n,t){"use strict";function c(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}t.d(n,"c",(function(){return a})),t.d(n,"d",(function(){return r})),t.d(n,"b",(function(){return u})),t.d(n,"a",(function(){return o}));var a=c(),r="0000",u="0003",o={batchAudit:"batchAudit"}}});
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-34a8e7a5"],{"4ab3":function(e,n,t){},a088:function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"menu-tree"},[t("ul",{staticClass:"first-menu"},[0==e.menuList.length?t("li",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.menuList,(function(n){return t("li",{key:n.menuId,class:["first-menu-item",{active:n.menuId==e.activeMenuId}],on:{click:function(t){return e.onMenuChange(n)}}},[e.isApp?t("el-checkbox",{attrs:{value:e.appIds.some((function(e){return e.appId==n.project&&1==e.openFlag}))},on:{change:function(t){return e.onAppOpenChange(n.project,t)}}}):e._e(),e._v("\n "+e._s(n.menuName)+"\n ")],1)}))],2),t("div",{staticClass:"all-menu"},[t("el-tree",{ref:"menuList",attrs:{data:e.treeData,"show-checkbox":"","default-expand-all":"","node-key":"menuId","expand-on-click-node":!1,"check-on-click-node":!0,props:{label:"menuName"},"default-checked-keys":e.checkedId[e.activeMenuId]},on:{"node-click":e.onNodeClick,check:e.onNodeClick}})],1)])},c=[],i=(t("c5f6"),t("ac6a"),{name:"MenuTree",props:{menuList:Array,checkedId:Object,appIds:Array,isApp:Boolean},data:function(){return{activeMenuId:"",treeData:[]}},methods:{onMenuChange:function(e){this.activeMenuId=e?e.menuId:"",this.treeData=e?[e]:[]},onNodeClick:function(){this.onChange(this.$refs.menuList.getCheckedKeys())},getAllMenuId:function(e){var n=this,t=[];return e.forEach((function(e){t.push(e.menuId),Array.isArray(e.children)&&(t=t.concat(n.getAllMenuId(e.children)))})),t},onChange:function(e){var n={};n[this.activeMenuId]=e,this.$emit("change",Object.assign({},this.checkedId,n))},onAppOpenChange:function(e,n){var t=this.appIds.map((function(t){var a=Object.assign({},t);return a.appId==e&&(a.openFlag=Number(n)),a}));this.$emit("app-open-change",t)}},watch:{checkedId:{deep:!0,handler:function(e){this.$refs.menuList.setCheckedKeys(e[this.activeMenuId]||[])}},menuList:{immediate:!0,handler:function(e){this.onMenuChange(e[0])}}}}),s=i,u=(t("b2eb"),t("2877")),o=Object(u["a"])(s,a,c,!1,null,"19fa0aa2",null);n["default"]=o.exports},b2eb:function(e,n,t){"use strict";var a=t("4ab3"),c=t.n(a);c.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-04441caa"],{"4ab3":function(e,n,t){},a088:function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"menu-tree"},[t("ul",{staticClass:"first-menu"},[0==e.menuList.length?t("li",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.menuList,(function(n){return t("li",{key:n.menuId,class:["first-menu-item",{active:n.menuId==e.activeMenuId}],on:{click:function(t){return e.onMenuChange(n)}}},[e.isApp?t("el-checkbox",{attrs:{value:e.appIds.some((function(e){return e.appId==n.project&&1==e.openFlag}))},on:{change:function(t){return e.onAppOpenChange(n.project,t)}}}):e._e(),e._v("\n "+e._s(n.menuName)+"\n ")],1)}))],2),t("div",{staticClass:"all-menu"},[t("el-tree",{ref:"menuList",attrs:{data:e.treeData,"show-checkbox":"","default-expand-all":"","node-key":"menuId","expand-on-click-node":!1,"check-on-click-node":!0,props:{label:"menuName"},"default-checked-keys":e.checkedId[e.activeMenuId]},on:{"node-click":e.onNodeClick,check:e.onNodeClick}})],1)])},c=[],i=(t("c5f6"),t("ac6a"),{name:"MenuTree",props:{menuList:Array,checkedId:Object,appIds:Array,isApp:Boolean},data:function(){return{activeMenuId:"",treeData:[]}},methods:{onMenuChange:function(e){this.activeMenuId=e?e.menuId:"",this.treeData=e?[e]:[]},onNodeClick:function(){this.onChange(this.$refs.menuList.getCheckedKeys())},getAllMenuId:function(e){var n=this,t=[];return e.forEach((function(e){t.push(e.menuId),Array.isArray(e.children)&&(t=t.concat(n.getAllMenuId(e.children)))})),t},onChange:function(e){var n={};n[this.activeMenuId]=e,this.$emit("change",Object.assign({},this.checkedId,n))},onAppOpenChange:function(e,n){var t=this.appIds.map((function(t){var a=Object.assign({},t);return a.appId==e&&(a.openFlag=Number(n)),a}));this.$emit("app-open-change",t)}},watch:{checkedId:{deep:!0,handler:function(e){this.$refs.menuList.setCheckedKeys(e[this.activeMenuId]||[])}},menuList:{immediate:!0,handler:function(e){this.onMenuChange(e[0])}}}}),s=i,u=(t("b2eb"),t("2877")),o=Object(u["a"])(s,a,c,!1,null,"19fa0aa2",null);n["default"]=o.exports},b2eb:function(e,n,t){"use strict";var a=t("4ab3"),c=t.n(a);c.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b289536"],{"46e5":function(t,e,a){},"503e":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"p-t-12"},[a("ul",{staticClass:"tab-left-list"},[t._l(t.tabData,(function(e,n){return[a("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",e.menuUrl!=t.activeTab||e.children&&e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,!1,n)}}},[a("i",{class:["p-r-10 color-303133 iconfont",e.iconUrl,(e.onlyIconActive,"")]}),t._v(t._s(e.tabName||e.menuName)+"\n ")]),a("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[t._l(e.children,(function(e,i){return[a("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",e.menuUrl!=t.activeTab||e.children&&e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,"child",n)}}},[t._v(t._s(e.tabName||e.menuName))]),a("ul",{key:"thirditem"+i,staticClass:"third-tab-left-list"},[t._l(e.children,(function(e,i){return[a("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",e.menuUrl!=t.activeTab||e.children&&e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,"child",n)}}},[t._v(t._s(e.tabName||e.menuName))])]}))],2)]}))],2)]}))],2)])},i=[],r=(a("ac6a"),a("c5f6"),{name:"CommonDetailLeft",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return""}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData,collapsFlag:!0}},mounted:function(){this.activeTab=this.activeSelTab},methods:{selectTab:function(t,e,a){var n=this;if(e?n.tabData[a].onlyIconActive=!0:(n.tabData.forEach((function(t){t.onlyIconActive=!1})),t.hasOwnProperty("children")&&t.children.length&&(n.collapsFlag=!(n.collapsFlag&&t.hasOwnProperty("children")&&t.children.length))),t.hasOwnProperty("children")&&t.children.length)return n.tabData[a].onlyIconActive=!0,t.children[0]&&t.children[0].hasOwnProperty("children")&&t.children[0].children.length?(n.activeTab=t.children[0].children[0].menuUrl,n.$emit("setSelectTab",t.children[0].children[0]),!1):(n.activeTab=t.children[0].menuUrl,n.$emit("setSelectTab",t.children[0]),!1);n.activeTab=t.menuUrl,n.$emit("setSelectTab",t)}},watch:{tabListData:function(t,e){var a=this;a.tabData=t},activeSelTab:function(t,e){var a=this;a.activeTab=t}}}),c=r,o=(a("6255"),a("2877")),l=Object(o["a"])(c,n,i,!1,null,"61fa9846",null);e["a"]=l.exports},"57fc":function(t,e,a){},6255:function(t,e,a){"use strict";var n=a("57fc"),i=a.n(n);i.a},"6ec8":function(t,e,a){"use strict";var n=a("8c80"),i=a.n(n);i.a},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));a("ac6a"),a("456d");var n=a("b775");function i(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var i=t[a];"string"===typeof i&&(i={url:i}),i.url="".concat(e).concat(i.url),t[a]=function(t){return Object(n["a"])(i,t)}})),t}},"8c80":function(t,e,a){},"96b6":function(t,e,a){"use strict";var n=a("71f6"),i={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};i=Object(n["a"])(i,"/hb-manage-web"),e["a"]=i},c3d9:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("common-detail-left",{attrs:{"tab-list-data":t.tabListData,"active-sel-tab":t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{"brand-id":t.activeBrand,"active-group-id":t.activeGroup,"tab-type":t.activeTab},on:{showTab:t.showTab}})],1)],1)])])])],1)},i=[],r=(a("ac6a"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-wrap border-box flex flex-space-between"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,(function(e,n){return[e.path?[a("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[a("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]}))],2),a("div",{staticClass:"my-customer-brand"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"不同商户的工作台可分别进行管理。点击后切换,可以管理不同商户下的应用",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("授权商户名称 ")])]),a("el-select",{staticClass:"p-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.activeBrand,callback:function(e){t.activeBrand=e},expression:"activeBrand"}},t._l(t.brandListData,(function(t){return a("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})})),1)],1)],1)}),c=[],o=a("96b6"),l=o["a"].getWxEnterprise,s={name:"NavAppPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"haoban",wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",activeBrand:"",brandListData:[]}},mounted:function(){var t=this;t.getBrandData()},methods:{changeRoute:function(t,e){var a=this;e?window.location.href=t:a.$router.push(t)},changeSelect:function(t){var e=this,a="";e.brandListData.forEach((function(e){e.enterpriseId==t&&(a=e.enterpriseId)})),e.$emit("selectBrandId",t,a)},getBrandData:function(){var t=this;l({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){if(e.result&&e.result.length){if(t.brandListData=e.result,t.$route.query.enterpriseId)return t.activeBrand=t.$route.query.enterpriseId,t.$emit("selectBrandId",t.$route.query.enterpriseId),!1;t.activeBrand=t.brandListData[0].enterpriseId,t.$emit("selectBrandId",t.brandListData[0].enterpriseId,t.brandListData[0].enterpriseId)}})).catch((function(t){}))}},watch:{brandId:function(t,e){var a=this;a.getBrandData()}}},u=s,d=(a("f962"),a("2877")),p=Object(d["a"])(u,r,c,!1,null,"1205f312",null),h=p.exports,f=a("503e"),b={name:"Reviewed",components:{navCrumb:h,commonDetailLeft:f["a"]},props:{appMenuData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/app-list"},{name:"我的顾客",path:""}],tabListData:[],activeBrand:"",activeGroup:""}},mounted:function(){var t=this;t.tabListData=JSON.parse(JSON.stringify(t.appMenuData)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{selectBrandId:function(t,e){var a=this;a.activeBrand=t,a.activeGroup=e},changeRoute:function(t){this.$router.push(t)},setSelectTab:function(t){var e=this;e.activeTab=t.menuUrl,1==t.target?-1!=t.menuUrl.indexOf("http")?window.open(t.menuUrl):window.open("/haoban-4/#".concat(t.menuUrl)):e.$router.push("".concat(t.menuUrl,"?applicationId=").concat(e.$route.query.applicationId))},showTab:function(t){var e=this;e.activeTab=t,e.activeSelTab=t,e.tabListData.forEach((function(e){e.menuUrl==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach((function(a){a.menuUrl==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach((function(a){a.menuUrl==t&&(e.onlyIconActive=!0)}))}))}))}},watch:{activeBrand:function(t,e){var a=this;a.activeBrand=t},appMenuData:function(t,e){var a=this;a.tabListData=JSON.parse(JSON.stringify(t))}}},m=b,v=(a("6ec8"),Object(d["a"])(m,n,i,!1,null,"dace1b8e",null));e["default"]=v.exports},f962:function(t,e,a){"use strict";var n=a("46e5"),i=a.n(n);i.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-14c0f460","chunk-b073f330"],{"0082":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("ul",{staticClass:"role-menu"},[Array.isArray(e.roleList)&&0!=e.roleList.length?e._e():o("li",{staticClass:"no-data"},[e._v("暂无数据")]),e._l(e.roleList,(function(t){return o("li",{key:t,class:["role-item",{active:e.activeRoleId==t.roleId}],on:{click:function(o){return e.onChangeRole(t)}}},[o("span",{staticClass:"role-name"},[e._v(e._s(t.roleName))]),o("el-dropdown",{attrs:{placement:"bottom-start"}},[o("i",{staticClass:"iconfont icongengduo edit-icon"}),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[o("el-dropdown-item",{nativeOn:{click:function(o){return e.onEditRole(t)}}},[e._v("编辑")]),e.showDelRoleButton?o("el-dropdown-item",{nativeOn:{click:function(o){return e.onDelRole(t)}}},[e._v("删除")]):e._e()],1)],1)],1)}))],2),o("el-dialog",{attrs:{visible:e.delRole.show,title:"删除角色",width:"600px"},on:{"update:visible":function(t){return e.$set(e.delRole,"show",t)},closed:e.onDelRoleClose}},[o("div",{staticClass:"del-role"},[o("i",{staticClass:"el-icon-warning"}),o("div",{staticClass:"del-role-content"},[o("p",{staticClass:"del-role-tip"},[e._v("确认删除“"+e._s(e.delRole.roleName)+"”角色吗?")]),o("p",{staticClass:"del-role-tip"},[e._v("请在输入框中输入该角色名称,以避免误操作。")]),o("el-input",{staticStyle:{"margin-top":"10px",width:"440px"},model:{value:e.delRole.roleNameInput,callback:function(t){e.$set(e.delRole,"roleNameInput","string"===typeof t?t.trim():t)},expression:"delRole.roleNameInput"}})],1)]),o("template",{slot:"footer"},[o("el-button",{on:{click:function(t){e.delRole.show=!1}}},[e._v("取消")]),o("el-button",{attrs:{type:"primary",loading:e.delRole.loading},on:{click:e.onDelRoleSure}},[e._v("确定")])],1)],2)],1)},i=[],a=(o("c5f6"),o("f286")),l=a["a"].delRole,r={name:"RoleList",props:{roleList:{type:Array,default:function(){return[]}},activeRoleId:[String,Number],showDelRoleButton:{type:Boolean,default:!1}},data:function(){return{delRole:{show:!1,loading:!1,roleId:"",roleName:"",roleNameInput:""}}},methods:{onChangeRole:function(e){this.$emit("change-role",e)},onEditRole:function(e){this.$emit("edit-role",e)},onDelRole:function(e){var t=e.roleId,o=e.roleName;Object.assign(this.delRole,{show:!0,roleId:t,roleName:o})},onDelRoleClose:function(){Object.assign(this.delRole,{roleId:"",roleName:"",roleNameInput:""})},onDelRoleSure:function(){var e=this,t=this.delRole,o=t.roleId,n=t.roleName,i=t.roleNameInput;return 0==i.length?this.$message.warning("请输入角色名称!"):n!=i?this.$message.warning("请输入正确的角色名称!"):(this.delRole.loading=!0,void l({roleId:o}).then((function(t){"0000"==t.code&&(e.$message.success("删除成功!"),e.$emit("del-role-succ",o==e.activeRoleId),e.delRole.show=!1)})).finally((function(){return e.delRole.loading=!1})))}}},s=r,c=(o("575f"),o("2877")),d=Object(c["a"])(s,n,i,!1,null,"7c337432",null);t["default"]=d.exports},"44e1":function(e,t,o){},"575f":function(e,t,o){"use strict";var n=o("44e1"),i=o.n(n);i.a},"71f6":function(e,t,o){"use strict";o.d(t,"a",(function(){return i}));o("ac6a"),o("456d");var n=o("b775");function i(e,t){e=e||{};var o=Object.keys(e);return o.forEach((function(o){var i=e[o];"string"===typeof i&&(i={url:i}),i.url="".concat(t).concat(i.url),e[o]=function(e){return Object(n["a"])(i,e)}})),e}},b6fa:function(e,t,o){"use strict";var n=o("e2aa"),i=o.n(n);i.a},db80:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"admin"},[o("div",{staticClass:"role-list"},[o("div",{staticClass:"add-role"},[o("el-button",{on:{click:function(t){return e.onEditRole()}}},[o("i",{staticClass:"iconfont icontianjiajiahaowubiankuang"}),e._v(" 新建管理角色")])],1),o("role-list",{attrs:{"role-list":e.roleList,"active-role-id":e.activeRoleId,"show-del-role-button":""},on:{"del-role-succ":e.onDelRoleSucc,"edit-role":e.onEditRole,"change-role":e.onChangeRole}})],1),o("div",{staticClass:"admin-list"},[o("h3",{staticClass:"admin-list-title"},[e._v("管理员列表")]),o("el-input",{staticStyle:{width:"277px"},attrs:{placeholder:"请输入姓名/账号/手机号码","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search,callback:function(t){e.search="string"===typeof t?t.trim():t},expression:"search"}}),o("el-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:e.toEditAdmin}},[e._v("添加管理员")]),o("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.adminList}},[o("el-table-column",{attrs:{label:"姓名",prop:"staffName",formatter:function(e,t,o){return o||"--"}}}),o("el-table-column",{attrs:{label:"账号",prop:"wxUserId",formatter:function(e,t,o){return o||"--"},"show-overflow-tooltip":""}}),o("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber",formatter:function(e,t,o){return o||"--"}}}),o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[o("el-button",{attrs:{type:"text"},on:{click:function(t){return e.toEditAdmin(n)}}},[e._v("管辖范围")]),o("el-button",{attrs:{type:"text"},on:{click:function(t){return e.onDelAdmin(n)}}},[e._v("删除")])]}}])})],1),e.pager.total>0?o("dm-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"size-change":e.onSizeChange,"current-change":e.onCurrentChange}}):e._e()],1)])},i=[],a=(o("386d"),o("0082")),l=o("f286"),r=l["a"].roleList,s=l["a"].roleAdminList,c=l["a"].delAdmin,d={name:"AdminList",components:{RoleList:a["default"]},data:function(){return{activeRoleId:"",roleList:[],search:"",pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1},adminList:[]}},created:function(){this.$emit("showTab","/admin-list"),this.getRoleList()},methods:{getRoleList:function(){var e=this;r({roleType:2}).then((function(t){e.roleList=t.result||[],e.roleList.length>0&&!e.activeRoleId&&(e.activeRoleId=e.roleList[0].roleId,e.getAdminList())}))},onEditRole:function(e){var t=e||{},o=t.roleId;this.$router.push("/edit-role".concat(o?"?roleId=".concat(o):""))},onChangeRole:function(e){this.activeRoleId=e.roleId,this.getAdminList()},onDelRoleSucc:function(e){e&&(this.activeRoleId=""),this.getRoleList()},getAdminList:function(){var e=this,t=this.pager,o=t.currentPage,n=t.pageSize,i={roleId:this.activeRoleId,search:this.search,pageNum:o,pageSize:n};s(i).then((function(t){var o=t.result||{},n=o.totalCount,i=o.result;e.pager.total=n,e.adminList=i||[]}))},onSearch:function(){this.pager.currentPage=1,this.getAdminList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},onCurrentChange:function(e){this.pager.currentPage=e,this.getAdminList()},toEditAdmin:function(e){var t=e||{},o=t.staffId,n=t.staffName;this.$router.push("/edit-admin?roleId=".concat(this.activeRoleId).concat(n?"&staffName=".concat(n):"").concat(o?"&staffId=".concat(o):""))},onDelAdmin:function(e){var t=this,o=e.staffName,n=e.staffId;this.$confirm("确定删除【 ".concat(o," 】吗?"),"提示",{type:"warning"}).then((function(){var e={staffId:n,roleId:t.activeRoleId};c(e).then((function(e){"0000"==e.code&&(t.$message.success("删除成功!"),t.pager.currentPage>1&&1==t.adminList.length&&t.pager.currentPage--,t.getAdminList())}))}))}}},u=d,f=(o("b6fa"),o("2877")),p=Object(f["a"])(u,n,i,!1,null,"2e313758",null);t["default"]=p.exports},e2aa:function(e,t,o){},f286:function(e,t,o){"use strict";var n=o("71f6"),i={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list",findAppSetting:"/find-application-setting",saveAppSetting:{url:"/save-application-setting",method:"post",useFormData:!0},findStoreRange:"/find-store-range",saveStoreRange:"/save-store-range"};t["a"]=Object(n["a"])(i,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-15b0a546"],{"25ac":function(t,a,e){"use strict";var i=e("5f62"),u=e.n(i);u.a},"5f62":function(t,a,e){},"71f6":function(t,a,e){"use strict";e.d(a,"a",(function(){return u}));e("ac6a"),e("456d");var i=e("b775");function u(t,a){t=t||{};var e=Object.keys(t);return e.forEach((function(e){var u=t[e];"string"===typeof u&&(u={url:u}),u.url="".concat(a).concat(u.url),t[e]=function(t){return Object(i["a"])(u,t)}})),t}},8175:function(t,a,e){"use strict";a["a"]=[{type:"3",title:"导购账号新增",desc:"能看到管辖范围内导购添加的审核事项"},{type:"1",title:"导购账号绑定",desc:"能看到管辖范围内导购账号绑定申请"}]},"96b6":function(t,a,e){"use strict";var i=e("71f6"),u={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};u=Object(i["a"])(u,"/hb-manage-web"),a["a"]=u},e0c0:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("el-form",{ref:"auditData",staticClass:"create-audit-item",attrs:{model:t.auditData,rules:t.auditDataRules,"label-width":"110px"}},[e("el-form-item",{attrs:{label:"审核组名称",prop:"auditGroupIds"}},[e("el-select",{staticStyle:{width:"480px"},attrs:{multiple:"","collapse-tags":""},model:{value:t.auditData.auditGroupIds,callback:function(a){t.$set(t.auditData,"auditGroupIds",a)},expression:"auditData.auditGroupIds"}},t._l(t.auditGroupList,(function(t){return e("el-option",{key:t.auditGroupId,attrs:{value:t.auditGroupId,label:t.auditGroupName}})})),1)],1),e("el-form-item",{attrs:{label:"审核事项",prop:"auditTypes"}},[e("el-checkbox-group",{model:{value:t.auditData.auditTypes,callback:function(a){t.$set(t.auditData,"auditTypes",a)},expression:"auditData.auditTypes"}},t._l(t.auditTypes,(function(a){return e("el-checkbox",{key:a.type,staticClass:"audit-types",attrs:{label:a.type}},[e("p",{staticClass:"audit-type-title"},[t._v(t._s(a.title))]),e("p",{staticClass:"audit-type-desc"},[t._v(t._s(a.desc))])])})),1)],1),e("el-form-item",{staticStyle:{"margin-top":"50px"}},[e("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.onSave}},[t._v(t._s(t.auditData.auditItemId?"保存":"确认新建"))])],1)],1)},u=[],d=(e("28a5"),e("8175")),r=e("96b6"),s=r["a"].addAuditItem,o=r["a"].editAuditItem,n=r["a"].auditItemDetail,p=r["a"].getAuditGroupList,l={name:"CreateAuditItem",data:function(){return{loading:!1,auditGroupList:[],auditTypes:d["a"],auditData:{auditGroupIds:[],auditTypes:[],wxEnterpriseId:"",auditItemId:""},auditDataRules:{auditGroupIds:[{required:!0,message:"请选择审核组",trigger:"change"}],auditTypes:[{required:!0,message:"请选择审核事项",trigger:"change"}]}}},created:function(){var t=this.$route.query.auditItemId,a=JSON.parse(localStorage.getItem("haoBanUser")||"{}");this.auditData.wxEnterpriseId=a.wxEnterpriseId,this.$emit("showTab","/audit-item-list"),t&&this.getAuditItemDetail(t),this.getAuditGroupList()},methods:{getAuditGroupList:function(){var t=this;p({wxEnterpriseId:this.auditData.wxEnterpriseId}).then((function(a){t.auditGroupList=a.result||[]}))},getAuditItemDetail:function(t){var a=this;n({auditItemId:t}).then((function(t){var e=t.result||{},i=e.auditItemId,u=e.auditGroupId,d=e.auditTypes;a.auditData.auditItemId=i,"string"==typeof d&&(a.auditData.auditTypes=d.split(",")),"string"!=typeof u&&"number"!=typeof u||(a.auditData.auditGroupIds=[u])}))},onSave:function(){var t=this;this.$refs.auditData.validate((function(a){if(a){var e=t.auditData,i=e.auditGroupIds,u=e.auditTypes,d=e.wxEnterpriseId,r=e.auditItemId,n={auditGroupIds:i.join(","),auditTypes:u.join(","),wxEnterpriseId:d};r?(n.auditItemId=r,o(n).then(p.bind(t,"保存成功!")).finally((function(){return t.loading=!1}))):s(n).then(p.bind(t,"新建成功!")).finally((function(){return t.loading=!1}))}function p(t){this.$message.success(t),this.$router.go(-1)}}))}}},c=l,m=(e("25ac"),e("2877")),f=Object(m["a"])(c,i,u,!1,null,"18ad62c8",null);a["default"]=f.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-173d2f0c"],{"28a5":function(e,t,n){"use strict";var a=n("aae3"),r=n("cb7c"),i=n("ebd6"),c=n("0390"),o=n("9def"),l=n("5f1b"),s=n("520a"),u=n("79e5"),h=Math.min,f=[].push,d="split",m="length",v="lastIndex",p=4294967295,b=!u((function(){RegExp(p,"y")}));n("214f")("split",2,(function(e,t,n,u){var g;return g="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[m]||2!="ab"[d](/(?:ab)*/)[m]||4!="."[d](/(.?)(.?)/)[m]||"."[d](/()()/)[m]>1||""[d](/.?/)[m]?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(r,e,t);var i,c,o,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,d=void 0===t?p:t>>>0,b=new RegExp(e.source,u+"g");while(i=s.call(b,r)){if(c=b[v],c>h&&(l.push(r.slice(h,i.index)),i[m]>1&&i.index<r[m]&&f.apply(l,i.slice(1)),o=i[0][m],h=c,l[m]>=d))break;b[v]===i.index&&b[v]++}return h===r[m]?!o&&b.test("")||l.push(""):l.push(r.slice(h)),l[m]>d?l.slice(0,d):l}:"0"[d](void 0,0)[m]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,a){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r,a):g.call(String(r),n,a)},function(e,t){var a=u(g,e,this,t,g!==n);if(a.done)return a.value;var s=r(e),f=String(this),d=i(s,RegExp),m=s.unicode,v=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(b?"y":"g"),w=new d(b?s:"^(?:"+s.source+")",v),C=void 0===t?p:t>>>0;if(0===C)return[];if(0===f.length)return null===l(w,f)?[f]:[];var y=0,N=0,S=[];while(N<f.length){w.lastIndex=b?N:0;var x,T=l(w,b?f:f.slice(N));if(null===T||(x=h(o(w.lastIndex+(b?0:N)),f.length))===y)N=c(f,N,m);else{if(S.push(f.slice(y,N)),S.length===C)return S;for(var D=1;D<=T.length-1;D++)if(S.push(T[D]),S.length===C)return S;N=y=x}}return S.push(f.slice(y)),S}]}))},"2cad":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName,"current-menu-code":e.currentMenuCode},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView,leftData:e.leftData}}),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body"},[n("div",{staticClass:"content-body-inner flex border-box"},[n("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("common-detail-left",{attrs:{"tab-list-data":e.tabListData,"active-sel-tab":e.activeSelTab},on:{setSelectTab:e.setSelectTab}})],1),n("div",{staticClass:"apps-content-right border-box"},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view",{attrs:{"brand-id":e.activeBrand,"active-group-id":e.activeGroup,"tab-type":e.activeTab},on:{showTab:e.showTab}})],1)],1)])])])])],1)},r=[],i=(n("6762"),n("2fdb"),n("ac6a"),n("f777")),c=n("503e"),o=n("5937"),l=o["a"].getRoleMenu,s={name:"ReviewCenter",components:{vueOfficeHeader:i["a"],commonDetailLeft:c["a"]},data:function(){return{projectName:"haoban-manage-web",currentMenuCode:"reviewCenter",collapseFlag:!1,activeSelTab:"1",activeTab:"1",tabListData:[]}},methods:{changeRoute:function(e){this.$router.push(e)},setSelectTab:function(e){var t=this;t.activeTab=e.menuUrl,1==e.target?-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl)):t.$router.push(e.menuUrl)},showTab:function(e){var t=this;t.activeTab=e,t.activeSelTab=e,t.tabListData.forEach((function(t){t.menuUrl==e&&(t.onlyIconActive=!1),t.children&&t.children.forEach((function(n){n.menuUrl==e&&(t.onlyIconActive=!0),n.children&&n.children.forEach((function(n){n.menuUrl==e&&(t.onlyIconActive=!0)}))}))}))},toRouterView:function(e){var t=this;t.$router.push({path:e.path})},collapseTag:function(e){var t=this;t.collapseFlag=e},leftData:function(e){var t=this;e[0].children.forEach((function(e,n){e.tabId=n+1,e.tabName=e.menuName,e.children&&e.children.length&&t.setChildData(e,n+1)})),t.tabListData=e[0].children},setChildData:function(e,t){var n=this;e.children.forEach((function(e,a){e.tabId=t+"-"+(a+1),e.tabName=e.menuName,e.children&&e.children.length&&n.setChildData(e,t+"-"+(a+1))}))},getData:function(){var e=this,t={};l(t).then((function(t){if("0000"==t.code){var n=t.result.map((function(e){return e.menuCode})),a=[];e.tabListData.forEach((function(e){n.includes(e.menuCode)&&a.push(e)})),e.tabListData=a}})).catch((function(e){}))}}},u=s,h=(n("8db5"),n("2877")),f=Object(h["a"])(u,a,r,!1,null,null,null);t["default"]=f.exports},"2fdb":function(e,t,n){"use strict";var a=n("5ca1"),r=n("d2c8"),i="includes";a(a.P+a.F*n("51479")(i),"String",{includes:function(e){return!!~r(this,e,i).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"503e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"p-t-12"},[n("ul",{staticClass:"tab-left-list"},[e._l(e.tabData,(function(t,a){return[n("li",{key:a,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(n){return e.selectTab(t,!1,a)}}},[n("i",{class:["p-r-10 color-303133 iconfont",t.iconUrl,(t.onlyIconActive,"")]}),e._v(e._s(t.tabName||t.menuName)+"\n ")]),n("ul",{key:"childitem"+a,staticClass:"child-tab-left-list"},[e._l(t.children,(function(t,r){return[n("li",{key:r,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(n){return e.selectTab(t,"child",a)}}},[e._v(e._s(t.tabName||t.menuName))]),n("ul",{key:"thirditem"+r,staticClass:"third-tab-left-list"},[e._l(t.children,(function(t,r){return[n("li",{key:r,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(n){return e.selectTab(t,"child",a)}}},[e._v(e._s(t.tabName||t.menuName))])]}))],2)]}))],2)]}))],2)])},r=[],i=(n("ac6a"),n("c5f6"),{name:"CommonDetailLeft",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return""}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData,collapsFlag:!0}},mounted:function(){this.activeTab=this.activeSelTab},methods:{selectTab:function(e,t,n){var a=this;if(t?a.tabData[n].onlyIconActive=!0:(a.tabData.forEach((function(e){e.onlyIconActive=!1})),e.hasOwnProperty("children")&&e.children.length&&(a.collapsFlag=!(a.collapsFlag&&e.hasOwnProperty("children")&&e.children.length))),e.hasOwnProperty("children")&&e.children.length)return a.tabData[n].onlyIconActive=!0,e.children[0]&&e.children[0].hasOwnProperty("children")&&e.children[0].children.length?(a.activeTab=e.children[0].children[0].menuUrl,a.$emit("setSelectTab",e.children[0].children[0]),!1):(a.activeTab=e.children[0].menuUrl,a.$emit("setSelectTab",e.children[0]),!1);a.activeTab=e.menuUrl,a.$emit("setSelectTab",e)}},watch:{tabListData:function(e,t){var n=this;n.tabData=e},activeSelTab:function(e,t){var n=this;n.activeTab=e}}}),c=i,o=(n("6255"),n("2877")),l=Object(o["a"])(c,a,r,!1,null,"61fa9846",null);t["a"]=l.exports},51479:function(e,t,n){var a=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[a]=!1,!"/./"[e](t)}catch(r){}}return!0}},"57fc":function(e,t,n){},5937:function(e,t,n){"use strict";var a=n("71f6"),r={getRoleMenu:"/list-staff-role-menu"};r=Object(a["a"])(r,"/hb-manage-web"),t["a"]=r},6255:function(e,t,n){"use strict";var a=n("57fc"),r=n.n(a);r.a},6762:function(e,t,n){"use strict";var a=n("5ca1"),r=n("c366")(!0);a(a.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"6ce2":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("ac6a"),n("456d");var a=n("b775");function r(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var r=e[n];"string"===typeof r&&(r={url:r}),r.url="".concat(t).concat(r.url),e[n]=function(e){return Object(a["a"])(r,e)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),r={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};r=Object(a["a"])(r,"/hb-manage-web/auth"),t["a"]=r},"8db5":function(e,t,n){"use strict";var a=n("f192"),r=n.n(a);r.a},d2c8:function(e,t,n){var a=n("aae3"),r=n("be13");e.exports=function(e,t,n){if(a(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(e))}},e22b:function(e,t,n){"use strict";var a=n("ea9b"),r=n.n(a);r.a},ea9b:function(e,t,n){},f192:function(e,t,n){},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)||e.currentMenuCode==t.menuCode?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},r=[],i=(n("456d"),n("96cf"),n("1da1")),c=(n("ac6a"),n("28a5"),n("7ded")),o=n("5937"),l=o["a"].getRoleMenu,s=c["a"].getUserInfo,u=c["a"].loginOut,h={name:"VueOfficeHeader",components:{},props:{currentMenuCode:{type:String,default:""}},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl));else{t.setLeftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0])})),t.$router.push(n.menuUrl)}},setLeftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){u({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(e){}))})).catch((function(){}))},toLogin:function(){var e=this;s({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={appType:1};l(t).then(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(n){var a,r,i,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],r={},i={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(r=t),e.$route.path==t.menuUrl&&1!=t.level&&(i=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(i).length&&2==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),c={},Object.keys(i).length&&3==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(c=e)})),Object.keys(c).length&&2==c.level&&n.result.forEach((function(e){c.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),e.setLeftData(r);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},f=h,d=(n("e22b"),n("2877")),m=Object(d["a"])(f,a,r,!1,null,"26c74afb",null);t["a"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1cc109e4","chunk-34a8e7a5"],{"0a49":function(e,t,n){var a=n("9b43"),r=n("626a"),i=n("4bf8"),c=n("9def"),o=n("cd1c");e.exports=function(e,t){var n=1==e,s=2==e,u=3==e,l=4==e,p=6==e,d=5==e||p,f=t||o;return function(t,o,h){for(var m,v,g=i(t),y=r(g),b=a(o,h,3),I=c(y.length),k=0,T=n?f(t,I):s?f(t,0):void 0;I>k;k++)if((d||k in y)&&(m=y[k],v=b(m,k,g),e))if(n)T[k]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return k;case 2:T.push(m)}else if(l)return!1;return p?-1:u||l?l:T}}},1169:function(e,t,n){var a=n("2d95");e.exports=Array.isArray||function(e){return"Array"==a(e)}},"20d6":function(e,t,n){"use strict";var a=n("5ca1"),r=n("0a49")(6),i="findIndex",c=!0;i in[]&&Array(1)[i]((function(){c=!1})),a(a.P+a.F*c,"Array",{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(i)},2249:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("nav-crumb",{attrs:{navpath:e.bread}}),n("div",{staticStyle:{padding:"20px",background:"#fff"}},[n("el-alert",{staticStyle:{"margin-bottom":"30px",width:"572px"},attrs:{type:"info",title:"管理角色:查看区域或门店日常业务,进行一些经营性的管理工作。不必关联导购账号。",closable:!1,"show-icon":""}}),n("el-form",{ref:"roleData",attrs:{model:e.roleData,rules:e.roleDataRule,"label-width":"140px"}},[n("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[n("el-input",{staticStyle:{width:"432px"},attrs:{placeholder:"请输入角色名称",maxlength:"20","show-word-limit":""},model:{value:e.roleData.roleName,callback:function(t){e.$set(e.roleData,"roleName","string"===typeof t?t.trim():t)},expression:"roleData.roleName"}})],1),n("el-form-item",{attrs:{label:"权限配置",prop:"menuIds"}},[n("el-radio-group",{staticClass:"specter",attrs:{size:"small"},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},e._l(e.tabList,(function(t){return n("el-radio-button",{key:t.appType,attrs:{label:t.appType}},[e._v(e._s(t.label))])})),1),n("menu-tree",{staticStyle:{"margin-top":"12px"},attrs:{"menu-list":e.getActiveMenuList(),"checked-id":e.getActiveMenuChecked(),"app-ids":e.getAppIds(),"is-app":2==e.activeType||4==e.activeType},on:{change:e.onCheckedChange,"app-open-change":e.onAppOpenChange}})],1),n("el-form-item",{staticStyle:{"margin-top":"50px"}},[n("el-button",{attrs:{type:"primary",loading:e.roleData.loading},on:{click:e.onSave}},[e._v(e._s(e.roleData.roleId?"保存":"确认新建"))])],1)],1)],1)],1)},r=[],i=(n("20d6"),n("28a5"),n("5df3"),n("ac6a"),n("96cf"),n("1da1")),c=n("29b6"),o=n("a088"),s=n("f286"),u=s["a"].menuList,l=s["a"].addRole,p=s["a"].editRole,d=s["a"].roleDetail,f=s["a"].findAppSetting,h=s["a"].saveAppSetting,m={name:"EditRole",components:{navCrumb:c["a"],MenuTree:o["default"]},data:function(){var e=function(e,t,n){Array.isArray(t)&&0!=t.length&&!t.every((function(e){return 0==e.menuIds.length}))||n(new Error("请至少选择一个权限菜单")),n()};return{bread:[{name:"管理员",path:"/admin-list"},{name:"新建管理角色"}],wxEnterpriseId:"",roleData:{loading:!1,roleId:"",roleName:"",menuIds:[]},roleDataRule:{roleName:[{required:!0,message:"角色名称不能为空",trigger:"blur"}],menuIds:[{required:!0,validator:e}]},activeType:1,tabList:[{label:"好办后台",appType:1,flatMenu:[],menuList:[],checkedId:{},appIds:[]},{label:"应用后台",appType:2,flatMenu:[],menuList:[],checkedId:{},appIds:[]},{label:"好办小程序",appType:3,flatMenu:[],menuList:[],checkedId:{},appIds:[]},{label:"小程序应用",appType:4,flatMenu:[],menuList:[],checkedId:{},appIds:[]}]}},created:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),n=this.$route.query.roleId,this.$emit("showAsideMenu",!1),this.wxEnterpriseId=t.wxEnterpriseId,e.next=6,this.getMenuList(n);case 6:n&&(this.bread[1]={name:"编辑管理角色"},this.getRoleDetail(n));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{getMenuList:function(e){var t=this,n={wxEnterpriseId:this.wxEnterpriseId,roleType:1},a=[];return this.tabList.forEach((function(r){a.push(u(Object.assign({},n,{appType:r.appType})).then((function(a){r.flatMenu=a.result||[],r.menuList=t.flatDataToTree(a.result||[]),r.menuList.forEach((function(e){t.$set(r.checkedId,e.menuId,[])})),2!=r.appType&&4!=r.appType||f(Object.assign({},n,{roleId:e,appType:r.appType})).then((function(e){r.appIds=e.result||[],t.setChildrenDisable(r.menuList,r.appIds)}))})))})),Promise.all(a)},getRoleDetail:function(e){var t=this;function n(e,t){var a=[];return e.forEach((function(e){t.some((function(t){return t==e.menuId}))&&a.push(e.menuId),Array.isArray(e.children)&&(a=a.concat(n(e.children,t)))})),a}function a(e,t){var n=[];return e.map((function(e){if(t.some((function(t){return t==e.menuId}))){var i=[];Array.isArray(e.children)&&(i=r(e.children)),(0==i.length||i.every((function(e){return t.some((function(t){return t==e}))})))&&n.push(e.menuId),Array.isArray(e.children)&&(n=n.concat(a(e.children,t)))}})),n}function r(e){var t=[];return e.forEach((function(e){t.push(e.menuId),Array.isArray(e.children)&&(t=t.concat(r(e.children)))})),t}d({roleId:e}).then((function(e){var r=e.result,i=r.roleId,c=r.roleName,o=r.menuIds;o="string"==typeof o?o.split(","):[],Object.assign(t.roleData,{roleId:i,roleName:c}),t.tabList.forEach((function(e){var r=[];e.menuList.forEach((function(t){e.checkedId[t.menuId]=a([t],o),r=r.concat(n([t],o))})),t.roleData.menuIds.push({appType:e.appType,menuIds:r})}))}))},flatDataToTree:function(e){return e.filter((function(t){var n=e.filter((function(e){return e.parentId==t.menuId}));return n.length>0&&(t.children=n),""==t.parentCode}))},getActiveMenuList:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].menuList},getActiveMenuChecked:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].checkedId},getAppIds:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].appIds},onCheckedChange:function(e){var t=this,n=[],a=[],r=[];for(var i in e)n=n.concat(e[i]);function c(e,t){var n=[e];return t.some((function(a){return a.menuId==e&&a.parentId>0&&(n=n.concat(c(a.parentId,t))),a.menuId==e})),n}this.tabList=this.tabList.map((function(n){return n.appType==t.activeType&&(n.checkedId=e,a=n.flatMenu),n})),n.map((function(e){r=r.concat(c(e,a))})),r=r.filter((function(e,t){return t==r.findIndex((function(t){return t==e}))})),this.roleData.menuIds.some((function(e){return e.appType==t.activeType}))?this.roleData.menuIds.forEach((function(e){e.appType==t.activeType&&(e.menuIds=r)})):this.roleData.menuIds.push({appType:this.activeType,menuIds:r})},onAppOpenChange:function(e){var t=this;this.tabList.some((function(n){return n.appType==t.activeType&&(n.appIds=e,t.setChildrenDisable(n.menuList,n.appIds)),n.appType==t.activeType}))},setChildrenDisable:function(e,t){var n=this;function a(e,t){var n=this;return e.map((function(e){return n.$set(e,"disabled",t),Array.isArray(e.children)&&(e.children=a.call(n,e.children,t)),e}))}e.forEach((function(e){var r=!1;t.some((function(t){return t.appId==e.project&&(r=t.openFlag),t.appId==e.project})),n.$set(e,"disabled",0==r),Array.isArray(e.children)&&(e.children=a.call(n,e.children,0==r))}))},onSave:function(){var e=this;this.$refs.roleData.validate((function(t){if(t){var n=e.roleData,a=n.roleId,r=n.roleName,i=n.menuIds,c={roleName:r,menuIds:JSON.stringify(i)};e.roleData.loading=!0,a?(c.roleId=a,p(c).then(o.bind(e,a,"保存成功!")).catch((function(){return e.roleData.loading=!1}))):l(c).then((function(t){o.call(e,t.result.roleId,"新建成功!")})).catch((function(){return e.roleData.loading=!1}))}function o(e,t){var n=this,a=[],r={roleId:e,wxEnterpriseId:this.wxEnterpriseId};this.tabList.forEach((function(e){2!=e.appType&&4!=e.appType||a.push(new Promise((function(t){h(Object.assign({},r,{appType:e.appType,json:JSON.stringify(e.appIds)})).finally(t)})))})),Promise.all(a).then((function(){n.$message.success(t),n.$router.go(-1)})).finally((function(){return n.roleData.loading=!1}))}}))}}},v=m,g=n("2877"),y=Object(g["a"])(v,a,r,!1,null,null,null);t["default"]=y.exports},"28a5":function(e,t,n){"use strict";var a=n("aae3"),r=n("cb7c"),i=n("ebd6"),c=n("0390"),o=n("9def"),s=n("5f1b"),u=n("520a"),l=n("79e5"),p=Math.min,d=[].push,f="split",h="length",m="lastIndex",v=4294967295,g=!l((function(){RegExp(v,"y")}));n("214f")("split",2,(function(e,t,n,l){var y;return y="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[h]||2!="ab"[f](/(?:ab)*/)[h]||4!="."[f](/(.?)(.?)/)[h]||"."[f](/()()/)[h]>1||""[f](/.?/)[h]?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(r,e,t);var i,c,o,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,f=void 0===t?v:t>>>0,g=new RegExp(e.source,l+"g");while(i=u.call(g,r)){if(c=g[m],c>p&&(s.push(r.slice(p,i.index)),i[h]>1&&i.index<r[h]&&d.apply(s,i.slice(1)),o=i[0][h],p=c,s[h]>=f))break;g[m]===i.index&&g[m]++}return p===r[h]?!o&&g.test("")||s.push(""):s.push(r.slice(p)),s[h]>f?s.slice(0,f):s}:"0"[f](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,a){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r,a):y.call(String(r),n,a)},function(e,t){var a=l(y,e,this,t,y!==n);if(a.done)return a.value;var u=r(e),d=String(this),f=i(u,RegExp),h=u.unicode,m=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(g?"y":"g"),b=new f(g?u:"^(?:"+u.source+")",m),I=void 0===t?v:t>>>0;if(0===I)return[];if(0===d.length)return null===s(b,d)?[d]:[];var k=0,T=0,A=[];while(T<d.length){b.lastIndex=g?T:0;var x,w=s(b,g?d:d.slice(T));if(null===w||(x=p(o(b.lastIndex+(g?0:T)),d.length))===k)T=c(d,T,h);else{if(A.push(d.slice(k,T)),A.length===I)return A;for(var L=1;L<=w.length-1;L++)if(A.push(w[L]),A.length===I)return A;T=k=x}}return A.push(d.slice(k)),A}]}))},"29b6":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"nav-wrap border-box"},[n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e._l(e.navpath,(function(t,a){return[t.path?[n("el-breadcrumb-item",{key:"nav"+a,attrs:{to:{path:t.path}},on:{click:function(n){return e.changeRoute(t.path,t.relocation)}}},[n("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(n){return e.changeRoute(t.path,t.relocation)}}},[e._v("\n "+e._s(t.name)+"\n ")])])]:[n("el-breadcrumb-item",{key:"nav"+a},[e._v(e._s(t.name))])]]}))],2)],1)},r=[],i={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(e,t){var n=this;t?window.location.href=e:n.$router.push(e)}}},c=i,o=(n("6b4b"),n("2877")),s=Object(o["a"])(c,a,r,!1,null,"2c2a2724",null);t["a"]=s.exports},"4ab3":function(e,t,n){},"6b4b":function(e,t,n){"use strict";var a=n("76d4"),r=n.n(a);r.a},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("ac6a"),n("456d");var a=n("b775");function r(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var r=e[n];"string"===typeof r&&(r={url:r}),r.url="".concat(t).concat(r.url),e[n]=function(e){return Object(a["a"])(r,e)}})),e}},"76d4":function(e,t,n){},a088:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"menu-tree"},[n("ul",{staticClass:"first-menu"},[0==e.menuList.length?n("li",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.menuList,(function(t){return n("li",{key:t.menuId,class:["first-menu-item",{active:t.menuId==e.activeMenuId}],on:{click:function(n){return e.onMenuChange(t)}}},[e.isApp?n("el-checkbox",{attrs:{value:e.appIds.some((function(e){return e.appId==t.project&&1==e.openFlag}))},on:{change:function(n){return e.onAppOpenChange(t.project,n)}}}):e._e(),e._v("\n "+e._s(t.menuName)+"\n ")],1)}))],2),n("div",{staticClass:"all-menu"},[n("el-tree",{ref:"menuList",attrs:{data:e.treeData,"show-checkbox":"","default-expand-all":"","node-key":"menuId","expand-on-click-node":!1,"check-on-click-node":!0,props:{label:"menuName"},"default-checked-keys":e.checkedId[e.activeMenuId]},on:{"node-click":e.onNodeClick,check:e.onNodeClick}})],1)])},r=[],i=(n("c5f6"),n("ac6a"),{name:"MenuTree",props:{menuList:Array,checkedId:Object,appIds:Array,isApp:Boolean},data:function(){return{activeMenuId:"",treeData:[]}},methods:{onMenuChange:function(e){this.activeMenuId=e?e.menuId:"",this.treeData=e?[e]:[]},onNodeClick:function(){this.onChange(this.$refs.menuList.getCheckedKeys())},getAllMenuId:function(e){var t=this,n=[];return e.forEach((function(e){n.push(e.menuId),Array.isArray(e.children)&&(n=n.concat(t.getAllMenuId(e.children)))})),n},onChange:function(e){var t={};t[this.activeMenuId]=e,this.$emit("change",Object.assign({},this.checkedId,t))},onAppOpenChange:function(e,t){var n=this.appIds.map((function(n){var a=Object.assign({},n);return a.appId==e&&(a.openFlag=Number(t)),a}));this.$emit("app-open-change",n)}},watch:{checkedId:{deep:!0,handler:function(e){this.$refs.menuList.setCheckedKeys(e[this.activeMenuId]||[])}},menuList:{immediate:!0,handler:function(e){this.onMenuChange(e[0])}}}}),c=i,o=(n("b2eb"),n("2877")),s=Object(o["a"])(c,a,r,!1,null,"19fa0aa2",null);t["default"]=s.exports},b2eb:function(e,t,n){"use strict";var a=n("4ab3"),r=n.n(a);r.a},cd1c:function(e,t,n){var a=n("e853");e.exports=function(e,t){return new(a(e))(t)}},e853:function(e,t,n){var a=n("d3f4"),r=n("1169"),i=n("2b4c")("species");e.exports=function(e){var t;return r(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!r(t.prototype)||(t=void 0),a(t)&&(t=t[i],null===t&&(t=void 0))),void 0===t?Array:t}},f286:function(e,t,n){"use strict";var a=n("71f6"),r={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list",findAppSetting:"/find-application-setting",saveAppSetting:{url:"/save-application-setting",method:"post",useFormData:!0},findStoreRange:"/find-store-range",saveStoreRange:"/save-store-range"};t["a"]=Object(a["a"])(r,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-81c7fbf0"],{"0912":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"my-customer-wrap common-set-wrap"},[n("nav-crumb",{attrs:{navpath:t.navpath}}),n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[n("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 126px)"}},[n("div",{staticClass:"apps-content-right"},[n("div",{staticClass:"flex flex-space-between"},[n("div",{staticClass:"flex "},[n("div",{staticClass:"auth-merchant-img"},[t.enterpriseObj.logo?n("img",{attrs:{src:t.enterpriseObj.logo,alt:""}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})]),n("div",[n("div",{staticClass:"auth-merchant-name flex"},[n("span",{staticClass:"font-14 color-606266 merchant-name-span"},[t._v(t._s(t.enterpriseObj.enterpriseName||"--"))]),n("el-tag",{staticClass:"m-l-10",attrs:{size:"mini",type:"danger"}},[t._v(t._s(t.enterpriseObj.versionName||"4.0"))])],1),n("div",{staticClass:"auth-merchant-name flex"},[n("span",{staticClass:"font-14 color-606266 merchant-name-span"},[t._v(t._s(t.enterpriseObj.companyName||"--"))])])])]),n("common-alert-tip",{attrs:{width:"284px","tip-content":t.tipContent}})],1),n("div",{staticClass:"m-t-20"},[n("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{label:"申请事项","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.userName||"商户授权"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"申请理由","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.auditReason||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{prop:"",label:"门店绑定","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.bindRange||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{prop:"",label:"门店共享","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.shareRange||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.referStaffName||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{prop:"",label:"审核人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.auditName||"--"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"审核结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.statusFlag?n("span",[t._v("待同意")]):t._e(),1==e.row.statusFlag?n("span",[t._v("已同意")]):t._e(),3==e.row.statusFlag?n("span",[t._v("取消审核")]):t._e(),2==e.row.statusFlag?n("el-tooltip",{staticClass:"item",attrs:{effect:"light",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(e.row.refuseReason)+"\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("已拒绝")])]):t._e(),4==e.row.statusFlag?n("el-tooltip",{staticClass:"item",attrs:{effect:"light",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(e.row.refuseReason)+"\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("已失效")])]):t._e()]}}])}),n("el-table-column",{attrs:{prop:"",label:"审核时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=e.row.statusFlag?n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]):t._e(),0!=e.row.statusFlag?n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]):t._e(),0==e.row.statusFlag?n("div",{staticClass:"line-h-18"},[t._v("--")]):t._e(),0==e.row.statusFlag?n("div",{staticClass:"line-h-18"},[t._v("--")]):t._e()]}}])}),n("el-table-column",{attrs:{prop:"",label:"操作",width:"203"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toShowLog(e.$index,e.row)}}},[t._v("绑定详情")]),0==e.row.statusFlag?n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toCancleAudit(e.$index,e.row)}}},[t._v("取消审核")]):t._e()]}}])})],1),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right m-t-24"},[n("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])]),t.logShow?n("store-auth-detail",{attrs:{"store-range-audit-id":t.storeRangeAuditId},on:{closeLog:t.closeLog}}):t._e()],1)},s=[],r=a("29b6"),i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"绑定详情",visible:t.dialogVisible,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"绑定门店",name:"first"}}),a("el-tab-pane",{attrs:{label:"共享门店",name:"second"}})],1),a("div",{staticClass:"store-change-body"},[a("div",{staticClass:"flex "},[a("div",{staticClass:"change-stores flex-1"},[a("div",{staticClass:"font-14 color-303133 text-center m-b-20"},[t._v("变更前")]),a("ul",{staticClass:"store-cell-ul bg-f5f7fa"},t._l(t.showData.range,(function(e,n){return a("li",{key:n+"bind",staticClass:"text-center"},[a("el-tag",{attrs:{type:"info"}},[t._v(t._s(e.storeGroupName||e.storeInfoName))])],1)})),0)]),a("div",{staticClass:"change-stores flex-1 m-l-10"},[a("div",{staticClass:"font-14 color-303133 text-center m-b-20"},[t._v("变更后")]),a("ul",{staticClass:"store-cell-ul bg-f5f7fa"},t._l(t.showData.auditRange,(function(e,n){return a("li",{key:n+"binded",staticClass:"text-center"},[a("el-tag",{attrs:{type:"info"}},[t._v(t._s(e.storeGroupName||e.storeInfoName))])],1)})),0)])])])],1)])},o=[],l=a("21f4"),c=l["a"].getAuditLogDetail,u={name:"StoreAuthDetail",props:{storeRangeAuditId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,activeName:"first",tableData:[],detailData:{shareStoreMode:"",bindStoreMode:"",shareRange:[],bindRange:[],auditShareRange:[],auditBindRange:[]},showData:{range:[],auditRange:[]}}},mounted:function(){var t=this;t.storeRangeAuditId&&t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{handleClick:function(){var t=this;t.showData={range:"first"==t.activeName?t.detailData.bindRange:t.detailData.shareRange,auditRange:"first"==t.activeName?t.detailData.auditBindRange:t.detailData.auditShareRange}},handleClose:function(){var t=this;t.tableData=[],t.$emit("closeLog")},changeRoute:function(t){this.$router.push(t)},getTableList:function(){var t=this,e={storeRangeAuditId:t.storeRangeAuditId};c(e).then((function(e){e.result.bindRange?e.result.bindRange=JSON.parse(e.result.bindRange):e.result.bindRange=[],e.result.shareRange?e.result.shareRange=JSON.parse(e.result.shareRange):e.result.shareRange=[],e.result.auditBindRange?e.result.auditBindRange=JSON.parse(e.result.auditBindRange):e.result.auditBindRange=[],e.result.auditShareRange?e.result.auditShareRange=JSON.parse(e.result.auditShareRange):e.result.auditShareRange=[],t.detailData=e.result||[],t.showData={range:"first"==t.activeName?t.detailData.bindRange:t.detailData.shareRange,auditRange:"first"==t.activeName?t.detailData.auditBindRange:t.detailData.auditShareRange}})).catch((function(t){}))}},watch:{storeRangeAuditId:function(t,e){var a=this;t&&a.getTableList()}}},d=u,g=(a("411c"),a("2877")),p=Object(g["a"])(d,i,o,!1,null,"4d9f586a",null),f=p.exports,h=a("3081"),m=a("5b4e"),v=l["a"].getAuditLog,b=l["a"].cancelAudit,_=l["a"].getEnterpriseDetail,w={name:"AuditLog",components:{navCrumb:r["a"],storeAuthDetail:f,commonAlertTip:h["a"]},data:function(){return{tipContent:"仅保存近一年失败日志",navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:"/authMerchant"},{name:"审核日志",path:""}],auditorName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",auditorId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffId:"",enterpriseObj:{enterpriseName:"",logo:"",version:""},currentPage:1,pageSize:20,total:0,tableData:[],logShow:!1,storeRangeAuditId:""}},mounted:function(){var t=this;t.getEnterpriseData(),t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{getEnterpriseData:function(){var t=this;_({enterpriseId:t.$route.query.enterpriseId}).then((function(e){t.enterpriseObj=e.result||{enterpriseName:"",logo:"",version:""}})).catch((function(t){}))},toCancleAudit:function(t,e){var a=this;a.$confirm("确定取消审核?","",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.postCancel(e.storeRangeAuditId)}))},postCancel:function(t){var e=this,a={storeRangeAuditId:t,statusFlag:3,auditorName:e.auditorName,auditorId:e.auditorId};b(a).then((function(t){"0000"==t.code?m["a"].showmsg("取消审核成功","success"):"100003"!=t.code&&"100004"!=t.code||(e.$message({message:t.message||"未知错误",type:"warning"}),e.currentPage=1,e.getTableList()),e.currentPage=1,e.getTableList()})).catch((function(t){}))},toShowLog:function(t,e){var a=this;a.storeRangeAuditId=e.storeRangeAuditId,a.logShow=!0},closeLog:function(){var t=this;t.storeRangeAuditId="",t.logShow=!1},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},getTableList:function(){var t=this,e={enterpriseId:t.$route.query.enterpriseId||"",pageNum:t.currentPage,pageSize:t.pageSize};v(e).then((function(e){t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))}}},C=w,R=(a("619e"),Object(g["a"])(C,n,s,!1,null,"014bc6cf",null));e["default"]=R.exports},"13a5":function(t,e,a){},"21f4":function(t,e,a){"use strict";var n=a("71f6"),s={getAuthEnterprise:"/auth-enterprise-list",getGroupList:"/department-list",getStoreList:"/store-list",getAuthDetail:"/enterprise-auth-detail",getAuditLog:"/enterprise-auth-audit-list",cancelAudit:{url:"/enterprise-auth-audit",method:"post",useFormData:!0,useIntercept:!1},getCheckName:"/gic-admin-frist",checkName:{url:"/gic-name-validate",method:"post",useFormData:!0,useIntercept:!1},getAuditLogDetail:"/enterprise-auth-audit-range-detail",getEnterprise:"/enterprise-search",getGicAdmin:"/gic-manage-list",postEnterpriseAuth:{url:"/enterprise-auth",method:"post",useFormData:!0,useIntercept:!1},getEnterpriseDetail:"/gic-enterprise-detail"};s=Object(n["a"])(s,"/hb-manage-web"),e["a"]=s},"29b6":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-wrap border-box"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,(function(e,n){return[e.path?[a("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[a("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]}))],2)],1)},s=[],r={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(t,e){var a=this;e?window.location.href=t:a.$router.push(t)}}},i=r,o=(a("6b4b"),a("2877")),l=Object(o["a"])(i,n,s,!1,null,"2c2a2724",null);e["a"]=l.exports},3081:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-alert-tip"},[a("div",{style:{"min-width":t.width}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")]),t.tipTwoContent?a("div",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipTwoContent)+"\n ")]):t._e()])])])])},s=[],r={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""},tipTwoContent:{type:String,default:""}},data:function(){return{}}},i=r,o=a("2877"),l=Object(o["a"])(i,n,s,!1,null,"537f2e35",null);e["a"]=l.exports},"411c":function(t,e,a){"use strict";var n=a("13a5"),s=a.n(n);s.a},"5b4e":function(t,e,a){"use strict";var n=a("5c96");e["a"]={showmsg:function(t,e){Object(n["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"619e":function(t,e,a){"use strict";var n=a("d74a"),s=a.n(n);s.a},"6b4b":function(t,e,a){"use strict";var n=a("76d4"),s=a.n(n);s.a},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));a("ac6a"),a("456d");var n=a("b775");function s(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var s=t[a];"string"===typeof s&&(s={url:s}),s.url="".concat(e).concat(s.url),t[a]=function(t){return Object(n["a"])(s,t)}})),t}},"76d4":function(t,e,a){},d74a:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1f80e62c"],{"0912":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"my-customer-wrap common-set-wrap"},[n("nav-crumb",{attrs:{navpath:t.navpath}}),n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[n("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 126px)"}},[n("div",{staticClass:"apps-content-right"},[n("div",{staticClass:"flex flex-space-between"},[n("div",{staticClass:"flex "},[n("div",{staticClass:"auth-merchant-img"},[t.enterpriseObj.logo?n("img",{attrs:{src:t.enterpriseObj.logo,alt:""}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})]),n("div",[n("div",{staticClass:"auth-merchant-name flex"},[n("span",{staticClass:"font-14 color-606266 merchant-name-span"},[t._v(t._s(t.enterpriseObj.enterpriseName||"--"))]),n("el-tag",{staticClass:"m-l-10",attrs:{size:"mini",type:"danger"}},[t._v(t._s(t.enterpriseObj.versionName||"4.0"))])],1),n("div",{staticClass:"auth-merchant-name flex"},[n("span",{staticClass:"font-14 color-606266 merchant-name-span"},[t._v(t._s(t.enterpriseObj.companyName||"--"))])])])]),n("common-alert-tip",{attrs:{width:"284px","tip-content":t.tipContent}})],1),n("div",{staticClass:"m-t-20"},[n("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{label:"申请事项","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.userName||"商户授权"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"申请理由","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.auditReason||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{prop:"",label:"门店绑定","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.bindRange||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{prop:"",label:"门店共享","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.shareRange||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.referStaffName||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{prop:"",label:"审核人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.auditName||"--"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"审核结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.statusFlag?n("span",[t._v("待同意")]):t._e(),1==e.row.statusFlag?n("span",[t._v("已同意")]):t._e(),3==e.row.statusFlag?n("span",[t._v("取消审核")]):t._e(),2==e.row.statusFlag?n("el-tooltip",{staticClass:"item",attrs:{effect:"light",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(e.row.refuseReason)+"\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("已拒绝")])]):t._e(),4==e.row.statusFlag?n("el-tooltip",{staticClass:"item",attrs:{effect:"light",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(e.row.refuseReason)+"\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("已失效")])]):t._e()]}}])}),n("el-table-column",{attrs:{prop:"",label:"审核时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=e.row.statusFlag?n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]):t._e(),0!=e.row.statusFlag?n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]):t._e(),0==e.row.statusFlag?n("div",{staticClass:"line-h-18"},[t._v("--")]):t._e(),0==e.row.statusFlag?n("div",{staticClass:"line-h-18"},[t._v("--")]):t._e()]}}])}),n("el-table-column",{attrs:{prop:"",label:"操作",width:"203"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toShowLog(e.$index,e.row)}}},[t._v("绑定详情")]),0==e.row.statusFlag?n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toCancleAudit(e.$index,e.row)}}},[t._v("取消审核")]):t._e()]}}])})],1),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right m-t-24"},[n("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])]),t.logShow?n("store-auth-detail",{attrs:{"store-range-audit-id":t.storeRangeAuditId},on:{closeLog:t.closeLog}}):t._e()],1)},s=[],r=a("29b6"),i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"绑定详情",visible:t.dialogVisible,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"绑定门店",name:"first"}}),a("el-tab-pane",{attrs:{label:"共享门店",name:"second"}})],1),a("div",{staticClass:"store-change-body"},[a("div",{staticClass:"flex "},[a("div",{staticClass:"change-stores flex-1"},[a("div",{staticClass:"font-14 color-303133 text-center m-b-20"},[t._v("变更前")]),a("ul",{staticClass:"store-cell-ul bg-f5f7fa"},t._l(t.showData.range,(function(e,n){return a("li",{key:n+"bind",staticClass:"text-center"},[a("el-tag",{attrs:{type:"info"}},[t._v(t._s(e.storeGroupName||e.storeInfoName))])],1)})),0)]),a("div",{staticClass:"change-stores flex-1 m-l-10"},[a("div",{staticClass:"font-14 color-303133 text-center m-b-20"},[t._v("变更后")]),a("ul",{staticClass:"store-cell-ul bg-f5f7fa"},t._l(t.showData.auditRange,(function(e,n){return a("li",{key:n+"binded",staticClass:"text-center"},[a("el-tag",{attrs:{type:"info"}},[t._v(t._s(e.storeGroupName||e.storeInfoName))])],1)})),0)])])])],1)])},o=[],l=a("21f4"),c=l["a"].getAuditLogDetail,u={name:"StoreAuthDetail",props:{storeRangeAuditId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,activeName:"first",tableData:[],detailData:{shareStoreMode:"",bindStoreMode:"",shareRange:[],bindRange:[],auditShareRange:[],auditBindRange:[]},showData:{range:[],auditRange:[]}}},mounted:function(){var t=this;t.storeRangeAuditId&&t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{handleClick:function(){var t=this;t.showData={range:"first"==t.activeName?t.detailData.bindRange:t.detailData.shareRange,auditRange:"first"==t.activeName?t.detailData.auditBindRange:t.detailData.auditShareRange}},handleClose:function(){var t=this;t.tableData=[],t.$emit("closeLog")},changeRoute:function(t){this.$router.push(t)},getTableList:function(){var t=this,e={storeRangeAuditId:t.storeRangeAuditId};c(e).then((function(e){e.result.bindRange?e.result.bindRange=JSON.parse(e.result.bindRange):e.result.bindRange=[],e.result.shareRange?e.result.shareRange=JSON.parse(e.result.shareRange):e.result.shareRange=[],e.result.auditBindRange?e.result.auditBindRange=JSON.parse(e.result.auditBindRange):e.result.auditBindRange=[],e.result.auditShareRange?e.result.auditShareRange=JSON.parse(e.result.auditShareRange):e.result.auditShareRange=[],t.detailData=e.result||[],t.showData={range:"first"==t.activeName?t.detailData.bindRange:t.detailData.shareRange,auditRange:"first"==t.activeName?t.detailData.auditBindRange:t.detailData.auditShareRange}})).catch((function(t){}))}},watch:{storeRangeAuditId:function(t,e){var a=this;t&&a.getTableList()}}},d=u,g=(a("411c"),a("2877")),p=Object(g["a"])(d,i,o,!1,null,"4d9f586a",null),f=p.exports,h=a("3081"),m=a("5b4e6"),v=l["a"].getAuditLog,b=l["a"].cancelAudit,_=l["a"].getEnterpriseDetail,w={name:"AuditLog",components:{navCrumb:r["a"],storeAuthDetail:f,commonAlertTip:h["a"]},data:function(){return{tipContent:"仅保存近一年失败日志",navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:"/authMerchant"},{name:"审核日志",path:""}],auditorName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",auditorId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffId:"",enterpriseObj:{enterpriseName:"",logo:"",version:""},currentPage:1,pageSize:20,total:0,tableData:[],logShow:!1,storeRangeAuditId:""}},mounted:function(){var t=this;t.getEnterpriseData(),t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{getEnterpriseData:function(){var t=this;_({enterpriseId:t.$route.query.enterpriseId}).then((function(e){t.enterpriseObj=e.result||{enterpriseName:"",logo:"",version:""}})).catch((function(t){}))},toCancleAudit:function(t,e){var a=this;a.$confirm("确定取消审核?","",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.postCancel(e.storeRangeAuditId)}))},postCancel:function(t){var e=this,a={storeRangeAuditId:t,statusFlag:3,auditorName:e.auditorName,auditorId:e.auditorId};b(a).then((function(t){"0000"==t.code?m["a"].showmsg("取消审核成功","success"):"100003"!=t.code&&"100004"!=t.code||(e.$message({message:t.message||"未知错误",type:"warning"}),e.currentPage=1,e.getTableList()),e.currentPage=1,e.getTableList()})).catch((function(t){}))},toShowLog:function(t,e){var a=this;a.storeRangeAuditId=e.storeRangeAuditId,a.logShow=!0},closeLog:function(){var t=this;t.storeRangeAuditId="",t.logShow=!1},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},getTableList:function(){var t=this,e={enterpriseId:t.$route.query.enterpriseId||"",pageNum:t.currentPage,pageSize:t.pageSize};v(e).then((function(e){t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))}}},C=w,R=(a("619e"),Object(g["a"])(C,n,s,!1,null,"014bc6cf",null));e["default"]=R.exports},"13a5":function(t,e,a){},"21f4":function(t,e,a){"use strict";var n=a("71f6"),s={getAuthEnterprise:"/auth-enterprise-list",getGroupList:"/department-list",getStoreList:"/store-list",getAuthDetail:"/enterprise-auth-detail",getAuditLog:"/enterprise-auth-audit-list",cancelAudit:{url:"/enterprise-auth-audit",method:"post",useFormData:!0,useIntercept:!1},getCheckName:"/gic-admin-frist",checkName:{url:"/gic-name-validate",method:"post",useFormData:!0,useIntercept:!1},getAuditLogDetail:"/enterprise-auth-audit-range-detail",getEnterprise:"/enterprise-search",getGicAdmin:"/gic-manage-list",postEnterpriseAuth:{url:"/enterprise-auth",method:"post",useFormData:!0,useIntercept:!1},getEnterpriseDetail:"/gic-enterprise-detail"};s=Object(n["a"])(s,"/hb-manage-web"),e["a"]=s},"29b6":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-wrap border-box"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,(function(e,n){return[e.path?[a("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[a("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]}))],2)],1)},s=[],r={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(t,e){var a=this;e?window.location.href=t:a.$router.push(t)}}},i=r,o=(a("6b4b"),a("2877")),l=Object(o["a"])(i,n,s,!1,null,"2c2a2724",null);e["a"]=l.exports},3081:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-alert-tip"},[a("div",{style:{"min-width":t.width}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")]),t.tipTwoContent?a("div",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipTwoContent)+"\n ")]):t._e()])])])])},s=[],r={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""},tipTwoContent:{type:String,default:""}},data:function(){return{}}},i=r,o=a("2877"),l=Object(o["a"])(i,n,s,!1,null,"537f2e35",null);e["a"]=l.exports},"411c":function(t,e,a){"use strict";var n=a("13a5"),s=a.n(n);s.a},"5b4e6":function(t,e,a){"use strict";var n=a("5c96");e["a"]={showmsg:function(t,e){Object(n["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"619e":function(t,e,a){"use strict";var n=a("d74a"),s=a.n(n);s.a},"6b4b":function(t,e,a){"use strict";var n=a("76d4"),s=a.n(n);s.a},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));a("ac6a"),a("456d");var n=a("b775");function s(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var s=t[a];"string"===typeof s&&(s={url:s}),s.url="".concat(e).concat(s.url),t[a]=function(t){return Object(n["a"])(s,t)}})),t}},"76d4":function(t,e,a){},d74a:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1fbcb7b4","chunk-b073f330"],{"0082":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("ul",{staticClass:"role-menu"},[Array.isArray(e.roleList)&&0!=e.roleList.length?e._e():o("li",{staticClass:"no-data"},[e._v("暂无数据")]),e._l(e.roleList,(function(t){return o("li",{key:t,class:["role-item",{active:e.activeRoleId==t.roleId}],on:{click:function(o){return e.onChangeRole(t)}}},[o("span",{staticClass:"role-name"},[e._v(e._s(t.roleName))]),o("el-dropdown",{attrs:{placement:"bottom-start"}},[o("i",{staticClass:"iconfont icongengduo edit-icon"}),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[o("el-dropdown-item",{nativeOn:{click:function(o){return e.onEditRole(t)}}},[e._v("编辑")]),e.showDelRoleButton?o("el-dropdown-item",{nativeOn:{click:function(o){return e.onDelRole(t)}}},[e._v("删除")]):e._e()],1)],1)],1)}))],2),o("el-dialog",{attrs:{visible:e.delRole.show,title:"删除角色",width:"600px"},on:{"update:visible":function(t){return e.$set(e.delRole,"show",t)},closed:e.onDelRoleClose}},[o("div",{staticClass:"del-role"},[o("i",{staticClass:"el-icon-warning"}),o("div",{staticClass:"del-role-content"},[o("p",{staticClass:"del-role-tip"},[e._v("确认删除“"+e._s(e.delRole.roleName)+"”角色吗?")]),o("p",{staticClass:"del-role-tip"},[e._v("请在输入框中输入该角色名称,以避免误操作。")]),o("el-input",{staticStyle:{"margin-top":"10px",width:"440px"},model:{value:e.delRole.roleNameInput,callback:function(t){e.$set(e.delRole,"roleNameInput","string"===typeof t?t.trim():t)},expression:"delRole.roleNameInput"}})],1)]),o("template",{slot:"footer"},[o("el-button",{on:{click:function(t){e.delRole.show=!1}}},[e._v("取消")]),o("el-button",{attrs:{type:"primary",loading:e.delRole.loading},on:{click:e.onDelRoleSure}},[e._v("确定")])],1)],2)],1)},i=[],r=(o("c5f6"),o("f286")),l=r["a"].delRole,a={name:"RoleList",props:{roleList:{type:Array,default:function(){return[]}},activeRoleId:[String,Number],showDelRoleButton:{type:Boolean,default:!1}},data:function(){return{delRole:{show:!1,loading:!1,roleId:"",roleName:"",roleNameInput:""}}},methods:{onChangeRole:function(e){this.$emit("change-role",e)},onEditRole:function(e){this.$emit("edit-role",e)},onDelRole:function(e){var t=e.roleId,o=e.roleName;Object.assign(this.delRole,{show:!0,roleId:t,roleName:o})},onDelRoleClose:function(){Object.assign(this.delRole,{roleId:"",roleName:"",roleNameInput:""})},onDelRoleSure:function(){var e=this,t=this.delRole,o=t.roleId,n=t.roleName,i=t.roleNameInput;return 0==i.length?this.$message.warning("请输入角色名称!"):n!=i?this.$message.warning("请输入正确的角色名称!"):(this.delRole.loading=!0,void l({roleId:o}).then((function(t){"0000"==t.code&&(e.$message.success("删除成功!"),e.$emit("del-role-succ",o==e.activeRoleId),e.delRole.show=!1)})).finally((function(){return e.delRole.loading=!1})))}}},s=a,c=(o("575f"),o("2877")),d=Object(c["a"])(s,n,i,!1,null,"7c337432",null);t["default"]=d.exports},2058:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"store-admin-list"},[o("div",{staticClass:"store-role-list"},[0==e.roleList.length?o("p",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.roleList,(function(t){return o("div",{key:t.enterpriseId},[o("h3",{staticClass:"role-title"},[o("i",{staticClass:"iconfont iconshanghu role-title-icon"}),o("p",{staticClass:"role-title-text"},[e._v(e._s(t.enterpriseName))])]),o("role-list",{attrs:{"role-list":t.roleList,"active-role-id":e.activeRoleId},on:{"edit-role":e.onEditRole,"change-role":e.onChangeRole}})],1)}))],2),o("div",{staticClass:"admin-list"},[o("h3",{staticClass:"admin-list-title"},[e._v("门店成员列表")]),o("el-input",{staticStyle:{width:"238px"},attrs:{placeholder:"请输入姓名/账号/手机号码","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search,callback:function(t){e.search="string"===typeof t?t.trim():t},expression:"search"}}),o("el-alert",{staticStyle:{float:"right",width:"720px"},attrs:{type:"info",title:"拥有门店的权限,能进行一些门店日常业务,如打标签,完成话务等。必须是导购账号 ,不可添加删除门店成员。",closable:!1,"show-icon":""}}),o("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.adminList}},[o("el-table-column",{attrs:{label:"姓名",prop:"staffName",formatter:function(e,t,o){return o||"--"}}}),o("el-table-column",{attrs:{label:"账号",prop:"wxUserId",formatter:function(e,t,o){return o||"--"}}}),o("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber",formatter:function(e,t,o){return o||"--"}}})],1),e.pager.total>0?o("dm-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"current-change":e.onCurrentChange,"size-change":e.onSizeChange}}):e._e()],1)])},i=[],r=(o("386d"),o("5df3"),o("ac6a"),o("0082")),l=o("f286"),a=l["a"].enterpriseList,s=l["a"].roleList,c=l["a"].roleAdminList,d={name:"StoreAdminList",components:{RoleList:r["default"]},data:function(){return{roleList:[],activeRoleId:"",enterpriseId:"",adminList:[],search:"",pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1}}},created:function(){this.$emit("showTab","/store-admin-list"),this.getRoleList()},methods:{getRoleList:function(){var e=this,t=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),o=t.wxEnterpriseId,n=[];o&&a({wxEnterpriseId:o}).then((function(t){var o=t.result||[];e.roleList=o.map((function(e){var t=e.enterpriseId,o=e.enterpriseName;return{enterpriseId:t,enterpriseName:o,roleList:[]}})),0!=e.roleList.length&&(e.roleList.forEach((function(e){n.push(s({enterpriseId:e.enterpriseId,roleType:1}).then((function(t){e.roleList=t.result||[]})))})),Promise.all(n).then((function(){e.activeRoleId||e.roleList.some((function(t){return t.roleList.length>0&&(e.activeRoleId=t.roleList[0].roleId,e.enterpriseId=t.roleList[0].enterpriseId),t.roleList.length>0})),e.activeRoleId&&e.getAdminList()})))}))},getAdminList:function(){var e=this,t={roleId:this.activeRoleId,enterpriseId:this.enterpriseId,search:this.search,pageNum:this.pager.currentPage,pageSize:this.pager.pageSize};c(t).then((function(t){var o=t.result||{},n=o.totalCount,i=o.result;e.pager.total=n||0,e.adminList=i||[]}))},onChangeRole:function(e){var t=e.roleId,o=e.enterpriseId;this.activeRoleId=t,this.enterpriseId=o,this.search="",this.pager.currentPage=1,this.getAdminList()},onEditRole:function(e){this.$router.push("/edit-store-role?roleId=".concat(e.roleId))},onSearch:function(){this.pager.currentPage=1,this.getAdminList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},onCurrentChange:function(e){this.pager.currentPage=e,this.getAdminList()}}},u=d,p=(o("b14d"),o("2877")),h=Object(p["a"])(u,n,i,!1,null,"3f411422",null);t["default"]=h.exports},3018:function(e,t,o){},"44e1":function(e,t,o){},"575f":function(e,t,o){"use strict";var n=o("44e1"),i=o.n(n);i.a},"71f6":function(e,t,o){"use strict";o.d(t,"a",(function(){return i}));o("ac6a"),o("456d");var n=o("b775");function i(e,t){e=e||{};var o=Object.keys(e);return o.forEach((function(o){var i=e[o];"string"===typeof i&&(i={url:i}),i.url="".concat(t).concat(i.url),e[o]=function(e){return Object(n["a"])(i,e)}})),e}},b14d:function(e,t,o){"use strict";var n=o("3018"),i=o.n(n);i.a},f286:function(e,t,o){"use strict";var n=o("71f6"),i={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list",findAppSetting:"/find-application-setting",saveAppSetting:{url:"/save-application-setting",method:"post",useFormData:!0},findStoreRange:"/find-store-range",saveStoreRange:"/save-store-range"};t["a"]=Object(n["a"])(i,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21238eb7"],{"23fa":function(e,t,a){},"3e97":function(e,t,a){"use strict";var r=a("23fa"),n=a.n(r);n.a},"4bb1":function(e,t,a){},"4dbe":function(e,t,a){"use strict";var r=a("e6f1"),n=a.n(r);n.a},"52b2":function(e,t,a){},"6af5":function(e,t,a){"use strict";var r=a("4bb1"),n=a.n(r);n.a},"780a":function(e,t,a){},"798c":function(e,t,a){"use strict";var r=a("52b2"),n=a.n(r);n.a},"7dc6":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"apps-content-right border-box"},[a("el-form",{ref:"adminForm",attrs:{model:e.adminForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"管理员",prop:"adminList"}},[e.$route.query.staffId?a("div",[e._v(e._s(e.adminName||"--"))]):e._e(),e.$route.query.staffId?e._e():a("div",{staticClass:"admin-list-wrap"},[a("div",{staticClass:"el-select store-item-content admin-select",on:{click:e.showAdmin}},[e.adminForm.adminList.length?a("div",{staticClass:"el-select__tags"},[a("span",{staticStyle:{display:"block"}},[e._l(e.adminForm.adminList,(function(t,r){return[a("span",{key:r+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.levelName||"--"))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){return t.stopPropagation(),e.delAdmin(r,e.adminForm.adminList)}}})])]}))],2)]):e._e(),e.adminForm.adminList.length?e._e():a("div",{staticClass:"add-admin-btn font-14 color-606266 cursor-pointer",on:{click:e.showAdmin}},[a("span",{staticClass:"iconfont icontianjiajiahaowubiankuang font-12"}),a("span",{staticClass:"p-l-10"},[e._v("添加")])])])])]),a("el-form-item",{attrs:{label:"资源范围",prop:"enterpriseList"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"商户名称",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.enterpriseName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"授权范围"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{label:"1"},model:{value:t.row.radio,callback:function(a){e.$set(t.row,"radio",a)},expression:"scope.row.radio"}},[e._v("授权")]),1==t.row.radio?a("div",{staticClass:"el-select store-item-content",on:{click:function(a){return e.showAuth(t.$index,t.row)}}},[t.row.bindStoreMode>0?a("div",{staticClass:"el-select__tags"},[a("span",{staticStyle:{display:"block"}},[e._l(t.row.bindRange,(function(r,n){return[a("span",{key:n+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(r.storeInfoName||r.storeGroupName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(a){return a.stopPropagation(),e.delAuth(n,t.row.bindRange)}}})])]}))],2)]):e._e(),0==t.row.bindStoreMode&&""!==t.row.bindStoreMode?a("span",{staticClass:"p-l-10 font-14 color-909399"},[e._v("已选全部")]):e._e()]):e._e(),a("el-radio",{staticClass:"m-l-10",attrs:{label:"2"},model:{value:t.row.radio,callback:function(a){e.$set(t.row,"radio",a)},expression:"scope.row.radio"}},[e._v("不授权")])]}}])})],1)],1),a("el-form-item",{staticClass:"m-t-20",attrs:{prop:""}},[a("el-button",{attrs:{type:"primary",loading:e.loadBtn},on:{click:function(t){return e.saveAdmin("adminForm")}}},[e._v("确认"+e._s(e.$route.query.staffId?"编辑":"新建"))])],1)],1)],1)]),a("select-admin",{attrs:{"show-admin-flag":e.showAdminFlag,"select-admin":e.adminForm.adminList},on:{checkAdmins:e.checkAdmins}}),a("select-admin-store",{attrs:{"show-auth-flag":e.showAuthFlag,"enterprise-id":e.enterpriseId,"select-mode":e.selectMode,"range-data":e.rangeData,"bind-type":2},on:{closeSet:e.closeSet}})],1)},n=[],s=(a("ac6a"),a("29b6")),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"418px",title:"添加管理员",visible:e.setVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.setVisible=t}}},[a("div",{staticClass:"bind-store-body"},[a("div",{staticClass:"font-14 color-606266"},[e._v("已选择 "),a("span",{staticClass:"color-303133"},[e._v(e._s(e.totalNum||"0"))]),e._v(" 人")]),a("div",{staticClass:"select-search m-t-10"},[a("el-input",{attrs:{placeholder:"请输入成员名称",maxlength:"50",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),a("div",{staticClass:"select-tree-wrap auth-select-tree m-t-20"},[a("el-tree",{directives:[{name:"show",rawName:"v-show",value:""==e.searchSelect,expression:"searchSelect == ''"}],ref:"groupTree",attrs:{load:e.loadNode,lazy:"",data:e.groupData,props:e.defaultProps},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.node,n=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",[1==n.levelType?a("el-checkbox",{attrs:{disabled:1==n.bindFlag},on:{change:function(t){return e.changeItem(t,n)}},model:{value:n.checked,callback:function(t){e.$set(n,"checked",t)},expression:"data.checked"}}):e._e(),a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v(e._s(r.label))])],1),1==n.bindFlag?a("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("已选中")]):e._e()])}}])}),a("div",{directives:[{name:"show",rawName:"v-show",value:e.searchSelect,expression:"searchSelect"}],staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[a("el-checkbox-group",{attrs:{max:50},on:{change:e.handleStoresChange},model:{value:e.checkedList,callback:function(t){e.checkedList=t},expression:"checkedList"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.searchList,(function(t){return a("li",{key:t.staffId,class:["el-select-dropdown__item flex flex-space-between",t.select?"selected hover":""]},[a("el-checkbox",{attrs:{disabled:1==t.bindFlag,label:t.staffId}},[e._v(e._s(t.staffName))]),1==t.bindFlag?a("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("已选中")]):e._e()],1)})),e.searchList.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1)],1)]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])},i=[];a("6762"),a("2fdb"),a("5df3"),a("4f7f");function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function c(e){if(Array.isArray(e))return l(e)}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function u(e,t){if(e){if("string"===typeof e)return l(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?l(e,t):void 0}}function f(){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 h(e){return c(e)||d(e)||u(e)||f()}a("96cf");var p=a("1da1"),m=a("d157"),g=a("71f6"),b={getAdminList:"/level-list",getSearchAdminList:"/staff-search",getRoleRange:"/role-range",addAdmin:{url:"/role-range-save",method:"post",useFormData:!0,useIntercept:!1}};b=Object(g["a"])(b,"/hb-manage-web");var v=b,S=a("5b4e6"),y=v.getAdminList,k=v.getSearchAdminList,I={name:"SelectAdmin",props:{showAdminFlag:{type:Boolean,default:!1},selectAdmin:{type:[Object,Array],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",searchSelect:"",groupData:[],groupDataCopy:[],setVisible:!1,defaultProps:{children:"children",label:"label",isLeaf:"leaf"},totalNum:"0",totalIds:[],searchList:[],checkedList:[],checkedPeople:[],totalArr:[]}},mounted:function(){var e=this;if(e.totalNum=e.selectAdmin.length,e.totalIds=e.selectAdmin.map((function(e){return e.levelId}))||[],e.checkedList=e.selectAdmin.map((function(e){return e.levelId}))||[],e.setVisible=e.showAdminFlag,e.totalArr=JSON.parse(JSON.stringify(e.selectAdmin))||[],e.$route.query.staffId)return!1;e.getStaff()},methods:{changeItem:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t,a){var r,n,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this,!t&&r.checkedList.indexOf(a.levelId)&&r.checkedList.splice(r.checkedList.indexOf(a.levelId),1),r.checkedPeople=[],e.next=5,r.getCheckData();case 5:return r.totalIds=h(new Set([].concat(h(r.checkedList),h(r.checkedPeople.map((function(e){return e.levelId}))))))||[],r.checkedList=h(new Set([].concat(h(r.checkedList),h(r.checkedPeople.map((function(e){return e.levelId}))))))||[],n=JSON.parse(JSON.stringify(r.totalArr)),n=n.concat(r.checkedPeople),e.next=11,r.delDubbleData(n);case 11:t||-1==r.totalArr.map((function(e){return e.levelId})).indexOf(a.levelId)||(s=[],r.totalArr.forEach((function(e){e.levelId!=a.levelId&&s.push(e)})),r.totalArr=JSON.parse(JSON.stringify(s))),r.totalNum=r.totalArr.length;case 13:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),delDubbleData:function(e){var t=this,a={};e=e.reduce((function(e,t){return!a[t.levelId]&&(a[t.levelId]=e.push(t)),e}),[]),t.totalArr=JSON.parse(JSON.stringify(e))},handleClose:function(e){var t=this;e(),t.$emit("checkAdmins","close")},cancel:function(){var e=this;e.$emit("checkAdmins","close")},submitForm:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this,t.totalArr.length){e.next=4;break}return S["a"].showmsg("请选择管理员","warning"),e.abrupt("return",!1);case 4:t.$emit("checkAdmins",JSON.parse(JSON.stringify(t.totalArr)));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleStoresChange:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t){var a,r,n,s,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=this,r=[],a.searchList.forEach((function(e){t.includes(e.levelId)&&r.push(e)})),a.totalNum=t.length,a.totalIds=t,n=JSON.parse(JSON.stringify(a.totalArr)),n=n.concat(r),e.next=9,a.delDubbleData(n);case 9:s=0;case 10:if(!(s<a.groupData.length)){e.next=19;break}if(o=a.groupData[s],t.includes(o.levelId)?o.checked=!0:o.checked=!1,!o.children||!o.children.length){e.next=16;break}return e.next=16,a.setChildCheck(o,t);case 16:s++,e.next=10;break;case 19:return a.checkedPeople=[],e.next=22,a.getCheckData();case 22:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setChildCheck:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t,a){var r,n,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=this,n=0;case 2:if(!(n<t.children.length)){e.next=11;break}if(s=t.children[n],a.includes(s.levelId)?s.checked=!0:s.checked=!1,!s.children||!s.children.length){e.next=8;break}return e.next=8,r.setChildCheck(s,a);case 8:n++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),getCheckData:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(){var t,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this,a=0;case 2:if(!(a<t.groupData.length)){e.next=11;break}if(r=t.groupData[a],r.checked&&t.checkedPeople.push(r),!r.children||!r.children.length){e.next=8;break}return e.next=8,t.getChildCheck(r.children);case 8:a++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getChildCheck:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t){var a,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=this,r=0;case 2:if(!(r<t.length)){e.next=11;break}if(n=t[r],n.checked&&a.checkedPeople.push(n),!n.children||!n.children.length){e.next=8;break}return e.next=8,a.getChildCheck(n.children);case 8:r++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),loadNode:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t,a){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=this,!r.$route.query.staffId){e.next=3;break}return e.abrupt("return",!1);case 3:if(0!==t.level){e.next=7;break}return e.abrupt("return",a(r.getStaff()));case 7:return e.next=9,r.getStaff(t,t.data,a);case 9:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),getSearchData:function(e){var t=this,a={staffName:e,wxEnterpriseId:t.wxEnterpriseId};k(a).then((function(e){e.result&&e.result.length&&e.result.forEach((function(e){e.levelId=e.staffId,e.levelName=e.staffName})),t.searchList=e.result||[]})).catch((function(e){}))},toInput:Object(m["a"])((function(e,t){var a=this;if(""==String(a.searchSelect).trim())return!1;a.getSearchData(a.searchSelect)}),200),clearSearch:function(){return!1},getStaff:function(e,t,a){var r=this,n={departmentId:t?t.levelId:"",wxEnterpriseId:r.wxEnterpriseId};y(n).then((function(n){if(n.result&&n.result.length&&n.result.forEach((function(e){e.children=[],e.checked=!!r.totalIds.includes(e.levelId),e.label=e.levelName,e.leaf=1==e.levelType})),e)return a(n.result),t.children||r.$set(t,"children",[]),t.children=n.result||[],r.$forceUpdate(),!1;r.groupData=n.result||[]})).catch((function(e){}))},setSelectData:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t){var a,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=this,r=0;case 2:if(!(r<a.groupData.length)){e.next=11;break}if(n=a.groupData[r],t.includes(n.levelId)?n.checked=!0:n.checked=!1,!n.children||!n.children.length){e.next=8;break}return e.next=8,a.setChildCheck(n,t);case 8:r++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},watch:{showAdminFlag:function(e){this.setVisible=e},selectAdmin:function(e){var t=this;t.totalNum=e.length,t.totalIds=e.map((function(e){return e.levelId}))||[],t.checkedList=e.map((function(e){return e.levelId}))||[],t.totalArr=JSON.parse(JSON.stringify(e))||[],t.setSelectData(t.checkedList)}}},_=I,w=(a("cd65"),a("2877")),D=Object(w["a"])(_,o,i,!1,null,"0e52bdc3",null),x=D.exports,C=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:["store-auth-range",e.visibleFlag?"show-range":"hide-range"]},[a("div",{staticClass:"common-mask cursor-pointer",on:{click:function(t){return t.stopPropagation(),e.handleClose(t)}}}),a("div",{staticClass:"bind-body border-box"},[a("div",{staticClass:"auth-range-title font-18 color-303133 m-b-20"},[e._v("门店管辖范围")]),a("common-alert-tip",{attrs:{width:"100%","tip-content":e.tipContent}}),a("div",{staticClass:"el-form-item el-form-item--large m-t-20"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"143px"},attrs:{for:"name"}},[e._v("\n 门店绑定授权范围\n ")]),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"143px"}},[a("el-radio",{attrs:{label:0,disabled:""},model:{value:e.bindFormData.bindStoreMode,callback:function(t){e.$set(e.bindFormData,"bindStoreMode",t)},expression:"bindFormData.bindStoreMode"}},[e._v("所有门店")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:1,disabled:""},model:{value:e.bindFormData.bindStoreMode,callback:function(t){e.$set(e.bindFormData,"bindStoreMode",t)},expression:"bindFormData.bindStoreMode"}},[e._v("选择分组")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:2,disabled:""},model:{value:e.bindFormData.bindStoreMode,callback:function(t){e.$set(e.bindFormData,"bindStoreMode",t)},expression:"bindFormData.bindStoreMode"}},[e._v("选择门店")]),"1"==e.bindFormData.bindStoreMode?a("store-auth-group-dis",{attrs:{"company-id":e.selectEnterpriseId,"store-type":1,"select-group":1==e.bindFormData.bindStoreMode?e.bindFormData.bindRange:[]}}):e._e(),"2"==e.bindFormData.bindStoreMode?a("store-auth-store-dis",{attrs:{"company-id":e.selectEnterpriseId,"store-type":1,"select-store":2==e.bindFormData.bindStoreMode?e.bindFormData.bindRange:[]}}):e._e()],1)]),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"143px"},attrs:{for:"name"}},[e._v("\n 门店共享授权范围\n ")]),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"143px"}},[a("el-radio",{attrs:{label:0,disabled:""},model:{value:e.bindFormData.shareStoreMode,callback:function(t){e.$set(e.bindFormData,"shareStoreMode",t)},expression:"bindFormData.shareStoreMode"}},[e._v("所有门店")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:1,disabled:""},model:{value:e.bindFormData.shareStoreMode,callback:function(t){e.$set(e.bindFormData,"shareStoreMode",t)},expression:"bindFormData.shareStoreMode"}},[e._v("选择分组")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:2,disabled:""},model:{value:e.bindFormData.shareStoreMode,callback:function(t){e.$set(e.bindFormData,"shareStoreMode",t)},expression:"bindFormData.shareStoreMode"}},[e._v("选择门店")]),"1"==e.bindFormData.shareStoreMode?a("store-auth-group-dis",{attrs:{"company-id":e.selectEnterpriseId,"store-type":2,"select-group":1==e.bindFormData.shareStoreMode?e.bindFormData.shareRange:[]}}):e._e(),"2"==e.bindFormData.shareStoreMode?a("store-auth-store-dis",{attrs:{"company-id":e.selectEnterpriseId,"store-type":2,"select-store":2==e.bindFormData.shareStoreMode?e.bindFormData.shareRange:[]}}):e._e()],1)]),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"143px"},attrs:{for:"name"}},[e._v("\n 管理员管辖范围\n ")]),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"143px"}},[a("el-radio",{attrs:{label:"0"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("所有门店")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"1"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("选择分组")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"2"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("选择门店")]),("1"!=e.formData.sendRange&&"2"!=e.formData.sendRange||e.formData.selectList.length)&&"null"!=String(e.formData.sendRange)&&""!==e.formData.sendRange?e._e():a("div",{staticClass:"el-form-item__error"},[e._v("请选择绑定门店")]),"1"==e.formData.sendRange?a("store-auth-group",{attrs:{"company-id":e.selectEnterpriseId,"store-type":2,"select-group":e.selectGroupData},on:{checkGroupIds:e.checkGroupIds}}):e._e(),"2"==e.formData.sendRange?a("store-auth-store",{attrs:{"company-id":e.selectEnterpriseId,"store-type":2,"select-store":e.selectStoreData},on:{checkStoreIds:e.checkStoreIds}}):e._e()],1)]),a("div",{staticClass:"el-form-item el-form-item--large"},[a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"143px"}},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])],1)])},N=[],R=(a("c5f6"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"bind-store-body"},[a("div",{staticClass:"select-search"},[a("el-input",{attrs:{placeholder:"请输入分组名称",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),a("div",{staticClass:"select-tree-wrap auth-select-tree m-t-20"},[a("el-tree",{ref:"groupTree",attrs:{"filter-node-method":e.filterNode,"check-strictly":"",data:e.groupData,"node-key":"storeGroupId","show-checkbox":"","default-expand-all":"",props:e.defaultProps,"expand-on-click-node":!1},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.node,n=t.data;return a("span",{staticClass:"custom-tree-node",attrs:{id:n.storeGroupId}},[a("span",{staticClass:"font-14 color-606266"},[e._v(e._s(r.label))]),1==n.bindFlag&&1!=n.auditFlag?a("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(n.bindWxEnterpriseName)+" 企业已授权")]):e._e(),1==n.auditFlag?a("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(n.bindWxEnterpriseName)+" 企业授权中")]):e._e()])}}])})],1)])}),F=[],O=a("21f4"),A=O["a"].getGroupList,$={name:"StoreAuthGroupPage",props:{companyId:{type:String,default:""},storeType:{type:String,default:"1"},selectGroup:{type:[Object,Array],default:function(){return{}}}},data:function(){return{searchSelect:"",groupData:[],groupDataCopy:[],defaultProps:{children:"children",label:"storeGroupName"}}},mounted:function(){var e=this;e.companyId&&e.getGroup(),e.selectGroup.length?e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys(e.selectGroup.map((function(e){return e.storeGroupId})))})):e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys([])}))},methods:{filterNode:function(e,t){return!e||!t.label||-1!==t.label.indexOf(e)},toInput:Object(m["a"])((function(e,t){var a=this;if(!a.groupDataCopy.length)return!1}),200),clearSearch:function(){return!1},checkChild:function(e,t){var a=this;e.children.forEach((function(e){a.$refs.groupTree.setChecked(e.storeGroupId,t,!0),e.disabled=!0,e.children&&e.children.length&&a.checkChild(e,t)}))},treeData:function(e){var t=e.filter((function(t){var a=e.filter((function(e){return t.storeGroupId==e.parentId}));return a.length>0?(t.hasSonNode=!0,t.children=a):(t.children=[],t.hasSonNode=!1),0==t.parentId}));return t},setSelectCheck:function(){var e=this,t=e.selectGroup.map((function(e){return e.storeGroupId}));e.groupData.forEach((function(a){a.disabled=!0,t.includes(a.storeGroupId)&&a.children.length&&e.checkChild(a,!0),t.includes(a.storeGroupId)||e.disableChild(a,t)}))},disableChild:function(e,t){var a=this;e.children.forEach((function(e){e.disabled=!0,t.includes(e.storeGroupId)&&e.children.length&&a.checkChild(e,!0),!t.includes(e.storeGroupId)&&e.children.length&&a.disableChild(e,t)}))},getGroup:function(){var e=this,t={type:e.storeType,enterpriseId:e.companyId};A(t).then(function(){var t=Object(p["a"])(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a.result&&a.result.length&&a.result.forEach((function(e){e.expand=!1,e.children=[],e.disabled=!1,e.label=e.storeGroupName})),t.next=3,e.treeData(JSON.parse(JSON.stringify(a.result)));case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0=[];case 6:e.groupData=t.t0,e.groupDataCopy=JSON.parse(JSON.stringify(a.result)),e.$nextTick((function(){e.setSelectCheck()}));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}},watch:{searchSelect:function(e){this.$refs.groupTree.filter(e)},selectGroup:function(e){var t=this;e.length?t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys(e.map((function(e){return e.storeGroupId})))})):t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys([])}))},companyId:function(e){var t=this;e&&t.getGroup()}}},M=$,J=(a("798c"),Object(w["a"])(M,R,F,!1,null,"0bd6b018",null)),L=J.exports,E=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称/代码",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[a("el-checkbox-group",{attrs:{max:50},on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,(function(t){return a("li",{key:t.storeInfoId,class:["el-select-dropdown__item",t.select?"selected hover":""],on:{click:function(a){return a.stopPropagation(),e.toShowMsg(t)}}},[a("el-checkbox",{attrs:{disabled:"",label:t.storeInfoId}},[e._v(e._s(t.storeInfoName))]),1==t.bindFlag&&1!=t.auditFlag?a("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(t.bindWxEnterpriseName)+" 企业已授权")]):e._e(),1==t.auditFlag?a("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(t.bindWxEnterpriseName)+" 企业授权中")]):e._e()],1)})),e.stores.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1)])])},G=[],j=O["a"].getStoreList,T={name:"StoreAuthStore",props:{companyId:{type:String,default:""},storeType:{type:String,default:"1"},selectStore:{type:[Object,Array],default:function(){return{}}}},data:function(){return{checkAll:!1,isIndeterminate:!1,searchSelect:"",stores:[],storesCopy:[],dailyRuleForm:{stores:[]},pageNum:1,pageSize:300}},mounted:function(){var e=this;e.stores=[],e.storesCopy=[],e.companyId&&(e.pageNum=1,e.getStoreData()),e.selectStore.length?e.dailyRuleForm.stores=e.selectStore.map((function(e){return e.storeInfoId}))||[]:e.dailyRuleForm.stores=[]},methods:{toShowMsg:function(e){1==e.bindFlag&&S["a"].showmsg("当前门店已被其他企业绑定,当前企业无法选择!","warning")},handleStoresChange:function(e){var t=this,a=[];t.stores.forEach((function(t){e.includes(t.storeInfoId)&&a.push(t)})),t.$emit("checkStoreIds",JSON.parse(JSON.stringify(a)))},toInput:Object(m["a"])((function(e,t){var a=this;""!=a.searchSelect&&(a.stores=[],a.pageNum=1,a.getStoreData())}),500),clearSearch:function(){var e=this;e.stores=[],e.pageNum=1,e.getStoreData()},getStoreData:function(){var e=this,t={search:e.searchSelect,enterpriseId:e.companyId,type:e.storeType,pageNum:e.pageNum,pageSize:e.pageSize};j(t).then((function(t){1==e.pageNum?(e.stores=JSON.parse(JSON.stringify(t.result.result))||[],e.storesCopy=JSON.parse(JSON.stringify(t.result.result))||[]):t.result.result.forEach((function(t){e.stores.push(t),e.storesCopy.push(t)})),e.pageNum*e.pageSize<t.result.totalCount&&(e.pageNum++,e.$nextTick((function(){e.getStoreData()})))})).catch((function(e){}))}},watch:{selectStore:function(e,t){var a=this;e.length?a.dailyRuleForm.stores=e.map((function(e){return e.storeInfoId}))||[]:a.dailyRuleForm.stores=[]},companyId:function(e){var t=this;e&&(t.pageNum=1,t.getStoreData())}}},q=T,P=(a("3e97"),Object(w["a"])(q,E,G,!1,null,"67a6c45b",null)),B=P.exports,U=a("7ca9"),z=a("418e"),V=a("3081"),K=O["a"].getAuthDetail,W={name:"SelectAdminStore",components:{storeAuthGroup:U["a"],storeAuthStore:z["a"],storeAuthGroupDis:L,storeAuthStoreDis:B,commonAlertTip:V["a"]},props:{showAuthFlag:{type:Boolean,default:!1},enterpriseId:{type:String,default:""},bindType:{type:[String,Number],default:"2"},selectMode:{type:[String,Number],default:""},rangeData:{type:[Object,Array],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tipContent:"管理范围是根据门店绑定与门店共享选择范围的并集。即选择门店绑定的范围拥有管理权限,门店共享和门店绑定范围的并集拥有查看权限",visibleFlag:!1,bindFormData:{},formData:{sendRange:this.selectMode||"",selectList:[]},selectEnterpriseId:this.enterpriseId,selectGroupData:[],selectStoreData:[]}},mounted:function(){var e=this;e.selectEnterpriseId=e.enterpriseId,e.visibleFlag=e.showAuthFlag,e.formData.sendRange="null"==String(e.selectMode)?"":String(e.selectMode),e.selectGroupData=1==e.selectMode?JSON.parse(JSON.stringify(e.rangeData)):[],e.selectStoreData=2==e.selectMode?JSON.parse(JSON.stringify(e.rangeData)):[],e.formData.selectList=JSON.parse(JSON.stringify(e.rangeData))||[],e.enterpriseId&&e.getData()},methods:{getData:function(){var e=this,t={enterpriseId:e.enterpriseId,wxEnterpriseId:e.wxEnterpriseId};K(t).then((function(t){t.result.bindRange?t.result.bindRange=JSON.parse(t.result.bindRange):t.result.bindRange=[],t.result.shareRange?t.result.shareRange=JSON.parse(t.result.shareRange):t.result.shareRange=[],e.bindFormData=t.result||{}})).catch((function(e){}))},changeRange:function(e){var t=this;t.formData.sendRange=e,t.formData.selectList=[]},handleClose:function(){var e=this;e.$emit("closeSet","close"),e.selectGroupData=[],e.selectStoreData=[]},cancel:function(){var e=this;e.$emit("closeSet","close"),e.selectGroupData=[],e.selectStoreData=[]},checkGroupIds:function(e){var t=this;t.formData.selectList=JSON.parse(JSON.stringify(e))},checkStoreIds:function(e){var t=this;t.formData.selectList=JSON.parse(JSON.stringify(e))},submitForm:function(){var e=this;return"null"!=String(e.formData.sendRange)&&""!==e.formData.sendRange&&(!("1"==e.formData.sendRange&&!e.formData.selectList.length)&&(!("2"==e.formData.sendRange&&!e.formData.selectList.length)&&void e.$emit("closeSet",String(e.formData.sendRange),e.formData.selectList)))}},watch:{showAuthFlag:function(e){this.visibleFlag=e},searchSelect:function(e){this.$refs.groupTree.filter(e)},selectMode:function(e){var t=this;t.formData.sendRange="null"==String(e)?"":String(e)},rangeData:function(e){var t=this;t.selectGroupData=1==t.selectMode?JSON.parse(JSON.stringify(e)):[],t.selectStoreData=2==t.selectMode?JSON.parse(JSON.stringify(e)):[],t.formData.selectList=JSON.parse(JSON.stringify(e))||[]},enterpriseId:function(e){var t=this;t.selectEnterpriseId=e,e&&t.getData()}}},H=W,Q=(a("6af5"),Object(w["a"])(H,C,N,!1,null,"0f33a509",null)),X=Q.exports,Y=v.getRoleRange,Z=v.addAdmin,ee={name:"EditAdminPage",components:{navCrumb:s["a"],selectAdmin:x,selectAdminStore:X},data:function(){return{navpath:[{name:"管理员",path:"/admin-list"},{name:this.$route.query.staffId?"编辑管理员":"新建管理员",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",adminName:this.$route.query.staffName?this.$route.query.staffName:"",adminForm:{adminList:[],enterpriseList:[]},rules:{adminList:[{type:"array",required:!0,message:"请选择管理员",trigger:"change"}],enterpriseList:[{type:"array",required:!0,message:"请选择授权范围",trigger:"change"}]},loadBtn:!1,tableData:[{}],showAdminFlag:!1,showAuthFlag:!1,enterpriseId:"",selectMode:"",rangeData:[],editIndex:"",editRow:{bindRange:[],bindStoreMode:"",enterpriseId:"",enterpriseName:"",shareRange:[],shareStoreMode:""}}},mounted:function(){var e=this;e.$emit("showAsideMenu",!1),e.getTableList(),e.$route.query.staffId&&(e.adminForm.adminList=[{levelId:e.$route.query.staffId,levelName:e.$route.query.levelName}]),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{saveAdmin:function(e){var t=this,a=JSON.parse(JSON.stringify(t.tableData)),r=!0;a.forEach((function(e){2==e.radio&&(e.bindStoreMode="",e.bindRange=""),1==e.radio&&e.bindStoreMode>0&&e.bindRange.length&&(e.bindGroupIds=1==e.bindStoreMode?e.bindRange.map((function(e){return e.storeGroupId})).join(","):"",e.bindStoreIds=2==e.bindStoreMode?e.bindRange.map((function(e){return e.storeInfoId})).join(","):""),1==e.radio&&(e.bindStoreMode>0&&!e.bindRange.length||""===e.bindStoreMode||"null"==String(e.bindStoreMode))&&(r=!1)})),a.forEach((function(e){delete e.bindRange})),t.adminForm.enterpriseList=r?a:[],t.loadBtn=!0,t.$refs[e].validate((function(e){if(!e)return t.loadBtn=!1,!1;t.postSave(a)}))},postSave:function(e){var t=this,a={roleId:t.$route.query.roleId,staffIds:t.$route.query.staffId||t.adminForm.adminList.map((function(e){return e.levelId})).join(","),enterpriseRange:JSON.stringify(e),wxEnterpriseId:t.wxEnterpriseId};Z(a).then((function(e){t.loadBtn=!1,"0000"==e.code?(S["a"].showmsg("保存成功","success"),t.$router.push("/admin-list")):t.$message({message:e.message||"未知错误",type:"warning"})})).catch((function(e){t.loadBtn=!1}))},showAdmin:function(){var e=this;if(e.$route.query.staffId)return!1;e.showAdminFlag=!0},delAdmin:function(e,t){t.splice(e,1)},checkAdmins:function(e){var t=this;if(t.showAdminFlag=!1,"close"==e)return!1;t.adminForm.adminList=e},showAuth:function(e,t){var a=this;a.selectMode="",a.editIndex=e,a.editRow=t,a.enterpriseId=t.enterpriseId,a.selectMode=t.bindStoreMode,a.rangeData=JSON.parse(JSON.stringify(t.bindRange))||[],a.showAuthFlag=!0},closeSet:function(e,t){var a=this;if(a.showAuthFlag=!1,a.selectMode="","close"==e)return!1;a.editRow.bindStoreMode=String(e),a.editRow.bindRange=JSON.parse(JSON.stringify(t))},delAuth:function(e,t){t.splice(e,1)},changeRoute:function(e){this.$router.push(e)},getTableList:function(){var e=this,t={roleId:e.$route.query.roleId,staffId:e.$route.query.staffId,wxEnterpriseId:e.wxEnterpriseId};Y(t).then((function(t){t.result&&t.result.length&&t.result.forEach((function(e){e.radio=(null!=e.bindStoreMode&&""!==e.bindStoreMode||"[]"!=e.bindRange&&""!=e.bindRange)&&-1!=e.bindStoreMode?"1":"2",e.bindRange?e.bindRange=JSON.parse(e.bindRange):e.bindRange=[]})),e.tableData=t.result||[]})).catch((function(e){}))}}},te=ee,ae=(a("4dbe"),Object(w["a"])(te,r,n,!1,null,"5cd06998",null));t["default"]=ae.exports},cd65:function(e,t,a){"use strict";var r=a("780a"),n=a.n(r);n.a},e6f1:function(e,t,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-256a84d4"],{1639:function(t,e,i){},4325:function(t,e,i){"use strict";var u=i("1639"),a=i.n(u);a.a},"71f6":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));i("ac6a"),i("456d");var u=i("b775");function a(t,e){t=t||{};var i=Object.keys(t);return i.forEach((function(i){var a=t[i];"string"===typeof a&&(a={url:a}),a.url="".concat(e).concat(a.url),t[i]=function(t){return Object(u["a"])(a,t)}})),t}},"727c":function(t,e,i){"use strict";i.r(e);var u=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"audit-item-list"},[i("div",{staticClass:"audit-item-header"},[i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.toCreateItem()}}},[t._v("新建事项")])],1),i("el-table",{attrs:{data:t.auditItemList}},[i("el-table-column",{attrs:{label:"审核组",prop:"auditGroupName",formatter:function(t,e,i){return i||"--"},"show-overflow-tooltip":""}}),i("el-table-column",{attrs:{label:"审核事项",prop:"auditTypes","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[t._v(t._s(t._f("formatAuditTypes")(i.auditTypes,t.auditTypes)))]}}])}),i("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){var u=e.row;return[i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.toCreateItem(u)}}},[t._v("编辑")]),i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.onDelItem(u)}}},[t._v("删除")])]}}])})],1)],1)},a=[],r=(i("28a5"),i("8175")),n=i("96b6"),o=n["a"].auditItemList,d=n["a"].delAuditItem,s={name:"AuditItemList",data:function(){return{wxEnterpriseId:"",auditTypes:r["a"],auditItemList:[]}},created:function(){var t=JSON.parse(localStorage.getItem("haoBanUser")||"{}");this.wxEnterpriseId=t.wxEnterpriseId,this.$emit("showTab","/audit-item-list"),this.getAuditItemList()},methods:{getAuditItemList:function(){var t=this;o({wxEnterpriseId:this.wxEnterpriseId}).then((function(e){t.auditItemList=e.result||[]}))},toCreateItem:function(t){var e=t||{},i=e.auditItemId,u="/create-audit-item";this.$router.push(i?"".concat(u,"?auditItemId=").concat(i):u)},onDelItem:function(t){var e=this,i=t.auditGroupName,u=t.auditItemId;this.$confirm("确定删除【 ".concat(i," 】吗?"),"提示",{type:"warning"}).then((function(){d({auditItemId:u}).then((function(t){e.$message.success("删除成功!"),e.getAuditItemList()}))}))}},filters:{formatAuditTypes:function(t,e){if(!t)return"--";t=t.split(",");var i=e.filter((function(e){return t.some((function(t){return t==e.type}))}));return i.length>0?i.map((function(t){return t.title})).join("、"):"--"}}},c=s,l=(i("4325"),i("2877")),p=Object(l["a"])(c,u,a,!1,null,"7a8bffe2",null);e["default"]=p.exports},8175:function(t,e,i){"use strict";e["a"]=[{type:"3",title:"导购账号新增",desc:"能看到管辖范围内导购添加的审核事项"},{type:"1",title:"导购账号绑定",desc:"能看到管辖范围内导购账号绑定申请"}]},"96b6":function(t,e,i){"use strict";var u=i("71f6"),a={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};a=Object(u["a"])(a,"/hb-manage-web"),e["a"]=a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-261261c7"],{"28a5":function(t,e,a){"use strict";var n=a("aae3"),i=a("cb7c"),s=a("ebd6"),r=a("0390"),l=a("9def"),o=a("5f1b"),u=a("520a"),c=a("79e5"),d=Math.min,f=[].push,p="split",g="length",h="lastIndex",v=4294967295,m=!c((function(){RegExp(v,"y")}));a("214f")("split",2,(function(t,e,a,c){var b;return b="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[g]||2!="ab"[p](/(?:ab)*/)[g]||4!="."[p](/(.?)(.?)/)[g]||"."[p](/()()/)[g]>1||""[p](/.?/)[g]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!n(t))return a.call(i,t,e);var s,r,l,o=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,p=void 0===e?v:e>>>0,m=new RegExp(t.source,c+"g");while(s=u.call(m,i)){if(r=m[h],r>d&&(o.push(i.slice(d,s.index)),s[g]>1&&s.index<i[g]&&f.apply(o,s.slice(1)),l=s[0][g],d=r,o[g]>=p))break;m[h]===s.index&&m[h]++}return d===i[g]?!l&&m.test("")||o.push(""):o.push(i.slice(d)),o[g]>p?o.slice(0,p):o}:"0"[p](void 0,0)[g]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,n){var i=t(this),s=void 0==a?void 0:a[e];return void 0!==s?s.call(a,i,n):b.call(String(i),a,n)},function(t,e){var n=c(b,t,this,e,b!==a);if(n.done)return n.value;var u=i(t),f=String(this),p=s(u,RegExp),g=u.unicode,h=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(m?"y":"g"),C=new p(m?u:"^(?:"+u.source+")",h),w=void 0===e?v:e>>>0;if(0===w)return[];if(0===f.length)return null===o(C,f)?[f]:[];var D=0,_=0,x=[];while(_<f.length){C.lastIndex=m?_:0;var y,S=o(C,m?f:f.slice(_));if(null===S||(y=d(l(C.lastIndex+(m?0:_)),f.length))===D)_=r(f,_,g);else{if(x.push(f.slice(D,_)),x.length===w)return x;for(var I=1;I<=S.length-1;I++)if(x.push(S[I]),x.length===w)return x;_=D=y}}return x.push(f.slice(D)),x}]}))},3236:function(t,e,a){"use strict";var n=a("910d"),i=a.n(n);i.a},6300:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,(function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]}))],2)])]),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,(function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]}))],2)])])],1)],1)])],1)},i=[],s={name:"StoreChangeDialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},mounted:function(){var t=this;t.leftData=t.storeChangeData.beforeContent,t.rightData=t.storeChangeData.afterContent},methods:{handleCardClose:function(){var t=this;t.customCancel()},customCancel:function(){var t=this;t.customDialog=!1,t.$emit("input",t.customDialog)}},watch:{value:function(t,e){var a=this;a.customDialog=t},storeChangeData:function(t,e){var a=this;a.leftData=t.beforeContent,a.rightData=t.afterContent}}},r=s,l=(a("3236"),a("2877")),o=Object(l["a"])(r,n,i,!1,null,"19a03e61",null);e["a"]=o.exports},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));a("ac6a"),a("456d");var n=a("b775");function i(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var i=t[a];"string"===typeof i&&(i={url:i}),i.url="".concat(e).concat(i.url),t[a]=function(t){return Object(n["a"])(i,t)}})),t}},"910d":function(t,e,a){},9377:function(t,e,a){},"96b6":function(t,e,a){"use strict";var n=a("71f6"),i={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};i=Object(n["a"])(i,"/hb-manage-web"),e["a"]=i},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,i=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,i)}),n)}}function i(t,e){var a,n,i=e||200;return function(){var e=this,s=arguments,r=+new Date;a&&r-a<i?(clearTimeout(n),n=setTimeout((function(){a=r,t.apply(e,s)}),i)):(a=r,t.apply(e,s))}}function s(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},dacc:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"reviewed-wrap common-set-wrap"},[n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("div",{staticClass:"reviewed-body-head"},[t._m(0),n("el-input",{staticClass:"w-344",attrs:{maxlength:"50",placeholder:"请输入提交人姓名/账号/手机号","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return function(e){return t.searchEnterFun(e,t.searchInput)}(e)}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),n("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:t.changeTableList},model:{value:t.auditType,callback:function(e){t.auditType=e},expression:"auditType"}},t._l(t.filterOptions,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),n("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:t.changeTableList},model:{value:t.filterBrand,callback:function(e){t.filterBrand=e},expression:"filterBrand"}},[n("el-option",{attrs:{label:"全部品牌",value:""}}),t._l(t.brandOptions,(function(t){return n("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})}))],2)],1),n("div",{staticClass:"reviewed-body-content"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?n("span",[t._v("导购账号绑定")]):t._e(),3==e.row.auditType?n("span",[t._v("导购账号新增")]):t._e()]}}])}),n("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"flex"},[n("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"},on:{show:function(a){return t.showSingleInfo(e.row.submitStaffId)}}},[n("div",{staticClass:"apply-info-detail"},[n("div",{staticClass:"flex"},[n("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82c5ff "},[t.userData.headImg?n("img",{attrs:{src:t.userData.headImg,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})]),n("div",{staticClass:"flex flex-column apply-info-right flex-pack-center"},[n("div",{staticClass:"apply-info-name"},[n("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.staffName||"--"))]),n("span",{staticClass:"font-14 color-90939"},[t._v("( "+t._s(1==t.userData.sex?"男":2==t.userData.sex?"女":"--")+")")])])])]),n("div",{staticClass:"flex flex-space-between line-26 m-t-15"},[n("div",{staticClass:"font-14 color-606266"},[t._v("账号")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.wxUserId||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266"},[t._v("职务")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.postion||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266"},[t._v("手机号")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.nationCode||"--")+"-"+t._s(t.userData.phoneNumber||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266 w-m-100"},[t._v("部门")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.departmentInfo.map((function(t){return t.departmentName})).join(";")||"--"))])])]),n("div",{attrs:{slot:"reference"},slot:"reference"},[n("div",{staticClass:"flex flex-align-center flex-pack-center bg-82c5ff table-head-pic cursor-pointer"},[e.row.submitHeadImg?n("img",{attrs:{src:e.row.submitHeadImg,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})])])]),n("div",{staticClass:"flex flex-column apply-info",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[n("span",{staticClass:"font-14 color-606266 hide-ellipsis"},[t._v(t._s(e.row.submitStaffName||"--"))]),n("span",{staticClass:"font-12 color-909399 hide-ellipsis"},[t._v(t._s(e.row.submitWxUserId||"--"))])])],1)]}}])}),n("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.content||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),n("el-table-column",{attrs:{label:"审核人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.auditStaffName||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{class:["span-dot",1==e.row.auditFlag?"bg-52c41a":"bg-f5222d"]}),1==e.row.auditFlag?n("span",[t._v("已同意")]):t._e(),2==e.row.auditFlag?n("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[n("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("已拒绝")])]):t._e()]}}])}),n("el-table-column",{attrs:{label:"结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[2==e.row.statusFlag&&1==e.row.auditFlag?n("span",[t._v("成功")]):t._e(),2==e.row.auditFlag?n("span",[t._v("--")]):t._e(),1==e.row.statusFlag&&1==e.row.auditFlag?n("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[n("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right"},[n("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])]),n("store-change",{attrs:{"store-change-data":t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}})],1)},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tip-body m-b-20"},[a("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title"},[t._v("展示管理员审核及绑定解绑记录及门店成员自助增删导购及用户绑定记录")])])])])}],s=(a("28a5"),a("ac6a"),a("6300")),r=a("96b6"),l=a("e230"),o=a("d157"),u=l["a"].getStaffDetail,c=r["a"].getReview,d=r["a"].getWxEnterprise,f={name:"ReviewedPage",components:{storeChange:s["a"]},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditType:"",filterBrand:"",brandOptions:[],filterOptions:[{label:"全部事项",value:""},{label:"导购账号绑定",value:"1"},{label:"导购账号新增",value:"3"}],searchValue:"",loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,showStoreDialog:!1,storeChangeData:{},userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}}},mounted:function(){var t=this;t.$emit("showTab","/reviewed"),t.getTableList(),t.getBrandData()},methods:{changeTableList:function(){var t=this;t.currentPage=1,t.getTableList()},clearSearch:function(){var t=this;t.currentPage=1,t.getTableList()},searchEnterFun:Object(o["a"])((function(t){var e=this,a=String(t.target.value).trim();if(!a)return!1;e.currentPage=1,e.getTableList()}),200),toggleReason:function(t){var e=this;t.visible=!0,e.tableData.forEach((function(e,a){e.enterpriseAuditingId!=t.enterpriseAuditingId&&(e.visible=!1)}))},handleSelectionChange:function(t){var e=this;e.multipleSelection=t},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},showSingleInfo:function(t){var e=this,a={staffId:t};u(a).then((function(t){e.userData=t.result||{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}})).catch((function(t){}))},showStoreChange:function(t){var e=this;e.storeChangeData={beforeContent:[],afterContent:[]},e.showStoreDialog=!0,e.storeChangeData={beforeContent:""!=t.oldValue?t.oldValue.split(","):[],afterContent:""!=t.newValue?t.newValue.split(","):[]}},getBrandData:function(){var t=this;d({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){e.result&&e.result.length&&(t.brandOptions=e.result)})).catch((function(t){}))},getTableList:function(){var t=this;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId,auditType:t.auditType,searchType:"1",search:t.searchValue||"",pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.filterBrand};c(e).then((function(e){t.loading=!1,t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(e){t.loading=!1}))}}},p=f,g=(a("e643"),a("2877")),h=Object(g["a"])(p,n,i,!1,null,"15481f27",null);e["default"]=h.exports},e230:function(t,e,a){"use strict";var n=a("71f6"),i={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/nationcode/get-nationcode-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};i=Object(n["a"])(i,"/hb-manage-web"),e["a"]=i},e643:function(t,e,a){"use strict";var n=a("9377"),i=a.n(n);i.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28575e65"],{"28a5":function(e,t,n){"use strict";var a=n("aae3"),i=n("cb7c"),r=n("ebd6"),o=n("0390"),c=n("9def"),s=n("5f1b"),l=n("520a"),u=n("79e5"),h=Math.min,f=[].push,d="split",m="length",p="lastIndex",v=4294967295,b=!u((function(){RegExp(v,"y")}));n("214f")("split",2,(function(e,t,n,u){var g;return g="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[m]||2!="ab"[d](/(?:ab)*/)[m]||4!="."[d](/(.?)(.?)/)[m]||"."[d](/()()/)[m]>1||""[d](/.?/)[m]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(i,e,t);var r,o,c,s=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,d=void 0===t?v:t>>>0,b=new RegExp(e.source,u+"g");while(r=l.call(b,i)){if(o=b[p],o>h&&(s.push(i.slice(h,r.index)),r[m]>1&&r.index<i[m]&&f.apply(s,r.slice(1)),c=r[0][m],h=o,s[m]>=d))break;b[p]===r.index&&b[p]++}return h===i[m]?!c&&b.test("")||s.push(""):s.push(i.slice(h)),s[m]>d?s.slice(0,d):s}:"0"[d](void 0,0)[m]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,a){var i=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,i,a):g.call(String(i),n,a)},function(e,t){var a=u(g,e,this,t,g!==n);if(a.done)return a.value;var l=i(e),f=String(this),d=r(l,RegExp),m=l.unicode,p=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(b?"y":"g"),w=new d(b?l:"^(?:"+l.source+")",p),C=void 0===t?v:t>>>0;if(0===C)return[];if(0===f.length)return null===s(w,f)?[f]:[];var y=0,x=0,N=[];while(x<f.length){w.lastIndex=b?x:0;var S,T=s(w,b?f:f.slice(x));if(null===T||(S=h(c(w.lastIndex+(b?0:x)),f.length))===y)x=o(f,x,m);else{if(N.push(f.slice(y,x)),N.length===C)return N;for(var D=1;D<=T.length-1;D++)if(N.push(T[D]),N.length===C)return N;x=y=S}}return N.push(f.slice(y)),N}]}))},"4f88":function(e,t,n){"use strict";var a=n("910f"),i=n.n(a);i.a},"503e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"p-t-12"},[n("ul",{staticClass:"tab-left-list"},[e._l(e.tabData,(function(t,a){return[n("li",{key:a,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(n){return e.selectTab(t,!1,a)}}},[n("i",{class:["p-r-10 color-303133 iconfont",t.iconUrl,(t.onlyIconActive,"")]}),e._v(e._s(t.tabName||t.menuName)+"\n ")]),n("ul",{key:"childitem"+a,staticClass:"child-tab-left-list"},[e._l(t.children,(function(t,i){return[n("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(n){return e.selectTab(t,"child",a)}}},[e._v(e._s(t.tabName||t.menuName))]),n("ul",{key:"thirditem"+i,staticClass:"third-tab-left-list"},[e._l(t.children,(function(t,i){return[n("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(n){return e.selectTab(t,"child",a)}}},[e._v(e._s(t.tabName||t.menuName))])]}))],2)]}))],2)]}))],2)])},i=[],r=(n("ac6a"),n("c5f6"),{name:"CommonDetailLeft",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return""}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData,collapsFlag:!0}},mounted:function(){this.activeTab=this.activeSelTab},methods:{selectTab:function(e,t,n){var a=this;if(t?a.tabData[n].onlyIconActive=!0:(a.tabData.forEach((function(e){e.onlyIconActive=!1})),e.hasOwnProperty("children")&&e.children.length&&(a.collapsFlag=!(a.collapsFlag&&e.hasOwnProperty("children")&&e.children.length))),e.hasOwnProperty("children")&&e.children.length)return a.tabData[n].onlyIconActive=!0,e.children[0]&&e.children[0].hasOwnProperty("children")&&e.children[0].children.length?(a.activeTab=e.children[0].children[0].menuUrl,a.$emit("setSelectTab",e.children[0].children[0]),!1):(a.activeTab=e.children[0].menuUrl,a.$emit("setSelectTab",e.children[0]),!1);a.activeTab=e.menuUrl,a.$emit("setSelectTab",e)}},watch:{tabListData:function(e,t){var n=this;n.tabData=e},activeSelTab:function(e,t){var n=this;n.activeTab=e}}}),o=r,c=(n("6255"),n("2877")),s=Object(c["a"])(o,a,i,!1,null,"61fa9846",null);t["a"]=s.exports},"57fc":function(e,t,n){},5937:function(e,t,n){"use strict";var a=n("71f6"),i={getRoleMenu:"/list-staff-role-menu"};i=Object(a["a"])(i,"/hb-manage-web"),t["a"]=i},6255:function(e,t,n){"use strict";var a=n("57fc"),i=n.n(a);i.a},"6ce2":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("ac6a"),n("456d");var a=n("b775");function i(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var i=e[n];"string"===typeof i&&(i={url:i}),i.url="".concat(t).concat(i.url),e[n]=function(e){return Object(a["a"])(i,e)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),i={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};i=Object(a["a"])(i,"/hb-manage-web/auth"),t["a"]=i},"910f":function(e,t,n){},e22b:function(e,t,n){"use strict";var a=n("ea9b"),i=n.n(a);i.a},ea02:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"my-customer-wrap common-set-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName,"current-menu-code":e.currentMenuCode},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView,leftData:e.leftData}}),n("div",{staticClass:"enterprise-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body"},[n("div",{staticClass:"right-content border-box",style:{padding:e.showAsideMenu?"20px":"0 20px 20px 20px"}},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showAsideMenu,expression:"showAsideMenu"}],staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("common-detail-left",{attrs:{"tab-list-data":e.tabListData,"active-sel-tab":e.activeSelTab},on:{setSelectTab:e.setSelectTab}})],1),n("div",{staticClass:"apps-content-right border-box",style:{width:e.showAsideMenu?"calc(100% - 157px)":"100%",paddingLeft:e.showAsideMenu?"10px":"0"}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view",{attrs:{"brand-id":e.activeBrand,"active-group-id":e.activeGroup,"tab-type":e.activeTab},on:{showTab:e.showTab,showAsideMenu:function(t){return e.showAsideMenu=t}}})],1)],1)])])])])])])],1)},i=[],r=(n("ac6a"),n("503e")),o=n("f777"),c={name:"EnterpriseSetIndex",components:{commonDetailLeft:r["a"],vueOfficeHeader:o["a"]},data:function(){return{bgHeight:window.screen.availHeight-288+"px",activeSelTab:"1",activeTab:"1",currentMenuCode:"enterprise",tabListData:[],activeBrand:"",activeGroup:"",showAsideMenu:!0}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{toRouterView:function(e){var t=this;t.$router.push({path:e.path})},changeRoute:function(e){this.$router.push(e)},selectBrandId:function(e,t){var n=this;n.activeBrand=e,n.activeGroup=t},setSelectTab:function(e){var t=this;t.activeTab=e.menuUrl,1==e.target?-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl)):t.$router.push(e.menuUrl)},showTab:function(e){var t=this;t.activeTab=e,t.activeSelTab=e,t.tabListData.forEach((function(t){t.menuUrl==e&&(t.onlyIconActive=!1),t.children&&t.children.forEach((function(n){n.menuUrl==e&&(t.onlyIconActive=!0),n.children&&n.children.forEach((function(n){n.menuUrl==e&&(t.onlyIconActive=!0)}))}))}))},leftData:function(e){var t=this;e[0].children.forEach((function(e,n){e.tabId=n+1,e.tabName=e.menuName,e.children&&e.children.length&&t.setChildData(e,n+1)})),t.tabListData=e[0].children},setChildData:function(e,t){var n=this;e.children.forEach((function(e,a){e.tabId=t+"-"+(a+1),e.tabName=e.menuName,e.children&&e.children.length&&n.setChildData(e,t+"-"+(a+1))}))}},watch:{"$route.path":function(){this.showAsideMenu=!0},activeBrand:function(e,t){var n=this;n.activeBrand=e},activeGroup:function(e,t){var n=this;n.activeGroup=e}}},s=c,l=(n("4f88"),n("2877")),u=Object(l["a"])(s,a,i,!1,null,"e630f2d2",null);t["default"]=u.exports},ea9b:function(e,t,n){},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)||e.currentMenuCode==t.menuCode?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},i=[],r=(n("456d"),n("96cf"),n("1da1")),o=(n("ac6a"),n("28a5"),n("7ded")),c=n("5937"),s=c["a"].getRoleMenu,l=o["a"].getUserInfo,u=o["a"].loginOut,h={name:"VueOfficeHeader",components:{},props:{currentMenuCode:{type:String,default:""}},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl));else{t.setLeftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0])})),t.$router.push(n.menuUrl)}},setLeftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){u({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(e){}))})).catch((function(){}))},toLogin:function(){var e=this;l({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={appType:1};s(t).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(n){var a,i,r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],i={},r={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(i=t),e.$route.path==t.menuUrl&&1!=t.level&&(r=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(r).length&&2==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(i=e)})),o={},Object.keys(r).length&&3==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(o=e)})),Object.keys(o).length&&2==o.level&&n.result.forEach((function(e){o.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(i=e)})),e.setLeftData(i);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},f=h,d=(n("e22b"),n("2877")),m=Object(d["a"])(f,a,i,!1,null,"26c74afb",null);t["a"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b9acf53"],{"2f21":function(e,t,a){"use strict";var n=a("79e5");e.exports=function(e,t){return!!e&&n((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"50d4":function(e,t,a){"use strict";var n=a("e950"),r=a.n(n);r.a},"55dd":function(e,t,a){"use strict";var n=a("5ca1"),r=a("d8e8"),s=a("4bf8"),o=a("79e5"),i=[].sort,l=[1,2,3];n(n.P+n.F*(o((function(){l.sort(void 0)}))||!o((function(){l.sort(null)}))||!a("2f21")(i)),"Array",{sort:function(e){return void 0===e?i.call(s(this)):i.call(s(this),r(e))}})},"55fd":function(e,t,a){"use strict";var n=a("ba2f"),r=a.n(n);r.a},ba2f:function(e,t,a){},c7d7:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-app-right"},[a("div",{staticClass:"crowd-scene-tip m-b-20"},[a("common-alert-tip",{attrs:{width:"100%","tip-content":e.tipContent,"tip-two-content":e.tipTwoContent}})],1),a("div",{staticClass:"crowd-scene-search flex flex-space-between m-b-20"},[a("div",[a("el-input",{staticStyle:{width:"408px"},attrs:{placeholder:"请输入人群名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t)}(t)}},model:{value:e.searchVal,callback:function(t){e.searchVal=t},expression:"searchVal"}}),a("el-select",{staticClass:"w-162 m-l-10",attrs:{placeholder:"所有分类"},on:{change:e.changeCondition},model:{value:e.classifyId,callback:function(t){e.classifyId=t},expression:"classifyId"}},[a("el-option",{attrs:{label:"所有分类",value:""}}),e._l(e.classifyList,(function(e){return a("el-option",{key:e.sceneCrowdCategoryId,attrs:{label:e.sceneCrowdCategoryName,value:e.sceneCrowdCategoryId}})}))],2)],1),a("div",[a("el-button",{attrs:{disabled:e.totalNum>=20,type:"primary"},on:{click:e.toSync}},[e._v("同步场景人群")])],1)]),a("div",{staticClass:"crowd-scene-table"},[a("div",{staticClass:"crowd-scene-table_left"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"memberCrowdData",staticStyle:{width:"100%"},attrs:{data:e.memberCrowdData,"row-key":"sceneCrowdId"}},[a("el-table-column",{directives:[{name:"show",rawName:"v-show",value:""===e.searchVal&&""===e.classifyId,expression:"searchVal === '' && classifyId === ''"}],attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell"}},[[a("span",{class:["font-22 iconfont icontuozhuaiopen color-c0c4cc",""===e.searchVal&&""===e.classifyId?"show-icon":"hide-icon"],staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"",label:"人群名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.sceneCrowdName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"所属分类","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.sceneCrowdCategoryName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"到期时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.sceneCrowdExpireTime))+" "+e._s(t.row.sceneCrowdExpireTime?"":"--"))]),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.sceneCrowdExpireTime))+" "+e._s(t.row.sceneCrowdExpireTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toEdit(t.$index,t.row)}}},[e._v("编辑可见范围")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)],1)]),e.showSync?a("sync-crowd-dialog",{attrs:{"select-ids":e.selectIds,"total-num":e.totalNum,"brand-id":e.brandId},on:{refreshData:e.refreshData}}):e._e(),e.showSelectStore?a("edit-visiable",{attrs:{"brand-id":e.brandId,"set-item-id":e.setItemId,"set-type":"crowd","select-mode":e.selectMode,"range-data":e.rangeData},on:{refreshData:e.refreshData}}):e._e()],1)},r=[],s=(a("55dd"),a("3081")),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"同步场景人群",visible:e.dialogVisible,width:"726px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"sync-tip m-b-20"},[a("common-alert-tip",{attrs:{width:"400px","tip-content":e.tipContent}})],1),a("div",{staticClass:"sync-search"},[a("div",{staticClass:"flex flex-space-between"},[a("div",[a("el-input",{staticStyle:{width:"292px"},attrs:{placeholder:"请输入人群名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t)}(t)}},model:{value:e.searchVal,callback:function(t){e.searchVal=t},expression:"searchVal"}}),a("el-select",{staticClass:"w-165 m-l-10",attrs:{placeholder:"所有分类"},on:{change:e.changeCondition},model:{value:e.classifyId,callback:function(t){e.classifyId=t},expression:"classifyId"}},[a("el-option",{attrs:{label:"所有分类",value:""}}),e._l(e.classifyList,(function(e){return a("el-option",{key:e.sceneCrowdCategoryId,attrs:{label:e.sceneCrowdCategoryName,value:e.sceneCrowdCategoryId}})}))],2)],1)])]),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingPage,expression:"loadingPage"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{height:"400",data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.selectable,width:"55"}}),a("el-table-column",{attrs:{prop:"",label:"人群名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{class:[e.selectIds.includes(t.row.sceneCrowdId)?"color-909399":"color-606266"]},[e._v(e._s(e.selectIds.includes(t.row.sceneCrowdId)?"(已选择)":"")+e._s(t.row.sceneCrowdName||"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"所属分类","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{class:[e.selectIds.includes(t.row.sceneCrowdId)?"color-909399":"color-606266"]},[e._v(e._s(t.row.sceneCrowdCategoryName||"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"到期时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{class:["line-18",e.selectIds.includes(t.row.sceneCrowdId)?"color-909399":"color-606266"]},[e._v(e._s(e._f("timeStampToYmd")(t.row.sceneCrowdExpireTime))+" "+e._s(t.row.sceneCrowdExpireTime?"":"--"))]),a("div",{class:["line-18",e.selectIds.includes(t.row.sceneCrowdId)?"color-909399":"color-606266"]},[e._v(e._s(e._f("timeStampToHms")(t.row.sceneCrowdExpireTime))+" "+e._s(t.row.sceneCrowdExpireTime?"":"--"))])]}}])})],1),e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-size":e.pageSize,layout:"prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:e.submitForm}},[e._v("立即同步("+e._s(e.multipleSelection.length)+"/"+e._s(20-e.totalNum)+")")])],1)])},i=[],l=(a("ac6a"),a("6762"),a("2fdb"),a("c5f6"),a("d11a")),c=a("5b4e"),d=a("d157"),u=l["a"].getSyncMemberData,f=l["a"].getClassifyData,p=l["a"].saveSync,m={name:"SyncCrowdDialog",components:{commonAlertTip:s["a"]},props:{brandId:{type:String,default:""},totalNum:{type:[String,Number],default:"0"},selectIds:{type:Array,default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",dialogVisible:!0,tipContent:"从GIC最多可同步20个场景人群",searchVal:"",classifyId:"",classifyList:[],loadingPage:!1,currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[],loadingBtn:!1}},mounted:function(){var e=this;e.brandId&&(e.getTableList(),e.getGroupClassify())},methods:{selectable:function(e,t){var a=this;return!a.selectIds.includes(e.sceneCrowdId)},submitForm:Object(d["a"])((function(){var e=this;return e.multipleSelection.length?e.multipleSelection.length>20-e.totalNum?(c["a"].showmsg("最多还可同步".concat(20-e.totalNum,"个场景人群"),"warning"),!1):(e.loadingBtn=!0,void e.postAdd()):(c["a"].showmsg("请选择场景人群","warning"),!1)}),300),postAdd:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,sceneCrowdIds:e.multipleSelection.map((function(e){return e.sceneCrowdId})).join(",")};p(t).then((function(t){e.loadingBtn=!1,"0000"==t.code?(c["a"].showmsg("同步成功","success"),e.clearData(),e.$emit("refreshData","success")):c["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){e.loadingBtn=!1}))},handleSelectionChange:function(e){var t=this,a=20-t.totalNum;if(e&&e.length>a){t.multipleSelection=e.slice(0,a);var n=t.multipleSelection.map((function(e){return e.sceneCrowdId}));return t.$refs.multipleTable.clearSelection(),t.tableData.forEach((function(e){n.includes(e.sceneCrowdId)&&t.$refs.multipleTable.toggleRowSelection(e)})),!1}t.multipleSelection=e},cancel:function(){var e=this;e.clearData(),e.$emit("refreshData","close")},handleClose:function(){var e=this;e.clearData(),e.$emit("refreshData","close")},clearData:function(){var e=this;e.tableData=[],e.multipleSelection=[],e.searchVal="",e.classifyId="",e.classifyList=[]},toInput:Object(d["a"])((function(){var e=this;e.currentPage=1,e.getTableList()}),500),clearInput:function(){var e=this;e.currentPage=1,e.getTableList()},changeCondition:function(){var e=this;e.currentPage=1,e.getTableList()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableList()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableList()},getGroupClassify:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId};f(t).then((function(t){e.classifyList=t.result||[]})).catch((function(e){}))},getTableList:function(){var e=this;e.loadingPage=!0;var t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,keyword:e.searchVal,sceneCrowdCategoryId:e.classifyId,pageNum:e.currentPage,pageSize:e.pageSize};u(t).then((function(t){e.loadingPage=!1,e.tableData=t.result.result||[],e.total=t.result.totalCount})).catch((function(t){e.loadingPage=!1}))}},watch:{brandId:function(e){var t=this;e&&(t.getTableList(),t.getGroupClassify())}}},w=m,h=(a("55fd"),a("2877")),g=Object(h["a"])(w,o,i,!1,null,"09a282b9",null),b=g.exports,C=a("24cb"),I=a("aa47"),y=l["a"].getGroupData,v=l["a"].getClassifyData,S=l["a"].getVisiable,x=l["a"].postSortGroup,D=l["a"].delCrowd,_={name:"CrowdScenePage",components:{commonAlertTip:s["a"],syncCrowdDialog:b,editVisiable:C["a"]},props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tipContent:"GIC设置场景人群后,好办顾客人群列表最多同步20个人群,次日刷新,每日刷新一次;",tipTwoContent:"GIC中设置的场景人群到期后,好办移动端将不再展示该条人群;",searchVal:"",classifyId:"",classifyList:[],memberCrowdData:[],memberCrowdDataCopy:[],totalNum:0,loading:!1,showSync:!1,showSelectStore:!1,selectMode:"",rangeData:[],setItemId:"",selectIds:[]}},mounted:function(){var e=this;e.$emit("showTab","/crowd-scene"),e.brandId&&(e.getGroupList(),e.getGroupClassify()),e.rowDrop("memberCrowdData")},methods:{toDel:function(e,t){var a=this;a.$confirm("是否要删除该场景人群?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.delData(t.sceneCrowdId)})).catch((function(){}))},delData:function(e){var t=this,a={sceneCrowdId:e,wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId};D(a).then((function(e){t.getGroupList(),"0000"==e.code?c["a"].showmsg("删除成功","success"):c["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){}))},refreshData:function(e){var t=this;if(t.showSync=!1,t.showSelectStore=!1,t.searchVal="",t.classifyId="",t.selectMode="",t.rangeData=[],"close"==e)return!1;t.getGroupList()},toSync:function(){var e=this;e.selectIds=e.memberCrowdData.map((function(e){return e.sceneCrowdId}))||[],e.showSync=!0},toEdit:function(e,t){var a=this;a.getVisiableData(t.sceneCrowdId)},getVisiableData:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId,relationId:e,relationType:"0"};S(a).then((function(a){t.selectMode=String(a.result.storeMode),t.rangeData=a.result.bindRange?JSON.parse(a.result.bindRange):[],t.setItemId=e,t.showSelectStore=!0})).catch((function(e){}))},toInput:Object(d["a"])((function(){var e=this;if(""===e.searchVal&&""===e.classifyId)return e.getGroupList(),!1;e.memberCrowdData=e.memberCrowdDataCopy.filter((function(t){return""===e.classifyId?-1!=t.sceneCrowdName.indexOf(e.searchVal):-1!=t.sceneCrowdName.indexOf(e.searchVal)&&t.sceneCrowdCategoryId==e.classifyId}))}),200),clearInput:function(){var e=this;if(""===e.searchVal&&""===e.classifyId)return e.getGroupList(),!1;""!=e.classifyId&&(e.memberCrowdData=e.memberCrowdDataCopy.filter((function(t){return t.sceneCrowdCategoryId==e.classifyId})))},changeCondition:function(){var e=this;if(""===e.searchVal&&""===e.classifyId)return e.getGroupList(),!1;""!=e.searchVal&&""!=e.classifyId&&(e.memberCrowdData=e.memberCrowdDataCopy.filter((function(t){return-1!=t.sceneCrowdName.indexOf(e.searchVal)&&t.sceneCrowdCategoryId==e.classifyId}))),""!=e.searchVal&&""===e.classifyId&&(e.memberCrowdData=e.memberCrowdDataCopy.filter((function(t){return-1!=t.sceneCrowdName.indexOf(e.searchVal)}))),""===e.searchVal&&""!=e.classifyId&&(e.memberCrowdData=e.memberCrowdDataCopy.filter((function(t){return t.sceneCrowdCategoryId==e.classifyId})))},rowDrop:function(e){var t=this.$refs[e].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;I["a"].create(t,{handle:".icontuozhuaiopen",onEnd:function(t){var n=t.newIndex,r=t.oldIndex;if(n==r)return!1;var s=JSON.parse(JSON.stringify(a[e])),o=s.splice(r,1)[0];s.splice(n,0,o),a.setSort(s)}})},setSort:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId,sceneCrowdIds:e.map((function(e){return e.sceneCrowdId})).join(",")};x(a).then((function(e){t.getGroupList(),"0000"==e.code?c["a"].showmsg("操作成功","success"):c["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){}))},getGroupClassify:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId};v(t).then((function(t){e.classifyList=t.result||[]})).catch((function(e){}))},getGroupList:function(){var e=this;e.loading=!0,e.memberCrowdData=[],e.memberCrowdDataCopy=[];var t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,keyword:e.searchVal,sceneCrowdCategoryId:e.classifyId};y(t).then((function(t){e.loading=!1,t.result&&t.result.length?(e.memberCrowdData=e.sortTable(t.result),e.memberCrowdDataCopy=JSON.parse(JSON.stringify(e.memberCrowdData))):(e.memberCrowdData=[],e.memberCrowdDataCopy=[],e.totalNum=0),!e.searchVal&&!e.classifyId&&t.result&&t.result.length&&(e.totalNum=t.result.length)})).catch((function(t){e.loading=!1}))},sortTable:function(e){return e.sort((function(e,t){return e.sort-t.sort})),e}},watch:{brandId:function(e){var t=this;e&&(t.searchVal="",t.classifyId="",t.classifyList=[],t.getGroupClassify(),t.getGroupList())}}},E=_,V=(a("50d4"),Object(h["a"])(E,n,r,!1,null,"72e45954",null));t["default"]=V.exports},e950:function(e,t,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0f5358"],{"226d":function(e,t,a){"use strict";var r=a("a31a"),s=a.n(r);s.a},"28a5":function(e,t,a){"use strict";var r=a("aae3"),s=a("cb7c"),o=a("ebd6"),n=a("0390"),l=a("9def"),c=a("5f1b"),i=a("520a"),u=a("79e5"),m=Math.min,d=[].push,g="split",h="length",p="lastIndex",b=4294967295,v=!u((function(){RegExp(b,"y")}));a("214f")("split",2,(function(e,t,a,u){var f;return f="c"=="abbc"[g](/(b)*/)[1]||4!="test"[g](/(?:)/,-1)[h]||2!="ab"[g](/(?:ab)*/)[h]||4!="."[g](/(.?)(.?)/)[h]||"."[g](/()()/)[h]>1||""[g](/.?/)[h]?function(e,t){var s=String(this);if(void 0===e&&0===t)return[];if(!r(e))return a.call(s,e,t);var o,n,l,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=void 0===t?b:t>>>0,v=new RegExp(e.source,u+"g");while(o=i.call(v,s)){if(n=v[p],n>m&&(c.push(s.slice(m,o.index)),o[h]>1&&o.index<s[h]&&d.apply(c,o.slice(1)),l=o[0][h],m=n,c[h]>=g))break;v[p]===o.index&&v[p]++}return m===s[h]?!l&&v.test("")||c.push(""):c.push(s.slice(m)),c[h]>g?c.slice(0,g):c}:"0"[g](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,r){var s=e(this),o=void 0==a?void 0:a[t];return void 0!==o?o.call(a,s,r):f.call(String(s),a,r)},function(e,t){var r=u(f,e,this,t,f!==a);if(r.done)return r.value;var i=s(e),d=String(this),g=o(i,RegExp),h=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(v?"y":"g"),w=new g(v?i:"^(?:"+i.source+")",p),F=void 0===t?b:t>>>0;if(0===F)return[];if(0===d.length)return null===c(w,d)?[d]:[];var D=0,C=0,S=[];while(C<d.length){w.lastIndex=v?C:0;var k,I=c(w,v?d:d.slice(C));if(null===I||(k=m(l(w.lastIndex+(v?0:C)),d.length))===D)C=n(d,C,h);else{if(S.push(d.slice(D,C)),S.length===F)return S;for(var x=1;x<=I.length-1;x++)if(S.push(I[x]),S.length===F)return S;C=D=k}}return S.push(d.slice(D)),S}]}))},"3cf8":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-app-right"},[a("div",{staticClass:"customer-data-body"},[a("div",{staticClass:"m-b-10"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.showAllOrderFlag,callback:function(t){e.$set(e.customerShowData,"showAllOrderFlag",t)},expression:"customerShowData.showAllOrderFlag"}},[e._v("展示所有门店的订单")]),a("div",{staticClass:"font-12 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看顾客在本店以外的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.showMallOrderFlag,callback:function(t){e.$set(e.customerShowData,"showMallOrderFlag",t)},expression:"customerShowData.showMallOrderFlag"}},[e._v("展示微商城的订单")]),a("div",{staticClass:"font-12 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看顾客在微商城的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.showWmOrderFlag,callback:function(t){e.$set(e.customerShowData,"showWmOrderFlag",t)},expression:"customerShowData.showWmOrderFlag"}},[e._v("展示微盟商城的订单")]),a("div",{staticClass:"font-12 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看顾客在微盟商城的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选后将会在“顾客详情页”进行显示",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20 common-bottom-border"},[e._v("导购联系顾客方式:")])]),a("el-checkbox",{model:{value:e.customerShowData.clerkAddMemberFlag,callback:function(t){e.$set(e.customerShowData,"clerkAddMemberFlag",t)},expression:"customerShowData.clerkAddMemberFlag"}},[e._v("添加会员/发消息")]),a("el-checkbox",{model:{value:e.customerShowData.clerkContactPhoneFlag,callback:function(t){e.$set(e.customerShowData,"clerkContactPhoneFlag",t)},expression:"customerShowData.clerkContactPhoneFlag"}},[e._v("电话")]),a("el-checkbox",{model:{value:e.customerShowData.clerkContactSmsFlag,callback:function(t){e.$set(e.customerShowData,"clerkContactSmsFlag",t)},expression:"customerShowData.clerkContactSmsFlag"}},[e._v("短信")])],1),a("div",{staticClass:"m-t-46 p-l-20"},[a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.submit}},[e._v("保存")])],1)])])},s=[],o=(a("ac6a"),a("d11a")),n=a("d157"),l=a("5b4e"),c=o["a"].getCustomerSet,i=o["a"].saveCustomerSet,u={name:"CustomerDataSet",components:{},props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",customerShowData:{showAllOrderFlag:!1,showMallOrderFlag:!1,showWmOrderFlag:!1,clerkContactPhoneFlag:!1,clerkContactSmsFlag:!1,clerkAddMemberFlag:!1},loading:!1}},mounted:function(){var e=this;e.$emit("showTab","/customer-data-set"),e.brandId&&e.getCustomerData()},methods:{submit:Object(n["a"])((function(){var e=this;e.loading=!0,e.setData()}),500),setData:function(){var e=this,t=[];for(var a in e.customerShowData)e.customerShowData[a]&&t.push(a);var r={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,openCodes:t.join(","),switchType:1};i(r).then((function(t){e.loading=!1,e.getCustomerData(),"0000"==t.code?l["a"].showmsg("操作成功","success"):l["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){e.loading=!1}))},getCustomerData:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,switchType:"1"};c(t).then((function(t){t.result&&t.result.length?t.result.forEach((function(t){e.customerShowData[t.switchCode]=1==t.switchFlag})):e.customerShowData={showAllOrderFlag:!1,showMallOrderFlag:!1,showWmOrderFlag:!1,clerkContactPhoneFlag:!1,clerkContactSmsFlag:!1,clerkAddMemberFlag:!1}})).catch((function(e){}))}},watch:{brandId:function(e){var t=this;e&&t.getCustomerData()}}},m=u,d=(a("226d"),a("2877")),g=Object(d["a"])(m,r,s,!1,null,"e88381a0",null);t["default"]=g.exports},"5b4e":function(e,t,a){"use strict";var r=a("5c96");t["a"]={showmsg:function(e,t){Object(r["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},"71f6":function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));a("ac6a"),a("456d");var r=a("b775");function s(e,t){e=e||{};var a=Object.keys(e);return a.forEach((function(a){var s=e[a];"string"===typeof s&&(s={url:s}),s.url="".concat(t).concat(s.url),e[a]=function(e){return Object(r["a"])(s,e)}})),e}},a31a:function(e,t,a){},d11a:function(e,t,a){"use strict";var r=a("71f6"),s={getGroupList:"/member/store-group",getStoreList:"/member/store-list",getAssignStatus:"/member/check-distribute",getNavChain:"/member/crumb-list",getMemberList:{url:"/member/member-list",method:"post",useFormData:!0},getListBrand:"/member/list-brand",getClerkList:"/member/clerk-list",getMemberCount:"",saveAssign:{url:"/member/distribute-member",method:"post"},getMemberData:"/member/dimension-detail",saveSortMember:{url:"/member/dimension-save",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"/member/switch-list",saveShowSet:{url:"/member/switch-setting",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"/member/switch-list",saveCustomerSet:{url:"/member/switch-setting",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"/member/member-group-hb-list",getClassifyData:"/member/member-group-category-list",postSortGroup:{url:"/member/member-group-sort",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"/member/member-group-list",saveSync:{url:"/member/member-group-save",method:"post",useFormData:!0,useIntercept:!1},delCrowd:{url:"/member/member-group-del",method:"post",useFormData:!0,useIntercept:!1},getVisiable:"/visiable-range-view",saveVisiable:{url:"/visiable-range-save",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"/tag-category-list",getTagLicense:"/member-tag-license",addClassify:{url:"/tag-category-add",method:"post",useFormData:!0,useIntercept:!1},delClassify:{url:"/tag-category-del",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"/member-tag-list",addClerkTag:{url:"/member-tag-add",method:"post",useFormData:!0,useIntercept:!1},getTagDetail:"/member-tag-detail",editClerkTag:{url:"/member-tag-edit",method:"post",useFormData:!0,useIntercept:!1},delClerkTag:{url:"/tag-del",method:"post",useFormData:!0,useIntercept:!1},sortClerkTag:{url:"/member-tag-sort",method:"post",useFormData:!0,useIntercept:!1},getTagVisiable:"/visiable-range-view",saveTagVisiable:{url:"/visiable-range-save",method:"post",useFormData:!0,useIntercept:!1}};s=Object(r["a"])(s,"/hb-app-customer-web"),t["a"]=s},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return o}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function r(e,t){var a,r=t||200;return function(){var t=this,s=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(t,s)}),r)}}function s(e,t){var a,r,s=t||200;return function(){var t=this,o=arguments,n=+new Date;a&&n-a<s?(clearTimeout(r),r=setTimeout((function(){a=n,e.apply(t,o)}),s)):(a=n,e.apply(t,o))}}function o(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2e387478"],{"20a4":function(e,t,a){},"55f3":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-app-right"},[a("div",[a("div",{staticClass:"data-dimension-tip"},[a("common-alert-tip",{attrs:{width:"100%","tip-content":e.tipContent}})],1),a("div",{staticClass:"data-dimension-table flex"},[a("div",{staticClass:"data-dimension-table_left flex-1"},[a("div",{staticClass:"m-b-18"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 排序越靠上的权重越高,当一家门店拥有多个会员卡时,优先展示排序最靠上的会员卡\n ")]),a("span",{staticClass:"common-bottom-border table-title"},[e._v("会员卡权重")])])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingMember,expression:"loadingMember"}],ref:"memberCardData",staticStyle:{width:"100%"},attrs:{data:e.memberCardData,"row-key":"id"}},[a("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell show-icon"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c0c4cc",staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"",label:"会员卡名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}])})],1)],1),a("div",{staticClass:"data-dimension-table_right flex-1"},[a("div",{staticClass:"m-b-18"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 排序越靠上的权重越高,当一家门店拥有多个服务号时,优先展示排序最靠上的服务号\n ")]),a("span",{staticClass:"common-bottom-border table-title"},[e._v("服务号权重")])])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingService,expression:"loadingService"}],ref:"serviceNumData",staticStyle:{width:"100%"},attrs:{data:e.serviceNumData,"row-key":"id"}},[a("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell show-icon"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c0c4cc",staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"",label:"服务号名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}])})],1)],1)])])])},n=[],o=(a("55dd"),a("3081")),s=a("aa47"),i=a("d11a"),l=a("5b4e6"),c=i["a"].getMemberData,d=i["a"].saveSortMember,m={name:"DataDimensionPage",components:{commonAlertTip:o["a"]},props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tipContent:"当商户有多个会员卡和服务号时,会造成单家门店适用于多个会员卡或服务号,即单个顾客会有多个域的身份信息,这容易造成门店成员的困扰。请为以下会员卡和服务号域做权重排序,当顾客有多个域的身份信息时,门店成员将只能看到权重最高域的一个身份信息。",memberCardData:[],serviceNumData:[],loadingMember:!1,loadingService:!1}},mounted:function(){var e=this;e.$emit("showTab","/data-dimension"),e.rowDrop("memberCardData"),e.rowsDrop("serviceNumData"),e.brandId&&e.getMemberCrad()},methods:{rowDrop:function(e){var t=this.$refs[e].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;s["a"].create(t,{handle:".icontuozhuaiopen",onEnd:function(t){var r=t.newIndex,n=t.oldIndex;if(r==n)return!1;var o=JSON.parse(JSON.stringify(a[e])),s=o.splice(n,1)[0];o.splice(r,0,s),a.setSort(o,e)}})},rowsDrop:function(e){var t=this.$refs[e].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;s["a"].create(t,{handle:".icontuozhuaiopen",onEnd:function(t){var r=t.newIndex,n=t.oldIndex;if(r==n)return!1;var o=JSON.parse(JSON.stringify(a[e])),s=o.splice(n,1)[0];o.splice(r,0,s),a.setSort(o,e)}})},setSort:function(e,t){var a=this,r={wxEnterpriseId:a.wxEnterpriseId,enterpriseId:a.brandId,sorts:e.map((function(e){return e.id})).join(","),type:"memberCardData"==t?"0":"1"};d(r).then((function(e){a.getMemberCrad(),"0000"==e.code?l["a"].showmsg("操作成功","success"):l["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){}))},getMemberCrad:function(){var e=this;e.loadingMember=!0,e.loadingService=!0,e.memberCardData=[],e.serviceNumData=[];var t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId};c(t,{headers:{sign:e.brandId}}).then((function(t){e.loadingMember=!1,e.loadingService=!1,t.result.cards&&t.result.cards.length?e.memberCardData=e.sortTable(t.result.cards):e.memberCardData=[],t.result.services&&t.result.services.length?e.serviceNumData=e.sortTable(t.result.services):e.serviceNumData=[]})).catch((function(t){e.loadingMember=!1,e.loadingService=!1}))},sortTable:function(e){return e.sort((function(e,t){return e.sort-t.sort})),e}},watch:{brandId:function(e){var t=this;e&&(t.memberCardData=[],t.serviceNumData=[],t.getMemberCrad())}}},u=m,p=(a("ffd9"),a("2877")),b=Object(p["a"])(u,r,n,!1,null,"4376d38b",null);t["default"]=b.exports},ffd9:function(e,t,a){"use strict";var r=a("20a4"),n=a.n(r);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2ea1673a"],{"11ff":function(e,t,a){},"21f4":function(e,t,a){"use strict";var r=a("71f6"),n={getAuthEnterprise:"/auth-enterprise-list",getGroupList:"/department-list",getStoreList:"/store-list",getAuthDetail:"/enterprise-auth-detail",getAuditLog:"/enterprise-auth-audit-list",cancelAudit:{url:"/enterprise-auth-audit",method:"post",useFormData:!0,useIntercept:!1},getCheckName:"/gic-admin-frist",checkName:{url:"/gic-name-validate",method:"post",useFormData:!0,useIntercept:!1},getAuditLogDetail:"/enterprise-auth-audit-range-detail",getEnterprise:"/enterprise-search",getGicAdmin:"/gic-manage-list",postEnterpriseAuth:{url:"/enterprise-auth",method:"post",useFormData:!0,useIntercept:!1},getEnterpriseDetail:"/gic-enterprise-detail"};n=Object(r["a"])(n,"/hb-manage-web"),t["a"]=n},"24cb":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"554px",title:"编辑可见范围",visible:e.setVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.setVisible=t}}},[a("div",{staticClass:"bind-store-body"},[a("div",{staticClass:"edit-visiable-tip m-b-20"},[a("common-alert-tip",{attrs:{width:"100%","tip-content":e.tipContent}})],1),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px"},attrs:{for:"name"}},[e._v("\n 可见门店\n ")]),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"110px"}},[a("el-radio",{attrs:{label:"0"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("所有门店")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"1"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("选择分组")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"2"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("选择门店")]),("1"!=e.formData.sendRange&&"2"!=e.formData.sendRange||e.formData.selectList.length)&&"null"!=String(e.formData.sendRange)&&""!==e.formData.sendRange?e._e():a("div",{staticClass:"el-form-item__error"},[e._v("请选择可见门店")]),"1"==e.formData.sendRange?a("customer-store-group",{attrs:{"brand-id":e.brandId,"select-group":e.selectGroupData},on:{checkGroupIds:e.checkGroupIds}}):e._e(),"2"==e.formData.sendRange?a("customer-store",{attrs:{"brand-id":e.brandId,"select-store":e.selectStoreData},on:{checkStoreIds:e.checkStoreIds}}):e._e()],1)])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return t.stopPropagation(),e.cancel(t)}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return t.stopPropagation(),e.submitForm(t)}}},[e._v("保存")])],1)])},n=[],s=(a("c5f6"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"bind-store-body"},[a("div",{staticClass:"select-search"},[a("el-input",{attrs:{placeholder:"请输入分组名称",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),a("div",{staticClass:"select-tree-wrap auth-select-tree m-t-20"},[a("el-tree",{ref:"groupTree",attrs:{"filter-node-method":e.filterNode,data:e.groupData,"node-key":"storeGroupId","show-checkbox":"","default-expand-all":"",props:e.defaultProps,"expand-on-click-node":!1},on:{check:e.checkGroup},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.node,n=t.data;return a("span",{staticClass:"custom-tree-node",attrs:{id:n.storeGroupId}},[a("span",{staticClass:"font-14 color-606266"},[e._v(e._s(r.label))])])}}])})],1)])}),o=[],i=(a("ac6a"),a("96cf"),a("1da1")),c=a("d157"),l=a("21f4"),u=l["a"].getGroupList,d={name:"CustomerStoreGroup",props:{brandId:{type:String,default:""},storeType:{type:String,default:"2"},selectGroup:{type:[Object,Array],default:function(){return{}}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",searchSelect:"",groupData:[],groupDataCopy:[],defaultProps:{children:"children",label:"storeGroupName"}}},mounted:function(){var e=this;e.brandId&&e.getGroup(),e.selectGroup.length?e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys(e.selectGroup.map((function(e){return e.storeGroupId})))})):e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys([])}))},methods:{filterNode:function(e,t){return!e||!t.label||-1!==t.label.indexOf(e)},toInput:Object(c["a"])((function(e,t){var a=this;if(!a.groupDataCopy.length)return!1}),200),clearSearch:function(){return!1},checkGroup:function(e,t){var a=this,r=a.$refs.groupTree.getCheckedNodes();r.length?a.$emit("checkGroupIds",r):a.$emit("checkGroupIds",[])},treeData:function(e){var t=e.filter((function(t){var a=e.filter((function(e){return t.storeGroupId==e.parentId}));return a.length>0?(t.hasSonNode=!0,t.children=a):(t.children=[],t.hasSonNode=!1),0==t.parentId}));return t},getGroup:function(){var e=this,t={type:e.storeType,enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId};u(t).then(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a.result&&a.result.length&&a.result.forEach((function(e){e.expand=!1,e.children=[],e.label=e.storeGroupName})),t.next=3,e.treeData(JSON.parse(JSON.stringify(a.result)));case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0=[];case 6:e.groupData=t.t0,e.groupDataCopy=JSON.parse(JSON.stringify(a.result));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}},watch:{searchSelect:function(e){this.$refs.groupTree.filter(e)},selectGroup:function(e){var t=this;e.length?t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys(e.map((function(e){return e.storeGroupId})))})):t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys([])}))},brandId:function(e){var t=this;e&&t.getGroup()}}},p=d,f=(a("3b04"),a("2877")),g=Object(f["a"])(p,s,o,!1,null,"093214aa",null),h=g.exports,m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称/代码","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}})],1),a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[a("el-checkbox-group",{on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,(function(t){return a("li",{key:t.storeInfoId,class:["el-select-dropdown__item",t.select?"selected hover":""]},[a("el-checkbox",{attrs:{label:t.storeInfoId}},[e._v(e._s(t.storeInfoName))])],1)})),e.stores.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1)])])},S=[],b=(a("6762"),a("2fdb"),l["a"].getStoreList),D={name:"CustomerStore",props:{brandId:{type:String,default:""},storeType:{type:String,default:"2"},selectStore:{type:[Object,Array],default:function(){return{}}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",checkAll:!1,isIndeterminate:!1,searchSelect:"",stores:[],storesCopy:[],dailyRuleForm:{stores:[]},pageNum:1,pageSize:300}},mounted:function(){var e=this;e.stores=[],e.storesCopy=[],e.brandId&&(e.pageNum=1,e.getStoreData()),e.selectStore.length?e.dailyRuleForm.stores=e.selectStore.map((function(e){return e.storeInfoId}))||[]:e.dailyRuleForm.stores=[]},methods:{handleStoresChange:function(e){var t=this,a=[];t.storesCopy.forEach((function(t){e.includes(t.storeInfoId)&&a.push(t)})),t.$emit("checkStoreIds",JSON.parse(JSON.stringify(a)))},toInput:Object(c["a"])((function(e,t){var a=this;""!=a.searchSelect&&(a.stores=[],a.pageNum=1,a.getStoreData())}),500),clearSearch:function(){var e=this;e.stores=[],e.pageNum=1,e.getStoreData()},getStoreData:function(){var e=this,t={search:e.searchSelect,enterpriseId:e.brandId,type:e.storeType,pageNum:e.pageNum,pageSize:e.pageSize,wxEnterpriseId:e.wxEnterpriseId};b(t).then((function(t){1==e.pageNum?(e.stores=JSON.parse(JSON.stringify(t.result.result))||[],""===e.searchSelect&&(e.storesCopy=JSON.parse(JSON.stringify(t.result.result))||[])):t.result.result.forEach((function(t){e.stores.push(t),""===e.searchSelect&&e.storesCopy.push(t)})),e.pageNum*e.pageSize<t.result.totalCount&&(e.pageNum++,e.$nextTick((function(){e.getStoreData()})))})).catch((function(e){}))}},watch:{selectStore:function(e,t){var a=this;e.length?a.dailyRuleForm.stores=e.map((function(e){return e.storeInfoId}))||[]:a.dailyRuleForm.stores=[]},brandId:function(e){var t=this;e&&(t.pageNum=1,t.getStoreData())}}},v=D,I=(a("32b4"),Object(f["a"])(v,m,S,!1,null,"523b69ab",null)),y=I.exports,C=a("3081"),N=a("d11a"),w=a("5b4e6"),k=N["a"].saveVisiable,x=N["a"].saveTagVisiable,O={name:"EditVisiable",components:{customerStoreGroup:h,customerStore:y,commonAlertTip:C["a"]},props:{setType:{type:String,default:""},setItemId:{type:String,default:""},brandId:{type:String,default:""},selectMode:{type:[String,Number],default:""},rangeData:{type:[Object,Array],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",setVisible:!0,tipContent:"修改后的内容将于次日生效",formData:{sendRange:"",selectList:[]},selectGroupData:[],selectStoreData:[],loadingBtn:!1}},mounted:function(){var e=this;e.formData.sendRange=String(e.selectMode),e.selectGroupData=1==e.selectMode?JSON.parse(JSON.stringify(e.rangeData)):[],e.selectStoreData=2==e.selectMode?JSON.parse(JSON.stringify(e.rangeData)):[],e.formData.selectList=JSON.parse(JSON.stringify(e.rangeData))||[]},methods:{changeRange:function(e){var t=this;t.formData.sendRange=e,t.formData.selectList=[]},handleClose:function(e){var t=this;e(),t.$emit("refreshData","close"),t.selectGroupData=[],t.selectStoreData=[]},cancel:function(){var e=this;e.$emit("refreshData","close"),e.selectGroupData=[],e.selectStoreData=[]},checkGroupIds:function(e){var t=this;t.formData.selectList=JSON.parse(JSON.stringify(e))},checkStoreIds:function(e){var t=this;t.formData.selectList=JSON.parse(JSON.stringify(e))},submitForm:Object(c["a"])((function(){var e=this;return"null"!=String(e.formData.sendRange)&&""!==e.formData.sendRange&&(!("1"==e.formData.sendRange&&!e.formData.selectList.length)&&(!("2"==e.formData.sendRange&&!e.formData.selectList.length)&&(e.loadingBtn=!0,void e.postSave())))}),300),postSave:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,storeMode:String(e.formData.sendRange),bindRange:e.formData.sendRange>0?1==e.formData.sendRange?e.formData.selectList.map((function(e){return e.storeGroupId})).join(","):e.formData.selectList.map((function(e){return e.storeInfoId})).join(","):""};"crowd"==e.setType?(t.relationType="0",t.relationId=e.setItemId,e.saveCrowd(t)):(t.relationType="1",t.relationId=e.setItemId,e.saveTag(t))},saveCrowd:function(e){var t=this;k(e).then((function(e){t.loadingBtn=!1,"0000"==e.code?(w["a"].showmsg("保存成功","success"),t.$emit("refreshData","success")):w["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loadingBtn=!1}))},saveTag:function(e){var t=this;x(e).then((function(e){t.loadingBtn=!1,"0000"==e.code?(w["a"].showmsg("保存成功","success"),t.$emit("refreshData","success")):w["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loadingBtn=!1}))}},watch:{selectMode:function(e){var t=this;t.formData.sendRange=String(e)},rangeData:function(e){var t=this;t.selectGroupData=1==t.selectMode?JSON.parse(JSON.stringify(e)):[],t.selectStoreData=2==t.selectMode?JSON.parse(JSON.stringify(e)):[],t.formData.selectList=JSON.parse(JSON.stringify(e))||[]}}},_=O,R=(a("f882"),Object(f["a"])(_,r,n,!1,null,"047e7ed0",null));t["a"]=R.exports},"32b4":function(e,t,a){"use strict";var r=a("11ff"),n=a.n(r);n.a},"3b04":function(e,t,a){"use strict";var r=a("5163"),n=a.n(r);n.a},5163:function(e,t,a){},"801b":function(e,t,a){},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function r(e,t){var a,r=t||200;return function(){var t=this,n=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(t,n)}),r)}}function n(e,t){var a,r,n=t||200;return function(){var t=this,s=arguments,o=+new Date;a&&o-a<n?(clearTimeout(r),r=setTimeout((function(){a=o,e.apply(t,s)}),n)):(a=o,e.apply(t,s))}}function s(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}},f882:function(e,t,a){"use strict";var r=a("801b"),n=a.n(r);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-30f81def"],{"25ac":function(t,e,i){"use strict";var a=i("5f62"),u=i.n(a);u.a},"28a5":function(t,e,i){"use strict";var a=i("aae3"),u=i("cb7c"),d=i("ebd6"),r=i("0390"),s=i("9def"),n=i("5f1b"),o=i("520a"),l=i("79e5"),p=Math.min,c=[].push,f="split",m="length",g="lastIndex",h=4294967295,I=!l((function(){RegExp(h,"y")}));i("214f")("split",2,(function(t,e,i,l){var v;return v="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[m]||2!="ab"[f](/(?:ab)*/)[m]||4!="."[f](/(.?)(.?)/)[m]||"."[f](/()()/)[m]>1||""[f](/.?/)[m]?function(t,e){var u=String(this);if(void 0===t&&0===e)return[];if(!a(t))return i.call(u,t,e);var d,r,s,n=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,f=void 0===e?h:e>>>0,I=new RegExp(t.source,l+"g");while(d=o.call(I,u)){if(r=I[g],r>p&&(n.push(u.slice(p,d.index)),d[m]>1&&d.index<u[m]&&c.apply(n,d.slice(1)),s=d[0][m],p=r,n[m]>=f))break;I[g]===d.index&&I[g]++}return p===u[m]?!s&&I.test("")||n.push(""):n.push(u.slice(p)),n[m]>f?n.slice(0,f):n}:"0"[f](void 0,0)[m]?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,a){var u=t(this),d=void 0==i?void 0:i[e];return void 0!==d?d.call(i,u,a):v.call(String(u),i,a)},function(t,e){var a=l(v,t,this,e,v!==i);if(a.done)return a.value;var o=u(t),c=String(this),f=d(o,RegExp),m=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(I?"y":"g"),y=new f(I?o:"^(?:"+o.source+")",g),b=void 0===e?h:e>>>0;if(0===b)return[];if(0===c.length)return null===n(y,c)?[c]:[];var G=0,D=0,x=[];while(D<c.length){y.lastIndex=I?D:0;var w,A=n(y,I?c:c.slice(D));if(null===A||(w=p(s(y.lastIndex+(I?0:D)),c.length))===G)D=r(c,D,m);else{if(x.push(c.slice(G,D)),x.length===b)return x;for(var k=1;k<=A.length-1;k++)if(x.push(A[k]),x.length===b)return x;D=G=w}}return x.push(c.slice(G)),x}]}))},"5f62":function(t,e,i){},"71f6":function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));i("ac6a"),i("456d");var a=i("b775");function u(t,e){t=t||{};var i=Object.keys(t);return i.forEach((function(i){var u=t[i];"string"===typeof u&&(u={url:u}),u.url="".concat(e).concat(u.url),t[i]=function(t){return Object(a["a"])(u,t)}})),t}},8175:function(t,e,i){"use strict";e["a"]=[{type:"3",title:"导购账号新增",desc:"能看到管辖范围内导购添加的审核事项"},{type:"1",title:"导购账号绑定",desc:"能看到管辖范围内导购账号绑定申请"}]},"96b6":function(t,e,i){"use strict";var a=i("71f6"),u={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};u=Object(a["a"])(u,"/hb-manage-web"),e["a"]=u},e0c0:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-form",{ref:"auditData",staticClass:"create-audit-item",attrs:{model:t.auditData,rules:t.auditDataRules,"label-width":"110px"}},[i("el-form-item",{attrs:{label:"审核组名称",prop:"auditGroupIds"}},[i("el-select",{staticStyle:{width:"480px"},attrs:{multiple:"","collapse-tags":""},model:{value:t.auditData.auditGroupIds,callback:function(e){t.$set(t.auditData,"auditGroupIds",e)},expression:"auditData.auditGroupIds"}},t._l(t.auditGroupList,(function(t){return i("el-option",{key:t.auditGroupId,attrs:{value:t.auditGroupId,label:t.auditGroupName}})})),1)],1),i("el-form-item",{attrs:{label:"审核事项",prop:"auditTypes"}},[i("el-checkbox-group",{model:{value:t.auditData.auditTypes,callback:function(e){t.$set(t.auditData,"auditTypes",e)},expression:"auditData.auditTypes"}},t._l(t.auditTypes,(function(e){return i("el-checkbox",{key:e.type,staticClass:"audit-types",attrs:{label:e.type}},[i("p",{staticClass:"audit-type-title"},[t._v(t._s(e.title))]),i("p",{staticClass:"audit-type-desc"},[t._v(t._s(e.desc))])])})),1)],1),i("el-form-item",{staticStyle:{"margin-top":"50px"}},[i("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.onSave}},[t._v(t._s(t.auditData.auditItemId?"保存":"确认新建"))])],1)],1)},u=[],d=(i("28a5"),i("8175")),r=i("96b6"),s=r["a"].addAuditItem,n=r["a"].editAuditItem,o=r["a"].auditItemDetail,l=r["a"].getAuditGroupList,p={name:"CreateAuditItem",data:function(){return{loading:!1,auditGroupList:[],auditTypes:d["a"],auditData:{auditGroupIds:[],auditTypes:[],wxEnterpriseId:"",auditItemId:""},auditDataRules:{auditGroupIds:[{required:!0,message:"请选择审核组",trigger:"change"}],auditTypes:[{required:!0,message:"请选择审核事项",trigger:"change"}]}}},created:function(){var t=this.$route.query.auditItemId,e=JSON.parse(localStorage.getItem("haoBanUser")||"{}");this.auditData.wxEnterpriseId=e.wxEnterpriseId,this.$emit("showTab","/audit-item-list"),t&&this.getAuditItemDetail(t),this.getAuditGroupList()},methods:{getAuditGroupList:function(){var t=this;l({wxEnterpriseId:this.auditData.wxEnterpriseId}).then((function(e){t.auditGroupList=e.result||[]}))},getAuditItemDetail:function(t){var e=this;o({auditItemId:t}).then((function(t){var i=t.result||{},a=i.auditItemId,u=i.auditGroupId,d=i.auditTypes;e.auditData.auditItemId=a,"string"==typeof d&&(e.auditData.auditTypes=d.split(",")),"string"!=typeof u&&"number"!=typeof u||(e.auditData.auditGroupIds=[u])}))},onSave:function(){var t=this;this.$refs.auditData.validate((function(e){if(e){var i=t.auditData,a=i.auditGroupIds,u=i.auditTypes,d=i.wxEnterpriseId,r=i.auditItemId,o={auditGroupIds:a.join(","),auditTypes:u.join(","),wxEnterpriseId:d};r?(o.auditItemId=r,n(o).then(l.bind(t,"保存成功!")).finally((function(){return t.loading=!1}))):s(o).then(l.bind(t,"新建成功!")).finally((function(){return t.loading=!1}))}function l(t){this.$message.success(t),this.$router.go(-1)}}))}}},c=p,f=(i("25ac"),i("2877")),m=Object(f["a"])(c,a,u,!1,null,"18ad62c8",null);e["default"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-318c2f14"],{"50c8":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"enterprise-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName,"current-menu-code":e.currentMenuCode},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),n("div",{staticClass:"enterprise-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},o=[],r=n("f777"),i={name:"EnterprisePage",components:{vueOfficeHeader:r["a"]},data:function(){return{projectName:"haoban-manage-web",currentMenuCode:"contactsList",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},mounted:function(){var e=this;e.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},methods:{toRouterView:function(e){var t=this;t.$router.push({path:e.path})},collapseTag:function(e){var t=this;t.collapseFlag=e}},watch:{$route:{handler:function(e,t){var n=this;n.currentMenuCode="contactsList"},deep:!0}}},s=i,c=(n("ef14"),n("2877")),u=Object(c["a"])(s,a,o,!1,null,"08da1fc0",null);t["default"]=u.exports},5937:function(e,t,n){"use strict";var a=n("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(a["a"])(o,"/hb-manage-web"),t["a"]=o},"6ce2":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("ac6a"),n("456d");var a=n("b775");function o(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var o=e[n];"string"===typeof o&&(o={url:o}),o.url="".concat(t).concat(o.url),e[n]=function(e){return Object(a["a"])(o,e)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),o={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};o=Object(a["a"])(o,"/hb-manage-web/auth"),t["a"]=o},e22b:function(e,t,n){"use strict";var a=n("ea9b"),o=n.n(a);o.a},e876:function(e,t,n){},ea9b:function(e,t,n){},ef14:function(e,t,n){"use strict";var a=n("e876"),o=n.n(a);o.a},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)||e.currentMenuCode==t.menuCode?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},o=[],r=(n("456d"),n("96cf"),n("1da1")),i=(n("ac6a"),n("28a5"),n("7ded")),s=n("5937"),c=s["a"].getRoleMenu,u=i["a"].getUserInfo,l=i["a"].loginOut,f={name:"VueOfficeHeader",components:{},props:{currentMenuCode:{type:String,default:""}},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl));else{t.setLeftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0])})),t.$router.push(n.menuUrl)}},setLeftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){l({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(e){}))})).catch((function(){}))},toLogin:function(){var e=this;u({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={appType:1};c(t).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(n){var a,o,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],o={},r={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(o=t),e.$route.path==t.menuUrl&&1!=t.level&&(r=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(r).length&&2==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(o=e)})),i={},Object.keys(r).length&&3==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(i=e)})),Object.keys(i).length&&2==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(o=e)})),e.setLeftData(o);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},h=f,d=(n("e22b"),n("2877")),m=Object(d["a"])(h,a,o,!1,null,"26c74afb",null);t["a"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-322df9a5"],{2802:function(t,a,e){"use strict";e("4917");a["a"]={getByteLen:function(t){for(var a=""==t||null==t?"":t,e=0,r=0;r<a.length;r++){var u=a.charAt(r);null!=u.match(/[^\x00-\xff]/gi)?e+=2:e+=1}return e},getZhLen:function(t){for(var a=""==t||null==t?"":t,e=0,r=0;r<a.length;r++){var u=a.charAt(r);null!=u.match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)},cutStr:function(t,a,e){for(var r=0,u=0;u<t.length;u++){var i=t.charAt(u);if(1==e&&(encodeURI(i).length>2?r+=1:r+=.5),2==e&&(r+=1),r>=a){var n=r==a?u+1:u;return t.substr(0,n)}}},getByteVal:function(t,a){for(var e=""==t||null==t?"":t,r="",u=0,i=0;i<e.length;i++){if(null!=e[i].match(/[^\x00-\xff]/gi)?u+=1:u+=.5,u>a)break;r+=e[i]}return r},getCharVal:function(t,a){for(var e=""==t||null==t?"":t,r="",u=0,i=0;i<e.length;i++){if(null!=e[i].match(/[^\x00-\xff]/gi)?u+=2:u+=1,u>a)break;r+=e[i]}return r},regPos:function(t){var a=/^\d+(\.\d+)?$/;return a.test(t)}}},"71f6":function(t,a,e){"use strict";e.d(a,"a",(function(){return u}));e("ac6a"),e("456d");var r=e("b775");function u(t,a){t=t||{};var e=Object.keys(t);return e.forEach((function(e){var u=t[e];"string"===typeof u&&(u={url:u}),u.url="".concat(a).concat(u.url),t[e]=function(t){return Object(r["a"])(u,t)}})),t}},"96b6":function(t,a,e){"use strict";var r=e("71f6"),u={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};u=Object(r["a"])(u,"/hb-manage-web"),a["a"]=u},a601:function(t,a,e){},de34:function(t,a,e){"use strict";var r=e("a601"),u=e.n(r);u.a},ea11:function(t,a,e){"use strict";e.r(a);var r=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("el-form",{ref:"groupData",staticClass:"group-detail",attrs:{model:t.groupData,rules:t.groupDataRules,"label-width":"110px"}},[e("el-form-item",{attrs:{label:"审核组名称",prop:"auditGroupName"}},[e("el-input",{staticStyle:{width:"481px"},attrs:{placeholder:"请输入内容",maxlength:"20","show-word-limit":""},model:{value:t.groupData.auditGroupName,callback:function(a){t.$set(t.groupData,"auditGroupName","string"===typeof a?a.trim():a)},expression:"groupData.auditGroupName"}})],1),e("el-form-item",{attrs:{label:"选择管理员",prop:"auditPerson"}},[e("dm-transfer",{attrs:{titles:["全选","已选"],"button-texts":["移除","转入"],props:{label:"staffName",key:"staffId"},"render-content":t.render,data:t.adminList},model:{value:t.groupData.auditPerson,callback:function(a){t.$set(t.groupData,"auditPerson",a)},expression:"groupData.auditPerson"}})],1),e("el-form-item",{staticStyle:{"margin-top":"50px"}},[e("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.onSave}},[t._v(t._s(t.groupData.auditGroupId?"保存":"确认新建"))])],1)],1)},u=[],i=e("2802"),n=e("96b6"),o=n["a"].auditGroupDetail,d=n["a"].editAuditGroup,s=n["a"].addAuditGroup,l=n["a"].getAdminList,p={name:"CreateAuditGroup",data:function(){this.$createElement;return{loading:!1,adminList:[],groupData:{auditGroupName:"",auditPerson:[],wxEnterpriseId:"",auditGroupId:""},groupDataRules:{auditGroupName:[{required:!0,message:"请输入审核组名称",trigger:"blur"}],auditPerson:[{required:!0,message:"请选择管理员",trigger:"blur"}]},render:function(t,a){var e=arguments[0],r="".concat(a.staffName," (").concat(a.roleName,")");return i["a"].getZhLen(r)<=10?e("span",[r]):e("el-tooltip",{attrs:{placement:"top"}},[e("p",{slot:"content"},[r]),e("span",[r])])}}},created:function(){var t=this.$route.query.auditGroupId,a=JSON.parse(localStorage.getItem("haoBanUser")||"{}");this.groupData.wxEnterpriseId=a.wxEnterpriseId,this.$emit("showTab","/audit-group-list"),t&&this.getGroupDetail(t),this.getAdminList()},methods:{getAdminList:function(){var t=this,a=this.groupData.wxEnterpriseId;l({wxEnterpriseId:a}).then((function(a){t.adminList=a.result||[]}))},getGroupDetail:function(t){var a=this;o({auditGroupId:t}).then((function(t){var e=t.result||{},r=e.auditGroupName,u=e.auditGroupId,i=e.auditPerson;Object.assign(a.groupData,{auditGroupName:r,auditGroupId:u}),Array.isArray(i)&&(a.groupData.auditPerson=i.map((function(t){return t.staffId})))}))},onSave:function(){var t=this;this.$refs.groupData.validate((function(a){if(a){var e=t.groupData,r=e.auditGroupName,u=e.auditPerson,i=e.auditGroupId,n=e.wxEnterpriseId,o={auditGroupName:r,wxEnterpriseId:n,auditPerson:[]};o.auditPerson=t.adminList.filter((function(t){return u.some((function(a){return a==t.staffId}))})),o.auditPerson=JSON.stringify(o.auditPerson),t.loading=!0,i?(o.auditGroupId=i,d(o).then(l.bind(t,"保存成功!")).finally((function(){return t.loading=!1}))):s(o).then(l.bind(t,"新建成功!")).finally((function(){return t.loading=!1}))}function l(t){this.$message.success(t),this.$router.go(-1)}}))}}},c=p,f=(e("de34"),e("2877")),g=Object(f["a"])(c,r,u,!1,null,"6c948995",null);a["default"]=g.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-32d6ccb7"],{2802:function(t,a,e){"use strict";e("4917");a["a"]={getByteLen:function(t){for(var a=""==t||null==t?"":t,e=0,r=0;r<a.length;r++){var u=a.charAt(r);null!=u.match(/[^\x00-\xff]/gi)?e+=2:e+=1}return e},getZhLen:function(t){for(var a=""==t||null==t?"":t,e=0,r=0;r<a.length;r++){var u=a.charAt(r);null!=u.match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)},cutStr:function(t,a,e){for(var r=0,u=0;u<t.length;u++){var i=t.charAt(u);if(1==e&&(encodeURI(i).length>2?r+=1:r+=.5),2==e&&(r+=1),r>=a){var n=r==a?u+1:u;return t.substr(0,n)}}},getByteVal:function(t,a){for(var e=""==t||null==t?"":t,r="",u=0,i=0;i<e.length;i++){if(null!=e[i].match(/[^\x00-\xff]/gi)?u+=1:u+=.5,u>a)break;r+=e[i]}return r},getCharVal:function(t,a){for(var e=""==t||null==t?"":t,r="",u=0,i=0;i<e.length;i++){if(null!=e[i].match(/[^\x00-\xff]/gi)?u+=2:u+=1,u>a)break;r+=e[i]}return r},regPos:function(t){var a=/^\d+(\.\d+)?$/;return a.test(t)}}},4917:function(t,a,e){"use strict";var r=e("cb7c"),u=e("9def"),i=e("0390"),n=e("5f1b");e("214f")("match",1,(function(t,a,e,o){return[function(e){var r=t(this),u=void 0==e?void 0:e[a];return void 0!==u?u.call(e,r):new RegExp(e)[a](String(r))},function(t){var a=o(e,t,this);if(a.done)return a.value;var d=r(t),s=String(this);if(!d.global)return n(d,s);var l=d.unicode;d.lastIndex=0;var p,c=[],f=0;while(null!==(p=n(d,s))){var g=String(p[0]);c[f]=g,""===g&&(d.lastIndex=i(s,u(d.lastIndex),l)),f++}return 0===f?null:c}]}))},"71f6":function(t,a,e){"use strict";e.d(a,"a",(function(){return u}));e("ac6a"),e("456d");var r=e("b775");function u(t,a){t=t||{};var e=Object.keys(t);return e.forEach((function(e){var u=t[e];"string"===typeof u&&(u={url:u}),u.url="".concat(a).concat(u.url),t[e]=function(t){return Object(r["a"])(u,t)}})),t}},"96b6":function(t,a,e){"use strict";var r=e("71f6"),u={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};u=Object(r["a"])(u,"/hb-manage-web"),a["a"]=u},a601:function(t,a,e){},de34:function(t,a,e){"use strict";var r=e("a601"),u=e.n(r);u.a},ea11:function(t,a,e){"use strict";e.r(a);var r=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("el-form",{ref:"groupData",staticClass:"group-detail",attrs:{model:t.groupData,rules:t.groupDataRules,"label-width":"110px"}},[e("el-form-item",{attrs:{label:"审核组名称",prop:"auditGroupName"}},[e("el-input",{staticStyle:{width:"481px"},attrs:{placeholder:"请输入内容",maxlength:"20","show-word-limit":""},model:{value:t.groupData.auditGroupName,callback:function(a){t.$set(t.groupData,"auditGroupName","string"===typeof a?a.trim():a)},expression:"groupData.auditGroupName"}})],1),e("el-form-item",{attrs:{label:"选择管理员",prop:"auditPerson"}},[e("dm-transfer",{attrs:{titles:["全选","已选"],"button-texts":["移除","转入"],props:{label:"staffName",key:"staffId"},"render-content":t.render,data:t.adminList},model:{value:t.groupData.auditPerson,callback:function(a){t.$set(t.groupData,"auditPerson",a)},expression:"groupData.auditPerson"}})],1),e("el-form-item",{staticStyle:{"margin-top":"50px"}},[e("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.onSave}},[t._v(t._s(t.groupData.auditGroupId?"保存":"确认新建"))])],1)],1)},u=[],i=e("2802"),n=e("96b6"),o=n["a"].auditGroupDetail,d=n["a"].editAuditGroup,s=n["a"].addAuditGroup,l=n["a"].getAdminList,p={name:"CreateAuditGroup",data:function(){this.$createElement;return{loading:!1,adminList:[],groupData:{auditGroupName:"",auditPerson:[],wxEnterpriseId:"",auditGroupId:""},groupDataRules:{auditGroupName:[{required:!0,message:"请输入审核组名称",trigger:"blur"}],auditPerson:[{required:!0,message:"请选择管理员",trigger:"blur"}]},render:function(t,a){var e=arguments[0],r="".concat(a.staffName," (").concat(a.roleName,")");return i["a"].getZhLen(r)<=10?e("span",[r]):e("el-tooltip",{attrs:{placement:"top"}},[e("p",{slot:"content"},[r]),e("span",[r])])}}},created:function(){var t=this.$route.query.auditGroupId,a=JSON.parse(localStorage.getItem("haoBanUser")||"{}");this.groupData.wxEnterpriseId=a.wxEnterpriseId,this.$emit("showTab","/audit-group-list"),t&&this.getGroupDetail(t),this.getAdminList()},methods:{getAdminList:function(){var t=this,a=this.groupData.wxEnterpriseId;l({wxEnterpriseId:a}).then((function(a){t.adminList=a.result||[]}))},getGroupDetail:function(t){var a=this;o({auditGroupId:t}).then((function(t){var e=t.result||{},r=e.auditGroupName,u=e.auditGroupId,i=e.auditPerson;Object.assign(a.groupData,{auditGroupName:r,auditGroupId:u}),Array.isArray(i)&&(a.groupData.auditPerson=i.map((function(t){return t.staffId})))}))},onSave:function(){var t=this;this.$refs.groupData.validate((function(a){if(a){var e=t.groupData,r=e.auditGroupName,u=e.auditPerson,i=e.auditGroupId,n=e.wxEnterpriseId,o={auditGroupName:r,wxEnterpriseId:n,auditPerson:[]};o.auditPerson=t.adminList.filter((function(t){return u.some((function(a){return a==t.staffId}))})),o.auditPerson=JSON.stringify(o.auditPerson),t.loading=!0,i?(o.auditGroupId=i,d(o).then(l.bind(t,"保存成功!")).finally((function(){return t.loading=!1}))):s(o).then(l.bind(t,"新建成功!")).finally((function(){return t.loading=!1}))}function l(t){this.$message.success(t),this.$router.go(-1)}}))}}},c=p,f=(e("de34"),e("2877")),g=Object(f["a"])(c,r,u,!1,null,"6c948995",null);a["default"]=g.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-35e6f8fc"],{"28a5":function(t,e,a){"use strict";var n=a("aae3"),o=a("cb7c"),i=a("ebd6"),r=a("0390"),s=a("9def"),c=a("5f1b"),l=a("520a"),u=a("79e5"),f=Math.min,p=[].push,h="split",d="length",g="lastIndex",m=4294967295,v=!u((function(){RegExp(m,"y")}));a("214f")("split",2,(function(t,e,a,u){var w;return w="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[d]||2!="ab"[h](/(?:ab)*/)[d]||4!="."[h](/(.?)(.?)/)[d]||"."[h](/()()/)[d]>1||""[h](/.?/)[d]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!n(t))return a.call(o,t,e);var i,r,s,c=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,h=void 0===e?m:e>>>0,v=new RegExp(t.source,u+"g");while(i=l.call(v,o)){if(r=v[g],r>f&&(c.push(o.slice(f,i.index)),i[d]>1&&i.index<o[d]&&p.apply(c,i.slice(1)),s=i[0][d],f=r,c[d]>=h))break;v[g]===i.index&&v[g]++}return f===o[d]?!s&&v.test("")||c.push(""):c.push(o.slice(f)),c[d]>h?c.slice(0,h):c}:"0"[h](void 0,0)[d]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,n){var o=t(this),i=void 0==a?void 0:a[e];return void 0!==i?i.call(a,o,n):w.call(String(o),a,n)},function(t,e){var n=u(w,t,this,e,w!==a);if(n.done)return n.value;var l=o(t),p=String(this),h=i(l,RegExp),d=l.unicode,g=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(v?"y":"g"),C=new h(v?l:"^(?:"+l.source+")",g),b=void 0===e?m:e>>>0;if(0===b)return[];if(0===p.length)return null===c(C,p)?[p]:[];var x=0,_=0,y=[];while(_<p.length){C.lastIndex=v?_:0;var S,k=c(C,v?p:p.slice(_));if(null===k||(S=f(s(C.lastIndex+(v?0:_)),p.length))===x)_=r(p,_,d);else{if(y.push(p.slice(x,_)),y.length===b)return y;for(var N=1;N<=k.length-1;N++)if(y.push(k[N]),y.length===b)return y;_=x=S}}return y.push(p.slice(x)),y}]}))},"37f9":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{ref:"headerMenu",attrs:{"project-name":t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body border-box",staticStyle:{"min-height":"calc(100vh - 46px)"}},[a("div",{staticClass:"index-body flex flex-row"},[a("div",{staticClass:"index-body-left"},[a("div",{staticClass:"index-body-left_top border-box"},[t._m(0),a("ul",t._l(t.purchaseApp,(function(e,n){return a("li",{key:n+"app",staticClass:"border-box",on:{click:function(a){return t.toAppView(e)}}},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),a("div",{staticClass:"app-cell-right flex flex-column flex-align-center flex-pack-center"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),e.applicationPath?t._e():a("div",{staticClass:"app-info"},[a("span",{staticClass:"font-14 color-909399"},[t._v("里面为空~")])])]),a("div",{staticClass:"app-cell-arrow"},[a("el-dropdown",{staticClass:"app-cell-dropdown",attrs:{trigger:"hover"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more el-icon--right",staticStyle:{cursor:"pointer"}})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){return a.stopPropagation(),t.changeSwitch(e)}}},[t._v(t._s(1==e.openFlag?"停用":"启用"))])])],1)],1)],1)])])})),0)]),t.noPurchaseApp.length?a("div",{staticClass:"bg-space"}):t._e(),a("div",{class:["index-body-left_bottom border-box",t.noPurchaseApp.length?"bottom-0":"bottom-9999"]},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("已停用")]),a("ul",t._l(t.noPurchaseApp,(function(e,n){return a("li",{key:n+"appno",staticClass:"border-box"},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name stop-app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),a("div",{staticClass:"app-info stop-app-info"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){return t.changeAppSwitch(a,e)}},model:{value:e.openFlag,callback:function(a){t.$set(e,"openFlag",a)},expression:"item.openFlag"}})],1)])])])})),0)])]),a("div",{staticClass:"index-body-right"},[a("div",{staticClass:"index-body-right_top border-box"},[a("div",{staticClass:"serve-info"},[a("div",{staticClass:"serve-date-info"},[a("div",{staticClass:"font-14 color-909399 p-t-10 m-b-13",staticStyle:{"font-weight":"300"}},[t._v(t._s(t._f("timeStampToYm")((new Date).getTime())))]),a("div",{staticClass:"font-12 color-909399"},[t._v("农历"+t._s(t.getLunarDay((new Date).getFullYear(),(new Date).getMonth()+1,(new Date).getDate())))]),a("div",{staticClass:"serve-date-day"},[a("div",{staticClass:"serve-date-day_inner "},[a("div",{staticClass:"color-fff font-26 p-t-10",staticStyle:{"letter-spacing":"2px"}},[t._v(t._s((new Date).getDate()))]),a("div",{staticClass:"color-fff font-12"},[t._v(t._s(t.weeks[(new Date).getDay()]))])])])]),a("div",{staticClass:"serve-version flex"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("企业")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.corpName))])]),a("div",{staticClass:"serve-date flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("版本")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.smallVersion))])]),t._e()])]),a("div",{staticClass:"bg-margin-10"}),a("div",{staticClass:"index-body-right_bottom border-box"},[a("div",{staticClass:"help-title font-16 color-303133 font-w-600"},[t._v("帮助中心")]),a("ul",{staticClass:"help-list m-t-15"},[t._l(t.helpList,(function(e,n){return a("li",{key:n+"help",staticClass:"cursor-pointer font-14 color-606266",on:{click:function(a){return t.toRedirect(e)}}},[t._v("\n "+t._s(e.helpTitle)+"\n ")])})),a("li",{staticClass:"text-center li-more cursor-pointer",on:{click:t.goUdesk}},[t._v("查看更多")])],2)])])])])])],1)},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-title font-16 color-303133 flex flex-space-between"},[a("span",{staticClass:"font-16 color-303133 font-w-600 line-h-32 color-primary"},[t._v("已使用")])])}],i=(a("96cf"),a("1da1")),r=a("f777"),s=a("5b4e"),c={name:"IndexPage",components:{vueOfficeHeader:r["a"]},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",projectName:"haoban-manage-web",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",purchaseApp:[],weeks:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],noPurchaseApp:[],versionData:{id:1,smallVersion:"",corpName:"",date:(new Date).getTime(),storeNum:100,storeTotal:""},helpList:[]}},mounted:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this,t.next=3,e.toLogin();case 3:e.wxEnterpriseId=t.sent;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{goUdesk:function(){window.open("https://demogic.udesk.cn/hc/categories/96671?api_name=")},getLunarDay:function(t,e,a){var n=[0,31,59,90,120,151,181,212,243,273,304,334],o="一二三四五六七八九十",i="正二三四五六七八九十冬腊",r=[2635,333387,1701,1748,267701,694,2391,133423,1175,396438,3402,3749,331177,1453,694,201326,2350,465197,3221,3402,400202,2901,1386,267611,605,2349,137515,2709,464533,1738,2901,330421,1242,2651,199255,1323,529706,3733,1706,398762,2741,1206,267438,2647,1318,204070,3477,461653,1386,2413,330077,1197,2637,268877,3365,531109,2900,2922,398042,2395,1179,267415,2635,661067,1701,1748,398772,2742,2391,330031,1175,1611,200010,3749,527717,1452,2742,332397,2350,3222,268949,3402,3493,133973,1386,464219,605,2349,334123,2709,2890,267946,2773,592565,1210,2651,395863,1323,2707,265877];if(!(t<1921||t>2100)){e=parseInt(e)>0?e-1:11;var s,c,l,u,f,p,h=[t,e,a],d=3!==h.length?new Date:new Date(h[0],h[1],h[2]),g=!1,m=d.getFullYear();for(s=365*(m-1921)+Math.floor((m-1921)/4)+n[d.getMonth()]+d.getDate()-38,m%4===0&&d.getMonth()>1&&s++,c=0;;c++){for(u=r[c]<4095?11:12,l=u;l>=0;l--){if(s<=this.getBit(r[c],l)){g=!0;break}s-=this.getBit(r[c],l)}if(g)break}f=u-l+1,p=s,12===u&&(f===Math.floor(r[c]/65536)+1&&(f=1-f),f>Math.floor(r[c]/65536)+1&&f--);var v=o.charAt(p-1);return p%10===0&&10!==p||(v=o.charAt((p-1)%10)),1===p?i.charAt(f-1)+"月初一":i.charAt(f-1)+"月"+(p<11?"初":p<20?"十":p<30?"廿":"三十")+v}},getBit:function(t,e){return 29+(t>>e&1)},toRedirect:function(t){if(!t.helpUrl)return!1;window.open(t.helpUrl)},changeRoute:function(t){this.$router.push(t)},toOverStore:function(){var t=this;t.changeRoute("/overStoreList")},toAppView:function(t){var e=this;if(!t.applicationPath)return s["a"].showmsg("无更多设置项,不可进入!","warning"),!1;e.changeRoute("".concat(t.applicationPath))},goShopping:function(){var t=this;t.changeRoute("/")},toRouterView:function(t){var e=this;e.$router.push({path:t.path})},changeSwitch:function(t){var e=this,a=1==t.openFlag?"关闭":"开启";e.$confirm("确认".concat(a,"【").concat(t.applicationName,"】应用吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.postSwitch(t)})).catch((function(){t.openFlag}))},collapseTag:function(t){var e=this;e.collapseFlag=t},toAlert:function(){var t=this;t.$confirm("您所在企业尚未订购好办 ,请前往升级版本后继续使用。","提示",{confirmButtonText:"立即前往订购",cancelButtonText:"取消",type:"warning"}).then((function(){window.open("")}))},toTip:function(){var t=this;t.$confirm("您没有该功能的使用权限,请联系管理员授权后继续使用。","提示",{confirmButtonText:"知道了",type:"warning"}).then((function(){window.open("")}))}}},l=c,u=(a("dcef"),a("2877")),f=Object(u["a"])(l,n,o,!1,null,"6aa06058",null);e["default"]=f.exports},5937:function(t,e,a){"use strict";var n=a("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(n["a"])(o,"/hb-manage-web"),e["a"]=o},"5b4e":function(t,e,a){"use strict";var n=a("5c96");e["a"]={showmsg:function(t,e){Object(n["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("ac6a"),a("456d");var n=a("b775");function o(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(e).concat(o.url),t[a]=function(t){return Object(n["a"])(o,t)}})),t}},"75a0":function(t,e,a){},"7ded":function(t,e,a){"use strict";var n=a("71f6"),o={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};o=Object(n["a"])(o,"/hb-manage-web/auth"),e["a"]=o},dcef:function(t,e,a){"use strict";var n=a("75a0"),o=a.n(n);o.a},e22b:function(t,e,a){"use strict";var n=a("ea9b"),o=a.n(n);o.a},ea9b:function(t,e,a){},f777:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nav-header"},[n("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:t.toIndex}},[n("span",{staticClass:"pro-name"},[t._v("好办管理平台")])]),n("div",{staticClass:"nav-header-item fl"},[t._l(t.menuHead,(function(e,a){return[n("a",{key:a,class:["item-link menu-font-16"],on:{click:function(a){return t.changeRouter(e)}}},[n("span",{class:["inline-block bottom",-1!=e.menuUrl.indexOf(t.pathName)||t.currentMenuCode==e.menuCode?"current-module":""]},[t._v(t._s(e.menuName))])])]})),n("div",{staticClass:"navuser-info fr"},[t.userInfo.headImg?n("img",{staticClass:"user-img",attrs:{src:t.userInfo.headImg,alt:""}}):n("img",{staticClass:"user-img",attrs:{src:a("6ce2"),alt:"img"}}),n("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[n("ul",{staticClass:"navsuer-wrap"},[n("li",[n("p",{staticClass:"font-14 color-606266 hide-item"},[t._v(t._s(t.userInfo.staffName||"--"))]),n("p",{staticClass:"font-12 color-909399 hide-item"},[t._v(t._s(t.userInfo.roleName||"--"))])]),n("li",{staticClass:"user-item text-align",on:{click:function(e){return e.stopPropagation(),t.toLoginOut(e)}}},[n("a",{staticClass:"user-text"},[t._v("退出登录")])])]),n("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[n("span",{staticClass:"font-12 color-606266"},[t._v(t._s(t.userInfo.staffName||"--"))]),n("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},o=[],i=(a("456d"),a("96cf"),a("1da1")),r=(a("ac6a"),a("28a5"),a("7ded")),s=a("5937"),c=s["a"].getRoleMenu,l=r["a"].getUserInfo,u=r["a"].loginOut,f={name:"VueOfficeHeader",components:{},props:{currentMenuCode:{type:String,default:""}},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var t=this;t.pathName=t.$route.path,t.routePathName=window.location.hash.split("/")[1],-1!=t.routePathName.indexOf("?")&&(t.routePathName=t.routePathName.split("?")[0]),-1!=t.routePathName.indexOf("/")&&(t.routePathName=t.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),t.toLogin()},methods:{toIndex:function(){var t=this;t.$router.push("/contactsList")},changeRouter:function(t){var e=this;if(1==t.target)-1!=t.menuUrl.indexOf("http")?window.open(t.menuUrl):window.open("/haoban-4/#".concat(t.menuUrl));else{e.setLeftData(t);var a={};e.roleMenuData.forEach((function(e){t.menuCode!=e.menuCode||e.children.length||(a=e),t.menuCode==e.menuCode&&e.children.length&&(a=e.children[0])})),e.$router.push(a.menuUrl)}},setLeftData:function(t){var e=this,a=[];e.roleMenuData.forEach((function(e){t.menuCode==e.menuCode&&a.push(e)})),e.$emit("leftData",a)},toLoginOut:function(){var t=this;t.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){u({}).then((function(e){"0000"==e.code&&(t.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(t){}))})).catch((function(){}))},toLogin:function(){var t=this;l({}).then((function(e){e.result||(e.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(e.result.loginStaff)),t.userInfo=Object.assign(e.result.loginStaff,e.result.role),t.getData()})).catch((function(t){}))},treeData:function(t){var e=t.filter((function(e){var a=t.filter((function(t){return e.menuCode==t.parentCode&&1==t.isShow}));return a.length>0?(e.hasSonNode=!0,e.children=a):(e.children=[],e.hasSonNode=!1),""==e.parentCode&&1==e.isShow}));return e},getData:function(){var t=this,e={appType:1};c(e).then(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(a){var n,o,i,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("0000"!=a.code){e.next=14;break}return n=[],o={},i={},a.result.forEach((function(e){1==e.level&&1==e.isShow&&n.push(e),t.$route.path==e.menuUrl&&1==e.level&&1==e.isShow&&(o=e),t.$route.path==e.menuUrl&&1!=e.level&&(i=e)})),t.menuHead=n,e.next=8,t.treeData(JSON.parse(JSON.stringify(a.result)));case 8:t.roleMenuData=e.sent,Object.keys(i).length&&2==i.level&&a.result.forEach((function(t){i.parentCode==t.menuCode&&1==t.level&&1==t.isShow&&(o=t)})),r={},Object.keys(i).length&&3==i.level&&a.result.forEach((function(t){i.parentCode==t.menuCode&&2==t.level&&1==t.isShow&&(r=t)})),Object.keys(r).length&&2==r.level&&a.result.forEach((function(t){r.parentCode==t.menuCode&&1==t.level&&1==t.isShow&&(o=t)})),t.setLeftData(o);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(t){}))}}},p=f,h=(a("e22b"),a("2877")),d=Object(h["a"])(p,n,o,!1,null,"26c74afb",null);e["a"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-39b3fdd3"],{5937:function(e,t,n){"use strict";var a=n("71f6"),r={getRoleMenu:"/list-staff-role-menu"};r=Object(a["a"])(r,"/hb-manage-web"),t["a"]=r},"6ce2":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("ac6a"),n("456d");var a=n("b775");function r(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var r=e[n];"string"===typeof r&&(r={url:r}),r.url="".concat(t).concat(r.url),e[n]=function(e){return Object(a["a"])(r,e)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),r={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};r=Object(a["a"])(r,"/hb-manage-web/auth"),t["a"]=r},"7f2e":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"enterprise-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName,"current-menu-code":e.currentMenuCode},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),n("div",{staticClass:"enterprise-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view",{attrs:{"app-menu-data":e.appMenuData}})],1)],1)])])],1)},r=[],o=(n("96cf"),n("1da1")),i=n("f777"),u=n("5937"),c=u["a"].getRoleMenu,s={name:"AppIndexPage",components:{vueOfficeHeader:i["a"]},data:function(){return{projectName:"haoban-manage-web",currentMenuCode:"app-controls",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px",appMenuData:[]}},beforeRouteEnter:function(e,t,n){n((function(e){e.getData()}))},mounted:function(){var e=this;e.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},methods:{treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),2==t.level&&1==t.isShow}));return t},getData:function(){var e=this,t={menuId:e.$route.query.applicationId,appType:2};c(t).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n.result&&n.result.length){t.next=3;break}return e.$router.push("/app-list"),t.abrupt("return",!1);case 3:return t.next=5,e.treeData(JSON.parse(JSON.stringify(n.result)));case 5:if(e.appMenuData=t.sent,!(e.appMenuData[0]&&e.appMenuData[0].children&&e.appMenuData[0].children.length&&e.appMenuData[0].children[0].children&&e.appMenuData[0].children[0].children.length)){t.next=9;break}return e.$router.push("".concat(e.appMenuData[0].children[0].children[0].menuUrl,"?applicationId=").concat(e.$route.query.applicationId)),t.abrupt("return",!1);case 9:if(!(e.appMenuData[0]&&e.appMenuData[0].children&&e.appMenuData[0].children.length)){t.next=12;break}return e.$router.push("".concat(e.appMenuData[0].children[0].menuUrl,"?applicationId=").concat(e.$route.query.applicationId)),t.abrupt("return",!1);case 12:e.$router.push("".concat(e.appMenuData[0].menuUrl,"?applicationId=").concat(e.$route.query.applicationId));case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))},toRouterView:function(e){var t=this;t.$router.push({path:e.path})},collapseTag:function(e){var t=this;t.collapseFlag=e}},computed:{}},l=s,p=(n("edc1"),n("2877")),f=Object(p["a"])(l,a,r,!1,null,"26d61992",null);t["default"]=f.exports},c5fd:function(e,t,n){},e22b:function(e,t,n){"use strict";var a=n("ea9b"),r=n.n(a);r.a},ea9b:function(e,t,n){},edc1:function(e,t,n){"use strict";var a=n("c5fd"),r=n.n(a);r.a},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)||e.currentMenuCode==t.menuCode?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},r=[],o=(n("456d"),n("96cf"),n("1da1")),i=(n("ac6a"),n("28a5"),n("7ded")),u=n("5937"),c=u["a"].getRoleMenu,s=i["a"].getUserInfo,l=i["a"].loginOut,p={name:"VueOfficeHeader",components:{},props:{currentMenuCode:{type:String,default:""}},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl));else{t.setLeftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0])})),t.$router.push(n.menuUrl)}},setLeftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){l({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(e){}))})).catch((function(){}))},toLogin:function(){var e=this;s({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={appType:1};c(t).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){var a,r,o,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],r={},o={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(r=t),e.$route.path==t.menuUrl&&1!=t.level&&(o=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(o).length&&2==o.level&&n.result.forEach((function(e){o.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),i={},Object.keys(o).length&&3==o.level&&n.result.forEach((function(e){o.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(i=e)})),Object.keys(i).length&&2==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),e.setLeftData(r);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},f=p,h=(n("e22b"),n("2877")),d=Object(h["a"])(f,a,r,!1,null,"26c74afb",null);t["a"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3b49fb5d"],{"2cad":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"review-wrap"},[a("vue-office-header",{attrs:{"project-name":e.projectName,"current-menu-code":e.currentMenuCode},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView,leftData:e.leftData}}),a("div",{staticClass:"setting-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body"},[a("div",{staticClass:"content-body-inner flex border-box"},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("common-detail-left",{attrs:{"tab-list-data":e.tabListData,"active-sel-tab":e.activeSelTab},on:{setSelectTab:e.setSelectTab}})],1),a("div",{staticClass:"apps-content-right border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{"brand-id":e.activeBrand,"active-group-id":e.activeGroup,"tab-type":e.activeTab},on:{showTab:e.showTab}})],1)],1)])])])])],1)},r=[],o=(a("6762"),a("2fdb"),a("ac6a"),a("f777")),i=a("503e"),c=a("5937"),l=c["a"].getRoleMenu,s={name:"ReviewCenter",components:{vueOfficeHeader:o["a"],commonDetailLeft:i["a"]},data:function(){return{projectName:"haoban-manage-web",currentMenuCode:"reviewCenter",collapseFlag:!1,activeSelTab:"1",activeTab:"1",tabListData:[]}},methods:{changeRoute:function(e){this.$router.push(e)},setSelectTab:function(e){var t=this;t.activeTab=e.menuUrl,1==e.target?-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl)):t.$router.push(e.menuUrl)},showTab:function(e){var t=this;t.activeTab=e,t.activeSelTab=e,t.tabListData.forEach((function(t){t.menuUrl==e&&(t.onlyIconActive=!1),t.children&&t.children.forEach((function(a){a.menuUrl==e&&(t.onlyIconActive=!0),a.children&&a.children.forEach((function(a){a.menuUrl==e&&(t.onlyIconActive=!0)}))}))}))},toRouterView:function(e){var t=this;t.$router.push({path:e.path})},collapseTag:function(e){var t=this;t.collapseFlag=e},leftData:function(e){var t=this;e[0].children.forEach((function(e,a){e.tabId=a+1,e.tabName=e.menuName,e.children&&e.children.length&&t.setChildData(e,a+1)})),t.tabListData=e[0].children},setChildData:function(e,t){var a=this;e.children.forEach((function(e,n){e.tabId=t+"-"+(n+1),e.tabName=e.menuName,e.children&&e.children.length&&a.setChildData(e,t+"-"+(n+1))}))},getData:function(){var e=this,t={};l(t).then((function(t){if("0000"==t.code){var a=t.result.map((function(e){return e.menuCode})),n=[];e.tabListData.forEach((function(e){a.includes(e.menuCode)&&n.push(e)})),e.tabListData=n}})).catch((function(e){}))}}},u=s,h=(a("8db5"),a("2877")),f=Object(h["a"])(u,n,r,!1,null,null,null);t["default"]=f.exports},"503e":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"p-t-12"},[a("ul",{staticClass:"tab-left-list"},[e._l(e.tabData,(function(t,n){return[a("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(a){return e.selectTab(t,!1,n)}}},[a("i",{class:["p-r-10 color-303133 iconfont",t.iconUrl,(t.onlyIconActive,"")]}),e._v(e._s(t.tabName||t.menuName)+"\n ")]),a("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[e._l(t.children,(function(t,r){return[a("li",{key:r,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(a){return e.selectTab(t,"child",n)}}},[e._v(e._s(t.tabName||t.menuName))]),a("ul",{key:"thirditem"+r,staticClass:"third-tab-left-list"},[e._l(t.children,(function(t,r){return[a("li",{key:r,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(a){return e.selectTab(t,"child",n)}}},[e._v(e._s(t.tabName||t.menuName))])]}))],2)]}))],2)]}))],2)])},r=[],o=(a("ac6a"),a("c5f6"),{name:"CommonDetailLeft",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return""}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData,collapsFlag:!0}},mounted:function(){this.activeTab=this.activeSelTab},methods:{selectTab:function(e,t,a){var n=this;if(t?n.tabData[a].onlyIconActive=!0:(n.tabData.forEach((function(e){e.onlyIconActive=!1})),e.hasOwnProperty("children")&&e.children.length&&(n.collapsFlag=!(n.collapsFlag&&e.hasOwnProperty("children")&&e.children.length))),e.hasOwnProperty("children")&&e.children.length)return n.tabData[a].onlyIconActive=!0,e.children[0]&&e.children[0].hasOwnProperty("children")&&e.children[0].children.length?(n.activeTab=e.children[0].children[0].menuUrl,n.$emit("setSelectTab",e.children[0].children[0]),!1):(n.activeTab=e.children[0].menuUrl,n.$emit("setSelectTab",e.children[0]),!1);n.activeTab=e.menuUrl,n.$emit("setSelectTab",e)}},watch:{tabListData:function(e,t){var a=this;a.tabData=e},activeSelTab:function(e,t){var a=this;a.activeTab=e}}}),i=o,c=(a("6255"),a("2877")),l=Object(c["a"])(i,n,r,!1,null,"61fa9846",null);t["a"]=l.exports},"57fc":function(e,t,a){},5937:function(e,t,a){"use strict";var n=a("71f6"),r={getRoleMenu:"/list-staff-role-menu"};r=Object(n["a"])(r,"/hb-manage-web"),t["a"]=r},6255:function(e,t,a){"use strict";var n=a("57fc"),r=a.n(n);r.a},"6ce2":function(e,t,a){e.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));a("ac6a"),a("456d");var n=a("b775");function r(e,t){e=e||{};var a=Object.keys(e);return a.forEach((function(a){var r=e[a];"string"===typeof r&&(r={url:r}),r.url="".concat(t).concat(r.url),e[a]=function(e){return Object(n["a"])(r,e)}})),e}},"7ded":function(e,t,a){"use strict";var n=a("71f6"),r={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};r=Object(n["a"])(r,"/hb-manage-web/auth"),t["a"]=r},"8db5":function(e,t,a){"use strict";var n=a("f192"),r=a.n(n);r.a},e22b:function(e,t,a){"use strict";var n=a("ea9b"),r=a.n(n);r.a},ea9b:function(e,t,a){},f192:function(e,t,a){},f777:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"nav-header"},[n("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[n("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),n("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,a){return[n("a",{key:a,class:["item-link menu-font-16"],on:{click:function(a){return e.changeRouter(t)}}},[n("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)||e.currentMenuCode==t.menuCode?"current-module":""]},[e._v(e._s(t.menuName))])])]})),n("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?n("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):n("img",{staticClass:"user-img",attrs:{src:a("6ce2"),alt:"img"}}),n("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[n("ul",{staticClass:"navsuer-wrap"},[n("li",[n("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),n("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),n("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[n("a",{staticClass:"user-text"},[e._v("退出登录")])])]),n("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[n("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),n("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},r=[],o=(a("456d"),a("96cf"),a("1da1")),i=(a("ac6a"),a("28a5"),a("7ded")),c=a("5937"),l=c["a"].getRoleMenu,s=i["a"].getUserInfo,u=i["a"].loginOut,h={name:"VueOfficeHeader",components:{},props:{currentMenuCode:{type:String,default:""}},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl));else{t.setLeftData(e);var a={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(a=t),e.menuCode==t.menuCode&&t.children.length&&(a=t.children[0])})),t.$router.push(a.menuUrl)}},setLeftData:function(e){var t=this,a=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&a.push(t)})),t.$emit("leftData",a)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){u({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(e){}))})).catch((function(){}))},toLogin:function(){var e=this;s({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var a=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return a.length>0?(t.hasSonNode=!0,t.children=a):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={appType:1};l(t).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(a){var n,r,o,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=a.code){t.next=14;break}return n=[],r={},o={},a.result.forEach((function(t){1==t.level&&1==t.isShow&&n.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(r=t),e.$route.path==t.menuUrl&&1!=t.level&&(o=t)})),e.menuHead=n,t.next=8,e.treeData(JSON.parse(JSON.stringify(a.result)));case 8:e.roleMenuData=t.sent,Object.keys(o).length&&2==o.level&&a.result.forEach((function(e){o.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),i={},Object.keys(o).length&&3==o.level&&a.result.forEach((function(e){o.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(i=e)})),Object.keys(i).length&&2==i.level&&a.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),e.setLeftData(r);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},f=h,d=(a("e22b"),a("2877")),m=Object(d["a"])(f,n,r,!1,null,"26c74afb",null);t["a"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e6471d9","chunk-04441caa"],{2249:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("nav-crumb",{attrs:{navpath:e.bread}}),n("div",{staticStyle:{padding:"20px",background:"#fff"}},[n("el-alert",{staticStyle:{"margin-bottom":"30px",width:"572px"},attrs:{type:"info",title:"管理角色:查看区域或门店日常业务,进行一些经营性的管理工作。不必关联导购账号。",closable:!1,"show-icon":""}}),n("el-form",{ref:"roleData",attrs:{model:e.roleData,rules:e.roleDataRule,"label-width":"140px"}},[n("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[n("el-input",{staticStyle:{width:"432px"},attrs:{placeholder:"请输入角色名称",maxlength:"20","show-word-limit":""},model:{value:e.roleData.roleName,callback:function(t){e.$set(e.roleData,"roleName","string"===typeof t?t.trim():t)},expression:"roleData.roleName"}})],1),n("el-form-item",{attrs:{label:"权限配置",prop:"menuIds"}},[n("el-radio-group",{staticClass:"specter",attrs:{size:"small"},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},e._l(e.tabList,(function(t){return n("el-radio-button",{key:t.appType,attrs:{label:t.appType}},[e._v(e._s(t.label))])})),1),n("menu-tree",{staticStyle:{"margin-top":"12px"},attrs:{"menu-list":e.getActiveMenuList(),"checked-id":e.getActiveMenuChecked(),"app-ids":e.getAppIds(),"is-app":2==e.activeType||4==e.activeType},on:{change:e.onCheckedChange,"app-open-change":e.onAppOpenChange}})],1),n("el-form-item",{staticStyle:{"margin-top":"50px"}},[n("el-button",{attrs:{type:"primary",loading:e.roleData.loading},on:{click:e.onSave}},[e._v(e._s(e.roleData.roleId?"保存":"确认新建"))])],1)],1)],1)],1)},r=[],i=(n("20d6"),n("28a5"),n("5df3"),n("ac6a"),n("96cf"),n("1da1")),o=n("29b6"),s=n("a088"),c=n("f286"),u=c["a"].menuList,l=c["a"].addRole,p=c["a"].editRole,d=c["a"].roleDetail,h=c["a"].findAppSetting,f=c["a"].saveAppSetting,m={name:"EditRole",components:{navCrumb:o["a"],MenuTree:s["default"]},data:function(){var e=function(e,t,n){Array.isArray(t)&&0!=t.length&&!t.every((function(e){return 0==e.menuIds.length}))||n(new Error("请至少选择一个权限菜单")),n()};return{bread:[{name:"管理员",path:"/admin-list"},{name:"新建管理角色"}],wxEnterpriseId:"",roleData:{loading:!1,roleId:"",roleName:"",menuIds:[]},roleDataRule:{roleName:[{required:!0,message:"角色名称不能为空",trigger:"blur"}],menuIds:[{required:!0,validator:e}]},activeType:1,tabList:[{label:"好办后台",appType:1,flatMenu:[],menuList:[],checkedId:{},appIds:[]},{label:"应用后台",appType:2,flatMenu:[],menuList:[],checkedId:{},appIds:[]},{label:"好办小程序",appType:3,flatMenu:[],menuList:[],checkedId:{},appIds:[]},{label:"小程序应用",appType:4,flatMenu:[],menuList:[],checkedId:{},appIds:[]}]}},created:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),n=this.$route.query.roleId,this.$emit("showAsideMenu",!1),this.wxEnterpriseId=t.wxEnterpriseId,e.next=6,this.getMenuList(n);case 6:n&&(this.bread[1]={name:"编辑管理角色"},this.getRoleDetail(n));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{getMenuList:function(e){var t=this,n={wxEnterpriseId:this.wxEnterpriseId,roleType:1},a=[];return this.tabList.forEach((function(r){a.push(u(Object.assign({},n,{appType:r.appType})).then((function(a){r.flatMenu=a.result||[],r.menuList=t.flatDataToTree(a.result||[]),r.menuList.forEach((function(e){t.$set(r.checkedId,e.menuId,[])})),2!=r.appType&&4!=r.appType||h(Object.assign({},n,{roleId:e,appType:r.appType})).then((function(e){r.appIds=e.result||[],t.setChildrenDisable(r.menuList,r.appIds)}))})))})),Promise.all(a)},getRoleDetail:function(e){var t=this;function n(e,t){var a=[];return e.forEach((function(e){t.some((function(t){return t==e.menuId}))&&a.push(e.menuId),Array.isArray(e.children)&&(a=a.concat(n(e.children,t)))})),a}function a(e,t){var n=[];return e.map((function(e){if(t.some((function(t){return t==e.menuId}))){var i=[];Array.isArray(e.children)&&(i=r(e.children)),(0==i.length||i.every((function(e){return t.some((function(t){return t==e}))})))&&n.push(e.menuId),Array.isArray(e.children)&&(n=n.concat(a(e.children,t)))}})),n}function r(e){var t=[];return e.forEach((function(e){t.push(e.menuId),Array.isArray(e.children)&&(t=t.concat(r(e.children)))})),t}d({roleId:e}).then((function(e){var r=e.result,i=r.roleId,o=r.roleName,s=r.menuIds;s="string"==typeof s?s.split(","):[],Object.assign(t.roleData,{roleId:i,roleName:o}),t.tabList.forEach((function(e){var r=[];e.menuList.forEach((function(t){e.checkedId[t.menuId]=a([t],s),r=r.concat(n([t],s))})),t.roleData.menuIds.push({appType:e.appType,menuIds:r})}))}))},flatDataToTree:function(e){return e.filter((function(t){var n=e.filter((function(e){return e.parentId==t.menuId}));return n.length>0&&(t.children=n),""==t.parentCode}))},getActiveMenuList:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].menuList},getActiveMenuChecked:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].checkedId},getAppIds:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].appIds},onCheckedChange:function(e){var t=this,n=[],a=[],r=[];for(var i in e)n=n.concat(e[i]);function o(e,t){var n=[e];return t.some((function(a){return a.menuId==e&&a.parentId>0&&(n=n.concat(o(a.parentId,t))),a.menuId==e})),n}this.tabList=this.tabList.map((function(n){return n.appType==t.activeType&&(n.checkedId=e,a=n.flatMenu),n})),n.map((function(e){r=r.concat(o(e,a))})),r=r.filter((function(e,t){return t==r.findIndex((function(t){return t==e}))})),this.roleData.menuIds.some((function(e){return e.appType==t.activeType}))?this.roleData.menuIds.forEach((function(e){e.appType==t.activeType&&(e.menuIds=r)})):this.roleData.menuIds.push({appType:this.activeType,menuIds:r})},onAppOpenChange:function(e){var t=this;this.tabList.some((function(n){return n.appType==t.activeType&&(n.appIds=e,t.setChildrenDisable(n.menuList,n.appIds)),n.appType==t.activeType}))},setChildrenDisable:function(e,t){var n=this;function a(e,t){var n=this;return e.map((function(e){return n.$set(e,"disabled",t),Array.isArray(e.children)&&(e.children=a.call(n,e.children,t)),e}))}e.forEach((function(e){var r=!1;t.some((function(t){return t.appId==e.project&&(r=t.openFlag),t.appId==e.project})),n.$set(e,"disabled",0==r),Array.isArray(e.children)&&(e.children=a.call(n,e.children,0==r))}))},onSave:function(){var e=this;this.$refs.roleData.validate((function(t){if(t){var n=e.roleData,a=n.roleId,r=n.roleName,i=n.menuIds,o={roleName:r,menuIds:JSON.stringify(i)};e.roleData.loading=!0,a?(o.roleId=a,p(o).then(s.bind(e,a,"保存成功!")).catch((function(){return e.roleData.loading=!1}))):l(o).then((function(t){s.call(e,t.result.roleId,"新建成功!")})).catch((function(){return e.roleData.loading=!1}))}function s(e,t){var n=this,a=[],r={roleId:e,wxEnterpriseId:this.wxEnterpriseId};this.tabList.forEach((function(e){2!=e.appType&&4!=e.appType||a.push(new Promise((function(t){f(Object.assign({},r,{appType:e.appType,json:JSON.stringify(e.appIds)})).finally(t)})))})),Promise.all(a).then((function(){n.$message.success(t),n.$router.go(-1)})).finally((function(){return n.roleData.loading=!1}))}}))}}},v=m,y=n("2877"),I=Object(y["a"])(v,a,r,!1,null,null,null);t["default"]=I.exports},"29b6":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"nav-wrap border-box"},[n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e._l(e.navpath,(function(t,a){return[t.path?[n("el-breadcrumb-item",{key:"nav"+a,attrs:{to:{path:t.path}},on:{click:function(n){return e.changeRoute(t.path,t.relocation)}}},[n("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(n){return e.changeRoute(t.path,t.relocation)}}},[e._v("\n "+e._s(t.name)+"\n ")])])]:[n("el-breadcrumb-item",{key:"nav"+a},[e._v(e._s(t.name))])]]}))],2)],1)},r=[],i={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(e,t){var n=this;t?window.location.href=e:n.$router.push(e)}}},o=i,s=(n("6b4b"),n("2877")),c=Object(s["a"])(o,a,r,!1,null,"2c2a2724",null);t["a"]=c.exports},"4ab3":function(e,t,n){},"6b4b":function(e,t,n){"use strict";var a=n("76d4"),r=n.n(a);r.a},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("ac6a"),n("456d");var a=n("b775");function r(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var r=e[n];"string"===typeof r&&(r={url:r}),r.url="".concat(t).concat(r.url),e[n]=function(e){return Object(a["a"])(r,e)}})),e}},"76d4":function(e,t,n){},a088:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"menu-tree"},[n("ul",{staticClass:"first-menu"},[0==e.menuList.length?n("li",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.menuList,(function(t){return n("li",{key:t.menuId,class:["first-menu-item",{active:t.menuId==e.activeMenuId}],on:{click:function(n){return e.onMenuChange(t)}}},[e.isApp?n("el-checkbox",{attrs:{value:e.appIds.some((function(e){return e.appId==t.project&&1==e.openFlag}))},on:{change:function(n){return e.onAppOpenChange(t.project,n)}}}):e._e(),e._v("\n "+e._s(t.menuName)+"\n ")],1)}))],2),n("div",{staticClass:"all-menu"},[n("el-tree",{ref:"menuList",attrs:{data:e.treeData,"show-checkbox":"","default-expand-all":"","node-key":"menuId","expand-on-click-node":!1,"check-on-click-node":!0,props:{label:"menuName"},"default-checked-keys":e.checkedId[e.activeMenuId]},on:{"node-click":e.onNodeClick,check:e.onNodeClick}})],1)])},r=[],i=(n("c5f6"),n("ac6a"),{name:"MenuTree",props:{menuList:Array,checkedId:Object,appIds:Array,isApp:Boolean},data:function(){return{activeMenuId:"",treeData:[]}},methods:{onMenuChange:function(e){this.activeMenuId=e?e.menuId:"",this.treeData=e?[e]:[]},onNodeClick:function(){this.onChange(this.$refs.menuList.getCheckedKeys())},getAllMenuId:function(e){var t=this,n=[];return e.forEach((function(e){n.push(e.menuId),Array.isArray(e.children)&&(n=n.concat(t.getAllMenuId(e.children)))})),n},onChange:function(e){var t={};t[this.activeMenuId]=e,this.$emit("change",Object.assign({},this.checkedId,t))},onAppOpenChange:function(e,t){var n=this.appIds.map((function(n){var a=Object.assign({},n);return a.appId==e&&(a.openFlag=Number(t)),a}));this.$emit("app-open-change",n)}},watch:{checkedId:{deep:!0,handler:function(e){this.$refs.menuList.setCheckedKeys(e[this.activeMenuId]||[])}},menuList:{immediate:!0,handler:function(e){this.onMenuChange(e[0])}}}}),o=i,s=(n("b2eb"),n("2877")),c=Object(s["a"])(o,a,r,!1,null,"19fa0aa2",null);t["default"]=c.exports},b2eb:function(e,t,n){"use strict";var a=n("4ab3"),r=n.n(a);r.a},f286:function(e,t,n){"use strict";var a=n("71f6"),r={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list",findAppSetting:"/find-application-setting",saveAppSetting:{url:"/save-application-setting",method:"post",useFormData:!0},findStoreRange:"/find-store-range",saveStoreRange:"/save-store-range"};t["a"]=Object(a["a"])(r,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3f761645"],{"37f9":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{ref:"headerMenu",attrs:{"project-name":t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body border-box",staticStyle:{"min-height":"calc(100vh - 46px)"}},[a("div",{staticClass:"index-body flex flex-row"},[a("div",{staticClass:"index-body-left"},[a("div",{staticClass:"index-body-left_top border-box"},[t._m(0),a("ul",t._l(t.purchaseApp,(function(e,n){return a("li",{key:n+"app",staticClass:"border-box",on:{click:function(a){return t.toAppView(e)}}},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),a("div",{staticClass:"app-cell-right flex flex-column flex-align-center flex-pack-center"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),e.applicationPath?t._e():a("div",{staticClass:"app-info"},[a("span",{staticClass:"font-14 color-909399"},[t._v("里面为空~")])])]),a("div",{staticClass:"app-cell-arrow"},[a("el-dropdown",{staticClass:"app-cell-dropdown",attrs:{trigger:"hover"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more el-icon--right",staticStyle:{cursor:"pointer"}})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){return a.stopPropagation(),t.changeSwitch(e)}}},[t._v(t._s(1==e.openFlag?"停用":"启用"))])])],1)],1)],1)])])})),0)]),t.noPurchaseApp.length?a("div",{staticClass:"bg-space"}):t._e(),a("div",{class:["index-body-left_bottom border-box",t.noPurchaseApp.length?"bottom-0":"bottom-9999"]},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("已停用")]),a("ul",t._l(t.noPurchaseApp,(function(e,n){return a("li",{key:n+"appno",staticClass:"border-box"},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name stop-app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),a("div",{staticClass:"app-info stop-app-info"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){return t.changeAppSwitch(a,e)}},model:{value:e.openFlag,callback:function(a){t.$set(e,"openFlag",a)},expression:"item.openFlag"}})],1)])])])})),0)])]),a("div",{staticClass:"index-body-right"},[a("div",{staticClass:"index-body-right_top border-box"},[a("div",{staticClass:"serve-info"},[a("div",{staticClass:"serve-date-info"},[a("div",{staticClass:"font-14 color-909399 p-t-10 m-b-13",staticStyle:{"font-weight":"300"}},[t._v(t._s(t._f("timeStampToYm")((new Date).getTime())))]),a("div",{staticClass:"font-12 color-909399"},[t._v("农历"+t._s(t.getLunarDay((new Date).getFullYear(),(new Date).getMonth()+1,(new Date).getDate())))]),a("div",{staticClass:"serve-date-day"},[a("div",{staticClass:"serve-date-day_inner "},[a("div",{staticClass:"color-fff font-26 p-t-10",staticStyle:{"letter-spacing":"2px"}},[t._v(t._s((new Date).getDate()))]),a("div",{staticClass:"color-fff font-12"},[t._v(t._s(t.weeks[(new Date).getDay()]))])])])]),a("div",{staticClass:"serve-version flex"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("企业")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.corpName))])]),a("div",{staticClass:"serve-date flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("版本")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.smallVersion))])]),t._e()])]),a("div",{staticClass:"bg-margin-10"}),a("div",{staticClass:"index-body-right_bottom border-box"},[a("div",{staticClass:"help-title font-16 color-303133 font-w-600"},[t._v("帮助中心")]),a("ul",{staticClass:"help-list m-t-15"},[t._l(t.helpList,(function(e,n){return a("li",{key:n+"help",staticClass:"cursor-pointer font-14 color-606266",on:{click:function(a){return t.toRedirect(e)}}},[t._v("\n "+t._s(e.helpTitle)+"\n ")])})),a("li",{staticClass:"text-center li-more cursor-pointer",on:{click:t.goUdesk}},[t._v("查看更多")])],2)])])])])])],1)},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-title font-16 color-303133 flex flex-space-between"},[a("span",{staticClass:"font-16 color-303133 font-w-600 line-h-32 color-primary"},[t._v("已使用")])])}],s=(a("96cf"),a("1da1")),i=a("f777"),r=a("5b4e6"),c={name:"IndexPage",components:{vueOfficeHeader:i["a"]},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",projectName:"haoban-manage-web",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",purchaseApp:[],weeks:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],noPurchaseApp:[],versionData:{id:1,smallVersion:"",corpName:"",date:(new Date).getTime(),storeNum:100,storeTotal:""},helpList:[]}},mounted:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this,t.next=3,e.toLogin();case 3:e.wxEnterpriseId=t.sent;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{goUdesk:function(){window.open("https://demogic.udesk.cn/hc/categories/96671?api_name=")},getLunarDay:function(t,e,a){var n=[0,31,59,90,120,151,181,212,243,273,304,334],o="一二三四五六七八九十",s="正二三四五六七八九十冬腊",i=[2635,333387,1701,1748,267701,694,2391,133423,1175,396438,3402,3749,331177,1453,694,201326,2350,465197,3221,3402,400202,2901,1386,267611,605,2349,137515,2709,464533,1738,2901,330421,1242,2651,199255,1323,529706,3733,1706,398762,2741,1206,267438,2647,1318,204070,3477,461653,1386,2413,330077,1197,2637,268877,3365,531109,2900,2922,398042,2395,1179,267415,2635,661067,1701,1748,398772,2742,2391,330031,1175,1611,200010,3749,527717,1452,2742,332397,2350,3222,268949,3402,3493,133973,1386,464219,605,2349,334123,2709,2890,267946,2773,592565,1210,2651,395863,1323,2707,265877];if(!(t<1921||t>2100)){e=parseInt(e)>0?e-1:11;var r,c,l,u,p,f,d=[t,e,a],h=3!==d.length?new Date:new Date(d[0],d[1],d[2]),m=!1,g=h.getFullYear();for(r=365*(g-1921)+Math.floor((g-1921)/4)+n[h.getMonth()]+h.getDate()-38,g%4===0&&h.getMonth()>1&&r++,c=0;;c++){for(u=i[c]<4095?11:12,l=u;l>=0;l--){if(r<=this.getBit(i[c],l)){m=!0;break}r-=this.getBit(i[c],l)}if(m)break}p=u-l+1,f=r,12===u&&(p===Math.floor(i[c]/65536)+1&&(p=1-p),p>Math.floor(i[c]/65536)+1&&p--);var v=o.charAt(f-1);return f%10===0&&10!==f||(v=o.charAt((f-1)%10)),1===f?s.charAt(p-1)+"月初一":s.charAt(p-1)+"月"+(f<11?"初":f<20?"十":f<30?"廿":"三十")+v}},getBit:function(t,e){return 29+(t>>e&1)},toRedirect:function(t){if(!t.helpUrl)return!1;window.open(t.helpUrl)},changeRoute:function(t){this.$router.push(t)},toOverStore:function(){var t=this;t.changeRoute("/overStoreList")},toAppView:function(t){var e=this;if(!t.applicationPath)return r["a"].showmsg("无更多设置项,不可进入!","warning"),!1;e.changeRoute("".concat(t.applicationPath))},goShopping:function(){var t=this;t.changeRoute("/")},toRouterView:function(t){var e=this;e.$router.push({path:t.path})},changeSwitch:function(t){var e=this,a=1==t.openFlag?"关闭":"开启";e.$confirm("确认".concat(a,"【").concat(t.applicationName,"】应用吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.postSwitch(t)})).catch((function(){t.openFlag}))},collapseTag:function(t){var e=this;e.collapseFlag=t},toAlert:function(){var t=this;t.$confirm("您所在企业尚未订购好办 ,请前往升级版本后继续使用。","提示",{confirmButtonText:"立即前往订购",cancelButtonText:"取消",type:"warning"}).then((function(){window.open("")}))},toTip:function(){var t=this;t.$confirm("您没有该功能的使用权限,请联系管理员授权后继续使用。","提示",{confirmButtonText:"知道了",type:"warning"}).then((function(){window.open("")}))}}},l=c,u=(a("dcef"),a("2877")),p=Object(u["a"])(l,n,o,!1,null,"6aa06058",null);e["default"]=p.exports},5937:function(t,e,a){"use strict";var n=a("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(n["a"])(o,"/hb-manage-web"),e["a"]=o},"5b4e6":function(t,e,a){"use strict";var n=a("5c96");e["a"]={showmsg:function(t,e){Object(n["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("ac6a"),a("456d");var n=a("b775");function o(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(e).concat(o.url),t[a]=function(t){return Object(n["a"])(o,t)}})),t}},"75a0":function(t,e,a){},"7ded":function(t,e,a){"use strict";var n=a("71f6"),o={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};o=Object(n["a"])(o,"/hb-manage-web/auth"),e["a"]=o},dcef:function(t,e,a){"use strict";var n=a("75a0"),o=a.n(n);o.a},e22b:function(t,e,a){"use strict";var n=a("ea9b"),o=a.n(n);o.a},ea9b:function(t,e,a){},f777:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nav-header"},[n("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:t.toIndex}},[n("span",{staticClass:"pro-name"},[t._v("好办管理平台")])]),n("div",{staticClass:"nav-header-item fl"},[t._l(t.menuHead,(function(e,a){return[n("a",{key:a,class:["item-link menu-font-16"],on:{click:function(a){return t.changeRouter(e)}}},[n("span",{class:["inline-block bottom",-1!=e.menuUrl.indexOf(t.pathName)||t.currentMenuCode==e.menuCode?"current-module":""]},[t._v(t._s(e.menuName))])])]})),n("div",{staticClass:"navuser-info fr"},[t.userInfo.headImg?n("img",{staticClass:"user-img",attrs:{src:t.userInfo.headImg,alt:""}}):n("img",{staticClass:"user-img",attrs:{src:a("6ce2"),alt:"img"}}),n("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[n("ul",{staticClass:"navsuer-wrap"},[n("li",[n("p",{staticClass:"font-14 color-606266 hide-item"},[t._v(t._s(t.userInfo.staffName||"--"))]),n("p",{staticClass:"font-12 color-909399 hide-item"},[t._v(t._s(t.userInfo.roleName||"--"))])]),n("li",{staticClass:"user-item text-align",on:{click:function(e){return e.stopPropagation(),t.toLoginOut(e)}}},[n("a",{staticClass:"user-text"},[t._v("退出登录")])])]),n("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[n("span",{staticClass:"font-12 color-606266"},[t._v(t._s(t.userInfo.staffName||"--"))]),n("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},o=[],s=(a("456d"),a("96cf"),a("1da1")),i=(a("ac6a"),a("28a5"),a("7ded")),r=a("5937"),c=r["a"].getRoleMenu,l=i["a"].getUserInfo,u=i["a"].loginOut,p={name:"VueOfficeHeader",components:{},props:{currentMenuCode:{type:String,default:""}},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var t=this;t.pathName=t.$route.path,t.routePathName=window.location.hash.split("/")[1],-1!=t.routePathName.indexOf("?")&&(t.routePathName=t.routePathName.split("?")[0]),-1!=t.routePathName.indexOf("/")&&(t.routePathName=t.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),t.toLogin()},methods:{toIndex:function(){var t=this;t.$router.push("/contactsList")},changeRouter:function(t){var e=this;if(1==t.target)-1!=t.menuUrl.indexOf("http")?window.open(t.menuUrl):window.open("/haoban-4/#".concat(t.menuUrl));else{e.setLeftData(t);var a={};e.roleMenuData.forEach((function(e){t.menuCode!=e.menuCode||e.children.length||(a=e),t.menuCode==e.menuCode&&e.children.length&&(a=e.children[0])})),e.$router.push(a.menuUrl)}},setLeftData:function(t){var e=this,a=[];e.roleMenuData.forEach((function(e){t.menuCode==e.menuCode&&a.push(e)})),e.$emit("leftData",a)},toLoginOut:function(){var t=this;t.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){u({}).then((function(e){"0000"==e.code&&(t.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(t){}))})).catch((function(){}))},toLogin:function(){var t=this;l({}).then((function(e){e.result||(e.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(e.result.loginStaff)),t.userInfo=Object.assign(e.result.loginStaff,e.result.role),t.getData()})).catch((function(t){}))},treeData:function(t){var e=t.filter((function(e){var a=t.filter((function(t){return e.menuCode==t.parentCode&&1==t.isShow}));return a.length>0?(e.hasSonNode=!0,e.children=a):(e.children=[],e.hasSonNode=!1),""==e.parentCode&&1==e.isShow}));return e},getData:function(){var t=this,e={appType:1};c(e).then(function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(a){var n,o,s,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("0000"!=a.code){e.next=14;break}return n=[],o={},s={},a.result.forEach((function(e){1==e.level&&1==e.isShow&&n.push(e),t.$route.path==e.menuUrl&&1==e.level&&1==e.isShow&&(o=e),t.$route.path==e.menuUrl&&1!=e.level&&(s=e)})),t.menuHead=n,e.next=8,t.treeData(JSON.parse(JSON.stringify(a.result)));case 8:t.roleMenuData=e.sent,Object.keys(s).length&&2==s.level&&a.result.forEach((function(t){s.parentCode==t.menuCode&&1==t.level&&1==t.isShow&&(o=t)})),i={},Object.keys(s).length&&3==s.level&&a.result.forEach((function(t){s.parentCode==t.menuCode&&2==t.level&&1==t.isShow&&(i=t)})),Object.keys(i).length&&2==i.level&&a.result.forEach((function(t){i.parentCode==t.menuCode&&1==t.level&&1==t.isShow&&(o=t)})),t.setLeftData(o);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(t){}))}}},f=p,d=(a("e22b"),a("2877")),h=Object(d["a"])(f,n,o,!1,null,"26c74afb",null);e["a"]=h.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-46528954"],{"0ac0":function(t,e,a){},"220a":function(t,e,a){},2340:function(t,e,a){},"236e":function(t,e,a){},2581:function(t,e,a){},2802:function(t,e,a){"use strict";a("4917");e["a"]={getByteLen:function(t){for(var e=""==t||null==t?"":t,a=0,r=0;r<e.length;r++){var n=e.charAt(r);null!=n.match(/[^\x00-\xff]/gi)?a+=2:a+=1}return a},getZhLen:function(t){for(var e=""==t||null==t?"":t,a=0,r=0;r<e.length;r++){var n=e.charAt(r);null!=n.match(/[^\x00-\xff]/gi)?a+=1:a+=.5}return Math.ceil(a)},cutStr:function(t,e,a){for(var r=0,n=0;n<t.length;n++){var s=t.charAt(n);if(1==a&&(encodeURI(s).length>2?r+=1:r+=.5),2==a&&(r+=1),r>=e){var i=r==e?n+1:n;return t.substr(0,i)}}},getByteVal:function(t,e){for(var a=""==t||null==t?"":t,r="",n=0,s=0;s<a.length;s++){if(null!=a[s].match(/[^\x00-\xff]/gi)?n+=1:n+=.5,n>e)break;r+=a[s]}return r},getCharVal:function(t,e){for(var a=""==t||null==t?"":t,r="",n=0,s=0;s<a.length;s++){if(null!=a[s].match(/[^\x00-\xff]/gi)?n+=2:n+=1,n>e)break;r+=a[s]}return r},regPos:function(t){var e=/^\d+(\.\d+)?$/;return e.test(t)}}},"3d3b":function(t,e,a){},"5af5":function(t,e,a){"use strict";var r=a("2340"),n=a.n(r);n.a},"62a7":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"new-auth-body"},[2!=t.activeStep?a("div",[a("auth-step",{attrs:{"active-step":t.activeStep}})],1):t._e(),0==t.activeStep?a("div",{staticClass:"auth-tip-body"},[a("auth-tip",{staticClass:"m-t-30"}),a("el-form",{ref:"authForm",staticClass:"dialog-form m-t-20",attrs:{model:t.authForm,rules:t.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"选择商户",prop:"enterpriseId"}},[a("div",{staticClass:"el-input-group__prepend"},[t._v("GIC4.0")]),t.$route.query.enterpriseId?t._e():a("el-popover",{attrs:{placement:"bottom",title:"",trigger:"click","popper-class":"company-select-pop",width:"267"}},[a("div",{staticClass:"company-select"},[a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[t._l(t.searchArray,(function(e,r){return a("li",{key:r+"search",staticClass:"el-select-dropdown__item",on:{click:function(a){return t.getAdmin(e)}}},[a("div",{staticClass:"flex flex-space-between"},[a("div",{staticStyle:{"line-height":"26px"}},[a("span",{staticClass:"block text-ellipsis"},[t._v(t._s(e.enterpriseName||"--"))]),a("div",{staticClass:"text-ellipsis font-12 color-909399"},[t._v(t._s(e.companyName||"--"))])]),e.enterpriseId==t.authForm.enterpriseId?a("span",{staticClass:"font-12 color-2f54eb el-icon-check flex-align-center",staticStyle:{display:"flex"}}):t._e()])])})),t.searchArray.length?t._e():a("li",{staticClass:"el-select-dropdown__item text-center"},[t._v("暂无商户数据")])],2)])])]),a("div",{staticClass:"select-search-input cursor-pointer",attrs:{slot:"reference"},slot:"reference"},[a("div",[a("el-input",{staticClass:"w-267",attrs:{disabled:!!t.$route.query.enterpriseId,placeholder:"请搜索选择商户",maxlength:"50"},nativeOn:{keyup:function(e){return function(e){return t.querySearchAsync(e,t.searchSelect)}(e)}},model:{value:t.searchSelect,callback:function(e){t.searchSelect=e},expression:"searchSelect"}})],1)])]),t.$route.query.enterpriseId?a("div",{staticClass:"select-search-input"},[a("el-input",{staticClass:"w-267",attrs:{disabled:!!t.$route.query.enterpriseId,placeholder:"请搜索选择商户",maxlength:"50"},model:{value:t.authForm.enterpriseName,callback:function(e){t.$set(t.authForm,"enterpriseName",e)},expression:"authForm.enterpriseName"}})],1):t._e()],1),a("el-form-item",{attrs:{label:"门店绑定",prop:"bindRange"}},[a("div",{staticClass:"el-select store-item-content",on:{click:function(e){return t.showStore(1)}}},[t.authForm.bindStoreMode>0?a("div",{staticClass:"el-select__tags"},[a("span",{staticStyle:{display:"block"}},[t._l(t.authForm.bindRange,(function(e,r){return[a("span",{key:r+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.storeInfoName||e.storeGroupName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delStore(r,t.authForm.bindRange)}}})])]}))],2)]):t._e(),0==t.authForm.bindStoreMode&&""!==t.authForm.bindStoreMode?a("span",{staticClass:"p-l-10 font-14 color-909399"},[t._v("已选全部")]):t._e()])]),a("el-form-item",{attrs:{label:"门店共享",prop:"shareRange"}},[a("div",{staticClass:"el-select store-item-content",on:{click:function(e){return t.showStore(2)}}},[t.authForm.shareStoreMode>0?a("div",{staticClass:"el-select__tags"},[a("span",{staticStyle:{display:"block"}},[t._l(t.authForm.shareRange,(function(e,r){return[a("span",{key:r+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.storeInfoName||e.storeGroupName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delStore(r,t.authForm.shareRange)}}})])]}))],2)]):t._e(),0==t.authForm.shareStoreMode&&""!==t.authForm.shareStoreMode?a("span",{staticClass:"p-l-10 font-14 color-909399"},[t._v("已选全部")]):t._e()])]),a("el-form-item",[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{disabled:!t.changeFlag||""===t.authForm.shareStoreMode&&""===t.authForm.bindStoreMode,type:"primary"},on:{click:function(e){return t.submitForm("authForm")}}},[t._v("下一步")])],1)],1)],1):t._e(),1==t.activeStep?a("div",{staticClass:"commit-success-body m-t-35"},[a("auth-commit",{attrs:{"admin-list":t.adminList,reason:t.authForm.auditReason},on:{changeStep:t.changeStep,returnStep:t.returnStep}})],1):t._e(),2==t.activeStep?a("div",{staticClass:"commit-success-body"},[a("auth-commit-success",{attrs:{"enterprise-id":t.authForm.enterpriseId}})],1):t._e()])])])])]),t.setVisible?a("store-auth-dialog",{attrs:{"enterprise-id":t.authForm.enterpriseId,"is-select-all":t.isSelectAll,"select-mode":t.selectMode,"range-data":t.rangeData,"bind-type":t.bindType},on:{closeSet:t.closeSet}}):t._e(),t.checkShow?a("check-name-dialog",{attrs:{"sync-data":t.syncData},on:{closeSet:t.closeCheckSet}}):t._e()],1)},n=[],s=(a("96cf"),a("1da1")),i=(a("ac6a"),a("29b6")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{class:["auth-step-body",0==t.active?"step-one":"step-two"]},[a("el-steps",{attrs:{active:t.active,"finish-status":"success"}},[a("el-step",{attrs:{title:"GIC商户授权",description:""}}),a("el-step",{attrs:{title:"审核员授权",description:""}})],1)],1)])},c=[],l={name:"AuthStep",components:{},props:{activeStep:{type:String,default:function(){return"0"}}},data:function(){return{active:"0"}},mounted:function(){var t=this;t.active=t.activeStep},watch:{activeStep:function(t){this.active=t}}},u=l,m=(a("de0b"),a("2877")),d=Object(m["a"])(u,o,c,!1,null,"c9703e40",null),h=d.exports,p=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},f=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"auth-tip"},[a("div",{staticStyle:{width:"645px"}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",staticStyle:{width:"645px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n 商户授权须知:"),a("br"),t._v("\n 1. 商户授权可以是多个商户授权到1个企业下,但是需保证使用的服务号或小程序在同一开放平台"),a("br"),t._v("\n    下,否则绑定商户的客户获取的unionid会不一致,最终会无法识别企业微信客户与会员的绑定性;"),a("br"),t._v("\n 2. 商户绑定后,可选择部分门店绑定,如商户有100家门店,可授权其中50家;"),a("br"),t._v("\n 3. 绑定商户结束后,导购可通过企业微信好办小程序绑定导购账号后登录;"),a("br"),t._v("\n 4. 进行门店绑定后,请勿随意操作门店绑定范围,如果门店范围取消,会导致用户关联的导购账号"),a("br"),t._v("\n    解绑,"),a("span",{staticClass:"color-f5222d"},[t._v("如果24小时内未恢复范围,会永久解绑。")])])])])])])}],g={name:"AuthTip",data:function(){return{}}},v=g,b=(a("c8ff"),Object(m["a"])(v,p,f,!1,null,"6246f46e",null)),S=b.exports,y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"auth-commit-success"},[t._m(0),a("div",{staticClass:"commit-success-text text-center font-14 color-303133 m-t-12"},[t._v("已提交管理员审核,请通知管理员及时审核")]),a("div",{staticClass:"commit-success-btn text-center m-t-28"},[a("el-button",{on:{click:function(e){return t.changeRoute("/authMerchant")}}},[t._v("返回授权列表")]),a("el-button",{on:{click:function(e){return t.changeRoute("/auditLog?enterpriseId="+t.enterpriseId)}}},[t._v("进入审核列表")])],1)])},_=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"commit-success-img text-center"},[a("span",{staticClass:"iconfont iconchenggong color-49c958 font-60"})])}],F={name:"AuthCommitSuccess",components:{},props:{enterpriseId:{type:String,default:""}},data:function(){return{}},methods:{changeRoute:function(t){this.$router.push(t)}}},C=F,N=(a("73ba"),Object(m["a"])(C,y,_,!1,null,"68854cb4",null)),R=N.exports,x=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"auth-commit-admin"},[a("common-alert-tip",{staticClass:"m-b-32",attrs:{width:"328px","tip-content":t.tipContent}}),a("el-form",{ref:"commitForm",staticClass:"dialog-form",attrs:{model:t.commitForm,rules:t.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"申请事项",prop:"commitName"}},[a("el-input",{staticClass:"w-198",attrs:{disabled:""},model:{value:t.commitForm.commitName,callback:function(e){t.$set(t.commitForm,"commitName",e)},expression:"commitForm.commitName"}})],1),a("el-form-item",{attrs:{label:"申请理由",prop:"auditReason"}},[a("limit-textarea",{attrs:{"input-width":298,"input-value":t.commitForm.auditReason,holder:"请输入申请理由","get-by-type":"word","max-length":50},on:{"update:inputValue":function(e){return t.$set(t.commitForm,"auditReason",e)},"update:input-value":function(e){return t.$set(t.commitForm,"auditReason",e)}}})],1),a("el-form-item",{attrs:{label:"审核人",prop:""}},[a("div",{staticClass:"flex flex-wrap audit-admin-body"},[t._l(t.commitForm.auditAdmin,(function(e,r){return[a("span",{key:r+"admin",staticClass:"audit-admin"},[t._v("\n "+t._s(t._f("formatWord")(e.clerkName))+"("+t._s(e.nationCode+"-"+e.phoneNumber)+")\n ")])]}))],2)]),a("el-form-item",[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loadBtn},on:{click:function(e){return t.submitForm("commitForm")}}},[t._v("提交审核")])],1)],1)],1)},D=[],I=a("3081"),w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-line-cell",style:{width:t.inputWidth+"px"}},[a("el-input",{style:{width:t.inputWidth+"px"},attrs:{placeholder:t.holder,type:"textarea",rows:3,disabled:t.disInput},on:{blur:function(e){return t.inputBlur()}},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),a("span",{staticClass:"tip"},[a("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},k=[],M=(a("c5f6"),a("2802")),$={name:"LimitTextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disInput:{type:Boolean,default:!1}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},mounted:function(){var t=this;t.limitLength=t.maxLength,t.itemValue=t.inputValue||"","word"==t.getByType?t.inputNum=M["a"].getZhLen(t.inputValue):t.inputNum=M["a"].getByteLen(t.inputValue)},methods:{toInput:function(t){var e=this,a="";"word"==e.getByType?(a=M["a"].getByteVal(t.target.value,e.limitLength),e.itemValue=a,e.inputNum=M["a"].getZhLen(e.itemValue)):(a=M["a"].getCharVal(t.target.value,e.limitLength),e.itemValue=a,e.inputNum=M["a"].getByteLen(e.itemValue)),e.$emit("update:inputValue",e.itemValue)},inputBlur:function(){var t=this;t.$emit("update:inputValue",t.itemValue)}},watch:{maxLength:function(t,e){var a=this;a.limitLength=t},inputValue:function(t,e){var a=this;a.itemValue=t,"word"==a.getByType?a.inputNum=M["a"].getZhLen(a.itemValue):a.inputNum=M["a"].getByteLen(a.itemValue)}}},O=$,L=(a("8cfe"),Object(m["a"])(O,w,k,!1,null,"8106e482",null)),A=L.exports,V=a("d157"),J={name:"AuthCommit",components:{commonAlertTip:I["a"],limitTextarea:A},props:{reason:{type:String,default:""},adminList:{type:[Object,Array],default:function(){return[]}}},data:function(){return{tipContent:"提交商户绑定审核,经审核员同意后绑定成功",commitForm:{commitType:1,commitName:"商户授权",auditReason:this.reason||"",auditAdmin:[]},rules:{auditReason:[{required:!0,message:"请输入申请理由",trigger:"blur"}]},loadBtn:!1}},mounted:function(){var t=this;t.commitForm.auditAdmin=JSON.parse(JSON.stringify(t.adminList))},methods:{cancel:function(){var t=this;t.$emit("returnStep")},submitForm:Object(V["b"])((function(t){var e=this;e.loadBtn=!0,e.$refs[t].validate((function(t){if(!t)return e.loadBtn=!1,!1;e.toCommitPost()}))}),5e3),toCommitPost:function(){var t=this;t.$emit("changeStep",t.commitForm.auditReason),t.$nextTick((function(){t.loadBtn=!1}))},changeRoute:function(t){this.$router.push(t)}},watch:{adminList:function(t){var e=this;e.commitForm.auditAdmin=JSON.parse(JSON.stringify(t))}}},E=J,B=(a("9bff"),Object(m["a"])(E,x,D,!1,null,"1b25395e",null)),T=B.exports,j=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"554px",title:1==t.bindType?"门店绑定":"门店共享",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[a("div",{staticClass:"bind-store-body"},[a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px"},attrs:{for:"name"}},[t._v("\n 选择绑定门店\n ")]),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"110px"}},[a("el-radio",{attrs:{disabled:1==t.isSelectAll&&1==t.bindType,label:"0"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("所有门店")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"1"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("选择分组")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"2"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("选择门店")]),("1"!=t.formData.sendRange&&"2"!=t.formData.sendRange||t.formData.selectList.length)&&"null"!=String(t.formData.sendRange)&&""!==t.formData.sendRange?t._e():a("div",{staticClass:"el-form-item__error"},[t._v("请选择绑定门店")]),"1"==t.formData.sendRange?a("store-auth-group",{attrs:{"company-id":t.enterpriseId,"store-type":t.bindType,"select-group":t.selectGroupData},on:{checkGroupIds:t.checkGroupIds}}):t._e(),"2"==t.formData.sendRange?a("store-auth-store",{attrs:{"company-id":t.enterpriseId,"store-type":t.bindType,"select-store":t.selectStoreData},on:{checkStoreIds:t.checkStoreIds}}):t._e()],1)])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return e.stopPropagation(),t.submitForm(e)}}},[t._v("确定")])],1)])},G=[],q=a("7ca9"),P=a("418e"),U={name:"StoreAuthDialog",components:{storeAuthGroup:q["a"],storeAuthStore:P["a"]},props:{isSelectAll:{type:[String,Number],default:"0"},enterpriseId:{type:String,default:""},bindType:{type:[String,Number],default:"1"},selectMode:{type:[String,Number],default:"0"},rangeData:{type:[Object,Array],default:function(){return[]}}},data:function(){return{setVisible:!0,formData:{sendRange:"0",selectList:[]},selectGroupData:[],selectStoreData:[]}},mounted:function(){var t=this;t.formData.sendRange=String(t.selectMode),t.selectGroupData=1==t.selectMode?JSON.parse(JSON.stringify(t.rangeData)):[],t.selectStoreData=2==t.selectMode?JSON.parse(JSON.stringify(t.rangeData)):[],t.formData.selectList=JSON.parse(JSON.stringify(t.rangeData))||[]},methods:{changeRange:function(t){var e=this;e.formData.sendRange=t,e.formData.selectList=[]},handleClose:function(t){var e=this;t(),e.$emit("closeSet","close"),e.selectGroupData=[],e.selectStoreData=[]},cancel:function(){var t=this;t.$emit("closeSet","close"),t.selectGroupData=[],t.selectStoreData=[]},checkGroupIds:function(t){var e=this;e.formData.selectList=JSON.parse(JSON.stringify(t))},checkStoreIds:function(t){var e=this;e.formData.selectList=JSON.parse(JSON.stringify(t))},submitForm:function(){var t=this;return"null"!=String(t.formData.sendRange)&&""!==t.formData.sendRange&&(!("1"==t.formData.sendRange&&!t.formData.selectList.length)&&(!("2"==t.formData.sendRange&&!t.formData.selectList.length)&&void t.$emit("closeSet",String(t.formData.sendRange),t.formData.selectList)))}},watch:{selectMode:function(t){var e=this;e.formData.sendRange=String(t)},rangeData:function(t){var e=this;e.selectGroupData=1==e.selectMode?JSON.parse(JSON.stringify(t)):[],e.selectStoreData=2==e.selectMode?JSON.parse(JSON.stringify(t)):[],e.formData.selectList=JSON.parse(JSON.stringify(t))||[]}}},W=U,Z=(a("f657"),Object(m["a"])(W,j,G,!1,null,"d61df484",null)),z=Z.exports,H=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{staticClass:"check-name-dialog",attrs:{title:"提示",visible:t.dialogVisible,width:"416px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"m-b-20"},[a("div",{staticClass:"font-14 color-606266 m-b-10"},[t._v("首次授权商户需要校验GIC商户超级管理员姓名")]),a("el-form",{ref:"ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"超级管理员",prop:"userName"}},[a("span",[t._v(t._s(t.firstName))]),a("el-input",{staticClass:"w-173 m-l-10",attrs:{maxlength:"50",placeholder:"输入姓名校验"},model:{value:t.ruleForm.userName,callback:function(e){t.$set(t.ruleForm,"userName",e)},expression:"ruleForm.userName"}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return e.stopPropagation(),t.submitForm("ruleForm")}}},[t._v("确定")])],1)])},K=[],Q=a("21f4"),X=a("5b4e6"),Y=Q["a"].getCheckName,tt=Q["a"].checkName,et={name:"CheckNameDialog",props:{syncData:{type:Object,default:function(){return{syncStatus:"0"}}}},data:function(){return{dialogVisible:!0,loading:!1,firstName:"",ruleForm:{userName:""},rules:{userName:[{required:!0,message:"请输入姓名",trigger:"blur"}]}}},mounted:function(){var t=this;t.getCheckNameData()},methods:{getCheckNameData:function(){var t=this,e={enterpriseId:t.syncData.enterpriseId};Y(e).then((function(e){t.firstName=e.result||""})).catch((function(t){}))},handleClose:function(){var t=this;t.ruleForm.userName="",t.$emit("closeSet","close")},cancel:function(){var t=this;t.ruleForm.userName="",t.$emit("closeSet","close")},submitForm:Object(V["a"])((function(t){var e=this;e.loading=!0,e.$refs[t].validate((function(t){if(!t)return e.loading=!1,!1;e.postCheck()}))}),300),postCheck:function(){var t=this,e={enterpriseId:t.syncData.enterpriseId,userName:t.firstName+t.ruleForm.userName};tt(e).then((function(e){t.loading=!1,"0000"==e.code?e.result?(X["a"].showmsg("校验成功","success"),t.ruleForm.userName="",t.$emit("closeSet","success")):X["a"].showmsg("校验失败","warning"):X["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loading=!1}))}}},at=et,rt=(a("5af5"),Object(m["a"])(at,H,K,!1,null,"a960be2a",null)),nt=rt.exports,st=Q["a"].getAuthDetail,it=Q["a"].getEnterprise,ot=Q["a"].getEnterpriseDetail,ct=Q["a"].getGicAdmin,lt=Q["a"].postEnterpriseAuth,ut={name:"NewAuthMerchant",components:{navCrumb:i["a"],authStep:h,authTip:S,authCommitSuccess:R,authCommit:T,storeAuthDialog:z,checkNameDialog:nt},data:function(){return{navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:"/authMerchant"},{name:this.$route.query.enterpriseId?"编辑授权":"新建授权",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditorName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",activeStep:"0",brandOptions:[],searchSelect:"",searchArray:[],authForm:{storeRangeAuditId:"",enterpriseId:"",enterpriseName:"",bindRange:[],shareRange:[],shareStoreMode:"",bindStoreMode:"",auditReason:""},rules:{enterpriseId:[{required:!0,message:"请选择商户",trigger:"change"}]},checkShow:!1,syncData:{},isSelectAll:0,changeFlag:!1,setVisible:!1,selectMode:"0",rangeData:[],bindType:1,adminList:[]}},mounted:function(){var t=this;t.$route.query.enterpriseId&&t.getData(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{closeCheckSet:function(t){var e=this;if(e.checkShow=!1,"close"==t)return!1;e.authForm.enterpriseId=e.syncData.enterpriseId,e.authForm.enterpriseName=e.syncData.enterpriseName,e.$refs["authForm"].validate((function(t){return!!t&&void 0}))},closeSet:function(t,e){var a=this;if(a.setVisible=!1,"close"==t)return!1;a.selectMode=String(t),1==a.bindType?(a.authForm.bindStoreMode=String(t),a.authForm.bindRange=JSON.parse(JSON.stringify(e))):(a.authForm.shareStoreMode=String(t),a.authForm.shareRange=JSON.parse(JSON.stringify(e))),a.changeFlag=!0},showStore:function(t){var e=this;if(!e.authForm.enterpriseId)return!1;e.selectMode=1==t?e.authForm.bindStoreMode:e.authForm.shareStoreMode,e.rangeData=1==t?e.authForm.bindRange:e.authForm.shareRange,e.bindType=t,e.setVisible=!0,e.getEnterpriseData()},getSearchList:function(t){var e={enterpriseName:t};return""==t?[]:new Promise((function(t,a){it(e).then((function(e){"0000"==e.code?(e.result&&e.result.forEach((function(t){t.value=t.enterpriseName})),t(e.result)):t([])})).catch((function(e){t([])}))}))},querySearchAsync:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this,""!=String(e.searchSelect).trim()){t.next=10;break}return e.authForm.enterpriseId="",e.searchArray=[],e.authForm.bindRange=[],e.authForm.shareRange=[],e.authForm.shareStoreMode="",e.authForm.bindStoreMode="",e.adminList=[],t.abrupt("return",!1);case 10:return t.next=12,e.getSearchList(e.searchSelect);case 12:a=t.sent,e.searchArray=a;case 14:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),returnStep:function(){var t=this;t.activeStep=0},cancel:function(){var t=this;t.$router.push("/authMerchant")},submitForm:function(t){var e=this;e.$refs[t].validate((function(t){if(!t)return!1;e.activeStep=1}))},delStore:function(t,e){var a=this;e.splice(t,1),a.changeFlag=!0,a.authForm.shareStoreMode=!a.authForm.shareRange.length&&a.authForm.shareStoreMode>0?"":String(a.authForm.shareStoreMode),a.authForm.bindStoreMode=!a.authForm.bindRange.length&&a.authForm.bindStoreMode>0?"":String(a.authForm.bindStoreMode)},getAdmin:function(t){var e=this;if(e.authForm.enterpriseId==t.enterpriseId)return!1;e.syncData=t,e.checkShow=!0,e.authForm.enterpriseId="",e.authForm.enterpriseName="",e.authForm.bindRange=[],e.authForm.shareRange=[],e.authForm.shareStoreMode="",e.authForm.bindStoreMode="",e.adminList=[],e.getAdminList(t.enterpriseId)},getAdminList:function(t){var e=this;ct({enterpriseId:t}).then((function(t){t.result&&t.result.length&&(e.adminList=t.result||[])})).catch((function(t){}))},changeStep:function(t){var e=this;e.authForm.auditReason=Object(V["c"])(t);var a={enterpriseId:e.authForm.enterpriseId,wxEnterpriseId:e.wxEnterpriseId,shareRange:e.authForm.shareStoreMode>0?1==e.authForm.shareStoreMode?e.authForm.shareRange.map((function(t){return t.storeGroupId})).join(","):e.authForm.shareRange.map((function(t){return t.storeInfoId})).join(","):"",bindRange:e.authForm.bindStoreMode>0?1==e.authForm.bindStoreMode?e.authForm.bindRange.map((function(t){return t.storeGroupId})).join(","):e.authForm.bindRange.map((function(t){return t.storeInfoId})).join(","):"",auditReason:e.authForm.auditReason,shareStoreMode:!e.authForm.shareRange.length&&e.authForm.shareStoreMode>0?"":String(e.authForm.shareStoreMode),bindStoreMode:!e.authForm.bindRange.length&&e.authForm.bindStoreMode>0?"":String(e.authForm.bindStoreMode),auditorName:e.auditorName};lt(a).then((function(t){"0000"==t.code?e.activeStep=2:e.$message({message:t.message||"接口异常",type:"warning"})})).catch((function(t){}))},changeRoute:function(t){this.$router.push(t)},getEnterpriseData:function(){var t=this;ot({enterpriseId:t.$route.query.enterpriseId||t.authForm.enterpriseId}).then((function(e){t.isSelectAll=e.result.bindFlag})).catch((function(t){}))},getData:function(){var t=this,e={enterpriseId:t.$route.query.enterpriseId,wxEnterpriseId:t.wxEnterpriseId};st(e).then((function(e){"0000"==e.code&&(e.result.bindRange?e.result.bindRange=JSON.parse(e.result.bindRange):e.result.bindRange=[],e.result.shareRange?e.result.shareRange=JSON.parse(e.result.shareRange):e.result.shareRange=[],t.authForm=e.result||{},t.getAdminList(e.result.enterpriseId))})).catch((function(t){}))}}},mt=ut,dt=(a("e5f3"),Object(m["a"])(mt,r,n,!1,null,"604ed84d",null));e["default"]=dt.exports},"73ba":function(t,e,a){"use strict";var r=a("2581"),n=a.n(r);n.a},"8cfe":function(t,e,a){"use strict";var r=a("236e"),n=a.n(r);n.a},"9bff":function(t,e,a){"use strict";var r=a("3d3b"),n=a.n(r);n.a},ada2:function(t,e,a){},c8ff:function(t,e,a){"use strict";var r=a("0ac0"),n=a.n(r);n.a},d744:function(t,e,a){},de0b:function(t,e,a){"use strict";var r=a("220a"),n=a.n(r);n.a},e5f3:function(t,e,a){"use strict";var r=a("ada2"),n=a.n(r);n.a},f657:function(t,e,a){"use strict";var r=a("d744"),n=a.n(r);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4782fef8"],{"00e8":function(e,t,r){"use strict";var a=r("f23e"),n=r.n(a);n.a},"186b":function(e,t,r){"use strict";var a=r("d4d0"),n=r.n(a);n.a},"21f4":function(e,t,r){"use strict";var a=r("71f6"),n={getAuthEnterprise:"/auth-enterprise-list",getGroupList:"/department-list",getStoreList:"/store-list",getAuthDetail:"/enterprise-auth-detail",getAuditLog:"/enterprise-auth-audit-list",cancelAudit:{url:"/enterprise-auth-audit",method:"post",useFormData:!0,useIntercept:!1},getCheckName:"/gic-admin-frist",checkName:{url:"/gic-name-validate",method:"post",useFormData:!0,useIntercept:!1},getAuditLogDetail:"/enterprise-auth-audit-range-detail",getEnterprise:"/enterprise-search",getGicAdmin:"/gic-manage-list",postEnterpriseAuth:{url:"/enterprise-auth",method:"post",useFormData:!0,useIntercept:!1},getEnterpriseDetail:"/gic-enterprise-detail"};n=Object(a["a"])(n,"/hb-manage-web"),t["a"]=n},"24cb":function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{width:"554px",title:"编辑可见范围",visible:e.setVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.setVisible=t}}},[r("div",{staticClass:"bind-store-body"},[r("div",{staticClass:"edit-visiable-tip m-b-20"},[r("common-alert-tip",{attrs:{width:"100%","tip-content":e.tipContent}})],1),r("div",{staticClass:"el-form-item el-form-item--large"},[r("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px"},attrs:{for:"name"}},[e._v("\n 可见门店\n ")]),r("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"110px"}},[r("el-radio",{attrs:{label:"0"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("所有门店")]),r("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"1"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("选择分组")]),r("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"2"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("选择门店")]),("1"!=e.formData.sendRange&&"2"!=e.formData.sendRange||e.formData.selectList.length)&&"null"!=String(e.formData.sendRange)&&""!==e.formData.sendRange?e._e():r("div",{staticClass:"el-form-item__error"},[e._v("请选择可见门店")]),"1"==e.formData.sendRange?r("customer-store-group",{attrs:{"brand-id":e.brandId,"select-group":e.selectGroupData},on:{checkGroupIds:e.checkGroupIds}}):e._e(),"2"==e.formData.sendRange?r("customer-store",{attrs:{"brand-id":e.brandId,"select-store":e.selectStoreData},on:{checkStoreIds:e.checkStoreIds}}):e._e()],1)])]),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){return t.stopPropagation(),e.cancel(t)}}},[e._v("取消")]),r("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return t.stopPropagation(),e.submitForm(t)}}},[e._v("保存")])],1)])},n=[],s=(r("c5f6"),function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"bind-store-body"},[r("div",{staticClass:"select-search"},[r("el-input",{attrs:{placeholder:"请输入分组名称",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),r("div",{staticClass:"select-tree-wrap auth-select-tree m-t-20"},[r("el-tree",{ref:"groupTree",attrs:{"filter-node-method":e.filterNode,data:e.groupData,"node-key":"storeGroupId","show-checkbox":"","default-expand-all":"",props:e.defaultProps,"expand-on-click-node":!1},on:{check:e.checkGroup},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,n=t.data;return r("span",{staticClass:"custom-tree-node",attrs:{id:n.storeGroupId}},[r("span",{staticClass:"font-14 color-606266"},[e._v(e._s(a.label))])])}}])})],1)])}),o=[],i=(r("ac6a"),r("96cf"),r("1da1")),c=r("d157"),l=r("21f4"),u=l["a"].getGroupList,d={name:"CustomerStoreGroup",props:{brandId:{type:String,default:""},storeType:{type:String,default:"2"},selectGroup:{type:[Object,Array],default:function(){return{}}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",searchSelect:"",groupData:[],groupDataCopy:[],defaultProps:{children:"children",label:"storeGroupName"}}},mounted:function(){var e=this;e.brandId&&e.getGroup(),e.selectGroup.length?e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys(e.selectGroup.map((function(e){return e.storeGroupId})))})):e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys([])}))},methods:{filterNode:function(e,t){return!e||!t.label||-1!==t.label.indexOf(e)},toInput:Object(c["a"])((function(e,t){var r=this;if(!r.groupDataCopy.length)return!1}),200),clearSearch:function(){return!1},checkGroup:function(e,t){var r=this,a=r.$refs.groupTree.getCheckedNodes();a.length?r.$emit("checkGroupIds",a):r.$emit("checkGroupIds",[])},treeData:function(e){var t=e.filter((function(t){var r=e.filter((function(e){return t.storeGroupId==e.parentId}));return r.length>0?(t.hasSonNode=!0,t.children=r):(t.children=[],t.hasSonNode=!1),0==t.parentId}));return t},getGroup:function(){var e=this,t={type:e.storeType,enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId};u(t).then(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r.result&&r.result.length&&r.result.forEach((function(e){e.expand=!1,e.children=[],e.label=e.storeGroupName})),t.next=3,e.treeData(JSON.parse(JSON.stringify(r.result)));case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0=[];case 6:e.groupData=t.t0,e.groupDataCopy=JSON.parse(JSON.stringify(r.result));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}},watch:{searchSelect:function(e){this.$refs.groupTree.filter(e)},selectGroup:function(e){var t=this;e.length?t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys(e.map((function(e){return e.storeGroupId})))})):t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys([])}))},brandId:function(e){var t=this;e&&t.getGroup()}}},f=d,p=(r("186b"),r("2877")),g=Object(p["a"])(f,s,o,!1,null,"183b15c0",null),h=g.exports,m=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"daily-store-select"},[r("div",{staticClass:"select-search"},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称/代码","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}})],1),r("div",{staticClass:"el-scrollbar define-search-select"},[r("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[r("el-checkbox-group",{on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[r("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,(function(t){return r("li",{key:t.storeInfoId,class:["el-select-dropdown__item",t.select?"selected hover":""]},[r("el-checkbox",{attrs:{label:t.storeInfoId}},[e._v(e._s(t.storeInfoName))])],1)})),e.stores.length?e._e():r("li",{staticClass:"text-center"},[r("span",[e._v("暂无数据")])])],2)])],1)])])},v=[],S=(r("6762"),r("2fdb"),l["a"].getStoreList),b={name:"CustomerStore",props:{brandId:{type:String,default:""},storeType:{type:String,default:"2"},selectStore:{type:[Object,Array],default:function(){return{}}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",checkAll:!1,isIndeterminate:!1,searchSelect:"",stores:[],storesCopy:[],dailyRuleForm:{stores:[]},pageNum:1,pageSize:300}},mounted:function(){var e=this;e.stores=[],e.storesCopy=[],e.brandId&&(e.pageNum=1,e.getStoreData()),e.selectStore.length?e.dailyRuleForm.stores=e.selectStore.map((function(e){return e.storeInfoId}))||[]:e.dailyRuleForm.stores=[]},methods:{handleStoresChange:function(e){var t=this,r=[];t.storesCopy.forEach((function(t){e.includes(t.storeInfoId)&&r.push(t)})),t.$emit("checkStoreIds",JSON.parse(JSON.stringify(r)))},toInput:Object(c["a"])((function(e,t){var r=this;""!=r.searchSelect&&(r.stores=[],r.pageNum=1,r.getStoreData())}),500),clearSearch:function(){var e=this;e.stores=[],e.pageNum=1,e.getStoreData()},getStoreData:function(){var e=this,t={search:e.searchSelect,enterpriseId:e.brandId,type:e.storeType,pageNum:e.pageNum,pageSize:e.pageSize,wxEnterpriseId:e.wxEnterpriseId};S(t).then((function(t){1==e.pageNum?(e.stores=JSON.parse(JSON.stringify(t.result.result))||[],""===e.searchSelect&&(e.storesCopy=JSON.parse(JSON.stringify(t.result.result))||[])):t.result.result.forEach((function(t){e.stores.push(t),""===e.searchSelect&&e.storesCopy.push(t)})),e.pageNum*e.pageSize<t.result.totalCount&&(e.pageNum++,e.$nextTick((function(){e.getStoreData()})))})).catch((function(e){}))}},watch:{selectStore:function(e,t){var r=this;e.length?r.dailyRuleForm.stores=e.map((function(e){return e.storeInfoId}))||[]:r.dailyRuleForm.stores=[]},brandId:function(e){var t=this;e&&(t.pageNum=1,t.getStoreData())}}},D=b,y=(r("00e8"),Object(p["a"])(D,m,v,!1,null,"11945d1d",null)),I=y.exports,x=r("3081"),w=r("d11a"),C=r("5b4e"),N=w["a"].saveVisiable,k=w["a"].saveTagVisiable,O={name:"EditVisiable",components:{customerStoreGroup:h,customerStore:I,commonAlertTip:x["a"]},props:{setType:{type:String,default:""},setItemId:{type:String,default:""},brandId:{type:String,default:""},selectMode:{type:[String,Number],default:""},rangeData:{type:[Object,Array],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",setVisible:!0,tipContent:"修改后的内容将于次日生效",formData:{sendRange:"",selectList:[]},selectGroupData:[],selectStoreData:[],loadingBtn:!1}},mounted:function(){var e=this;e.formData.sendRange=String(e.selectMode),e.selectGroupData=1==e.selectMode?JSON.parse(JSON.stringify(e.rangeData)):[],e.selectStoreData=2==e.selectMode?JSON.parse(JSON.stringify(e.rangeData)):[],e.formData.selectList=JSON.parse(JSON.stringify(e.rangeData))||[]},methods:{changeRange:function(e){var t=this;t.formData.sendRange=e,t.formData.selectList=[]},handleClose:function(e){var t=this;e(),t.$emit("refreshData","close"),t.selectGroupData=[],t.selectStoreData=[]},cancel:function(){var e=this;e.$emit("refreshData","close"),e.selectGroupData=[],e.selectStoreData=[]},checkGroupIds:function(e){var t=this;t.formData.selectList=JSON.parse(JSON.stringify(e))},checkStoreIds:function(e){var t=this;t.formData.selectList=JSON.parse(JSON.stringify(e))},submitForm:Object(c["a"])((function(){var e=this;return"null"!=String(e.formData.sendRange)&&""!==e.formData.sendRange&&(!("1"==e.formData.sendRange&&!e.formData.selectList.length)&&(!("2"==e.formData.sendRange&&!e.formData.selectList.length)&&(e.loadingBtn=!0,void e.postSave())))}),300),postSave:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,storeMode:String(e.formData.sendRange),bindRange:e.formData.sendRange>0?1==e.formData.sendRange?e.formData.selectList.map((function(e){return e.storeGroupId})).join(","):e.formData.selectList.map((function(e){return e.storeInfoId})).join(","):""};"crowd"==e.setType?(t.relationType="0",t.relationId=e.setItemId,e.saveCrowd(t)):(t.relationType="1",t.relationId=e.setItemId,e.saveTag(t))},saveCrowd:function(e){var t=this;N(e).then((function(e){t.loadingBtn=!1,"0000"==e.code?(C["a"].showmsg("保存成功","success"),t.$emit("refreshData","success")):C["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loadingBtn=!1}))},saveTag:function(e){var t=this;k(e).then((function(e){t.loadingBtn=!1,"0000"==e.code?(C["a"].showmsg("保存成功","success"),t.$emit("refreshData","success")):C["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loadingBtn=!1}))}},watch:{selectMode:function(e){var t=this;t.formData.sendRange=String(e)},rangeData:function(e){var t=this;t.selectGroupData=1==t.selectMode?JSON.parse(JSON.stringify(e)):[],t.selectStoreData=2==t.selectMode?JSON.parse(JSON.stringify(e)):[],t.formData.selectList=JSON.parse(JSON.stringify(e))||[]}}},R=O,_=(r("f882"),Object(p["a"])(R,a,n,!1,null,"047e7ed0",null));t["a"]=_.exports},"28a5":function(e,t,r){"use strict";var a=r("aae3"),n=r("cb7c"),s=r("ebd6"),o=r("0390"),i=r("9def"),c=r("5f1b"),l=r("520a"),u=r("79e5"),d=Math.min,f=[].push,p="split",g="length",h="lastIndex",m=4294967295,v=!u((function(){RegExp(m,"y")}));r("214f")("split",2,(function(e,t,r,u){var S;return S="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[g]||2!="ab"[p](/(?:ab)*/)[g]||4!="."[p](/(.?)(.?)/)[g]||"."[p](/()()/)[g]>1||""[p](/.?/)[g]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!a(e))return r.call(n,e,t);var s,o,i,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=void 0===t?m:t>>>0,v=new RegExp(e.source,u+"g");while(s=l.call(v,n)){if(o=v[h],o>d&&(c.push(n.slice(d,s.index)),s[g]>1&&s.index<n[g]&&f.apply(c,s.slice(1)),i=s[0][g],d=o,c[g]>=p))break;v[h]===s.index&&v[h]++}return d===n[g]?!i&&v.test("")||c.push(""):c.push(n.slice(d)),c[g]>p?c.slice(0,p):c}:"0"[p](void 0,0)[g]?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,a){var n=e(this),s=void 0==r?void 0:r[t];return void 0!==s?s.call(r,n,a):S.call(String(n),r,a)},function(e,t){var a=u(S,e,this,t,S!==r);if(a.done)return a.value;var l=n(e),f=String(this),p=s(l,RegExp),g=l.unicode,h=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(v?"y":"g"),b=new p(v?l:"^(?:"+l.source+")",h),D=void 0===t?m:t>>>0;if(0===D)return[];if(0===f.length)return null===c(b,f)?[f]:[];var y=0,I=0,x=[];while(I<f.length){b.lastIndex=v?I:0;var w,C=c(b,v?f:f.slice(I));if(null===C||(w=d(i(b.lastIndex+(v?0:I)),f.length))===y)I=o(f,I,g);else{if(x.push(f.slice(y,I)),x.length===D)return x;for(var N=1;N<=C.length-1;N++)if(x.push(C[N]),x.length===D)return x;I=y=w}}return x.push(f.slice(y)),x}]}))},"2fdb":function(e,t,r){"use strict";var a=r("5ca1"),n=r("d2c8"),s="includes";a(a.P+a.F*r("51479")(s),"String",{includes:function(e){return!!~n(this,e,s).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},51479:function(e,t,r){var a=r("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[a]=!1,!"/./"[e](t)}catch(n){}}return!0}},6762:function(e,t,r){"use strict";var a=r("5ca1"),n=r("c366")(!0);a(a.P,"Array",{includes:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),r("9c6c")("includes")},"801b":function(e,t,r){},d157:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return s}));r("c5f6"),r("a481"),r("28a5"),r("6b54");function a(e,t){var r,a=t||200;return function(){var t=this,n=arguments;r&&clearTimeout(r),r=setTimeout((function(){r=null,e.apply(t,n)}),a)}}function n(e,t){var r,a,n=t||200;return function(){var t=this,s=arguments,o=+new Date;r&&o-r<n?(clearTimeout(a),a=setTimeout((function(){r=o,e.apply(t,s)}),n)):(r=o,e.apply(t,s))}}function s(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}},d2c8:function(e,t,r){var a=r("aae3"),n=r("be13");e.exports=function(e,t,r){if(a(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(n(e))}},d4d0:function(e,t,r){},f23e:function(e,t,r){},f882:function(e,t,r){"use strict";var a=r("801b"),n=r.n(a);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-49b40f10"],{"1ed3":function(t,e,a){"use strict";var n=a("a183"),i=a.n(n);i.a},2802:function(t,e,a){"use strict";a("4917");e["a"]={getByteLen:function(t){for(var e=""==t||null==t?"":t,a=0,n=0;n<e.length;n++){var i=e.charAt(n);null!=i.match(/[^\x00-\xff]/gi)?a+=2:a+=1}return a},getZhLen:function(t){for(var e=""==t||null==t?"":t,a=0,n=0;n<e.length;n++){var i=e.charAt(n);null!=i.match(/[^\x00-\xff]/gi)?a+=1:a+=.5}return Math.ceil(a)},cutStr:function(t,e,a){for(var n=0,i=0;i<t.length;i++){var s=t.charAt(i);if(1==a&&(encodeURI(s).length>2?n+=1:n+=.5),2==a&&(n+=1),n>=e){var r=n==e?i+1:i;return t.substr(0,r)}}},getByteVal:function(t,e){for(var a=""==t||null==t?"":t,n="",i=0,s=0;s<a.length;s++){if(null!=a[s].match(/[^\x00-\xff]/gi)?i+=1:i+=.5,i>e)break;n+=a[s]}return n},getCharVal:function(t,e){for(var a=""==t||null==t?"":t,n="",i=0,s=0;s<a.length;s++){if(null!=a[s].match(/[^\x00-\xff]/gi)?i+=2:i+=1,i>e)break;n+=a[s]}return n},regPos:function(t){var e=/^\d+(\.\d+)?$/;return e.test(t)}}},"2a3f":function(t,e,a){"use strict";var n=a("611d"),i=a.n(n);i.a},"41a5":function(t,e,a){},"611d":function(t,e,a){},6886:function(t,e,a){"use strict";var n=a("41a5"),i=a.n(n);i.a},"744b":function(t,e,a){},a183:function(t,e,a){},a870:function(t,e,a){"use strict";var n=a("744b"),i=a.n(n);i.a},b5b0:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-app-right no-padding"},[a("div",{staticClass:"clerk-tag-body flex"},[a("div",{staticClass:"clerk-tag-left border-box"},[a("div",{staticClass:"clerk-tag-add text-center m-b-10"},[a("el-button",{staticClass:"w-117",attrs:{icon:"el-icon-plus"},on:{click:t.toAddCate}},[t._v("新建分类")])],1),a("tag-classify-list",{attrs:{"tag-list":t.tagsClassifyData,"current-classify-id":t.currentClassify,"brand-id":t.brandId},on:{refreshClassify:t.refreshClassify,changeClass:t.changeClass,resetCurrentId:t.resetCurrentId}})],1),a("div",{staticClass:"clerk-tag-right p-20 border-box"},[a("div",{staticClass:"clerk-tag-search"},[a("div",{staticClass:"flex flex-space-between"},[a("div",[a("el-input",{staticStyle:{width:"298px"},attrs:{placeholder:"请输入标签名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e,t.searchVal)}(e)}},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}})],1),a("div",[a("el-tooltip",{directives:[{name:"show",rawName:"v-show",value:t.licenseData.count<t.licenseData.limit,expression:"licenseData.count < licenseData.limit"}],staticClass:"item",attrs:{effect:"dark",placement:"top-start"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v("当前标签数量/购买license:"+t._s(t.licenseData.count)+"/"+t._s(t.licenseData.limit))])]),a("el-button",{attrs:{type:"primary"},on:{click:t.toAddTag}},[t._v("新建标签")])],1),a("el-tooltip",{directives:[{name:"show",rawName:"v-show",value:t.licenseData.count>=t.licenseData.limit,expression:"licenseData.count >= licenseData.limit"}],staticClass:"item",attrs:{effect:"dark",placement:"top-start"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v("当前标签数量已达license,请先删除不使用的标签或扩容license")])]),a("div",{staticClass:"el-button el-tooltip item is-disabled"},[t._v("新建标签")])])],1)])]),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"tagsData",staticStyle:{width:"100%"},attrs:{data:t.tagsData,"row-key":"tagId"}},[a("el-table-column",{directives:[{name:"show",rawName:"v-show",value:""===t.currentClassify&&""===t.searchVal,expression:"currentClassify === '' && searchVal === ''"}],attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell"}},[[a("span",{class:["font-22 iconfont icontuozhuaiopen color-c0c4cc",""===t.searchVal&&""===t.currentClassify?"show-icon":"hide-icon"],staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"",label:"标签名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.tagName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEditTag(e.$index,e.row)}}},[t._v("编辑")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEditVisiable(e.$index,e.row)}}},[t._v("编辑可见范围")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDelTag(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)])]),t.showTagCate?a("tag-classify-dialog",{attrs:{"brand-id":t.brandId},on:{closeClassify:t.closeClassify}}):t._e(),t.showTagDialog?a("edit-tag-dialog",{attrs:{"current-category-id":t.currentClassify,"brand-id":t.brandId,"edit-row":t.editRow},on:{closeTag:t.closeTag}}):t._e(),t.showTagVisiable?a("edit-visiable",{attrs:{"brand-id":t.brandId,"set-item-id":t.setItemId,"set-type":"tag","select-mode":t.selectMode,"range-data":t.rangeData},on:{refreshData:t.refreshData}}):t._e()],1)},i=[],s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("ul",{staticClass:"tag-classify-body"},[t._l(t.tagList,(function(e,n){return a("li",{key:e.categoryId+n,class:["tag-classify-item",{active:t.currentClassifyId==e.categoryId}],on:{click:function(a){return t.changeClassify(n,e)}}},[a("span",{staticClass:"tag-classify-name"},[t._v(t._s(e.categoryName||"--"))]),0!=e.state?a("el-dropdown",{staticClass:"tag-classify-drop",attrs:{placement:"bottom-start"}},[a("i",{staticClass:"iconfont icongengduo1 edit-icon"}),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticStyle:{padding:"0 30px"},nativeOn:{click:function(a){return t.toEditClassify(n,e)}}},[t._v("编辑")]),a("el-dropdown-item",{staticStyle:{padding:"0 30px"},nativeOn:{click:function(a){return t.toDelClassify(n,e)}}},[t._v("删除")])],1)],1):t._e()],1)})),0==t.tagList.length?a("li",{staticClass:"no-data"},[t._v("暂无数据")]):t._e()],2),t.showTagClass?a("tag-classify-dialog",{attrs:{"brand-id":t.brandId,"edit-row":t.editRow},on:{closeClassify:t.closeClassify}}):t._e()],1)},r=[],l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.form.categoryId?"编辑分类":"新建分类",width:"600px",visible:t.editVisible,"before-close":t.handleClose},on:{"update:visible":function(e){t.editVisible=e}}},[a("el-form",{ref:"tagForm",attrs:{model:t.form,rules:t.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"分类名称",prop:"categoryName"}},[a("limit-input",{attrs:{"input-width":440,"input-value":t.form.categoryName,holder:"请输入分类名称","get-by-type":"normal","max-length":10},on:{"update:inputValue":function(e){return t.$set(t.form,"categoryName",e)},"update:input-value":function(e){return t.$set(t.form,"categoryName",e)}}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loadingBtn},on:{click:function(e){return t.submit("tagForm")}}},[t._v(t._s(t.form.categoryId?"保存":"新建"))])],1)],1)},o=[],c=(a("ac6a"),a("456d"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:["input-line-cell",t.limitClass],style:{width:t.inputWidth+"px"}},[a("el-input",{style:{width:t.inputWidth+"px"},attrs:{disabled:t.disflag,placeholder:t.holder,maxlength:t.inputLength},on:{blur:function(e){return t.inputBlur()}},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),a("span",{staticClass:"input-cell-tip"},[a("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)}),u=[],d=(a("c5f6"),a("2802")),g={name:"LimitInput",props:{inputValue:{type:[String,Number],default:function(){return""}},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disflag:{type:Boolean,default:!1},limitClass:{type:String,default:""}},data:function(){return{inputNum:0,limitLength:10,itemValue:"",inputLength:"normal"==this.getByType?this.maxLength:500}},mounted:function(){var t=this;if(t.limitLength=t.maxLength,t.itemValue=t.inputValue||"","normal"==t.getByType)return t.inputNum=t.inputValue.length,!1;"word"==t.getByType?t.inputNum=d["a"].getZhLen(t.inputValue):t.inputNum=d["a"].getByteLen(t.inputValue)},methods:{toInput:function(t){var e=this;if("normal"==e.getByType)return e.itemValue=String(t.target.value).trim(),e.inputNum=e.itemValue.length,e.$emit("update:inputValue",e.itemValue),!1;var a="";"word"==e.getByType?(a=d["a"].getByteVal(t.target.value,e.limitLength),e.itemValue=a.trim(),e.inputNum=d["a"].getZhLen(e.itemValue)):(a=d["a"].getCharVal(t.target.value,e.limitLength),e.itemValue=a.trim(),e.inputNum=d["a"].getByteLen(e.itemValue)),e.$emit("update:inputValue",e.itemValue)},inputBlur:function(){var t=this;t.$emit("update:inputValue",t.itemValue)}},watch:{maxLength:function(t,e){var a=this;a.limitLength=t},inputValue:function(t,e){var a=this;if(a.itemValue=t||"","normal"==a.getByType)return a.inputNum=String(a.itemValue).trim().length,!1;"word"==a.getByType?a.inputNum=d["a"].getZhLen(a.itemValue):a.inputNum=d["a"].getByteLen(a.itemValue)}}},f=g,p=(a("6886"),a("2877")),m=Object(p["a"])(f,c,u,!1,null,"6a34064a",null),h=m.exports,y=a("d157"),v=a("5b4e6"),b=a("d11a"),I=b["a"].addClassify,w={name:"TagClassifyDialog",components:{limitInput:h},props:{brandId:{type:String,default:""},editRow:{type:Object,default:function(){return{categoryId:"",categoryName:""}}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",form:{categoryId:"",categoryName:""},rules:{categoryName:[{required:!0,message:"请输入分类名称",trigger:"blur"}]},editVisible:!0,loadingBtn:!1}},mounted:function(){var t=this;Object.keys(t.editRow).length&&(t.form=JSON.parse(JSON.stringify(t.editRow)))},methods:{cancel:function(){var t=this;t.$emit("closeClassify","close")},handleClose:function(){var t=this;t.tableData=[],t.$emit("closeClassify","close")},submit:Object(y["a"])((function(t){var e=this;e.$refs[t].validate((function(t){t&&e.postSave()}))}),300),postSave:function(){var t=this;t.loadBtn=!0;var e={wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId,categoryId:t.form.categoryId,categoryName:Object(y["c"])(t.form.categoryName)};I(e).then((function(e){t.loadBtn=!1,"0000"==e.code?(v["a"].showmsg("操作成功","success"),t.$refs["tagForm"].resetFields(),t.$emit("closeClassify",t.form.categoryName)):v["a"].showmsg(e.message||"未知错误","warning")})).catch((function(e){t.loadBtn=!1}))}},watch:{editRow:function(t){var e=this;Object.keys(t).length&&(e.form=JSON.parse(JSON.stringify(t)))}}},C=w,x=Object(p["a"])(C,l,o,!1,null,"d60fa170",null),T=x.exports,V=b["a"].delClassify,D={name:"TagClassify",components:{tagClassifyDialog:T},props:{brandId:{type:String,default:""},tagList:{type:Array,default:function(){return[]}},currentClassifyId:{type:String,default:""}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",editRow:{},showTagClass:!1}},methods:{changeClassify:function(t,e){this.$emit("changeClass",e)},toEditClassify:function(t,e){var a=this;a.editRow=e,a.showTagClass=!0},closeClassify:function(t){var e=this;if(e.showTagClass=!1,e.$emit("refreshClassify"),"close"==t)return!1;e.editRow.categoryName=t},toDelClassify:function(t,e){var a=this;a.$confirm("删除该分类后,该分类内的所有标签将会被删除!","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.delTagData(e.categoryId)})).catch((function(){}))},delTagData:function(t){var e=this,a={categoryId:t,wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId};V(a).then((function(a){t==e.currentClassifyId?e.$emit("resetCurrentId"):e.$emit("refreshClassify"),"0000"==a.code?v["a"].showmsg("删除成功","success"):v["a"].showmsg(a.message||"接口异常","warning")})).catch((function(t){}))}}},k=D,_=(a("1ed3"),Object(p["a"])(k,s,r,!1,null,"d633db26",null)),L=_.exports,N=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.form.tagId?"编辑标签":"新建标签",width:"600px",visible:t.editVisible,"before-close":t.handleClose,"append-to-body":""},on:{"update:visible":function(e){t.editVisible=e}}},[a("common-alert-tip",{attrs:{width:"476px","tip-content":t.tipContent}}),a("el-form",{ref:"tagForm",staticClass:"m-t-20",attrs:{model:t.form,rules:t.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"标签名称",prop:"tagName"}},[a("limit-input",{attrs:{"input-width":440,"input-value":t.form.tagName,holder:"请输入标签名称","get-by-type":"normal","max-length":15},on:{"update:inputValue":function(e){return t.$set(t.form,"tagName",e)},"update:input-value":function(e){return t.$set(t.form,"tagName",e)}}})],1),a("el-form-item",{attrs:{label:"所属分类",prop:"categoryId"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.form.categoryId,callback:function(e){t.$set(t.form,"categoryId",e)},expression:"form.categoryId"}},t._l(t.tagsClassifyData,(function(t){return a("el-option",{key:t.categoryId,attrs:{label:t.categoryName,value:t.categoryId}})})),1)],1),a("el-form-item",{attrs:{label:"标签值",prop:""}},[t._l(t.form.tagValueDTOList,(function(e,n){return a("el-tag",{key:n+"tag",attrs:{closable:"","disable-transitions":!1},on:{close:function(e){return t.handleDel(n)}}},[t._v("\n "+t._s(e.tagValue)+"\n ")])})),t.form.tagValueDTOList.length<20?a("div",{staticClass:"m-t-5 input-tag-div"},[a("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small",maxlength:"15",placeholder:"请输入标签值并回车添加多个"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputConfirm(e)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}),a("span",{staticClass:"input-cell-tip"},[t._v(t._s(t.inputValue.length)+"/15")])],1):t._e()],2)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loadingBtn},on:{click:function(e){return t.submit("tagForm")}}},[t._v(t._s(t.form.tagId?"保存":"新建"))])],1)],1)},S=[],O=a("3081"),E=b["a"].addClerkTag,B=b["a"].editClerkTag,$=b["a"].getTagClassify,R={name:"TagClassifyDialog",components:{limitInput:h,commonAlertTip:O["a"]},props:{brandId:{type:String,default:""},currentCategoryId:{type:String,default:""},editRow:{type:Object,default:function(){return{}}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tipContent:"在好办新建的标签会在GIC虫洞派应用中也会同步创建并消耗license",tagsClassifyData:[],form:{tagId:"",tagName:"",linkId:"",categoryId:"",tagValueDTOList:[]},rules:{tagName:[{required:!0,message:"请输入标签名称",trigger:"blur"}],categoryId:[{required:!0,message:"请选择所属分类",trigger:"change"}]},inputValue:"",editVisible:!0,loadingBtn:!1}},beforeMount:function(){var t=this;t.brandId&&t.getClassifyList()},methods:{handleDel:function(t){this.form.tagValueDTOList.splice(t,1)},handleInputConfirm:function(){var t=this,e=Object(y["c"])(t.inputValue);e&&t.form.tagValueDTOList.push({tagValueId:"",tagValue:e}),t.inputValue=""},cancel:function(){var t=this;t.$emit("closeTag","close")},handleClose:function(){var t=this;t.tableData=[],t.$emit("closeTag","close")},submit:Object(y["a"])((function(t){var e=this;e.$refs[t].validate((function(t){t&&e.postSave()}))}),300),postSave:function(){var t=this;t.loadBtn=!0;var e={tagId:t.form.tagId,tagName:Object(y["c"])(t.form.tagName),linkId:t.form.linkId,tagValueDTOList:JSON.stringify(t.form.tagValueDTOList),categoryId:t.form.categoryId,enterpriseId:t.brandId,wxEnterpriseId:t.wxEnterpriseId};t.form.tagId?t.editPost(e):t.addPost(e)},addPost:function(t){var e=this;E(t).then((function(t){e.loadBtn=!1,"0000"==t.code?(v["a"].showmsg("操作成功","success"),e.$refs["tagForm"].resetFields(),e.$emit("closeTag","success")):v["a"].showmsg(t.message||"未知错误","warning")})).catch((function(t){e.loadBtn=!1}))},editPost:function(t){var e=this;B(t).then((function(t){e.loadBtn=!1,"0000"==t.code?(v["a"].showmsg("操作成功","success"),e.$refs["tagForm"].resetFields(),e.$emit("closeTag","success")):v["a"].showmsg(t.message||"未知错误","warning")})).catch((function(t){e.loadBtn=!1}))},getClassifyList:function(){var t=this,e={enterpriseId:t.brandId,wxEnterpriseId:t.wxEnterpriseId};$(e).then((function(e){t.tagsClassifyData=e.result||[],t.currentCategoryId&&(t.form.categoryId=t.currentCategoryId),Object.keys(t.editRow).length&&(t.form=JSON.parse(JSON.stringify(t.editRow)))})).catch((function(e){t.currentCategoryId&&(t.form.categoryId=t.currentCategoryId)}))}},watch:{brandId:function(t){var e=this;t&&e.getClassifyList()}}},j=R,J=(a("2a3f"),Object(p["a"])(j,N,S,!1,null,"29339ea0",null)),A=J.exports,F=a("24cb"),U=a("aa47"),M=b["a"].getTagClassify,P=b["a"].getClerkTag,q=b["a"].getTagLicense,Z=b["a"].getTagDetail,z=b["a"].getTagVisiable,W=b["a"].sortClerkTag,G=b["a"].delClerkTag,H={name:"ClerkTag",components:{tagClassifyList:L,tagClassifyDialog:T,editTagDialog:A,editVisiable:F["a"]},props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",currentClassify:"",searchVal:"",tagsClassifyData:[],tagsData:[],showTagDialog:!1,loading:!1,showTagCate:!1,editRow:{},licenseData:{limit:0,count:0},showTagVisiable:!1,selectMode:"",rangeData:[],setItemId:""}},mounted:function(){var t=this;t.$emit("showTab","/clerk-tag"),t.brandId&&t.getClassifyList(),t.rowDrop("tagsData")},methods:{getTagLicenseData:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId};q(e).then((function(e){t.licenseData.limit=e.result.limit||0,t.licenseData.count=e.result.count||0})).catch((function(t){}))},refreshData:function(){var t=this;t.showTagVisiable=!1,t.getTableList()},changeClass:function(t){var e=this;e.currentClassify=t.categoryId,e.searchVal="",e.tagsData=[],e.getTableList()},toAddCate:function(){var t=this;t.showTagCate=!0},closeClassify:function(t){var e=this;if(e.showTagCate=!1,e.getClassifyList(),"close"==t)return!1},rowDrop:function(t){var e=this.$refs[t].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;U["a"].create(e,{handle:".icontuozhuaiopen",onEnd:function(e){var n=e.newIndex,i=e.oldIndex;if(n==i||""!=a.currentClassify)return!1;var s=JSON.parse(JSON.stringify(a[t])),r=s.splice(i,1)[0];s.splice(n,0,r),a.setSort(s)}})},setSort:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,tagIds:t.map((function(t){return t.tagId})).join(",")};W(a).then((function(t){e.getTableList(),"0000"==t.code?v["a"].showmsg("操作成功","success"):v["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){}))},refreshClassify:function(t){var e=this;e.getClassifyList()},resetCurrentId:function(){var t=this;t.currentClassify="",t.getClassifyList()},toAddTag:function(){var t=this;t.editRow={},t.showTagDialog=!0},toEditTag:function(t,e){var a=this;a.getTagData(e.tagId)},closeTag:function(t){var e=this;if(e.showTagDialog=!1,"close"==t)return!1;e.getTableList()},getTagData:function(t){var e=this,a={tagId:t,enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId};Z(a).then((function(t){t.result&&!t.result.tagValueDTOList&&(t.result.tagValueDTOList=[]),e.editRow=t.result||{},e.showTagDialog=!0})).catch((function(t){}))},toEditVisiable:function(t,e){var a=this;a.getVisiableData(e.tagId)},getVisiableData:function(t){var e=this,a={relationId:t,relationType:"1",enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId};z(a).then((function(a){e.selectMode=String(a.result.storeMode),e.rangeData=a.result.bindRange?JSON.parse(a.result.bindRange):[],e.setItemId=t,e.showTagVisiable=!0})).catch((function(t){}))},refreshTagData:function(){var t=this;t.getTableList()},toDelTag:function(t,e){var a=this;a.$confirm("是否要删除选中的标签?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.delTagData(e.tagId,e.linkId)})).catch((function(){}))},delTagData:function(t,e){var a=this,n={tagId:t,linkId:e,wxEnterpriseId:a.wxEnterpriseId,enterpriseId:a.brandId};G(n).then((function(t){a.getTableList(),"0000"==t.code?v["a"].showmsg("删除成功","success"):v["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){}))},toInput:Object(y["a"])((function(){var t=this;t.getTableList()}),200),clearInput:function(){var t=this;t.getTableList()},getTableList:function(){var t=this;t.loading=!0,t.tagsData=[];var e={wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId,keyword:t.searchVal,categoryId:t.currentClassify};P(e).then((function(e){t.loading=!1,t.tagsData=e.result||[],t.getTagLicenseData()})).catch((function(e){t.loading=!1}))},getClassifyList:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId};M(e).then((function(e){t.tagsClassifyData=e.result||[],t.tagsClassifyData.unshift({categoryId:"",categoryName:"所有",state:0}),e.result&&e.result.length&&t.getTableList()})).catch((function(t){}))}},watch:{brandId:function(t){var e=this;t&&(e.searchVal="",e.currentClassify="",e.getClassifyList())}}},K=H,Q=(a("a870"),Object(p["a"])(K,n,i,!1,null,"09cf7422",null));e["default"]=Q.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4c306652"],{3477:function(e,t,a){},"5b4e6":function(e,t,a){"use strict";var r=a("5c96");t["a"]={showmsg:function(e,t){Object(r["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},"71f6":function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));a("ac6a"),a("456d");var r=a("b775");function s(e,t){e=e||{};var a=Object.keys(e);return a.forEach((function(a){var s=e[a];"string"===typeof s&&(s={url:s}),s.url="".concat(t).concat(s.url),e[a]=function(e){return Object(r["a"])(s,e)}})),e}},b76b:function(e,t,a){"use strict";var r=a("3477"),s=a.n(r);s.a},d11a:function(e,t,a){"use strict";var r=a("71f6"),s={getGroupList:"/member/store-group",getStoreList:"/member/store-list",getAssignStatus:"/member/check-distribute",getNavChain:"/member/crumb-list",getMemberList:{url:"/member/member-list",method:"post",useFormData:!0},getListBrand:"/member/list-brand",getClerkList:"/member/clerk-list",getMemberCount:"",saveAssign:{url:"/member/distribute-member",method:"post"},getMemberData:"/member/dimension-detail",saveSortMember:{url:"/member/dimension-save",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"/member/switch-list",saveShowSet:{url:"/member/switch-setting",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"/member/switch-list",saveCustomerSet:{url:"/member/switch-setting",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"/member/member-group-hb-list",getClassifyData:"/member/member-group-category-list",postSortGroup:{url:"/member/member-group-sort",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"/member/member-group-list",saveSync:{url:"/member/member-group-save",method:"post",useFormData:!0,useIntercept:!1},delCrowd:{url:"/member/member-group-del",method:"post",useFormData:!0,useIntercept:!1},getVisiable:"/visiable-range-view",saveVisiable:{url:"/visiable-range-save",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"/tag-category-list",getTagLicense:"/member-tag-license",addClassify:{url:"/tag-category-add",method:"post",useFormData:!0,useIntercept:!1},delClassify:{url:"/tag-category-del",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"/member-tag-list",addClerkTag:{url:"/member-tag-add",method:"post",useFormData:!0,useIntercept:!1},getTagDetail:"/member-tag-detail",editClerkTag:{url:"/member-tag-edit",method:"post",useFormData:!0,useIntercept:!1},delClerkTag:{url:"/tag-del",method:"post",useFormData:!0,useIntercept:!1},sortClerkTag:{url:"/member-tag-sort",method:"post",useFormData:!0,useIntercept:!1},getTagVisiable:"/visiable-range-view",saveTagVisiable:{url:"/visiable-range-save",method:"post",useFormData:!0,useIntercept:!1}};s=Object(r["a"])(s,"/hb-app-customer-web"),t["a"]=s},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return o}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function r(e,t){var a,r=t||200;return function(){var t=this,s=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(t,s)}),r)}}function s(e,t){var a,r,s=t||200;return function(){var t=this,o=arguments,n=+new Date;a&&n-a<s?(clearTimeout(r),r=setTimeout((function(){a=n,e.apply(t,o)}),s)):(a=n,e.apply(t,o))}}function o(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}},f766:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-app-right"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.mainStoreFlag,callback:function(t){e.$set(e.customerShowData,"mainStoreFlag",t)},expression:"customerShowData.mainStoreFlag"}},[e._v("展示服务门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下顾客")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.minorStoreFlag,callback:function(t){e.$set(e.customerShowData,"minorStoreFlag",t)},expression:"customerShowData.minorStoreFlag"}},[e._v("展示协管门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下顾客")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.openCardStoreFlag,callback:function(t){e.$set(e.customerShowData,"openCardStoreFlag",t)},expression:"customerShowData.openCardStoreFlag"}},[e._v("展示开卡门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下顾客")])],1),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.submit()}}},[e._v("保存")])],1)])},s=[],o=(a("ac6a"),a("d11a")),n=a("d157"),u=a("5b4e6"),i=o["a"].getShowSet,m=o["a"].saveShowSet,c={name:"CustomerShowSet",components:{},props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",customerShowData:{mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1},loading:!1}},mounted:function(){var e=this;e.$emit("showTab","/customer-show-set"),e.brandId&&e.getShowData()},methods:{submit:Object(n["a"])((function(){var e=this;e.loading=!0,e.setData()}),500),setData:function(){var e=this,t=[];for(var a in e.customerShowData)e.customerShowData[a]&&t.push(a);var r={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,openCodes:t.join(","),switchType:"0"};m(r).then((function(t){e.loading=!1,e.getShowData(),"0000"==t.code?u["a"].showmsg("操作成功","success"):u["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){e.loading=!1}))},getShowData:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,switchType:"0"};i(t).then((function(t){t.result&&t.result.length?t.result.forEach((function(t){e.customerShowData[t.switchCode]=1==t.switchFlag})):e.customerShowData={mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1}})).catch((function(e){}))}},watch:{brandId:function(e){var t=this;e&&t.getShowData()}}},l=c,g=(a("b76b"),a("2877")),d=Object(g["a"])(l,r,s,!1,null,"6792c5e2",null);t["default"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d95ae81"],{1639:function(t,e,i){},"28a5":function(t,e,i){"use strict";var u=i("aae3"),a=i("cb7c"),r=i("ebd6"),n=i("0390"),o=i("9def"),s=i("5f1b"),d=i("520a"),l=i("79e5"),c=Math.min,p=[].push,f="split",m="length",h="lastIndex",g=4294967295,v=!l((function(){RegExp(g,"y")}));i("214f")("split",2,(function(t,e,i,l){var I;return I="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[m]||2!="ab"[f](/(?:ab)*/)[m]||4!="."[f](/(.?)(.?)/)[m]||"."[f](/()()/)[m]>1||""[f](/.?/)[m]?function(t,e){var a=String(this);if(void 0===t&&0===e)return[];if(!u(t))return i.call(a,t,e);var r,n,o,s=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,f=void 0===e?g:e>>>0,v=new RegExp(t.source,l+"g");while(r=d.call(v,a)){if(n=v[h],n>c&&(s.push(a.slice(c,r.index)),r[m]>1&&r.index<a[m]&&p.apply(s,r.slice(1)),o=r[0][m],c=n,s[m]>=f))break;v[h]===r.index&&v[h]++}return c===a[m]?!o&&v.test("")||s.push(""):s.push(a.slice(c)),s[m]>f?s.slice(0,f):s}:"0"[f](void 0,0)[m]?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,u){var a=t(this),r=void 0==i?void 0:i[e];return void 0!==r?r.call(i,a,u):I.call(String(a),i,u)},function(t,e){var u=l(I,t,this,e,I!==i);if(u.done)return u.value;var d=a(t),p=String(this),f=r(d,RegExp),m=d.unicode,h=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(v?"y":"g"),b=new f(v?d:"^(?:"+d.source+")",h),w=void 0===e?g:e>>>0;if(0===w)return[];if(0===p.length)return null===s(b,p)?[p]:[];var y=0,A=0,x=[];while(A<p.length){b.lastIndex=v?A:0;var G,k=s(b,v?p:p.slice(A));if(null===k||(G=c(o(b.lastIndex+(v?0:A)),p.length))===y)A=n(p,A,m);else{if(x.push(p.slice(y,A)),x.length===w)return x;for(var E=1;E<=k.length-1;E++)if(x.push(k[E]),x.length===w)return x;A=y=G}}return x.push(p.slice(y)),x}]}))},4325:function(t,e,i){"use strict";var u=i("1639"),a=i.n(u);a.a},"71f6":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));i("ac6a"),i("456d");var u=i("b775");function a(t,e){t=t||{};var i=Object.keys(t);return i.forEach((function(i){var a=t[i];"string"===typeof a&&(a={url:a}),a.url="".concat(e).concat(a.url),t[i]=function(t){return Object(u["a"])(a,t)}})),t}},"727c":function(t,e,i){"use strict";i.r(e);var u=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"audit-item-list"},[i("div",{staticClass:"audit-item-header"},[i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.toCreateItem()}}},[t._v("新建事项")])],1),i("el-table",{attrs:{data:t.auditItemList}},[i("el-table-column",{attrs:{label:"审核组",prop:"auditGroupName",formatter:function(t,e,i){return i||"--"},"show-overflow-tooltip":""}}),i("el-table-column",{attrs:{label:"审核事项",prop:"auditTypes","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[t._v(t._s(t._f("formatAuditTypes")(i.auditTypes,t.auditTypes)))]}}])}),i("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){var u=e.row;return[i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.toCreateItem(u)}}},[t._v("编辑")]),i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.onDelItem(u)}}},[t._v("删除")])]}}])})],1)],1)},a=[],r=(i("28a5"),i("8175")),n=i("96b6"),o=n["a"].auditItemList,s=n["a"].delAuditItem,d={name:"AuditItemList",data:function(){return{wxEnterpriseId:"",auditTypes:r["a"],auditItemList:[]}},created:function(){var t=JSON.parse(localStorage.getItem("haoBanUser")||"{}");this.wxEnterpriseId=t.wxEnterpriseId,this.$emit("showTab","/audit-item-list"),this.getAuditItemList()},methods:{getAuditItemList:function(){var t=this;o({wxEnterpriseId:this.wxEnterpriseId}).then((function(e){t.auditItemList=e.result||[]}))},toCreateItem:function(t){var e=t||{},i=e.auditItemId,u="/create-audit-item";this.$router.push(i?"".concat(u,"?auditItemId=").concat(i):u)},onDelItem:function(t){var e=this,i=t.auditGroupName,u=t.auditItemId;this.$confirm("确定删除【 ".concat(i," 】吗?"),"提示",{type:"warning"}).then((function(){s({auditItemId:u}).then((function(t){e.$message.success("删除成功!"),e.getAuditItemList()}))}))}},filters:{formatAuditTypes:function(t,e){if(!t)return"--";t=t.split(",");var i=e.filter((function(e){return t.some((function(t){return t==e.type}))}));return i.length>0?i.map((function(t){return t.title})).join("、"):"--"}}},l=d,c=(i("4325"),i("2877")),p=Object(c["a"])(l,u,a,!1,null,"7a8bffe2",null);e["default"]=p.exports},8175:function(t,e,i){"use strict";e["a"]=[{type:"3",title:"导购账号新增",desc:"能看到管辖范围内导购添加的审核事项"},{type:"1",title:"导购账号绑定",desc:"能看到管辖范围内导购账号绑定申请"}]},"96b6":function(t,e,i){"use strict";var u=i("71f6"),a={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};a=Object(u["a"])(a,"/hb-manage-web"),e["a"]=a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4ddcd773"],{"503e":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"p-t-12"},[a("ul",{staticClass:"tab-left-list"},[t._l(t.tabData,(function(e,n){return[a("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",e.menuUrl!=t.activeTab||e.children&&e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,!1,n)}}},[a("i",{class:["p-r-10 color-303133 iconfont",e.iconUrl,(e.onlyIconActive,"")]}),t._v(t._s(e.tabName||e.menuName)+"\n ")]),a("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[t._l(e.children,(function(e,i){return[a("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",e.menuUrl!=t.activeTab||e.children&&e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,"child",n)}}},[t._v(t._s(e.tabName||e.menuName))]),a("ul",{key:"thirditem"+i,staticClass:"third-tab-left-list"},[t._l(e.children,(function(e,i){return[a("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",e.menuUrl!=t.activeTab||e.children&&e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,"child",n)}}},[t._v(t._s(e.tabName||e.menuName))])]}))],2)]}))],2)]}))],2)])},i=[],r=(a("ac6a"),a("c5f6"),{name:"CommonDetailLeft",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return""}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData,collapsFlag:!0}},mounted:function(){this.activeTab=this.activeSelTab},methods:{selectTab:function(t,e,a){var n=this;if(e?n.tabData[a].onlyIconActive=!0:(n.tabData.forEach((function(t){t.onlyIconActive=!1})),t.hasOwnProperty("children")&&t.children.length&&(n.collapsFlag=!(n.collapsFlag&&t.hasOwnProperty("children")&&t.children.length))),t.hasOwnProperty("children")&&t.children.length)return n.tabData[a].onlyIconActive=!0,t.children[0]&&t.children[0].hasOwnProperty("children")&&t.children[0].children.length?(n.activeTab=t.children[0].children[0].menuUrl,n.$emit("setSelectTab",t.children[0].children[0]),!1):(n.activeTab=t.children[0].menuUrl,n.$emit("setSelectTab",t.children[0]),!1);n.activeTab=t.menuUrl,n.$emit("setSelectTab",t)}},watch:{tabListData:function(t,e){var a=this;a.tabData=t},activeSelTab:function(t,e){var a=this;a.activeTab=t}}}),c=r,o=(a("6255"),a("2877")),l=Object(o["a"])(c,n,i,!1,null,"61fa9846",null);e["a"]=l.exports},"52ac":function(t,e,a){},"57fc":function(t,e,a){},6255:function(t,e,a){"use strict";var n=a("57fc"),i=a.n(n);i.a},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));a("ac6a"),a("456d");var n=a("b775");function i(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var i=t[a];"string"===typeof i&&(i={url:i}),i.url="".concat(e).concat(i.url),t[a]=function(t){return Object(n["a"])(i,t)}})),t}},8530:function(t,e,a){"use strict";var n=a("52ac"),i=a.n(n);i.a},"96b6":function(t,e,a){"use strict";var n=a("71f6"),i={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};i=Object(n["a"])(i,"/hb-manage-web"),e["a"]=i},c250:function(t,e,a){"use strict";var n=a("c82e"),i=a.n(n);i.a},c3d9:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("common-detail-left",{attrs:{"tab-list-data":t.tabListData,"active-sel-tab":t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{"brand-id":t.activeBrand,"active-group-id":t.activeGroup,"tab-type":t.activeTab},on:{showTab:t.showTab}})],1)],1)])])])],1)},i=[],r=(a("ac6a"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-wrap border-box flex flex-space-between"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,(function(e,n){return[e.path?[a("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[a("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]}))],2),a("div",{staticClass:"my-customer-brand"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"不同商户的工作台可分别进行管理。点击后切换,可以管理不同商户下的应用",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("授权商户名称 ")])]),a("el-select",{staticClass:"p-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.activeBrand,callback:function(e){t.activeBrand=e},expression:"activeBrand"}},t._l(t.brandListData,(function(t){return a("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})})),1)],1)],1)}),c=[],o=a("96b6"),l=o["a"].getWxEnterprise,s={name:"NavAppPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"haoban",wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",activeBrand:"",brandListData:[]}},mounted:function(){var t=this;t.getBrandData()},methods:{changeRoute:function(t,e){var a=this;e?window.location.href=t:a.$router.push(t)},changeSelect:function(t){var e=this,a="";e.brandListData.forEach((function(e){e.enterpriseId==t&&(a=e.enterpriseId)})),e.$emit("selectBrandId",t,a)},getBrandData:function(){var t=this;l({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){if(e.result&&e.result.length){if(t.brandListData=e.result,t.$route.query.enterpriseId)return t.activeBrand=t.$route.query.enterpriseId,t.$emit("selectBrandId",t.$route.query.enterpriseId),!1;t.activeBrand=t.brandListData[0].enterpriseId,t.$emit("selectBrandId",t.brandListData[0].enterpriseId,t.brandListData[0].enterpriseId)}})).catch((function(t){}))}},watch:{brandId:function(t,e){var a=this;a.getBrandData()}}},u=s,d=(a("8530"),a("2877")),p=Object(d["a"])(u,r,c,!1,null,"5ef3b5d2",null),h=p.exports,f=a("503e"),b={name:"Reviewed",components:{navCrumb:h,commonDetailLeft:f["a"]},props:{appMenuData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/app-list"},{name:"我的顾客",path:""}],tabListData:[],activeBrand:"",activeGroup:""}},mounted:function(){var t=this;t.tabListData=JSON.parse(JSON.stringify(t.appMenuData)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{selectBrandId:function(t,e){var a=this;a.activeBrand=t,a.activeGroup=e},changeRoute:function(t){this.$router.push(t)},setSelectTab:function(t){var e=this;e.activeTab=t.menuUrl,1==t.target?-1!=t.menuUrl.indexOf("http")?window.open(t.menuUrl):window.open("/haoban-4/#".concat(t.menuUrl)):e.$router.push("".concat(t.menuUrl,"?applicationId=").concat(e.$route.query.applicationId))},showTab:function(t){var e=this;e.activeTab=t,e.activeSelTab=t,e.tabListData.forEach((function(e){e.menuUrl==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach((function(a){a.menuUrl==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach((function(a){a.menuUrl==t&&(e.onlyIconActive=!0)}))}))}))}},watch:{activeBrand:function(t,e){var a=this;a.activeBrand=t},appMenuData:function(t,e){var a=this;a.tabListData=JSON.parse(JSON.stringify(t))}}},m=b,v=(a("c250"),Object(d["a"])(m,n,i,!1,null,"7086c361",null));e["default"]=v.exports},c82e:function(t,e,a){}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-57b8b8d6"],{"4f88":function(e,t,n){"use strict";var a=n("910f"),i=n.n(a);i.a},"503e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"p-t-12"},[n("ul",{staticClass:"tab-left-list"},[e._l(e.tabData,(function(t,a){return[n("li",{key:a,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(n){return e.selectTab(t,!1,a)}}},[n("i",{class:["p-r-10 color-303133 iconfont",t.iconUrl,(t.onlyIconActive,"")]}),e._v(e._s(t.tabName||t.menuName)+"\n ")]),n("ul",{key:"childitem"+a,staticClass:"child-tab-left-list"},[e._l(t.children,(function(t,i){return[n("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(n){return e.selectTab(t,"child",a)}}},[e._v(e._s(t.tabName||t.menuName))]),n("ul",{key:"thirditem"+i,staticClass:"third-tab-left-list"},[e._l(t.children,(function(t,i){return[n("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(n){return e.selectTab(t,"child",a)}}},[e._v(e._s(t.tabName||t.menuName))])]}))],2)]}))],2)]}))],2)])},i=[],r=(n("ac6a"),n("c5f6"),{name:"CommonDetailLeft",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return""}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData,collapsFlag:!0}},mounted:function(){this.activeTab=this.activeSelTab},methods:{selectTab:function(e,t,n){var a=this;if(t?a.tabData[n].onlyIconActive=!0:(a.tabData.forEach((function(e){e.onlyIconActive=!1})),e.hasOwnProperty("children")&&e.children.length&&(a.collapsFlag=!(a.collapsFlag&&e.hasOwnProperty("children")&&e.children.length))),e.hasOwnProperty("children")&&e.children.length)return a.tabData[n].onlyIconActive=!0,e.children[0]&&e.children[0].hasOwnProperty("children")&&e.children[0].children.length?(a.activeTab=e.children[0].children[0].menuUrl,a.$emit("setSelectTab",e.children[0].children[0]),!1):(a.activeTab=e.children[0].menuUrl,a.$emit("setSelectTab",e.children[0]),!1);a.activeTab=e.menuUrl,a.$emit("setSelectTab",e)}},watch:{tabListData:function(e,t){var n=this;n.tabData=e},activeSelTab:function(e,t){var n=this;n.activeTab=e}}}),o=r,c=(n("6255"),n("2877")),s=Object(c["a"])(o,a,i,!1,null,"61fa9846",null);t["a"]=s.exports},"57fc":function(e,t,n){},5937:function(e,t,n){"use strict";var a=n("71f6"),i={getRoleMenu:"/list-staff-role-menu"};i=Object(a["a"])(i,"/hb-manage-web"),t["a"]=i},6255:function(e,t,n){"use strict";var a=n("57fc"),i=n.n(a);i.a},"6ce2":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("ac6a"),n("456d");var a=n("b775");function i(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var i=e[n];"string"===typeof i&&(i={url:i}),i.url="".concat(t).concat(i.url),e[n]=function(e){return Object(a["a"])(i,e)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),i={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};i=Object(a["a"])(i,"/hb-manage-web/auth"),t["a"]=i},"910f":function(e,t,n){},e22b:function(e,t,n){"use strict";var a=n("ea9b"),i=n.n(a);i.a},ea02:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"my-customer-wrap common-set-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName,"current-menu-code":e.currentMenuCode},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView,leftData:e.leftData}}),n("div",{staticClass:"enterprise-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body"},[n("div",{staticClass:"right-content border-box",style:{padding:e.showAsideMenu?"20px":"0 20px 20px 20px"}},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showAsideMenu,expression:"showAsideMenu"}],staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("common-detail-left",{attrs:{"tab-list-data":e.tabListData,"active-sel-tab":e.activeSelTab},on:{setSelectTab:e.setSelectTab}})],1),n("div",{staticClass:"apps-content-right border-box",style:{width:e.showAsideMenu?"calc(100% - 157px)":"100%",paddingLeft:e.showAsideMenu?"10px":"0"}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view",{attrs:{"brand-id":e.activeBrand,"active-group-id":e.activeGroup,"tab-type":e.activeTab},on:{showTab:e.showTab,showAsideMenu:function(t){return e.showAsideMenu=t}}})],1)],1)])])])])])])],1)},i=[],r=(n("ac6a"),n("503e")),o=n("f777"),c={name:"EnterpriseSetIndex",components:{commonDetailLeft:r["a"],vueOfficeHeader:o["a"]},data:function(){return{bgHeight:window.screen.availHeight-288+"px",activeSelTab:"1",activeTab:"1",currentMenuCode:"enterprise",tabListData:[],activeBrand:"",activeGroup:"",showAsideMenu:!0}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{toRouterView:function(e){var t=this;t.$router.push({path:e.path})},changeRoute:function(e){this.$router.push(e)},selectBrandId:function(e,t){var n=this;n.activeBrand=e,n.activeGroup=t},setSelectTab:function(e){var t=this;t.activeTab=e.menuUrl,1==e.target?-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl)):t.$router.push(e.menuUrl)},showTab:function(e){var t=this;t.activeTab=e,t.activeSelTab=e,t.tabListData.forEach((function(t){t.menuUrl==e&&(t.onlyIconActive=!1),t.children&&t.children.forEach((function(n){n.menuUrl==e&&(t.onlyIconActive=!0),n.children&&n.children.forEach((function(n){n.menuUrl==e&&(t.onlyIconActive=!0)}))}))}))},leftData:function(e){var t=this;e[0].children.forEach((function(e,n){e.tabId=n+1,e.tabName=e.menuName,e.children&&e.children.length&&t.setChildData(e,n+1)})),t.tabListData=e[0].children},setChildData:function(e,t){var n=this;e.children.forEach((function(e,a){e.tabId=t+"-"+(a+1),e.tabName=e.menuName,e.children&&e.children.length&&n.setChildData(e,t+"-"+(a+1))}))}},watch:{"$route.path":function(){this.showAsideMenu=!0},activeBrand:function(e,t){var n=this;n.activeBrand=e},activeGroup:function(e,t){var n=this;n.activeGroup=e}}},s=c,l=(n("4f88"),n("2877")),u=Object(l["a"])(s,a,i,!1,null,"e630f2d2",null);t["default"]=u.exports},ea9b:function(e,t,n){},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)||e.currentMenuCode==t.menuCode?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},i=[],r=(n("456d"),n("96cf"),n("1da1")),o=(n("ac6a"),n("28a5"),n("7ded")),c=n("5937"),s=c["a"].getRoleMenu,l=o["a"].getUserInfo,u=o["a"].loginOut,h={name:"VueOfficeHeader",components:{},props:{currentMenuCode:{type:String,default:""}},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl));else{t.setLeftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0])})),t.$router.push(n.menuUrl)}},setLeftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){u({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(e){}))})).catch((function(){}))},toLogin:function(){var e=this;l({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={appType:1};s(t).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(n){var a,i,r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],i={},r={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(i=t),e.$route.path==t.menuUrl&&1!=t.level&&(r=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(r).length&&2==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(i=e)})),o={},Object.keys(r).length&&3==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(o=e)})),Object.keys(o).length&&2==o.level&&n.result.forEach((function(e){o.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(i=e)})),e.setLeftData(i);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},f=h,d=(n("e22b"),n("2877")),m=Object(d["a"])(f,a,i,!1,null,"26c74afb",null);t["a"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-717fd052"],{1005:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"unreview-wrap common-set-wrap"},[i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[i("div",{staticClass:"reviewed-body-head flex flex-space-between"},[i("div",[i("el-input",{staticClass:"w-344",attrs:{maxlength:"50",placeholder:"请输入提交人姓名/账号/手机号","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return function(e){return t.searchEnterFun(e,t.searchInput)}(e)}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),i("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:t.changeTableList},model:{value:t.auditType,callback:function(e){t.auditType=e},expression:"auditType"}},t._l(t.filterOptions,(function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),i("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:t.changeTableList},model:{value:t.filterBrand,callback:function(e){t.filterBrand=e},expression:"filterBrand"}},[i("el-option",{attrs:{label:"全部品牌",value:""}}),t._l(t.brandOptions,(function(t){return i("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})}))],2)],1),i("dm-perm-button",{attrs:{disabled:t.$itemPerm(t.$itemCode.batchAudit),type:"primary"},on:{click:t.approveAll}},[t._v("批量同意")])],1),i("div",{staticClass:"reviewed-body-content"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),i("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?i("span",[t._v("导购账号绑定")]):t._e(),3==e.row.auditType?i("span",[t._v("导购账号新增")]):t._e()]}}])}),i("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"flex"},[i("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"},on:{show:function(a){return t.showSingleInfo(e.row.submitStaffId)}}},[i("div",{staticClass:"apply-info-detail"},[i("div",{staticClass:"flex"},[i("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82c5ff "},[t.userData.headImg?i("img",{attrs:{src:t.userData.headImg,alt:"img"}}):i("img",{attrs:{src:a("6ce2"),alt:"img"}})]),i("div",{staticClass:"flex flex-column apply-info-right flex-pack-center"},[i("div",{staticClass:"apply-info-name"},[i("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.staffName||"--"))]),i("span",{staticClass:"font-14 color-90939"},[t._v("( "+t._s(1==t.userData.sex?"男":2==t.userData.sex?"女":"--")+")")])])])]),i("div",{staticClass:"flex flex-space-between line-26 m-t-15"},[i("div",{staticClass:"font-14 color-606266"},[t._v("账号")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.wxUserId||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266"},[t._v("职务")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.postion||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266"},[t._v("手机号")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.nationCode||"--")+"-"+t._s(t.userData.phoneNumber||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266 w-m-100"},[t._v("部门")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.departmentInfo.map((function(t){return t.departmentName})).join(";")||"--"))])])]),i("div",{attrs:{slot:"reference"},slot:"reference"},[i("div",{staticClass:"flex flex-align-center flex-pack-center bg-82c5ff table-head-pic cursor-pointer"},[e.row.submitHeadImg?i("img",{attrs:{src:e.row.submitHeadImg,alt:"img"}}):i("img",{attrs:{src:a("6ce2"),alt:"img"}})])])]),i("div",{staticClass:"flex flex-column apply-info hide-ellipsis"},[i("span",{staticClass:"font-14 color-606266 hide-ellipsis"},[t._v(t._s(e.row.submitStaffName||"--"))]),i("span",{staticClass:"font-12 color-909399 hide-ellipsis"},[t._v(t._s(e.row.submitWxUserId||"--"))])])],1)]}}])}),i("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.content||"--")+"\n ")]}}])}),i("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),i("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),i("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleClick(e.$index,e.row)}}},[t._v("同意")]),i("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleClick(e.$index,e.row,"refuse")}}},[t._v("拒绝")])]}}])})],1),0!=t.tableData.length?i("div",{staticClass:"block common-wrap__page text-right"},[i("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])]),i("store-change",{attrs:{"store-change-data":t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}}),i("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:t.approveVisible,width:"422px"},on:{"update:visible":function(e){t.approveVisible=e}}},[i("div",{staticClass:"approve-body text-center"},[i("div",[i("i",{staticClass:"el-icon-success"}),i("span",{staticClass:"approve-icon-tip"},[t._v("同意")])]),i("div",{staticClass:"approve-tip"},[t._v("是否确认同意")])]),i("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.approveVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.sendApprove}},[t._v("确 定")])],1)]),i("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:t.refuseVisible,"before-close":t.cancelRefuse,width:"422px"},on:{"update:visible":function(e){t.refuseVisible=e}}},[i("div",[i("div",{staticClass:"refuse-tip"},[t._v("请输入拒绝理由")]),i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules}},[i("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[i("el-input",{staticClass:"font-14",attrs:{type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:t.ruleForm.refuseReason,callback:function(e){t.$set(t.ruleForm,"refuseReason",e)},expression:"ruleForm.refuseReason"}})],1)],1)],1),i("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){return t.cancelRefuse("ruleForm")}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.sendRefuse("ruleForm")}}},[t._v("确 定")])],1)]),i("review-result-detail",{attrs:{"audit-ids":t.auditIds,"detail-show":t.detailShow},on:{hideDetailDialog:t.hideDetailDialog}}),i("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("span",[t._v("共"+t._s(t.multipleSelection.length)+"条审核事项,是否批量同意?")]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary",loading:t.loadBtn},on:{click:function(e){t.postAllApprove(t.multipleSelection.map((function(t){return t.auditId})).join(","))}}},[t._v("确 定")])],1)])],1)},n=[],s=(a("28a5"),a("6300")),l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"审核详情",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",{staticClass:"font-14 color-606266 m-b-8"},[t._v("共 "+t._s(t.multLength||"")+" 条审核事项, "+t._s(t.success||"0")+" 条成功, "),a("span",{staticClass:"color-f5222d"},[t._v(t._s(t.fail||"0")+" ")]),t._v(" 条失败,失败详情如下:")]),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"审核事项","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?a("span",[t._v("导购账号绑定")]):t._e(),3==e.row.auditType?a("span",[t._v("导购账号新增")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"商户","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.enterpriseName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.submitStaffName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"提交时间",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime))+" "+t._s(e.row.createTime?"":"--"))]),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime))+" "+t._s(e.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",1==e.row.auditFlag?"bg-52c41a":"bg-f5222d"]}),1==e.row.auditFlag?a("span",[t._v("已同意")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[2==e.row.statusFlag&&1==e.row.auditFlag?a("span",[t._v("成功")]):t._e(),2==e.row.auditFlag?a("span",[t._v("--")]):t._e(),1==e.row.statusFlag&&1==e.row.auditFlag?a("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1)],1)])],1)},o=[],r=a("96b6"),u=r["a"].getAuditDetail,c={name:"ReviewResultDetail",props:{detailShow:{type:Boolean,default:!1},auditIds:{type:String,default:function(){return""}},tableListData:{type:Object,default:function(){return[]}}},data:function(){return{customDialog:!1,tableData:[],fail:"",success:""}},mounted:function(){var t=this;t.customDialog=t.detailShow,t.auditIds&&(t.multLength=t.auditIds.split(",").length,t.getTableData())},methods:{handleClose:function(t){var e=this;t(),e.hideDialog()},customCancel:function(){var t=this;t.hideDialog()},hideDialog:function(){var t=this;t.customDialog=!1,t.$emit("hideDetailDialog")},getTableData:function(){var t=this,e={auditIds:t.auditIds};u(e).then((function(e){t.tableData=e.result.resultList||[],t.fail=e.result.fail,t.success=e.result.success})).catch((function(t){}))}},watch:{detailShow:function(t,e){var a=this;a.customDialog=t},auditIds:function(t,e){var a=this;t&&(a.multLength=t.split(",").length,a.getTableData())}}},d=c,f=(a("7054"),a("2877")),p=Object(f["a"])(d,l,o,!1,null,"238712f0",null),g=p.exports,m=a("5b4e"),h=a("d157"),v=a("e230"),b=v["a"].getStaffDetail,w=r["a"].getReview,C=r["a"].getWxEnterprise,D=r["a"].postAudit,_=r["a"].postBatchApprove,y=r["a"].postRefuse,x=r["a"].getAuditDetail,S={name:"UnreviewPage",components:{storeChange:s["a"],reviewResultDetail:g},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",auditType:"",filterBrand:"",brandOptions:[],searchValue:"",filterOptions:[{label:"全部事项",value:""},{label:"导购账号绑定",value:"1"},{label:"导购账号新增",value:"3"}],loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{beforeContent:[],afterContent:[]},approveVisible:!1,refuseVisible:!1,detailShow:!1,resultShow:!1,tableListData:[],resultText:"",failCount:"0",userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1},dialogVisible:!1,loadBtn:!1,timeFlag:null,loadingFull:""}},mounted:function(){var t=this;t.$emit("showTab","/unreview"),t.getTableList(),t.getBrandData()},beforeDestroy:function(){window.clearInterval(this.timeFlag),this.timeFlag=null},methods:{clearSearch:function(){var t=this;t.currentPage=1,t.getTableList()},changeTableList:function(){var t=this;t.currentPage=1,t.getTableList()},searchEnterFun:Object(h["a"])((function(t){var e=this,a=String(t.target.value).trim();if(!a)return!1;e.currentPage=1,e.getTableList()}),200),hideDetailDialog:function(){var t=this;t.detailShow=!1,t.currentPage=1,t.getTableList()},handleSelectionChange:function(t){var e=this;e.multipleSelection=t},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},handleClick:function(t,e,a){var i=this;if(i.selectId=e.auditId,a&&(i.refuseVisible=!0),a)return!1;i.$confirm("是否确认同意?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i.sendApprove()})).catch((function(){i.selectId=""}))},sendApprove:Object(h["a"])((function(){var t=this;t.postApprove(t.selectId)}),500),postApprove:function(t){var e=this,a={auditId:t,auditName:e.auditName};D(a).then((function(t){"0000"==t.code?(m["a"].showmsg("操作成功","success"),e.approveVisible=!1,e.currentPage=1,e.getTableList(),e.$forceUpdate()):(e.currentPage=1,e.getTableList(),e.$message({message:t.message||"接口异常",type:"warning"}))})).catch((function(t){}))},approveAll:function(){var t=this,e=t.multipleSelection.length?t.multipleSelection.map((function(t){return t.auditId})).join(","):"";if(!e)return t.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;t.dialogVisible=!0},postAllApprove:function(t){var e=this;e.loadBtn=!0;var a={auditIds:t,auditName:e.auditName};_(a).then((function(t){e.loadBtn=!1,"0000"==t.code?(e.dialogVisible=!1,e.$nextTick((function(){e.loadingFull=e.$loading({lock:!0,text:"数据处理中,请耐心等待",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),window.clearInterval(e.timeFlag),e.timeFlag=null,e.timeFlag=window.setInterval((function(){e.getDetailFlag()}),3e3),e.$once("hook:beforeDestroy",(function(){window.clearInterval(e.timeFlag),e.timeFlag=null}))}))):e.$message({message:t.message||"接口异常",type:"warning"})})).catch((function(t){e.loadBtn=!1}))},getDetailFlag:function(){var t=this,e={auditIds:t.multipleSelection.map((function(t){return t.auditId})).join(",")||""};x(e).then((function(e){e.result.auditResult?(t.auditIds=t.multipleSelection.map((function(t){return t.auditId})).join(","),t.loadingFull.close(),window.clearInterval(t.timeFlag),t.timeFlag=null,t.detailShow=!0,t.currentPage=1,t.getTableList()):t.detailShow=!1})).catch((function(t){}))},cancelRefuse:function(t){var e=this;e.refuseVisible=!1,e.$refs["ruleForm"].resetFields()},sendRefuse:Object(h["a"])((function(t){var e=this;e.$refs[t].validate((function(t){if(!t)return!1;e.postRefuseData()}))}),500),postRefuseData:function(){var t=this,e={auditName:t.auditName,auditId:t.selectId,reason:Object(h["c"])(t.ruleForm.refuseReason)};y(e).then((function(e){"0000"==e.code?(m["a"].showmsg("操作成功","success"),t.refuseVisible=!1,t.$refs["ruleForm"].resetFields(),t.currentPage=1,t.getTableList()):(t.$message({message:e.message||"接口异常",type:"warning"}),t.currentPage=1,t.getTableList())})).catch((function(e){t.$message.error({duration:1e3,message:e.message})}))},showSingleInfo:function(t){var e=this,a={staffId:t};b(a).then((function(t){e.userData=t.result||{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}})).catch((function(t){}))},showStoreChange:function(t){var e=this;e.storeChangeData={beforeContent:[],afterContent:[]},e.showStoreDialog=!0,e.storeChangeData={beforeContent:""!=t.oldValue?t.oldValue.split(","):[],afterContent:""!=t.newValue?t.newValue.split(","):[]}},getBrandData:function(){var t=this;C({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){t.brandOptions=e.result||[]})).catch((function(t){}))},getTableList:function(){var t=this;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId,auditType:t.auditType,searchType:"0",search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.filterBrand};w(e).then((function(e){t.loading=!1,t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(e){t.loading=!1}))}}},I=S,F=(a("7e16"),Object(f["a"])(I,i,n,!1,null,"8fc3a900",null));e["default"]=F.exports},"28a5":function(t,e,a){"use strict";var i=a("aae3"),n=a("cb7c"),s=a("ebd6"),l=a("0390"),o=a("9def"),r=a("5f1b"),u=a("520a"),c=a("79e5"),d=Math.min,f=[].push,p="split",g="length",m="lastIndex",h=4294967295,v=!c((function(){RegExp(h,"y")}));a("214f")("split",2,(function(t,e,a,c){var b;return b="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[g]||2!="ab"[p](/(?:ab)*/)[g]||4!="."[p](/(.?)(.?)/)[g]||"."[p](/()()/)[g]>1||""[p](/.?/)[g]?function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return a.call(n,t,e);var s,l,o,r=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,p=void 0===e?h:e>>>0,v=new RegExp(t.source,c+"g");while(s=u.call(v,n)){if(l=v[m],l>d&&(r.push(n.slice(d,s.index)),s[g]>1&&s.index<n[g]&&f.apply(r,s.slice(1)),o=s[0][g],d=l,r[g]>=p))break;v[m]===s.index&&v[m]++}return d===n[g]?!o&&v.test("")||r.push(""):r.push(n.slice(d)),r[g]>p?r.slice(0,p):r}:"0"[p](void 0,0)[g]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,i){var n=t(this),s=void 0==a?void 0:a[e];return void 0!==s?s.call(a,n,i):b.call(String(n),a,i)},function(t,e){var i=c(b,t,this,e,b!==a);if(i.done)return i.value;var u=n(t),f=String(this),p=s(u,RegExp),g=u.unicode,m=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(v?"y":"g"),w=new p(v?u:"^(?:"+u.source+")",m),C=void 0===e?h:e>>>0;if(0===C)return[];if(0===f.length)return null===r(w,f)?[f]:[];var D=0,_=0,y=[];while(_<f.length){w.lastIndex=v?_:0;var x,S=r(w,v?f:f.slice(_));if(null===S||(x=d(o(w.lastIndex+(v?0:_)),f.length))===D)_=l(f,_,g);else{if(y.push(f.slice(D,_)),y.length===C)return y;for(var I=1;I<=S.length-1;I++)if(y.push(S[I]),y.length===C)return y;_=D=x}}return y.push(f.slice(D)),y}]}))},3236:function(t,e,a){"use strict";var i=a("910d"),n=a.n(i);n.a},"45db":function(t,e,a){},"5b4e":function(t,e,a){"use strict";var i=a("5c96");e["a"]={showmsg:function(t,e){Object(i["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},6300:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,(function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]}))],2)])]),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,(function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]}))],2)])])],1)],1)])],1)},n=[],s={name:"StoreChangeDialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},mounted:function(){var t=this;t.leftData=t.storeChangeData.beforeContent,t.rightData=t.storeChangeData.afterContent},methods:{handleCardClose:function(){var t=this;t.customCancel()},customCancel:function(){var t=this;t.customDialog=!1,t.$emit("input",t.customDialog)}},watch:{value:function(t,e){var a=this;a.customDialog=t},storeChangeData:function(t,e){var a=this;a.leftData=t.beforeContent,a.rightData=t.afterContent}}},l=s,o=(a("3236"),a("2877")),r=Object(o["a"])(l,i,n,!1,null,"19a03e61",null);e["a"]=r.exports},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},7054:function(t,e,a){"use strict";var i=a("9181"),n=a.n(i);n.a},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));a("ac6a"),a("456d");var i=a("b775");function n(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var n=t[a];"string"===typeof n&&(n={url:n}),n.url="".concat(e).concat(n.url),t[a]=function(t){return Object(i["a"])(n,t)}})),t}},"7e16":function(t,e,a){"use strict";var i=a("45db"),n=a.n(i);n.a},"910d":function(t,e,a){},9181:function(t,e,a){},"96b6":function(t,e,a){"use strict";var i=a("71f6"),n={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};n=Object(i["a"])(n,"/hb-manage-web"),e["a"]=n},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function i(t,e){var a,i=e||200;return function(){var e=this,n=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,n)}),i)}}function n(t,e){var a,i,n=e||200;return function(){var e=this,s=arguments,l=+new Date;a&&l-a<n?(clearTimeout(i),i=setTimeout((function(){a=l,t.apply(e,s)}),n)):(a=l,t.apply(e,s))}}function s(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},e230:function(t,e,a){"use strict";var i=a("71f6"),n={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/nationcode/get-nationcode-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};n=Object(i["a"])(n,"/hb-manage-web"),e["a"]=n}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5eb2dd58"],{1005:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"unreview-wrap common-set-wrap"},[i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[i("div",{staticClass:"reviewed-body-head flex flex-space-between"},[i("div",[i("el-input",{staticClass:"w-344",attrs:{maxlength:"50",placeholder:"请输入提交人姓名/账号/手机号","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return function(e){return t.searchEnterFun(e,t.searchInput)}(e)}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),i("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:t.changeTableList},model:{value:t.auditType,callback:function(e){t.auditType=e},expression:"auditType"}},t._l(t.filterOptions,(function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),i("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:t.changeTableList},model:{value:t.filterBrand,callback:function(e){t.filterBrand=e},expression:"filterBrand"}},[i("el-option",{attrs:{label:"全部品牌",value:""}}),t._l(t.brandOptions,(function(t){return i("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})}))],2)],1),i("dm-perm-button",{attrs:{disabled:t.$itemPerm(t.$itemCode.batchAudit),type:"primary"},on:{click:t.approveAll}},[t._v("批量同意")])],1),i("div",{staticClass:"reviewed-body-content"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),i("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?i("span",[t._v("导购账号绑定")]):t._e(),3==e.row.auditType?i("span",[t._v("导购账号新增")]):t._e()]}}])}),i("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"flex"},[i("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"},on:{show:function(a){return t.showSingleInfo(e.row.submitStaffId)}}},[i("div",{staticClass:"apply-info-detail"},[i("div",{staticClass:"flex"},[i("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82c5ff "},[t.userData.headImg?i("img",{attrs:{src:t.userData.headImg,alt:"img"}}):i("img",{attrs:{src:a("6ce2"),alt:"img"}})]),i("div",{staticClass:"flex flex-column apply-info-right flex-pack-center"},[i("div",{staticClass:"apply-info-name"},[i("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.staffName||"--"))]),i("span",{staticClass:"font-14 color-90939"},[t._v("( "+t._s(1==t.userData.sex?"男":2==t.userData.sex?"女":"--")+")")])])])]),i("div",{staticClass:"flex flex-space-between line-26 m-t-15"},[i("div",{staticClass:"font-14 color-606266"},[t._v("账号")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.wxUserId||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266"},[t._v("职务")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.postion||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266"},[t._v("手机号")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.nationCode||"--")+"-"+t._s(t.userData.phoneNumber||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266 w-m-100"},[t._v("部门")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.departmentInfo.map((function(t){return t.departmentName})).join(";")||"--"))])])]),i("div",{attrs:{slot:"reference"},slot:"reference"},[i("div",{staticClass:"flex flex-align-center flex-pack-center bg-82c5ff table-head-pic cursor-pointer"},[e.row.submitHeadImg?i("img",{attrs:{src:e.row.submitHeadImg,alt:"img"}}):i("img",{attrs:{src:a("6ce2"),alt:"img"}})])])]),i("div",{staticClass:"flex flex-column apply-info hide-ellipsis"},[i("span",{staticClass:"font-14 color-606266 hide-ellipsis"},[t._v(t._s(e.row.submitStaffName||"--"))]),i("span",{staticClass:"font-12 color-909399 hide-ellipsis"},[t._v(t._s(e.row.submitWxUserId||"--"))])])],1)]}}])}),i("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.content||"--")+"\n ")]}}])}),i("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),i("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),i("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleClick(e.$index,e.row)}}},[t._v("同意")]),i("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleClick(e.$index,e.row,"refuse")}}},[t._v("拒绝")])]}}])})],1),0!=t.tableData.length?i("div",{staticClass:"block common-wrap__page text-right"},[i("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])]),i("store-change",{attrs:{"store-change-data":t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}}),i("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:t.approveVisible,width:"422px"},on:{"update:visible":function(e){t.approveVisible=e}}},[i("div",{staticClass:"approve-body text-center"},[i("div",[i("i",{staticClass:"el-icon-success"}),i("span",{staticClass:"approve-icon-tip"},[t._v("同意")])]),i("div",{staticClass:"approve-tip"},[t._v("是否确认同意")])]),i("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.approveVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.sendApprove}},[t._v("确 定")])],1)]),i("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:t.refuseVisible,"before-close":t.cancelRefuse,width:"422px"},on:{"update:visible":function(e){t.refuseVisible=e}}},[i("div",[i("div",{staticClass:"refuse-tip"},[t._v("请输入拒绝理由")]),i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules}},[i("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[i("el-input",{staticClass:"font-14",attrs:{type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:t.ruleForm.refuseReason,callback:function(e){t.$set(t.ruleForm,"refuseReason",e)},expression:"ruleForm.refuseReason"}})],1)],1)],1),i("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){return t.cancelRefuse("ruleForm")}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.sendRefuse("ruleForm")}}},[t._v("确 定")])],1)]),i("review-result-detail",{attrs:{"audit-ids":t.auditIds,"detail-show":t.detailShow},on:{hideDetailDialog:t.hideDetailDialog}}),i("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("span",[t._v("共"+t._s(t.multipleSelection.length)+"条审核事项,是否批量同意?")]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary",loading:t.loadBtn},on:{click:function(e){t.postAllApprove(t.multipleSelection.map((function(t){return t.auditId})).join(","))}}},[t._v("确 定")])],1)])],1)},s=[],n=(a("28a5"),a("6300")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"审核详情",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",{staticClass:"font-14 color-606266 m-b-8"},[t._v("共 "+t._s(t.multLength||"")+" 条审核事项, "+t._s(t.success||"0")+" 条成功, "),a("span",{staticClass:"color-f5222d"},[t._v(t._s(t.fail||"0")+" ")]),t._v(" 条失败,失败详情如下:")]),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"审核事项","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?a("span",[t._v("导购账号绑定")]):t._e(),3==e.row.auditType?a("span",[t._v("导购账号新增")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"商户","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.enterpriseName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.submitStaffName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"提交时间",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime))+" "+t._s(e.row.createTime?"":"--"))]),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime))+" "+t._s(e.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",1==e.row.auditFlag?"bg-52c41a":"bg-f5222d"]}),1==e.row.auditFlag?a("span",[t._v("已同意")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[2==e.row.statusFlag&&1==e.row.auditFlag?a("span",[t._v("成功")]):t._e(),2==e.row.auditFlag?a("span",[t._v("--")]):t._e(),1==e.row.statusFlag&&1==e.row.auditFlag?a("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1)],1)])],1)},l=[],r=a("96b6"),u=r["a"].getAuditDetail,c={name:"ReviewResultDetail",props:{detailShow:{type:Boolean,default:!1},auditIds:{type:String,default:function(){return""}},tableListData:{type:Object,default:function(){return[]}}},data:function(){return{customDialog:!1,tableData:[],fail:"",success:""}},mounted:function(){var t=this;t.customDialog=t.detailShow,t.auditIds&&(t.multLength=t.auditIds.split(",").length,t.getTableData())},methods:{handleClose:function(t){var e=this;t(),e.hideDialog()},customCancel:function(){var t=this;t.hideDialog()},hideDialog:function(){var t=this;t.customDialog=!1,t.$emit("hideDetailDialog")},getTableData:function(){var t=this,e={auditIds:t.auditIds};u(e).then((function(e){t.tableData=e.result.resultList||[],t.fail=e.result.fail,t.success=e.result.success})).catch((function(t){}))}},watch:{detailShow:function(t,e){var a=this;a.customDialog=t},auditIds:function(t,e){var a=this;t&&(a.multLength=t.split(",").length,a.getTableData())}}},d=c,f=(a("7054"),a("2877")),p=Object(f["a"])(d,o,l,!1,null,"238712f0",null),g=p.exports,m=a("5b4e6"),h=a("d157"),v=a("e230"),b=v["a"].getStaffDetail,w=r["a"].getReview,C=r["a"].getWxEnterprise,D=r["a"].postAudit,_=r["a"].postBatchApprove,y=r["a"].postRefuse,S=r["a"].getAuditDetail,x={name:"UnreviewPage",components:{storeChange:n["a"],reviewResultDetail:g},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",auditType:"",filterBrand:"",brandOptions:[],searchValue:"",filterOptions:[{label:"全部事项",value:""},{label:"导购账号绑定",value:"1"},{label:"导购账号新增",value:"3"}],loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{beforeContent:[],afterContent:[]},approveVisible:!1,refuseVisible:!1,detailShow:!1,resultShow:!1,tableListData:[],resultText:"",failCount:"0",userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1},dialogVisible:!1,loadBtn:!1,timeFlag:null,loadingFull:""}},mounted:function(){var t=this;t.$emit("showTab","/unreview"),t.getTableList(),t.getBrandData()},beforeDestroy:function(){window.clearInterval(this.timeFlag),this.timeFlag=null},methods:{clearSearch:function(){var t=this;t.currentPage=1,t.getTableList()},changeTableList:function(){var t=this;t.currentPage=1,t.getTableList()},searchEnterFun:Object(h["a"])((function(t){var e=this,a=String(t.target.value).trim();if(!a)return!1;e.currentPage=1,e.getTableList()}),200),hideDetailDialog:function(){var t=this;t.detailShow=!1,t.currentPage=1,t.getTableList()},handleSelectionChange:function(t){var e=this;e.multipleSelection=t},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},handleClick:function(t,e,a){var i=this;if(i.selectId=e.auditId,a&&(i.refuseVisible=!0),a)return!1;i.$confirm("是否确认同意?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i.sendApprove()})).catch((function(){i.selectId=""}))},sendApprove:Object(h["a"])((function(){var t=this;t.postApprove(t.selectId)}),500),postApprove:function(t){var e=this,a={auditId:t,auditName:e.auditName};D(a).then((function(t){"0000"==t.code?(m["a"].showmsg("操作成功","success"),e.approveVisible=!1,e.currentPage=1,e.getTableList(),e.$forceUpdate()):(e.currentPage=1,e.getTableList(),e.$message({message:t.message||"接口异常",type:"warning"}))})).catch((function(t){}))},approveAll:function(){var t=this,e=t.multipleSelection.length?t.multipleSelection.map((function(t){return t.auditId})).join(","):"";if(!e)return t.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;t.dialogVisible=!0},postAllApprove:function(t){var e=this;e.loadBtn=!0;var a={auditIds:t,auditName:e.auditName};_(a).then((function(t){e.loadBtn=!1,"0000"==t.code?(e.dialogVisible=!1,e.$nextTick((function(){e.loadingFull=e.$loading({lock:!0,text:"数据处理中,请耐心等待",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),window.clearInterval(e.timeFlag),e.timeFlag=null,e.timeFlag=window.setInterval((function(){e.getDetailFlag()}),3e3),e.$once("hook:beforeDestroy",(function(){window.clearInterval(e.timeFlag),e.timeFlag=null}))}))):e.$message({message:t.message||"接口异常",type:"warning"})})).catch((function(t){e.loadBtn=!1}))},getDetailFlag:function(){var t=this,e={auditIds:t.multipleSelection.map((function(t){return t.auditId})).join(",")||""};S(e).then((function(e){e.result.auditResult?(t.auditIds=t.multipleSelection.map((function(t){return t.auditId})).join(","),t.loadingFull.close(),window.clearInterval(t.timeFlag),t.timeFlag=null,t.detailShow=!0,t.currentPage=1,t.getTableList()):t.detailShow=!1})).catch((function(t){}))},cancelRefuse:function(t){var e=this;e.refuseVisible=!1,e.$refs["ruleForm"].resetFields()},sendRefuse:Object(h["a"])((function(t){var e=this;e.$refs[t].validate((function(t){if(!t)return!1;e.postRefuseData()}))}),500),postRefuseData:function(){var t=this,e={auditName:t.auditName,auditId:t.selectId,reason:Object(h["c"])(t.ruleForm.refuseReason)};y(e).then((function(e){"0000"==e.code?(m["a"].showmsg("操作成功","success"),t.refuseVisible=!1,t.$refs["ruleForm"].resetFields(),t.currentPage=1,t.getTableList()):(t.$message({message:e.message||"接口异常",type:"warning"}),t.currentPage=1,t.getTableList())})).catch((function(e){t.$message.error({duration:1e3,message:e.message})}))},showSingleInfo:function(t){var e=this,a={staffId:t};b(a).then((function(t){e.userData=t.result||{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}})).catch((function(t){}))},showStoreChange:function(t){var e=this;e.storeChangeData={beforeContent:[],afterContent:[]},e.showStoreDialog=!0,e.storeChangeData={beforeContent:""!=t.oldValue?t.oldValue.split(","):[],afterContent:""!=t.newValue?t.newValue.split(","):[]}},getBrandData:function(){var t=this;C({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){t.brandOptions=e.result||[]})).catch((function(t){}))},getTableList:function(){var t=this;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId,auditType:t.auditType,searchType:"0",search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.filterBrand};w(e).then((function(e){t.loading=!1,t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(e){t.loading=!1}))}}},F=x,I=(a("7e16"),Object(f["a"])(F,i,s,!1,null,"8fc3a900",null));e["default"]=I.exports},3236:function(t,e,a){"use strict";var i=a("910d"),s=a.n(i);s.a},"45db":function(t,e,a){},"5b4e6":function(t,e,a){"use strict";var i=a("5c96");e["a"]={showmsg:function(t,e){Object(i["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},6300:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,(function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]}))],2)])]),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,(function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]}))],2)])])],1)],1)])],1)},s=[],n={name:"StoreChangeDialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},mounted:function(){var t=this;t.leftData=t.storeChangeData.beforeContent,t.rightData=t.storeChangeData.afterContent},methods:{handleCardClose:function(){var t=this;t.customCancel()},customCancel:function(){var t=this;t.customDialog=!1,t.$emit("input",t.customDialog)}},watch:{value:function(t,e){var a=this;a.customDialog=t},storeChangeData:function(t,e){var a=this;a.leftData=t.beforeContent,a.rightData=t.afterContent}}},o=n,l=(a("3236"),a("2877")),r=Object(l["a"])(o,i,s,!1,null,"19a03e61",null);e["a"]=r.exports},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},7054:function(t,e,a){"use strict";var i=a("9181"),s=a.n(i);s.a},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));a("ac6a"),a("456d");var i=a("b775");function s(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var s=t[a];"string"===typeof s&&(s={url:s}),s.url="".concat(e).concat(s.url),t[a]=function(t){return Object(i["a"])(s,t)}})),t}},"7e16":function(t,e,a){"use strict";var i=a("45db"),s=a.n(i);s.a},"910d":function(t,e,a){},9181:function(t,e,a){},"96b6":function(t,e,a){"use strict";var i=a("71f6"),s={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};s=Object(i["a"])(s,"/hb-manage-web"),e["a"]=s},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return n}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function i(t,e){var a,i=e||200;return function(){var e=this,s=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,s)}),i)}}function s(t,e){var a,i,s=e||200;return function(){var e=this,n=arguments,o=+new Date;a&&o-a<s?(clearTimeout(i),i=setTimeout((function(){a=o,t.apply(e,n)}),s)):(a=o,t.apply(e,n))}}function n(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},e230:function(t,e,a){"use strict";var i=a("71f6"),s={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/nationcode/get-nationcode-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};s=Object(i["a"])(s,"/hb-manage-web"),e["a"]=s}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ece0aea"],{"4cd9":function(t,e,a){},"5b4e6":function(t,e,a){"use strict";var s=a("5c96");e["a"]={showmsg:function(t,e){Object(s["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));a("ac6a"),a("456d");var s=a("b775");function r(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var r=t[a];"string"===typeof r&&(r={url:r}),r.url="".concat(e).concat(r.url),t[a]=function(t){return Object(s["a"])(r,t)}})),t}},a30a:function(t,e,a){"use strict";var s=a("71f6"),r={wxEnterpriseRefresh:"/setting/wx-enterprise-info-flush",wxEnterpriseDetail:"/setting/wx-enterprise-info",getSelfApp:"/setting/secret-list",addSelfApp:{url:"/setting/set-secret",method:"post",useFormData:!0,useIntercept:!1},editSelfApp:{url:"/setting/set-secret",method:"post",useFormData:!0,useIntercept:!1},delSelfApp:{url:"/setting/del-secret",method:"post",useFormData:!0,useIntercept:!1},refreshSelfApp:{url:"/setting/reflush-secret",method:"post",useFormData:!0},getAdmin:"/setting/super-admin-list"};r=Object(s["a"])(r,"/hb-manage-web"),e["a"]=r},a86a:function(t,e,a){"use strict";var s=a("4cd9"),r=a.n(s);r.a},b735:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"company-set-content border-box"},[a("div",{staticClass:"company-title m-b-20 flex flex-space-between"},[a("div",{staticClass:"line-h-32"},[a("span",{staticClass:"color-303133 font-14 font-w-600"},[t._v("企业微信基本信息")]),a("el-button",{staticClass:"m-l-20",attrs:{type:"text",loading:t.loadRefesh},on:{click:t.refeshData}},[t._v("同步刷新 ")])],1)]),a("div",{staticClass:"company-info-body"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"105px"}},[a("el-form-item",{attrs:{label:"小程序版本"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.smallVersion||"免费版"))])]),a("el-form-item",{attrs:{label:"企业名称"}},[a("span",{staticClass:"font-14 color-303133 p-r-10"},[t._v(t._s(t.companyObj.wxEnterpriseName||"--"))]),a("el-tag",[t._v(" "+t._s("verified"==t.companyObj.corpType?"已认证":"未认证"))]),"verified"==t.companyObj.corpType?a("span",{staticClass:"p-l-10 font-12 color-909399"},[t._v("认证到期 "+t._s(t._f("timeStampToYmd")(t.companyObj.verifiedEndTime)))]):t._e()],1),a("el-form-item",{attrs:{label:"企业ID"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpId||"--"))])]),a("el-form-item",{attrs:{label:"行业类型"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpIndustry||"--")+" / "+t._s(t.companyObj.corpSubIndustry||"--"))])]),a("el-form-item",{attrs:{label:"人员规模"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpScale||"0人"))])]),a("el-form-item",{attrs:{label:"地址"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.location||"--"))])])],1)],1),t._m(0),a("div",{staticClass:"company-info-body secret-body"},[a("div",{staticClass:"m-b-20 secret-cell flex"},[a("div",{staticClass:" secret-cell-title"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"用于获取登录小程序用户的手机号/姓名/部门信息。必填项",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 common-bottom-border"},[t._v("自建应用:")])])],1),a("div",[t._l(t.tableData,(function(e,s){return a("div",{key:s+"app",staticClass:"self-app-info"},[a("div",{staticClass:"self-app-item secret-name flex flex-space-between"},[a("div",[a("span",{staticClass:"font-14 color-303133 font-w-600 secret-name-span"},[t._v(t._s(e.secretName||"--"))]),a("span",{staticClass:"font-12 color-606266 p-l-15"},[t._v("编辑时间:"+t._s(t._f("formatTimeStamp")(e.updateTime)))])]),a("div",[a("el-button",{attrs:{type:"text",loading:t.loadApp},on:{click:function(a){return t.refreshApp(e)}}},[t._v("同步刷新")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEdit(e)}}},[t._v("编辑")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDel(e)}}},[t._v("删除")])],1)]),a("div",{staticClass:"m-t-10"},[a("el-form",{ref:"form",refInFor:!0,attrs:{"label-width":"110px"}},[a("el-form-item",{attrs:{label:"Agentld"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.agentId))])]),a("el-form-item",{attrs:{label:"Secret"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.secretVal))]),a("span",{staticClass:"p-l-15 font-14 color-303133"},[a("span",{class:["iconfont",e.checkFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.checkFlag?"校验成功":"校验失败"))])])]),a("el-form-item",{attrs:{label:"应用可见范围"}},t._l(e.displayRange,(function(s,r){return a("span",{key:r+"child",staticClass:"font-14 color-303133 inline-block"},[t._v(t._s(s.name)+" "+t._s(e.displayRange.length>1?";":""))])})),0)],1)],1)])})),t.tableData.length?t._e():a("div",{staticClass:"add-self-app font-14 color-606266 cursor-pointer",on:{click:t.addSecret}},[a("span",{staticClass:"iconfont icontianjiajiahaowubiankuang font-12"}),a("span",{staticClass:"p-l-10"},[t._v("添加")])])],2)])])]),t.addShow?a("add-self-app",{attrs:{"edit-row":t.editRow},on:{closeText:t.closeText,submitText:t.submitText}}):t._e()],1)},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"company-title m-b-20 m-t-30"},[a("span",{staticClass:"color-303133 font-14 font-w-600"},[t._v("客户密钥维护")])])}],n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:(t.editRow.materialId,"自建应用"),visible:t.dialogVisible,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"应用名称",prop:"secretName"}},[a("el-input",{staticClass:"w-440",attrs:{type:"text","max-length":"30"},model:{value:t.ruleForm.secretName,callback:function(e){t.$set(t.ruleForm,"secretName",e)},expression:"ruleForm.secretName"}}),a("span",{staticClass:"input-cell-tip"},[t._v(t._s(t.ruleForm.secretName.length)+"/30")])],1),a("el-form-item",{attrs:{label:"Agentld",prop:"agentId"}},[a("el-input",{staticClass:"w-440",attrs:{type:"textarea",rows:"3","max-length":"30"},model:{value:t.ruleForm.agentId,callback:function(e){t.$set(t.ruleForm,"agentId",e)},expression:"ruleForm.agentId"}}),a("span",{staticClass:"input-cell-tip top-40"},[t._v(t._s(t.ruleForm.agentId.length)+"/30")])],1),a("el-form-item",{attrs:{label:"Secret",prop:"secretVal"}},[a("el-input",{staticClass:"w-440",attrs:{type:"textarea",rows:"3","max-length":"100"},model:{value:t.ruleForm.secretVal,callback:function(e){t.$set(t.ruleForm,"secretVal",e)},expression:"ruleForm.secretVal"}}),a("span",{staticClass:"input-cell-tip top-40"},[t._v(t._s(t.ruleForm.secretVal.length)+"/100")])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.toCancel}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loadBtn},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v("确认")])],1)])},o=[],c=(a("ac6a"),a("456d"),a("d157")),l=a("a30a"),i=a("5b4e6"),u=l["a"].addSelfApp,p={name:"AddSelfApp",props:{editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},data:function(){return{dialogVisible:!0,ruleForm:{secretName:"",secretVal:"",agentId:"",secretId:""},rules:{secretName:[{required:!0,message:"请输入应用名称",trigger:"blur"}],secretVal:[{required:!0,message:"请输入secret",trigger:"blur"}],agentId:[{required:!0,message:"请输入Agentld",trigger:"blur"}]},loadBtn:!1,brandOptions:[]}},mounted:function(){var t=this;Object.keys(t.editRow).length&&(t.ruleForm=JSON.parse(JSON.stringify(t.editRow)))},methods:{toCancel:function(){var t=this;t.$emit("closeText"),t.$refs["ruleForm"].resetFields()},handleClose:function(t){var e=this;e.$emit("closeText"),e.$refs["ruleForm"].resetFields()},submitForm:Object(c["a"])((function(t){var e=this;e.$refs[t].validate((function(t){t&&e.postSave()}))}),300),postSave:function(){var t=this;t.loadBtn=!0;var e={agentId:Object(c["c"])(t.ruleForm.agentId),secretName:Object(c["c"])(t.ruleForm.secretName),secretVal:Object(c["c"])(t.ruleForm.secretVal),secretId:t.ruleForm.secretId,secretType:3};u(e).then((function(e){t.loadBtn=!1,"0000"==e.code?(i["a"].showmsg("操作成功","success"),t.$refs["ruleForm"].resetFields(),t.$emit("submitText")):(t.$message({message:e.message||"未知错误",type:"warning"}),t.$emit("submitText"))})).catch((function(e){t.loadBtn=!1}))}},watch:{editRow:function(t){var e=this;Object.keys(t).length&&(e.ruleForm=JSON.parse(JSON.stringify(t)))}}},f=p,d=(a("bb19"),a("2877")),m=Object(d["a"])(f,n,o,!1,null,"ec183a12",null),b=m.exports,g=l["a"].wxEnterpriseRefresh,h=l["a"].wxEnterpriseDetail,v=l["a"].getSelfApp,w=l["a"].delSelfApp,F=l["a"].refreshSelfApp,y={name:"EnterpriseSetPage",components:{addSelfApp:b},data:function(){return{checkShow:!0,tipText:"请在企业密钥维护中输入对应的secret",wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",companyObj:{smallVersion:"",corpName:"",corpId:"",contactFlag:!1,verifiedEndTime:"",corpIndustry:"",corpSubIndustry:"",corpUserMax:"",location:""},loadRefesh:!1,tableData:[],addShow:!1,editRow:{},loadApp:!1}},mounted:function(){var t=this;t.$emit("showTab","/enterpriseSet"),document.documentElement.style.backgroundColor="#f0f2f5",t.getData(),t.getApp()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{addSecret:function(){var t=this;t.addShow=!0,t.editRow={}},toEdit:function(t){var e=this;e.addShow=!0,e.editRow=JSON.parse(JSON.stringify(t))},closeText:function(){var t=this;t.addShow=!1,t.editRow={}},submitText:function(){var t=this;t.addShow=!1,t.editRow={},t.getApp()},refreshApp:function(t){var e=this;e.loadApp=!0;var a={secretId:t.secretId};F(a).then((function(t){e.loadApp=!1,"0000"==t.code?(i["a"].showmsg("刷新成功","success"),e.getApp()):(i["a"].showmsg(t.message,"warning"),e.getApp())})).catch((function(t){e.loadApp=!1}))},toDel:function(t){var e=this;e.$confirm("确定删除当前自建应用?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.postDel(t)})).catch((function(){}))},postDel:function(t){var e=this,a={secretId:t.secretId};w(a).then((function(t){"0000"==t.code?(i["a"].showmsg("删除成功","success"),e.getApp()):(e.$message({message:t.message||"接口异常",type:"warning"}),e.getApp())})).catch((function(t){}))},refeshData:function(){var t=this;t.refreshData()},refreshData:function(){var t=this;t.loadRefesh=!0;var e={wxEnterpriseId:t.wxEnterpriseId};g(e).then((function(e){t.loadRefesh=!1,"0000"==e.code&&i["a"].showmsg("刷新成功","success"),t.getData()})).catch((function(e){t.loadRefesh=!1}))},getApp:function(){var t=this,e={secretType:3};v(e).then((function(e){t.tableData=e.result||[]})).catch((function(t){}))},getData:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};h(e).then((function(e){t.companyObj=e.result||{}})).catch((function(t){}))}}},_=y,x=(a("a86a"),Object(d["a"])(_,s,r,!1,null,"c1faccc4",null));e["default"]=x.exports},bb19:function(t,e,a){"use strict";var s=a("f052"),r=a.n(s);r.a},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function s(t,e){var a,s=e||200;return function(){var e=this,r=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,r)}),s)}}function r(t,e){var a,s,r=e||200;return function(){var e=this,n=arguments,o=+new Date;a&&o-a<r?(clearTimeout(s),s=setTimeout((function(){a=o,t.apply(e,n)}),r)):(a=o,t.apply(e,n))}}function n(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},f052:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-61797ed2"],{"226d":function(e,t,a){"use strict";var r=a("a31a"),s=a.n(r);s.a},"3cf8":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-app-right"},[a("div",{staticClass:"customer-data-body"},[a("div",{staticClass:"m-b-10"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.showAllOrderFlag,callback:function(t){e.$set(e.customerShowData,"showAllOrderFlag",t)},expression:"customerShowData.showAllOrderFlag"}},[e._v("展示所有门店的订单")]),a("div",{staticClass:"font-12 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看顾客在本店以外的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.showMallOrderFlag,callback:function(t){e.$set(e.customerShowData,"showMallOrderFlag",t)},expression:"customerShowData.showMallOrderFlag"}},[e._v("展示微商城的订单")]),a("div",{staticClass:"font-12 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看顾客在微商城的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.showWmOrderFlag,callback:function(t){e.$set(e.customerShowData,"showWmOrderFlag",t)},expression:"customerShowData.showWmOrderFlag"}},[e._v("展示微盟商城的订单")]),a("div",{staticClass:"font-12 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看顾客在微盟商城的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选后将会在“顾客详情页”进行显示",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20 common-bottom-border"},[e._v("导购联系顾客方式:")])]),a("el-checkbox",{model:{value:e.customerShowData.clerkAddMemberFlag,callback:function(t){e.$set(e.customerShowData,"clerkAddMemberFlag",t)},expression:"customerShowData.clerkAddMemberFlag"}},[e._v("添加会员/发消息")]),a("el-checkbox",{model:{value:e.customerShowData.clerkContactPhoneFlag,callback:function(t){e.$set(e.customerShowData,"clerkContactPhoneFlag",t)},expression:"customerShowData.clerkContactPhoneFlag"}},[e._v("电话")]),a("el-checkbox",{model:{value:e.customerShowData.clerkContactSmsFlag,callback:function(t){e.$set(e.customerShowData,"clerkContactSmsFlag",t)},expression:"customerShowData.clerkContactSmsFlag"}},[e._v("短信")])],1),a("div",{staticClass:"m-t-46 p-l-20"},[a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.submit}},[e._v("保存")])],1)])])},s=[],o=(a("ac6a"),a("d11a")),c=a("d157"),u=a("5b4e6"),l=o["a"].getCustomerSet,n=o["a"].saveCustomerSet,m={name:"CustomerDataSet",components:{},props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",customerShowData:{showAllOrderFlag:!1,showMallOrderFlag:!1,showWmOrderFlag:!1,clerkContactPhoneFlag:!1,clerkContactSmsFlag:!1,clerkAddMemberFlag:!1},loading:!1}},mounted:function(){var e=this;e.$emit("showTab","/customer-data-set"),e.brandId&&e.getCustomerData()},methods:{submit:Object(c["a"])((function(){var e=this;e.loading=!0,e.setData()}),500),setData:function(){var e=this,t=[];for(var a in e.customerShowData)e.customerShowData[a]&&t.push(a);var r={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,openCodes:t.join(","),switchType:1};n(r).then((function(t){e.loading=!1,e.getCustomerData(),"0000"==t.code?u["a"].showmsg("操作成功","success"):u["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){e.loading=!1}))},getCustomerData:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,switchType:"1"};l(t).then((function(t){t.result&&t.result.length?t.result.forEach((function(t){e.customerShowData[t.switchCode]=1==t.switchFlag})):e.customerShowData={showAllOrderFlag:!1,showMallOrderFlag:!1,showWmOrderFlag:!1,clerkContactPhoneFlag:!1,clerkContactSmsFlag:!1,clerkAddMemberFlag:!1}})).catch((function(e){}))}},watch:{brandId:function(e){var t=this;e&&t.getCustomerData()}}},i=m,d=(a("226d"),a("2877")),g=Object(d["a"])(i,r,s,!1,null,"e88381a0",null);t["default"]=g.exports},"5b4e6":function(e,t,a){"use strict";var r=a("5c96");t["a"]={showmsg:function(e,t){Object(r["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},"71f6":function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));a("ac6a"),a("456d");var r=a("b775");function s(e,t){e=e||{};var a=Object.keys(e);return a.forEach((function(a){var s=e[a];"string"===typeof s&&(s={url:s}),s.url="".concat(t).concat(s.url),e[a]=function(e){return Object(r["a"])(s,e)}})),e}},a31a:function(e,t,a){},d11a:function(e,t,a){"use strict";var r=a("71f6"),s={getGroupList:"/member/store-group",getStoreList:"/member/store-list",getAssignStatus:"/member/check-distribute",getNavChain:"/member/crumb-list",getMemberList:{url:"/member/member-list",method:"post",useFormData:!0},getListBrand:"/member/list-brand",getClerkList:"/member/clerk-list",getMemberCount:"",saveAssign:{url:"/member/distribute-member",method:"post"},getMemberData:"/member/dimension-detail",saveSortMember:{url:"/member/dimension-save",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"/member/switch-list",saveShowSet:{url:"/member/switch-setting",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"/member/switch-list",saveCustomerSet:{url:"/member/switch-setting",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"/member/member-group-hb-list",getClassifyData:"/member/member-group-category-list",postSortGroup:{url:"/member/member-group-sort",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"/member/member-group-list",saveSync:{url:"/member/member-group-save",method:"post",useFormData:!0,useIntercept:!1},delCrowd:{url:"/member/member-group-del",method:"post",useFormData:!0,useIntercept:!1},getVisiable:"/visiable-range-view",saveVisiable:{url:"/visiable-range-save",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"/tag-category-list",getTagLicense:"/member-tag-license",addClassify:{url:"/tag-category-add",method:"post",useFormData:!0,useIntercept:!1},delClassify:{url:"/tag-category-del",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"/member-tag-list",addClerkTag:{url:"/member-tag-add",method:"post",useFormData:!0,useIntercept:!1},getTagDetail:"/member-tag-detail",editClerkTag:{url:"/member-tag-edit",method:"post",useFormData:!0,useIntercept:!1},delClerkTag:{url:"/tag-del",method:"post",useFormData:!0,useIntercept:!1},sortClerkTag:{url:"/member-tag-sort",method:"post",useFormData:!0,useIntercept:!1},getTagVisiable:"/visiable-range-view",saveTagVisiable:{url:"/visiable-range-save",method:"post",useFormData:!0,useIntercept:!1}};s=Object(r["a"])(s,"/hb-app-customer-web"),t["a"]=s},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return o}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function r(e,t){var a,r=t||200;return function(){var t=this,s=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(t,s)}),r)}}function s(e,t){var a,r,s=t||200;return function(){var t=this,o=arguments,c=+new Date;a&&c-a<s?(clearTimeout(r),r=setTimeout((function(){a=c,e.apply(t,o)}),s)):(a=c,e.apply(t,o))}}function o(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-65356317"],{"28a5":function(e,t,n){"use strict";var a=n("aae3"),o=n("cb7c"),r=n("ebd6"),i=n("0390"),s=n("9def"),c=n("5f1b"),u=n("520a"),l=n("79e5"),f=Math.min,h=[].push,d="split",m="length",p="lastIndex",g=4294967295,v=!l((function(){RegExp(g,"y")}));n("214f")("split",2,(function(e,t,n,l){var w;return w="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[m]||2!="ab"[d](/(?:ab)*/)[m]||4!="."[d](/(.?)(.?)/)[m]||"."[d](/()()/)[m]>1||""[d](/.?/)[m]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(o,e,t);var r,i,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=void 0===t?g:t>>>0,v=new RegExp(e.source,l+"g");while(r=u.call(v,o)){if(i=v[p],i>f&&(c.push(o.slice(f,r.index)),r[m]>1&&r.index<o[m]&&h.apply(c,r.slice(1)),s=r[0][m],f=i,c[m]>=d))break;v[p]===r.index&&v[p]++}return f===o[m]?!s&&v.test("")||c.push(""):c.push(o.slice(f)),c[m]>d?c.slice(0,d):c}:"0"[d](void 0,0)[m]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,a){var o=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,o,a):w.call(String(o),n,a)},function(e,t){var a=l(w,e,this,t,w!==n);if(a.done)return a.value;var u=o(e),h=String(this),d=r(u,RegExp),m=u.unicode,p=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(v?"y":"g"),b=new d(v?u:"^(?:"+u.source+")",p),C=void 0===t?g:t>>>0;if(0===C)return[];if(0===h.length)return null===c(b,h)?[h]:[];var x=0,N=0,O=[];while(N<h.length){b.lastIndex=v?N:0;var S,y=c(b,v?h:h.slice(N));if(null===y||(S=f(s(b.lastIndex+(v?0:N)),h.length))===x)N=i(h,N,m);else{if(O.push(h.slice(x,N)),O.length===C)return O;for(var I=1;I<=y.length-1;I++)if(O.push(y[I]),O.length===C)return O;N=x=S}}return O.push(h.slice(x)),O}]}))},"50c8":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"enterprise-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName,"current-menu-code":e.currentMenuCode},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),n("div",{staticClass:"enterprise-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},o=[],r=n("f777"),i={name:"EnterprisePage",components:{vueOfficeHeader:r["a"]},data:function(){return{projectName:"haoban-manage-web",currentMenuCode:"contactsList",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},mounted:function(){var e=this;e.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},methods:{toRouterView:function(e){var t=this;t.$router.push({path:e.path})},collapseTag:function(e){var t=this;t.collapseFlag=e}},watch:{$route:{handler:function(e,t){var n=this;n.currentMenuCode="contactsList"},deep:!0}}},s=i,c=(n("ef14"),n("2877")),u=Object(c["a"])(s,a,o,!1,null,"08da1fc0",null);t["default"]=u.exports},5937:function(e,t,n){"use strict";var a=n("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(a["a"])(o,"/hb-manage-web"),t["a"]=o},"6ce2":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("ac6a"),n("456d");var a=n("b775");function o(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var o=e[n];"string"===typeof o&&(o={url:o}),o.url="".concat(t).concat(o.url),e[n]=function(e){return Object(a["a"])(o,e)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),o={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};o=Object(a["a"])(o,"/hb-manage-web/auth"),t["a"]=o},e22b:function(e,t,n){"use strict";var a=n("ea9b"),o=n.n(a);o.a},e876:function(e,t,n){},ea9b:function(e,t,n){},ef14:function(e,t,n){"use strict";var a=n("e876"),o=n.n(a);o.a},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)||e.currentMenuCode==t.menuCode?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},o=[],r=(n("456d"),n("96cf"),n("1da1")),i=(n("ac6a"),n("28a5"),n("7ded")),s=n("5937"),c=s["a"].getRoleMenu,u=i["a"].getUserInfo,l=i["a"].loginOut,f={name:"VueOfficeHeader",components:{},props:{currentMenuCode:{type:String,default:""}},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl));else{t.setLeftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0])})),t.$router.push(n.menuUrl)}},setLeftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){l({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(e){}))})).catch((function(){}))},toLogin:function(){var e=this;u({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={appType:1};c(t).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(n){var a,o,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],o={},r={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(o=t),e.$route.path==t.menuUrl&&1!=t.level&&(r=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(r).length&&2==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(o=e)})),i={},Object.keys(r).length&&3==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(i=e)})),Object.keys(i).length&&2==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(o=e)})),e.setLeftData(o);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},h=f,d=(n("e22b"),n("2877")),m=Object(d["a"])(h,a,o,!1,null,"26c74afb",null);t["a"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-69be4950"],{"28a5":function(e,t,n){"use strict";var a=n("aae3"),r=n("cb7c"),o=n("ebd6"),i=n("0390"),u=n("9def"),c=n("5f1b"),s=n("520a"),l=n("79e5"),p=Math.min,h=[].push,f="split",d="length",m="lastIndex",g=4294967295,v=!l((function(){RegExp(g,"y")}));n("214f")("split",2,(function(e,t,n,l){var b;return b="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[d]||2!="ab"[f](/(?:ab)*/)[d]||4!="."[f](/(.?)(.?)/)[d]||"."[f](/()()/)[d]>1||""[f](/.?/)[d]?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(r,e,t);var o,i,u,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,f=void 0===t?g:t>>>0,v=new RegExp(e.source,l+"g");while(o=s.call(v,r)){if(i=v[m],i>p&&(c.push(r.slice(p,o.index)),o[d]>1&&o.index<r[d]&&h.apply(c,o.slice(1)),u=o[0][d],p=i,c[d]>=f))break;v[m]===o.index&&v[m]++}return p===r[d]?!u&&v.test("")||c.push(""):c.push(r.slice(p)),c[d]>f?c.slice(0,f):c}:"0"[f](void 0,0)[d]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,a){var r=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,r,a):b.call(String(r),n,a)},function(e,t){var a=l(b,e,this,t,b!==n);if(a.done)return a.value;var s=r(e),h=String(this),f=o(s,RegExp),d=s.unicode,m=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(v?"y":"g"),w=new f(v?s:"^(?:"+s.source+")",m),C=void 0===t?g:t>>>0;if(0===C)return[];if(0===h.length)return null===c(w,h)?[h]:[];var x=0,N=0,I=[];while(N<h.length){w.lastIndex=v?N:0;var D,y=c(w,v?h:h.slice(N));if(null===y||(D=p(u(w.lastIndex+(v?0:N)),h.length))===x)N=i(h,N,d);else{if(I.push(h.slice(x,N)),I.length===C)return I;for(var S=1;S<=y.length-1;S++)if(I.push(y[S]),I.length===C)return I;N=x=D}}return I.push(h.slice(x)),I}]}))},5937:function(e,t,n){"use strict";var a=n("71f6"),r={getRoleMenu:"/list-staff-role-menu"};r=Object(a["a"])(r,"/hb-manage-web"),t["a"]=r},"6ce2":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("ac6a"),n("456d");var a=n("b775");function r(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var r=e[n];"string"===typeof r&&(r={url:r}),r.url="".concat(t).concat(r.url),e[n]=function(e){return Object(a["a"])(r,e)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),r={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};r=Object(a["a"])(r,"/hb-manage-web/auth"),t["a"]=r},"7f2e":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"enterprise-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName,"current-menu-code":e.currentMenuCode},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),n("div",{staticClass:"enterprise-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view",{attrs:{"app-menu-data":e.appMenuData}})],1)],1)])])],1)},r=[],o=(n("96cf"),n("1da1")),i=n("f777"),u=n("5937"),c=u["a"].getRoleMenu,s={name:"AppIndexPage",components:{vueOfficeHeader:i["a"]},data:function(){return{projectName:"haoban-manage-web",currentMenuCode:"app-controls",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px",appMenuData:[]}},beforeRouteEnter:function(e,t,n){n((function(e){e.getData()}))},mounted:function(){var e=this;e.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},methods:{treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),2==t.level&&1==t.isShow}));return t},getData:function(){var e=this,t={menuId:e.$route.query.applicationId,appType:2};c(t).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n.result&&n.result.length){t.next=3;break}return e.$router.push("/app-list"),t.abrupt("return",!1);case 3:return t.next=5,e.treeData(JSON.parse(JSON.stringify(n.result)));case 5:if(e.appMenuData=t.sent,!(e.appMenuData[0]&&e.appMenuData[0].children&&e.appMenuData[0].children.length&&e.appMenuData[0].children[0].children&&e.appMenuData[0].children[0].children.length)){t.next=9;break}return e.$router.push("".concat(e.appMenuData[0].children[0].children[0].menuUrl,"?applicationId=").concat(e.$route.query.applicationId)),t.abrupt("return",!1);case 9:if(!(e.appMenuData[0]&&e.appMenuData[0].children&&e.appMenuData[0].children.length)){t.next=12;break}return e.$router.push("".concat(e.appMenuData[0].children[0].menuUrl,"?applicationId=").concat(e.$route.query.applicationId)),t.abrupt("return",!1);case 12:e.$router.push("".concat(e.appMenuData[0].menuUrl,"?applicationId=").concat(e.$route.query.applicationId));case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))},toRouterView:function(e){var t=this;t.$router.push({path:e.path})},collapseTag:function(e){var t=this;t.collapseFlag=e}},computed:{}},l=s,p=(n("edc1"),n("2877")),h=Object(p["a"])(l,a,r,!1,null,"26d61992",null);t["default"]=h.exports},c5fd:function(e,t,n){},e22b:function(e,t,n){"use strict";var a=n("ea9b"),r=n.n(a);r.a},ea9b:function(e,t,n){},edc1:function(e,t,n){"use strict";var a=n("c5fd"),r=n.n(a);r.a},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)||e.currentMenuCode==t.menuCode?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},r=[],o=(n("456d"),n("96cf"),n("1da1")),i=(n("ac6a"),n("28a5"),n("7ded")),u=n("5937"),c=u["a"].getRoleMenu,s=i["a"].getUserInfo,l=i["a"].loginOut,p={name:"VueOfficeHeader",components:{},props:{currentMenuCode:{type:String,default:""}},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl));else{t.setLeftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0])})),t.$router.push(n.menuUrl)}},setLeftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){l({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(e){}))})).catch((function(){}))},toLogin:function(){var e=this;s({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={appType:1};c(t).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){var a,r,o,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],r={},o={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(r=t),e.$route.path==t.menuUrl&&1!=t.level&&(o=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(o).length&&2==o.level&&n.result.forEach((function(e){o.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),i={},Object.keys(o).length&&3==o.level&&n.result.forEach((function(e){o.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(i=e)})),Object.keys(i).length&&2==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),e.setLeftData(r);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},h=p,f=(n("e22b"),n("2877")),d=Object(f["a"])(h,a,r,!1,null,"26c74afb",null);t["a"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6a4fb8b3"],{"29b6":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-wrap border-box"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,(function(e,n){return[e.path?[a("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[a("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]}))],2)],1)},o=[],s={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(t,e){var a=this;e?window.location.href=t:a.$router.push(t)}}},l=s,r=(a("6b4b"),a("2877")),i=Object(r["a"])(l,n,o,!1,null,"2c2a2724",null);e["a"]=i.exports},3081:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-alert-tip"},[a("div",{style:{"min-width":t.width}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")]),t.tipTwoContent?a("div",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipTwoContent)+"\n ")]):t._e()])])])])},o=[],s={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""},tipTwoContent:{type:String,default:""}},data:function(){return{}}},l=s,r=a("2877"),i=Object(r["a"])(l,n,o,!1,null,"537f2e35",null);e["a"]=i.exports},"6b4b":function(t,e,a){"use strict";var n=a("76d4"),o=a.n(n);o.a},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("ac6a"),a("456d");var n=a("b775");function o(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(e).concat(o.url),t[a]=function(t){return Object(n["a"])(o,t)}})),t}},"73d2":function(t,e,a){"use strict";var n=a("f102"),o=a.n(n);o.a},"76d4":function(t,e,a){},"8fac":function(t,e,a){},b155:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content-right"},[a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"绑定变更日志",name:"first"}},[a("div",{staticClass:"flex flex-space-between"},[a("div",{},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入导购手机号或代码","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e,t.searchInput)}(e)}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeBindList},model:{value:t.optType,callback:function(e){t.optType=e},expression:"optType"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),a("el-option",{attrs:{label:"绑定",value:"0"}}),a("el-option",{attrs:{label:"解绑",value:"1"}})],1)],1),a("common-alert-tip",{attrs:{width:"284px","tip-content":t.tipContent}})],1),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableBindData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(0==e.row.optType?"绑定":"解绑"))]}}])}),a("el-table-column",{attrs:{label:"导购账号"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top",width:"242",trigger:"hover"}},[a("div",[a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266"},[t._v("姓名")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.clerkName||"--")+"("+t._s(1==e.row.sex?"男":2==e.row.sex?"女":"--")+" )")])]),a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266"},[t._v("手机号")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.clerkNationCode||"--")+"-"+t._s(e.row.clerkPhoneNumber||"--"))])]),a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266 min-w-90"},[t._v("所在门店")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.storeName||"--"))])])]),a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(e.row.clerkName||"--")+"("+t._s(e.row.clerkCode||"--")+")")])])]}}])}),a("el-table-column",{attrs:{label:"企微账号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxUserId||"--"))]}}])}),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.phoneNumber||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]),a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"操作人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.optStaffName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1001==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("后台管理员绑定")]):t._e(),1002==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("好办客户端绑定")]):t._e(),1003==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("审核绑定")]):t._e(),1004==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("GIC 同步绑定")]):t._e(),1005==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("企业同步绑定")]):t._e(),2001==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("后台管理员解绑")]):t._e(),2002==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("好办客户端解绑")]):t._e(),2003==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("GIC 同步解绑")]):t._e(),2004==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("企业同步解绑")]):t._e(),2005==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("授权范围变更解绑")]):t._e()]}}])})],1),0!=t.tableBindData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)]),a("el-tab-pane",{attrs:{label:"通讯录刷新日志",name:"second"}},[a("div",{staticClass:"flex flex-space-between"},[a("common-alert-tip",{attrs:{width:"284px","tip-content":"仅保存近一年的日志"}})],1),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.optName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime))+t._s(e.row.createTime?"":"--"))]),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime))+t._s(e.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"完成时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+t._s(e.row.updateTime?"":"--"))]),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+t._s(e.row.updateTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步内容","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.taskDesc)))]}}])}),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",4==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),4==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(4==e.row.statusFlag?"成功":""))]):t._e(),0==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v("初始化")]):t._e(),1==e.row.statusFlag||2==e.row.statusFlag||3==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v("分组/门店/成员同步中")]):t._e(),5==e.row.statusFlag||6==e.row.statusFlag?a("el-popover",{staticClass:"item",attrs:{trigger:"hover",content:5==e.row.statusFlag?"完成有错误":"有错误关闭",placement:"top"}},[a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])],1)],1)])])]),t.logShow?a("fail-log",{attrs:{"task-id":t.taskId},on:{closeLog:t.closeLog}}):t._e()],1)},o=[],s=(a("7f7f"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"查看失败日志",visible:t.dialogVisible,width:"995px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("失败可能:分组创建失败或门店及成员创建失败"),a("br"),t._v("\n 通讯录同步分为两步串联创建:"),a("br"),t._v("\n 第一步同步分组,若出现分组创建失败,则分组及下面的门店及成员均会创建失败"),a("br"),t._v("\n 第二步同步门店及成员,若分组创建成功,会同步门店及成员,若门店创建失败,则门店下成员也会创建失败")])])])]),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{height:"450",data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组/门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.dataName))]}}])}),a("el-table-column",{attrs:{prop:"",label:"分组/门店code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.dataCode)+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"所属分组","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.chainName)+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"数据类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.dataType?"分组":1==e.row.dataType?"门店":"成员")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",2==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(3==e.row.statusFlag?"同步失败":1==e.row.statusFlag?"同步处理中":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"失败原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.reason)))]}}])})],1),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])}),l=[],r=a("e230"),i=r["a"].getSyncFailDetail,c={name:"FailLog",props:{taskId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,currentPage:1,pageSize:20,total:0,tableData:[]}},mounted:function(){var t=this;t.taskId&&t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{handleClose:function(){var t=this;t.tableData=[],t.$emit("closeLog")},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},getTableList:function(){var t=this,e={keyWord:t.searchInput||"",taskId:t.taskId,pageNum:t.currentPage,pageSize:t.pageSize};i(e).then((function(e){t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))}},watch:{taskId:function(t,e){var a=this;t&&a.getTableList()}}},u=c,p=(a("73d2"),a("2877")),d=Object(p["a"])(u,s,l,!1,null,"6f4ac83a",null),f=d.exports,g=a("29b6"),h=a("3081"),m=a("d157"),v=r["a"].getBindLog,b=r["a"].getRefreshLog,_=r["a"].getWxEnterprise,w={name:"SyncLog",components:{navCrumb:g["a"],failLog:f,commonAlertTip:h["a"]},data:function(){return{tipContent:"仅保存近一年绑定解绑的日志",navpath:[{name:"通讯录",path:"/contactsList"},{name:"日志详情",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",activeName:"first",searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[],tableBindData:[],logShow:!1,taskId:"",optType:"",enterpriseId:"",brandOptions:[]}},mounted:function(){var t=this;t.getBrandData(),t.getBindList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{clearInput:function(){var t=this;t.currentPage=1,t.getBindList()},changeBindList:function(){var t=this;t.currentPage=1,t.getBindList()},toInput:Object(m["a"])((function(t){var e=this;e.currentPage=1,e.getBindList()}),200),handleClick:function(t){var e=this;e.currentPage=1,e.pageSize=20,e.total=0,e.enterpriseId="","second"==t.name?e.getTableList():(e.getBrandData(),e.getBindList())},toShowLog:function(t,e){var a=this;a.taskId=e.taskId,a.logShow=!0},closeLog:function(){var t=this;t.taskId="",t.logShow=!1},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,"second"==e.activeName?e.getTableList():e.getBindList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,"second"==e.activeName?e.getTableList():e.getBindList()},getBrandData:function(){var t=this;_({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){e.result&&e.result.length&&(t.brandOptions=e.result)})).catch((function(t){}))},getBindList:function(){var t=this,e={search:t.searchInput||"",enterpriseId:t.enterpriseId,wxEnterpriseId:t.wxEnterpriseId,optType:t.optType,pageNum:t.currentPage,pageSize:t.pageSize};v(e).then((function(e){t.tableBindData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))},getTableList:function(){var t=this,e={enterpriseId:t.enterpriseId,wxEnterpriseId:t.wxEnterpriseId,pageNum:t.currentPage,pageSize:t.pageSize};b(e).then((function(e){t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))}}},C=w,y=(a("bd57"),Object(p["a"])(C,n,o,!1,null,"032e410c",null));e["default"]=y.exports},bd57:function(t,e,a){"use strict";var n=a("8fac"),o=a.n(n);o.a},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,o=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,o)}),n)}}function o(t,e){var a,n,o=e||200;return function(){var e=this,s=arguments,l=+new Date;a&&l-a<o?(clearTimeout(n),n=setTimeout((function(){a=l,t.apply(e,s)}),o)):(a=l,t.apply(e,s))}}function s(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},e230:function(t,e,a){"use strict";var n=a("71f6"),o={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/nationcode/get-nationcode-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};o=Object(n["a"])(o,"/hb-manage-web"),e["a"]=o},f102:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f32e3dc","chunk-b073f330"],{"0082":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("ul",{staticClass:"role-menu"},[Array.isArray(e.roleList)&&0!=e.roleList.length?e._e():n("li",{staticClass:"no-data"},[e._v("暂无数据")]),e._l(e.roleList,(function(t){return n("li",{key:t,class:["role-item",{active:e.activeRoleId==t.roleId}],on:{click:function(n){return e.onChangeRole(t)}}},[n("span",{staticClass:"role-name"},[e._v(e._s(t.roleName))]),n("el-dropdown",{attrs:{placement:"bottom-start"}},[n("i",{staticClass:"iconfont icongengduo edit-icon"}),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(n){return e.onEditRole(t)}}},[e._v("编辑")]),e.showDelRoleButton?n("el-dropdown-item",{nativeOn:{click:function(n){return e.onDelRole(t)}}},[e._v("删除")]):e._e()],1)],1)],1)}))],2),n("el-dialog",{attrs:{visible:e.delRole.show,title:"删除角色",width:"600px"},on:{"update:visible":function(t){return e.$set(e.delRole,"show",t)},closed:e.onDelRoleClose}},[n("div",{staticClass:"del-role"},[n("i",{staticClass:"el-icon-warning"}),n("div",{staticClass:"del-role-content"},[n("p",{staticClass:"del-role-tip"},[e._v("确认删除“"+e._s(e.delRole.roleName)+"”角色吗?")]),n("p",{staticClass:"del-role-tip"},[e._v("请在输入框中输入该角色名称,以避免误操作。")]),n("el-input",{staticStyle:{"margin-top":"10px",width:"440px"},model:{value:e.delRole.roleNameInput,callback:function(t){e.$set(e.delRole,"roleNameInput","string"===typeof t?t.trim():t)},expression:"delRole.roleNameInput"}})],1)]),n("template",{slot:"footer"},[n("el-button",{on:{click:function(t){e.delRole.show=!1}}},[e._v("取消")]),n("el-button",{attrs:{type:"primary",loading:e.delRole.loading},on:{click:e.onDelRoleSure}},[e._v("确定")])],1)],2)],1)},o=[],r=(n("c5f6"),n("f286")),l=r["a"].delRole,a={name:"RoleList",props:{roleList:{type:Array,default:function(){return[]}},activeRoleId:[String,Number],showDelRoleButton:{type:Boolean,default:!1}},data:function(){return{delRole:{show:!1,loading:!1,roleId:"",roleName:"",roleNameInput:""}}},methods:{onChangeRole:function(e){this.$emit("change-role",e)},onEditRole:function(e){this.$emit("edit-role",e)},onDelRole:function(e){var t=e.roleId,n=e.roleName;Object.assign(this.delRole,{show:!0,roleId:t,roleName:n})},onDelRoleClose:function(){Object.assign(this.delRole,{roleId:"",roleName:"",roleNameInput:""})},onDelRoleSure:function(){var e=this,t=this.delRole,n=t.roleId,i=t.roleName,o=t.roleNameInput;return 0==o.length?this.$message.warning("请输入角色名称!"):i!=o?this.$message.warning("请输入正确的角色名称!"):(this.delRole.loading=!0,void l({roleId:n}).then((function(t){"0000"==t.code&&(e.$message.success("删除成功!"),e.$emit("del-role-succ",n==e.activeRoleId),e.delRole.show=!1)})).finally((function(){return e.delRole.loading=!1})))}}},s=a,c=(n("575f"),n("2877")),d=Object(c["a"])(s,i,o,!1,null,"7c337432",null);t["default"]=d.exports},2058:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"store-admin-list"},[n("div",{staticClass:"store-role-list"},[0==e.roleList.length?n("p",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.roleList,(function(t){return n("div",{key:t.enterpriseId},[n("h3",{staticClass:"role-title"},[n("i",{staticClass:"iconfont iconshanghu role-title-icon"}),n("p",{staticClass:"role-title-text"},[e._v(e._s(t.enterpriseName))])]),n("role-list",{attrs:{"role-list":t.roleList,"active-role-id":e.activeRoleId},on:{"edit-role":e.onEditRole,"change-role":e.onChangeRole}})],1)}))],2),n("div",{staticClass:"admin-list"},[n("h3",{staticClass:"admin-list-title"},[e._v("门店成员列表")]),n("el-input",{staticStyle:{width:"238px"},attrs:{placeholder:"请输入姓名/账号/手机号码","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search,callback:function(t){e.search="string"===typeof t?t.trim():t},expression:"search"}}),n("el-alert",{staticStyle:{float:"right",width:"720px"},attrs:{type:"info",title:"拥有门店的权限,能进行一些门店日常业务,如打标签,完成话务等。必须是导购账号 ,不可添加删除门店成员。",closable:!1,"show-icon":""}}),n("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.adminList}},[n("el-table-column",{attrs:{label:"姓名",prop:"staffName",formatter:function(e,t,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"账号",prop:"wxUserId",formatter:function(e,t,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber",formatter:function(e,t,n){return n||"--"}}})],1),e.pager.total>0?n("dm-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"current-change":e.onCurrentChange,"size-change":e.onSizeChange}}):e._e()],1)])},o=[],r=(n("386d"),n("5df3"),n("ac6a"),n("0082")),l=n("f286"),a=l["a"].enterpriseList,s=l["a"].roleList,c=l["a"].roleAdminList,d={name:"StoreAdminList",components:{RoleList:r["default"]},data:function(){return{roleList:[],activeRoleId:"",enterpriseId:"",adminList:[],search:"",pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1}}},created:function(){this.$emit("showTab","/store-admin-list"),this.getRoleList()},methods:{getRoleList:function(){var e=this,t=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),n=t.wxEnterpriseId,i=[];n&&a({wxEnterpriseId:n}).then((function(t){var n=t.result||[];e.roleList=n.map((function(e){var t=e.enterpriseId,n=e.enterpriseName;return{enterpriseId:t,enterpriseName:n,roleList:[]}})),0!=e.roleList.length&&(e.roleList.forEach((function(e){i.push(s({enterpriseId:e.enterpriseId,roleType:1}).then((function(t){e.roleList=t.result||[]})))})),Promise.all(i).then((function(){e.activeRoleId||e.roleList.some((function(t){return t.roleList.length>0&&(e.activeRoleId=t.roleList[0].roleId,e.enterpriseId=t.roleList[0].enterpriseId),t.roleList.length>0})),e.activeRoleId&&e.getAdminList()})))}))},getAdminList:function(){var e=this,t={roleId:this.activeRoleId,enterpriseId:this.enterpriseId,search:this.search,pageNum:this.pager.currentPage,pageSize:this.pager.pageSize};c(t).then((function(t){var n=t.result||{},i=n.totalCount,o=n.result;e.pager.total=i||0,e.adminList=o||[]}))},onChangeRole:function(e){var t=e.roleId,n=e.enterpriseId;this.activeRoleId=t,this.enterpriseId=n,this.search="",this.pager.currentPage=1,this.getAdminList()},onEditRole:function(e){this.$router.push("/edit-store-role?roleId=".concat(e.roleId))},onSearch:function(){this.pager.currentPage=1,this.getAdminList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},onCurrentChange:function(e){this.pager.currentPage=e,this.getAdminList()}}},u=d,p=(n("b14d"),n("2877")),h=Object(p["a"])(u,i,o,!1,null,"3f411422",null);t["default"]=h.exports},3018:function(e,t,n){},"386d":function(e,t,n){"use strict";var i=n("cb7c"),o=n("83a1"),r=n("5f1b");n("214f")("search",1,(function(e,t,n,l){return[function(n){var i=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=l(n,e,this);if(t.done)return t.value;var a=i(e),s=String(this),c=a.lastIndex;o(c,0)||(a.lastIndex=0);var d=r(a,s);return o(a.lastIndex,c)||(a.lastIndex=c),null===d?-1:d.index}]}))},"44e1":function(e,t,n){},"575f":function(e,t,n){"use strict";var i=n("44e1"),o=n.n(i);o.a},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("ac6a"),n("456d");var i=n("b775");function o(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var o=e[n];"string"===typeof o&&(o={url:o}),o.url="".concat(t).concat(o.url),e[n]=function(e){return Object(i["a"])(o,e)}})),e}},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},b14d:function(e,t,n){"use strict";var i=n("3018"),o=n.n(i);o.a},f286:function(e,t,n){"use strict";var i=n("71f6"),o={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list",findAppSetting:"/find-application-setting",saveAppSetting:{url:"/save-application-setting",method:"post",useFormData:!0},findStoreRange:"/find-store-range",saveStoreRange:"/save-store-range"};t["a"]=Object(i["a"])(o,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-71df8cfa","chunk-34a8e7a5"],{"28a5":function(e,t,n){"use strict";var a=n("aae3"),r=n("cb7c"),i=n("ebd6"),s=n("0390"),o=n("9def"),c=n("5f1b"),u=n("520a"),l=n("79e5"),p=Math.min,d=[].push,h="split",f="length",m="lastIndex",v=4294967295,g=!l((function(){RegExp(v,"y")}));n("214f")("split",2,(function(e,t,n,l){var y;return y="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[f]||2!="ab"[h](/(?:ab)*/)[f]||4!="."[h](/(.?)(.?)/)[f]||"."[h](/()()/)[f]>1||""[h](/.?/)[f]?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(r,e,t);var i,s,o,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,h=void 0===t?v:t>>>0,g=new RegExp(e.source,l+"g");while(i=u.call(g,r)){if(s=g[m],s>p&&(c.push(r.slice(p,i.index)),i[f]>1&&i.index<r[f]&&d.apply(c,i.slice(1)),o=i[0][f],p=s,c[f]>=h))break;g[m]===i.index&&g[m]++}return p===r[f]?!o&&g.test("")||c.push(""):c.push(r.slice(p)),c[f]>h?c.slice(0,h):c}:"0"[h](void 0,0)[f]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,a){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r,a):y.call(String(r),n,a)},function(e,t){var a=l(y,e,this,t,y!==n);if(a.done)return a.value;var u=r(e),d=String(this),h=i(u,RegExp),f=u.unicode,m=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(g?"y":"g"),b=new h(g?u:"^(?:"+u.source+")",m),I=void 0===t?v:t>>>0;if(0===I)return[];if(0===d.length)return null===c(b,d)?[d]:[];var T=0,C=0,k=[];while(C<d.length){b.lastIndex=g?C:0;var D,x=c(b,g?d:d.slice(C));if(null===x||(D=p(o(b.lastIndex+(g?0:C)),d.length))===T)C=s(d,C,f);else{if(k.push(d.slice(T,C)),k.length===I)return k;for(var L=1;L<=x.length-1;L++)if(k.push(x[L]),k.length===I)return k;C=T=D}}return k.push(d.slice(T)),k}]}))},"29b6":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"nav-wrap border-box"},[n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e._l(e.navpath,(function(t,a){return[t.path?[n("el-breadcrumb-item",{key:"nav"+a,attrs:{to:{path:t.path}},on:{click:function(n){return e.changeRoute(t.path,t.relocation)}}},[n("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(n){return e.changeRoute(t.path,t.relocation)}}},[e._v("\n "+e._s(t.name)+"\n ")])])]:[n("el-breadcrumb-item",{key:"nav"+a},[e._v(e._s(t.name))])]]}))],2)],1)},r=[],i={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(e,t){var n=this;t?window.location.href=e:n.$router.push(e)}}},s=i,o=(n("6b4b"),n("2877")),c=Object(o["a"])(s,a,r,!1,null,"2c2a2724",null);t["a"]=c.exports},"4ab3":function(e,t,n){},"52cc":function(e,t,n){},"6b4b":function(e,t,n){"use strict";var a=n("76d4"),r=n.n(a);r.a},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("ac6a"),n("456d");var a=n("b775");function r(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var r=e[n];"string"===typeof r&&(r={url:r}),r.url="".concat(t).concat(r.url),e[n]=function(e){return Object(a["a"])(r,e)}})),e}},"76d4":function(e,t,n){},a088:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"menu-tree"},[n("ul",{staticClass:"first-menu"},[0==e.menuList.length?n("li",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.menuList,(function(t){return n("li",{key:t.menuId,class:["first-menu-item",{active:t.menuId==e.activeMenuId}],on:{click:function(n){return e.onMenuChange(t)}}},[e.isApp?n("el-checkbox",{attrs:{value:e.appIds.some((function(e){return e.appId==t.project&&1==e.openFlag}))},on:{change:function(n){return e.onAppOpenChange(t.project,n)}}}):e._e(),e._v("\n "+e._s(t.menuName)+"\n ")],1)}))],2),n("div",{staticClass:"all-menu"},[n("el-tree",{ref:"menuList",attrs:{data:e.treeData,"show-checkbox":"","default-expand-all":"","node-key":"menuId","expand-on-click-node":!1,"check-on-click-node":!0,props:{label:"menuName"},"default-checked-keys":e.checkedId[e.activeMenuId]},on:{"node-click":e.onNodeClick,check:e.onNodeClick}})],1)])},r=[],i=(n("c5f6"),n("ac6a"),{name:"MenuTree",props:{menuList:Array,checkedId:Object,appIds:Array,isApp:Boolean},data:function(){return{activeMenuId:"",treeData:[]}},methods:{onMenuChange:function(e){this.activeMenuId=e?e.menuId:"",this.treeData=e?[e]:[]},onNodeClick:function(){this.onChange(this.$refs.menuList.getCheckedKeys())},getAllMenuId:function(e){var t=this,n=[];return e.forEach((function(e){n.push(e.menuId),Array.isArray(e.children)&&(n=n.concat(t.getAllMenuId(e.children)))})),n},onChange:function(e){var t={};t[this.activeMenuId]=e,this.$emit("change",Object.assign({},this.checkedId,t))},onAppOpenChange:function(e,t){var n=this.appIds.map((function(n){var a=Object.assign({},n);return a.appId==e&&(a.openFlag=Number(t)),a}));this.$emit("app-open-change",n)}},watch:{checkedId:{deep:!0,handler:function(e){this.$refs.menuList.setCheckedKeys(e[this.activeMenuId]||[])}},menuList:{immediate:!0,handler:function(e){this.onMenuChange(e[0])}}}}),s=i,o=(n("b2eb"),n("2877")),c=Object(o["a"])(s,a,r,!1,null,"19fa0aa2",null);t["default"]=c.exports},a910:function(e,t,n){"use strict";var a=n("52cc"),r=n.n(a);r.a},a960:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{height:"100%"}},[n("nav-crumb",{attrs:{navpath:e.bread}}),n("div",{staticClass:"edit-role"},[n("el-alert",{staticStyle:{width:"572px"},attrs:{type:"info",title:"拥有门店的权限,能进行一些门店日常业务,如打标签,完成话务等。必须是导购账号",closable:!1,"show-icon":""}}),n("el-form",{ref:"roleData",staticStyle:{"margin-top":"30px"},attrs:{model:e.roleData,rules:e.roleDataRule,"label-width":"135px"}},[n("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[n("el-input",{staticStyle:{width:"510px"},attrs:{value:e.roleData.roleName,disabled:""}})],1),n("el-form-item",{attrs:{label:"应用小程序权限",prop:"menuIds"}},[n("el-radio-group",{staticClass:"specter",attrs:{size:"small"},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},e._l(e.tabList,(function(t){return n("el-radio-button",{key:t.appType,attrs:{label:t.appType}},[e._v(e._s(t.label))])})),1),n("menu-tree",{staticStyle:{"margin-top":"12px"},attrs:{"menu-list":e.getActiveMenuList(),"checked-id":e.getActiveCheckId(),"app-ids":e.getAppIds(),"is-app":4==e.activeType},on:{change:e.onCheckedChange,"app-open-change":e.onAppOpenChange}})],1),n("el-form-item",{attrs:{label:"资源范围",prop:"resourceCode"}},[n("div",{staticClass:"resource-list"},e._l(e.resourceList,(function(t){return n("div",{key:t.appId,staticClass:"resource-item"},[n("p",{staticClass:"app-name"},[e._v(e._s(t.appName))]),n("el-radio-group",{model:{value:e.roleData.resourceCode[t.appId],callback:function(n){e.$set(e.roleData.resourceCode,t.appId,n)},expression:"roleData.resourceCode[el.appId]"}},e._l(t.resourceList,(function(t){return n("el-radio",{key:t.resourceCode,attrs:{label:t.resourceCode}},[e._v(e._s(t.resourceName))])})),1)],1)})),0)]),n("el-form-item",{attrs:{label:"门店导购范围"}},[n("p",{staticClass:"type-title"},[e._v("当前门店")]),n("div",[n("span",{staticClass:"type-label"},[e._v("查看导购")]),n("el-radio-group",{on:{change:e.onSeeTypeChange},model:{value:e.roleData.seeType,callback:function(t){e.$set(e.roleData,"seeType",t)},expression:"roleData.seeType"}},[n("el-radio",{attrs:{label:"1"}},[e._v("门店下全部导购")]),n("el-radio",{attrs:{label:"0"}},[e._v("仅自己")])],1)],1),n("div",[n("span",{staticClass:"type-label"},[e._v("管理导购")]),n("el-radio-group",{model:{value:e.roleData.managerType,callback:function(t){e.$set(e.roleData,"managerType",t)},expression:"roleData.managerType"}},[n("el-radio",{attrs:{disabled:0==e.roleData.seeType,label:"1"}},[e._v("门店下全部导购")]),n("el-radio",{attrs:{label:"0"}},[e._v("仅自己")])],1)],1)]),n("el-form-item",{staticStyle:{"margin-top":"50px"}},[n("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.onSave}},[e._v("保存")])],1)],1)],1)],1)},r=[],i=(n("28a5"),n("5df3"),n("ac6a"),n("96cf"),n("1da1")),s=n("29b6"),o=n("a088"),c=n("f286"),u=c["a"].resourceList,l=c["a"].menuList,p=c["a"].editRole,d=c["a"].roleDetail,h=c["a"].findAppSetting,f=c["a"].saveAppSetting,m=c["a"].findStoreRange,v=c["a"].saveStoreRange,g={name:"EditStoreRole",components:{navCrumb:s["a"],MenuTree:o["default"]},data:function(){var e=function(e,t,n){Array.isArray(t)&&0!=t.length&&!t.every((function(e){return 0==e.menuIds.length}))||n(new Error("请至少选择一个权限菜单")),n()};return{bread:[{path:"/store-admin-list",name:"门店角色"},{name:"编辑门店角色"}],loading:!1,wxEnterpriseId:"",roleData:{roleId:"",roleName:"",menuIds:[],resourceCode:{},seeType:"1",managerType:"1"},roleDataRule:{roleName:[{required:!0}],menuIds:[{required:!0,validator:e,trigger:"change"}],resourceCode:[{required:!0,message:"",trigger:"change"}]},activeType:3,tabList:[{label:"好办小程序",appType:3,menuList:[],checkedId:{},appIds:[]},{label:"小程序应用",appType:4,menuList:[],checkedId:{},appIds:[]}],resourceList:[]}},created:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.$route.query.roleId,t){e.next=3;break}return e.abrupt("return",this.$router.go(-1));case 3:return n=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),this.wxEnterpriseId=n.wxEnterpriseId,this.$emit("showAsideMenu",!1),e.next=8,this.initData();case 8:this.getRoleDetail(t);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{initData:function(){var e=this,t=[];return this.tabList.forEach((function(n){t.push(l({wxEnterpriseId:e.wxEnterpriseId,roleType:2,appType:n.appType}).then((function(t){n.menuList=e.flatDataToTree(t.result||[]),n.menuList.forEach((function(t){e.$set(n.checkedId,t.menuId,[])}))})))})),t.push(u().then((function(t){e.resourceList=t.result||[],e.resourceList.forEach((function(t){e.$set(e.roleData.resourceCode,t.appId,"")}))}))),Promise.all(t)},getRoleDetail:function(e){var t=this;function n(e,t){var a=[];return e.forEach((function(e){t.some((function(t){return t==e.menuId}))&&a.push(e.menuId),Array.isArray(e.children)&&(a=a.concat(n(e.children,t)))})),a}d({roleId:e}).then((function(e){var a=e.result||{},r=a.roleId,i=a.roleName,s=a.menuIds,o=a.resourceCode;s="string"==typeof s?s.split(","):[],Object.assign(t.roleData,{roleId:r,roleName:i}),t.tabList.forEach((function(e){var a=[];e.menuList.forEach((function(t){e.checkedId[t.menuId]=n([t],s),a=a.concat(e.checkedId[t.menuId])})),t.roleData.menuIds.push({appType:e.appType,menuIds:a})})),"string"==typeof o&&o.length>0&&o.split(",").forEach((function(e){t.resourceList.some((function(n){var a=n.resourceList.some((function(t){return t.resourceCode==e}));return a&&(t.roleData.resourceCode[n.appId]=e),a}))}))})),m({roleId:e,wxEnterpriseId:this.wxEnterpriseId}).then((function(e){var n=e.result||{},a=n.seeType,r=n.managerType;Object.assign(t.roleData,{seeType:"string"!=typeof a&&"number"!=typeof a?"1":String(a),managerType:"string"!=typeof r&&"number"!=typeof r?"1":String(a)})})),this.tabList.forEach((function(n){4==n.appType&&h({wxEnterpriseId:t.wxEnterpriseId,roleType:2,roleId:e,appType:n.appType}).then((function(e){n.appIds=e.result||[],t.setChildrenDisable(n.menuList,n.appIds)}))}))},getActiveMenuList:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].menuList},getActiveCheckId:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].checkedId},getAppIds:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].appIds},flatDataToTree:function(e){return e.filter((function(t){var n=e.filter((function(e){return e.parentCode==t.menuCode}));return n.length>0&&(t.children=n),""==t.parentCode}))},onCheckedChange:function(e){var t=this,n=[];for(var a in e)n=n.concat(e[a]);this.tabList=this.tabList.map((function(n){return n.appType==t.activeType&&(n.checkedId=e),n})),this.roleData.menuIds.some((function(e){return e.appType==t.activeType}))?this.roleData.menuIds.forEach((function(e){e.appType==t.activeType&&(e.menuIds=n)})):this.roleData.menuIds.push({appType:this.activeType,menuIds:n})},onAppOpenChange:function(e){var t=this;this.tabList.some((function(n){return n.appType==t.activeType&&(n.appIds=e,t.setChildrenDisable(n.menuList,e)),n.appType==t.activeType}))},setChildrenDisable:function(e,t){var n=this;function a(e,t){var n=this;return e.map((function(e){return n.$set(e,"disabled",t),Array.isArray(e.children)&&(e.children=a.call(n,e.children,t)),e}))}e.forEach((function(e){var r=!1;t.some((function(t){return t.appId==e.project&&(r=t.openFlag),t.appId==e.project})),n.$set(e,"disabled",0==r),Array.isArray(e.children)&&(e.children=a.call(n,e.children,0==r))}))},onSeeTypeChange:function(){0==this.roleData.seeType&&(this.roleData.managerType="0")},onSave:function(){var e=this;this.$refs.roleData.validate((function(t){if(t){var n=e.roleData,a=n.roleId,r=n.roleName,i=n.menuIds,s=n.resourceCode,o=n.seeType,c=n.managerType,u={roleId:a,roleName:r,menuIds:JSON.stringify(i),wxEnterpriseId:e.wxEnterpriseId,resourceCode:[]};for(var l in s)u.resourceCode.push(s[l]);u.resourceCode=u.resourceCode.join(","),e.loading=!0,p(u).then(d.bind(e,a,"保存成功")).catch((function(){return e.loading=!1}))}function d(e,t){var n=this,a=[],r={roleId:e,wxEnterpriseId:this.wxEnterpriseId};this.tabList.forEach((function(e){4==e.appType&&a.push(new Promise((function(t){f(Object.assign({},r,{appType:e.appType,json:JSON.stringify(e.appIds)})).finally(t)})))})),a.push(new Promise((function(t){v({roleId:e,seeType:o,managerType:c}).finally(t)}))),Promise.all(a).then((function(){n.$message.success(t),n.$router.go(-1)})).finally((function(){return n.loading=!1}))}}))}}},y=g,b=(n("a910"),n("2877")),I=Object(b["a"])(y,a,r,!1,null,"35084821",null);t["default"]=I.exports},b2eb:function(e,t,n){"use strict";var a=n("4ab3"),r=n.n(a);r.a},f286:function(e,t,n){"use strict";var a=n("71f6"),r={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list",findAppSetting:"/find-application-setting",saveAppSetting:{url:"/save-application-setting",method:"post",useFormData:!0},findStoreRange:"/find-store-range",saveStoreRange:"/save-store-range"};t["a"]=Object(a["a"])(r,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-769c26e2"],{"28a5":function(e,t,a){"use strict";var r=a("aae3"),s=a("cb7c"),o=a("ebd6"),n=a("0390"),i=a("9def"),u=a("5f1b"),c=a("520a"),l=a("79e5"),m=Math.min,d=[].push,g="split",p="length",h="lastIndex",b=4294967295,f=!l((function(){RegExp(b,"y")}));a("214f")("split",2,(function(e,t,a,l){var v;return v="c"=="abbc"[g](/(b)*/)[1]||4!="test"[g](/(?:)/,-1)[p]||2!="ab"[g](/(?:ab)*/)[p]||4!="."[g](/(.?)(.?)/)[p]||"."[g](/()()/)[p]>1||""[g](/.?/)[p]?function(e,t){var s=String(this);if(void 0===e&&0===t)return[];if(!r(e))return a.call(s,e,t);var o,n,i,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=void 0===t?b:t>>>0,f=new RegExp(e.source,l+"g");while(o=c.call(f,s)){if(n=f[h],n>m&&(u.push(s.slice(m,o.index)),o[p]>1&&o.index<s[p]&&d.apply(u,o.slice(1)),i=o[0][p],m=n,u[p]>=g))break;f[h]===o.index&&f[h]++}return m===s[p]?!i&&f.test("")||u.push(""):u.push(s.slice(m)),u[p]>g?u.slice(0,g):u}:"0"[g](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,r){var s=e(this),o=void 0==a?void 0:a[t];return void 0!==o?o.call(a,s,r):v.call(String(s),a,r)},function(e,t){var r=l(v,e,this,t,v!==a);if(r.done)return r.value;var c=s(e),d=String(this),g=o(c,RegExp),p=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(f?"y":"g"),w=new g(f?c:"^(?:"+c.source+")",h),S=void 0===t?b:t>>>0;if(0===S)return[];if(0===d.length)return null===u(w,d)?[d]:[];var F=0,D=0,C=[];while(D<d.length){w.lastIndex=f?D:0;var I,y=u(w,f?d:d.slice(D));if(null===y||(I=m(i(w.lastIndex+(f?0:D)),d.length))===F)D=n(d,D,p);else{if(C.push(d.slice(F,D)),C.length===S)return C;for(var x=1;x<=y.length-1;x++)if(C.push(y[x]),C.length===S)return C;D=F=I}}return C.push(d.slice(F)),C}]}))},3477:function(e,t,a){},"5b4e":function(e,t,a){"use strict";var r=a("5c96");t["a"]={showmsg:function(e,t){Object(r["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},"71f6":function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));a("ac6a"),a("456d");var r=a("b775");function s(e,t){e=e||{};var a=Object.keys(e);return a.forEach((function(a){var s=e[a];"string"===typeof s&&(s={url:s}),s.url="".concat(t).concat(s.url),e[a]=function(e){return Object(r["a"])(s,e)}})),e}},b76b:function(e,t,a){"use strict";var r=a("3477"),s=a.n(r);s.a},d11a:function(e,t,a){"use strict";var r=a("71f6"),s={getGroupList:"/member/store-group",getStoreList:"/member/store-list",getAssignStatus:"/member/check-distribute",getNavChain:"/member/crumb-list",getMemberList:{url:"/member/member-list",method:"post",useFormData:!0},getListBrand:"/member/list-brand",getClerkList:"/member/clerk-list",getMemberCount:"",saveAssign:{url:"/member/distribute-member",method:"post"},getMemberData:"/member/dimension-detail",saveSortMember:{url:"/member/dimension-save",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"/member/switch-list",saveShowSet:{url:"/member/switch-setting",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"/member/switch-list",saveCustomerSet:{url:"/member/switch-setting",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"/member/member-group-hb-list",getClassifyData:"/member/member-group-category-list",postSortGroup:{url:"/member/member-group-sort",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"/member/member-group-list",saveSync:{url:"/member/member-group-save",method:"post",useFormData:!0,useIntercept:!1},delCrowd:{url:"/member/member-group-del",method:"post",useFormData:!0,useIntercept:!1},getVisiable:"/visiable-range-view",saveVisiable:{url:"/visiable-range-save",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"/tag-category-list",getTagLicense:"/member-tag-license",addClassify:{url:"/tag-category-add",method:"post",useFormData:!0,useIntercept:!1},delClassify:{url:"/tag-category-del",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"/member-tag-list",addClerkTag:{url:"/member-tag-add",method:"post",useFormData:!0,useIntercept:!1},getTagDetail:"/member-tag-detail",editClerkTag:{url:"/member-tag-edit",method:"post",useFormData:!0,useIntercept:!1},delClerkTag:{url:"/tag-del",method:"post",useFormData:!0,useIntercept:!1},sortClerkTag:{url:"/member-tag-sort",method:"post",useFormData:!0,useIntercept:!1},getTagVisiable:"/visiable-range-view",saveTagVisiable:{url:"/visiable-range-save",method:"post",useFormData:!0,useIntercept:!1}};s=Object(r["a"])(s,"/hb-app-customer-web"),t["a"]=s},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return o}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function r(e,t){var a,r=t||200;return function(){var t=this,s=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(t,s)}),r)}}function s(e,t){var a,r,s=t||200;return function(){var t=this,o=arguments,n=+new Date;a&&n-a<s?(clearTimeout(r),r=setTimeout((function(){a=n,e.apply(t,o)}),s)):(a=n,e.apply(t,o))}}function o(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}},f766:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-app-right"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.mainStoreFlag,callback:function(t){e.$set(e.customerShowData,"mainStoreFlag",t)},expression:"customerShowData.mainStoreFlag"}},[e._v("展示服务门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下顾客")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.minorStoreFlag,callback:function(t){e.$set(e.customerShowData,"minorStoreFlag",t)},expression:"customerShowData.minorStoreFlag"}},[e._v("展示协管门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下顾客")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.openCardStoreFlag,callback:function(t){e.$set(e.customerShowData,"openCardStoreFlag",t)},expression:"customerShowData.openCardStoreFlag"}},[e._v("展示开卡门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下顾客")])],1),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.submit()}}},[e._v("保存")])],1)])},s=[],o=(a("ac6a"),a("d11a")),n=a("d157"),i=a("5b4e"),u=o["a"].getShowSet,c=o["a"].saveShowSet,l={name:"CustomerShowSet",components:{},props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",customerShowData:{mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1},loading:!1}},mounted:function(){var e=this;e.$emit("showTab","/customer-show-set"),e.brandId&&e.getShowData()},methods:{submit:Object(n["a"])((function(){var e=this;e.loading=!0,e.setData()}),500),setData:function(){var e=this,t=[];for(var a in e.customerShowData)e.customerShowData[a]&&t.push(a);var r={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,openCodes:t.join(","),switchType:"0"};c(r).then((function(t){e.loading=!1,e.getShowData(),"0000"==t.code?i["a"].showmsg("操作成功","success"):i["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){e.loading=!1}))},getShowData:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,switchType:"0"};u(t).then((function(t){t.result&&t.result.length?t.result.forEach((function(t){e.customerShowData[t.switchCode]=1==t.switchFlag})):e.customerShowData={mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1}})).catch((function(e){}))}},watch:{brandId:function(e){var t=this;e&&t.getShowData()}}},m=l,d=(a("b76b"),a("2877")),g=Object(d["a"])(m,r,s,!1,null,"6792c5e2",null);t["default"]=g.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-79a7bce0"],{"21f4":function(e,t,r){"use strict";var n=r("71f6"),a={getAuthEnterprise:"/auth-enterprise-list",getGroupList:"/department-list",getStoreList:"/store-list",getAuthDetail:"/enterprise-auth-detail",getAuditLog:"/enterprise-auth-audit-list",cancelAudit:{url:"/enterprise-auth-audit",method:"post",useFormData:!0,useIntercept:!1},getCheckName:"/gic-admin-frist",checkName:{url:"/gic-name-validate",method:"post",useFormData:!0,useIntercept:!1},getAuditLogDetail:"/enterprise-auth-audit-range-detail",getEnterprise:"/enterprise-search",getGicAdmin:"/gic-manage-list",postEnterpriseAuth:{url:"/enterprise-auth",method:"post",useFormData:!0,useIntercept:!1},getEnterpriseDetail:"/gic-enterprise-detail"};a=Object(n["a"])(a,"/hb-manage-web"),t["a"]=a},"23e2":function(e,t,r){},"29b6":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"nav-wrap border-box"},[r("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e._l(e.navpath,(function(t,n){return[t.path?[r("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:t.path}},on:{click:function(r){return e.changeRoute(t.path,t.relocation)}}},[r("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(r){return e.changeRoute(t.path,t.relocation)}}},[e._v("\n "+e._s(t.name)+"\n ")])])]:[r("el-breadcrumb-item",{key:"nav"+n},[e._v(e._s(t.name))])]]}))],2)],1)},a=[],s={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(e,t){var r=this;t?window.location.href=e:r.$router.push(e)}}},o=s,c=(r("6b4b"),r("2877")),i=Object(c["a"])(o,n,a,!1,null,"2c2a2724",null);t["a"]=i.exports},3081:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"common-alert-tip"},[r("div",{style:{"min-width":e.width}},[r("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:e.width},attrs:{role:"alert"}},[r("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),r("div",{staticClass:"el-alert__content"},[r("span",{staticClass:"el-alert__title color-606266 font-13"},[e._v("\n "+e._s(e.tipContent)+"\n ")]),e.tipTwoContent?r("div",{staticClass:"el-alert__title color-606266 font-13"},[e._v("\n "+e._s(e.tipTwoContent)+"\n ")]):e._e()])])])])},a=[],s={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""},tipTwoContent:{type:String,default:""}},data:function(){return{}}},o=s,c=r("2877"),i=Object(c["a"])(o,n,a,!1,null,"537f2e35",null);t["a"]=i.exports},"418e":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"daily-store-select"},[r("div",{staticClass:"font-12 color-909399"},[e._v("最多可选50家门店")]),r("div",{staticClass:"select-search"},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称/代码",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),r("div",{staticClass:"el-scrollbar define-search-select"},[r("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[r("el-checkbox-group",{attrs:{max:50},on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[r("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,(function(t){return r("li",{key:t.storeInfoId,class:["el-select-dropdown__item",t.select?"selected hover":""],on:{click:function(r){return r.stopPropagation(),e.toShowMsg(t)}}},[r("el-checkbox",{attrs:{disabled:1==t.bindFlag||1==t.auditFlag,label:t.storeInfoId}},[e._v(e._s(t.storeInfoName))]),1==t.bindFlag&&1!=t.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(t.bindWxEnterpriseName)+" 企业已授权")]):e._e(),1==t.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(t.bindWxEnterpriseName)+" 企业授权中")]):e._e()],1)})),e.stores.length?e._e():r("li",{staticClass:"text-center"},[r("span",[e._v("暂无数据")])])],2)])],1)])])},a=[],s=(r("6762"),r("2fdb"),r("ac6a"),r("d157")),o=r("21f4"),c=r("5b4e6"),i=o["a"].getStoreList,u={name:"StoreAuthStore",props:{companyId:{type:String,default:""},storeType:{type:String,default:"1"},selectStore:{type:[Object,Array],default:function(){return{}}}},data:function(){return{checkAll:!1,isIndeterminate:!1,searchSelect:"",stores:[],storesCopy:[],dailyRuleForm:{stores:[]},pageNum:1,pageSize:300}},mounted:function(){var e=this;e.stores=[],e.storesCopy=[],e.companyId&&(e.pageNum=1,e.getStoreData()),e.selectStore.length?e.dailyRuleForm.stores=e.selectStore.map((function(e){return e.storeInfoId}))||[]:e.dailyRuleForm.stores=[]},methods:{toShowMsg:function(e){if(1==e.auditFlag)return c["a"].showmsg("".concat(e.bindWxEnterpriseName," 企业授权中,无法选择!"),"warning"),!1;1==e.bindFlag&&c["a"].showmsg("当前门店已被其他企业绑定,当前企业无法选择!","warning")},handleStoresChange:function(e){var t=this,r=[];t.storesCopy.forEach((function(t){e.includes(t.storeInfoId)&&r.push(t)})),t.$emit("checkStoreIds",JSON.parse(JSON.stringify(r)))},toInput:Object(s["a"])((function(e,t){var r=this;""!=r.searchSelect&&(r.stores=[],r.pageNum=1,r.getStoreData())}),500),clearSearch:function(){var e=this;e.stores=[],e.pageNum=1,e.getStoreData()},getStoreData:function(){var e=this,t={search:e.searchSelect,enterpriseId:e.companyId,type:e.storeType,pageNum:e.pageNum,pageSize:e.pageSize};i(t).then((function(t){1==e.pageNum?(e.stores=JSON.parse(JSON.stringify(t.result.result))||[],""===e.searchSelect&&(e.storesCopy=JSON.parse(JSON.stringify(t.result.result))||[])):t.result.result.forEach((function(t){e.stores.push(t),""===e.searchSelect&&e.storesCopy.push(t)})),e.pageNum*e.pageSize<t.result.totalCount&&(e.pageNum++,e.$nextTick((function(){e.getStoreData()})))})).catch((function(e){}))}},watch:{selectStore:function(e,t){var r=this;e.length?r.dailyRuleForm.stores=e.map((function(e){return e.storeInfoId}))||[]:r.dailyRuleForm.stores=[]},companyId:function(e){var t=this;e&&(t.pageNum=1,t.getStoreData())}}},l=u,d=(r("7620"),r("2877")),p=Object(d["a"])(l,n,a,!1,null,"2dd498c2",null);t["a"]=p.exports},"5b4e6":function(e,t,r){"use strict";var n=r("5c96");t["a"]={showmsg:function(e,t){Object(n["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},"6b4b":function(e,t,r){"use strict";var n=r("76d4"),a=r.n(n);a.a},"71f6":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("ac6a"),r("456d");var n=r("b775");function a(e,t){e=e||{};var r=Object.keys(e);return r.forEach((function(r){var a=e[r];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[r]=function(e){return Object(n["a"])(a,e)}})),e}},7620:function(e,t,r){"use strict";var n=r("9c55"),a=r.n(n);a.a},"76d4":function(e,t,r){},"7ca9":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"bind-store-body"},[r("div",{staticClass:"select-search"},[r("el-input",{attrs:{placeholder:"请输入分组名称",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),r("div",{staticClass:"select-tree-wrap auth-select-tree m-t-20"},[r("el-tree",{ref:"groupTree",attrs:{"filter-node-method":e.filterNode,"check-strictly":"",data:e.groupData,"node-key":"storeGroupId","show-checkbox":"","default-expand-all":"",props:e.defaultProps,"expand-on-click-node":!1},on:{check:e.checkGroup},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.node,a=t.data;return r("span",{staticClass:"custom-tree-node",attrs:{id:a.storeGroupId},on:{click:function(t){return e.toShowMsg(n,a)}}},[r("span",{staticClass:"font-14 color-606266"},[e._v(e._s(n.label))]),1==a.bindFlag&&1!=a.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(a.bindWxEnterpriseName)+" 企业已授权")]):e._e(),1==a.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(a.bindWxEnterpriseName)+" 企业授权中")]):e._e()])}}])})],1)])},a=[],s=(r("96cf"),r("1da1")),o=(r("ac6a"),r("6762"),r("2fdb"),r("d157")),c=r("21f4"),i=r("5b4e6"),u=c["a"].getGroupList,l={name:"StoreAuthGroup",props:{companyId:{type:String,default:""},storeType:{type:String,default:"1"},selectGroup:{type:[Object,Array],default:function(){return{}}}},data:function(){return{searchSelect:"",groupData:[],groupDataCopy:[],defaultProps:{children:"children",label:"storeGroupName"}}},mounted:function(){var e=this;e.companyId&&e.getGroup(),e.selectGroup.length?e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys(e.selectGroup.map((function(e){return e.storeGroupId})))})):e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys([])}))},methods:{toShowMsg:function(e,t){if(1==t.auditFlag)return i["a"].showmsg("".concat(t.bindWxEnterpriseName," 企业授权中,无法选择!"),"warning"),!1;1==t.bindFlag&&i["a"].showmsg("当前分组已被其他企业绑定,当前企业无法选择!","warning")},filterNode:function(e,t){return!e||!t.label||-1!==t.label.indexOf(e)},toInput:Object(o["a"])((function(e,t){var r=this;if(!r.groupDataCopy.length)return!1}),200),clearSearch:function(){return!1},checkGroup:function(e,t){var r=this;if(e.children){var n=document.getElementById(e.storeGroupId).previousElementSibling.children[0].className,a=r.$refs.groupTree.getNode(e.storeGroupId)?r.$refs.groupTree.getNode(e.storeGroupId).parent:"",s=t.checkedKeys.includes(e.storeGroupId);n.includes("is-checked")&&a&&a.data.bindFlag,s||document.getElementById(e.storeGroupId).previousElementSibling.children[0].children[0].setAttribute("style",""),r.$refs.groupTree.setChecked(e.storeGroupId,s,!0),e.children.forEach((function(e){r.$refs.groupTree.setChecked(e.storeGroupId,s,!0),e.disabled=!!s||!!e.bindFlag,e.children&&e.children.length&&r.checkChild(e,s)}))}var o=r.$refs.groupTree.getCheckedNodes();if(o.length){var c=[];o.forEach((function(e){e.disabled||c.push(e)})),r.$emit("checkGroupIds",c)}else r.$emit("checkGroupIds",[]);r.$nextTick((function(){var e=document.querySelectorAll(".el-checkbox__input");e&&e.length&&e.forEach((function(e){e.className.includes("is-checked")&&e.className.includes("is-disabled")&&e.children[0].setAttribute("style","")}))}))},checkChild:function(e,t){var r=this;e.children.forEach((function(e){r.$refs.groupTree.setChecked(e.storeGroupId,t,!0),e.disabled=!!t||!!e.bindFlag,e.children&&e.children.length&&r.checkChild(e,t)}))},treeData:function(e){var t=e.filter((function(t){var r=e.filter((function(e){return t.storeGroupId==e.parentId}));return r.length>0?(t.hasSonNode=!0,t.children=r):(t.children=[],t.hasSonNode=!1),0==t.parentId}));return t},setSelectCheck:function(){var e=this,t=e.selectGroup.map((function(e){return e.storeGroupId}));e.groupData.forEach((function(r){t.includes(r.storeGroupId)&&r.children.length&&e.checkChild(r,!0),t.includes(r.storeGroupId)||e.disableChild(r,t)}))},disableChild:function(e,t){var r=this;e.children.forEach((function(e){t.includes(e.storeGroupId)&&e.children.length&&r.checkChild(e,!0),!t.includes(e.storeGroupId)&&e.children.length&&r.disableChild(e,t)}))},getGroup:function(){var e=this,t={type:e.storeType,enterpriseId:e.companyId};u(t).then(function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r.result&&r.result.length&&r.result.forEach((function(e){e.expand=!1,e.children=[],e.disabled=1==e.bindFlag||1==e.auditFlag,e.label=e.storeGroupName})),t.next=3,e.treeData(JSON.parse(JSON.stringify(r.result)));case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0=[];case 6:e.groupData=t.t0,e.groupDataCopy=JSON.parse(JSON.stringify(r.result)),e.$nextTick((function(){e.setSelectCheck()}));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}},watch:{searchSelect:function(e){this.$refs.groupTree.filter(e)},selectGroup:function(e){var t=this;e.length?t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys(e.map((function(e){return e.storeGroupId})))})):t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys([])}))},companyId:function(e){var t=this;e&&t.getGroup()}}},d=l,p=(r("f3f2"),r("2877")),f=Object(p["a"])(d,n,a,!1,null,"c6d74b34",null);t["a"]=f.exports},"9c55":function(e,t,r){},d157:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return s}));r("c5f6"),r("a481"),r("28a5"),r("6b54");function n(e,t){var r,n=t||200;return function(){var t=this,a=arguments;r&&clearTimeout(r),r=setTimeout((function(){r=null,e.apply(t,a)}),n)}}function a(e,t){var r,n,a=t||200;return function(){var t=this,s=arguments,o=+new Date;r&&o-r<a?(clearTimeout(n),n=setTimeout((function(){r=o,e.apply(t,s)}),a)):(r=o,e.apply(t,s))}}function s(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}},f3f2:function(e,t,r){"use strict";var n=r("23e2"),a=r.n(n);a.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-302ac66a"],{"12eb":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"customer-assign-wrap"},[r("div",{staticClass:"border-box"},[r("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[r("el-tab-pane",{attrs:{label:"分配策略",name:"first"}}),r("el-tab-pane",{attrs:{label:"顾客列表",name:"second"}})],1),"first"==e.activeName?r("div",{staticClass:"customer-assign-set"},[r("div",{staticClass:"m-b-10"},[r("el-checkbox",{model:{value:e.customerSetData.unbindClerkDisMemberFlag,callback:function(t){e.$set(e.customerSetData,"unbindClerkDisMemberFlag",t)},expression:"customerSetData.unbindClerkDisMemberFlag"}},[e._v("解绑导购code,顾客自动分配给店长")]),r("div",{staticClass:"font-12 color-909399 set-tip-item"},[e._v("注:保存勾选项后,解绑当前导购code,该导购cede名下的顾客会分配到店长,在移动端可重新分配顾客")])],1),r("div",{staticClass:"m-t-46 p-l-20"},[r("el-button",{attrs:{type:"primary",loading:e.loadingSet},on:{click:e.submitSet}},[e._v("保存")])],1)]):e._e(),"second"==e.activeName?r("div",{staticClass:"list-body flex"},[r("div",{staticClass:"list-left border-box",style:{minWidth:e.gicData.length?"200px":0,maxWidth:e.gicData.length?"200px":0}},[e.gicData.length?r("org-tree",{attrs:{"brand-id":e.brandId,"depart-obj":e.departObj,"item-data":e.gicData},on:{getSelectData:e.getSelectData}}):e._e()],1),r("div",{class:["list-right p-20 border-box",e.gicData.length?"":"no-left-list"]},[e.showMember?e._e():r("store-list",{attrs:{"brand-id":e.brandId,"depart-obj":e.departObj},on:{getStore:e.getStore}}),e.showMember?r("div",{staticClass:"list-right-body"},[r("div",{staticClass:"el-breadcrumb m-b-10",attrs:{role:"navigation"}},e._l(e.navData,(function(t,a){return r("span",{key:a+"nav",staticClass:"el-breadcrumb__item"},[r("span",{staticClass:"el-breadcrumb__inner is-link",attrs:{role:"link"},on:{click:function(r){return e.changeDepart(t,a)}}},[r("span",{staticClass:"el-breadcrumb__inner is-link font-14 color-606266"},[e._v("\n "+e._s(a==e.navData.length-1?t.storeName:t.storeGroupName)+"\n ")])]),a!=e.navData.length-1?r("i",{staticClass:"el-breadcrumb__separator el-icon-arrow-right"}):e._e()])})),0),r("div",{staticClass:"table-top flex flex-space-between"},[r("div",[r("el-input",{staticStyle:{width:"274px"},attrs:{placeholder:"请输入姓名/昵称/会员卡号",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),r("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:""},on:{change:e.changeCondition},model:{value:e.clerkId,callback:function(t){e.clerkId=t},expression:"clerkId"}},[r("el-option",{attrs:{label:"全部",value:""}}),e._l(e.clerkOptions,(function(e){return r("el-option",{key:e.clerkId,attrs:{label:e.clerkName,value:e.clerkId}})}))],2),r("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:""},on:{change:e.changeCondition},model:{value:e.storeBrandId,callback:function(t){e.storeBrandId=t},expression:"storeBrandId"}},e._l(e.storeBrandOptions,(function(e){return r("el-option",{key:e.brandId,attrs:{label:e.brandName,value:e.brandId}})})),1)],1),r("el-button",{attrs:{type:"primary"},on:{click:e.toAssign}},[e._v("批量分配会员")])],1),r("div",{staticClass:"table-body m-t-20"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"45"}}),r("el-table-column",{attrs:{width:"25"}},[r("template",{slot:"header"},[r("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-25px",transform:"translateY(0px)","-webkit-transform":"translateY(0px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[r("span",{staticClass:"el-dropdown-link"},[r("i",{staticClass:"iconfont icongengduo font-12"})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{attrs:{command:"0"}},[r("span",{style:{color:0==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择当页")])]),r("el-dropdown-item",{attrs:{command:"1"}},[r("span",{style:{color:1==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择全部")])])],1)],1)],1)],2),r("el-table-column",{attrs:{label:"会员姓名",width:"160px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"flex common-table-user"},[r("div",{staticClass:"flex flex-align-center flex-pack-center common-table-photo"},[t.row.headUrl?r("img",{attrs:{src:t.row.headUrl,alt:"img"}}):r("img",{attrs:{src:a("6ce2"),alt:"img"}})]),r("div",{staticClass:"common-table-text hide-ellipsis"},[r("div",{staticClass:"font-14 color-606266 hide-ellipsis"},[e._v(e._s(t.row.memberName||"--"))]),r("div",{staticClass:"font-12 color-909399 hide-ellipsis"},[e._v(e._s(t.row.cardNo||"--"))])])])]}}],null,!1,1640223620)}),r("el-table-column",{attrs:{prop:"consumeTotal",label:"消费总额",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("¥ "+e._s(t.row.consumeTotal)+" "+e._s(null==t.row.consumeTotal&&0!=t.row.consumeTotal?"--":""))]}}],null,!1,3086522626)}),r("el-table-column",{attrs:{prop:"consumeTimes",label:"消费次数",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.consumeTimes||"0"))]}}],null,!1,387988807)}),r("el-table-column",{attrs:{prop:"lastConsume",label:"最近消费",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.lastConsume))+" "+e._s(t.row.lastConsume?"":"--"))]),r("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.lastConsume))+" "+e._s(t.row.lastConsume?"":"--"))])]}}],null,!1,2297394418)}),r("el-table-column",{attrs:{prop:"",label:"所属导购","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.mainClerkName||"--")+"\n ")]}}],null,!1,3025852098)}),r("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toAssignMember(t.$index,t.row)}}},[e._v("分配")])]}}],null,!1,1410739074)})],1),0!=e.tableData.length?r("div",{staticClass:"block common-wrap__page text-right m-t-24"},[r("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)]):e._e()],1)]):e._e()],1),e.assignShow?r("customer-assign",{attrs:{"store-brand-id":e.storeBrandId,"brand-id":e.brandId,"customer-assign-total":e.total,"clerk-id":e.clerkId,"search-params":e.searchInput,"edit-row":e.editRow,"choose-all":e.selectRadio,"depart-obj":e.storeObj,"multiple-data":e.multipleSelection},on:{closeText:e.closeText,submitText:e.submitText}}):e._e()],1)},n=[],s=(a("55dd"),a("96cf"),a("1da1")),o=(a("ac6a"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{class:["gic-tree-body"]},e._l(e.itemData,(function(t,r){return a("li",{key:r+"gic"},[a("div",{class:["li-cell cursor-pointer",e.departObj.storeGroupId==t.storeGroupId?"li-cell-active":""]},[a("div",{class:["li-cell-inner border-box cursor-pointer"],style:{"margin-left":20*(t.groupLevel+1)+"px"},on:{click:function(a){return e.toggleExpand(t)}}},[a("span",{class:["font-12 color-606266",1!=t.isStore&&t.hasSonNode?"":"color-fff",t.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),t.loading?a("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):e._e(),a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v(e._s(t.label))])])]),a("li-row",{directives:[{name:"show",rawName:"v-show",value:!!t.children.length&&t.expand,expression:"!!item.children.length && item.expand"}],attrs:{"depart-obj":e.departObj,"item-obj":t,"item-data":t.children},on:{getSelectData:e.getSelectData}})],1)})),0)}),i=[],l={name:"LiRow",props:{brandId:{type:String,default:function(){return""}},itemData:{type:[Object,Array],default:function(){return[]}},itemObj:{type:[Object,Array],default:function(){return[]}},departObj:{type:Object,default:function(){return{departmentId:"",departmentName:"",wxDepartmentId:"",parentId:"",isStore:"",staffCount:"",bindFlag:"",loading:!1}}}},data:function(){return{}},beforeDestroy:function(){this.tempArr=[]},methods:{getSelectData:function(e){var t=this;t.selectData=e,t.$emit("getSelectData",e)},toggleExpand:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=this,t.expand=!t.expand,a.$emit("getSelectData",t);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},c=l,u=(a("9ade"),a("2877")),d=Object(u["a"])(c,o,i,!1,null,"f56abb96",null),p=d.exports,m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"批量分配会员",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"assign-table"},[a("div",{staticClass:"check-all border-box flex flex-space-between"},[a("div",{staticClass:"font-14 color-606266"},[a("el-checkbox",{attrs:{disabled:e.clerkOptions.length>e.assignPeople||e.unbindFlag,indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1),a("div",{staticClass:"font-14 color-606266"},[a("el-checkbox",{on:{change:e.changeHand},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},[e._v("手动分配")]),a("span",{staticClass:"span-line"}),a("span",[e._v("可分配会员 "),a("span",{staticClass:"color-303133"},[e._v(e._s(e.assignPeople))]),e._v(" 人")])],1)]),a("div",[a("ul",{staticClass:"clerk-list-ul"},[a("el-checkbox-group",{on:{change:e.handleCheckedChange},model:{value:e.checkedClerks,callback:function(t){e.checkedClerks=t},expression:"checkedClerks"}},[e._l(e.clerkOptions,(function(t,r){return[a("li",{key:r+"clerk",staticClass:"clerk-cell font-14 color-606266"},[a("el-checkbox",{attrs:{disabled:t.disabled,label:t.clerkId},on:{change:function(a){return e.changeCell(a,t)}}},[e._v(e._s(t.clerkName))]),t.bindStaffFlag?e._e():a("span",{staticClass:"font-14 color-f56c6c p-l-20"},[e._v("未关联企微用户")]),!e.checked&&e.checkedClerks.includes(t.clerkId)?a("span",{staticClass:"p-l-20"},[e._v("\n 分配会员 "),a("span",{staticClass:"color-303133"},[e._v(e._s(t.memberCount))]),e._v(" 人")]):e._e(),e.checked&&e.checkedClerks.includes(t.clerkId)?a("span",{staticClass:"p-l-20 p-r-10"},[e._v("分配会员 ")]):e._e(),e.checked&&e.checkedClerks.includes(t.clerkId)?a("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",step:1,"step-strictly":"",min:1,max:999999999},on:{blur:function(a){return e.blurNum(a,t)},change:e.handleChange},model:{value:t.memberCount,callback:function(a){e.$set(t,"memberCount",a)},expression:"item.memberCount"}}):e._e(),e.checked&&e.checkedClerks.includes(t.clerkId)?a("span",{staticClass:"p-l-10"},[e._v(" 人")]):e._e()],1)]}))],2)],1),a("div",{staticClass:"flex flex-space-between m-t-20"},[a("div",{staticClass:"font-14 color-909399"},[e._v("最多分配会员 5000 人")]),a("div",{staticClass:"font-14 color-606266"},[e._v("\n 分配总数 "),a("span",{class:[0!=e.totalPeople&&e.totalPeople!=e.assignPeople?"color-f5222d":"color-2f54eb"]},[e._v(e._s(e.totalPeople))]),e._v(" 人\n ")])])])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),a("el-button",{attrs:{disabled:e.totalPeople!=e.assignPeople,loading:e.loadBtn,type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},f=[],g=(a("6762"),a("2fdb"),a("456d"),a("c5f6"),a("d157")),h=a("d11a"),b=a("5b4e"),v=a("5c96"),k={errorMsg:function(e){var t=window.location.origin;if("0000"!=e.code){if("0003"==e.code)return window.location.href=t+"/haoban-4/#/login",!1;v["Message"].error({duration:1e3,message:e.message||"接口异常"})}}},I=h["a"].saveAssign,C=h["a"].getMemberCount,w=h["a"].getClerkList,x={components:{},props:{brandId:{type:String,default:function(){return""}},storeBrandId:{type:String,default:function(){return""}},customerAssignTotal:{type:[String,Number],default:function(){return""}},clerkId:{type:String,default:function(){return""}},searchParams:{type:String,default:function(){return""}},editRow:{type:Object,default:function(){return{}}},multipleData:{type:[Array,Object],default:function(){return[]}},chooseAll:{type:[String,Number],default:function(){return"0"}},departObj:{type:Object,default:function(){return{departmentId:"",departmentName:"",wxDepartmentId:"",parentId:"",isStore:"",staffCount:"",bindFlag:"",loading:!1}}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",staffName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",dialogVisible:!0,unbindFlag:!1,checked:!1,checkAll:!1,isIndeterminate:!1,clerkOptions:[],checkedClerks:[],totalPeople:0,assignPeople:0,loadBtn:!1}},mounted:function(){var e=this;Object.keys(e.departObj).length&&(e.getClerkData(),e.setNum())},methods:{changeCell:function(e,t){var a=this;a.$nextTick((function(){if(e){if(a.checkedClerks.length==a.assignPeople)return a.clerkOptions.forEach((function(e,t){a.checkedClerks.includes(e.clerkId)||(e.disabled=!0)})),!1}else a.clerkOptions.forEach((function(e,t){e.disabled=!e.bindStaffFlag}))}))},changeHand:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this,t){e.next=8;break}return e.next=4,a.calcNum();case 4:return e.next=6,a.totalCalc();case 6:e.next=9;break;case 8:a.totalCalc();case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),handleChange:function(){var e=this;e.totalCalc()},blurNum:function(e,t){var a=this;t.memberCount||(t.memberCount=1),a.totalCalc()},totalCalc:function(){var e=this,t=0;e.clerkOptions.forEach((function(a,r){e.checkedClerks.includes(a.clerkId)&&(t+=a.memberCount)})),e.totalPeople=t},handleCheckedChange:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this,r=t.length,a.checkAll=r===a.clerkOptions.length,a.isIndeterminate=r>0&&r<a.clerkOptions.length,a.checked){e.next=11;break}return e.next=7,a.calcNum();case 7:return e.next=9,a.totalCalc();case 9:e.next=12;break;case 11:a.totalCalc();case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),handleCheckAllChange:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this,a.checkedClerks=t?a.clerkOptions.map((function(e){return e.clerkId})):[],a.isIndeterminate=!1,a.checked){e.next=10;break}return e.next=6,a.calcNum();case 6:return e.next=8,a.totalCalc();case 8:e.next=11;break;case 10:a.totalCalc();case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),calcNum:function(){var e=this;if(!e.checkedClerks.length)return!1;var t=Math.floor(e.assignPeople/e.checkedClerks.length),a=e.assignPeople%e.checkedClerks.length,r=[];e.clerkOptions.forEach((function(a,n){a.memberCount=t,e.checkedClerks.includes(a.clerkId)&&r.push(n)})),e.clerkOptions.forEach((function(e,t){r.forEach((function(r,n){r==t&&n<a&&(e.memberCount=e.memberCount+1)}))}))},getClerkData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId,storeInfoId:e.departObj.storeInfoId};w(t).then((function(t){"0000"==t.code?(t.result.forEach((function(t){t.memberCount=1,t.disabled=!t.bindStaffFlag,t.bindStaffFlag||(e.unbindFlag=!0)})),e.clerkOptions=t.result||[]):k.errorMsg(t)})).catch((function(e){}))},getMemberData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId,storeInfoId:e.departObj.storeInfoId,clerkId:e.clerkId,keyword:e.searchParams};C(t).then((function(t){"0000"==t.code?e.assignPeople=t.result||[]:k.errorMsg(t)})).catch((function(e){}))},resetData:function(){var e=this;e.checkedClerks=[],e.totalPeople=0,e.assignPeople=0,e.checked=!1},toCancel:function(){var e=this;e.resetData(),e.$emit("closeText")},handleClose:function(e){var t=this;t.resetData(),t.$emit("closeText")},submitForm:Object(g["a"])((function(){var e=this;e.postSave()}),300),postSave:function(){var e=this,t=[];e.clerkOptions.forEach((function(a){e.checkedClerks.includes(a.clerkId)&&0!=a.memberCount&&t.push({clerkId:a.clerkId,count:a.memberCount})})),e.loadBtn=!0;var a={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,chooseFlag:e.chooseAll,storeInfoId:e.departObj.storeInfoId,mainClerkId:e.clerkId,search:e.searchParams,mcuIds:1==e.chooseAll?[]:Object.keys(e.editRow).length?[e.editRow.mcuId]:e.multipleData.map((function(e){return e.mcuId})),clerkIds:t,staffName:e.staffName,brandId:e.storeBrandId};I(a).then((function(t){e.loadBtn=!1,b["a"].showmsg("操作成功","success"),e.resetData(),e.$emit("submitText")})).catch((function(t){e.loadBtn=!1}))},setNum:function(){var e=this;Object.keys(e.editRow).length?e.assignPeople=1:0==e.chooseAll?e.assignPeople=e.multipleData.length:e.assignPeople=e.customerAssignTotal}},watch:{departObj:function(e){var t=this;Object.keys(e).length&&(t.getClerkData(),t.setNum())}}},S=x,y=(a("fe92"),Object(u["a"])(S,m,f,!1,null,"970b72ba",null)),D=y.exports,_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"depart-list-body"},[a("div",{staticClass:"depart-name-wrap m-b-20"},[a("div",{staticClass:"flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-274",attrs:{placeholder:"请输入门店名称/代码",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:""},on:{change:e.changeCondition},model:{value:e.storeTypeId,callback:function(t){e.storeTypeId=t},expression:"storeTypeId"}},[a("el-option",{attrs:{label:"所有门店类型",value:""}}),e._l(e.storeTypeOptions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],2)],1),a("div",{staticClass:"to-log flex m-t-20"})])]),a("div",{staticClass:"depart-children-list border-box m-t-18"},[a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{staticClass:"cursor-pointer",attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName||"--"))]}}])}),a("el-table-column",{staticClass:"cursor-pointer",attrs:{prop:"",label:"门店类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.storeType[t.row.storeType]||"--"))]}}])}),a("el-table-column",{staticClass:"cursor-pointer",attrs:{prop:"",label:"门店代码","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeCode||"--"))]}}])}),a("el-table-column",{staticClass:"cursor-pointer",attrs:{prop:"",label:"门店分组名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.storeGroupName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.showMember(t.row)}}},[e._v("查看会员")])]}}])})],1),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])},O=[],T=h["a"].getStoreList,j={name:"StoreList",components:{},props:{brandId:{type:String,default:function(){return""}},departObj:{type:Object,default:function(){return{storeGroupId:"",storeGroupName:"",wxDepartmentId:"",parentId:"",isStore:"",staffCount:"",bindFlag:""}}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",nameVisible:!1,searchInput:"",storeTypeId:"",storeTypeOptions:[{id:"1",name:"自营"},{id:"2",name:"联营"},{id:"3",name:"代理"},{id:"4",name:"加盟"},{id:"5",name:"代销"},{id:"6",name:"托管"}],storeType:{1:"自营",2:"联营",3:"代理",4:"加盟",5:"代销",6:"托管"},currentPage:1,pageSize:20,total:0,tableData:[],loading:!1}},mounted:function(){var e=this;Object.keys(e.departObj)&&(e.currentPage=1,e.tableData=[],e.total=0,e.departObj.storeGroupId&&e.getTableList())},methods:{showMember:function(e){var t=this;t.$emit("getStore",e)},toInput:Object(g["a"])((function(){var e=this;e.currentPage=1,e.getTableList()}),500),clearInput:function(){var e=this;e.currentPage=1,e.getTableList()},changeCondition:function(){var e=this;e.currentPage=1,e.getTableList()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableList()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableList()},getTableList:function(){var e=this;e.loading=!0;var t={wxEnterpriseId:e.wxEnterpriseId,storeGroupId:e.departObj.storeGroupId,enterpriseId:e.brandId,search:e.searchInput||"",storeType:e.storeTypeId,pageNum:e.currentPage,pageSize:e.pageSize};T(t).then((function(t){e.loading=!1,e.tableData=t.result.result||[],e.total=t.result.totalCount})).catch((function(t){e.loading=!1,e.tableData=[],e.total=0}))}},watch:{departObj:function(e,t){var a=this;Object.keys(e)&&(a.currentPage=1,a.tableData=[],a.total=0,e.storeGroupId&&a.getTableList())},brandId:function(e){var t=this;e&&(t.searchInput="",t.storeTypeId="")}}},F=j,N=(a("748f"),Object(u["a"])(F,_,O,!1,null,"22011a24",null)),E=N.exports,P=h["a"].getCustomerSet,R=h["a"].saveCustomerSet,L=h["a"].getGroupList,G=h["a"].getMemberList,M=h["a"].getNavChain,A=h["a"].getAssignStatus,B=h["a"].getListBrand,z=h["a"].getClerkList,$={name:"CustomerAssignPage",components:{orgTree:p,customerAssign:D,storeList:E},props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",activeName:"first",loadingSet:!1,customerSetData:{unbindClerkDisMemberFlag:!1},departObj:{},gicData:[],clerkId:"",searchInput:"",clerkOptions:[],storeBrandId:"",storeBrandOptions:[],tableData:[],currentPage:1,pageSize:20,total:0,loading:!1,selectRadio:0,multipleSelection:[],assignShow:!1,showMember:!1,sortCode:"",sortRule:"",storeObj:{},gicDataCopy:[],navData:[]}},mounted:function(){var e=this;e.$emit("showTab","/customer-assign"),e.brandId&&(e.getSetData(),e.getGicData())},methods:{sortChange:function(e,t,a){var r=this;r.sortCode=e.prop,r.sortRule="ascending"==e.order?"asc":"desc",r.currentPage=1,r.getTableList()},handleTabClick:function(){var e=this;"first"==e.activeName?e.getSetData():(e.showMember=!1,e.currentPage=1,e.tableData=[],e.clerkOptions=[],e.clerkId="",e.searchInput="",e.selectRadio=0,e.multipleSelection=[],e.storeObj={},e.getGicData())},submitSet:Object(g["a"])((function(){var e=this;e.loadingSet=!0,e.setData()}),300),setData:function(){var e=this,t=[];for(var a in e.customerSetData)e.customerSetData[a]&&t.push(a);var r={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,openCodes:t.join(","),switchType:2};R(r).then((function(t){e.loadingSet=!1,e.getSetData(),"0000"==t.code?b["a"].showmsg("操作成功","success"):b["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){e.loadingSet=!1}))},getSetData:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,switchType:2};P(t).then((function(t){t.result&&t.result.length?t.result.forEach((function(t){e.customerSetData[t.switchCode]=1==t.switchFlag})):e.customerSetData={unbindClerkDisMemberFlag:!1}})).catch((function(e){}))},setParent:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t,a){var r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=this,n=0;case 2:if(!(n<a.length)){e.next=11;break}if(t.parentStoreGroupId!=a[n].storeGroupId){e.next=8;break}if(a[n].expand=!0,0==a[n].parentStoreGroupId){e.next=8;break}return e.next=8,r.setParent(a[n],a);case 8:n++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),changeDepart:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this,!t.storeInfoId){e.next=3;break}return e.abrupt("return",!1);case 3:a.departObj=t,a.showMember=!1,r=JSON.parse(JSON.stringify(a.gicDataCopy)),n=0;case 7:if(!(n<r.length)){e.next=16;break}if(a.departObj.parentStoreGroupId!=r[n].storeGroupId){e.next=13;break}if(r[n].expand=!0,0==r[n].parentStoreGroupId){e.next=13;break}return e.next=13,a.setParent(r[n],r);case 13:n++,e.next=7;break;case 16:return e.next=18,a.treeData(JSON.parse(JSON.stringify(r)));case 18:a.gicData=e.sent,a.gicData[0].expand=!0;case 20:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getStore:function(e){var t=this;t.storeObj=e,t.showMember=!0,t.getBrandData(),t.getClerkData(),t.toGetNavData()},assignStatus:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,e.abrupt("return",new Promise((function(e,a){var r={wxEnterpriseId:t.wxEnterpriseId,storeInfoId:t.storeObj.storeInfoId};A(r).then((function(t){"0000"!=t.code?(k.errorMsg(t),e(!1)):e(t.result)})).catch((function(t){e(!1)}))})));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),closeText:function(){var e=this;e.assignShow=!1,e.selectRadio=0,e.multipleSelection=[],e.editRow={},e.$refs.multipleTable.clearSelection()},submitText:function(){var e=this;e.selectRadio=0,e.multipleSelection=[],e.assignShow=!1,e.$refs.multipleTable.clearSelection(),e.currentPage=1,e.getTableList(),e.$alert("会员分配中,请稍候查看","",{confirmButtonText:"确定",callback:function(t){e.currentPage=1,e.getTableList();var a=setTimeout((function(){e.currentPage=1,e.getTableList(),clearTimeout(a)}),1e3)}})},toInput:Object(g["a"])((function(){var e=this;e.currentPage=1,e.getTableList()}),500),clearSearch:function(){var e=this;e.currentPage=1,e.getTableList()},getSelectData:function(e){var t=this;t.departObj=e,t.selectRadio=0,t.showMember=!1,t.storeObj={},t.currentPage=1,t.tableData=[],t.clerkOptions=[],t.clerkId="",t.searchInput="",t.multipleSelection=[]},handleSelectionChange:function(e){this.multipleSelection=e},handleCommand:function(e){this.selectRadio=e},toAssignMember:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t,a){var r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this,e.next=3,r.assignStatus();case 3:if(n=e.sent,!n){e.next=7;break}return r.$message.error({duration:1e3,message:"会员正在分配中,请稍后再试"}),e.abrupt("return",!1);case 7:r.editRow=a,r.selectRadio=0,r.multipleSelection=[],r.$refs.multipleTable.clearSelection(),r.assignShow=!0;case 12:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),toAssign:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,t.editRow={},e.next=4,t.assignStatus();case 4:if(a=e.sent,!a){e.next=8;break}return t.$message.error({duration:1e3,message:"会员正在分配中,请稍后再试"}),e.abrupt("return",!1);case 8:if(t.multipleSelection.length){e.next=11;break}return t.$message.error({duration:1e3,message:"请选择会员"}),e.abrupt("return",!1);case 11:t.assignShow=!0;case 12:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),treeData:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=this,r=t.filter((function(e){var r=t.filter((function(t){return e.storeGroupId==t.parentStoreGroupId}));return r.length>0?(e.hasSonNode=!0,e.children=a.sortGroup(r)):(e.hasSonNode=!1,e.children=[]),0==e.parentStoreGroupId})),e.abrupt("return",r);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),sortGroup:function(e){return e.sort((function(e,t){return e.sort-t.sort})),e},getGicData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId};L(t).then(function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a.result.length){t.next=6;break}return a.result.forEach((function(t){t.loading=!1,t.expand=!1,t.children=[],t.label=t.storeGroupName,0==t.parentStoreGroupId&&(t.expand=!0,e.departObj=t)})),e.gicDataCopy=JSON.parse(JSON.stringify(a.result)),t.next=5,e.treeData(JSON.parse(JSON.stringify(a.result)));case 5:e.gicData=t.sent;case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))},changeCondition:function(){var e=this;e.currentPage=1,e.getTableList()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableList()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableList()},toGetNavData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId,storeInfoId:e.storeObj.storeInfoId};M(t).then((function(t){if("0000"==t.code)return e.navData=t.result||[],e.navData.push(e.storeObj),!1;k.errorMsg(t)})).catch((function(e){}))},getBrandData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId,storeInfoId:e.storeObj.storeInfoId};B(t).then((function(t){e.storeBrandOptions=t.result||[],e.storeBrandId=t.result.length?t.result[0].brandId:"",e.getTableList()})).catch((function(e){}))},getClerkData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId,storeInfoId:e.storeObj.storeInfoId};z(t).then((function(t){e.clerkOptions=t.result||[]})).catch((function(e){}))},getTableList:function(){var e=this;e.loading=!0;var t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId,pageNum:e.currentPage,pageSize:e.pageSize,storeInfoId:e.storeObj.storeInfoId,mainClerkId:e.clerkId,brandId:e.storeBrandId,search:e.searchInput,sortCode:e.sortCode,sortRule:e.sortRule};G(t).then((function(t){e.loading=!1,e.tableData=t.result.result||[],e.total=t.result.totalCount})).catch((function(t){e.loading=!1,e.tableData=[],e.total=0}))}},watch:{brandId:function(e,t){var a=this;e&&(a.showMember=!1,a.currentPage=1,a.tableData=[],a.total=0,a.clerkOptions=[],a.clerkId="",a.searchInput="",a.selectRadio=0,a.multipleSelection=[],a.storeObj={},a.departObj={},a.gicData=[],a.gicDataCopy=[],a.getGicData(),a.getSetData())}}},J=$,U=(a("e73a"),Object(u["a"])(J,r,n,!1,null,"4c83e1a3",null));t["default"]=U.exports},"155b":function(e,t,a){},"28a5":function(e,t,a){"use strict";var r=a("aae3"),n=a("cb7c"),s=a("ebd6"),o=a("0390"),i=a("9def"),l=a("5f1b"),c=a("520a"),u=a("79e5"),d=Math.min,p=[].push,m="split",f="length",g="lastIndex",h=4294967295,b=!u((function(){RegExp(h,"y")}));a("214f")("split",2,(function(e,t,a,u){var v;return v="c"=="abbc"[m](/(b)*/)[1]||4!="test"[m](/(?:)/,-1)[f]||2!="ab"[m](/(?:ab)*/)[f]||4!="."[m](/(.?)(.?)/)[f]||"."[m](/()()/)[f]>1||""[m](/.?/)[f]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!r(e))return a.call(n,e,t);var s,o,i,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,m=void 0===t?h:t>>>0,b=new RegExp(e.source,u+"g");while(s=c.call(b,n)){if(o=b[g],o>d&&(l.push(n.slice(d,s.index)),s[f]>1&&s.index<n[f]&&p.apply(l,s.slice(1)),i=s[0][f],d=o,l[f]>=m))break;b[g]===s.index&&b[g]++}return d===n[f]?!i&&b.test("")||l.push(""):l.push(n.slice(d)),l[f]>m?l.slice(0,m):l}:"0"[m](void 0,0)[f]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,r){var n=e(this),s=void 0==a?void 0:a[t];return void 0!==s?s.call(a,n,r):v.call(String(n),a,r)},function(e,t){var r=u(v,e,this,t,v!==a);if(r.done)return r.value;var c=n(e),p=String(this),m=s(c,RegExp),f=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(b?"y":"g"),k=new m(b?c:"^(?:"+c.source+")",g),I=void 0===t?h:t>>>0;if(0===I)return[];if(0===p.length)return null===l(k,p)?[p]:[];var C=0,w=0,x=[];while(w<p.length){k.lastIndex=b?w:0;var S,y=l(k,b?p:p.slice(w));if(null===y||(S=d(i(k.lastIndex+(b?0:w)),p.length))===C)w=o(p,w,f);else{if(x.push(p.slice(C,w)),x.length===I)return x;for(var D=1;D<=y.length-1;D++)if(x.push(y[D]),x.length===I)return x;w=C=S}}return x.push(p.slice(C)),x}]}))},"2f21":function(e,t,a){"use strict";var r=a("79e5");e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"2fdb":function(e,t,a){"use strict";var r=a("5ca1"),n=a("d2c8"),s="includes";r(r.P+r.F*a("51479")(s),"String",{includes:function(e){return!!~n(this,e,s).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"3af2":function(e,t,a){},51479:function(e,t,a){var r=a("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(a){try{return t[r]=!1,!"/./"[e](t)}catch(n){}}return!0}},"55dd":function(e,t,a){"use strict";var r=a("5ca1"),n=a("d8e8"),s=a("4bf8"),o=a("79e5"),i=[].sort,l=[1,2,3];r(r.P+r.F*(o((function(){l.sort(void 0)}))||!o((function(){l.sort(null)}))||!a("2f21")(i)),"Array",{sort:function(e){return void 0===e?i.call(s(this)):i.call(s(this),n(e))}})},"5b4e":function(e,t,a){"use strict";var r=a("5c96");t["a"]={showmsg:function(e,t){Object(r["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},6762:function(e,t,a){"use strict";var r=a("5ca1"),n=a("c366")(!0);r(r.P,"Array",{includes:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),a("9c6c")("includes")},"6ce2":function(e,t,a){e.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));a("ac6a"),a("456d");var r=a("b775");function n(e,t){e=e||{};var a=Object.keys(e);return a.forEach((function(a){var n=e[a];"string"===typeof n&&(n={url:n}),n.url="".concat(t).concat(n.url),e[a]=function(e){return Object(r["a"])(n,e)}})),e}},"748f":function(e,t,a){"use strict";var r=a("bb61"),n=a.n(r);n.a},"9ade":function(e,t,a){"use strict";var r=a("155b"),n=a.n(r);n.a},bb61:function(e,t,a){},d11a:function(e,t,a){"use strict";var r=a("71f6"),n={getGroupList:"/member/store-group",getStoreList:"/member/store-list",getAssignStatus:"/member/check-distribute",getNavChain:"/member/crumb-list",getMemberList:{url:"/member/member-list",method:"post",useFormData:!0},getListBrand:"/member/list-brand",getClerkList:"/member/clerk-list",getMemberCount:"",saveAssign:{url:"/member/distribute-member",method:"post"},getMemberData:"/member/dimension-detail",saveSortMember:{url:"/member/dimension-save",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"/member/switch-list",saveShowSet:{url:"/member/switch-setting",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"/member/switch-list",saveCustomerSet:{url:"/member/switch-setting",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"/member/member-group-hb-list",getClassifyData:"/member/member-group-category-list",postSortGroup:{url:"/member/member-group-sort",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"/member/member-group-list",saveSync:{url:"/member/member-group-save",method:"post",useFormData:!0,useIntercept:!1},delCrowd:{url:"/member/member-group-del",method:"post",useFormData:!0,useIntercept:!1},getVisiable:"/visiable-range-view",saveVisiable:{url:"/visiable-range-save",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"/tag-category-list",getTagLicense:"/member-tag-license",addClassify:{url:"/tag-category-add",method:"post",useFormData:!0,useIntercept:!1},delClassify:{url:"/tag-category-del",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"/member-tag-list",addClerkTag:{url:"/member-tag-add",method:"post",useFormData:!0,useIntercept:!1},getTagDetail:"/member-tag-detail",editClerkTag:{url:"/member-tag-edit",method:"post",useFormData:!0,useIntercept:!1},delClerkTag:{url:"/tag-del",method:"post",useFormData:!0,useIntercept:!1},sortClerkTag:{url:"/member-tag-sort",method:"post",useFormData:!0,useIntercept:!1},getTagVisiable:"/visiable-range-view",saveTagVisiable:{url:"/visiable-range-save",method:"post",useFormData:!0,useIntercept:!1}};n=Object(r["a"])(n,"/hb-app-customer-web"),t["a"]=n},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function r(e,t){var a,r=t||200;return function(){var t=this,n=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(t,n)}),r)}}function n(e,t){var a,r,n=t||200;return function(){var t=this,s=arguments,o=+new Date;a&&o-a<n?(clearTimeout(r),r=setTimeout((function(){a=o,e.apply(t,s)}),n)):(a=o,e.apply(t,s))}}function s(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}},d2c8:function(e,t,a){var r=a("aae3"),n=a("be13");e.exports=function(e,t,a){if(r(t))throw TypeError("String#"+a+" doesn't accept regex!");return String(n(e))}},e73a:function(e,t,a){"use strict";var r=a("3af2"),n=a.n(r);n.a},f5c6:function(e,t,a){},fe92:function(e,t,a){"use strict";var r=a("f5c6"),n=a.n(r);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7abd3da6"],{"12eb":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"customer-assign-wrap"},[r("div",{staticClass:"border-box"},[r("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[r("el-tab-pane",{attrs:{label:"分配策略",name:"first"}}),r("el-tab-pane",{attrs:{label:"顾客列表",name:"second"}})],1),"first"==e.activeName?r("div",{staticClass:"customer-assign-set"},[r("div",{staticClass:"m-b-10"},[r("el-checkbox",{model:{value:e.customerSetData.unbindClerkDisMemberFlag,callback:function(t){e.$set(e.customerSetData,"unbindClerkDisMemberFlag",t)},expression:"customerSetData.unbindClerkDisMemberFlag"}},[e._v("解绑导购code,顾客自动分配给店长")]),r("div",{staticClass:"font-12 color-909399 set-tip-item"},[e._v("注:保存勾选项后,解绑当前导购code,该导购cede名下的顾客会分配到店长,在移动端可重新分配顾客")])],1),r("div",{staticClass:"m-t-46 p-l-20"},[r("el-button",{attrs:{type:"primary",loading:e.loadingSet},on:{click:e.submitSet}},[e._v("保存")])],1)]):e._e(),"second"==e.activeName?r("div",{staticClass:"list-body flex"},[r("div",{staticClass:"list-left border-box",style:{minWidth:e.gicData.length?"200px":0,maxWidth:e.gicData.length?"200px":0}},[e.gicData.length?r("org-tree",{attrs:{"brand-id":e.brandId,"depart-obj":e.departObj,"item-data":e.gicData},on:{getSelectData:e.getSelectData}}):e._e()],1),r("div",{class:["list-right p-20 border-box",e.gicData.length?"":"no-left-list"]},[e.showMember?e._e():r("store-list",{attrs:{"brand-id":e.brandId,"depart-obj":e.departObj},on:{getStore:e.getStore}}),e.showMember?r("div",{staticClass:"list-right-body"},[r("div",{staticClass:"el-breadcrumb m-b-10",attrs:{role:"navigation"}},e._l(e.navData,(function(t,a){return r("span",{key:a+"nav",staticClass:"el-breadcrumb__item"},[r("span",{staticClass:"el-breadcrumb__inner is-link",attrs:{role:"link"},on:{click:function(r){return e.changeDepart(t,a)}}},[r("span",{staticClass:"el-breadcrumb__inner is-link font-14 color-606266"},[e._v("\n "+e._s(a==e.navData.length-1?t.storeName:t.storeGroupName)+"\n ")])]),a!=e.navData.length-1?r("i",{staticClass:"el-breadcrumb__separator el-icon-arrow-right"}):e._e()])})),0),r("div",{staticClass:"table-top flex flex-space-between"},[r("div",[r("el-input",{staticStyle:{width:"274px"},attrs:{placeholder:"请输入姓名/昵称/会员卡号",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),r("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:""},on:{change:e.changeCondition},model:{value:e.clerkId,callback:function(t){e.clerkId=t},expression:"clerkId"}},[r("el-option",{attrs:{label:"全部",value:""}}),e._l(e.clerkOptions,(function(e){return r("el-option",{key:e.clerkId,attrs:{label:e.clerkName,value:e.clerkId}})}))],2),r("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:""},on:{change:e.changeCondition},model:{value:e.storeBrandId,callback:function(t){e.storeBrandId=t},expression:"storeBrandId"}},e._l(e.storeBrandOptions,(function(e){return r("el-option",{key:e.brandId,attrs:{label:e.brandName,value:e.brandId}})})),1)],1),r("el-button",{attrs:{type:"primary"},on:{click:e.toAssign}},[e._v("批量分配会员")])],1),r("div",{staticClass:"table-body m-t-20"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"45"}}),r("el-table-column",{attrs:{width:"25"}},[r("template",{slot:"header"},[r("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-25px",transform:"translateY(0px)","-webkit-transform":"translateY(0px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[r("span",{staticClass:"el-dropdown-link"},[r("i",{staticClass:"iconfont icongengduo font-12"})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{attrs:{command:"0"}},[r("span",{style:{color:0==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择当页")])]),r("el-dropdown-item",{attrs:{command:"1"}},[r("span",{style:{color:1==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择全部")])])],1)],1)],1)],2),r("el-table-column",{attrs:{label:"会员姓名",width:"160px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"flex common-table-user"},[r("div",{staticClass:"flex flex-align-center flex-pack-center common-table-photo"},[t.row.headUrl?r("img",{attrs:{src:t.row.headUrl,alt:"img"}}):r("img",{attrs:{src:a("6ce2"),alt:"img"}})]),r("div",{staticClass:"common-table-text hide-ellipsis"},[r("div",{staticClass:"font-14 color-606266 hide-ellipsis"},[e._v(e._s(t.row.memberName||"--"))]),r("div",{staticClass:"font-12 color-909399 hide-ellipsis"},[e._v(e._s(t.row.cardNo||"--"))])])])]}}],null,!1,1640223620)}),r("el-table-column",{attrs:{prop:"consumeTotal",label:"消费总额",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("¥ "+e._s(t.row.consumeTotal)+" "+e._s(null==t.row.consumeTotal&&0!=t.row.consumeTotal?"--":""))]}}],null,!1,3086522626)}),r("el-table-column",{attrs:{prop:"consumeTimes",label:"消费次数",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.consumeTimes||"0"))]}}],null,!1,387988807)}),r("el-table-column",{attrs:{prop:"lastConsume",label:"最近消费",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.lastConsume))+" "+e._s(t.row.lastConsume?"":"--"))]),r("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.lastConsume))+" "+e._s(t.row.lastConsume?"":"--"))])]}}],null,!1,2297394418)}),r("el-table-column",{attrs:{prop:"",label:"所属导购","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.mainClerkName||"--")+"\n ")]}}],null,!1,3025852098)}),r("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toAssignMember(t.$index,t.row)}}},[e._v("分配")])]}}],null,!1,1410739074)})],1),0!=e.tableData.length?r("div",{staticClass:"block common-wrap__page text-right m-t-24"},[r("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)]):e._e()],1)]):e._e()],1),e.assignShow?r("customer-assign",{attrs:{"store-brand-id":e.storeBrandId,"brand-id":e.brandId,"customer-assign-total":e.total,"clerk-id":e.clerkId,"search-params":e.searchInput,"edit-row":e.editRow,"choose-all":e.selectRadio,"depart-obj":e.storeObj,"multiple-data":e.multipleSelection},on:{closeText:e.closeText,submitText:e.submitText}}):e._e()],1)},n=[],s=(a("55dd"),a("96cf"),a("1da1")),o=(a("ac6a"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{class:["gic-tree-body"]},e._l(e.itemData,(function(t,r){return a("li",{key:r+"gic"},[a("div",{class:["li-cell cursor-pointer",e.departObj.storeGroupId==t.storeGroupId?"li-cell-active":""]},[a("div",{class:["li-cell-inner border-box cursor-pointer"],style:{"margin-left":20*(t.groupLevel+1)+"px"},on:{click:function(a){return e.toggleExpand(t)}}},[a("span",{class:["font-12 color-606266",1!=t.isStore&&t.hasSonNode?"":"color-fff",t.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),t.loading?a("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):e._e(),a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v(e._s(t.label))])])]),a("li-row",{directives:[{name:"show",rawName:"v-show",value:!!t.children.length&&t.expand,expression:"!!item.children.length && item.expand"}],attrs:{"depart-obj":e.departObj,"item-obj":t,"item-data":t.children},on:{getSelectData:e.getSelectData}})],1)})),0)}),i=[],l={name:"LiRow",props:{brandId:{type:String,default:function(){return""}},itemData:{type:[Object,Array],default:function(){return[]}},itemObj:{type:[Object,Array],default:function(){return[]}},departObj:{type:Object,default:function(){return{departmentId:"",departmentName:"",wxDepartmentId:"",parentId:"",isStore:"",staffCount:"",bindFlag:"",loading:!1}}}},data:function(){return{}},beforeDestroy:function(){this.tempArr=[]},methods:{getSelectData:function(e){var t=this;t.selectData=e,t.$emit("getSelectData",e)},toggleExpand:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=this,t.expand=!t.expand,a.$emit("getSelectData",t);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},c=l,u=(a("9ade"),a("2877")),d=Object(u["a"])(c,o,i,!1,null,"f56abb96",null),p=d.exports,m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"批量分配会员",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"assign-table"},[a("div",{staticClass:"check-all border-box flex flex-space-between"},[a("div",{staticClass:"font-14 color-606266"},[a("el-checkbox",{attrs:{disabled:e.clerkOptions.length>e.assignPeople||e.unbindFlag,indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1),a("div",{staticClass:"font-14 color-606266"},[a("el-checkbox",{on:{change:e.changeHand},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},[e._v("手动分配")]),a("span",{staticClass:"span-line"}),a("span",[e._v("可分配会员 "),a("span",{staticClass:"color-303133"},[e._v(e._s(e.assignPeople))]),e._v(" 人")])],1)]),a("div",[a("ul",{staticClass:"clerk-list-ul"},[a("el-checkbox-group",{on:{change:e.handleCheckedChange},model:{value:e.checkedClerks,callback:function(t){e.checkedClerks=t},expression:"checkedClerks"}},[e._l(e.clerkOptions,(function(t,r){return[a("li",{key:r+"clerk",staticClass:"clerk-cell font-14 color-606266"},[a("el-checkbox",{attrs:{disabled:t.disabled,label:t.clerkId},on:{change:function(a){return e.changeCell(a,t)}}},[e._v(e._s(t.clerkName))]),t.bindStaffFlag?e._e():a("span",{staticClass:"font-14 color-f56c6c p-l-20"},[e._v("未关联企微用户")]),!e.checked&&e.checkedClerks.includes(t.clerkId)?a("span",{staticClass:"p-l-20"},[e._v("\n 分配会员 "),a("span",{staticClass:"color-303133"},[e._v(e._s(t.memberCount))]),e._v(" 人")]):e._e(),e.checked&&e.checkedClerks.includes(t.clerkId)?a("span",{staticClass:"p-l-20 p-r-10"},[e._v("分配会员 ")]):e._e(),e.checked&&e.checkedClerks.includes(t.clerkId)?a("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",step:1,"step-strictly":"",min:1,max:999999999},on:{blur:function(a){return e.blurNum(a,t)},change:e.handleChange},model:{value:t.memberCount,callback:function(a){e.$set(t,"memberCount",a)},expression:"item.memberCount"}}):e._e(),e.checked&&e.checkedClerks.includes(t.clerkId)?a("span",{staticClass:"p-l-10"},[e._v(" 人")]):e._e()],1)]}))],2)],1),a("div",{staticClass:"flex flex-space-between m-t-20"},[a("div",{staticClass:"font-14 color-909399"},[e._v("最多分配会员 5000 人")]),a("div",{staticClass:"font-14 color-606266"},[e._v("\n 分配总数 "),a("span",{class:[0!=e.totalPeople&&e.totalPeople!=e.assignPeople?"color-f5222d":"color-2f54eb"]},[e._v(e._s(e.totalPeople))]),e._v(" 人\n ")])])])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),a("el-button",{attrs:{disabled:e.totalPeople!=e.assignPeople,loading:e.loadBtn,type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},g=[],f=(a("6762"),a("2fdb"),a("456d"),a("c5f6"),a("d157")),b=a("d11a"),h=a("5b4e6"),v=a("5c96"),k={errorMsg:function(e){var t=window.location.origin;if("0000"!=e.code){if("0003"==e.code)return window.location.href=t+"/haoban-4/#/login",!1;v["Message"].error({duration:1e3,message:e.message||"接口异常"})}}},I=b["a"].saveAssign,C=b["a"].getMemberCount,w=b["a"].getClerkList,x={components:{},props:{brandId:{type:String,default:function(){return""}},storeBrandId:{type:String,default:function(){return""}},customerAssignTotal:{type:[String,Number],default:function(){return""}},clerkId:{type:String,default:function(){return""}},searchParams:{type:String,default:function(){return""}},editRow:{type:Object,default:function(){return{}}},multipleData:{type:[Array,Object],default:function(){return[]}},chooseAll:{type:[String,Number],default:function(){return"0"}},departObj:{type:Object,default:function(){return{departmentId:"",departmentName:"",wxDepartmentId:"",parentId:"",isStore:"",staffCount:"",bindFlag:"",loading:!1}}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",staffName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",dialogVisible:!0,unbindFlag:!1,checked:!1,checkAll:!1,isIndeterminate:!1,clerkOptions:[],checkedClerks:[],totalPeople:0,assignPeople:0,loadBtn:!1}},mounted:function(){var e=this;Object.keys(e.departObj).length&&(e.getClerkData(),e.setNum())},methods:{changeCell:function(e,t){var a=this;a.$nextTick((function(){if(e){if(a.checkedClerks.length==a.assignPeople)return a.clerkOptions.forEach((function(e,t){a.checkedClerks.includes(e.clerkId)||(e.disabled=!0)})),!1}else a.clerkOptions.forEach((function(e,t){e.disabled=!e.bindStaffFlag}))}))},changeHand:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this,t){e.next=8;break}return e.next=4,a.calcNum();case 4:return e.next=6,a.totalCalc();case 6:e.next=9;break;case 8:a.totalCalc();case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),handleChange:function(){var e=this;e.totalCalc()},blurNum:function(e,t){var a=this;t.memberCount||(t.memberCount=1),a.totalCalc()},totalCalc:function(){var e=this,t=0;e.clerkOptions.forEach((function(a,r){e.checkedClerks.includes(a.clerkId)&&(t+=a.memberCount)})),e.totalPeople=t},handleCheckedChange:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this,r=t.length,a.checkAll=r===a.clerkOptions.length,a.isIndeterminate=r>0&&r<a.clerkOptions.length,a.checked){e.next=11;break}return e.next=7,a.calcNum();case 7:return e.next=9,a.totalCalc();case 9:e.next=12;break;case 11:a.totalCalc();case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),handleCheckAllChange:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this,a.checkedClerks=t?a.clerkOptions.map((function(e){return e.clerkId})):[],a.isIndeterminate=!1,a.checked){e.next=10;break}return e.next=6,a.calcNum();case 6:return e.next=8,a.totalCalc();case 8:e.next=11;break;case 10:a.totalCalc();case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),calcNum:function(){var e=this;if(!e.checkedClerks.length)return!1;var t=Math.floor(e.assignPeople/e.checkedClerks.length),a=e.assignPeople%e.checkedClerks.length,r=[];e.clerkOptions.forEach((function(a,n){a.memberCount=t,e.checkedClerks.includes(a.clerkId)&&r.push(n)})),e.clerkOptions.forEach((function(e,t){r.forEach((function(r,n){r==t&&n<a&&(e.memberCount=e.memberCount+1)}))}))},getClerkData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId,storeInfoId:e.departObj.storeInfoId};w(t).then((function(t){"0000"==t.code?(t.result.forEach((function(t){t.memberCount=1,t.disabled=!t.bindStaffFlag,t.bindStaffFlag||(e.unbindFlag=!0)})),e.clerkOptions=t.result||[]):k.errorMsg(t)})).catch((function(e){}))},getMemberData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId,storeInfoId:e.departObj.storeInfoId,clerkId:e.clerkId,keyword:e.searchParams};C(t).then((function(t){"0000"==t.code?e.assignPeople=t.result||[]:k.errorMsg(t)})).catch((function(e){}))},resetData:function(){var e=this;e.checkedClerks=[],e.totalPeople=0,e.assignPeople=0,e.checked=!1},toCancel:function(){var e=this;e.resetData(),e.$emit("closeText")},handleClose:function(e){var t=this;t.resetData(),t.$emit("closeText")},submitForm:Object(f["a"])((function(){var e=this;e.postSave()}),300),postSave:function(){var e=this,t=[];e.clerkOptions.forEach((function(a){e.checkedClerks.includes(a.clerkId)&&0!=a.memberCount&&t.push({clerkId:a.clerkId,count:a.memberCount})})),e.loadBtn=!0;var a={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,chooseFlag:e.chooseAll,storeInfoId:e.departObj.storeInfoId,mainClerkId:e.clerkId,search:e.searchParams,mcuIds:1==e.chooseAll?[]:Object.keys(e.editRow).length?[e.editRow.mcuId]:e.multipleData.map((function(e){return e.mcuId})),clerkIds:t,staffName:e.staffName,brandId:e.storeBrandId};I(a).then((function(t){e.loadBtn=!1,h["a"].showmsg("操作成功","success"),e.resetData(),e.$emit("submitText")})).catch((function(t){e.loadBtn=!1}))},setNum:function(){var e=this;Object.keys(e.editRow).length?e.assignPeople=1:0==e.chooseAll?e.assignPeople=e.multipleData.length:e.assignPeople=e.customerAssignTotal}},watch:{departObj:function(e){var t=this;Object.keys(e).length&&(t.getClerkData(),t.setNum())}}},S=x,D=(a("fe92"),Object(u["a"])(S,m,g,!1,null,"970b72ba",null)),y=D.exports,_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"depart-list-body"},[a("div",{staticClass:"depart-name-wrap m-b-20"},[a("div",{staticClass:"flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-274",attrs:{placeholder:"请输入门店名称/代码",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:""},on:{change:e.changeCondition},model:{value:e.storeTypeId,callback:function(t){e.storeTypeId=t},expression:"storeTypeId"}},[a("el-option",{attrs:{label:"所有门店类型",value:""}}),e._l(e.storeTypeOptions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],2)],1),a("div",{staticClass:"to-log flex m-t-20"})])]),a("div",{staticClass:"depart-children-list border-box m-t-18"},[a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{staticClass:"cursor-pointer",attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName||"--"))]}}])}),a("el-table-column",{staticClass:"cursor-pointer",attrs:{prop:"",label:"门店类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.storeType[t.row.storeType]||"--"))]}}])}),a("el-table-column",{staticClass:"cursor-pointer",attrs:{prop:"",label:"门店代码","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeCode||"--"))]}}])}),a("el-table-column",{staticClass:"cursor-pointer",attrs:{prop:"",label:"门店分组名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.storeGroupName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.showMember(t.row)}}},[e._v("查看会员")])]}}])})],1),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])},O=[],j=b["a"].getStoreList,T={name:"StoreList",components:{},props:{brandId:{type:String,default:function(){return""}},departObj:{type:Object,default:function(){return{storeGroupId:"",storeGroupName:"",wxDepartmentId:"",parentId:"",isStore:"",staffCount:"",bindFlag:""}}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",nameVisible:!1,searchInput:"",storeTypeId:"",storeTypeOptions:[{id:"1",name:"自营"},{id:"2",name:"联营"},{id:"3",name:"代理"},{id:"4",name:"加盟"},{id:"5",name:"代销"},{id:"6",name:"托管"}],storeType:{1:"自营",2:"联营",3:"代理",4:"加盟",5:"代销",6:"托管"},currentPage:1,pageSize:20,total:0,tableData:[],loading:!1}},mounted:function(){var e=this;Object.keys(e.departObj)&&(e.currentPage=1,e.tableData=[],e.total=0,e.departObj.storeGroupId&&e.getTableList())},methods:{showMember:function(e){var t=this;t.$emit("getStore",e)},toInput:Object(f["a"])((function(){var e=this;e.currentPage=1,e.getTableList()}),500),clearInput:function(){var e=this;e.currentPage=1,e.getTableList()},changeCondition:function(){var e=this;e.currentPage=1,e.getTableList()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableList()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableList()},getTableList:function(){var e=this;e.loading=!0;var t={wxEnterpriseId:e.wxEnterpriseId,storeGroupId:e.departObj.storeGroupId,enterpriseId:e.brandId,search:e.searchInput||"",storeType:e.storeTypeId,pageNum:e.currentPage,pageSize:e.pageSize};j(t).then((function(t){e.loading=!1,e.tableData=t.result.result||[],e.total=t.result.totalCount})).catch((function(t){e.loading=!1,e.tableData=[],e.total=0}))}},watch:{departObj:function(e,t){var a=this;Object.keys(e)&&(a.currentPage=1,a.tableData=[],a.total=0,e.storeGroupId&&a.getTableList())},brandId:function(e){var t=this;e&&(t.searchInput="",t.storeTypeId="")}}},N=T,F=(a("748f"),Object(u["a"])(N,_,O,!1,null,"22011a24",null)),E=F.exports,P=b["a"].getCustomerSet,R=b["a"].saveCustomerSet,L=b["a"].getGroupList,G=b["a"].getMemberList,M=b["a"].getNavChain,B=b["a"].getAssignStatus,A=b["a"].getListBrand,z=b["a"].getClerkList,$={name:"CustomerAssignPage",components:{orgTree:p,customerAssign:y,storeList:E},props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",activeName:"first",loadingSet:!1,customerSetData:{unbindClerkDisMemberFlag:!1},departObj:{},gicData:[],clerkId:"",searchInput:"",clerkOptions:[],storeBrandId:"",storeBrandOptions:[],tableData:[],currentPage:1,pageSize:20,total:0,loading:!1,selectRadio:0,multipleSelection:[],assignShow:!1,showMember:!1,sortCode:"",sortRule:"",storeObj:{},gicDataCopy:[],navData:[]}},mounted:function(){var e=this;e.$emit("showTab","/customer-assign"),e.brandId&&(e.getSetData(),e.getGicData())},methods:{sortChange:function(e,t,a){var r=this;r.sortCode=e.prop,r.sortRule="ascending"==e.order?"asc":"desc",r.currentPage=1,r.getTableList()},handleTabClick:function(){var e=this;"first"==e.activeName?e.getSetData():(e.showMember=!1,e.currentPage=1,e.tableData=[],e.clerkOptions=[],e.clerkId="",e.searchInput="",e.selectRadio=0,e.multipleSelection=[],e.storeObj={},e.getGicData())},submitSet:Object(f["a"])((function(){var e=this;e.loadingSet=!0,e.setData()}),300),setData:function(){var e=this,t=[];for(var a in e.customerSetData)e.customerSetData[a]&&t.push(a);var r={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,openCodes:t.join(","),switchType:2};R(r).then((function(t){e.loadingSet=!1,e.getSetData(),"0000"==t.code?h["a"].showmsg("操作成功","success"):h["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){e.loadingSet=!1}))},getSetData:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,switchType:2};P(t).then((function(t){t.result&&t.result.length?t.result.forEach((function(t){e.customerSetData[t.switchCode]=1==t.switchFlag})):e.customerSetData={unbindClerkDisMemberFlag:!1}})).catch((function(e){}))},setParent:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t,a){var r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=this,n=0;case 2:if(!(n<a.length)){e.next=11;break}if(t.parentStoreGroupId!=a[n].storeGroupId){e.next=8;break}if(a[n].expand=!0,0==a[n].parentStoreGroupId){e.next=8;break}return e.next=8,r.setParent(a[n],a);case 8:n++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),changeDepart:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this,!t.storeInfoId){e.next=3;break}return e.abrupt("return",!1);case 3:a.departObj=t,a.showMember=!1,r=JSON.parse(JSON.stringify(a.gicDataCopy)),n=0;case 7:if(!(n<r.length)){e.next=16;break}if(a.departObj.parentStoreGroupId!=r[n].storeGroupId){e.next=13;break}if(r[n].expand=!0,0==r[n].parentStoreGroupId){e.next=13;break}return e.next=13,a.setParent(r[n],r);case 13:n++,e.next=7;break;case 16:return e.next=18,a.treeData(JSON.parse(JSON.stringify(r)));case 18:a.gicData=e.sent,a.gicData[0].expand=!0;case 20:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getStore:function(e){var t=this;t.storeObj=e,t.showMember=!0,t.getBrandData(),t.getClerkData(),t.toGetNavData()},assignStatus:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,e.abrupt("return",new Promise((function(e,a){var r={wxEnterpriseId:t.wxEnterpriseId,storeInfoId:t.storeObj.storeInfoId};B(r).then((function(t){"0000"!=t.code?(k.errorMsg(t),e(!1)):e(t.result)})).catch((function(t){e(!1)}))})));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),closeText:function(){var e=this;e.assignShow=!1,e.selectRadio=0,e.multipleSelection=[],e.editRow={},e.$refs.multipleTable.clearSelection()},submitText:function(){var e=this;e.selectRadio=0,e.multipleSelection=[],e.assignShow=!1,e.$refs.multipleTable.clearSelection(),e.currentPage=1,e.getTableList(),e.$alert("会员分配中,请稍候查看","",{confirmButtonText:"确定",callback:function(t){e.currentPage=1,e.getTableList();var a=setTimeout((function(){e.currentPage=1,e.getTableList(),clearTimeout(a)}),1e3)}})},toInput:Object(f["a"])((function(){var e=this;e.currentPage=1,e.getTableList()}),500),clearSearch:function(){var e=this;e.currentPage=1,e.getTableList()},getSelectData:function(e){var t=this;t.departObj=e,t.selectRadio=0,t.showMember=!1,t.storeObj={},t.currentPage=1,t.tableData=[],t.clerkOptions=[],t.clerkId="",t.searchInput="",t.multipleSelection=[]},handleSelectionChange:function(e){this.multipleSelection=e},handleCommand:function(e){this.selectRadio=e},toAssignMember:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t,a){var r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this,e.next=3,r.assignStatus();case 3:if(n=e.sent,!n){e.next=7;break}return r.$message.error({duration:1e3,message:"会员正在分配中,请稍后再试"}),e.abrupt("return",!1);case 7:r.editRow=a,r.selectRadio=0,r.multipleSelection=[],r.$refs.multipleTable.clearSelection(),r.assignShow=!0;case 12:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),toAssign:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,t.editRow={},e.next=4,t.assignStatus();case 4:if(a=e.sent,!a){e.next=8;break}return t.$message.error({duration:1e3,message:"会员正在分配中,请稍后再试"}),e.abrupt("return",!1);case 8:if(t.multipleSelection.length){e.next=11;break}return t.$message.error({duration:1e3,message:"请选择会员"}),e.abrupt("return",!1);case 11:t.assignShow=!0;case 12:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),treeData:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=this,r=t.filter((function(e){var r=t.filter((function(t){return e.storeGroupId==t.parentStoreGroupId}));return r.length>0?(e.hasSonNode=!0,e.children=a.sortGroup(r)):(e.hasSonNode=!1,e.children=[]),0==e.parentStoreGroupId})),e.abrupt("return",r);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),sortGroup:function(e){return e.sort((function(e,t){return e.sort-t.sort})),e},getGicData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId};L(t).then(function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a.result.length){t.next=6;break}return a.result.forEach((function(t){t.loading=!1,t.expand=!1,t.children=[],t.label=t.storeGroupName,0==t.parentStoreGroupId&&(t.expand=!0,e.departObj=t)})),e.gicDataCopy=JSON.parse(JSON.stringify(a.result)),t.next=5,e.treeData(JSON.parse(JSON.stringify(a.result)));case 5:e.gicData=t.sent;case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))},changeCondition:function(){var e=this;e.currentPage=1,e.getTableList()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableList()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableList()},toGetNavData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId,storeInfoId:e.storeObj.storeInfoId};M(t).then((function(t){if("0000"==t.code)return e.navData=t.result||[],e.navData.push(e.storeObj),!1;k.errorMsg(t)})).catch((function(e){}))},getBrandData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId,storeInfoId:e.storeObj.storeInfoId};A(t).then((function(t){e.storeBrandOptions=t.result||[],e.storeBrandId=t.result.length?t.result[0].brandId:"",e.getTableList()})).catch((function(e){}))},getClerkData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId,storeInfoId:e.storeObj.storeInfoId};z(t).then((function(t){e.clerkOptions=t.result||[]})).catch((function(e){}))},getTableList:function(){var e=this;e.loading=!0;var t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId,pageNum:e.currentPage,pageSize:e.pageSize,storeInfoId:e.storeObj.storeInfoId,mainClerkId:e.clerkId,brandId:e.storeBrandId,search:e.searchInput,sortCode:e.sortCode,sortRule:e.sortRule};G(t).then((function(t){e.loading=!1,e.tableData=t.result.result||[],e.total=t.result.totalCount})).catch((function(t){e.loading=!1,e.tableData=[],e.total=0}))}},watch:{brandId:function(e,t){var a=this;e&&(a.showMember=!1,a.currentPage=1,a.tableData=[],a.total=0,a.clerkOptions=[],a.clerkId="",a.searchInput="",a.selectRadio=0,a.multipleSelection=[],a.storeObj={},a.departObj={},a.gicData=[],a.gicDataCopy=[],a.getGicData(),a.getSetData())}}},J=$,U=(a("e73a"),Object(u["a"])(J,r,n,!1,null,"4c83e1a3",null));t["default"]=U.exports},"155b":function(e,t,a){},"3af2":function(e,t,a){},"5b4e6":function(e,t,a){"use strict";var r=a("5c96");t["a"]={showmsg:function(e,t){Object(r["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},"6ce2":function(e,t,a){e.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));a("ac6a"),a("456d");var r=a("b775");function n(e,t){e=e||{};var a=Object.keys(e);return a.forEach((function(a){var n=e[a];"string"===typeof n&&(n={url:n}),n.url="".concat(t).concat(n.url),e[a]=function(e){return Object(r["a"])(n,e)}})),e}},"748f":function(e,t,a){"use strict";var r=a("bb61"),n=a.n(r);n.a},"9ade":function(e,t,a){"use strict";var r=a("155b"),n=a.n(r);n.a},bb61:function(e,t,a){},d11a:function(e,t,a){"use strict";var r=a("71f6"),n={getGroupList:"/member/store-group",getStoreList:"/member/store-list",getAssignStatus:"/member/check-distribute",getNavChain:"/member/crumb-list",getMemberList:{url:"/member/member-list",method:"post",useFormData:!0},getListBrand:"/member/list-brand",getClerkList:"/member/clerk-list",getMemberCount:"",saveAssign:{url:"/member/distribute-member",method:"post"},getMemberData:"/member/dimension-detail",saveSortMember:{url:"/member/dimension-save",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"/member/switch-list",saveShowSet:{url:"/member/switch-setting",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"/member/switch-list",saveCustomerSet:{url:"/member/switch-setting",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"/member/member-group-hb-list",getClassifyData:"/member/member-group-category-list",postSortGroup:{url:"/member/member-group-sort",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"/member/member-group-list",saveSync:{url:"/member/member-group-save",method:"post",useFormData:!0,useIntercept:!1},delCrowd:{url:"/member/member-group-del",method:"post",useFormData:!0,useIntercept:!1},getVisiable:"/visiable-range-view",saveVisiable:{url:"/visiable-range-save",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"/tag-category-list",getTagLicense:"/member-tag-license",addClassify:{url:"/tag-category-add",method:"post",useFormData:!0,useIntercept:!1},delClassify:{url:"/tag-category-del",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"/member-tag-list",addClerkTag:{url:"/member-tag-add",method:"post",useFormData:!0,useIntercept:!1},getTagDetail:"/member-tag-detail",editClerkTag:{url:"/member-tag-edit",method:"post",useFormData:!0,useIntercept:!1},delClerkTag:{url:"/tag-del",method:"post",useFormData:!0,useIntercept:!1},sortClerkTag:{url:"/member-tag-sort",method:"post",useFormData:!0,useIntercept:!1},getTagVisiable:"/visiable-range-view",saveTagVisiable:{url:"/visiable-range-save",method:"post",useFormData:!0,useIntercept:!1}};n=Object(r["a"])(n,"/hb-app-customer-web"),t["a"]=n},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function r(e,t){var a,r=t||200;return function(){var t=this,n=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(t,n)}),r)}}function n(e,t){var a,r,n=t||200;return function(){var t=this,s=arguments,o=+new Date;a&&o-a<n?(clearTimeout(r),r=setTimeout((function(){a=o,e.apply(t,s)}),n)):(a=o,e.apply(t,s))}}function s(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}},e73a:function(e,t,a){"use strict";var r=a("3af2"),n=a.n(r);n.a},f5c6:function(e,t,a){},fe92:function(e,t,a){"use strict";var r=a("f5c6"),n=a.n(r);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c18fb37"],{"0973":function(t,i,e){t.exports=e.p+"img/error_404.bf587478.svg"},"1c41":function(t,i,e){t.exports=e.p+"img/error_500.ed0cba44.svg"},"28a5":function(t,i,e){"use strict";var n=e("aae3"),s=e("cb7c"),r=e("ebd6"),a=e("0390"),c=e("9def"),l=e("5f1b"),u=e("520a"),o=e("79e5"),d=Math.min,f=[].push,h="split",g="length",p="lastIndex",v=4294967295,m=!o((function(){RegExp(v,"y")}));e("214f")("split",2,(function(t,i,e,o){var b;return b="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[g]||2!="ab"[h](/(?:ab)*/)[g]||4!="."[h](/(.?)(.?)/)[g]||"."[h](/()()/)[g]>1||""[h](/.?/)[g]?function(t,i){var s=String(this);if(void 0===t&&0===i)return[];if(!n(t))return e.call(s,t,i);var r,a,c,l=[],o=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,h=void 0===i?v:i>>>0,m=new RegExp(t.source,o+"g");while(r=u.call(m,s)){if(a=m[p],a>d&&(l.push(s.slice(d,r.index)),r[g]>1&&r.index<s[g]&&f.apply(l,r.slice(1)),c=r[0][g],d=a,l[g]>=h))break;m[p]===r.index&&m[p]++}return d===s[g]?!c&&m.test("")||l.push(""):l.push(s.slice(d)),l[g]>h?l.slice(0,h):l}:"0"[h](void 0,0)[g]?function(t,i){return void 0===t&&0===i?[]:e.call(this,t,i)}:e,[function(e,n){var s=t(this),r=void 0==e?void 0:e[i];return void 0!==r?r.call(e,s,n):b.call(String(s),e,n)},function(t,i){var n=o(b,t,this,i,b!==e);if(n.done)return n.value;var u=s(t),f=String(this),h=r(u,RegExp),g=u.unicode,p=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(m?"y":"g"),x=new h(m?u:"^(?:"+u.source+")",p),_=void 0===i?v:i>>>0;if(0===_)return[];if(0===f.length)return null===l(x,f)?[f]:[];var w=0,C=0,S=[];while(C<f.length){x.lastIndex=m?C:0;var k,y=l(x,m?f:f.slice(C));if(null===y||(k=d(c(x.lastIndex+(m?0:C)),f.length))===w)C=a(f,C,g);else{if(S.push(f.slice(w,C)),S.length===_)return S;for(var E=1;E<=y.length-1;E++)if(S.push(y[E]),S.length===_)return S;C=w=k}}return S.push(f.slice(w)),S}]}))},"2de8":function(t,i,e){"use strict";var n=e("cd38"),s=e.n(n);s.a},"4cf1":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100vh"}},[e("div",{staticClass:"wscn-http-404"},[e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:t.imgSrc,alt:"404"}})]),e("div",{staticClass:"bullshit"},[e("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),e("a",{staticClass:"bullshit__return-home",attrs:{href:"#/contactsList"}},[t._v("返回首页")])])])])},s=[],r=(e("28a5"),e("d1ea")),a=e.n(r),c=e("0973"),l=e.n(c),u=e("1c41"),o=e.n(u),d={name:"ErrPage",data:function(){return{imgSrc:"",message:"",srcList:{403:a.a,404:l.a,500:o.a},msgList:{403:"抱歉,你无权访问该页面",404:"抱歉,你访问的页面不存在",500:"抱歉,服务器出错了"}}},mounted:function(){var t=this,i=t.$route.path.split("/")[1];t.imgSrc=t.srcList[i],t.message=t.msgList[i]}},f=d,h=(e("2de8"),e("2877")),g=Object(h["a"])(f,n,s,!1,null,"0d9d0575",null);i["default"]=g.exports},cd38:function(t,i,e){},d1ea:function(t,i,e){t.exports=e.p+"img/error_403.829774f4.svg"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7de0deb4"],{"50d4":function(e,t,a){"use strict";var n=a("e950"),r=a.n(n);r.a},"55fd":function(e,t,a){"use strict";var n=a("ba2f"),r=a.n(n);r.a},ba2f:function(e,t,a){},c7d7:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-app-right"},[a("div",{staticClass:"crowd-scene-tip m-b-20"},[a("common-alert-tip",{attrs:{width:"100%","tip-content":e.tipContent,"tip-two-content":e.tipTwoContent}})],1),a("div",{staticClass:"crowd-scene-search flex flex-space-between m-b-20"},[a("div",[a("el-input",{staticStyle:{width:"408px"},attrs:{placeholder:"请输入人群名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t)}(t)}},model:{value:e.searchVal,callback:function(t){e.searchVal=t},expression:"searchVal"}}),a("el-select",{staticClass:"w-162 m-l-10",attrs:{placeholder:"所有分类"},on:{change:e.changeCondition},model:{value:e.classifyId,callback:function(t){e.classifyId=t},expression:"classifyId"}},[a("el-option",{attrs:{label:"所有分类",value:""}}),e._l(e.classifyList,(function(e){return a("el-option",{key:e.sceneCrowdCategoryId,attrs:{label:e.sceneCrowdCategoryName,value:e.sceneCrowdCategoryId}})}))],2)],1),a("div",[a("el-button",{attrs:{disabled:e.totalNum>=20,type:"primary"},on:{click:e.toSync}},[e._v("同步场景人群")])],1)]),a("div",{staticClass:"crowd-scene-table"},[a("div",{staticClass:"crowd-scene-table_left"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"memberCrowdData",staticStyle:{width:"100%"},attrs:{data:e.memberCrowdData,"row-key":"sceneCrowdId"}},[a("el-table-column",{directives:[{name:"show",rawName:"v-show",value:""===e.searchVal&&""===e.classifyId,expression:"searchVal === '' && classifyId === ''"}],attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell"}},[[a("span",{class:["font-22 iconfont icontuozhuaiopen color-c0c4cc",""===e.searchVal&&""===e.classifyId?"show-icon":"hide-icon"],staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"",label:"人群名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.sceneCrowdName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"所属分类","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.sceneCrowdCategoryName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"到期时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.sceneCrowdExpireTime))+" "+e._s(t.row.sceneCrowdExpireTime?"":"--"))]),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.sceneCrowdExpireTime))+" "+e._s(t.row.sceneCrowdExpireTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toEdit(t.$index,t.row)}}},[e._v("编辑可见范围")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)],1)]),e.showSync?a("sync-crowd-dialog",{attrs:{"select-ids":e.selectIds,"total-num":e.totalNum,"brand-id":e.brandId},on:{refreshData:e.refreshData}}):e._e(),e.showSelectStore?a("edit-visiable",{attrs:{"brand-id":e.brandId,"set-item-id":e.setItemId,"set-type":"crowd","select-mode":e.selectMode,"range-data":e.rangeData},on:{refreshData:e.refreshData}}):e._e()],1)},r=[],s=(a("55dd"),a("3081")),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"同步场景人群",visible:e.dialogVisible,width:"726px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"sync-tip m-b-20"},[a("common-alert-tip",{attrs:{width:"400px","tip-content":e.tipContent}})],1),a("div",{staticClass:"sync-search"},[a("div",{staticClass:"flex flex-space-between"},[a("div",[a("el-input",{staticStyle:{width:"292px"},attrs:{placeholder:"请输入人群名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t)}(t)}},model:{value:e.searchVal,callback:function(t){e.searchVal=t},expression:"searchVal"}}),a("el-select",{staticClass:"w-165 m-l-10",attrs:{placeholder:"所有分类"},on:{change:e.changeCondition},model:{value:e.classifyId,callback:function(t){e.classifyId=t},expression:"classifyId"}},[a("el-option",{attrs:{label:"所有分类",value:""}}),e._l(e.classifyList,(function(e){return a("el-option",{key:e.sceneCrowdCategoryId,attrs:{label:e.sceneCrowdCategoryName,value:e.sceneCrowdCategoryId}})}))],2)],1)])]),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingPage,expression:"loadingPage"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{height:"400",data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.selectable,width:"55"}}),a("el-table-column",{attrs:{prop:"",label:"人群名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{class:[e.selectIds.includes(t.row.sceneCrowdId)?"color-909399":"color-606266"]},[e._v(e._s(e.selectIds.includes(t.row.sceneCrowdId)?"(已选择)":"")+e._s(t.row.sceneCrowdName||"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"所属分类","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{class:[e.selectIds.includes(t.row.sceneCrowdId)?"color-909399":"color-606266"]},[e._v(e._s(t.row.sceneCrowdCategoryName||"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"到期时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{class:["line-18",e.selectIds.includes(t.row.sceneCrowdId)?"color-909399":"color-606266"]},[e._v(e._s(e._f("timeStampToYmd")(t.row.sceneCrowdExpireTime))+" "+e._s(t.row.sceneCrowdExpireTime?"":"--"))]),a("div",{class:["line-18",e.selectIds.includes(t.row.sceneCrowdId)?"color-909399":"color-606266"]},[e._v(e._s(e._f("timeStampToHms")(t.row.sceneCrowdExpireTime))+" "+e._s(t.row.sceneCrowdExpireTime?"":"--"))])]}}])})],1),e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-size":e.pageSize,layout:"prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:e.submitForm}},[e._v("立即同步("+e._s(e.multipleSelection.length)+"/"+e._s(20-e.totalNum)+")")])],1)])},i=[],l=(a("ac6a"),a("6762"),a("2fdb"),a("c5f6"),a("d11a")),c=a("5b4e6"),d=a("d157"),u=l["a"].getSyncMemberData,f=l["a"].getClassifyData,p=l["a"].saveSync,m={name:"SyncCrowdDialog",components:{commonAlertTip:s["a"]},props:{brandId:{type:String,default:""},totalNum:{type:[String,Number],default:"0"},selectIds:{type:Array,default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",dialogVisible:!0,tipContent:"从GIC最多可同步20个场景人群",searchVal:"",classifyId:"",classifyList:[],loadingPage:!1,currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[],loadingBtn:!1}},mounted:function(){var e=this;e.brandId&&(e.getTableList(),e.getGroupClassify())},methods:{selectable:function(e,t){var a=this;return!a.selectIds.includes(e.sceneCrowdId)},submitForm:Object(d["a"])((function(){var e=this;return e.multipleSelection.length?e.multipleSelection.length>20-e.totalNum?(c["a"].showmsg("最多还可同步".concat(20-e.totalNum,"个场景人群"),"warning"),!1):(e.loadingBtn=!0,void e.postAdd()):(c["a"].showmsg("请选择场景人群","warning"),!1)}),300),postAdd:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,sceneCrowdIds:e.multipleSelection.map((function(e){return e.sceneCrowdId})).join(",")};p(t).then((function(t){e.loadingBtn=!1,"0000"==t.code?(c["a"].showmsg("同步成功","success"),e.clearData(),e.$emit("refreshData","success")):c["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){e.loadingBtn=!1}))},handleSelectionChange:function(e){var t=this,a=20-t.totalNum;if(e&&e.length>a){t.multipleSelection=e.slice(0,a);var n=t.multipleSelection.map((function(e){return e.sceneCrowdId}));return t.$refs.multipleTable.clearSelection(),t.tableData.forEach((function(e){n.includes(e.sceneCrowdId)&&t.$refs.multipleTable.toggleRowSelection(e)})),!1}t.multipleSelection=e},cancel:function(){var e=this;e.clearData(),e.$emit("refreshData","close")},handleClose:function(){var e=this;e.clearData(),e.$emit("refreshData","close")},clearData:function(){var e=this;e.tableData=[],e.multipleSelection=[],e.searchVal="",e.classifyId="",e.classifyList=[]},toInput:Object(d["a"])((function(){var e=this;e.currentPage=1,e.getTableList()}),500),clearInput:function(){var e=this;e.currentPage=1,e.getTableList()},changeCondition:function(){var e=this;e.currentPage=1,e.getTableList()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableList()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableList()},getGroupClassify:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId};f(t).then((function(t){e.classifyList=t.result||[]})).catch((function(e){}))},getTableList:function(){var e=this;e.loadingPage=!0;var t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,keyword:e.searchVal,sceneCrowdCategoryId:e.classifyId,pageNum:e.currentPage,pageSize:e.pageSize};u(t).then((function(t){e.loadingPage=!1,e.tableData=t.result.result||[],e.total=t.result.totalCount})).catch((function(t){e.loadingPage=!1}))}},watch:{brandId:function(e){var t=this;e&&(t.getTableList(),t.getGroupClassify())}}},w=m,h=(a("55fd"),a("2877")),g=Object(h["a"])(w,o,i,!1,null,"09a282b9",null),b=g.exports,C=a("24cb"),I=a("aa47"),y=l["a"].getGroupData,v=l["a"].getClassifyData,S=l["a"].getVisiable,x=l["a"].postSortGroup,D=l["a"].delCrowd,_={name:"CrowdScenePage",components:{commonAlertTip:s["a"],syncCrowdDialog:b,editVisiable:C["a"]},props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tipContent:"GIC设置场景人群后,好办顾客人群列表最多同步20个人群,次日刷新,每日刷新一次;",tipTwoContent:"GIC中设置的场景人群到期后,好办移动端将不再展示该条人群;",searchVal:"",classifyId:"",classifyList:[],memberCrowdData:[],memberCrowdDataCopy:[],totalNum:0,loading:!1,showSync:!1,showSelectStore:!1,selectMode:"",rangeData:[],setItemId:"",selectIds:[]}},mounted:function(){var e=this;e.$emit("showTab","/crowd-scene"),e.brandId&&(e.getGroupList(),e.getGroupClassify()),e.rowDrop("memberCrowdData")},methods:{toDel:function(e,t){var a=this;a.$confirm("是否要删除该场景人群?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.delData(t.sceneCrowdId)})).catch((function(){}))},delData:function(e){var t=this,a={sceneCrowdId:e,wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId};D(a).then((function(e){t.getGroupList(),"0000"==e.code?c["a"].showmsg("删除成功","success"):c["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){}))},refreshData:function(e){var t=this;if(t.showSync=!1,t.showSelectStore=!1,t.searchVal="",t.classifyId="",t.selectMode="",t.rangeData=[],"close"==e)return!1;t.getGroupList()},toSync:function(){var e=this;e.selectIds=e.memberCrowdData.map((function(e){return e.sceneCrowdId}))||[],e.showSync=!0},toEdit:function(e,t){var a=this;a.getVisiableData(t.sceneCrowdId)},getVisiableData:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId,relationId:e,relationType:"0"};S(a).then((function(a){t.selectMode=String(a.result.storeMode),t.rangeData=a.result.bindRange?JSON.parse(a.result.bindRange):[],t.setItemId=e,t.showSelectStore=!0})).catch((function(e){}))},toInput:Object(d["a"])((function(){var e=this;if(""===e.searchVal&&""===e.classifyId)return e.getGroupList(),!1;e.memberCrowdData=e.memberCrowdDataCopy.filter((function(t){return""===e.classifyId?-1!=t.sceneCrowdName.indexOf(e.searchVal):-1!=t.sceneCrowdName.indexOf(e.searchVal)&&t.sceneCrowdCategoryId==e.classifyId}))}),200),clearInput:function(){var e=this;if(""===e.searchVal&&""===e.classifyId)return e.getGroupList(),!1;""!=e.classifyId&&(e.memberCrowdData=e.memberCrowdDataCopy.filter((function(t){return t.sceneCrowdCategoryId==e.classifyId})))},changeCondition:function(){var e=this;if(""===e.searchVal&&""===e.classifyId)return e.getGroupList(),!1;""!=e.searchVal&&""!=e.classifyId&&(e.memberCrowdData=e.memberCrowdDataCopy.filter((function(t){return-1!=t.sceneCrowdName.indexOf(e.searchVal)&&t.sceneCrowdCategoryId==e.classifyId}))),""!=e.searchVal&&""===e.classifyId&&(e.memberCrowdData=e.memberCrowdDataCopy.filter((function(t){return-1!=t.sceneCrowdName.indexOf(e.searchVal)}))),""===e.searchVal&&""!=e.classifyId&&(e.memberCrowdData=e.memberCrowdDataCopy.filter((function(t){return t.sceneCrowdCategoryId==e.classifyId})))},rowDrop:function(e){var t=this.$refs[e].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;I["a"].create(t,{handle:".icontuozhuaiopen",onEnd:function(t){var n=t.newIndex,r=t.oldIndex;if(n==r)return!1;var s=JSON.parse(JSON.stringify(a[e])),o=s.splice(r,1)[0];s.splice(n,0,o),a.setSort(s)}})},setSort:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId,sceneCrowdIds:e.map((function(e){return e.sceneCrowdId})).join(",")};x(a).then((function(e){t.getGroupList(),"0000"==e.code?c["a"].showmsg("操作成功","success"):c["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){}))},getGroupClassify:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId};v(t).then((function(t){e.classifyList=t.result||[]})).catch((function(e){}))},getGroupList:function(){var e=this;e.loading=!0,e.memberCrowdData=[],e.memberCrowdDataCopy=[];var t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,keyword:e.searchVal,sceneCrowdCategoryId:e.classifyId};y(t).then((function(t){e.loading=!1,t.result&&t.result.length?(e.memberCrowdData=e.sortTable(t.result),e.memberCrowdDataCopy=JSON.parse(JSON.stringify(e.memberCrowdData))):(e.memberCrowdData=[],e.memberCrowdDataCopy=[],e.totalNum=0),!e.searchVal&&!e.classifyId&&t.result&&t.result.length&&(e.totalNum=t.result.length)})).catch((function(t){e.loading=!1}))},sortTable:function(e){return e.sort((function(e,t){return e.sort-t.sort})),e}},watch:{brandId:function(e){var t=this;e&&(t.searchVal="",t.classifyId="",t.classifyList=[],t.getGroupClassify(),t.getGroupList())}}},E=_,V=(a("50d4"),Object(h["a"])(E,n,r,!1,null,"72e45954",null));t["default"]=V.exports},e950:function(e,t,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7e20a98d"],{"28a5":function(e,t,a){"use strict";var s=a("aae3"),n=a("cb7c"),r=a("ebd6"),o=a("0390"),i=a("9def"),l=a("5f1b"),c=a("520a"),u=a("79e5"),p=Math.min,f=[].push,d="split",m="length",h="lastIndex",g=4294967295,b=!u((function(){RegExp(g,"y")}));a("214f")("split",2,(function(e,t,a,u){var v;return v="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[m]||2!="ab"[d](/(?:ab)*/)[m]||4!="."[d](/(.?)(.?)/)[m]||"."[d](/()()/)[m]>1||""[d](/.?/)[m]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!s(e))return a.call(n,e,t);var r,o,i,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,d=void 0===t?g:t>>>0,b=new RegExp(e.source,u+"g");while(r=c.call(b,n)){if(o=b[h],o>p&&(l.push(n.slice(p,r.index)),r[m]>1&&r.index<n[m]&&f.apply(l,r.slice(1)),i=r[0][m],p=o,l[m]>=d))break;b[h]===r.index&&b[h]++}return p===n[m]?!i&&b.test("")||l.push(""):l.push(n.slice(p)),l[m]>d?l.slice(0,d):l}:"0"[d](void 0,0)[m]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,s){var n=e(this),r=void 0==a?void 0:a[t];return void 0!==r?r.call(a,n,s):v.call(String(n),a,s)},function(e,t){var s=u(v,e,this,t,v!==a);if(s.done)return s.value;var c=n(e),f=String(this),d=r(c,RegExp),m=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(b?"y":"g"),w=new d(b?c:"^(?:"+c.source+")",h),y=void 0===t?g:t>>>0;if(0===y)return[];if(0===f.length)return null===l(w,f)?[f]:[];var F=0,x=0,_=[];while(x<f.length){w.lastIndex=b?x:0;var C,S=l(w,b?f:f.slice(x));if(null===S||(C=p(i(w.lastIndex+(b?0:x)),f.length))===F)x=o(f,x,m);else{if(_.push(f.slice(F,x)),_.length===y)return _;for(var I=1;I<=S.length-1;I++)if(_.push(S[I]),_.length===y)return _;x=F=C}}return _.push(f.slice(F)),_}]}))},"4cd9":function(e,t,a){},"5b4e":function(e,t,a){"use strict";var s=a("5c96");t["a"]={showmsg:function(e,t){Object(s["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},"71f6":function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));a("ac6a"),a("456d");var s=a("b775");function n(e,t){e=e||{};var a=Object.keys(e);return a.forEach((function(a){var n=e[a];"string"===typeof n&&(n={url:n}),n.url="".concat(t).concat(n.url),e[a]=function(e){return Object(s["a"])(n,e)}})),e}},a30a:function(e,t,a){"use strict";var s=a("71f6"),n={wxEnterpriseRefresh:"/setting/wx-enterprise-info-flush",wxEnterpriseDetail:"/setting/wx-enterprise-info",getSelfApp:"/setting/secret-list",addSelfApp:{url:"/setting/set-secret",method:"post",useFormData:!0,useIntercept:!1},editSelfApp:{url:"/setting/set-secret",method:"post",useFormData:!0,useIntercept:!1},delSelfApp:{url:"/setting/del-secret",method:"post",useFormData:!0,useIntercept:!1},refreshSelfApp:{url:"/setting/reflush-secret",method:"post",useFormData:!0},getAdmin:"/setting/super-admin-list"};n=Object(s["a"])(n,"/hb-manage-web"),t["a"]=n},a86a:function(e,t,a){"use strict";var s=a("4cd9"),n=a.n(s);n.a},b735:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"company-set-content border-box"},[a("div",{staticClass:"company-title m-b-20 flex flex-space-between"},[a("div",{staticClass:"line-h-32"},[a("span",{staticClass:"color-303133 font-14 font-w-600"},[e._v("企业微信基本信息")]),a("el-button",{staticClass:"m-l-20",attrs:{type:"text",loading:e.loadRefesh},on:{click:e.refeshData}},[e._v("同步刷新 ")])],1)]),a("div",{staticClass:"company-info-body"},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"105px"}},[a("el-form-item",{attrs:{label:"小程序版本"}},[a("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.smallVersion||"免费版"))])]),a("el-form-item",{attrs:{label:"企业名称"}},[a("span",{staticClass:"font-14 color-303133 p-r-10"},[e._v(e._s(e.companyObj.wxEnterpriseName||"--"))]),a("el-tag",[e._v(" "+e._s("verified"==e.companyObj.corpType?"已认证":"未认证"))]),"verified"==e.companyObj.corpType?a("span",{staticClass:"p-l-10 font-12 color-909399"},[e._v("认证到期 "+e._s(e._f("timeStampToYmd")(e.companyObj.verifiedEndTime)))]):e._e()],1),a("el-form-item",{attrs:{label:"企业ID"}},[a("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.corpId||"--"))])]),a("el-form-item",{attrs:{label:"行业类型"}},[a("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.corpIndustry||"--")+" / "+e._s(e.companyObj.corpSubIndustry||"--"))])]),a("el-form-item",{attrs:{label:"人员规模"}},[a("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.corpScale||"0人"))])]),a("el-form-item",{attrs:{label:"地址"}},[a("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.location||"--"))])])],1)],1),e._m(0),a("div",{staticClass:"company-info-body secret-body"},[a("div",{staticClass:"m-b-20 secret-cell flex"},[a("div",{staticClass:" secret-cell-title"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"用于获取登录小程序用户的手机号/姓名/部门信息。必填项",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 common-bottom-border"},[e._v("自建应用:")])])],1),a("div",[e._l(e.tableData,(function(t,s){return a("div",{key:s+"app",staticClass:"self-app-info"},[a("div",{staticClass:"self-app-item secret-name flex flex-space-between"},[a("div",[a("span",{staticClass:"font-14 color-303133 font-w-600 secret-name-span"},[e._v(e._s(t.secretName||"--"))]),a("span",{staticClass:"font-12 color-606266 p-l-15"},[e._v("编辑时间:"+e._s(e._f("formatTimeStamp")(t.updateTime)))])]),a("div",[a("el-button",{attrs:{type:"text",loading:e.loadApp},on:{click:function(a){return e.refreshApp(t)}}},[e._v("同步刷新")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toEdit(t)}}},[e._v("编辑")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toDel(t)}}},[e._v("删除")])],1)]),a("div",{staticClass:"m-t-10"},[a("el-form",{ref:"form",refInFor:!0,attrs:{"label-width":"110px"}},[a("el-form-item",{attrs:{label:"Agentld"}},[a("span",{staticClass:"font-14 color-303133"},[e._v(e._s(t.agentId))])]),a("el-form-item",{attrs:{label:"Secret"}},[a("span",{staticClass:"font-14 color-303133"},[e._v(e._s(t.secretVal))]),a("span",{staticClass:"p-l-15 font-14 color-303133"},[a("span",{class:["iconfont",t.checkFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),a("span",{staticClass:"p-l-10"},[e._v(e._s(t.checkFlag?"校验成功":"校验失败"))])])]),a("el-form-item",{attrs:{label:"应用可见范围"}},e._l(t.displayRange,(function(s,n){return a("span",{key:n+"child",staticClass:"font-14 color-303133 inline-block"},[e._v(e._s(s.name)+" "+e._s(t.displayRange.length>1?";":""))])})),0)],1)],1)])})),e.tableData.length?e._e():a("div",{staticClass:"add-self-app font-14 color-606266 cursor-pointer",on:{click:e.addSecret}},[a("span",{staticClass:"iconfont icontianjiajiahaowubiankuang font-12"}),a("span",{staticClass:"p-l-10"},[e._v("添加")])])],2)])])]),e.addShow?a("add-self-app",{attrs:{"edit-row":e.editRow},on:{closeText:e.closeText,submitText:e.submitText}}):e._e()],1)},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"company-title m-b-20 m-t-30"},[a("span",{staticClass:"color-303133 font-14 font-w-600"},[e._v("客户密钥维护")])])}],r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:(e.editRow.materialId,"自建应用"),visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"应用名称",prop:"secretName"}},[a("el-input",{staticClass:"w-440",attrs:{type:"text","max-length":"30"},model:{value:e.ruleForm.secretName,callback:function(t){e.$set(e.ruleForm,"secretName",t)},expression:"ruleForm.secretName"}}),a("span",{staticClass:"input-cell-tip"},[e._v(e._s(e.ruleForm.secretName.length)+"/30")])],1),a("el-form-item",{attrs:{label:"Agentld",prop:"agentId"}},[a("el-input",{staticClass:"w-440",attrs:{type:"textarea",rows:"3","max-length":"30"},model:{value:e.ruleForm.agentId,callback:function(t){e.$set(e.ruleForm,"agentId",t)},expression:"ruleForm.agentId"}}),a("span",{staticClass:"input-cell-tip top-40"},[e._v(e._s(e.ruleForm.agentId.length)+"/30")])],1),a("el-form-item",{attrs:{label:"Secret",prop:"secretVal"}},[a("el-input",{staticClass:"w-440",attrs:{type:"textarea",rows:"3","max-length":"100"},model:{value:e.ruleForm.secretVal,callback:function(t){e.$set(e.ruleForm,"secretVal",t)},expression:"ruleForm.secretVal"}}),a("span",{staticClass:"input-cell-tip top-40"},[e._v(e._s(e.ruleForm.secretVal.length)+"/100")])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary",loading:e.loadBtn},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确认")])],1)])},o=[],i=(a("ac6a"),a("456d"),a("d157")),l=a("a30a"),c=a("5b4e"),u=l["a"].addSelfApp,p={name:"AddSelfApp",props:{editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},data:function(){return{dialogVisible:!0,ruleForm:{secretName:"",secretVal:"",agentId:"",secretId:""},rules:{secretName:[{required:!0,message:"请输入应用名称",trigger:"blur"}],secretVal:[{required:!0,message:"请输入secret",trigger:"blur"}],agentId:[{required:!0,message:"请输入Agentld",trigger:"blur"}]},loadBtn:!1,brandOptions:[]}},mounted:function(){var e=this;Object.keys(e.editRow).length&&(e.ruleForm=JSON.parse(JSON.stringify(e.editRow)))},methods:{toCancel:function(){var e=this;e.$emit("closeText"),e.$refs["ruleForm"].resetFields()},handleClose:function(e){var t=this;t.$emit("closeText"),t.$refs["ruleForm"].resetFields()},submitForm:Object(i["a"])((function(e){var t=this;t.$refs[e].validate((function(e){e&&t.postSave()}))}),300),postSave:function(){var e=this;e.loadBtn=!0;var t={agentId:Object(i["c"])(e.ruleForm.agentId),secretName:Object(i["c"])(e.ruleForm.secretName),secretVal:Object(i["c"])(e.ruleForm.secretVal),secretId:e.ruleForm.secretId,secretType:3};u(t).then((function(t){e.loadBtn=!1,"0000"==t.code?(c["a"].showmsg("操作成功","success"),e.$refs["ruleForm"].resetFields(),e.$emit("submitText")):(e.$message({message:t.message||"未知错误",type:"warning"}),e.$emit("submitText"))})).catch((function(t){e.loadBtn=!1}))}},watch:{editRow:function(e){var t=this;Object.keys(e).length&&(t.ruleForm=JSON.parse(JSON.stringify(e)))}}},f=p,d=(a("bb19"),a("2877")),m=Object(d["a"])(f,r,o,!1,null,"ec183a12",null),h=m.exports,g=l["a"].wxEnterpriseRefresh,b=l["a"].wxEnterpriseDetail,v=l["a"].getSelfApp,w=l["a"].delSelfApp,y=l["a"].refreshSelfApp,F={name:"EnterpriseSetPage",components:{addSelfApp:h},data:function(){return{checkShow:!0,tipText:"请在企业密钥维护中输入对应的secret",wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",companyObj:{smallVersion:"",corpName:"",corpId:"",contactFlag:!1,verifiedEndTime:"",corpIndustry:"",corpSubIndustry:"",corpUserMax:"",location:""},loadRefesh:!1,tableData:[],addShow:!1,editRow:{},loadApp:!1}},mounted:function(){var e=this;e.$emit("showTab","/enterpriseSet"),document.documentElement.style.backgroundColor="#f0f2f5",e.getData(),e.getApp()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{addSecret:function(){var e=this;e.addShow=!0,e.editRow={}},toEdit:function(e){var t=this;t.addShow=!0,t.editRow=JSON.parse(JSON.stringify(e))},closeText:function(){var e=this;e.addShow=!1,e.editRow={}},submitText:function(){var e=this;e.addShow=!1,e.editRow={},e.getApp()},refreshApp:function(e){var t=this;t.loadApp=!0;var a={secretId:e.secretId};y(a).then((function(e){t.loadApp=!1,"0000"==e.code?(c["a"].showmsg("刷新成功","success"),t.getApp()):(c["a"].showmsg(e.message,"warning"),t.getApp())})).catch((function(e){t.loadApp=!1}))},toDel:function(e){var t=this;t.$confirm("确定删除当前自建应用?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDel(e)})).catch((function(){}))},postDel:function(e){var t=this,a={secretId:e.secretId};w(a).then((function(e){"0000"==e.code?(c["a"].showmsg("删除成功","success"),t.getApp()):(t.$message({message:e.message||"接口异常",type:"warning"}),t.getApp())})).catch((function(e){}))},refeshData:function(){var e=this;e.refreshData()},refreshData:function(){var e=this;e.loadRefesh=!0;var t={wxEnterpriseId:e.wxEnterpriseId};g(t).then((function(t){e.loadRefesh=!1,"0000"==t.code&&c["a"].showmsg("刷新成功","success"),e.getData()})).catch((function(t){e.loadRefesh=!1}))},getApp:function(){var e=this,t={secretType:3};v(t).then((function(t){e.tableData=t.result||[]})).catch((function(e){}))},getData:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId};b(t).then((function(t){e.companyObj=t.result||{}})).catch((function(e){}))}}},x=F,_=(a("a86a"),Object(d["a"])(x,s,n,!1,null,"c1faccc4",null));t["default"]=_.exports},bb19:function(e,t,a){"use strict";var s=a("f052"),n=a.n(s);n.a},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function s(e,t){var a,s=t||200;return function(){var t=this,n=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(t,n)}),s)}}function n(e,t){var a,s,n=t||200;return function(){var t=this,r=arguments,o=+new Date;a&&o-a<n?(clearTimeout(s),s=setTimeout((function(){a=o,e.apply(t,r)}),n)):(a=o,e.apply(t,r))}}function r(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}},f052:function(e,t,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7e74ea52"],{3236:function(t,e,a){"use strict";var n=a("910d"),i=a.n(n);i.a},6300:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,(function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]}))],2)])]),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,(function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]}))],2)])])],1)],1)])],1)},i=[],s={name:"StoreChangeDialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},mounted:function(){var t=this;t.leftData=t.storeChangeData.beforeContent,t.rightData=t.storeChangeData.afterContent},methods:{handleCardClose:function(){var t=this;t.customCancel()},customCancel:function(){var t=this;t.customDialog=!1,t.$emit("input",t.customDialog)}},watch:{value:function(t,e){var a=this;a.customDialog=t},storeChangeData:function(t,e){var a=this;a.leftData=t.beforeContent,a.rightData=t.afterContent}}},r=s,o=(a("3236"),a("2877")),l=Object(o["a"])(r,n,i,!1,null,"19a03e61",null);e["a"]=l.exports},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));a("ac6a"),a("456d");var n=a("b775");function i(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var i=t[a];"string"===typeof i&&(i={url:i}),i.url="".concat(e).concat(i.url),t[a]=function(t){return Object(n["a"])(i,t)}})),t}},"910d":function(t,e,a){},9377:function(t,e,a){},"96b6":function(t,e,a){"use strict";var n=a("71f6"),i={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};i=Object(n["a"])(i,"/hb-manage-web"),e["a"]=i},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,i=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,i)}),n)}}function i(t,e){var a,n,i=e||200;return function(){var e=this,s=arguments,r=+new Date;a&&r-a<i?(clearTimeout(n),n=setTimeout((function(){a=r,t.apply(e,s)}),i)):(a=r,t.apply(e,s))}}function s(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},dacc:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"reviewed-wrap common-set-wrap"},[n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("div",{staticClass:"reviewed-body-head"},[t._m(0),n("el-input",{staticClass:"w-344",attrs:{maxlength:"50",placeholder:"请输入提交人姓名/账号/手机号","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return function(e){return t.searchEnterFun(e,t.searchInput)}(e)}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),n("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:t.changeTableList},model:{value:t.auditType,callback:function(e){t.auditType=e},expression:"auditType"}},t._l(t.filterOptions,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),n("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:t.changeTableList},model:{value:t.filterBrand,callback:function(e){t.filterBrand=e},expression:"filterBrand"}},[n("el-option",{attrs:{label:"全部品牌",value:""}}),t._l(t.brandOptions,(function(t){return n("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})}))],2)],1),n("div",{staticClass:"reviewed-body-content"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?n("span",[t._v("导购账号绑定")]):t._e(),3==e.row.auditType?n("span",[t._v("导购账号新增")]):t._e()]}}])}),n("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"flex"},[n("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"},on:{show:function(a){return t.showSingleInfo(e.row.submitStaffId)}}},[n("div",{staticClass:"apply-info-detail"},[n("div",{staticClass:"flex"},[n("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82c5ff "},[t.userData.headImg?n("img",{attrs:{src:t.userData.headImg,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})]),n("div",{staticClass:"flex flex-column apply-info-right flex-pack-center"},[n("div",{staticClass:"apply-info-name"},[n("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.staffName||"--"))]),n("span",{staticClass:"font-14 color-90939"},[t._v("( "+t._s(1==t.userData.sex?"男":2==t.userData.sex?"女":"--")+")")])])])]),n("div",{staticClass:"flex flex-space-between line-26 m-t-15"},[n("div",{staticClass:"font-14 color-606266"},[t._v("账号")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.wxUserId||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266"},[t._v("职务")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.postion||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266"},[t._v("手机号")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.nationCode||"--")+"-"+t._s(t.userData.phoneNumber||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266 w-m-100"},[t._v("部门")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.departmentInfo.map((function(t){return t.departmentName})).join(";")||"--"))])])]),n("div",{attrs:{slot:"reference"},slot:"reference"},[n("div",{staticClass:"flex flex-align-center flex-pack-center bg-82c5ff table-head-pic cursor-pointer"},[e.row.submitHeadImg?n("img",{attrs:{src:e.row.submitHeadImg,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})])])]),n("div",{staticClass:"flex flex-column apply-info",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[n("span",{staticClass:"font-14 color-606266 hide-ellipsis"},[t._v(t._s(e.row.submitStaffName||"--"))]),n("span",{staticClass:"font-12 color-909399 hide-ellipsis"},[t._v(t._s(e.row.submitWxUserId||"--"))])])],1)]}}])}),n("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.content||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),n("el-table-column",{attrs:{label:"审核人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.auditStaffName||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{class:["span-dot",1==e.row.auditFlag?"bg-52c41a":"bg-f5222d"]}),1==e.row.auditFlag?n("span",[t._v("已同意")]):t._e(),2==e.row.auditFlag?n("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[n("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("已拒绝")])]):t._e()]}}])}),n("el-table-column",{attrs:{label:"结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[2==e.row.statusFlag&&1==e.row.auditFlag?n("span",[t._v("成功")]):t._e(),2==e.row.auditFlag?n("span",[t._v("--")]):t._e(),1==e.row.statusFlag&&1==e.row.auditFlag?n("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[n("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right"},[n("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])]),n("store-change",{attrs:{"store-change-data":t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}})],1)},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tip-body m-b-20"},[a("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title"},[t._v("展示管理员审核及绑定解绑记录及门店成员自助增删导购及用户绑定记录")])])])])}],s=(a("28a5"),a("ac6a"),a("6300")),r=a("96b6"),o=a("e230"),l=a("d157"),u=o["a"].getStaffDetail,c=r["a"].getReview,d=r["a"].getWxEnterprise,f={name:"ReviewedPage",components:{storeChange:s["a"]},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditType:"",filterBrand:"",brandOptions:[],filterOptions:[{label:"全部事项",value:""},{label:"导购账号绑定",value:"1"},{label:"导购账号新增",value:"3"}],searchValue:"",loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,showStoreDialog:!1,storeChangeData:{},userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}}},mounted:function(){var t=this;t.$emit("showTab","/reviewed"),t.getTableList(),t.getBrandData()},methods:{changeTableList:function(){var t=this;t.currentPage=1,t.getTableList()},clearSearch:function(){var t=this;t.currentPage=1,t.getTableList()},searchEnterFun:Object(l["a"])((function(t){var e=this,a=String(t.target.value).trim();if(!a)return!1;e.currentPage=1,e.getTableList()}),200),toggleReason:function(t){var e=this;t.visible=!0,e.tableData.forEach((function(e,a){e.enterpriseAuditingId!=t.enterpriseAuditingId&&(e.visible=!1)}))},handleSelectionChange:function(t){var e=this;e.multipleSelection=t},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},showSingleInfo:function(t){var e=this,a={staffId:t};u(a).then((function(t){e.userData=t.result||{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}})).catch((function(t){}))},showStoreChange:function(t){var e=this;e.storeChangeData={beforeContent:[],afterContent:[]},e.showStoreDialog=!0,e.storeChangeData={beforeContent:""!=t.oldValue?t.oldValue.split(","):[],afterContent:""!=t.newValue?t.newValue.split(","):[]}},getBrandData:function(){var t=this;d({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){e.result&&e.result.length&&(t.brandOptions=e.result)})).catch((function(t){}))},getTableList:function(){var t=this;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId,auditType:t.auditType,searchType:"1",search:t.searchValue||"",pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.filterBrand};c(e).then((function(e){t.loading=!1,t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(e){t.loading=!1}))}}},p=f,g=(a("e643"),a("2877")),h=Object(g["a"])(p,n,i,!1,null,"15481f27",null);e["default"]=h.exports},e230:function(t,e,a){"use strict";var n=a("71f6"),i={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/nationcode/get-nationcode-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};i=Object(n["a"])(i,"/hb-manage-web"),e["a"]=i},e643:function(t,e,a){"use strict";var n=a("9377"),i=a.n(n);i.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-82c9081e"],{"0189":function(e,t,a){},"2f21":function(e,t,a){"use strict";var r=a("79e5");e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"55dd":function(e,t,a){"use strict";var r=a("5ca1"),n=a("d8e8"),o=a("4bf8"),s=a("79e5"),i=[].sort,l=[1,2,3];r(r.P+r.F*(s((function(){l.sort(void 0)}))||!s((function(){l.sort(null)}))||!a("2f21")(i)),"Array",{sort:function(e){return void 0===e?i.call(o(this)):i.call(o(this),n(e))}})},"55f3":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-app-right"},[a("div",[a("div",{staticClass:"data-dimension-tip"},[a("common-alert-tip",{attrs:{width:"100%","tip-content":e.tipContent}})],1),a("div",{staticClass:"data-dimension-table flex"},[a("div",{staticClass:"data-dimension-table_left flex-1"},[a("div",{staticClass:"m-b-18"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 排序越靠上的权重越高,当一家门店拥有多个会员卡时,优先展示排序最靠上的会员卡\n ")]),a("span",{staticClass:"common-bottom-border table-title"},[e._v("会员卡权重")])])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingMember,expression:"loadingMember"}],ref:"memberCardData",staticStyle:{width:"100%"},attrs:{data:e.memberCardData,"row-key":"id"}},[a("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell show-icon"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c0c4cc",staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"",label:"会员卡名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}])})],1)],1),a("div",{staticClass:"data-dimension-table_right flex-1"},[a("div",{staticClass:"m-b-18"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 排序越靠上的权重越高,当一家门店拥有多个服务号时,优先展示排序最靠上的服务号\n ")]),a("span",{staticClass:"common-bottom-border table-title"},[e._v("服务号权重")])])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingService,expression:"loadingService"}],ref:"serviceNumData",staticStyle:{width:"100%"},attrs:{data:e.serviceNumData,"row-key":"id"}},[a("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell show-icon"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c0c4cc",staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"",label:"服务号名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}])})],1)],1)])])])},n=[],o=(a("55dd"),a("3081")),s=a("aa47"),i=a("d11a"),l=a("5b4e"),c=i["a"].getMemberData,d=i["a"].saveSortMember,u={name:"DataDimensionPage",components:{commonAlertTip:o["a"]},props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tipContent:"当商户有多个会员卡和服务号时,会造成单家门店适用于多个会员卡或服务号,即单个顾客会有多个域的身份信息,这容易造成门店成员的困扰。请为以下会员卡和服务号域做权重排序,当顾客有多个域的身份信息时,门店成员将只能看到权重最高域的一个身份信息。",memberCardData:[],serviceNumData:[],loadingMember:!1,loadingService:!1}},mounted:function(){var e=this;e.$emit("showTab","/data-dimension"),e.rowDrop("memberCardData"),e.rowsDrop("serviceNumData"),e.brandId&&e.getMemberCrad()},methods:{rowDrop:function(e){var t=this.$refs[e].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;s["a"].create(t,{handle:".icontuozhuaiopen",onEnd:function(t){var r=t.newIndex,n=t.oldIndex;if(r==n)return!1;var o=JSON.parse(JSON.stringify(a[e])),s=o.splice(n,1)[0];o.splice(r,0,s),a.setSort(o,e)}})},rowsDrop:function(e){var t=this.$refs[e].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;s["a"].create(t,{handle:".icontuozhuaiopen",onEnd:function(t){var r=t.newIndex,n=t.oldIndex;if(r==n)return!1;var o=JSON.parse(JSON.stringify(a[e])),s=o.splice(n,1)[0];o.splice(r,0,s),a.setSort(o,e)}})},setSort:function(e,t){var a=this,r={wxEnterpriseId:a.wxEnterpriseId,enterpriseId:a.brandId,sorts:e.map((function(e){return e.id})).join(","),type:"memberCardData"==t?"0":"1"};d(r).then((function(e){a.getMemberCrad(),"0000"==e.code?l["a"].showmsg("操作成功","success"):l["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){}))},getMemberCrad:function(){var e=this;e.loadingMember=!0,e.loadingService=!0,e.memberCardData=[],e.serviceNumData=[];var t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId};c(t,{headers:{sign:e.brandId}}).then((function(t){e.loadingMember=!1,e.loadingService=!1,t.result.cards&&t.result.cards.length?e.memberCardData=e.sortTable(t.result.cards):e.memberCardData=[],t.result.services&&t.result.services.length?e.serviceNumData=e.sortTable(t.result.services):e.serviceNumData=[]})).catch((function(t){e.loadingMember=!1,e.loadingService=!1}))},sortTable:function(e){return e.sort((function(e,t){return e.sort-t.sort})),e}},watch:{brandId:function(e){var t=this;e&&(t.memberCardData=[],t.serviceNumData=[],t.getMemberCrad())}}},m=u,p=(a("78ed"),a("2877")),b=Object(p["a"])(m,r,n,!1,null,"1d4edc0e",null);t["default"]=b.exports},"78ed":function(e,t,a){"use strict";var r=a("0189"),n=a.n(r);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9e4bdf18","chunk-04441caa"],{"29b6":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-wrap border-box"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e._l(e.navpath,(function(t,n){return[t.path?[a("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:t.path}},on:{click:function(a){return e.changeRoute(t.path,t.relocation)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(a){return e.changeRoute(t.path,t.relocation)}}},[e._v("\n "+e._s(t.name)+"\n ")])])]:[a("el-breadcrumb-item",{key:"nav"+n},[e._v(e._s(t.name))])]]}))],2)],1)},r=[],i={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(e,t){var a=this;t?window.location.href=e:a.$router.push(e)}}},s=i,o=(a("6b4b"),a("2877")),c=Object(o["a"])(s,n,r,!1,null,"2c2a2724",null);t["a"]=c.exports},"4ab3":function(e,t,a){},"54bb":function(e,t,a){},"6b4b":function(e,t,a){"use strict";var n=a("76d4"),r=a.n(n);r.a},"71f6":function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));a("ac6a"),a("456d");var n=a("b775");function r(e,t){e=e||{};var a=Object.keys(e);return a.forEach((function(a){var r=e[a];"string"===typeof r&&(r={url:r}),r.url="".concat(t).concat(r.url),e[a]=function(e){return Object(n["a"])(r,e)}})),e}},"76d4":function(e,t,a){},a088:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"menu-tree"},[a("ul",{staticClass:"first-menu"},[0==e.menuList.length?a("li",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.menuList,(function(t){return a("li",{key:t.menuId,class:["first-menu-item",{active:t.menuId==e.activeMenuId}],on:{click:function(a){return e.onMenuChange(t)}}},[e.isApp?a("el-checkbox",{attrs:{value:e.appIds.some((function(e){return e.appId==t.project&&1==e.openFlag}))},on:{change:function(a){return e.onAppOpenChange(t.project,a)}}}):e._e(),e._v("\n "+e._s(t.menuName)+"\n ")],1)}))],2),a("div",{staticClass:"all-menu"},[a("el-tree",{ref:"menuList",attrs:{data:e.treeData,"show-checkbox":"","default-expand-all":"","node-key":"menuId","expand-on-click-node":!1,"check-on-click-node":!0,props:{label:"menuName"},"default-checked-keys":e.checkedId[e.activeMenuId]},on:{"node-click":e.onNodeClick,check:e.onNodeClick}})],1)])},r=[],i=(a("c5f6"),a("ac6a"),{name:"MenuTree",props:{menuList:Array,checkedId:Object,appIds:Array,isApp:Boolean},data:function(){return{activeMenuId:"",treeData:[]}},methods:{onMenuChange:function(e){this.activeMenuId=e?e.menuId:"",this.treeData=e?[e]:[]},onNodeClick:function(){this.onChange(this.$refs.menuList.getCheckedKeys())},getAllMenuId:function(e){var t=this,a=[];return e.forEach((function(e){a.push(e.menuId),Array.isArray(e.children)&&(a=a.concat(t.getAllMenuId(e.children)))})),a},onChange:function(e){var t={};t[this.activeMenuId]=e,this.$emit("change",Object.assign({},this.checkedId,t))},onAppOpenChange:function(e,t){var a=this.appIds.map((function(a){var n=Object.assign({},a);return n.appId==e&&(n.openFlag=Number(t)),n}));this.$emit("app-open-change",a)}},watch:{checkedId:{deep:!0,handler:function(e){this.$refs.menuList.setCheckedKeys(e[this.activeMenuId]||[])}},menuList:{immediate:!0,handler:function(e){this.onMenuChange(e[0])}}}}),s=i,o=(a("b2eb"),a("2877")),c=Object(o["a"])(s,n,r,!1,null,"19fa0aa2",null);t["default"]=c.exports},a960:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{height:"100%"}},[a("nav-crumb",{attrs:{navpath:e.bread}}),a("div",{staticClass:"edit-role"},[a("el-alert",{staticStyle:{width:"572px"},attrs:{type:"info",title:"拥有门店的权限,能进行一些门店日常业务,如打标签,完成话务等。必须是导购账号",closable:!1,"show-icon":""}}),a("el-form",{ref:"roleData",staticStyle:{"margin-top":"30px"},attrs:{model:e.roleData,rules:e.roleDataRule,"label-width":"135px"}},[a("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[a("el-input",{staticStyle:{width:"510px"},attrs:{value:e.roleData.roleName,disabled:""}})],1),a("el-form-item",{attrs:{label:"应用小程序权限",prop:"menuIds"}},[a("el-radio-group",{staticClass:"specter",attrs:{size:"small"},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},e._l(e.tabList,(function(t){return a("el-radio-button",{key:t.appType,attrs:{label:t.appType}},[e._v(e._s(t.label))])})),1),a("menu-tree",{staticStyle:{"margin-top":"12px"},attrs:{"menu-list":e.getActiveMenuList(),"checked-id":e.getActiveCheckId(),"app-ids":e.getAppIds(),"is-app":4==e.activeType},on:{change:e.onCheckedChange,"app-open-change":e.onAppOpenChange}})],1),a("el-form-item",{attrs:{label:"门店导购范围"}},[a("p",{staticClass:"type-title"},[e._v("当前门店")]),a("div",[a("span",{staticClass:"type-label"},[e._v("查看导购")]),a("el-radio-group",{on:{change:e.onSeeTypeChange},model:{value:e.roleData.seeType,callback:function(t){e.$set(e.roleData,"seeType",t)},expression:"roleData.seeType"}},[a("el-radio",{attrs:{label:"1"}},[e._v("门店下全部导购")]),a("el-radio",{attrs:{label:"0"}},[e._v("仅自己")])],1)],1),a("div",[a("span",{staticClass:"type-label"},[e._v("管理导购")]),a("el-radio-group",{model:{value:e.roleData.managerType,callback:function(t){e.$set(e.roleData,"managerType",t)},expression:"roleData.managerType"}},[a("el-radio",{attrs:{disabled:0==e.roleData.seeType,label:"1"}},[e._v("门店下全部导购")]),a("el-radio",{attrs:{label:"0"}},[e._v("仅自己")])],1)],1)]),a("el-form-item",{staticStyle:{"margin-top":"50px"}},[a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.onSave}},[e._v("保存")])],1)],1)],1)],1)},r=[],i=(a("28a5"),a("5df3"),a("ac6a"),a("96cf"),a("1da1")),s=a("29b6"),o=a("a088"),c=a("f286"),l=c["a"].menuList,u=c["a"].editRole,p=c["a"].roleDetail,d=c["a"].findAppSetting,h=c["a"].saveAppSetting,f=c["a"].findStoreRange,m=c["a"].saveStoreRange,v={name:"EditStoreRole",components:{navCrumb:s["a"],MenuTree:o["default"]},data:function(){var e=function(e,t,a){Array.isArray(t)&&0!=t.length&&!t.every((function(e){return 0==e.menuIds.length}))||a(new Error("请至少选择一个权限菜单")),a()};return{bread:[{path:"/store-admin-list",name:"门店角色"},{name:"编辑门店角色"}],loading:!1,wxEnterpriseId:"",roleData:{roleId:"",roleName:"",menuIds:[],seeType:"1",managerType:"1"},roleDataRule:{roleName:[{required:!0}],menuIds:[{required:!0,validator:e,trigger:"change"}]},activeType:3,tabList:[{label:"好办小程序",appType:3,menuList:[],checkedId:{},appIds:[]},{label:"小程序应用",appType:4,menuList:[],checkedId:{},appIds:[]}]}},created:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.$route.query.roleId,t){e.next=3;break}return e.abrupt("return",this.$router.go(-1));case 3:return a=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),this.wxEnterpriseId=a.wxEnterpriseId,this.$emit("showAsideMenu",!1),e.next=8,this.initData();case 8:this.getRoleDetail(t);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{initData:function(){var e=this,t=[];return this.tabList.forEach((function(a){t.push(l({wxEnterpriseId:e.wxEnterpriseId,roleType:2,appType:a.appType}).then((function(t){a.menuList=e.flatDataToTree(t.result||[]),a.menuList.forEach((function(t){e.$set(a.checkedId,t.menuId,[])}))})))})),Promise.all(t)},getRoleDetail:function(e){var t=this;function a(e,t){var n=[];return e.forEach((function(e){t.some((function(t){return t==e.menuId}))&&n.push(e.menuId),Array.isArray(e.children)&&(n=n.concat(a(e.children,t)))})),n}p({roleId:e}).then((function(e){var n=e.result||{},r=n.roleId,i=n.roleName,s=n.menuIds;s="string"==typeof s?s.split(","):[],Object.assign(t.roleData,{roleId:r,roleName:i}),t.tabList.forEach((function(e){var n=[];e.menuList.forEach((function(t){e.checkedId[t.menuId]=a([t],s),n=n.concat(e.checkedId[t.menuId])})),t.roleData.menuIds.push({appType:e.appType,menuIds:n})}))})),f({roleId:e,wxEnterpriseId:this.wxEnterpriseId}).then((function(e){var a=e.result||{},n=a.seeType,r=a.managerType;Object.assign(t.roleData,{seeType:"string"!=typeof n&&"number"!=typeof n?"1":String(n),managerType:"string"!=typeof r&&"number"!=typeof r?"1":String(n)})})),this.tabList.forEach((function(a){4==a.appType&&d({wxEnterpriseId:t.wxEnterpriseId,roleType:2,roleId:e,appType:a.appType}).then((function(e){a.appIds=e.result||[],t.setChildrenDisable(a.menuList,a.appIds)}))}))},getActiveMenuList:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].menuList},getActiveCheckId:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].checkedId},getAppIds:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].appIds},flatDataToTree:function(e){return e.filter((function(t){var a=e.filter((function(e){return e.parentCode==t.menuCode}));return a.length>0&&(t.children=a),""==t.parentCode}))},onCheckedChange:function(e){var t=this,a=[];for(var n in e)a=a.concat(e[n]);this.tabList=this.tabList.map((function(a){return a.appType==t.activeType&&(a.checkedId=e),a})),this.roleData.menuIds.some((function(e){return e.appType==t.activeType}))?this.roleData.menuIds.forEach((function(e){e.appType==t.activeType&&(e.menuIds=a)})):this.roleData.menuIds.push({appType:this.activeType,menuIds:a})},onAppOpenChange:function(e){var t=this;this.tabList.some((function(a){return a.appType==t.activeType&&(a.appIds=e,t.setChildrenDisable(a.menuList,e)),a.appType==t.activeType}))},setChildrenDisable:function(e,t){var a=this;function n(e,t){var a=this;return e.map((function(e){return a.$set(e,"disabled",t),Array.isArray(e.children)&&(e.children=n.call(a,e.children,t)),e}))}e.forEach((function(e){var r=!1;t.some((function(t){return t.appId==e.project&&(r=t.openFlag),t.appId==e.project})),a.$set(e,"disabled",0==r),Array.isArray(e.children)&&(e.children=n.call(a,e.children,0==r))}))},onSeeTypeChange:function(){0==this.roleData.seeType&&(this.roleData.managerType="0")},onSave:function(){var e=this;this.$refs.roleData.validate((function(t){if(t){var a=e.roleData,n=a.roleId,r=a.roleName,i=a.menuIds,s=a.seeType,o=a.managerType,c={roleId:n,roleName:r,menuIds:JSON.stringify(i),wxEnterpriseId:e.wxEnterpriseId};e.loading=!0,u(c).then(l.bind(e,n,"保存成功")).catch((function(){return e.loading=!1}))}function l(e,t){var a=this,n=[],r={roleId:e,wxEnterpriseId:this.wxEnterpriseId};this.tabList.forEach((function(e){4==e.appType&&n.push(new Promise((function(t){h(Object.assign({},r,{appType:e.appType,json:JSON.stringify(e.appIds)})).finally(t)})))})),n.push(new Promise((function(t){m({roleId:e,seeType:s,managerType:o}).finally(t)}))),Promise.all(n).then((function(){a.$message.success(t),a.$router.go(-1)})).finally((function(){return a.loading=!1}))}}))}}},y=v,g=(a("ca48"),a("2877")),b=Object(g["a"])(y,n,r,!1,null,"12d8dddc",null);t["default"]=b.exports},b2eb:function(e,t,a){"use strict";var n=a("4ab3"),r=a.n(n);r.a},ca48:function(e,t,a){"use strict";var n=a("54bb"),r=a.n(n);r.a},f286:function(e,t,a){"use strict";var n=a("71f6"),r={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list",findAppSetting:"/find-application-setting",saveAppSetting:{url:"/save-application-setting",method:"post",useFormData:!0},findStoreRange:"/find-store-range",saveStoreRange:"/save-store-range"};t["a"]=Object(n["a"])(r,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b1fb551c"],{"28a5":function(e,t,n){"use strict";var a=n("aae3"),r=n("cb7c"),i=n("ebd6"),c=n("0390"),o=n("9def"),l=n("5f1b"),s=n("520a"),u=n("79e5"),h=Math.min,f=[].push,d="split",m="length",p="lastIndex",v=4294967295,b=!u((function(){RegExp(v,"y")}));n("214f")("split",2,(function(e,t,n,u){var g;return g="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[m]||2!="ab"[d](/(?:ab)*/)[m]||4!="."[d](/(.?)(.?)/)[m]||"."[d](/()()/)[m]>1||""[d](/.?/)[m]?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(r,e,t);var i,c,o,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,d=void 0===t?v:t>>>0,b=new RegExp(e.source,u+"g");while(i=s.call(b,r)){if(c=b[p],c>h&&(l.push(r.slice(h,i.index)),i[m]>1&&i.index<r[m]&&f.apply(l,i.slice(1)),o=i[0][m],h=c,l[m]>=d))break;b[p]===i.index&&b[p]++}return h===r[m]?!o&&b.test("")||l.push(""):l.push(r.slice(h)),l[m]>d?l.slice(0,d):l}:"0"[d](void 0,0)[m]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,a){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r,a):g.call(String(r),n,a)},function(e,t){var a=u(g,e,this,t,g!==n);if(a.done)return a.value;var s=r(e),f=String(this),d=i(s,RegExp),m=s.unicode,p=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(b?"y":"g"),w=new d(b?s:"^(?:"+s.source+")",p),C=void 0===t?v:t>>>0;if(0===C)return[];if(0===f.length)return null===l(w,f)?[f]:[];var y=0,N=0,S=[];while(N<f.length){w.lastIndex=b?N:0;var x,T=l(w,b?f:f.slice(N));if(null===T||(x=h(o(w.lastIndex+(b?0:N)),f.length))===y)N=c(f,N,m);else{if(S.push(f.slice(y,N)),S.length===C)return S;for(var D=1;D<=T.length-1;D++)if(S.push(T[D]),S.length===C)return S;N=y=x}}return S.push(f.slice(y)),S}]}))},"2fdb":function(e,t,n){"use strict";var a=n("5ca1"),r=n("d2c8"),i="includes";a(a.P+a.F*n("51479")(i),"String",{includes:function(e){return!!~r(this,e,i).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"503e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"p-t-12"},[n("ul",{staticClass:"tab-left-list"},[e._l(e.tabData,(function(t,a){return[n("li",{key:a,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(n){return e.selectTab(t,!1,a)}}},[n("i",{class:["p-r-10 color-303133 iconfont",t.iconUrl,(t.onlyIconActive,"")]}),e._v(e._s(t.tabName||t.menuName)+"\n ")]),n("ul",{key:"childitem"+a,staticClass:"child-tab-left-list"},[e._l(t.children,(function(t,r){return[n("li",{key:r,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(n){return e.selectTab(t,"child",a)}}},[e._v(e._s(t.tabName||t.menuName))]),n("ul",{key:"thirditem"+r,staticClass:"third-tab-left-list"},[e._l(t.children,(function(t,r){return[n("li",{key:r,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(n){return e.selectTab(t,"child",a)}}},[e._v(e._s(t.tabName||t.menuName))])]}))],2)]}))],2)]}))],2)])},r=[],i=(n("ac6a"),n("c5f6"),{name:"CommonDetailLeft",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return""}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData,collapsFlag:!0}},mounted:function(){this.activeTab=this.activeSelTab},methods:{selectTab:function(e,t,n){var a=this;if(t?a.tabData[n].onlyIconActive=!0:(a.tabData.forEach((function(e){e.onlyIconActive=!1})),e.hasOwnProperty("children")&&e.children.length&&(a.collapsFlag=!(a.collapsFlag&&e.hasOwnProperty("children")&&e.children.length))),e.hasOwnProperty("children")&&e.children.length)return a.tabData[n].onlyIconActive=!0,e.children[0]&&e.children[0].hasOwnProperty("children")&&e.children[0].children.length?(a.activeTab=e.children[0].children[0].menuUrl,a.$emit("setSelectTab",e.children[0].children[0]),!1):(a.activeTab=e.children[0].menuUrl,a.$emit("setSelectTab",e.children[0]),!1);a.activeTab=e.menuUrl,a.$emit("setSelectTab",e)}},watch:{tabListData:function(e,t){var n=this;n.tabData=e},activeSelTab:function(e,t){var n=this;n.activeTab=e}}}),c=i,o=(n("6255"),n("2877")),l=Object(o["a"])(c,a,r,!1,null,"61fa9846",null);t["a"]=l.exports},51479:function(e,t,n){var a=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[a]=!1,!"/./"[e](t)}catch(r){}}return!0}},"57fc":function(e,t,n){},5937:function(e,t,n){"use strict";var a=n("71f6"),r={getRoleMenu:"/list-staff-role-menu"};r=Object(a["a"])(r,"/hb-manage-web"),t["a"]=r},6255:function(e,t,n){"use strict";var a=n("57fc"),r=n.n(a);r.a},6762:function(e,t,n){"use strict";var a=n("5ca1"),r=n("c366")(!0);a(a.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"6ce2":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("ac6a"),n("456d");var a=n("b775");function r(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var r=e[n];"string"===typeof r&&(r={url:r}),r.url="".concat(t).concat(r.url),e[n]=function(e){return Object(a["a"])(r,e)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),r={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};r=Object(a["a"])(r,"/hb-manage-web/auth"),t["a"]=r},ab4a:function(e,t,n){},b04c:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName,"current-menu-code":e.currentMenuCode},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView,leftData:e.leftData}}),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body"},[n("div",{staticClass:"content-body-inner flex border-box"},[n("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("common-detail-left",{attrs:{"tab-list-data":e.tabListData,"active-sel-tab":e.activeSelTab},on:{setSelectTab:e.setSelectTab}})],1),n("div",{staticClass:"apps-content-right border-box"},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view",{attrs:{"brand-id":e.activeBrand,"active-group-id":e.activeGroup,"tab-type":e.activeTab},on:{showTab:e.showTab}})],1)],1)])])])])],1)},r=[],i=(n("6762"),n("2fdb"),n("ac6a"),n("f777")),c=n("503e"),o=n("5937"),l=o["a"].getRoleMenu,s={name:"ReviewCenter",components:{vueOfficeHeader:i["a"],commonDetailLeft:c["a"]},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,activeSelTab:"1",activeTab:"1",currentMenuCode:"app-controls",tabListData:[]}},methods:{changeRoute:function(e){this.$router.push(e)},setSelectTab:function(e){var t=this;t.activeTab=e.menuUrl,1==e.target?-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl)):t.$router.push(e.menuUrl)},showTab:function(e){var t=this;t.activeTab=e,t.activeSelTab=e,t.tabListData.forEach((function(t){t.menuUrl==e&&(t.onlyIconActive=!1),t.children&&t.children.forEach((function(n){n.menuUrl==e&&(t.onlyIconActive=!0),n.children&&n.children.forEach((function(n){n.menuUrl==e&&(t.onlyIconActive=!0)}))}))}))},toRouterView:function(e){var t=this;t.$router.push({path:e.path})},collapseTag:function(e){var t=this;t.collapseFlag=e},leftData:function(e){var t=this;e[0].children.forEach((function(e,n){e.tabId=n+1,e.tabName=e.menuName,e.children&&e.children.length&&t.setChildData(e,n+1)})),t.tabListData=e[0].children},setChildData:function(e,t){var n=this;e.children.forEach((function(e,a){e.tabId=t+"-"+(a+1),e.tabName=e.menuName,e.children&&e.children.length&&n.setChildData(e,t+"-"+(a+1))}))},getData:function(){var e=this,t={};l(t).then((function(t){if("0000"==t.code){var n=t.result.map((function(e){return e.menuCode})),a=[];e.tabListData.forEach((function(e){n.includes(e.menuCode)&&a.push(e)})),e.tabListData=a}})).catch((function(e){}))}}},u=s,h=(n("e966"),n("2877")),f=Object(h["a"])(u,a,r,!1,null,null,null);t["default"]=f.exports},d2c8:function(e,t,n){var a=n("aae3"),r=n("be13");e.exports=function(e,t,n){if(a(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(e))}},e22b:function(e,t,n){"use strict";var a=n("ea9b"),r=n.n(a);r.a},e966:function(e,t,n){"use strict";var a=n("ab4a"),r=n.n(a);r.a},ea9b:function(e,t,n){},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)||e.currentMenuCode==t.menuCode?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},r=[],i=(n("456d"),n("96cf"),n("1da1")),c=(n("ac6a"),n("28a5"),n("7ded")),o=n("5937"),l=o["a"].getRoleMenu,s=c["a"].getUserInfo,u=c["a"].loginOut,h={name:"VueOfficeHeader",components:{},props:{currentMenuCode:{type:String,default:""}},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl));else{t.setLeftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0])})),t.$router.push(n.menuUrl)}},setLeftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){u({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(e){}))})).catch((function(){}))},toLogin:function(){var e=this;s({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={appType:1};l(t).then(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(n){var a,r,i,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],r={},i={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(r=t),e.$route.path==t.menuUrl&&1!=t.level&&(i=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(i).length&&2==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),c={},Object.keys(i).length&&3==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(c=e)})),Object.keys(c).length&&2==c.level&&n.result.forEach((function(e){c.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),e.setLeftData(r);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},f=h,d=(n("e22b"),n("2877")),m=Object(d["a"])(f,a,r,!1,null,"26c74afb",null);t["a"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b9a7d4fe"],{"28a5":function(t,e,a){"use strict";var n=a("aae3"),o=a("cb7c"),s=a("ebd6"),l=a("0390"),r=a("9def"),i=a("5f1b"),c=a("520a"),u=a("79e5"),p=Math.min,f=[].push,d="split",g="length",h="lastIndex",v=4294967295,m=!u((function(){RegExp(v,"y")}));a("214f")("split",2,(function(t,e,a,u){var b;return b="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[g]||2!="ab"[d](/(?:ab)*/)[g]||4!="."[d](/(.?)(.?)/)[g]||"."[d](/()()/)[g]>1||""[d](/.?/)[g]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!n(t))return a.call(o,t,e);var s,l,r,i=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,d=void 0===e?v:e>>>0,m=new RegExp(t.source,u+"g");while(s=c.call(m,o)){if(l=m[h],l>p&&(i.push(o.slice(p,s.index)),s[g]>1&&s.index<o[g]&&f.apply(i,s.slice(1)),r=s[0][g],p=l,i[g]>=d))break;m[h]===s.index&&m[h]++}return p===o[g]?!r&&m.test("")||i.push(""):i.push(o.slice(p)),i[g]>d?i.slice(0,d):i}:"0"[d](void 0,0)[g]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,n){var o=t(this),s=void 0==a?void 0:a[e];return void 0!==s?s.call(a,o,n):b.call(String(o),a,n)},function(t,e){var n=u(b,t,this,e,b!==a);if(n.done)return n.value;var c=o(t),f=String(this),d=s(c,RegExp),g=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(m?"y":"g"),_=new d(m?c:"^(?:"+c.source+")",h),w=void 0===e?v:e>>>0;if(0===w)return[];if(0===f.length)return null===i(_,f)?[f]:[];var C=0,y=0,k=[];while(y<f.length){_.lastIndex=m?y:0;var S,x=i(_,m?f:f.slice(y));if(null===x||(S=p(r(_.lastIndex+(m?0:y)),f.length))===C)y=l(f,y,g);else{if(k.push(f.slice(C,y)),k.length===w)return k;for(var T=1;T<=x.length-1;T++)if(k.push(x[T]),k.length===w)return k;y=C=S}}return k.push(f.slice(C)),k}]}))},"29b6":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-wrap border-box"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,(function(e,n){return[e.path?[a("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[a("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]}))],2)],1)},o=[],s={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(t,e){var a=this;e?window.location.href=t:a.$router.push(t)}}},l=s,r=(a("6b4b"),a("2877")),i=Object(r["a"])(l,n,o,!1,null,"2c2a2724",null);e["a"]=i.exports},3081:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-alert-tip"},[a("div",{style:{"min-width":t.width}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")]),t.tipTwoContent?a("div",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipTwoContent)+"\n ")]):t._e()])])])])},o=[],s={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""},tipTwoContent:{type:String,default:""}},data:function(){return{}}},l=s,r=a("2877"),i=Object(r["a"])(l,n,o,!1,null,"537f2e35",null);e["a"]=i.exports},"6b4b":function(t,e,a){"use strict";var n=a("76d4"),o=a.n(n);o.a},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("ac6a"),a("456d");var n=a("b775");function o(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(e).concat(o.url),t[a]=function(t){return Object(n["a"])(o,t)}})),t}},"73d2":function(t,e,a){"use strict";var n=a("f102"),o=a.n(n);o.a},"76d4":function(t,e,a){},"7f7f":function(t,e,a){var n=a("86cc").f,o=Function.prototype,s=/^\s*function ([^ (]*)/,l="name";l in o||a("9e1e")&&n(o,l,{configurable:!0,get:function(){try{return(""+this).match(s)[1]}catch(t){return""}}})},"8fac":function(t,e,a){},b155:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content-right"},[a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"绑定变更日志",name:"first"}},[a("div",{staticClass:"flex flex-space-between"},[a("div",{},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入导购手机号或代码","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e,t.searchInput)}(e)}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeBindList},model:{value:t.optType,callback:function(e){t.optType=e},expression:"optType"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),a("el-option",{attrs:{label:"绑定",value:"0"}}),a("el-option",{attrs:{label:"解绑",value:"1"}})],1)],1),a("common-alert-tip",{attrs:{width:"284px","tip-content":t.tipContent}})],1),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableBindData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(0==e.row.optType?"绑定":"解绑"))]}}])}),a("el-table-column",{attrs:{label:"导购账号"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top",width:"242",trigger:"hover"}},[a("div",[a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266"},[t._v("姓名")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.clerkName||"--")+"("+t._s(1==e.row.sex?"男":2==e.row.sex?"女":"--")+" )")])]),a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266"},[t._v("手机号")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.clerkNationCode||"--")+"-"+t._s(e.row.clerkPhoneNumber||"--"))])]),a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266 min-w-90"},[t._v("所在门店")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.storeName||"--"))])])]),a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(e.row.clerkName||"--")+"("+t._s(e.row.clerkCode||"--")+")")])])]}}])}),a("el-table-column",{attrs:{label:"企微账号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxUserId||"--"))]}}])}),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.phoneNumber||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]),a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"操作人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.optStaffName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1001==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("后台管理员绑定")]):t._e(),1002==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("好办客户端绑定")]):t._e(),1003==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("审核绑定")]):t._e(),1004==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("GIC 同步绑定")]):t._e(),1005==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("企业同步绑定")]):t._e(),2001==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("后台管理员解绑")]):t._e(),2002==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("好办客户端解绑")]):t._e(),2003==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("GIC 同步解绑")]):t._e(),2004==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("企业同步解绑")]):t._e(),2005==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("授权范围变更解绑")]):t._e()]}}])})],1),0!=t.tableBindData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)]),a("el-tab-pane",{attrs:{label:"通讯录刷新日志",name:"second"}},[a("div",{staticClass:"flex flex-space-between"},[a("common-alert-tip",{attrs:{width:"284px","tip-content":"仅保存近一年的日志"}})],1),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.optName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime))+t._s(e.row.createTime?"":"--"))]),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime))+t._s(e.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"完成时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+t._s(e.row.updateTime?"":"--"))]),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+t._s(e.row.updateTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步内容","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.taskDesc)))]}}])}),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",4==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),4==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(4==e.row.statusFlag?"成功":""))]):t._e(),0==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v("初始化")]):t._e(),1==e.row.statusFlag||2==e.row.statusFlag||3==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v("分组/门店/成员同步中")]):t._e(),5==e.row.statusFlag||6==e.row.statusFlag?a("el-popover",{staticClass:"item",attrs:{trigger:"hover",content:5==e.row.statusFlag?"完成有错误":"有错误关闭",placement:"top"}},[a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])],1)],1)])])]),t.logShow?a("fail-log",{attrs:{"task-id":t.taskId},on:{closeLog:t.closeLog}}):t._e()],1)},o=[],s=(a("7f7f"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"查看失败日志",visible:t.dialogVisible,width:"995px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("失败可能:分组创建失败或门店及成员创建失败"),a("br"),t._v("\n 通讯录同步分为两步串联创建:"),a("br"),t._v("\n 第一步同步分组,若出现分组创建失败,则分组及下面的门店及成员均会创建失败"),a("br"),t._v("\n 第二步同步门店及成员,若分组创建成功,会同步门店及成员,若门店创建失败,则门店下成员也会创建失败")])])])]),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{height:"450",data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组/门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.dataName))]}}])}),a("el-table-column",{attrs:{prop:"",label:"分组/门店code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.dataCode)+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"所属分组","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.chainName)+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"数据类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.dataType?"分组":1==e.row.dataType?"门店":"成员")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",2==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(3==e.row.statusFlag?"同步失败":1==e.row.statusFlag?"同步处理中":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"失败原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.reason)))]}}])})],1),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])}),l=[],r=a("e230"),i=r["a"].getSyncFailDetail,c={name:"FailLog",props:{taskId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,currentPage:1,pageSize:20,total:0,tableData:[]}},mounted:function(){var t=this;t.taskId&&t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{handleClose:function(){var t=this;t.tableData=[],t.$emit("closeLog")},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},getTableList:function(){var t=this,e={keyWord:t.searchInput||"",taskId:t.taskId,pageNum:t.currentPage,pageSize:t.pageSize};i(e).then((function(e){t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))}},watch:{taskId:function(t,e){var a=this;t&&a.getTableList()}}},u=c,p=(a("73d2"),a("2877")),f=Object(p["a"])(u,s,l,!1,null,"6f4ac83a",null),d=f.exports,g=a("29b6"),h=a("3081"),v=a("d157"),m=r["a"].getBindLog,b=r["a"].getRefreshLog,_=r["a"].getWxEnterprise,w={name:"SyncLog",components:{navCrumb:g["a"],failLog:d,commonAlertTip:h["a"]},data:function(){return{tipContent:"仅保存近一年绑定解绑的日志",navpath:[{name:"通讯录",path:"/contactsList"},{name:"日志详情",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",activeName:"first",searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[],tableBindData:[],logShow:!1,taskId:"",optType:"",enterpriseId:"",brandOptions:[]}},mounted:function(){var t=this;t.getBrandData(),t.getBindList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{clearInput:function(){var t=this;t.currentPage=1,t.getBindList()},changeBindList:function(){var t=this;t.currentPage=1,t.getBindList()},toInput:Object(v["a"])((function(t){var e=this;e.currentPage=1,e.getBindList()}),200),handleClick:function(t){var e=this;e.currentPage=1,e.pageSize=20,e.total=0,e.enterpriseId="","second"==t.name?e.getTableList():(e.getBrandData(),e.getBindList())},toShowLog:function(t,e){var a=this;a.taskId=e.taskId,a.logShow=!0},closeLog:function(){var t=this;t.taskId="",t.logShow=!1},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,"second"==e.activeName?e.getTableList():e.getBindList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,"second"==e.activeName?e.getTableList():e.getBindList()},getBrandData:function(){var t=this;_({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){e.result&&e.result.length&&(t.brandOptions=e.result)})).catch((function(t){}))},getBindList:function(){var t=this,e={search:t.searchInput||"",enterpriseId:t.enterpriseId,wxEnterpriseId:t.wxEnterpriseId,optType:t.optType,pageNum:t.currentPage,pageSize:t.pageSize};m(e).then((function(e){t.tableBindData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))},getTableList:function(){var t=this,e={enterpriseId:t.enterpriseId,wxEnterpriseId:t.wxEnterpriseId,pageNum:t.currentPage,pageSize:t.pageSize};b(e).then((function(e){t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))}}},C=w,y=(a("bd57"),Object(p["a"])(C,n,o,!1,null,"032e410c",null));e["default"]=y.exports},bd57:function(t,e,a){"use strict";var n=a("8fac"),o=a.n(n);o.a},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,o=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,o)}),n)}}function o(t,e){var a,n,o=e||200;return function(){var e=this,s=arguments,l=+new Date;a&&l-a<o?(clearTimeout(n),n=setTimeout((function(){a=l,t.apply(e,s)}),o)):(a=l,t.apply(e,s))}}function s(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},e230:function(t,e,a){"use strict";var n=a("71f6"),o={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/nationcode/get-nationcode-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};o=Object(n["a"])(o,"/hb-manage-web"),e["a"]=o},f102:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d09caf5c"],{"0ac0":function(t,e,a){},"220a":function(t,e,a){},2340:function(t,e,a){},"236e":function(t,e,a){},2581:function(t,e,a){},2802:function(t,e,a){"use strict";a("4917");e["a"]={getByteLen:function(t){for(var e=""==t||null==t?"":t,a=0,r=0;r<e.length;r++){var n=e.charAt(r);null!=n.match(/[^\x00-\xff]/gi)?a+=2:a+=1}return a},getZhLen:function(t){for(var e=""==t||null==t?"":t,a=0,r=0;r<e.length;r++){var n=e.charAt(r);null!=n.match(/[^\x00-\xff]/gi)?a+=1:a+=.5}return Math.ceil(a)},cutStr:function(t,e,a){for(var r=0,n=0;n<t.length;n++){var s=t.charAt(n);if(1==a&&(encodeURI(s).length>2?r+=1:r+=.5),2==a&&(r+=1),r>=e){var i=r==e?n+1:n;return t.substr(0,i)}}},getByteVal:function(t,e){for(var a=""==t||null==t?"":t,r="",n=0,s=0;s<a.length;s++){if(null!=a[s].match(/[^\x00-\xff]/gi)?n+=1:n+=.5,n>e)break;r+=a[s]}return r},getCharVal:function(t,e){for(var a=""==t||null==t?"":t,r="",n=0,s=0;s<a.length;s++){if(null!=a[s].match(/[^\x00-\xff]/gi)?n+=2:n+=1,n>e)break;r+=a[s]}return r},regPos:function(t){var e=/^\d+(\.\d+)?$/;return e.test(t)}}},"3d3b":function(t,e,a){},4917:function(t,e,a){"use strict";var r=a("cb7c"),n=a("9def"),s=a("0390"),i=a("5f1b");a("214f")("match",1,(function(t,e,a,o){return[function(a){var r=t(this),n=void 0==a?void 0:a[e];return void 0!==n?n.call(a,r):new RegExp(a)[e](String(r))},function(t){var e=o(a,t,this);if(e.done)return e.value;var c=r(t),l=String(this);if(!c.global)return i(c,l);var u=c.unicode;c.lastIndex=0;var m,d=[],h=0;while(null!==(m=i(c,l))){var p=String(m[0]);d[h]=p,""===p&&(c.lastIndex=s(l,n(c.lastIndex),u)),h++}return 0===h?null:d}]}))},"5af5":function(t,e,a){"use strict";var r=a("2340"),n=a.n(r);n.a},"62a7":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"new-auth-body"},[2!=t.activeStep?a("div",[a("auth-step",{attrs:{"active-step":t.activeStep}})],1):t._e(),0==t.activeStep?a("div",{staticClass:"auth-tip-body"},[a("auth-tip",{staticClass:"m-t-30"}),a("el-form",{ref:"authForm",staticClass:"dialog-form m-t-20",attrs:{model:t.authForm,rules:t.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"选择商户",prop:"enterpriseId"}},[a("div",{staticClass:"el-input-group__prepend"},[t._v("GIC4.0")]),t.$route.query.enterpriseId?t._e():a("el-popover",{attrs:{placement:"bottom",title:"",trigger:"click","popper-class":"company-select-pop",width:"267"}},[a("div",{staticClass:"company-select"},[a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[t._l(t.searchArray,(function(e,r){return a("li",{key:r+"search",staticClass:"el-select-dropdown__item",on:{click:function(a){return t.getAdmin(e)}}},[a("div",{staticClass:"flex flex-space-between"},[a("div",{staticStyle:{"line-height":"26px"}},[a("span",{staticClass:"block text-ellipsis"},[t._v(t._s(e.enterpriseName||"--"))]),a("div",{staticClass:"text-ellipsis font-12 color-909399"},[t._v(t._s(e.companyName||"--"))])]),e.enterpriseId==t.authForm.enterpriseId?a("span",{staticClass:"font-12 color-2f54eb el-icon-check flex-align-center",staticStyle:{display:"flex"}}):t._e()])])})),t.searchArray.length?t._e():a("li",{staticClass:"el-select-dropdown__item text-center"},[t._v("暂无商户数据")])],2)])])]),a("div",{staticClass:"select-search-input cursor-pointer",attrs:{slot:"reference"},slot:"reference"},[a("div",[a("el-input",{staticClass:"w-267",attrs:{disabled:!!t.$route.query.enterpriseId,placeholder:"请搜索选择商户",maxlength:"50"},nativeOn:{keyup:function(e){return function(e){return t.querySearchAsync(e,t.searchSelect)}(e)}},model:{value:t.searchSelect,callback:function(e){t.searchSelect=e},expression:"searchSelect"}})],1)])]),t.$route.query.enterpriseId?a("div",{staticClass:"select-search-input"},[a("el-input",{staticClass:"w-267",attrs:{disabled:!!t.$route.query.enterpriseId,placeholder:"请搜索选择商户",maxlength:"50"},model:{value:t.authForm.enterpriseName,callback:function(e){t.$set(t.authForm,"enterpriseName",e)},expression:"authForm.enterpriseName"}})],1):t._e()],1),a("el-form-item",{attrs:{label:"门店绑定",prop:"bindRange"}},[a("div",{staticClass:"el-select store-item-content",on:{click:function(e){return t.showStore(1)}}},[t.authForm.bindStoreMode>0?a("div",{staticClass:"el-select__tags"},[a("span",{staticStyle:{display:"block"}},[t._l(t.authForm.bindRange,(function(e,r){return[a("span",{key:r+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.storeInfoName||e.storeGroupName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delStore(r,t.authForm.bindRange)}}})])]}))],2)]):t._e(),0==t.authForm.bindStoreMode&&""!==t.authForm.bindStoreMode?a("span",{staticClass:"p-l-10 font-14 color-909399"},[t._v("已选全部")]):t._e()])]),a("el-form-item",{attrs:{label:"门店共享",prop:"shareRange"}},[a("div",{staticClass:"el-select store-item-content",on:{click:function(e){return t.showStore(2)}}},[t.authForm.shareStoreMode>0?a("div",{staticClass:"el-select__tags"},[a("span",{staticStyle:{display:"block"}},[t._l(t.authForm.shareRange,(function(e,r){return[a("span",{key:r+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.storeInfoName||e.storeGroupName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delStore(r,t.authForm.shareRange)}}})])]}))],2)]):t._e(),0==t.authForm.shareStoreMode&&""!==t.authForm.shareStoreMode?a("span",{staticClass:"p-l-10 font-14 color-909399"},[t._v("已选全部")]):t._e()])]),a("el-form-item",[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{disabled:!t.changeFlag||""===t.authForm.shareStoreMode&&""===t.authForm.bindStoreMode,type:"primary"},on:{click:function(e){return t.submitForm("authForm")}}},[t._v("下一步")])],1)],1)],1):t._e(),1==t.activeStep?a("div",{staticClass:"commit-success-body m-t-35"},[a("auth-commit",{attrs:{"admin-list":t.adminList,reason:t.authForm.auditReason},on:{changeStep:t.changeStep,returnStep:t.returnStep}})],1):t._e(),2==t.activeStep?a("div",{staticClass:"commit-success-body"},[a("auth-commit-success",{attrs:{"enterprise-id":t.authForm.enterpriseId}})],1):t._e()])])])])]),t.setVisible?a("store-auth-dialog",{attrs:{"enterprise-id":t.authForm.enterpriseId,"is-select-all":t.isSelectAll,"select-mode":t.selectMode,"range-data":t.rangeData,"bind-type":t.bindType},on:{closeSet:t.closeSet}}):t._e(),t.checkShow?a("check-name-dialog",{attrs:{"sync-data":t.syncData},on:{closeSet:t.closeCheckSet}}):t._e()],1)},n=[],s=(a("96cf"),a("1da1")),i=(a("ac6a"),a("29b6")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{class:["auth-step-body",0==t.active?"step-one":"step-two"]},[a("el-steps",{attrs:{active:t.active,"finish-status":"success"}},[a("el-step",{attrs:{title:"GIC商户授权",description:""}}),a("el-step",{attrs:{title:"审核员授权",description:""}})],1)],1)])},c=[],l={name:"AuthStep",components:{},props:{activeStep:{type:String,default:function(){return"0"}}},data:function(){return{active:"0"}},mounted:function(){var t=this;t.active=t.activeStep},watch:{activeStep:function(t){this.active=t}}},u=l,m=(a("de0b"),a("2877")),d=Object(m["a"])(u,o,c,!1,null,"c9703e40",null),h=d.exports,p=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},f=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"auth-tip"},[a("div",{staticStyle:{width:"645px"}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",staticStyle:{width:"645px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n 商户授权须知:"),a("br"),t._v("\n 1. 商户授权可以是多个商户授权到1个企业下,但是需保证使用的服务号或小程序在同一开放平台"),a("br"),t._v("\n    下,否则绑定商户的客户获取的unionid会不一致,最终会无法识别企业微信客户与会员的绑定性;"),a("br"),t._v("\n 2. 商户绑定后,可选择部分门店绑定,如商户有100家门店,可授权其中50家;"),a("br"),t._v("\n 3. 绑定商户结束后,导购可通过企业微信好办小程序绑定导购账号后登录;"),a("br"),t._v("\n 4. 进行门店绑定后,请勿随意操作门店绑定范围,如果门店范围取消,会导致用户关联的导购账号"),a("br"),t._v("\n    解绑,"),a("span",{staticClass:"color-f5222d"},[t._v("如果24小时内未恢复范围,会永久解绑。")])])])])])])}],g={name:"AuthTip",data:function(){return{}}},v=g,b=(a("c8ff"),Object(m["a"])(v,p,f,!1,null,"6246f46e",null)),S=b.exports,y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"auth-commit-success"},[t._m(0),a("div",{staticClass:"commit-success-text text-center font-14 color-303133 m-t-12"},[t._v("已提交管理员审核,请通知管理员及时审核")]),a("div",{staticClass:"commit-success-btn text-center m-t-28"},[a("el-button",{on:{click:function(e){return t.changeRoute("/authMerchant")}}},[t._v("返回授权列表")]),a("el-button",{on:{click:function(e){return t.changeRoute("/auditLog?enterpriseId="+t.enterpriseId)}}},[t._v("进入审核列表")])],1)])},_=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"commit-success-img text-center"},[a("span",{staticClass:"iconfont iconchenggong color-49c958 font-60"})])}],F={name:"AuthCommitSuccess",components:{},props:{enterpriseId:{type:String,default:""}},data:function(){return{}},methods:{changeRoute:function(t){this.$router.push(t)}}},C=F,N=(a("73ba"),Object(m["a"])(C,y,_,!1,null,"68854cb4",null)),R=N.exports,x=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"auth-commit-admin"},[a("common-alert-tip",{staticClass:"m-b-32",attrs:{width:"328px","tip-content":t.tipContent}}),a("el-form",{ref:"commitForm",staticClass:"dialog-form",attrs:{model:t.commitForm,rules:t.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"申请事项",prop:"commitName"}},[a("el-input",{staticClass:"w-198",attrs:{disabled:""},model:{value:t.commitForm.commitName,callback:function(e){t.$set(t.commitForm,"commitName",e)},expression:"commitForm.commitName"}})],1),a("el-form-item",{attrs:{label:"申请理由",prop:"auditReason"}},[a("limit-textarea",{attrs:{"input-width":298,"input-value":t.commitForm.auditReason,holder:"请输入申请理由","get-by-type":"word","max-length":50},on:{"update:inputValue":function(e){return t.$set(t.commitForm,"auditReason",e)},"update:input-value":function(e){return t.$set(t.commitForm,"auditReason",e)}}})],1),a("el-form-item",{attrs:{label:"审核人",prop:""}},[a("div",{staticClass:"flex flex-wrap audit-admin-body"},[t._l(t.commitForm.auditAdmin,(function(e,r){return[a("span",{key:r+"admin",staticClass:"audit-admin"},[t._v("\n "+t._s(t._f("formatWord")(e.clerkName))+"("+t._s(e.nationCode+"-"+e.phoneNumber)+")\n ")])]}))],2)]),a("el-form-item",[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loadBtn},on:{click:function(e){return t.submitForm("commitForm")}}},[t._v("提交审核")])],1)],1)],1)},I=[],w=a("3081"),D=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-line-cell",style:{width:t.inputWidth+"px"}},[a("el-input",{style:{width:t.inputWidth+"px"},attrs:{placeholder:t.holder,type:"textarea",rows:3,disabled:t.disInput},on:{blur:function(e){return t.inputBlur()}},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),a("span",{staticClass:"tip"},[a("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},k=[],M=(a("c5f6"),a("2802")),$={name:"LimitTextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disInput:{type:Boolean,default:!1}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},mounted:function(){var t=this;t.limitLength=t.maxLength,t.itemValue=t.inputValue||"","word"==t.getByType?t.inputNum=M["a"].getZhLen(t.inputValue):t.inputNum=M["a"].getByteLen(t.inputValue)},methods:{toInput:function(t){var e=this,a="";"word"==e.getByType?(a=M["a"].getByteVal(t.target.value,e.limitLength),e.itemValue=a,e.inputNum=M["a"].getZhLen(e.itemValue)):(a=M["a"].getCharVal(t.target.value,e.limitLength),e.itemValue=a,e.inputNum=M["a"].getByteLen(e.itemValue)),e.$emit("update:inputValue",e.itemValue)},inputBlur:function(){var t=this;t.$emit("update:inputValue",t.itemValue)}},watch:{maxLength:function(t,e){var a=this;a.limitLength=t},inputValue:function(t,e){var a=this;a.itemValue=t,"word"==a.getByType?a.inputNum=M["a"].getZhLen(a.itemValue):a.inputNum=M["a"].getByteLen(a.itemValue)}}},O=$,L=(a("8cfe"),Object(m["a"])(O,D,k,!1,null,"8106e482",null)),A=L.exports,V=a("d157"),J={name:"AuthCommit",components:{commonAlertTip:w["a"],limitTextarea:A},props:{reason:{type:String,default:""},adminList:{type:[Object,Array],default:function(){return[]}}},data:function(){return{tipContent:"提交商户绑定审核,经审核员同意后绑定成功",commitForm:{commitType:1,commitName:"商户授权",auditReason:this.reason||"",auditAdmin:[]},rules:{auditReason:[{required:!0,message:"请输入申请理由",trigger:"blur"}]},loadBtn:!1}},mounted:function(){var t=this;t.commitForm.auditAdmin=JSON.parse(JSON.stringify(t.adminList))},methods:{cancel:function(){var t=this;t.$emit("returnStep")},submitForm:Object(V["b"])((function(t){var e=this;e.loadBtn=!0,e.$refs[t].validate((function(t){if(!t)return e.loadBtn=!1,!1;e.toCommitPost()}))}),5e3),toCommitPost:function(){var t=this;t.$emit("changeStep",t.commitForm.auditReason),t.$nextTick((function(){t.loadBtn=!1}))},changeRoute:function(t){this.$router.push(t)}},watch:{adminList:function(t){var e=this;e.commitForm.auditAdmin=JSON.parse(JSON.stringify(t))}}},E=J,B=(a("9bff"),Object(m["a"])(E,x,I,!1,null,"1b25395e",null)),T=B.exports,j=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"554px",title:1==t.bindType?"门店绑定":"门店共享",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[a("div",{staticClass:"bind-store-body"},[a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px"},attrs:{for:"name"}},[t._v("\n 选择绑定门店\n ")]),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"110px"}},[a("el-radio",{attrs:{disabled:1==t.isSelectAll&&1==t.bindType,label:"0"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("所有门店")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"1"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("选择分组")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"2"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("选择门店")]),("1"!=t.formData.sendRange&&"2"!=t.formData.sendRange||t.formData.selectList.length)&&"null"!=String(t.formData.sendRange)&&""!==t.formData.sendRange?t._e():a("div",{staticClass:"el-form-item__error"},[t._v("请选择绑定门店")]),"1"==t.formData.sendRange?a("store-auth-group",{attrs:{"company-id":t.enterpriseId,"store-type":t.bindType,"select-group":t.selectGroupData},on:{checkGroupIds:t.checkGroupIds}}):t._e(),"2"==t.formData.sendRange?a("store-auth-store",{attrs:{"company-id":t.enterpriseId,"store-type":t.bindType,"select-store":t.selectStoreData},on:{checkStoreIds:t.checkStoreIds}}):t._e()],1)])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return e.stopPropagation(),t.submitForm(e)}}},[t._v("确定")])],1)])},G=[],q=a("7ca9"),P=a("418e"),U={name:"StoreAuthDialog",components:{storeAuthGroup:q["a"],storeAuthStore:P["a"]},props:{isSelectAll:{type:[String,Number],default:"0"},enterpriseId:{type:String,default:""},bindType:{type:[String,Number],default:"1"},selectMode:{type:[String,Number],default:"0"},rangeData:{type:[Object,Array],default:function(){return[]}}},data:function(){return{setVisible:!0,formData:{sendRange:"0",selectList:[]},selectGroupData:[],selectStoreData:[]}},mounted:function(){var t=this;t.formData.sendRange=String(t.selectMode),t.selectGroupData=1==t.selectMode?JSON.parse(JSON.stringify(t.rangeData)):[],t.selectStoreData=2==t.selectMode?JSON.parse(JSON.stringify(t.rangeData)):[],t.formData.selectList=JSON.parse(JSON.stringify(t.rangeData))||[]},methods:{changeRange:function(t){var e=this;e.formData.sendRange=t,e.formData.selectList=[]},handleClose:function(t){var e=this;t(),e.$emit("closeSet","close"),e.selectGroupData=[],e.selectStoreData=[]},cancel:function(){var t=this;t.$emit("closeSet","close"),t.selectGroupData=[],t.selectStoreData=[]},checkGroupIds:function(t){var e=this;e.formData.selectList=JSON.parse(JSON.stringify(t))},checkStoreIds:function(t){var e=this;e.formData.selectList=JSON.parse(JSON.stringify(t))},submitForm:function(){var t=this;return"null"!=String(t.formData.sendRange)&&""!==t.formData.sendRange&&(!("1"==t.formData.sendRange&&!t.formData.selectList.length)&&(!("2"==t.formData.sendRange&&!t.formData.selectList.length)&&void t.$emit("closeSet",String(t.formData.sendRange),t.formData.selectList)))}},watch:{selectMode:function(t){var e=this;e.formData.sendRange=String(t)},rangeData:function(t){var e=this;e.selectGroupData=1==e.selectMode?JSON.parse(JSON.stringify(t)):[],e.selectStoreData=2==e.selectMode?JSON.parse(JSON.stringify(t)):[],e.formData.selectList=JSON.parse(JSON.stringify(t))||[]}}},W=U,Z=(a("f657"),Object(m["a"])(W,j,G,!1,null,"d61df484",null)),z=Z.exports,H=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{staticClass:"check-name-dialog",attrs:{title:"提示",visible:t.dialogVisible,width:"416px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"m-b-20"},[a("div",{staticClass:"font-14 color-606266 m-b-10"},[t._v("首次授权商户需要校验GIC商户超级管理员姓名")]),a("el-form",{ref:"ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"超级管理员",prop:"userName"}},[a("span",[t._v(t._s(t.firstName))]),a("el-input",{staticClass:"w-173 m-l-10",attrs:{maxlength:"50",placeholder:"输入姓名校验"},model:{value:t.ruleForm.userName,callback:function(e){t.$set(t.ruleForm,"userName",e)},expression:"ruleForm.userName"}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return e.stopPropagation(),t.submitForm("ruleForm")}}},[t._v("确定")])],1)])},K=[],Q=a("21f4"),X=a("5b4e"),Y=Q["a"].getCheckName,tt=Q["a"].checkName,et={name:"CheckNameDialog",props:{syncData:{type:Object,default:function(){return{syncStatus:"0"}}}},data:function(){return{dialogVisible:!0,loading:!1,firstName:"",ruleForm:{userName:""},rules:{userName:[{required:!0,message:"请输入姓名",trigger:"blur"}]}}},mounted:function(){var t=this;t.getCheckNameData()},methods:{getCheckNameData:function(){var t=this,e={enterpriseId:t.syncData.enterpriseId};Y(e).then((function(e){t.firstName=e.result||""})).catch((function(t){}))},handleClose:function(){var t=this;t.ruleForm.userName="",t.$emit("closeSet","close")},cancel:function(){var t=this;t.ruleForm.userName="",t.$emit("closeSet","close")},submitForm:Object(V["a"])((function(t){var e=this;e.loading=!0,e.$refs[t].validate((function(t){if(!t)return e.loading=!1,!1;e.postCheck()}))}),300),postCheck:function(){var t=this,e={enterpriseId:t.syncData.enterpriseId,userName:t.firstName+t.ruleForm.userName};tt(e).then((function(e){t.loading=!1,"0000"==e.code?e.result?(X["a"].showmsg("校验成功","success"),t.ruleForm.userName="",t.$emit("closeSet","success")):X["a"].showmsg("校验失败","warning"):X["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loading=!1}))}}},at=et,rt=(a("5af5"),Object(m["a"])(at,H,K,!1,null,"a960be2a",null)),nt=rt.exports,st=Q["a"].getAuthDetail,it=Q["a"].getEnterprise,ot=Q["a"].getEnterpriseDetail,ct=Q["a"].getGicAdmin,lt=Q["a"].postEnterpriseAuth,ut={name:"NewAuthMerchant",components:{navCrumb:i["a"],authStep:h,authTip:S,authCommitSuccess:R,authCommit:T,storeAuthDialog:z,checkNameDialog:nt},data:function(){return{navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:"/authMerchant"},{name:this.$route.query.enterpriseId?"编辑授权":"新建授权",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditorName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",activeStep:"0",brandOptions:[],searchSelect:"",searchArray:[],authForm:{storeRangeAuditId:"",enterpriseId:"",enterpriseName:"",bindRange:[],shareRange:[],shareStoreMode:"",bindStoreMode:"",auditReason:""},rules:{enterpriseId:[{required:!0,message:"请选择商户",trigger:"change"}]},checkShow:!1,syncData:{},isSelectAll:0,changeFlag:!1,setVisible:!1,selectMode:"0",rangeData:[],bindType:1,adminList:[]}},mounted:function(){var t=this;t.$route.query.enterpriseId&&t.getData(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{closeCheckSet:function(t){var e=this;if(e.checkShow=!1,"close"==t)return!1;e.authForm.enterpriseId=e.syncData.enterpriseId,e.authForm.enterpriseName=e.syncData.enterpriseName,e.$refs["authForm"].validate((function(t){return!!t&&void 0}))},closeSet:function(t,e){var a=this;if(a.setVisible=!1,"close"==t)return!1;a.selectMode=String(t),1==a.bindType?(a.authForm.bindStoreMode=String(t),a.authForm.bindRange=JSON.parse(JSON.stringify(e))):(a.authForm.shareStoreMode=String(t),a.authForm.shareRange=JSON.parse(JSON.stringify(e))),a.changeFlag=!0},showStore:function(t){var e=this;if(!e.authForm.enterpriseId)return!1;e.selectMode=1==t?e.authForm.bindStoreMode:e.authForm.shareStoreMode,e.rangeData=1==t?e.authForm.bindRange:e.authForm.shareRange,e.bindType=t,e.setVisible=!0,e.getEnterpriseData()},getSearchList:function(t){var e={enterpriseName:t};return""==t?[]:new Promise((function(t,a){it(e).then((function(e){"0000"==e.code?(e.result&&e.result.forEach((function(t){t.value=t.enterpriseName})),t(e.result)):t([])})).catch((function(e){t([])}))}))},querySearchAsync:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this,""!=String(e.searchSelect).trim()){t.next=10;break}return e.authForm.enterpriseId="",e.searchArray=[],e.authForm.bindRange=[],e.authForm.shareRange=[],e.authForm.shareStoreMode="",e.authForm.bindStoreMode="",e.adminList=[],t.abrupt("return",!1);case 10:return t.next=12,e.getSearchList(e.searchSelect);case 12:a=t.sent,e.searchArray=a;case 14:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),returnStep:function(){var t=this;t.activeStep=0},cancel:function(){var t=this;t.$router.push("/authMerchant")},submitForm:function(t){var e=this;e.$refs[t].validate((function(t){if(!t)return!1;e.activeStep=1}))},delStore:function(t,e){var a=this;e.splice(t,1),a.changeFlag=!0,a.authForm.shareStoreMode=!a.authForm.shareRange.length&&a.authForm.shareStoreMode>0?"":String(a.authForm.shareStoreMode),a.authForm.bindStoreMode=!a.authForm.bindRange.length&&a.authForm.bindStoreMode>0?"":String(a.authForm.bindStoreMode)},getAdmin:function(t){var e=this;if(e.authForm.enterpriseId==t.enterpriseId)return!1;e.syncData=t,e.checkShow=!0,e.authForm.enterpriseId="",e.authForm.enterpriseName="",e.authForm.bindRange=[],e.authForm.shareRange=[],e.authForm.shareStoreMode="",e.authForm.bindStoreMode="",e.adminList=[],e.getAdminList(t.enterpriseId)},getAdminList:function(t){var e=this;ct({enterpriseId:t}).then((function(t){t.result&&t.result.length&&(e.adminList=t.result||[])})).catch((function(t){}))},changeStep:function(t){var e=this;e.authForm.auditReason=Object(V["c"])(t);var a={enterpriseId:e.authForm.enterpriseId,wxEnterpriseId:e.wxEnterpriseId,shareRange:e.authForm.shareStoreMode>0?1==e.authForm.shareStoreMode?e.authForm.shareRange.map((function(t){return t.storeGroupId})).join(","):e.authForm.shareRange.map((function(t){return t.storeInfoId})).join(","):"",bindRange:e.authForm.bindStoreMode>0?1==e.authForm.bindStoreMode?e.authForm.bindRange.map((function(t){return t.storeGroupId})).join(","):e.authForm.bindRange.map((function(t){return t.storeInfoId})).join(","):"",auditReason:e.authForm.auditReason,shareStoreMode:!e.authForm.shareRange.length&&e.authForm.shareStoreMode>0?"":String(e.authForm.shareStoreMode),bindStoreMode:!e.authForm.bindRange.length&&e.authForm.bindStoreMode>0?"":String(e.authForm.bindStoreMode),auditorName:e.auditorName};lt(a).then((function(t){"0000"==t.code?e.activeStep=2:e.$message({message:t.message||"接口异常",type:"warning"})})).catch((function(t){}))},changeRoute:function(t){this.$router.push(t)},getEnterpriseData:function(){var t=this;ot({enterpriseId:t.$route.query.enterpriseId||t.authForm.enterpriseId}).then((function(e){t.isSelectAll=e.result.bindFlag})).catch((function(t){}))},getData:function(){var t=this,e={enterpriseId:t.$route.query.enterpriseId,wxEnterpriseId:t.wxEnterpriseId};st(e).then((function(e){"0000"==e.code&&(e.result.bindRange?e.result.bindRange=JSON.parse(e.result.bindRange):e.result.bindRange=[],e.result.shareRange?e.result.shareRange=JSON.parse(e.result.shareRange):e.result.shareRange=[],t.authForm=e.result||{},t.getAdminList(e.result.enterpriseId))})).catch((function(t){}))}}},mt=ut,dt=(a("e5f3"),Object(m["a"])(mt,r,n,!1,null,"604ed84d",null));e["default"]=dt.exports},"73ba":function(t,e,a){"use strict";var r=a("2581"),n=a.n(r);n.a},"8cfe":function(t,e,a){"use strict";var r=a("236e"),n=a.n(r);n.a},"9bff":function(t,e,a){"use strict";var r=a("3d3b"),n=a.n(r);n.a},ada2:function(t,e,a){},c8ff:function(t,e,a){"use strict";var r=a("0ac0"),n=a.n(r);n.a},d744:function(t,e,a){},de0b:function(t,e,a){"use strict";var r=a("220a"),n=a.n(r);n.a},e5f3:function(t,e,a){"use strict";var r=a("ada2"),n=a.n(r);n.a},f657:function(t,e,a){"use strict";var r=a("d744"),n=a.n(r);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d15b21d6"],{"503e":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"p-t-12"},[a("ul",{staticClass:"tab-left-list"},[e._l(e.tabData,(function(t,n){return[a("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(a){return e.selectTab(t,!1,n)}}},[a("i",{class:["p-r-10 color-303133 iconfont",t.iconUrl,(t.onlyIconActive,"")]}),e._v(e._s(t.tabName||t.menuName)+"\n ")]),a("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[e._l(t.children,(function(t,r){return[a("li",{key:r,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(a){return e.selectTab(t,"child",n)}}},[e._v(e._s(t.tabName||t.menuName))]),a("ul",{key:"thirditem"+r,staticClass:"third-tab-left-list"},[e._l(t.children,(function(t,r){return[a("li",{key:r,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",t.menuUrl!=e.activeTab||t.children&&t.children.length?"":"active-tab"],on:{click:function(a){return e.selectTab(t,"child",n)}}},[e._v(e._s(t.tabName||t.menuName))])]}))],2)]}))],2)]}))],2)])},r=[],o=(a("ac6a"),a("c5f6"),{name:"CommonDetailLeft",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return""}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData,collapsFlag:!0}},mounted:function(){this.activeTab=this.activeSelTab},methods:{selectTab:function(e,t,a){var n=this;if(t?n.tabData[a].onlyIconActive=!0:(n.tabData.forEach((function(e){e.onlyIconActive=!1})),e.hasOwnProperty("children")&&e.children.length&&(n.collapsFlag=!(n.collapsFlag&&e.hasOwnProperty("children")&&e.children.length))),e.hasOwnProperty("children")&&e.children.length)return n.tabData[a].onlyIconActive=!0,e.children[0]&&e.children[0].hasOwnProperty("children")&&e.children[0].children.length?(n.activeTab=e.children[0].children[0].menuUrl,n.$emit("setSelectTab",e.children[0].children[0]),!1):(n.activeTab=e.children[0].menuUrl,n.$emit("setSelectTab",e.children[0]),!1);n.activeTab=e.menuUrl,n.$emit("setSelectTab",e)}},watch:{tabListData:function(e,t){var a=this;a.tabData=e},activeSelTab:function(e,t){var a=this;a.activeTab=e}}}),i=o,c=(a("6255"),a("2877")),l=Object(c["a"])(i,n,r,!1,null,"61fa9846",null);t["a"]=l.exports},"57fc":function(e,t,a){},5937:function(e,t,a){"use strict";var n=a("71f6"),r={getRoleMenu:"/list-staff-role-menu"};r=Object(n["a"])(r,"/hb-manage-web"),t["a"]=r},6255:function(e,t,a){"use strict";var n=a("57fc"),r=a.n(n);r.a},"6ce2":function(e,t,a){e.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));a("ac6a"),a("456d");var n=a("b775");function r(e,t){e=e||{};var a=Object.keys(e);return a.forEach((function(a){var r=e[a];"string"===typeof r&&(r={url:r}),r.url="".concat(t).concat(r.url),e[a]=function(e){return Object(n["a"])(r,e)}})),e}},"7ded":function(e,t,a){"use strict";var n=a("71f6"),r={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};r=Object(n["a"])(r,"/hb-manage-web/auth"),t["a"]=r},ab4a:function(e,t,a){},b04c:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"review-wrap"},[a("vue-office-header",{attrs:{"project-name":e.projectName,"current-menu-code":e.currentMenuCode},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView,leftData:e.leftData}}),a("div",{staticClass:"setting-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body"},[a("div",{staticClass:"content-body-inner flex border-box"},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("common-detail-left",{attrs:{"tab-list-data":e.tabListData,"active-sel-tab":e.activeSelTab},on:{setSelectTab:e.setSelectTab}})],1),a("div",{staticClass:"apps-content-right border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{"brand-id":e.activeBrand,"active-group-id":e.activeGroup,"tab-type":e.activeTab},on:{showTab:e.showTab}})],1)],1)])])])])],1)},r=[],o=(a("6762"),a("2fdb"),a("ac6a"),a("f777")),i=a("503e"),c=a("5937"),l=c["a"].getRoleMenu,s={name:"ReviewCenter",components:{vueOfficeHeader:o["a"],commonDetailLeft:i["a"]},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,activeSelTab:"1",activeTab:"1",currentMenuCode:"app-controls",tabListData:[]}},methods:{changeRoute:function(e){this.$router.push(e)},setSelectTab:function(e){var t=this;t.activeTab=e.menuUrl,1==e.target?-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl)):t.$router.push(e.menuUrl)},showTab:function(e){var t=this;t.activeTab=e,t.activeSelTab=e,t.tabListData.forEach((function(t){t.menuUrl==e&&(t.onlyIconActive=!1),t.children&&t.children.forEach((function(a){a.menuUrl==e&&(t.onlyIconActive=!0),a.children&&a.children.forEach((function(a){a.menuUrl==e&&(t.onlyIconActive=!0)}))}))}))},toRouterView:function(e){var t=this;t.$router.push({path:e.path})},collapseTag:function(e){var t=this;t.collapseFlag=e},leftData:function(e){var t=this;e[0].children.forEach((function(e,a){e.tabId=a+1,e.tabName=e.menuName,e.children&&e.children.length&&t.setChildData(e,a+1)})),t.tabListData=e[0].children},setChildData:function(e,t){var a=this;e.children.forEach((function(e,n){e.tabId=t+"-"+(n+1),e.tabName=e.menuName,e.children&&e.children.length&&a.setChildData(e,t+"-"+(n+1))}))},getData:function(){var e=this,t={};l(t).then((function(t){if("0000"==t.code){var a=t.result.map((function(e){return e.menuCode})),n=[];e.tabListData.forEach((function(e){a.includes(e.menuCode)&&n.push(e)})),e.tabListData=n}})).catch((function(e){}))}}},u=s,h=(a("e966"),a("2877")),f=Object(h["a"])(u,n,r,!1,null,null,null);t["default"]=f.exports},e22b:function(e,t,a){"use strict";var n=a("ea9b"),r=a.n(n);r.a},e966:function(e,t,a){"use strict";var n=a("ab4a"),r=a.n(n);r.a},ea9b:function(e,t,a){},f777:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"nav-header"},[n("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[n("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),n("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,a){return[n("a",{key:a,class:["item-link menu-font-16"],on:{click:function(a){return e.changeRouter(t)}}},[n("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)||e.currentMenuCode==t.menuCode?"current-module":""]},[e._v(e._s(t.menuName))])])]})),n("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?n("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):n("img",{staticClass:"user-img",attrs:{src:a("6ce2"),alt:"img"}}),n("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[n("ul",{staticClass:"navsuer-wrap"},[n("li",[n("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),n("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),n("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[n("a",{staticClass:"user-text"},[e._v("退出登录")])])]),n("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[n("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),n("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},r=[],o=(a("456d"),a("96cf"),a("1da1")),i=(a("ac6a"),a("28a5"),a("7ded")),c=a("5937"),l=c["a"].getRoleMenu,s=i["a"].getUserInfo,u=i["a"].loginOut,h={name:"VueOfficeHeader",components:{},props:{currentMenuCode:{type:String,default:""}},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl));else{t.setLeftData(e);var a={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(a=t),e.menuCode==t.menuCode&&t.children.length&&(a=t.children[0])})),t.$router.push(a.menuUrl)}},setLeftData:function(e){var t=this,a=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&a.push(t)})),t.$emit("leftData",a)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){u({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(e){}))})).catch((function(){}))},toLogin:function(){var e=this;s({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var a=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return a.length>0?(t.hasSonNode=!0,t.children=a):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={appType:1};l(t).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(a){var n,r,o,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=a.code){t.next=14;break}return n=[],r={},o={},a.result.forEach((function(t){1==t.level&&1==t.isShow&&n.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(r=t),e.$route.path==t.menuUrl&&1!=t.level&&(o=t)})),e.menuHead=n,t.next=8,e.treeData(JSON.parse(JSON.stringify(a.result)));case 8:e.roleMenuData=t.sent,Object.keys(o).length&&2==o.level&&a.result.forEach((function(e){o.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),i={},Object.keys(o).length&&3==o.level&&a.result.forEach((function(e){o.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(i=e)})),Object.keys(i).length&&2==i.level&&a.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),e.setLeftData(r);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},f=h,d=(a("e22b"),a("2877")),m=Object(d["a"])(f,n,r,!1,null,"26c74afb",null);t["a"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d7315c84"],{"0973":function(t,s,i){t.exports=i.p+"img/error_404.bf587478.svg"},"1c41":function(t,s,i){t.exports=i.p+"img/error_500.ed0cba44.svg"},"2de8":function(t,s,i){"use strict";var a=i("cd38"),c=i.n(a);c.a},"4cf1":function(t,s,i){"use strict";i.r(s);var a=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100vh"}},[i("div",{staticClass:"wscn-http-404"},[i("div",{staticClass:"pic-404"},[i("img",{staticClass:"pic-404__parent",attrs:{src:t.imgSrc,alt:"404"}})]),i("div",{staticClass:"bullshit"},[i("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),i("a",{staticClass:"bullshit__return-home",attrs:{href:"#/contactsList"}},[t._v("返回首页")])])])])},c=[],e=(i("28a5"),i("d1ea")),r=i.n(e),n=i("0973"),o=i.n(n),u=i("1c41"),l=i.n(u),d={name:"ErrPage",data:function(){return{imgSrc:"",message:"",srcList:{403:r.a,404:o.a,500:l.a},msgList:{403:"抱歉,你无权访问该页面",404:"抱歉,你访问的页面不存在",500:"抱歉,服务器出错了"}}},mounted:function(){var t=this,s=t.$route.path.split("/")[1];t.imgSrc=t.srcList[s],t.message=t.msgList[s]}},p=d,g=(i("2de8"),i("2877")),f=Object(g["a"])(p,a,c,!1,null,"0d9d0575",null);s["default"]=f.exports},cd38:function(t,s,i){},d1ea:function(t,s,i){t.exports=i.p+"img/error_403.829774f4.svg"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06fd5be4"],{3081:function(t,e,n){"use strict";var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"common-alert-tip"},[n("div",{style:{"min-width":t.width}},[n("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},attrs:{role:"alert"}},[n("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),n("div",{staticClass:"el-alert__content"},[n("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")]),t.tipTwoContent?n("div",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipTwoContent)+"\n ")]):t._e()])])])])},r=[],i={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""},tipTwoContent:{type:String,default:""}},data:function(){return{}}},a=i,l=n("2877"),s=Object(l["a"])(a,o,r,!1,null,"537f2e35",null);e["a"]=s.exports},"5b4e":function(t,e,n){"use strict";var o=n("5c96");e["a"]={showmsg:function(t,e){Object(o["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"71f6":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("ac6a"),n("456d");var o=n("b775");function r(t,e){t=t||{};var n=Object.keys(t);return n.forEach((function(n){var r=t[n];"string"===typeof r&&(r={url:r}),r.url="".concat(e).concat(r.url),t[n]=function(t){return Object(o["a"])(r,t)}})),t}},aa47:function(t,e,n){"use strict";
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-dac82e2c"],{3081:function(t,e,n){"use strict";var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"common-alert-tip"},[n("div",{style:{"min-width":t.width}},[n("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},attrs:{role:"alert"}},[n("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),n("div",{staticClass:"el-alert__content"},[n("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")]),t.tipTwoContent?n("div",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipTwoContent)+"\n ")]):t._e()])])])])},r=[],i={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""},tipTwoContent:{type:String,default:""}},data:function(){return{}}},a=i,l=n("2877"),s=Object(l["a"])(a,o,r,!1,null,"537f2e35",null);e["a"]=s.exports},"5b4e6":function(t,e,n){"use strict";var o=n("5c96");e["a"]={showmsg:function(t,e){Object(o["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"71f6":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("ac6a"),n("456d");var o=n("b775");function r(t,e){t=t||{};var n=Object.keys(t);return n.forEach((function(n){var r=t[n];"string"===typeof r&&(r={url:r}),r.url="".concat(e).concat(r.url),t[n]=function(t){return Object(o["a"])(r,t)}})),t}},aa47:function(t,e,n){"use strict";
/**!
* Sortable 1.10.2
* @author RubaXa <trash@rubaxa.org>
......
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-52de3f88"],{"21f4":function(t,e,a){"use strict";var n=a("71f6"),r={getAuthEnterprise:"/auth-enterprise-list",getGroupList:"/department-list",getStoreList:"/store-list",getAuthDetail:"/enterprise-auth-detail",getAuditLog:"/enterprise-auth-audit-list",cancelAudit:{url:"/enterprise-auth-audit",method:"post",useFormData:!0,useIntercept:!1},getCheckName:"/gic-admin-frist",checkName:{url:"/gic-name-validate",method:"post",useFormData:!0,useIntercept:!1},getAuditLogDetail:"/enterprise-auth-audit-range-detail",getEnterprise:"/enterprise-search",getGicAdmin:"/gic-manage-list",postEnterpriseAuth:{url:"/enterprise-auth",method:"post",useFormData:!0,useIntercept:!1},getEnterpriseDetail:"/gic-enterprise-detail"};r=Object(n["a"])(r,"/hb-manage-web"),e["a"]=r},"29b6":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-wrap border-box"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,(function(e,n){return[e.path?[a("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[a("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]}))],2)],1)},r=[],o={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(t,e){var a=this;e?window.location.href=t:a.$router.push(t)}}},s=o,i=(a("6b4b"),a("2877")),l=Object(i["a"])(s,n,r,!1,null,"2c2a2724",null);e["a"]=l.exports},"56b3":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"my-customer-wrap common-set-wrap"},[n("nav-crumb",{attrs:{navpath:t.navpath}}),n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[n("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[n("div",{staticClass:"apps-content-right"},[n("div",{staticClass:"flex flex-space-between"},[n("div",{staticStyle:{width:"643px"}},[n("div",{staticClass:"el-alert el-alert--info flex flex-align-start",staticStyle:{width:"643px"},attrs:{role:"alert"}},[n("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),n("div",{staticClass:"el-alert__content"},[n("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("提示:授权的商户,需在同一个微信开放平台主体下;最多授权10个商户。 ")]),n("el-button",{attrs:{type:"text"},on:{click:t.openUrl}},[t._v("主体查询方法")])],1)])]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.changeRoute("/newAuthMerchant")}}},[t._v("新建GIC商户授权")])],1),n("div",{staticClass:"m-t-20"},[n("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{prop:"",label:"商户列表",width:"238"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"ul-li-cell flex"},[n("div",{staticClass:"cell-img"},[e.row.enterpriseLogo?n("img",{attrs:{src:e.row.enterpriseLogo,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})]),n("div",{staticClass:"cell-info"},[n("div",{staticClass:"cell-info-name flex font-14 color-303133"},[n("span",{staticClass:"gic-name"},[t._v(t._s(e.row.enterpriseName||"--"))]),n("span",{staticClass:"gic-version"},[t._v(t._s(e.row.version||"--"))])]),n("div",{staticClass:"cell-info-name flex font-14 color-303133"},[n("span",{staticClass:"gic-name"},[t._v(t._s(e.row.companyName||"--"))])])])])]}}])}),n("el-table-column",{attrs:{prop:"",label:"绑定门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.bindRange||"--")+"\n ")]}}])},[n("template",{slot:"header"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 绑定门店拥有门店资源管理权限。能查看数据,绑定导购账号,管理门店等\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("绑定门店")])])],1)],2),n("el-table-column",{attrs:{prop:"",label:"共享门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.shareRange||"--")+"\n ")]}}])},[n("template",{slot:"header"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 共享门店拥有门店资源查看权限。仅能授权查看数据,"),n("br"),t._v("如会员数据,任务数据等,但无法操作及进行导购账号绑定\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("共享门店")])])],1)],2),n("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.referStaffName||"--"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"授权时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),n("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),n("el-table-column",{attrs:{prop:"",label:"操作",width:"203"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("编辑授权设置")]),n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toAuditLog(e.$index,e.row)}}},[t._v("审核日志")])]}}])})],1)],1)])])])])],1)},r=[],o=a("29b6"),s=a("21f4"),i=s["a"].getAuthEnterprise,l={name:"AuthMerchant",components:{navCrumb:o["a"]},data:function(){return{navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",currentPage:1,pageSize:20,total:0,tableData:[]}},mounted:function(){var t=this;t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{toEdit:function(t,e){var a=this;a.changeRoute("/newAuthMerchant?enterpriseId=".concat(e.enterpriseId))},toAuditLog:function(t,e){var a=this;a.changeRoute("/auditLog?enterpriseId=".concat(e.enterpriseId))},openUrl:function(){window.open("https://developers.weixin.qq.com/community/develop/doc/00046610a9cbb0fd80f9a7dd354c09")},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},getTableList:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};i(e).then((function(e){t.tableData=e.result||[]})).catch((function(t){}))}}},c=l,u=(a("db61"),a("2877")),p=Object(u["a"])(c,n,r,!1,null,"b987aedc",null);e["default"]=p.exports},"6b4b":function(t,e,a){"use strict";var n=a("76d4"),r=a.n(n);r.a},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));a("ac6a"),a("456d");var n=a("b775");function r(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var r=t[a];"string"===typeof r&&(r={url:r}),r.url="".concat(e).concat(r.url),t[a]=function(t){return Object(n["a"])(r,t)}})),t}},"76d4":function(t,e,a){},db61:function(t,e,a){"use strict";var n=a("ef1f"),r=a.n(n);r.a},ef1f:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e0fbbb84"],{"21f4":function(t,e,a){"use strict";var n=a("71f6"),r={getAuthEnterprise:"/auth-enterprise-list",getGroupList:"/department-list",getStoreList:"/store-list",getAuthDetail:"/enterprise-auth-detail",getAuditLog:"/enterprise-auth-audit-list",cancelAudit:{url:"/enterprise-auth-audit",method:"post",useFormData:!0,useIntercept:!1},getCheckName:"/gic-admin-frist",checkName:{url:"/gic-name-validate",method:"post",useFormData:!0,useIntercept:!1},getAuditLogDetail:"/enterprise-auth-audit-range-detail",getEnterprise:"/enterprise-search",getGicAdmin:"/gic-manage-list",postEnterpriseAuth:{url:"/enterprise-auth",method:"post",useFormData:!0,useIntercept:!1},getEnterpriseDetail:"/gic-enterprise-detail"};r=Object(n["a"])(r,"/hb-manage-web"),e["a"]=r},"29b6":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-wrap border-box"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,(function(e,n){return[e.path?[a("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[a("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]}))],2)],1)},r=[],o={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(t,e){var a=this;e?window.location.href=t:a.$router.push(t)}}},s=o,i=(a("6b4b"),a("2877")),l=Object(i["a"])(s,n,r,!1,null,"2c2a2724",null);e["a"]=l.exports},"56b3":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"my-customer-wrap common-set-wrap"},[n("nav-crumb",{attrs:{navpath:t.navpath}}),n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[n("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[n("div",{staticClass:"apps-content-right"},[n("div",{staticClass:"flex flex-space-between"},[n("div",{staticStyle:{width:"643px"}},[n("div",{staticClass:"el-alert el-alert--info flex flex-align-start",staticStyle:{width:"643px"},attrs:{role:"alert"}},[n("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),n("div",{staticClass:"el-alert__content"},[n("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("提示:授权的商户,需在同一个微信开放平台主体下;最多授权10个商户。 ")]),n("el-button",{attrs:{type:"text"},on:{click:t.openUrl}},[t._v("主体查询方法")])],1)])]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.changeRoute("/newAuthMerchant")}}},[t._v("新建GIC商户授权")])],1),n("div",{staticClass:"m-t-20"},[n("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{prop:"",label:"商户列表",width:"238"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"ul-li-cell flex"},[n("div",{staticClass:"cell-img"},[e.row.enterpriseLogo?n("img",{attrs:{src:e.row.enterpriseLogo,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})]),n("div",{staticClass:"cell-info"},[n("div",{staticClass:"cell-info-name flex font-14 color-303133"},[n("span",{staticClass:"gic-name"},[t._v(t._s(e.row.enterpriseName||"--"))]),n("span",{staticClass:"gic-version"},[t._v(t._s(e.row.version||"--"))])]),n("div",{staticClass:"cell-info-name flex font-14 color-303133"},[n("span",{staticClass:"gic-name"},[t._v(t._s(e.row.companyName||"--"))])])])])]}}])}),n("el-table-column",{attrs:{prop:"",label:"绑定门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.bindRange||"--")+"\n ")]}}])},[n("template",{slot:"header"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 绑定门店拥有门店资源管理权限。能查看数据,绑定导购账号,管理门店等\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("绑定门店")])])],1)],2),n("el-table-column",{attrs:{prop:"",label:"共享门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.shareRange||"--")+"\n ")]}}])},[n("template",{slot:"header"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 共享门店拥有门店资源查看权限。仅能授权查看数据,"),n("br"),t._v("如会员数据,任务数据等,但无法操作及进行导购账号绑定\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("共享门店")])])],1)],2),n("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.referStaffName||"--"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"授权时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),n("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),n("el-table-column",{attrs:{prop:"",label:"操作",width:"203"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("编辑授权设置")]),n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toAuditLog(e.$index,e.row)}}},[t._v("审核日志")])]}}])})],1)],1)])])])])],1)},r=[],o=a("29b6"),s=a("21f4"),i=s["a"].getAuthEnterprise,l={name:"AuthMerchant",components:{navCrumb:o["a"]},data:function(){return{navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",currentPage:1,pageSize:20,total:0,tableData:[]}},mounted:function(){var t=this;t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{toEdit:function(t,e){var a=this;a.changeRoute("/newAuthMerchant?enterpriseId=".concat(e.enterpriseId))},toAuditLog:function(t,e){var a=this;a.changeRoute("/auditLog?enterpriseId=".concat(e.enterpriseId))},openUrl:function(){window.open("https://developers.weixin.qq.com/community/develop/doc/00046610a9cbb0fd80f9a7dd354c09")},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},getTableList:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};i(e).then((function(e){t.tableData=e.result||[]})).catch((function(t){}))}}},c=l,u=(a("db61"),a("2877")),p=Object(u["a"])(c,n,r,!1,null,"b987aedc",null);e["default"]=p.exports},"6b4b":function(t,e,a){"use strict";var n=a("76d4"),r=a.n(n);r.a},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));a("ac6a"),a("456d");var n=a("b775");function r(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var r=t[a];"string"===typeof r&&(r={url:r}),r.url="".concat(e).concat(r.url),t[a]=function(t){return Object(n["a"])(r,t)}})),t}},"76d4":function(t,e,a){},db61:function(t,e,a){"use strict";var n=a("ef1f"),r=a.n(n);r.a},ef1f:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e81c0d56"],{"21f4":function(e,t,r){"use strict";var n=r("71f6"),a={getAuthEnterprise:"/auth-enterprise-list",getGroupList:"/department-list",getStoreList:"/store-list",getAuthDetail:"/enterprise-auth-detail",getAuditLog:"/enterprise-auth-audit-list",cancelAudit:{url:"/enterprise-auth-audit",method:"post",useFormData:!0,useIntercept:!1},getCheckName:"/gic-admin-frist",checkName:{url:"/gic-name-validate",method:"post",useFormData:!0,useIntercept:!1},getAuditLogDetail:"/enterprise-auth-audit-range-detail",getEnterprise:"/enterprise-search",getGicAdmin:"/gic-manage-list",postEnterpriseAuth:{url:"/enterprise-auth",method:"post",useFormData:!0,useIntercept:!1},getEnterpriseDetail:"/gic-enterprise-detail"};a=Object(n["a"])(a,"/hb-manage-web"),t["a"]=a},"23e2":function(e,t,r){},"28a5":function(e,t,r){"use strict";var n=r("aae3"),a=r("cb7c"),s=r("ebd6"),i=r("0390"),c=r("9def"),o=r("5f1b"),u=r("520a"),l=r("79e5"),d=Math.min,p=[].push,f="split",h="length",g="lastIndex",m=4294967295,v=!l((function(){RegExp(m,"y")}));r("214f")("split",2,(function(e,t,r,l){var b;return b="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[h]||2!="ab"[f](/(?:ab)*/)[h]||4!="."[f](/(.?)(.?)/)[h]||"."[f](/()()/)[h]>1||""[f](/.?/)[h]?function(e,t){var a=String(this);if(void 0===e&&0===t)return[];if(!n(e))return r.call(a,e,t);var s,i,c,o=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,f=void 0===t?m:t>>>0,v=new RegExp(e.source,l+"g");while(s=u.call(v,a)){if(i=v[g],i>d&&(o.push(a.slice(d,s.index)),s[h]>1&&s.index<a[h]&&p.apply(o,s.slice(1)),c=s[0][h],d=i,o[h]>=f))break;v[g]===s.index&&v[g]++}return d===a[h]?!c&&v.test("")||o.push(""):o.push(a.slice(d)),o[h]>f?o.slice(0,f):o}:"0"[f](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,n){var a=e(this),s=void 0==r?void 0:r[t];return void 0!==s?s.call(r,a,n):b.call(String(a),r,n)},function(e,t){var n=l(b,e,this,t,b!==r);if(n.done)return n.value;var u=a(e),p=String(this),f=s(u,RegExp),h=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(v?"y":"g"),y=new f(v?u:"^(?:"+u.source+")",g),S=void 0===t?m:t>>>0;if(0===S)return[];if(0===p.length)return null===o(y,p)?[p]:[];var C=0,_=0,k=[];while(_<p.length){y.lastIndex=v?_:0;var I,x=o(y,v?p:p.slice(_));if(null===x||(I=d(c(y.lastIndex+(v?0:_)),p.length))===C)_=i(p,_,h);else{if(k.push(p.slice(C,_)),k.length===S)return k;for(var w=1;w<=x.length-1;w++)if(k.push(x[w]),k.length===S)return k;_=C=I}}return k.push(p.slice(C)),k}]}))},"29b6":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"nav-wrap border-box"},[r("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e._l(e.navpath,(function(t,n){return[t.path?[r("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:t.path}},on:{click:function(r){return e.changeRoute(t.path,t.relocation)}}},[r("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(r){return e.changeRoute(t.path,t.relocation)}}},[e._v("\n "+e._s(t.name)+"\n ")])])]:[r("el-breadcrumb-item",{key:"nav"+n},[e._v(e._s(t.name))])]]}))],2)],1)},a=[],s={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(e,t){var r=this;t?window.location.href=e:r.$router.push(e)}}},i=s,c=(r("6b4b"),r("2877")),o=Object(c["a"])(i,n,a,!1,null,"2c2a2724",null);t["a"]=o.exports},"2fdb":function(e,t,r){"use strict";var n=r("5ca1"),a=r("d2c8"),s="includes";n(n.P+n.F*r("51479")(s),"String",{includes:function(e){return!!~a(this,e,s).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},3081:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"common-alert-tip"},[r("div",{style:{"min-width":e.width}},[r("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:e.width},attrs:{role:"alert"}},[r("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),r("div",{staticClass:"el-alert__content"},[r("span",{staticClass:"el-alert__title color-606266 font-13"},[e._v("\n "+e._s(e.tipContent)+"\n ")]),e.tipTwoContent?r("div",{staticClass:"el-alert__title color-606266 font-13"},[e._v("\n "+e._s(e.tipTwoContent)+"\n ")]):e._e()])])])])},a=[],s={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""},tipTwoContent:{type:String,default:""}},data:function(){return{}}},i=s,c=r("2877"),o=Object(c["a"])(i,n,a,!1,null,"537f2e35",null);t["a"]=o.exports},"418e":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"daily-store-select"},[r("div",{staticClass:"font-12 color-909399"},[e._v("最多可选50家门店")]),r("div",{staticClass:"select-search"},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称/代码",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),r("div",{staticClass:"el-scrollbar define-search-select"},[r("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[r("el-checkbox-group",{attrs:{max:50},on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[r("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,(function(t){return r("li",{key:t.storeInfoId,class:["el-select-dropdown__item",t.select?"selected hover":""],on:{click:function(r){return r.stopPropagation(),e.toShowMsg(t)}}},[r("el-checkbox",{attrs:{disabled:1==t.bindFlag||1==t.auditFlag,label:t.storeInfoId}},[e._v(e._s(t.storeInfoName))]),1==t.bindFlag&&1!=t.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(t.bindWxEnterpriseName)+" 企业已授权")]):e._e(),1==t.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(t.bindWxEnterpriseName)+" 企业授权中")]):e._e()],1)})),e.stores.length?e._e():r("li",{staticClass:"text-center"},[r("span",[e._v("暂无数据")])])],2)])],1)])])},a=[],s=(r("6762"),r("2fdb"),r("ac6a"),r("d157")),i=r("21f4"),c=r("5b4e"),o=i["a"].getStoreList,u={name:"StoreAuthStore",props:{companyId:{type:String,default:""},storeType:{type:String,default:"1"},selectStore:{type:[Object,Array],default:function(){return{}}}},data:function(){return{checkAll:!1,isIndeterminate:!1,searchSelect:"",stores:[],storesCopy:[],dailyRuleForm:{stores:[]},pageNum:1,pageSize:300}},mounted:function(){var e=this;e.stores=[],e.storesCopy=[],e.companyId&&(e.pageNum=1,e.getStoreData()),e.selectStore.length?e.dailyRuleForm.stores=e.selectStore.map((function(e){return e.storeInfoId}))||[]:e.dailyRuleForm.stores=[]},methods:{toShowMsg:function(e){if(1==e.auditFlag)return c["a"].showmsg("".concat(e.bindWxEnterpriseName," 企业授权中,无法选择!"),"warning"),!1;1==e.bindFlag&&c["a"].showmsg("当前门店已被其他企业绑定,当前企业无法选择!","warning")},handleStoresChange:function(e){var t=this,r=[];t.storesCopy.forEach((function(t){e.includes(t.storeInfoId)&&r.push(t)})),t.$emit("checkStoreIds",JSON.parse(JSON.stringify(r)))},toInput:Object(s["a"])((function(e,t){var r=this;""!=r.searchSelect&&(r.stores=[],r.pageNum=1,r.getStoreData())}),500),clearSearch:function(){var e=this;e.stores=[],e.pageNum=1,e.getStoreData()},getStoreData:function(){var e=this,t={search:e.searchSelect,enterpriseId:e.companyId,type:e.storeType,pageNum:e.pageNum,pageSize:e.pageSize};o(t).then((function(t){1==e.pageNum?(e.stores=JSON.parse(JSON.stringify(t.result.result))||[],""===e.searchSelect&&(e.storesCopy=JSON.parse(JSON.stringify(t.result.result))||[])):t.result.result.forEach((function(t){e.stores.push(t),""===e.searchSelect&&e.storesCopy.push(t)})),e.pageNum*e.pageSize<t.result.totalCount&&(e.pageNum++,e.$nextTick((function(){e.getStoreData()})))})).catch((function(e){}))}},watch:{selectStore:function(e,t){var r=this;e.length?r.dailyRuleForm.stores=e.map((function(e){return e.storeInfoId}))||[]:r.dailyRuleForm.stores=[]},companyId:function(e){var t=this;e&&(t.pageNum=1,t.getStoreData())}}},l=u,d=(r("7620"),r("2877")),p=Object(d["a"])(l,n,a,!1,null,"2dd498c2",null);t["a"]=p.exports},51479:function(e,t,r){var n=r("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(a){}}return!0}},"5b4e":function(e,t,r){"use strict";var n=r("5c96");t["a"]={showmsg:function(e,t){Object(n["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},6762:function(e,t,r){"use strict";var n=r("5ca1"),a=r("c366")(!0);n(n.P,"Array",{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),r("9c6c")("includes")},"6b4b":function(e,t,r){"use strict";var n=r("76d4"),a=r.n(n);a.a},"71f6":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("ac6a"),r("456d");var n=r("b775");function a(e,t){e=e||{};var r=Object.keys(e);return r.forEach((function(r){var a=e[r];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[r]=function(e){return Object(n["a"])(a,e)}})),e}},7620:function(e,t,r){"use strict";var n=r("9c55"),a=r.n(n);a.a},"76d4":function(e,t,r){},"7ca9":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"bind-store-body"},[r("div",{staticClass:"select-search"},[r("el-input",{attrs:{placeholder:"请输入分组名称",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),r("div",{staticClass:"select-tree-wrap auth-select-tree m-t-20"},[r("el-tree",{ref:"groupTree",attrs:{"filter-node-method":e.filterNode,"check-strictly":"",data:e.groupData,"node-key":"storeGroupId","show-checkbox":"","default-expand-all":"",props:e.defaultProps,"expand-on-click-node":!1},on:{check:e.checkGroup},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.node,a=t.data;return r("span",{staticClass:"custom-tree-node",attrs:{id:a.storeGroupId},on:{click:function(t){return e.toShowMsg(n,a)}}},[r("span",{staticClass:"font-14 color-606266"},[e._v(e._s(n.label))]),1==a.bindFlag&&1!=a.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(a.bindWxEnterpriseName)+" 企业已授权")]):e._e(),1==a.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(a.bindWxEnterpriseName)+" 企业授权中")]):e._e()])}}])})],1)])},a=[],s=(r("96cf"),r("1da1")),i=(r("ac6a"),r("6762"),r("2fdb"),r("d157")),c=r("21f4"),o=r("5b4e"),u=c["a"].getGroupList,l={name:"StoreAuthGroup",props:{companyId:{type:String,default:""},storeType:{type:String,default:"1"},selectGroup:{type:[Object,Array],default:function(){return{}}}},data:function(){return{searchSelect:"",groupData:[],groupDataCopy:[],defaultProps:{children:"children",label:"storeGroupName"}}},mounted:function(){var e=this;e.companyId&&e.getGroup(),e.selectGroup.length?e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys(e.selectGroup.map((function(e){return e.storeGroupId})))})):e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys([])}))},methods:{toShowMsg:function(e,t){if(1==t.auditFlag)return o["a"].showmsg("".concat(t.bindWxEnterpriseName," 企业授权中,无法选择!"),"warning"),!1;1==t.bindFlag&&o["a"].showmsg("当前分组已被其他企业绑定,当前企业无法选择!","warning")},filterNode:function(e,t){return!e||!t.label||-1!==t.label.indexOf(e)},toInput:Object(i["a"])((function(e,t){var r=this;if(!r.groupDataCopy.length)return!1}),200),clearSearch:function(){return!1},checkGroup:function(e,t){var r=this;if(e.children){var n=document.getElementById(e.storeGroupId).previousElementSibling.children[0].className,a=r.$refs.groupTree.getNode(e.storeGroupId)?r.$refs.groupTree.getNode(e.storeGroupId).parent:"",s=t.checkedKeys.includes(e.storeGroupId);n.includes("is-checked")&&a&&a.data.bindFlag,s||document.getElementById(e.storeGroupId).previousElementSibling.children[0].children[0].setAttribute("style",""),r.$refs.groupTree.setChecked(e.storeGroupId,s,!0),e.children.forEach((function(e){r.$refs.groupTree.setChecked(e.storeGroupId,s,!0),e.disabled=!!s||!!e.bindFlag,e.children&&e.children.length&&r.checkChild(e,s)}))}var i=r.$refs.groupTree.getCheckedNodes();if(i.length){var c=[];i.forEach((function(e){e.disabled||c.push(e)})),r.$emit("checkGroupIds",c)}else r.$emit("checkGroupIds",[]);r.$nextTick((function(){var e=document.querySelectorAll(".el-checkbox__input");e&&e.length&&e.forEach((function(e){e.className.includes("is-checked")&&e.className.includes("is-disabled")&&e.children[0].setAttribute("style","")}))}))},checkChild:function(e,t){var r=this;e.children.forEach((function(e){r.$refs.groupTree.setChecked(e.storeGroupId,t,!0),e.disabled=!!t||!!e.bindFlag,e.children&&e.children.length&&r.checkChild(e,t)}))},treeData:function(e){var t=e.filter((function(t){var r=e.filter((function(e){return t.storeGroupId==e.parentId}));return r.length>0?(t.hasSonNode=!0,t.children=r):(t.children=[],t.hasSonNode=!1),0==t.parentId}));return t},setSelectCheck:function(){var e=this,t=e.selectGroup.map((function(e){return e.storeGroupId}));e.groupData.forEach((function(r){t.includes(r.storeGroupId)&&r.children.length&&e.checkChild(r,!0),t.includes(r.storeGroupId)||e.disableChild(r,t)}))},disableChild:function(e,t){var r=this;e.children.forEach((function(e){t.includes(e.storeGroupId)&&e.children.length&&r.checkChild(e,!0),!t.includes(e.storeGroupId)&&e.children.length&&r.disableChild(e,t)}))},getGroup:function(){var e=this,t={type:e.storeType,enterpriseId:e.companyId};u(t).then(function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r.result&&r.result.length&&r.result.forEach((function(e){e.expand=!1,e.children=[],e.disabled=1==e.bindFlag||1==e.auditFlag,e.label=e.storeGroupName})),t.next=3,e.treeData(JSON.parse(JSON.stringify(r.result)));case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0=[];case 6:e.groupData=t.t0,e.groupDataCopy=JSON.parse(JSON.stringify(r.result)),e.$nextTick((function(){e.setSelectCheck()}));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}},watch:{searchSelect:function(e){this.$refs.groupTree.filter(e)},selectGroup:function(e){var t=this;e.length?t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys(e.map((function(e){return e.storeGroupId})))})):t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys([])}))},companyId:function(e){var t=this;e&&t.getGroup()}}},d=l,p=(r("f3f2"),r("2877")),f=Object(p["a"])(d,n,a,!1,null,"c6d74b34",null);t["a"]=f.exports},"9c55":function(e,t,r){},d157:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return s}));r("c5f6"),r("a481"),r("28a5"),r("6b54");function n(e,t){var r,n=t||200;return function(){var t=this,a=arguments;r&&clearTimeout(r),r=setTimeout((function(){r=null,e.apply(t,a)}),n)}}function a(e,t){var r,n,a=t||200;return function(){var t=this,s=arguments,i=+new Date;r&&i-r<a?(clearTimeout(n),n=setTimeout((function(){r=i,e.apply(t,s)}),a)):(r=i,e.apply(t,s))}}function s(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}},d2c8:function(e,t,r){var n=r("aae3"),a=r("be13");e.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(a(e))}},f3f2:function(e,t,r){"use strict";var n=r("23e2"),a=r.n(n);a.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f4b91c90","chunk-b073f330"],{"0082":function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("ul",{staticClass:"role-menu"},[Array.isArray(e.roleList)&&0!=e.roleList.length?e._e():n("li",{staticClass:"no-data"},[e._v("暂无数据")]),e._l(e.roleList,(function(t){return n("li",{key:t,class:["role-item",{active:e.activeRoleId==t.roleId}],on:{click:function(n){return e.onChangeRole(t)}}},[n("span",{staticClass:"role-name"},[e._v(e._s(t.roleName))]),n("el-dropdown",{attrs:{placement:"bottom-start"}},[n("i",{staticClass:"iconfont icongengduo edit-icon"}),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(n){return e.onEditRole(t)}}},[e._v("编辑")]),e.showDelRoleButton?n("el-dropdown-item",{nativeOn:{click:function(n){return e.onDelRole(t)}}},[e._v("删除")]):e._e()],1)],1)],1)}))],2),n("el-dialog",{attrs:{visible:e.delRole.show,title:"删除角色",width:"600px"},on:{"update:visible":function(t){return e.$set(e.delRole,"show",t)},closed:e.onDelRoleClose}},[n("div",{staticClass:"del-role"},[n("i",{staticClass:"el-icon-warning"}),n("div",{staticClass:"del-role-content"},[n("p",{staticClass:"del-role-tip"},[e._v("确认删除“"+e._s(e.delRole.roleName)+"”角色吗?")]),n("p",{staticClass:"del-role-tip"},[e._v("请在输入框中输入该角色名称,以避免误操作。")]),n("el-input",{staticStyle:{"margin-top":"10px",width:"440px"},model:{value:e.delRole.roleNameInput,callback:function(t){e.$set(e.delRole,"roleNameInput","string"===typeof t?t.trim():t)},expression:"delRole.roleNameInput"}})],1)]),n("template",{slot:"footer"},[n("el-button",{on:{click:function(t){e.delRole.show=!1}}},[e._v("取消")]),n("el-button",{attrs:{type:"primary",loading:e.delRole.loading},on:{click:e.onDelRoleSure}},[e._v("确定")])],1)],2)],1)},i=[],a=(n("c5f6"),n("f286")),l=a["a"].delRole,r={name:"RoleList",props:{roleList:{type:Array,default:function(){return[]}},activeRoleId:[String,Number],showDelRoleButton:{type:Boolean,default:!1}},data:function(){return{delRole:{show:!1,loading:!1,roleId:"",roleName:"",roleNameInput:""}}},methods:{onChangeRole:function(e){this.$emit("change-role",e)},onEditRole:function(e){this.$emit("edit-role",e)},onDelRole:function(e){var t=e.roleId,n=e.roleName;Object.assign(this.delRole,{show:!0,roleId:t,roleName:n})},onDelRoleClose:function(){Object.assign(this.delRole,{roleId:"",roleName:"",roleNameInput:""})},onDelRoleSure:function(){var e=this,t=this.delRole,n=t.roleId,o=t.roleName,i=t.roleNameInput;return 0==i.length?this.$message.warning("请输入角色名称!"):o!=i?this.$message.warning("请输入正确的角色名称!"):(this.delRole.loading=!0,void l({roleId:n}).then((function(t){"0000"==t.code&&(e.$message.success("删除成功!"),e.$emit("del-role-succ",n==e.activeRoleId),e.delRole.show=!1)})).finally((function(){return e.delRole.loading=!1})))}}},s=r,c=(n("575f"),n("2877")),u=Object(c["a"])(s,o,i,!1,null,"7c337432",null);t["default"]=u.exports},"386d":function(e,t,n){"use strict";var o=n("cb7c"),i=n("83a1"),a=n("5f1b");n("214f")("search",1,(function(e,t,n,l){return[function(n){var o=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,o):new RegExp(n)[t](String(o))},function(e){var t=l(n,e,this);if(t.done)return t.value;var r=o(e),s=String(this),c=r.lastIndex;i(c,0)||(r.lastIndex=0);var u=a(r,s);return i(r.lastIndex,c)||(r.lastIndex=c),null===u?-1:u.index}]}))},"44e1":function(e,t,n){},"575f":function(e,t,n){"use strict";var o=n("44e1"),i=n.n(o);i.a},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("ac6a"),n("456d");var o=n("b775");function i(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var i=e[n];"string"===typeof i&&(i={url:i}),i.url="".concat(t).concat(i.url),e[n]=function(e){return Object(o["a"])(i,e)}})),e}},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},b6fa:function(e,t,n){"use strict";var o=n("e2aa"),i=n.n(o);i.a},db80:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"admin"},[n("div",{staticClass:"role-list"},[n("div",{staticClass:"add-role"},[n("el-button",{on:{click:function(t){return e.onEditRole()}}},[n("i",{staticClass:"iconfont icontianjiajiahaowubiankuang"}),e._v(" 新建管理角色")])],1),n("role-list",{attrs:{"role-list":e.roleList,"active-role-id":e.activeRoleId,"show-del-role-button":""},on:{"del-role-succ":e.onDelRoleSucc,"edit-role":e.onEditRole,"change-role":e.onChangeRole}})],1),n("div",{staticClass:"admin-list"},[n("h3",{staticClass:"admin-list-title"},[e._v("管理员列表")]),n("el-input",{staticStyle:{width:"277px"},attrs:{placeholder:"请输入姓名/账号/手机号码","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search,callback:function(t){e.search="string"===typeof t?t.trim():t},expression:"search"}}),n("el-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:e.toEditAdmin}},[e._v("添加管理员")]),n("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.adminList}},[n("el-table-column",{attrs:{label:"姓名",prop:"staffName",formatter:function(e,t,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"账号",prop:"wxUserId",formatter:function(e,t,n){return n||"--"},"show-overflow-tooltip":""}}),n("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber",formatter:function(e,t,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.toEditAdmin(o)}}},[e._v("管辖范围")]),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.onDelAdmin(o)}}},[e._v("删除")])]}}])})],1),e.pager.total>0?n("dm-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"size-change":e.onSizeChange,"current-change":e.onCurrentChange}}):e._e()],1)])},i=[],a=(n("386d"),n("0082")),l=n("f286"),r=l["a"].roleList,s=l["a"].roleAdminList,c=l["a"].delAdmin,u={name:"AdminList",components:{RoleList:a["default"]},data:function(){return{activeRoleId:"",roleList:[],search:"",pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1},adminList:[]}},created:function(){this.$emit("showTab","/admin-list"),this.getRoleList()},methods:{getRoleList:function(){var e=this;r({roleType:2}).then((function(t){e.roleList=t.result||[],e.roleList.length>0&&!e.activeRoleId&&(e.activeRoleId=e.roleList[0].roleId,e.getAdminList())}))},onEditRole:function(e){var t=e||{},n=t.roleId;this.$router.push("/edit-role".concat(n?"?roleId=".concat(n):""))},onChangeRole:function(e){this.activeRoleId=e.roleId,this.getAdminList()},onDelRoleSucc:function(e){e&&(this.activeRoleId=""),this.getRoleList()},getAdminList:function(){var e=this,t=this.pager,n=t.currentPage,o=t.pageSize,i={roleId:this.activeRoleId,search:this.search,pageNum:n,pageSize:o};s(i).then((function(t){var n=t.result||{},o=n.totalCount,i=n.result;e.pager.total=o,e.adminList=i||[]}))},onSearch:function(){this.pager.currentPage=1,this.getAdminList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},onCurrentChange:function(e){this.pager.currentPage=e,this.getAdminList()},toEditAdmin:function(e){var t=e||{},n=t.staffId,o=t.staffName;this.$router.push("/edit-admin?roleId=".concat(this.activeRoleId).concat(o?"&staffName=".concat(o):"").concat(n?"&staffId=".concat(n):""))},onDelAdmin:function(e){var t=this,n=e.staffName,o=e.staffId;this.$confirm("确定删除【 ".concat(n," 】吗?"),"提示",{type:"warning"}).then((function(){var e={staffId:o,roleId:t.activeRoleId};c(e).then((function(e){"0000"==e.code&&(t.$message.success("删除成功!"),t.pager.currentPage>1&&1==t.adminList.length&&t.pager.currentPage--,t.getAdminList())}))}))}}},d=u,f=(n("b6fa"),n("2877")),p=Object(f["a"])(d,o,i,!1,null,"2e313758",null);t["default"]=p.exports},e2aa:function(e,t,n){},f286:function(e,t,n){"use strict";var o=n("71f6"),i={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list",findAppSetting:"/find-application-setting",saveAppSetting:{url:"/save-application-setting",method:"post",useFormData:!0},findStoreRange:"/find-store-range",saveStoreRange:"/save-store-range"};t["a"]=Object(o["a"])(i,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fb47ac00"],{"23fa":function(e,t,r){},"3e97":function(e,t,r){"use strict";var a=r("23fa"),n=r.n(a);n.a},"4bb1":function(e,t,r){},"4dbe":function(e,t,r){"use strict";var a=r("e6f1"),n=r.n(a);n.a},"4f7f":function(e,t,r){"use strict";var a=r("c26b"),n=r("b39a"),s="Set";e.exports=r("e0b8")(s,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return a.def(n(this,s),e=0===e?0:e,e)}},a)},"52b2":function(e,t,r){},"67ab":function(e,t,r){var a=r("ca5a")("meta"),n=r("d3f4"),s=r("69a8"),i=r("86cc").f,o=0,l=Object.isExtensible||function(){return!0},c=!r("79e5")((function(){return l(Object.preventExtensions({}))})),d=function(e){i(e,a,{value:{i:"O"+ ++o,w:{}}})},u=function(e,t){if(!n(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,a)){if(!l(e))return"F";if(!t)return"E";d(e)}return e[a].i},f=function(e,t){if(!s(e,a)){if(!l(e))return!0;if(!t)return!1;d(e)}return e[a].w},h=function(e){return c&&p.NEED&&l(e)&&!s(e,a)&&d(e),e},p=e.exports={KEY:a,NEED:!1,fastKey:u,getWeak:f,onFreeze:h}},"6af5":function(e,t,r){"use strict";var a=r("4bb1"),n=r.n(a);n.a},"780a":function(e,t,r){},"798c":function(e,t,r){"use strict";var a=r("52b2"),n=r.n(a);n.a},"7dc6":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"my-customer-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),r("div",{staticClass:"right-content"},[r("div",{staticClass:"apps-content-right border-box"},[r("el-form",{ref:"adminForm",attrs:{model:e.adminForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"管理员",prop:"adminList"}},[e.$route.query.staffId?r("div",[e._v(e._s(e.adminName||"--"))]):e._e(),e.$route.query.staffId?e._e():r("div",{staticClass:"admin-list-wrap"},[r("div",{staticClass:"el-select store-item-content admin-select",on:{click:e.showAdmin}},[e.adminForm.adminList.length?r("div",{staticClass:"el-select__tags"},[r("span",{staticStyle:{display:"block"}},[e._l(e.adminForm.adminList,(function(t,a){return[r("span",{key:a+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.levelName||"--"))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){return t.stopPropagation(),e.delAdmin(a,e.adminForm.adminList)}}})])]}))],2)]):e._e(),e.adminForm.adminList.length?e._e():r("div",{staticClass:"add-admin-btn font-14 color-606266 cursor-pointer",on:{click:e.showAdmin}},[r("span",{staticClass:"iconfont icontianjiajiahaowubiankuang font-12"}),r("span",{staticClass:"p-l-10"},[e._v("添加")])])])])]),r("el-form-item",{attrs:{label:"资源范围",prop:"enterpriseList"}},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"商户名称",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.enterpriseName||"--")+"\n ")]}}])}),r("el-table-column",{attrs:{label:"授权范围"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-radio",{attrs:{label:"1"},model:{value:t.row.radio,callback:function(r){e.$set(t.row,"radio",r)},expression:"scope.row.radio"}},[e._v("授权")]),1==t.row.radio?r("div",{staticClass:"el-select store-item-content",on:{click:function(r){return e.showAuth(t.$index,t.row)}}},[t.row.bindStoreMode>0?r("div",{staticClass:"el-select__tags"},[r("span",{staticStyle:{display:"block"}},[e._l(t.row.bindRange,(function(a,n){return[r("span",{key:n+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(a.storeInfoName||a.storeGroupName))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(r){return r.stopPropagation(),e.delAuth(n,t.row.bindRange)}}})])]}))],2)]):e._e(),0==t.row.bindStoreMode&&""!==t.row.bindStoreMode?r("span",{staticClass:"p-l-10 font-14 color-909399"},[e._v("已选全部")]):e._e()]):e._e(),r("el-radio",{staticClass:"m-l-10",attrs:{label:"2"},model:{value:t.row.radio,callback:function(r){e.$set(t.row,"radio",r)},expression:"scope.row.radio"}},[e._v("不授权")])]}}])})],1)],1),r("el-form-item",{staticClass:"m-t-20",attrs:{prop:""}},[r("el-button",{attrs:{type:"primary",loading:e.loadBtn},on:{click:function(t){return e.saveAdmin("adminForm")}}},[e._v("确认"+e._s(e.$route.query.staffId?"编辑":"新建"))])],1)],1)],1)]),r("select-admin",{attrs:{"show-admin-flag":e.showAdminFlag,"select-admin":e.adminForm.adminList},on:{checkAdmins:e.checkAdmins}}),r("select-admin-store",{attrs:{"show-auth-flag":e.showAuthFlag,"enterprise-id":e.enterpriseId,"select-mode":e.selectMode,"range-data":e.rangeData,"bind-type":2},on:{closeSet:e.closeSet}})],1)},n=[],s=(r("ac6a"),r("29b6")),i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{width:"418px",title:"添加管理员",visible:e.setVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.setVisible=t}}},[r("div",{staticClass:"bind-store-body"},[r("div",{staticClass:"font-14 color-606266"},[e._v("已选择 "),r("span",{staticClass:"color-303133"},[e._v(e._s(e.totalNum||"0"))]),e._v(" 人")]),r("div",{staticClass:"select-search m-t-10"},[r("el-input",{attrs:{placeholder:"请输入成员名称",maxlength:"50",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),r("div",{staticClass:"select-tree-wrap auth-select-tree m-t-20"},[r("el-tree",{directives:[{name:"show",rawName:"v-show",value:""==e.searchSelect,expression:"searchSelect == ''"}],ref:"groupTree",attrs:{load:e.loadNode,lazy:"",data:e.groupData,props:e.defaultProps},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,n=t.data;return r("span",{staticClass:"custom-tree-node"},[r("span",[1==n.levelType?r("el-checkbox",{attrs:{disabled:1==n.bindFlag},on:{change:function(t){return e.changeItem(t,n)}},model:{value:n.checked,callback:function(t){e.$set(n,"checked",t)},expression:"data.checked"}}):e._e(),r("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v(e._s(a.label))])],1),1==n.bindFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("已选中")]):e._e()])}}])}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.searchSelect,expression:"searchSelect"}],staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[r("el-checkbox-group",{attrs:{max:50},on:{change:e.handleStoresChange},model:{value:e.checkedList,callback:function(t){e.checkedList=t},expression:"checkedList"}},[r("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.searchList,(function(t){return r("li",{key:t.staffId,class:["el-select-dropdown__item flex flex-space-between",t.select?"selected hover":""]},[r("el-checkbox",{attrs:{disabled:1==t.bindFlag,label:t.staffId}},[e._v(e._s(t.staffName))]),1==t.bindFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("已选中")]):e._e()],1)})),e.searchList.length?e._e():r("li",{staticClass:"text-center"},[r("span",[e._v("暂无数据")])])],2)])],1)],1)]),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.cancel}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])},o=[];r("6762"),r("2fdb"),r("5df3"),r("4f7f");function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function c(e){if(Array.isArray(e))return l(e)}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function u(e,t){if(e){if("string"===typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function f(){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 h(e){return c(e)||d(e)||u(e)||f()}r("96cf");var p=r("1da1"),m=r("d157"),g=r("71f6"),b={getAdminList:"/level-list",getSearchAdminList:"/staff-search",getRoleRange:"/role-range",addAdmin:{url:"/role-range-save",method:"post",useFormData:!0,useIntercept:!1}};b=Object(g["a"])(b,"/hb-manage-web");var v=b,S=r("5b4e"),y=v.getAdminList,_=v.getSearchAdminList,k={name:"SelectAdmin",props:{showAdminFlag:{type:Boolean,default:!1},selectAdmin:{type:[Object,Array],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",searchSelect:"",groupData:[],groupDataCopy:[],setVisible:!1,defaultProps:{children:"children",label:"label",isLeaf:"leaf"},totalNum:"0",totalIds:[],searchList:[],checkedList:[],checkedPeople:[],totalArr:[]}},mounted:function(){var e=this;if(e.totalNum=e.selectAdmin.length,e.totalIds=e.selectAdmin.map((function(e){return e.levelId}))||[],e.checkedList=e.selectAdmin.map((function(e){return e.levelId}))||[],e.setVisible=e.showAdminFlag,e.totalArr=JSON.parse(JSON.stringify(e.selectAdmin))||[],e.$route.query.staffId)return!1;e.getStaff()},methods:{changeItem:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t,r){var a,n,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=this,!t&&a.checkedList.indexOf(r.levelId)&&a.checkedList.splice(a.checkedList.indexOf(r.levelId),1),a.checkedPeople=[],e.next=5,a.getCheckData();case 5:return a.totalIds=h(new Set([].concat(h(a.checkedList),h(a.checkedPeople.map((function(e){return e.levelId}))))))||[],a.checkedList=h(new Set([].concat(h(a.checkedList),h(a.checkedPeople.map((function(e){return e.levelId}))))))||[],n=JSON.parse(JSON.stringify(a.totalArr)),n=n.concat(a.checkedPeople),e.next=11,a.delDubbleData(n);case 11:t||-1==a.totalArr.map((function(e){return e.levelId})).indexOf(r.levelId)||(s=[],a.totalArr.forEach((function(e){e.levelId!=r.levelId&&s.push(e)})),a.totalArr=JSON.parse(JSON.stringify(s))),a.totalNum=a.totalArr.length;case 13:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),delDubbleData:function(e){var t=this,r={};e=e.reduce((function(e,t){return!r[t.levelId]&&(r[t.levelId]=e.push(t)),e}),[]),t.totalArr=JSON.parse(JSON.stringify(e))},handleClose:function(e){var t=this;e(),t.$emit("checkAdmins","close")},cancel:function(){var e=this;e.$emit("checkAdmins","close")},submitForm:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this,t.totalArr.length){e.next=4;break}return S["a"].showmsg("请选择管理员","warning"),e.abrupt("return",!1);case 4:t.$emit("checkAdmins",JSON.parse(JSON.stringify(t.totalArr)));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleStoresChange:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t){var r,a,n,s,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this,a=[],r.searchList.forEach((function(e){t.includes(e.levelId)&&a.push(e)})),r.totalNum=t.length,r.totalIds=t,n=JSON.parse(JSON.stringify(r.totalArr)),n=n.concat(a),e.next=9,r.delDubbleData(n);case 9:s=0;case 10:if(!(s<r.groupData.length)){e.next=19;break}if(i=r.groupData[s],t.includes(i.levelId)?i.checked=!0:i.checked=!1,!i.children||!i.children.length){e.next=16;break}return e.next=16,r.setChildCheck(i,t);case 16:s++,e.next=10;break;case 19:return r.checkedPeople=[],e.next=22,r.getCheckData();case 22:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setChildCheck:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t,r){var a,n,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=this,n=0;case 2:if(!(n<t.children.length)){e.next=11;break}if(s=t.children[n],r.includes(s.levelId)?s.checked=!0:s.checked=!1,!s.children||!s.children.length){e.next=8;break}return e.next=8,a.setChildCheck(s,r);case 8:n++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),getCheckData:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(){var t,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this,r=0;case 2:if(!(r<t.groupData.length)){e.next=11;break}if(a=t.groupData[r],a.checked&&t.checkedPeople.push(a),!a.children||!a.children.length){e.next=8;break}return e.next=8,t.getChildCheck(a.children);case 8:r++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getChildCheck:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t){var r,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=this,a=0;case 2:if(!(a<t.length)){e.next=11;break}if(n=t[a],n.checked&&r.checkedPeople.push(n),!n.children||!n.children.length){e.next=8;break}return e.next=8,r.getChildCheck(n.children);case 8:a++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),loadNode:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t,r){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this,!a.$route.query.staffId){e.next=3;break}return e.abrupt("return",!1);case 3:if(0!==t.level){e.next=7;break}return e.abrupt("return",r(a.getStaff()));case 7:return e.next=9,a.getStaff(t,t.data,r);case 9:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),getSearchData:function(e){var t=this,r={staffName:e,wxEnterpriseId:t.wxEnterpriseId};_(r).then((function(e){e.result&&e.result.length&&e.result.forEach((function(e){e.levelId=e.staffId,e.levelName=e.staffName})),t.searchList=e.result||[]})).catch((function(e){}))},toInput:Object(m["a"])((function(e,t){var r=this;if(""==String(r.searchSelect).trim())return!1;r.getSearchData(r.searchSelect)}),200),clearSearch:function(){return!1},getStaff:function(e,t,r){var a=this,n={departmentId:t?t.levelId:"",wxEnterpriseId:a.wxEnterpriseId};y(n).then((function(n){if(n.result&&n.result.length&&n.result.forEach((function(e){e.children=[],e.checked=!!a.totalIds.includes(e.levelId),e.label=e.levelName,e.leaf=1==e.levelType})),e)return r(n.result),t.children||a.$set(t,"children",[]),t.children=n.result||[],a.$forceUpdate(),!1;a.groupData=n.result||[]})).catch((function(e){}))},setSelectData:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t){var r,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=this,a=0;case 2:if(!(a<r.groupData.length)){e.next=11;break}if(n=r.groupData[a],t.includes(n.levelId)?n.checked=!0:n.checked=!1,!n.children||!n.children.length){e.next=8;break}return e.next=8,r.setChildCheck(n,t);case 8:a++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},watch:{showAdminFlag:function(e){this.setVisible=e},selectAdmin:function(e){var t=this;t.totalNum=e.length,t.totalIds=e.map((function(e){return e.levelId}))||[],t.checkedList=e.map((function(e){return e.levelId}))||[],t.totalArr=JSON.parse(JSON.stringify(e))||[],t.setSelectData(t.checkedList)}}},w=k,I=(r("cd65"),r("2877")),x=Object(I["a"])(w,i,o,!1,null,"0e52bdc3",null),D=x.exports,C=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{class:["store-auth-range",e.visibleFlag?"show-range":"hide-range"]},[r("div",{staticClass:"common-mask cursor-pointer",on:{click:function(t){return t.stopPropagation(),e.handleClose(t)}}}),r("div",{staticClass:"bind-body border-box"},[r("div",{staticClass:"auth-range-title font-18 color-303133 m-b-20"},[e._v("门店管辖范围")]),r("common-alert-tip",{attrs:{width:"100%","tip-content":e.tipContent}}),r("div",{staticClass:"el-form-item el-form-item--large m-t-20"},[r("label",{staticClass:"el-form-item__label",staticStyle:{width:"143px"},attrs:{for:"name"}},[e._v("\n 门店绑定授权范围\n ")]),r("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"143px"}},[r("el-radio",{attrs:{label:0,disabled:""},model:{value:e.bindFormData.bindStoreMode,callback:function(t){e.$set(e.bindFormData,"bindStoreMode",t)},expression:"bindFormData.bindStoreMode"}},[e._v("所有门店")]),r("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:1,disabled:""},model:{value:e.bindFormData.bindStoreMode,callback:function(t){e.$set(e.bindFormData,"bindStoreMode",t)},expression:"bindFormData.bindStoreMode"}},[e._v("选择分组")]),r("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:2,disabled:""},model:{value:e.bindFormData.bindStoreMode,callback:function(t){e.$set(e.bindFormData,"bindStoreMode",t)},expression:"bindFormData.bindStoreMode"}},[e._v("选择门店")]),"1"==e.bindFormData.bindStoreMode?r("store-auth-group-dis",{attrs:{"company-id":e.selectEnterpriseId,"store-type":1,"select-group":1==e.bindFormData.bindStoreMode?e.bindFormData.bindRange:[]}}):e._e(),"2"==e.bindFormData.bindStoreMode?r("store-auth-store-dis",{attrs:{"company-id":e.selectEnterpriseId,"store-type":1,"select-store":2==e.bindFormData.bindStoreMode?e.bindFormData.bindRange:[]}}):e._e()],1)]),r("div",{staticClass:"el-form-item el-form-item--large"},[r("label",{staticClass:"el-form-item__label",staticStyle:{width:"143px"},attrs:{for:"name"}},[e._v("\n 门店共享授权范围\n ")]),r("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"143px"}},[r("el-radio",{attrs:{label:0,disabled:""},model:{value:e.bindFormData.shareStoreMode,callback:function(t){e.$set(e.bindFormData,"shareStoreMode",t)},expression:"bindFormData.shareStoreMode"}},[e._v("所有门店")]),r("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:1,disabled:""},model:{value:e.bindFormData.shareStoreMode,callback:function(t){e.$set(e.bindFormData,"shareStoreMode",t)},expression:"bindFormData.shareStoreMode"}},[e._v("选择分组")]),r("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:2,disabled:""},model:{value:e.bindFormData.shareStoreMode,callback:function(t){e.$set(e.bindFormData,"shareStoreMode",t)},expression:"bindFormData.shareStoreMode"}},[e._v("选择门店")]),"1"==e.bindFormData.shareStoreMode?r("store-auth-group-dis",{attrs:{"company-id":e.selectEnterpriseId,"store-type":2,"select-group":1==e.bindFormData.shareStoreMode?e.bindFormData.shareRange:[]}}):e._e(),"2"==e.bindFormData.shareStoreMode?r("store-auth-store-dis",{attrs:{"company-id":e.selectEnterpriseId,"store-type":2,"select-store":2==e.bindFormData.shareStoreMode?e.bindFormData.shareRange:[]}}):e._e()],1)]),r("div",{staticClass:"el-form-item el-form-item--large"},[r("label",{staticClass:"el-form-item__label",staticStyle:{width:"143px"},attrs:{for:"name"}},[e._v("\n 管理员管辖范围\n ")]),r("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"143px"}},[r("el-radio",{attrs:{label:"0"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("所有门店")]),r("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"1"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("选择分组")]),r("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"2"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("选择门店")]),("1"!=e.formData.sendRange&&"2"!=e.formData.sendRange||e.formData.selectList.length)&&"null"!=String(e.formData.sendRange)&&""!==e.formData.sendRange?e._e():r("div",{staticClass:"el-form-item__error"},[e._v("请选择绑定门店")]),"1"==e.formData.sendRange?r("store-auth-group",{attrs:{"company-id":e.selectEnterpriseId,"store-type":2,"select-group":e.selectGroupData},on:{checkGroupIds:e.checkGroupIds}}):e._e(),"2"==e.formData.sendRange?r("store-auth-store",{attrs:{"company-id":e.selectEnterpriseId,"store-type":2,"select-store":e.selectStoreData},on:{checkStoreIds:e.checkStoreIds}}):e._e()],1)]),r("div",{staticClass:"el-form-item el-form-item--large"},[r("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"143px"}},[r("el-button",{on:{click:e.cancel}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])],1)])},N=[],R=(r("c5f6"),function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"bind-store-body"},[r("div",{staticClass:"select-search"},[r("el-input",{attrs:{placeholder:"请输入分组名称",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),r("div",{staticClass:"select-tree-wrap auth-select-tree m-t-20"},[r("el-tree",{ref:"groupTree",attrs:{"filter-node-method":e.filterNode,"check-strictly":"",data:e.groupData,"node-key":"storeGroupId","show-checkbox":"","default-expand-all":"",props:e.defaultProps,"expand-on-click-node":!1},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,n=t.data;return r("span",{staticClass:"custom-tree-node",attrs:{id:n.storeGroupId}},[r("span",{staticClass:"font-14 color-606266"},[e._v(e._s(a.label))]),1==n.bindFlag&&1!=n.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(n.bindWxEnterpriseName)+" 企业已授权")]):e._e(),1==n.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(n.bindWxEnterpriseName)+" 企业授权中")]):e._e()])}}])})],1)])}),F=[],O=r("21f4"),A=O["a"].getGroupList,E={name:"StoreAuthGroupPage",props:{companyId:{type:String,default:""},storeType:{type:String,default:"1"},selectGroup:{type:[Object,Array],default:function(){return{}}}},data:function(){return{searchSelect:"",groupData:[],groupDataCopy:[],defaultProps:{children:"children",label:"storeGroupName"}}},mounted:function(){var e=this;e.companyId&&e.getGroup(),e.selectGroup.length?e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys(e.selectGroup.map((function(e){return e.storeGroupId})))})):e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys([])}))},methods:{filterNode:function(e,t){return!e||!t.label||-1!==t.label.indexOf(e)},toInput:Object(m["a"])((function(e,t){var r=this;if(!r.groupDataCopy.length)return!1}),200),clearSearch:function(){return!1},checkChild:function(e,t){var r=this;e.children.forEach((function(e){r.$refs.groupTree.setChecked(e.storeGroupId,t,!0),e.disabled=!0,e.children&&e.children.length&&r.checkChild(e,t)}))},treeData:function(e){var t=e.filter((function(t){var r=e.filter((function(e){return t.storeGroupId==e.parentId}));return r.length>0?(t.hasSonNode=!0,t.children=r):(t.children=[],t.hasSonNode=!1),0==t.parentId}));return t},setSelectCheck:function(){var e=this,t=e.selectGroup.map((function(e){return e.storeGroupId}));e.groupData.forEach((function(r){r.disabled=!0,t.includes(r.storeGroupId)&&r.children.length&&e.checkChild(r,!0),t.includes(r.storeGroupId)||e.disableChild(r,t)}))},disableChild:function(e,t){var r=this;e.children.forEach((function(e){e.disabled=!0,t.includes(e.storeGroupId)&&e.children.length&&r.checkChild(e,!0),!t.includes(e.storeGroupId)&&e.children.length&&r.disableChild(e,t)}))},getGroup:function(){var e=this,t={type:e.storeType,enterpriseId:e.companyId};A(t).then(function(){var t=Object(p["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r.result&&r.result.length&&r.result.forEach((function(e){e.expand=!1,e.children=[],e.disabled=!1,e.label=e.storeGroupName})),t.next=3,e.treeData(JSON.parse(JSON.stringify(r.result)));case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0=[];case 6:e.groupData=t.t0,e.groupDataCopy=JSON.parse(JSON.stringify(r.result)),e.$nextTick((function(){e.setSelectCheck()}));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}},watch:{searchSelect:function(e){this.$refs.groupTree.filter(e)},selectGroup:function(e){var t=this;e.length?t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys(e.map((function(e){return e.storeGroupId})))})):t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys([])}))},companyId:function(e){var t=this;e&&t.getGroup()}}},$=E,M=(r("798c"),Object(I["a"])($,R,F,!1,null,"0bd6b018",null)),J=M.exports,L=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"daily-store-select"},[r("div",{staticClass:"select-search"},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称/代码",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),r("div",{staticClass:"el-scrollbar define-search-select"},[r("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[r("el-checkbox-group",{attrs:{max:50},on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[r("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,(function(t){return r("li",{key:t.storeInfoId,class:["el-select-dropdown__item",t.select?"selected hover":""],on:{click:function(r){return r.stopPropagation(),e.toShowMsg(t)}}},[r("el-checkbox",{attrs:{disabled:"",label:t.storeInfoId}},[e._v(e._s(t.storeInfoName))]),1==t.bindFlag&&1!=t.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(t.bindWxEnterpriseName)+" 企业已授权")]):e._e(),1==t.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(t.bindWxEnterpriseName)+" 企业授权中")]):e._e()],1)})),e.stores.length?e._e():r("li",{staticClass:"text-center"},[r("span",[e._v("暂无数据")])])],2)])],1)])])},G=[],j=O["a"].getStoreList,T={name:"StoreAuthStore",props:{companyId:{type:String,default:""},storeType:{type:String,default:"1"},selectStore:{type:[Object,Array],default:function(){return{}}}},data:function(){return{checkAll:!1,isIndeterminate:!1,searchSelect:"",stores:[],storesCopy:[],dailyRuleForm:{stores:[]},pageNum:1,pageSize:300}},mounted:function(){var e=this;e.stores=[],e.storesCopy=[],e.companyId&&(e.pageNum=1,e.getStoreData()),e.selectStore.length?e.dailyRuleForm.stores=e.selectStore.map((function(e){return e.storeInfoId}))||[]:e.dailyRuleForm.stores=[]},methods:{toShowMsg:function(e){1==e.bindFlag&&S["a"].showmsg("当前门店已被其他企业绑定,当前企业无法选择!","warning")},handleStoresChange:function(e){var t=this,r=[];t.stores.forEach((function(t){e.includes(t.storeInfoId)&&r.push(t)})),t.$emit("checkStoreIds",JSON.parse(JSON.stringify(r)))},toInput:Object(m["a"])((function(e,t){var r=this;""!=r.searchSelect&&(r.stores=[],r.pageNum=1,r.getStoreData())}),500),clearSearch:function(){var e=this;e.stores=[],e.pageNum=1,e.getStoreData()},getStoreData:function(){var e=this,t={search:e.searchSelect,enterpriseId:e.companyId,type:e.storeType,pageNum:e.pageNum,pageSize:e.pageSize};j(t).then((function(t){1==e.pageNum?(e.stores=JSON.parse(JSON.stringify(t.result.result))||[],e.storesCopy=JSON.parse(JSON.stringify(t.result.result))||[]):t.result.result.forEach((function(t){e.stores.push(t),e.storesCopy.push(t)})),e.pageNum*e.pageSize<t.result.totalCount&&(e.pageNum++,e.$nextTick((function(){e.getStoreData()})))})).catch((function(e){}))}},watch:{selectStore:function(e,t){var r=this;e.length?r.dailyRuleForm.stores=e.map((function(e){return e.storeInfoId}))||[]:r.dailyRuleForm.stores=[]},companyId:function(e){var t=this;e&&(t.pageNum=1,t.getStoreData())}}},q=T,P=(r("3e97"),Object(I["a"])(q,L,G,!1,null,"67a6c45b",null)),B=P.exports,z=r("7ca9"),U=r("418e"),K=r("3081"),W=O["a"].getAuthDetail,V={name:"SelectAdminStore",components:{storeAuthGroup:z["a"],storeAuthStore:U["a"],storeAuthGroupDis:J,storeAuthStoreDis:B,commonAlertTip:K["a"]},props:{showAuthFlag:{type:Boolean,default:!1},enterpriseId:{type:String,default:""},bindType:{type:[String,Number],default:"2"},selectMode:{type:[String,Number],default:""},rangeData:{type:[Object,Array],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tipContent:"管理范围是根据门店绑定与门店共享选择范围的并集。即选择门店绑定的范围拥有管理权限,门店共享和门店绑定范围的并集拥有查看权限",visibleFlag:!1,bindFormData:{},formData:{sendRange:this.selectMode||"",selectList:[]},selectEnterpriseId:this.enterpriseId,selectGroupData:[],selectStoreData:[]}},mounted:function(){var e=this;e.selectEnterpriseId=e.enterpriseId,e.visibleFlag=e.showAuthFlag,e.formData.sendRange="null"==String(e.selectMode)?"":String(e.selectMode),e.selectGroupData=1==e.selectMode?JSON.parse(JSON.stringify(e.rangeData)):[],e.selectStoreData=2==e.selectMode?JSON.parse(JSON.stringify(e.rangeData)):[],e.formData.selectList=JSON.parse(JSON.stringify(e.rangeData))||[],e.enterpriseId&&e.getData()},methods:{getData:function(){var e=this,t={enterpriseId:e.enterpriseId,wxEnterpriseId:e.wxEnterpriseId};W(t).then((function(t){t.result.bindRange?t.result.bindRange=JSON.parse(t.result.bindRange):t.result.bindRange=[],t.result.shareRange?t.result.shareRange=JSON.parse(t.result.shareRange):t.result.shareRange=[],e.bindFormData=t.result||{}})).catch((function(e){}))},changeRange:function(e){var t=this;t.formData.sendRange=e,t.formData.selectList=[]},handleClose:function(){var e=this;e.$emit("closeSet","close"),e.selectGroupData=[],e.selectStoreData=[]},cancel:function(){var e=this;e.$emit("closeSet","close"),e.selectGroupData=[],e.selectStoreData=[]},checkGroupIds:function(e){var t=this;t.formData.selectList=JSON.parse(JSON.stringify(e))},checkStoreIds:function(e){var t=this;t.formData.selectList=JSON.parse(JSON.stringify(e))},submitForm:function(){var e=this;return"null"!=String(e.formData.sendRange)&&""!==e.formData.sendRange&&(!("1"==e.formData.sendRange&&!e.formData.selectList.length)&&(!("2"==e.formData.sendRange&&!e.formData.selectList.length)&&void e.$emit("closeSet",String(e.formData.sendRange),e.formData.selectList)))}},watch:{showAuthFlag:function(e){this.visibleFlag=e},searchSelect:function(e){this.$refs.groupTree.filter(e)},selectMode:function(e){var t=this;t.formData.sendRange="null"==String(e)?"":String(e)},rangeData:function(e){var t=this;t.selectGroupData=1==t.selectMode?JSON.parse(JSON.stringify(e)):[],t.selectStoreData=2==t.selectMode?JSON.parse(JSON.stringify(e)):[],t.formData.selectList=JSON.parse(JSON.stringify(e))||[]},enterpriseId:function(e){var t=this;t.selectEnterpriseId=e,e&&t.getData()}}},Y=V,H=(r("6af5"),Object(I["a"])(Y,C,N,!1,null,"0f33a509",null)),Q=H.exports,X=v.getRoleRange,Z=v.addAdmin,ee={name:"EditAdminPage",components:{navCrumb:s["a"],selectAdmin:D,selectAdminStore:Q},data:function(){return{navpath:[{name:"管理员",path:"/admin-list"},{name:this.$route.query.staffId?"编辑管理员":"新建管理员",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",adminName:this.$route.query.staffName?this.$route.query.staffName:"",adminForm:{adminList:[],enterpriseList:[]},rules:{adminList:[{type:"array",required:!0,message:"请选择管理员",trigger:"change"}],enterpriseList:[{type:"array",required:!0,message:"请选择授权范围",trigger:"change"}]},loadBtn:!1,tableData:[{}],showAdminFlag:!1,showAuthFlag:!1,enterpriseId:"",selectMode:"",rangeData:[],editIndex:"",editRow:{bindRange:[],bindStoreMode:"",enterpriseId:"",enterpriseName:"",shareRange:[],shareStoreMode:""}}},mounted:function(){var e=this;e.$emit("showAsideMenu",!1),e.getTableList(),e.$route.query.staffId&&(e.adminForm.adminList=[{levelId:e.$route.query.staffId,levelName:e.$route.query.levelName}]),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{saveAdmin:function(e){var t=this,r=JSON.parse(JSON.stringify(t.tableData)),a=!0;r.forEach((function(e){2==e.radio&&(e.bindStoreMode="",e.bindRange=""),1==e.radio&&e.bindStoreMode>0&&e.bindRange.length&&(e.bindGroupIds=1==e.bindStoreMode?e.bindRange.map((function(e){return e.storeGroupId})).join(","):"",e.bindStoreIds=2==e.bindStoreMode?e.bindRange.map((function(e){return e.storeInfoId})).join(","):""),1==e.radio&&(e.bindStoreMode>0&&!e.bindRange.length||""===e.bindStoreMode||"null"==String(e.bindStoreMode))&&(a=!1)})),r.forEach((function(e){delete e.bindRange})),t.adminForm.enterpriseList=a?r:[],t.loadBtn=!0,t.$refs[e].validate((function(e){if(!e)return t.loadBtn=!1,!1;t.postSave(r)}))},postSave:function(e){var t=this,r={roleId:t.$route.query.roleId,staffIds:t.$route.query.staffId||t.adminForm.adminList.map((function(e){return e.levelId})).join(","),enterpriseRange:JSON.stringify(e),wxEnterpriseId:t.wxEnterpriseId};Z(r).then((function(e){t.loadBtn=!1,"0000"==e.code?(S["a"].showmsg("保存成功","success"),t.$router.push("/admin-list")):t.$message({message:e.message||"未知错误",type:"warning"})})).catch((function(e){t.loadBtn=!1}))},showAdmin:function(){var e=this;if(e.$route.query.staffId)return!1;e.showAdminFlag=!0},delAdmin:function(e,t){t.splice(e,1)},checkAdmins:function(e){var t=this;if(t.showAdminFlag=!1,"close"==e)return!1;t.adminForm.adminList=e},showAuth:function(e,t){var r=this;r.selectMode="",r.editIndex=e,r.editRow=t,r.enterpriseId=t.enterpriseId,r.selectMode=t.bindStoreMode,r.rangeData=JSON.parse(JSON.stringify(t.bindRange))||[],r.showAuthFlag=!0},closeSet:function(e,t){var r=this;if(r.showAuthFlag=!1,r.selectMode="","close"==e)return!1;r.editRow.bindStoreMode=String(e),r.editRow.bindRange=JSON.parse(JSON.stringify(t))},delAuth:function(e,t){t.splice(e,1)},changeRoute:function(e){this.$router.push(e)},getTableList:function(){var e=this,t={roleId:e.$route.query.roleId,staffId:e.$route.query.staffId,wxEnterpriseId:e.wxEnterpriseId};X(t).then((function(t){t.result&&t.result.length&&t.result.forEach((function(e){e.radio=(null!=e.bindStoreMode&&""!==e.bindStoreMode||"[]"!=e.bindRange&&""!=e.bindRange)&&-1!=e.bindStoreMode?"1":"2",e.bindRange?e.bindRange=JSON.parse(e.bindRange):e.bindRange=[]})),e.tableData=t.result||[]})).catch((function(e){}))}}},te=ee,re=(r("4dbe"),Object(I["a"])(te,a,n,!1,null,"5cd06998",null));t["default"]=re.exports},b39a:function(e,t,r){var a=r("d3f4");e.exports=function(e,t){if(!a(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},c26b:function(e,t,r){"use strict";var a=r("86cc").f,n=r("2aeb"),s=r("dcbc"),i=r("9b43"),o=r("f605"),l=r("4a59"),c=r("01f9"),d=r("d53b"),u=r("7a56"),f=r("9e1e"),h=r("67ab").fastKey,p=r("b39a"),m=f?"_s":"size",g=function(e,t){var r,a=h(t);if("F"!==a)return e._i[a];for(r=e._f;r;r=r.n)if(r.k==t)return r};e.exports={getConstructor:function(e,t,r,c){var d=e((function(e,a){o(e,d,t,"_i"),e._t=t,e._i=n(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=a&&l(a,r,e[c],e)}));return s(d.prototype,{clear:function(){for(var e=p(this,t),r=e._i,a=e._f;a;a=a.n)a.r=!0,a.p&&(a.p=a.p.n=void 0),delete r[a.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var r=p(this,t),a=g(r,e);if(a){var n=a.n,s=a.p;delete r._i[a.i],a.r=!0,s&&(s.n=n),n&&(n.p=s),r._f==a&&(r._f=n),r._l==a&&(r._l=s),r[m]--}return!!a},forEach:function(e){p(this,t);var r,a=i(e,arguments.length>1?arguments[1]:void 0,3);while(r=r?r.n:this._f){a(r.v,r.k,this);while(r&&r.r)r=r.p}},has:function(e){return!!g(p(this,t),e)}}),f&&a(d.prototype,"size",{get:function(){return p(this,t)[m]}}),d},def:function(e,t,r){var a,n,s=g(e,t);return s?s.v=r:(e._l=s={i:n=h(t,!0),k:t,v:r,p:a=e._l,n:void 0,r:!1},e._f||(e._f=s),a&&(a.n=s),e[m]++,"F"!==n&&(e._i[n]=s)),e},getEntry:g,setStrong:function(e,t,r){c(e,t,(function(e,r){this._t=p(e,t),this._k=r,this._l=void 0}),(function(){var e=this,t=e._k,r=e._l;while(r&&r.r)r=r.p;return e._t&&(e._l=r=r?r.n:e._t._f)?d(0,"keys"==t?r.k:"values"==t?r.v:[r.k,r.v]):(e._t=void 0,d(1))}),r?"entries":"values",!r,!0),u(t)}}},cd65:function(e,t,r){"use strict";var a=r("780a"),n=r.n(a);n.a},e0b8:function(e,t,r){"use strict";var a=r("7726"),n=r("5ca1"),s=r("2aba"),i=r("dcbc"),o=r("67ab"),l=r("4a59"),c=r("f605"),d=r("d3f4"),u=r("79e5"),f=r("5cc5"),h=r("7f20"),p=r("5dbc");e.exports=function(e,t,r,m,g,b){var v=a[e],S=v,y=g?"set":"add",_=S&&S.prototype,k={},w=function(e){var t=_[e];s(_,e,"delete"==e||"has"==e?function(e){return!(b&&!d(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return b&&!d(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if("function"==typeof S&&(b||_.forEach&&!u((function(){(new S).entries().next()})))){var I=new S,x=I[y](b?{}:-0,1)!=I,D=u((function(){I.has(1)})),C=f((function(e){new S(e)})),N=!b&&u((function(){var e=new S,t=5;while(t--)e[y](t,t);return!e.has(-0)}));C||(S=t((function(t,r){c(t,S,e);var a=p(new v,t,S);return void 0!=r&&l(r,g,a[y],a),a})),S.prototype=_,_.constructor=S),(D||N)&&(w("delete"),w("has"),g&&w("get")),(N||x)&&w(y),b&&_.clear&&delete _.clear}else S=m.getConstructor(t,e,g,y),i(S.prototype,r),o.NEED=!0;return h(S,e),k[e]=S,n(n.G+n.W+n.F*(S!=v),k),b||m.setStrong(S,e,g),S}},e6f1:function(e,t,r){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fe2e4af2"],{"1ed3":function(t,e,a){"use strict";var n=a("a183"),i=a.n(n);i.a},2802:function(t,e,a){"use strict";a("4917");e["a"]={getByteLen:function(t){for(var e=""==t||null==t?"":t,a=0,n=0;n<e.length;n++){var i=e.charAt(n);null!=i.match(/[^\x00-\xff]/gi)?a+=2:a+=1}return a},getZhLen:function(t){for(var e=""==t||null==t?"":t,a=0,n=0;n<e.length;n++){var i=e.charAt(n);null!=i.match(/[^\x00-\xff]/gi)?a+=1:a+=.5}return Math.ceil(a)},cutStr:function(t,e,a){for(var n=0,i=0;i<t.length;i++){var s=t.charAt(i);if(1==a&&(encodeURI(s).length>2?n+=1:n+=.5),2==a&&(n+=1),n>=e){var r=n==e?i+1:i;return t.substr(0,r)}}},getByteVal:function(t,e){for(var a=""==t||null==t?"":t,n="",i=0,s=0;s<a.length;s++){if(null!=a[s].match(/[^\x00-\xff]/gi)?i+=1:i+=.5,i>e)break;n+=a[s]}return n},getCharVal:function(t,e){for(var a=""==t||null==t?"":t,n="",i=0,s=0;s<a.length;s++){if(null!=a[s].match(/[^\x00-\xff]/gi)?i+=2:i+=1,i>e)break;n+=a[s]}return n},regPos:function(t){var e=/^\d+(\.\d+)?$/;return e.test(t)}}},"2a3f":function(t,e,a){"use strict";var n=a("611d"),i=a.n(n);i.a},4917:function(t,e,a){"use strict";var n=a("cb7c"),i=a("9def"),s=a("0390"),r=a("5f1b");a("214f")("match",1,(function(t,e,a,l){return[function(a){var n=t(this),i=void 0==a?void 0:a[e];return void 0!==i?i.call(a,n):new RegExp(a)[e](String(n))},function(t){var e=l(a,t,this);if(e.done)return e.value;var o=n(t),c=String(this);if(!o.global)return r(o,c);var u=o.unicode;o.lastIndex=0;var d,g=[],f=0;while(null!==(d=r(o,c))){var p=String(d[0]);g[f]=p,""===p&&(o.lastIndex=s(c,i(o.lastIndex),u)),f++}return 0===f?null:g}]}))},"611d":function(t,e,a){},"744b":function(t,e,a){},"7b88":function(t,e,a){},a00b:function(t,e,a){"use strict";var n=a("7b88"),i=a.n(n);i.a},a183:function(t,e,a){},a870:function(t,e,a){"use strict";var n=a("744b"),i=a.n(n);i.a},b5b0:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-app-right no-padding"},[a("div",{staticClass:"clerk-tag-body flex"},[a("div",{staticClass:"clerk-tag-left border-box"},[a("div",{staticClass:"clerk-tag-add text-center m-b-10"},[a("el-button",{staticClass:"w-117",attrs:{icon:"el-icon-plus"},on:{click:t.toAddCate}},[t._v("新建分类")])],1),a("tag-classify-list",{attrs:{"tag-list":t.tagsClassifyData,"current-classify-id":t.currentClassify,"brand-id":t.brandId},on:{refreshClassify:t.refreshClassify,changeClass:t.changeClass,resetCurrentId:t.resetCurrentId}})],1),a("div",{staticClass:"clerk-tag-right p-20 border-box"},[a("div",{staticClass:"clerk-tag-search"},[a("div",{staticClass:"flex flex-space-between"},[a("div",[a("el-input",{staticStyle:{width:"298px"},attrs:{placeholder:"请输入标签名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e,t.searchVal)}(e)}},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}})],1),a("div",[a("el-tooltip",{directives:[{name:"show",rawName:"v-show",value:t.licenseData.count<t.licenseData.limit,expression:"licenseData.count < licenseData.limit"}],staticClass:"item",attrs:{effect:"dark",placement:"top-start"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v("当前标签数量/购买license:"+t._s(t.licenseData.count)+"/"+t._s(t.licenseData.limit))])]),a("el-button",{attrs:{type:"primary"},on:{click:t.toAddTag}},[t._v("新建标签")])],1),a("el-tooltip",{directives:[{name:"show",rawName:"v-show",value:t.licenseData.count>=t.licenseData.limit,expression:"licenseData.count >= licenseData.limit"}],staticClass:"item",attrs:{effect:"dark",placement:"top-start"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v("当前标签数量已达license,请先删除不使用的标签或扩容license")])]),a("div",{staticClass:"el-button el-tooltip item is-disabled"},[t._v("新建标签")])])],1)])]),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"tagsData",staticStyle:{width:"100%"},attrs:{data:t.tagsData,"row-key":"tagId"}},[a("el-table-column",{directives:[{name:"show",rawName:"v-show",value:""===t.currentClassify&&""===t.searchVal,expression:"currentClassify === '' && searchVal === ''"}],attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell"}},[[a("span",{class:["font-22 iconfont icontuozhuaiopen color-c0c4cc",""===t.searchVal&&""===t.currentClassify?"show-icon":"hide-icon"],staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"",label:"标签名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.tagName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEditTag(e.$index,e.row)}}},[t._v("编辑")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEditVisiable(e.$index,e.row)}}},[t._v("编辑可见范围")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDelTag(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)])]),t.showTagCate?a("tag-classify-dialog",{attrs:{"brand-id":t.brandId},on:{closeClassify:t.closeClassify}}):t._e(),t.showTagDialog?a("edit-tag-dialog",{attrs:{"current-category-id":t.currentClassify,"brand-id":t.brandId,"edit-row":t.editRow},on:{closeTag:t.closeTag}}):t._e(),t.showTagVisiable?a("edit-visiable",{attrs:{"brand-id":t.brandId,"set-item-id":t.setItemId,"set-type":"tag","select-mode":t.selectMode,"range-data":t.rangeData},on:{refreshData:t.refreshData}}):t._e()],1)},i=[],s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("ul",{staticClass:"tag-classify-body"},[t._l(t.tagList,(function(e,n){return a("li",{key:e.categoryId+n,class:["tag-classify-item",{active:t.currentClassifyId==e.categoryId}],on:{click:function(a){return t.changeClassify(n,e)}}},[a("span",{staticClass:"tag-classify-name"},[t._v(t._s(e.categoryName||"--"))]),0!=e.state?a("el-dropdown",{staticClass:"tag-classify-drop",attrs:{placement:"bottom-start"}},[a("i",{staticClass:"iconfont icongengduo1 edit-icon"}),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticStyle:{padding:"0 30px"},nativeOn:{click:function(a){return t.toEditClassify(n,e)}}},[t._v("编辑")]),a("el-dropdown-item",{staticStyle:{padding:"0 30px"},nativeOn:{click:function(a){return t.toDelClassify(n,e)}}},[t._v("删除")])],1)],1):t._e()],1)})),0==t.tagList.length?a("li",{staticClass:"no-data"},[t._v("暂无数据")]):t._e()],2),t.showTagClass?a("tag-classify-dialog",{attrs:{"brand-id":t.brandId,"edit-row":t.editRow},on:{closeClassify:t.closeClassify}}):t._e()],1)},r=[],l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.form.categoryId?"编辑分类":"新建分类",width:"600px",visible:t.editVisible,"before-close":t.handleClose},on:{"update:visible":function(e){t.editVisible=e}}},[a("el-form",{ref:"tagForm",attrs:{model:t.form,rules:t.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"分类名称",prop:"categoryName"}},[a("limit-input",{attrs:{"input-width":440,"input-value":t.form.categoryName,holder:"请输入分类名称","get-by-type":"normal","max-length":10},on:{"update:inputValue":function(e){return t.$set(t.form,"categoryName",e)},"update:input-value":function(e){return t.$set(t.form,"categoryName",e)}}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loadingBtn},on:{click:function(e){return t.submit("tagForm")}}},[t._v(t._s(t.form.categoryId?"保存":"新建"))])],1)],1)},o=[],c=(a("ac6a"),a("456d"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:["input-line-cell",t.limitClass],style:{width:t.inputWidth+"px"}},[a("el-input",{style:{width:t.inputWidth+"px"},attrs:{disabled:t.disflag,placeholder:t.holder,maxlength:t.inputLength},on:{blur:function(e){return t.inputBlur()}},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),a("span",{staticClass:"input-cell-tip"},[a("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)}),u=[],d=(a("c5f6"),a("2802")),g={name:"LimitInput",props:{inputValue:{type:[String,Number],default:function(){return""}},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disflag:{type:Boolean,default:!1},limitClass:{type:String,default:""}},data:function(){return{inputNum:0,limitLength:10,itemValue:"",inputLength:"normal"==this.getByType?this.maxLength:500}},mounted:function(){var t=this;if(t.limitLength=t.maxLength,t.itemValue=t.inputValue||"","normal"==t.getByType)return t.inputNum=t.inputValue.length,!1;"word"==t.getByType?t.inputNum=d["a"].getZhLen(t.inputValue):t.inputNum=d["a"].getByteLen(t.inputValue)},methods:{toInput:function(t){var e=this;if("normal"==e.getByType)return e.itemValue=String(t.target.value).trim(),e.inputNum=e.itemValue.length,e.$emit("update:inputValue",e.itemValue),!1;var a="";"word"==e.getByType?(a=d["a"].getByteVal(t.target.value,e.limitLength),e.itemValue=a.trim(),e.inputNum=d["a"].getZhLen(e.itemValue)):(a=d["a"].getCharVal(t.target.value,e.limitLength),e.itemValue=a.trim(),e.inputNum=d["a"].getByteLen(e.itemValue)),e.$emit("update:inputValue",e.itemValue)},inputBlur:function(){var t=this;t.$emit("update:inputValue",t.itemValue)}},watch:{maxLength:function(t,e){var a=this;a.limitLength=t},inputValue:function(t,e){var a=this;if(a.itemValue=t||"","normal"==a.getByType)return a.inputNum=String(a.itemValue).trim().length,!1;"word"==a.getByType?a.inputNum=d["a"].getZhLen(a.itemValue):a.inputNum=d["a"].getByteLen(a.itemValue)}}},f=g,p=(a("a00b"),a("2877")),m=Object(p["a"])(f,c,u,!1,null,"6cddbd03",null),h=m.exports,y=a("d157"),v=a("5b4e"),b=a("d11a"),I=b["a"].addClassify,w={name:"TagClassifyDialog",components:{limitInput:h},props:{brandId:{type:String,default:""},editRow:{type:Object,default:function(){return{categoryId:"",categoryName:""}}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",form:{categoryId:"",categoryName:""},rules:{categoryName:[{required:!0,message:"请输入分类名称",trigger:"blur"}]},editVisible:!0,loadingBtn:!1}},mounted:function(){var t=this;Object.keys(t.editRow).length&&(t.form=JSON.parse(JSON.stringify(t.editRow)))},methods:{cancel:function(){var t=this;t.$emit("closeClassify","close")},handleClose:function(){var t=this;t.tableData=[],t.$emit("closeClassify","close")},submit:Object(y["a"])((function(t){var e=this;e.$refs[t].validate((function(t){t&&e.postSave()}))}),300),postSave:function(){var t=this;t.loadBtn=!0;var e={wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId,categoryId:t.form.categoryId,categoryName:Object(y["c"])(t.form.categoryName)};I(e).then((function(e){t.loadBtn=!1,"0000"==e.code?(v["a"].showmsg("操作成功","success"),t.$refs["tagForm"].resetFields(),t.$emit("closeClassify",t.form.categoryName)):v["a"].showmsg(e.message||"未知错误","warning")})).catch((function(e){t.loadBtn=!1}))}},watch:{editRow:function(t){var e=this;Object.keys(t).length&&(e.form=JSON.parse(JSON.stringify(t)))}}},C=w,x=Object(p["a"])(C,l,o,!1,null,"65885a94",null),T=x.exports,V=b["a"].delClassify,D={name:"TagClassify",components:{tagClassifyDialog:T},props:{brandId:{type:String,default:""},tagList:{type:Array,default:function(){return[]}},currentClassifyId:{type:String,default:""}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",editRow:{},showTagClass:!1}},methods:{changeClassify:function(t,e){this.$emit("changeClass",e)},toEditClassify:function(t,e){var a=this;a.editRow=e,a.showTagClass=!0},closeClassify:function(t){var e=this;if(e.showTagClass=!1,e.$emit("refreshClassify"),"close"==t)return!1;e.editRow.categoryName=t},toDelClassify:function(t,e){var a=this;a.$confirm("删除该分类后,该分类内的所有标签将会被删除!","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.delTagData(e.categoryId)})).catch((function(){}))},delTagData:function(t){var e=this,a={categoryId:t,wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId};V(a).then((function(a){t==e.currentClassifyId?e.$emit("resetCurrentId"):e.$emit("refreshClassify"),"0000"==a.code?v["a"].showmsg("删除成功","success"):v["a"].showmsg(a.message||"接口异常","warning")})).catch((function(t){}))}}},k=D,_=(a("1ed3"),Object(p["a"])(k,s,r,!1,null,"d633db26",null)),L=_.exports,N=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.form.tagId?"编辑标签":"新建标签",width:"600px",visible:t.editVisible,"before-close":t.handleClose,"append-to-body":""},on:{"update:visible":function(e){t.editVisible=e}}},[a("common-alert-tip",{attrs:{width:"476px","tip-content":t.tipContent}}),a("el-form",{ref:"tagForm",staticClass:"m-t-20",attrs:{model:t.form,rules:t.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"标签名称",prop:"tagName"}},[a("limit-input",{attrs:{"input-width":440,"input-value":t.form.tagName,holder:"请输入标签名称","get-by-type":"normal","max-length":15},on:{"update:inputValue":function(e){return t.$set(t.form,"tagName",e)},"update:input-value":function(e){return t.$set(t.form,"tagName",e)}}})],1),a("el-form-item",{attrs:{label:"所属分类",prop:"categoryId"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.form.categoryId,callback:function(e){t.$set(t.form,"categoryId",e)},expression:"form.categoryId"}},t._l(t.tagsClassifyData,(function(t){return a("el-option",{key:t.categoryId,attrs:{label:t.categoryName,value:t.categoryId}})})),1)],1),a("el-form-item",{attrs:{label:"标签值",prop:""}},[t._l(t.form.tagValueDTOList,(function(e,n){return a("el-tag",{key:n+"tag",attrs:{closable:"","disable-transitions":!1},on:{close:function(e){return t.handleDel(n)}}},[t._v("\n "+t._s(e.tagValue)+"\n ")])})),t.form.tagValueDTOList.length<20?a("div",{staticClass:"m-t-5 input-tag-div"},[a("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small",maxlength:"15",placeholder:"请输入标签值并回车添加多个"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputConfirm(e)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}),a("span",{staticClass:"input-cell-tip"},[t._v(t._s(t.inputValue.length)+"/15")])],1):t._e()],2)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loadingBtn},on:{click:function(e){return t.submit("tagForm")}}},[t._v(t._s(t.form.tagId?"保存":"新建"))])],1)],1)},S=[],O=a("3081"),E=b["a"].addClerkTag,B=b["a"].editClerkTag,$=b["a"].getTagClassify,R={name:"TagClassifyDialog",components:{limitInput:h,commonAlertTip:O["a"]},props:{brandId:{type:String,default:""},currentCategoryId:{type:String,default:""},editRow:{type:Object,default:function(){return{}}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tipContent:"在好办新建的标签会在GIC虫洞派应用中也会同步创建并消耗license",tagsClassifyData:[],form:{tagId:"",tagName:"",linkId:"",categoryId:"",tagValueDTOList:[]},rules:{tagName:[{required:!0,message:"请输入标签名称",trigger:"blur"}],categoryId:[{required:!0,message:"请选择所属分类",trigger:"change"}]},inputValue:"",editVisible:!0,loadingBtn:!1}},beforeMount:function(){var t=this;t.brandId&&t.getClassifyList()},methods:{handleDel:function(t){this.form.tagValueDTOList.splice(t,1)},handleInputConfirm:function(){var t=this,e=Object(y["c"])(t.inputValue);e&&t.form.tagValueDTOList.push({tagValueId:"",tagValue:e}),t.inputValue=""},cancel:function(){var t=this;t.$emit("closeTag","close")},handleClose:function(){var t=this;t.tableData=[],t.$emit("closeTag","close")},submit:Object(y["a"])((function(t){var e=this;e.$refs[t].validate((function(t){t&&e.postSave()}))}),300),postSave:function(){var t=this;t.loadBtn=!0;var e={tagId:t.form.tagId,tagName:Object(y["c"])(t.form.tagName),linkId:t.form.linkId,tagValueDTOList:JSON.stringify(t.form.tagValueDTOList),categoryId:t.form.categoryId,enterpriseId:t.brandId,wxEnterpriseId:t.wxEnterpriseId};t.form.tagId?t.editPost(e):t.addPost(e)},addPost:function(t){var e=this;E(t).then((function(t){e.loadBtn=!1,"0000"==t.code?(v["a"].showmsg("操作成功","success"),e.$refs["tagForm"].resetFields(),e.$emit("closeTag","success")):v["a"].showmsg(t.message||"未知错误","warning")})).catch((function(t){e.loadBtn=!1}))},editPost:function(t){var e=this;B(t).then((function(t){e.loadBtn=!1,"0000"==t.code?(v["a"].showmsg("操作成功","success"),e.$refs["tagForm"].resetFields(),e.$emit("closeTag","success")):v["a"].showmsg(t.message||"未知错误","warning")})).catch((function(t){e.loadBtn=!1}))},getClassifyList:function(){var t=this,e={enterpriseId:t.brandId,wxEnterpriseId:t.wxEnterpriseId};$(e).then((function(e){t.tagsClassifyData=e.result||[],t.currentCategoryId&&(t.form.categoryId=t.currentCategoryId),Object.keys(t.editRow).length&&(t.form=JSON.parse(JSON.stringify(t.editRow)))})).catch((function(e){t.currentCategoryId&&(t.form.categoryId=t.currentCategoryId)}))}},watch:{brandId:function(t){var e=this;t&&e.getClassifyList()}}},j=R,J=(a("2a3f"),Object(p["a"])(j,N,S,!1,null,"29339ea0",null)),A=J.exports,F=a("24cb"),U=a("aa47"),M=b["a"].getTagClassify,P=b["a"].getClerkTag,q=b["a"].getTagLicense,Z=b["a"].getTagDetail,z=b["a"].getTagVisiable,W=b["a"].sortClerkTag,G=b["a"].delClerkTag,H={name:"ClerkTag",components:{tagClassifyList:L,tagClassifyDialog:T,editTagDialog:A,editVisiable:F["a"]},props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",currentClassify:"",searchVal:"",tagsClassifyData:[],tagsData:[],showTagDialog:!1,loading:!1,showTagCate:!1,editRow:{},licenseData:{limit:0,count:0},showTagVisiable:!1,selectMode:"",rangeData:[],setItemId:""}},mounted:function(){var t=this;t.$emit("showTab","/clerk-tag"),t.brandId&&t.getClassifyList(),t.rowDrop("tagsData")},methods:{getTagLicenseData:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId};q(e).then((function(e){t.licenseData.limit=e.result.limit||0,t.licenseData.count=e.result.count||0})).catch((function(t){}))},refreshData:function(){var t=this;t.showTagVisiable=!1,t.getTableList()},changeClass:function(t){var e=this;e.currentClassify=t.categoryId,e.searchVal="",e.tagsData=[],e.getTableList()},toAddCate:function(){var t=this;t.showTagCate=!0},closeClassify:function(t){var e=this;if(e.showTagCate=!1,e.getClassifyList(),"close"==t)return!1},rowDrop:function(t){var e=this.$refs[t].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;U["a"].create(e,{handle:".icontuozhuaiopen",onEnd:function(e){var n=e.newIndex,i=e.oldIndex;if(n==i||""!=a.currentClassify)return!1;var s=JSON.parse(JSON.stringify(a[t])),r=s.splice(i,1)[0];s.splice(n,0,r),a.setSort(s)}})},setSort:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId,tagIds:t.map((function(t){return t.tagId})).join(",")};W(a).then((function(t){e.getTableList(),"0000"==t.code?v["a"].showmsg("操作成功","success"):v["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){}))},refreshClassify:function(t){var e=this;e.getClassifyList()},resetCurrentId:function(){var t=this;t.currentClassify="",t.getClassifyList()},toAddTag:function(){var t=this;t.editRow={},t.showTagDialog=!0},toEditTag:function(t,e){var a=this;a.getTagData(e.tagId)},closeTag:function(t){var e=this;if(e.showTagDialog=!1,"close"==t)return!1;e.getTableList()},getTagData:function(t){var e=this,a={tagId:t,enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId};Z(a).then((function(t){t.result&&!t.result.tagValueDTOList&&(t.result.tagValueDTOList=[]),e.editRow=t.result||{},e.showTagDialog=!0})).catch((function(t){}))},toEditVisiable:function(t,e){var a=this;a.getVisiableData(e.tagId)},getVisiableData:function(t){var e=this,a={relationId:t,relationType:"1",enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId};z(a).then((function(a){e.selectMode=String(a.result.storeMode),e.rangeData=a.result.bindRange?JSON.parse(a.result.bindRange):[],e.setItemId=t,e.showTagVisiable=!0})).catch((function(t){}))},refreshTagData:function(){var t=this;t.getTableList()},toDelTag:function(t,e){var a=this;a.$confirm("是否要删除选中的标签?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.delTagData(e.tagId,e.linkId)})).catch((function(){}))},delTagData:function(t,e){var a=this,n={tagId:t,linkId:e,wxEnterpriseId:a.wxEnterpriseId,enterpriseId:a.brandId};G(n).then((function(t){a.getTableList(),"0000"==t.code?v["a"].showmsg("删除成功","success"):v["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){}))},toInput:Object(y["a"])((function(){var t=this;t.getTableList()}),200),clearInput:function(){var t=this;t.getTableList()},getTableList:function(){var t=this;t.loading=!0,t.tagsData=[];var e={wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId,keyword:t.searchVal,categoryId:t.currentClassify};P(e).then((function(e){t.loading=!1,t.tagsData=e.result||[],t.getTagLicenseData()})).catch((function(e){t.loading=!1}))},getClassifyList:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId};M(e).then((function(e){t.tagsClassifyData=e.result||[],t.tagsClassifyData.unshift({categoryId:"",categoryName:"所有",state:0}),e.result&&e.result.length&&t.getTableList()})).catch((function(t){}))}},watch:{brandId:function(t){var e=this;t&&(e.searchVal="",e.currentClassify="",e.getClassifyList())}}},K=H,Q=(a("a870"),Object(p["a"])(K,n,i,!1,null,"09cf7422",null));e["default"]=Q.exports}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment