Commit e5fdc206 by 无尘

fix: 班次编辑

parent 9e7fdbd4
...@@ -5,6 +5,9 @@ module.exports = { ...@@ -5,6 +5,9 @@ module.exports = {
parserOptions: { parserOptions: {
parser: "babel-eslint" parser: "babel-eslint"
}, },
globals: {
'AMap': true
},
env: { env: {
browser: true browser: true
}, },
......
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.5fa681e48a54abc82f5635e9a8e40c9d.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.50619690b50013411c44.js></script><script type=text/javascript src=./static/js/vendor.ba90ac245495779108b2.js></script><script type=text/javascript src=./static/js/app.cd78cc07a0093f3d9a26.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.25fad2d3f4b5b64fa877ccfa02fa840d.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.b4fff87548fcff1b7e0a.js></script><script type=text/javascript src=./static/js/vendor.0000e68e65e4a9dc3840.js></script><script type=text/javascript src=./static/js/app.53a7b7801a78626e6bb5.js></script></body></html>
\ No newline at end of file \ 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.
webpackJsonp([14],{EFYv:function(e,t){},FFFL:function(e,t){e.exports="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAADcCAYAAAAbWs+BAAAbLklEQVR4nO3d2XLjSJYm4B/7SnCRqCUyMrpresy6uq9q+v0foy/KrKcqayo2SVxAYl8c7nMBKlISIWVIIkGAPJ9ZmtIy0yJckfzlDsfx41KcFgKEkFbIhx4AIaeEAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIi9RDD+DUlKxCljPkBUNWMGQ5Q8kqcC5QcQHOOSRZgiLLUGQJmqrA0FWYhgpz81VTlUN/G+SNpDgtxKEHcezygsEPUiRZiSDKoaoKFFWBqihQVRmKLEOSJMiyBEmSIIQAFwKCC3AuwKoKjP3+l+casE0NY8+CodPPzD6hwO0JqzjWYYbFOkGaMZimDk1ToWsqFOXtK/mq4ihKhrJkyLIClqnibGhjODChvuPXJe2gwO0Yqzjmfozv8wimocGyDGiqClmWdv57cS5QMoY0zZHlBa7PBzgfOxS8DqPA7QjnAjM/xrdZANsy4djmu2ay16qqCnGSI0kzfJh6mE4cyNLuQ07ehwK3A4tVgn988+E6FhzbgKIcblODVRWSJEMUZ/jXD2OcjeyDjYVso8C9Q1FWuJmHCJICA9eGrnVnA6MsGYIwgefouDofQNdoZ7MLKHBvtAoz/O3zAt7AhutYhx7Os6I4hSQ4phMHQ9c89HBOHgXuDe6WEb7dhRgNXRiGdujh/KEsL7Bax/h4UT/bkcOhwL3St7sAs1WCyWgAtUcvoBmrsFyFmI5tfJh6hx7OyerOQ0cPfL0L4AcZzifDvWzz75OqKjifDLFYhQBAoTsQemHzk24XEearBOPRoHdhuyfLEiYjFzM/wc08PPRwThIF7icsVgm+z0Ocjb3ehu2eLMs4G3u4WURYrtNDD+fkUOD+QJQU+Mc3H+PRoNUX2fukKDLGQxe/fV0izctDD+ekHMcnaE+EAGZ+jPHQ7dQ7tl3QdQ1Dz8FsGR96KCeFAveCr3dr5CWHZRmHHspeOLaJOGP4ehcceigngwL3jCDOsVil8AbHXRrlbWa5OC0OPZSTQIF7xsyP4Q1sSEdeACxLEgYDm5aWLaHANXh4hu0U2JaBMC2xCmnXct8ocA1myxiDI19KPjVwLZrlWkCBe2K5TlBxHN2u5B8xdA1ZyRFE2aGHctQocE/M/LjT1f/75DomZj7NcvtEgXsgTgsUJYd+oo15TENHmJTIC3booRwtCtwDqzA7mY2S59iWjmVAmyf7QoHb4ELgdhHBNE47cKap4xu9CN8bCtxGmpVQVaVXZ9z2QVUUaJqKJKMay32gwG0kWXlyO5NNJEmCrqlUebInFLiNMM6h691vl9AGjQK3NxQ4AAKAH6TU2WpDVRUsVwmEoO4bu0aBQ93vQ5ZlyDL9cQD1eTlZlsEqfuihHB36hAHIcgZNVY6+UPlnKZsfPoxR4HaNAoe6oeuxnObeFVmWaIbbA/qUoX4HR7PbYxS4/aDAAbQ50ICe4faDAoe6dwlNcI9JkoSKArdzFDjUp55pkttGy+zdo8Chfl6hZeVjXAgoPe/B2UUUOFDgmgguet/0tosocABURQbnFLiHOOfQTryQex8ocABMQwVjFc1yD1ScQ1Xp47Fr9CeKunaw4pxmuY2qqmiG2xMKHAAJwNA1wVh16KF0AmMcA9uAStU3O0d/ohuOraMo6dAlABQlg23SUaV9oMBtuJaOgprnAADKksGxTrvVxL5Q4DYsQ0PJ6meXU8Y5R1GWcGwK3D5Q4DZUVcZoYCI/8fvS8qLEaGDR89ue0J/qA2PPQpqddmuBJMlxPjqtNu9tosA9MHQN5EUJVp3mbiVjFfKihOsc5314XUCBe0CSJPxy4SFJTrO/fhSn+PVqBCro2h8K3BPTsYM4yVGd2OYJYxXSrKDl5J5R4J6QZQnX5wNE0Wm1+47iFB8vPSpY3jMKXIOrcxdJmp1M5UlRMkgQuJi4hx7K0aPANZAkCR8vhwjC5NBDaUUQxJhOnEMP4yRQ4J5xMXFhmyrSLD/0UPYqilMMXQNnQ3p2awMF7gXTsYN1EB9tb4+iKBGECS7PaCnZFgrcC1xbx/XUw8IPju6sXFVx+OsIf/plAuNEL6A8BArcH7g6c3E2tOCvo0MPZaf8dYSrMxeT4Wler3woFLif8PFyCM/W4K+OI3TLVYiRa+DqfHDooZwcCtxP+vVqBNdSsQ76fen8KogxsDT8ejU89FBOEgXuFT5dj2AbCparsHfPdEII+KsQjqHg0/Xo0MM5WRS4V/p0PcLQ0bFYBr0pcmaswmIZwHN0CtuB0fbUG3y8HEJTFXyfBxh6Dkyju4c1s7zAah3jl4sBVZJ0gBSnRb/WRh0SRBlmfgzGJQxcq1OtwbkQCKMEmly/T/Rcc2e/thACQtQ3x0pS3YSpS997l1Hg3qmqOG7mIearFAPXgmUd9iyZEAJpmiOMM0zHNj5MB28OQ15WKAqGvKyQ5SXyosIqTOvjOw9/TSEgUB/g1TUFhq5CVWQYukrNiJ6gwO1InBaYLWNEaQnHNmGa7S8z06xAHKfwXAPTsfPqD3teMIRJgTgtkBcMSVZCVRQoigxVVaAqCiRZ+jGjSZK0me3qGY8LgaqqUFUcnHOwikNXZVimBs8x4DnGyV98SYHbsSDOMVvGSPISlmHAsoy9HnmpOEea5kizAq6lYTp2MHjFie00LxElBZbrBFleQddV6JoKRVWgqcq77j0XAigZAysZ8qL80S9l4lmwTA26dnqNZilwexIlBfwgxXwVQ9c0WJYBTVWgvrObsRAAqyqwkiHNChRlienYwcSzYL+itZ0fpFgGKeKkgK5rsEwdmqbu9VmMc448L5FmBUrGcDa0cTayT2rZSYHbM1bxHzOIH6QwdA2aptYX1ysyFFnaLNN+/3pPkgDORR0wVi/VirKEIkuwDQ3joQXH0n+6w5YAsFwlmPkxuAAs0zjI0heow5dmBZI0r2fmiYOBffy9VChwLQvjHHFaoGQcJavgB+nmeahpp69+RuKcYzp2YOgqHEuH+4aekX6Q4u9flrAsA45tQte68UZICIEsLxEnKYaOgenEgWUc74xHgTuw+82G+82HR/eJCAFZlqE9uMXmvsLlZ5d+aV5itoyxjnIMBjYMvbsf5jjJEMUpLicurs7do3zVQIF7B84FSlaBVRxFWSHNSzDGwYUA56IO0g5v5BEAojgHJOD//PnDH34g56sE//y+gjew4di7ew+3T5xzhHEKQ5UwHbtvms27jAL3SklaIE5LpHmJ+SqBLNfPYfXWuQpZln5smTcvE99HArBax/jzn85fPMf25XaNZZBh5DnQOrJ8fI00y7EOYvxy4R1VhQwF7g9UXCDNSizWCeK0AKsEdE2Fqio/ts/lFpc+YZRgYGu4fuZoTV4w3C4ixBnD0HN6vSxjrMIqiDByzaM53UCBe0acFgiiHN/nITRNhW3q0HS1fvl7oA9xnGTQFeDDhde4MxnGOWZ+jEpIcJ3jOFgqBLAKIrimio9Xw1Z/uO0DBe6JIMoxW8WI0xKmUb8/U5XDv6DN8xJlWeDXyyFMY3uJuFgn+H/fVhgP3YNt9e9TEMawdAXXU+/RJlLfUOA2/CDFzI9RMA7HOkxp1nOqimO2WOFPv0wwGmxvfvhBin988zEZe53Z7t+HMEphanULw742rD35wK03Ff95weE4Zie3zZd+iLOh2dgSIYhy/M8/5zibeJ0c+64FYQJLl3t7ru9kA3f/vJNkDI5jdvZMW7TZIm/6gOUFw5fbNWRF69SMvG/+un6m62Po+rsYfofbRYS/fV4CsoqzidfZsDFWIYzSZ/tG3i4icMgnFTYAGA9drOMCt4v+NXU63gV/g7yscDsPESYlzs+GnT8qEkQJPl56je/bvtyuEaYlJqPT7Lw1Hjr4erd+c6nboXT7E7dDqzDDf//PDXImMBkPOh+2LC9ganLjS9/lOsFinWI8PJ4Xwq+lKApGnoOZ368uat3+1O3I3TLCb1+XOBt7vXk/FYQJpuPtCzaEEJj5MUbecdYavoZlGUhzhu/z8NBD+WlHH7ivdwFu5hHOJ0MYPalCj5MM44HZ2Ifk2yyEkGTo1J4cAOB5Dr7PQqRZeeih/JSjDtyX2zVWYY6zs+G7D362RQiBOMkar4+K0wIzP8bApZtu7imyDG9g92ZpebSB+3oXwA8yjEdur8qB0qzA0DUaz4Tdh61P308bHNvEOi6wCrp/a+1RBu7rXYBlkGEy9nr1nCNE/d6t6dktyxnWUQ77DV3BhBBgrALf4VGhfRDAm+9WH7hWL2a5o3sQuF1EWKwSnE36V/5TlCUsoz7V/dTMj950po2xCv46AmMVJEmCbRnwBt1bkqZZjjBMwQWHpqkYDwev+v9n6BqCMEGY5J1u1XBUgVuFGb7NApyf9S9sAJCkOS4n22EoGcd8leJy+rrKCiEElqsQ1+cuzkYOOOe4mUdYBzGGXneuGM7yAqJi+LdfJzANFXfLCItViLPx63pquo6F2TLudOCOZklZlBVmfozxcNCJ6v7X4lwgz0t4zvYsNl/FcGzj1cvjPC/hWjouJi4UWYKmKvW5MsFRlGxXQ38XIQSCoH4F4tp1Q6QPUw+mJr96jJapI0wKZEU3vrcmRxO4m3kISHJvtv6fyvICY89sPHry7S54U/kZF6Lx3Nx07CAMkzeNc9eSNMfY234FoqoK+BuuerYtA4tVN763JkcRuJkfYx0XvXmp3STPy8b3bnFaQNfUN7VJ0HUV81WMpzdrnY1sWIaCLC/eOtydEEIgjNKtVyBFWbdU199w+sE09brGtKMbRL0PXMkqfL5ZdeqZ5LU4FyjKevn31DrMYLyxuFpVFNi2idvFdiVGPcsddhs9ilNcNLTFm/kxXMd6U/mdqij1Bkqc72qYO9X7wN3MI7iODa0nL7absKqCqatbrb+FAL7PQ5jv6Ew8cCx8m4WonizPPNfE0NWRpIf5YHLOEcXZ1kmIJCsx8+N3dRkzDQ3rKHvvEPei14ELkxzLIIXr9ncpCQBFUTZWvBclg6oo0NS3byYrigzHNnHTcJRlOnYQRelBbnMNoxTX54OtZ8yZH2PgvO/qL93QsFglnVxW9jpws2VdedG/FwCPFQVrvIAjTIqd1Ezeb5en+eN6Q9vSMRmarc9yjFVIkgxX549nt3WUYRVmsN/ZQ1NV6jscnn6/XdDbwK3DDHFawjqCw5clYzAbdlfDONvJrqssS3CfqcSYjl2EUdrqbBBGCT5eDbdmsZkf7+ylvKFr+Otvs538WrvU28AdSxFvfZeagNawQZDmbGdF17ZlwA8yRMnjnUnTUHE5cRDF7WygFAWDImPrnN9ynSDNq52dvte0uikve8OrhX3qZeCStECSs96+c3uIVRWEEFuVMaziyAsGWdrN/yJJkjb1htvPcpfnA8RJtrWxsg9h1HzO77evPrwd/gBVFRmSJLfyPb1GLwM3XyVvKuLtIsaqxg9gXtQbJrssUbNMA2FSYhU+3sFTZAkfpoO9z3J5XsLQZUyGj4N1t4xgmfpOz/jJsgxFkVGyame/5i70LnCcC8xXSWcb/7xWVfHGm0DzsoKyhy7Pnmu/OMuxPX5A69nt8VKSC4EvN+udPx5IsgRVkZEVFLh3WYUpTFPvfE+Sn9W0nASAivG9FGAbhoaiFFsbKBKAT1cjBNF+yqLSNIdr61uNbG8XERzH3PkBYQn1LEdLyncKovyoGp6KzR1wT3Eh9naWbzCw8M/vq61/Pp04UOV6Y2PXwoZzfqziuJmHcOx+v0d9jV4FruICy821vcdCCAGlaYbjfG+B01QVtmU09nWcjh2EO57l7nu0PH25fzsP4djmXlYr99eF8QO81H9JrwKX5SU0VTma5SRQl281BYtzgX0eVh+4Nr7eBVsnrCdDG6a+u8JmzgWihgLlNC8xWyV7LjiXDlJF85LefHIFgL/+NntTBXmnScBWOT92f5HjUz9KvubPzXK72bG8b4i0VaC8rAuU9/V9CmyW6x1rsdGbwDHGIcvH1x5OkqTGZY8s7/+n833JV/7kmW04MOE57y9srir+40TAQ0Gcww8z2NYer0He3JmuNDwfH1K3RvMCVlWQZamXp7lfIksSqoayKkVuDuJOf29ZguM8V/L1/sLmKE7xYTrYOskxW8bwXHuvS2YhNjOcQjPcm+SbMqc+9ip5iSRJjXWMsiQ1rTR3zrENLFYp4vTxM5tj6ZgMrTfPcoxVSNK8oYQrRZKXLVxAIsCf2ZA6pN4ELs0ZNFVp3ELvM0mSGlvDadrbWgy85fd33Xpp+dT9s9xbCpvDOMXHS2/rB+TMj3ZawvUcLsSmqKBbjyC9+fQWrOrcenwXFEVG0VANYWgqWNVOL0nbMhAk241UTUPFxcRBnLxuA6UsGWSIrdlt5sdgHK1sfNVF4bxz1xN3azQvEFxgr4v+A1FVBYt1srV81HUFVcUhRDuVEs+1C788cxHFrytsDhoKlLkQ+HyzbmV2A/Cj8W3Xfkh3azQv2GflxSHdFyjzJ8tKWZJgm1rjhso+GLqGvORbHa/qtnU/X9icFyV0VcbZ6EmB8qIuUG7rjgfGqk7eBd6bwAmx3xfBhyLLEmRZRsm2ZxDb1FC22D/SG9j4xzd/659fnrlI0vynCpvDhmu2WMXxbRa2en6xLBkcq3vvbHsUOEDqfTOFZpqqIsm2Kzs8x0BetNcmQNNUWA0lX5Ik4eOl94cvw9Msh2trGHuPq0fuFhFcZz8lXE2qiqNkVeMp+kPrT+AOPYA9MnQVYbIdOMfWUZas1e/dc61Nydfj3/Vi4kKWxLPdkAXqxkBPj9+keYnbZdxqgXJelJgMrc69EgB6FLhjpuna1nswANDUeuOkaHGWUxQFjm3irqmwefJ8x+Y4zjDxrK0C5brRk9Xqs1TdBa2bB5R7E7g2Ki8ORVXqZ7imLlOfrkbIGpab++Q6dVu9p6elz4Y2DE3eWuZyLhAn2yVcUVKXcL2nx+RrcS6QFyW8hi5oXdCbwGmqvLWTdywkSYKha1sNfoC6rjHLi1ar3mW5Lmx+9vjOk1kuSTNMxw6MJ3Wu97Nbm4qixMDWG0/Rd0FvAudYOoqCde64xa4YhoZ1uN0tWNcUDGwdecs9Fl3HxHyVbC11R56FoWsgTuqxlqzaPLs9nt38IEWUlrDMdmeaNCswHna3m1tvAjd0TeRF0equXZsMXUeclluV+wBwPnZab9Zad/myny35CsIEy1WIpR/g16vh1owy82MMWr74sao4srzAqOFSlK7oTeAURca/fZwgCJOjnOUkqb75xW+Y5YauCUVG63e6WZuSr6d9+i1Tw1/+fI0P5y7+839dbM1ucz9GyUTrJ/PjJMP19HU3p7atN4ED6gsozoYW1kH373J+C8sysHzmbrPpxEHcUrPWexKevztbliSMPavhAhKxadLb7rObEAJpluOsw8tJoGeBA4CPl0M4porVEYZOUxVwgcarlsaehSwv99rGrolp6MhLji+365/67z/friHJypvus3uPNCswHpid3Sy517vAAcCn6xEcQ8F8se5co8/3cmyz8blJliR8vBwiOMDNpeOhCz/M8O0uePG/+3yzRhiXrd/Vx7moe14+OZ3QRVKcFr19IJr5MT7frGFbxqZzb/dKed5itljjX66HGDY8/P/9yxKSrLZwgPMxzgX8dQjH1DAamDAN9cdp9TQrsQpTFExgOHRbL8BbhzEGloZfLryWf+fX63XggPoUwcJPsAxSFKyCpqrQdRWGrvX2sGqWF6jKEv/709nWvwvjHH/7ssT0fHSQBjlpmiPLC5SsghB18bWmKjBN/SDdsIuSYb5Y47/+40MvTpP0PnAPRUmBNCsRpTlWYQ5VkaHrGjRV2bRnkCHJUuc6OTVZrSNcjO2tYy4A8PUuQBAXGA0Pt4QSQmxa/O2/w9hLZos1fpkOGv+cuuioAvdQyTiKkiFKCiRZiSwvkeYMiiJDkWXIsgxZljYNQ6UfjUN/fMXv/wz3/76lsUtS/ULZX0X4y79fN25z//3LEpDVo7gf763WQQzbUPDpenToofy0bjV82CFNlaGpOpwHF9VXvK52Z6w+vsE2d7NxIR585RD3fy+AIMp+/ARv9we59OjLU9Oxg//7eQFdGx1VY9yflaQ5TF3uVdiAI57hdolvlk+ttNHC701MFUV+cfl7Mw8xW6U4Gw968fyyK2XJMF8G+Pd/PX/0A7UPjnaG2yW5XmPi2enmQK7OB2AVh7+KMBkPDj2cVjBWYemH+HQ17F3YgJ6+hyO/+3g5xMDWjrb65iHOBZarEB8uBjhvuMSyDyhwR+DT9Qi2oRx16KqKY+EHmI7srfZ7fUKBOxL3ofNX0dEVd9fPbGtMxzY+9ODl9ksocEfk0/UInqNh6YeN3Zz7KMsLLPwQv14OcX3e/+dU2qU8Qt/nIW4XEUaeC6ODnat+VhilkMExnTiNZW59RIE7Uqsww98+LzBw7daPyrxXxTnWQV0feT31Oteu/D0ocEesZBVu5hHWUQ7XtXpxVXOcZIjiFJdn7lEsIZ+iwJ0AP0gx82NUvD5QqnTwjr08LxFGCYaugYuJC9M4zlfEFLgTcruI8PUugG0ZsC2j9UOiTwkhkOcl4iSDqSuYjh0MB8fxrPYcCtyJuT/OtFgn4AIwjPpYTZt9QCrOkaY50qyAY6qYjl14bjf7SO4aBe6E+UGKIMrhhyk0TYVt1rPePoqhK87rW1GTDHnBcDFxMBqYvSzPeg8KHEFRVojTAn6QYhVmPw7wqqqyuU5LftUMKABUrAJjFVhVoSgZiqK+zWY6duDa+ta936eCAkce4UIginOEcY40Zwjj/Efgmr7WB1HrvzgX9a2tFUfFOTzHgGlocCwNjnW6IXuIAkdeVC8FOVj14OvmOqiq4r8HUJKgKDIMXYGuKdBV5STP6f2R49x7JTujyDIUXcZpbGnsH/0IIqRFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RF/x8qjTga7LYI7gAAAABJRU5ErkJggg=="},NajC:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("mvHQ"),r=a.n(i),l=a("Gu7T"),s=a.n(l),o=a("Ke24"),n=a("Ie7z"),c=a("c4uw"),d=a("vRJf"),u=a("P9l9"),m=a("Ch4/"),g=a("PI0u"),h={name:"use-record",props:{detailShow:{type:Boolean,default:!1},materialId:{type:String,default:""}},data:function(){return{customDialog:!1,activeName:"first",tableData:[],conditionObj:{searchInput:"",materialId:this.materialId},currentPage:1,pageSize:5,total:0}},methods:{toInput:Object(g.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableList:function(e){var t=this,a={materialId:t.conditionObj.materialId,imgTextTitle:t.conditionObj.searchInput||"",relatedType:4,pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(u.a)("/haoban-app-material-web/material-log",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,!1;m.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{detailShow:function(e,t){this.customDialog=e},materialId:function(e,t){e&&(this.conditionObj.materialId=e,this.currentPage=1,this.getTableList())}},mounted:function(){this.customDialog=this.detailShow,this.materialId&&(this.conditionObj.materialId=this.materialId,this.currentPage=1,this.getTableList())}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"记录",visible:e.customDialog,width:"739px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-203",attrs:{placeholder:"请输入标题","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}})],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"发布人",width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.userName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标题","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.phoneNumber||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发布时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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)])],1)},staticRenderFns:[]};var p=a("VU/8")(h,f,!1,function(e){a("TjhY")},"data-v-28498945",null).exports,v=a("l46T"),I=a("Kkt8"),S=a("3E4D"),b={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:o.a,vueSelectStore:n.a,vueSelectEmployee:c.a,materialPreview:d.a,useRecord:p,limitInput:v.a,limitTextarea:I.a},data:function(){return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",topMenuData:[{id:"1",name:"图文素材",path:"/imageText?appIcon="+this.$route.query.appIcon},{id:"2",name:"选择图文"}],tableData:[],searchInput:"",selectType:"",treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0},defaultSelection:[],changed:"",onlyPerson:!1,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},defaultImg:a("FFFL"),currentPage:1,pageSize:6,total:0,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,formData:{materialId:"",imageTextWechatId:"",imageTextGicId:"",titleName:"",imageUrl:"",imageTextUrl:"",rangeList:[],materialTitle:"",materialContent:"",topFlag:!1},rules:{imageTextWechatId:[{required:!0,message:"请选择图文",trigger:"change"}],materialTitle:[{required:!0,message:"请请输入素材标题",trigger:"blur"}],materialContent:[{required:!0,message:"请请输入发送内容",trigger:"blur"}],rangeList:[{validator:function(e,t,a){if(""==t||!t.length)return a(new Error("请选择选择行政架构或门店架构"));a()},trigger:"change"}]},previewVisible:!1,materialPreviewData:{},detailShow:!1,imageTextWechatId:""}},methods:{showRecord:function(e){if(!e.useCount)return!1;this.detailShow=!0,this.imageTextWechatId=e.imageTextWechatId},hideDetailDialog:function(){this.detailShow=!1,this.imageTextWechatId=""},showPreviewDetail:function(e){this.materialPreviewData={materialTitle:e.titleName,materialContent:""},this.previewVisible=!0},submitForm:function(e,t){var a=this;a.formData.rangeList=[].concat(s()(a.defaultStoreList),s()(a.defaultSelection)),a.$refs[e].validate(function(e){e&&a.postSaveCard(t)})},postSaveCard:function(e){var t=this,a=[];t.formData.rangeList.forEach(function(e){a.push({groupId:2==e.type?e.groupId:"",storeId:3==e.type?e.storeId:"",storeFlag:e.isStoreGroup})});var i={enterpriseId:t.enterpriseId,imageTextWechatId:t.formData.imageTextWechatId,imageTextGicId:t.formData.imageTextGicId,materialContent:t.formData.materialContent,imageTextUrl:t.formData.imageTextUrl,materialTitle:t.formData.materialTitle,rangeListStr:r()(a),topFlag:t.formData.topFlag?1:0,relatedType:1,brandId:t.brandId,userId:t.userId};Object(u.e)("/haoban-app-material-web/material-add",i).then(function(a){var i=a.data;1==i.errorCode&&(S.a.showmsg("新建成功","success"),e?(t.formData={materialId:"",imageTextWechatId:"",imageTextGicId:"",titleName:"",imageUrl:"",imageTextUrl:"",rangeList:[],materialTitle:"",materialContent:"",topFlag:!1},t.defaultStoreList=[],t.defaultSelection=[]):t.$router.push("/imageText?appIcon="+t.$route.query.appIcon)),m.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},previewData:function(e){var t=this;t.formData.rangeList=[].concat(s()(t.defaultStoreList),s()(t.defaultSelection)),t.$refs[e].validate(function(e){e&&(t.tableData.forEach(function(e){e.imageTextWechatId==t.formData.imageTextWechatId&&(t.formData.imageUrl=e.imageUrl,t.formData.titleName=e.titleName)}),t.materialPreviewData=t.formData,t.previewVisible=!0)})},toReturn:function(){this.$router.go(-1)},changeId:function(e,t){this.formData.imageTextWechatId=e,this.formData.imageTextGicId=t.imageTextId},toInput:Object(g.a)(function(e,t){this.currentPage=1,this.getTableList()},200),clearInput:function(){this.currentPage=1,this.getTableList()},showDialogLayer:function(e,t){return!this.$route.query.materialId&&(this.selectType=e,this.changed=e,"store"===e?(this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0})):(this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0},void(this.defaultSelection=t)))},handleSelectedList:function(e){"store"===this.selectType?this.defaultStoreList=e:this.defaultSelection=e,this.formData.rangeList=[].concat(s()(this.defaultStoreList),s()(this.defaultSelection))},delDepart:function(e,t,a){if(this.$route.query.materialId)return!1;t.splice(e,1),this.formData.rangeList=[].concat(s()(this.defaultStoreList),s()(this.defaultSelection))},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getImageData:function(){var e=this,t={materialId:e.$route.query.materialId,brandId:e.brandId};Object(u.a)("/haoban-app-material-web/material-detail",t).then(function(t){var a=t.data;if(1==a.errorCode){var i=[],r=[];return a.result.rangeVOList&&a.result.rangeVOList.forEach(function(e){e.groupId=2==e.type?e.id:"",e.storeId=3==e.type?e.id:"",e.isStoreGroup=e.storeFlag,1==e.storeFlag?i.push(e):r.push(e)}),e.formData={materialId:a.result.materialId,imageTextWechatId:a.result.imageTextWechatId,imageTextUrl:a.result.imageTextUrl,titleName:"",imageUrl:"",materialTitle:a.result.materialTitle,materialContent:a.result.materialContent,topFlag:1==a.result.topFlag,rangeList:a.result.rangeVOList,createTime:a.result.createTime},e.defaultStoreList=i||[],e.defaultSelection=r||[],!1}m.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(e){var t=this,a={title:t.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(u.a)("/haoban-app-material-web/wechat-material-detail",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,t.$route.query.materialId&&t.getImageData(),!1;m.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getTableList()}},w={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log boder-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"new-card-body"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"选择图文:",prop:"imageTextWechatId"}},[a("div",{staticClass:"search-div"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入图文标题",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"chat-log-content boder-box m-t-20"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{disabled:!!e.$route.query.materialId,label:t.row.imageTextWechatId},on:{change:function(a){e.changeId(a,t.row)}},model:{value:e.formData.imageTextWechatId,callback:function(t){e.$set(e.formData,"imageTextWechatId",t)},expression:"formData.imageTextWechatId"}},[e._v(e._s(""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"imageUrl",label:"图片","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell"},[a("img",{staticClass:"img-40",attrs:{src:t.row.imageUrl?t.row.imageUrl:e.defaultImg,alt:""}})])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"titleName",label:"图文标题","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell color-1890ff cursor-pointer",on:{click:function(a){e.showPreviewDetail(t.row)}}},[e._v(e._s(t.row.titleName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"作者","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.authorName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"storeMode",label:"使用记录","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell color-1890ff cursor-pointer",on:{click:function(a){e.showRecord(t.row)}}},[e._v(e._s(t.row.useCount||"--"))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-size":e.pageSize,layout:" prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1):e._e()],1)]),e._v(" "),a("el-form-item",{staticClass:"input-item is-required",attrs:{label:"发送范围:",prop:"rangeList"}},[a("div",{staticClass:"form-item-tip fonr-14 color-909399"},[e._v("下面两项可二选一,非全选。可选择行政架构或门店架构")]),e._v(" "),a("div",{staticClass:"flex"},[a("div",{staticClass:"flex-column item-cell-select inline-block "},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"240px"},on:{click:function(t){e.showDialogLayer("depart",e.defaultSelection)}}},[e.defaultSelection.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择行政架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.defaultSelection,function(t,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(i,e.defaultSelection,"depart")}}})])]})],2)])])])])]),e._v(" "),a("div",{staticClass:"flex m-t-20"},[a("div",{staticClass:"flex-column item-cell-select inline-block"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"240px"},on:{click:function(t){e.showDialogLayer("store",e.defaultStoreList)}}},[e.defaultStoreList.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择门店架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.defaultStoreList,function(t,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(i,e.defaultStoreList,"store")}}})])]})],2)])])])])])]),e._v(" "),a("el-form-item",{attrs:{label:"发送内容标题:",prop:"materialTitle"}},[a("limitInput",{attrs:{disflag:!!e.$route.query.materialId,inputWidth:320,inputValue:e.formData.materialTitle,holder:"请输入素材标题",getByType:"word",maxLength:15},on:{"update:inputValue":function(t){e.$set(e.formData,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"发送内容:",prop:"materialContent"}},[a("limitTextarea",{attrs:{disInput:!!e.$route.query.materialId,inputWidth:320,inputValue:e.formData.materialContent,holder:"请输入素材内容",maxLength:1500},on:{"update:inputValue":function(t){e.$set(e.formData,"materialContent",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"更多设置:",prop:""}},[a("div",[a("el-checkbox",{attrs:{disabled:!!e.$route.query.materialId},model:{value:e.formData.topFlag,callback:function(t){e.$set(e.formData,"topFlag",t)},expression:"formData.topFlag"}},[e._v("置顶")])],1)]),e._v(" "),a("el-form-item",[a("el-button",{on:{click:e.toReturn}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.previewData("ruleForm")}}},[e._v("预览")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.materialId,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("发布")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.materialId,type:"primary"},on:{click:function(t){e.submitForm("ruleForm","flag")}}},[e._v("发布并添加下一个")])],1)],1)],1)],1),e._v(" "),a("vue-select-employee",{attrs:{appScene:e.appScene,defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("material-preview",{ref:"materialPreview",attrs:{materialPreviewData:e.materialPreviewData},model:{value:e.previewVisible,callback:function(t){e.previewVisible=t},expression:"previewVisible"}}),e._v(" "),a("use-record",{attrs:{materialId:e.imageTextWechatId,detailShow:e.detailShow},on:{hideDetailDialog:e.hideDetailDialog}})],1)},staticRenderFns:[]};var D=a("VU/8")(b,w,!1,function(e){a("EFYv")},"data-v-9ae22ebc",null);t.default=D.exports},NoP7:function(e,t){},TjhY:function(e,t){},vRJf:function(e,t,a){"use strict";var i=a("mvHQ"),r=a.n(i),l={name:"material-preview",props:{value:{type:Boolean,default:function(){return!1}},materialPreviewData:{type:[Object,Array],default:function(){return{materialId:"",imageTextWechatId:"",imageTextGicId:"",titleName:"",imageUrl:"",rangeList:[],imgUrlList:[],materialTitle:"",materialContent:"",topFlag:!1}}}},directives:{htmlContent:{bind:function(e,t){e.innerHTML=t.value},update:function(e,t){e.innerHTML=t.value}}},data:function(){return{materialData:{materialId:"",imageTextWechatId:"",imageTextGicId:"",rangeList:[],imgUrlList:[],materialTitle:"",materialContent:"",topFlag:!1}}},methods:{closeDialog:function(){this.$emit("input",!1),this.$emit("closePre")}},watch:{value:function(e,t){this.materialData=JSON.parse(r()(this.materialPreviewData))},materialPreviewData:function(e,t){this.materialData=JSON.parse(r()(e))}},mounted:function(){this.materialData=JSON.parse(r()(this.materialPreviewData))}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.value?a("div",{staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._v(" "),a("div",{staticClass:"qr-dialog border-box"},[a("div",{staticClass:"qr-dialog-body border-box"},[a("h2",{staticClass:"font-20 color-222 text-left main-title"},[e._v(e._s(e.materialData.materialTitle))]),e._v(" "),a("div",{staticClass:"notice-date m-t-10 flex flex-space-between"},[a("div",{staticClass:"notice-date-left font-10 color-88949C"},[e._v(e._s(e._f("timeStampToYmd")(e.materialData.materialId?e.materialData.createTime:(new Date).getTime())))]),e._v(" "),a("div",{staticClass:"notice-date-right font-10 color-4d7fd0"})]),e._v(" "),a("div",{directives:[{name:"htmlContent",rawName:"v-htmlContent",value:e.materialData.materialContent,expression:"materialData.materialContent"}],staticClass:"notice-body border-box font-14 color-222"}),e._v(" "),e.materialData.imgUrlList&&e.materialData.imgUrlList.length?a("div",{staticClass:"img-list-wrap"},[a("ul",{staticClass:"flex flex-wrap"},e._l(e.materialData.imgUrlList,function(e,t){return a("li",{key:t+"img",staticClass:"border-box flex flex-align-center flex-pack-center"},[a("img",{attrs:{src:e.imgUrl,alt:""}})])}))]):e._e(),e._v(" "),e.materialData.imageTextWechatId?a("div",{staticClass:"image-text-link"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex-left-img flex flex-align-center flex-pack-center"},[a("img",{attrs:{src:e.materialData.imageUrl,alt:""}})]),e._v(" "),a("div",{staticClass:"flex-right-title border-box"},[a("div",{staticClass:"title-content font-14 color-606266"},[e._v(e._s(e.materialData.titleName))])])])]):e._e()])]),e._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})])]):e._e()},staticRenderFns:[]};var o=a("VU/8")(l,s,!1,function(e){a("NoP7")},"data-v-d6932054",null);t.a=o.exports}});
\ No newline at end of file
webpackJsonp([14],{FFFL:function(e,t){e.exports="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAADcCAYAAAAbWs+BAAAbLklEQVR4nO3d2XLjSJYm4B/7SnCRqCUyMrpresy6uq9q+v0foy/KrKcqayo2SVxAYl8c7nMBKlISIWVIIkGAPJ9ZmtIy0yJckfzlDsfx41KcFgKEkFbIhx4AIaeEAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIi9RDD+DUlKxCljPkBUNWMGQ5Q8kqcC5QcQHOOSRZgiLLUGQJmqrA0FWYhgpz81VTlUN/G+SNpDgtxKEHcezygsEPUiRZiSDKoaoKFFWBqihQVRmKLEOSJMiyBEmSIIQAFwKCC3AuwKoKjP3+l+casE0NY8+CodPPzD6hwO0JqzjWYYbFOkGaMZimDk1ToWsqFOXtK/mq4ihKhrJkyLIClqnibGhjODChvuPXJe2gwO0Yqzjmfozv8wimocGyDGiqClmWdv57cS5QMoY0zZHlBa7PBzgfOxS8DqPA7QjnAjM/xrdZANsy4djmu2ay16qqCnGSI0kzfJh6mE4cyNLuQ07ehwK3A4tVgn988+E6FhzbgKIcblODVRWSJEMUZ/jXD2OcjeyDjYVso8C9Q1FWuJmHCJICA9eGrnVnA6MsGYIwgefouDofQNdoZ7MLKHBvtAoz/O3zAt7AhutYhx7Os6I4hSQ4phMHQ9c89HBOHgXuDe6WEb7dhRgNXRiGdujh/KEsL7Bax/h4UT/bkcOhwL3St7sAs1WCyWgAtUcvoBmrsFyFmI5tfJh6hx7OyerOQ0cPfL0L4AcZzifDvWzz75OqKjifDLFYhQBAoTsQemHzk24XEearBOPRoHdhuyfLEiYjFzM/wc08PPRwThIF7icsVgm+z0Ocjb3ehu2eLMs4G3u4WURYrtNDD+fkUOD+QJQU+Mc3H+PRoNUX2fukKDLGQxe/fV0izctDD+ekHMcnaE+EAGZ+jPHQ7dQ7tl3QdQ1Dz8FsGR96KCeFAveCr3dr5CWHZRmHHspeOLaJOGP4ehcceigngwL3jCDOsVil8AbHXRrlbWa5OC0OPZSTQIF7xsyP4Q1sSEdeACxLEgYDm5aWLaHANXh4hu0U2JaBMC2xCmnXct8ocA1myxiDI19KPjVwLZrlWkCBe2K5TlBxHN2u5B8xdA1ZyRFE2aGHctQocE/M/LjT1f/75DomZj7NcvtEgXsgTgsUJYd+oo15TENHmJTIC3booRwtCtwDqzA7mY2S59iWjmVAmyf7QoHb4ELgdhHBNE47cKap4xu9CN8bCtxGmpVQVaVXZ9z2QVUUaJqKJKMay32gwG0kWXlyO5NNJEmCrqlUebInFLiNMM6h691vl9AGjQK3NxQ4AAKAH6TU2WpDVRUsVwmEoO4bu0aBQ93vQ5ZlyDL9cQD1eTlZlsEqfuihHB36hAHIcgZNVY6+UPlnKZsfPoxR4HaNAoe6oeuxnObeFVmWaIbbA/qUoX4HR7PbYxS4/aDAAbQ50ICe4faDAoe6dwlNcI9JkoSKArdzFDjUp55pkttGy+zdo8Chfl6hZeVjXAgoPe/B2UUUOFDgmgguet/0tosocABURQbnFLiHOOfQTryQex8ocABMQwVjFc1yD1ScQ1Xp47Fr9CeKunaw4pxmuY2qqmiG2xMKHAAJwNA1wVh16KF0AmMcA9uAStU3O0d/ohuOraMo6dAlABQlg23SUaV9oMBtuJaOgprnAADKksGxTrvVxL5Q4DYsQ0PJ6meXU8Y5R1GWcGwK3D5Q4DZUVcZoYCI/8fvS8qLEaGDR89ue0J/qA2PPQpqddmuBJMlxPjqtNu9tosA9MHQN5EUJVp3mbiVjFfKihOsc5314XUCBe0CSJPxy4SFJTrO/fhSn+PVqBCro2h8K3BPTsYM4yVGd2OYJYxXSrKDl5J5R4J6QZQnX5wNE0Wm1+47iFB8vPSpY3jMKXIOrcxdJmp1M5UlRMkgQuJi4hx7K0aPANZAkCR8vhwjC5NBDaUUQxJhOnEMP4yRQ4J5xMXFhmyrSLD/0UPYqilMMXQNnQ3p2awMF7gXTsYN1EB9tb4+iKBGECS7PaCnZFgrcC1xbx/XUw8IPju6sXFVx+OsIf/plAuNEL6A8BArcH7g6c3E2tOCvo0MPZaf8dYSrMxeT4Wler3woFLif8PFyCM/W4K+OI3TLVYiRa+DqfHDooZwcCtxP+vVqBNdSsQ76fen8KogxsDT8ejU89FBOEgXuFT5dj2AbCparsHfPdEII+KsQjqHg0/Xo0MM5WRS4V/p0PcLQ0bFYBr0pcmaswmIZwHN0CtuB0fbUG3y8HEJTFXyfBxh6Dkyju4c1s7zAah3jl4sBVZJ0gBSnRb/WRh0SRBlmfgzGJQxcq1OtwbkQCKMEmly/T/Rcc2e/thACQtQ3x0pS3YSpS997l1Hg3qmqOG7mIearFAPXgmUd9iyZEAJpmiOMM0zHNj5MB28OQ15WKAqGvKyQ5SXyosIqTOvjOw9/TSEgUB/g1TUFhq5CVWQYukrNiJ6gwO1InBaYLWNEaQnHNmGa7S8z06xAHKfwXAPTsfPqD3teMIRJgTgtkBcMSVZCVRQoigxVVaAqCiRZ+jGjSZK0me3qGY8LgaqqUFUcnHOwikNXZVimBs8x4DnGyV98SYHbsSDOMVvGSPISlmHAsoy9HnmpOEea5kizAq6lYTp2MHjFie00LxElBZbrBFleQddV6JoKRVWgqcq77j0XAigZAysZ8qL80S9l4lmwTA26dnqNZilwexIlBfwgxXwVQ9c0WJYBTVWgvrObsRAAqyqwkiHNChRlienYwcSzYL+itZ0fpFgGKeKkgK5rsEwdmqbu9VmMc448L5FmBUrGcDa0cTayT2rZSYHbM1bxHzOIH6QwdA2aptYX1ysyFFnaLNN+/3pPkgDORR0wVi/VirKEIkuwDQ3joQXH0n+6w5YAsFwlmPkxuAAs0zjI0heow5dmBZI0r2fmiYOBffy9VChwLQvjHHFaoGQcJavgB+nmeahpp69+RuKcYzp2YOgqHEuH+4aekX6Q4u9flrAsA45tQte68UZICIEsLxEnKYaOgenEgWUc74xHgTuw+82G+82HR/eJCAFZlqE9uMXmvsLlZ5d+aV5itoyxjnIMBjYMvbsf5jjJEMUpLicurs7do3zVQIF7B84FSlaBVRxFWSHNSzDGwYUA56IO0g5v5BEAojgHJOD//PnDH34g56sE//y+gjew4di7ew+3T5xzhHEKQ5UwHbtvms27jAL3SklaIE5LpHmJ+SqBLNfPYfXWuQpZln5smTcvE99HArBax/jzn85fPMf25XaNZZBh5DnQOrJ8fI00y7EOYvxy4R1VhQwF7g9UXCDNSizWCeK0AKsEdE2Fqio/ts/lFpc+YZRgYGu4fuZoTV4w3C4ixBnD0HN6vSxjrMIqiDByzaM53UCBe0acFgiiHN/nITRNhW3q0HS1fvl7oA9xnGTQFeDDhde4MxnGOWZ+jEpIcJ3jOFgqBLAKIrimio9Xw1Z/uO0DBe6JIMoxW8WI0xKmUb8/U5XDv6DN8xJlWeDXyyFMY3uJuFgn+H/fVhgP3YNt9e9TEMawdAXXU+/RJlLfUOA2/CDFzI9RMA7HOkxp1nOqimO2WOFPv0wwGmxvfvhBin988zEZe53Z7t+HMEphanULw742rD35wK03Ff95weE4Zie3zZd+iLOh2dgSIYhy/M8/5zibeJ0c+64FYQJLl3t7ru9kA3f/vJNkDI5jdvZMW7TZIm/6gOUFw5fbNWRF69SMvG/+un6m62Po+rsYfofbRYS/fV4CsoqzidfZsDFWIYzSZ/tG3i4icMgnFTYAGA9drOMCt4v+NXU63gV/g7yscDsPESYlzs+GnT8qEkQJPl56je/bvtyuEaYlJqPT7Lw1Hjr4erd+c6nboXT7E7dDqzDDf//PDXImMBkPOh+2LC9ganLjS9/lOsFinWI8PJ4Xwq+lKApGnoOZ368uat3+1O3I3TLCb1+XOBt7vXk/FYQJpuPtCzaEEJj5MUbecdYavoZlGUhzhu/z8NBD+WlHH7ivdwFu5hHOJ0MYPalCj5MM44HZ2Ifk2yyEkGTo1J4cAOB5Dr7PQqRZeeih/JSjDtyX2zVWYY6zs+G7D362RQiBOMkar4+K0wIzP8bApZtu7imyDG9g92ZpebSB+3oXwA8yjEdur8qB0qzA0DUaz4Tdh61P308bHNvEOi6wCrp/a+1RBu7rXYBlkGEy9nr1nCNE/d6t6dktyxnWUQ77DV3BhBBgrALf4VGhfRDAm+9WH7hWL2a5o3sQuF1EWKwSnE36V/5TlCUsoz7V/dTMj950po2xCv46AmMVJEmCbRnwBt1bkqZZjjBMwQWHpqkYDwev+v9n6BqCMEGY5J1u1XBUgVuFGb7NApyf9S9sAJCkOS4n22EoGcd8leJy+rrKCiEElqsQ1+cuzkYOOOe4mUdYBzGGXneuGM7yAqJi+LdfJzANFXfLCItViLPx63pquo6F2TLudOCOZklZlBVmfozxcNCJ6v7X4lwgz0t4zvYsNl/FcGzj1cvjPC/hWjouJi4UWYKmKvW5MsFRlGxXQ38XIQSCoH4F4tp1Q6QPUw+mJr96jJapI0wKZEU3vrcmRxO4m3kISHJvtv6fyvICY89sPHry7S54U/kZF6Lx3Nx07CAMkzeNc9eSNMfY234FoqoK+BuuerYtA4tVN763JkcRuJkfYx0XvXmp3STPy8b3bnFaQNfUN7VJ0HUV81WMpzdrnY1sWIaCLC/eOtydEEIgjNKtVyBFWbdU199w+sE09brGtKMbRL0PXMkqfL5ZdeqZ5LU4FyjKevn31DrMYLyxuFpVFNi2idvFdiVGPcsddhs9ilNcNLTFm/kxXMd6U/mdqij1Bkqc72qYO9X7wN3MI7iODa0nL7absKqCqatbrb+FAL7PQ5jv6Ew8cCx8m4WonizPPNfE0NWRpIf5YHLOEcXZ1kmIJCsx8+N3dRkzDQ3rKHvvEPei14ELkxzLIIXr9ncpCQBFUTZWvBclg6oo0NS3byYrigzHNnHTcJRlOnYQRelBbnMNoxTX54OtZ8yZH2PgvO/qL93QsFglnVxW9jpws2VdedG/FwCPFQVrvIAjTIqd1Ezeb5en+eN6Q9vSMRmarc9yjFVIkgxX549nt3WUYRVmsN/ZQ1NV6jscnn6/XdDbwK3DDHFawjqCw5clYzAbdlfDONvJrqssS3CfqcSYjl2EUdrqbBBGCT5eDbdmsZkf7+ylvKFr+Otvs538WrvU28AdSxFvfZeagNawQZDmbGdF17ZlwA8yRMnjnUnTUHE5cRDF7WygFAWDImPrnN9ynSDNq52dvte0uikve8OrhX3qZeCStECSs96+c3uIVRWEEFuVMaziyAsGWdrN/yJJkjb1htvPcpfnA8RJtrWxsg9h1HzO77evPrwd/gBVFRmSJLfyPb1GLwM3XyVvKuLtIsaqxg9gXtQbJrssUbNMA2FSYhU+3sFTZAkfpoO9z3J5XsLQZUyGj4N1t4xgmfpOz/jJsgxFkVGyame/5i70LnCcC8xXSWcb/7xWVfHGm0DzsoKyhy7Pnmu/OMuxPX5A69nt8VKSC4EvN+udPx5IsgRVkZEVFLh3WYUpTFPvfE+Sn9W0nASAivG9FGAbhoaiFFsbKBKAT1cjBNF+yqLSNIdr61uNbG8XERzH3PkBYQn1LEdLyncKovyoGp6KzR1wT3Eh9naWbzCw8M/vq61/Pp04UOV6Y2PXwoZzfqziuJmHcOx+v0d9jV4FruICy821vcdCCAGlaYbjfG+B01QVtmU09nWcjh2EO57l7nu0PH25fzsP4djmXlYr99eF8QO81H9JrwKX5SU0VTma5SRQl281BYtzgX0eVh+4Nr7eBVsnrCdDG6a+u8JmzgWihgLlNC8xWyV7LjiXDlJF85LefHIFgL/+NntTBXmnScBWOT92f5HjUz9KvubPzXK72bG8b4i0VaC8rAuU9/V9CmyW6x1rsdGbwDHGIcvH1x5OkqTGZY8s7/+n833JV/7kmW04MOE57y9srir+40TAQ0Gcww8z2NYer0He3JmuNDwfH1K3RvMCVlWQZamXp7lfIksSqoayKkVuDuJOf29ZguM8V/L1/sLmKE7xYTrYOskxW8bwXHuvS2YhNjOcQjPcm+SbMqc+9ip5iSRJjXWMsiQ1rTR3zrENLFYp4vTxM5tj6ZgMrTfPcoxVSNK8oYQrRZKXLVxAIsCf2ZA6pN4ELs0ZNFVp3ELvM0mSGlvDadrbWgy85fd33Xpp+dT9s9xbCpvDOMXHS2/rB+TMj3ZawvUcLsSmqKBbjyC9+fQWrOrcenwXFEVG0VANYWgqWNVOL0nbMhAk241UTUPFxcRBnLxuA6UsGWSIrdlt5sdgHK1sfNVF4bxz1xN3azQvEFxgr4v+A1FVBYt1srV81HUFVcUhRDuVEs+1C788cxHFrytsDhoKlLkQ+HyzbmV2A/Cj8W3Xfkh3azQv2GflxSHdFyjzJ8tKWZJgm1rjhso+GLqGvORbHa/qtnU/X9icFyV0VcbZ6EmB8qIuUG7rjgfGqk7eBd6bwAmx3xfBhyLLEmRZRsm2ZxDb1FC22D/SG9j4xzd/659fnrlI0vynCpvDhmu2WMXxbRa2en6xLBkcq3vvbHsUOEDqfTOFZpqqIsm2Kzs8x0BetNcmQNNUWA0lX5Ik4eOl94cvw9Msh2trGHuPq0fuFhFcZz8lXE2qiqNkVeMp+kPrT+AOPYA9MnQVYbIdOMfWUZas1e/dc61Nydfj3/Vi4kKWxLPdkAXqxkBPj9+keYnbZdxqgXJelJgMrc69EgB6FLhjpuna1nswANDUeuOkaHGWUxQFjm3irqmwefJ8x+Y4zjDxrK0C5brRk9Xqs1TdBa2bB5R7E7g2Ki8ORVXqZ7imLlOfrkbIGpab++Q6dVu9p6elz4Y2DE3eWuZyLhAn2yVcUVKXcL2nx+RrcS6QFyW8hi5oXdCbwGmqvLWTdywkSYKha1sNfoC6rjHLi1ar3mW5Lmx+9vjOk1kuSTNMxw6MJ3Wu97Nbm4qixMDWG0/Rd0FvAudYOoqCde64xa4YhoZ1uN0tWNcUDGwdecs9Fl3HxHyVbC11R56FoWsgTuqxlqzaPLs9nt38IEWUlrDMdmeaNCswHna3m1tvAjd0TeRF0equXZsMXUeclluV+wBwPnZab9Zad/myny35CsIEy1WIpR/g16vh1owy82MMWr74sao4srzAqOFSlK7oTeAURca/fZwgCJOjnOUkqb75xW+Y5YauCUVG63e6WZuSr6d9+i1Tw1/+fI0P5y7+839dbM1ucz9GyUTrJ/PjJMP19HU3p7atN4ED6gsozoYW1kH373J+C8sysHzmbrPpxEHcUrPWexKevztbliSMPavhAhKxadLb7rObEAJpluOsw8tJoGeBA4CPl0M4porVEYZOUxVwgcarlsaehSwv99rGrolp6MhLji+365/67z/friHJypvus3uPNCswHpid3Sy517vAAcCn6xEcQ8F8se5co8/3cmyz8blJliR8vBwiOMDNpeOhCz/M8O0uePG/+3yzRhiXrd/Vx7moe14+OZ3QRVKcFr19IJr5MT7frGFbxqZzb/dKed5itljjX66HGDY8/P/9yxKSrLZwgPMxzgX8dQjH1DAamDAN9cdp9TQrsQpTFExgOHRbL8BbhzEGloZfLryWf+fX63XggPoUwcJPsAxSFKyCpqrQdRWGrvX2sGqWF6jKEv/709nWvwvjHH/7ssT0fHSQBjlpmiPLC5SsghB18bWmKjBN/SDdsIuSYb5Y47/+40MvTpP0PnAPRUmBNCsRpTlWYQ5VkaHrGjRV2bRnkCHJUuc6OTVZrSNcjO2tYy4A8PUuQBAXGA0Pt4QSQmxa/O2/w9hLZos1fpkOGv+cuuioAvdQyTiKkiFKCiRZiSwvkeYMiiJDkWXIsgxZljYNQ6UfjUN/fMXv/wz3/76lsUtS/ULZX0X4y79fN25z//3LEpDVo7gf763WQQzbUPDpenToofy0bjV82CFNlaGpOpwHF9VXvK52Z6w+vsE2d7NxIR585RD3fy+AIMp+/ARv9we59OjLU9Oxg//7eQFdGx1VY9yflaQ5TF3uVdiAI57hdolvlk+ttNHC701MFUV+cfl7Mw8xW6U4Gw968fyyK2XJMF8G+Pd/PX/0A7UPjnaG2yW5XmPi2enmQK7OB2AVh7+KMBkPDj2cVjBWYemH+HQ17F3YgJ6+hyO/+3g5xMDWjrb65iHOBZarEB8uBjhvuMSyDyhwR+DT9Qi2oRx16KqKY+EHmI7srfZ7fUKBOxL3ofNX0dEVd9fPbGtMxzY+9ODl9ksocEfk0/UInqNh6YeN3Zz7KMsLLPwQv14OcX3e/+dU2qU8Qt/nIW4XEUaeC6ODnat+VhilkMExnTiNZW59RIE7Uqsww98+LzBw7daPyrxXxTnWQV0feT31Oteu/D0ocEesZBVu5hHWUQ7XtXpxVXOcZIjiFJdn7lEsIZ+iwJ0AP0gx82NUvD5QqnTwjr08LxFGCYaugYuJC9M4zlfEFLgTcruI8PUugG0ZsC2j9UOiTwkhkOcl4iSDqSuYjh0MB8fxrPYcCtyJuT/OtFgn4AIwjPpYTZt9QCrOkaY50qyAY6qYjl14bjf7SO4aBe6E+UGKIMrhhyk0TYVt1rPePoqhK87rW1GTDHnBcDFxMBqYvSzPeg8KHEFRVojTAn6QYhVmPw7wqqqyuU5LftUMKABUrAJjFVhVoSgZiqK+zWY6duDa+ta936eCAkce4UIginOEcY40Zwjj/Efgmr7WB1HrvzgX9a2tFUfFOTzHgGlocCwNjnW6IXuIAkdeVC8FOVj14OvmOqiq4r8HUJKgKDIMXYGuKdBV5STP6f2R49x7JTujyDIUXcZpbGnsH/0IIqRFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RF/x8qjTga7LYI7gAAAABJRU5ErkJggg=="},NajC:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("mvHQ"),r=a.n(i),l=a("Gu7T"),s=a.n(l),o=a("Ke24"),n=a("Ie7z"),c=a("c4uw"),d=a("vRJf"),u=a("P9l9"),m=a("Ch4/"),g=a("PI0u"),h={name:"use-record",props:{detailShow:{type:Boolean,default:!1},materialId:{type:String,default:""}},data:function(){return{customDialog:!1,activeName:"first",tableData:[],conditionObj:{searchInput:"",materialId:this.materialId},currentPage:1,pageSize:5,total:0}},methods:{toInput:Object(g.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableList:function(e){var t=this,a={materialId:t.conditionObj.materialId,imgTextTitle:t.conditionObj.searchInput||"",relatedType:4,pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(u.a)("/haoban-app-material-web/material-log",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,!1;m.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{detailShow:function(e,t){this.customDialog=e},materialId:function(e,t){e&&(this.conditionObj.materialId=e,this.currentPage=1,this.getTableList())}},mounted:function(){this.customDialog=this.detailShow,this.materialId&&(this.conditionObj.materialId=this.materialId,this.currentPage=1,this.getTableList())}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"记录",visible:e.customDialog,width:"739px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-203",attrs:{placeholder:"请输入标题","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}})],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"发布人",width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.userName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标题","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.phoneNumber||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发布时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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)])],1)},staticRenderFns:[]};var p=a("VU/8")(h,f,!1,function(e){a("TjhY")},"data-v-28498945",null).exports,v=a("l46T"),I=a("Kkt8"),b=a("3E4D"),S={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:o.a,vueSelectStore:n.a,vueSelectEmployee:c.a,materialPreview:d.a,useRecord:p,limitInput:v.a,limitTextarea:I.a},data:function(){return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",topMenuData:[{id:"1",name:"图文素材",path:"/imageText?appIcon="+this.$route.query.appIcon},{id:"2",name:"选择图文"}],tableData:[],searchInput:"",selectType:"",treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0},defaultSelection:[],changed:"",onlyPerson:!1,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},defaultImg:a("FFFL"),currentPage:1,pageSize:6,total:0,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,formData:{materialId:"",imageTextWechatId:"",imageTextGicId:"",titleName:"",imageUrl:"",imageTextUrl:"",rangeList:[],materialTitle:"",materialContent:"",topFlag:!1},rules:{imageTextWechatId:[{required:!0,message:"请选择图文",trigger:"change"}],materialTitle:[{required:!0,message:"请请输入素材标题",trigger:"blur"}],materialContent:[{required:!0,message:"请请输入发送内容",trigger:"blur"}],rangeList:[{validator:function(e,t,a){if(""==t||!t.length)return a(new Error("请选择选择行政架构或门店架构"));a()},trigger:"change"}]},previewVisible:!1,materialPreviewData:{},detailShow:!1,imageTextWechatId:""}},methods:{showRecord:function(e){if(!e.useCount)return!1;this.detailShow=!0,this.imageTextWechatId=e.imageTextWechatId},hideDetailDialog:function(){this.detailShow=!1,this.imageTextWechatId=""},showPreviewDetail:function(e){this.materialPreviewData={materialTitle:e.titleName,materialContent:e.mediaUrl},this.previewVisible=!0},submitForm:function(e,t){var a=this;a.formData.rangeList=[].concat(s()(a.defaultStoreList),s()(a.defaultSelection)),a.$refs[e].validate(function(e){e&&a.postSaveCard(t)})},postSaveCard:function(e){var t=this,a=[];t.formData.rangeList.forEach(function(e){a.push({groupId:2==e.type?e.groupId:"",storeId:3==e.type?e.storeId:"",storeFlag:e.isStoreGroup})});var i={enterpriseId:t.enterpriseId,imageTextWechatId:t.formData.imageTextWechatId,imageTextGicId:t.formData.imageTextGicId,materialContent:t.formData.materialContent,imageTextUrl:t.formData.imageTextUrl,materialTitle:t.formData.materialTitle,rangeListStr:r()(a),topFlag:t.formData.topFlag?1:0,relatedType:1,brandId:t.brandId,userId:t.userId};Object(u.e)("/haoban-app-material-web/material-add",i).then(function(a){var i=a.data;1==i.errorCode&&(b.a.showmsg("新建成功","success"),e?(t.formData={materialId:"",imageTextWechatId:"",imageTextGicId:"",titleName:"",imageUrl:"",imageTextUrl:"",rangeList:[],materialTitle:"",materialContent:"",topFlag:!1},t.defaultStoreList=[],t.defaultSelection=[]):t.$router.push("/imageText?appIcon="+t.$route.query.appIcon)),m.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},previewData:function(e){var t=this;t.formData.rangeList=[].concat(s()(t.defaultStoreList),s()(t.defaultSelection)),t.$refs[e].validate(function(e){e&&(t.tableData.forEach(function(e){e.imageTextWechatId==t.formData.imageTextWechatId&&(t.formData.imageUrl=e.imageUrl,t.formData.titleName=e.titleName)}),t.materialPreviewData=t.formData,t.previewVisible=!0)})},toReturn:function(){this.$router.go(-1)},changeId:function(e,t){this.formData.imageTextWechatId=e,this.formData.imageTextGicId=t.imageTextId},toInput:Object(g.a)(function(e,t){this.currentPage=1,this.getTableList()},200),clearInput:function(){this.currentPage=1,this.getTableList()},showDialogLayer:function(e,t){return!this.$route.query.materialId&&(this.selectType=e,this.changed=e,"store"===e?(this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0})):(this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0},void(this.defaultSelection=t)))},handleSelectedList:function(e){"store"===this.selectType?this.defaultStoreList=e:this.defaultSelection=e,this.formData.rangeList=[].concat(s()(this.defaultStoreList),s()(this.defaultSelection))},delDepart:function(e,t,a){if(this.$route.query.materialId)return!1;t.splice(e,1),this.formData.rangeList=[].concat(s()(this.defaultStoreList),s()(this.defaultSelection))},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getImageData:function(){var e=this,t={materialId:e.$route.query.materialId,brandId:e.brandId};Object(u.a)("/haoban-app-material-web/material-detail",t).then(function(t){var a=t.data;if(1==a.errorCode){var i=[],r=[];return a.result.rangeVOList&&a.result.rangeVOList.forEach(function(e){e.groupId=2==e.type?e.id:"",e.storeId=3==e.type?e.id:"",e.isStoreGroup=e.storeFlag,1==e.storeFlag?i.push(e):r.push(e)}),e.formData={materialId:a.result.materialId,imageTextWechatId:a.result.imageTextWechatId,imageTextUrl:a.result.imageTextUrl,titleName:"",imageUrl:"",materialTitle:a.result.materialTitle,materialContent:a.result.materialContent,topFlag:1==a.result.topFlag,rangeList:a.result.rangeVOList,createTime:a.result.createTime},e.defaultStoreList=i||[],e.defaultSelection=r||[],!1}m.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(e){var t=this,a={title:t.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(u.a)("/haoban-app-material-web/wechat-material-detail",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,t.$route.query.materialId&&t.getImageData(),!1;m.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getTableList()}},w={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log boder-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"new-card-body"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"选择图文:",prop:"imageTextWechatId"}},[a("div",{staticClass:"search-div"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入图文标题",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"chat-log-content boder-box m-t-20"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{disabled:!!e.$route.query.materialId,label:t.row.imageTextWechatId},on:{change:function(a){e.changeId(a,t.row)}},model:{value:e.formData.imageTextWechatId,callback:function(t){e.$set(e.formData,"imageTextWechatId",t)},expression:"formData.imageTextWechatId"}},[e._v(e._s(""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"imageUrl",label:"图片","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell"},[a("img",{staticClass:"img-40",attrs:{src:t.row.imageUrl?t.row.imageUrl:e.defaultImg,alt:""}})])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"titleName",label:"图文标题","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell color-1890ff cursor-pointer",on:{click:function(a){e.showPreviewDetail(t.row)}}},[e._v(e._s(t.row.titleName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"作者","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.authorName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"storeMode",label:"使用记录","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell color-1890ff cursor-pointer",on:{click:function(a){e.showRecord(t.row)}}},[e._v(e._s(t.row.useCount||"--"))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-size":e.pageSize,layout:" prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1):e._e()],1)]),e._v(" "),a("el-form-item",{staticClass:"input-item is-required",attrs:{label:"发送范围:",prop:"rangeList"}},[a("div",{staticClass:"form-item-tip fonr-14 color-909399"},[e._v("下面两项可二选一,非全选。可选择行政架构或门店架构")]),e._v(" "),a("div",{staticClass:"flex"},[a("div",{staticClass:"flex-column item-cell-select inline-block "},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"240px"},on:{click:function(t){e.showDialogLayer("depart",e.defaultSelection)}}},[e.defaultSelection.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择行政架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.defaultSelection,function(t,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(i,e.defaultSelection,"depart")}}})])]})],2)])])])])]),e._v(" "),a("div",{staticClass:"flex m-t-20"},[a("div",{staticClass:"flex-column item-cell-select inline-block"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"240px"},on:{click:function(t){e.showDialogLayer("store",e.defaultStoreList)}}},[e.defaultStoreList.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择门店架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.defaultStoreList,function(t,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(i,e.defaultStoreList,"store")}}})])]})],2)])])])])])]),e._v(" "),a("el-form-item",{attrs:{label:"发送内容标题:",prop:"materialTitle"}},[a("limitInput",{attrs:{disflag:!!e.$route.query.materialId,inputWidth:320,inputValue:e.formData.materialTitle,holder:"请输入素材标题",getByType:"word",maxLength:15},on:{"update:inputValue":function(t){e.$set(e.formData,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"发送内容:",prop:"materialContent"}},[a("limitTextarea",{attrs:{disInput:!!e.$route.query.materialId,inputWidth:320,inputValue:e.formData.materialContent,holder:"请输入素材内容",maxLength:1500},on:{"update:inputValue":function(t){e.$set(e.formData,"materialContent",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"更多设置:",prop:""}},[a("div",[a("el-checkbox",{attrs:{disabled:!!e.$route.query.materialId},model:{value:e.formData.topFlag,callback:function(t){e.$set(e.formData,"topFlag",t)},expression:"formData.topFlag"}},[e._v("置顶")])],1)]),e._v(" "),a("el-form-item",[a("el-button",{on:{click:e.toReturn}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.previewData("ruleForm")}}},[e._v("预览")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.materialId,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("发布")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.materialId,type:"primary"},on:{click:function(t){e.submitForm("ruleForm","flag")}}},[e._v("发布并添加下一个")])],1)],1)],1)],1),e._v(" "),a("vue-select-employee",{attrs:{appScene:e.appScene,defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("material-preview",{ref:"materialPreview",attrs:{materialPreviewData:e.materialPreviewData},model:{value:e.previewVisible,callback:function(t){e.previewVisible=t},expression:"previewVisible"}}),e._v(" "),a("use-record",{attrs:{materialId:e.imageTextWechatId,detailShow:e.detailShow},on:{hideDetailDialog:e.hideDetailDialog}})],1)},staticRenderFns:[]};var D=a("VU/8")(S,w,!1,function(e){a("qm9b")},"data-v-132bf8c0",null);t.default=D.exports},NoP7:function(e,t){},TjhY:function(e,t){},qm9b:function(e,t){},vRJf:function(e,t,a){"use strict";var i=a("mvHQ"),r=a.n(i),l={name:"material-preview",props:{value:{type:Boolean,default:function(){return!1}},materialPreviewData:{type:[Object,Array],default:function(){return{materialId:"",imageTextWechatId:"",imageTextGicId:"",titleName:"",imageUrl:"",rangeList:[],imgUrlList:[],materialTitle:"",materialContent:"",topFlag:!1}}}},directives:{htmlContent:{bind:function(e,t){e.innerHTML=t.value},update:function(e,t){e.innerHTML=t.value}}},data:function(){return{materialData:{materialId:"",imageTextWechatId:"",imageTextGicId:"",rangeList:[],imgUrlList:[],materialTitle:"",materialContent:"",topFlag:!1}}},methods:{closeDialog:function(){this.$emit("input",!1),this.$emit("closePre")}},watch:{value:function(e,t){this.materialData=JSON.parse(r()(this.materialPreviewData))},materialPreviewData:function(e,t){this.materialData=JSON.parse(r()(e))}},mounted:function(){this.materialData=JSON.parse(r()(this.materialPreviewData))}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.value?a("div",{staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._v(" "),a("div",{staticClass:"qr-dialog border-box"},[a("div",{staticClass:"qr-dialog-body border-box"},[a("h2",{staticClass:"font-20 color-222 text-left main-title"},[e._v(e._s(e.materialData.materialTitle))]),e._v(" "),a("div",{staticClass:"notice-date m-t-10 flex flex-space-between"},[a("div",{staticClass:"notice-date-left font-10 color-88949C"},[e._v(e._s(e._f("timeStampToYmd")(e.materialData.materialId?e.materialData.createTime:(new Date).getTime())))]),e._v(" "),a("div",{staticClass:"notice-date-right font-10 color-4d7fd0"})]),e._v(" "),a("div",{directives:[{name:"htmlContent",rawName:"v-htmlContent",value:e.materialData.materialContent,expression:"materialData.materialContent"}],staticClass:"notice-body border-box font-14 color-222"}),e._v(" "),e.materialData.imgUrlList&&e.materialData.imgUrlList.length?a("div",{staticClass:"img-list-wrap"},[a("ul",{staticClass:"flex flex-wrap"},e._l(e.materialData.imgUrlList,function(e,t){return a("li",{key:t+"img",staticClass:"border-box flex flex-align-center flex-pack-center"},[a("img",{attrs:{src:e.imgUrl,alt:""}})])}))]):e._e(),e._v(" "),e.materialData.imageTextWechatId?a("div",{staticClass:"image-text-link"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex-left-img flex flex-align-center flex-pack-center"},[a("img",{attrs:{src:e.materialData.imageUrl,alt:""}})]),e._v(" "),a("div",{staticClass:"flex-right-title border-box"},[a("div",{staticClass:"title-content font-14 color-606266"},[e._v(e._s(e.materialData.titleName))])])])]):e._e()])]),e._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})])]):e._e()},staticRenderFns:[]};var o=a("VU/8")(l,s,!1,function(e){a("NoP7")},"data-v-d6932054",null);t.a=o.exports}});
\ No newline at end of file
webpackJsonp([23],{C5si:function(e,t){},D3fZ:function(e,t){},DbVD:function(e,t){},estW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("mvHQ"),l=a.n(s),o=a("Xxa5"),r=a.n(o),n=a("exGp"),i=a.n(n),c=a("P9l9"),u=a("PI0u"),d={name:"class-select",components:{},props:{workClassShow:{type:Boolean,default:!1},classesId:{type:String,default:""}},data:function(){return{enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,selClassesId:this.classesId,customDialog:!1,tableData:[],classesName:""}},methods:{toInput:Object(u.a)(function(e,t){this.getClassifyData()},500),clearInput:function(){this.currentPage=1,this.getClassifyData()},customConfirm:Object(u.a)(i()(r.a.mark(function e(){var t;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(t=this).customDialog=!1,t.$emit("hideClassDialog",t.selClassesId);case 3:case"end":return e.stop()}},e,this)})),300),handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideClassDialog")},getClassifyData:function(){var e=this,t={enterpriseId:e.enterpriseId,classesName:e.classesName};Object(c.a)("/haoban-app-attence-web/attence-classes-list",t).then(function(t){var a=t.data;1==a.errorCode&&(a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.classessTimesJson&&(e.classessTimesJson=JSON.parse(e.classessTimesJson))}),e.tableData=a.result.list||[])}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{workClassShow:function(e,t){this.customDialog=e},classesId:function(e){e&&(this.selClassesId=e)}},mounted:function(){console.log(this.classesId),this.classesId&&(this.selClassesId=this.classesId),this.customDialog=this.workClassShow}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:e.classesId?"编辑班次":"新建班次",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入班次名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.classesName);var a}},model:{value:e.classesName,callback:function(t){e.classesName=t},expression:"classesName"}})],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{label:t.row.classesId},on:{change:function(a){e.changeId(a,t.row)}},model:{value:e.selClassesId,callback:function(t){e.selClassesId=t},expression:"selClassesId"}},[e._v(e._s(""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"imageUrl",label:"班次名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.classesName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"titleName",label:"考勤时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell color-1890ff cursor-pointer",on:{click:function(a){e.showPreviewDetail(t.row)}}},[e._v(e._s(t.row.titleName||"--"))])]}}])})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return t.stopPropagation(),e.customCancel(t)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){t.stopPropagation(),e.customConfirm("ruleForm")}}},[e._v("确定")])],1)])],1)},staticRenderFns:[]};var m,f=a("VU/8")(d,p,!1,function(e){a("D3fZ")},"data-v-575125b6",null).exports,g={name:"class-select",components:{},props:{mapShow:{type:Boolean,default:!1}},data:function(){var e=this;return{enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,selClassesId:this.classesId,customDialog:!1,ruleForm:{address:""},rules:{address:[{required:!0,message:"请选择考勤地点",trigger:"blur"}]},zoom:12,center:[120.12497,30.277155],address:"",plugin:[{pName:"ToolBar"}],events:{click:function(t){var a=t.lnglat,s=a.lng,l=a.lat;e.lng=s,e.lat=l,new AMap.Geocoder({radius:1e3,extensions:"all"}).getAddress([s,l],function(t,a){"complete"===t&&"OK"===a.info&&a&&a.regeocode&&(e.address=a.regeocode.formattedAddress,e.ruleForm.address=a.regeocode.formattedAddress,e.$nextTick())})}},lng:0,lat:0}},methods:{customConfirm:Object(u.a)((m=i()(r.a.mark(function e(t){var a;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=this,this.$refs[t].validate(function(e){e&&(a.customDialog=!1,a.$emit("hideMapDialog",{address:a.address,longitude:a.lng,latitude:a.lat}))});case 2:case"end":return e.stop()}},e,this)})),function(e){return m.apply(this,arguments)}),300),handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideMapDialog")}},watch:{mapShow:function(e,t){this.customDialog=e}},mounted:function(){this.customDialog=this.mapShow}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"考勤地点",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",{staticClass:"amap-page-container"},[a("el-amap",{staticClass:"amap-demo",attrs:{vid:"amapDemo",center:e.center,zoom:e.zoom,plugin:e.plugin,events:e.events}}),e._v(" "),a("div",{staticClass:"toolbar m-t-20"},[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:"address"}},[a("el-input",{model:{value:e.ruleForm.address,callback:function(t){e.$set(e.ruleForm,"address",t)},expression:"ruleForm.address"}})],1)],1)],1)],1)]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return t.stopPropagation(),e.customCancel(t)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){t.stopPropagation(),e.customConfirm("ruleForm")}}},[e._v("确定")])],1)])],1)},staticRenderFns:[]};var h=a("VU/8")(g,v,!1,function(e){a("DbVD")},"data-v-4fef3c2c",null).exports,D=a("Ke24"),y=a("l46T"),_=a("Ie7z"),S=a("c4uw"),b=a("Kkt8"),w={name:"workGroupSet",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"haoban-manage-web",topMenuData:[{id:"1",name:"考勤组管理",path:"/workSet?appIcon="+this.$route.query.appIcon},{id:"2",name:this.$route.query.attenceGroupId?"编辑考勤组":"新建考勤组",path:""}],classifyOptions:[],activeId:"2",activeBrand:this.brandId,activeGroup:this.activeGroupId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,ruleFormData:{attenceGroupId:"",attenceType:1,attenceRangeType:!1,attenceRangeStoreType:!1,adminList:[],storeList:[],noAttenceRangeType:!1,noAttenceRangeStoreType:!1,noAdminList:[],noStoreList:[],lawFreeFlag:!1,clockDistance:"",storeClockFlag:!1,gpsFlag:!1,distanceAddress:[{address:"",longitude:"",latitude:""}],attenceRangeJson:[{rangeType:"",userId:"",storeId:"",groupId:"",storeFlag:""}],sperialRangeJson:[{attenceDate:"",sperialType:""}],mustJson:[],noMustJson:[],attenceWorkJson:[{weekDay:"周一",workType:!1,classesName:"",classesId:"",classessTimesJson:""},{weekDay:"周二",workType:!1,classesName:"",classesId:"",classessTimesJson:""},{weekDay:"周三",workType:!1,classesName:"",classesId:"",classessTimesJson:""},{weekDay:"周四",workType:!1,classesName:"",classesId:"",classessTimesJson:""},{weekDay:"周五",workType:!1,classesName:"",classesId:"",classessTimesJson:""},{weekDay:"周六",workType:!1,classesName:"",classesId:"",classessTimesJson:""},{weekDay:"周日",workType:!1,classesName:"",classesId:"",classessTimesJson:""}],attenceClassesRangeJSON:{ranageName:"",classes:{classesId:"",times:""}}},rules:{attenceGroupName:[{required:!0,message:"请输入考勤组名称",trigger:"blur"}],content:[{required:!0,message:"请输入公告内容",trigger:"blur"}],sendType:[{required:!0,message:"请选择发送方式",trigger:"change"}]},wxFlag:1,actionUrl:"/haoban-manage-web/upload-img",datePickerBool:!1,dateValue:"",selectType:"",treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0},defaultSelection:[],changed:"",onlyPerson:!1,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1},defaultStoreBool:!1,saveDataBool:!0,showEffect:!1,showClassesFlag:!1,multipleSelection:[],distance:[{value:"50",label:"50米"}],mapShow:!1}},methods:{addMap:function(){this.mapShow=!0},hideMapDialog:function(e){if(console.log(e),this.mapShow=!1,!e)return!1;this.distanceAddress.push({address:e.address,longitude:e.longitude,latitude:e.latitude})},showClasses:function(){this.workClassShow=!0},modClasses:function(e){console.log(e),this.classesId=e.classesId||"",this.workClassShow=!0},hideClassDialog:function(){this.workClassShow=!1},handleSelectionChange:function(e){console.log(e),this.multipleSelection=e},selectBrandId:function(e,t){this.brandId=e},cancelSend:function(){var e=this;if(e.$route.query.attenceGroupId)return e.$router.go(-1),!1;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(){})},showDialogLayer:function(e,t){return!this.$route.query.attenceGroupId&&(this.selectType=e,this.changed=e,"store"===e?(this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0,openNextBool:!0})):(this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0,openNextBool:!0},void(this.defaultSelection=t)))},handleSelectedList:function(e){"store"===this.selectType?(this.ruleFormData.storeStructor=e,this.defaultStoreList=e):(this.ruleFormData.adminStructor=e,this.defaultSelection=e),this.ruleFormData.sendArea=e},delDepart:function(e,t,a){if(this.$route.query.attenceGroupId)return!1;t.splice(e,1)},changeMyDate:function(){this.dateValue?this.saveDataBool=!0:this.datePickerBool=!0},changeSendType:function(e){"0"==e&&(this.saveDataBool=!0)},sendData:Object(u.a)(function(e){var t=this;t.ruleFormData.adminCheck||t.ruleFormData.storeCheck||(t.defaultStoreBool=!0,t.saveDataBool=!1),t.ruleFormData.adminCheck&&!t.ruleFormData.adminStructor.length&&(t.defaultStoreBool=!0,t.saveDataBool=!1),t.ruleFormData.storeCheck&&!t.ruleFormData.storeStructor.length&&(t.defaultStoreBool=!0,t.saveDataBool=!1),"1"!=t.ruleFormData.sendType||t.dateValue||(t.datePickerBool=!0,t.saveDataBool=!1),""!=t.$refs.tinymceWrap.tinymceHtml&&(t.ruleFormData.content=t.$refs.tinymceWrap.tinymceHtml);var a=[];t.ruleFormData.adminCheck&&t.ruleFormData.adminStructor.length&&(a=t.ruleFormData.adminStructor.map(function(e){return{id:e.id,name:e.name||e.label,type:e.type}}));var s=[];t.ruleFormData.storeCheck&&t.ruleFormData.storeStructor.length&&(s=t.ruleFormData.storeStructor.map(function(e){return{id:e.id,name:e.name||e.label,type:e.type}})),t.$refs[e].validate(function(e){if(!e)return!1;var o={adminCheck:t.ruleFormData.adminCheck?1:0,storeCheck:t.ruleFormData.storeCheck?1:0,adminStructor:l()(a),storeStructor:l()(s),receiveType:t.ruleFormData.receiveType,labelId:t.ruleFormData.labelId||"",title:t.ruleFormData.title,imgUrl:t.ruleFormData.imgUrl,content:t.ruleFormData.content,sendType:t.ruleFormData.sendType,sendTime:t.dateValue,brandId:t.brandId,userId:t.userId,enterpriseId:t.enterpriseId,pageTop:t.ruleFormData.pageTop?1:0,newSeeFlag:t.ruleFormData.newSeeFlag?1:0,watermarkFlag:t.ruleFormData.watermarkFlag?1:0};t.saveDataBool&&Object(c.e)("/haoban-app-attence-web/attence-add",o).then(function(e){var a=e.data;1==a.errorCode?(t.$message.success("编辑成功"),t.$router.go(-1)):t.$message.error(a.message)})})},500),getClassifyData:function(){var e=this,t={enterpriseId:e.enterpriseId};Object(c.a)("/haoban-app-attence-web/attence-classes-list",t).then(function(t){var a=t.data;1==a.errorCode&&(a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.classessTimesJson&&(e.classessTimesJson=JSON.parse(e.classessTimesJson))}),e.classifyList=a.result.list||[])}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getGroupData:function(){var e=this,t={attenceGroupId:e.$route.query.attenceGroupId};Object(c.a)("/haoban-app-attence-web/attence-detail",t).then(function(t){var a=t.data;1==a.errorCode&&(a.result.adminCheck=0!=a.result.adminCheck,a.result.storeCheck=0!=a.result.storeCheck,a.result.adminStructor=a.result.adminStructor?JSON.parse(a.result.adminStructor):[],a.result.storeStructor=a.result.storeStructor?JSON.parse(a.result.storeStructor):[],e.defaultSelection=a.result.adminStructor,e.defaultStoreList=a.result.storeStructor,a.result.pageTop=!!a.result.pageTop,a.result.newSeeFlag=!!a.result.newSeeFlag,a.result.watermarkFlag=!!a.result.watermarkFlag,a.result.sendType=String(a.result.sendType),a.result.receiveType=String(a.result.receiveType),e.dateValue=Object(u.c)(a.result.sendTime),e.noticePreviewData=JSON.parse(l()(a.result)),e.ruleFormData=JSON.parse(l()(a.result)))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setDistance:function(){for(var e=1;e<11;e++)this.distance.push({value:100*e,label:100*e+"米"});this.distance.push({value:2e3,label:"2000米"})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getClassifyData())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},components:{commonDetailTop:D.a,limitInput:y.a,limitTextarea:b.a,vueSelectStore:_.a,vueSelectEmployee:S.a,classSelect:f,mapSelect:h},mounted:function(){var e=this;e.getClassifyData(),e.setDistance(),e.$route.query.attenceGroupId&&e.$nextTick(function(){e.getNoticeData()})}},C={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"notice-list-wrap"},[a("div",{staticClass:"notice-list"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("el-form",{ref:"noteForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleFormData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{staticClass:"input-item",attrs:{label:"考勤组名称:",prop:"attenceGroupName"}},[a("limitInput",{attrs:{disflag:!!e.$route.query.attenceGroupId,inputWidth:286,inputValue:e.ruleFormData.attenceGroupName,holder:"请输入考勤组名称",getByType:"word",maxLength:15},on:{"update:inputValue":function(t){e.$set(e.ruleFormData,"attenceGroupName",t)}}})],1),e._v(" "),a("el-form-item",{staticClass:"input-item",attrs:{label:"参与考勤人员:",prop:""}},[a("div",{staticClass:"flex"},[a("el-checkbox",{attrs:{disabled:!!e.$route.query.attenceGroupId},model:{value:e.ruleFormData.attenceRangeType,callback:function(t){e.$set(e.ruleFormData,"attenceRangeType",t)},expression:"ruleFormData.attenceRangeType"}},[e._v("行政架构")]),e._v(" "),e.ruleFormData.attenceRangeType?a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"470px"},on:{click:function(t){e.showDialogLayer("depart",e.ruleFormData.adminList)}}},[e.ruleFormData.adminList.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择行政架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.ruleFormData.adminList,function(t,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(s,e.ruleFormData.adminList,"depart")}}})])]})],2)])])])]):e._e()],1),e._v(" "),a("div",{staticClass:"flex m-t-20"},[a("el-checkbox",{attrs:{disabled:!!e.$route.query.attenceGroupId},model:{value:e.ruleFormData.attenceRangeStoreType,callback:function(t){e.$set(e.ruleFormData,"attenceRangeStoreType",t)},expression:"ruleFormData.attenceRangeStoreType"}},[e._v("门店架构")]),e._v(" "),e.ruleFormData.attenceRangeStoreType?a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"330px"},on:{click:function(t){e.showDialogLayer("store",e.ruleFormData.storeList)}}},[e.ruleFormData.storeList.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择门店架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.ruleFormData.storeList,function(t,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(s,e.ruleFormData.storeList,"store")}}})])]})],2)])])])]):e._e()],1)]),e._v(" "),a("el-form-item",{staticClass:"input-item",attrs:{label:"考勤白名单:",prop:""}},[a("div",{staticClass:"flex"},[a("el-checkbox",{attrs:{disabled:!!e.$route.query.attenceGroupId},model:{value:e.ruleFormData.noAttenceRangeType,callback:function(t){e.$set(e.ruleFormData,"noAttenceRangeType",t)},expression:"ruleFormData.noAttenceRangeType"}},[e._v("行政架构")]),e._v(" "),e.ruleFormData.noAttenceRangeType?a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"470px"},on:{click:function(t){e.showDialogLayer("depart",e.ruleFormData.noAdminList)}}},[e.ruleFormData.noAdminList.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择行政架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.ruleFormData.noAdminList,function(t,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(s,e.ruleFormData.noAdminList,"depart")}}})])]})],2)])])])]):e._e()],1),e._v(" "),a("div",{staticClass:"flex m-t-20"},[a("el-checkbox",{attrs:{disabled:!!e.$route.query.attenceGroupId},model:{value:e.ruleFormData.noAttenceRangeStoreType,callback:function(t){e.$set(e.ruleFormData,"noAttenceRangeStoreType",t)},expression:"ruleFormData.noAttenceRangeStoreType"}},[e._v("门店架构")]),e._v(" "),e.ruleFormData.noAttenceRangeStoreType?a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"330px"},on:{click:function(t){e.showDialogLayer("store",e.ruleFormData.noStoreList)}}},[e.ruleFormData.noStoreList.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择门店架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.ruleFormData.noStoreList,function(t,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(s,e.ruleFormData.noStoreList,"store")}}})])]})],2)])])])]):e._e()],1)]),e._v(" "),a("el-form-item",{attrs:{label:"考勤类型:",prop:""}},[a("div",{staticClass:"work-type m-b-8"},[a("el-radio",{attrs:{label:1},model:{value:e.ruleFormData.attenceType,callback:function(t){e.$set(e.ruleFormData,"attenceType",t)},expression:"ruleFormData.attenceType"}},[e._v("固定时间上下班【所有人按照相同时间打卡】")]),e._v(" "),a("div",{staticClass:"line-h-15 font-14 color-909399"},[e._v("适用于:办公室等")])],1),e._v(" "),a("div",{staticClass:"work-type m-b-8"},[a("el-radio",{attrs:{label:2},model:{value:e.ruleFormData.attenceType,callback:function(t){e.$set(e.ruleFormData,"attenceType",t)},expression:"ruleFormData.attenceType"}},[e._v("排班时间上下班【不同人员根据各自排班打卡】")]),e._v(" "),a("div",{staticClass:"line-h-15 font-14 color-909399"},[e._v("适用于:工厂、门店等")])],1)]),e._v(" "),1==e.ruleFormData.attenceType?a("el-form-item",{attrs:{label:"工作日设置:",prop:""}},[a("div",{staticClass:"quick-set-table"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"567px"},attrs:{data:e.ruleFormData.attenceWorkJson,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-checkbox",{model:{value:t.row.workType,callback:function(a){e.$set(t.row,"workType",a)},expression:"scope.row.workType"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"工作日",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.weekDay))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"排班时间段",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.workType?t.row.weekDay:"休息"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){a.stopPropagation(),e.modClasses(t.row)}}},[e._v("更改班次")])]}}])})],1)],1),e._v(" "),a("div",[a("el-checkbox",{model:{value:e.ruleFormData.lawFreeFlag,callback:function(t){e.$set(e.ruleFormData,"lawFreeFlag",t)},expression:"ruleFormData.lawFreeFlag"}},[e._v("法定节假日自动排休")])],1)]):e._e(),e._v(" "),2==e.ruleFormData.attenceType?a("el-form-item",{attrs:{label:"考勤班次:",prop:""}},[a("div",{staticClass:"tags-classes"})]):e._e(),e._v(" "),2==e.ruleFormData.attenceType?a("el-form-item",{attrs:{label:"排班周期:",prop:""}}):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"考勤方式:",prop:""}},[a("div",[a("el-checkbox",{model:{value:e.ruleFormData.gpsFlag,callback:function(t){e.$set(e.ruleFormData,"gpsFlag",t)},expression:"ruleFormData.gpsFlag"}},[e._v("GPS打卡")])],1),e._v(" "),a("div",{staticClass:"gps-body p-20 bg-f7f8fa",staticStyle:{width:"567px"}},[a("div",[e._v("根据工作地点考勤(可添加多个考勤地点)")]),e._v(" "),a("div",[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.addMap}},[e._v("添加考勤地点")]),e._v(" "),a("span",[e._v("有效范围")]),e._v(" "),a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.ruleFormData.clockDistance,callback:function(t){e.$set(e.ruleFormData,"clockDistance",t)},expression:"ruleFormData.clockDistance"}},e._l(e.distance,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),e.ruleFormData.distanceAddress.length?a("div",{staticClass:"m-t-20"},[a("el-table",{staticStyle:{width:"567px"},attrs:{data:e.ruleFormData.distanceAddress,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"name",label:"考勤地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.address))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"操作","show-overflow-tooltip":""}},[a("el-button",{attrs:{type:"text",plain:""},on:{click:function(t){e.delGps(e.scope.row)}}},[e._v("删除")])],1)],1)],1):e._e(),e._v(" "),a("div",[a("el-checkbox",{model:{value:e.ruleFormData.storeClockFlag,callback:function(t){e.$set(e.ruleFormData,"storeClockFlag",t)},expression:"ruleFormData.storeClockFlag"}},[e._v("根据门店地址经纬度自动配置")]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v("如门店经纬度有误,请在通讯录修改门店相关信息,未设置门店打卡无须选择此项")])],1)])]),e._v(" "),a("el-form-item",[a("div",{staticClass:"btn-wrap"},[a("el-button",{attrs:{plain:""},on:{click:e.cancelSend}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.attenceGroupId,type:"primary"},on:{click:function(t){e.showEffect=!0}}},[e._v("保存")])],1)])],1)],1),e._v(" "),a("vue-select-employee",{attrs:{appScene:e.appScene,defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("el-dialog",{attrs:{title:"选择规则生效时间",visible:e.showEffect,width:"420px","before-close":e.handleClose},on:{"update:visible":function(t){e.showEffect=t}}},[a("span",[e._v("立即生效:今日考勤结果将按新规则重算")]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.sendData("noteForm")}}},[e._v("明天生效")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.sendData("noteForm")}}},[e._v("立即生效")])],1)]),e._v(" "),a("class-select",{attrs:{workClassShow:e.workClassShow,classesId:e.classesId},on:{hideClassDialog:e.hideClassDialog}}),e._v(" "),a("map-select",{attrs:{mapShow:e.mapShow},on:{hideMapDialog:e.hideMapDialog}})],1)},staticRenderFns:[]};var k=a("VU/8")(w,C,!1,function(e){a("C5si")},"data-v-c574f1c8",null);t.default=k.exports}});
\ No newline at end of file
webpackJsonp([23],{"738z":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("3Xzz"),s=i("elmV"),n=i("P9l9"),l=i("O3H5"),o={name:"employee-io",components:{navCrumb:a.a,uploadExcelComponent:s.a,exportSet:l.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:"/employeeRecord"},{name:"导入员工档案",path:""}],windowH:window.screen.availHeight-180+"px",host:window.location.origin,type:"import",fileList:[],url:t+"/haoban-manage-web/record/record-template-file-upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,tempList:[],dialogVisible:!1}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode,pageNum:t.currentPage,pageSize:t.pageSize};Object(n.a)("/haoban-manage-web/record/find-error-log",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.formatData(e.data.result.template,e.data.result.page.result)):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatData:function(t,e){var i=[];t.forEach(function(t){i.push({fieldCode:t.fieldCode,fieldName:t.fieldName})}),this.tempList=i,this.logList=e,this.loading=!1},beforeAvatarUpload:function(t){var e=t.name.lastIndexOf(".");if(e<0)return this.$message.error("文件格式不正确!"),!1;var i=t.name.substring(e+1,t.name.length),a=i.includes("xls")||i.includes("xlsx");return a||this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),a},uploadSuccess:function(t,e){var i=this;1==t.errorCode?(i.fileList=[],i.$forceUpdate(),i.$message({message:t.message,type:"success"}),i.$nextTick(function(){i.fileList=[]})):i.$message.error(t.message)},submitUpload:function(t){this.$refs[t].submit()},handleRemove:function(t,e){this.fileList=[]},getChange:function(t,e){var i=e.length-1<0?0:e.length-1,a=t.name.lastIndexOf("."),s=t.name.substring(a+1,t.name.length);if(!(s.includes("xls")||s.includes("xlsx")))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(i,1),!1;this.fileList=[e[i]]},callExport:function(){this.dialogVisible=!0},cancelCho:function(){this.dialogVisible=!1}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"common-set-wrap record-io-wrap",style:{height:t.windowH}},[i("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"io-container"},[t.dialogVisible?[i("export-set",{on:{cancelCho:t.cancelCho}})]:[t._m(0),t._v(" "),i("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[i("el-radio-button",{attrs:{label:"import"}},[t._v("导入员工档案")]),t._v(" "),i("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载模板\n "),i("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/record/export-record-template.json"}},[i("el-button",{attrs:{type:"primary"}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"before-upload":t.beforeAvatarUpload,"on-success":t.uploadSuccess,"on-change":t.getChange,"on-remove":t.handleRemove}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出员工档案\n "),i("a",{staticClass:"d-u-btn"},[i("el-button",{attrs:{type:"primary"},on:{click:t.callExport}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传更新后的员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"on-success":t.uploadSuccess,"on-change":t.getChange}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):i("div",{staticClass:"error-log import"},[i("div",{staticClass:"title-area"},[t._m(1),t._v(" "),i("a",{attrs:{href:t.host+"/haoban-manage-web/record/error-log-export?importCode="+t.$route.query.importCode}},[i("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList,height:"400"}},[i("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldValue",label:"字段值"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldName",label:"字段名"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"failReason",label:"错误原因"}}),t._v(" "),t._l(t.tempList,function(t){return[i("el-table-column",{key:t.fieldCode,attrs:{width:"200",label:t.fieldName,prop:t.fieldCode}})]})],2),t._v(" "),t.logList.length?i("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)]],2)])]),t._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{staticClass:"tip-area"},[i("li",{staticClass:"tip"},[t._v("\n 姓名必须和好办企业通讯录中的员工姓名保持一致,手机号必须为员工注册好办的手机号\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 员工档案导入时,直接以手机号去做匹配,通讯录中不存在的将无法导入(模板中配置的部门、职位、code,这些字段信息请保持与企业通讯录中一致,这几个字段的信息将不会修改通讯录的信息,直接取该成员对应的通讯录的字段信息)\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("如果想要新增字段,可在后台档案设置中增加,再导入模板")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("字段类型为图片上传、多选的字段无法导入、导出")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("确保导入的表头字段和后台配置表头字段的名称一致(模板下载时间不可修改)")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tip"},[this._v("导入总条数:0条,成功导入0条,"),e("span",{staticClass:"red"},[this._v("错误导入0条")])])}]};var c=i("VU/8")(o,r,!1,function(t){i("zcLw")},null,null);e.default=c.exports},O3H5:function(t,e,i){"use strict";var a=i("mvHQ"),s=i.n(a),n=i("P9l9"),l=i("DAYN"),o={name:"export-set",components:{draggable:i.n(l).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{deleteField:function(t){this.checkedList.splice(t,1);var e=this.checkedList.map(function(t){return t.fieldCode});this.origin.forEach(function(t,i){e.includes(t.fieldCode)?t.checked=!0:t.checked=!1}),this.checkHalf()},checkHalf:function(){if(0===this.checkedList.length)return this.isIndeterminate=!1,!1;this.checkedList.length===this.origin.length?this.isIndeterminate=!1:this.isIndeterminate=!0},checkThis:function(t){var e=this;t.checked?e.checkedList.push(t):e.checkedList.forEach(function(i,a){i.fieldCode===t.fieldCode&&e.checkedList.splice(a,1)}),e.checkHalf()},handleCheckAllChange:function(t){this.checkedList=[],this.origin.forEach(function(e,i){e.checked=t,t&&(e.order=i+1)}),t&&(this.checkedList=this.origin.slice(0)),this.checkHalf()},getTemplate:function(){var t=this;Object(n.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(e){1==e.data.errorCode?t.formatTemplateList(e.data.result):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(t){var e=[],i=[],a=t;t.forEach(function(t){t.title=t.fieldName,t.name=t.fieldName,t.checked=!1;var i=[];a.forEach(function(e){e.parentCode==t.fieldCode&&i.push(e)}),i.sort(function(t,e){return 1*t.sort-1*e.sort}),i.length>0&&(t.childrens=i),0==t.parentCode&&e.push(t)}),e.sort(function(t,e){return 1*t.sort-1*e.sort}),e.forEach(function(t){i=i.concat(t.childrens)}),this.origin=i,this.tempList=e},cancelCho:function(){this.origin.forEach(function(t){t.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var t=[];this.checkedList.forEach(function(e){e.checked&&t.push({fieldCode:e.fieldCode,fieldName:e.fieldName})});s()(t);var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com"),location.href=e+"/haoban-manage-web/record/define-export?exportTitleContent="+s()(t),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"export-set-container"},[t._m(0),t._v(" "),i("div",{staticClass:"cho-list"},[i("draggable",{model:{value:t.checkedList,callback:function(e){t.checkedList=e},expression:"checkedList"}},[t._l(t.checkedList,function(e,a){return[e.checked?i("div",{key:e.fieldCode+a,staticClass:"cho"},[t._v(t._s(e.fieldName)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(e){t.deleteField(a)}}})]):t._e()]})],2)],1),t._v(" "),i("div",{staticClass:"cho-area"},[i("div",{staticClass:"title"},[t._v("选择需要导出的字段")]),t._v(" "),i("div",{staticClass:"cho-area-group"},[i("div",{staticClass:"group-div"},[i("div",{staticClass:"group-title"}),t._v(" "),i("ul",{staticClass:"group-son-list"},[i("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选")])],1)]),t._v(" "),t._l(t.tempList,function(e,a){return i("div",{key:e.fieldCode+a,staticClass:"group-div"},[i("div",{staticClass:"group-title"},[t._v(t._s(e.title))]),t._v(" "),i("ul",{staticClass:"group-son-list"},[t._l(t.origin,function(a){return[a.parentCode==e.fieldCode?i("li",{key:a.fieldCode},[i("el-checkbox",{key:a.fieldCode,attrs:{label:a.fieldName},on:{change:function(e){t.checkThis(a)}},model:{value:a.checked,callback:function(e){t.$set(a,"checked",e)},expression:"items.checked"}},[t._v(t._s(a.fieldName))])],1):t._e()]})],2)])})],2)]),t._v(" "),i("div",{staticClass:"handle-cho-btn"},[i("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:t.checkedList.length<1},on:{click:t.exportCho}},[i("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")]),t._v(" "),i("el-button",{on:{click:t.cancelCho}},[t._v("取消")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"title"},[this._v("已选择字段"),e("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var c=i("VU/8")(o,r,!1,function(t){i("fI5Z")},null,null);e.a=c.exports},fI5Z:function(t,e){},zcLw:function(t,e){}}); webpackJsonp([24],{"738z":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("3Xzz"),s=i("elmV"),n=i("P9l9"),l=i("O3H5"),o={name:"employee-io",components:{navCrumb:a.a,uploadExcelComponent:s.a,exportSet:l.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:"/employeeRecord"},{name:"导入员工档案",path:""}],windowH:window.screen.availHeight-180+"px",host:window.location.origin,type:"import",fileList:[],url:t+"/haoban-manage-web/record/record-template-file-upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,tempList:[],dialogVisible:!1}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode,pageNum:t.currentPage,pageSize:t.pageSize};Object(n.a)("/haoban-manage-web/record/find-error-log",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.formatData(e.data.result.template,e.data.result.page.result)):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatData:function(t,e){var i=[];t.forEach(function(t){i.push({fieldCode:t.fieldCode,fieldName:t.fieldName})}),this.tempList=i,this.logList=e,this.loading=!1},beforeAvatarUpload:function(t){var e=t.name.lastIndexOf(".");if(e<0)return this.$message.error("文件格式不正确!"),!1;var i=t.name.substring(e+1,t.name.length),a=i.includes("xls")||i.includes("xlsx");return a||this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),a},uploadSuccess:function(t,e){var i=this;1==t.errorCode?(i.fileList=[],i.$forceUpdate(),i.$message({message:t.message,type:"success"}),i.$nextTick(function(){i.fileList=[]})):i.$message.error(t.message)},submitUpload:function(t){this.$refs[t].submit()},handleRemove:function(t,e){this.fileList=[]},getChange:function(t,e){var i=e.length-1<0?0:e.length-1,a=t.name.lastIndexOf("."),s=t.name.substring(a+1,t.name.length);if(!(s.includes("xls")||s.includes("xlsx")))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(i,1),!1;this.fileList=[e[i]]},callExport:function(){this.dialogVisible=!0},cancelCho:function(){this.dialogVisible=!1}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"common-set-wrap record-io-wrap",style:{height:t.windowH}},[i("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"io-container"},[t.dialogVisible?[i("export-set",{on:{cancelCho:t.cancelCho}})]:[t._m(0),t._v(" "),i("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[i("el-radio-button",{attrs:{label:"import"}},[t._v("导入员工档案")]),t._v(" "),i("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载模板\n "),i("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/record/export-record-template.json"}},[i("el-button",{attrs:{type:"primary"}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"before-upload":t.beforeAvatarUpload,"on-success":t.uploadSuccess,"on-change":t.getChange,"on-remove":t.handleRemove}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出员工档案\n "),i("a",{staticClass:"d-u-btn"},[i("el-button",{attrs:{type:"primary"},on:{click:t.callExport}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传更新后的员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"on-success":t.uploadSuccess,"on-change":t.getChange}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):i("div",{staticClass:"error-log import"},[i("div",{staticClass:"title-area"},[t._m(1),t._v(" "),i("a",{attrs:{href:t.host+"/haoban-manage-web/record/error-log-export?importCode="+t.$route.query.importCode}},[i("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList,height:"400"}},[i("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldValue",label:"字段值"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldName",label:"字段名"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"failReason",label:"错误原因"}}),t._v(" "),t._l(t.tempList,function(t){return[i("el-table-column",{key:t.fieldCode,attrs:{width:"200",label:t.fieldName,prop:t.fieldCode}})]})],2),t._v(" "),t.logList.length?i("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)]],2)])]),t._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{staticClass:"tip-area"},[i("li",{staticClass:"tip"},[t._v("\n 姓名必须和好办企业通讯录中的员工姓名保持一致,手机号必须为员工注册好办的手机号\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 员工档案导入时,直接以手机号去做匹配,通讯录中不存在的将无法导入(模板中配置的部门、职位、code,这些字段信息请保持与企业通讯录中一致,这几个字段的信息将不会修改通讯录的信息,直接取该成员对应的通讯录的字段信息)\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("如果想要新增字段,可在后台档案设置中增加,再导入模板")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("字段类型为图片上传、多选的字段无法导入、导出")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("确保导入的表头字段和后台配置表头字段的名称一致(模板下载时间不可修改)")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tip"},[this._v("导入总条数:0条,成功导入0条,"),e("span",{staticClass:"red"},[this._v("错误导入0条")])])}]};var c=i("VU/8")(o,r,!1,function(t){i("zcLw")},null,null);e.default=c.exports},O3H5:function(t,e,i){"use strict";var a=i("mvHQ"),s=i.n(a),n=i("P9l9"),l=i("DAYN"),o={name:"export-set",components:{draggable:i.n(l).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{deleteField:function(t){this.checkedList.splice(t,1);var e=this.checkedList.map(function(t){return t.fieldCode});this.origin.forEach(function(t,i){e.includes(t.fieldCode)?t.checked=!0:t.checked=!1}),this.checkHalf()},checkHalf:function(){if(0===this.checkedList.length)return this.isIndeterminate=!1,!1;this.checkedList.length===this.origin.length?this.isIndeterminate=!1:this.isIndeterminate=!0},checkThis:function(t){var e=this;t.checked?e.checkedList.push(t):e.checkedList.forEach(function(i,a){i.fieldCode===t.fieldCode&&e.checkedList.splice(a,1)}),e.checkHalf()},handleCheckAllChange:function(t){this.checkedList=[],this.origin.forEach(function(e,i){e.checked=t,t&&(e.order=i+1)}),t&&(this.checkedList=this.origin.slice(0)),this.checkHalf()},getTemplate:function(){var t=this;Object(n.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(e){1==e.data.errorCode?t.formatTemplateList(e.data.result):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(t){var e=[],i=[],a=t;t.forEach(function(t){t.title=t.fieldName,t.name=t.fieldName,t.checked=!1;var i=[];a.forEach(function(e){e.parentCode==t.fieldCode&&i.push(e)}),i.sort(function(t,e){return 1*t.sort-1*e.sort}),i.length>0&&(t.childrens=i),0==t.parentCode&&e.push(t)}),e.sort(function(t,e){return 1*t.sort-1*e.sort}),e.forEach(function(t){i=i.concat(t.childrens)}),this.origin=i,this.tempList=e},cancelCho:function(){this.origin.forEach(function(t){t.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var t=[];this.checkedList.forEach(function(e){e.checked&&t.push({fieldCode:e.fieldCode,fieldName:e.fieldName})});s()(t);var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com"),location.href=e+"/haoban-manage-web/record/define-export?exportTitleContent="+s()(t),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"export-set-container"},[t._m(0),t._v(" "),i("div",{staticClass:"cho-list"},[i("draggable",{model:{value:t.checkedList,callback:function(e){t.checkedList=e},expression:"checkedList"}},[t._l(t.checkedList,function(e,a){return[e.checked?i("div",{key:e.fieldCode+a,staticClass:"cho"},[t._v(t._s(e.fieldName)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(e){t.deleteField(a)}}})]):t._e()]})],2)],1),t._v(" "),i("div",{staticClass:"cho-area"},[i("div",{staticClass:"title"},[t._v("选择需要导出的字段")]),t._v(" "),i("div",{staticClass:"cho-area-group"},[i("div",{staticClass:"group-div"},[i("div",{staticClass:"group-title"}),t._v(" "),i("ul",{staticClass:"group-son-list"},[i("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选")])],1)]),t._v(" "),t._l(t.tempList,function(e,a){return i("div",{key:e.fieldCode+a,staticClass:"group-div"},[i("div",{staticClass:"group-title"},[t._v(t._s(e.title))]),t._v(" "),i("ul",{staticClass:"group-son-list"},[t._l(t.origin,function(a){return[a.parentCode==e.fieldCode?i("li",{key:a.fieldCode},[i("el-checkbox",{key:a.fieldCode,attrs:{label:a.fieldName},on:{change:function(e){t.checkThis(a)}},model:{value:a.checked,callback:function(e){t.$set(a,"checked",e)},expression:"items.checked"}},[t._v(t._s(a.fieldName))])],1):t._e()]})],2)])})],2)]),t._v(" "),i("div",{staticClass:"handle-cho-btn"},[i("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:t.checkedList.length<1},on:{click:t.exportCho}},[i("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")]),t._v(" "),i("el-button",{on:{click:t.cancelCho}},[t._v("取消")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"title"},[this._v("已选择字段"),e("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var c=i("VU/8")(o,r,!1,function(t){i("fI5Z")},null,null);e.a=c.exports},fI5Z:function(t,e){},zcLw:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([24],{"3cHF":function(e,t){},Xwfy:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("woOf"),s=r.n(a),l=r("mvHQ"),i=r.n(l),o=r("gBtx"),n=r.n(o),c=r("3Xzz"),d=r("fZjL"),u=r.n(d),h={name:"set-permiss-data",components:{},props:{value:{type:[Object,Array],default:function(){return[]}},title:{type:String}},data:function(){return{defaultSelection:this.value||[]}},methods:{delCurrent:function(e,t){t.splice(e,1)},updateList:function(e){this.$emit("input",e)},handleSelectedList:function(e){},showSelector:function(){this.$emit("showSelect")}},watch:{value:function(e,t){this.defaultSelection=e}},mounted:function(){this.defaultSelection=this.value}},m={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"select-area"},[r("div",{staticClass:"setting-name",staticStyle:{"font-size":"14px",color:"#606266"}},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),r("ul",{staticClass:"particular-list"},[e._l(e.defaultSelection,function(t,a){return[1==t.type?r("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[r("div",{class:["img-wrap","flex","flex-align-center","flex-pack-center",t.headPic?"":"img-wrap-bg"]},[t.headPic?r("img",{attrs:{src:t.headPic,alt:"headPic"}}):r("i",{staticClass:"iconfont icon-yewuduanmorentouxian"}),e._v(" "),r("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.delCurrent(a,e.defaultSelection)}}})]),e._v(" "),r("p",{staticClass:"name"},[e._v(e._s(t.name||t.label))])]):e._e(),e._v(" "),2==t.type||3==t.type?r("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.name||t.label)+"\n "),r("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.delCurrent(a,e.defaultSelection)}}})]):e._e()]}),e._v(" "),r("li",{staticClass:"item J_add-btn flex flex-align-center flex-pack-center",on:{click:e.showSelector}},[r("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var f=r("VU/8")(h,m,!1,function(e){r("hNqT")},null,null).exports,p=r("c4uw"),v=r("Ie7z"),C=r("3E4D"),b=r("Ch4/"),g=r("PI0u"),k=r("P9l9"),S={name:"",props:{authData:{type:[Object,Array],default:function(){return{}}},permType:{type:[Number,String]}},data:function(){return{projectName:"",ruleForm:{radio:1,visibleAll:[],visibleStoreAll:[]},treeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],onlyPerson:!1,changed:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{changeRadio:function(e){this.ruleForm.visibleAll=[],this.ruleForm.visibleStoreAll=[]},submitForm:Object(g.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r={allowCherkIds:[],allowDepartIds:[],allowStoreIds:[],brandId:t.ruleForm.brandId,groupId:t.ruleForm.groupId,radio:t.ruleForm.radio};3!=t.ruleForm.radio||t.ruleForm.visibleAll.length||t.ruleForm.visibleStoreAll.length?(3==t.ruleForm.radio&&(t.ruleForm.visibleAll.forEach(function(e,t){e.hasOwnProperty("employeeClerkId")?r.allowCherkIds.push(e.employeeClerkId):e.hasOwnProperty("groupId")?r.allowDepartIds.push(e.groupId):1===n()(e.type)?r.allowCherkIds.push(e.id):2===n()(e.type)&&r.allowDepartIds.push(e.id)}),t.ruleForm.visibleStoreAll.forEach(function(e,t){e.hasOwnProperty("employeeClerkId")?r.allowCherkIds.push(e.employeeClerkId):e.hasOwnProperty("groupId")?r.allowDepartIds.push(e.groupId):e.hasOwnProperty("storeId")?r.allowStoreIds.push(e.storeId):1===n()(e.type)?r.allowCherkIds.push(e.id):2===n()(e.type)?r.allowDepartIds.push(e.id):3===n()(e.type)&&r.allowStoreIds.push(e.id)})),t.setStoreAuth(r,t.permType)):t.$message.error({duration:1e3,message:"请选择指定部门/人员"})})},400),setStoreAuth:function(e,t){var r=this,a={type:t,brandId:e.brandId,groupId:e.groupId,storeEmployeeAuth:e.radio,storeManagerAuth:e.radio,allowCherkIds:e.allowCherkIds.join(","),allowDepartIds:e.allowDepartIds.join(","),allowStoreIds:e.allowStoreIds.join(",")};Object(k.e)("/haoban-manage-web/brand/saveStoreAuth",a).then(function(e){var r=e.data;if(1==r.errorCode)return 2==t&&C.a.showmsg("保存成功","success"),!1;b.a.errorMsg(r)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},handleAuthData:function(e){var t=this;u()(e).length&&(t.ruleForm.brandId=e.brandId,t.ruleForm.groupId=e.groupId,1===n()(t.permType)&&(t.ruleForm.radio=e.brandDTO.storeEmployeeAuth||1,e.employeeAuthList.length&&e.employeeAuthList.forEach(function(e,t){2===n()(e.type)&&(e.groupId=e.id),e.label=e.name}),t.ruleForm.visibleAll=[],t.ruleForm.visibleStoreAll=[],e.employeeAuthList.forEach(function(e,r){e.isStore?t.ruleForm.visibleStoreAll.push(e):t.ruleForm.visibleAll.push(e)}),t.defaultSelection=t.ruleForm.visibleAll,t.defaultStoreList=t.ruleForm.visibleStoreAll),2===n()(t.permType)&&(t.ruleForm.radio=e.brandDTO.storeManagerAuth||1,e.managerAuthList.length&&e.managerAuthList.forEach(function(e,t){2===n()(e.type)&&(e.groupId=e.id),e.label=e.name}),t.ruleForm.visibleAll=[],t.ruleForm.visibleStoreAll=[],e.managerAuthList.forEach(function(e,r){e.isStore?t.ruleForm.visibleStoreAll.push(e):t.ruleForm.visibleAll.push(e)}),t.defaultSelection=t.ruleForm.visibleAll,t.defaultStoreList=t.ruleForm.visibleStoreAll))},showSelect:function(e){if("store"===e)return this.defaultStoreList=this.ruleForm.visibleStoreAll,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0},this.defaultSelection=this.ruleForm.visibleAll},handleSelectedList:function(e){this.defaultSelection=e,this.ruleForm.visibleAll=e},handleSelectedStoreList:function(e){this.defaultStoreList=e,this.ruleForm.visibleStoreAll=e},getDepartData:function(e){var t=this;Object(k.e)("/haoban-manage-web/dept/deptListForCompany",{}).then(function(e){var r=e.data;if(1!=r.errorCode)b.a.errorMsg(r);else if(r.result){var a=[],s=[];1==e.data.errorCode&&(a=e.data.result.departmentList||[],s=e.data.result.searchList||[]),t.treeData={treeData:a,personData:s},t.$forceUpdate()}else t.$message.error({duration:1e3,message:"暂无数据"})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{authData:function(e,t){this.handleAuthData(e)}},mounted:function(){this.handleAuthData(this.authData),this.getDepartData()},components:{setPermissData:f,vueSelectEmployee:p.a,vueSelectStore:v.a}},w={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"permiss-wrap"},[r("el-form",{ref:"ruleForm",attrs:{"label-width":"110px",model:e.ruleForm}},[r("el-radio-group",{on:{change:e.changeRadio},model:{value:e.ruleForm.radio,callback:function(t){e.$set(e.ruleForm,"radio",t)},expression:"ruleForm.radio"}},[r("el-form-item",{attrs:{label:1==e.permType?"店员可见权限":"店长可见权限"}},[r("el-radio",{attrs:{label:1}},[e._v("可见所有品牌门店架构和行政架构")])],1),e._v(" "),r("el-form-item",{attrs:{label:" "}},[r("el-radio",{attrs:{label:2}},[e._v("门店仅可见自己门店")])],1),e._v(" "),r("el-form-item",{attrs:{label:" "}},[r("el-radio",{attrs:{label:3}},[e._v("自定义可见权限")])],1),e._v(" "),3==e.ruleForm.radio?r("div",{staticClass:"permiss-child-cell"},[r("setPermissData",{attrs:{title:"允许行政架构可见"},on:{showSelect:function(t){e.showSelect("depart")}},model:{value:e.ruleForm.visibleAll,callback:function(t){e.$set(e.ruleForm,"visibleAll",t)},expression:"ruleForm.visibleAll"}}),e._v(" "),r("setPermissData",{attrs:{title:"允许门店架构可见"},on:{showSelect:function(t){e.showSelect("store")}},model:{value:e.ruleForm.visibleStoreAll,callback:function(t){e.$set(e.ruleForm,"visibleStoreAll",t)},expression:"ruleForm.visibleStoreAll"}})],1):e._e()],1)],1),e._v(" "),r("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,onlyPerson:e.onlyPerson,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedStoreList}})],1)},staticRenderFns:[]};var A=r("VU/8")(S,w,!1,function(e){r("3cHF")},"data-v-31cbaac4",null).exports,I={name:"storePermission",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"门店权限设置",path:""}],activeName:"",brandList:[],switchList:{addName:"新增门店成员",addStoreClerkCheck:!1,delName:"删除门店成员",deleteStoreClerkCheck:!1,modName:"门店信息变更",storeInformationChangeCheck:!1,tranferClerkCheck:!1,tranferClerkName:"转移门店成员"}}},computed:{},methods:{toStoreAdd:function(){this.$router.push("/storeFrame")},handleClick:function(e,t){this.getStoreAuth(e.name,n()(e.index)),this.activeName=e.name},saveSwitch:Object(g.a)(function(){var e=JSON.parse(i()(this.switchList));e.addStoreClerkCheck=1==e.addStoreClerkCheck?1:0,e.deleteStoreClerkCheck=1==e.deleteStoreClerkCheck?1:0,e.storeInformationChangeCheck=1==e.storeInformationChangeCheck?1:0,e.tranferClerkCheck=1==e.tranferClerkCheck?1:0,this.setStoreAuth(e)},600),saveAll:Object(g.a)(function(){var e=this;if(3==e.$refs.clerkPermiss.ruleForm.radio&&!e.$refs.clerkPermiss.ruleForm.visibleAll.length&&!e.$refs.clerkPermiss.ruleForm.visibleStoreAll.length)return e.$message.error({duration:1e3,message:"请选择指定部门/人员"}),!1;if(3==e.$refs.clerkManagePermiss.ruleForm.radio&&!e.$refs.clerkManagePermiss.ruleForm.visibleAll.length&&!e.$refs.clerkManagePermiss.ruleForm.visibleStoreAll.length)return e.$message.error({duration:1e3,message:"请选择指定部门/人员"}),!1;e.$refs.clerkPermiss.submitForm("ruleForm");var t=setTimeout(function(){e.$refs.clerkManagePermiss.submitForm("ruleForm"),clearTimeout(t)},500)},500),setStoreAuth:function(e){var t=this,r={brandId:e.brandId,groupId:t.activeName,addStoreClerkCheck:e.addStoreClerkCheck,deleteStoreClerkCheck:e.deleteStoreClerkCheck,storeInformationChangeCheck:e.storeInformationChangeCheck,tranferClerkCheck:e.tranferClerkCheck};Object(k.e)("/haoban-manage-web/brand/saveStoreAuth",r).then(function(e){var t=e.data;1!=t.errorCode?b.a.errorMsg(t):C.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getStoreAuth:function(e,t){var r=this,a={groupId:e};Object(k.e)("/haoban-manage-web/brand/storeAuth",a).then(function(e){var t=e.data;if(1!=t.errorCode)b.a.errorMsg(t);else if(t.result){r.brandList.clerkData=t.result,r.brandList.managerData=t.result;var a=t.result.brandDTO;a.addStoreClerkCheck=1==a.addStoreClerkCheck,a.deleteStoreClerkCheck=1==a.deleteStoreClerkCheck,a.storeInformationChangeCheck=1==a.storeInformationChangeCheck,a.tranferClerkCheck=1==a.tranferClerkCheck,r.switchList=s()(r.switchList,a),r.$forceUpdate()}}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},getBrandData:function(){var e=this;Object(k.e)("/haoban-manage-web/brand/list",{}).then(function(t){var r=t.data;1!=r.errorCode?b.a.errorMsg(r):r.result&&r.result.length&&(e.brandList=r.result,e.activeName=r.result[0].groupId,e.getStoreAuth(r.result[0].groupId,0))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData()},components:{navCrumb:c.a,setPermiss:A}},y={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"storePermission-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",staticStyle:{background:"unset",padding:"0"}},[r("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e._l(e.brandList,function(e,t){return[r("el-tab-pane",{key:"name"+t,attrs:{label:e.name,name:e.groupId}})]})],2),e._v(" "),r("div",{staticClass:"storePermission-title font-w-500"},[e._v("\n 门店成员通讯录可见权限\n ")]),e._v(" "),e.brandList.length?r("div",{staticClass:"bg-fff permiss-contain"},[r("set-permiss",{ref:"clerkPermiss",attrs:{permType:1,authData:e.brandList.clerkData}}),e._v(" "),r("div",{staticClass:"b-l"}),e._v(" "),r("set-permiss",{ref:"clerkManagePermiss",attrs:{permType:2,authData:e.brandList.managerData}}),e._v(" "),r("div",{staticClass:"switch-cell p-l-110 m-t-15"},[r("el-button",{attrs:{type:"primary"},on:{click:e.saveAll}},[e._v("保 存")])],1)],1):e._e(),e._v(" "),e.brandList.length?r("div",{staticClass:"storePermission-wrap-switch m-t-24"},[r("div",{staticClass:"storePermission-switch-title font-w-500"},[e._v("\n 门店信息变更是否需要审核\n ")]),e._v(" "),r("div",{staticClass:"storePermission-switch-body"},[r("div",{staticClass:"switch-cell"},[r("el-switch",{attrs:{"inactive-text":e.switchList.addName},model:{value:e.switchList.addStoreClerkCheck,callback:function(t){e.$set(e.switchList,"addStoreClerkCheck",t)},expression:"switchList.addStoreClerkCheck"}})],1),e._v(" "),r("div",{staticClass:"switch-cell"},[r("el-switch",{attrs:{"inactive-text":e.switchList.delName},model:{value:e.switchList.deleteStoreClerkCheck,callback:function(t){e.$set(e.switchList,"deleteStoreClerkCheck",t)},expression:"switchList.deleteStoreClerkCheck"}})],1),e._v(" "),r("div",{staticClass:"switch-cell"},[r("el-switch",{attrs:{"inactive-text":e.switchList.modName},model:{value:e.switchList.storeInformationChangeCheck,callback:function(t){e.$set(e.switchList,"storeInformationChangeCheck",t)},expression:"switchList.storeInformationChangeCheck"}})],1),e._v(" "),r("div",{staticClass:"switch-cell"},[r("el-switch",{attrs:{"inactive-text":e.switchList.tranferClerkName},model:{value:e.switchList.tranferClerkCheck,callback:function(t){e.$set(e.switchList,"tranferClerkCheck",t)},expression:"switchList.tranferClerkCheck"}})],1),e._v(" "),r("div",{staticClass:"switch-cell p-l-94"},[r("el-button",{attrs:{type:"primary"},on:{click:e.saveSwitch}},[e._v("保 存")])],1)])]):e._e(),e._v(" "),e.brandList.length?e._e():r("div",{staticClass:"no-brand-content p-20 bg-fff text-center p-t-185"},[r("p",{staticClass:"font-14 color-909399 m-b-10"},[e._v("请创建品牌后进行门店权限设置")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.toStoreAdd}},[e._v("马上新建品牌")])],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var F=r("VU/8")(I,y,!1,function(e){r("mjac")},"data-v-7aae95ee",null);t.default=F.exports},hNqT:function(e,t){},mjac:function(e,t){}}); webpackJsonp([25],{"3cHF":function(e,t){},Xwfy:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("woOf"),s=r.n(a),l=r("mvHQ"),i=r.n(l),o=r("gBtx"),n=r.n(o),c=r("3Xzz"),d=r("fZjL"),u=r.n(d),h={name:"set-permiss-data",components:{},props:{value:{type:[Object,Array],default:function(){return[]}},title:{type:String}},data:function(){return{defaultSelection:this.value||[]}},methods:{delCurrent:function(e,t){t.splice(e,1)},updateList:function(e){this.$emit("input",e)},handleSelectedList:function(e){},showSelector:function(){this.$emit("showSelect")}},watch:{value:function(e,t){this.defaultSelection=e}},mounted:function(){this.defaultSelection=this.value}},m={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"select-area"},[r("div",{staticClass:"setting-name",staticStyle:{"font-size":"14px",color:"#606266"}},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),r("ul",{staticClass:"particular-list"},[e._l(e.defaultSelection,function(t,a){return[1==t.type?r("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[r("div",{class:["img-wrap","flex","flex-align-center","flex-pack-center",t.headPic?"":"img-wrap-bg"]},[t.headPic?r("img",{attrs:{src:t.headPic,alt:"headPic"}}):r("i",{staticClass:"iconfont icon-yewuduanmorentouxian"}),e._v(" "),r("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.delCurrent(a,e.defaultSelection)}}})]),e._v(" "),r("p",{staticClass:"name"},[e._v(e._s(t.name||t.label))])]):e._e(),e._v(" "),2==t.type||3==t.type?r("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.name||t.label)+"\n "),r("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.delCurrent(a,e.defaultSelection)}}})]):e._e()]}),e._v(" "),r("li",{staticClass:"item J_add-btn flex flex-align-center flex-pack-center",on:{click:e.showSelector}},[r("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var f=r("VU/8")(h,m,!1,function(e){r("hNqT")},null,null).exports,p=r("c4uw"),v=r("Ie7z"),C=r("3E4D"),b=r("Ch4/"),g=r("PI0u"),k=r("P9l9"),S={name:"",props:{authData:{type:[Object,Array],default:function(){return{}}},permType:{type:[Number,String]}},data:function(){return{projectName:"",ruleForm:{radio:1,visibleAll:[],visibleStoreAll:[]},treeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],onlyPerson:!1,changed:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{changeRadio:function(e){this.ruleForm.visibleAll=[],this.ruleForm.visibleStoreAll=[]},submitForm:Object(g.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r={allowCherkIds:[],allowDepartIds:[],allowStoreIds:[],brandId:t.ruleForm.brandId,groupId:t.ruleForm.groupId,radio:t.ruleForm.radio};3!=t.ruleForm.radio||t.ruleForm.visibleAll.length||t.ruleForm.visibleStoreAll.length?(3==t.ruleForm.radio&&(t.ruleForm.visibleAll.forEach(function(e,t){e.hasOwnProperty("employeeClerkId")?r.allowCherkIds.push(e.employeeClerkId):e.hasOwnProperty("groupId")?r.allowDepartIds.push(e.groupId):1===n()(e.type)?r.allowCherkIds.push(e.id):2===n()(e.type)&&r.allowDepartIds.push(e.id)}),t.ruleForm.visibleStoreAll.forEach(function(e,t){e.hasOwnProperty("employeeClerkId")?r.allowCherkIds.push(e.employeeClerkId):e.hasOwnProperty("groupId")?r.allowDepartIds.push(e.groupId):e.hasOwnProperty("storeId")?r.allowStoreIds.push(e.storeId):1===n()(e.type)?r.allowCherkIds.push(e.id):2===n()(e.type)?r.allowDepartIds.push(e.id):3===n()(e.type)&&r.allowStoreIds.push(e.id)})),t.setStoreAuth(r,t.permType)):t.$message.error({duration:1e3,message:"请选择指定部门/人员"})})},400),setStoreAuth:function(e,t){var r=this,a={type:t,brandId:e.brandId,groupId:e.groupId,storeEmployeeAuth:e.radio,storeManagerAuth:e.radio,allowCherkIds:e.allowCherkIds.join(","),allowDepartIds:e.allowDepartIds.join(","),allowStoreIds:e.allowStoreIds.join(",")};Object(k.e)("/haoban-manage-web/brand/saveStoreAuth",a).then(function(e){var r=e.data;if(1==r.errorCode)return 2==t&&C.a.showmsg("保存成功","success"),!1;b.a.errorMsg(r)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},handleAuthData:function(e){var t=this;u()(e).length&&(t.ruleForm.brandId=e.brandId,t.ruleForm.groupId=e.groupId,1===n()(t.permType)&&(t.ruleForm.radio=e.brandDTO.storeEmployeeAuth||1,e.employeeAuthList.length&&e.employeeAuthList.forEach(function(e,t){2===n()(e.type)&&(e.groupId=e.id),e.label=e.name}),t.ruleForm.visibleAll=[],t.ruleForm.visibleStoreAll=[],e.employeeAuthList.forEach(function(e,r){e.isStore?t.ruleForm.visibleStoreAll.push(e):t.ruleForm.visibleAll.push(e)}),t.defaultSelection=t.ruleForm.visibleAll,t.defaultStoreList=t.ruleForm.visibleStoreAll),2===n()(t.permType)&&(t.ruleForm.radio=e.brandDTO.storeManagerAuth||1,e.managerAuthList.length&&e.managerAuthList.forEach(function(e,t){2===n()(e.type)&&(e.groupId=e.id),e.label=e.name}),t.ruleForm.visibleAll=[],t.ruleForm.visibleStoreAll=[],e.managerAuthList.forEach(function(e,r){e.isStore?t.ruleForm.visibleStoreAll.push(e):t.ruleForm.visibleAll.push(e)}),t.defaultSelection=t.ruleForm.visibleAll,t.defaultStoreList=t.ruleForm.visibleStoreAll))},showSelect:function(e){if("store"===e)return this.defaultStoreList=this.ruleForm.visibleStoreAll,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0},this.defaultSelection=this.ruleForm.visibleAll},handleSelectedList:function(e){this.defaultSelection=e,this.ruleForm.visibleAll=e},handleSelectedStoreList:function(e){this.defaultStoreList=e,this.ruleForm.visibleStoreAll=e},getDepartData:function(e){var t=this;Object(k.e)("/haoban-manage-web/dept/deptListForCompany",{}).then(function(e){var r=e.data;if(1!=r.errorCode)b.a.errorMsg(r);else if(r.result){var a=[],s=[];1==e.data.errorCode&&(a=e.data.result.departmentList||[],s=e.data.result.searchList||[]),t.treeData={treeData:a,personData:s},t.$forceUpdate()}else t.$message.error({duration:1e3,message:"暂无数据"})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{authData:function(e,t){this.handleAuthData(e)}},mounted:function(){this.handleAuthData(this.authData),this.getDepartData()},components:{setPermissData:f,vueSelectEmployee:p.a,vueSelectStore:v.a}},w={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"permiss-wrap"},[r("el-form",{ref:"ruleForm",attrs:{"label-width":"110px",model:e.ruleForm}},[r("el-radio-group",{on:{change:e.changeRadio},model:{value:e.ruleForm.radio,callback:function(t){e.$set(e.ruleForm,"radio",t)},expression:"ruleForm.radio"}},[r("el-form-item",{attrs:{label:1==e.permType?"店员可见权限":"店长可见权限"}},[r("el-radio",{attrs:{label:1}},[e._v("可见所有品牌门店架构和行政架构")])],1),e._v(" "),r("el-form-item",{attrs:{label:" "}},[r("el-radio",{attrs:{label:2}},[e._v("门店仅可见自己门店")])],1),e._v(" "),r("el-form-item",{attrs:{label:" "}},[r("el-radio",{attrs:{label:3}},[e._v("自定义可见权限")])],1),e._v(" "),3==e.ruleForm.radio?r("div",{staticClass:"permiss-child-cell"},[r("setPermissData",{attrs:{title:"允许行政架构可见"},on:{showSelect:function(t){e.showSelect("depart")}},model:{value:e.ruleForm.visibleAll,callback:function(t){e.$set(e.ruleForm,"visibleAll",t)},expression:"ruleForm.visibleAll"}}),e._v(" "),r("setPermissData",{attrs:{title:"允许门店架构可见"},on:{showSelect:function(t){e.showSelect("store")}},model:{value:e.ruleForm.visibleStoreAll,callback:function(t){e.$set(e.ruleForm,"visibleStoreAll",t)},expression:"ruleForm.visibleStoreAll"}})],1):e._e()],1)],1),e._v(" "),r("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,onlyPerson:e.onlyPerson,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedStoreList}})],1)},staticRenderFns:[]};var A=r("VU/8")(S,w,!1,function(e){r("3cHF")},"data-v-31cbaac4",null).exports,I={name:"storePermission",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"门店权限设置",path:""}],activeName:"",brandList:[],switchList:{addName:"新增门店成员",addStoreClerkCheck:!1,delName:"删除门店成员",deleteStoreClerkCheck:!1,modName:"门店信息变更",storeInformationChangeCheck:!1,tranferClerkCheck:!1,tranferClerkName:"转移门店成员"}}},computed:{},methods:{toStoreAdd:function(){this.$router.push("/storeFrame")},handleClick:function(e,t){this.getStoreAuth(e.name,n()(e.index)),this.activeName=e.name},saveSwitch:Object(g.a)(function(){var e=JSON.parse(i()(this.switchList));e.addStoreClerkCheck=1==e.addStoreClerkCheck?1:0,e.deleteStoreClerkCheck=1==e.deleteStoreClerkCheck?1:0,e.storeInformationChangeCheck=1==e.storeInformationChangeCheck?1:0,e.tranferClerkCheck=1==e.tranferClerkCheck?1:0,this.setStoreAuth(e)},600),saveAll:Object(g.a)(function(){var e=this;if(3==e.$refs.clerkPermiss.ruleForm.radio&&!e.$refs.clerkPermiss.ruleForm.visibleAll.length&&!e.$refs.clerkPermiss.ruleForm.visibleStoreAll.length)return e.$message.error({duration:1e3,message:"请选择指定部门/人员"}),!1;if(3==e.$refs.clerkManagePermiss.ruleForm.radio&&!e.$refs.clerkManagePermiss.ruleForm.visibleAll.length&&!e.$refs.clerkManagePermiss.ruleForm.visibleStoreAll.length)return e.$message.error({duration:1e3,message:"请选择指定部门/人员"}),!1;e.$refs.clerkPermiss.submitForm("ruleForm");var t=setTimeout(function(){e.$refs.clerkManagePermiss.submitForm("ruleForm"),clearTimeout(t)},500)},500),setStoreAuth:function(e){var t=this,r={brandId:e.brandId,groupId:t.activeName,addStoreClerkCheck:e.addStoreClerkCheck,deleteStoreClerkCheck:e.deleteStoreClerkCheck,storeInformationChangeCheck:e.storeInformationChangeCheck,tranferClerkCheck:e.tranferClerkCheck};Object(k.e)("/haoban-manage-web/brand/saveStoreAuth",r).then(function(e){var t=e.data;1!=t.errorCode?b.a.errorMsg(t):C.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getStoreAuth:function(e,t){var r=this,a={groupId:e};Object(k.e)("/haoban-manage-web/brand/storeAuth",a).then(function(e){var t=e.data;if(1!=t.errorCode)b.a.errorMsg(t);else if(t.result){r.brandList.clerkData=t.result,r.brandList.managerData=t.result;var a=t.result.brandDTO;a.addStoreClerkCheck=1==a.addStoreClerkCheck,a.deleteStoreClerkCheck=1==a.deleteStoreClerkCheck,a.storeInformationChangeCheck=1==a.storeInformationChangeCheck,a.tranferClerkCheck=1==a.tranferClerkCheck,r.switchList=s()(r.switchList,a),r.$forceUpdate()}}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},getBrandData:function(){var e=this;Object(k.e)("/haoban-manage-web/brand/list",{}).then(function(t){var r=t.data;1!=r.errorCode?b.a.errorMsg(r):r.result&&r.result.length&&(e.brandList=r.result,e.activeName=r.result[0].groupId,e.getStoreAuth(r.result[0].groupId,0))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData()},components:{navCrumb:c.a,setPermiss:A}},y={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"storePermission-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",staticStyle:{background:"unset",padding:"0"}},[r("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e._l(e.brandList,function(e,t){return[r("el-tab-pane",{key:"name"+t,attrs:{label:e.name,name:e.groupId}})]})],2),e._v(" "),r("div",{staticClass:"storePermission-title font-w-500"},[e._v("\n 门店成员通讯录可见权限\n ")]),e._v(" "),e.brandList.length?r("div",{staticClass:"bg-fff permiss-contain"},[r("set-permiss",{ref:"clerkPermiss",attrs:{permType:1,authData:e.brandList.clerkData}}),e._v(" "),r("div",{staticClass:"b-l"}),e._v(" "),r("set-permiss",{ref:"clerkManagePermiss",attrs:{permType:2,authData:e.brandList.managerData}}),e._v(" "),r("div",{staticClass:"switch-cell p-l-110 m-t-15"},[r("el-button",{attrs:{type:"primary"},on:{click:e.saveAll}},[e._v("保 存")])],1)],1):e._e(),e._v(" "),e.brandList.length?r("div",{staticClass:"storePermission-wrap-switch m-t-24"},[r("div",{staticClass:"storePermission-switch-title font-w-500"},[e._v("\n 门店信息变更是否需要审核\n ")]),e._v(" "),r("div",{staticClass:"storePermission-switch-body"},[r("div",{staticClass:"switch-cell"},[r("el-switch",{attrs:{"inactive-text":e.switchList.addName},model:{value:e.switchList.addStoreClerkCheck,callback:function(t){e.$set(e.switchList,"addStoreClerkCheck",t)},expression:"switchList.addStoreClerkCheck"}})],1),e._v(" "),r("div",{staticClass:"switch-cell"},[r("el-switch",{attrs:{"inactive-text":e.switchList.delName},model:{value:e.switchList.deleteStoreClerkCheck,callback:function(t){e.$set(e.switchList,"deleteStoreClerkCheck",t)},expression:"switchList.deleteStoreClerkCheck"}})],1),e._v(" "),r("div",{staticClass:"switch-cell"},[r("el-switch",{attrs:{"inactive-text":e.switchList.modName},model:{value:e.switchList.storeInformationChangeCheck,callback:function(t){e.$set(e.switchList,"storeInformationChangeCheck",t)},expression:"switchList.storeInformationChangeCheck"}})],1),e._v(" "),r("div",{staticClass:"switch-cell"},[r("el-switch",{attrs:{"inactive-text":e.switchList.tranferClerkName},model:{value:e.switchList.tranferClerkCheck,callback:function(t){e.$set(e.switchList,"tranferClerkCheck",t)},expression:"switchList.tranferClerkCheck"}})],1),e._v(" "),r("div",{staticClass:"switch-cell p-l-94"},[r("el-button",{attrs:{type:"primary"},on:{click:e.saveSwitch}},[e._v("保 存")])],1)])]):e._e(),e._v(" "),e.brandList.length?e._e():r("div",{staticClass:"no-brand-content p-20 bg-fff text-center p-t-185"},[r("p",{staticClass:"font-14 color-909399 m-b-10"},[e._v("请创建品牌后进行门店权限设置")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.toStoreAdd}},[e._v("马上新建品牌")])],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var F=r("VU/8")(I,y,!1,function(e){r("mjac")},"data-v-7aae95ee",null);t.default=F.exports},hNqT:function(e,t){},mjac:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([25],{"/8XM":function(t,e){},Ipcz:function(t,e){},SB6x:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Ke24"),n=a("joH8"),o=a("P9l9"),l=a("Ch4/"),s=a("3E4D"),r=a("PI0u"),c={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:i.a,materialRecord:n.a},data:function(){var t=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",topMenuData:[{id:"1",name:"纷享素材"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}],onPick:function(e){var a=e.maxDate,i=e.minDate;t.choiceDateCopy=[i.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,i=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>i||e.getTime()>Date.now()-864e4}return e.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0,detailShow:!1,materialId:""}},methods:{toInput:Object(r.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},toCreate:function(){this.$router.push("/newEnjoy")},toSetTop:function(t,e){var a=this;a.$confirm(0==e?"置顶后,该素材将出现在手机好办营销素材顶部,确认置顶该素材吗":"确定「取消置顶」该条素材吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postTop(t,e)})},postTop:function(t,e){var a=this,i={materialId:t,topFlag:0==e?1:0};Object(o.a)("/haoban-app-material-web/material-to-top",i).then(function(t){var i=t.data;1==i.errorCode?(0==e?s.a.showmsg("置顶成功","success"):s.a.showmsg("取消置顶成功","success"),a.currentPage=1,a.getTableList()):s.a.showmsg(i.message,"warning")}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDetail:function(t,e){this.$router.push("/newEnjoy?materialId="+e.materialId+"&appIcon="+this.$route.query.appIcon)},showRecord:function(t,e){this.detailShow=!0,this.materialId=e.materialId},hideDetailDialog:function(){this.detailShow=!1,this.materialId=""},toDel:function(t,e){var a=this;a.$confirm("是否要删除该素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(t,e){var a=this,i={materialId:t.materialId};Object(o.e)("/haoban-app-material-web/material-del",i).then(function(t){var e=t.data;if(1==e.errorCode)return s.a.showmsg("删除成功","success"),void a.getTableList();l.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getTableList:function(t){var e=this;e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={materialTitle:e.conditionObj.searchInput||"",startTimeStr:e.conditionObj.dateRange[0]||"",endTimeStr:e.conditionObj.dateRange[1]||"",relatedType:2,pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(o.a)("/haoban-app-material-web/material-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",attrs:{placeholder:"请输入标题",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.toCreate}},[t._v("新建素材")])],1)]),t._v(" "),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.materialTitle||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"图片"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.imgUrlList,function(t,e){return a("img",{key:e+"img",staticClass:"table-img",attrs:{src:t.imgUrl,alt:""}})})}}])}),t._v(" "),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.thumbsUpCount||"--"))]}}])}),t._v(" "),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.tranferCount||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发布时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"219"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toSetTop(e.row.materialId,e.row.topFlag)}}},[t._v(t._s(1==e.row.topFlag?"取消置顶":"置顶"))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showDetail(e.$index,e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showRecord(e.$index,e.row)}}},[t._v("记录")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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),t._v(" "),a("material-record",{attrs:{materialId:t.materialId,detailShow:t.detailShow},on:{hideDetailDialog:t.hideDetailDialog}})],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(t){a("Ipcz")},"data-v-0b08a583",null);e.default=d.exports},joH8:function(t,e,a){"use strict";var i=a("P9l9"),n=a("Ch4/"),o=a("PI0u"),l={name:"material-record",props:{detailShow:{type:Boolean,default:!1},materialId:{type:String,default:""}},data:function(){return{customDialog:!1,activeName:"first",tableData:[],conditionObj:{searchInput:"",materialId:this.materialId},currentPage:1,pageSize:5,total:0}},methods:{handleTab:function(){this.currentPage=1,this.getTableList()},toInput:Object(o.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableList:function(t){var e=this,a={materialId:e.conditionObj.materialId,imgTextTitle:e.conditionObj.searchInput||"",relatedType:"first"==e.activeName?2:1,pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(i.a)("/haoban-app-material-web/material-log",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{detailShow:function(t,e){this.customDialog=t},materialId:function(t,e){t&&(this.conditionObj.materialId=t,this.currentPage=1,this.getTableList())}},mounted:function(){this.customDialog=this.detailShow,this.materialId&&(this.conditionObj.materialId=this.materialId,this.currentPage=1,this.getTableList())}},s={render: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:"739px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"点赞记录",name:"first"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-223",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条点赞记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"点赞人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),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.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"点赞时间","show-overflow-tooltip":""},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._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1),t._v(" "),a("el-tab-pane",{attrs:{label:"转发记录",name:"second"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-223",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条转发记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"转发人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),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.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转发时间","show-overflow-tooltip":""},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._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1)],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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)},staticRenderFns:[]};var r=a("VU/8")(l,s,!1,function(t){a("/8XM")},"data-v-66a1accb",null);e.a=r.exports}}); webpackJsonp([26],{"/8XM":function(t,e){},Ipcz:function(t,e){},SB6x:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Ke24"),n=a("joH8"),o=a("P9l9"),l=a("Ch4/"),s=a("3E4D"),r=a("PI0u"),c={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:i.a,materialRecord:n.a},data:function(){var t=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",topMenuData:[{id:"1",name:"纷享素材"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}],onPick:function(e){var a=e.maxDate,i=e.minDate;t.choiceDateCopy=[i.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,i=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>i||e.getTime()>Date.now()-864e4}return e.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0,detailShow:!1,materialId:""}},methods:{toInput:Object(r.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},toCreate:function(){this.$router.push("/newEnjoy")},toSetTop:function(t,e){var a=this;a.$confirm(0==e?"置顶后,该素材将出现在手机好办营销素材顶部,确认置顶该素材吗":"确定「取消置顶」该条素材吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postTop(t,e)})},postTop:function(t,e){var a=this,i={materialId:t,topFlag:0==e?1:0};Object(o.a)("/haoban-app-material-web/material-to-top",i).then(function(t){var i=t.data;1==i.errorCode?(0==e?s.a.showmsg("置顶成功","success"):s.a.showmsg("取消置顶成功","success"),a.currentPage=1,a.getTableList()):s.a.showmsg(i.message,"warning")}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDetail:function(t,e){this.$router.push("/newEnjoy?materialId="+e.materialId+"&appIcon="+this.$route.query.appIcon)},showRecord:function(t,e){this.detailShow=!0,this.materialId=e.materialId},hideDetailDialog:function(){this.detailShow=!1,this.materialId=""},toDel:function(t,e){var a=this;a.$confirm("是否要删除该素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(t,e){var a=this,i={materialId:t.materialId};Object(o.e)("/haoban-app-material-web/material-del",i).then(function(t){var e=t.data;if(1==e.errorCode)return s.a.showmsg("删除成功","success"),void a.getTableList();l.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getTableList:function(t){var e=this;e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={materialTitle:e.conditionObj.searchInput||"",startTimeStr:e.conditionObj.dateRange[0]||"",endTimeStr:e.conditionObj.dateRange[1]||"",relatedType:2,pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(o.a)("/haoban-app-material-web/material-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",attrs:{placeholder:"请输入标题",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.toCreate}},[t._v("新建素材")])],1)]),t._v(" "),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.materialTitle||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"图片"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.imgUrlList,function(t,e){return a("img",{key:e+"img",staticClass:"table-img",attrs:{src:t.imgUrl,alt:""}})})}}])}),t._v(" "),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.thumbsUpCount||"--"))]}}])}),t._v(" "),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.tranferCount||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发布时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"219"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toSetTop(e.row.materialId,e.row.topFlag)}}},[t._v(t._s(1==e.row.topFlag?"取消置顶":"置顶"))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showDetail(e.$index,e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showRecord(e.$index,e.row)}}},[t._v("记录")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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),t._v(" "),a("material-record",{attrs:{materialId:t.materialId,detailShow:t.detailShow},on:{hideDetailDialog:t.hideDetailDialog}})],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(t){a("Ipcz")},"data-v-0b08a583",null);e.default=d.exports},joH8:function(t,e,a){"use strict";var i=a("P9l9"),n=a("Ch4/"),o=a("PI0u"),l={name:"material-record",props:{detailShow:{type:Boolean,default:!1},materialId:{type:String,default:""}},data:function(){return{customDialog:!1,activeName:"first",tableData:[],conditionObj:{searchInput:"",materialId:this.materialId},currentPage:1,pageSize:5,total:0}},methods:{handleTab:function(){this.currentPage=1,this.getTableList()},toInput:Object(o.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableList:function(t){var e=this,a={materialId:e.conditionObj.materialId,imgTextTitle:e.conditionObj.searchInput||"",relatedType:"first"==e.activeName?2:1,pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(i.a)("/haoban-app-material-web/material-log",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{detailShow:function(t,e){this.customDialog=t},materialId:function(t,e){t&&(this.conditionObj.materialId=t,this.currentPage=1,this.getTableList())}},mounted:function(){this.customDialog=this.detailShow,this.materialId&&(this.conditionObj.materialId=this.materialId,this.currentPage=1,this.getTableList())}},s={render: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:"739px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"点赞记录",name:"first"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-223",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条点赞记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"点赞人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),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.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"点赞时间","show-overflow-tooltip":""},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._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1),t._v(" "),a("el-tab-pane",{attrs:{label:"转发记录",name:"second"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-223",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条转发记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"转发人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),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.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转发时间","show-overflow-tooltip":""},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._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1)],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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)},staticRenderFns:[]};var r=a("VU/8")(l,s,!1,function(t){a("/8XM")},"data-v-66a1accb",null);e.a=r.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([26],{"1usg":function(t,e){},"33SU":function(t,e){},"AKs/":function(t,e){},ahzF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"card-record-table",props:{tableData:{type:[Array,Object],default:function(){return[]}},activeTab:{type:[String,Number],default:function(){return"52"}}},data:function(){return{}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{toSendDetail:function(t,e,a){this.$router.push("/"+(1==a?"cardSendRecord":"cardGetRecord")+"?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon+"&coupCardId="+e.coupCardId)}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card-record-table m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[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.cardName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"",width:"96"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"发送卡券数量,包含扫码发券数",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("发送数量"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.issuingQuantity)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.getedQuantity))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取率"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("percenteNum")(e.row.getedRate)))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"使用数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.usageQuantity))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("percenteNum")(e.row.verificationRate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"销售额"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.saleAmount))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送卡券的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送卡券人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.sendMemberCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",width:"200",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"1")}}},[t._v("发送记录")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"2")}}},[t._v("领取记录")])]}}])})],1)],1)},staticRenderFns:[]};var i=a("VU/8")(s,o,!1,function(t){a("AKs/")},"data-v-0698d03e",null).exports,r={name:"card-list-table",props:{tableData:{type:[Array,Object],default:function(){return[]}},activeTab:{type:[String,Number],default:function(){return"51"}}},data:function(){return{}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的分类?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.$emit("delCard",e.coupCardId)}).catch(function(){})},toEdit:function(t,e){this.$router.push("/newCard?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon+"&coupCardId="+e.coupCardId)}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[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.cardName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.cardType?a("span",[t._v("抵金券")]):t._e(),t._v(" "),1==e.row.cardType?a("span",[t._v("折扣券")]):t._e(),t._v(" "),2==e.row.cardType?a("span",[t._v("兑换券")]):t._e()]}}])}),t._v(" "),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.effectDateString||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"库存"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.couponStock))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)},staticRenderFns:[]};var n=a("VU/8")(r,l,!1,function(t){a("33SU")},"data-v-552374d2",null).exports,c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),p=a("PI0u"),f={name:"online-chat",props:{brandId:{type:String,default:function(){return""}}},components:{cardRecordTable:i,cardListTable:n},data:function(){return{activeTab:"1",leftData:[{tabId:"1",tabName:"短信提醒"},{tabId:"2",tabName:"模板消息"},{tabId:"3",tabName:"图文"},{tabId:"4",tabName:"商品"},{tabId:"5",tabName:"卡券",children:[{tabId:"51",tabName:"卡券列表"},{tabId:"52",tabName:"卡券记录"}]}],chatData:{chatFlag:!1,isMessageRemind:!1,messageRemindTime:"",isTemplateMessage:!1,isImgMessage:!1,isGoodMessage:!1,isIntegralGoodMessage:!1},rules:{messageRemindTime:[{required:!0,message:"请选择时间",trigger:"blur"}]},templateName:"",articleList:[],pageSize:4,pageNum:1,total:0,activeName:"first",goodsList:[],pointList:[],cardCoupChatSwitch:!1,cardListData:[],cardRecordData:[]}},methods:{toNewCard:function(){this.$router.push("/newCard?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon)},delCard:function(t){this.delCardList(t)},toSendDetail:function(t,e,a){this.$router.push("/sendRecord?activeTab="+this.activeTab+"&tabType="+a+"&appIcon="+this.$route.query.appIcon+"&relatedId="+(e.id||e.goodId))},changeChatFlag:function(){this.postSave(this.brandId)},handleCurrentChange:function(t){this.pageNum=t,3==this.activeTab?this.getArticleList(this.brandId):4==this.activeTab?"first"==this.activeName?this.getGoodsList(this.brandId):this.getPointList(this.brandId):51==this.activeTab?this.getCardList(this.brandId):52==this.activeTab&&this.getCardRecord(this.brandId)},saveData:Object(p.a)(function(t){var e=this;e.$refs[t].validate(function(t){if(!t)return!1;e.postSave(e.brandId)})},500),postSave:function(t){var e=this;e.pageNum=1,e.chatData.isIntegralGoodMessage&&!e.chatData.isGoodMessage&&(e.activeName="second");var a={brandId:t,chatFlag:e.chatData.chatFlag?1:0,isMessageRemind:e.chatData.isMessageRemind?1:0,messageRemindTime:e.chatData.messageRemindTime,isTemplateMessage:e.chatData.isTemplateMessage?1:0,isImgMessage:e.chatData.isImgMessage?1:0,isGoodMessage:e.chatData.isGoodMessage?1:0,isIntegralGoodMessage:e.chatData.isIntegralGoodMessage?1:0,mainStoreFlag:e.chatData.mainStoreFlag,minorStoreFlag:e.chatData.minorStoreFlag,openCardStoreFlag:e.chatData.openCardStoreFlag,clerkSeeOtherFlag:e.chatData.clerkSeeOtherFlag,allowGuideContact:e.chatData.allowGuideContact,allowGuideMobile:e.chatData.allowGuideMobile,allowGuideMessage:e.chatData.allowGuideMessage,allowGuideOnlineChat:e.chatData.allowGuideOnlineChat,isSeeAuthMember:e.chatData.isSeeAuthMember};Object(c.e)("/haoban-app-member-web/customer/save-member-show-setting",a).then(function(a){var s=a.data;if(1==s.errorCode)return u.a.showmsg("保存成功","success"),3==e.activeTab&&e.chatData.isImgMessage&&e.getArticleList(t),void(4==e.activeTab&&(e.chatData.isGoodMessage&&e.getGoodsList(t),e.chatData.isIntegralGoodMessage&&e.getPointList(t),e.chatData.isIntegralGoodMessage&&!e.chatData.isGoodMessage&&(e.activeName="second"),e.chatData.isGoodMessage&&!e.chatData.isIntegralGoodMessage&&(e.activeName="first")));d.a.errorMsg(s)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeTab:function(t){if(t.children)return this.activeTab=t.children[0].tabId,this.getCardSet(this.brandId),!1;this.pageNum=1,this.activeTab=t.tabId,this.getChatSet(this.brandId),this.getCardSet(this.brandId)},handleTab:function(t,e){this.pageNum=1,"first"==t.name?this.getGoodsList(this.brandId):this.getPointList(this.brandId)},getTemplate:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find_message_template",a).then(function(t){var a=t.data;1!=a.errorCode?d.a.errorMsg(a):e.templateName=a.result||"--"}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getGoodsList:function(t){var e=this,a={pageSize:e.pageSize,pageNum:e.pageNum,brandId:t};Object(c.e)("/haoban-app-member-web/customer/find_good_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.goodsList=a.result.list||[],void("first"==e.activeName&&(e.total=a.result.total));e.goodsList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getPointList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/customer/find_integal_good_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.pointList=a.result.list||[],void("second"==e.activeName&&(e.total=a.result.total));e.pointList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getArticleList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/customer/find_img_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.articleList=a.result.list||[],void(e.total=a.result.total);e.articleList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},delCardList:function(t){var e=this,a={brandId:e.brandId,coupCardId:t};Object(c.e)("/haoban-app-member-web/cardCoupon/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getCardList(e.brandId);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/cardCoupon/find-card-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.cardListData=a.result.list||[],void(e.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardRecord:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/cardCoupon/find-card-log-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.cardRecordData=a.result.list||[],void(e.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postSaveCard:function(t){var e=this,a={cardCoupChatSwitch:e.cardCoupChatSwitch?1:0,brandId:t};Object(c.e)("/haoban-app-member-web/customer/save-card-coup-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("设置成功","success"),void(e.cardCoupChatSwitch&&e.getCardList(e.brandId));d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardSet:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find-card-coup-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.cardCoupChatSwitch=1==a.result.cardCoupChatSwitch,e.cardCoupChatSwitch=a.result.cardCoupChatSwitch,"51"==e.activeTab&&e.cardCoupChatSwitch&&(e.pageSize=4,e.getCardList(e.brandId)),void("52"==e.activeTab&&(e.pageSize=6,e.getCardRecord(e.brandId)));d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getChatSet:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find-online-chat-setting",a).then(function(a){var s=a.data;1!=s.errorCode?d.a.errorMsg(s):s.result&&(s.result.chatFlag=1==s.result.chatFlag,s.result.isMessageRemind=1==s.result.isMessageRemind,s.result.messageRemindTime=s.result.messageRemindTime,s.result.isTemplateMessage=1==s.result.isTemplateMessage,s.result.isImgMessage=1==s.result.isImgMessage,s.result.isGoodMessage=1==s.result.isGoodMessage,s.result.isIntegralGoodMessage=1==s.result.isIntegralGoodMessage,e.chatData=s.result,2==e.activeTab&&e.getTemplate(t),3==e.activeTab&&s.result.isImgMessage&&(e.pageSize=4,e.getArticleList(t)),4==e.activeTab&&(e.pageSize=3,s.result.isGoodMessage&&e.getGoodsList(t),s.result.isIntegralGoodMessage&&e.getPointList(t),s.result.isIntegralGoodMessage&&!s.result.isGoodMessage&&(e.activeName="second"),s.result.isGoodMessage&&!s.result.isIntegralGoodMessage&&(e.activeName="first")))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){""!=t&&(this.getChatSet(t),this.getCardSet(t))}},mounted:function(){this.$emit("showTab","2"),""!=this.brandId&&(this.getChatSet(this.brandId),this.getCardSet(this.brandId)),""!=this.$route.query.activeTab&&(this.activeTab=this.$route.query.activeTab||"1")}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"online-chat-content border-box"},[a("div",{staticClass:"online-chat-switch"},[a("span",{staticClass:"font-14 color-606266 p-r-18"},[t._v("在线沟通")]),a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:t.changeChatFlag},model:{value:t.chatData.chatFlag,callback:function(e){t.$set(t.chatData,"chatFlag",e)},expression:"chatData.chatFlag"}}),a("span",{staticClass:"p-l-10 font-12 color-909399"},[t._v("若小程序使用了GIC 好办客服功能,会员将无法在公众号联系导购")])],1),t._v(" "),a("div",{staticClass:"online-chat-body"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"online-chat-left"},[a("ul",[t._l(t.leftData,function(e,s){return[a("li",{key:s+"left",class:["online-chat-left_li",t.activeTab==e.tabId?"active-li":""],on:{click:function(a){t.changeTab(e)}}},[t._v(t._s(e.tabName))]),t._v(" "),e.children&&e.children.length?a("ul",{key:s+"left1"},[t._l(e.children,function(e,s){return[a("li",{key:s+"left12",class:["online-chat-left_li child-li",t.activeTab==e.tabId?"active-li":""],on:{click:function(a){t.changeTab(e)}}},[t._v(t._s(e.tabName))])]})],2):t._e()]})],2)]),t._v(" "),a("div",{staticClass:"online-chat-right border-box"},[a("div",{staticClass:"online-chat-right_body"},[1==t.activeTab?a("div",{staticClass:"online-chat-message"},[a("el-form",{ref:"msgForm",staticClass:"demo-ruleForm",attrs:{model:t.chatData,rules:t.rules,"label-width":"70px"}},[a("el-form-item",{attrs:{label:"短信提醒",prop:"name"}},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isMessageRemind,callback:function(e){t.$set(t.chatData,"isMessageRemind",e)},expression:"chatData.isMessageRemind"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,会员发送消息,超出10条后,即发送短信给导购,每日最多触发一条短信,短信计入商家计费中心")])],1),t._v(" "),t.chatData.isMessageRemind?a("el-form-item",{attrs:{label:"",prop:"messageRemindTime"}},[a("span",{staticClass:"font-14 color-606266 p-r-10"},[t._v("下发时间设置")]),a("el-time-select",{attrs:{"picker-options":{start:"00:00",step:"00:15",end:"23:59"},placeholder:"选择时间"},model:{value:t.chatData.messageRemindTime,callback:function(e){t.$set(t.chatData,"messageRemindTime",e)},expression:"chatData.messageRemindTime"}}),a("span",{staticClass:"font-14 color-909399 p-l-20"},[t._v("该事件设置将在当日生效")])],1):t._e(),t._v(" "),t.chatData.isMessageRemind?a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.saveData("msgForm")}}},[t._v("保存")])],1):t._e()],1)],1):t._e(),t._v(" "),2==t.activeTab?a("div",{staticClass:"online-chat-template"},[t._m(0),t._v(" "),a("div",{staticClass:"m-t-23"},[a("span",{staticClass:"font-14 color-303133"},[t._v("模板消息")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isTemplateMessage,callback:function(e){t.$set(t.chatData,"isTemplateMessage",e)},expression:"chatData.isTemplateMessage"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("仅支持专属导购对会员发送模板消息,每个会员每个自然月模板消息发送次数不超过三次。设置后立即生效。")])],1),t._v(" "),a("div",{staticClass:"m-t-23"},[a("span",{staticClass:"font-14 color-303133"},[t._v("模板名字:")]),t._v(t._s(t.templateName))])]):t._e(),t._v(" "),3==t.activeTab?a("div",{staticClass:"online-chat-article"},[t._m(1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("span",{staticClass:"font-14 color-303133"},[t._v("图文")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isImgMessage,callback:function(e){t.$set(t.chatData,"isImgMessage",e)},expression:"chatData.isImgMessage"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,导购与会员聊天可发送GIC图文")])],1),t._v(" "),t.chatData.isImgMessage?a("div",{staticClass:"m-t-20 p-l-50"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.articleList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"图片","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"img-wrap border-box flex flex-align-center flex-pack-center"},[e.row.img?a("img",{attrs:{src:e.row.img,alt:""}}):t._e()]),t._v(" "),a("div",{staticClass:"article-title font-14 color-606266 p-l-10"},[t._v("\n "+t._s(e.row.title)+"\n ")])])]}}])}),t._v(" "),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.authorName||"--"))]}}])}),t._v(" "),a("el-table-column",{scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"4")}}},[t._v("发送记录")])]}}])})],1),t._v(" "),0!=t.articleList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()]):t._e(),t._v(" "),4==t.activeTab?a("div",{staticClass:"online-chat-goods"},[t._m(2),t._v(" "),a("div",{staticClass:"m-t-20"},[a("span",{staticClass:"font-14 color-303133"},[t._v("达摩微商城")]),a("el-switch",{staticClass:"m-l-10",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isGoodMessage,callback:function(e){t.$set(t.chatData,"isGoodMessage",e)},expression:"chatData.isGoodMessage"}}),a("span",{staticClass:"font-14 color-303133 p-l-40"},[t._v("积分商城")]),a("el-switch",{staticClass:"m-l-10",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isIntegralGoodMessage,callback:function(e){t.$set(t.chatData,"isIntegralGoodMessage",e)},expression:"chatData.isIntegralGoodMessage"}})],1),t._v(" "),t.chatData.isGoodMessage||t.chatData.isIntegralGoodMessage?a("div",{staticClass:"m-t-20"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.chatData.isGoodMessage?a("el-tab-pane",{attrs:{label:"达摩微商城",name:"first"}},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.goodsList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"商品信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"img-wrap flex flex-align-center flex-pack-center border-box"},[a("img",{attrs:{src:e.row.goodImg,alt:""}})]),t._v(" "),a("div",{staticClass:"article-title flex flex-column"},[a("p",{staticClass:"font-14 color-606266"},[t._v(t._s(e.row.goodName))]),t._v(" "),a("p",{staticClass:"font-12 color-909399"},[t._v(t._s(e.row.goodCode))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"单价(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.goodPrice))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"库存"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.stock||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"总销量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.saleAmount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发布时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.publishTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.publishTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"1")}}},[t._v("发送记录")])]}}])})],1)],1):t._e(),t._v(" "),t.chatData.isIntegralGoodMessage?a("el-tab-pane",{attrs:{label:"积分商城",name:"second"}},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.pointList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"商品信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"img-wrap border-box"},[a("img",{attrs:{src:e.row.goodImg,alt:""}})]),t._v(" "),a("div",{staticClass:"article-title flex flex-column"},[a("p",{staticClass:"font-14 color-606266"},[t._v(t._s(e.row.goodName))]),t._v(" "),a("p",{staticClass:"font-12 color-909399"},[t._v(t._s(e.row.goodCode))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"积分费用"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.integral))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"现金费用"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.goodPrice))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.publishTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.publishTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"2")}}},[t._v("发送记录")])]}}])})],1)],1):t._e()],1),t._v(" "),0!=t.goodsList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()]):t._e(),t._v(" "),51==t.activeTab?a("div",{staticClass:"online-chat-card"},[t._m(3),t._v(" "),a("div",{staticClass:"m-t-20 m-b-20 flex flex-space-between"},[a("div",{staticClass:"card-top-left"},[a("span",{staticClass:"font-14 color-303133"},[t._v("卡券")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSaveCard(t.brandId)}},model:{value:t.cardCoupChatSwitch,callback:function(e){t.cardCoupChatSwitch=e},expression:"cardCoupChatSwitch"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,导购与会员聊天可发送GIC卡券")])],1),t._v(" "),a("div",{staticClass:"card-top-right"},[a("el-button",{attrs:{disabled:!t.cardCoupChatSwitch,type:"primary"},on:{click:t.toNewCard}},[t._v("新建卡券")])],1)]),t._v(" "),t.cardCoupChatSwitch?a("card-list-table",{attrs:{activeTab:t.activeTab,tableData:t.cardListData},on:{delCard:t.delCard}}):t._e(),t._v(" "),t.cardListData.length&&t.cardCoupChatSwitch?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e(),t._v(" "),52==t.activeTab?a("div",{staticClass:"online-chat-card_record"},[t._m(4),t._v(" "),a("card-record-table",{attrs:{activeTab:t.activeTab,tableData:t.cardRecordData}}),t._v(" "),t.cardRecordData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()])])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:1.导购可在未和会员建立会话的情况下,发送消息给会员"),e("br"),this._v("\n 2.发送形式为模板消息,发送模板消息即表示发送了一条消息通知,并非建立主动会话"),e("br"),this._v("\n 3.频繁使用模板消息,可能导致微信封闭模板消息及会员取关率增加,请谨慎使用")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:选取微信营销素材库中的图文,配置后,导购可以选择对应的营销图文发送给会员")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:选取达摩微商城及积分商城中的商品,配置后,导购可以选择对应的商品发送给会员")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("选取GIC中卡券营销适用好办的卡券,配置后,导购可以选择对应的卡券发送给会员")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("当前卡券记录中发送数量、领取数量、领取率、使用数量、核销率、销售额为gic总体卡券记录,包含好办使用记录。后续更新将统计好办渠道卡券记录")])])])}]};var h=a("VU/8")(f,m,!1,function(t){a("1usg")},"data-v-31a27156",null);e.default=h.exports}}); webpackJsonp([27],{"1usg":function(t,e){},"33SU":function(t,e){},"AKs/":function(t,e){},ahzF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"card-record-table",props:{tableData:{type:[Array,Object],default:function(){return[]}},activeTab:{type:[String,Number],default:function(){return"52"}}},data:function(){return{}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{toSendDetail:function(t,e,a){this.$router.push("/"+(1==a?"cardSendRecord":"cardGetRecord")+"?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon+"&coupCardId="+e.coupCardId)}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card-record-table m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[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.cardName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"",width:"96"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"发送卡券数量,包含扫码发券数",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("发送数量"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.issuingQuantity)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.getedQuantity))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取率"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("percenteNum")(e.row.getedRate)))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"使用数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.usageQuantity))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("percenteNum")(e.row.verificationRate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"销售额"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.saleAmount))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送卡券的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送卡券人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.sendMemberCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",width:"200",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"1")}}},[t._v("发送记录")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"2")}}},[t._v("领取记录")])]}}])})],1)],1)},staticRenderFns:[]};var i=a("VU/8")(s,o,!1,function(t){a("AKs/")},"data-v-0698d03e",null).exports,r={name:"card-list-table",props:{tableData:{type:[Array,Object],default:function(){return[]}},activeTab:{type:[String,Number],default:function(){return"51"}}},data:function(){return{}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的分类?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.$emit("delCard",e.coupCardId)}).catch(function(){})},toEdit:function(t,e){this.$router.push("/newCard?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon+"&coupCardId="+e.coupCardId)}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[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.cardName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.cardType?a("span",[t._v("抵金券")]):t._e(),t._v(" "),1==e.row.cardType?a("span",[t._v("折扣券")]):t._e(),t._v(" "),2==e.row.cardType?a("span",[t._v("兑换券")]):t._e()]}}])}),t._v(" "),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.effectDateString||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"库存"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.couponStock))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)},staticRenderFns:[]};var n=a("VU/8")(r,l,!1,function(t){a("33SU")},"data-v-552374d2",null).exports,c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),p=a("PI0u"),f={name:"online-chat",props:{brandId:{type:String,default:function(){return""}}},components:{cardRecordTable:i,cardListTable:n},data:function(){return{activeTab:"1",leftData:[{tabId:"1",tabName:"短信提醒"},{tabId:"2",tabName:"模板消息"},{tabId:"3",tabName:"图文"},{tabId:"4",tabName:"商品"},{tabId:"5",tabName:"卡券",children:[{tabId:"51",tabName:"卡券列表"},{tabId:"52",tabName:"卡券记录"}]}],chatData:{chatFlag:!1,isMessageRemind:!1,messageRemindTime:"",isTemplateMessage:!1,isImgMessage:!1,isGoodMessage:!1,isIntegralGoodMessage:!1},rules:{messageRemindTime:[{required:!0,message:"请选择时间",trigger:"blur"}]},templateName:"",articleList:[],pageSize:4,pageNum:1,total:0,activeName:"first",goodsList:[],pointList:[],cardCoupChatSwitch:!1,cardListData:[],cardRecordData:[]}},methods:{toNewCard:function(){this.$router.push("/newCard?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon)},delCard:function(t){this.delCardList(t)},toSendDetail:function(t,e,a){this.$router.push("/sendRecord?activeTab="+this.activeTab+"&tabType="+a+"&appIcon="+this.$route.query.appIcon+"&relatedId="+(e.id||e.goodId))},changeChatFlag:function(){this.postSave(this.brandId)},handleCurrentChange:function(t){this.pageNum=t,3==this.activeTab?this.getArticleList(this.brandId):4==this.activeTab?"first"==this.activeName?this.getGoodsList(this.brandId):this.getPointList(this.brandId):51==this.activeTab?this.getCardList(this.brandId):52==this.activeTab&&this.getCardRecord(this.brandId)},saveData:Object(p.a)(function(t){var e=this;e.$refs[t].validate(function(t){if(!t)return!1;e.postSave(e.brandId)})},500),postSave:function(t){var e=this;e.pageNum=1,e.chatData.isIntegralGoodMessage&&!e.chatData.isGoodMessage&&(e.activeName="second");var a={brandId:t,chatFlag:e.chatData.chatFlag?1:0,isMessageRemind:e.chatData.isMessageRemind?1:0,messageRemindTime:e.chatData.messageRemindTime,isTemplateMessage:e.chatData.isTemplateMessage?1:0,isImgMessage:e.chatData.isImgMessage?1:0,isGoodMessage:e.chatData.isGoodMessage?1:0,isIntegralGoodMessage:e.chatData.isIntegralGoodMessage?1:0,mainStoreFlag:e.chatData.mainStoreFlag,minorStoreFlag:e.chatData.minorStoreFlag,openCardStoreFlag:e.chatData.openCardStoreFlag,clerkSeeOtherFlag:e.chatData.clerkSeeOtherFlag,allowGuideContact:e.chatData.allowGuideContact,allowGuideMobile:e.chatData.allowGuideMobile,allowGuideMessage:e.chatData.allowGuideMessage,allowGuideOnlineChat:e.chatData.allowGuideOnlineChat,isSeeAuthMember:e.chatData.isSeeAuthMember};Object(c.e)("/haoban-app-member-web/customer/save-member-show-setting",a).then(function(a){var s=a.data;if(1==s.errorCode)return u.a.showmsg("保存成功","success"),3==e.activeTab&&e.chatData.isImgMessage&&e.getArticleList(t),void(4==e.activeTab&&(e.chatData.isGoodMessage&&e.getGoodsList(t),e.chatData.isIntegralGoodMessage&&e.getPointList(t),e.chatData.isIntegralGoodMessage&&!e.chatData.isGoodMessage&&(e.activeName="second"),e.chatData.isGoodMessage&&!e.chatData.isIntegralGoodMessage&&(e.activeName="first")));d.a.errorMsg(s)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeTab:function(t){if(t.children)return this.activeTab=t.children[0].tabId,this.getCardSet(this.brandId),!1;this.pageNum=1,this.activeTab=t.tabId,this.getChatSet(this.brandId),this.getCardSet(this.brandId)},handleTab:function(t,e){this.pageNum=1,"first"==t.name?this.getGoodsList(this.brandId):this.getPointList(this.brandId)},getTemplate:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find_message_template",a).then(function(t){var a=t.data;1!=a.errorCode?d.a.errorMsg(a):e.templateName=a.result||"--"}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getGoodsList:function(t){var e=this,a={pageSize:e.pageSize,pageNum:e.pageNum,brandId:t};Object(c.e)("/haoban-app-member-web/customer/find_good_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.goodsList=a.result.list||[],void("first"==e.activeName&&(e.total=a.result.total));e.goodsList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getPointList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/customer/find_integal_good_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.pointList=a.result.list||[],void("second"==e.activeName&&(e.total=a.result.total));e.pointList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getArticleList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/customer/find_img_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.articleList=a.result.list||[],void(e.total=a.result.total);e.articleList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},delCardList:function(t){var e=this,a={brandId:e.brandId,coupCardId:t};Object(c.e)("/haoban-app-member-web/cardCoupon/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getCardList(e.brandId);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/cardCoupon/find-card-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.cardListData=a.result.list||[],void(e.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardRecord:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/cardCoupon/find-card-log-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.cardRecordData=a.result.list||[],void(e.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postSaveCard:function(t){var e=this,a={cardCoupChatSwitch:e.cardCoupChatSwitch?1:0,brandId:t};Object(c.e)("/haoban-app-member-web/customer/save-card-coup-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("设置成功","success"),void(e.cardCoupChatSwitch&&e.getCardList(e.brandId));d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardSet:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find-card-coup-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.cardCoupChatSwitch=1==a.result.cardCoupChatSwitch,e.cardCoupChatSwitch=a.result.cardCoupChatSwitch,"51"==e.activeTab&&e.cardCoupChatSwitch&&(e.pageSize=4,e.getCardList(e.brandId)),void("52"==e.activeTab&&(e.pageSize=6,e.getCardRecord(e.brandId)));d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getChatSet:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find-online-chat-setting",a).then(function(a){var s=a.data;1!=s.errorCode?d.a.errorMsg(s):s.result&&(s.result.chatFlag=1==s.result.chatFlag,s.result.isMessageRemind=1==s.result.isMessageRemind,s.result.messageRemindTime=s.result.messageRemindTime,s.result.isTemplateMessage=1==s.result.isTemplateMessage,s.result.isImgMessage=1==s.result.isImgMessage,s.result.isGoodMessage=1==s.result.isGoodMessage,s.result.isIntegralGoodMessage=1==s.result.isIntegralGoodMessage,e.chatData=s.result,2==e.activeTab&&e.getTemplate(t),3==e.activeTab&&s.result.isImgMessage&&(e.pageSize=4,e.getArticleList(t)),4==e.activeTab&&(e.pageSize=3,s.result.isGoodMessage&&e.getGoodsList(t),s.result.isIntegralGoodMessage&&e.getPointList(t),s.result.isIntegralGoodMessage&&!s.result.isGoodMessage&&(e.activeName="second"),s.result.isGoodMessage&&!s.result.isIntegralGoodMessage&&(e.activeName="first")))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){""!=t&&(this.getChatSet(t),this.getCardSet(t))}},mounted:function(){this.$emit("showTab","2"),""!=this.brandId&&(this.getChatSet(this.brandId),this.getCardSet(this.brandId)),""!=this.$route.query.activeTab&&(this.activeTab=this.$route.query.activeTab||"1")}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"online-chat-content border-box"},[a("div",{staticClass:"online-chat-switch"},[a("span",{staticClass:"font-14 color-606266 p-r-18"},[t._v("在线沟通")]),a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:t.changeChatFlag},model:{value:t.chatData.chatFlag,callback:function(e){t.$set(t.chatData,"chatFlag",e)},expression:"chatData.chatFlag"}}),a("span",{staticClass:"p-l-10 font-12 color-909399"},[t._v("若小程序使用了GIC 好办客服功能,会员将无法在公众号联系导购")])],1),t._v(" "),a("div",{staticClass:"online-chat-body"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"online-chat-left"},[a("ul",[t._l(t.leftData,function(e,s){return[a("li",{key:s+"left",class:["online-chat-left_li",t.activeTab==e.tabId?"active-li":""],on:{click:function(a){t.changeTab(e)}}},[t._v(t._s(e.tabName))]),t._v(" "),e.children&&e.children.length?a("ul",{key:s+"left1"},[t._l(e.children,function(e,s){return[a("li",{key:s+"left12",class:["online-chat-left_li child-li",t.activeTab==e.tabId?"active-li":""],on:{click:function(a){t.changeTab(e)}}},[t._v(t._s(e.tabName))])]})],2):t._e()]})],2)]),t._v(" "),a("div",{staticClass:"online-chat-right border-box"},[a("div",{staticClass:"online-chat-right_body"},[1==t.activeTab?a("div",{staticClass:"online-chat-message"},[a("el-form",{ref:"msgForm",staticClass:"demo-ruleForm",attrs:{model:t.chatData,rules:t.rules,"label-width":"70px"}},[a("el-form-item",{attrs:{label:"短信提醒",prop:"name"}},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isMessageRemind,callback:function(e){t.$set(t.chatData,"isMessageRemind",e)},expression:"chatData.isMessageRemind"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,会员发送消息,超出10条后,即发送短信给导购,每日最多触发一条短信,短信计入商家计费中心")])],1),t._v(" "),t.chatData.isMessageRemind?a("el-form-item",{attrs:{label:"",prop:"messageRemindTime"}},[a("span",{staticClass:"font-14 color-606266 p-r-10"},[t._v("下发时间设置")]),a("el-time-select",{attrs:{"picker-options":{start:"00:00",step:"00:15",end:"23:59"},placeholder:"选择时间"},model:{value:t.chatData.messageRemindTime,callback:function(e){t.$set(t.chatData,"messageRemindTime",e)},expression:"chatData.messageRemindTime"}}),a("span",{staticClass:"font-14 color-909399 p-l-20"},[t._v("该事件设置将在当日生效")])],1):t._e(),t._v(" "),t.chatData.isMessageRemind?a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.saveData("msgForm")}}},[t._v("保存")])],1):t._e()],1)],1):t._e(),t._v(" "),2==t.activeTab?a("div",{staticClass:"online-chat-template"},[t._m(0),t._v(" "),a("div",{staticClass:"m-t-23"},[a("span",{staticClass:"font-14 color-303133"},[t._v("模板消息")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isTemplateMessage,callback:function(e){t.$set(t.chatData,"isTemplateMessage",e)},expression:"chatData.isTemplateMessage"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("仅支持专属导购对会员发送模板消息,每个会员每个自然月模板消息发送次数不超过三次。设置后立即生效。")])],1),t._v(" "),a("div",{staticClass:"m-t-23"},[a("span",{staticClass:"font-14 color-303133"},[t._v("模板名字:")]),t._v(t._s(t.templateName))])]):t._e(),t._v(" "),3==t.activeTab?a("div",{staticClass:"online-chat-article"},[t._m(1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("span",{staticClass:"font-14 color-303133"},[t._v("图文")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isImgMessage,callback:function(e){t.$set(t.chatData,"isImgMessage",e)},expression:"chatData.isImgMessage"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,导购与会员聊天可发送GIC图文")])],1),t._v(" "),t.chatData.isImgMessage?a("div",{staticClass:"m-t-20 p-l-50"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.articleList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"图片","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"img-wrap border-box flex flex-align-center flex-pack-center"},[e.row.img?a("img",{attrs:{src:e.row.img,alt:""}}):t._e()]),t._v(" "),a("div",{staticClass:"article-title font-14 color-606266 p-l-10"},[t._v("\n "+t._s(e.row.title)+"\n ")])])]}}])}),t._v(" "),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.authorName||"--"))]}}])}),t._v(" "),a("el-table-column",{scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"4")}}},[t._v("发送记录")])]}}])})],1),t._v(" "),0!=t.articleList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()]):t._e(),t._v(" "),4==t.activeTab?a("div",{staticClass:"online-chat-goods"},[t._m(2),t._v(" "),a("div",{staticClass:"m-t-20"},[a("span",{staticClass:"font-14 color-303133"},[t._v("达摩微商城")]),a("el-switch",{staticClass:"m-l-10",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isGoodMessage,callback:function(e){t.$set(t.chatData,"isGoodMessage",e)},expression:"chatData.isGoodMessage"}}),a("span",{staticClass:"font-14 color-303133 p-l-40"},[t._v("积分商城")]),a("el-switch",{staticClass:"m-l-10",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isIntegralGoodMessage,callback:function(e){t.$set(t.chatData,"isIntegralGoodMessage",e)},expression:"chatData.isIntegralGoodMessage"}})],1),t._v(" "),t.chatData.isGoodMessage||t.chatData.isIntegralGoodMessage?a("div",{staticClass:"m-t-20"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.chatData.isGoodMessage?a("el-tab-pane",{attrs:{label:"达摩微商城",name:"first"}},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.goodsList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"商品信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"img-wrap flex flex-align-center flex-pack-center border-box"},[a("img",{attrs:{src:e.row.goodImg,alt:""}})]),t._v(" "),a("div",{staticClass:"article-title flex flex-column"},[a("p",{staticClass:"font-14 color-606266"},[t._v(t._s(e.row.goodName))]),t._v(" "),a("p",{staticClass:"font-12 color-909399"},[t._v(t._s(e.row.goodCode))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"单价(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.goodPrice))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"库存"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.stock||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"总销量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.saleAmount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发布时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.publishTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.publishTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"1")}}},[t._v("发送记录")])]}}])})],1)],1):t._e(),t._v(" "),t.chatData.isIntegralGoodMessage?a("el-tab-pane",{attrs:{label:"积分商城",name:"second"}},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.pointList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"商品信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"img-wrap border-box"},[a("img",{attrs:{src:e.row.goodImg,alt:""}})]),t._v(" "),a("div",{staticClass:"article-title flex flex-column"},[a("p",{staticClass:"font-14 color-606266"},[t._v(t._s(e.row.goodName))]),t._v(" "),a("p",{staticClass:"font-12 color-909399"},[t._v(t._s(e.row.goodCode))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"积分费用"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.integral))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"现金费用"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.goodPrice))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.publishTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.publishTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"2")}}},[t._v("发送记录")])]}}])})],1)],1):t._e()],1),t._v(" "),0!=t.goodsList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()]):t._e(),t._v(" "),51==t.activeTab?a("div",{staticClass:"online-chat-card"},[t._m(3),t._v(" "),a("div",{staticClass:"m-t-20 m-b-20 flex flex-space-between"},[a("div",{staticClass:"card-top-left"},[a("span",{staticClass:"font-14 color-303133"},[t._v("卡券")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSaveCard(t.brandId)}},model:{value:t.cardCoupChatSwitch,callback:function(e){t.cardCoupChatSwitch=e},expression:"cardCoupChatSwitch"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,导购与会员聊天可发送GIC卡券")])],1),t._v(" "),a("div",{staticClass:"card-top-right"},[a("el-button",{attrs:{disabled:!t.cardCoupChatSwitch,type:"primary"},on:{click:t.toNewCard}},[t._v("新建卡券")])],1)]),t._v(" "),t.cardCoupChatSwitch?a("card-list-table",{attrs:{activeTab:t.activeTab,tableData:t.cardListData},on:{delCard:t.delCard}}):t._e(),t._v(" "),t.cardListData.length&&t.cardCoupChatSwitch?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e(),t._v(" "),52==t.activeTab?a("div",{staticClass:"online-chat-card_record"},[t._m(4),t._v(" "),a("card-record-table",{attrs:{activeTab:t.activeTab,tableData:t.cardRecordData}}),t._v(" "),t.cardRecordData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()])])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:1.导购可在未和会员建立会话的情况下,发送消息给会员"),e("br"),this._v("\n 2.发送形式为模板消息,发送模板消息即表示发送了一条消息通知,并非建立主动会话"),e("br"),this._v("\n 3.频繁使用模板消息,可能导致微信封闭模板消息及会员取关率增加,请谨慎使用")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:选取微信营销素材库中的图文,配置后,导购可以选择对应的营销图文发送给会员")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:选取达摩微商城及积分商城中的商品,配置后,导购可以选择对应的商品发送给会员")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("选取GIC中卡券营销适用好办的卡券,配置后,导购可以选择对应的卡券发送给会员")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("当前卡券记录中发送数量、领取数量、领取率、使用数量、核销率、销售额为gic总体卡券记录,包含好办使用记录。后续更新将统计好办渠道卡券记录")])])])}]};var h=a("VU/8")(f,m,!1,function(t){a("1usg")},"data-v-31a27156",null);e.default=h.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([27],{"/8XM":function(t,e){},"0qiV":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Ke24"),n=a("joH8"),o=a("P9l9"),l=a("Ch4/"),s=a("3E4D"),r=a("PI0u"),c={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:i.a,materialRecord:n.a},data:function(){var t=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",topMenuData:[{id:"1",name:"图文素材"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}],onPick:function(e){var a=e.maxDate,i=e.minDate;t.choiceDateCopy=[i.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,i=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>i||e.getTime()>Date.now()-864e4}return e.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0,detailShow:!1,materialId:""}},methods:{toInput:Object(r.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},toCreate:function(){this.$router.push("/newImageText?appIcon="+this.$route.query.appIcon)},toSetTop:function(t,e){var a=this;a.$confirm(0==e?"置顶后,该素材将出现在手机好办营销素材顶部,确认置顶该素材吗":"确定「取消置顶」该条素材吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postTop(t,e)})},postTop:function(t,e){var a=this,i={materialId:t,topFlag:0==e?1:0};Object(o.a)("/haoban-app-material-web/material-to-top",i).then(function(t){var i=t.data;1==i.errorCode?(0==e?s.a.showmsg("置顶成功","success"):s.a.showmsg("取消置顶成功","success"),a.currentPage=1,a.getTableList()):s.a.showmsg(i.message,"warning")}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDel:function(t,e){var a=this;a.$confirm("是否要删除该素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(t,e){var a=this,i={materialId:t.materialId};Object(o.e)("/haoban-app-material-web/material-del",i).then(function(t){var e=t.data;if(1==e.errorCode)return s.a.showmsg("删除成功","success"),void a.getTableList();l.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},showDetail:function(t,e){this.$router.push("/newImageText?materialId="+e.materialId+"&appIcon="+this.$route.query.appIcon)},showRecord:function(t,e){this.detailShow=!0,this.materialId=e.materialId},hideDetailDialog:function(){this.detailShow=!1,this.materialId=""},getTableList:function(t){var e=this;e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={materialTitle:e.conditionObj.searchInput||"",startTimeStr:e.conditionObj.dateRange[0]||"",endTimeStr:e.conditionObj.dateRange[1]||"",relatedType:1,pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(o.a)("/haoban-app-material-web/material-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getTableList()}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",attrs:{placeholder:"请输入标题",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.toCreate}},[t._v("选择图文")])],1)]),t._v(" "),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.materialTitle||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"图文"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"img-wrap border-box flex flex-align-center flex-pack-center"},[e.row.imageTextUrl?a("img",{attrs:{src:e.row.imageTextUrl,alt:""}}):t._e()]),t._v(" "),a("div",{staticClass:"article-title font-14 color-606266 p-l-10"},[t._v("\n "+t._s(e.row.imageTextTitle)+"\n ")])])]}}])}),t._v(" "),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.thumbsUpCount||"--"))]}}])}),t._v(" "),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.tranferCount||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发布时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"219"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toSetTop(e.row.materialId,e.row.topFlag)}}},[t._v(t._s(1==e.row.topFlag?"取消置顶":"置顶"))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showDetail(e.$index,e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showRecord(e.$index,e.row)}}},[t._v("记录")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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),t._v(" "),a("material-record",{attrs:{materialId:t.materialId,detailShow:t.detailShow},on:{hideDetailDialog:t.hideDetailDialog}})],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(t){a("S5V/")},"data-v-05be2f20",null);e.default=d.exports},"S5V/":function(t,e){},joH8:function(t,e,a){"use strict";var i=a("P9l9"),n=a("Ch4/"),o=a("PI0u"),l={name:"material-record",props:{detailShow:{type:Boolean,default:!1},materialId:{type:String,default:""}},data:function(){return{customDialog:!1,activeName:"first",tableData:[],conditionObj:{searchInput:"",materialId:this.materialId},currentPage:1,pageSize:5,total:0}},methods:{handleTab:function(){this.currentPage=1,this.getTableList()},toInput:Object(o.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableList:function(t){var e=this,a={materialId:e.conditionObj.materialId,imgTextTitle:e.conditionObj.searchInput||"",relatedType:"first"==e.activeName?2:1,pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(i.a)("/haoban-app-material-web/material-log",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{detailShow:function(t,e){this.customDialog=t},materialId:function(t,e){t&&(this.conditionObj.materialId=t,this.currentPage=1,this.getTableList())}},mounted:function(){this.customDialog=this.detailShow,this.materialId&&(this.conditionObj.materialId=this.materialId,this.currentPage=1,this.getTableList())}},s={render: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:"739px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"点赞记录",name:"first"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-223",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条点赞记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"点赞人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),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.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"点赞时间","show-overflow-tooltip":""},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._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1),t._v(" "),a("el-tab-pane",{attrs:{label:"转发记录",name:"second"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-223",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条转发记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"转发人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),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.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转发时间","show-overflow-tooltip":""},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._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1)],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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)},staticRenderFns:[]};var r=a("VU/8")(l,s,!1,function(t){a("/8XM")},"data-v-66a1accb",null);e.a=r.exports}}); webpackJsonp([28],{"/8XM":function(t,e){},"0qiV":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Ke24"),n=a("joH8"),o=a("P9l9"),l=a("Ch4/"),s=a("3E4D"),r=a("PI0u"),c={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:i.a,materialRecord:n.a},data:function(){var t=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",topMenuData:[{id:"1",name:"图文素材"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}],onPick:function(e){var a=e.maxDate,i=e.minDate;t.choiceDateCopy=[i.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,i=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>i||e.getTime()>Date.now()-864e4}return e.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0,detailShow:!1,materialId:""}},methods:{toInput:Object(r.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},toCreate:function(){this.$router.push("/newImageText?appIcon="+this.$route.query.appIcon)},toSetTop:function(t,e){var a=this;a.$confirm(0==e?"置顶后,该素材将出现在手机好办营销素材顶部,确认置顶该素材吗":"确定「取消置顶」该条素材吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postTop(t,e)})},postTop:function(t,e){var a=this,i={materialId:t,topFlag:0==e?1:0};Object(o.a)("/haoban-app-material-web/material-to-top",i).then(function(t){var i=t.data;1==i.errorCode?(0==e?s.a.showmsg("置顶成功","success"):s.a.showmsg("取消置顶成功","success"),a.currentPage=1,a.getTableList()):s.a.showmsg(i.message,"warning")}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDel:function(t,e){var a=this;a.$confirm("是否要删除该素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(t,e){var a=this,i={materialId:t.materialId};Object(o.e)("/haoban-app-material-web/material-del",i).then(function(t){var e=t.data;if(1==e.errorCode)return s.a.showmsg("删除成功","success"),void a.getTableList();l.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},showDetail:function(t,e){this.$router.push("/newImageText?materialId="+e.materialId+"&appIcon="+this.$route.query.appIcon)},showRecord:function(t,e){this.detailShow=!0,this.materialId=e.materialId},hideDetailDialog:function(){this.detailShow=!1,this.materialId=""},getTableList:function(t){var e=this;e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={materialTitle:e.conditionObj.searchInput||"",startTimeStr:e.conditionObj.dateRange[0]||"",endTimeStr:e.conditionObj.dateRange[1]||"",relatedType:1,pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(o.a)("/haoban-app-material-web/material-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getTableList()}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",attrs:{placeholder:"请输入标题",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.toCreate}},[t._v("选择图文")])],1)]),t._v(" "),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.materialTitle||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"图文"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"img-wrap border-box flex flex-align-center flex-pack-center"},[e.row.imageTextUrl?a("img",{attrs:{src:e.row.imageTextUrl,alt:""}}):t._e()]),t._v(" "),a("div",{staticClass:"article-title font-14 color-606266 p-l-10"},[t._v("\n "+t._s(e.row.imageTextTitle)+"\n ")])])]}}])}),t._v(" "),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.thumbsUpCount||"--"))]}}])}),t._v(" "),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.tranferCount||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发布时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"219"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toSetTop(e.row.materialId,e.row.topFlag)}}},[t._v(t._s(1==e.row.topFlag?"取消置顶":"置顶"))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showDetail(e.$index,e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showRecord(e.$index,e.row)}}},[t._v("记录")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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),t._v(" "),a("material-record",{attrs:{materialId:t.materialId,detailShow:t.detailShow},on:{hideDetailDialog:t.hideDetailDialog}})],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(t){a("S5V/")},"data-v-05be2f20",null);e.default=d.exports},"S5V/":function(t,e){},joH8:function(t,e,a){"use strict";var i=a("P9l9"),n=a("Ch4/"),o=a("PI0u"),l={name:"material-record",props:{detailShow:{type:Boolean,default:!1},materialId:{type:String,default:""}},data:function(){return{customDialog:!1,activeName:"first",tableData:[],conditionObj:{searchInput:"",materialId:this.materialId},currentPage:1,pageSize:5,total:0}},methods:{handleTab:function(){this.currentPage=1,this.getTableList()},toInput:Object(o.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableList:function(t){var e=this,a={materialId:e.conditionObj.materialId,imgTextTitle:e.conditionObj.searchInput||"",relatedType:"first"==e.activeName?2:1,pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(i.a)("/haoban-app-material-web/material-log",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{detailShow:function(t,e){this.customDialog=t},materialId:function(t,e){t&&(this.conditionObj.materialId=t,this.currentPage=1,this.getTableList())}},mounted:function(){this.customDialog=this.detailShow,this.materialId&&(this.conditionObj.materialId=this.materialId,this.currentPage=1,this.getTableList())}},s={render: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:"739px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"点赞记录",name:"first"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-223",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条点赞记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"点赞人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),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.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"点赞时间","show-overflow-tooltip":""},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._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1),t._v(" "),a("el-tab-pane",{attrs:{label:"转发记录",name:"second"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-223",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条转发记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"转发人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),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.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转发时间","show-overflow-tooltip":""},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._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1)],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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)},staticRenderFns:[]};var r=a("VU/8")(l,s,!1,function(t){a("/8XM")},"data-v-66a1accb",null);e.a=r.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([28],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("2X9c"),e=i.n(a),n={name:"page500",data:function(){return{img_500:e.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},c={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var r=i("VU/8")(n,c,!1,function(t){i("wJ+N")},"data-v-d1f21788",null);s.default=r.exports},"wJ+N":function(t,s){}}); webpackJsonp([29],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("2X9c"),e=i.n(a),n={name:"page500",data:function(){return{img_500:e.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},c={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var r=i("VU/8")(n,c,!1,function(t){i("wJ+N")},"data-v-d1f21788",null);s.default=r.exports},"wJ+N":function(t,s){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([29],{CJkk:function(t,e){},HmVO:function(t,e){},Zyzf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("//Fk"),s=a.n(i),o=a("gBtx"),n=a.n(o),l=a("3Xzz"),c=a("PI0u"),r=a("P9l9"),d=a("3E4D"),f=a("Ch4/"),u={name:"staff-detail-field",props:{showCustomDialog:{type:Boolean,default:!1},detailData:{type:Array,default:function(){return[]}},dataType:{type:Number,default:1}},data:function(){return{repProjectName:"gic-web",customDialog:!1,fixData:["clerkName","clerkPhone","groupName","positionName"],fixDataStore:["clerkName","clerkPhone","groupName","positionName","clerkCode"],customData:[],checkList:[],setList:[],baseUrl:""}},beforeMount:function(){var t=window.location.origin;"-1"!=t.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=t},computed:{},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("customHandleConfirm","hide")},customConfirm:Object(c.a)(function(){this.checkList=this.customData.map(function(t){return t.checkList}).flat(),this.saveFields(this.dataType)},500),customChange:function(t){},saveFields:function(t){var e=this,a={fields:e.checkList,type:t};Object(r.e)("/haoban-manage-web/record/employee-show-field-save.json",a).then(function(t){var a=t.data;if(1==a.errorCode)return d.a.showmsg("添加成功","success"),void e.$emit("customHandleConfirm");f.a.errorMsg(a)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},treeData:function(t){var e=t.filter(function(e){var a=t.filter(function(t){return e.fieldCode==t.parentCode});return a.length>0&&(e.children=a),0==e.parentCode});return e.sort(function(t,e){return t.sort-e.sort}),e.forEach(function(t,e){t.children.sort(function(t,e){return t.sort-e.sort})}),e},getInfo:function(){var t=this;t.setList=[],Object(r.e)("/haoban-manage-web/record/employee-find-template.json",{}).then(function(e){var a=e.data;1!=a.errorCode?f.a.errorMsg(a):a.result&&a.result.length&&a.result.forEach(function(e){0!=e.parentCode&&t.setList.push(e.fieldCode)})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAllFields:function(){var t=this;Object(r.e)("/haoban-manage-web/record/employee-find-system-template.json",{}).then(function(e){var a=e.data;1!=a.errorCode?f.a.errorMsg(a):t.handleAllFields(a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(t){var e=this.treeData(t);e.forEach(function(t,e){t.checkList=[]}),this.customData=e},handleDetailData:function(){var t=this;t.customData.forEach(function(e,a){e.checkList=[],e.children.forEach(function(a,i){t.checkList.includes(a.fieldCode)&&e.checkList.push(a.fieldCode),a.disable=1==t.dataType?t.fixData.includes(a.fieldCode):t.fixDataStore.includes(a.fieldCode),t.setList.includes(a.fieldCode)||(a.disable=!0)})})}},watch:{showCustomDialog:function(t,e){this.customDialog=t},detailData:function(t,e){this.checkList=t&&t.length?t:[],this.handleDetailData()}},mounted:function(){var t=this;t.customDialog=t.showCustomDialog,s.a.all([t.getInfo()]).then(function(){t.getAllFields()})}},m={render: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:"761px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"custom-dialog__title"},[a("p",{staticClass:"custom-dialog__p"},[t._v("tips:添加后的字段将在员工个人详情页展示出来,个人敏感信息不建议添加")])]),t._v(" "),a("div",{staticClass:"custom-dialog-body"},[t._l(t.customData,function(e,i){return[a("div",{key:i,staticClass:"detail-field-cell flex"},[a("div",{staticClass:"detail-field-left"},[t._v(t._s(e.fieldName))]),t._v(" "),a("div",{staticClass:"detail-field-right flex"},[a("el-checkbox-group",{staticClass:"flex flex-wrap",on:{change:t.customChange},model:{value:e.checkList,callback:function(a){t.$set(e,"checkList",a)},expression:"item.checkList"}},t._l(e.children,function(e,i){return a("el-checkbox",{key:e.fieldCode+i,attrs:{label:e.fieldCode,disabled:e.disable,name:"type"}},[t._v("\n "+t._s(e.fieldName)+"\n ")])}))],1)])]})],2),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.customConfirm}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var h=a("VU/8")(u,m,!1,function(t){a("CJkk")},"data-v-64d006f9",null).exports,g={name:"staffDetails",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"员工详细字段",path:""}],fixData:["clerkName","clerkPhone","groupName","positionName"],fixDataStore:["clerkName","clerkPhone","groupName","positionName","clerkCode"],adminStruct:{name:"行政架构通讯录员工详情字段",fixedList:[],defineList:[]},storeStruct:{name:"门店架构通讯录员工详情字段",fixedList:[],defineList:[]},showCustomDialog:!1,detailData:[],dataType:null}},computed:{},methods:{showDialogLayer:function(t){this.showCustomDialog=!0,this.dataType=t,this.detailData=1===t?this.adminStruct.fixedList.map(function(t){return t.fields}).concat(this.adminStruct.defineList.map(function(t){return t.fields})):this.storeStruct.fixedList.map(function(t){return t.fields}).concat(this.storeStruct.defineList.map(function(t){return t.fields}))},customHandleConfirm:function(t){if(this.showCustomDialog=!1,t)return!1;this.getSaveFields(this.dataType)},delField:function(t,e,a,i){var s=this;s.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(o){o.value;s.postDlField(e.fields,i,a,t)}).catch(function(){})},postDlField:function(t,e,a,i){var s=this,o={fields:t,type:e};Object(r.e)("/haoban-manage-web/record/employee-show-field-delete.json",o).then(function(t){var e=t.data;if(1==e.errorCode)return d.a.showmsg("删除成功","success"),void a.splice(i,1);f.a.errorMsg(e)}).catch(function(t){s.$message.error({duration:1e3,message:t.message})})},getSaveFields:function(t){var e=this;1===t?(e.adminStruct.fixedList=[],e.adminStruct.defineList=[]):(e.storeStruct.fixedList=[],e.storeStruct.defineList=[]);var a={type:t};Object(r.e)("/haoban-manage-web/record/employee-show-field-detail.json",a).then(function(a){var i=a.data;1!=i.errorCode?f.a.errorMsg(i):i.result.forEach(function(a,i){1===n()(t)?e.fixData.includes(a.fields)?e.adminStruct.fixedList.push(a):e.adminStruct.defineList.push(a):e.fixDataStore.includes(a.fields)?e.storeStruct.fixedList.push(a):e.storeStruct.defineList.push(a)})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){s.a.all([this.getSaveFields(1),this.getSaveFields(2)])},components:{navCrumb:l.a,staffDetailField:h}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"staffDetails-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{height:t.$store.state.bgHeight,"overflow-y":"auto"}},[a("div",{staticClass:"staffDetails-cell"},[a("h2",{staticClass:"m-b-25 font-w-500"},[t._v(t._s(t.adminStruct.name))]),t._v(" "),a("div",{staticClass:"staffDetails-cell-fixed"},[t._l(t.adminStruct.fixedList,function(e,i){return[a("el-button",{key:"btn1"+i,staticClass:"staffDetails-cell-btn",attrs:{disabled:""}},[t._v(t._s(e.fieldName))])]})],2),t._v(" "),a("div",{staticClass:"staffDetails-cell-add font-0"},[t._l(t.adminStruct.defineList,function(e,i){return[a("el-tag",{key:"tag1"+i,staticClass:"staffDetails-cell-btn"},[t._v(t._s(e.fieldName)+" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),t.delField(i,e,t.adminStruct.defineList,1)}}})])]}),t._v(" "),a("el-button",{staticClass:"el-tag m-l-8 staffDetails-cell-btn",on:{click:function(e){e.stopPropagation(),t.showDialogLayer(1)}}},[a("i",{staticClass:"el-icon-plus"}),t._v("添加字段")])],2)]),t._v(" "),a("div",{staticClass:"staffDetails-cell"},[a("h2",{staticClass:"m-b-25 font-w-500"},[t._v(t._s(t.storeStruct.name))]),t._v(" "),a("div",{staticClass:"staffDetails-cell-fixed"},[t._l(t.storeStruct.fixedList,function(e,i){return[a("el-button",{key:"btn"+i,staticClass:"staffDetails-cell-btn",attrs:{disabled:""}},[t._v(t._s(e.fieldName))])]})],2),t._v(" "),a("div",{staticClass:"staffDetails-cell-add font-0"},[t._l(t.storeStruct.defineList,function(e,i){return[a("el-tag",{key:"tag"+i,staticClass:"staffDetails-cell-btn"},[t._v(t._s(e.fieldName)+" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),t.delField(i,e,t.storeStruct.defineList,2)}}})])]}),t._v(" "),a("el-button",{staticClass:"el-tag m-l-8 staffDetails-cell-btn",on:{click:function(e){e.stopPropagation(),t.showDialogLayer(2)}}},[a("i",{staticClass:"el-icon-plus"}),t._v("添加字段")])],2)])])]),t._v(" "),a("vue-gic-footer"),t._v(" "),a("staff-detail-field",{attrs:{detailData:t.detailData,showCustomDialog:t.showCustomDialog,dataType:t.dataType},on:{customHandleConfirm:t.customHandleConfirm}})],1)},staticRenderFns:[]};var v=a("VU/8")(g,p,!1,function(t){a("HmVO")},"data-v-4dbf74e4",null);e.default=v.exports}}); webpackJsonp([30],{CJkk:function(t,e){},HmVO:function(t,e){},Zyzf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("//Fk"),s=a.n(i),o=a("gBtx"),n=a.n(o),l=a("3Xzz"),c=a("PI0u"),r=a("P9l9"),d=a("3E4D"),f=a("Ch4/"),u={name:"staff-detail-field",props:{showCustomDialog:{type:Boolean,default:!1},detailData:{type:Array,default:function(){return[]}},dataType:{type:Number,default:1}},data:function(){return{repProjectName:"gic-web",customDialog:!1,fixData:["clerkName","clerkPhone","groupName","positionName"],fixDataStore:["clerkName","clerkPhone","groupName","positionName","clerkCode"],customData:[],checkList:[],setList:[],baseUrl:""}},beforeMount:function(){var t=window.location.origin;"-1"!=t.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=t},computed:{},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("customHandleConfirm","hide")},customConfirm:Object(c.a)(function(){this.checkList=this.customData.map(function(t){return t.checkList}).flat(),this.saveFields(this.dataType)},500),customChange:function(t){},saveFields:function(t){var e=this,a={fields:e.checkList,type:t};Object(r.e)("/haoban-manage-web/record/employee-show-field-save.json",a).then(function(t){var a=t.data;if(1==a.errorCode)return d.a.showmsg("添加成功","success"),void e.$emit("customHandleConfirm");f.a.errorMsg(a)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},treeData:function(t){var e=t.filter(function(e){var a=t.filter(function(t){return e.fieldCode==t.parentCode});return a.length>0&&(e.children=a),0==e.parentCode});return e.sort(function(t,e){return t.sort-e.sort}),e.forEach(function(t,e){t.children.sort(function(t,e){return t.sort-e.sort})}),e},getInfo:function(){var t=this;t.setList=[],Object(r.e)("/haoban-manage-web/record/employee-find-template.json",{}).then(function(e){var a=e.data;1!=a.errorCode?f.a.errorMsg(a):a.result&&a.result.length&&a.result.forEach(function(e){0!=e.parentCode&&t.setList.push(e.fieldCode)})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAllFields:function(){var t=this;Object(r.e)("/haoban-manage-web/record/employee-find-system-template.json",{}).then(function(e){var a=e.data;1!=a.errorCode?f.a.errorMsg(a):t.handleAllFields(a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(t){var e=this.treeData(t);e.forEach(function(t,e){t.checkList=[]}),this.customData=e},handleDetailData:function(){var t=this;t.customData.forEach(function(e,a){e.checkList=[],e.children.forEach(function(a,i){t.checkList.includes(a.fieldCode)&&e.checkList.push(a.fieldCode),a.disable=1==t.dataType?t.fixData.includes(a.fieldCode):t.fixDataStore.includes(a.fieldCode),t.setList.includes(a.fieldCode)||(a.disable=!0)})})}},watch:{showCustomDialog:function(t,e){this.customDialog=t},detailData:function(t,e){this.checkList=t&&t.length?t:[],this.handleDetailData()}},mounted:function(){var t=this;t.customDialog=t.showCustomDialog,s.a.all([t.getInfo()]).then(function(){t.getAllFields()})}},m={render: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:"761px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"custom-dialog__title"},[a("p",{staticClass:"custom-dialog__p"},[t._v("tips:添加后的字段将在员工个人详情页展示出来,个人敏感信息不建议添加")])]),t._v(" "),a("div",{staticClass:"custom-dialog-body"},[t._l(t.customData,function(e,i){return[a("div",{key:i,staticClass:"detail-field-cell flex"},[a("div",{staticClass:"detail-field-left"},[t._v(t._s(e.fieldName))]),t._v(" "),a("div",{staticClass:"detail-field-right flex"},[a("el-checkbox-group",{staticClass:"flex flex-wrap",on:{change:t.customChange},model:{value:e.checkList,callback:function(a){t.$set(e,"checkList",a)},expression:"item.checkList"}},t._l(e.children,function(e,i){return a("el-checkbox",{key:e.fieldCode+i,attrs:{label:e.fieldCode,disabled:e.disable,name:"type"}},[t._v("\n "+t._s(e.fieldName)+"\n ")])}))],1)])]})],2),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.customConfirm}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var h=a("VU/8")(u,m,!1,function(t){a("CJkk")},"data-v-64d006f9",null).exports,g={name:"staffDetails",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"员工详细字段",path:""}],fixData:["clerkName","clerkPhone","groupName","positionName"],fixDataStore:["clerkName","clerkPhone","groupName","positionName","clerkCode"],adminStruct:{name:"行政架构通讯录员工详情字段",fixedList:[],defineList:[]},storeStruct:{name:"门店架构通讯录员工详情字段",fixedList:[],defineList:[]},showCustomDialog:!1,detailData:[],dataType:null}},computed:{},methods:{showDialogLayer:function(t){this.showCustomDialog=!0,this.dataType=t,this.detailData=1===t?this.adminStruct.fixedList.map(function(t){return t.fields}).concat(this.adminStruct.defineList.map(function(t){return t.fields})):this.storeStruct.fixedList.map(function(t){return t.fields}).concat(this.storeStruct.defineList.map(function(t){return t.fields}))},customHandleConfirm:function(t){if(this.showCustomDialog=!1,t)return!1;this.getSaveFields(this.dataType)},delField:function(t,e,a,i){var s=this;s.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(o){o.value;s.postDlField(e.fields,i,a,t)}).catch(function(){})},postDlField:function(t,e,a,i){var s=this,o={fields:t,type:e};Object(r.e)("/haoban-manage-web/record/employee-show-field-delete.json",o).then(function(t){var e=t.data;if(1==e.errorCode)return d.a.showmsg("删除成功","success"),void a.splice(i,1);f.a.errorMsg(e)}).catch(function(t){s.$message.error({duration:1e3,message:t.message})})},getSaveFields:function(t){var e=this;1===t?(e.adminStruct.fixedList=[],e.adminStruct.defineList=[]):(e.storeStruct.fixedList=[],e.storeStruct.defineList=[]);var a={type:t};Object(r.e)("/haoban-manage-web/record/employee-show-field-detail.json",a).then(function(a){var i=a.data;1!=i.errorCode?f.a.errorMsg(i):i.result.forEach(function(a,i){1===n()(t)?e.fixData.includes(a.fields)?e.adminStruct.fixedList.push(a):e.adminStruct.defineList.push(a):e.fixDataStore.includes(a.fields)?e.storeStruct.fixedList.push(a):e.storeStruct.defineList.push(a)})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){s.a.all([this.getSaveFields(1),this.getSaveFields(2)])},components:{navCrumb:l.a,staffDetailField:h}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"staffDetails-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{height:t.$store.state.bgHeight,"overflow-y":"auto"}},[a("div",{staticClass:"staffDetails-cell"},[a("h2",{staticClass:"m-b-25 font-w-500"},[t._v(t._s(t.adminStruct.name))]),t._v(" "),a("div",{staticClass:"staffDetails-cell-fixed"},[t._l(t.adminStruct.fixedList,function(e,i){return[a("el-button",{key:"btn1"+i,staticClass:"staffDetails-cell-btn",attrs:{disabled:""}},[t._v(t._s(e.fieldName))])]})],2),t._v(" "),a("div",{staticClass:"staffDetails-cell-add font-0"},[t._l(t.adminStruct.defineList,function(e,i){return[a("el-tag",{key:"tag1"+i,staticClass:"staffDetails-cell-btn"},[t._v(t._s(e.fieldName)+" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),t.delField(i,e,t.adminStruct.defineList,1)}}})])]}),t._v(" "),a("el-button",{staticClass:"el-tag m-l-8 staffDetails-cell-btn",on:{click:function(e){e.stopPropagation(),t.showDialogLayer(1)}}},[a("i",{staticClass:"el-icon-plus"}),t._v("添加字段")])],2)]),t._v(" "),a("div",{staticClass:"staffDetails-cell"},[a("h2",{staticClass:"m-b-25 font-w-500"},[t._v(t._s(t.storeStruct.name))]),t._v(" "),a("div",{staticClass:"staffDetails-cell-fixed"},[t._l(t.storeStruct.fixedList,function(e,i){return[a("el-button",{key:"btn"+i,staticClass:"staffDetails-cell-btn",attrs:{disabled:""}},[t._v(t._s(e.fieldName))])]})],2),t._v(" "),a("div",{staticClass:"staffDetails-cell-add font-0"},[t._l(t.storeStruct.defineList,function(e,i){return[a("el-tag",{key:"tag"+i,staticClass:"staffDetails-cell-btn"},[t._v(t._s(e.fieldName)+" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),t.delField(i,e,t.storeStruct.defineList,2)}}})])]}),t._v(" "),a("el-button",{staticClass:"el-tag m-l-8 staffDetails-cell-btn",on:{click:function(e){e.stopPropagation(),t.showDialogLayer(2)}}},[a("i",{staticClass:"el-icon-plus"}),t._v("添加字段")])],2)])])]),t._v(" "),a("vue-gic-footer"),t._v(" "),a("staff-detail-field",{attrs:{detailData:t.detailData,showCustomDialog:t.showCustomDialog,dataType:t.dataType},on:{customHandleConfirm:t.customHandleConfirm}})],1)},staticRenderFns:[]};var v=a("VU/8")(g,p,!1,function(t){a("HmVO")},"data-v-4dbf74e4",null);e.default=v.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([30],{"4HoI":function(t,s){},B9Yg:function(t,s,e){t.exports=e.p+"static/img/gic-error.8aba914.png"},"Q3j/":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("B9Yg"),a=e.n(i),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"登录遇到错误啦!请确认您是否已是好办管理员,如不是,请联系管理员。"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/login",rel:"noopener noreferrer"}},[this._v("返回好办登录页")])])])])},staticRenderFns:[]};var c=e("VU/8")(n,r,!1,function(t){e("4HoI")},"data-v-45ea1cc1",null);s.default=c.exports}}); webpackJsonp([31],{"4HoI":function(t,s){},B9Yg:function(t,s,e){t.exports=e.p+"static/img/gic-error.8aba914.png"},"Q3j/":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("B9Yg"),a=e.n(i),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"登录遇到错误啦!请确认您是否已是好办管理员,如不是,请联系管理员。"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/login",rel:"noopener noreferrer"}},[this._v("返回好办登录页")])])])])},staticRenderFns:[]};var c=e("VU/8")(n,r,!1,function(t){e("4HoI")},"data-v-45ea1cc1",null);s.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([31],{"/n/x":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("mvHQ"),i=a.n(s),r={name:"people-day-class",props:{classData:{type:[Array,Object],default:function(){return[]}},cycleData:{type:[Array,Object],default:function(){return[]}},itemSchedule:{type:[Array,Object],default:function(){return[]}},dates:{type:[Array,Object],default:function(){return[]}},workDate:{type:Number,default:function(){return(new Date).getTime()}}},data:function(){return{activeTab:"1",translate:{width:"56px",transform:"translateX(30px)"},defaultData:[{id:"0",serial:"休息"},{id:"-2",serial:"清空"}]}},methods:{chooseTab:function(e,t){this.activeTab=t,this.translate={width:e.target.offsetWidth+"px",transform:"translateX("+e.target.offsetLeft+"px)"}},daySet:function(e){var t=this;if(t.itemSchedule.schedules&&t.itemSchedule.schedules.length)if(t.itemSchedule.schedules.map(function(e){return e.workDate}).includes(t.workDate))t.itemSchedule.schedules.forEach(function(a){a.workDate==t.workDate&&(a.serial=e.serial,a.classes={id:e.id,serial:e.serial},a.isRest=!0)}),t.$forceUpdate();else{var a=JSON.parse(i()(t.itemSchedule.schedules));a.push({classes:{id:e.id,serial:e.serial},serial:e.serial,isRest:!0,workDate:t.workDate}),t.itemSchedule.schedules=JSON.parse(i()(a))}else t.$set(t.itemSchedule,"schedules",[]),t.itemSchedule.schedules.push({classes:{id:e.id,serial:e.serial},serial:e.serial,isRest:!0,workDate:t.workDate});t.itemSchedule.schedules.sort(function(e,t){return e.workDate-t.workDate}),t.$forceUpdate()},dayWeekSet:function(){for(var e=this,t=[],a=new Date(e.workDate).getDate()-1;a<e.dates.length;a++)t.push(e.dates[a]);var s=e.cycleData[0].itemList.length;t.forEach(function(t,a){t.serial=e.cycleData[0].itemList[a%s].className,t.classes={id:e.cycleData[0].itemList[a%s].classId,serial:e.cycleData[0].itemList[a%s].className},t.isRest=!0,t.workDate=t.timeStamp}),e.itemSchedule.hasOwnProperty("schedules")||e.$set(e.itemSchedule,"schedules",[]),e.itemSchedule.schedules.forEach(function(a,s){a.workDate<e.workDate&&t.push(a)}),t.sort(function(e,t){return e.workDate-t.workDate}),e.itemSchedule.schedules=JSON.parse(i()(t)),e.$set(e.itemSchedule,"schedules",JSON.parse(i()(t))),e.$forceUpdate()}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"day-tabs"},[a("div",{staticClass:"tablist"},[a("div",{staticClass:"right-content-top border-box"},[a("div",{staticClass:"right-top-wrap_left flex flex-pack-center"},[a("ul",{staticClass:"flex flex-row flex-pack-center "},[a("div",{staticClass:"el-tabs__active-bar is-top",style:e.translate}),e._v(" "),a("li",{class:["flex flex-align-center flex-pack-center p-lr-24",1==e.activeTab?"active-li":""],on:{click:function(t){e.chooseTab(t,"1")}}},[a("span",{staticClass:"flex flex-align-center flex-pack-center right-top-title"},[e._v("按天排班")])]),e._v(" "),a("li",{class:["flex flex-align-center flex-pack-center p-lr-24",2==e.activeTab?"active-li":""],on:{click:function(t){e.chooseTab(t,"2")}}},[a("span",{staticClass:"flex flex-align-center flex-pack-center right-top-title"},[e._v("按周期排班")])])])])])]),e._v(" "),1==e.activeTab?a("ul",[a("li",[a("div",{staticClass:"day-item-title",attrs:{title:"修改该员工当天班次"}},[e._v("修改该员工当天班次")]),e._v(" "),a("ul",[e._l(e.classData,function(t,s){return[a("li",{key:s+"class",staticClass:"day-class-item p-lr-20",on:{click:function(a){a.stopPropagation(),e.daySet(t)}}},[a("p",{staticClass:"class-item day-tag-red"},[e._v(e._s(t.serial))])])]}),e._v(" "),e._l(e.defaultData,function(t,s){return[a("li",{key:s+"defaultClass",staticClass:"day-class-item p-lr-20",on:{click:function(a){a.stopPropagation(),e.daySet(t)}}},[a("p",{class:["class-item","0"==t.id?"class-rest":"class-clear"]},[e._v(e._s(t.serial))])])]})],2)])]):e._e(),e._v(" "),2==e.activeTab?a("ul",[a("li",[a("div",{staticClass:"day-item-title",attrs:{title:"从该天开始周期排班至月底"}},[e._v("从该天开始周期排班至月底")]),e._v(" "),a("ul",[a("li",{staticClass:"day-class-item p-lr-20",on:{click:function(t){return t.stopPropagation(),e.dayWeekSet(t)}}},[a("p",{staticClass:"class-item day-tag-blue"},[e._v(e._s(e.cycleData[0].cycleName)+" "+e._s(e.cycleData[0].itemList.map(function(e){return e.className}).join("-")))])])])])]):e._e()])},staticRenderFns:[]};var c=a("VU/8")(r,l,!1,function(e){a("7P+c")},"data-v-c329f64e",null).exports,n={name:"workTimeManage",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{peopleDayClass:c},filters:{filterDay:function(e){return new Date(e).getDate()}},data:function(){return{activeBrand:this.brandId,activeGroup:this.activeGroupId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,activeId:"2",topMenuData:[{id:"1",name:"在线沟通设置",path:"/onlineChatSet?appIcon="+this.$route.query.appIcon+"&activeTab="+this.$route.query.activeTab},{id:"2",name:3==this.$route.query.activeTab?"图文发送记录":1==this.$route.query.tabType?"微商城商品发送记录":2==this.$route.query.tabType?"积分商城商品发送记录":""}],currentPage:1,pageSize:20,total:0,cycleData:[{cycleName:"555555",id:287955018,isValid:!0,itemList:[{classId:468090517,className:"3",isValid:!0},{classId:468770499,className:"默认班次",isValid:!0},{classId:468770499,className:"默认班次",isValid:!0},{classId:468770499,className:"默认班次",isValid:!0},{classId:468770499,className:"默认班次",isValid:!0}]}],classes:[{absentTime:100,id:460445486,isOffDutyFreeCheck:!1,isRestTimeOpen:!1,permitLateMinutes:30,sections:[{end:{across:0,time:"12:00"},start:{across:0,time:"09:00"}},{end:{across:0,time:"18:00"},start:{across:0,time:"14:00"}}],serial:"2",seriousLateTime:51,workTime:420},{absentTime:38,id:468090517,isOffDutyFreeCheck:!0,isRestTimeOpen:!1,permitLateMinutes:30,sections:[{end:{across:0,time:"11:00"},start:{across:0,time:"09:00"}},{end:{across:0,time:"15:00"},start:{across:0,time:"12:00"}},{end:{across:0,time:"18:00"},start:{across:0,time:"16:00"}}],serial:"3",seriousLateTime:34,workTime:420},{absentTime:-1,id:468770499,isOffDutyFreeCheck:!1,isRestTimeOpen:!1,permitLateMinutes:-1,sections:[{end:{across:0,time:"18:00"},start:{across:0,time:"09:00"}}],serial:"默认班次",seriousLateTime:-1,workTime:540}],weekData:["日","一","二","三","四","五","六"],dates:[{dayOfWeek:0,timeStamp:15751296e5},{dayOfWeek:1,timeStamp:1575216e6},{dayOfWeek:2,timeStamp:15753024e5},{dayOfWeek:3,timeStamp:15753888e5},{dayOfWeek:4,timeStamp:15754752e5},{dayOfWeek:5,timeStamp:15755616e5},{dayOfWeek:6,timeStamp:1575648e6},{dayOfWeek:0,timeStamp:15757344e5},{dayOfWeek:1,timeStamp:15758208e5},{dayOfWeek:2,timeStamp:15759072e5},{dayOfWeek:3,timeStamp:15759936e5},{dayOfWeek:4,timeStamp:157608e7},{dayOfWeek:5,timeStamp:15761664e5},{dayOfWeek:6,timeStamp:15762528e5},{dayOfWeek:0,timeStamp:15763392e5},{dayOfWeek:1,timeStamp:15764256e5},{dayOfWeek:2,timeStamp:1576512e6},{dayOfWeek:3,timeStamp:15765984e5},{dayOfWeek:4,timeStamp:15766848e5},{dayOfWeek:5,timeStamp:15767712e5},{dayOfWeek:6,timeStamp:15768576e5},{dayOfWeek:0,timeStamp:1576944e6},{dayOfWeek:1,timeStamp:15770304e5},{dayOfWeek:2,timeStamp:15771168e5},{dayOfWeek:3,timeStamp:15772032e5},{dayOfWeek:4,timeStamp:15772896e5},{dayOfWeek:5,timeStamp:1577376e6},{dayOfWeek:6,timeStamp:15774624e5},{dayOfWeek:0,timeStamp:15775488e5},{dayOfWeek:1,timeStamp:15776352e5},{dayOfWeek:2,timeStamp:15777216e5}],tableData:[{user:{deptId:-1,deptName:"web后台",encUid:"%40kgDOAtabQg",name:"朱瑞泽",uid:47618882,userId:"016858095226338128"},schedules:[{classes:{id:468090517,serial:"3"},serial:"3",isRest:!1,workDate:15751296e5},{classes:{id:468770499,serial:"默认班次"},serial:"默认班次",isRest:!1,workDate:1575216e6},{classes:{id:468090517,serial:"3"},serial:"3",isRest:!1,workDate:15753024e5},{classes:{id:460445486,serial:"2"},serial:"2",isRest:!1,workDate:15753888e5}]},{user:{avatar:"https://static.dingtalk.com/media/lADPBbCc1hrq6JDNAjDNAuw_748_560.jpg",deptId:-1,deptName:"web后台",encUid:"%40kgDOEHQqOA",name:"黄芝文",uid:276048440,userId:"113456291040121422"},schedules:[{classes:{id:468090517,serial:"3"},serial:"3",isRest:!1,workDate:15751296e5}]}]}},methods:{getTableList:function(e){}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"work-time border-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"work-time-content border-box"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{border:"",data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"","show-overflow-tooltip":"",fixed:"",resizable:!1},scopedSlots:e._u([{key:"header",fn:function(t){return[e._v("\n 姓名\n ")]}},{key:"default",fn:function(t){return[a("div",{staticClass:"row-username"},[a("el-popover",{attrs:{placement:"bottom",width:"231",trigger:"click"}},[a("div",{staticClass:"tool-tip-body",attrs:{slot:"reference"},slot:"reference"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.row.user.name,placement:"top-start"}},[a("p",[e._v(e._s(t.row.user.name))])])],1)])],1)]}}])}),e._v(" "),e._l(e.dates,function(t,s){return[a("el-table-column",{key:s+"thead",attrs:{prop:"","show-overflow-tooltip":"",resizable:!1},scopedSlots:e._u([{key:"header",fn:function(s){return[e._v("\n "+e._s(e._f("filterDay")(t.timeStamp))+" "),a("br"),e._v("\n "+e._s(e.weekData[t.dayOfWeek])+"\n ")]}},{key:"default",fn:function(i){return[a("div",{staticClass:"day-work"},[a("el-popover",{attrs:{placement:"bottom",width:"231",trigger:"click"}},[a("people-day-class",{attrs:{dates:e.dates,itemSchedule:i.row,workDate:t.timeStamp,classData:e.classes,cycleData:e.cycleData},on:{refreshData:e.refreshData}}),e._v(" "),a("div",{staticClass:"tool-tip-body",attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"day-work-cell schedule_del_class"},[a("div",{staticClass:"day-work-cell_text"},[e._v(e._s(i.row.schedules&&i.row.schedules[s]&&i.row.schedules[s].workDate==t.timeStamp?i.row.schedules[s].serial:"清空"))]),e._v(" "),i.row.schedules&&i.row.schedules[s]&&i.row.schedules[s].workDate==t.timeStamp&&i.row.schedules[s].isRest?a("div",{staticClass:"day-work-cell_icon"}):e._e()])])],1)],1)]}}])})]})],2),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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)],1)])},staticRenderFns:[]};var d=a("VU/8")(n,o,!1,function(e){a("3NBm")},"data-v-44828add",null);t.default=d.exports},"3NBm":function(e,t){},"7P+c":function(e,t){}}); webpackJsonp([32],{"/n/x":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("mvHQ"),i=a.n(s),r={name:"people-day-class",props:{classData:{type:[Array,Object],default:function(){return[]}},cycleData:{type:[Array,Object],default:function(){return[]}},itemSchedule:{type:[Array,Object],default:function(){return[]}},dates:{type:[Array,Object],default:function(){return[]}},workDate:{type:Number,default:function(){return(new Date).getTime()}}},data:function(){return{activeTab:"1",translate:{width:"56px",transform:"translateX(30px)"},defaultData:[{id:"0",serial:"休息"},{id:"-2",serial:"清空"}]}},methods:{chooseTab:function(e,t){this.activeTab=t,this.translate={width:e.target.offsetWidth+"px",transform:"translateX("+e.target.offsetLeft+"px)"}},daySet:function(e){var t=this;if(t.itemSchedule.schedules&&t.itemSchedule.schedules.length)if(t.itemSchedule.schedules.map(function(e){return e.workDate}).includes(t.workDate))t.itemSchedule.schedules.forEach(function(a){a.workDate==t.workDate&&(a.serial=e.serial,a.classes={id:e.id,serial:e.serial},a.isRest=!0)}),t.$forceUpdate();else{var a=JSON.parse(i()(t.itemSchedule.schedules));a.push({classes:{id:e.id,serial:e.serial},serial:e.serial,isRest:!0,workDate:t.workDate}),t.itemSchedule.schedules=JSON.parse(i()(a))}else t.$set(t.itemSchedule,"schedules",[]),t.itemSchedule.schedules.push({classes:{id:e.id,serial:e.serial},serial:e.serial,isRest:!0,workDate:t.workDate});t.itemSchedule.schedules.sort(function(e,t){return e.workDate-t.workDate}),t.$forceUpdate()},dayWeekSet:function(){for(var e=this,t=[],a=new Date(e.workDate).getDate()-1;a<e.dates.length;a++)t.push(e.dates[a]);var s=e.cycleData[0].itemList.length;t.forEach(function(t,a){t.serial=e.cycleData[0].itemList[a%s].className,t.classes={id:e.cycleData[0].itemList[a%s].classId,serial:e.cycleData[0].itemList[a%s].className},t.isRest=!0,t.workDate=t.timeStamp}),e.itemSchedule.hasOwnProperty("schedules")||e.$set(e.itemSchedule,"schedules",[]),e.itemSchedule.schedules.forEach(function(a,s){a.workDate<e.workDate&&t.push(a)}),t.sort(function(e,t){return e.workDate-t.workDate}),e.itemSchedule.schedules=JSON.parse(i()(t)),e.$set(e.itemSchedule,"schedules",JSON.parse(i()(t))),e.$forceUpdate()}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"day-tabs"},[a("div",{staticClass:"tablist"},[a("div",{staticClass:"right-content-top border-box"},[a("div",{staticClass:"right-top-wrap_left flex flex-pack-center"},[a("ul",{staticClass:"flex flex-row flex-pack-center "},[a("div",{staticClass:"el-tabs__active-bar is-top",style:e.translate}),e._v(" "),a("li",{class:["flex flex-align-center flex-pack-center p-lr-24",1==e.activeTab?"active-li":""],on:{click:function(t){e.chooseTab(t,"1")}}},[a("span",{staticClass:"flex flex-align-center flex-pack-center right-top-title"},[e._v("按天排班")])]),e._v(" "),a("li",{class:["flex flex-align-center flex-pack-center p-lr-24",2==e.activeTab?"active-li":""],on:{click:function(t){e.chooseTab(t,"2")}}},[a("span",{staticClass:"flex flex-align-center flex-pack-center right-top-title"},[e._v("按周期排班")])])])])])]),e._v(" "),1==e.activeTab?a("ul",[a("li",[a("div",{staticClass:"day-item-title",attrs:{title:"修改该员工当天班次"}},[e._v("修改该员工当天班次")]),e._v(" "),a("ul",[e._l(e.classData,function(t,s){return[a("li",{key:s+"class",staticClass:"day-class-item p-lr-20",on:{click:function(a){a.stopPropagation(),e.daySet(t)}}},[a("p",{staticClass:"class-item day-tag-red"},[e._v(e._s(t.serial))])])]}),e._v(" "),e._l(e.defaultData,function(t,s){return[a("li",{key:s+"defaultClass",staticClass:"day-class-item p-lr-20",on:{click:function(a){a.stopPropagation(),e.daySet(t)}}},[a("p",{class:["class-item","0"==t.id?"class-rest":"class-clear"]},[e._v(e._s(t.serial))])])]})],2)])]):e._e(),e._v(" "),2==e.activeTab?a("ul",[a("li",[a("div",{staticClass:"day-item-title",attrs:{title:"从该天开始周期排班至月底"}},[e._v("从该天开始周期排班至月底")]),e._v(" "),a("ul",[a("li",{staticClass:"day-class-item p-lr-20",on:{click:function(t){return t.stopPropagation(),e.dayWeekSet(t)}}},[a("p",{staticClass:"class-item day-tag-blue"},[e._v(e._s(e.cycleData[0].cycleName)+" "+e._s(e.cycleData[0].itemList.map(function(e){return e.className}).join("-")))])])])])]):e._e()])},staticRenderFns:[]};var c=a("VU/8")(r,l,!1,function(e){a("7P+c")},"data-v-c329f64e",null).exports,n={name:"workTimeManage",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{peopleDayClass:c},filters:{filterDay:function(e){return new Date(e).getDate()}},data:function(){return{activeBrand:this.brandId,activeGroup:this.activeGroupId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,activeId:"2",topMenuData:[{id:"1",name:"在线沟通设置",path:"/onlineChatSet?appIcon="+this.$route.query.appIcon+"&activeTab="+this.$route.query.activeTab},{id:"2",name:3==this.$route.query.activeTab?"图文发送记录":1==this.$route.query.tabType?"微商城商品发送记录":2==this.$route.query.tabType?"积分商城商品发送记录":""}],currentPage:1,pageSize:20,total:0,cycleData:[{cycleName:"555555",id:287955018,isValid:!0,itemList:[{classId:468090517,className:"3",isValid:!0},{classId:468770499,className:"默认班次",isValid:!0},{classId:468770499,className:"默认班次",isValid:!0},{classId:468770499,className:"默认班次",isValid:!0},{classId:468770499,className:"默认班次",isValid:!0}]}],classes:[{absentTime:100,id:460445486,isOffDutyFreeCheck:!1,isRestTimeOpen:!1,permitLateMinutes:30,sections:[{end:{across:0,time:"12:00"},start:{across:0,time:"09:00"}},{end:{across:0,time:"18:00"},start:{across:0,time:"14:00"}}],serial:"2",seriousLateTime:51,workTime:420},{absentTime:38,id:468090517,isOffDutyFreeCheck:!0,isRestTimeOpen:!1,permitLateMinutes:30,sections:[{end:{across:0,time:"11:00"},start:{across:0,time:"09:00"}},{end:{across:0,time:"15:00"},start:{across:0,time:"12:00"}},{end:{across:0,time:"18:00"},start:{across:0,time:"16:00"}}],serial:"3",seriousLateTime:34,workTime:420},{absentTime:-1,id:468770499,isOffDutyFreeCheck:!1,isRestTimeOpen:!1,permitLateMinutes:-1,sections:[{end:{across:0,time:"18:00"},start:{across:0,time:"09:00"}}],serial:"默认班次",seriousLateTime:-1,workTime:540}],weekData:["日","一","二","三","四","五","六"],dates:[{dayOfWeek:0,timeStamp:15751296e5},{dayOfWeek:1,timeStamp:1575216e6},{dayOfWeek:2,timeStamp:15753024e5},{dayOfWeek:3,timeStamp:15753888e5},{dayOfWeek:4,timeStamp:15754752e5},{dayOfWeek:5,timeStamp:15755616e5},{dayOfWeek:6,timeStamp:1575648e6},{dayOfWeek:0,timeStamp:15757344e5},{dayOfWeek:1,timeStamp:15758208e5},{dayOfWeek:2,timeStamp:15759072e5},{dayOfWeek:3,timeStamp:15759936e5},{dayOfWeek:4,timeStamp:157608e7},{dayOfWeek:5,timeStamp:15761664e5},{dayOfWeek:6,timeStamp:15762528e5},{dayOfWeek:0,timeStamp:15763392e5},{dayOfWeek:1,timeStamp:15764256e5},{dayOfWeek:2,timeStamp:1576512e6},{dayOfWeek:3,timeStamp:15765984e5},{dayOfWeek:4,timeStamp:15766848e5},{dayOfWeek:5,timeStamp:15767712e5},{dayOfWeek:6,timeStamp:15768576e5},{dayOfWeek:0,timeStamp:1576944e6},{dayOfWeek:1,timeStamp:15770304e5},{dayOfWeek:2,timeStamp:15771168e5},{dayOfWeek:3,timeStamp:15772032e5},{dayOfWeek:4,timeStamp:15772896e5},{dayOfWeek:5,timeStamp:1577376e6},{dayOfWeek:6,timeStamp:15774624e5},{dayOfWeek:0,timeStamp:15775488e5},{dayOfWeek:1,timeStamp:15776352e5},{dayOfWeek:2,timeStamp:15777216e5}],tableData:[{user:{deptId:-1,deptName:"web后台",encUid:"%40kgDOAtabQg",name:"朱瑞泽",uid:47618882,userId:"016858095226338128"},schedules:[{classes:{id:468090517,serial:"3"},serial:"3",isRest:!1,workDate:15751296e5},{classes:{id:468770499,serial:"默认班次"},serial:"默认班次",isRest:!1,workDate:1575216e6},{classes:{id:468090517,serial:"3"},serial:"3",isRest:!1,workDate:15753024e5},{classes:{id:460445486,serial:"2"},serial:"2",isRest:!1,workDate:15753888e5}]},{user:{avatar:"https://static.dingtalk.com/media/lADPBbCc1hrq6JDNAjDNAuw_748_560.jpg",deptId:-1,deptName:"web后台",encUid:"%40kgDOEHQqOA",name:"黄芝文",uid:276048440,userId:"113456291040121422"},schedules:[{classes:{id:468090517,serial:"3"},serial:"3",isRest:!1,workDate:15751296e5}]}]}},methods:{getTableList:function(e){}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"work-time border-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"work-time-content border-box"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{border:"",data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"","show-overflow-tooltip":"",fixed:"",resizable:!1},scopedSlots:e._u([{key:"header",fn:function(t){return[e._v("\n 姓名\n ")]}},{key:"default",fn:function(t){return[a("div",{staticClass:"row-username"},[a("el-popover",{attrs:{placement:"bottom",width:"231",trigger:"click"}},[a("div",{staticClass:"tool-tip-body",attrs:{slot:"reference"},slot:"reference"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.row.user.name,placement:"top-start"}},[a("p",[e._v(e._s(t.row.user.name))])])],1)])],1)]}}])}),e._v(" "),e._l(e.dates,function(t,s){return[a("el-table-column",{key:s+"thead",attrs:{prop:"","show-overflow-tooltip":"",resizable:!1},scopedSlots:e._u([{key:"header",fn:function(s){return[e._v("\n "+e._s(e._f("filterDay")(t.timeStamp))+" "),a("br"),e._v("\n "+e._s(e.weekData[t.dayOfWeek])+"\n ")]}},{key:"default",fn:function(i){return[a("div",{staticClass:"day-work"},[a("el-popover",{attrs:{placement:"bottom",width:"231",trigger:"click"}},[a("people-day-class",{attrs:{dates:e.dates,itemSchedule:i.row,workDate:t.timeStamp,classData:e.classes,cycleData:e.cycleData},on:{refreshData:e.refreshData}}),e._v(" "),a("div",{staticClass:"tool-tip-body",attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"day-work-cell schedule_del_class"},[a("div",{staticClass:"day-work-cell_text"},[e._v(e._s(i.row.schedules&&i.row.schedules[s]&&i.row.schedules[s].workDate==t.timeStamp?i.row.schedules[s].serial:"清空"))]),e._v(" "),i.row.schedules&&i.row.schedules[s]&&i.row.schedules[s].workDate==t.timeStamp&&i.row.schedules[s].isRest?a("div",{staticClass:"day-work-cell_icon"}):e._e()])])],1)],1)]}}])})]})],2),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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)],1)])},staticRenderFns:[]};var d=a("VU/8")(n,o,!1,function(e){a("3NBm")},"data-v-44828add",null);t.default=d.exports},"3NBm":function(e,t){},"7P+c":function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([32],{C57R:function(e,t){},Cw3p:function(e,t){},iG3v:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("2eFk"),l=a("Ie7z"),s=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"taskView",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"话务任务记录"}],activeId:"1",showDialog:!1,conditionObj:{tableType:"1",searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeTable:function(e){this.currentPage=1,this.getTableList()},handleCommand:function(e){this.selectRadio=e},setSelectTab:function(e){this.activeTab=e.tabId},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this;t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var a={search:t.conditionObj.searchInput||"",ecmIds:t.multipleSelection.map(function(e){return e.ecmIds}).join(",")||"",brandId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-task-view-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:a.join(",")||"",storeGroupIds:t.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange?e.conditionObj.dateRange[0]:"",endDate:e.conditionObj.dateRange?e.conditionObj.dateRange[1]:"",brandId:e.activeBrand};Object(c.b)("/haoban-app-tel-task-web/task/export-store-task-list",n).then(function(t){if(!t.data)return p.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),n=(e.tableData[0]?e.tableData[0].storeName:"")+"门店任务报表.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("taskViewDetail?ecmId="+t.ecmId+"&appIcon="+this.$route.query.appIcon)},getTableList:function(e){var t=this,a={search:t.conditionObj.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/task-view-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initDataRange:function(){var e=new Date,t=e.getTime()-7776e6,a=e.getFullYear(),n=e.getMonth()+1,o=e.getDate()<10?"0"+e.getDate():e.getDate(),i=n<10?"0"+n:n,l=new Date(t),s=l.getFullYear(),r=l.getMonth()+1,c=l.getDate()<10?"0"+l.getDate():l.getDate();return[s+"-"+(r<10?"0"+r:r)+"-"+c,a+"-"+i+"-"+o]}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.conditionObj.dateRange=e.initDataRange(),document.documentElement.style.backgroundColor="#f0f2f5",e.activeBrand=e.brandId,this.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:s.a,vueSelectStore:l.a,multipleDel:r.a}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入话务任务名称"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("span",{staticClass:"condition-tips font-12 color-909399 p-l-10"},[e._v("仅包含话务任务记录")])],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"任务名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ecmName))]}}])}),e._v(" "),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.competedTaskNum))]}}])}),e._v(" "),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.competedTaskRate))]}}])}),e._v(" "),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.toComplete))]}}])}),e._v(" "),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.overTimeNum))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var g=a("VU/8")(h,b,!1,function(e){a("C57R")},"data-v-35b0f131",null).exports,f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"话务任务记录"}],activeId:"1",showDialog:!1,conditionObj:{tableType:"1",searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeTable:function(e){if(2==e.name)return!1;this.currentPage=1,this.getTableList()},handleCommand:function(e){this.selectRadio=e},setSelectTab:function(e){this.activeTab=e.tabId},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[],n=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var o={search:t.conditionObj.searchInput||"",filterStoreIds:n.join(",")||"",storeGroupIds:a.join(",")||"",storeIds:t.multipleSelection.map(function(e){return e.storeId}).join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",brandId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:a.join(",")||"",storeGroupIds:t.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange?e.conditionObj.dateRange[0]:"",endDate:e.conditionObj.dateRange?e.conditionObj.dateRange[1]:"",brandId:e.activeBrand};Object(c.b)("/haoban-app-tel-task-web/task/export-store-task-list",n).then(function(t){if(!t.data)return p.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),n=(e.tableData[0]?e.tableData[0].storeName:"")+"门店任务报表.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("taskDetail?storeId="+t.storeId+"&appIcon="+this.$route.query.appIcon)},getTableList:function(e){var t=this,a=[],n=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var o={search:t.conditionObj.searchInput||"",filterStoreIds:n.join(",")||"",storeGroupIds:a.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initDataRange:function(){var e=new Date,t=e.getTime()-7776e6,a=e.getFullYear(),n=e.getMonth()+1,o=e.getDate()<10?"0"+e.getDate():e.getDate(),i=n<10?"0"+n:n,l=new Date(t),s=l.getFullYear(),r=l.getMonth()+1,c=l.getDate()<10?"0"+l.getDate():l.getDate();return[s+"-"+(r<10?"0"+r:r)+"-"+c,a+"-"+i+"-"+o]}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.conditionObj.dateRange=e.initDataRange(),document.documentElement.style.backgroundColor="#f0f2f5",e.activeBrand=e.brandId,this.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:s.a,vueSelectStore:l.a,multipleDel:r.a,taskView:g}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"common-detail-tab"},[a("el-tabs",{staticClass:"daily-set-tab",on:{"tab-click":e.changeTable},model:{value:e.conditionObj.tableType,callback:function(t){e.$set(e.conditionObj,"tableType",t)},expression:"conditionObj.tableType"}},[a("el-tab-pane",{attrs:{label:"门店视图",name:"1"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"话务任务视图",name:"2"}})],1)],1),e._v(" "),1==e.conditionObj.tableType?a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e.conditionObj.storeGroup.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc"},[e._v("请选择门店分组")]),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.conditionObj.storeGroup,function(t,n){return[a("span",{key:n,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(n,e.conditionObj.storeGroup)}}})])]})],2)])])])]),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeStoreType},model:{value:e.conditionObj.storeType,callback:function(t){e.$set(e.conditionObj,"storeType",t)},expression:"conditionObj.storeType"}},e._l(e.storeTypeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),e._v(" "),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.completedCount))]}}])}),e._v(" "),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.completedRate))]}}])}),e._v(" "),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.noCompletedCount))]}}])}),e._v(" "),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.overdueCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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(),e._v(" "),2==e.conditionObj.tableType?a("taskView",{attrs:{brandId:e.brandId,activeGroupId:e.activeGroupId}}):e._e(),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1},on:{hideDialog:e.hideDialog}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var v=a("VU/8")(f,m,!1,function(e){a("Cw3p")},"data-v-8b3b982c",null);t.default=v.exports}}); webpackJsonp([33],{C57R:function(e,t){},Cw3p:function(e,t){},iG3v:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("2eFk"),l=a("Ie7z"),s=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"taskView",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"话务任务记录"}],activeId:"1",showDialog:!1,conditionObj:{tableType:"1",searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeTable:function(e){this.currentPage=1,this.getTableList()},handleCommand:function(e){this.selectRadio=e},setSelectTab:function(e){this.activeTab=e.tabId},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this;t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var a={search:t.conditionObj.searchInput||"",ecmIds:t.multipleSelection.map(function(e){return e.ecmIds}).join(",")||"",brandId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-task-view-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:a.join(",")||"",storeGroupIds:t.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange?e.conditionObj.dateRange[0]:"",endDate:e.conditionObj.dateRange?e.conditionObj.dateRange[1]:"",brandId:e.activeBrand};Object(c.b)("/haoban-app-tel-task-web/task/export-store-task-list",n).then(function(t){if(!t.data)return p.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),n=(e.tableData[0]?e.tableData[0].storeName:"")+"门店任务报表.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("taskViewDetail?ecmId="+t.ecmId+"&appIcon="+this.$route.query.appIcon)},getTableList:function(e){var t=this,a={search:t.conditionObj.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/task-view-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initDataRange:function(){var e=new Date,t=e.getTime()-7776e6,a=e.getFullYear(),n=e.getMonth()+1,o=e.getDate()<10?"0"+e.getDate():e.getDate(),i=n<10?"0"+n:n,l=new Date(t),s=l.getFullYear(),r=l.getMonth()+1,c=l.getDate()<10?"0"+l.getDate():l.getDate();return[s+"-"+(r<10?"0"+r:r)+"-"+c,a+"-"+i+"-"+o]}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.conditionObj.dateRange=e.initDataRange(),document.documentElement.style.backgroundColor="#f0f2f5",e.activeBrand=e.brandId,this.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:s.a,vueSelectStore:l.a,multipleDel:r.a}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入话务任务名称"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("span",{staticClass:"condition-tips font-12 color-909399 p-l-10"},[e._v("仅包含话务任务记录")])],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"任务名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ecmName))]}}])}),e._v(" "),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.competedTaskNum))]}}])}),e._v(" "),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.competedTaskRate))]}}])}),e._v(" "),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.toComplete))]}}])}),e._v(" "),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.overTimeNum))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var g=a("VU/8")(h,b,!1,function(e){a("C57R")},"data-v-35b0f131",null).exports,f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"话务任务记录"}],activeId:"1",showDialog:!1,conditionObj:{tableType:"1",searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeTable:function(e){if(2==e.name)return!1;this.currentPage=1,this.getTableList()},handleCommand:function(e){this.selectRadio=e},setSelectTab:function(e){this.activeTab=e.tabId},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[],n=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var o={search:t.conditionObj.searchInput||"",filterStoreIds:n.join(",")||"",storeGroupIds:a.join(",")||"",storeIds:t.multipleSelection.map(function(e){return e.storeId}).join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",brandId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:a.join(",")||"",storeGroupIds:t.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange?e.conditionObj.dateRange[0]:"",endDate:e.conditionObj.dateRange?e.conditionObj.dateRange[1]:"",brandId:e.activeBrand};Object(c.b)("/haoban-app-tel-task-web/task/export-store-task-list",n).then(function(t){if(!t.data)return p.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),n=(e.tableData[0]?e.tableData[0].storeName:"")+"门店任务报表.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("taskDetail?storeId="+t.storeId+"&appIcon="+this.$route.query.appIcon)},getTableList:function(e){var t=this,a=[],n=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var o={search:t.conditionObj.searchInput||"",filterStoreIds:n.join(",")||"",storeGroupIds:a.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initDataRange:function(){var e=new Date,t=e.getTime()-7776e6,a=e.getFullYear(),n=e.getMonth()+1,o=e.getDate()<10?"0"+e.getDate():e.getDate(),i=n<10?"0"+n:n,l=new Date(t),s=l.getFullYear(),r=l.getMonth()+1,c=l.getDate()<10?"0"+l.getDate():l.getDate();return[s+"-"+(r<10?"0"+r:r)+"-"+c,a+"-"+i+"-"+o]}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.conditionObj.dateRange=e.initDataRange(),document.documentElement.style.backgroundColor="#f0f2f5",e.activeBrand=e.brandId,this.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:s.a,vueSelectStore:l.a,multipleDel:r.a,taskView:g}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"common-detail-tab"},[a("el-tabs",{staticClass:"daily-set-tab",on:{"tab-click":e.changeTable},model:{value:e.conditionObj.tableType,callback:function(t){e.$set(e.conditionObj,"tableType",t)},expression:"conditionObj.tableType"}},[a("el-tab-pane",{attrs:{label:"门店视图",name:"1"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"话务任务视图",name:"2"}})],1)],1),e._v(" "),1==e.conditionObj.tableType?a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e.conditionObj.storeGroup.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc"},[e._v("请选择门店分组")]),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.conditionObj.storeGroup,function(t,n){return[a("span",{key:n,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(n,e.conditionObj.storeGroup)}}})])]})],2)])])])]),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeStoreType},model:{value:e.conditionObj.storeType,callback:function(t){e.$set(e.conditionObj,"storeType",t)},expression:"conditionObj.storeType"}},e._l(e.storeTypeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),e._v(" "),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.completedCount))]}}])}),e._v(" "),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.completedRate))]}}])}),e._v(" "),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.noCompletedCount))]}}])}),e._v(" "),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.overdueCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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(),e._v(" "),2==e.conditionObj.tableType?a("taskView",{attrs:{brandId:e.brandId,activeGroupId:e.activeGroupId}}):e._e(),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1},on:{hideDialog:e.hideDialog}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var v=a("VU/8")(f,m,!1,function(e){a("Cw3p")},"data-v-8b3b982c",null);t.default=v.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([33],{"6XGN":function(M,L,j){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var N=j("CkW6"),u=j.n(N),w={name:"page403",data:function(){return{img_403:u.a}},computed:{message:function(){return"抱歉,你无权访问该页面"}}},D={render:function(){var M=this.$createElement,L=this._self._c||M;return L("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[L("div",{staticClass:"wscn-http404"},[L("div",{staticClass:"pic-404"},[L("img",{staticClass:"pic-404__parent",attrs:{src:this.img_403,alt:"403"}})]),this._v(" "),L("div",{staticClass:"bullshit"},[L("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),L("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var C=j("VU/8")(w,D,!1,function(M){j("GVON")},"data-v-34b4b20b",null);L.default=C.exports},CkW6:function(M,L){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i5Zu+5bGCXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgNDAwIDMzNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDAwIDMzNTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6I0ZBRkNGRjt9DQoJLnN0MXtmaWxsOiNEQkU1RjE7fQ0KCS5zdDJ7ZmlsbDojREVFN0Y0O30NCgkuc3Qze2ZpbGw6I0I5QzdEQjt9DQoJLnN0NHtmaWxsOiNGRkZGRkY7fQ0KCS5zdDV7ZmlsbDpub25lO3N0cm9rZTojQjlDN0RCO3N0cm9rZS13aWR0aDo0O3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCgkuc3Q2e2ZpbGw6bm9uZTtzdHJva2U6I0I2QzdEODtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPHBhdGggY2xhc3M9InN0NSIgZD0iTTI3NC41LDI0MS4zYy01LjMtNS4zLTQuNCw0LjQtNi43LDYuN2MtMy4xLDMuMS02LjMsNi05LjcsOC42SDEyNS4yYy0zLjQtMi43LTYuNi01LjYtOS43LTguNw0KCWMtMjguNC0yOC41LTM4LjYtNzAuNS0yNi42LTEwOWwtMTAuNS0xMC42Yy01LjMtNS4zLTUuMy0xMy44LDAtMTkuMmM1LjItNS4zLDEzLjctNS4zLDE5LTAuMWMwLDAsMCwwLDAuMSwwLjFsNi42LDYuOA0KCWMzLjEsMy4yLDguMiwzLjIsMTEuNCwwbDAsMGMzLjItMy4yLDMuMi04LjMsMC0xMS41TDEwMy4xLDkyYy0zLjItMy4yLTMuMi04LjMsMC0xMS41YzMuMS0zLjIsOC4yLTMuMiwxMS40LDBsMCwwbDE3LjIsMTcuMg0KCWMtMC45LDMuNywwLjksNy42LDQuNCw5LjNjMy41LDEuNyw3LjcsMC42LDkuOS0yLjVjMi4zLTMuMSwyLjEtNy40LTAuNS0xMC4zYy0zLjMtMy44LTYuNS03LjItNi41LTcuMmwtNy4zLTcuNA0KCWMzNC44LTIxLjMsODIuNi0yMS43LDExNy4yLDBjMzQuNSwyMS43LDUzLjksNjEuMiw1MCwxMDEuOWwxNS40LDE1LjZjMy4yLDMuMiwzLjIsOC4zLDAsMTEuNWMtMy4xLDMuMi04LjIsMy4yLTExLjQsMGwwLDANCglsLTE1LjEtMTUuM2MtMy4xLTMuMi04LjItMy4yLTExLjQsMGwwLDBjLTMuMiwzLjItMy4yLDguMywwLDExLjVsMTcuMSwxNy4yYzUuMiw1LjMsNS4yLDEzLjgsMCwxOS4xDQoJQzI4OC40LDI0Ni42LDI3OS45LDI0Ni42LDI3NC41LDI0MS4zQzI3NC42LDI0MS4zLDI3NC42LDI0MS4zLDI3NC41LDI0MS4zTDI3NC41LDI0MS4zeiIvPg0KPHBhdGggY2xhc3M9InN0MyIgZD0iTTg2LjYsNzEuNGMwLDQuNywzLjgsOC41LDguNSw4LjVjMS41LDAsMy0wLjQsNC4zLTEuMWM0LjEtMi4zLDUuNS03LjUsMy4xLTExLjZjLTEuNS0yLjYtNC4zLTQuMy03LjQtNC4zDQoJQzkwLjQsNjIuOSw4Ni42LDY2LjcsODYuNiw3MS40Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjE2LjQsMTQ1LjRoMjQuM2wtNy40LDE3LjljMi42LDEuOCw0LjUsMy44LDUuOCw2YzEuMiwyLjIsMS45LDQuOCwxLjksNy44YzAsNC42LTEuNiw4LjQtNC44LDExLjINCgljLTMuMiwyLjktNy4zLDQuMy0xMi4zLDQuM2MtMi41LDAtNS4xLTAuNC03LjUtMS4xdi0xMy4xYzIsMC45LDMuOSwxLjQsNS41LDEuNHMyLjktMC41LDMuNy0xLjRjMC45LTEsMS4zLTIuMywxLjMtNC4xDQoJYzAtMS45LTAuOC0zLjQtMi40LTQuNmMtMS42LTEuMi0zLjctMS43LTYuNC0xLjdsMy40LTkuMWgtNS4xVjE0NS40TDIxNi40LDE0NS40eiBNMjA3LjUsMTgxLjZjMCwxLjUtMC4zLDMtMC44LDQuMw0KCXMtMS4zLDIuNS0yLjMsMy41cy0yLjIsMS44LTMuNCwyLjNjLTEuMywwLjYtMi44LDAuOS00LjMsMC45aC05LjZjLTEuNSwwLTIuOS0wLjMtNC4zLTAuOWMtMS4zLTAuNi0yLjUtMS4zLTMuNC0yLjMNCgljLTAuNC0wLjQtMC44LTAuOS0xLjItMS40bDExLjctMTcuM3Y2YzAsMC42LDAuMiwxLjEsMC42LDEuNGMwLjQsMC40LDAuOCwwLjYsMS40LDAuNmMxLjEsMCwyLTAuOCwyLTEuOXYtMC4xdi0xMS45bDEwLjktMTYuMQ0KCWMxLjgsMiwyLjgsNC42LDIuNyw3LjNMMjA3LjUsMTgxLjZMMjA3LjUsMTgxLjZMMjA3LjUsMTgxLjZ6IE0xNzcuMSwxODUuOWMtMC42LTEuNC0wLjktMi44LTAuOC00LjNWMTU2YzAtMS41LDAuMy0zLDAuOC00LjMNCglzMS4zLTIuNSwyLjMtMy41czIuMi0xLjgsMy40LTIuM2MxLjMtMC42LDIuOC0wLjksNC4zLTAuOWg5LjZjMS41LDAsMi45LDAuMyw0LjMsMC45YzEuMywwLjUsMi40LDEuMywzLjQsMi4zbC0xMC41LDE1LjR2LTIuNw0KCWMwLTAuNS0wLjItMS4xLTAuNi0xLjRjLTAuNC0wLjQtMC45LTAuNi0xLjQtMC42Yy0xLjEsMC0yLDAuOC0yLDEuOXYwLjF2OC42bC0xMi4xLDE3LjlDMTc3LjUsMTg2LjksMTc3LjMsMTg2LjQsMTc3LjEsMTg1LjkNCglMMTc3LjEsMTg1Ljl6IE0yNDMuOCwxOTIuN2MzLjUtNy40LDUuMy0xNS41LDUuMy0yMy43YzAtMzAuNS0yNC40LTU1LjItNTQuNi01NS4ycy01NC42LDI0LjctNTQuNiw1NS4yYzAsMC40LDAsMC44LDAsMS4xDQoJbDE5LjYtMjQuNmgxMS40TDE1NCwxNzEuM2g1LjV2LTYuNWwxMS43LTE4LjV2NDYuOGgtMTEuN3YtOS44aC0xNy44YzUuMSwxOS4yLDIwLjEsMzQuMywzOS4yLDM5LjJjLTEuMiwzLjEtNC44LDEwLjctMTAuNywxMg0KCWMtNy4zLDEuNywxOS45LDAuNCwzOS40LTEyLjVjMTQuOS00LjQsMjcuMi0xNSwzMy45LTI4LjlMMjQzLjgsMTkyLjdMMjQzLjgsMTkyLjd6Ii8+DQo8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNMjM4LjksMTU0LjNsLTI0LjQsMzUuNGwwLjUsMC4zbDI0LjQtMzUuNEwyMzguOSwxNTQuM3oiLz4NCjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0yNjYuMiw2Ni42aDhjMC43LDAsMS4zLDAuNiwxLjMsMS4zbDAsMGMwLDAuNC0wLjEsMC43LTAuNCwxYy0wLjIsMC4zLTAuNiwwLjQtMC45LDAuNGgtOA0KCWMtMC40LDAtMC43LTAuMS0wLjktMC40Yy0wLjUtMC41LTAuNS0xLjQsMC0xLjlDMjY1LjUsNjYuNywyNjUuOCw2Ni42LDI2Ni4yLDY2LjYgTTExNi41LDIwMS45Yy00LjQsMC04LDMuNi04LDguMXMzLjYsOC4xLDgsOC4xDQoJczgtMy42LDgtOC4xUzEyMC45LDIwMS45LDExNi41LDIwMS45TDExNi41LDIwMS45eiBNMTIxLjQsMjEyLjFjLTAuOCwyLTIuOCwzLjMtNC45LDMuM2MtMywwLTUuMy0yLjQtNS4zLTUuNGMwLTIuMiwxLjMtNC4xLDMuMy01DQoJYzItMC44LDQuMy0wLjQsNS44LDEuMkMxMjEuOCwyMDcuNywxMjIuMiwyMTAsMTIxLjQsMjEyLjFMMTIxLjQsMjEyLjF6IE0xOTEuMyw3OC43Yy00LjQsMC04LDMuNi04LDguMXMzLjYsOC4xLDgsOC4xDQoJYzIuMSwwLDQuMi0wLjksNS43LTIuNHMyLjMtMy42LDIuMy01LjdDMTk5LjMsODIuNCwxOTUuNyw3OC43LDE5MS4zLDc4Ljd6IE0xOTYuMyw4OC45Yy0wLjgsMi0yLjgsMy4zLTQuOSwzLjMNCgljLTMsMC01LjMtMi40LTUuMy01LjRjMC0yLjIsMS4zLTQuMiwzLjMtNXM0LjMtMC40LDUuOCwxLjJDMTk2LjYsODQuNiwxOTcuMSw4Ni45LDE5Ni4zLDg4LjlMMTk2LjMsODguOXogTTI3MC4yLDE2Mi42DQoJYy00LjQsMC04LDMuNi04LDguMXMzLjYsOC4xLDgsOC4xczgtMy42LDgtOC4xQzI3OC4yLDE2Ni4zLDI3NC42LDE2Mi42LDI3MC4yLDE2Mi42eiBNMjc1LjEsMTcyLjhjLTAuOCwyLTIuOCwzLjMtNC45LDMuMw0KCWMtMywwLTUuMy0yLjQtNS4zLTUuNGMwLTIuMiwxLjMtNC4yLDMuMy01czQuMy0wLjQsNS44LDEuMlMyNzUuOSwxNzAuOCwyNzUuMSwxNzIuOHogTTIzMC4xLDMxLjRjLTQuNCwwLTgsMy42LTgsOC4xczMuNiw4LjEsOCw4LjENCgljMi4xLDAsNC4yLTAuOSw1LjctMi40czIuMy0zLjYsMi4zLTUuN0MyMzguMSwzNSwyMzQuNSwzMS40LDIzMC4xLDMxLjR6IE0yMzUsNDEuNmMtMC44LDItMi44LDMuMy00LjksMy4zYy0zLDAtNS4zLTIuNC01LjMtNS40DQoJYzAtMi4yLDEuMy00LjIsMy4zLTVzNC4zLTAuNCw1LjgsMS4yQzIzNS40LDM3LjIsMjM1LjgsMzkuNSwyMzUsNDEuNnoiLz4NCjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNjMuMiw0NS45aDguMmMwLjQsMCwwLjcsMC4xLDEsMC40YzAuNSwwLjUsMC41LDEuMywwLDEuOWwwLDBjLTAuMywwLjMtMC42LDAuNC0xLDAuNGgtOC4yDQoJYy0wLjQsMC0wLjctMC4xLTEtMC40Yy0wLjUtMC41LTAuNS0xLjMsMC0xLjlsMCwwQzE2Mi40LDQ2LjEsMTYyLjgsNDUuOSwxNjMuMiw0NS45IE0yNzEuNyw2My41djhjMCwwLjQtMC4xLDAuNy0wLjQsMC45DQoJYy0wLjMsMC4zLTAuNiwwLjQtMSwwLjRjLTAuNywwLTEuNC0wLjYtMS40LTEuM2wwLDB2LThjMC0wLjQsMC4xLTAuNywwLjQtMC45YzAuNS0wLjUsMS40LTAuNSwxLjksMA0KCUMyNzEuNiw2Mi44LDI3MS43LDYzLjIsMjcxLjcsNjMuNSIvPg0KPHBhdGggY2xhc3M9InN0MyIgZD0iTTEwNy40LDE1NC44aDguMmMwLjQsMCwwLjcsMC4xLDEsMC40YzAuMywwLjIsMC40LDAuNiwwLjQsMC45YzAsMC43LTAuNiwxLjMtMS40LDEuM2gtOC4yDQoJYy0wLjUsMC0wLjktMC4zLTEuMi0wLjdjLTAuMi0wLjQtMC4yLTAuOSwwLTEuM0MxMDYuNCwxNTUuMSwxMDYuOSwxNTQuOCwxMDcuNCwxNTQuOCBNMTY5LDQyLjd2OGMwLDAuNC0wLjEsMC43LTAuNCwwLjkNCgljLTAuNSwwLjUtMS40LDAuNS0yLDBjLTAuMi0wLjItMC40LTAuNi0wLjQtMC45di04YzAtMC40LDAuMS0wLjcsMC40LTAuOWMwLjUtMC41LDEuNC0wLjUsMS45LDBDMTY4LjgsNDIsMTY5LDQyLjMsMTY5LDQyLjciLz4NCjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0yMzAuOSwxMTAuM2g4LjFjMC43LDAsMS4zLDAuNiwxLjMsMS40YzAsMC43LTAuNiwxLjMtMS4zLDEuNGgtOC4xYy0wLjgsMC0xLjQtMC42LTEuNC0xLjQNCgljMC0wLjQsMC4xLTAuNywwLjQtMUMyMzAuMiwxMTAuNCwyMzAuNiwxMTAuMywyMzAuOSwxMTAuMyIvPg0KPHBhdGggY2xhc3M9InN0MyIgZD0iTTExNC42LDE2My44djguMmMwLDAuNC0wLjEsMC43LTAuNCwxYy0wLjUsMC41LTEuNCwwLjUtMS45LDBjLTAuMy0wLjMtMC40LTAuNi0wLjQtMXYtOC4yYzAtMC40LDAuMS0wLjcsMC40LTENCgljMC41LTAuNSwxLjQtMC41LDEuOSwwbDAsMEMxMTQuNCwxNjMuMSwxMTQuNiwxNjMuNCwxMTQuNiwxNjMuOCIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTEyNiwyNzIuN2g2MC40YzAuNywwLDEuMywwLjYsMS4zLDEuM2wwLDBjMCwwLjctMC42LDEuMy0xLjMsMS40SDEyNmMtMC43LDAtMS4zLTAuNi0xLjMtMS4zDQoJQzEyNC43LDI3My4zLDEyNS4zLDI3Mi43LDEyNiwyNzIuNyIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTIxOC42LDI3Mi43aDM0LjljMC43LDAsMS4zLDAuNiwxLjMsMS4zYzAsMC43LTAuNiwxLjMtMS4zLDEuM2gtMzQuOWMtMC43LDAtMS4zLTAuNi0xLjQtMS4zDQoJYzAtMC40LDAuMS0wLjcsMC40LTFDMjE3LjksMjcyLjksMjE4LjIsMjcyLjcsMjE4LjYsMjcyLjciLz4NCjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNTguMiwyODIuMmgxMzEuNWMwLjcsMCwxLjMsMC42LDEuNCwxLjNjMCwwLjQtMC4xLDAuNy0wLjQsMWMtMC4zLDAuMy0wLjYsMC40LTEsMC40SDE1OC4yDQoJYy0wLjcsMC0xLjMtMC42LTEuMy0xLjNsMCwwQzE1Ni45LDI4Mi44LDE1Ny41LDI4Mi4yLDE1OC4yLDI4Mi4yIi8+DQo8cGF0aCBjbGFzcz0ic3QxIiBkPSJNOTMuOCwyODIuMmgzNC45YzAuNywwLDEuMywwLjYsMS4zLDEuM2wwLDBjMCwwLjctMC42LDEuMy0xLjMsMS40bDAsMEg5My44Yy0wLjcsMC0xLjMtMC42LTEuNC0xLjMNCgljMC0wLjQsMC4xLTAuNywwLjQtMUM5My4xLDI4Mi4zLDkzLjUsMjgyLjIsOTMuOCwyODIuMiIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTE5Ny4xLDI3Mi43aDguMWMwLjcsMCwxLjMsMC42LDEuMywxLjNjMCwwLjctMC42LDEuMy0xLjMsMS4zaC04LjFjLTAuNywwLjEtMS40LTAuNS0xLjQtMS4zDQoJYy0wLjEtMC43LDAuNS0xLjQsMS4zLTEuNEMxOTcsMjcyLjcsMTk3LjEsMjcyLjcsMTk3LjEsMjcyLjciLz4NCjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0yODQuNCwyNjQuNmg4LjFjMC43LDAsMS4zLDAuNiwxLjMsMS4zbDAsMGMwLDAuNy0wLjYsMS4zLTEuMywxLjNoLTguMWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zDQoJQzI4MywyNjUuMywyODMuNiwyNjQuNiwyODQuNCwyNjQuNiIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTk5LjIsMjY0LjZoMTcxLjdjMC40LDAsMC43LDAuMSwwLjksMC40YzAuNCwwLjQsMC41LDEsMC4zLDEuNWMtMC4yLDAuNS0wLjcsMC44LTEuMiwwLjhIOTkuMQ0KCWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zQzk3LjgsMjY1LjMsOTguNCwyNjQuNiw5OS4yLDI2NC42Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjM1LDk1Ljh2OC4xYzAsMC43LTAuNiwxLjMtMS4zLDEuM3MtMS4zLTAuNi0xLjMtMS4zdi04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44Ig0KCS8+DQo8L3N2Zz4NCg=="},GVON:function(M,L){}}); webpackJsonp([34],{"6XGN":function(M,L,j){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var N=j("CkW6"),u=j.n(N),w={name:"page403",data:function(){return{img_403:u.a}},computed:{message:function(){return"抱歉,你无权访问该页面"}}},D={render:function(){var M=this.$createElement,L=this._self._c||M;return L("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[L("div",{staticClass:"wscn-http404"},[L("div",{staticClass:"pic-404"},[L("img",{staticClass:"pic-404__parent",attrs:{src:this.img_403,alt:"403"}})]),this._v(" "),L("div",{staticClass:"bullshit"},[L("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),L("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var C=j("VU/8")(w,D,!1,function(M){j("GVON")},"data-v-34b4b20b",null);L.default=C.exports},CkW6:function(M,L){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i5Zu+5bGCXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgNDAwIDMzNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDAwIDMzNTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6I0ZBRkNGRjt9DQoJLnN0MXtmaWxsOiNEQkU1RjE7fQ0KCS5zdDJ7ZmlsbDojREVFN0Y0O30NCgkuc3Qze2ZpbGw6I0I5QzdEQjt9DQoJLnN0NHtmaWxsOiNGRkZGRkY7fQ0KCS5zdDV7ZmlsbDpub25lO3N0cm9rZTojQjlDN0RCO3N0cm9rZS13aWR0aDo0O3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCgkuc3Q2e2ZpbGw6bm9uZTtzdHJva2U6I0I2QzdEODtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPHBhdGggY2xhc3M9InN0NSIgZD0iTTI3NC41LDI0MS4zYy01LjMtNS4zLTQuNCw0LjQtNi43LDYuN2MtMy4xLDMuMS02LjMsNi05LjcsOC42SDEyNS4yYy0zLjQtMi43LTYuNi01LjYtOS43LTguNw0KCWMtMjguNC0yOC41LTM4LjYtNzAuNS0yNi42LTEwOWwtMTAuNS0xMC42Yy01LjMtNS4zLTUuMy0xMy44LDAtMTkuMmM1LjItNS4zLDEzLjctNS4zLDE5LTAuMWMwLDAsMCwwLDAuMSwwLjFsNi42LDYuOA0KCWMzLjEsMy4yLDguMiwzLjIsMTEuNCwwbDAsMGMzLjItMy4yLDMuMi04LjMsMC0xMS41TDEwMy4xLDkyYy0zLjItMy4yLTMuMi04LjMsMC0xMS41YzMuMS0zLjIsOC4yLTMuMiwxMS40LDBsMCwwbDE3LjIsMTcuMg0KCWMtMC45LDMuNywwLjksNy42LDQuNCw5LjNjMy41LDEuNyw3LjcsMC42LDkuOS0yLjVjMi4zLTMuMSwyLjEtNy40LTAuNS0xMC4zYy0zLjMtMy44LTYuNS03LjItNi41LTcuMmwtNy4zLTcuNA0KCWMzNC44LTIxLjMsODIuNi0yMS43LDExNy4yLDBjMzQuNSwyMS43LDUzLjksNjEuMiw1MCwxMDEuOWwxNS40LDE1LjZjMy4yLDMuMiwzLjIsOC4zLDAsMTEuNWMtMy4xLDMuMi04LjIsMy4yLTExLjQsMGwwLDANCglsLTE1LjEtMTUuM2MtMy4xLTMuMi04LjItMy4yLTExLjQsMGwwLDBjLTMuMiwzLjItMy4yLDguMywwLDExLjVsMTcuMSwxNy4yYzUuMiw1LjMsNS4yLDEzLjgsMCwxOS4xDQoJQzI4OC40LDI0Ni42LDI3OS45LDI0Ni42LDI3NC41LDI0MS4zQzI3NC42LDI0MS4zLDI3NC42LDI0MS4zLDI3NC41LDI0MS4zTDI3NC41LDI0MS4zeiIvPg0KPHBhdGggY2xhc3M9InN0MyIgZD0iTTg2LjYsNzEuNGMwLDQuNywzLjgsOC41LDguNSw4LjVjMS41LDAsMy0wLjQsNC4zLTEuMWM0LjEtMi4zLDUuNS03LjUsMy4xLTExLjZjLTEuNS0yLjYtNC4zLTQuMy03LjQtNC4zDQoJQzkwLjQsNjIuOSw4Ni42LDY2LjcsODYuNiw3MS40Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjE2LjQsMTQ1LjRoMjQuM2wtNy40LDE3LjljMi42LDEuOCw0LjUsMy44LDUuOCw2YzEuMiwyLjIsMS45LDQuOCwxLjksNy44YzAsNC42LTEuNiw4LjQtNC44LDExLjINCgljLTMuMiwyLjktNy4zLDQuMy0xMi4zLDQuM2MtMi41LDAtNS4xLTAuNC03LjUtMS4xdi0xMy4xYzIsMC45LDMuOSwxLjQsNS41LDEuNHMyLjktMC41LDMuNy0xLjRjMC45LTEsMS4zLTIuMywxLjMtNC4xDQoJYzAtMS45LTAuOC0zLjQtMi40LTQuNmMtMS42LTEuMi0zLjctMS43LTYuNC0xLjdsMy40LTkuMWgtNS4xVjE0NS40TDIxNi40LDE0NS40eiBNMjA3LjUsMTgxLjZjMCwxLjUtMC4zLDMtMC44LDQuMw0KCXMtMS4zLDIuNS0yLjMsMy41cy0yLjIsMS44LTMuNCwyLjNjLTEuMywwLjYtMi44LDAuOS00LjMsMC45aC05LjZjLTEuNSwwLTIuOS0wLjMtNC4zLTAuOWMtMS4zLTAuNi0yLjUtMS4zLTMuNC0yLjMNCgljLTAuNC0wLjQtMC44LTAuOS0xLjItMS40bDExLjctMTcuM3Y2YzAsMC42LDAuMiwxLjEsMC42LDEuNGMwLjQsMC40LDAuOCwwLjYsMS40LDAuNmMxLjEsMCwyLTAuOCwyLTEuOXYtMC4xdi0xMS45bDEwLjktMTYuMQ0KCWMxLjgsMiwyLjgsNC42LDIuNyw3LjNMMjA3LjUsMTgxLjZMMjA3LjUsMTgxLjZMMjA3LjUsMTgxLjZ6IE0xNzcuMSwxODUuOWMtMC42LTEuNC0wLjktMi44LTAuOC00LjNWMTU2YzAtMS41LDAuMy0zLDAuOC00LjMNCglzMS4zLTIuNSwyLjMtMy41czIuMi0xLjgsMy40LTIuM2MxLjMtMC42LDIuOC0wLjksNC4zLTAuOWg5LjZjMS41LDAsMi45LDAuMyw0LjMsMC45YzEuMywwLjUsMi40LDEuMywzLjQsMi4zbC0xMC41LDE1LjR2LTIuNw0KCWMwLTAuNS0wLjItMS4xLTAuNi0xLjRjLTAuNC0wLjQtMC45LTAuNi0xLjQtMC42Yy0xLjEsMC0yLDAuOC0yLDEuOXYwLjF2OC42bC0xMi4xLDE3LjlDMTc3LjUsMTg2LjksMTc3LjMsMTg2LjQsMTc3LjEsMTg1LjkNCglMMTc3LjEsMTg1Ljl6IE0yNDMuOCwxOTIuN2MzLjUtNy40LDUuMy0xNS41LDUuMy0yMy43YzAtMzAuNS0yNC40LTU1LjItNTQuNi01NS4ycy01NC42LDI0LjctNTQuNiw1NS4yYzAsMC40LDAsMC44LDAsMS4xDQoJbDE5LjYtMjQuNmgxMS40TDE1NCwxNzEuM2g1LjV2LTYuNWwxMS43LTE4LjV2NDYuOGgtMTEuN3YtOS44aC0xNy44YzUuMSwxOS4yLDIwLjEsMzQuMywzOS4yLDM5LjJjLTEuMiwzLjEtNC44LDEwLjctMTAuNywxMg0KCWMtNy4zLDEuNywxOS45LDAuNCwzOS40LTEyLjVjMTQuOS00LjQsMjcuMi0xNSwzMy45LTI4LjlMMjQzLjgsMTkyLjdMMjQzLjgsMTkyLjd6Ii8+DQo8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNMjM4LjksMTU0LjNsLTI0LjQsMzUuNGwwLjUsMC4zbDI0LjQtMzUuNEwyMzguOSwxNTQuM3oiLz4NCjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0yNjYuMiw2Ni42aDhjMC43LDAsMS4zLDAuNiwxLjMsMS4zbDAsMGMwLDAuNC0wLjEsMC43LTAuNCwxYy0wLjIsMC4zLTAuNiwwLjQtMC45LDAuNGgtOA0KCWMtMC40LDAtMC43LTAuMS0wLjktMC40Yy0wLjUtMC41LTAuNS0xLjQsMC0xLjlDMjY1LjUsNjYuNywyNjUuOCw2Ni42LDI2Ni4yLDY2LjYgTTExNi41LDIwMS45Yy00LjQsMC04LDMuNi04LDguMXMzLjYsOC4xLDgsOC4xDQoJczgtMy42LDgtOC4xUzEyMC45LDIwMS45LDExNi41LDIwMS45TDExNi41LDIwMS45eiBNMTIxLjQsMjEyLjFjLTAuOCwyLTIuOCwzLjMtNC45LDMuM2MtMywwLTUuMy0yLjQtNS4zLTUuNGMwLTIuMiwxLjMtNC4xLDMuMy01DQoJYzItMC44LDQuMy0wLjQsNS44LDEuMkMxMjEuOCwyMDcuNywxMjIuMiwyMTAsMTIxLjQsMjEyLjFMMTIxLjQsMjEyLjF6IE0xOTEuMyw3OC43Yy00LjQsMC04LDMuNi04LDguMXMzLjYsOC4xLDgsOC4xDQoJYzIuMSwwLDQuMi0wLjksNS43LTIuNHMyLjMtMy42LDIuMy01LjdDMTk5LjMsODIuNCwxOTUuNyw3OC43LDE5MS4zLDc4Ljd6IE0xOTYuMyw4OC45Yy0wLjgsMi0yLjgsMy4zLTQuOSwzLjMNCgljLTMsMC01LjMtMi40LTUuMy01LjRjMC0yLjIsMS4zLTQuMiwzLjMtNXM0LjMtMC40LDUuOCwxLjJDMTk2LjYsODQuNiwxOTcuMSw4Ni45LDE5Ni4zLDg4LjlMMTk2LjMsODguOXogTTI3MC4yLDE2Mi42DQoJYy00LjQsMC04LDMuNi04LDguMXMzLjYsOC4xLDgsOC4xczgtMy42LDgtOC4xQzI3OC4yLDE2Ni4zLDI3NC42LDE2Mi42LDI3MC4yLDE2Mi42eiBNMjc1LjEsMTcyLjhjLTAuOCwyLTIuOCwzLjMtNC45LDMuMw0KCWMtMywwLTUuMy0yLjQtNS4zLTUuNGMwLTIuMiwxLjMtNC4yLDMuMy01czQuMy0wLjQsNS44LDEuMlMyNzUuOSwxNzAuOCwyNzUuMSwxNzIuOHogTTIzMC4xLDMxLjRjLTQuNCwwLTgsMy42LTgsOC4xczMuNiw4LjEsOCw4LjENCgljMi4xLDAsNC4yLTAuOSw1LjctMi40czIuMy0zLjYsMi4zLTUuN0MyMzguMSwzNSwyMzQuNSwzMS40LDIzMC4xLDMxLjR6IE0yMzUsNDEuNmMtMC44LDItMi44LDMuMy00LjksMy4zYy0zLDAtNS4zLTIuNC01LjMtNS40DQoJYzAtMi4yLDEuMy00LjIsMy4zLTVzNC4zLTAuNCw1LjgsMS4yQzIzNS40LDM3LjIsMjM1LjgsMzkuNSwyMzUsNDEuNnoiLz4NCjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNjMuMiw0NS45aDguMmMwLjQsMCwwLjcsMC4xLDEsMC40YzAuNSwwLjUsMC41LDEuMywwLDEuOWwwLDBjLTAuMywwLjMtMC42LDAuNC0xLDAuNGgtOC4yDQoJYy0wLjQsMC0wLjctMC4xLTEtMC40Yy0wLjUtMC41LTAuNS0xLjMsMC0xLjlsMCwwQzE2Mi40LDQ2LjEsMTYyLjgsNDUuOSwxNjMuMiw0NS45IE0yNzEuNyw2My41djhjMCwwLjQtMC4xLDAuNy0wLjQsMC45DQoJYy0wLjMsMC4zLTAuNiwwLjQtMSwwLjRjLTAuNywwLTEuNC0wLjYtMS40LTEuM2wwLDB2LThjMC0wLjQsMC4xLTAuNywwLjQtMC45YzAuNS0wLjUsMS40LTAuNSwxLjksMA0KCUMyNzEuNiw2Mi44LDI3MS43LDYzLjIsMjcxLjcsNjMuNSIvPg0KPHBhdGggY2xhc3M9InN0MyIgZD0iTTEwNy40LDE1NC44aDguMmMwLjQsMCwwLjcsMC4xLDEsMC40YzAuMywwLjIsMC40LDAuNiwwLjQsMC45YzAsMC43LTAuNiwxLjMtMS40LDEuM2gtOC4yDQoJYy0wLjUsMC0wLjktMC4zLTEuMi0wLjdjLTAuMi0wLjQtMC4yLTAuOSwwLTEuM0MxMDYuNCwxNTUuMSwxMDYuOSwxNTQuOCwxMDcuNCwxNTQuOCBNMTY5LDQyLjd2OGMwLDAuNC0wLjEsMC43LTAuNCwwLjkNCgljLTAuNSwwLjUtMS40LDAuNS0yLDBjLTAuMi0wLjItMC40LTAuNi0wLjQtMC45di04YzAtMC40LDAuMS0wLjcsMC40LTAuOWMwLjUtMC41LDEuNC0wLjUsMS45LDBDMTY4LjgsNDIsMTY5LDQyLjMsMTY5LDQyLjciLz4NCjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0yMzAuOSwxMTAuM2g4LjFjMC43LDAsMS4zLDAuNiwxLjMsMS40YzAsMC43LTAuNiwxLjMtMS4zLDEuNGgtOC4xYy0wLjgsMC0xLjQtMC42LTEuNC0xLjQNCgljMC0wLjQsMC4xLTAuNywwLjQtMUMyMzAuMiwxMTAuNCwyMzAuNiwxMTAuMywyMzAuOSwxMTAuMyIvPg0KPHBhdGggY2xhc3M9InN0MyIgZD0iTTExNC42LDE2My44djguMmMwLDAuNC0wLjEsMC43LTAuNCwxYy0wLjUsMC41LTEuNCwwLjUtMS45LDBjLTAuMy0wLjMtMC40LTAuNi0wLjQtMXYtOC4yYzAtMC40LDAuMS0wLjcsMC40LTENCgljMC41LTAuNSwxLjQtMC41LDEuOSwwbDAsMEMxMTQuNCwxNjMuMSwxMTQuNiwxNjMuNCwxMTQuNiwxNjMuOCIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTEyNiwyNzIuN2g2MC40YzAuNywwLDEuMywwLjYsMS4zLDEuM2wwLDBjMCwwLjctMC42LDEuMy0xLjMsMS40SDEyNmMtMC43LDAtMS4zLTAuNi0xLjMtMS4zDQoJQzEyNC43LDI3My4zLDEyNS4zLDI3Mi43LDEyNiwyNzIuNyIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTIxOC42LDI3Mi43aDM0LjljMC43LDAsMS4zLDAuNiwxLjMsMS4zYzAsMC43LTAuNiwxLjMtMS4zLDEuM2gtMzQuOWMtMC43LDAtMS4zLTAuNi0xLjQtMS4zDQoJYzAtMC40LDAuMS0wLjcsMC40LTFDMjE3LjksMjcyLjksMjE4LjIsMjcyLjcsMjE4LjYsMjcyLjciLz4NCjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNTguMiwyODIuMmgxMzEuNWMwLjcsMCwxLjMsMC42LDEuNCwxLjNjMCwwLjQtMC4xLDAuNy0wLjQsMWMtMC4zLDAuMy0wLjYsMC40LTEsMC40SDE1OC4yDQoJYy0wLjcsMC0xLjMtMC42LTEuMy0xLjNsMCwwQzE1Ni45LDI4Mi44LDE1Ny41LDI4Mi4yLDE1OC4yLDI4Mi4yIi8+DQo8cGF0aCBjbGFzcz0ic3QxIiBkPSJNOTMuOCwyODIuMmgzNC45YzAuNywwLDEuMywwLjYsMS4zLDEuM2wwLDBjMCwwLjctMC42LDEuMy0xLjMsMS40bDAsMEg5My44Yy0wLjcsMC0xLjMtMC42LTEuNC0xLjMNCgljMC0wLjQsMC4xLTAuNywwLjQtMUM5My4xLDI4Mi4zLDkzLjUsMjgyLjIsOTMuOCwyODIuMiIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTE5Ny4xLDI3Mi43aDguMWMwLjcsMCwxLjMsMC42LDEuMywxLjNjMCwwLjctMC42LDEuMy0xLjMsMS4zaC04LjFjLTAuNywwLjEtMS40LTAuNS0xLjQtMS4zDQoJYy0wLjEtMC43LDAuNS0xLjQsMS4zLTEuNEMxOTcsMjcyLjcsMTk3LjEsMjcyLjcsMTk3LjEsMjcyLjciLz4NCjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0yODQuNCwyNjQuNmg4LjFjMC43LDAsMS4zLDAuNiwxLjMsMS4zbDAsMGMwLDAuNy0wLjYsMS4zLTEuMywxLjNoLTguMWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zDQoJQzI4MywyNjUuMywyODMuNiwyNjQuNiwyODQuNCwyNjQuNiIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTk5LjIsMjY0LjZoMTcxLjdjMC40LDAsMC43LDAuMSwwLjksMC40YzAuNCwwLjQsMC41LDEsMC4zLDEuNWMtMC4yLDAuNS0wLjcsMC44LTEuMiwwLjhIOTkuMQ0KCWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zQzk3LjgsMjY1LjMsOTguNCwyNjQuNiw5OS4yLDI2NC42Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjM1LDk1Ljh2OC4xYzAsMC43LTAuNiwxLjMtMS4zLDEuM3MtMS4zLTAuNi0xLjMtMS4zdi04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44Ig0KCS8+DQo8L3N2Zz4NCg=="},GVON:function(M,L){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([34],{JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),n=a.n(s),o=a("mvHQ"),i=a.n(o),c=a("P9l9"),r=a("3E4D"),l=a("Ch4/"),u={name:"custom-dialog",props:{showCustomDialog:{type:Boolean,default:!1},customType:{type:String,default:""},customTitle:{type:String,default:""}},data:function(){return{repProjectName:"haoban-manage-web",customDialog:!1,customData:[],checkList:[]}},beforeMount:function(){},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("customHandleConfirm")},customConfirm:function(){if(!this.checkList.length)return this.$message.error({duration:1e3,message:"请选择操作"}),!1;this.setData(this.checkList)},customChange:function(t){},setData:function(t){var e=this,a={viewIdList:t},s="data"==e.customType?"/haoban-manage-web/home/set-display-enterprise-data":"/haoban-manage-web/home/set-display-quick-entry";Object(c.d)(s,a).then(function(t){var a=t.data;if(1==a.errorCode)return r.a.showmsg("设置成功","success"),void e.$emit("customHandleConfirm");l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardList:function(){var t=this,e={all:!0};"data"==t.customType&&(e.fetchData=!1);var a="data"==t.customType?"/haoban-manage-web/home/find-enterprise-data":"/haoban-manage-web/home/find-quick-entry";t.checkList=[],Object(c.e)(a,e).then(function(e){var a=e.data;if(1==a.errorCode){var s=[];return a.result.forEach(function(e,a){e.homeDisplay&&("data"==t.customType?s.push(e.dataViewId):s.push(e.settingViewId))}),t.customData=a.result,void(t.checkList=s)}l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{showCustomDialog:function(t,e){this.customDialog=t},customType:function(t,e){t&&this.getCardList()}},mounted:function(){this.customDialog=this.showCustomDialog}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"自定义"+t.customTitle,visible:t.customDialog,width:"761px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"custom-dialog__title"},[a("p",{staticClass:"custom-dialog__p"},[t._v("\n 请选择您想在首页展示的"+t._s(t.customTitle)+",还可以再勾选"),a("span",[t._v(" "+t._s(8-t.checkList.length)+" ")]),t._v("个\n ")])]),t._v(" "),a("div",{staticClass:"custom-dialog__checkbox"},[a("el-checkbox-group",{attrs:{max:8},on:{change:t.customChange},model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},["data"===t.customType?t._l(t.customData,function(e){return a("el-checkbox",{key:e.dataViewId,attrs:{label:e.dataViewId,name:"type"}},[t._v(t._s(e.fieldTitle))])}):t._e(),t._v(" "),"data"!=t.customType?t._l(t.customData,function(e){return a("el-checkbox",{key:e.settingViewId,attrs:{label:e.settingViewId,name:"type"}},[t._v(t._s(e.fieldTitle))])}):t._e()],2)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.customConfirm}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var f={name:"index",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",bannerList:[],companyObj:{},dataOverview:[],entryData:[]}},methods:{changeRoute:function(t){this.$router.push(t)},toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t},showDialogLayer:function(t){this.showCustomDialog=!0,this.customType=t,this.customTitle="data"==t?"数据概览":"快捷操作"},customHandleConfirm:function(t){this.showCustomDialog=!1,"data"===this.customType?this.getDataOverview():this.getEntryData()},toCertify:function(t){1!=t&&this.changeRoute("/companyCertify")},getBannerData:function(){var t=this;Object(c.a)("/haoban-manage-web/home/find-advertisement",{}).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.bannerList=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getEnterpriseData:function(){var t=this;Object(c.a)("/haoban-manage-web/home/find-enterprise-info",{}).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.balance=Number(a.result.balance).toFixed(2),0==a.result.yesterdayUseNumber&&(a.result.yesterdayUseNumber=String(a.result.yesterdayUseNumber)),t.companyObj=a.result,void t.$nextTick(function(){t.getUserData()});l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getUserData:function(){var t=this;Object(c.a)("/haoban-manage-web/emp/get-user-info",{}).then(function(e){var a=e.data;if(1==a.errorCode)return localStorage.setItem("userInfo",i()(a.result)),void t.$nextTick(function(){t.$refs.headerMenu.getHeaderMenu()});t.$message.error({duration:1e3,message:a.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getDataOverview:function(){var t=this;Object(c.a)("/haoban-manage-web/home/find-enterprise-data",{all:!1,fetchData:!0}).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.dataOverview=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getEntryData:function(){var t=this;Object(c.a)("/haoban-manage-web/home/find-quick-entry",{all:!1}).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.entryData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-204+"px",n.a.all([this.getBannerData(),this.getDataOverview(),this.getEntryData(),this.getEnterpriseData()])},components:{customDialog:a("VU/8")(u,m,!1,function(t){a("mZuu")},"data-v-20cf4057",null).exports}},d={render: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:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body",style:{minHeight:t.contentHeight}},[a("div",{staticClass:"index-company flex flex-row"},[a("div",{staticClass:"index-company-left m-r-24 border-box radius-2"},[a("div",{staticClass:"index-company-logo"},[t.companyObj.logoUrl?a("div",{staticClass:"index-company-logo_img"},[a("img",{attrs:{src:t.companyObj.logoUrl,alt:"log"}})]):a("div",{staticClass:"default-logo-bg"},[a("i",{staticClass:"iconfont icon-2zuzhijiagou default-logo"})])]),t._v(" "),a("div",{staticClass:"index-company-name color-303133"},[t._v(t._s(t.companyObj.enterpriseName))]),t._v(" "),a("ul",{staticClass:"index-company-count"},[a("li",{staticClass:"flex flex-between"},[a("span",[t._v("企业人数\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:"企业总人数,每日刷新一次",placement:"right"}},[a("i",{staticClass:"iconfont icon-xinxixianshi"})])],1),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(t.companyObj.staffNumber||"--")+"人")])]),t._v(" "),a("li",{staticClass:"flex flex-between"},[a("span",[t._v("行政架构部门数\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:"企业行政架构部门总数,每日刷新一次",placement:"right"}},[a("i",{staticClass:"iconfont icon-xinxixianshi"})])],1),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(t.companyObj.departmentNumber||"--")+"个")])]),t._v(" "),a("li",{staticClass:"flex flex-between"},[a("span",[t._v("门店架构门店总数\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:"企业门店总数,每日刷新一次",placement:"right"}},[a("i",{staticClass:"iconfont icon-xinxixianshi"})])],1),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(t.companyObj.storeGroupNumber||"--")+"个")])]),t._v(" "),a("li",{staticClass:"flex flex-between"},[a("span",[t._v("昨日使用人数\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:"昨日登录好办人数,每日刷新一次",placement:"right"}},[a("i",{staticClass:"iconfont icon-xinxixianshi"})])],1),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(""==t.companyObj.yesterdayUseNumber||null==t.companyObj.yesterdayUseNumber?"--":t.companyObj.yesterdayUseNumber)+"人")])])]),t._v(" "),a("ul",{staticClass:"p-t-12"},[a("li",{staticClass:"flex flex-between"},[a("span",[t._v("企业编码")]),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(t.companyObj.enterpriseCode||"--"))])]),t._v(" "),a("li",{staticClass:"flex flex-between",on:{click:function(e){t.toCertify(t.companyObj.authenticationStatus)}}},[a("span",[t._v("企业认证")]),a("span",{class:[1==t.companyObj.authenticationStatus?"authActive":0==t.companyObj.authenticationStatus?"unAuth":2==t.companyObj.authenticationStatus?"auth-ing":"auth-fail"]},[1==t.companyObj.authenticationStatus||0==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-renzheng p-r-6 "}):t._e(),2==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-qiyerenzheng1 p-r-6 "}):t._e(),3==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-qiyerenzheng2 p-r-6 "}):t._e(),t._v(t._s(1==t.companyObj.authenticationStatus?"已认证":0==t.companyObj.authenticationStatus?"未认证":2==t.companyObj.authenticationStatus?"认证中":"认证失败")+" ")])]),t._v(" "),t._m(0)])]),t._v(" "),a("div",{staticClass:"index-entry radius-2"},[a("div",{staticClass:"index-swiper"},[a("el-carousel",{attrs:{trigger:"click",height:"250px",arrow:"never",autoplay:!1}},t._l(t.bannerList,function(t,e){return a("el-carousel-item",{key:e},[a("a",{staticClass:"index-swiper-bg",style:{backgroundImage:"url("+t.imgUrl+")"},attrs:{href:1==t.linkType?"#"+t.linkUrl:t.linkUrl,target:"_blank",rel:"nofollow noopener noreferrer"}})])}))],1),t._v(" "),a("div",{staticClass:"bg-f5f8fa bg-space"}),t._v(" "),a("div",{staticClass:"index-entry-head flex flex-between border-box border-b-e4e7e7"},[a("span",{staticClass:"color-303133 font-16 font-w-500"},[t._v("快捷入口")]),a("span",{staticClass:"auto-define",on:{click:function(e){t.showDialogLayer("entry")}}},[a("i",{staticClass:"iconfont icon-zidingyi color-909399"})])]),t._v(" "),a("div",{staticClass:"index-entry-body p-24 border-box"},[a("ul",{staticClass:"flex flex-row flex-wrap"},t._l(t.entryData,function(e,s){return a("li",{key:s,staticClass:"flex flex-align-center border-box flex",on:{click:function(a){t.changeRoute(e.fieldUrl)}}},[a("span",{staticClass:"square-item flex flex-align-center flex-pack-center",style:{background:e.fieldIconBgColor}},[a("i",{class:["iconfont",e.fieldIconUrl]})]),t._v(" "),a("span",{staticClass:"color-303133 font-16 p-l-20"},[t._v(t._s(e.fieldTitle))])])}))])])])]),t._v(" "),a("vue-gic-footer")],1),t._v(" "),a("custom-dialog",{attrs:{customTitle:t.customTitle,customType:t.customType,showCustomDialog:t.showCustomDialog},on:{customHandleConfirm:t.customHandleConfirm}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"flex flex-between"},[e("span",[this._v("帮助手册")]),e("a",{attrs:{href:"https://report-1251519181.cos.ap-shanghai.myqcloud.com/haoban/20190619185604/好办管理员.pdf",download:"好办帮助手册.pdf"}},[e("span",{staticClass:"color-1890ff"},[this._v("立即下载"),e("i",{staticClass:"el-icon-arrow-right"})])])])}]};var h=a("VU/8")(f,d,!1,function(t){a("LE4m")},"data-v-f9b92a44",null);e.default=h.exports},LE4m:function(t,e){},mZuu:function(t,e){}}); webpackJsonp([35],{JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),n=a.n(s),o=a("mvHQ"),i=a.n(o),c=a("P9l9"),r=a("3E4D"),l=a("Ch4/"),u={name:"custom-dialog",props:{showCustomDialog:{type:Boolean,default:!1},customType:{type:String,default:""},customTitle:{type:String,default:""}},data:function(){return{repProjectName:"haoban-manage-web",customDialog:!1,customData:[],checkList:[]}},beforeMount:function(){},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("customHandleConfirm")},customConfirm:function(){if(!this.checkList.length)return this.$message.error({duration:1e3,message:"请选择操作"}),!1;this.setData(this.checkList)},customChange:function(t){},setData:function(t){var e=this,a={viewIdList:t},s="data"==e.customType?"/haoban-manage-web/home/set-display-enterprise-data":"/haoban-manage-web/home/set-display-quick-entry";Object(c.d)(s,a).then(function(t){var a=t.data;if(1==a.errorCode)return r.a.showmsg("设置成功","success"),void e.$emit("customHandleConfirm");l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardList:function(){var t=this,e={all:!0};"data"==t.customType&&(e.fetchData=!1);var a="data"==t.customType?"/haoban-manage-web/home/find-enterprise-data":"/haoban-manage-web/home/find-quick-entry";t.checkList=[],Object(c.e)(a,e).then(function(e){var a=e.data;if(1==a.errorCode){var s=[];return a.result.forEach(function(e,a){e.homeDisplay&&("data"==t.customType?s.push(e.dataViewId):s.push(e.settingViewId))}),t.customData=a.result,void(t.checkList=s)}l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{showCustomDialog:function(t,e){this.customDialog=t},customType:function(t,e){t&&this.getCardList()}},mounted:function(){this.customDialog=this.showCustomDialog}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"自定义"+t.customTitle,visible:t.customDialog,width:"761px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"custom-dialog__title"},[a("p",{staticClass:"custom-dialog__p"},[t._v("\n 请选择您想在首页展示的"+t._s(t.customTitle)+",还可以再勾选"),a("span",[t._v(" "+t._s(8-t.checkList.length)+" ")]),t._v("个\n ")])]),t._v(" "),a("div",{staticClass:"custom-dialog__checkbox"},[a("el-checkbox-group",{attrs:{max:8},on:{change:t.customChange},model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},["data"===t.customType?t._l(t.customData,function(e){return a("el-checkbox",{key:e.dataViewId,attrs:{label:e.dataViewId,name:"type"}},[t._v(t._s(e.fieldTitle))])}):t._e(),t._v(" "),"data"!=t.customType?t._l(t.customData,function(e){return a("el-checkbox",{key:e.settingViewId,attrs:{label:e.settingViewId,name:"type"}},[t._v(t._s(e.fieldTitle))])}):t._e()],2)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.customConfirm}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var f={name:"index",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",bannerList:[],companyObj:{},dataOverview:[],entryData:[]}},methods:{changeRoute:function(t){this.$router.push(t)},toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t},showDialogLayer:function(t){this.showCustomDialog=!0,this.customType=t,this.customTitle="data"==t?"数据概览":"快捷操作"},customHandleConfirm:function(t){this.showCustomDialog=!1,"data"===this.customType?this.getDataOverview():this.getEntryData()},toCertify:function(t){1!=t&&this.changeRoute("/companyCertify")},getBannerData:function(){var t=this;Object(c.a)("/haoban-manage-web/home/find-advertisement",{}).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.bannerList=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getEnterpriseData:function(){var t=this;Object(c.a)("/haoban-manage-web/home/find-enterprise-info",{}).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.balance=Number(a.result.balance).toFixed(2),0==a.result.yesterdayUseNumber&&(a.result.yesterdayUseNumber=String(a.result.yesterdayUseNumber)),t.companyObj=a.result,void t.$nextTick(function(){t.getUserData()});l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getUserData:function(){var t=this;Object(c.a)("/haoban-manage-web/emp/get-user-info",{}).then(function(e){var a=e.data;if(1==a.errorCode)return localStorage.setItem("userInfo",i()(a.result)),void t.$nextTick(function(){t.$refs.headerMenu.getHeaderMenu()});t.$message.error({duration:1e3,message:a.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getDataOverview:function(){var t=this;Object(c.a)("/haoban-manage-web/home/find-enterprise-data",{all:!1,fetchData:!0}).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.dataOverview=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getEntryData:function(){var t=this;Object(c.a)("/haoban-manage-web/home/find-quick-entry",{all:!1}).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.entryData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-204+"px",n.a.all([this.getBannerData(),this.getDataOverview(),this.getEntryData(),this.getEnterpriseData()])},components:{customDialog:a("VU/8")(u,m,!1,function(t){a("mZuu")},"data-v-20cf4057",null).exports}},d={render: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:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body",style:{minHeight:t.contentHeight}},[a("div",{staticClass:"index-company flex flex-row"},[a("div",{staticClass:"index-company-left m-r-24 border-box radius-2"},[a("div",{staticClass:"index-company-logo"},[t.companyObj.logoUrl?a("div",{staticClass:"index-company-logo_img"},[a("img",{attrs:{src:t.companyObj.logoUrl,alt:"log"}})]):a("div",{staticClass:"default-logo-bg"},[a("i",{staticClass:"iconfont icon-2zuzhijiagou default-logo"})])]),t._v(" "),a("div",{staticClass:"index-company-name color-303133"},[t._v(t._s(t.companyObj.enterpriseName))]),t._v(" "),a("ul",{staticClass:"index-company-count"},[a("li",{staticClass:"flex flex-between"},[a("span",[t._v("企业人数\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:"企业总人数,每日刷新一次",placement:"right"}},[a("i",{staticClass:"iconfont icon-xinxixianshi"})])],1),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(t.companyObj.staffNumber||"--")+"人")])]),t._v(" "),a("li",{staticClass:"flex flex-between"},[a("span",[t._v("行政架构部门数\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:"企业行政架构部门总数,每日刷新一次",placement:"right"}},[a("i",{staticClass:"iconfont icon-xinxixianshi"})])],1),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(t.companyObj.departmentNumber||"--")+"个")])]),t._v(" "),a("li",{staticClass:"flex flex-between"},[a("span",[t._v("门店架构门店总数\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:"企业门店总数,每日刷新一次",placement:"right"}},[a("i",{staticClass:"iconfont icon-xinxixianshi"})])],1),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(t.companyObj.storeGroupNumber||"--")+"个")])]),t._v(" "),a("li",{staticClass:"flex flex-between"},[a("span",[t._v("昨日使用人数\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:"昨日登录好办人数,每日刷新一次",placement:"right"}},[a("i",{staticClass:"iconfont icon-xinxixianshi"})])],1),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(""==t.companyObj.yesterdayUseNumber||null==t.companyObj.yesterdayUseNumber?"--":t.companyObj.yesterdayUseNumber)+"人")])])]),t._v(" "),a("ul",{staticClass:"p-t-12"},[a("li",{staticClass:"flex flex-between"},[a("span",[t._v("企业编码")]),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(t.companyObj.enterpriseCode||"--"))])]),t._v(" "),a("li",{staticClass:"flex flex-between",on:{click:function(e){t.toCertify(t.companyObj.authenticationStatus)}}},[a("span",[t._v("企业认证")]),a("span",{class:[1==t.companyObj.authenticationStatus?"authActive":0==t.companyObj.authenticationStatus?"unAuth":2==t.companyObj.authenticationStatus?"auth-ing":"auth-fail"]},[1==t.companyObj.authenticationStatus||0==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-renzheng p-r-6 "}):t._e(),2==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-qiyerenzheng1 p-r-6 "}):t._e(),3==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-qiyerenzheng2 p-r-6 "}):t._e(),t._v(t._s(1==t.companyObj.authenticationStatus?"已认证":0==t.companyObj.authenticationStatus?"未认证":2==t.companyObj.authenticationStatus?"认证中":"认证失败")+" ")])]),t._v(" "),t._m(0)])]),t._v(" "),a("div",{staticClass:"index-entry radius-2"},[a("div",{staticClass:"index-swiper"},[a("el-carousel",{attrs:{trigger:"click",height:"250px",arrow:"never",autoplay:!1}},t._l(t.bannerList,function(t,e){return a("el-carousel-item",{key:e},[a("a",{staticClass:"index-swiper-bg",style:{backgroundImage:"url("+t.imgUrl+")"},attrs:{href:1==t.linkType?"#"+t.linkUrl:t.linkUrl,target:"_blank",rel:"nofollow noopener noreferrer"}})])}))],1),t._v(" "),a("div",{staticClass:"bg-f5f8fa bg-space"}),t._v(" "),a("div",{staticClass:"index-entry-head flex flex-between border-box border-b-e4e7e7"},[a("span",{staticClass:"color-303133 font-16 font-w-500"},[t._v("快捷入口")]),a("span",{staticClass:"auto-define",on:{click:function(e){t.showDialogLayer("entry")}}},[a("i",{staticClass:"iconfont icon-zidingyi color-909399"})])]),t._v(" "),a("div",{staticClass:"index-entry-body p-24 border-box"},[a("ul",{staticClass:"flex flex-row flex-wrap"},t._l(t.entryData,function(e,s){return a("li",{key:s,staticClass:"flex flex-align-center border-box flex",on:{click:function(a){t.changeRoute(e.fieldUrl)}}},[a("span",{staticClass:"square-item flex flex-align-center flex-pack-center",style:{background:e.fieldIconBgColor}},[a("i",{class:["iconfont",e.fieldIconUrl]})]),t._v(" "),a("span",{staticClass:"color-303133 font-16 p-l-20"},[t._v(t._s(e.fieldTitle))])])}))])])])]),t._v(" "),a("vue-gic-footer")],1),t._v(" "),a("custom-dialog",{attrs:{customTitle:t.customTitle,customType:t.customType,showCustomDialog:t.showCustomDialog},on:{customHandleConfirm:t.customHandleConfirm}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"flex flex-between"},[e("span",[this._v("帮助手册")]),e("a",{attrs:{href:"https://report-1251519181.cos.ap-shanghai.myqcloud.com/haoban/20190619185604/好办管理员.pdf",download:"好办帮助手册.pdf"}},[e("span",{staticClass:"color-1890ff"},[this._v("立即下载"),e("i",{staticClass:"el-icon-arrow-right"})])])])}]};var h=a("VU/8")(f,d,!1,function(t){a("LE4m")},"data-v-f9b92a44",null);e.default=h.exports},LE4m:function(t,e){},mZuu:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([35],{HkK0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),s=a.n(r),n=a("exGp"),o=a.n(n),l=a("P9l9"),c={name:"clerkTbale",components:{vueSelectStore:a("Ie7z").a},props:{store:{type:Object,required:!0},gicFlag:{type:Boolean,default:!0}},data:function(){return{currentBrand:this.store.storeGroupId,treeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!0,openNextBool:!0},selectType:"store",transArr:[],selectedList:[],storeListData:{}}},methods:{goBack:function(){window.location.reload()},transClerk:function(e,t){this.transArr="single"==e?[t]:"all"==e?this.storeListData.clerks:this.selectedList,this.treeSet.dialogVisible=!0},delClerk:function(e){this.$emit("delClerk",e)},selectMember:function(e){this.selectedList=e},handleSelectedList:function(e){var t=this;if(!e.length)return!1;var a=[];t.transArr.forEach(function(e){a.push(e.employeeClerkId)});var r={ids:a.join(","),storeId:e[0].id};Object(l.e)("/haoban-manage-web/emp/batchTransfer",r).then(function(e){1==e.data.errorCode?(t.$message.success({message:"操作成功"}),t.getClerkList()):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},getClerkList:function(){var e=this,t={departmentId:e.store.storeGroupId,storeId:e.store.storeId,showChild:1,showType:2,pageSize:200,pageNum:1,status:1,isCherk:1};Object(l.e)("/haoban-manage-web/emp/findsimplepage",t).then(function(t){1==t.data.errorCode?e.storeListData.clerks=t.data.result.list||[]:e.$message.error({duration:1e3,message:t.data.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{store:function(e,t){this.storeListData=e||{}}},mounted:function(){this.storeListData=this.store||{}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"recycle-bin"},[a("p",{staticClass:"r-b-top-header"},[a("a",{staticClass:"a-href title",on:{click:e.goBack}},[e._v("返回")]),e._v(" "),e.gicFlag?e._e():a("el-button",{attrs:{disabled:0==e.selectedList.length},on:{click:function(t){e.transClerk("group")}}},[e._v("批量转移")]),e._v(" "),e.gicFlag?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.transClerk("all")}}},[e._v("全部转移")])],1),e._v(" "),a("el-table",{ref:"clerkTable",staticStyle:{width:"100%"},attrs:{data:e.storeListData.clerks},on:{"selection-change":e.selectMember}},[a("el-table-column",{attrs:{type:"selection",width:"42"}}),e._v(" "),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),e._v(" "),a("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("86"==t.row.nationcode?t.row.phoneNumber:"+"+t.row.nationcode+"-"+t.row.phoneNumber)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"80",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.gicFlag?e._e():a("a",{staticClass:"a-href",on:{click:function(a){e.transClerk("single",t.row)}}},[a("i",{staticClass:"el-icon-sort"})]),e._v(" "),e.gicFlag?e._e():a("a",{staticClass:"a-href",on:{click:function(a){e.delClerk(t.row)}}},[a("i",{staticClass:"el-icon-delete"})])]}}])})],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.currentBrand,treeSet:e.treeSet,selectType:e.selectType},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,i,!1,function(e){a("z8KK")},null,null).exports,d=a("3Xzz"),h=a("PI0u"),p=a("unF8"),g=a("Ch4/"),m={name:"recycle-bin",components:{navCrumb:d.a,clerkTable:u},data:function(){return{searchKey:"",typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],pageSize:20,pageNumber:1,recycleList:[],total:0,navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame?showRecycle=0"},{name:"门店回收站",path:""}],clerks:[],showClerks:!1,currentStore:{},brandId:"",gicFlag:!0}},methods:{toInput:Object(h.a)(function(e){this.pageNumber=1,this.getRecycleList()},300),getRecycleList:function(){var e=this,t=e.$route.query,a={storeName:e.searchKey||"",storeGroupId:t.dept,showChild:1*t.showChild,showType:2,pageSize:e.pageSize,pageNum:e.pageNumber,status:4,storeType:t.type};Object(l.a)("/haoban-manage-web/store/findSimplePage",a).then(function(t){1==t.data.errorCode?(e.total=t.data.result.total,e.recycleList=t.data.result.list||[]):(e.recycleList=[],e.$message.error({duration:1e3,message:t.data.message}))}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},restore:function(e){var t=this;t.$confirm("确定要恢复到门店列表吗?","提示",{type:"warning"}).then(function(){var a={status:1,storeId:e.storeId};Object(l.a)("/haoban-manage-web/store/changeStatus",a).then(function(e){1==e.data.errorCode?(t.searchKey="",t.pageNumber=1,t.getRecycleList()):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})}).catch(function(e){})},handleSizeChange:function(e){this.pageSize=e,this.getRecycleList()},handleCurrentChange:function(e){this.pageNumber=e,this.getRecycleList()},showClerksFn:function(e){this.currentStore=e,this.clerks=null==e.clerks?[]:e.clerks,this.showClerks=!0},delClerk:function(e){var t=this.currentStore,a=this;a.$confirm("是否要删除该员工?","提示",{type:"warning"}).then(function(){var r={ids:e.employeeClerkId};Object(l.a)("/haoban-manage-web/emp/del",r).then(function(r){1==r.data.errorCode?t.clerks.forEach(function(a){a.employeeClerkId==e.employeeClerkId&&t.clerks.splice(t.clerks.indexOf(a),1)}):a.$message.error({duration:1e3,message:r.data.message})}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})})},getGicData:function(){var e=this;return o()(s.a.mark(function t(){var a,r,n,o;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r={type:1,businessId:(a=e).brandId},t.next=4,Object(p.a)(r);case 4:n=t.sent,1==(o=n.data).errorCode?a.gicFlag=o.result:g.a.errorMsg(o);case 7:case"end":return t.stop()}},t,e)}))()}},beforeMount:function(){this.getRecycleList(),this.brandId=this.$route.query.brandId,this.getGicData()}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap recycle-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[e.showClerks?a("clerk-table",{attrs:{gicFlag:e.gicFlag,store:e.currentStore},on:{delClerk:e.delClerk}}):a("div",{staticClass:"recycle-bin"},[a("div",{staticClass:"r-b-top-header"},[a("div",{staticClass:"title"},[e._v(e._s(e.recycleList.length)+" 家门店")]),e._v(" "),a("el-input",{attrs:{placeholder:"请输入门店名","prefix-icon":"el-icon-search"},nativeOn:{keyup:function(t){return a=t,e.toInput(a);var a}},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}},[e._v(">")])],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.recycleList}},[a("el-table-column",{attrs:{label:"门店名称",prop:"storeName"}}),e._v(" "),a("el-table-column",{attrs:{label:"代码",prop:"storeCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"类型",prop:"storeType"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.typeArr[1*t.row.storeType+1])+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"地址",prop:"postAddress"}}),e._v(" "),a("el-table-column",{attrs:{label:"待处理店员",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{staticClass:"a-href",on:{click:function(a){e.showClerksFn(t.row)}}},[e._v("\n "+e._s(t.row.clerks.length)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.gicFlag?e._e():a("a",{staticClass:"a-href",on:{click:function(a){e.restore(t.row)}}},[e._v("恢复到门店列表")])]}}])})],1),e._v(" "),e.total?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNumber,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)],1)]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var b=a("VU/8")(m,f,!1,function(e){a("JTIc")},null,null);t.default=b.exports},JTIc:function(e,t){},z8KK:function(e,t){}}); webpackJsonp([36],{HkK0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),s=a.n(r),n=a("exGp"),o=a.n(n),l=a("P9l9"),c={name:"clerkTbale",components:{vueSelectStore:a("Ie7z").a},props:{store:{type:Object,required:!0},gicFlag:{type:Boolean,default:!0}},data:function(){return{currentBrand:this.store.storeGroupId,treeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!0,openNextBool:!0},selectType:"store",transArr:[],selectedList:[],storeListData:{}}},methods:{goBack:function(){window.location.reload()},transClerk:function(e,t){this.transArr="single"==e?[t]:"all"==e?this.storeListData.clerks:this.selectedList,this.treeSet.dialogVisible=!0},delClerk:function(e){this.$emit("delClerk",e)},selectMember:function(e){this.selectedList=e},handleSelectedList:function(e){var t=this;if(!e.length)return!1;var a=[];t.transArr.forEach(function(e){a.push(e.employeeClerkId)});var r={ids:a.join(","),storeId:e[0].id};Object(l.e)("/haoban-manage-web/emp/batchTransfer",r).then(function(e){1==e.data.errorCode?(t.$message.success({message:"操作成功"}),t.getClerkList()):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},getClerkList:function(){var e=this,t={departmentId:e.store.storeGroupId,storeId:e.store.storeId,showChild:1,showType:2,pageSize:200,pageNum:1,status:1,isCherk:1};Object(l.e)("/haoban-manage-web/emp/findsimplepage",t).then(function(t){1==t.data.errorCode?e.storeListData.clerks=t.data.result.list||[]:e.$message.error({duration:1e3,message:t.data.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{store:function(e,t){this.storeListData=e||{}}},mounted:function(){this.storeListData=this.store||{}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"recycle-bin"},[a("p",{staticClass:"r-b-top-header"},[a("a",{staticClass:"a-href title",on:{click:e.goBack}},[e._v("返回")]),e._v(" "),e.gicFlag?e._e():a("el-button",{attrs:{disabled:0==e.selectedList.length},on:{click:function(t){e.transClerk("group")}}},[e._v("批量转移")]),e._v(" "),e.gicFlag?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.transClerk("all")}}},[e._v("全部转移")])],1),e._v(" "),a("el-table",{ref:"clerkTable",staticStyle:{width:"100%"},attrs:{data:e.storeListData.clerks},on:{"selection-change":e.selectMember}},[a("el-table-column",{attrs:{type:"selection",width:"42"}}),e._v(" "),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),e._v(" "),a("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("86"==t.row.nationcode?t.row.phoneNumber:"+"+t.row.nationcode+"-"+t.row.phoneNumber)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"80",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.gicFlag?e._e():a("a",{staticClass:"a-href",on:{click:function(a){e.transClerk("single",t.row)}}},[a("i",{staticClass:"el-icon-sort"})]),e._v(" "),e.gicFlag?e._e():a("a",{staticClass:"a-href",on:{click:function(a){e.delClerk(t.row)}}},[a("i",{staticClass:"el-icon-delete"})])]}}])})],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.currentBrand,treeSet:e.treeSet,selectType:e.selectType},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,i,!1,function(e){a("z8KK")},null,null).exports,d=a("3Xzz"),h=a("PI0u"),p=a("unF8"),g=a("Ch4/"),m={name:"recycle-bin",components:{navCrumb:d.a,clerkTable:u},data:function(){return{searchKey:"",typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],pageSize:20,pageNumber:1,recycleList:[],total:0,navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame?showRecycle=0"},{name:"门店回收站",path:""}],clerks:[],showClerks:!1,currentStore:{},brandId:"",gicFlag:!0}},methods:{toInput:Object(h.a)(function(e){this.pageNumber=1,this.getRecycleList()},300),getRecycleList:function(){var e=this,t=e.$route.query,a={storeName:e.searchKey||"",storeGroupId:t.dept,showChild:1*t.showChild,showType:2,pageSize:e.pageSize,pageNum:e.pageNumber,status:4,storeType:t.type};Object(l.a)("/haoban-manage-web/store/findSimplePage",a).then(function(t){1==t.data.errorCode?(e.total=t.data.result.total,e.recycleList=t.data.result.list||[]):(e.recycleList=[],e.$message.error({duration:1e3,message:t.data.message}))}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},restore:function(e){var t=this;t.$confirm("确定要恢复到门店列表吗?","提示",{type:"warning"}).then(function(){var a={status:1,storeId:e.storeId};Object(l.a)("/haoban-manage-web/store/changeStatus",a).then(function(e){1==e.data.errorCode?(t.searchKey="",t.pageNumber=1,t.getRecycleList()):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})}).catch(function(e){})},handleSizeChange:function(e){this.pageSize=e,this.getRecycleList()},handleCurrentChange:function(e){this.pageNumber=e,this.getRecycleList()},showClerksFn:function(e){this.currentStore=e,this.clerks=null==e.clerks?[]:e.clerks,this.showClerks=!0},delClerk:function(e){var t=this.currentStore,a=this;a.$confirm("是否要删除该员工?","提示",{type:"warning"}).then(function(){var r={ids:e.employeeClerkId};Object(l.a)("/haoban-manage-web/emp/del",r).then(function(r){1==r.data.errorCode?t.clerks.forEach(function(a){a.employeeClerkId==e.employeeClerkId&&t.clerks.splice(t.clerks.indexOf(a),1)}):a.$message.error({duration:1e3,message:r.data.message})}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})})},getGicData:function(){var e=this;return o()(s.a.mark(function t(){var a,r,n,o;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r={type:1,businessId:(a=e).brandId},t.next=4,Object(p.a)(r);case 4:n=t.sent,1==(o=n.data).errorCode?a.gicFlag=o.result:g.a.errorMsg(o);case 7:case"end":return t.stop()}},t,e)}))()}},beforeMount:function(){this.getRecycleList(),this.brandId=this.$route.query.brandId,this.getGicData()}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap recycle-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[e.showClerks?a("clerk-table",{attrs:{gicFlag:e.gicFlag,store:e.currentStore},on:{delClerk:e.delClerk}}):a("div",{staticClass:"recycle-bin"},[a("div",{staticClass:"r-b-top-header"},[a("div",{staticClass:"title"},[e._v(e._s(e.recycleList.length)+" 家门店")]),e._v(" "),a("el-input",{attrs:{placeholder:"请输入门店名","prefix-icon":"el-icon-search"},nativeOn:{keyup:function(t){return a=t,e.toInput(a);var a}},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}},[e._v(">")])],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.recycleList}},[a("el-table-column",{attrs:{label:"门店名称",prop:"storeName"}}),e._v(" "),a("el-table-column",{attrs:{label:"代码",prop:"storeCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"类型",prop:"storeType"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.typeArr[1*t.row.storeType+1])+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"地址",prop:"postAddress"}}),e._v(" "),a("el-table-column",{attrs:{label:"待处理店员",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{staticClass:"a-href",on:{click:function(a){e.showClerksFn(t.row)}}},[e._v("\n "+e._s(t.row.clerks.length)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.gicFlag?e._e():a("a",{staticClass:"a-href",on:{click:function(a){e.restore(t.row)}}},[e._v("恢复到门店列表")])]}}])})],1),e._v(" "),e.total?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNumber,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)],1)]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var b=a("VU/8")(m,f,!1,function(e){a("JTIc")},null,null);t.default=b.exports},JTIc:function(e,t){},z8KK:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([36],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("AsY3")},"data-v-18a2f51c",null);s.default=c.exports},AsY3:function(t,s){},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"}}); webpackJsonp([37],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("AsY3")},"data-v-18a2f51c",null);s.default=c.exports},AsY3:function(t,s){},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([37],{"2BMJ":function(t,e){},E5jH:function(t,e){},yuVF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),o=a("gBtx"),i=a.n(o),l=a("mvHQ"),r=a.n(l),n=a("c4uw"),p=a("Ie7z"),c=a("P9l9"),d=a("3E4D"),u=a("Ch4/"),f={name:"visiable-dialog",props:{showDialog:{type:Boolean,default:!1},appId:{type:String,default:""},appName:{type:String,default:""}},components:{vueSelectEmployee:n.a,vueSelectStore:p.a},data:function(){return{repProjectName:"haoban-manage-web",customDialog:!1,formData:{appId:this.appId,displayType:"0",data:[],departList:[],storeList:[]},appScene:2,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0},treeData:{},defaultSelection:[],changed:"",onlyPerson:!1,selectType:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0}}},beforeMount:function(){},methods:{handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDialog")},showDialogLayer:function(t,e){if(this.selectType=t,this.changed=t,"store"===t)return this.defaultStoreList=e,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0,openNextBool:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0,openNextBool:!0},"people"===t&&(this.onlyPerson=!1,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}),this.defaultSelection=e,this.treeData.hasOwnProperty("treeData")},handleSelectedList:function(t){console.log(t),"store"===this.selectType?this.formData.storeList=t:this.formData.departList=t},delDepart:function(t,e){e.splice(t,1)},customConfirm:function(){if(0!=this.formData.displayType)if(this.formData.departList.length||this.formData.storeList.length){var t=[];this.formData.departList.length&&this.formData.departList.forEach(function(e){t.push({id:e.id,type:e.hasOwnProperty("employeeClerkId")?1:e.hasOwnProperty("groupId")?2:3})}),this.formData.storeList.length&&this.formData.storeList.forEach(function(e){t.push({id:e.id,type:e.hasOwnProperty("employeeClerkId")?1:e.hasOwnProperty("groupId")?2:3})}),this.setData(t)}else this.$message.error({duration:1e3,message:"请选择可见人员"});else this.setData([])},setData:function(t){var e=this,a={appId:this.appId,displayType:parseInt(e.formData.displayType),data:r()(t)};Object(c.e)("/haoban-manage-web/application-right-save",a).then(function(t){var a=t.data;if(1==a.errorCode)return d.a.showmsg("设置成功","success"),void e.hideDialog();u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getSetData:function(){var t=this,e={appId:t.formData.appId};Object(c.e)("/haoban-manage-web/application-right-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.formData.displayType=String(a.result.displayType),t.formData.departList=[],t.formData.storeList=[],a.result.displayRelation&&a.result.displayRelation.length&&a.result.displayRelation.forEach(function(e){2===i()(e.type)&&(e.groupId=e.id),e.label=e.name,e.isStore?t.formData.storeList.push(e):t.formData.departList.push(e)}),t.defaultSelection=t.formData.departList,void(t.defaultStoreList=t.formData.storeList);u.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{showDialog:function(t,e){this.customDialog=t},appId:function(t,e){this.formData.appId=t,t&&this.getSetData()}},mounted:function(){this.customDialog=this.showDialog,this.appId&&this.getSetData()}},m={render: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:"app-dialog",attrs:{title:t.appName+"可见范围设置",visible:t.customDialog,width:"476px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"app-dialog-body"},[a("el-form",{ref:"form",attrs:{model:t.formData,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"可见范围"}},[a("div",[a("el-radio",{attrs:{label:"0"},model:{value:t.formData.displayType,callback:function(e){t.$set(t.formData,"displayType",e)},expression:"formData.displayType"}},[t._v("全部员工")])],1),t._v(" "),a("div",[a("el-radio",{attrs:{label:"1"},model:{value:t.formData.displayType,callback:function(e){t.$set(t.formData,"displayType",e)},expression:"formData.displayType"}},[t._v("部分员工")])],1)]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.formData.displayType,expression:"formData.displayType == 1"}]},[a("el-form-item",{staticClass:"m-b-0 m-t-10",attrs:{label:"行政架构",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-column item-cell-select"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(e){t.showDialogLayer("depart",t.formData.departList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.formData.departList,function(e,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(s,t.formData.departList)}}})])]})],2)])])])])]),t._v(" "),a("el-form-item",{staticClass:"m-t-22",attrs:{label:"门店架构",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-column item-cell-select"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){t.showDialogLayer("store",t.formData.storeList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.formData.storeList,function(e,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(s,t.formData.storeList)}}})])]})],2)])])])])])],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.customConfirm}},[t._v("确 定")])],1)]),t._v(" "),a("vue-select-employee",{attrs:{appScene:t.appScene,defaultSelection:t.defaultSelection,onlyPerson:t.onlyPerson,treeSet:t.treeSet,changed:t.changed},on:{handleSelectedList:t.handleSelectedList}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"all",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var h=a("VU/8")(f,m,!1,function(t){a("2BMJ")},"data-v-15f990ae",null).exports,g={name:"apps",data:function(){return{tableH:window.screen.availHeight-464-126+"px",navpath:[{name:"首页",path:"/index"},{name:"企业应用",path:""}],appList:[],roleCode:"",appName:"",appId:"",showDialog:!1}},computed:{},methods:{showPeople:function(t){if("master_admin"!=this.roleCode&&"admin"!=this.roleCode)return this.$message.error({duration:1e3,message:"暂无操作权限"}),!1;this.appName=t.appName,this.appId=t.appId,this.showDialog=!0},hideDialog:function(){this.appName="",this.showDialog=!1},changeSwitch:function(t){var e=this;if("master_admin"!=e.roleCode)return e.$message.error({duration:1e3,message:"暂无操作权限"}),!1;var a=1==t.status?"关闭":"开启";e.$confirm("确认"+a+"【"+t.appName+"】应用吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postSwitch(t)}).catch(function(){})},postSwitch:function(t){var e=this,a={appId:t.appId,status:2==t.status?1:2};Object(c.a)("/haoban-manage-web/application-on-off",a).then(function(e){var a=e.data;if(1==a.errorCode)return d.a.showmsg("操作成功","success"),void(t.status=2==t.status?1:2);u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toAppDetail:function(t){if(!t.appUrl)return d.a.showmsg("无更多设置项,不可进入!","warning"),!1;0==t.appType?this.$router.push(t.appUrl+"?appId="+t.appId+"&appIcon="+t.appIcon):window.open(t.appUrl)},getAppList:function(t){var e=this;Object(c.a)("/haoban-manage-web/application-rigth-list",{}).then(function(t){var a=t.data;1!=a.errorCode?u.a.errorMsg(a):a.result&&a.result.appList&&(e.appList=a.result.appList,e.roleCode=a.result.roleCode)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getAppList()},components:{navCrumb:s.a,visiableDialog:h}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"apps-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"apps-content"},[a("div",{staticClass:"apps-content-title"},[t._v("基础应用")]),t._v(" "),a("div",{staticClass:"apps-content-body m-t-24"},[a("ul",{staticClass:"flex flex-row flex-wrap"},t._l(t.appList,function(e,s){return a("li",{key:e.appId+s,staticClass:"flex flex-align-center border-box flex",on:{click:function(a){if(a.target!==a.currentTarget)return null;t.toAppDetail(e)}}},[a("span",{staticClass:"square-item flex flex-align-center flex-pack-center",style:{background:e.appBackgroudColor},on:{click:function(a){a.stopPropagation(),t.toAppDetail(e)}}},[a("img",{class:[1==e.status?"":"filter-grayscale"],attrs:{src:e.appIcon,alt:""}})]),t._v(" "),a("div",{staticClass:"color-303133 font-16 p-l-8",on:{click:function(a){a.stopPropagation(),t.toAppDetail(e)}}},[a("div",[t._v(t._s(e.appName))]),t._v(" "),e.appUrl?t._e():a("div",{staticClass:"font-12 color-909399 m-t-5"},[t._v("里面什么也没有~")])]),t._v(" "),a("div",{staticClass:"cell-arrow-down"},[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 color-909399",staticStyle:{cursor:"pointer"}})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){a.stopPropagation(),t.showPeople(e)}}},[t._v("可见人群")])]),t._v(" "),a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){a.stopPropagation(),t.changeSwitch(e)}}},[t._v(t._s(1==e.status?"停用":"启用"))])])],1)],1)],1)])}))])])])]),t._v(" "),a("vue-gic-footer"),t._v(" "),a("visiableDialog",{attrs:{appId:t.appId,appName:t.appName,showDialog:t.showDialog},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var D=a("VU/8")(g,v,!1,function(t){a("E5jH")},"data-v-ac486fa2",null);e.default=D.exports}}); webpackJsonp([38],{"2BMJ":function(t,e){},E5jH:function(t,e){},yuVF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),o=a("gBtx"),i=a.n(o),l=a("mvHQ"),r=a.n(l),n=a("c4uw"),p=a("Ie7z"),c=a("P9l9"),d=a("3E4D"),u=a("Ch4/"),f={name:"visiable-dialog",props:{showDialog:{type:Boolean,default:!1},appId:{type:String,default:""},appName:{type:String,default:""}},components:{vueSelectEmployee:n.a,vueSelectStore:p.a},data:function(){return{repProjectName:"haoban-manage-web",customDialog:!1,formData:{appId:this.appId,displayType:"0",data:[],departList:[],storeList:[]},appScene:2,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0},treeData:{},defaultSelection:[],changed:"",onlyPerson:!1,selectType:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0}}},beforeMount:function(){},methods:{handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDialog")},showDialogLayer:function(t,e){if(this.selectType=t,this.changed=t,"store"===t)return this.defaultStoreList=e,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0,openNextBool:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0,openNextBool:!0},"people"===t&&(this.onlyPerson=!1,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}),this.defaultSelection=e,this.treeData.hasOwnProperty("treeData")},handleSelectedList:function(t){console.log(t),"store"===this.selectType?this.formData.storeList=t:this.formData.departList=t},delDepart:function(t,e){e.splice(t,1)},customConfirm:function(){if(0!=this.formData.displayType)if(this.formData.departList.length||this.formData.storeList.length){var t=[];this.formData.departList.length&&this.formData.departList.forEach(function(e){t.push({id:e.id,type:e.hasOwnProperty("employeeClerkId")?1:e.hasOwnProperty("groupId")?2:3})}),this.formData.storeList.length&&this.formData.storeList.forEach(function(e){t.push({id:e.id,type:e.hasOwnProperty("employeeClerkId")?1:e.hasOwnProperty("groupId")?2:3})}),this.setData(t)}else this.$message.error({duration:1e3,message:"请选择可见人员"});else this.setData([])},setData:function(t){var e=this,a={appId:this.appId,displayType:parseInt(e.formData.displayType),data:r()(t)};Object(c.e)("/haoban-manage-web/application-right-save",a).then(function(t){var a=t.data;if(1==a.errorCode)return d.a.showmsg("设置成功","success"),void e.hideDialog();u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getSetData:function(){var t=this,e={appId:t.formData.appId};Object(c.e)("/haoban-manage-web/application-right-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.formData.displayType=String(a.result.displayType),t.formData.departList=[],t.formData.storeList=[],a.result.displayRelation&&a.result.displayRelation.length&&a.result.displayRelation.forEach(function(e){2===i()(e.type)&&(e.groupId=e.id),e.label=e.name,e.isStore?t.formData.storeList.push(e):t.formData.departList.push(e)}),t.defaultSelection=t.formData.departList,void(t.defaultStoreList=t.formData.storeList);u.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{showDialog:function(t,e){this.customDialog=t},appId:function(t,e){this.formData.appId=t,t&&this.getSetData()}},mounted:function(){this.customDialog=this.showDialog,this.appId&&this.getSetData()}},m={render: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:"app-dialog",attrs:{title:t.appName+"可见范围设置",visible:t.customDialog,width:"476px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"app-dialog-body"},[a("el-form",{ref:"form",attrs:{model:t.formData,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"可见范围"}},[a("div",[a("el-radio",{attrs:{label:"0"},model:{value:t.formData.displayType,callback:function(e){t.$set(t.formData,"displayType",e)},expression:"formData.displayType"}},[t._v("全部员工")])],1),t._v(" "),a("div",[a("el-radio",{attrs:{label:"1"},model:{value:t.formData.displayType,callback:function(e){t.$set(t.formData,"displayType",e)},expression:"formData.displayType"}},[t._v("部分员工")])],1)]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.formData.displayType,expression:"formData.displayType == 1"}]},[a("el-form-item",{staticClass:"m-b-0 m-t-10",attrs:{label:"行政架构",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-column item-cell-select"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(e){t.showDialogLayer("depart",t.formData.departList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.formData.departList,function(e,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(s,t.formData.departList)}}})])]})],2)])])])])]),t._v(" "),a("el-form-item",{staticClass:"m-t-22",attrs:{label:"门店架构",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-column item-cell-select"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){t.showDialogLayer("store",t.formData.storeList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.formData.storeList,function(e,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(s,t.formData.storeList)}}})])]})],2)])])])])])],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.customConfirm}},[t._v("确 定")])],1)]),t._v(" "),a("vue-select-employee",{attrs:{appScene:t.appScene,defaultSelection:t.defaultSelection,onlyPerson:t.onlyPerson,treeSet:t.treeSet,changed:t.changed},on:{handleSelectedList:t.handleSelectedList}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"all",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var h=a("VU/8")(f,m,!1,function(t){a("2BMJ")},"data-v-15f990ae",null).exports,g={name:"apps",data:function(){return{tableH:window.screen.availHeight-464-126+"px",navpath:[{name:"首页",path:"/index"},{name:"企业应用",path:""}],appList:[],roleCode:"",appName:"",appId:"",showDialog:!1}},computed:{},methods:{showPeople:function(t){if("master_admin"!=this.roleCode&&"admin"!=this.roleCode)return this.$message.error({duration:1e3,message:"暂无操作权限"}),!1;this.appName=t.appName,this.appId=t.appId,this.showDialog=!0},hideDialog:function(){this.appName="",this.showDialog=!1},changeSwitch:function(t){var e=this;if("master_admin"!=e.roleCode)return e.$message.error({duration:1e3,message:"暂无操作权限"}),!1;var a=1==t.status?"关闭":"开启";e.$confirm("确认"+a+"【"+t.appName+"】应用吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postSwitch(t)}).catch(function(){})},postSwitch:function(t){var e=this,a={appId:t.appId,status:2==t.status?1:2};Object(c.a)("/haoban-manage-web/application-on-off",a).then(function(e){var a=e.data;if(1==a.errorCode)return d.a.showmsg("操作成功","success"),void(t.status=2==t.status?1:2);u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toAppDetail:function(t){if(!t.appUrl)return d.a.showmsg("无更多设置项,不可进入!","warning"),!1;0==t.appType?this.$router.push(t.appUrl+"?appId="+t.appId+"&appIcon="+t.appIcon):window.open(t.appUrl)},getAppList:function(t){var e=this;Object(c.a)("/haoban-manage-web/application-rigth-list",{}).then(function(t){var a=t.data;1!=a.errorCode?u.a.errorMsg(a):a.result&&a.result.appList&&(e.appList=a.result.appList,e.roleCode=a.result.roleCode)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getAppList()},components:{navCrumb:s.a,visiableDialog:h}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"apps-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"apps-content"},[a("div",{staticClass:"apps-content-title"},[t._v("基础应用")]),t._v(" "),a("div",{staticClass:"apps-content-body m-t-24"},[a("ul",{staticClass:"flex flex-row flex-wrap"},t._l(t.appList,function(e,s){return a("li",{key:e.appId+s,staticClass:"flex flex-align-center border-box flex",on:{click:function(a){if(a.target!==a.currentTarget)return null;t.toAppDetail(e)}}},[a("span",{staticClass:"square-item flex flex-align-center flex-pack-center",style:{background:e.appBackgroudColor},on:{click:function(a){a.stopPropagation(),t.toAppDetail(e)}}},[a("img",{class:[1==e.status?"":"filter-grayscale"],attrs:{src:e.appIcon,alt:""}})]),t._v(" "),a("div",{staticClass:"color-303133 font-16 p-l-8",on:{click:function(a){a.stopPropagation(),t.toAppDetail(e)}}},[a("div",[t._v(t._s(e.appName))]),t._v(" "),e.appUrl?t._e():a("div",{staticClass:"font-12 color-909399 m-t-5"},[t._v("里面什么也没有~")])]),t._v(" "),a("div",{staticClass:"cell-arrow-down"},[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 color-909399",staticStyle:{cursor:"pointer"}})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){a.stopPropagation(),t.showPeople(e)}}},[t._v("可见人群")])]),t._v(" "),a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){a.stopPropagation(),t.changeSwitch(e)}}},[t._v(t._s(1==e.status?"停用":"启用"))])])],1)],1)],1)])}))])])])]),t._v(" "),a("vue-gic-footer"),t._v(" "),a("visiableDialog",{attrs:{appId:t.appId,appName:t.appName,showDialog:t.showDialog},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var D=a("VU/8")(g,v,!1,function(t){a("E5jH")},"data-v-ac486fa2",null);e.default=D.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([39],{"0UFt":function(e,t){},"A/XQ":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,r=a("Xxa5"),n=a.n(r),o=a("exGp"),i=a.n(o),l=a("mvHQ"),c=a.n(l),m=a("l46T"),u=a("P9l9"),d=a("Ch4/"),f=a("3E4D"),p=a("PI0u"),b={name:"create-work-class",components:{limitInput:m.a},props:{workClassShow:{type:Boolean,default:!1},classesId:{type:String,default:""}},data:function(){var e=this;return{enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,customDialog:!1,tableData:[],conditionObj:{searchInput:"",classesId:this.classesId},formData:{classesId:"",classesName:"",times:"1",classessTimesJson:[{startTime:"9:00",endTime:"18:00",allowStartBeginTime:"",forbidStartBeginTime:[],allowStartEndTime:"",forbidStartEndTime:[],allowEndStartTime:"",forbidEndStartTime:[],allowEndEndTime:"",forbidEndEndTime:[]}],clockType:!1,relaxFlag:!1,relaxStartDate:"12:00",relaxEndDate:"13:00",isAllowLate:!1,isMoreLate:!1,isMostLate:!1,allowLateDate:"30",moreLateDate:"35",mostLateDate:"60",lateRule:!1,lateRuleJson:[]},rules:{classesName:[{required:!0,message:"请输入班次名称",trigger:"blur"}],times:[{required:!0,validator:function(t,a,s){""===a?s(new Error("请设置次数")):e.formData.classessTimesJson.map(function(e){return e.startTime}).includes("")||e.formData.classessTimesJson.map(function(e){return e.endTime}).includes("")?s(new Error("请完善次数限制")):e.formData.clockType&&(e.formData.classessTimesJson.map(function(e){return e.allowStartBeginTime}).includes("")||e.formData.classessTimesJson.map(function(e){return e.allowStartEndTime}).includes("")||e.formData.classessTimesJson.map(function(e){return e.allowEndStartTime}).includes("")||e.formData.classessTimesJson.map(function(e){return e.allowEndEndTime}).includes(""))?s(new Error("请完善次数限制")):s()},trigger:"change"}]},maxLate:10}},methods:{checkNextFlag:function(e,t){var a=String(e).split(":"),s=String(t).split(":");return parseInt(a[0])>parseInt(s[0])||parseInt(a[0])>=parseInt(s[0])&&parseInt(a[1])>=parseInt(s[1])},changeTimes:function(e){if(console.log(e),1==e&&this.formData.classessTimesJson.length>=2&&this.formData.classessTimesJson.splice(1,2),2==e)if(this.formData.classessTimesJson.length>=2)this.formData.classessTimesJson.splice(2,1);else{var t=this.formData.classessTimesJson[0].endTime.split(":");this.formData.classessTimesJson.push({startTime:(1+Number(t[0])<24?1+Number(t[0]):1+Number(t[0])-24)+":"+t[1],endTime:(4+Number(t[0])<24?4+Number(t[0]):4+Number(t[0])-24)+":"+t[1],allowStartBeginTime:"",allowStartEndTime:"",allowEndStartTime:"",allowEndEndTime:""})}if(3==e)if(this.formData.classessTimesJson.length>=2){var a=this.formData.classessTimesJson[1].endTime.split(":");this.formData.classessTimesJson.push({startTime:(1+Number(a[0])<24?1+Number(a[0]):1+Number(a[0])-24)+":"+a[1],endTime:(4+Number(a[0])<24?4+Number(a[0]):4+Number(a[0])-24)+":"+a[1],allowStartBeginTime:"",allowStartEndTime:"",allowEndStartTime:"",allowEndEndTime:""})}else{var s=this.formData.classessTimesJson[0].endTime.split(":");this.formData.classessTimesJson.push({startTime:(1+Number(s[0])<24?1+Number(s[0]):1+Number(s[0])-24)+":"+s[1],endTime:(4+Number(s[0])<24?4+Number(s[0]):4+Number(s[0])-24)+":"+s[1],allowStartBeginTime:"",allowStartEndTime:"",allowEndStartTime:"",allowEndEndTime:""})}},hourTohm:function(e){var t=String(e)+":00";return String(e).includes(".")&&(t=String(e).split(".")[0]+":"+60*String(e).split(".")[1]/10),t},hmPlushm:function(e,t){var a=String(e),s=String(t),r=parseInt(a.split(":")[0])+parseInt(s.split(":")[0]),n=parseInt(a.split(":")[1])+parseInt(s.split(":")[1]);return n>=60&&(n-=60,r+=1),r>=24&&(r-=24),(r<10?"0"+r:r)+":"+(n<10?"0"+n:n)},hmMinuxhm:function(e,t){var a=String(e),s=String(t),r=parseInt(a.split(":")[0])-parseInt(s.split(":")[0]),n=parseInt(a.split(":")[1])-parseInt(s.split(":")[1]);return n<0&&(n+=60,r-=1),r<0&&(r+=24),(r<10?"0"+r:r)+":"+(n<10?"0"+n:n)},timeDifference:function(e,t){var a=e.split(":"),s=parseInt(60*a[0])+parseInt(a[1]),r=t.split(":"),n=parseInt(60*r[0])+parseInt(r[1]);return Number((n-s)/60).toFixed(1)},compareDate:function(e,t){var a=new Date,s=String(e).split(":"),r=String(t).split(":");return a.setHours(s[0],s[1])<a.setHours(r[0],r[1])},forbidStartBeginTime:function(e){var t=this;return i()(n.a.mark(function a(){var s,r,o,i,l;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return s=t,r=[],a.t0=s,a.t1=e.startTime,a.next=6,s.hourTohm(8);case 6:return a.t2=a.sent,a.next=9,a.t0.hmMinuxhm.call(a.t0,a.t1,a.t2);case 9:return o=a.sent,a.next=12,s.hmMinuxhm(e.startTime,"00:01");case 12:return i=a.sent,console.log(o),a.t3=console,a.next=17,s.compareDate(o,e.endTime);case 17:if(a.t4=a.sent,a.t3.log.call(a.t3,"上班时间-8之后和下班时间比较:",a.t4),l=parseInt(e.startTime.split(":")[0])-8,console.log("上班时间-8:",l),a.t5=l<0,!a.t5){a.next=26;break}return a.next=25,s.compareDate(o,e.endTime);case 25:a.t5=a.sent;case 26:if(!a.t5){a.next=30;break}return a.next=29,s.hmMinuxhm(e.endTime,"00:01");case 29:o=a.sent;case 30:return a.next=32,s.compareDate(e.startTime,e.endTime);case 32:if(a.t7=!a.sent,!a.t7){a.next=35;break}a.t7=l<0;case 35:if(a.t6=a.t7,!a.t6){a.next=40;break}return a.next=39,s.compareDate(o,e.endTime);case 39:a.t6=!a.sent;case 40:if(!a.t6){a.next=44;break}return a.next=43,s.hmPlushm(e.endTime,"00:01");case 43:o=a.sent;case 44:return a.next=46,s.compareDate(e.startTime,e.endTime);case 46:if(a.t9=!a.sent,!a.t9){a.next=49;break}a.t9=l>0;case 49:if(a.t8=a.t9,!a.t8){a.next=54;break}return a.next=53,s.compareDate(o,e.endTime);case 53:a.t8=a.sent;case 54:if(!a.t8){a.next=58;break}return a.next=57,s.hmPlushm(e.endTime,"00:01");case 57:o=a.sent;case 58:return a.next=60,s.compareDate(o,i);case 60:if(a.sent){a.next=64;break}return r.push([o+":00","23:59:00"].join("-")),r.push(["00:00:00",i+":00"].join("-")),a.abrupt("return",r);case 64:return a.abrupt("return",[[o+":00",i+":00"].join("-")]);case 65:case"end":return a.stop()}},a,t)}))()},forbidStartEndTime:function(e){var t=this;return i()(n.a.mark(function a(){var s,r,o,i,l;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return s=t,r=[],a.next=4,s.hmPlushm(e.startTime,"00:01");case 4:return o=a.sent,a.next=7,s.hmPlushm(e.startTime,"12:00");case 7:return i=a.sent,a.t0=console,a.next=11,s.compareDate(i,e.endTime);case 11:return a.t1=a.sent,a.t0.log.call(a.t0,"下班时间+12 之后和上班时间比较:",a.t1),l=parseInt(e.startTime.split(":")[0])+12,a.t2=console,a.t3=l,a.t4=i,a.next=19,s.compareDate(e.endTime,i);case 19:return a.t5=a.sent,a.t2.log.call(a.t2,"下班时间+12:",a.t3,a.t4,a.t5),a.next=23,s.compareDate(e.startTime,e.endTime);case 23:if(a.t7=a.sent,!a.t7){a.next=26;break}a.t7=l<24;case 26:if(a.t6=a.t7,!a.t6){a.next=31;break}return a.next=30,s.compareDate(e.endTime,i);case 30:a.t6=a.sent;case 31:if(!a.t6){a.next=35;break}return a.next=34,s.hmMinuxhm(e.endTime,"00:01");case 34:i=a.sent;case 35:return a.next=37,s.compareDate(e.startTime,e.endTime);case 37:if(a.t9=a.sent,!a.t9){a.next=40;break}a.t9=l>24;case 40:if(a.t8=a.t9,!a.t8){a.next=45;break}return a.next=44,s.compareDate(e.endTime,i);case 44:a.t8=!a.sent;case 45:if(!a.t8){a.next=49;break}return a.next=48,s.hmMinuxhm(e.endTime,"00:01");case 48:i=a.sent;case 49:return a.next=51,s.compareDate(e.startTime,e.endTime);case 51:if(a.t11=!a.sent,!a.t11){a.next=54;break}a.t11=l>24;case 54:if(a.t10=a.t11,!a.t10){a.next=59;break}return a.next=58,s.compareDate(e.endTime,i);case 58:a.t10=a.sent;case 59:if(!a.t10){a.next=63;break}return a.next=62,s.hmMinuxhm(e.endTime,"00:01");case 62:i=a.sent;case 63:return a.next=65,s.compareDate(o,i);case 65:if(a.sent){a.next=69;break}return r.push([o+":00","23:59:00"].join("-")),r.push(["00:00:00",i+":00"].join("-")),a.abrupt("return",r);case 69:return a.abrupt("return",[[o+":00",i+":00"].join("-")]);case 70:case"end":return a.stop()}},a,t)}))()},forbidEndStartTime:function(e){var t=this;return i()(n.a.mark(function a(){var s,r,o,i,l;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return s=t,r=[],a.next=4,s.hmMinuxhm(e.endTime,"08:00");case 4:return o=a.sent,a.next=7,s.hmMinuxhm(e.endTime,"00:01");case 7:return i=a.sent,a.t0=console,a.next=11,s.compareDate(e.startTime,o);case 11:return a.t1=a.sent,a.t0.log.call(a.t0,"下班时间-8 之后和上班时间比较:",a.t1),l=parseInt(e.endTime.split(":")[0])-8,a.t2=console,a.t3=l,a.t4=o,a.next=19,s.compareDate(e.startTime,o);case 19:return a.t5=a.sent,a.t2.log.call(a.t2,"下班时间-8:",a.t3,a.t4,a.t5),a.next=23,s.compareDate(e.startTime,e.endTime);case 23:if(a.t8=a.sent,!a.t8){a.next=26;break}a.t8=l<0;case 26:if(a.t7=a.t8,!a.t7){a.next=31;break}return a.next=30,s.compareDate(e.startTime,o);case 30:a.t7=a.sent;case 31:if(a.t6=a.t7,a.t6){a.next=44;break}return a.next=35,s.compareDate(e.startTime,e.endTime);case 35:if(a.t10=a.sent,!a.t10){a.next=38;break}a.t10=l>0;case 38:if(a.t9=a.t10,!a.t9){a.next=43;break}return a.next=42,s.compareDate(e.startTime,o);case 42:a.t9=!a.sent;case 43:a.t6=a.t9;case 44:if(!a.t6){a.next=49;break}return console.log(1),a.next=48,s.hmPlushm(e.startTime,"00:01");case 48:o=a.sent;case 49:return console.log(o),a.next=52,s.compareDate(e.startTime,e.endTime);case 52:if(a.t12=!a.sent,!a.t12){a.next=55;break}a.t12=l<0;case 55:if(a.t11=a.t12,!a.t11){a.next=60;break}return a.next=59,s.compareDate(e.startTime,o);case 59:a.t11=!a.sent;case 60:if(!a.t11){a.next=65;break}return console.log(2),a.next=64,s.hmPlushm(e.startTime,"00:01");case 64:o=a.sent;case 65:return a.t13=console,a.next=68,s.compareDate(e.startTime,e.endTime);case 68:return a.t14=!a.sent,a.t13.log.call(a.t13,"是否跨天:",a.t14),console.log("下班可以开始时间:",o,i),a.next=73,s.compareDate(o,i);case 73:if(a.sent){a.next=77;break}return r.push([o+":00","23:59:00"].join("-")),r.push(["00:00:00",i+":00"].join("-")),a.abrupt("return",r);case 77:return a.abrupt("return",[[o+":00",i+":00"].join("-")]);case 78:case"end":return a.stop()}},a,t)}))()},forbidEndEndTime:function(e){var t=this;return i()(n.a.mark(function a(){var s,r,o,i,l;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return s=t,r=[],a.next=4,s.hmPlushm(e.endTime,"00:01");case 4:return o=a.sent,a.next=7,s.hmPlushm(e.endTime,"12:00");case 7:return i=a.sent,a.t0=console,a.next=11,s.compareDate(i,e.startTime);case 11:return a.t1=a.sent,a.t0.log.call(a.t0,"下班时间+12 之后和上班时间比较:",a.t1),l=parseInt(e.endTime.split(":")[0])+12,a.t2=console,a.t3=l,a.t4=i,a.next=19,s.compareDate(e.startTime,i);case 19:if(a.t5=a.sent,a.t2.log.call(a.t2,"下班时间+12:",a.t3,a.t4,a.t5),a.t6=l>24,!a.t6){a.next=26;break}return a.next=25,s.compareDate(e.startTime,i);case 25:a.t6=a.sent;case 26:if(!a.t6){a.next=30;break}return a.next=29,s.hmMinuxhm(e.startTime,"00:01");case 29:i=a.sent;case 30:return a.next=32,s.compareDate(e.startTime,e.endTime);case 32:if(a.t8=!a.sent,!a.t8){a.next=35;break}a.t8=l<24;case 35:if(a.t7=a.t8,!a.t7){a.next=40;break}return a.next=39,s.compareDate(e.startTime,i);case 39:a.t7=a.sent;case 40:if(!a.t7){a.next=44;break}return a.next=43,s.hmMinuxhm(e.startTime,"00:01");case 43:i=a.sent;case 44:return a.next=46,s.compareDate(o,i);case 46:if(a.sent){a.next=50;break}return r.push([o+":00","23:59:00"].join("-")),r.push(["00:00:00",i+":00"].join("-")),a.abrupt("return",r);case 50:return a.abrupt("return",[[o+":00",i+":00"].join("-")]);case 51:case"end":return a.stop()}},a,t)}))()},changeStart:function(e,t){var a=this;return i()(n.a.mark(function e(){var s;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=a,e.next=3,s.setLateHours();case 3:return e.next=5,s.forbidStartBeginTime(t);case 5:return t.forbidStartBeginTime=e.sent,e.next=8,s.forbidStartEndTime(t);case 8:return t.forbidStartEndTime=e.sent,e.next=11,s.forbidEndStartTime(t);case 11:return t.forbidEndStartTime=e.sent,e.next=14,s.forbidEndEndTime(t);case 14:t.forbidEndEndTime=e.sent,console.log(t),s.$forceUpdate();case 17:case"end":return e.stop()}},e,a)}))()},changeEnd:function(e,t){var a=this;return i()(n.a.mark(function e(){var s;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=a,e.next=3,s.setLateHours();case 3:return e.next=5,s.forbidStartBeginTime(t);case 5:return t.forbidStartBeginTime=e.sent,e.next=8,s.forbidStartEndTime(t);case 8:return t.forbidStartEndTime=e.sent,e.next=11,s.forbidEndStartTime(t);case 11:return t.forbidEndStartTime=e.sent,e.next=14,s.forbidEndEndTime(t);case 14:t.forbidEndEndTime=e.sent,s.$forceUpdate();case 16:case"end":return e.stop()}},e,a)}))()},setLateHours:function(){var e=this;return i()(n.a.mark(function t(){var a,s,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return s=10.5,r=(a=e).formData.classessTimesJson[0].startTime,o=a.formData.classessTimesJson[0].endTime,t.next=6,a.compareDate(r,o);case 6:if(!t.sent){t.next=12;break}return t.next=9,a.timeDifference(r,o);case 9:s=t.sent,t.next=23;break;case 12:return t.t0=Number,t.next=15,a.timeDifference(r,"24:00");case 15:return t.t1=t.sent,t.t2=(0,t.t0)(t.t1),t.t3=Number,t.next=20,a.timeDifference("00:00",o);case 20:t.t4=t.sent,t.t5=(0,t.t3)(t.t4),s=t.t2+t.t5;case 23:a.maxLate=s-.5,console.log(a.maxLate),a.maxLate<1.5&&(a.formData.lateRule=!1,a.formData.lateRuleJson=[]),a.maxLate>=10.5&&(a.maxLate=10);case 27:case"end":return t.stop()}},t,e)}))()},setRangeData:function(){var e=this;return i()(n.a.mark(function t(){var a,s;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return s=(a=e).formData.classessTimesJson[0],t.next=4,a.forbidStartBeginTime(s);case 4:return s.forbidStartBeginTime=t.sent,t.next=7,a.forbidStartEndTime(s);case 7:return s.forbidStartEndTime=t.sent,t.next=10,a.forbidEndStartTime(s);case 10:return s.forbidEndStartTime=t.sent,t.next=13,a.forbidEndEndTime(s);case 13:s.forbidEndEndTime=t.sent,a.$forceUpdate();case 15:case"end":return t.stop()}},t,e)}))()},setDefaultRangeData:function(){var e=this;return i()(n.a.mark(function t(){var a,s;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return s=(a=e).formData.classessTimesJson[0],t.next=4,a.defaultForbidStartBeginTime(s);case 4:return s.forbidStartBeginTime=t.sent,t.next=7,a.defaultForbidStartEndTime(s);case 7:return s.forbidStartEndTime=t.sent,t.next=10,a.defaultForbidEndStartTime(s);case 10:return s.forbidEndStartTime=t.sent,t.next=13,a.forbidEndEndTime(s);case 13:s.forbidEndEndTime=t.sent,a.$forceUpdate();case 15:case"end":return t.stop()}},t,e)}))()},defaultForbidStartBeginTime:function(e){var t=this;return i()(n.a.mark(function a(){var s,r,o,i,l;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return s=t,r=[],a.t0=s,a.t1=e.startTime,a.next=6,s.hourTohm(4);case 6:return a.t2=a.sent,a.next=9,a.t0.hmMinuxhm.call(a.t0,a.t1,a.t2);case 9:return o=a.sent,a.next=12,s.hmMinuxhm(e.startTime,"00:01");case 12:return i=a.sent,console.log(o),a.t3=console,a.next=17,s.compareDate(o,e.endTime);case 17:if(a.t4=a.sent,a.t3.log.call(a.t3,"上班时间-4之后和下班时间比较:",a.t4),l=parseInt(e.startTime.split(":")[0])-4,console.log("上班时间-4:",l),a.t5=l<0,!a.t5){a.next=26;break}return a.next=25,s.compareDate(o,e.endTime);case 25:a.t5=a.sent;case 26:if(!a.t5){a.next=30;break}return a.next=29,s.hmMinuxhm(e.endTime,"00:01");case 29:o=a.sent;case 30:return a.next=32,s.compareDate(e.startTime,e.endTime);case 32:if(a.t7=!a.sent,!a.t7){a.next=35;break}a.t7=l<0;case 35:if(a.t6=a.t7,!a.t6){a.next=40;break}return a.next=39,s.compareDate(o,e.endTime);case 39:a.t6=!a.sent;case 40:if(!a.t6){a.next=44;break}return a.next=43,s.hmPlushm(e.endTime,"00:01");case 43:o=a.sent;case 44:return a.next=46,s.compareDate(e.startTime,e.endTime);case 46:if(a.t9=!a.sent,!a.t9){a.next=49;break}a.t9=l>0;case 49:if(a.t8=a.t9,!a.t8){a.next=54;break}return a.next=53,s.compareDate(o,e.endTime);case 53:a.t8=a.sent;case 54:if(!a.t8){a.next=58;break}return a.next=57,s.hmPlushm(e.endTime,"00:01");case 57:o=a.sent;case 58:return a.next=60,s.compareDate(o,i);case 60:if(a.sent){a.next=64;break}return r.push([o+":00","23:59:00"].join("-")),r.push(["00:00:00",i+":00"].join("-")),a.abrupt("return",r);case 64:return a.abrupt("return",[[o+":00",i+":00"].join("-")]);case 65:case"end":return a.stop()}},a,t)}))()},defaultForbidStartEndTime:function(e){var t=this;return i()(n.a.mark(function a(){var s,r,o,i,l;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return s=t,r=[],a.next=4,s.hmPlushm(e.startTime,"00:01");case 4:return o=a.sent,a.next=7,s.hmPlushm(e.startTime,"02:00");case 7:return i=a.sent,a.t0=console,a.next=11,s.compareDate(i,e.endTime);case 11:return a.t1=a.sent,a.t0.log.call(a.t0,"下班时间+2 之后和上班时间比较:",a.t1),l=parseInt(e.startTime.split(":")[0])+2,a.t2=console,a.t3=l,a.t4=i,a.next=19,s.compareDate(e.endTime,i);case 19:return a.t5=a.sent,a.t2.log.call(a.t2,"下班时间+2:",a.t3,a.t4,a.t5),a.next=23,s.compareDate(e.startTime,e.endTime);case 23:if(a.t7=a.sent,!a.t7){a.next=26;break}a.t7=l<24;case 26:if(a.t6=a.t7,!a.t6){a.next=31;break}return a.next=30,s.compareDate(e.endTime,i);case 30:a.t6=a.sent;case 31:if(!a.t6){a.next=35;break}return a.next=34,s.hmMinuxhm(e.endTime,"00:01");case 34:i=a.sent;case 35:return a.next=37,s.compareDate(e.startTime,e.endTime);case 37:if(a.t9=a.sent,!a.t9){a.next=40;break}a.t9=l>24;case 40:if(a.t8=a.t9,!a.t8){a.next=45;break}return a.next=44,s.compareDate(e.endTime,i);case 44:a.t8=!a.sent;case 45:if(!a.t8){a.next=49;break}return a.next=48,s.hmMinuxhm(e.endTime,"00:01");case 48:i=a.sent;case 49:return a.next=51,s.compareDate(e.startTime,e.endTime);case 51:if(a.t11=!a.sent,!a.t11){a.next=54;break}a.t11=l>24;case 54:if(a.t10=a.t11,!a.t10){a.next=59;break}return a.next=58,s.compareDate(e.endTime,i);case 58:a.t10=a.sent;case 59:if(!a.t10){a.next=63;break}return a.next=62,s.hmMinuxhm(e.endTime,"00:01");case 62:i=a.sent;case 63:return a.next=65,s.compareDate(o,i);case 65:if(a.sent){a.next=69;break}return r.push([o+":00","23:59:00"].join("-")),r.push(["00:00:00",i+":00"].join("-")),a.abrupt("return",r);case 69:return a.abrupt("return",[[o+":00",i+":00"].join("-")]);case 70:case"end":return a.stop()}},a,t)}))()},defaultForbidEndStartTime:function(e){var t=this;return i()(n.a.mark(function a(){var s,r,o,i,l;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return s=t,r=[],a.next=4,s.hmMinuxhm(e.endTime,"04:00");case 4:return o=a.sent,a.next=7,s.hmMinuxhm(e.endTime,"00:01");case 7:return i=a.sent,a.t0=console,a.next=11,s.compareDate(e.startTime,o);case 11:return a.t1=a.sent,a.t0.log.call(a.t0,"下班时间-4 之后和上班时间比较:",a.t1),l=parseInt(e.endTime.split(":")[0])-4,a.t2=console,a.t3=l,a.t4=o,a.next=19,s.compareDate(e.startTime,o);case 19:return a.t5=a.sent,a.t2.log.call(a.t2,"下班时间-4:",a.t3,a.t4,a.t5),a.next=23,s.compareDate(e.startTime,e.endTime);case 23:if(a.t8=a.sent,!a.t8){a.next=26;break}a.t8=l<0;case 26:if(a.t7=a.t8,!a.t7){a.next=31;break}return a.next=30,s.compareDate(e.startTime,o);case 30:a.t7=a.sent;case 31:if(a.t6=a.t7,a.t6){a.next=44;break}return a.next=35,s.compareDate(e.startTime,e.endTime);case 35:if(a.t10=a.sent,!a.t10){a.next=38;break}a.t10=l>0;case 38:if(a.t9=a.t10,!a.t9){a.next=43;break}return a.next=42,s.compareDate(e.startTime,o);case 42:a.t9=!a.sent;case 43:a.t6=a.t9;case 44:if(!a.t6){a.next=49;break}return console.log(1),a.next=48,s.hmPlushm(e.startTime,"00:01");case 48:o=a.sent;case 49:return console.log(o),a.next=52,s.compareDate(e.startTime,e.endTime);case 52:if(a.t12=!a.sent,!a.t12){a.next=55;break}a.t12=l<0;case 55:if(a.t11=a.t12,!a.t11){a.next=60;break}return a.next=59,s.compareDate(e.startTime,o);case 59:a.t11=!a.sent;case 60:if(!a.t11){a.next=65;break}return console.log(2),a.next=64,s.hmPlushm(e.startTime,"00:01");case 64:o=a.sent;case 65:return a.t13=console,a.next=68,s.compareDate(e.startTime,e.endTime);case 68:return a.t14=!a.sent,a.t13.log.call(a.t13,"是否跨天:",a.t14),console.log("下班可以开始时间:",o,i),a.next=73,s.compareDate(o,i);case 73:if(a.sent){a.next=77;break}return r.push([o+":00","23:59:00"].join("-")),r.push(["00:00:00",i+":00"].join("-")),a.abrupt("return",r);case 77:return a.abrupt("return",[[o+":00",i+":00"].join("-")]);case 78:case"end":return a.stop()}},a,t)}))()},changeTimeRange:function(e){var t=this;return i()(n.a.mark(function a(){var s;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(s=t,!e){a.next=6;break}return a.next=4,s.setRangeData();case 4:a.next=8;break;case 6:return a.next=8,s.setDefaultRangeData();case 8:case"end":return a.stop()}},a,t)}))()},handleChangeLate:function(e){console.log("开启晚走:",e),e?this.formData.lateRuleJson.push({lateDate:2.5,allowLateDate:1}):this.formData.lateRuleJson=[],console.log(this.formData.lateRuleJson)},addLateSet:function(){this.formData.lateRuleJson.push({lateDate:Number(this.formData.lateRuleJson[this.formData.lateRuleJson.length-1].lateDate)+.5,allowLateDate:Number(this.formData.lateRuleJson[this.formData.lateRuleJson.length-1].allowLateDate)+.5})},deleteLateRule:function(e){this.formData.lateRuleJson.splice(e,1)},handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},checkLateSet:function(){var e=!0,t=[],a=[];this.formData.lateRuleJson.forEach(function(e){t.push(e.lateDate),a.push(e.allowLateDate)});for(var s=0;s<t.length-1;s++){for(var r=s+1;r<t.length;r++)if(t[s]>=t[r]){e=!1;break}if(!e)break}for(var n=0;n<a.length-1;n++){for(var o=n+1;o<a.length;o++)if(a[n]>=a[o]){e=!1;break}if(!e)break}return e},customConfirm:Object(p.a)((s=i()(n.a.mark(function e(t){var a,s;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(a=this).formData.relaxFlag||a.formData.relaxStartDate&&a.formData.relaxEndDate){e.next=4;break}return f.a.showmsg("请填写休息时间","warning"),e.abrupt("return",!1);case 4:if(!a.formData.isAllowLate||a.formData.allowLateDate){e.next=7;break}return f.a.showmsg("请填写允许迟到时间","warning"),e.abrupt("return",!1);case 7:if(!a.formData.isMoreLate||a.formData.moreLateDate){e.next=10;break}return f.a.showmsg("请填写严重迟到时间","warning"),e.abrupt("return",!1);case 10:if(!(a.formData.isAllowLate&&a.formData.isMoreLate&&a.formData.allowLateDate>=a.formData.moreLateDate)){e.next=13;break}return f.a.showmsg("严重迟到时间必须大于迟到允许时间","warning"),e.abrupt("return",!1);case 13:if(!a.formData.isMostLate||a.formData.mostLateDate){e.next=16;break}return f.a.showmsg("请填写旷工迟到时间","warning"),e.abrupt("return",!1);case 16:if(!(a.formData.isMoreLate&&a.formData.isMostLate&&a.formData.moreLateDate>=a.formData.mostLateDate)){e.next=19;break}return f.a.showmsg("旷工迟到时间必须大于严重迟到时间","warning"),e.abrupt("return",!1);case 19:if(a.formData.clockType){e.next=22;break}return e.next=22,a.setDefaultRangeData();case 22:if(s=!0,!(a.formData.lateRule&&a.formData.lateRuleJson.length>1)){e.next=27;break}return e.next=26,a.checkLateSet();case 26:s=e.sent;case 27:if(s){e.next=30;break}return f.a.showmsg("晚走晚到后面的规则时间必须大于前面的时间","warning"),e.abrupt("return",!1);case 30:a.$refs[t].validate(function(e){if(!e)return!1;a.setData()});case 31:case"end":return e.stop()}},e,this)})),function(e){return s.apply(this,arguments)}),300),setData:function(e){var t=this,a={classesId:t.conditionObj.classesId,enterpriseId:t.enterpriseId,classesName:t.formData.classesName,times:t.formData.times,classessTimesJson:c()(t.formData.classessTimesJson),clockType:t.formData.clockType?1:0,relaxFlag:t.formData.relaxFlag?1:0,relaxStartDate:t.formData.relaxStartDate,relaxEndDate:t.formData.relaxEndDate,isAllowLate:t.formData.isAllowLate?1:0,isMostLate:t.formData.isMostLate?1:0,isMoreLate:t.formData.isMoreLate?1:0,allowLateDate:t.formData.allowLateDate,mostLateDate:t.formData.mostLateDate,moreLateDate:t.formData.moreLateDate,lateRule:t.formData.lateRule?1:0,lateRuleJson:c()(t.formData.lateRuleJson)};Object(u.e)(t.conditionObj.classesId?"/haoban-app-attence-web/classes-edit":"/haoban-app-attence-web/classes-add",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.conditionObj.classesId?f.a.showmsg("编辑成功","success"):f.a.showmsg("新建成功","success"),t.hideDialog(),!1;d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},handleData:function(){var e=this;return i()(n.a.mark(function t(){var a;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(a=e).formData.clockType){t.next=6;break}return t.next=4,a.setRangeData();case 4:t.next=8;break;case 6:return t.next=8,a.setDefaultRangeData();case 8:return t.next=10,a.setLateHours();case 10:case"end":return t.stop()}},t,e)}))()},getData:function(e){var t=this,a={classesId:t.conditionObj.classesId,enterpriseId:t.enterpriseId};Object(u.a)("/haoban-app-attence-web/classes-detail",a).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.clockType=1==a.result.clockType,a.result.relaxFlag=1==a.result.relaxFlag,a.result.isAllowLate=1==a.result.isAllowLate,a.result.isMostLate=1==a.result.isMostLate,a.result.isMoreLate=1==a.result.isMoreLate,a.result.lateRule=1==a.result.lateRule,a.result.classessTimesJson&&(a.result.classessTimesJson=JSON.parse(a.result.classessTimesJson)),a.result.lateRuleJson&&(a.result.lateRuleJson=JSON.parse(a.result.lateRuleJson)),t.formData=a.result,t.handleData(),!1;d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},resetForm:function(){this.conditionObj.classesId="",this.formData={classesId:"",classesName:"",times:"1",classessTimesJson:[{startTime:"9:00",endTime:"18:00",allowStartBeginTime:"",forbidStartBeginTime:[],allowStartEndTime:"",forbidStartEndTime:[],allowEndStartTime:"",forbidEndStartTime:[],allowEndEndTime:"",forbidEndEndTime:[]}],clockType:!1,relaxFlag:!1,relaxStartDate:"12:00",relaxEndDate:"13:00",isAllowLate:!1,isMoreLate:!1,isMostLate:!1,allowLateDate:"30",moreLateDate:"35",mostLateDate:"60",lateRule:!1,lateRuleJson:[]}}},watch:{workClassShow:function(e,t){this.customDialog=e,this.classesId||this.resetForm()},classesId:function(e,t){e&&(this.conditionObj.classesId=e,this.getData())}},mounted:function(){this.customDialog=this.workClassShow,this.classesId&&(this.conditionObj.classesId=this.classesId,this.getData())}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:e.classesId?"编辑班次":"新建班次",visible:e.customDialog,width:"820px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-form",{ref:"ruleForm",attrs:{"label-width":"114px",model:e.formData,rules:e.rules}},[a("el-form-item",{attrs:{label:"班次名称:",prop:"classesName"}},[a("limitInput",{attrs:{inputWidth:210,inputValue:e.formData.classesName,holder:"请输入班次名称",getByType:"word",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.formData,"classesName",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"次数限制:",prop:"times"}},[a("div",{staticClass:"times-set-wrap avatar-wrap m-b-10"},[a("el-radio-group",{on:{change:e.changeTimes},model:{value:e.formData.times,callback:function(t){e.$set(e.formData,"times",t)},expression:"formData.times"}},[a("el-radio-button",{attrs:{label:"1"}},[e._v("1天1次上下班")])],1),a("el-checkbox",{staticClass:"m-l-20",on:{change:e.changeTimeRange},model:{value:e.formData.clockType,callback:function(t){e.$set(e.formData,"clockType",t)},expression:"formData.clockType"}},[e._v("打卡时段设置")])],1),e._v(" "),a("div",{staticClass:"times-set-content m-b-20"},[e.formData.clockType?e._e():a("ul",e._l(e.formData.classessTimesJson,function(t,s){return a("li",{key:s+"time"},[a("span",[e._v("第"+e._s(s+1)+"次")]),e._v(" "),a("span",{staticClass:"font-12 color-606266"},[e._v("上班")]),e._v(" "),a("el-time-picker",{staticClass:"w-106",attrs:{clearable:!1,editable:!1,format:"HH:mm","value-format":"HH:mm"},on:{change:function(a){e.changeStart(a,t)}},model:{value:t.startTime,callback:function(a){e.$set(t,"startTime",a)},expression:"item.startTime"}}),e._v(" "),a("span",{staticClass:"font-12 color-606266"},[e._v("下班")]),e._v(" "),a("el-time-picker",{staticClass:"w-106",attrs:{clearable:!1,editable:!1,format:"HH:mm","value-format":"HH:mm"},on:{change:function(a){e.changeEnd(a,t)}},model:{value:t.endTime,callback:function(a){e.$set(t,"endTime",a)},expression:"item.endTime"}}),e._v(" "),Number(t.endTime.split(":")[0])<=Number(t.startTime.split(":")[0])&&Number(t.endTime.split(":")[1])<=Number(t.startTime.split(":")[1])?a("el-tag",{staticClass:"across-tag",attrs:{type:"danger"}},[e._v("次日")]):e._e()],1)})),e._v(" "),e.formData.clockType?a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.formData.classessTimesJson}},[a("el-table-column",{attrs:{prop:"",label:"",width:"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 第"+e._s(t.$index+1)+"次\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"上下班时间",width:"226"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell"},[a("span",{staticClass:"font-12 color-606266"},[e._v("上班")]),e._v(" "),a("el-time-picker",{staticClass:"w-106",attrs:{clearable:!1,editable:!1,format:"HH:mm","value-format":"HH:mm"},on:{change:function(a){e.changeStart(a,t.row)}},model:{value:t.row.startTime,callback:function(a){e.$set(t.row,"startTime",a)},expression:"scope.row.startTime"}}),e._v(" "),t.$index>0?a("el-tag",{staticClass:"across-tag",attrs:{type:"danger"}},[e._v("次日")]):e._e()],1),e._v(" "),a("div",{staticClass:"cell m-t-20"},[a("span",{staticClass:"font-12 color-606266"},[e._v("下班")]),e._v(" "),a("el-time-picker",{staticClass:"w-106",attrs:{clearable:!1,editable:!1,format:"HH:mm","value-format":"HH:mm"},on:{change:function(a){e.changeEnd(a,t.row)}},model:{value:t.row.endTime,callback:function(a){e.$set(t.row,"endTime",a)},expression:"scope.row.endTime"}}),e._v(" "),e.checkNextFlag(t.row.startTime,t.row.endTime)?a("el-tag",{staticClass:"across-tag",attrs:{type:"danger"}},[e._v("次日")]):e._e()],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"打卡时间范围限制"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell"},[a("el-time-picker",{staticClass:"w-106",attrs:{disabled:t.row.startTime==t.row.endTime,"picker-options":{selectableRange:t.row.forbidStartBeginTime},clearable:!1,editable:!1,format:"HH:mm","value-format":"HH:mm",placeholder:""},model:{value:t.row.allowStartBeginTime,callback:function(a){e.$set(t.row,"allowStartBeginTime",a)},expression:"scope.row.allowStartBeginTime"}}),e._v(" "),a("span",{staticClass:"font-12 color-606266"},[e._v("至")]),e._v(" "),a("span",{staticClass:"font-12 color-606266"},[e._v("至")]),e._v(" "),a("el-time-picker",{staticClass:"w-106",attrs:{clearable:!1,"picker-options":{selectableRange:t.row.forbidStartEndTime},editable:!1,format:"HH:mm","value-format":"HH:mm",placeholder:""},model:{value:t.row.allowStartEndTime,callback:function(a){e.$set(t.row,"allowStartEndTime",a)},expression:"scope.row.allowStartEndTime"}}),e._v(" "),a("span",{staticClass:"font-12 color-606266"},[e._v("可打上班卡")])],1),e._v(" "),a("div",{staticClass:"cell m-t-20"},[a("el-time-picker",{staticClass:"w-106",attrs:{clearable:!1,"picker-options":{selectableRange:t.row.forbidEndStartTime},editable:!1,format:"HH:mm","value-format":"HH:mm",placeholder:""},model:{value:t.row.allowEndStartTime,callback:function(a){e.$set(t.row,"allowEndStartTime",a)},expression:"scope.row.allowEndStartTime"}}),e._v(" "),a("span",{staticClass:"font-12 color-606266"},[e._v("至")]),e._v(" "),a("el-time-picker",{staticClass:"w-106",attrs:{disabled:t.row.startTime==t.row.endTime,"picker-options":{selectableRange:t.row.forbidEndEndTime},clearable:!1,editable:!1,format:"HH:mm","value-format":"HH:mm",placeholder:""},model:{value:t.row.allowEndEndTime,callback:function(a){e.$set(t.row,"allowEndEndTime",a)},expression:"scope.row.allowEndEndTime"}}),e._v(" "),a("span",{staticClass:"font-12 color-606266"},[e._v("可打下班卡")])],1)]}}])})],1)],1):e._e()]),e._v(" "),1==e.formData.times?a("div",{staticClass:"rest-time-set"},[a("el-checkbox",{model:{value:e.formData.relaxFlag,callback:function(t){e.$set(e.formData,"relaxFlag",t)},expression:"formData.relaxFlag"}},[e._v("休息时间")]),e._v(" "),e.formData.relaxFlag?a("el-time-picker",{staticClass:"w-120",attrs:{clearable:!1,editable:!1,format:"HH:mm","value-format":"HH:mm",placeholder:"休息开始"},model:{value:e.formData.relaxStartDate,callback:function(t){e.$set(e.formData,"relaxStartDate",t)},expression:"formData.relaxStartDate"}}):e._e(),e.formData.relaxFlag?a("el-time-picker",{staticClass:"w-120 m-l-20",attrs:{clearable:!1,editable:!1,format:"HH:mm","value-format":"HH:mm",placeholder:"休息结束"},model:{value:e.formData.relaxEndDate,callback:function(t){e.$set(e.formData,"relaxEndDate",t)},expression:"formData.relaxEndDate"}}):e._e()],1):e._e()]),e._v(" "),a("el-form-item",{attrs:{label:"个性化设置:",prop:""}},[a("div",{staticClass:"m-b-10"},[a("el-checkbox",{model:{value:e.formData.isAllowLate,callback:function(t){e.$set(e.formData,"isAllowLate",t)},expression:"formData.isAllowLate"}},[e._v("允许迟到")]),e._v(" "),e.formData.isAllowLate?a("el-input-number",{staticClass:"w-90 m-l-20",attrs:{"controls-position":"right",min:1,max:3600},model:{value:e.formData.allowLateDate,callback:function(t){e.$set(e.formData,"allowLateDate",t)},expression:"formData.allowLateDate"}}):e._e(),e._v(" "),e.formData.isAllowLate?a("span",{staticClass:"font-14 color-606266"},[e._v("分钟以内打上班卡不算迟到")]):e._e()],1),e._v(" "),a("div",{staticClass:"m-b-10"},[a("el-checkbox",{model:{value:e.formData.isMoreLate,callback:function(t){e.$set(e.formData,"isMoreLate",t)},expression:"formData.isMoreLate"}},[e._v("严重迟到")]),e._v(" "),e.formData.isMoreLate?a("el-input-number",{staticClass:"w-90 m-l-20",attrs:{"controls-position":"right",min:1,max:3600},model:{value:e.formData.moreLateDate,callback:function(t){e.$set(e.formData,"moreLateDate",t)},expression:"formData.moreLateDate"}}):e._e(),e._v(" "),e.formData.isMoreLate?a("span",{staticClass:"font-14 color-606266"},[e._v("分钟以上打上班卡算严重迟到")]):e._e()],1),e._v(" "),a("div",{staticClass:"m-b-10"},[a("el-checkbox",{model:{value:e.formData.isMostLate,callback:function(t){e.$set(e.formData,"isMostLate",t)},expression:"formData.isMostLate"}},[e._v("旷工迟到")]),e._v(" "),e.formData.isMostLate?a("el-input-number",{staticClass:"w-90 m-l-20",attrs:{"controls-position":"right",min:1,max:3600},model:{value:e.formData.mostLateDate,callback:function(t){e.$set(e.formData,"mostLateDate",t)},expression:"formData.mostLateDate"}}):e._e(),e._v(" "),e.formData.isMostLate?a("span",{staticClass:"font-14 color-606266"},[e._v("分钟以上打上班卡算旷工")]):e._e()],1),e._v(" "),a("div",{staticClass:"m-b-10"},[a("el-checkbox",{attrs:{disabled:e.maxLate<1.5},on:{change:e.handleChangeLate},model:{value:e.formData.lateRule,callback:function(t){e.$set(e.formData,"lateRule",t)},expression:"formData.lateRule"}},[e._v("晚走次日晚到")]),e._v(" "),a("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("仅支持固定班制内勤打卡")])],1),e._v(" "),e.formData.lateRule?a("div",{staticClass:"late-rule-wrap border-box"},[a("ul",[e._l(e.formData.lateRuleJson,function(t,s){return a("li",{key:s+"late"},[a("div",{staticClass:"late-rule-text"},[a("span",{staticClass:"font-14 color-909399 p-r-10"},[e._v("晚走规则"+e._s(s+1))]),0!=s?a("el-button",{attrs:{type:"text"},on:{click:function(t){t.stopPropagation(),e.deleteLateRule(s)}}},[e._v("删除")]):e._e()],1),e._v(" "),a("div",{staticClass:"late-rule-body"},[a("span",{staticClass:"font-12 color-909399"},[e._v("第一天下班后晚走")]),e._v(" "),a("el-input-number",{staticClass:"w-90",attrs:{"controls-position":"right",step:.5,min:1,max:10},model:{value:t.lateDate,callback:function(a){e.$set(t,"lateDate",a)},expression:"item.lateDate"}}),e._v(" "),a("span",{staticClass:"font-12 color-909399"},[e._v("小时,第二天上班后晚到")]),e._v(" "),a("el-input-number",{staticClass:"w-90",attrs:{"controls-position":"right",step:.5,min:1,max:e.maxLate},model:{value:t.allowLateDate,callback:function(a){e.$set(t,"allowLateDate",a)},expression:"item.allowLateDate"}}),e._v(" "),a("span",{staticClass:"font-12 color-909399"},[e._v("小时")]),e._v(" "),a("span",{staticClass:"font-12 color-909399"},[e._v("第一天"+e._s(e.hmPlushm(e.formData.classessTimesJson[e.formData.classessTimesJson.length-1].endTime,e.hourTohm(t.lateDate)))+"(次日)下班,第二天"+e._s(e.hmPlushm(e.formData.classessTimesJson[0].startTime,e.hourTohm(t.allowLateDate)))+"上班不算迟到")])],1)])}),e._v(" "),e.formData.lateRuleJson.length<3?a("li",{staticClass:"text-center cursor-pointer",on:{click:function(t){return t.stopPropagation(),e.addLateSet(t)}}},[a("i",{staticClass:"el-icon-plus color-1890ff"}),a("span",{staticClass:"color-1890ff font-14 p-l-10"},[e._v("新建晚走规则")])]):e._e()],2)]):e._e()])],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return t.stopPropagation(),e.customCancel(t)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){t.stopPropagation(),e.customConfirm("ruleForm")}}},[e._v("确定")])],1)])],1)},staticRenderFns:[]};var x={name:"app-detail",components:{createWorkClass:a("VU/8")(b,h,!1,function(e){a("s176")},"data-v-78fabe2d",null).exports},props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeName:"first",activeBrand:this.brandId,activeGroup:this.activeGroupId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,conditionObj:{attenceGroupName:"",classesName:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,workClassShow:!1,classesId:""}},methods:{handleTabClick:function(e,t){var a=this;return i()(n.a.mark(function e(){var t;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(t=a).pageSize=20,t.currentPage=1,t.getTableList(t.brandId);case 4:case"end":return e.stop()}},e,a)}))()},toWorkGroupSet:function(){this.$router.push("/workGroupSet?appIcon="+this.$route.query.appIcon)},toEditWorkTime:function(e,t){this.$router.push("/workTimeManage?appIcon="+this.$route.query.appIcon+"&attenceGroupId="+t.attenceGroupId)},toEditGroup:function(e,t){this.$router.push("/workTimeManage?appIcon="+this.$route.query.appIcon+"&attenceGroupId="+t.attenceGroupId)},toWorkClassSet:function(){this.workClassShow=!0},toEditClass:function(e,t){this.workClassShow=!0,this.classesId=t.classesId},hideDetailDialog:function(){this.workClassShow=!1,this.classesId="",this.currentPage=1,this.getTableList(this.brandId)},toDel:function(e,t){var a=this;a.$confirm("是否要删除该"+("first"==a.activeName?"考勤组":"班次")+"?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,s={};"first"==a.activeName?s.attenceGroupId=t.attenceGroupId:s.classesId=t.classesId,Object(u.e)("first"==a.activeName?"/haoban-app-attence-web/attence-del":"/haoban-app-attence-web/classes-del",s).then(function(e){var t=e.data;if(1==t.errorCode)return f.a.showmsg("删除成功","success"),void a.getTableList();d.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},toInput:Object(p.a)(function(e,t){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getTableList(this.brandId)},handleSizeChange:function(e){this.pageSize=e,this.getTableList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getTableList(this.brandId)},getTableList:function(e){var t=this,a={brandId:e||t.activeBrand,enterpriseId:t.enterpriseId,attenceGroupName:t.conditionObj.attenceGroupName,classesName:t.conditionObj.classesName,pageNum:t.currentPage,pageSize:t.pageSize};Object(u.e)("first"==t.activeName?"/haoban-app-attence-web/attence-list":"/haoban-app-attence-web/classes-page",a).then(function(e){var a=e.data;if(1==a.errorCode)return"first"==t.activeName?(t.groupListData=a.result.list||[],t.classifyList=[]):(t.groupListData=[],a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.classessTimesJson&&(e.classessTimesJson=JSON.parse(e.classessTimesJson))}),t.classifyList=a.result.list||[]),void(t.total=a.result.total);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},submit:Object(p.a)(function(e){this.setData(e)},500)},watch:{brandId:function(e,t){e&&(this.activeBrand=e)},activeGroupId:function(e,t){e&&(this.activeGroup=e)},tabType:function(e,t){}},mounted:function(){this.$emit("showTab","2"),this.brandId&&1!=this.brandId&&(this.activeBrand=this.brandId),this.getTableList(this.brandId)}},T={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",[a("div",{staticClass:"common-detail-tab"},[a("el-tabs",{staticClass:"daily-set-tab",on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"考勤组管理",name:"first"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"班次管理",name:"second"}})],1)],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:"first"==e.activeName,expression:"activeName == 'first'"}],staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("div",{staticClass:"switch-wrap"},[a("div",{staticClass:"flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入考勤组名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.attenceGroupName);var a}},model:{value:e.conditionObj.attenceGroupName,callback:function(t){e.$set(e.conditionObj,"attenceGroupName",t)},expression:"conditionObj.attenceGroupName"}})],1),e._v(" "),a("div",[a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("配置说明:考勤组管理,可以添加不同部门或分组的考勤")]),a("el-button",{attrs:{type:"primary"},on:{click:e.toWorkGroupSet}},[e._v("新建考勤组")])],1)])])]),e._v(" "),a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"考勤组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.attenceGroupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.personCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.attenceType?"固定排班":2==t.row.attenceType?"排班制":"自由排班"))]}}])}),e._v(" "),a("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.attenceTimeDesc)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近更新时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[2==t.row.attenceType||t.row.personCount?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toEditWorkTime(t.$index,t.row)}}},[e._v("编辑排班")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toEditGroup(t.$index,t.row)}}},[e._v("修改规则")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:"second"==e.activeName,expression:"activeName == 'second'"}],staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("div",{staticClass:"switch-wrap"},[a("div",{staticClass:"flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入班次名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.classesName);var a}},model:{value:e.conditionObj.classesName,callback:function(t){e.$set(e.conditionObj,"classesName",t)},expression:"conditionObj.classesName"}})],1),e._v(" "),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:e.toWorkClassSet}},[e._v("新建班次")])],1)])])]),e._v(" "),a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.classifyList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"班次名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.classesName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"考勤时间"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.classessTimesJson,function(t,s){return a("div",{key:s+"time"},[e._v(e._s(t.startTime)+"-"+e._s(t.endTime))])})}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toEditClass(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),0!=e.classifyList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("create-work-class",{attrs:{classesId:e.classesId,workClassShow:e.workClassShow},on:{hideDetailDialog:e.hideDetailDialog}})],1)},staticRenderFns:[]};var v=a("VU/8")(x,T,!1,function(e){a("0UFt")},"data-v-14b21f93",null);t.default=v.exports},s176:function(e,t){}});
\ No newline at end of file
webpackJsonp([38],{ReHu:function(e,t){},Ujni:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),s=a.n(o),n=a("mvHQ"),i=a.n(n),r=a("P9l9"),l=a("Ch4/"),c=a("PI0u"),d={name:"daily-export",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){var e=this;return{projectName:"",activeBrand:this.brandId,activeGroup:this.activeGroupId,dailyRuleForm:{dateRange:[],storeType:"",stores:[]},templates:[],checkAll:!1,isIndeterminate:!1,searchSelect:"",storeVisible:!1,stores:[],choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-7776e6,o=e.choiceDateCopy[0]+7776e6;return t.getTime()<a||t.getTime()>o||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},rules:{dateRange:[{required:!0,message:"请选择日期",trigger:"change"}],storeType:[{required:!0,message:"请选择自定义模板",trigger:"change"}],stores:[{type:"array",required:!0,message:"请选择门店",trigger:"change"}]}}},methods:{handleCheckAllChange:function(e){this.dailyRuleForm.stores=e?this.stores.map(function(e){return e.storeId}):[],this.isIndeterminate=!1},handleStoresChange:function(e){var t=e.length;this.checkAll=t===this.stores.length,this.isIndeterminate=t>0&&t<this.stores.length},changeDate:function(e){e||(this.choiceDateCopy=[],this.dailyRuleForm.dateRange=[])},changeTemplate:function(){var e=this;e.dailyRuleForm.stores=[],e.searchSelect="",e.checkAll=!1,e.$nextTick(function(){e.getStoreData()})},exportForm:Object(c.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var a="";t.templates.forEach(function(e){e.storeType==t.dailyRuleForm.storeType&&(a=e.dailyReportTemplateId)}),t.postDailyExcel(a)})},500),postDailyExcel:function(e){var t=this,a={storeIds:t.dailyRuleForm.stores.join(",")||"",templateId:e,startDate:t.dailyRuleForm.dateRange[0]||"",endDate:t.dailyRuleForm.dateRange[1]||"",brandId:t.activeBrand};Object(r.b)("/haoban-app-daily-web/daily/batch-export",a).then(function(e){if(!e.data)return l.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),o=t.dailyRuleForm.dateRange[0]+"-"+t.dailyRuleForm.dateRange[1]+"日报.xls",s=document.createElement("a");s.download=o,s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toInput:Object(c.a)(function(e,t){if(!this.stores.length)return!1;""==t&&(this.stores=JSON.parse(i()(this.storesCopy)));var a=JSON.parse(i()(this.storesCopy)).filter(function(e){return e.storeName.includes(t)});this.stores=a},500),changeVisible:function(){},checkStore:function(e){var t=this;if(e.select){e.select=!1;var a=t.dailyRuleForm.stores.indexOf(e.storeId);t.dailyRuleForm.stores.splice(a,1)}else e.select=!0,t.dailyRuleForm.stores.push(e.storeId);t.storesCopy.forEach(function(e){t.dailyRuleForm.stores.includes(e.storeId)&&(e.select=!0)})},clearSearch:function(){this.stores=JSON.parse(i()(this.storesCopy))},getTemplateData:function(){var e=this,t={brandId:e.brandId};Object(r.a)("/haoban-app-daily-web/daily/list-define-template",t).then(function(t){var a=t.data;1!=a.errorCode?l.a.errorMsg(a):a.result&&a.result.length&&(e.templates=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getStoreData:function(){var e=this,t={brandId:e.activeBrand,storeGroupId:e.activeGroup,showChild:1,showType:1,status:1,storeType:e.dailyRuleForm.storeType,pageNum:1,pageSize:1e5};Object(r.a)("/haoban-manage-web/store/findSimplePage",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.list&&a.result.list.forEach(function(e){e.select=!1}),e.stores=JSON.parse(i()(a.result.list))||[],void(e.storesCopy=JSON.parse(i()(a.result.list))||[]);l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.dailyRuleForm.storeType="",this.dailyRuleForm.stores=[],this.stores=[],this.storesCopy=[],this.searchSelect="",this.checkAll=!1,this.activeBrand=e,this.getTemplateData())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.brandId&&(this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.getTemplateData())}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-export-content"},[a("el-form",{ref:"dailyRuleForm",staticClass:"demo-dailyRuleForm",attrs:{model:e.dailyRuleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"dateRange"}},[a("p",{staticClass:"daily-form-label"},[e._v("选择时间")]),e._v(" "),a("el-date-picker",{staticClass:"search-date",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.dailyRuleForm.dateRange,callback:function(t){e.$set(e.dailyRuleForm,"dateRange",t)},expression:"dailyRuleForm.dateRange"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"storeType"}},[a("p",{staticClass:"daily-form-label"},[e._v("选择自定义模板")]),e._v(" "),a("el-select",{staticClass:"w-350",attrs:{placeholder:"请选择自定义模板"},on:{change:e.changeTemplate},model:{value:e.dailyRuleForm.storeType,callback:function(t){e.$set(e.dailyRuleForm,"storeType",t)},expression:"dailyRuleForm.storeType"}},e._l(e.templates,function(e){return a("el-option",{key:e.value,attrs:{label:e.title,value:e.storeType}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"stores"}},[a("p",{staticClass:"daily-form-label"},[e._v("选择门店")]),e._v(" "),a("el-popover",{attrs:{placement:"bottom",title:"",width:"350",trigger:"click"},model:{value:e.storeVisible,callback:function(t){e.storeVisible=t},expression:"storeVisible"}},[a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称"},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchSelect);var a}},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),e._v(" "),a("div",{staticClass:"checkbox border-box",staticStyle:{padding:"15px 20px"}},[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1),e._v(" "),a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[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.storeId,class:["el-select-dropdown__item",t.select?"selected hover":""]},[a("el-checkbox",{attrs:{label:t.storeId}},[e._v(e._s(t.storeName))])],1)}),e._v(" "),e.stores.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-horizontal"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateX(0%)"}})]),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-vertical"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateY(0%)"}})])])]),e._v(" "),a("div",{staticClass:"show-select-num w-350",attrs:{slot:"reference"},on:{click:e.changeVisible},slot:"reference"},[e._v("\n 已经选择"+e._s(e.dailyRuleForm.stores.length)+"家门店\n "),a("span",{staticClass:"el-input__suffix"},[a("span",{staticClass:"el-input__suffix-inner"},[a("i",{class:["el-select__caret el-input__icon el-icon-arrow-up",e.storeVisible?"is-reverse":""]})])])])])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.exportForm("dailyRuleForm")}}},[e._v("导出日报")])],1)],1)],1)},staticRenderFns:[]};var p=a("VU/8")(d,u,!1,function(e){a("qI0H")},"data-v-5ec0c83a",null).exports,h=a("Ie7z"),m=a("Ke24"),b=a("LRn8"),f=a("3E4D"),g={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"云日报记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},setSelectTab:function(e){this.activeTab=e.tabId},toInput:Object(c.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.defaultStoreList=this.conditionObj.storeGroup,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!s()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[],o=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&o.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var s={search:t.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:t.multipleSelection.map(function(e){return e.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",brandId:t.activeBrand,delOptFlag:e.delOptFlag,reason:e.reason,chooseAllFlag:t.selectRadio};Object(r.e)("/haoban-app-daily-web/daily/batch-delete-brand-task",s).then(function(e){var a=e.data;if(1==a.errorCode)return f.a.showmsg("删除成功","success"),void t.getTableList();l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var o={search:e.conditionObj.searchInput||"",filterStoreIds:a.join(",")||"",storeGroupIds:t.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand};Object(r.b)("/haoban-app-daily-web/daily/batch-export-brand-task",o).then(function(e){if(!e.data)return l.a.errorMsg("暂无数据"),!1;var t=new Blob([e.data],{type:"application/vnd.ms-excel"}),a=document.createElement("a");a.download="云日报记录.csv",a.style.display="none",a.href=URL.createObjectURL(t),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("dailyDetail?storeId="+t.storeId+"&appIcon= "+this.$route.query.appIcon)},getTableList:function(e){var t=this,a=[],o=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&o.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var s={search:t.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",currentPage:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(r.a)("/haoban-app-daily-web/daily/page-brand-task",s).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],t.total=a.result.totalCount,!1;l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.brandId&&this.getTableList()},destroyed:function(){this.activeGroup="",document.documentElement.style.backgroundColor="#fff"},components:{dailyExport:p,commonDetailTop:m.a,vueSelectStore:h.a,multipleDel:b.a}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"common-detail-tab"},[a("el-tabs",{staticClass:"daily-set-tab",model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"云日报记录",name:"first"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"云日报导出",name:"second"}})],1)],1),e._v(" "),"first"==e.activeName?a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e.conditionObj.storeGroup.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc"},[e._v("请选择门店分组")]),e._v(" "),e.conditionObj.storeGroup.length?a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.conditionObj.storeGroup,function(t,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(o,e.conditionObj.storeGroup)}}})])]})],2)]):e._e()])])]),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeStoreType},model:{value:e.conditionObj.storeType,callback:function(t){e.$set(e.conditionObj,"storeType",t)},expression:"conditionObj.storeType"}},e._l(e.storeTypeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),e._v(" "),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.completedCount))]}}])}),e._v(" "),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.completedRate))]}}])}),e._v(" "),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.noCompletedCount))]}}])}),e._v(" "),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.overdueCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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(),e._v(" "),"second"==e.activeName?a("div",{staticClass:"daily-set-content boder-box"},[a("daily-export",{attrs:{brandId:e.brandId,activeGroupId:e.activeGroupId}})],1):e._e(),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1},on:{hideDialog:e.hideDialog}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var y=a("VU/8")(g,v,!1,function(e){a("ReHu")},"data-v-017e360a",null);t.default=y.exports},qI0H:function(e,t){}}); webpackJsonp([40],{ReHu:function(e,t){},Ujni:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),s=a.n(o),n=a("mvHQ"),i=a.n(n),r=a("P9l9"),l=a("Ch4/"),c=a("PI0u"),d={name:"daily-export",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){var e=this;return{projectName:"",activeBrand:this.brandId,activeGroup:this.activeGroupId,dailyRuleForm:{dateRange:[],storeType:"",stores:[]},templates:[],checkAll:!1,isIndeterminate:!1,searchSelect:"",storeVisible:!1,stores:[],choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-7776e6,o=e.choiceDateCopy[0]+7776e6;return t.getTime()<a||t.getTime()>o||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},rules:{dateRange:[{required:!0,message:"请选择日期",trigger:"change"}],storeType:[{required:!0,message:"请选择自定义模板",trigger:"change"}],stores:[{type:"array",required:!0,message:"请选择门店",trigger:"change"}]}}},methods:{handleCheckAllChange:function(e){this.dailyRuleForm.stores=e?this.stores.map(function(e){return e.storeId}):[],this.isIndeterminate=!1},handleStoresChange:function(e){var t=e.length;this.checkAll=t===this.stores.length,this.isIndeterminate=t>0&&t<this.stores.length},changeDate:function(e){e||(this.choiceDateCopy=[],this.dailyRuleForm.dateRange=[])},changeTemplate:function(){var e=this;e.dailyRuleForm.stores=[],e.searchSelect="",e.checkAll=!1,e.$nextTick(function(){e.getStoreData()})},exportForm:Object(c.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var a="";t.templates.forEach(function(e){e.storeType==t.dailyRuleForm.storeType&&(a=e.dailyReportTemplateId)}),t.postDailyExcel(a)})},500),postDailyExcel:function(e){var t=this,a={storeIds:t.dailyRuleForm.stores.join(",")||"",templateId:e,startDate:t.dailyRuleForm.dateRange[0]||"",endDate:t.dailyRuleForm.dateRange[1]||"",brandId:t.activeBrand};Object(r.b)("/haoban-app-daily-web/daily/batch-export",a).then(function(e){if(!e.data)return l.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),o=t.dailyRuleForm.dateRange[0]+"-"+t.dailyRuleForm.dateRange[1]+"日报.xls",s=document.createElement("a");s.download=o,s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toInput:Object(c.a)(function(e,t){if(!this.stores.length)return!1;""==t&&(this.stores=JSON.parse(i()(this.storesCopy)));var a=JSON.parse(i()(this.storesCopy)).filter(function(e){return e.storeName.includes(t)});this.stores=a},500),changeVisible:function(){},checkStore:function(e){var t=this;if(e.select){e.select=!1;var a=t.dailyRuleForm.stores.indexOf(e.storeId);t.dailyRuleForm.stores.splice(a,1)}else e.select=!0,t.dailyRuleForm.stores.push(e.storeId);t.storesCopy.forEach(function(e){t.dailyRuleForm.stores.includes(e.storeId)&&(e.select=!0)})},clearSearch:function(){this.stores=JSON.parse(i()(this.storesCopy))},getTemplateData:function(){var e=this,t={brandId:e.brandId};Object(r.a)("/haoban-app-daily-web/daily/list-define-template",t).then(function(t){var a=t.data;1!=a.errorCode?l.a.errorMsg(a):a.result&&a.result.length&&(e.templates=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getStoreData:function(){var e=this,t={brandId:e.activeBrand,storeGroupId:e.activeGroup,showChild:1,showType:1,status:1,storeType:e.dailyRuleForm.storeType,pageNum:1,pageSize:1e5};Object(r.a)("/haoban-manage-web/store/findSimplePage",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.list&&a.result.list.forEach(function(e){e.select=!1}),e.stores=JSON.parse(i()(a.result.list))||[],void(e.storesCopy=JSON.parse(i()(a.result.list))||[]);l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.dailyRuleForm.storeType="",this.dailyRuleForm.stores=[],this.stores=[],this.storesCopy=[],this.searchSelect="",this.checkAll=!1,this.activeBrand=e,this.getTemplateData())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.brandId&&(this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.getTemplateData())}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-export-content"},[a("el-form",{ref:"dailyRuleForm",staticClass:"demo-dailyRuleForm",attrs:{model:e.dailyRuleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"dateRange"}},[a("p",{staticClass:"daily-form-label"},[e._v("选择时间")]),e._v(" "),a("el-date-picker",{staticClass:"search-date",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.dailyRuleForm.dateRange,callback:function(t){e.$set(e.dailyRuleForm,"dateRange",t)},expression:"dailyRuleForm.dateRange"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"storeType"}},[a("p",{staticClass:"daily-form-label"},[e._v("选择自定义模板")]),e._v(" "),a("el-select",{staticClass:"w-350",attrs:{placeholder:"请选择自定义模板"},on:{change:e.changeTemplate},model:{value:e.dailyRuleForm.storeType,callback:function(t){e.$set(e.dailyRuleForm,"storeType",t)},expression:"dailyRuleForm.storeType"}},e._l(e.templates,function(e){return a("el-option",{key:e.value,attrs:{label:e.title,value:e.storeType}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"stores"}},[a("p",{staticClass:"daily-form-label"},[e._v("选择门店")]),e._v(" "),a("el-popover",{attrs:{placement:"bottom",title:"",width:"350",trigger:"click"},model:{value:e.storeVisible,callback:function(t){e.storeVisible=t},expression:"storeVisible"}},[a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称"},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchSelect);var a}},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),e._v(" "),a("div",{staticClass:"checkbox border-box",staticStyle:{padding:"15px 20px"}},[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1),e._v(" "),a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[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.storeId,class:["el-select-dropdown__item",t.select?"selected hover":""]},[a("el-checkbox",{attrs:{label:t.storeId}},[e._v(e._s(t.storeName))])],1)}),e._v(" "),e.stores.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-horizontal"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateX(0%)"}})]),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-vertical"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateY(0%)"}})])])]),e._v(" "),a("div",{staticClass:"show-select-num w-350",attrs:{slot:"reference"},on:{click:e.changeVisible},slot:"reference"},[e._v("\n 已经选择"+e._s(e.dailyRuleForm.stores.length)+"家门店\n "),a("span",{staticClass:"el-input__suffix"},[a("span",{staticClass:"el-input__suffix-inner"},[a("i",{class:["el-select__caret el-input__icon el-icon-arrow-up",e.storeVisible?"is-reverse":""]})])])])])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.exportForm("dailyRuleForm")}}},[e._v("导出日报")])],1)],1)],1)},staticRenderFns:[]};var p=a("VU/8")(d,u,!1,function(e){a("qI0H")},"data-v-5ec0c83a",null).exports,h=a("Ie7z"),m=a("Ke24"),b=a("LRn8"),f=a("3E4D"),g={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"云日报记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},setSelectTab:function(e){this.activeTab=e.tabId},toInput:Object(c.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.defaultStoreList=this.conditionObj.storeGroup,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!s()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[],o=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&o.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var s={search:t.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:t.multipleSelection.map(function(e){return e.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",brandId:t.activeBrand,delOptFlag:e.delOptFlag,reason:e.reason,chooseAllFlag:t.selectRadio};Object(r.e)("/haoban-app-daily-web/daily/batch-delete-brand-task",s).then(function(e){var a=e.data;if(1==a.errorCode)return f.a.showmsg("删除成功","success"),void t.getTableList();l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var o={search:e.conditionObj.searchInput||"",filterStoreIds:a.join(",")||"",storeGroupIds:t.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand};Object(r.b)("/haoban-app-daily-web/daily/batch-export-brand-task",o).then(function(e){if(!e.data)return l.a.errorMsg("暂无数据"),!1;var t=new Blob([e.data],{type:"application/vnd.ms-excel"}),a=document.createElement("a");a.download="云日报记录.csv",a.style.display="none",a.href=URL.createObjectURL(t),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("dailyDetail?storeId="+t.storeId+"&appIcon= "+this.$route.query.appIcon)},getTableList:function(e){var t=this,a=[],o=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&o.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var s={search:t.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",currentPage:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(r.a)("/haoban-app-daily-web/daily/page-brand-task",s).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],t.total=a.result.totalCount,!1;l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.brandId&&this.getTableList()},destroyed:function(){this.activeGroup="",document.documentElement.style.backgroundColor="#fff"},components:{dailyExport:p,commonDetailTop:m.a,vueSelectStore:h.a,multipleDel:b.a}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"common-detail-tab"},[a("el-tabs",{staticClass:"daily-set-tab",model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"云日报记录",name:"first"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"云日报导出",name:"second"}})],1)],1),e._v(" "),"first"==e.activeName?a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e.conditionObj.storeGroup.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc"},[e._v("请选择门店分组")]),e._v(" "),e.conditionObj.storeGroup.length?a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.conditionObj.storeGroup,function(t,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(o,e.conditionObj.storeGroup)}}})])]})],2)]):e._e()])])]),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeStoreType},model:{value:e.conditionObj.storeType,callback:function(t){e.$set(e.conditionObj,"storeType",t)},expression:"conditionObj.storeType"}},e._l(e.storeTypeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),e._v(" "),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.completedCount))]}}])}),e._v(" "),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.completedRate))]}}])}),e._v(" "),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.noCompletedCount))]}}])}),e._v(" "),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.overdueCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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(),e._v(" "),"second"==e.activeName?a("div",{staticClass:"daily-set-content boder-box"},[a("daily-export",{attrs:{brandId:e.brandId,activeGroupId:e.activeGroupId}})],1):e._e(),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1},on:{hideDialog:e.hideDialog}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var y=a("VU/8")(g,v,!1,function(e){a("ReHu")},"data-v-017e360a",null);t.default=y.exports},qI0H:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([39],{PF61:function(t,e){},Y8F9:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),s=a("Ke24"),i={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeBrandId:this.brandId,topMenuData:[{id:"1",name:"系统报表"}],activeId:"1"}},computed:{},methods:{toEdit:function(){this.$router.push("/systemReportSet?brandId="+this.activeBrandId+"&appIcon="+this.$route.query.appIcon)}},watch:{brandId:function(t,e){this.activeBrandId=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","211"),this.activeBrandId=this.brandId},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonDetailTop:s.a}},o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"system-set-wrap"},[e("common-detail-top",{attrs:{topMenuData:this.topMenuData,activeId:this.activeId}}),this._v(" "),e("div",{staticClass:"system-set-content boder-box"},[e("div",{staticClass:"system-set-cell"},[e("div",{staticClass:"font-14 color-606266"},[this._v("云日报系统报表:提供系统能够智能识别的指标(例如:销售额、达成率等),配置成报表融入云日报上报模板中")]),this._v(" "),e("div",{staticClass:"m-t-30"},[e("el-button",{attrs:{type:"primary"},on:{click:this.toEdit}},[this._v("编辑模板")])],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(i,o,!1,function(t){a("PF61")},"data-v-feaa4d20",null);e.default=d.exports}}); webpackJsonp([41],{PF61:function(t,e){},Y8F9:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),s=a("Ke24"),i={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeBrandId:this.brandId,topMenuData:[{id:"1",name:"系统报表"}],activeId:"1"}},computed:{},methods:{toEdit:function(){this.$router.push("/systemReportSet?brandId="+this.activeBrandId+"&appIcon="+this.$route.query.appIcon)}},watch:{brandId:function(t,e){this.activeBrandId=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","211"),this.activeBrandId=this.brandId},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonDetailTop:s.a}},o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"system-set-wrap"},[e("common-detail-top",{attrs:{topMenuData:this.topMenuData,activeId:this.activeId}}),this._v(" "),e("div",{staticClass:"system-set-content boder-box"},[e("div",{staticClass:"system-set-cell"},[e("div",{staticClass:"font-14 color-606266"},[this._v("云日报系统报表:提供系统能够智能识别的指标(例如:销售额、达成率等),配置成报表融入云日报上报模板中")]),this._v(" "),e("div",{staticClass:"m-t-30"},[e("el-button",{attrs:{type:"primary"},on:{click:this.toEdit}},[this._v("编辑模板")])],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(i,o,!1,function(t){a("PF61")},"data-v-feaa4d20",null);e.default=d.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([40],{IMwM:function(e,t){},JsWW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),n=a("P9l9"),r=a("MJLE"),i=a.n(r),o={name:"shareCode",components:{navCrumb:s.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"共享通讯录",path:""}],regenerate:!1,qrCodeContent:{},shares:[],qrcodeCase:"",myEnterprise:"",dialogVisible:!1}},methods:{getCode:function(){var e=this,t={regenerate:arguments.length>0&&void 0!==arguments[0]&&arguments[0]};Object(n.a)("/haoban-manage-web/shared-contact/get-shared-qrcode",t).then(function(t){1==t.data.errorCode?e.qrcode(t.data.result.qrCodeContent):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},reFresh:function(){document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear(),this.getCode(!0)},qrcode:function(e){this.qrcodeCase=new i.a("qrcode",{width:245,height:245,text:e})},downloadCode:function(){var e=document.getElementById("qrcode").getElementsByTagName("img")[0].getAttribute("src"),t=document.createElement("a"),a=new MouseEvent("click");t.download="scan code",t.href=e,t.dispatchEvent(a)},getShareRelation:function(){var e=this;Object(n.a)("/haoban-manage-web/shared-contact/find-shared-contact-relation",{enterpriseIdCondition:1}).then(function(t){1==t.data.errorCode?(e.shares=t.data.result||[],e.shares.length>0&&(e.myEnterprise=t.data.result[0].exportEnterpriseName)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},cancelShare:function(e){var t=this;t.$confirm("是否要取消与该企业的共享?","提示",{type:"warning"}).then(function(){Object(n.a)("/haoban-manage-web/shared-contact/del-shared-enterprise",{importEnterpriseId:e.importEnterpriseId}).then(function(a){if(1==a.data.errorCode){var s=t.shares.indexOf(e);t.shares.splice(s,1)}else t.$message.error({message:a.data.message})}).catch(function(e){t.$message.error({message:e.message})})}).catch({})}},beforeMount:function(){this.getShareRelation(),this.getCode()}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"share-code-div"},[a("p",{staticClass:"company-name"},[e._v(e._s(e.myEnterprise)+"的共享企业")]),e._v(" "),a("p",{staticClass:"word"},[e._v("双方共享的通讯录,选人时可以选到,同时邀请企业建立共享关系")]),e._v(" "),a("p",{staticClass:"time-tip"},[e._v("一个二维码只能和一个企业建立共享关系,24小时有效")]),e._v(" "),a("div",{staticClass:"m-t-20",attrs:{id:"qrcode"}}),e._v(" "),a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.downloadCode}},[e._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),e._v(" "),a("el-button",{on:{click:function(t){e.reFresh()}}},[e._v("重新生成")])],1),e._v(" "),a("p",{staticClass:"company-name"},[e._v("已建立的共享企业")]),e._v(" "),e.shares.length>0?a("div",{staticClass:"share-table"},[a("div",{staticClass:"company"},[e._v(e._s(e.myEnterprise))]),e._v(" "),a("ul",{staticClass:"list"},e._l(e.shares,function(t){return a("li",{key:t.importEnterpriseId,staticClass:"li"},[a("div",{staticClass:"name"},[e._v(e._s(t.importEnterpriseName))]),e._v(" "),a("div",{staticClass:"cancel-btn"},[a("a",{staticClass:"a-href",on:{click:function(a){e.cancelShare(t)}}},[e._v("取消共享")])])])}))]):e._e(),e._v(" "),a("div",{staticClass:"no-share-tip"},[e._v("暂无共享企业")]),e._v(" "),a("el-dialog",{attrs:{title:"验证管理员身份",width:"356px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"cancel-code"},[a("p",[e._v("请使用管理员的好办扫一扫确认")])])])],1)])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var d=a("VU/8")(o,c,!1,function(e){a("IMwM")},null,null);t.default=d.exports}}); webpackJsonp([42],{IMwM:function(e,t){},JsWW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),n=a("P9l9"),r=a("MJLE"),i=a.n(r),o={name:"shareCode",components:{navCrumb:s.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"共享通讯录",path:""}],regenerate:!1,qrCodeContent:{},shares:[],qrcodeCase:"",myEnterprise:"",dialogVisible:!1}},methods:{getCode:function(){var e=this,t={regenerate:arguments.length>0&&void 0!==arguments[0]&&arguments[0]};Object(n.a)("/haoban-manage-web/shared-contact/get-shared-qrcode",t).then(function(t){1==t.data.errorCode?e.qrcode(t.data.result.qrCodeContent):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},reFresh:function(){document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear(),this.getCode(!0)},qrcode:function(e){this.qrcodeCase=new i.a("qrcode",{width:245,height:245,text:e})},downloadCode:function(){var e=document.getElementById("qrcode").getElementsByTagName("img")[0].getAttribute("src"),t=document.createElement("a"),a=new MouseEvent("click");t.download="scan code",t.href=e,t.dispatchEvent(a)},getShareRelation:function(){var e=this;Object(n.a)("/haoban-manage-web/shared-contact/find-shared-contact-relation",{enterpriseIdCondition:1}).then(function(t){1==t.data.errorCode?(e.shares=t.data.result||[],e.shares.length>0&&(e.myEnterprise=t.data.result[0].exportEnterpriseName)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},cancelShare:function(e){var t=this;t.$confirm("是否要取消与该企业的共享?","提示",{type:"warning"}).then(function(){Object(n.a)("/haoban-manage-web/shared-contact/del-shared-enterprise",{importEnterpriseId:e.importEnterpriseId}).then(function(a){if(1==a.data.errorCode){var s=t.shares.indexOf(e);t.shares.splice(s,1)}else t.$message.error({message:a.data.message})}).catch(function(e){t.$message.error({message:e.message})})}).catch({})}},beforeMount:function(){this.getShareRelation(),this.getCode()}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"share-code-div"},[a("p",{staticClass:"company-name"},[e._v(e._s(e.myEnterprise)+"的共享企业")]),e._v(" "),a("p",{staticClass:"word"},[e._v("双方共享的通讯录,选人时可以选到,同时邀请企业建立共享关系")]),e._v(" "),a("p",{staticClass:"time-tip"},[e._v("一个二维码只能和一个企业建立共享关系,24小时有效")]),e._v(" "),a("div",{staticClass:"m-t-20",attrs:{id:"qrcode"}}),e._v(" "),a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.downloadCode}},[e._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),e._v(" "),a("el-button",{on:{click:function(t){e.reFresh()}}},[e._v("重新生成")])],1),e._v(" "),a("p",{staticClass:"company-name"},[e._v("已建立的共享企业")]),e._v(" "),e.shares.length>0?a("div",{staticClass:"share-table"},[a("div",{staticClass:"company"},[e._v(e._s(e.myEnterprise))]),e._v(" "),a("ul",{staticClass:"list"},e._l(e.shares,function(t){return a("li",{key:t.importEnterpriseId,staticClass:"li"},[a("div",{staticClass:"name"},[e._v(e._s(t.importEnterpriseName))]),e._v(" "),a("div",{staticClass:"cancel-btn"},[a("a",{staticClass:"a-href",on:{click:function(a){e.cancelShare(t)}}},[e._v("取消共享")])])])}))]):e._e(),e._v(" "),a("div",{staticClass:"no-share-tip"},[e._v("暂无共享企业")]),e._v(" "),a("el-dialog",{attrs:{title:"验证管理员身份",width:"356px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"cancel-code"},[a("p",[e._v("请使用管理员的好办扫一扫确认")])])])],1)])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var d=a("VU/8")(o,c,!1,function(e){a("IMwM")},null,null);t.default=d.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([41],{"8Yx5":function(t,e){},VlR1:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"setting",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},watch:{$route:{handler:function(t,e){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.pathName=window.location.hash.split("/")[1],this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"setting-wrap"},[n("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:t.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:t.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}})],1),t._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(t){n("8Yx5")},null,null);e.default=i.exports}}); webpackJsonp([43],{"8Yx5":function(t,e){},VlR1:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"setting",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},watch:{$route:{handler:function(t,e){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.pathName=window.location.hash.split("/")[1],this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"setting-wrap"},[n("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:t.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:t.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}})],1),t._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(t){n("8Yx5")},null,null);e.default=i.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([44],{fklq:function(t,a){},vgwM:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("2eFk"),i=e("fvdr"),c=e("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"考勤打卡",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"考勤统计",icon:"icon-kaoqinjilu",onlyIconActive:!1,children:[{tabId:"11",tabName:"每日统计",icon:""},{tabId:"12",tabName:"月度汇总",icon:""}]},{tabId:"2",tabName:"考勤设置",icon:"icon-kaoqinshezhi"}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":case"11":this.changeRoute("dayStatistics?appIcon="+this.$route.query.appIcon);break;case"2":this.changeRoute("workSet?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("div",{staticClass:"right-content"},[e("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[e("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[e("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var r=e("VU/8")(o,s,!1,function(t){e("fklq")},"data-v-d2dae546",null);a.default=r.exports}});
\ No newline at end of file
webpackJsonp([42],{kF1j:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),r=a.n(o),s=a("2eFk"),i=a("Ke24"),n=a("fPyK"),l=a("nsZK"),c=a("P9l9"),u=a("Ch4/"),d=a("PI0u"),p={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"3",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"指标管理",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"3",name:"门店月指标",path:""}],selectRadio:0,showDialog:!1,conditionObj:{keyword:"",storeStatus:"",isCompleted:"",storeGroupIds:[]},completeStatusOptions:[{label:"门店完善状态",value:""},{label:"已完善",value:"1"},{label:"未完善",value:"0"}],storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],statistics:{},tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{searchStore:Object(d.a)(function(t){this.currentPage,this.getTableList()},500),clearInput:function(t){1==this.currentPage?this.getTableList():this.currentPage=1},checkStoreGroupIds:function(t){this.currentPage=1,this.conditionObj.storeGroupIds=t,this.getTableList()},selectBrandId:function(t){this.activeBrand=t},setSelectTab:function(t){this.activeTab=t.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toSalerMonth:function(t,e){this.$router.push("/salerMonthDetail?storeId="+e.storeId+"&yearMonth="+this.yearMonth+"&appIcon="+this.$route.query.appIcon)},getTableList:function(t){var e=this,a={yearMonth:e.yearMonth||e.$route.query.yearMonth,keyword:e.conditionObj.keyword||"",storeStatus:e.conditionObj.storeStatus||"",isCompleted:e.conditionObj.isCompleted||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.groupId}).join(",")||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(c.a)("/haoban-app-performance-web/performance/query-store-month-performance",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.list&&a.result.list.length&&(a.result.list.forEach(function(t){t.performance=Object(d.d)(Number(t.performance))}),a.result.statistics&&r()(a.result.statistics).length?(e.statistics=a.result.statistics,e.tableData.unshift({completeStatus:a.result.statistics.totalComplete,performance:Object(d.d)(Number(a.result.statistics.totalPerformance)),storeName:a.result.statistics.totalStore,totalComplete:a.result.statistics.totalComplete,totalPerformance:Object(d.d)(Number(a.result.statistics.totalPerformance)),totalStore:a.result.statistics.totalStore})):e.tableData.unshift({completeStatus:e.statistics.totalComplete,performance:Object(d.d)(Number(e.statistics.totalPerformance)),storeName:e.statistics.totalStore,totalComplete:e.statistics.totalComplete,totalPerformance:e.statistics.totalPerformance,totalStore:e.statistics.totalStore})),e.tableData=a.result.list||[],void(e.total=a.result.pageInfo.total);u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.yearMonth=this.$route.query.yearMonth,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","11"),this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&(this.yearMonth=this.$route.query.yearMonth,this.getTableList())},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:i.a,qrcodeDialog:n.a,storeTreeSelect:l.a}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap common-right-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 margin-l-10",attrs:{placeholder:"请输入门店名称/code","prefix-icon":"el-icon-search",clearable:""},on:{change:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.searchStore(a);var a},clear:function(e){return t.clearInput(e)}},model:{value:t.conditionObj.keyword,callback:function(e){t.$set(t.conditionObj,"keyword",e)},expression:"conditionObj.keyword"}}),t._v(" "),a("el-select",{staticClass:"w-131 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.conditionObj.isCompleted,callback:function(e){t.$set(t.conditionObj,"isCompleted",e)},expression:"conditionObj.isCompleted"}},t._l(t.completeStatusOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),t._v(" "),a("store-tree-select",{attrs:{brandId:t.brandId,activeGroupId:t.activeGroupId},on:{checkStoreGroupIds:t.checkStoreGroupIds}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"})]),t._v(" "),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:"门店名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{class:["flex flex-pack-center flex-start",e.row.totalStore?"color-303133":""]},[t._v(t._s(e.row.totalStore?"总计:"+e.row.totalStore+"家":e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"月指标"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{class:[e.row.totalStore?"color-303133":""]},[t._v(t._s(e.row.performance))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店完善状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.totalStore?a("div",{staticClass:"color-303133"},[t._v(t._s("已完善:"+e.row.totalComplete+"家"))]):a("div",[t._v(t._s(0==e.row.completeStatus?"未完善":"已完善"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.totalStore?t._e():a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSalerMonth(e.$index,e.row)}}},[t._v("导购月指标详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var b=a("VU/8")(p,h,!1,function(t){a("m+CN")},"data-v-d9e2732c",null);e.default=b.exports},"m+CN":function(t,e){}}); webpackJsonp([44],{kF1j:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),r=a.n(o),s=a("2eFk"),i=a("Ke24"),n=a("fPyK"),l=a("nsZK"),c=a("P9l9"),u=a("Ch4/"),d=a("PI0u"),p={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"3",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"指标管理",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"3",name:"门店月指标",path:""}],selectRadio:0,showDialog:!1,conditionObj:{keyword:"",storeStatus:"",isCompleted:"",storeGroupIds:[]},completeStatusOptions:[{label:"门店完善状态",value:""},{label:"已完善",value:"1"},{label:"未完善",value:"0"}],storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],statistics:{},tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{searchStore:Object(d.a)(function(t){this.currentPage,this.getTableList()},500),clearInput:function(t){1==this.currentPage?this.getTableList():this.currentPage=1},checkStoreGroupIds:function(t){this.currentPage=1,this.conditionObj.storeGroupIds=t,this.getTableList()},selectBrandId:function(t){this.activeBrand=t},setSelectTab:function(t){this.activeTab=t.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toSalerMonth:function(t,e){this.$router.push("/salerMonthDetail?storeId="+e.storeId+"&yearMonth="+this.yearMonth+"&appIcon="+this.$route.query.appIcon)},getTableList:function(t){var e=this,a={yearMonth:e.yearMonth||e.$route.query.yearMonth,keyword:e.conditionObj.keyword||"",storeStatus:e.conditionObj.storeStatus||"",isCompleted:e.conditionObj.isCompleted||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.groupId}).join(",")||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(c.a)("/haoban-app-performance-web/performance/query-store-month-performance",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.list&&a.result.list.length&&(a.result.list.forEach(function(t){t.performance=Object(d.d)(Number(t.performance))}),a.result.statistics&&r()(a.result.statistics).length?(e.statistics=a.result.statistics,e.tableData.unshift({completeStatus:a.result.statistics.totalComplete,performance:Object(d.d)(Number(a.result.statistics.totalPerformance)),storeName:a.result.statistics.totalStore,totalComplete:a.result.statistics.totalComplete,totalPerformance:Object(d.d)(Number(a.result.statistics.totalPerformance)),totalStore:a.result.statistics.totalStore})):e.tableData.unshift({completeStatus:e.statistics.totalComplete,performance:Object(d.d)(Number(e.statistics.totalPerformance)),storeName:e.statistics.totalStore,totalComplete:e.statistics.totalComplete,totalPerformance:e.statistics.totalPerformance,totalStore:e.statistics.totalStore})),e.tableData=a.result.list||[],void(e.total=a.result.pageInfo.total);u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.yearMonth=this.$route.query.yearMonth,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","11"),this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&(this.yearMonth=this.$route.query.yearMonth,this.getTableList())},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:i.a,qrcodeDialog:n.a,storeTreeSelect:l.a}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap common-right-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 margin-l-10",attrs:{placeholder:"请输入门店名称/code","prefix-icon":"el-icon-search",clearable:""},on:{change:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.searchStore(a);var a},clear:function(e){return t.clearInput(e)}},model:{value:t.conditionObj.keyword,callback:function(e){t.$set(t.conditionObj,"keyword",e)},expression:"conditionObj.keyword"}}),t._v(" "),a("el-select",{staticClass:"w-131 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.conditionObj.isCompleted,callback:function(e){t.$set(t.conditionObj,"isCompleted",e)},expression:"conditionObj.isCompleted"}},t._l(t.completeStatusOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),t._v(" "),a("store-tree-select",{attrs:{brandId:t.brandId,activeGroupId:t.activeGroupId},on:{checkStoreGroupIds:t.checkStoreGroupIds}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"})]),t._v(" "),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:"门店名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{class:["flex flex-pack-center flex-start",e.row.totalStore?"color-303133":""]},[t._v(t._s(e.row.totalStore?"总计:"+e.row.totalStore+"家":e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"月指标"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{class:[e.row.totalStore?"color-303133":""]},[t._v(t._s(e.row.performance))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店完善状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.totalStore?a("div",{staticClass:"color-303133"},[t._v(t._s("已完善:"+e.row.totalComplete+"家"))]):a("div",[t._v(t._s(0==e.row.completeStatus?"未完善":"已完善"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.totalStore?t._e():a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSalerMonth(e.$index,e.row)}}},[t._v("导购月指标详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var b=a("VU/8")(p,h,!1,function(t){a("m+CN")},"data-v-d9e2732c",null);e.default=b.exports},"m+CN":function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([43],{"/gVc":function(t,e){},xk7v:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("mvHQ"),r=a.n(n),s=a("Gu7T"),i=a.n(s),c=a("Xxa5"),o=a.n(c),u=a("exGp"),d=a.n(u),p=a("2eFk"),h=a("Ke24"),l=a("PI0u"),m=a("Ch4/"),f=a("3E4D"),y=a("P9l9"),v={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",brandName:"",activeBrand:this.brandId,yearMonth:"",topMenuData:[{id:"1",name:"指标管理",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"3",name:"商户统一日权重",path:""}],activeId:"3",myObject:{hasEmptyGrid:!1,empytGrids:[],days:[],hasLastEmptyGrid:!1,lastEmpytGrids:[],beginDate:"",endDate:""},performanceWeightSettingList:[],settingStatus:1,settingAble:1}},computed:{},methods:{is_leap:function(t){return t%400==0||t%4==0&&t%100!=0},m_days:function(t){return[31,28+this.is_leap(t),31,30,31,30,31,31,30,31,30,31]},addZero:function(t){return t<10?"0"+parseInt(t):t},getThisMonthDays:function(t,e){return new Date(t,e,0).getDate()},getFirstDayOfWeek:function(t,e){return new Date(Date.UTC(t,e-1,1)).getDay()},getLastDayOfWeek:function(t,e){return new Date(Date.UTC(t,e-1,this.getThisMonthDays(t,e))).getDay()},getYearMonthDayWeek:function(t,e,a){return new Date(t,e-1,a).getDay()},isOverMonth:function(t,e){return t.split("-")[1]==e.split("-")[1]},calculateEmptyGrids:function(t,e){var a=this;return d()(o.a.mark(function n(){var r,s,i;return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,a.getFirstDayOfWeek(t,e);case 2:if(r=n.sent,s=[],r>0)for(i=0;i<r;i++)s.push(i);return n.abrupt("return",s);case 6:case"end":return n.stop()}},n,a)}))()},calDayEmptyGrids:function(t,e,a){var n=this;return d()(o.a.mark(function r(){var s,i,c;return o.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.getYearMonthDayWeek(t,e,a);case 2:if(s=r.sent,i=[],s>0)for(c=0;c<s;c++)i.push(c);return r.abrupt("return",i);case 6:case"end":return r.stop()}},r,n)}))()},calculateLastEmptyGrids:function(t,e){var a=this;return d()(o.a.mark(function n(){var r,s,i;return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,a.getLastDayOfWeek(t,e);case 2:if(r=n.sent,s=[],r>=0)for(i=0;i<6-r;i++)s.push(i);return n.abrupt("return",s);case 6:case"end":return n.stop()}},n,a)}))()},calLastEmptyGrids:function(t,e,a){var n=this;return d()(o.a.mark(function r(){var s,i,c;return o.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.getYearMonthDayWeek(t,e,a);case 2:if(s=r.sent,i=[],s>=0)for(c=0;c<6-s;c++)i.push(c);return r.abrupt("return",i);case 6:case"end":return r.stop()}},r,n)}))()},calculateDays:function(t,e,a,n){var r=this;return d()(o.a.mark(function s(){var c,u,d,p,h,l,m,f,y,v;return o.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return c=r,(u={}).beginDate=a,u.endDate=n,u.year=t,s.next=7,c.addZero(e);case 7:return u.month=s.sent,d=a.split("-"),p=n.split("-"),s.next=12,c.isOverMonth(a,n);case 12:return h=s.sent,s.next=15,c.calDayEmptyGrids(d[0],d[1],d[2]);case 15:return(l=s.sent).length>0?(u.hasEmptyGrid=!0,u.empytGrids=l):(u.hasEmptyGrid=!1,u.empytGrids=[]),s.next=19,c.calLastEmptyGrids(p[0],p[1],p[2]);case 19:if((m=s.sent).length>0?(u.hasLastEmptyGrid=!0,u.lastEmpytGrids=m):(u.hasLastEmptyGrid=!1,u.lastEmpytGrids=[]),!h){s.next=27;break}return s.next=24,c.setCurrentMonth(d[0],d[1],d[2],p[2]);case 24:u.days=s.sent,s.next=37;break;case 27:return s.next=29,c.getThisMonthDays(d[0],d[1]);case 29:return f=s.sent,s.next=32,c.setCurrentMonth(d[0],d[1],d[2],f);case 32:return y=s.sent,s.next=35,c.setCurrentMonth(p[0],p[1],1,p[2]);case 35:v=s.sent,u.days=[].concat(i()(y),i()(v));case 37:return c.myObject=u,s.abrupt("return",u);case 39:case"end":return s.stop()}},s,r)}))()},setCurrentMonth:function(t,e,a,n){for(var r=this,s=[],i=function(a){var n={};if(r.performanceWeightSettingList.length)r.performanceWeightSettingList.forEach(function(t,e){parseInt(t.date.split("-")[2])==a&&(n.weightValue=Number(t.weightValue).toFixed(2))});else{var i=r.getYearMonthDayWeek(t,e,a);n.weightValue=5==i?Number(1.8).toFixed(2):6==i||0==i?Number(2).toFixed(2):Number(1).toFixed(2)}n.performanceDay=r.addZero(a),n.date=t+"-"+r.addZero(e)+"-"+r.addZero(a),n.month=r.addZero(e),s.push(n)},c=a;c<=n;c++)i(c);return s},resetData:function(){this.performanceWeightSettingList=[];var t=this.yearMonth.split("-");this.calculateDays(t[0],t[1],this.myObject.beginDate,this.myObject.endDate)},saveSet:Object(l.a)(function(){var t=this,e=!0;if(t.myObject.days.forEach(function(t){(!t.weightValue||t.weightValue<=0||!Number(t.weightValue))&&(e=!1)}),!e)return this.$confirm("每日的权重不能为空,必须为数字,且不小于 0 ?","提示",{confirmButtonText:"确定",showCancelButton:!1,type:"warning"}).then(function(){}),!1;t.$confirm(0==t.settingStatus?"点击即下发门店月指标任务,请确认是否提交?":"此次提交只影响日指标值,不会触发月指标任务,请确认是否提交?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.postSave(t.myObject.days)}).catch(function(){})},500),postSave:function(t){var e=this,a={brandId:e.activeBrand,yearMonth:e.yearMonth,performanceWeightSettingList:r()(t)};Object(y.e)("/haoban-app-performance-web/performance/save-performance-weight-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return f.a.showmsg("保存成功","success"),void e.getData();m.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this,e={brandId:t.activeBrand,yearMonth:t.yearMonth};Object(y.e)("/haoban-app-performance-web/performance/query-performance-weight-setting",e).then(function(e){var a=e.data,n=t.yearMonth.split("-");if(1==a.errorCode)return t.performanceWeightSettingList=a.result.performanceWeightSettingList||[],t.settingStatus=a.result.settingStatus,t.settingAble=a.result.settingAble,t.brandName=a.result.brandName,t.myObject.beginDate=a.result.beginDate,t.myObject.endDate=a.result.endDate,void t.calculateDays(n[0],n[1],a.result.beginDate,a.result.endDate);m.a.errorMsg(a),t.settingAble=0}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.yearMonth=this.$route.query.yearMonth,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","11"),this.brandId&&(this.yearMonth=this.$route.query.yearMonth,this.getData())},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:p.a,commonDetailTop:h.a}},g={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap common-right-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"day-set-content boder-box"},[a("div",{staticClass:"day-set-title m-b-20"},[a("span",{staticClass:"font-18 color-303133"},[t._v(t._s(t.yearMonth))]),a("span",{staticClass:"font-14 color-606266 p-l-18"},[t._v(t._s(t.brandName)+"商户统一日权重")]),t._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("首次设置提交即下发门店月指标任务;"),a("br"),t._v("门店月指标将依照日权重自动分配,日指标=当月月指标*(日权重/∑当月日权重);")]),t._v(" "),a("i",{staticClass:"el-icon-info font-8 color-c0c4cc p-l-8"})])],1),t._v(" "),a("section",[t._m(0),t._v(" "),a("div",{staticClass:"week week-body"},[t.myObject.hasEmptyGrid?t._l(t.myObject.empytGrids,function(t,e){return a("div",{key:e+"empytGrids",staticClass:"day grid white-color"})}):t._e(),t._v(" "),t._l(t.myObject.days,function(e,n){return a("div",{key:n,staticClass:"day w-p-14 selectable",class:0==e?"hide":""},[a("div",{staticClass:"w-120 font-14 color-909399 day-performance"},[t._v(t._s(e.month+"-"+e.performanceDay))]),t._v(" "),a("div",{staticClass:"target-value "},[a("el-input",{staticClass:"w-120",attrs:{placeholder:"请输入权重值",disabled:0==t.settingAble},model:{value:e.weightValue,callback:function(a){t.$set(e,"weightValue",a)},expression:"day.weightValue"}})],1)])}),t._v(" "),t.myObject.hasLastEmptyGrid?t._l(t.myObject.lastEmpytGrids,function(t,e){return a("div",{key:e+"lastEmpytGrids",staticClass:"day grid white-color"})}):t._e()],2)]),t._v(" "),1==t.settingAble?a("div",{staticClass:"day-set-btn m-t-24 text-center"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.resetData}},[t._v("重置")]),a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("提交")])],1):t._e()])],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"week"},[a("div",{staticClass:"week-head day w-p-14"},[t._v("周日")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周一")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周二")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周三")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周四")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周五")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周六")])])}]};var b=a("VU/8")(v,g,!1,function(t){a("/gVc")},"data-v-d61e665c",null);e.default=b.exports}}); webpackJsonp([45],{"/gVc":function(t,e){},xk7v:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("mvHQ"),r=a.n(n),s=a("Gu7T"),i=a.n(s),c=a("Xxa5"),o=a.n(c),u=a("exGp"),d=a.n(u),p=a("2eFk"),h=a("Ke24"),l=a("PI0u"),m=a("Ch4/"),f=a("3E4D"),y=a("P9l9"),v={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",brandName:"",activeBrand:this.brandId,yearMonth:"",topMenuData:[{id:"1",name:"指标管理",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"3",name:"商户统一日权重",path:""}],activeId:"3",myObject:{hasEmptyGrid:!1,empytGrids:[],days:[],hasLastEmptyGrid:!1,lastEmpytGrids:[],beginDate:"",endDate:""},performanceWeightSettingList:[],settingStatus:1,settingAble:1}},computed:{},methods:{is_leap:function(t){return t%400==0||t%4==0&&t%100!=0},m_days:function(t){return[31,28+this.is_leap(t),31,30,31,30,31,31,30,31,30,31]},addZero:function(t){return t<10?"0"+parseInt(t):t},getThisMonthDays:function(t,e){return new Date(t,e,0).getDate()},getFirstDayOfWeek:function(t,e){return new Date(Date.UTC(t,e-1,1)).getDay()},getLastDayOfWeek:function(t,e){return new Date(Date.UTC(t,e-1,this.getThisMonthDays(t,e))).getDay()},getYearMonthDayWeek:function(t,e,a){return new Date(t,e-1,a).getDay()},isOverMonth:function(t,e){return t.split("-")[1]==e.split("-")[1]},calculateEmptyGrids:function(t,e){var a=this;return d()(o.a.mark(function n(){var r,s,i;return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,a.getFirstDayOfWeek(t,e);case 2:if(r=n.sent,s=[],r>0)for(i=0;i<r;i++)s.push(i);return n.abrupt("return",s);case 6:case"end":return n.stop()}},n,a)}))()},calDayEmptyGrids:function(t,e,a){var n=this;return d()(o.a.mark(function r(){var s,i,c;return o.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.getYearMonthDayWeek(t,e,a);case 2:if(s=r.sent,i=[],s>0)for(c=0;c<s;c++)i.push(c);return r.abrupt("return",i);case 6:case"end":return r.stop()}},r,n)}))()},calculateLastEmptyGrids:function(t,e){var a=this;return d()(o.a.mark(function n(){var r,s,i;return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,a.getLastDayOfWeek(t,e);case 2:if(r=n.sent,s=[],r>=0)for(i=0;i<6-r;i++)s.push(i);return n.abrupt("return",s);case 6:case"end":return n.stop()}},n,a)}))()},calLastEmptyGrids:function(t,e,a){var n=this;return d()(o.a.mark(function r(){var s,i,c;return o.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.getYearMonthDayWeek(t,e,a);case 2:if(s=r.sent,i=[],s>=0)for(c=0;c<6-s;c++)i.push(c);return r.abrupt("return",i);case 6:case"end":return r.stop()}},r,n)}))()},calculateDays:function(t,e,a,n){var r=this;return d()(o.a.mark(function s(){var c,u,d,p,h,l,m,f,y,v;return o.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return c=r,(u={}).beginDate=a,u.endDate=n,u.year=t,s.next=7,c.addZero(e);case 7:return u.month=s.sent,d=a.split("-"),p=n.split("-"),s.next=12,c.isOverMonth(a,n);case 12:return h=s.sent,s.next=15,c.calDayEmptyGrids(d[0],d[1],d[2]);case 15:return(l=s.sent).length>0?(u.hasEmptyGrid=!0,u.empytGrids=l):(u.hasEmptyGrid=!1,u.empytGrids=[]),s.next=19,c.calLastEmptyGrids(p[0],p[1],p[2]);case 19:if((m=s.sent).length>0?(u.hasLastEmptyGrid=!0,u.lastEmpytGrids=m):(u.hasLastEmptyGrid=!1,u.lastEmpytGrids=[]),!h){s.next=27;break}return s.next=24,c.setCurrentMonth(d[0],d[1],d[2],p[2]);case 24:u.days=s.sent,s.next=37;break;case 27:return s.next=29,c.getThisMonthDays(d[0],d[1]);case 29:return f=s.sent,s.next=32,c.setCurrentMonth(d[0],d[1],d[2],f);case 32:return y=s.sent,s.next=35,c.setCurrentMonth(p[0],p[1],1,p[2]);case 35:v=s.sent,u.days=[].concat(i()(y),i()(v));case 37:return c.myObject=u,s.abrupt("return",u);case 39:case"end":return s.stop()}},s,r)}))()},setCurrentMonth:function(t,e,a,n){for(var r=this,s=[],i=function(a){var n={};if(r.performanceWeightSettingList.length)r.performanceWeightSettingList.forEach(function(t,e){parseInt(t.date.split("-")[2])==a&&(n.weightValue=Number(t.weightValue).toFixed(2))});else{var i=r.getYearMonthDayWeek(t,e,a);n.weightValue=5==i?Number(1.8).toFixed(2):6==i||0==i?Number(2).toFixed(2):Number(1).toFixed(2)}n.performanceDay=r.addZero(a),n.date=t+"-"+r.addZero(e)+"-"+r.addZero(a),n.month=r.addZero(e),s.push(n)},c=a;c<=n;c++)i(c);return s},resetData:function(){this.performanceWeightSettingList=[];var t=this.yearMonth.split("-");this.calculateDays(t[0],t[1],this.myObject.beginDate,this.myObject.endDate)},saveSet:Object(l.a)(function(){var t=this,e=!0;if(t.myObject.days.forEach(function(t){(!t.weightValue||t.weightValue<=0||!Number(t.weightValue))&&(e=!1)}),!e)return this.$confirm("每日的权重不能为空,必须为数字,且不小于 0 ?","提示",{confirmButtonText:"确定",showCancelButton:!1,type:"warning"}).then(function(){}),!1;t.$confirm(0==t.settingStatus?"点击即下发门店月指标任务,请确认是否提交?":"此次提交只影响日指标值,不会触发月指标任务,请确认是否提交?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.postSave(t.myObject.days)}).catch(function(){})},500),postSave:function(t){var e=this,a={brandId:e.activeBrand,yearMonth:e.yearMonth,performanceWeightSettingList:r()(t)};Object(y.e)("/haoban-app-performance-web/performance/save-performance-weight-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return f.a.showmsg("保存成功","success"),void e.getData();m.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this,e={brandId:t.activeBrand,yearMonth:t.yearMonth};Object(y.e)("/haoban-app-performance-web/performance/query-performance-weight-setting",e).then(function(e){var a=e.data,n=t.yearMonth.split("-");if(1==a.errorCode)return t.performanceWeightSettingList=a.result.performanceWeightSettingList||[],t.settingStatus=a.result.settingStatus,t.settingAble=a.result.settingAble,t.brandName=a.result.brandName,t.myObject.beginDate=a.result.beginDate,t.myObject.endDate=a.result.endDate,void t.calculateDays(n[0],n[1],a.result.beginDate,a.result.endDate);m.a.errorMsg(a),t.settingAble=0}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.yearMonth=this.$route.query.yearMonth,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","11"),this.brandId&&(this.yearMonth=this.$route.query.yearMonth,this.getData())},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:p.a,commonDetailTop:h.a}},g={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap common-right-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"day-set-content boder-box"},[a("div",{staticClass:"day-set-title m-b-20"},[a("span",{staticClass:"font-18 color-303133"},[t._v(t._s(t.yearMonth))]),a("span",{staticClass:"font-14 color-606266 p-l-18"},[t._v(t._s(t.brandName)+"商户统一日权重")]),t._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("首次设置提交即下发门店月指标任务;"),a("br"),t._v("门店月指标将依照日权重自动分配,日指标=当月月指标*(日权重/∑当月日权重);")]),t._v(" "),a("i",{staticClass:"el-icon-info font-8 color-c0c4cc p-l-8"})])],1),t._v(" "),a("section",[t._m(0),t._v(" "),a("div",{staticClass:"week week-body"},[t.myObject.hasEmptyGrid?t._l(t.myObject.empytGrids,function(t,e){return a("div",{key:e+"empytGrids",staticClass:"day grid white-color"})}):t._e(),t._v(" "),t._l(t.myObject.days,function(e,n){return a("div",{key:n,staticClass:"day w-p-14 selectable",class:0==e?"hide":""},[a("div",{staticClass:"w-120 font-14 color-909399 day-performance"},[t._v(t._s(e.month+"-"+e.performanceDay))]),t._v(" "),a("div",{staticClass:"target-value "},[a("el-input",{staticClass:"w-120",attrs:{placeholder:"请输入权重值",disabled:0==t.settingAble},model:{value:e.weightValue,callback:function(a){t.$set(e,"weightValue",a)},expression:"day.weightValue"}})],1)])}),t._v(" "),t.myObject.hasLastEmptyGrid?t._l(t.myObject.lastEmpytGrids,function(t,e){return a("div",{key:e+"lastEmpytGrids",staticClass:"day grid white-color"})}):t._e()],2)]),t._v(" "),1==t.settingAble?a("div",{staticClass:"day-set-btn m-t-24 text-center"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.resetData}},[t._v("重置")]),a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("提交")])],1):t._e()])],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"week"},[a("div",{staticClass:"week-head day w-p-14"},[t._v("周日")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周一")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周二")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周三")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周四")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周五")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周六")])])}]};var b=a("VU/8")(v,g,!1,function(t){a("/gVc")},"data-v-d61e665c",null);e.default=b.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([45],{"N+Or":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("gBtx"),o=a.n(s),r=a("Xxa5"),n=a.n(r),i=a("exGp"),l=a.n(i),c=a("Ke24"),u=a("Ie7z"),m=a("jxcq"),d=a("a9gP"),p=a("3E4D"),g=a("Ch4/"),b=a("PI0u"),h=a("P9l9"),f={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeName:"first",activeGroup:this.activeGroupId,myCustomData:{searchFlag:!1,chatFlag:!1,mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1,clerkSeeOtherFlag:!1,isSeeAuthMember:!1,allowGuideContact:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1},topMenuData:[{id:"1",name:"会员搜索设置"}],activeId:"1",overTimeSeeFlag:"",conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},syncDate:""}},beforeMount:function(){var e=window.location.origin;-1!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{getSyncDate:function(e){var t=this,a={brandId:t.brandId||e};Object(h.e)("/haoban-app-member-web/memberGroup/get-group_last_syn_time",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):t.syncDate=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(b.a)(function(){var e=this,t={brandId:e.brandId};Object(h.e)("/haoban-app-member-web/memberGroup/syn-group",t).then(function(t){var a=t.data;if(1==a.errorCode)return p.a.showmsg("同步成功","success"),void e.getSyncDate();g.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},500),handleTabClick:function(e,t){var a=this;return l()(n.a.mark(function t(){var s;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(s=a,"first"!=e.name){t.next=5;break}s.getCustomerSet(s.brandId),t.next=15;break;case 5:if("second"!=e.name){t.next=9;break}s.getShowSet(s.brandId),t.next=15;break;case 9:return t.next=11,s.getGroupClassSet(s.brandId);case 11:return t.next=13,s.getGroupClassify(s.brandId);case 13:return t.next=15,s.getGroupList(s.brandId);case 15:case"end":return t.stop()}},t,a)}))()},getGroupClassSet:function(e){var t=this,a={brandId:e};Object(h.e)("/haoban-app-member-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):t.overTimeSeeFlag=0!=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},saveGroupSet:function(){var e=this,t={brandId:e.brandId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(h.e)("/haoban-app-member-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return p.a.showmsg("设置成功","success"),!1;g.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(b.a)(function(e,t){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(e){var t=this,a={brandId:e};Object(h.e)("/haoban-app-member-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toEditGroup:function(e,t){this.memberTagGroupId=t.memberTagGroupId,this.getGroupSet()},getGroupSet:function(){var e=this,t={brandId:e.brandId,memberTagGroupId:e.memberTagGroupId};Object(h.e)("/haoban-app-member-web/memberGroup/find-gorup-see-range",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.length&&a.result.forEach(function(e){2===o()(e.type)&&(e.groupId=e.id),e.label=e.name}),e.defaultStoreList=a.result||[],void(e.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1});g.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSelectedList:function(e){console.log(e);this.defaultStoreList=e||[],this.saveGorupRange()},saveGorupRange:function(){var e=this,t=[],a=[];e.defaultStoreList.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var s={brandId:e.brandId,memberTagGroupId:e.memberTagGroupId,groupList:t||[],storeList:a||[]};Object(h.e)("/haoban-app-member-web/memberGroup/save-gorup-see-range",s).then(function(t){var a=t.data;if(1==a.errorCode)return p.a.showmsg("编辑成功","success"),void(e.defaultStoreList=[]);g.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toChangeTemp:function(e,t,a){var s=this;console.log(e,t,a);var o={brandId:s.brandId,memberTagGroupId:a.memberTagGroupId,isSendTemplate:1==a.isSendTemplate?1:0};Object(h.e)("/haoban-app-member-web/memberGroup/save-member-group-is-template-message",o).then(function(e){var t=e.data;if(1==t.errorCode)return p.a.showmsg("操作成功","success"),s.pageNum=1,void s.getGroupList(s.brandId);a.isSendTemplate=!1,g.a.errorMsg(t)}).catch(function(e){s.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this,a={brandId:e,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(h.e)("/haoban-app-member-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.isSendTemplate=1==e.isSendTemplate}),t.groupListData=a.result.list||[],void(t.total=a.result.pageInfo.total);g.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},submit:Object(b.a)(function(e){this.setData(e)},500),setData:function(e){var t=this,a={brandId:t.brandId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId},s=void 0;"showFlag"!=e?(a[e]=t.myCustomData[e]?1:0,s="/haoban-app-member-web/customer/save-online-chat-setting","searchFlag"===e&&(s="/haoban-app-member-web/customer/save-customer-setting")):(a.mainStoreFlag=t.myCustomData.mainStoreFlag?1:0,a.minorStoreFlag=t.myCustomData.minorStoreFlag?1:0,a.openCardStoreFlag=t.myCustomData.openCardStoreFlag?1:0,a.clerkSeeOtherFlag=t.myCustomData.clerkSeeOtherFlag?1:0,a.allowGuideContact=t.myCustomData.allowGuideContact?1:0,a.allowGuideMobile=t.myCustomData.allowGuideMobile?1:0,a.allowGuideMessage=t.myCustomData.allowGuideMessage?1:0,a.allowGuideOnlineChat=t.myCustomData.allowGuideOnlineChat?1:0,a.isSeeAuthMember=t.myCustomData.isSeeAuthMember?1:0,a.chatFlag=t.myCustomData.chatFlag,a.isMessageRemind=t.myCustomData.isMessageRemind,a.messageRemindTime=t.myCustomData.messageRemindTime,a.isTemplateMessage=t.myCustomData.isTemplateMessage,a.isImgMessage=t.myCustomData.isImgMessage,a.isGoodMessage=t.myCustomData.isGoodMessage,a.isIntegralGoodMessage=t.myCustomData.isIntegralGoodMessage,s="/haoban-app-member-web/customer/save-member-show-setting"),Object(h.e)(s,a).then(function(e){var t=e.data;1!=t.errorCode?g.a.errorMsg(t):p.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},changeAllowGuide:function(e){this.myCustomData.allowGuideMobile=e,this.myCustomData.allowGuideMessage=e,this.myCustomData.allowGuideOnlineChat=e},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getCustomerSet:function(e){var t=this,a={brandId:e};Object(h.e)("/haoban-app-member-web/customer/find-customer-setting",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):a.result&&(t.myCustomData.searchFlag=!!a.result.searchFlag)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getShowSet:function(e){var t=this,a={brandId:e};Object(h.e)("/haoban-app-member-web/customer/find-member-show-setting",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):a.result&&(a.result.mainStoreFlag=1==a.result.mainStoreFlag,a.result.minorStoreFlag=1==a.result.minorStoreFlag,a.result.openCardStoreFlag=1==a.result.openCardStoreFlag,a.result.clerkSeeOtherFlag=1==a.result.clerkSeeOtherFlag,a.result.allowGuideContact=1==a.result.allowGuideContact,a.result.allowGuideMobile=1==a.result.allowGuideMobile,a.result.allowGuideMessage=1==a.result.allowGuideMessage,a.result.allowGuideOnlineChat=1==a.result.allowGuideOnlineChat,a.result.isSeeAuthMember=1==a.result.isSeeAuthMember,a.result.searchFlag=1==a.result.searchFlag,t.myCustomData=a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){this.getCustomerSet(e),this.getShowSet(e),this.getGroupClassify(e),this.getGroupList(e),this.getGroupClassSet(e),this.getSyncDate(e)},activeGroupId:function(e,t){e&&(this.activeGroup=e)},tabType:function(e,t){1==e?(this.getShowSet(this.brandId),this.topMenuData=[{id:"1",name:"会员搜索设置"}],this.activeId=1):(this.topMenuData=[{id:"2",name:"在线沟通设置"}],this.activeId="2")}},mounted:function(){this.$emit("showTab","1"),this.brandId&&1!=this.brandId&&(this.getCustomerSet(this.brandId),this.getShowSet(this.brandId),this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId))},components:{commonDetailTop:c.a,vueSelectStore:u.a,onlineChat:m.a,chatLog:d.a}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[1==e.tabType?a("div",[a("div",{staticClass:"common-detail-tab"},[a("el-tabs",{staticClass:"daily-set-tab",on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"会员搜索设置",name:"first"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"会员展示设置",name:"second"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"会员分组设置",name:"third"}})],1)],1),e._v(" "),"first"==e.activeName?a("div",{staticClass:"app-detail-pane border-box p-20"},[a("el-checkbox",{model:{value:e.myCustomData.searchFlag,callback:function(t){e.$set(e.myCustomData,"searchFlag",t)},expression:"myCustomData.searchFlag"}},[e._v("允许全品牌搜索")]),e._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submit("searchFlag")}}},[e._v("保 存")])],1)],1):e._e(),e._v(" "),"second"==e.activeName?a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.mainStoreFlag,callback:function(t){e.$set(e.myCustomData,"mainStoreFlag",t)},expression:"myCustomData.mainStoreFlag"}},[e._v("展示服务门店会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.minorStoreFlag,callback:function(t){e.$set(e.myCustomData,"minorStoreFlag",t)},expression:"myCustomData.minorStoreFlag"}},[e._v("展示协管门店会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.openCardStoreFlag,callback:function(t){e.$set(e.myCustomData,"openCardStoreFlag",t)},expression:"myCustomData.openCardStoreFlag"}},[e._v("展示开卡门店会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.isSeeAuthMember,callback:function(t){e.$set(e.myCustomData,"isSeeAuthMember",t)},expression:"myCustomData.isSeeAuthMember"}},[e._v("展示已认证会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店已认证会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.clerkSeeOtherFlag,callback:function(t){e.$set(e.myCustomData,"clerkSeeOtherFlag",t)},expression:"myCustomData.clerkSeeOtherFlag"}},[e._v("允许导购查看其他导购会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购可查看本门店其他导购名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.changeAllowGuide},model:{value:e.myCustomData.allowGuideContact,callback:function(t){e.$set(e.myCustomData,"allowGuideContact",t)},expression:"myCustomData.allowGuideContact"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("允许导购主动联系会员")]),a("span",{staticClass:"font-14 color-909399 p-l-38"},[e._v("注:开启后,可选择导购在 < 我的顾客 > 中是否通过以下方式联系会员")])],1),e._v(" "),e.myCustomData.allowGuideContact?a("div",[a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideMobile,callback:function(t){e.$set(e.myCustomData,"allowGuideMobile",t)},expression:"myCustomData.allowGuideMobile"}},[e._v("电话")]),e._v(" "),a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideMessage,callback:function(t){e.$set(e.myCustomData,"allowGuideMessage",t)},expression:"myCustomData.allowGuideMessage"}},[e._v("短信")]),e._v(" "),a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideOnlineChat,callback:function(t){e.$set(e.myCustomData,"allowGuideOnlineChat",t)},expression:"myCustomData.allowGuideOnlineChat"}},[e._v("消息")])],1):e._e(),e._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submit("showFlag")}}},[e._v("保 存")])],1)]):e._e(),e._v(" "),"third"==e.activeName?a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"condition-wrap font-0"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入分组名称搜索","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeCondition},model:{value:e.conditionObj.classifyName,callback:function(t){e.$set(e.conditionObj,"classifyName",t)},expression:"conditionObj.classifyName"}},[a("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),e._l(e.classifyList,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})],2),e._v(" "),a("el-select",{staticClass:"m-l-10",attrs:{placeholder:"请选择状态"},on:{change:e.changeCondition},model:{value:e.conditionObj.effectiveStatus,callback:function(t){e.$set(e.conditionObj,"effectiveStatus",t)},expression:"conditionObj.effectiveStatus"}},[a("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),a("el-option",{attrs:{label:"有效",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),e._v(" "),e._m(0),e._v(" "),a("div",{staticClass:"m-t-20 m-b-20"},[a("div",{staticClass:"switch-wrap m-t-20"},[a("div",{staticClass:"flex flex-space-between"},[a("div",{staticClass:"flex flex-align-center"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}}),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组到期后,好办移动端将不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer"}},[e._v("会员分组到期后不展示"),a("span",{staticClass:"el-icon-info font-12 color-909399"})])])],1),e._v(" "),a("div",[e.syncDate?a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("最近一次同步时间:"+e._s(e._f("formatTimeStamp")(e.syncDate)))]):e._e(),a("el-button",{attrs:{type:"primary"},on:{click:e.toSync}},[e._v("立即同步")])],1)])])]),e._v(" "),a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberTagGroupClassifyName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),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.memberCount||0)+"人")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])}),e._v(" "),a("el-table-column",{scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"<前提:开启模板消息开关。仅支持专属导购对<我的顾客-会员分组>中的分组下会员发送模板消息>",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[e._v("模板消息设置"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){e.toChangeTemp(a,t.$index,t.row)}},model:{value:t.row.isSendTemplate,callback:function(a){e.$set(t.row,"isSendTemplate",a)},expression:"scope.row.isSendTemplate"}})]}}])}),e._v(" "),a("el-table-column",{scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"仅可编辑能在好办展示的分组",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[e._v("操作"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toEditGroup(t.$index,t.row)}}},[e._v("编辑分组可见范围")])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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()]):e._e(),e._v(" "),2==e.tabType?a("div",[a("online-chat",{attrs:{brandId:e.brandId}})],1):e._e(),e._v(" "),3==e.tabType?a("div",[a("chat-log",{attrs:{brandId:e.brandId,activeGroupId:e.activeGroupId}})],1):e._e(),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"condition-tip m-t-20 m-b-20"},[t("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("注:GIC设置分组后,好办会员分组列表次日刷新,每日刷新一次,仅展示GIC中开启【好办展示】的会员分组")])])])])}]};var C=a("VU/8")(f,v,!1,function(e){a("eBRw")},"data-v-c8ee6a08",null);t.default=C.exports},eBRw:function(e,t){}}); webpackJsonp([46],{"N+Or":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("gBtx"),o=a.n(s),r=a("Xxa5"),n=a.n(r),i=a("exGp"),l=a.n(i),c=a("Ke24"),u=a("Ie7z"),m=a("jxcq"),d=a("a9gP"),p=a("3E4D"),g=a("Ch4/"),b=a("PI0u"),h=a("P9l9"),f={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeName:"first",activeGroup:this.activeGroupId,myCustomData:{searchFlag:!1,chatFlag:!1,mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1,clerkSeeOtherFlag:!1,isSeeAuthMember:!1,allowGuideContact:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1},topMenuData:[{id:"1",name:"会员搜索设置"}],activeId:"1",overTimeSeeFlag:"",conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},syncDate:""}},beforeMount:function(){var e=window.location.origin;-1!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{getSyncDate:function(e){var t=this,a={brandId:t.brandId||e};Object(h.e)("/haoban-app-member-web/memberGroup/get-group_last_syn_time",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):t.syncDate=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(b.a)(function(){var e=this,t={brandId:e.brandId};Object(h.e)("/haoban-app-member-web/memberGroup/syn-group",t).then(function(t){var a=t.data;if(1==a.errorCode)return p.a.showmsg("同步成功","success"),void e.getSyncDate();g.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},500),handleTabClick:function(e,t){var a=this;return l()(n.a.mark(function t(){var s;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(s=a,"first"!=e.name){t.next=5;break}s.getCustomerSet(s.brandId),t.next=15;break;case 5:if("second"!=e.name){t.next=9;break}s.getShowSet(s.brandId),t.next=15;break;case 9:return t.next=11,s.getGroupClassSet(s.brandId);case 11:return t.next=13,s.getGroupClassify(s.brandId);case 13:return t.next=15,s.getGroupList(s.brandId);case 15:case"end":return t.stop()}},t,a)}))()},getGroupClassSet:function(e){var t=this,a={brandId:e};Object(h.e)("/haoban-app-member-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):t.overTimeSeeFlag=0!=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},saveGroupSet:function(){var e=this,t={brandId:e.brandId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(h.e)("/haoban-app-member-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return p.a.showmsg("设置成功","success"),!1;g.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(b.a)(function(e,t){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(e){var t=this,a={brandId:e};Object(h.e)("/haoban-app-member-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toEditGroup:function(e,t){this.memberTagGroupId=t.memberTagGroupId,this.getGroupSet()},getGroupSet:function(){var e=this,t={brandId:e.brandId,memberTagGroupId:e.memberTagGroupId};Object(h.e)("/haoban-app-member-web/memberGroup/find-gorup-see-range",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.length&&a.result.forEach(function(e){2===o()(e.type)&&(e.groupId=e.id),e.label=e.name}),e.defaultStoreList=a.result||[],void(e.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1});g.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSelectedList:function(e){console.log(e);this.defaultStoreList=e||[],this.saveGorupRange()},saveGorupRange:function(){var e=this,t=[],a=[];e.defaultStoreList.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var s={brandId:e.brandId,memberTagGroupId:e.memberTagGroupId,groupList:t||[],storeList:a||[]};Object(h.e)("/haoban-app-member-web/memberGroup/save-gorup-see-range",s).then(function(t){var a=t.data;if(1==a.errorCode)return p.a.showmsg("编辑成功","success"),void(e.defaultStoreList=[]);g.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toChangeTemp:function(e,t,a){var s=this;console.log(e,t,a);var o={brandId:s.brandId,memberTagGroupId:a.memberTagGroupId,isSendTemplate:1==a.isSendTemplate?1:0};Object(h.e)("/haoban-app-member-web/memberGroup/save-member-group-is-template-message",o).then(function(e){var t=e.data;if(1==t.errorCode)return p.a.showmsg("操作成功","success"),s.pageNum=1,void s.getGroupList(s.brandId);a.isSendTemplate=!1,g.a.errorMsg(t)}).catch(function(e){s.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this,a={brandId:e,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(h.e)("/haoban-app-member-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.isSendTemplate=1==e.isSendTemplate}),t.groupListData=a.result.list||[],void(t.total=a.result.pageInfo.total);g.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},submit:Object(b.a)(function(e){this.setData(e)},500),setData:function(e){var t=this,a={brandId:t.brandId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId},s=void 0;"showFlag"!=e?(a[e]=t.myCustomData[e]?1:0,s="/haoban-app-member-web/customer/save-online-chat-setting","searchFlag"===e&&(s="/haoban-app-member-web/customer/save-customer-setting")):(a.mainStoreFlag=t.myCustomData.mainStoreFlag?1:0,a.minorStoreFlag=t.myCustomData.minorStoreFlag?1:0,a.openCardStoreFlag=t.myCustomData.openCardStoreFlag?1:0,a.clerkSeeOtherFlag=t.myCustomData.clerkSeeOtherFlag?1:0,a.allowGuideContact=t.myCustomData.allowGuideContact?1:0,a.allowGuideMobile=t.myCustomData.allowGuideMobile?1:0,a.allowGuideMessage=t.myCustomData.allowGuideMessage?1:0,a.allowGuideOnlineChat=t.myCustomData.allowGuideOnlineChat?1:0,a.isSeeAuthMember=t.myCustomData.isSeeAuthMember?1:0,a.chatFlag=t.myCustomData.chatFlag,a.isMessageRemind=t.myCustomData.isMessageRemind,a.messageRemindTime=t.myCustomData.messageRemindTime,a.isTemplateMessage=t.myCustomData.isTemplateMessage,a.isImgMessage=t.myCustomData.isImgMessage,a.isGoodMessage=t.myCustomData.isGoodMessage,a.isIntegralGoodMessage=t.myCustomData.isIntegralGoodMessage,s="/haoban-app-member-web/customer/save-member-show-setting"),Object(h.e)(s,a).then(function(e){var t=e.data;1!=t.errorCode?g.a.errorMsg(t):p.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},changeAllowGuide:function(e){this.myCustomData.allowGuideMobile=e,this.myCustomData.allowGuideMessage=e,this.myCustomData.allowGuideOnlineChat=e},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getCustomerSet:function(e){var t=this,a={brandId:e};Object(h.e)("/haoban-app-member-web/customer/find-customer-setting",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):a.result&&(t.myCustomData.searchFlag=!!a.result.searchFlag)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getShowSet:function(e){var t=this,a={brandId:e};Object(h.e)("/haoban-app-member-web/customer/find-member-show-setting",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):a.result&&(a.result.mainStoreFlag=1==a.result.mainStoreFlag,a.result.minorStoreFlag=1==a.result.minorStoreFlag,a.result.openCardStoreFlag=1==a.result.openCardStoreFlag,a.result.clerkSeeOtherFlag=1==a.result.clerkSeeOtherFlag,a.result.allowGuideContact=1==a.result.allowGuideContact,a.result.allowGuideMobile=1==a.result.allowGuideMobile,a.result.allowGuideMessage=1==a.result.allowGuideMessage,a.result.allowGuideOnlineChat=1==a.result.allowGuideOnlineChat,a.result.isSeeAuthMember=1==a.result.isSeeAuthMember,a.result.searchFlag=1==a.result.searchFlag,t.myCustomData=a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){this.getCustomerSet(e),this.getShowSet(e),this.getGroupClassify(e),this.getGroupList(e),this.getGroupClassSet(e),this.getSyncDate(e)},activeGroupId:function(e,t){e&&(this.activeGroup=e)},tabType:function(e,t){1==e?(this.getShowSet(this.brandId),this.topMenuData=[{id:"1",name:"会员搜索设置"}],this.activeId=1):(this.topMenuData=[{id:"2",name:"在线沟通设置"}],this.activeId="2")}},mounted:function(){this.$emit("showTab","1"),this.brandId&&1!=this.brandId&&(this.getCustomerSet(this.brandId),this.getShowSet(this.brandId),this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId))},components:{commonDetailTop:c.a,vueSelectStore:u.a,onlineChat:m.a,chatLog:d.a}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[1==e.tabType?a("div",[a("div",{staticClass:"common-detail-tab"},[a("el-tabs",{staticClass:"daily-set-tab",on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"会员搜索设置",name:"first"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"会员展示设置",name:"second"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"会员分组设置",name:"third"}})],1)],1),e._v(" "),"first"==e.activeName?a("div",{staticClass:"app-detail-pane border-box p-20"},[a("el-checkbox",{model:{value:e.myCustomData.searchFlag,callback:function(t){e.$set(e.myCustomData,"searchFlag",t)},expression:"myCustomData.searchFlag"}},[e._v("允许全品牌搜索")]),e._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submit("searchFlag")}}},[e._v("保 存")])],1)],1):e._e(),e._v(" "),"second"==e.activeName?a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.mainStoreFlag,callback:function(t){e.$set(e.myCustomData,"mainStoreFlag",t)},expression:"myCustomData.mainStoreFlag"}},[e._v("展示服务门店会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.minorStoreFlag,callback:function(t){e.$set(e.myCustomData,"minorStoreFlag",t)},expression:"myCustomData.minorStoreFlag"}},[e._v("展示协管门店会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.openCardStoreFlag,callback:function(t){e.$set(e.myCustomData,"openCardStoreFlag",t)},expression:"myCustomData.openCardStoreFlag"}},[e._v("展示开卡门店会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.isSeeAuthMember,callback:function(t){e.$set(e.myCustomData,"isSeeAuthMember",t)},expression:"myCustomData.isSeeAuthMember"}},[e._v("展示已认证会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店已认证会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.clerkSeeOtherFlag,callback:function(t){e.$set(e.myCustomData,"clerkSeeOtherFlag",t)},expression:"myCustomData.clerkSeeOtherFlag"}},[e._v("允许导购查看其他导购会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购可查看本门店其他导购名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.changeAllowGuide},model:{value:e.myCustomData.allowGuideContact,callback:function(t){e.$set(e.myCustomData,"allowGuideContact",t)},expression:"myCustomData.allowGuideContact"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("允许导购主动联系会员")]),a("span",{staticClass:"font-14 color-909399 p-l-38"},[e._v("注:开启后,可选择导购在 < 我的顾客 > 中是否通过以下方式联系会员")])],1),e._v(" "),e.myCustomData.allowGuideContact?a("div",[a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideMobile,callback:function(t){e.$set(e.myCustomData,"allowGuideMobile",t)},expression:"myCustomData.allowGuideMobile"}},[e._v("电话")]),e._v(" "),a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideMessage,callback:function(t){e.$set(e.myCustomData,"allowGuideMessage",t)},expression:"myCustomData.allowGuideMessage"}},[e._v("短信")]),e._v(" "),a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideOnlineChat,callback:function(t){e.$set(e.myCustomData,"allowGuideOnlineChat",t)},expression:"myCustomData.allowGuideOnlineChat"}},[e._v("消息")])],1):e._e(),e._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submit("showFlag")}}},[e._v("保 存")])],1)]):e._e(),e._v(" "),"third"==e.activeName?a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"condition-wrap font-0"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入分组名称搜索","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeCondition},model:{value:e.conditionObj.classifyName,callback:function(t){e.$set(e.conditionObj,"classifyName",t)},expression:"conditionObj.classifyName"}},[a("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),e._l(e.classifyList,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})],2),e._v(" "),a("el-select",{staticClass:"m-l-10",attrs:{placeholder:"请选择状态"},on:{change:e.changeCondition},model:{value:e.conditionObj.effectiveStatus,callback:function(t){e.$set(e.conditionObj,"effectiveStatus",t)},expression:"conditionObj.effectiveStatus"}},[a("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),a("el-option",{attrs:{label:"有效",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),e._v(" "),e._m(0),e._v(" "),a("div",{staticClass:"m-t-20 m-b-20"},[a("div",{staticClass:"switch-wrap m-t-20"},[a("div",{staticClass:"flex flex-space-between"},[a("div",{staticClass:"flex flex-align-center"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}}),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组到期后,好办移动端将不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer"}},[e._v("会员分组到期后不展示"),a("span",{staticClass:"el-icon-info font-12 color-909399"})])])],1),e._v(" "),a("div",[e.syncDate?a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("最近一次同步时间:"+e._s(e._f("formatTimeStamp")(e.syncDate)))]):e._e(),a("el-button",{attrs:{type:"primary"},on:{click:e.toSync}},[e._v("立即同步")])],1)])])]),e._v(" "),a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberTagGroupClassifyName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),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.memberCount||0)+"人")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])}),e._v(" "),a("el-table-column",{scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"<前提:开启模板消息开关。仅支持专属导购对<我的顾客-会员分组>中的分组下会员发送模板消息>",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[e._v("模板消息设置"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){e.toChangeTemp(a,t.$index,t.row)}},model:{value:t.row.isSendTemplate,callback:function(a){e.$set(t.row,"isSendTemplate",a)},expression:"scope.row.isSendTemplate"}})]}}])}),e._v(" "),a("el-table-column",{scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"仅可编辑能在好办展示的分组",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[e._v("操作"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toEditGroup(t.$index,t.row)}}},[e._v("编辑分组可见范围")])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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()]):e._e(),e._v(" "),2==e.tabType?a("div",[a("online-chat",{attrs:{brandId:e.brandId}})],1):e._e(),e._v(" "),3==e.tabType?a("div",[a("chat-log",{attrs:{brandId:e.brandId,activeGroupId:e.activeGroupId}})],1):e._e(),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"condition-tip m-t-20 m-b-20"},[t("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("注:GIC设置分组后,好办会员分组列表次日刷新,每日刷新一次,仅展示GIC中开启【好办展示】的会员分组")])])])])}]};var C=a("VU/8")(f,v,!1,function(e){a("eBRw")},"data-v-c8ee6a08",null);t.default=C.exports},eBRw:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([46],{"A/XQ":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,n=a("bOdI"),r=a.n(n),s=a("Xxa5"),i=a.n(s),l=a("exGp"),c=a.n(l),u=a("3E4D"),p=a("Ch4/"),d=a("PI0u"),f=a("P9l9"),m={name:"app-detail",components:{},props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeName:"first",activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"会员搜索设置"}],activeId:"1",overTimeSeeFlag:"",conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0}},methods:(o={handleTabClick:function(t,e){var a=this;return c()(i.a.mark(function e(){var o;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=a,"first"!=t.name){e.next=5;break}o.getCustomerSet(o.brandId),e.next=15;break;case 5:if("second"!=t.name){e.next=9;break}o.getShowSet(o.brandId),e.next=15;break;case 9:return e.next=11,o.getGroupClassSet(o.brandId);case 11:return e.next=13,o.getGroupClassify(o.brandId);case 13:return e.next=15,o.getGroupList(o.brandId);case 15:case"end":return e.stop()}},e,a)}))()},toWorkGroupSet:function(){this.$router.push("/workGroupSet?appIcon="+this.$route.query.appIcon)}},r()(o,"toWorkGroupSet",function(){this.workClassShow=!0}),r()(o,"toDel",function(t,e){var a=this;a.$confirm("是否要删除该素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})}),r()(o,"postDel",function(t,e){var a=this,o={materialId:t.materialId};Object(f.e)("/haoban-app-material-web/material-del",o).then(function(t){var e=t.data;if(1==e.errorCode)return u.a.showmsg("删除成功","success"),void a.getTableList();p.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}),r()(o,"toInput",Object(d.a)(function(t,e){this.currentPage=1,this.getGroupList(this.brandId)},500)),r()(o,"clearInput",function(){this.currentPage=1,this.getGroupList(this.brandId)}),r()(o,"changeCondition",function(){this.currentPage=1,this.getGroupList(this.brandId)}),r()(o,"getGroupClassify",function(t){var e=this,a={brandId:t};Object(f.e)("/haoban-app-member-web/memberGroup/get-member-class-list",a).then(function(t){var a=t.data;1!=a.errorCode?p.a.errorMsg(a):e.classifyList=a.result.list||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}),r()(o,"handleSizeChange",function(t){this.pageSize=t,this.getGroupList(this.brandId)}),r()(o,"handleCurrentChange",function(t){this.currentPage=t,this.getGroupList(this.brandId)}),r()(o,"getTableList",function(t){var e=this,a={brandId:t,memberGroupName:e.conditionObj.searchInput,pageNum:e.currentPage,pageSize:e.pageSize};Object(f.e)("/haoban-app-member-web/memberGroup/member-tag-group-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.groupListData=a.result.list||[],void(e.total=a.result.total);p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}),r()(o,"submit",Object(d.a)(function(t){this.setData(t)},500)),o),watch:{brandId:function(t,e){},activeGroupId:function(t,e){t&&(this.activeGroup=t)},tabType:function(t,e){1==t?(this.getShowSet(this.brandId),this.topMenuData=[{id:"1",name:"会员搜索设置"}],this.activeId=1):(this.topMenuData=[{id:"2",name:"在线沟通设置"}],this.activeId="2")}},mounted:function(){this.$emit("showTab","1"),this.brandId&&1!=this.brandId&&this.getCustomerSet(this.brandId)}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",[a("div",{staticClass:"common-detail-tab"},[a("el-tabs",{staticClass:"daily-set-tab",on:{"tab-click":t.handleTabClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"考勤组管理",name:"first"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"班次管理",name:"second"}})],1)],1),t._v(" "),"first"==t.activeName?a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("div",{staticClass:"switch-wrap"},[a("div",{staticClass:"flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入分组名称搜索","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}})],1),t._v(" "),a("div",[a("span",{staticClass:"font-14 color-606266 p-r-10"},[t._v("最近一次同步时间:"+t._s(t._f("formatTimeStamp")(t.syncDate)))]),a("el-button",{attrs:{type:"primary"},on:{click:t.toWorkGroupSet}},[t._v("新建考勤组")])],1)])])]),t._v(" "),a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.groupName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.memberTagGroupClassifyName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(1==e.row.isRealTime?"是":"否"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(1==e.row.updateType?"每日":2==e.row.updateType?"每周":3==e.row.updateType?"每月":"-")+" "+t._s(1==e.row.updateType?"一次":2==e.row.updateType?"周"+e.row.updateDay:3==e.row.updateType?e.row.updateDay+"号":"-")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s("1"==e.row.effectiveStatus?"有效":"失效"))]}}])}),t._v(" "),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.memberCount||0)+"人")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.effectiveDate)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.effectiveDate)))])]}}])}),t._v(" "),a("el-table-column",{scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"<前提:开启模板消息开关。仅支持专属导购对<我的顾客-会员分组>中的分组下会员发送模板消息>",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("模板消息设置"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){t.toChangeTemp(a,e.$index,e.row)}},model:{value:e.row.isSendTemplate,callback:function(a){t.$set(e.row,"isSendTemplate",a)},expression:"scope.row.isSendTemplate"}})]}}])}),t._v(" "),a("el-table-column",{scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"仅可编辑能在好办展示的分组",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("操作"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toEditGroup(e.$index,e.row)}}},[t._v("编辑分组可见范围")])]}}])})],1),t._v(" "),0!=t.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._e(),t._v(" "),"second"==t.activeName?a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("div",{staticClass:"switch-wrap"},[a("div",{staticClass:"flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入分组名称搜索","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}})],1),t._v(" "),a("div",[t.syncDate?a("span",{staticClass:"font-14 color-606266 p-r-10"},[t._v("最近一次同步时间:"+t._s(t._f("formatTimeStamp")(t.syncDate)))]):t._e(),a("el-button",{attrs:{type:"primary"},on:{click:t.toSync}},[t._v("立即同步")])],1)])])]),t._v(" "),a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.groupName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.memberTagGroupClassifyName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(1==e.row.isRealTime?"是":"否"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(1==e.row.updateType?"每日":2==e.row.updateType?"每周":3==e.row.updateType?"每月":"-")+" "+t._s(1==e.row.updateType?"一次":2==e.row.updateType?"周"+e.row.updateDay:3==e.row.updateType?e.row.updateDay+"号":"-")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s("1"==e.row.effectiveStatus?"有效":"失效"))]}}])}),t._v(" "),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.memberCount||0)+"人")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.effectiveDate)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.effectiveDate)))])]}}])}),t._v(" "),a("el-table-column",{scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"<前提:开启模板消息开关。仅支持专属导购对<我的顾客-会员分组>中的分组下会员发送模板消息>",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("模板消息设置"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){t.toChangeTemp(a,e.$index,e.row)}},model:{value:e.row.isSendTemplate,callback:function(a){t.$set(e.row,"isSendTemplate",a)},expression:"scope.row.isSendTemplate"}})]}}])}),t._v(" "),a("el-table-column",{scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"仅可编辑能在好办展示的分组",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("操作"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toEditGroup(e.$index,e.row)}}},[t._v("编辑分组可见范围")])]}}])})],1),t._v(" "),0!=t.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._e()])])},staticRenderFns:[]};var b=a("VU/8")(m,v,!1,function(t){a("UgH6")},"data-v-c296f0ee",null);e.default=b.exports},UgH6:function(t,e){}});
\ No newline at end of file
webpackJsonp([5,53,60,70,77,94],{"1NWy":function(t,e){},"79Bk":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),i("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),i("div",{staticClass:"b-t-1 flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("Dy6z")},"data-v-05d718c8",null);e.default=l.exports},Dy6z:function(t,e){},EWqx:function(t,e){},FdYP:function(t,e){},H8Kg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var l=i("VU/8")(a,s,!1,function(t){i("FdYP")},"data-v-6c75d59f",null);e.default=l.exports},IA9l:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("//Fk"),s=i.n(a),l=i("Gu7T"),n=i.n(l),c=i("gBtx"),o=i.n(c),r=i("mvHQ"),d=i.n(r),m=i("DAYN"),p=i.n(m),u=i("Isrn"),v=i("l46T"),h=i("H8Kg"),f=i("t0b0"),_=i("79Bk"),g=i("s4D+"),y=i("PAYw"),C=i("fPyK"),b=i("3E4D"),I=i("Ch4/"),x=i("PI0u"),w=i("P9l9"),k={name:"customSetTemplate",data:function(){return{activeName:"first",rightName:"second",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},templateId:"",oparateType:"",counter:1,selectKey:"",tradeInfo:[],personInfo:[],goodsInfo:[],competeInfo:[],defineInfo:[],currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[],setList:[],templateObj:{title:"",description:"",storeType:"",momory:[]},storeList:[{id:"0",name:"自营门店",disabled:!1},{id:"1",name:"联营门店",disabled:!1},{id:"2",name:"代理门店",disabled:!1},{id:"3",name:"代销门店",disabled:!1},{id:"4",name:"托管门店",disabled:!1}]}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)},returnBack:function(){this.changeRoute("/customReport?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},cloneItem:function(t){var e=JSON.parse(d()(t));return e.cid="c"+this.counter,e.systemFlag||(e.name.includes("textc")&&(e.name="textc"+this.counter),e.name.includes("paragraphc")&&(e.name="paragraphc"+this.counter),e.name.includes("numberc")&&(e.name="numberc"+this.counter),e.name.includes("checkboxesOrRadioc")&&(e.name="checkboxesOrRadioc"+this.counter),e.name.includes("datec")&&(e.name="datec"+this.counter),e.name.includes("dateareac")&&(e.name="dateareac"+this.counter),e.name.includes("picc")&&(e.name="picc"+this.counter),e.name.includes("introductionc")&&(e.name="introductionc"+this.counter),e.name.includes("pricec")&&(e.name="pricec"+this.counter),e.name.includes("groupc")&&(e.name="groupc"+this.counter,e.title=""+e.title+this.counter)),e},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},onChildMove:function(t){var e=!0;return-1!=t.dragged.className.indexOf("block-class")&&-1!=t.to.className.indexOf("block-wrap")&&(e=!1),e},itemMoveEnd:function(t){var e=this;function i(t){e[t].forEach(function(t,i){t.name==e.selectKey&&(t.fixed=!0)})}e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode),t.children&&t.children.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode)})}),e.selectKey="",e.tempaletDataList=JSON.parse(d()(e.tempaletDataList)),e.$forceUpdate(),e.counter=e.counter+1},selectItem:function(t,e){this.currentIndex=e,this.currentChildIndex=null},deleteItem:function(t,e,i,a){var s=this;if(s.tempaletDataList.splice(i,1),s.currentIndex--,s.currentIndex<=0&&(s.currentIndex=0),!a.systemFlag)return a.name.includes("groupc")&&a.children.length&&a.children.forEach(function(t){t.systemFlag&&s[t.parentCode].forEach(function(e){e.name==t.name&&(e.fixed=!1)})}),!1;s[e].forEach(function(e,i){e.name==t&&(e.fixed=!1)})},addDragItem:function(t){return!1},selectChildItem:function(t,e,i,a){this.currentIndex=null,this.currentChildKey=t,this.childIndex=e,this.currentChildIndex=i},deleteChildItem:function(t,e,i,a,s){if(this.childIndex=e,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[e].children[i].name,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(d()(this.tempaletDataList)),this.tempaletDataList[e].children.splice(i,1),!s.systemFlag)return!1;this[s.parentCode].forEach(function(e,i){e.name===t&&(e.fixed=!1)})},delChildItem:function(t,e,i){i.list.splice(e,1)},addChildItem:function(t,e,i){if(19!=e){i.list.push({value:"选项"+(e+2),key:e+2});var a=i.list.map(function(t){return t.value});this.isRepeat(a)&&(i.list.splice(i.list.length-1,1),a.splice(i.list.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeMust:function(t,e,i){e&&i.list.forEach(function(e){e.isMust=!!t})},isRepeat:function(t){var e={};for(var i in t){if(e[t[i]])return!0;e[t[i]]=!0}return!1},changeRoute:function(t){this.$router.push(t)},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},i=[];return t.forEach(function(t){if(""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title),t.hasOwnProperty("children")&&t.children.length&&t.children.forEach(function(t){if(t.systemFlag&&""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title)})}),this.isRepeat(i)&&(e.filedRepeat=!0),e},checkTemplateObj:function(){var t=!0;return this.templateObj.title&&this.templateObj.description&&this.templateObj.storeType||(t=!1),t},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(x.a)(function(t){if(!this.checkTemplateObj())return this.$message.error({duration:1e3,message:"请完善模板设置内容"}),!1;var e=JSON.parse(d()(this.tempaletDataList)),i=this.checkTag(e);if(!i.filedFlag)return this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"}),!1;if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(e.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0),t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("children")&&(t.children.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0)}),t.list=t.children)}),!e.length)return this.$message.error({duration:1e3,message:"请先配置字段"}),!1;"save"===t?this.saveAllData(e):this.postPreview(e)}},500),saveAllData:function(t){var e=this,i={status:1,brandId:e.brandId,templateContent:d()(t),title:e.templateObj.title,description:e.templateObj.description,storeType:e.templateObj.storeType,memory:[]};Object(w.e)("/haoban-app-daily-web/daily/save-define-template",i).then(function(t){var i=t.data;if(1==i.errorCode)return b.a.showmsg("保存成功","success"),void e.changeRoute("/customReport?brandId="+e.brandId+"&appIcon="+e.$route.query.appIcon);I.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,i={templateType:1,brandId:e.brandId,templateContent:d()(t)};Object(w.e)("/haoban-app-daily-web/daily/preview-template",i).then(function(t){var i=t.data;if(1==i.errorCode){var a=JSON.parse(localStorage.getItem("userInfo")).enterpriseId,s=window.location.origin+"/office-mobile/#/defineTemplate?enterpriseId="+a+"&templateId="+i.result+"&brandId="+e.brandId;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}I.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getHasStores:function(){var t=this;Object(w.e)("/haoban-app-daily-web/daily/has-defined-template-store-type",{brandId:t.brandId}).then(function(e){var i=e.data;1!=i.errorCode?I.a.errorMsg(i):t.storeList.forEach(function(e){i.result&&i.result.length&&i.result.includes(o()(e.id))&&(e.disabled=!0),"edit"==t.oparateType&&t.storeType==e.id&&(e.disabled=!1)})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAllFields:function(t){var e=this;Object(w.e)("/haoban-app-daily-web/daily/get-template-items",{brandId:e.brandId,type:t}).then(function(i){var a=i.data;if(1==a.errorCode)return a.result.forEach(function(e){e.isMust=!!e.isMust,e.memory=!!e.memory,e.title=e.title.trim(),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=!!e.openCapitalize),e.hasOwnProperty("list")&&e.list&&e.list.length&&e.list.forEach(function(t){t.isMust=!!t.isMust}),e.systemFlag=3!=t,e.name.includes("groupc")&&(e.children=[])}),void(3==t?e.defineInfo=a.result:e.handleAllFields(a.result));I.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t){t.fixed=!1,1==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),2==t.classify&&(t.parentCode="personInfo",e.personInfo.push(t)),3==t.classify&&(t.parentCode="goodsInfo",e.goodsInfo.push(t)),4==t.classify&&(t.parentCode="competeInfo",e.competeInfo.push(t))})},getInfo:function(){var t=this;Object(w.e)("/haoban-app-daily-web/daily/get-define-template",{templateId:t.templateId}).then(function(e){var i=e.data;if(1==i.errorCode)return t.setList=[],i.result&&(t.templateObj.title=i.result.title,t.templateObj.description=i.result.description,t.storeType="edit"==t.oparateType?String(i.result.storeType):"",t.templateObj.storeType="edit"==t.oparateType?String(i.result.storeType):"",i.result.templateContent&&i.result.templateContent.length&&t.handleGetInfo(i.result.templateContent)),void t.getHasStores();I.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},treeData:function(t){var e=t.filter(function(e){var i=t.filter(function(t){return e.fieldCode==t.parentCode});return i.length>0&&(e.children=i),0==e.parentCode});return e.sort(function(t,e){return t.sort-e.sort}),e.forEach(function(t,e){t.children.sort(function(t,e){return t.sort-e.sort})}),e},handleGetInfo:function(t){var e=this,i=JSON.parse(d()(t));e.cids=[],e.setParent=[],i.forEach(function(t,i){t.title=t.title.trim(),t.isMust=!!t.isMust,t.memory=!!t.memory,t.name.includes("textc")||t.name.includes("paragraphc")||t.name.includes("numberc")||t.name.includes("checkboxesOrRadioc")||t.name.includes("datec")||t.name.includes("dateareac")||t.name.includes("picc")||t.name.includes("introductionc")||t.name.includes("pricec")||t.name.includes("groupc")?(t.systemFlag=!1,t.parentCode="defineInfo"):(e.setParent.push(t.name),t.systemFlag=!0,1==t.classify&&(t.parentCode="tradeInfo"),2==t.classify&&(t.parentCode="personInfo"),3==t.classify&&(t.parentCode="goodsInfo"),4==t.classify&&(t.parentCode="competeInfo")),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=!!t.openCapitalize),t.hasOwnProperty("list")&&t.list&&t.list.length&&(t.list.forEach(function(i){(i.isMust=!!i.isMust,t.name.includes("groupc"))&&(i.isMust=!!i.isMust,i.memory=!!i.memory,i.name.includes("textc")||i.name.includes("paragraphc")||i.name.includes("numberc")||i.name.includes("checkboxesOrRadioc")||i.name.includes("datec")||i.name.includes("dateareac")||i.name.includes("picc")||i.name.includes("introductionc")||i.name.includes("pricec")||i.name.includes("groupc")?i.systemFlag=!1:(e.setParent.push(i.name),i.systemFlag=!0,1==i.classify&&(i.parentCode="tradeInfo"),2==i.classify&&(i.parentCode="personInfo"),3==i.classify&&(i.parentCode="goodsInfo"),4==i.classify&&(i.parentCode="competeInfo")))}),t.name.includes("groupc")&&(t.children=t.list)),e.cids.push(o()(t.cid.match(/\d+/g))),t.hasOwnProperty("children")&&t.children.forEach(function(t){t.isMust=!!t.isMust,t.memory=!!t.memory,e.cids.push(o()(t.cid.match(/\d+/g)))})}),e.counter=Math.max.apply(Math,n()(e.cids)),e.tempaletDataList=i,setTimeout(function(){e.setFixed()},500)},setFixed:function(){var t=this;["tradeInfo","personInfo","goodsInfo","competeInfo"].forEach(function(e){t[e].forEach(function(e){t.setParent.includes(e.name)&&(e.fixed=!0)})})}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})}},components:{draggable:p.a,AddInput:u.a,limitInput:v.a,imageCom:h.default,selectCom:f.default,dateRangeCom:_.default,inputCom:g.default,blockCom:y.default,qrcodeDialog:C.a},mounted:function(){var t=this,e=t.$route.query;t.brandId=t.$route.query.brandId,s.a.all([t.getAllFields(2)]).then(function(i){t.getAllFields(3),e.hasOwnProperty("templateId")?(t.templateId=e.templateId,t.oparateType=e.type,t.getInfo()):t.getHasStores()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}}},T={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"template-wrap",style:{height:t.bodyHeight}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-head"},[t._m(0),t._v(" "),a("div",{staticClass:"template-btns flex-1 flex-r"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.saveAndBack("preview")}}},[t._v("预 览")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.returnBack}},[t._v("返 回")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.saveAndBack("save")}}},[t._v("保存并启用")])],1)]),t._v(" "),a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-l"},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[a("div",{staticClass:"filed-item-title"},[t._v("交易")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.tradeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("人员")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.personInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.personInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("商品")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.goodsInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.goodsInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("竞品")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.competeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.competeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1)]),t._v(" "),a("el-tab-pane",{attrs:{label:"自定义字段",name:"second"}},[a("div",{staticClass:"filed-item-title"}),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.defineInfo,options:t.leftDefineOption,clone:t.cloneItem,move:t.onChildMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.defineInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":"",11==e.type?"block-class":""],attrs:{"data-type":e.fieldCode}},[0==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),1==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),2==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),3==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),4==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),5==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),6==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),7==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),9==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),10==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),11==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),0==e.type?a("i",{staticClass:"bg-icon bg-icon-one"}):t._e(),t._v(" "),1==e.type?a("i",{staticClass:"bg-icon bg-icon-two"}):t._e(),t._v(" "),2==e.type?a("i",{staticClass:"bg-icon bg-icon-three"}):t._e(),t._v(" "),3==e.type?a("i",{staticClass:"bg-icon bg-icon-four"}):t._e(),t._v(" "),4==e.type?a("i",{staticClass:"bg-icon bg-icon-five"}):t._e(),t._v(" "),5==e.type?a("i",{staticClass:"bg-icon bg-icon-six"}):t._e(),t._v(" "),6==e.type?a("i",{staticClass:"bg-icon bg-icon-seven"}):t._e(),t._v(" "),7==e.type?a("i",{staticClass:"bg-icon bg-icon-eight"}):t._e(),t._v(" "),9==e.type?a("i",{staticClass:"bg-icon bg-icon-ten"}):t._e(),t._v(" "),10==e.type?a("i",{staticClass:"bg-icon bg-icon-eleven"}):t._e(),t._v(" "),11==e.type?a("i",{staticClass:"bg-icon bg-icon-twelve"}):t._e()])}))],1)])],1)],1),t._v(" "),a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[a("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:t._e(),t._v(" "),a("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,i){return a("li",{key:"li1"+i,class:["filed-item",t.currentIndex==i?"active-item":"","li-block"],on:{click:function(a){t.selectItem(e.fieldCode,i)}}},["baseInfo"!=e.fieldCode?a("span",{staticClass:"item-close p-item-close",on:{click:function(a){a.stopPropagation(),t.deleteItem(e.name,e.parentCode,i,e)}}},[a("i",{staticClass:"el-icon-close"})]):t._e(),t._v(" "),e.systemFlag||!e.name.includes("groupc")?a("div",[1==e.type||2==e.type||3==e.type||10==e.type||9==e.type?a("input-com",{attrs:{childItem:e}}):t._e(),t._v(" "),4==e.type||5==e.type?a("select-com",{attrs:{childItem:e}}):t._e(),t._v(" "),6==e.type?a("date-range-com",{attrs:{childItem:e}}):t._e(),t._v(" "),7==e.type?a("image-com",{attrs:{childItem:e}}):t._e(),t._v(" "),"11"==e.type?a("block-com",{attrs:{childItem:e}}):t._e()],1):t._e(),t._v(" "),[e.name.includes("groupc")?a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",t.getZhLen(e.title)>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]),t._v(" "),a("ul",{staticClass:"view-content"},[a("draggable",{class:["drag-wrap","block-wrap",e.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:t.addDragItem},model:{value:e.children,callback:function(i){t.$set(e,"children",i)},expression:"item.children"}},t._l(e.children,function(s,l){return a("li",{key:"li"+l,class:["filed-item","child-filed-item",t.currentChildKey==s.name&&t.currentChildIndex==l?"active-item":""],on:{click:function(a){a.stopPropagation(),t.selectChildItem(s.name,i,l,e.children)}}},[a("span",{staticClass:"item-close child-item-close",on:{click:function(a){a.stopPropagation(),t.deleteChildItem(s.name,i,l,e.children,s)}}},[a("i",{staticClass:"el-icon-close"})]),t._v(" "),4==s.type||5==s.type?a("select-com",{attrs:{childItem:s}}):t._e(),t._v(" "),6==s.type?a("date-range-com",{attrs:{childItem:s}}):t._e(),t._v(" "),7==s.type?a("image-com",{attrs:{childItem:s}}):t._e(),t._v(" "),1==s.type||2==s.type||3==s.type||10==s.type||9==s.type?a("input-com",{attrs:{childItem:s}}):t._e(),t._v(" "),"11"==s.type&&s.systemFlag?a("block-com",{attrs:{childItem:s}}):t._e()],1)}))],1)]):t._e()]],2)}))],2)])])])])]),t._v(" "),a("div",{staticClass:"template-cell template-cell-r define-template-tab"},[a("el-tabs",{model:{value:t.rightName,callback:function(e){t.rightName=e},expression:"rightName"}},[a("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[a("div",{attrs:{id:"edit-box"}},[a("div",{staticClass:"edit-view baby-info-flag baby-info"},[t._l(t.tempaletDataList,function(e,i){return[t.currentIndex!=i||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child62"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child64"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||11==e.type||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child11"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child111"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(s,l){return[a("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:s.value,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(e){t.$set(s,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){t.delChildItem(i,l,e)}}}):t._e(),t._v(" "),!e.systemFlag&&l<19?[l==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){t.addChildItem(i,l,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"parent22"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentIndex!=i||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child117"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||10!=e.type?t._e():[a("div",{key:"parent210"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"item.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent2"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"item.isMust"}},[t._v("必填")])],1)],t._v(" "),t.currentIndex!=i||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"parent21"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}))])],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent3"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"item.memory"}},[t._v("是否记忆")])],1)],t._v(" "),t.childIndex==i&&e.children&&e.children.length?[t._l(e.children,function(e,s){return[t.currentChildIndex!=s||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child2"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child4"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字")]):t._e()],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child6"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"unit",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child7"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child9"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(s,l){return[a("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:s.value,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(e){t.$set(s,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){t.delChildItem(i,l,e)}}}):t._e(),t._v(" "),!e.systemFlag&&l<19?[l==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){t.addChildItem(i,l,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"child922"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentChildIndex!=s||e.systemFlag||10!=e.type?t._e():[a("div",{key:"child910"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"childItem.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentChildIndex==s?[a("div",{key:"child11"+s,staticClass:"edit-item"},[a("div",{staticClass:"edit-item-title"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"childItem.isMust"}},[t._v("必填")])],1)]:t._e(),t._v(" "),t.currentChildIndex!=s||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"child111"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list111"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}))])],t._v(" "),t.currentChildIndex==s?[a("div",{key:"child12"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"childItem.memory"}},[t._v("是否记忆")])],1)]:t._e()]})]:t._e()]})],2)])]),t._v(" "),a("el-tab-pane",{attrs:{label:"模板设置",name:"second"}},[a("div",{staticClass:"template-item limit-w-340"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("模板名称 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.templateObj.title,holder:"",disflag:!1,getByType:"word",maxLength:10},on:{"update:inputValue":function(e){t.$set(t.templateObj,"title",e)}}})],1),t._v(" "),a("div",{staticClass:"template-item limit-w-340"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("模板描述 最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.templateObj.description,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(e){t.$set(t.templateObj,"description",e)}}})],1),t._v(" "),a("div",{staticClass:"template-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("门店类型")]),t._v(" "),a("div",{staticClass:"store-type-list"},t._l(t.storeList,function(e,i){return a("div",{key:e.name+i,staticClass:"store-type-cell m-b-20"},[a("el-radio",{attrs:{label:e.id,disabled:e.disabled},model:{value:t.templateObj.storeType,callback:function(e){t.$set(t.templateObj,"storeType",e)},expression:"templateObj.storeType"}},[t._v(t._s(e.name))])],1)}))])])],1)],1)])]),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("img",{attrs:{src:i("LbEI"),alt:"logo"}}),this._v(" "),e("span",{staticClass:"template-title-span"},[this._v("日报设置")])])}]};var M=i("VU/8")(k,T,!1,function(t){i("EWqx")},"data-v-fe6d56f6",null);e.default=M.exports},PAYw:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,a){return i("li",{key:"performance"+a,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])})),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("1NWy")},"data-v-97f6d394",null);e.default=l.exports},"fIe/":function(t,e){},lpYn:function(t,e){},"s4D+":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("lpYn")},"data-v-51432d8f",null);e.default=l.exports},t0b0:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("fIe/")},"data-v-3fd29910",null);e.default=l.exports}}); webpackJsonp([5,54,61,71,78,95],{"1NWy":function(t,e){},"79Bk":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),i("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),i("div",{staticClass:"b-t-1 flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("Dy6z")},"data-v-05d718c8",null);e.default=l.exports},Dy6z:function(t,e){},EWqx:function(t,e){},FdYP:function(t,e){},H8Kg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var l=i("VU/8")(a,s,!1,function(t){i("FdYP")},"data-v-6c75d59f",null);e.default=l.exports},IA9l:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("//Fk"),s=i.n(a),l=i("Gu7T"),n=i.n(l),c=i("gBtx"),o=i.n(c),r=i("mvHQ"),d=i.n(r),m=i("DAYN"),p=i.n(m),u=i("Isrn"),v=i("l46T"),h=i("H8Kg"),f=i("t0b0"),_=i("79Bk"),g=i("s4D+"),y=i("PAYw"),C=i("fPyK"),b=i("3E4D"),I=i("Ch4/"),x=i("PI0u"),w=i("P9l9"),k={name:"customSetTemplate",data:function(){return{activeName:"first",rightName:"second",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},templateId:"",oparateType:"",counter:1,selectKey:"",tradeInfo:[],personInfo:[],goodsInfo:[],competeInfo:[],defineInfo:[],currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[],setList:[],templateObj:{title:"",description:"",storeType:"",momory:[]},storeList:[{id:"0",name:"自营门店",disabled:!1},{id:"1",name:"联营门店",disabled:!1},{id:"2",name:"代理门店",disabled:!1},{id:"3",name:"代销门店",disabled:!1},{id:"4",name:"托管门店",disabled:!1}]}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)},returnBack:function(){this.changeRoute("/customReport?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},cloneItem:function(t){var e=JSON.parse(d()(t));return e.cid="c"+this.counter,e.systemFlag||(e.name.includes("textc")&&(e.name="textc"+this.counter),e.name.includes("paragraphc")&&(e.name="paragraphc"+this.counter),e.name.includes("numberc")&&(e.name="numberc"+this.counter),e.name.includes("checkboxesOrRadioc")&&(e.name="checkboxesOrRadioc"+this.counter),e.name.includes("datec")&&(e.name="datec"+this.counter),e.name.includes("dateareac")&&(e.name="dateareac"+this.counter),e.name.includes("picc")&&(e.name="picc"+this.counter),e.name.includes("introductionc")&&(e.name="introductionc"+this.counter),e.name.includes("pricec")&&(e.name="pricec"+this.counter),e.name.includes("groupc")&&(e.name="groupc"+this.counter,e.title=""+e.title+this.counter)),e},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},onChildMove:function(t){var e=!0;return-1!=t.dragged.className.indexOf("block-class")&&-1!=t.to.className.indexOf("block-wrap")&&(e=!1),e},itemMoveEnd:function(t){var e=this;function i(t){e[t].forEach(function(t,i){t.name==e.selectKey&&(t.fixed=!0)})}e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode),t.children&&t.children.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode)})}),e.selectKey="",e.tempaletDataList=JSON.parse(d()(e.tempaletDataList)),e.$forceUpdate(),e.counter=e.counter+1},selectItem:function(t,e){this.currentIndex=e,this.currentChildIndex=null},deleteItem:function(t,e,i,a){var s=this;if(s.tempaletDataList.splice(i,1),s.currentIndex--,s.currentIndex<=0&&(s.currentIndex=0),!a.systemFlag)return a.name.includes("groupc")&&a.children.length&&a.children.forEach(function(t){t.systemFlag&&s[t.parentCode].forEach(function(e){e.name==t.name&&(e.fixed=!1)})}),!1;s[e].forEach(function(e,i){e.name==t&&(e.fixed=!1)})},addDragItem:function(t){return!1},selectChildItem:function(t,e,i,a){this.currentIndex=null,this.currentChildKey=t,this.childIndex=e,this.currentChildIndex=i},deleteChildItem:function(t,e,i,a,s){if(this.childIndex=e,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[e].children[i].name,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(d()(this.tempaletDataList)),this.tempaletDataList[e].children.splice(i,1),!s.systemFlag)return!1;this[s.parentCode].forEach(function(e,i){e.name===t&&(e.fixed=!1)})},delChildItem:function(t,e,i){i.list.splice(e,1)},addChildItem:function(t,e,i){if(19!=e){i.list.push({value:"选项"+(e+2),key:e+2});var a=i.list.map(function(t){return t.value});this.isRepeat(a)&&(i.list.splice(i.list.length-1,1),a.splice(i.list.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeMust:function(t,e,i){e&&i.list.forEach(function(e){e.isMust=!!t})},isRepeat:function(t){var e={};for(var i in t){if(e[t[i]])return!0;e[t[i]]=!0}return!1},changeRoute:function(t){this.$router.push(t)},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},i=[];return t.forEach(function(t){if(""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title),t.hasOwnProperty("children")&&t.children.length&&t.children.forEach(function(t){if(t.systemFlag&&""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title)})}),this.isRepeat(i)&&(e.filedRepeat=!0),e},checkTemplateObj:function(){var t=!0;return this.templateObj.title&&this.templateObj.description&&this.templateObj.storeType||(t=!1),t},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(x.a)(function(t){if(!this.checkTemplateObj())return this.$message.error({duration:1e3,message:"请完善模板设置内容"}),!1;var e=JSON.parse(d()(this.tempaletDataList)),i=this.checkTag(e);if(!i.filedFlag)return this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"}),!1;if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(e.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0),t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("children")&&(t.children.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0)}),t.list=t.children)}),!e.length)return this.$message.error({duration:1e3,message:"请先配置字段"}),!1;"save"===t?this.saveAllData(e):this.postPreview(e)}},500),saveAllData:function(t){var e=this,i={status:1,brandId:e.brandId,templateContent:d()(t),title:e.templateObj.title,description:e.templateObj.description,storeType:e.templateObj.storeType,memory:[]};Object(w.e)("/haoban-app-daily-web/daily/save-define-template",i).then(function(t){var i=t.data;if(1==i.errorCode)return b.a.showmsg("保存成功","success"),void e.changeRoute("/customReport?brandId="+e.brandId+"&appIcon="+e.$route.query.appIcon);I.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,i={templateType:1,brandId:e.brandId,templateContent:d()(t)};Object(w.e)("/haoban-app-daily-web/daily/preview-template",i).then(function(t){var i=t.data;if(1==i.errorCode){var a=JSON.parse(localStorage.getItem("userInfo")).enterpriseId,s=window.location.origin+"/office-mobile/#/defineTemplate?enterpriseId="+a+"&templateId="+i.result+"&brandId="+e.brandId;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}I.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getHasStores:function(){var t=this;Object(w.e)("/haoban-app-daily-web/daily/has-defined-template-store-type",{brandId:t.brandId}).then(function(e){var i=e.data;1!=i.errorCode?I.a.errorMsg(i):t.storeList.forEach(function(e){i.result&&i.result.length&&i.result.includes(o()(e.id))&&(e.disabled=!0),"edit"==t.oparateType&&t.storeType==e.id&&(e.disabled=!1)})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAllFields:function(t){var e=this;Object(w.e)("/haoban-app-daily-web/daily/get-template-items",{brandId:e.brandId,type:t}).then(function(i){var a=i.data;if(1==a.errorCode)return a.result.forEach(function(e){e.isMust=!!e.isMust,e.memory=!!e.memory,e.title=e.title.trim(),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=!!e.openCapitalize),e.hasOwnProperty("list")&&e.list&&e.list.length&&e.list.forEach(function(t){t.isMust=!!t.isMust}),e.systemFlag=3!=t,e.name.includes("groupc")&&(e.children=[])}),void(3==t?e.defineInfo=a.result:e.handleAllFields(a.result));I.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t){t.fixed=!1,1==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),2==t.classify&&(t.parentCode="personInfo",e.personInfo.push(t)),3==t.classify&&(t.parentCode="goodsInfo",e.goodsInfo.push(t)),4==t.classify&&(t.parentCode="competeInfo",e.competeInfo.push(t))})},getInfo:function(){var t=this;Object(w.e)("/haoban-app-daily-web/daily/get-define-template",{templateId:t.templateId}).then(function(e){var i=e.data;if(1==i.errorCode)return t.setList=[],i.result&&(t.templateObj.title=i.result.title,t.templateObj.description=i.result.description,t.storeType="edit"==t.oparateType?String(i.result.storeType):"",t.templateObj.storeType="edit"==t.oparateType?String(i.result.storeType):"",i.result.templateContent&&i.result.templateContent.length&&t.handleGetInfo(i.result.templateContent)),void t.getHasStores();I.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},treeData:function(t){var e=t.filter(function(e){var i=t.filter(function(t){return e.fieldCode==t.parentCode});return i.length>0&&(e.children=i),0==e.parentCode});return e.sort(function(t,e){return t.sort-e.sort}),e.forEach(function(t,e){t.children.sort(function(t,e){return t.sort-e.sort})}),e},handleGetInfo:function(t){var e=this,i=JSON.parse(d()(t));e.cids=[],e.setParent=[],i.forEach(function(t,i){t.title=t.title.trim(),t.isMust=!!t.isMust,t.memory=!!t.memory,t.name.includes("textc")||t.name.includes("paragraphc")||t.name.includes("numberc")||t.name.includes("checkboxesOrRadioc")||t.name.includes("datec")||t.name.includes("dateareac")||t.name.includes("picc")||t.name.includes("introductionc")||t.name.includes("pricec")||t.name.includes("groupc")?(t.systemFlag=!1,t.parentCode="defineInfo"):(e.setParent.push(t.name),t.systemFlag=!0,1==t.classify&&(t.parentCode="tradeInfo"),2==t.classify&&(t.parentCode="personInfo"),3==t.classify&&(t.parentCode="goodsInfo"),4==t.classify&&(t.parentCode="competeInfo")),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=!!t.openCapitalize),t.hasOwnProperty("list")&&t.list&&t.list.length&&(t.list.forEach(function(i){(i.isMust=!!i.isMust,t.name.includes("groupc"))&&(i.isMust=!!i.isMust,i.memory=!!i.memory,i.name.includes("textc")||i.name.includes("paragraphc")||i.name.includes("numberc")||i.name.includes("checkboxesOrRadioc")||i.name.includes("datec")||i.name.includes("dateareac")||i.name.includes("picc")||i.name.includes("introductionc")||i.name.includes("pricec")||i.name.includes("groupc")?i.systemFlag=!1:(e.setParent.push(i.name),i.systemFlag=!0,1==i.classify&&(i.parentCode="tradeInfo"),2==i.classify&&(i.parentCode="personInfo"),3==i.classify&&(i.parentCode="goodsInfo"),4==i.classify&&(i.parentCode="competeInfo")))}),t.name.includes("groupc")&&(t.children=t.list)),e.cids.push(o()(t.cid.match(/\d+/g))),t.hasOwnProperty("children")&&t.children.forEach(function(t){t.isMust=!!t.isMust,t.memory=!!t.memory,e.cids.push(o()(t.cid.match(/\d+/g)))})}),e.counter=Math.max.apply(Math,n()(e.cids)),e.tempaletDataList=i,setTimeout(function(){e.setFixed()},500)},setFixed:function(){var t=this;["tradeInfo","personInfo","goodsInfo","competeInfo"].forEach(function(e){t[e].forEach(function(e){t.setParent.includes(e.name)&&(e.fixed=!0)})})}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})}},components:{draggable:p.a,AddInput:u.a,limitInput:v.a,imageCom:h.default,selectCom:f.default,dateRangeCom:_.default,inputCom:g.default,blockCom:y.default,qrcodeDialog:C.a},mounted:function(){var t=this,e=t.$route.query;t.brandId=t.$route.query.brandId,s.a.all([t.getAllFields(2)]).then(function(i){t.getAllFields(3),e.hasOwnProperty("templateId")?(t.templateId=e.templateId,t.oparateType=e.type,t.getInfo()):t.getHasStores()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}}},T={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"template-wrap",style:{height:t.bodyHeight}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-head"},[t._m(0),t._v(" "),a("div",{staticClass:"template-btns flex-1 flex-r"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.saveAndBack("preview")}}},[t._v("预 览")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.returnBack}},[t._v("返 回")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.saveAndBack("save")}}},[t._v("保存并启用")])],1)]),t._v(" "),a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-l"},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[a("div",{staticClass:"filed-item-title"},[t._v("交易")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.tradeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("人员")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.personInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.personInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("商品")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.goodsInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.goodsInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("竞品")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.competeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.competeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1)]),t._v(" "),a("el-tab-pane",{attrs:{label:"自定义字段",name:"second"}},[a("div",{staticClass:"filed-item-title"}),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.defineInfo,options:t.leftDefineOption,clone:t.cloneItem,move:t.onChildMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.defineInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":"",11==e.type?"block-class":""],attrs:{"data-type":e.fieldCode}},[0==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),1==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),2==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),3==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),4==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),5==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),6==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),7==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),9==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),10==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),11==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),0==e.type?a("i",{staticClass:"bg-icon bg-icon-one"}):t._e(),t._v(" "),1==e.type?a("i",{staticClass:"bg-icon bg-icon-two"}):t._e(),t._v(" "),2==e.type?a("i",{staticClass:"bg-icon bg-icon-three"}):t._e(),t._v(" "),3==e.type?a("i",{staticClass:"bg-icon bg-icon-four"}):t._e(),t._v(" "),4==e.type?a("i",{staticClass:"bg-icon bg-icon-five"}):t._e(),t._v(" "),5==e.type?a("i",{staticClass:"bg-icon bg-icon-six"}):t._e(),t._v(" "),6==e.type?a("i",{staticClass:"bg-icon bg-icon-seven"}):t._e(),t._v(" "),7==e.type?a("i",{staticClass:"bg-icon bg-icon-eight"}):t._e(),t._v(" "),9==e.type?a("i",{staticClass:"bg-icon bg-icon-ten"}):t._e(),t._v(" "),10==e.type?a("i",{staticClass:"bg-icon bg-icon-eleven"}):t._e(),t._v(" "),11==e.type?a("i",{staticClass:"bg-icon bg-icon-twelve"}):t._e()])}))],1)])],1)],1),t._v(" "),a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[a("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:t._e(),t._v(" "),a("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,i){return a("li",{key:"li1"+i,class:["filed-item",t.currentIndex==i?"active-item":"","li-block"],on:{click:function(a){t.selectItem(e.fieldCode,i)}}},["baseInfo"!=e.fieldCode?a("span",{staticClass:"item-close p-item-close",on:{click:function(a){a.stopPropagation(),t.deleteItem(e.name,e.parentCode,i,e)}}},[a("i",{staticClass:"el-icon-close"})]):t._e(),t._v(" "),e.systemFlag||!e.name.includes("groupc")?a("div",[1==e.type||2==e.type||3==e.type||10==e.type||9==e.type?a("input-com",{attrs:{childItem:e}}):t._e(),t._v(" "),4==e.type||5==e.type?a("select-com",{attrs:{childItem:e}}):t._e(),t._v(" "),6==e.type?a("date-range-com",{attrs:{childItem:e}}):t._e(),t._v(" "),7==e.type?a("image-com",{attrs:{childItem:e}}):t._e(),t._v(" "),"11"==e.type?a("block-com",{attrs:{childItem:e}}):t._e()],1):t._e(),t._v(" "),[e.name.includes("groupc")?a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",t.getZhLen(e.title)>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]),t._v(" "),a("ul",{staticClass:"view-content"},[a("draggable",{class:["drag-wrap","block-wrap",e.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:t.addDragItem},model:{value:e.children,callback:function(i){t.$set(e,"children",i)},expression:"item.children"}},t._l(e.children,function(s,l){return a("li",{key:"li"+l,class:["filed-item","child-filed-item",t.currentChildKey==s.name&&t.currentChildIndex==l?"active-item":""],on:{click:function(a){a.stopPropagation(),t.selectChildItem(s.name,i,l,e.children)}}},[a("span",{staticClass:"item-close child-item-close",on:{click:function(a){a.stopPropagation(),t.deleteChildItem(s.name,i,l,e.children,s)}}},[a("i",{staticClass:"el-icon-close"})]),t._v(" "),4==s.type||5==s.type?a("select-com",{attrs:{childItem:s}}):t._e(),t._v(" "),6==s.type?a("date-range-com",{attrs:{childItem:s}}):t._e(),t._v(" "),7==s.type?a("image-com",{attrs:{childItem:s}}):t._e(),t._v(" "),1==s.type||2==s.type||3==s.type||10==s.type||9==s.type?a("input-com",{attrs:{childItem:s}}):t._e(),t._v(" "),"11"==s.type&&s.systemFlag?a("block-com",{attrs:{childItem:s}}):t._e()],1)}))],1)]):t._e()]],2)}))],2)])])])])]),t._v(" "),a("div",{staticClass:"template-cell template-cell-r define-template-tab"},[a("el-tabs",{model:{value:t.rightName,callback:function(e){t.rightName=e},expression:"rightName"}},[a("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[a("div",{attrs:{id:"edit-box"}},[a("div",{staticClass:"edit-view baby-info-flag baby-info"},[t._l(t.tempaletDataList,function(e,i){return[t.currentIndex!=i||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child62"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child64"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||11==e.type||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child11"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child111"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(s,l){return[a("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:s.value,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(e){t.$set(s,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){t.delChildItem(i,l,e)}}}):t._e(),t._v(" "),!e.systemFlag&&l<19?[l==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){t.addChildItem(i,l,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"parent22"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentIndex!=i||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child117"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||10!=e.type?t._e():[a("div",{key:"parent210"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"item.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent2"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"item.isMust"}},[t._v("必填")])],1)],t._v(" "),t.currentIndex!=i||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"parent21"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}))])],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent3"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"item.memory"}},[t._v("是否记忆")])],1)],t._v(" "),t.childIndex==i&&e.children&&e.children.length?[t._l(e.children,function(e,s){return[t.currentChildIndex!=s||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child2"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child4"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字")]):t._e()],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child6"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"unit",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child7"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child9"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(s,l){return[a("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:s.value,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(e){t.$set(s,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){t.delChildItem(i,l,e)}}}):t._e(),t._v(" "),!e.systemFlag&&l<19?[l==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){t.addChildItem(i,l,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"child922"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentChildIndex!=s||e.systemFlag||10!=e.type?t._e():[a("div",{key:"child910"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"childItem.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentChildIndex==s?[a("div",{key:"child11"+s,staticClass:"edit-item"},[a("div",{staticClass:"edit-item-title"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"childItem.isMust"}},[t._v("必填")])],1)]:t._e(),t._v(" "),t.currentChildIndex!=s||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"child111"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list111"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}))])],t._v(" "),t.currentChildIndex==s?[a("div",{key:"child12"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"childItem.memory"}},[t._v("是否记忆")])],1)]:t._e()]})]:t._e()]})],2)])]),t._v(" "),a("el-tab-pane",{attrs:{label:"模板设置",name:"second"}},[a("div",{staticClass:"template-item limit-w-340"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("模板名称 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.templateObj.title,holder:"",disflag:!1,getByType:"word",maxLength:10},on:{"update:inputValue":function(e){t.$set(t.templateObj,"title",e)}}})],1),t._v(" "),a("div",{staticClass:"template-item limit-w-340"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("模板描述 最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.templateObj.description,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(e){t.$set(t.templateObj,"description",e)}}})],1),t._v(" "),a("div",{staticClass:"template-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("门店类型")]),t._v(" "),a("div",{staticClass:"store-type-list"},t._l(t.storeList,function(e,i){return a("div",{key:e.name+i,staticClass:"store-type-cell m-b-20"},[a("el-radio",{attrs:{label:e.id,disabled:e.disabled},model:{value:t.templateObj.storeType,callback:function(e){t.$set(t.templateObj,"storeType",e)},expression:"templateObj.storeType"}},[t._v(t._s(e.name))])],1)}))])])],1)],1)])]),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("img",{attrs:{src:i("LbEI"),alt:"logo"}}),this._v(" "),e("span",{staticClass:"template-title-span"},[this._v("日报设置")])])}]};var M=i("VU/8")(k,T,!1,function(t){i("EWqx")},"data-v-fe6d56f6",null);e.default=M.exports},PAYw:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,a){return i("li",{key:"performance"+a,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])})),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("1NWy")},"data-v-97f6d394",null);e.default=l.exports},"fIe/":function(t,e){},lpYn:function(t,e){},"s4D+":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("lpYn")},"data-v-51432d8f",null);e.default=l.exports},t0b0:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("fIe/")},"data-v-3fd29910",null);e.default=l.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([52],{"75Go":function(t,a){},vgwM:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("2eFk"),i=e("fvdr"),c=e("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"考勤打卡",appIcon:"icon-ribao",activeSelTab:"11",activeTab:"11",tabListData:[{tabId:"1",tabName:"考勤统计",icon:"icon-kaoqinjilu",onlyIconActive:!1,children:[{tabId:"11",tabName:"每日统计",icon:""},{tabId:"12",tabName:"月度汇总",icon:""}]},{tabId:"2",tabName:"考勤设置",icon:"icon-kaoqinshezhi"}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":case"11":this.changeRoute("dayStatistics?appIcon="+this.$route.query.appIcon);break;case"2":this.changeRoute("workSet?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("div",{staticClass:"right-content"},[e("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[e("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[e("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var r=e("VU/8")(o,s,!1,function(t){e("75Go")},"data-v-af27316c",null);a.default=r.exports}});
\ No newline at end of file
webpackJsonp([52],{SKyE:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("3Xzz"),n=e("PI0u"),r={name:"companyAddress",data:function(){var t=this;return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{switch:!1,name:""},rules:{name:[{validator:function(a,e,s){t.ruleForm.switch&&""==e.replace(/\s/g)?s(new Error("请输入地址")):s()},trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(n.a)(function(t){this.$refs[t].validate(function(t){if(!t)return!1})},500),postSave:function(){this.ruleForm=[]}},components:{navCrumb:s.a}},i={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"companyAddress-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{height:this.$store.state.bgHeight}},[a("h2",{staticClass:"font-w-500"},[this._v("企业地址设置")]),this._v(" "),a("p",{staticClass:"m-t-24"},[this._v("暂时无法设置")])])]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var o=e("VU/8")(r,i,!1,function(t){e("Xsa6")},"data-v-a6a97268",null);a.default=o.exports},Xsa6:function(t,a){}}); webpackJsonp([53],{SKyE:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("3Xzz"),n=e("PI0u"),r={name:"companyAddress",data:function(){var t=this;return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{switch:!1,name:""},rules:{name:[{validator:function(a,e,s){t.ruleForm.switch&&""==e.replace(/\s/g)?s(new Error("请输入地址")):s()},trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(n.a)(function(t){this.$refs[t].validate(function(t){if(!t)return!1})},500),postSave:function(){this.ruleForm=[]}},components:{navCrumb:s.a}},i={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"companyAddress-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{height:this.$store.state.bgHeight}},[a("h2",{staticClass:"font-w-500"},[this._v("企业地址设置")]),this._v(" "),a("p",{staticClass:"m-t-24"},[this._v("暂时无法设置")])])]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var o=e("VU/8")(r,i,!1,function(t){e("Xsa6")},"data-v-a6a97268",null);a.default=o.exports},Xsa6:function(t,a){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([53],{"1NWy":function(t,e){},PAYw:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,l){return i("li",{key:"performance"+l,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])})),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var a=i("VU/8")(l,s,!1,function(t){i("1NWy")},"data-v-97f6d394",null);e.default=a.exports}}); webpackJsonp([54],{"1NWy":function(t,e){},PAYw:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,l){return i("li",{key:"performance"+l,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])})),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var a=i("VU/8")(l,s,!1,function(t){i("1NWy")},"data-v-97f6d394",null);e.default=a.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([54],{"19x+":function(e,t){},"rs/A":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),s=r.n(a),l=r("3Xzz"),o=r("c4uw"),i=r("Ie7z"),n=r("3E4D"),c=r("Ch4/"),u=r("PI0u"),d=r("P9l9"),m={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"添加成员",path:""}],ruleForm:{brandId:"",roleId:"",roleCode:"admin",roleName:"企业管理员",peopleList:[],departList:[],brandValue:[],brandOptions:[]},rules:{},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],changed:"",onlyPerson:!1,selectType:"",currentBrand:this.$route.query.brandId,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},submitForm:Object(u.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r=[],a=t.ruleForm.peopleList.length;if(a&&(t.ruleForm.brandValue.length||t.ruleForm.departList.length)){a=null,t.ruleForm.departList.forEach(function(e){r.push({groupId:e.groupId})}),t.ruleForm.brandValue.forEach(function(e){"admin"===t.ruleForm.roleCode?r.push({groupId:e}):e.storeId?r.push({storeId:e.storeId}):r.push({groupId:e.groupId})});var s=t.ruleForm.peopleList.map(function(e){return e.employeeClerkId}).join(",");t.postSave(r,s)}else t.$message.error({message:"请完善信息"})})},500),postSave:function(e,t){var r=this,a={data:s()(e),roleId:r.ruleForm.roleId,brandId:r.ruleForm.brandId,clerkIds:t};Object(d.e)("/haoban-manage-web/save-clerk-role",a).then(function(e){var t=e.data;if(1==t.errorCode)return n.a.showmsg("添加成功","success"),void r.changeRoute("/setChildAdmin");c.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},delField:function(e,t,r){this.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(t){t.value;r.splice(e,1)}).catch(function(){})},delDepart:function(e,t){t.splice(e,1)},showDialogLayer:function(e,t){if(this.selectType=e,this.changed=e,"store"===e)return this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1},"people"===e?(this.onlyPerson=!0,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}):this.onlyPerson=!1,this.defaultSelection=t,this.treeData.hasOwnProperty("treeData")},handleSelectedList:function(e){"people"===this.selectType?this.ruleForm.peopleList=e:"store"===this.selectType?this.ruleForm.brandValue=e:this.ruleForm.departList=e},getBrandData:function(){var e=this;Object(d.e)("/haoban-manage-web/brand/list",{}).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):r.result&&r.result.length&&(e.ruleForm.brandOptions=r.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getUserData:function(){var e=this,t={roleId:e.ruleForm.roleId,userId:e.ruleForm.userId,brandId:e.ruleForm.brandId};Object(d.e)("/haoban-manage-web/find-clerk-role",t).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):r.result&&(e.ruleForm.peopleList=[r.result.user],r.result.admList.forEach(function(e,t){e.id=e.groupId,e.label=e.name}),e.ruleForm.departList=r.result.admList||[],r.result.storeList.forEach(function(e,t){e.id=e.groupId?e.groupId:e.storeId,e.label=e.name}),e.ruleForm.brandValue="admin"===e.ruleForm.roleCode?r.result.storeList.map(function(e){return e.groupId}):r.result.storeList||[])}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData(),this.ruleForm.brandId=this.$route.query.brandId,this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId),this.$route.query.hasOwnProperty("roleCode")&&(this.ruleForm.roleCode=this.$route.query.roleCode,this.ruleForm.roleName="admin"===this.$route.query.roleCode?"企业管理员":"子管理员"),this.$route.query.hasOwnProperty("userId")&&(this.ruleForm.userId=this.$route.query.userId,this.navpath=[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"编辑成员",path:""}],this.getUserData())},components:{navCrumb:l.a,vueSelectEmployee:o.a,vueSelectStore:i.a}},p={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"管理员角色",prop:"roleName"}},[r("el-input",{staticClass:"w-380",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.roleName,callback:function(t){e.$set(e.ruleForm,"roleName",t)},expression:"ruleForm.roleName"}})],1),e._v(" "),r("div",{staticClass:"el-form-item el-form-item--large"},[r("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px",cursor:"pointer"},attrs:{for:"name"}},[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"仅限选择行政架构人员",placement:"top-start"}},[r("span",[e._v("选择人员"),r("span",{staticClass:"el-icon-info font-12 color-909399"})])])],1),e._v(" "),r("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"100px"}},[r("div",{staticClass:"flex w-380 flex-wrap"},[e._l(e.ruleForm.peopleList,function(t,a){return[r("div",{key:a+t.name,staticClass:"people-cell flex flex-align-center flex-pack-center flex-column"},[r("div",{class:["inline-block","img-wrap","flex","flex-align-center","flex-pack-center",t.headPic?"":"img-wrap-bg"]},[t.headPic?r("img",{attrs:{src:t.headPic,alt:"headPic"}}):r("i",{staticClass:"iconfont icon-yewuduanmorentouxian"}),e._v(" "),e.ruleForm.userId?e._e():r("i",{staticClass:"el-icon-circle-close",on:{click:function(r){r.stopPropagation(),e.delField(a,t,e.ruleForm.peopleList)}}})]),e._v(" "),r("p",[e._v(e._s(t.name))])])]}),e._v(" "),e.ruleForm.userId?e._e():r("div",{staticClass:"people-cell"},[r("span",{staticClass:"add-icon",on:{click:function(t){t.stopPropagation(),e.showDialogLayer("people",e.ruleForm.peopleList)}}},[r("i",{staticClass:"el-icon-plus"})])])],2)])]),e._v(" "),r("el-form-item",{staticClass:"m-b-0",attrs:{label:"选择管理范围",prop:"name"}}),e._v(" "),r("el-form-item",{staticClass:"m-b-0 m-t-10",attrs:{label:"行政架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},[r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(t){e.showDialogLayer("depart",e.ruleForm.departList)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.departList,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.departList)}}})])]})],2)])])])])]),e._v(" "),r("el-form-item",{staticClass:"m-t-22",attrs:{label:"门店架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},["admin"==e.ruleForm.roleCode?r("div",{staticClass:"store-item-wrap"},[r("el-select",{staticStyle:{width:"213px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.ruleForm.brandValue,callback:function(t){e.$set(e.ruleForm,"brandValue",t)},expression:"ruleForm.brandValue"}},e._l(e.ruleForm.brandOptions,function(e){return r("el-option",{key:e.groupId,attrs:{label:e.name,value:e.groupId}})}))],1):e._e(),e._v(" "),"child_admin"==e.ruleForm.roleCode?r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.ruleForm.brandValue)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.brandValue,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.brandValue)}}})])]})],2)])])]):e._e()])]),e._v(" "),r("el-form-item",{staticClass:"m-t-24"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer"),e._v(" "),r("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.currentBrand,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var h=r("VU/8")(m,p,!1,function(e){r("19x+")},"data-v-95665538",null);t.default=h.exports}}); webpackJsonp([55],{"19x+":function(e,t){},"rs/A":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),s=r.n(a),l=r("3Xzz"),o=r("c4uw"),i=r("Ie7z"),n=r("3E4D"),c=r("Ch4/"),u=r("PI0u"),d=r("P9l9"),m={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"添加成员",path:""}],ruleForm:{brandId:"",roleId:"",roleCode:"admin",roleName:"企业管理员",peopleList:[],departList:[],brandValue:[],brandOptions:[]},rules:{},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],changed:"",onlyPerson:!1,selectType:"",currentBrand:this.$route.query.brandId,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},submitForm:Object(u.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r=[],a=t.ruleForm.peopleList.length;if(a&&(t.ruleForm.brandValue.length||t.ruleForm.departList.length)){a=null,t.ruleForm.departList.forEach(function(e){r.push({groupId:e.groupId})}),t.ruleForm.brandValue.forEach(function(e){"admin"===t.ruleForm.roleCode?r.push({groupId:e}):e.storeId?r.push({storeId:e.storeId}):r.push({groupId:e.groupId})});var s=t.ruleForm.peopleList.map(function(e){return e.employeeClerkId}).join(",");t.postSave(r,s)}else t.$message.error({message:"请完善信息"})})},500),postSave:function(e,t){var r=this,a={data:s()(e),roleId:r.ruleForm.roleId,brandId:r.ruleForm.brandId,clerkIds:t};Object(d.e)("/haoban-manage-web/save-clerk-role",a).then(function(e){var t=e.data;if(1==t.errorCode)return n.a.showmsg("添加成功","success"),void r.changeRoute("/setChildAdmin");c.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},delField:function(e,t,r){this.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(t){t.value;r.splice(e,1)}).catch(function(){})},delDepart:function(e,t){t.splice(e,1)},showDialogLayer:function(e,t){if(this.selectType=e,this.changed=e,"store"===e)return this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1},"people"===e?(this.onlyPerson=!0,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}):this.onlyPerson=!1,this.defaultSelection=t,this.treeData.hasOwnProperty("treeData")},handleSelectedList:function(e){"people"===this.selectType?this.ruleForm.peopleList=e:"store"===this.selectType?this.ruleForm.brandValue=e:this.ruleForm.departList=e},getBrandData:function(){var e=this;Object(d.e)("/haoban-manage-web/brand/list",{}).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):r.result&&r.result.length&&(e.ruleForm.brandOptions=r.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getUserData:function(){var e=this,t={roleId:e.ruleForm.roleId,userId:e.ruleForm.userId,brandId:e.ruleForm.brandId};Object(d.e)("/haoban-manage-web/find-clerk-role",t).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):r.result&&(e.ruleForm.peopleList=[r.result.user],r.result.admList.forEach(function(e,t){e.id=e.groupId,e.label=e.name}),e.ruleForm.departList=r.result.admList||[],r.result.storeList.forEach(function(e,t){e.id=e.groupId?e.groupId:e.storeId,e.label=e.name}),e.ruleForm.brandValue="admin"===e.ruleForm.roleCode?r.result.storeList.map(function(e){return e.groupId}):r.result.storeList||[])}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData(),this.ruleForm.brandId=this.$route.query.brandId,this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId),this.$route.query.hasOwnProperty("roleCode")&&(this.ruleForm.roleCode=this.$route.query.roleCode,this.ruleForm.roleName="admin"===this.$route.query.roleCode?"企业管理员":"子管理员"),this.$route.query.hasOwnProperty("userId")&&(this.ruleForm.userId=this.$route.query.userId,this.navpath=[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"编辑成员",path:""}],this.getUserData())},components:{navCrumb:l.a,vueSelectEmployee:o.a,vueSelectStore:i.a}},p={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"管理员角色",prop:"roleName"}},[r("el-input",{staticClass:"w-380",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.roleName,callback:function(t){e.$set(e.ruleForm,"roleName",t)},expression:"ruleForm.roleName"}})],1),e._v(" "),r("div",{staticClass:"el-form-item el-form-item--large"},[r("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px",cursor:"pointer"},attrs:{for:"name"}},[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"仅限选择行政架构人员",placement:"top-start"}},[r("span",[e._v("选择人员"),r("span",{staticClass:"el-icon-info font-12 color-909399"})])])],1),e._v(" "),r("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"100px"}},[r("div",{staticClass:"flex w-380 flex-wrap"},[e._l(e.ruleForm.peopleList,function(t,a){return[r("div",{key:a+t.name,staticClass:"people-cell flex flex-align-center flex-pack-center flex-column"},[r("div",{class:["inline-block","img-wrap","flex","flex-align-center","flex-pack-center",t.headPic?"":"img-wrap-bg"]},[t.headPic?r("img",{attrs:{src:t.headPic,alt:"headPic"}}):r("i",{staticClass:"iconfont icon-yewuduanmorentouxian"}),e._v(" "),e.ruleForm.userId?e._e():r("i",{staticClass:"el-icon-circle-close",on:{click:function(r){r.stopPropagation(),e.delField(a,t,e.ruleForm.peopleList)}}})]),e._v(" "),r("p",[e._v(e._s(t.name))])])]}),e._v(" "),e.ruleForm.userId?e._e():r("div",{staticClass:"people-cell"},[r("span",{staticClass:"add-icon",on:{click:function(t){t.stopPropagation(),e.showDialogLayer("people",e.ruleForm.peopleList)}}},[r("i",{staticClass:"el-icon-plus"})])])],2)])]),e._v(" "),r("el-form-item",{staticClass:"m-b-0",attrs:{label:"选择管理范围",prop:"name"}}),e._v(" "),r("el-form-item",{staticClass:"m-b-0 m-t-10",attrs:{label:"行政架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},[r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(t){e.showDialogLayer("depart",e.ruleForm.departList)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.departList,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.departList)}}})])]})],2)])])])])]),e._v(" "),r("el-form-item",{staticClass:"m-t-22",attrs:{label:"门店架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},["admin"==e.ruleForm.roleCode?r("div",{staticClass:"store-item-wrap"},[r("el-select",{staticStyle:{width:"213px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.ruleForm.brandValue,callback:function(t){e.$set(e.ruleForm,"brandValue",t)},expression:"ruleForm.brandValue"}},e._l(e.ruleForm.brandOptions,function(e){return r("el-option",{key:e.groupId,attrs:{label:e.name,value:e.groupId}})}))],1):e._e(),e._v(" "),"child_admin"==e.ruleForm.roleCode?r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.ruleForm.brandValue)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.brandValue,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.brandValue)}}})])]})],2)])])]):e._e()])]),e._v(" "),r("el-form-item",{staticClass:"m-t-24"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer"),e._v(" "),r("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.currentBrand,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var h=r("VU/8")(m,p,!1,function(e){r("19x+")},"data-v-95665538",null);t.default=h.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([55],{gjw3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("mvHQ"),n=a.n(o),i=a("Ie7z"),s=a("Ke24"),r=a("b28S"),l=a("P9l9"),c=a("Ch4/"),u=a("PI0u"),d={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:s.a,vueSelectStore:i.a,chatLogList:r.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",topMenuData:[{id:"1",name:"聊天记录"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,o=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>o||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:20,total:0,showFlag:!1,itemRow:{}}},methods:{toInput:Object(u.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDetail:function(e,t){this.showFlag=!0;var a=JSON.parse(n()(t));a.userMessageId="",this.itemRow=a},hideDetail:function(){this.showFlag=!1,this.itemRow={},this.$nextTick(function(){document.body.style.overflow="auto"})},getTableList:function(e){var t=this,a=[],o=[],n=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&n.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&o.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var i={keyWord:t.conditionObj.searchInput||"",type:t.conditionObj.searchType||"",groupIds:a.join(",")||"",storeIds:o.join(",")||"",clerkIds:n.join(",")||"",startTime:t.conditionObj.dateRange[0]||"",endTime:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(l.a)("/haoban-app-member-web/customer/find_message_list",i).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,!1;c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","3"),this.brandId&&this.getTableList()}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:2==e.conditionObj.searchType?"请输入会员手机号/卡号 ":"请输入导购姓名/手机号/code",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("el-select",{staticClass:"w-103",attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.conditionObj.searchType,callback:function(t){e.$set(e.conditionObj,"searchType",t)},expression:"conditionObj.searchType"}},[a("el-option",{attrs:{label:"按导购",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"按会员",value:"2"}})],1)],1),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{disabled:2==e.conditionObj.searchType,type:"primary",plain:""},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e._v("门店架构选人")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"姓名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"员工状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.status?a("span",[e._v("正式")]):e._e(),e._v(" "),2==t.row.status?a("span",[e._v("试用")]):e._e(),e._v(" "),-1==t.row.status?a("span",[e._v("无状态")]):e._e()]}}])}),e._v(" "),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.phoneNumber||"--"))]}}])}),e._v(" "),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.storeName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"员工code","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.code||"--"))]}}])}),e._v(" "),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.messageCount))]}}])}),e._v(" "),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.memberName||"--"))]}}])}),e._v(" "),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.memberPhoneNumber||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.showDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("chat-log-list",{attrs:{brandId:e.brandId,itemRow:e.itemRow,showFlag:e.showFlag},on:{hideDetail:e.hideDetail}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)])},staticRenderFns:[]};var h=a("VU/8")(d,p,!1,function(e){a("uVeP")},"data-v-81447b52",null);t.default=h.exports},uVeP:function(e,t){}}); webpackJsonp([56],{gjw3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("mvHQ"),n=a.n(o),i=a("Ie7z"),s=a("Ke24"),r=a("b28S"),l=a("P9l9"),c=a("Ch4/"),u=a("PI0u"),d={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:s.a,vueSelectStore:i.a,chatLogList:r.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",topMenuData:[{id:"1",name:"聊天记录"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,o=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>o||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:20,total:0,showFlag:!1,itemRow:{}}},methods:{toInput:Object(u.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDetail:function(e,t){this.showFlag=!0;var a=JSON.parse(n()(t));a.userMessageId="",this.itemRow=a},hideDetail:function(){this.showFlag=!1,this.itemRow={},this.$nextTick(function(){document.body.style.overflow="auto"})},getTableList:function(e){var t=this,a=[],o=[],n=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&n.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&o.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var i={keyWord:t.conditionObj.searchInput||"",type:t.conditionObj.searchType||"",groupIds:a.join(",")||"",storeIds:o.join(",")||"",clerkIds:n.join(",")||"",startTime:t.conditionObj.dateRange[0]||"",endTime:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(l.a)("/haoban-app-member-web/customer/find_message_list",i).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,!1;c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","3"),this.brandId&&this.getTableList()}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:2==e.conditionObj.searchType?"请输入会员手机号/卡号 ":"请输入导购姓名/手机号/code",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("el-select",{staticClass:"w-103",attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.conditionObj.searchType,callback:function(t){e.$set(e.conditionObj,"searchType",t)},expression:"conditionObj.searchType"}},[a("el-option",{attrs:{label:"按导购",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"按会员",value:"2"}})],1)],1),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{disabled:2==e.conditionObj.searchType,type:"primary",plain:""},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e._v("门店架构选人")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"姓名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"员工状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.status?a("span",[e._v("正式")]):e._e(),e._v(" "),2==t.row.status?a("span",[e._v("试用")]):e._e(),e._v(" "),-1==t.row.status?a("span",[e._v("无状态")]):e._e()]}}])}),e._v(" "),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.phoneNumber||"--"))]}}])}),e._v(" "),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.storeName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"员工code","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.code||"--"))]}}])}),e._v(" "),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.messageCount))]}}])}),e._v(" "),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.memberName||"--"))]}}])}),e._v(" "),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.memberPhoneNumber||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.showDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("chat-log-list",{attrs:{brandId:e.brandId,itemRow:e.itemRow,showFlag:e.showFlag},on:{hideDetail:e.hideDetail}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)])},staticRenderFns:[]};var h=a("VU/8")(d,p,!1,function(e){a("uVeP")},"data-v-81447b52",null);t.default=h.exports},uVeP:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([56],{"h/6A":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("mvHQ"),a=r.n(o),n=r("Xxa5"),s=r.n(n),i=r("//Fk"),l=r.n(i),u=r("exGp"),m=r.n(u),d=r("3Xzz"),c=r("l46T"),f=r("Kkt8"),p=r("XDyb"),g=r("T+u5"),h=r.n(g),I=r("P9l9"),v=r("Ie7z"),b={name:"store-info",components:{navCrumb:d.a,vueSelectStore:v.a,limitInput:c.a,limitTextarea:f.a,countryMobile:p.a},data:function(){var e=this;return{gicFlag:!(!this.$route.query.gicFlag||"false"==this.$route.query.gicFlag),navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"添加门店",path:""}],editpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"编辑门店",path:""}],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:"",openNextBool:!0},currentBrand:this.$route.query.firstLevelId,disableFlag:!1,defaultList:[],storeInfo:{storeName:"",storeGroupId:"",departmentName:"",groupChainName:"",imageUrls:[],phoneNumber:"",openTime:"",closeTime:"",shopHours:"",storeType:0,countryId:"",provinceId:"",cityId:"",areaId:"",postAddress:"",longitude:"",latitude:"",location:"",storeArea:"",mangerName:"",storeManagerId:"",managerNationcode:"86",managerPhone:"",managerCode:"",maangerSex:"",storeCode:"",storeId:""},areaChainName:"",areaOptions:{},imgs:[],uploadUrl:"/haoban-manage-web/upload-img",rules:{storeName:[{required:!0,message:"请输入门店名称",trigger:"blur"}],departmentName:[{required:!0,message:"请选择所属分组",trigger:"blur"}],groupChainName:[{required:!0,message:"请选择部门",trigger:"change"}],imageUrls:[{type:"array",required:!0,message:"请选择门店图片",trigger:"change"}],areaId:[{required:!0,message:"请选择门店地址",trigger:"blur"}],storeType:[{required:!0,message:"请选择门店类型",trigger:"blur"}],openTime:[{required:!0,validator:function(t,r,o){return r&&e.storeInfo.closeTime?o():o(new Error("请选择营业时间"))},trigger:"blur"}],location:[{required:!0,message:"请选择经纬度",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,t,r){return t?r():r(new Error("请输入联系电话"))},trigger:"blur"}],storeCode:[{required:!0,validator:function(t,r,o){return r?/^[A-Za-z0-9_\u4e00-\u9fa5]+$/.test(r)?o():void(e.storeInfo.storeCode=r.replace(/[^A-Za-z0-9_\u4e00-\u9fa5]+/g,"")):o(new Error("请输入门店代码"))},trigger:"blur"}],managerName:[{required:!0,message:"请输入店长姓名",trigger:"blur"}],managerPhone:[{required:!0,validator:function(t,r,o){if(!r)return o(new Error("请输入手机号码"));var a=new h.a("+"+e.storeInfo.managerNationcode+r);a.isValid()&&a.isMobile()?o():o(new Error("手机号格式不正确"))},trigger:"blur"}],managerCode:[{required:!0,validator:function(t,r,o){return r?/^[A-Za-z0-9_\u4e00-\u9fa5]+$/.test(r)?o():void(e.storeInfo.managerCode=r.replace(/[^A-Za-z0-9_\u4e00-\u9fa5]+/g,"")):o(new Error("请输入店长代码"))},trigger:"blur"}],specialService:[{max:20,message:"长度在 20 个字符以内",trigger:"blur"}],personCost:[{validator:function(e,t,r){if(t)return/^\d+(\.\d+)?$/.test(1*t)?r():r(new Error("人均消费只能为非负整数或者小数"));return r()},trigger:"blur"}]}}},methods:{inputBlur:function(e){this.storeInfo.storeArea||(this.storeInfo.storeArea=""),this.storeInfo.storeArea=Number(this.storeInfo.storeArea.replace(/[^\d.]/g,""))?this.storeInfo.storeArea.replace(/[^\d+(.\d+)]/g,""):"",this.storeInfo.storeArea=Number(this.storeInfo.storeArea).toFixed(2),this.storeInfo.storeArea>=999999&&(this.storeInfo.storeArea=Number(999999).toFixed(2))},callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){console.log(e),this.storeInfo.groupChainName=e.length?e[0].chainName:"",this.storeInfo.departmentName=e.length?e[0].label:"",this.storeInfo.storeGroupId=e.length?e[0].id:"",this.storeInfo.departmentName&&this.$refs.storeInfo.clearValidate("departmentName"),console.log(this.storeInfo,this.storeInfo.groupChainName,e[0].chainName),this.$forceUpdate()},selected:function(e){this.storeInfo.provinceId=e.province,this.storeInfo.cityId=e.city||"",this.storeInfo.areaId=e.areaId||""},getStoreInfo:function(){var e=this,t={storeId:e.$route.query.storeId};Object(I.a)("/haoban-manage-web/store/findStoreById",t).then(function(t){1==t.data.errorCode?(e.showEmployee="store",e.defaultList=[{id:t.data.result.storeGroupId,label:t.data.result.departmentName}],e.formatStoreInfo(t.data.result)):e.$message.error({message:t.data.message})})},clickToSave:function(){var e=this;return m()(s.a.mark(function t(){var r,o,a,n;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e,o=new l.a(function(e,t){r.$refs.storeInfo.validate(function(t){t&&e()})}),a=new l.a(function(e,t){r.$refs.storeManager.validate(function(t){t&&e()})}),n=new l.a(function(e,t){r.$refs.storeOperate.validate(function(t){t&&e()})}),l.a.all([o,a,n]).then(function(){r.save()});case 5:case"end":return t.stop()}},t,e)}))()},formatStoreInfo:function(e){var t=this;return m()(s.a.mark(function r(){var o,a,n;return s.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:o=t,a=(e.areaChainName||"").split("/"),o.areaOptions={provinceName:a[0],provinceId:e.provinceId,cityName:a[1],cityId:e.cityId,countryName:a[2],countyId:e.countryId},o.imgs=e.imageUrl?e.imageUrl.split(","):[],n=[],o.imgs.forEach(function(e){n.push({url:e})}),e.managerNationcode=e.managerNationcode||"86",e.imageUrls=n,e.location=e.longitude?e.latitude+","+e.longitude:"",o.storeInfo=e,o.disableFlag=!o.isNew&&!!o.storeInfo.managerPhone;case 11:case"end":return r.stop()}},r,t)}))()},uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},sortImg:function(e){this.storeInfo.imageUrls=e},deleteImage:function(e){this.storeInfo.imageUrls.splice(e,1)},save:function(){var e=this,t=e.storeInfo.location.split(",");e.storeInfo.longitude=t[1],e.storeInfo.latitude=2!==t.length?"":t[0];var r=JSON.parse(a()(e.storeInfo)),o=[];e.storeInfo.imageUrls.forEach(function(e){o.push(e.url)}),r.imageUrls=o.join(",");var n=e.isNew?"/haoban-manage-web/store/insert":"/haoban-manage-web/store/update";Object(I.e)(n,r).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isNew:function(){return!this.$route.query.storeId}},beforeMount:function(){this.treeSet.groupId=this.$route.query.firstLevelId,this.isNew||this.getStoreInfo()},mounted:function(){this.$route.query.storeId&&(this.navpath=this.editpath)}},_={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("div",[r("div",{staticClass:"store-info"},[r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("门店信息")]),e._v(" "),r("el-form",{ref:"storeInfo",staticClass:"store-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"门店名称",prop:"storeName"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.storeName,holder:"",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"storeName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"所属分组",prop:"departmentName"}},[r("el-input",{staticClass:"w-500",attrs:{disabled:e.gicFlag},on:{focus:e.callSelector},model:{value:e.storeInfo.groupChainName,callback:function(t){e.$set(e.storeInfo,"groupChainName",t)},expression:"storeInfo.groupChainName"}},[r("i",{staticClass:"el-input__icon el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1),e._v(" "),r("el-form-item",{attrs:{label:"门店图片",prop:"imageUrls"}},[r("div",{staticClass:"member-upload-image"},[r("vue-office-upload-image",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.storeInfo.imageUrls,limitW:640,limitH:340,maxImageLength:10},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}})],1),e._v(" "),r("div",{staticClass:"tip font-12 color-909399 m-t-8 line-h-1"},[e._v("门店图片(640*340),支持.jpg,.jepg,.png类型文件,最多添加10张图片")])]),e._v(" "),r("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[r("el-input",{staticClass:"w-500",model:{value:e.storeInfo.phoneNumber,callback:function(t){e.$set(e.storeInfo,"phoneNumber",t)},expression:"storeInfo.phoneNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"营业时间",prop:"openTime"}},[r("el-time-select",{attrs:{editable:!1,placeholder:"起始时间","picker-options":{start:"00:00",step:"00:05",end:"24:00"}},model:{value:e.storeInfo.openTime,callback:function(t){e.$set(e.storeInfo,"openTime",t)},expression:"storeInfo.openTime"}}),e._v("\n ~\n "),r("el-time-select",{attrs:{editable:!1,placeholder:"结束时间","picker-options":{start:"00:00",step:"00:05",end:"24:00",minTime:e.storeInfo.openTime}},model:{value:e.storeInfo.closeTime,callback:function(t){e.$set(e.storeInfo,"closeTime",t)},expression:"storeInfo.closeTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},[r("el-radio-group",{model:{value:e.storeInfo.storeType,callback:function(t){e.$set(e.storeInfo,"storeType",t)},expression:"storeInfo.storeType"}},[r("el-radio",{attrs:{label:0}},[e._v("自营")]),e._v(" "),r("el-radio",{attrs:{label:1}},[e._v("联营")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("代理")]),e._v(" "),r("el-radio",{attrs:{label:3}},[e._v("代销")]),e._v(" "),r("el-radio",{attrs:{label:4}},[e._v("托管")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"门店地址",prop:"areaId"}},[r("vue-office-area",{attrs:{areaOptions:e.areaOptions,projectName:"haoban-web",postUrl:"/haoban-manage-web/dict-district-list"},on:{selected:e.selected}}),e._v(" "),r("div",{staticClass:"m-t-15"},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.postAddress,holder:"",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"postAddress",t)}}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"GPS坐标",prop:"location"}},[r("el-input",{staticClass:"w-500 m-r-10",model:{value:e.storeInfo.location,callback:function(t){e.$set(e.storeInfo,"location",t)},expression:"storeInfo.location"}}),e._v(" "),r("a",{staticClass:"a-href",attrs:{href:"http://m.gpsspg.com/maps.htm",target:"_blank",rel:"nofollow noopener noreferrer"}},[e._v("经纬度测试工具")])],1),e._v(" "),r("el-form-item",{attrs:{prop:"storeCode"}},[r("template",{slot:"label"},[e._v("\n 门店代码\n ")]),e._v(" "),r("limitInput",{attrs:{inputWidth:500,disflag:e.gicFlag,inputValue:e.storeInfo.storeCode,holder:"",maxLength:20,getByType:"word"},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"storeCode",t)}}})],2),e._v(" "),r("el-form-item",{attrs:{label:"门店面积"}},[r("el-input",{staticClass:"w-500",on:{blur:function(t){return e.inputBlur(t)}},model:{value:e.storeInfo.storeArea,callback:function(t){e.$set(e.storeInfo,"storeArea",t)},expression:"storeInfo.storeArea"}}),r("span",{staticClass:"font-14 p-l-10"},[e._v("平方米")])],1)],1)],1),e._v(" "),r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("店长信息")]),e._v(" "),r("el-form",{ref:"storeManager",staticClass:"store-manager-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"店长姓名",prop:"managerName"}},[r("limitInput",{attrs:{inputWidth:500,disflag:e.gicFlag,inputValue:e.storeInfo.managerName,holder:"",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"managerName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号码",prop:"managerPhone"}},[r("countryMobile",{attrs:{inputWidth:500,nationCode:e.storeInfo.managerNationcode,holder:"请输入手机号",disflag:e.disableFlag||e.gicFlag},on:{"update:nationCode":function(t){e.$set(e.storeInfo,"managerNationcode",t)}},model:{value:e.storeInfo.managerPhone,callback:function(t){e.$set(e.storeInfo,"managerPhone",t)},expression:"storeInfo.managerPhone"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"店长性别"}},[r("el-radio-group",{attrs:{disabled:e.gicFlag},model:{value:e.storeInfo.managerSex,callback:function(t){e.$set(e.storeInfo,"managerSex",t)},expression:"storeInfo.managerSex"}},[r("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"店长代码",prop:"managerCode"}},[r("limitInput",{attrs:{inputWidth:500,disflag:e.gicFlag,inputValue:e.storeInfo.managerCode,holder:"",maxLength:20,getByType:"word"},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"managerCode",t)}}})],1)],1)],1),e._v(" "),r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("经营信息")]),e._v(" "),r("el-form",{ref:"storeOperate",staticClass:"operate-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"90px"}},[r("el-form-item",{attrs:{label:"特色服务",prop:"specialService"}},[r("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfo.specialService,holder:"请输入推荐商品",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"specialService",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"人均消费",prop:"personCost"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.personCost,holder:"请输入人均消费",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"personCost",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"推荐商品"}},[r("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfo.recommendGoods,holder:"请输入推荐商品",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"recommendGoods",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"品牌介绍"}},[r("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfo.brandDes,holder:"请输入品牌介绍",getByType:"word",maxLength:200},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"brandDes",t)}}})],1)],1)],1),e._v(" "),r("div",{staticClass:"handle-area"},[r("el-button",{attrs:{type:"primary"},on:{click:e.clickToSave}},[e._v("保 存")])],1)]),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.currentBrand,defaultList:e.defaultList,treeSet:e.treeSet,selectType:"group"},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var C=r("VU/8")(b,_,!1,function(e){r("zp0P")},null,null);t.default=C.exports},zp0P:function(e,t){}}); webpackJsonp([57],{"h/6A":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("mvHQ"),a=r.n(o),n=r("Xxa5"),s=r.n(n),i=r("//Fk"),l=r.n(i),u=r("exGp"),m=r.n(u),d=r("3Xzz"),c=r("l46T"),f=r("Kkt8"),p=r("XDyb"),g=r("T+u5"),h=r.n(g),I=r("P9l9"),v=r("Ie7z"),b={name:"store-info",components:{navCrumb:d.a,vueSelectStore:v.a,limitInput:c.a,limitTextarea:f.a,countryMobile:p.a},data:function(){var e=this;return{gicFlag:!(!this.$route.query.gicFlag||"false"==this.$route.query.gicFlag),navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"添加门店",path:""}],editpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"编辑门店",path:""}],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:"",openNextBool:!0},currentBrand:this.$route.query.firstLevelId,disableFlag:!1,defaultList:[],storeInfo:{storeName:"",storeGroupId:"",departmentName:"",groupChainName:"",imageUrls:[],phoneNumber:"",openTime:"",closeTime:"",shopHours:"",storeType:0,countryId:"",provinceId:"",cityId:"",areaId:"",postAddress:"",longitude:"",latitude:"",location:"",storeArea:"",mangerName:"",storeManagerId:"",managerNationcode:"86",managerPhone:"",managerCode:"",maangerSex:"",storeCode:"",storeId:""},areaChainName:"",areaOptions:{},imgs:[],uploadUrl:"/haoban-manage-web/upload-img",rules:{storeName:[{required:!0,message:"请输入门店名称",trigger:"blur"}],departmentName:[{required:!0,message:"请选择所属分组",trigger:"blur"}],groupChainName:[{required:!0,message:"请选择部门",trigger:"change"}],imageUrls:[{type:"array",required:!0,message:"请选择门店图片",trigger:"change"}],areaId:[{required:!0,message:"请选择门店地址",trigger:"blur"}],storeType:[{required:!0,message:"请选择门店类型",trigger:"blur"}],openTime:[{required:!0,validator:function(t,r,o){return r&&e.storeInfo.closeTime?o():o(new Error("请选择营业时间"))},trigger:"blur"}],location:[{required:!0,message:"请选择经纬度",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,t,r){return t?r():r(new Error("请输入联系电话"))},trigger:"blur"}],storeCode:[{required:!0,validator:function(t,r,o){return r?/^[A-Za-z0-9_\u4e00-\u9fa5]+$/.test(r)?o():void(e.storeInfo.storeCode=r.replace(/[^A-Za-z0-9_\u4e00-\u9fa5]+/g,"")):o(new Error("请输入门店代码"))},trigger:"blur"}],managerName:[{required:!0,message:"请输入店长姓名",trigger:"blur"}],managerPhone:[{required:!0,validator:function(t,r,o){if(!r)return o(new Error("请输入手机号码"));var a=new h.a("+"+e.storeInfo.managerNationcode+r);a.isValid()&&a.isMobile()?o():o(new Error("手机号格式不正确"))},trigger:"blur"}],managerCode:[{required:!0,validator:function(t,r,o){return r?/^[A-Za-z0-9_\u4e00-\u9fa5]+$/.test(r)?o():void(e.storeInfo.managerCode=r.replace(/[^A-Za-z0-9_\u4e00-\u9fa5]+/g,"")):o(new Error("请输入店长代码"))},trigger:"blur"}],specialService:[{max:20,message:"长度在 20 个字符以内",trigger:"blur"}],personCost:[{validator:function(e,t,r){if(t)return/^\d+(\.\d+)?$/.test(1*t)?r():r(new Error("人均消费只能为非负整数或者小数"));return r()},trigger:"blur"}]}}},methods:{inputBlur:function(e){this.storeInfo.storeArea||(this.storeInfo.storeArea=""),this.storeInfo.storeArea=Number(this.storeInfo.storeArea.replace(/[^\d.]/g,""))?this.storeInfo.storeArea.replace(/[^\d+(.\d+)]/g,""):"",this.storeInfo.storeArea=Number(this.storeInfo.storeArea).toFixed(2),this.storeInfo.storeArea>=999999&&(this.storeInfo.storeArea=Number(999999).toFixed(2))},callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){console.log(e),this.storeInfo.groupChainName=e.length?e[0].chainName:"",this.storeInfo.departmentName=e.length?e[0].label:"",this.storeInfo.storeGroupId=e.length?e[0].id:"",this.storeInfo.departmentName&&this.$refs.storeInfo.clearValidate("departmentName"),console.log(this.storeInfo,this.storeInfo.groupChainName,e[0].chainName),this.$forceUpdate()},selected:function(e){this.storeInfo.provinceId=e.province,this.storeInfo.cityId=e.city||"",this.storeInfo.areaId=e.areaId||""},getStoreInfo:function(){var e=this,t={storeId:e.$route.query.storeId};Object(I.a)("/haoban-manage-web/store/findStoreById",t).then(function(t){1==t.data.errorCode?(e.showEmployee="store",e.defaultList=[{id:t.data.result.storeGroupId,label:t.data.result.departmentName}],e.formatStoreInfo(t.data.result)):e.$message.error({message:t.data.message})})},clickToSave:function(){var e=this;return m()(s.a.mark(function t(){var r,o,a,n;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e,o=new l.a(function(e,t){r.$refs.storeInfo.validate(function(t){t&&e()})}),a=new l.a(function(e,t){r.$refs.storeManager.validate(function(t){t&&e()})}),n=new l.a(function(e,t){r.$refs.storeOperate.validate(function(t){t&&e()})}),l.a.all([o,a,n]).then(function(){r.save()});case 5:case"end":return t.stop()}},t,e)}))()},formatStoreInfo:function(e){var t=this;return m()(s.a.mark(function r(){var o,a,n;return s.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:o=t,a=(e.areaChainName||"").split("/"),o.areaOptions={provinceName:a[0],provinceId:e.provinceId,cityName:a[1],cityId:e.cityId,countryName:a[2],countyId:e.countryId},o.imgs=e.imageUrl?e.imageUrl.split(","):[],n=[],o.imgs.forEach(function(e){n.push({url:e})}),e.managerNationcode=e.managerNationcode||"86",e.imageUrls=n,e.location=e.longitude?e.latitude+","+e.longitude:"",o.storeInfo=e,o.disableFlag=!o.isNew&&!!o.storeInfo.managerPhone;case 11:case"end":return r.stop()}},r,t)}))()},uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},sortImg:function(e){this.storeInfo.imageUrls=e},deleteImage:function(e){this.storeInfo.imageUrls.splice(e,1)},save:function(){var e=this,t=e.storeInfo.location.split(",");e.storeInfo.longitude=t[1],e.storeInfo.latitude=2!==t.length?"":t[0];var r=JSON.parse(a()(e.storeInfo)),o=[];e.storeInfo.imageUrls.forEach(function(e){o.push(e.url)}),r.imageUrls=o.join(",");var n=e.isNew?"/haoban-manage-web/store/insert":"/haoban-manage-web/store/update";Object(I.e)(n,r).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isNew:function(){return!this.$route.query.storeId}},beforeMount:function(){this.treeSet.groupId=this.$route.query.firstLevelId,this.isNew||this.getStoreInfo()},mounted:function(){this.$route.query.storeId&&(this.navpath=this.editpath)}},_={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("div",[r("div",{staticClass:"store-info"},[r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("门店信息")]),e._v(" "),r("el-form",{ref:"storeInfo",staticClass:"store-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"门店名称",prop:"storeName"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.storeName,holder:"",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"storeName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"所属分组",prop:"departmentName"}},[r("el-input",{staticClass:"w-500",attrs:{disabled:e.gicFlag},on:{focus:e.callSelector},model:{value:e.storeInfo.groupChainName,callback:function(t){e.$set(e.storeInfo,"groupChainName",t)},expression:"storeInfo.groupChainName"}},[r("i",{staticClass:"el-input__icon el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1),e._v(" "),r("el-form-item",{attrs:{label:"门店图片",prop:"imageUrls"}},[r("div",{staticClass:"member-upload-image"},[r("vue-office-upload-image",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.storeInfo.imageUrls,limitW:640,limitH:340,maxImageLength:10},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}})],1),e._v(" "),r("div",{staticClass:"tip font-12 color-909399 m-t-8 line-h-1"},[e._v("门店图片(640*340),支持.jpg,.jepg,.png类型文件,最多添加10张图片")])]),e._v(" "),r("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[r("el-input",{staticClass:"w-500",model:{value:e.storeInfo.phoneNumber,callback:function(t){e.$set(e.storeInfo,"phoneNumber",t)},expression:"storeInfo.phoneNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"营业时间",prop:"openTime"}},[r("el-time-select",{attrs:{editable:!1,placeholder:"起始时间","picker-options":{start:"00:00",step:"00:05",end:"24:00"}},model:{value:e.storeInfo.openTime,callback:function(t){e.$set(e.storeInfo,"openTime",t)},expression:"storeInfo.openTime"}}),e._v("\n ~\n "),r("el-time-select",{attrs:{editable:!1,placeholder:"结束时间","picker-options":{start:"00:00",step:"00:05",end:"24:00",minTime:e.storeInfo.openTime}},model:{value:e.storeInfo.closeTime,callback:function(t){e.$set(e.storeInfo,"closeTime",t)},expression:"storeInfo.closeTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},[r("el-radio-group",{model:{value:e.storeInfo.storeType,callback:function(t){e.$set(e.storeInfo,"storeType",t)},expression:"storeInfo.storeType"}},[r("el-radio",{attrs:{label:0}},[e._v("自营")]),e._v(" "),r("el-radio",{attrs:{label:1}},[e._v("联营")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("代理")]),e._v(" "),r("el-radio",{attrs:{label:3}},[e._v("代销")]),e._v(" "),r("el-radio",{attrs:{label:4}},[e._v("托管")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"门店地址",prop:"areaId"}},[r("vue-office-area",{attrs:{areaOptions:e.areaOptions,projectName:"haoban-web",postUrl:"/haoban-manage-web/dict-district-list"},on:{selected:e.selected}}),e._v(" "),r("div",{staticClass:"m-t-15"},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.postAddress,holder:"",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"postAddress",t)}}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"GPS坐标",prop:"location"}},[r("el-input",{staticClass:"w-500 m-r-10",model:{value:e.storeInfo.location,callback:function(t){e.$set(e.storeInfo,"location",t)},expression:"storeInfo.location"}}),e._v(" "),r("a",{staticClass:"a-href",attrs:{href:"http://m.gpsspg.com/maps.htm",target:"_blank",rel:"nofollow noopener noreferrer"}},[e._v("经纬度测试工具")])],1),e._v(" "),r("el-form-item",{attrs:{prop:"storeCode"}},[r("template",{slot:"label"},[e._v("\n 门店代码\n ")]),e._v(" "),r("limitInput",{attrs:{inputWidth:500,disflag:e.gicFlag,inputValue:e.storeInfo.storeCode,holder:"",maxLength:20,getByType:"word"},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"storeCode",t)}}})],2),e._v(" "),r("el-form-item",{attrs:{label:"门店面积"}},[r("el-input",{staticClass:"w-500",on:{blur:function(t){return e.inputBlur(t)}},model:{value:e.storeInfo.storeArea,callback:function(t){e.$set(e.storeInfo,"storeArea",t)},expression:"storeInfo.storeArea"}}),r("span",{staticClass:"font-14 p-l-10"},[e._v("平方米")])],1)],1)],1),e._v(" "),r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("店长信息")]),e._v(" "),r("el-form",{ref:"storeManager",staticClass:"store-manager-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"店长姓名",prop:"managerName"}},[r("limitInput",{attrs:{inputWidth:500,disflag:e.gicFlag,inputValue:e.storeInfo.managerName,holder:"",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"managerName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号码",prop:"managerPhone"}},[r("countryMobile",{attrs:{inputWidth:500,nationCode:e.storeInfo.managerNationcode,holder:"请输入手机号",disflag:e.disableFlag||e.gicFlag},on:{"update:nationCode":function(t){e.$set(e.storeInfo,"managerNationcode",t)}},model:{value:e.storeInfo.managerPhone,callback:function(t){e.$set(e.storeInfo,"managerPhone",t)},expression:"storeInfo.managerPhone"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"店长性别"}},[r("el-radio-group",{attrs:{disabled:e.gicFlag},model:{value:e.storeInfo.managerSex,callback:function(t){e.$set(e.storeInfo,"managerSex",t)},expression:"storeInfo.managerSex"}},[r("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"店长代码",prop:"managerCode"}},[r("limitInput",{attrs:{inputWidth:500,disflag:e.gicFlag,inputValue:e.storeInfo.managerCode,holder:"",maxLength:20,getByType:"word"},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"managerCode",t)}}})],1)],1)],1),e._v(" "),r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("经营信息")]),e._v(" "),r("el-form",{ref:"storeOperate",staticClass:"operate-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"90px"}},[r("el-form-item",{attrs:{label:"特色服务",prop:"specialService"}},[r("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfo.specialService,holder:"请输入推荐商品",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"specialService",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"人均消费",prop:"personCost"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.personCost,holder:"请输入人均消费",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"personCost",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"推荐商品"}},[r("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfo.recommendGoods,holder:"请输入推荐商品",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"recommendGoods",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"品牌介绍"}},[r("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfo.brandDes,holder:"请输入品牌介绍",getByType:"word",maxLength:200},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"brandDes",t)}}})],1)],1)],1),e._v(" "),r("div",{staticClass:"handle-area"},[r("el-button",{attrs:{type:"primary"},on:{click:e.clickToSave}},[e._v("保 存")])],1)]),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.currentBrand,defaultList:e.defaultList,treeSet:e.treeSet,selectType:"group"},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var C=r("VU/8")(b,_,!1,function(e){r("zp0P")},null,null);t.default=C.exports},zp0P:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([57],{"4m/B":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),l=a("2eFk"),i=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访记录",path:"/badEvaluateRecord"},{id:"2",name:"记录详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={taskType:0,storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskIds})||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId,brandId:a.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/del-one",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand,taskType:0};Object(c.a)("/haoban-app-tel-task-web/task/clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:l.a,commonDetailTop:i.a,multipleDel:s.a,qrcodeDialog:r.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableH},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"left"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v(e._s(t.row?"完成备注":"放弃备注"))])]}},{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:e.row.reason}},[a("i",{staticClass:"iconfont icon-beizhu"})])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["已完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?t.row.reason:""}},[a("i",{staticClass:"iconfont icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"放弃备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["未完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?"":t.row.reason}},[a("i",{staticClass:"iconfont icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var m=a("VU/8")(f,p,!1,function(e){a("Dpp6")},"data-v-77cdecbc",null);t.default=m.exports},Dpp6:function(e,t){}}); webpackJsonp([58],{"4m/B":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),l=a("2eFk"),i=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访记录",path:"/badEvaluateRecord"},{id:"2",name:"记录详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={taskType:0,storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskIds})||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId,brandId:a.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/del-one",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand,taskType:0};Object(c.a)("/haoban-app-tel-task-web/task/clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:l.a,commonDetailTop:i.a,multipleDel:s.a,qrcodeDialog:r.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableH},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"left"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v(e._s(t.row?"完成备注":"放弃备注"))])]}},{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:e.row.reason}},[a("i",{staticClass:"iconfont icon-beizhu"})])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["已完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?t.row.reason:""}},[a("i",{staticClass:"iconfont icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"放弃备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["未完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?"":t.row.reason}},[a("i",{staticClass:"iconfont icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var m=a("VU/8")(f,p,!1,function(e){a("Dpp6")},"data-v-77cdecbc",null);t.default=m.exports},Dpp6:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([58],{AdJp:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t("Xxa5"),o=t.n(n),r=t("exGp"),s=t.n(r),m=t("3Xzz"),i=t("WSbm"),c=t("P9l9"),d={name:"employeeDetail",components:{navCrumb:m.a,employeeInfo:i.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"添加员工",path:""}],navpathEdit:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"编辑员工",path:""}],managerMode:!1}},methods:{save:function(e){var a=this;return s()(o.a.mark(function t(){var n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.$refs.emmployInfo.submitForm("employeeForm");case 2:t.sent&&(n=a.$refs.emmployInfo.info,a.isNew?a.addEmployee(n,e):a.saveEmployeeInfo(n));case 4:case"end":return t.stop()}},t,a)}))()},addEmployee:function(e,a){var t=this,n={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode,nationcode:e.nationcode};Object(c.a)("/haoban-manage-web/emp/add",n).then(function(e){1==e.data.errorCode?(t.$message.success({message:"操作成功"}),1==a?(t.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1,nationcode:"86"},t.$refs.emmployInfo.defaultSelection=[],t.$refs.emmployInfo.resetForm("employeeForm")):window.history.go(-1)):t.$message.error({message:e.data.message})}).catch(function(e){})},saveEmployeeInfo:function(e){var a=this,t={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode,nationcode:e.nationcode};Object(c.a)("/haoban-manage-web/emp/update",t).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}},mounted:function(){this.$route.query.addnew||(this.navpath=this.navpathEdit)}},p={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"employee-detail",style:{height:e.$store.state.bgHeight}},[t("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),e.$route.query.readOnly?e._e():t("div",{staticClass:"btn-boxs"},[t("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")]),e._v(" "),e.isNew?t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),t("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)])])],1)},staticRenderFns:[]};var u=t("VU/8")(d,p,!1,function(e){t("XqOc")},null,null);a.default=u.exports},XqOc:function(e,a){}}); webpackJsonp([59],{AdJp:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t("Xxa5"),o=t.n(n),r=t("exGp"),s=t.n(r),m=t("3Xzz"),i=t("WSbm"),c=t("P9l9"),d={name:"employeeDetail",components:{navCrumb:m.a,employeeInfo:i.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"添加员工",path:""}],navpathEdit:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"编辑员工",path:""}],managerMode:!1}},methods:{save:function(e){var a=this;return s()(o.a.mark(function t(){var n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.$refs.emmployInfo.submitForm("employeeForm");case 2:t.sent&&(n=a.$refs.emmployInfo.info,a.isNew?a.addEmployee(n,e):a.saveEmployeeInfo(n));case 4:case"end":return t.stop()}},t,a)}))()},addEmployee:function(e,a){var t=this,n={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode,nationcode:e.nationcode};Object(c.a)("/haoban-manage-web/emp/add",n).then(function(e){1==e.data.errorCode?(t.$message.success({message:"操作成功"}),1==a?(t.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1,nationcode:"86"},t.$refs.emmployInfo.defaultSelection=[],t.$refs.emmployInfo.resetForm("employeeForm")):window.history.go(-1)):t.$message.error({message:e.data.message})}).catch(function(e){})},saveEmployeeInfo:function(e){var a=this,t={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode,nationcode:e.nationcode};Object(c.a)("/haoban-manage-web/emp/update",t).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}},mounted:function(){this.$route.query.addnew||(this.navpath=this.navpathEdit)}},p={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"employee-detail",style:{height:e.$store.state.bgHeight}},[t("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),e.$route.query.readOnly?e._e():t("div",{staticClass:"btn-boxs"},[t("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")]),e._v(" "),e.isNew?t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),t("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)])])],1)},staticRenderFns:[]};var u=t("VU/8")(d,p,!1,function(e){t("XqOc")},null,null);a.default=u.exports},XqOc:function(e,a){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([59],{"00Sv":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var u=t("VU/8")({name:"add-employee"},r,!1,function(e){t("yw/n")},null,null);n.default=u.exports},"yw/n":function(e,n){}}); webpackJsonp([60],{"00Sv":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var u=t("VU/8")({name:"add-employee"},r,!1,function(e){t("yw/n")},null,null);n.default=u.exports},"yw/n":function(e,n){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([60],{FdYP:function(t,e){},H8Kg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var c=i("VU/8")(s,a,!1,function(t){i("FdYP")},"data-v-6c75d59f",null);e.default=c.exports}}); webpackJsonp([61],{FdYP:function(t,e){},H8Kg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var c=i("VU/8")(s,a,!1,function(t){i("FdYP")},"data-v-6c75d59f",null);e.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([61],{IKv2:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),o=r.n(a),n=r("2eFk"),s=r("Ke24"),c=r("PI0u"),l=r("Ch4/"),i=r("3E4D"),u=r("P9l9"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"指标管理",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"3",name:"门店月指标",path:"storeMonthTask?yearMonth="+this.$route.query.yearMonth+"&appIcon="+this.$route.query.appIcon},{id:"4",name:"导购月指标详情",path:""}],activeId:"4",tableData:[],performanceSum:"",clerkObj:{storeId:"",storeName:"",yearMonth:"",settingAble:1,storePerformance:""},equalFlag:!0}},computed:{},methods:{inputPerformance:function(e,t,r){r.clerkPerformance=Number(r.clerkPerformance.replace(/[^\d.]/g,""))?r.clerkPerformance.replace(/[^\d+(.\d+)]/g,""):"",r.clerkPerformance=Number(r.clerkPerformance).toFixed(2);var a=0;this.tableData.forEach(function(e){a+=Number(e.clerkPerformance)}),this.performanceSum=Number(a).toFixed(2),this.diffData()},inputMonthPerformance:function(e){this.clerkObj.storePerformance=Number(this.clerkObj.storePerformance.replace(/[^\d.]/g,""))?this.clerkObj.storePerformance.replace(/[^\d+(.\d+)]/g,""):"",this.clerkObj.storePerformance=Number(this.clerkObj.storePerformance).toFixed(2),this.diffData()},diffData:function(){var e=Number(this.performanceSum)==Number(this.clerkObj.storePerformance);return this.equalFlag=!!e,e},saveSet:Object(c.a)(function(){if(!this.diffData())return!1;if(""==this.clerkObj.storePerformance)return this.$message.error({duration:1e3,message:"请输入门店月指标"}),!1;var e={clerkPerformanceList:this.tableData,storePerformance:this.clerkObj.storePerformance};this.postSave(e)},500),postSave:function(e){var t=this,r={brandId:t.activeBrand,storeId:t.clerkObj.storeId,yearMonth:t.clerkObj.yearMonth,performance:o()(e)};Object(u.e)("/haoban-app-performance-web/performance/save-clerk-month-performance",r).then(function(e){var t=e.data;1!=t.errorCode?l.a.errorMsg(t):i.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this,t={brandId:e.activeBrand,storeId:e.clerkObj.storeId,yearMonth:e.clerkObj.yearMonth};Object(u.e)("/haoban-app-performance-web/performance/query-clerk-month-performance",t).then(function(t){var r=t.data;if(1==r.errorCode){r.result.clerkPerformanceList&&r.result.clerkPerformanceList.length&&(r.result.clerkPerformanceList.forEach(function(e){e.clerkPerformance=Number(e.clerkPerformance).toFixed(2)}),e.tableData=r.result.clerkPerformanceList||[]),r.result.storePerformance=Number(r.result.storePerformance).toFixed(2),e.clerkObj=r.result;var a=0;return e.tableData.forEach(function(e){a+=Number(e.clerkPerformance)}),void(e.performanceSum=Number(a).toFixed(2))}l.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.clerkObj.yearMonth=this.$route.query.yearMonth,this.clerkObj.storeId=this.$route.query.storeId,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","11"),this.brandId&&(this.clerkObj.yearMonth=this.$route.query.yearMonth,this.clerkObj.storeId=this.$route.query.storeId,this.getData())},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonDetailTop:s.a}},m={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-detail-wrap common-right-wrap"},[r("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),r("div",{staticClass:"task-set-content boder-box"},[r("div",{staticClass:"saler-set-title flex flex-space-between m-b-15"},[r("div",{staticClass:"saler-set-title_left"},[r("span",[e._v(e._s(e.clerkObj.yearMonth))]),r("span",{staticClass:"p-l-18"},[e._v(e._s(e.clerkObj.storeName)+"门店导购月指标详情")])]),e._v(" "),r("div",{staticClass:"saler-set-title_right"},[r("span",[e._v("门店月指标:")]),r("el-input",{staticClass:"w-105 p-l-8",attrs:{placeholder:"请输入指标值",disabled:0==e.clerkObj.settingAble},on:{blur:function(t){return e.inputMonthPerformance(t)}},model:{value:e.clerkObj.storePerformance,callback:function(t){e.$set(e.clerkObj,"storePerformance",t)},expression:"clerkObj.storePerformance"}})],1)]),e._v(" "),r("div",{staticClass:"saler-set-table"},[r("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"导购"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.clerkName))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"月指标"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("el-input",{staticClass:"w-105 p-l-8",attrs:{placeholder:"请输入指标值",disabled:0==e.clerkObj.settingAble},on:{blur:function(r){return e.inputPerformance(r,t.$index,t.row)}},model:{value:t.row.clerkPerformance,callback:function(r){e.$set(t.row,"clerkPerformance",r)},expression:"scope.row.clerkPerformance"}})],1)]}}])})],1)],1),e._v(" "),r("div",{staticClass:"task-set-save text-center m-t-30"},[r("span",{staticClass:"saler-set-sum"},[e._v("导购总计:"),r("span",{class:["font-20",e.equalFlag?"color-1890ff":"color-f5222d"]},[e._v(e._s(e.performanceSum))])]),e._v(" "),1==e.clerkObj.settingAble?r("el-button",{attrs:{disabled:!e.equalFlag,type:"primary"},on:{click:e.saveSet}},[e._v("确 认")]):e._e(),e._v(" "),e.equalFlag?e._e():r("span",{staticClass:"font-14 color-f5222d p-l-24"},[e._v("请确保导购月指标总计 = 门店月指标")])],1)])],1)},staticRenderFns:[]};var d=r("VU/8")(f,m,!1,function(e){r("Uf20")},"data-v-69b1dd14",null);t.default=d.exports},Uf20:function(e,t){}}); webpackJsonp([62],{IKv2:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),o=r.n(a),n=r("2eFk"),s=r("Ke24"),c=r("PI0u"),l=r("Ch4/"),i=r("3E4D"),u=r("P9l9"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"指标管理",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"3",name:"门店月指标",path:"storeMonthTask?yearMonth="+this.$route.query.yearMonth+"&appIcon="+this.$route.query.appIcon},{id:"4",name:"导购月指标详情",path:""}],activeId:"4",tableData:[],performanceSum:"",clerkObj:{storeId:"",storeName:"",yearMonth:"",settingAble:1,storePerformance:""},equalFlag:!0}},computed:{},methods:{inputPerformance:function(e,t,r){r.clerkPerformance=Number(r.clerkPerformance.replace(/[^\d.]/g,""))?r.clerkPerformance.replace(/[^\d+(.\d+)]/g,""):"",r.clerkPerformance=Number(r.clerkPerformance).toFixed(2);var a=0;this.tableData.forEach(function(e){a+=Number(e.clerkPerformance)}),this.performanceSum=Number(a).toFixed(2),this.diffData()},inputMonthPerformance:function(e){this.clerkObj.storePerformance=Number(this.clerkObj.storePerformance.replace(/[^\d.]/g,""))?this.clerkObj.storePerformance.replace(/[^\d+(.\d+)]/g,""):"",this.clerkObj.storePerformance=Number(this.clerkObj.storePerformance).toFixed(2),this.diffData()},diffData:function(){var e=Number(this.performanceSum)==Number(this.clerkObj.storePerformance);return this.equalFlag=!!e,e},saveSet:Object(c.a)(function(){if(!this.diffData())return!1;if(""==this.clerkObj.storePerformance)return this.$message.error({duration:1e3,message:"请输入门店月指标"}),!1;var e={clerkPerformanceList:this.tableData,storePerformance:this.clerkObj.storePerformance};this.postSave(e)},500),postSave:function(e){var t=this,r={brandId:t.activeBrand,storeId:t.clerkObj.storeId,yearMonth:t.clerkObj.yearMonth,performance:o()(e)};Object(u.e)("/haoban-app-performance-web/performance/save-clerk-month-performance",r).then(function(e){var t=e.data;1!=t.errorCode?l.a.errorMsg(t):i.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this,t={brandId:e.activeBrand,storeId:e.clerkObj.storeId,yearMonth:e.clerkObj.yearMonth};Object(u.e)("/haoban-app-performance-web/performance/query-clerk-month-performance",t).then(function(t){var r=t.data;if(1==r.errorCode){r.result.clerkPerformanceList&&r.result.clerkPerformanceList.length&&(r.result.clerkPerformanceList.forEach(function(e){e.clerkPerformance=Number(e.clerkPerformance).toFixed(2)}),e.tableData=r.result.clerkPerformanceList||[]),r.result.storePerformance=Number(r.result.storePerformance).toFixed(2),e.clerkObj=r.result;var a=0;return e.tableData.forEach(function(e){a+=Number(e.clerkPerformance)}),void(e.performanceSum=Number(a).toFixed(2))}l.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.clerkObj.yearMonth=this.$route.query.yearMonth,this.clerkObj.storeId=this.$route.query.storeId,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","11"),this.brandId&&(this.clerkObj.yearMonth=this.$route.query.yearMonth,this.clerkObj.storeId=this.$route.query.storeId,this.getData())},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonDetailTop:s.a}},m={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-detail-wrap common-right-wrap"},[r("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),r("div",{staticClass:"task-set-content boder-box"},[r("div",{staticClass:"saler-set-title flex flex-space-between m-b-15"},[r("div",{staticClass:"saler-set-title_left"},[r("span",[e._v(e._s(e.clerkObj.yearMonth))]),r("span",{staticClass:"p-l-18"},[e._v(e._s(e.clerkObj.storeName)+"门店导购月指标详情")])]),e._v(" "),r("div",{staticClass:"saler-set-title_right"},[r("span",[e._v("门店月指标:")]),r("el-input",{staticClass:"w-105 p-l-8",attrs:{placeholder:"请输入指标值",disabled:0==e.clerkObj.settingAble},on:{blur:function(t){return e.inputMonthPerformance(t)}},model:{value:e.clerkObj.storePerformance,callback:function(t){e.$set(e.clerkObj,"storePerformance",t)},expression:"clerkObj.storePerformance"}})],1)]),e._v(" "),r("div",{staticClass:"saler-set-table"},[r("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"导购"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.clerkName))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"月指标"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("el-input",{staticClass:"w-105 p-l-8",attrs:{placeholder:"请输入指标值",disabled:0==e.clerkObj.settingAble},on:{blur:function(r){return e.inputPerformance(r,t.$index,t.row)}},model:{value:t.row.clerkPerformance,callback:function(r){e.$set(t.row,"clerkPerformance",r)},expression:"scope.row.clerkPerformance"}})],1)]}}])})],1)],1),e._v(" "),r("div",{staticClass:"task-set-save text-center m-t-30"},[r("span",{staticClass:"saler-set-sum"},[e._v("导购总计:"),r("span",{class:["font-20",e.equalFlag?"color-1890ff":"color-f5222d"]},[e._v(e._s(e.performanceSum))])]),e._v(" "),1==e.clerkObj.settingAble?r("el-button",{attrs:{disabled:!e.equalFlag,type:"primary"},on:{click:e.saveSet}},[e._v("确 认")]):e._e(),e._v(" "),e.equalFlag?e._e():r("span",{staticClass:"font-14 color-f5222d p-l-24"},[e._v("请确保导购月指标总计 = 门店月指标")])],1)])],1)},staticRenderFns:[]};var d=r("VU/8")(f,m,!1,function(e){r("Uf20")},"data-v-69b1dd14",null);t.default=d.exports},Uf20:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([62],{SxT2:function(e,t){},kCy7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("Ke24"),n=a("Ie7z"),i=a("P9l9"),s=a("PI0u"),r=a("Ch4/"),c={name:"noticeList",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){var e=this;return{topMenuData:[{id:"1",name:"签到记录"}],activeId:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,conditionObj:{keyword:"",storeGroup:[],signStatus:"",choiceDate:[]},signStatusOptions:[{value:"",label:"所有状态"},{value:"0",label:"签到"},{value:"1",label:"签退"}],choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-2592e6,o=e.choiceDateCopy[0]+2592e6;return t.getTime()<a||t.getTime()>o||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},tableData:[],pageSize:20,currentPage:1,totalCount:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},filters:{formatTimeYMD:function(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a;return t.getFullYear()+"-"+n+"-"+o},formatTimeHMS:function(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.activeBrand=this.brandId;var t=new Date,a=t.getTime()-2592e6,o=t.getFullYear(),n=t.getMonth()+1,i=t.getDate()<10?"0"+t.getDate():t.getDate(),s=n<10?"0"+n:n,r=new Date(a),c=r.getFullYear(),l=r.getMonth()+1,u=r.getDate()<10?"0"+r.getDate():r.getDate(),d=l<10?"0"+l:l;e.conditionObj.choiceDate=[c+"-"+d+"-"+u,o+"-"+s+"-"+i],e.brandId&&e.$nextTick(function(t){e.getTableList()})},methods:{showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},getTableList:function(){var e=this;e.loading=!0;var t=[],a=[],o=["星期天","星期一","星期二","星期三","星期四","星期五","星期六"];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)}),e.conditionObj.choiceDate||(e.conditionObj.choiceDate=[]);var n={haobanEnterpriseId:localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")).enterpriseId:"",search:e.conditionObj.keyword||"",haobanBrandId:e.activeBrand,storeIds:a.join(",")||"",groupIds:t.join(",")||"",signType:e.conditionObj.signStatus||"",startDate:e.conditionObj&&e.conditionObj.choiceDate[0]?e.conditionObj.choiceDate[0]:"",endDate:e.conditionObj&&e.conditionObj.choiceDate[1]?e.conditionObj.choiceDate[1]:"",pageNum:e.currentPage,pageSize:e.pageSize};Object(i.a)("/haoban-app-sign-web/sign/sign-list",n).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return a.result.list.forEach(function(e){e.week=o[new Date(e.signDay).getDay()]}),e.tableData=a.result.list||[],e.totalCount=a.result.pageInfo.total,!1;r.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.choiceDate=[]),this.currentPage=1,this.getTableList()},searchPeople:Object(s.a)(function(e){this.currentPage,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},exportData:function(){if(!this.conditionObj.choiceDate||!this.conditionObj.choiceDate[0]||!this.conditionObj.choiceDate[1])return this.$message.error({duration:1e3,message:"请选择日期区间"}),!1;this.postExportData()},postExportData:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var o={haobanEnterpriseId:localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")).enterpriseId:"",search:e.conditionObj.keyword||"",storeIds:a.join(",")||"",groupIds:t.join(",")||"",signType:e.conditionObj.signStatus||"",startDate:e.conditionObj.choiceDate[0]?e.conditionObj.choiceDate[0]:"",endDate:e.conditionObj.choiceDate[1]?e.conditionObj.choiceDate[1]:"",haobanBrandId:e.activeBrand};Object(i.b)("/haoban-app-sign-web/sign/export-sign-list",o).then(function(e){if(!e.data)return r.a.errorMsg("暂无数据"),!1;var t=new Blob([e.data],{type:"application/vnd.ms-excel"}),a=o.startDate.replace(/-/g,"")+"-"+o.endDate.replace(/-/g,"")+"签到报表.xlsx",n=document.createElement("a");n.download=a,n.style.display="none",n.href=URL.createObjectURL(t),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},components:{vueSelectStore:n.a,commonDetailTop:o.a}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"notice-list-wrap"},[a("div",{staticClass:"notice-list"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"notice-list-table"},[a("div",{staticClass:"search-wrap"},[a("el-input",{staticClass:"search-input",attrs:{clearable:"",placeholder:"请输入姓名/员工代码","prefix-icon":"el-icon-search"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.searchPeople(a);var a}},model:{value:e.conditionObj.keyword,callback:function(t){e.$set(e.conditionObj,"keyword",t)},expression:"conditionObj.keyword"}}),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e.conditionObj.storeGroup.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc"},[e._v("请选择门店分组")]),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.conditionObj.storeGroup,function(t,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(o,e.conditionObj.storeGroup)}}})])]})],2)])])])]),e._v(" "),a("el-select",{staticClass:"w-112 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.signStatus,callback:function(t){e.$set(e.conditionObj,"signStatus",t)},expression:"conditionObj.signStatus"}},e._l(e.signStatusOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"search-date",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.choiceDate,callback:function(t){e.$set(e.conditionObj,"choiceDate",t)},expression:"conditionObj.choiceDate"}}),e._v(" "),a("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:e.exportData}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"storeName",label:"门店名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"姓名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"员工代码","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkCode)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.signType?"签退":"签到")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.signDay?a("div",{staticClass:"time-wrap"},[a("p",{class:["星期六"==t.row.week||"星期天"==t.row.week?"color-f56c6c":""]},[e._v(e._s(e._f("formatTimeYMD")(t.row.signDay))+" "+e._s(t.row.week))]),e._v(" "),a("p",[e._v(e._s(e._f("formatTimeHMS")(t.row.signTime)))])]):a("div",[e._v("--")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"打卡坐标","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.signLongitude||"-")+" "),t.row.signLatitude?a("span",[e._v(",")]):e._e(),e._v(" "+e._s(t.row.signLatitude||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店坐标","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.storeLongitude||"-")+" "),t.row.storeLatitude?a("span",[e._v(",")]):e._e(),e._v(" "+e._s(t.row.storeLatitude||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"距离","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.distance||"--")+"\n ")]}}])})],1),e._v(" "),e.totalCount?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.currentPage,layout:"total, sizes, prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,l,!1,function(e){a("SxT2")},"data-v-68394700",null);t.default=u.exports}}); webpackJsonp([63],{SxT2:function(e,t){},kCy7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("Ke24"),n=a("Ie7z"),i=a("P9l9"),s=a("PI0u"),r=a("Ch4/"),c={name:"noticeList",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){var e=this;return{topMenuData:[{id:"1",name:"签到记录"}],activeId:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,conditionObj:{keyword:"",storeGroup:[],signStatus:"",choiceDate:[]},signStatusOptions:[{value:"",label:"所有状态"},{value:"0",label:"签到"},{value:"1",label:"签退"}],choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-2592e6,o=e.choiceDateCopy[0]+2592e6;return t.getTime()<a||t.getTime()>o||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},tableData:[],pageSize:20,currentPage:1,totalCount:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},filters:{formatTimeYMD:function(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a;return t.getFullYear()+"-"+n+"-"+o},formatTimeHMS:function(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.activeBrand=this.brandId;var t=new Date,a=t.getTime()-2592e6,o=t.getFullYear(),n=t.getMonth()+1,i=t.getDate()<10?"0"+t.getDate():t.getDate(),s=n<10?"0"+n:n,r=new Date(a),c=r.getFullYear(),l=r.getMonth()+1,u=r.getDate()<10?"0"+r.getDate():r.getDate(),d=l<10?"0"+l:l;e.conditionObj.choiceDate=[c+"-"+d+"-"+u,o+"-"+s+"-"+i],e.brandId&&e.$nextTick(function(t){e.getTableList()})},methods:{showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},getTableList:function(){var e=this;e.loading=!0;var t=[],a=[],o=["星期天","星期一","星期二","星期三","星期四","星期五","星期六"];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)}),e.conditionObj.choiceDate||(e.conditionObj.choiceDate=[]);var n={haobanEnterpriseId:localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")).enterpriseId:"",search:e.conditionObj.keyword||"",haobanBrandId:e.activeBrand,storeIds:a.join(",")||"",groupIds:t.join(",")||"",signType:e.conditionObj.signStatus||"",startDate:e.conditionObj&&e.conditionObj.choiceDate[0]?e.conditionObj.choiceDate[0]:"",endDate:e.conditionObj&&e.conditionObj.choiceDate[1]?e.conditionObj.choiceDate[1]:"",pageNum:e.currentPage,pageSize:e.pageSize};Object(i.a)("/haoban-app-sign-web/sign/sign-list",n).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return a.result.list.forEach(function(e){e.week=o[new Date(e.signDay).getDay()]}),e.tableData=a.result.list||[],e.totalCount=a.result.pageInfo.total,!1;r.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.choiceDate=[]),this.currentPage=1,this.getTableList()},searchPeople:Object(s.a)(function(e){this.currentPage,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},exportData:function(){if(!this.conditionObj.choiceDate||!this.conditionObj.choiceDate[0]||!this.conditionObj.choiceDate[1])return this.$message.error({duration:1e3,message:"请选择日期区间"}),!1;this.postExportData()},postExportData:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var o={haobanEnterpriseId:localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")).enterpriseId:"",search:e.conditionObj.keyword||"",storeIds:a.join(",")||"",groupIds:t.join(",")||"",signType:e.conditionObj.signStatus||"",startDate:e.conditionObj.choiceDate[0]?e.conditionObj.choiceDate[0]:"",endDate:e.conditionObj.choiceDate[1]?e.conditionObj.choiceDate[1]:"",haobanBrandId:e.activeBrand};Object(i.b)("/haoban-app-sign-web/sign/export-sign-list",o).then(function(e){if(!e.data)return r.a.errorMsg("暂无数据"),!1;var t=new Blob([e.data],{type:"application/vnd.ms-excel"}),a=o.startDate.replace(/-/g,"")+"-"+o.endDate.replace(/-/g,"")+"签到报表.xlsx",n=document.createElement("a");n.download=a,n.style.display="none",n.href=URL.createObjectURL(t),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},components:{vueSelectStore:n.a,commonDetailTop:o.a}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"notice-list-wrap"},[a("div",{staticClass:"notice-list"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"notice-list-table"},[a("div",{staticClass:"search-wrap"},[a("el-input",{staticClass:"search-input",attrs:{clearable:"",placeholder:"请输入姓名/员工代码","prefix-icon":"el-icon-search"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.searchPeople(a);var a}},model:{value:e.conditionObj.keyword,callback:function(t){e.$set(e.conditionObj,"keyword",t)},expression:"conditionObj.keyword"}}),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e.conditionObj.storeGroup.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc"},[e._v("请选择门店分组")]),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.conditionObj.storeGroup,function(t,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(o,e.conditionObj.storeGroup)}}})])]})],2)])])])]),e._v(" "),a("el-select",{staticClass:"w-112 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.signStatus,callback:function(t){e.$set(e.conditionObj,"signStatus",t)},expression:"conditionObj.signStatus"}},e._l(e.signStatusOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"search-date",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.choiceDate,callback:function(t){e.$set(e.conditionObj,"choiceDate",t)},expression:"conditionObj.choiceDate"}}),e._v(" "),a("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:e.exportData}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"storeName",label:"门店名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"姓名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"员工代码","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkCode)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.signType?"签退":"签到")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.signDay?a("div",{staticClass:"time-wrap"},[a("p",{class:["星期六"==t.row.week||"星期天"==t.row.week?"color-f56c6c":""]},[e._v(e._s(e._f("formatTimeYMD")(t.row.signDay))+" "+e._s(t.row.week))]),e._v(" "),a("p",[e._v(e._s(e._f("formatTimeHMS")(t.row.signTime)))])]):a("div",[e._v("--")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"打卡坐标","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.signLongitude||"-")+" "),t.row.signLatitude?a("span",[e._v(",")]):e._e(),e._v(" "+e._s(t.row.signLatitude||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店坐标","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.storeLongitude||"-")+" "),t.row.storeLatitude?a("span",[e._v(",")]):e._e(),e._v(" "+e._s(t.row.storeLatitude||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"距离","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.distance||"--")+"\n ")]}}])})],1),e._v(" "),e.totalCount?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.currentPage,layout:"total, sizes, prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,l,!1,function(e){a("SxT2")},"data-v-68394700",null);t.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([63],{"5nNU":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),l=a("2eFk"),i=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"云日报记录",path:"/dailyRecord?appIcon="+this.$route.query.appIcon},{id:"2",name:"日报详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId})||"",overdue:t.conditionObj.overdue||"",completed:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,chooseAll:t.selectRadio};Object(c.e)("/haoban-app-daily-web/daily/batch-delete-store-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId};Object(c.a)("/haoban-app-daily-web/daily/delete-task-items",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",overdue:t.conditionObj.overdue||"",completed:t.conditionObj.completed||"",currentPage:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(c.a)("/haoban-app-daily-web/daily/page-store-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:l.a,commonDetailTop:i.a,multipleDel:s.a,qrcodeDialog:r.a}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var p=a("VU/8")(f,m,!1,function(e){a("KPe4")},"data-v-656927f2",null);t.default=p.exports},KPe4:function(e,t){}}); webpackJsonp([64],{"5nNU":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),l=a("2eFk"),i=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"云日报记录",path:"/dailyRecord?appIcon="+this.$route.query.appIcon},{id:"2",name:"日报详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId})||"",overdue:t.conditionObj.overdue||"",completed:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,chooseAll:t.selectRadio};Object(c.e)("/haoban-app-daily-web/daily/batch-delete-store-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId};Object(c.a)("/haoban-app-daily-web/daily/delete-task-items",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",overdue:t.conditionObj.overdue||"",completed:t.conditionObj.completed||"",currentPage:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(c.a)("/haoban-app-daily-web/daily/page-store-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:l.a,commonDetailTop:i.a,multipleDel:s.a,qrcodeDialog:r.a}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var p=a("VU/8")(f,m,!1,function(e){a("KPe4")},"data-v-656927f2",null);t.default=p.exports},KPe4:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([64],{"53ku":function(t,e){},"av/3":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),o=a("fvdr"),i=a("Qie6"),c={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"企业公告",appIcon:"icon-gonggao",activeSelTab:"1",activeTab:"1",tabListData:[{id:"1",name:"企业公告列表",icon:"",onlyIconActive:!1},{id:"2",name:"新建公告",icon:"",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:o.a,commonDetailLeft:i.a}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=a("VU/8")(c,r,!1,function(t){a("53ku")},"data-v-63612582",null);e.default=s.exports}}); webpackJsonp([65],{"53ku":function(t,e){},"av/3":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),o=a("fvdr"),i=a("Qie6"),c={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"企业公告",appIcon:"icon-gonggao",activeSelTab:"1",activeTab:"1",tabListData:[{id:"1",name:"企业公告列表",icon:"",onlyIconActive:!1},{id:"2",name:"新建公告",icon:"",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:o.a,commonDetailLeft:i.a}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=a("VU/8")(c,r,!1,function(t){a("53ku")},"data-v-63612582",null);e.default=s.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([65],{"41Rh":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={name:"contact",components:{topNav:a("3Xzz").a},data:function(){return{rightH:(document.documentElement.clientHeight||document.body.clientHeight)-64+"px",projectName:"haoban-manage-web",collapseFlag:!1,navpath:[{name:"首页",path:"/"},{name:"通讯录",path:""},{name:"企业通讯录"},{name:"行政架构"}]}},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},watch:{$route:{handler:function(t,e){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){},computed:{}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"contact-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"contact-wrap__body",style:{height:t.rightH}},[a("vue-office-aside",{ref:"asideMenu",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}}),t._v(" "),a("div",{staticClass:"contact-wrap__right",style:{height:t.rightH}},[a("div",{staticClass:"contact-wrap__right__body"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view")],1)],1)])],1)],1)},staticRenderFns:[]};var c=a("VU/8")(o,n,!1,function(t){a("P4oC")},null,null);e.default=c.exports},P4oC:function(t,e){}}); webpackJsonp([66],{"41Rh":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={name:"contact",components:{topNav:a("3Xzz").a},data:function(){return{rightH:(document.documentElement.clientHeight||document.body.clientHeight)-64+"px",projectName:"haoban-manage-web",collapseFlag:!1,navpath:[{name:"首页",path:"/"},{name:"通讯录",path:""},{name:"企业通讯录"},{name:"行政架构"}]}},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},watch:{$route:{handler:function(t,e){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){},computed:{}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"contact-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"contact-wrap__body",style:{height:t.rightH}},[a("vue-office-aside",{ref:"asideMenu",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}}),t._v(" "),a("div",{staticClass:"contact-wrap__right",style:{height:t.rightH}},[a("div",{staticClass:"contact-wrap__right__body"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view")],1)],1)])],1)],1)},staticRenderFns:[]};var c=a("VU/8")(o,n,!1,function(t){a("P4oC")},null,null);e.default=c.exports},P4oC:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([66],{GqD7:function(t,e){},m0O4:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"营销素材",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"图文素材",icon:"icon-tuwen"},{tabId:"2",tabName:"纷享素材",icon:"icon-fenxiang"}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("imageText?appIcon="+this.$route.query.appIcon);break;case"2":this.changeRoute("enjoyMaterial?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("GqD7")},"data-v-62341f07",null);e.default=r.exports}}); webpackJsonp([67],{GqD7:function(t,e){},m0O4:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"营销素材",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"图文素材",icon:"icon-tuwen"},{tabId:"2",tabName:"纷享素材",icon:"icon-fenxiang"}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("imageText?appIcon="+this.$route.query.appIcon);break;case"2":this.changeRoute("enjoyMaterial?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("GqD7")},"data-v-62341f07",null);e.default=r.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([67],{"5Os6":function(t,e){},e88N:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"话务任务",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"话务任务记录",icon:"icon-tonghuahuawuliang",onlyIconActive:!1},{tabId:"2",tabName:"话务任务设置",icon:"icon-huawujinengzupeizhi",onlyIconActive:!1},{tabId:"3",tabName:"不良评价回访设置",icon:"icon-ribaoshezhi",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("taskRecord?appIcon="+this.$route.query.appIcon);break;case"2":this.changeRoute("trafficTaskSet?appIcon="+this.$route.query.appIcon);break;case"3":this.changeRoute("badEvaluateSet?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("5Os6")},"data-v-5d5dbd63",null);e.default=r.exports}}); webpackJsonp([68],{"5Os6":function(t,e){},e88N:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"话务任务",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"话务任务记录",icon:"icon-tonghuahuawuliang",onlyIconActive:!1},{tabId:"2",tabName:"话务任务设置",icon:"icon-huawujinengzupeizhi",onlyIconActive:!1},{tabId:"3",tabName:"不良评价回访设置",icon:"icon-ribaoshezhi",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("taskRecord?appIcon="+this.$route.query.appIcon);break;case"2":this.changeRoute("trafficTaskSet?appIcon="+this.$route.query.appIcon);break;case"3":this.changeRoute("badEvaluateSet?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("5Os6")},"data-v-5d5dbd63",null);e.default=r.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([68],{"7S4r":function(e,t){},mPjx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("l46T"),n=a("3Xzz"),s=a("Ie7z"),i=a("P9l9"),o={name:"store-view-group-info",components:{navCrumb:n.a,limitInput:r.a,vueSelectStore:s.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},disabled:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:""},currentBrand:this.$route.query.groupId,defaultList:[]}},methods:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(i.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.groupId}).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){})},handleSelectedList:function(e){var t=e[0];this.departInfo.parentId=t?t.id:"",this.departInfo.parentName=t?t.chainName:""},callGroupSelector:function(){this.treeSet.dialogVisible=!0},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var r=e,n={parentId:r.departInfo.parentId,name:r.departInfo.name},s="";r.isAddNew?s="/haoban-manage-web/dept/insert":(s="/haoban-manage-web/dept/update",n.groupId=r.$route.query.groupId,n.isStoreGroup=1),Object(i.a)(s,n).then(function(e){1==e.data.errorCode?(r.$message.success({duration:1e3,message:"操作成功!"}),"continue"==t?(r.departInfo={name:"",parentName:"",parentId:" "},r.defaultList=[]):window.history.go(-1)):r.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})},getGroupInfo:function(){var e=this,t={groupId:e.$route.query.groupId};Object(i.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){1==t.data.errorCode?(e.departInfo={name:t.data.result.name,parentName:t.data.result.chainName,parentId:t.data.result.parentId},e.defaultList=[{id:t.data.result.parentId,label:t.data.result.parentGroupName}]):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)},forbidenList:function(){return this.isAddNew?[]:[this.$route.query.groupId]},navpath:function(){return[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"group"==this.$route.query.type?"编辑分组":this.isAddNew?"添加子分组":"品牌编辑",path:""}]}},beforeMount:function(){this.treeSet.groupId=this.$route.query.firstLevelId,this.isAddNew||this.getGroupInfo()},mounted:function(){this.disabled=!1},watch:{treeData:function(){this.disabled=!1}}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell"},[a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"brand"==e.$route.query.type?"品牌名称":"部门名称",prop:"name"}},["brand"==e.$route.query.type?a("limitInput",{attrs:{inputWidth:380,inputValue:e.departInfo.name,holder:"请输入品牌名称",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.departInfo,"name",t)}}}):e._e(),e._v(" "),"brand"!=e.$route.query.type?a("limitInput",{attrs:{inputWidth:380,inputValue:e.departInfo.name,holder:"请输入部门名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.departInfo,"name",t)}}}):e._e()],1),e._v(" "),"group"==e.$route.query.type||e.isAddNew?a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,readonly:"","suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"setting-cell"},[a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),e.isAddNew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):a("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删除")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{defaultList:e.defaultList,treeSet:e.treeSet,currentBrand:e.currentBrand,selectType:"group",forbidenList:e.forbidenList},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var u=a("VU/8")(o,d,!1,function(e){a("7S4r")},null,null);t.default=u.exports}}); webpackJsonp([69],{"7S4r":function(e,t){},mPjx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("l46T"),n=a("3Xzz"),s=a("Ie7z"),i=a("P9l9"),o={name:"store-view-group-info",components:{navCrumb:n.a,limitInput:r.a,vueSelectStore:s.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},disabled:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:""},currentBrand:this.$route.query.groupId,defaultList:[]}},methods:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(i.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.groupId}).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){})},handleSelectedList:function(e){var t=e[0];this.departInfo.parentId=t?t.id:"",this.departInfo.parentName=t?t.chainName:""},callGroupSelector:function(){this.treeSet.dialogVisible=!0},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var r=e,n={parentId:r.departInfo.parentId,name:r.departInfo.name},s="";r.isAddNew?s="/haoban-manage-web/dept/insert":(s="/haoban-manage-web/dept/update",n.groupId=r.$route.query.groupId,n.isStoreGroup=1),Object(i.a)(s,n).then(function(e){1==e.data.errorCode?(r.$message.success({duration:1e3,message:"操作成功!"}),"continue"==t?(r.departInfo={name:"",parentName:"",parentId:" "},r.defaultList=[]):window.history.go(-1)):r.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})},getGroupInfo:function(){var e=this,t={groupId:e.$route.query.groupId};Object(i.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){1==t.data.errorCode?(e.departInfo={name:t.data.result.name,parentName:t.data.result.chainName,parentId:t.data.result.parentId},e.defaultList=[{id:t.data.result.parentId,label:t.data.result.parentGroupName}]):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)},forbidenList:function(){return this.isAddNew?[]:[this.$route.query.groupId]},navpath:function(){return[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"group"==this.$route.query.type?"编辑分组":this.isAddNew?"添加子分组":"品牌编辑",path:""}]}},beforeMount:function(){this.treeSet.groupId=this.$route.query.firstLevelId,this.isAddNew||this.getGroupInfo()},mounted:function(){this.disabled=!1},watch:{treeData:function(){this.disabled=!1}}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell"},[a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"brand"==e.$route.query.type?"品牌名称":"部门名称",prop:"name"}},["brand"==e.$route.query.type?a("limitInput",{attrs:{inputWidth:380,inputValue:e.departInfo.name,holder:"请输入品牌名称",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.departInfo,"name",t)}}}):e._e(),e._v(" "),"brand"!=e.$route.query.type?a("limitInput",{attrs:{inputWidth:380,inputValue:e.departInfo.name,holder:"请输入部门名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.departInfo,"name",t)}}}):e._e()],1),e._v(" "),"group"==e.$route.query.type||e.isAddNew?a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,readonly:"","suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"setting-cell"},[a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),e.isAddNew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):a("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删除")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{defaultList:e.defaultList,treeSet:e.treeSet,currentBrand:e.currentBrand,selectType:"group",forbidenList:e.forbidenList},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var u=a("VU/8")(o,d,!1,function(e){a("7S4r")},null,null);t.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([69],{FT0U:function(t,e){},Gk4o:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),o=a("fvdr"),i=a("Qie6"),c={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"签到",appIcon:"",activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:o.a,commonDetailLeft:i.a}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=a("VU/8")(c,r,!1,function(t){a("FT0U")},"data-v-59c4a073",null);e.default=s.exports}}); webpackJsonp([70],{FT0U:function(t,e){},Gk4o:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),o=a("fvdr"),i=a("Qie6"),c={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"签到",appIcon:"",activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:o.a,commonDetailLeft:i.a}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=a("VU/8")(c,r,!1,function(t){a("FT0U")},"data-v-59c4a073",null);e.default=s.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([70],{lpYn:function(t,e){},"s4D+":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var c=i("VU/8")(l,a,!1,function(t){i("lpYn")},"data-v-51432d8f",null);e.default=c.exports}}); webpackJsonp([71],{lpYn:function(t,e){},"s4D+":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var c=i("VU/8")(l,a,!1,function(t){i("lpYn")},"data-v-51432d8f",null);e.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([71],{"6zFj":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),c=e("3E4D"),s=e("Ch4/"),o=e("PI0u"),i=e("P9l9"),r={name:"contactPermission",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"通讯录控制",path:""}],contactHideFlag:!1}},methods:{saveSet:Object(o.a)(function(){var t=this,a={contactHideFlag:t.contactHideFlag?"1":"0"};Object(i.e)("/haoban-manage-web/contact/save-contact-setting",a).then(function(t){var a=t.data;1!=a.errorCode?s.a.errorMsg(a):c.a.showmsg("保存成功","success")}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},300),getSetData:function(){var t=this;Object(i.e)("/haoban-manage-web/contact/find-contact-setting",{}).then(function(a){var e=a.data;1!=e.errorCode?s.a.errorMsg(e):t.contactHideFlag=1==e.result.contactHideFlag}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},mounted:function(){this.getSetData()},components:{navCrumb:n.a}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"storePermission-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box"},[e("div",{},[e("div",{staticClass:"check-box-wrap inline-block vertical-top"},[e("el-checkbox",{model:{value:t.contactHideFlag,callback:function(a){t.contactHideFlag=a},expression:"contactHideFlag"}},[t._v("隐藏通讯录模块")])],1),t._v(" "),e("div",{staticClass:"tip-text-wrap w-440 inline-block vertical-top"},[t._v("注:隐藏后,APP将不展示通讯录,通讯录仍可用,但无法进行通讯录及门店管理,以及添加员工操作。所有通讯录内容仅可在PC管理后台进行操作和管理。")])]),t._v(" "),e("div",[e("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])]),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var l=e("VU/8")(r,d,!1,function(t){e("R1ch")},"data-v-5090dca8",null);a.default=l.exports},R1ch:function(t,a){}}); webpackJsonp([72],{"6zFj":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),c=e("3E4D"),s=e("Ch4/"),o=e("PI0u"),i=e("P9l9"),r={name:"contactPermission",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"通讯录控制",path:""}],contactHideFlag:!1}},methods:{saveSet:Object(o.a)(function(){var t=this,a={contactHideFlag:t.contactHideFlag?"1":"0"};Object(i.e)("/haoban-manage-web/contact/save-contact-setting",a).then(function(t){var a=t.data;1!=a.errorCode?s.a.errorMsg(a):c.a.showmsg("保存成功","success")}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},300),getSetData:function(){var t=this;Object(i.e)("/haoban-manage-web/contact/find-contact-setting",{}).then(function(a){var e=a.data;1!=e.errorCode?s.a.errorMsg(e):t.contactHideFlag=1==e.result.contactHideFlag}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},mounted:function(){this.getSetData()},components:{navCrumb:n.a}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"storePermission-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box"},[e("div",{},[e("div",{staticClass:"check-box-wrap inline-block vertical-top"},[e("el-checkbox",{model:{value:t.contactHideFlag,callback:function(a){t.contactHideFlag=a},expression:"contactHideFlag"}},[t._v("隐藏通讯录模块")])],1),t._v(" "),e("div",{staticClass:"tip-text-wrap w-440 inline-block vertical-top"},[t._v("注:隐藏后,APP将不展示通讯录,通讯录仍可用,但无法进行通讯录及门店管理,以及添加员工操作。所有通讯录内容仅可在PC管理后台进行操作和管理。")])]),t._v(" "),e("div",[e("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])]),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var l=e("VU/8")(r,d,!1,function(t){e("R1ch")},"data-v-5090dca8",null);a.default=l.exports},R1ch:function(t,a){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([72],{Akas:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"话务任务记录",path:"/taskRecord?appIcon="+this.$route.query.appIcon},{id:"2",name:"任务详情",path:""}],activeId:"2",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeTable:function(e){this.currentPage=1,this.getTableList()},handleCommand:function(e){this.selectRadio=e},setSelectTab:function(e){this.activeTab=e.tabId},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[],n=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var o={search:t.conditionObj.searchInput||"",filterStoreIds:n.join(",")||"",storeGroupIds:a.join(",")||"",storeIds:t.multipleSelection.map(function(e){return e.storeId}).join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",brandId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:a.join(",")||"",storeGroupIds:t.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange?e.conditionObj.dateRange[0]:"",endDate:e.conditionObj.dateRange?e.conditionObj.dateRange[1]:"",brandId:e.activeBrand};Object(c.b)("/haoban-app-tel-task-web/task/export-store-task-list",n).then(function(t){if(!t.data)return p.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),n=(e.tableData[0]?e.tableData[0].storeName:"")+"门店任务报表.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("taskDetail?storeId="+t.storeId+"&ecmId="+this.$route.query.ecmId+"&appIcon="+this.$route.query.appIcon)},getTableList:function(e){var t=this,a=[],n=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var o={ecmId:t.$route.query.ecmId,search:t.conditionObj.searchInput||"",filterStoreIds:n.join(",")||"",storeGroupIds:a.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initDataRange:function(){var e=new Date,t=e.getTime()-7776e6,a=e.getFullYear(),n=e.getMonth()+1,o=e.getDate()<10?"0"+e.getDate():e.getDate(),i=n<10?"0"+n:n,s=new Date(t),l=s.getFullYear(),r=s.getMonth()+1,c=s.getDate()<10?"0"+s.getDate():s.getDate();return[l+"-"+(r<10?"0"+r:r)+"-"+c,a+"-"+i+"-"+o]}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.conditionObj.dateRange=e.initDataRange(),document.documentElement.style.backgroundColor="#f0f2f5",e.activeBrand=e.brandId,e.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap task-view-detail"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e.conditionObj.storeGroup.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc"},[e._v("请选择门店分组")]),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.conditionObj.storeGroup,function(t,n){return[a("span",{key:n,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(n,e.conditionObj.storeGroup)}}})])]})],2)])])])]),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeStoreType},model:{value:e.conditionObj.storeType,callback:function(t){e.$set(e.conditionObj,"storeType",t)},expression:"conditionObj.storeType"}},e._l(e.storeTypeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),e._v(" "),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.completedCount))]}}])}),e._v(" "),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.completedRate))]}}])}),e._v(" "),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.noCompletedCount))]}}])}),e._v(" "),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.overdueCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1},on:{hideDialog:e.hideDialog}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var b=a("VU/8")(h,g,!1,function(e){a("m8tU")},"data-v-4b967a5a",null);t.default=b.exports},m8tU:function(e,t){}}); webpackJsonp([73],{Akas:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"话务任务记录",path:"/taskRecord?appIcon="+this.$route.query.appIcon},{id:"2",name:"任务详情",path:""}],activeId:"2",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeTable:function(e){this.currentPage=1,this.getTableList()},handleCommand:function(e){this.selectRadio=e},setSelectTab:function(e){this.activeTab=e.tabId},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[],n=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var o={search:t.conditionObj.searchInput||"",filterStoreIds:n.join(",")||"",storeGroupIds:a.join(",")||"",storeIds:t.multipleSelection.map(function(e){return e.storeId}).join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",brandId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:a.join(",")||"",storeGroupIds:t.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange?e.conditionObj.dateRange[0]:"",endDate:e.conditionObj.dateRange?e.conditionObj.dateRange[1]:"",brandId:e.activeBrand};Object(c.b)("/haoban-app-tel-task-web/task/export-store-task-list",n).then(function(t){if(!t.data)return p.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),n=(e.tableData[0]?e.tableData[0].storeName:"")+"门店任务报表.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("taskDetail?storeId="+t.storeId+"&ecmId="+this.$route.query.ecmId+"&appIcon="+this.$route.query.appIcon)},getTableList:function(e){var t=this,a=[],n=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var o={ecmId:t.$route.query.ecmId,search:t.conditionObj.searchInput||"",filterStoreIds:n.join(",")||"",storeGroupIds:a.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initDataRange:function(){var e=new Date,t=e.getTime()-7776e6,a=e.getFullYear(),n=e.getMonth()+1,o=e.getDate()<10?"0"+e.getDate():e.getDate(),i=n<10?"0"+n:n,s=new Date(t),l=s.getFullYear(),r=s.getMonth()+1,c=s.getDate()<10?"0"+s.getDate():s.getDate();return[l+"-"+(r<10?"0"+r:r)+"-"+c,a+"-"+i+"-"+o]}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.conditionObj.dateRange=e.initDataRange(),document.documentElement.style.backgroundColor="#f0f2f5",e.activeBrand=e.brandId,e.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap task-view-detail"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e.conditionObj.storeGroup.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc"},[e._v("请选择门店分组")]),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.conditionObj.storeGroup,function(t,n){return[a("span",{key:n,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(n,e.conditionObj.storeGroup)}}})])]})],2)])])])]),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeStoreType},model:{value:e.conditionObj.storeType,callback:function(t){e.$set(e.conditionObj,"storeType",t)},expression:"conditionObj.storeType"}},e._l(e.storeTypeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),e._v(" "),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.completedCount))]}}])}),e._v(" "),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.completedRate))]}}])}),e._v(" "),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.noCompletedCount))]}}])}),e._v(" "),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.overdueCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1},on:{hideDialog:e.hideDialog}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var b=a("VU/8")(h,g,!1,function(e){a("m8tU")},"data-v-4b967a5a",null);t.default=b.exports},m8tU:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([73],{YqmZ:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("mvHQ"),o=a.n(i),n=a("Ie7z"),s=a("Ke24"),l=a("b28S"),r=a("P9l9"),c=a("Ch4/"),d=a("PI0u"),p={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:s.a,vueSelectStore:n.a,chatLogList:l.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",topMenuData:[{id:"1",name:"在线沟通设置",path:"/onlineChatSet?appIcon="+this.$route.query.appIcon+"&activeTab="+this.$route.query.activeTab},{id:"2",name:"卡券领取记录"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,i=t.minDate;e.choiceDateCopy=[i.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,i=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>i||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:20,total:0,showFlag:!1,itemRow:{}}},methods:{delSelectData:function(e){this.defaultStoreList.splice(e,1),this.currentPage=1,this.getTableList()},showSingleInfo:function(e){},exportExcel:function(){var e=this,t=[],a=[],i=[];e.conditionObj.storeGroup.forEach(function(e){1==e.type&&i.push(e.employeeClerkId),2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var o={relatedId:e.$route.query.relatedId,search:e.conditionObj.searchInput||"",groupIds:t.join(",")||"",storeIds:a.join(",")||"",clerkIds:i.join(",")||"",startTime:e.conditionObj.dateRange[0]||"",endTime:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand};Object(r.b)("/haoban-app-member-web/customer/export_message_log",o).then(function(t){if(!t.data)return c.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),i=(e.tableData[0]?e.tableData[0].storeName:"")+"发送记录报表.csv",o=document.createElement("a");o.download=i,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.defaultStoreList=e,this.conditionObj.storeGroup=e,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDetail:function(e,t){this.showFlag=!0;var a=JSON.parse(o()(t));a.userMessageId="",this.itemRow=a},hideDetail:function(){this.showFlag=!1,this.itemRow={},this.$nextTick(function(){document.body.style.overflow="auto"})},getTableList:function(e){var t=this,a=[],i=[],o=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&o.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&i.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var n={coupCardId:t.$route.query.coupCardId,search:t.conditionObj.searchInput||"",groupIds:a.join(",")||"",storeIds:i.join(",")||"",clerkIds:o.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(r.e)("/haoban-app-member-web/cardCoupon/find-receive-card-page",n).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:"请输入导购姓名/手机号/code",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-date-picker",{staticClass:"m-l-10 m-r-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}}),a("el-button",{staticStyle:{"vertical-align":"middle"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e._v("门店架构选人")])],1),e._v(" "),a("div",{staticClass:"table-condition-right"})]),e._v(" "),e.defaultStoreList.length?a("div",{staticClass:"select-data-wrap m-b-20"},[a("ul",{staticClass:"selector-selected-list flex flex-wrap"},[e._l(e.defaultStoreList,function(t,i){return[a("li",{key:i+t.id+t.label,staticClass:"select-item"},[e._v(e._s(t.label)+" "),a("i",{staticClass:"el-icon-close",on:{click:function(t){e.delSelectData(i)}}})])]})],2)]):e._e(),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"导购信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.row.clerkImage?a("img",{attrs:{src:t.row.clerkImage,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(t.row.clerkName)+"\n "),a("i",{class:[2==t.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),e._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[e._v("员工代码:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.clerkCode||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.clerkPhone||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[e._v("职位:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.positionName||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属门店:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.storeName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.clerkImage?a("img",{attrs:{src:t.row.clerkImage,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"font-14 color-606266 text-ellipsis"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis"},[e._v(e._s(t.row.storeName))])])],1)]}}])}),e._v(" "),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.clerkPhone||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.memberUrl?a("img",{attrs:{src:t.row.memberUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"font-14 color-606266 text-ellipsis"},[e._v(e._s(t.row.memberName))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis"},[e._v(e._s(t.row.memberCardNo))])])])]}}])}),e._v(" "),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.memberPhone||"--"))]}}])}),e._v(" "),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.receiveName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领取时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.receiveTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.receiveTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("chat-log-list",{attrs:{brandId:e.brandId,itemRow:e.itemRow,showFlag:e.showFlag},on:{hideDetail:e.hideDetail}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)])},staticRenderFns:[]};var h=a("VU/8")(p,u,!1,function(e){a("ag8q")},"data-v-482d4abd",null);t.default=h.exports},ag8q:function(e,t){}}); webpackJsonp([74],{YqmZ:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("mvHQ"),o=a.n(i),n=a("Ie7z"),s=a("Ke24"),l=a("b28S"),r=a("P9l9"),c=a("Ch4/"),d=a("PI0u"),p={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:s.a,vueSelectStore:n.a,chatLogList:l.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",topMenuData:[{id:"1",name:"在线沟通设置",path:"/onlineChatSet?appIcon="+this.$route.query.appIcon+"&activeTab="+this.$route.query.activeTab},{id:"2",name:"卡券领取记录"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,i=t.minDate;e.choiceDateCopy=[i.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,i=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>i||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:20,total:0,showFlag:!1,itemRow:{}}},methods:{delSelectData:function(e){this.defaultStoreList.splice(e,1),this.currentPage=1,this.getTableList()},showSingleInfo:function(e){},exportExcel:function(){var e=this,t=[],a=[],i=[];e.conditionObj.storeGroup.forEach(function(e){1==e.type&&i.push(e.employeeClerkId),2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var o={relatedId:e.$route.query.relatedId,search:e.conditionObj.searchInput||"",groupIds:t.join(",")||"",storeIds:a.join(",")||"",clerkIds:i.join(",")||"",startTime:e.conditionObj.dateRange[0]||"",endTime:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand};Object(r.b)("/haoban-app-member-web/customer/export_message_log",o).then(function(t){if(!t.data)return c.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),i=(e.tableData[0]?e.tableData[0].storeName:"")+"发送记录报表.csv",o=document.createElement("a");o.download=i,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.defaultStoreList=e,this.conditionObj.storeGroup=e,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDetail:function(e,t){this.showFlag=!0;var a=JSON.parse(o()(t));a.userMessageId="",this.itemRow=a},hideDetail:function(){this.showFlag=!1,this.itemRow={},this.$nextTick(function(){document.body.style.overflow="auto"})},getTableList:function(e){var t=this,a=[],i=[],o=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&o.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&i.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var n={coupCardId:t.$route.query.coupCardId,search:t.conditionObj.searchInput||"",groupIds:a.join(",")||"",storeIds:i.join(",")||"",clerkIds:o.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(r.e)("/haoban-app-member-web/cardCoupon/find-receive-card-page",n).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:"请输入导购姓名/手机号/code",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-date-picker",{staticClass:"m-l-10 m-r-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}}),a("el-button",{staticStyle:{"vertical-align":"middle"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e._v("门店架构选人")])],1),e._v(" "),a("div",{staticClass:"table-condition-right"})]),e._v(" "),e.defaultStoreList.length?a("div",{staticClass:"select-data-wrap m-b-20"},[a("ul",{staticClass:"selector-selected-list flex flex-wrap"},[e._l(e.defaultStoreList,function(t,i){return[a("li",{key:i+t.id+t.label,staticClass:"select-item"},[e._v(e._s(t.label)+" "),a("i",{staticClass:"el-icon-close",on:{click:function(t){e.delSelectData(i)}}})])]})],2)]):e._e(),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"导购信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.row.clerkImage?a("img",{attrs:{src:t.row.clerkImage,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(t.row.clerkName)+"\n "),a("i",{class:[2==t.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),e._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[e._v("员工代码:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.clerkCode||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.clerkPhone||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[e._v("职位:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.positionName||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属门店:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.storeName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.clerkImage?a("img",{attrs:{src:t.row.clerkImage,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"font-14 color-606266 text-ellipsis"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis"},[e._v(e._s(t.row.storeName))])])],1)]}}])}),e._v(" "),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.clerkPhone||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.memberUrl?a("img",{attrs:{src:t.row.memberUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"font-14 color-606266 text-ellipsis"},[e._v(e._s(t.row.memberName))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis"},[e._v(e._s(t.row.memberCardNo))])])])]}}])}),e._v(" "),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.memberPhone||"--"))]}}])}),e._v(" "),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.receiveName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领取时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.receiveTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.receiveTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("chat-log-list",{attrs:{brandId:e.brandId,itemRow:e.itemRow,showFlag:e.showFlag},on:{hideDetail:e.hideDetail}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)])},staticRenderFns:[]};var h=a("VU/8")(p,u,!1,function(e){a("ag8q")},"data-v-482d4abd",null);t.default=h.exports},ag8q:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([74],{"5+o4":function(e,t){},jMbb:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("Ke24"),l=a("LRn8"),s=a("P9l9"),r=a("Ch4/"),c=a("3E4D"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"3",activeBrand:this.brandId,topMenuData:[{id:"1",name:"指标管理",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标任务",path:"/monthTask?appIcon="+this.$route.query.appIcon},{id:"3",name:"月指标任务详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{isCompleted:"",isOverTime:"",dateRange:[]},completedOptions:[{label:"完成情况",value:""},{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"逾期情况",value:""},{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{init:function(){var e=this.$route.query.startDate,t=this.$route.query.endDate;document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","13"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.conditionObj.dateRange=t?[e,t]:[],this.brandId&&this.getTableList()},selectInit:function(e,t){return 0!=e.removeAble},handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId}).join(",")||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",reason:e.reason,startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",brandId:t.activeBrand,isAll:t.selectRadio};Object(s.e)("/haoban-app-performance-web/performance/batch-remove-clerk-month-performance-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void t.getTableList();r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;this.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,n={taskId:t.taskId,brandId:this.activeBrand};Object(s.a)("/haoban-app-performance-web/performance/remove-clerk-month-performance-task",n).then(function(t){var n=t.data;if(1==n.errorCode)return a.total--,a.tableData.splice(e,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getTableList()):a.total>0&&a.getTableList()),void a.$message.success("删除成功");r.a.errorMsg(n)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(s.a)("/haoban-app-performance-web/performance/query-clerk-month-performance-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},activated:function(){this.init()},mounted:function(){this.init()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{commonDetailTop:i.a,multipleDel:l.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap common-right-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.isOverTime,callback:function(t){e.$set(e.conditionObj,"isOverTime",t)},expression:"conditionObj.isOverTime"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.isCompleted,callback:function(t){e.$set(e.conditionObj,"isCompleted",t)},expression:"conditionObj.isCompleted"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35",selectable:e.selectInit}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象",width:"260"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"first-item font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-909399"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",{staticClass:"color-909399"},[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",{staticClass:"color-909399"},[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.removeAble?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]):a("span",[e._v("--")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0,detailShowFlag:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var m=a("VU/8")(d,u,!1,function(e){a("5+o4")},"data-v-47935b7a",null);t.default=m.exports}}); webpackJsonp([75],{"5+o4":function(e,t){},jMbb:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("Ke24"),l=a("LRn8"),s=a("P9l9"),r=a("Ch4/"),c=a("3E4D"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"3",activeBrand:this.brandId,topMenuData:[{id:"1",name:"指标管理",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标任务",path:"/monthTask?appIcon="+this.$route.query.appIcon},{id:"3",name:"月指标任务详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{isCompleted:"",isOverTime:"",dateRange:[]},completedOptions:[{label:"完成情况",value:""},{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"逾期情况",value:""},{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{init:function(){var e=this.$route.query.startDate,t=this.$route.query.endDate;document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","13"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.conditionObj.dateRange=t?[e,t]:[],this.brandId&&this.getTableList()},selectInit:function(e,t){return 0!=e.removeAble},handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId}).join(",")||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",reason:e.reason,startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",brandId:t.activeBrand,isAll:t.selectRadio};Object(s.e)("/haoban-app-performance-web/performance/batch-remove-clerk-month-performance-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void t.getTableList();r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;this.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,n={taskId:t.taskId,brandId:this.activeBrand};Object(s.a)("/haoban-app-performance-web/performance/remove-clerk-month-performance-task",n).then(function(t){var n=t.data;if(1==n.errorCode)return a.total--,a.tableData.splice(e,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getTableList()):a.total>0&&a.getTableList()),void a.$message.success("删除成功");r.a.errorMsg(n)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(s.a)("/haoban-app-performance-web/performance/query-clerk-month-performance-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},activated:function(){this.init()},mounted:function(){this.init()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{commonDetailTop:i.a,multipleDel:l.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap common-right-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.isOverTime,callback:function(t){e.$set(e.conditionObj,"isOverTime",t)},expression:"conditionObj.isOverTime"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.isCompleted,callback:function(t){e.$set(e.conditionObj,"isCompleted",t)},expression:"conditionObj.isCompleted"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35",selectable:e.selectInit}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象",width:"260"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"first-item font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-909399"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",{staticClass:"color-909399"},[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",{staticClass:"color-909399"},[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.removeAble?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]):a("span",[e._v("--")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0,detailShowFlag:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var m=a("VU/8")(d,u,!1,function(e){a("5+o4")},"data-v-47935b7a",null);t.default=m.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([75],{"8kVC":function(e,t){},ZxDn:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),n=a.n(r),o=a("exGp"),s=a.n(o),i=a("Ke24"),c=a("Ch4/"),l=a("PI0u"),u=a("P9l9"),p={components:{commonDetailTop:i.a},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",topMenuData:[{id:"1",name:"指标管理",path:"/quota?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标",path:""}],yearList:[],year:"",tableList:[],tabelHeader:[{prop:"yearMonth",label:"月份"},{prop:"totalPerformance",label:"月指标累计"},{prop:"totalStore",label:"门店总数"},{prop:"totalComplete",label:"门店指标完善数"}],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(e){e&&this.getYearList()}},methods:{handleSizeChange:function(e){this.pageSize=e,this.apiMonthPerformanceList()},handleCurrentChange:function(e){this.currentPage=e,this.apiMonthPerformanceList()},changeYear:function(){this.currentPage=1,this.apiMonthPerformanceList()},getYearList:function(){var e=this;return s()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={brandId:a.brandId},Object(u.a)("/haoban-app-performance-web/performance/get-years",n);case 3:r=t.sent,1==(o=r.data).errorCode?(a.yearList=[],o.result&&o.result.length&&(o.result.forEach(function(e){a.yearList.push({id:e,label:e+"年"})}),a.year=o.result[0],a.apiMonthPerformanceList())):c.a.errorMsg(o);case 6:case"end":return t.stop()}var n},t,e)}))()},apiMonthPerformanceList:function(){var e=this;return s()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={brandId:e.brandId,year:e.year},Object(u.a)("/haoban-app-performance-web/performance/query-month-performance",n);case 3:r=t.sent,1==(o=r.data).errorCode&&(o.result.length&&o.result.forEach(function(e){e.totalPerformance=Object(l.d)(Number(e.totalPerformance).toFixed(2))}),a.tableList=o.result||[]);case 6:case"end":return t.stop()}var n},t,e)}))()}},mounted:function(){this.$emit("showTab","11"),this.brandId&&this.getYearList()}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"m-20"},[a("el-select",{staticClass:"m-b-23 w-123",on:{change:e.changeYear},model:{value:e.year,callback:function(t){e.year=t},expression:"year"}},[a("i",{staticClass:"el-input__icon el-icon-date",attrs:{slot:"prefix"},slot:"prefix"}),e._v(" "),e._l(e.yearList,function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.label}})})],2),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableList}},[e._l(e.tabelHeader,function(e,t){return a("el-table-column",{key:t,attrs:{label:e.label,prop:e.prop}})}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.settingStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.$router.push("/storeMonthTask?yearMonth="+t.row.yearMonth+"&appIcon="+e.$route.query.appIcon+" ")}}},[e._v("门店月指标")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.$router.push("/companyDaySet?yearMonth="+t.row.yearMonth+"&appIcon="+e.$route.query.appIcon)}}},[e._v("商户日权重")])]}}])})],2),e._v(" "),0!=e.tableList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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)],1)},staticRenderFns:[]};var d=a("VU/8")(p,h,!1,function(e){a("8kVC")},"data-v-46bca8a6",null);t.default=d.exports}}); webpackJsonp([76],{"8kVC":function(e,t){},ZxDn:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),n=a.n(r),o=a("exGp"),s=a.n(o),i=a("Ke24"),c=a("Ch4/"),l=a("PI0u"),u=a("P9l9"),p={components:{commonDetailTop:i.a},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",topMenuData:[{id:"1",name:"指标管理",path:"/quota?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标",path:""}],yearList:[],year:"",tableList:[],tabelHeader:[{prop:"yearMonth",label:"月份"},{prop:"totalPerformance",label:"月指标累计"},{prop:"totalStore",label:"门店总数"},{prop:"totalComplete",label:"门店指标完善数"}],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(e){e&&this.getYearList()}},methods:{handleSizeChange:function(e){this.pageSize=e,this.apiMonthPerformanceList()},handleCurrentChange:function(e){this.currentPage=e,this.apiMonthPerformanceList()},changeYear:function(){this.currentPage=1,this.apiMonthPerformanceList()},getYearList:function(){var e=this;return s()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={brandId:a.brandId},Object(u.a)("/haoban-app-performance-web/performance/get-years",n);case 3:r=t.sent,1==(o=r.data).errorCode?(a.yearList=[],o.result&&o.result.length&&(o.result.forEach(function(e){a.yearList.push({id:e,label:e+"年"})}),a.year=o.result[0],a.apiMonthPerformanceList())):c.a.errorMsg(o);case 6:case"end":return t.stop()}var n},t,e)}))()},apiMonthPerformanceList:function(){var e=this;return s()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={brandId:e.brandId,year:e.year},Object(u.a)("/haoban-app-performance-web/performance/query-month-performance",n);case 3:r=t.sent,1==(o=r.data).errorCode&&(o.result.length&&o.result.forEach(function(e){e.totalPerformance=Object(l.d)(Number(e.totalPerformance).toFixed(2))}),a.tableList=o.result||[]);case 6:case"end":return t.stop()}var n},t,e)}))()}},mounted:function(){this.$emit("showTab","11"),this.brandId&&this.getYearList()}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"m-20"},[a("el-select",{staticClass:"m-b-23 w-123",on:{change:e.changeYear},model:{value:e.year,callback:function(t){e.year=t},expression:"year"}},[a("i",{staticClass:"el-input__icon el-icon-date",attrs:{slot:"prefix"},slot:"prefix"}),e._v(" "),e._l(e.yearList,function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.label}})})],2),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableList}},[e._l(e.tabelHeader,function(e,t){return a("el-table-column",{key:t,attrs:{label:e.label,prop:e.prop}})}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.settingStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.$router.push("/storeMonthTask?yearMonth="+t.row.yearMonth+"&appIcon="+e.$route.query.appIcon+" ")}}},[e._v("门店月指标")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.$router.push("/companyDaySet?yearMonth="+t.row.yearMonth+"&appIcon="+e.$route.query.appIcon)}}},[e._v("商户日权重")])]}}])})],2),e._v(" "),0!=e.tableList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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)],1)},staticRenderFns:[]};var d=a("VU/8")(p,h,!1,function(e){a("8kVC")},"data-v-46bca8a6",null);t.default=d.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([76],{SPOA:function(e,r){},fZsz:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=t("//Fk"),o=t.n(a),i=t("mvHQ"),n=t.n(i),l=t("3Xzz"),s=t("l46T"),u=t("Kkt8"),c=t("3E4D"),h=t("Ch4/"),d=t("PI0u"),m=t("P9l9"),p={name:"addAdminRole",data:function(){return{menuH:window.screen.availHeight-695+"px",navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"新增管理员角色",path:""}],showFlag:!1,ruleForm:{roleId:"",roleName:"",remark:"角色说明",leftChecked:[],menuTree:[],left:[],rightChecked:[],right:[],leftCheckedApp:[],leftApp:[],rightCheckedApp:[],rightApp:[],appRightList:[]},rules:{roleName:[{required:!0,message:"请填写角色名称",trigger:"blur"}],remark:[{required:!0,message:"请填写角色说明",trigger:"blur"}]},defaultProps:{children:"children",label:"rightName"},appDataList:[{appId:"1",appName:"签到",appDesc:"签到",appBackgroudColor:"#1890ff",appIcon:"icon-hangzhengjiagou",appType:0,status:3,remark:"",check:!1}]}},computed:{},methods:{selectApp:function(e){if(this.showFlag)return!1;e.check=!e.check},submitForm:Object(d.a)(function(e){var r=this,t=this;t.$refs[e].validate(function(e){if(!e)return!1;var a=[];r.$refs.tree.getCheckedKeys().concat(r.$refs.tree.getHalfCheckedKeys()).forEach(function(e,r){a.push({rightId:e})}),t.ruleForm.appRightList=[],t.appDataList.forEach(function(e){1==e.check&&t.ruleForm.appRightList.push(e.appId)}),t.postSave(a)})},500),postSave:function(e){var r=this,t={data:n()(e),roleId:r.ruleForm.roleId,roleName:r.ruleForm.roleName,remark:r.ruleForm.remark,brandId:r.ruleForm.brandId,appRightList:r.ruleForm.appRightList.join(",")};Object(m.e)("/haoban-manage-web/save-role",t).then(function(e){var t=e.data;if(1==t.errorCode)return c.a.showmsg("操作成功","success"),void r.$router.push("/setChildAdmin");h.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},getMenuList:function(){var e=this;Object(m.e)("/haoban-manage-web/menu-list",{}).then(function(r){var t=r.data;if(1!=t.errorCode)h.a.errorMsg(t);else{if(t.result&&t.result.length){var a=[];t.result.forEach(function(r,t){e.ruleForm.roleId&&e.showFlag&&(r.disabled=!0),r.display&&a.push(r)}),e.ruleForm.menuTree=e.treeData(a)}e.ruleForm.roleId&&e.getRoleDetail(e.ruleForm.roleId)}}).catch(function(r){e.$message.error({duration:1e3,message:r.message})})},treeData:function(e){return e.filter(function(r){var t=e.filter(function(e){return r.haobanMenuRightId==e.parentRightId});return t.length>0&&(r.children=t),-1==r.parentRightId})},getRoleDetail:function(e){var r=this,t={roleId:e};Object(m.e)("/haoban-manage-web/role-detail",t).then(function(e){var t=e.data;if(1==t.errorCode){if(r.ruleForm.roleId=t.result.role.roleId,r.ruleForm.roleName=t.result.role.roleName,r.ruleForm.roleCode=t.result.role.roleCode,r.ruleForm.remark=t.result.role.remark,r.ruleForm.appRightList=t.result.appRightList||[],r.ruleForm.right.length){var a=r.ruleForm.right.map(function(e){return e.rightId}),o=[];t.result.menuRightList.forEach(function(e,r){a.includes(e.rightId)&&o.push(e.rightId)}),r.ruleForm.rightChecked=o}var i=[];return t.result.menuRightList.forEach(function(e,t){r.$refs.tree.getNode(e.rightId).isLeaf&&i.push(e.rightId)}),r.$refs.tree.setCheckedKeys(i),void r.appDataList.forEach(function(e){r.ruleForm.appRightList.includes(e.appId)&&(e.check=!0)})}h.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},leftChange:function(e,r){var t=this;t.ruleForm.leftChecked=e;var a=e.includes(r[0]);function o(){t.ruleForm.right=[],t.ruleForm.left.forEach(function(e,o){e.rightId.includes(r[0])&&(e.check=!!a,e.children&&e.children.length&&e.children.forEach(function(e,r){t.ruleForm.right.push(e)}))})}e.includes(r[0]),o(),t.ruleForm.rightChecked=t.ruleForm.right.map(function(e){if(!0===e.check)return e.rightId})},rightChange:function(e,r){var t=e.includes(r[0]);this.ruleForm.rightChecked=e,this.ruleForm.left.forEach(function(e,a){e.children&&e.children.length&&e.children.forEach(function(e,a){e.rightId.includes(r[0])&&(e.check=!!t)})})},getAppList:function(){var e=this;Object(m.e)("/haoban-manage-web/application-list",{}).then(function(r){var t=r.data;if(1==t.errorCode)return t.result&&t.result.length&&t.result.forEach(function(e){e.check=!1}),void(e.appDataList=t.result||[]);h.a.errorMsg(t)}).catch(function(r){e.$message.error({duration:1e3,message:r.message})})}},mounted:function(){var e=this;e.$route.query.hasOwnProperty("roleId")&&(e.ruleForm.roleId=e.$route.query.roleId,e.navpath[3].name="管理员角色","show"===e.$route.query.type&&(e.showFlag=!0)),e.$route.query.hasOwnProperty("brandId")&&(e.ruleForm.brandId=e.$route.query.brandId),o.a.all([e.getAppList()]).then(function(r){e.getMenuList()}).catch(function(e){})},components:{navCrumb:l.a,limitInput:s.a,limitTextarea:u.a}},f={render:function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"companyAddress-wrap common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box",style:{"min-height":e.$store.state.bgHeight}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[t("limitInput",{attrs:{inputWidth:500,inputValue:e.ruleForm.roleName,disflag:!!e.showFlag,holder:"请输入角色名称",maxLength:20},on:{"update:inputValue":function(r){e.$set(e.ruleForm,"roleName",r)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"角色说明",prop:"remark"}},[t("limitTextarea",{attrs:{inputWidth:500,inputValue:e.ruleForm.remark,holder:"请输入角色说明",disInput:!!e.showFlag,maxLength:50},on:{"update:inputValue":function(r){e.$set(e.ruleForm,"remark",r)}}})],1),e._v(" "),t("el-form-item",{staticClass:"m-t-44",attrs:{label:"菜单权限",prop:"leftChecked"}},[t("div",{staticClass:"w-500 border-1 p-10 border-box el-form-item_menu",style:{"max-height":e.menuH}},[t("el-tree",{ref:"tree",attrs:{data:e.ruleForm.menuTree,"show-checkbox":"","default-expand-all":"","node-key":"rightId","highlight-current":"",props:e.defaultProps}})],1)]),e._v(" "),t("el-form-item",{attrs:{label:"应用权限",prop:""}},[t("div",{staticClass:"apps-content"},[t("ul",{staticClass:"flex flex-row flex-wrap"},e._l(e.appDataList,function(r,a){return t("li",{key:a,class:["flex flex-align-center border-box flex",r.check?"border-active":""],on:{click:function(t){e.selectApp(r)}}},[t("span",{staticClass:"square-item flex flex-align-center flex-pack-center",style:{background:r.appBackgroudColor}},[t("img",{attrs:{src:r.appIcon,alt:""}})]),e._v(" "),t("span",{staticClass:"color-303133 font-14 p-l-8"},[e._v(e._s(r.appName))]),e._v(" "),r.check?t("div",{staticClass:"common-cell_radio"},[t("div",{staticClass:"box-triangle"},[t("div",{staticClass:"wrap__box__outer"},[t("i",{staticClass:"el-icon-upload-success el-icon-check"})])])]):e._e()])}))])]),e._v(" "),t("el-form-item",[t("el-button",{attrs:{disabled:!!e.showFlag,type:"primary"},on:{click:function(r){e.submitForm("ruleForm")}}},[e._v("保 存")])],1)],1)],1)]),e._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var g=t("VU/8")(p,f,!1,function(e){t("SPOA")},"data-v-4226f61e",null);r.default=g.exports}}); webpackJsonp([77],{SPOA:function(e,r){},fZsz:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=t("//Fk"),o=t.n(a),i=t("mvHQ"),n=t.n(i),l=t("3Xzz"),s=t("l46T"),u=t("Kkt8"),c=t("3E4D"),h=t("Ch4/"),d=t("PI0u"),m=t("P9l9"),p={name:"addAdminRole",data:function(){return{menuH:window.screen.availHeight-695+"px",navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"新增管理员角色",path:""}],showFlag:!1,ruleForm:{roleId:"",roleName:"",remark:"角色说明",leftChecked:[],menuTree:[],left:[],rightChecked:[],right:[],leftCheckedApp:[],leftApp:[],rightCheckedApp:[],rightApp:[],appRightList:[]},rules:{roleName:[{required:!0,message:"请填写角色名称",trigger:"blur"}],remark:[{required:!0,message:"请填写角色说明",trigger:"blur"}]},defaultProps:{children:"children",label:"rightName"},appDataList:[{appId:"1",appName:"签到",appDesc:"签到",appBackgroudColor:"#1890ff",appIcon:"icon-hangzhengjiagou",appType:0,status:3,remark:"",check:!1}]}},computed:{},methods:{selectApp:function(e){if(this.showFlag)return!1;e.check=!e.check},submitForm:Object(d.a)(function(e){var r=this,t=this;t.$refs[e].validate(function(e){if(!e)return!1;var a=[];r.$refs.tree.getCheckedKeys().concat(r.$refs.tree.getHalfCheckedKeys()).forEach(function(e,r){a.push({rightId:e})}),t.ruleForm.appRightList=[],t.appDataList.forEach(function(e){1==e.check&&t.ruleForm.appRightList.push(e.appId)}),t.postSave(a)})},500),postSave:function(e){var r=this,t={data:n()(e),roleId:r.ruleForm.roleId,roleName:r.ruleForm.roleName,remark:r.ruleForm.remark,brandId:r.ruleForm.brandId,appRightList:r.ruleForm.appRightList.join(",")};Object(m.e)("/haoban-manage-web/save-role",t).then(function(e){var t=e.data;if(1==t.errorCode)return c.a.showmsg("操作成功","success"),void r.$router.push("/setChildAdmin");h.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},getMenuList:function(){var e=this;Object(m.e)("/haoban-manage-web/menu-list",{}).then(function(r){var t=r.data;if(1!=t.errorCode)h.a.errorMsg(t);else{if(t.result&&t.result.length){var a=[];t.result.forEach(function(r,t){e.ruleForm.roleId&&e.showFlag&&(r.disabled=!0),r.display&&a.push(r)}),e.ruleForm.menuTree=e.treeData(a)}e.ruleForm.roleId&&e.getRoleDetail(e.ruleForm.roleId)}}).catch(function(r){e.$message.error({duration:1e3,message:r.message})})},treeData:function(e){return e.filter(function(r){var t=e.filter(function(e){return r.haobanMenuRightId==e.parentRightId});return t.length>0&&(r.children=t),-1==r.parentRightId})},getRoleDetail:function(e){var r=this,t={roleId:e};Object(m.e)("/haoban-manage-web/role-detail",t).then(function(e){var t=e.data;if(1==t.errorCode){if(r.ruleForm.roleId=t.result.role.roleId,r.ruleForm.roleName=t.result.role.roleName,r.ruleForm.roleCode=t.result.role.roleCode,r.ruleForm.remark=t.result.role.remark,r.ruleForm.appRightList=t.result.appRightList||[],r.ruleForm.right.length){var a=r.ruleForm.right.map(function(e){return e.rightId}),o=[];t.result.menuRightList.forEach(function(e,r){a.includes(e.rightId)&&o.push(e.rightId)}),r.ruleForm.rightChecked=o}var i=[];return t.result.menuRightList.forEach(function(e,t){r.$refs.tree.getNode(e.rightId).isLeaf&&i.push(e.rightId)}),r.$refs.tree.setCheckedKeys(i),void r.appDataList.forEach(function(e){r.ruleForm.appRightList.includes(e.appId)&&(e.check=!0)})}h.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},leftChange:function(e,r){var t=this;t.ruleForm.leftChecked=e;var a=e.includes(r[0]);function o(){t.ruleForm.right=[],t.ruleForm.left.forEach(function(e,o){e.rightId.includes(r[0])&&(e.check=!!a,e.children&&e.children.length&&e.children.forEach(function(e,r){t.ruleForm.right.push(e)}))})}e.includes(r[0]),o(),t.ruleForm.rightChecked=t.ruleForm.right.map(function(e){if(!0===e.check)return e.rightId})},rightChange:function(e,r){var t=e.includes(r[0]);this.ruleForm.rightChecked=e,this.ruleForm.left.forEach(function(e,a){e.children&&e.children.length&&e.children.forEach(function(e,a){e.rightId.includes(r[0])&&(e.check=!!t)})})},getAppList:function(){var e=this;Object(m.e)("/haoban-manage-web/application-list",{}).then(function(r){var t=r.data;if(1==t.errorCode)return t.result&&t.result.length&&t.result.forEach(function(e){e.check=!1}),void(e.appDataList=t.result||[]);h.a.errorMsg(t)}).catch(function(r){e.$message.error({duration:1e3,message:r.message})})}},mounted:function(){var e=this;e.$route.query.hasOwnProperty("roleId")&&(e.ruleForm.roleId=e.$route.query.roleId,e.navpath[3].name="管理员角色","show"===e.$route.query.type&&(e.showFlag=!0)),e.$route.query.hasOwnProperty("brandId")&&(e.ruleForm.brandId=e.$route.query.brandId),o.a.all([e.getAppList()]).then(function(r){e.getMenuList()}).catch(function(e){})},components:{navCrumb:l.a,limitInput:s.a,limitTextarea:u.a}},f={render:function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"companyAddress-wrap common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box",style:{"min-height":e.$store.state.bgHeight}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[t("limitInput",{attrs:{inputWidth:500,inputValue:e.ruleForm.roleName,disflag:!!e.showFlag,holder:"请输入角色名称",maxLength:20},on:{"update:inputValue":function(r){e.$set(e.ruleForm,"roleName",r)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"角色说明",prop:"remark"}},[t("limitTextarea",{attrs:{inputWidth:500,inputValue:e.ruleForm.remark,holder:"请输入角色说明",disInput:!!e.showFlag,maxLength:50},on:{"update:inputValue":function(r){e.$set(e.ruleForm,"remark",r)}}})],1),e._v(" "),t("el-form-item",{staticClass:"m-t-44",attrs:{label:"菜单权限",prop:"leftChecked"}},[t("div",{staticClass:"w-500 border-1 p-10 border-box el-form-item_menu",style:{"max-height":e.menuH}},[t("el-tree",{ref:"tree",attrs:{data:e.ruleForm.menuTree,"show-checkbox":"","default-expand-all":"","node-key":"rightId","highlight-current":"",props:e.defaultProps}})],1)]),e._v(" "),t("el-form-item",{attrs:{label:"应用权限",prop:""}},[t("div",{staticClass:"apps-content"},[t("ul",{staticClass:"flex flex-row flex-wrap"},e._l(e.appDataList,function(r,a){return t("li",{key:a,class:["flex flex-align-center border-box flex",r.check?"border-active":""],on:{click:function(t){e.selectApp(r)}}},[t("span",{staticClass:"square-item flex flex-align-center flex-pack-center",style:{background:r.appBackgroudColor}},[t("img",{attrs:{src:r.appIcon,alt:""}})]),e._v(" "),t("span",{staticClass:"color-303133 font-14 p-l-8"},[e._v(e._s(r.appName))]),e._v(" "),r.check?t("div",{staticClass:"common-cell_radio"},[t("div",{staticClass:"box-triangle"},[t("div",{staticClass:"wrap__box__outer"},[t("i",{staticClass:"el-icon-upload-success el-icon-check"})])])]):e._e()])}))])]),e._v(" "),t("el-form-item",[t("el-button",{attrs:{disabled:!!e.showFlag,type:"primary"},on:{click:function(r){e.submitForm("ruleForm")}}},[e._v("保 存")])],1)],1)],1)]),e._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var g=t("VU/8")(p,f,!1,function(e){t("SPOA")},"data-v-4226f61e",null);r.default=g.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([77],{"fIe/":function(t,e){},t0b0:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,a=0;a<t.length;a++){null!=t.charAt(a).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex"},[a("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),a("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var l=a("VU/8")(s,i,!1,function(t){a("fIe/")},"data-v-3fd29910",null);e.default=l.exports}}); webpackJsonp([78],{"fIe/":function(t,e){},t0b0:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,a=0;a<t.length;a++){null!=t.charAt(a).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex"},[a("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),a("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var l=a("VU/8")(s,i,!1,function(t){a("fIe/")},"data-v-3fd29910",null);e.default=l.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([78],{"Qdk+":function(t,e){},XzAK:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),n=a("Ke24"),i=a("PI0u"),o=a("Ch4/"),r=a("3E4D"),c=a("P9l9"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访设置"}],activeId:"1",setObj:{taskType:0,overDayJudge:"",distributeTypeJudge:"",giveUpJudge:""}}},computed:{},methods:{saveSet:Object(i.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge};Object(c.e)("/haoban-app-tel-task-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):r.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand,taskType:0};Object(c.e)("/haoban-app-tel-task-web/setting/find-task-setting",e).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.setObj=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","3"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"task-set-content boder-box"},[a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-20 font-w-500"},[t._v("不良评价回访任务逾期时间设置")]),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("不良评价回访下发后")]),t._v(" "),a("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),a("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("不良评价放弃前提")]),t._v(" "),a("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),a("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应")])],1)]),t._v(" "),a("div",{staticClass:"task-set-save m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(d,l,!1,function(t){a("Qdk+")},"data-v-396d560e",null);e.default=u.exports}}); webpackJsonp([79],{"Qdk+":function(t,e){},XzAK:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),n=a("Ke24"),i=a("PI0u"),o=a("Ch4/"),r=a("3E4D"),c=a("P9l9"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访设置"}],activeId:"1",setObj:{taskType:0,overDayJudge:"",distributeTypeJudge:"",giveUpJudge:""}}},computed:{},methods:{saveSet:Object(i.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge};Object(c.e)("/haoban-app-tel-task-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):r.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand,taskType:0};Object(c.e)("/haoban-app-tel-task-web/setting/find-task-setting",e).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.setObj=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","3"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"task-set-content boder-box"},[a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-20 font-w-500"},[t._v("不良评价回访任务逾期时间设置")]),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("不良评价回访下发后")]),t._v(" "),a("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),a("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("不良评价放弃前提")]),t._v(" "),a("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),a("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应")])],1)]),t._v(" "),a("div",{staticClass:"task-set-save m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(d,l,!1,function(t){a("Qdk+")},"data-v-396d560e",null);e.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([79],{Rwbg:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),i=a("elmV"),o=a("P9l9"),n={name:"employee-io",components:{navCrumb:s.a,uploadExcelComponent:i.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"administrativeFrame"},{name:"批量导入导出",path:""}],host:window.location.origin,windowH:window.screen.availHeight-180+"px",type:"import",fileList:[],url:t+"/haoban-manage-web/emp/upload",uploadSuccessMsg:"",logList:[],loading:!0,pageSize:20,currentPage:1,total:0}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(o.a)("/haoban-manage-web/error-log-page",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.loading=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},uploadSuccess:function(t){var e=this;1==t.errorCode?(e.$forceUpdate(),e.uploadSuccessMsg=t.message.split(","),e.$message({message:t.message,type:"success"}),e.$nextTick(function(){e.fileList=[]})):e.$message.error(t.message)},submitUpload:function(t){this.$refs[t].submit()},handleRemove:function(t,e){this.fileList=[]},getChange:function(t,e){var a=e.length-1<0?0:e.length-1,s=t.name.lastIndexOf("."),i=t.name.substring(s+1,t.name.length);if(!(i.includes("xls")||i.includes("xlsx")))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(a,1),!1;this.fileList=[e[a]]}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-set-wrap",style:{height:t.windowH}},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"io-container border-box "},[t._m(0),t._v(" "),a("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[a("el-radio-button",{attrs:{label:"import"}},[t._v("导入通讯录")]),t._v(" "),a("el-radio-button",{attrs:{label:"export"}},[t._v("导出")]),t._v(" "),a("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载员工通讯录模板,统一收集员工信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/excel/通讯录-行政架构导入模板.xlsx"}},[a("el-button",{attrs:{type:"primary"}},[t._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传收集完毕的员工信息表\n "),a("div",{staticClass:"d-u-btn"},[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"on-remove":t.handleRemove}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出所有员工信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/emp/export?departmentId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改员工信息\n ")])]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[a("div",{staticClass:"tip"},[t._v(t._s(t.uploadSuccessMsg))]),t._v(" "),a("a",{attrs:{href:t.host+"/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[a("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),t._v(" "),a("el-table-column",{attrs:{label:"部门ID",prop:"departmentId"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"positionName"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否此部门负责人(是/否)",prop:"isManager"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.isManager?"是":"否")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"入职时间",prop:"hireDate"}})],1),t._v(" "),t.logList.length?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)],1)])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"tip-area border-box "},[a("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,通讯录最多只能导入200人以内的员工,如有超出可先进行"),a("a",{staticClass:"a-href",attrs:{href:"#/companyCertify"}},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("不能在本excel表中对员工信息类别进行增加、删除、修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 员工所在部门:请先到后台创建部门,将部门id填入导入表格中,导入中,若找不到对应部门,将直接将员工挂在根目录下面\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入200人,超出后无法导入,请先进行企业认证")])])}]};var l=a("VU/8")(n,r,!1,function(t){a("V5lM")},null,null);e.default=l.exports},V5lM:function(t,e){}}); webpackJsonp([80],{Rwbg:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),i=a("elmV"),o=a("P9l9"),n={name:"employee-io",components:{navCrumb:s.a,uploadExcelComponent:i.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"administrativeFrame"},{name:"批量导入导出",path:""}],host:window.location.origin,windowH:window.screen.availHeight-180+"px",type:"import",fileList:[],url:t+"/haoban-manage-web/emp/upload",uploadSuccessMsg:"",logList:[],loading:!0,pageSize:20,currentPage:1,total:0}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(o.a)("/haoban-manage-web/error-log-page",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.loading=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},uploadSuccess:function(t){var e=this;1==t.errorCode?(e.$forceUpdate(),e.uploadSuccessMsg=t.message.split(","),e.$message({message:t.message,type:"success"}),e.$nextTick(function(){e.fileList=[]})):e.$message.error(t.message)},submitUpload:function(t){this.$refs[t].submit()},handleRemove:function(t,e){this.fileList=[]},getChange:function(t,e){var a=e.length-1<0?0:e.length-1,s=t.name.lastIndexOf("."),i=t.name.substring(s+1,t.name.length);if(!(i.includes("xls")||i.includes("xlsx")))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(a,1),!1;this.fileList=[e[a]]}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-set-wrap",style:{height:t.windowH}},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"io-container border-box "},[t._m(0),t._v(" "),a("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[a("el-radio-button",{attrs:{label:"import"}},[t._v("导入通讯录")]),t._v(" "),a("el-radio-button",{attrs:{label:"export"}},[t._v("导出")]),t._v(" "),a("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载员工通讯录模板,统一收集员工信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/excel/通讯录-行政架构导入模板.xlsx"}},[a("el-button",{attrs:{type:"primary"}},[t._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传收集完毕的员工信息表\n "),a("div",{staticClass:"d-u-btn"},[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"on-remove":t.handleRemove}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出所有员工信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/emp/export?departmentId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改员工信息\n ")])]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[a("div",{staticClass:"tip"},[t._v(t._s(t.uploadSuccessMsg))]),t._v(" "),a("a",{attrs:{href:t.host+"/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[a("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),t._v(" "),a("el-table-column",{attrs:{label:"部门ID",prop:"departmentId"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"positionName"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否此部门负责人(是/否)",prop:"isManager"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.isManager?"是":"否")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"入职时间",prop:"hireDate"}})],1),t._v(" "),t.logList.length?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)],1)])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"tip-area border-box "},[a("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,通讯录最多只能导入200人以内的员工,如有超出可先进行"),a("a",{staticClass:"a-href",attrs:{href:"#/companyCertify"}},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("不能在本excel表中对员工信息类别进行增加、删除、修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 员工所在部门:请先到后台创建部门,将部门id填入导入表格中,导入中,若找不到对应部门,将直接将员工挂在根目录下面\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入200人,超出后无法导入,请先进行企业认证")])])}]};var l=a("VU/8")(n,r,!1,function(t){a("V5lM")},null,null);e.default=l.exports},V5lM:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([80],{"5x7s":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),n=a("Ke24"),i=a("PI0u"),o=a("Ch4/"),c=a("3E4D"),r=a("P9l9"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"任务下发设置"}],activeId:"1",setData:{status:!1,time:"12:00"}}},computed:{},methods:{saveSet:Object(i.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,status:t.setData.status?"1":"0",time:t.setData.time};Object(r.e)("/haoban-app-daily-web/daily/create-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):c.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand};Object(r.e)("/haoban-app-daily-web/daily/get-setting",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.setData.status=1==a.result.status,void(t.setData.time=a.result.time);o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","22"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"task-set-content boder-box"},[a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-10 font-w-500"},[t._v("日报开关设置")]),t._v(" "),a("div",{staticClass:"font-14 color-606266 m-b-16"},[t._v("开启后,日报将定时发送")]),t._v(" "),a("div",{},[a("el-switch",{attrs:{"active-text":" ","inactive-text":" "},model:{value:t.setData.status,callback:function(e){t.$set(t.setData,"status",e)},expression:"setData.status"}})],1)]),t._v(" "),a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-10 font-w-500"},[t._v("日报每日下发时间设置")]),t._v(" "),a("div",{staticClass:"font-14 color-606266 m-b-16"},[t._v("该事件设置将在次日生效,为避免影响当日日报的发送,请在日报发送后设置")]),t._v(" "),a("div",[a("el-time-select",{staticClass:"w-118",attrs:{editable:!1,clearable:!1,"picker-options":{start:"00:00",step:"00:15",end:"23:45"},placeholder:"选择时间"},model:{value:t.setData.time,callback:function(e){t.$set(t.setData,"time",e)},expression:"setData.time"}})],1)]),t._v(" "),a("div",{staticClass:"task-set-save m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(d,l,!1,function(t){a("IIkM")},"data-v-35e62cb4",null);e.default=u.exports},IIkM:function(t,e){}}); webpackJsonp([81],{"5x7s":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),n=a("Ke24"),i=a("PI0u"),o=a("Ch4/"),c=a("3E4D"),r=a("P9l9"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"任务下发设置"}],activeId:"1",setData:{status:!1,time:"12:00"}}},computed:{},methods:{saveSet:Object(i.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,status:t.setData.status?"1":"0",time:t.setData.time};Object(r.e)("/haoban-app-daily-web/daily/create-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):c.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand};Object(r.e)("/haoban-app-daily-web/daily/get-setting",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.setData.status=1==a.result.status,void(t.setData.time=a.result.time);o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","22"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"task-set-content boder-box"},[a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-10 font-w-500"},[t._v("日报开关设置")]),t._v(" "),a("div",{staticClass:"font-14 color-606266 m-b-16"},[t._v("开启后,日报将定时发送")]),t._v(" "),a("div",{},[a("el-switch",{attrs:{"active-text":" ","inactive-text":" "},model:{value:t.setData.status,callback:function(e){t.$set(t.setData,"status",e)},expression:"setData.status"}})],1)]),t._v(" "),a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-10 font-w-500"},[t._v("日报每日下发时间设置")]),t._v(" "),a("div",{staticClass:"font-14 color-606266 m-b-16"},[t._v("该事件设置将在次日生效,为避免影响当日日报的发送,请在日报发送后设置")]),t._v(" "),a("div",[a("el-time-select",{staticClass:"w-118",attrs:{editable:!1,clearable:!1,"picker-options":{start:"00:00",step:"00:15",end:"23:45"},placeholder:"选择时间"},model:{value:t.setData.time,callback:function(e){t.$set(t.setData,"time",e)},expression:"setData.time"}})],1)]),t._v(" "),a("div",{staticClass:"task-set-save m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(d,l,!1,function(t){a("IIkM")},"data-v-35e62cb4",null);e.default=u.exports},IIkM:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([81],{cK0D:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),o=a("Ke24"),i=a("nsZK"),r=a("P9l9"),s=a("PI0u"),l=a("Ch4/"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",topMenuData:[{id:"1",name:"指标管理",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标任务",path:""}],showDialog:!1,conditionObj:{searchInput:"",storeGroupIds:[],storeStatus:"",dateRange:[]},storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],selectRadio:0,tableData:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},loading:!1}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(s.a)(function(t,e){this.currentPage=1,this.getTableList()},500),checkStoreGroupIds:function(t){this.currentPage=1,this.conditionObj.storeGroupIds=t,this.getTableList()},changeStoreStatus:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},exportExcel:function(){var t=this,e={keyword:t.conditionObj.searchInput,storeGroupIds:t.conditionObj.storeGroupIds.map(function(t){return t.groupId}).join(",")||"",storeStatus:t.conditionObj.storeStatus,startDate:t.conditionObj.dateRange?t.conditionObj.dateRange[0]:"",endDate:t.conditionObj.dateRange?t.conditionObj.dateRange[1]:"",brandId:t.activeBrand};Object(r.b)("/haoban-app-performance-web/performance/export-store-month-performance-task",e).then(function(t){if(!t.data)return l.a.errorMsg("暂无数据"),!1;var e=new Blob([t.data],{type:"application/vnd.ms-excel"}),a=document.createElement("a");a.download="store-month-performance-task.xls",a.style.display="none",a.href=URL.createObjectURL(e),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){var a="",n="";this.conditionObj.dateRange.length>0&&(a=this.conditionObj.dateRange[0],n=this.conditionObj.dateRange[1]),this.$router.push("monthTaskDetail?storeId="+e.storeId+"&startDate="+a+"&endDate="+n+"&appIcon="+this.$route.query.appIcon)},getTableList:function(t){var e=this;e.loading=!0,e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={keyword:e.conditionObj.searchInput||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.groupId}).join(",")||"",storeStatus:e.conditionObj.storeStatus||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(r.a)("/haoban-app-performance-web/performance/query-store-month-performance-task",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","13"),this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.brandId&&this.getTableList()},destroyed:function(){this.activeGroup="",document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonDetailTop:o.a,storeTreeSelect:i.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap common-right-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称/code"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreStatus},model:{value:t.conditionObj.storeStatus,callback:function(e){t.$set(t.conditionObj,"storeStatus",e)},expression:"conditionObj.storeStatus"}},t._l(t.storeStatusOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),t._v(" "),a("store-tree-select",{attrs:{brandId:t.brandId,activeGroupId:t.activeGroupId},on:{checkStoreGroupIds:t.checkStoreGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"storeName",label:"门店名称","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"taskCount",label:"任务总数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedCount",label:"已完成(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedRate",label:"完成率(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"noCompletedCount",label:"待完成","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"overdueCount",label:"逾期中","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(t){a("xyyH")},"data-v-30fad0e2",null);e.default=u.exports},xyyH:function(t,e){}}); webpackJsonp([82],{cK0D:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),o=a("Ke24"),i=a("nsZK"),r=a("P9l9"),s=a("PI0u"),l=a("Ch4/"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",topMenuData:[{id:"1",name:"指标管理",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标任务",path:""}],showDialog:!1,conditionObj:{searchInput:"",storeGroupIds:[],storeStatus:"",dateRange:[]},storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],selectRadio:0,tableData:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},loading:!1}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(s.a)(function(t,e){this.currentPage=1,this.getTableList()},500),checkStoreGroupIds:function(t){this.currentPage=1,this.conditionObj.storeGroupIds=t,this.getTableList()},changeStoreStatus:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},exportExcel:function(){var t=this,e={keyword:t.conditionObj.searchInput,storeGroupIds:t.conditionObj.storeGroupIds.map(function(t){return t.groupId}).join(",")||"",storeStatus:t.conditionObj.storeStatus,startDate:t.conditionObj.dateRange?t.conditionObj.dateRange[0]:"",endDate:t.conditionObj.dateRange?t.conditionObj.dateRange[1]:"",brandId:t.activeBrand};Object(r.b)("/haoban-app-performance-web/performance/export-store-month-performance-task",e).then(function(t){if(!t.data)return l.a.errorMsg("暂无数据"),!1;var e=new Blob([t.data],{type:"application/vnd.ms-excel"}),a=document.createElement("a");a.download="store-month-performance-task.xls",a.style.display="none",a.href=URL.createObjectURL(e),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){var a="",n="";this.conditionObj.dateRange.length>0&&(a=this.conditionObj.dateRange[0],n=this.conditionObj.dateRange[1]),this.$router.push("monthTaskDetail?storeId="+e.storeId+"&startDate="+a+"&endDate="+n+"&appIcon="+this.$route.query.appIcon)},getTableList:function(t){var e=this;e.loading=!0,e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={keyword:e.conditionObj.searchInput||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.groupId}).join(",")||"",storeStatus:e.conditionObj.storeStatus||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(r.a)("/haoban-app-performance-web/performance/query-store-month-performance-task",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","13"),this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.brandId&&this.getTableList()},destroyed:function(){this.activeGroup="",document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonDetailTop:o.a,storeTreeSelect:i.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap common-right-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称/code"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreStatus},model:{value:t.conditionObj.storeStatus,callback:function(e){t.$set(t.conditionObj,"storeStatus",e)},expression:"conditionObj.storeStatus"}},t._l(t.storeStatusOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),t._v(" "),a("store-tree-select",{attrs:{brandId:t.brandId,activeGroupId:t.activeGroupId},on:{checkStoreGroupIds:t.checkStoreGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"storeName",label:"门店名称","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"taskCount",label:"任务总数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedCount",label:"已完成(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedRate",label:"完成率(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"noCompletedCount",label:"待完成","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"overdueCount",label:"逾期中","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(t){a("xyyH")},"data-v-30fad0e2",null);e.default=u.exports},xyyH:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([82],{"8msp":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("mvHQ"),o=a.n(i),n=a("Ie7z"),s=a("Ke24"),r=a("b28S"),l=a("P9l9"),c=a("Ch4/"),d=a("PI0u"),p={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:s.a,vueSelectStore:n.a,chatLogList:r.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,activeId:"2",topMenuData:[{id:"1",name:"在线沟通设置",path:"/onlineChatSet?appIcon="+this.$route.query.appIcon+"&activeTab="+this.$route.query.activeTab},{id:"2",name:3==this.$route.query.activeTab?"图文发送记录":1==this.$route.query.tabType?"微商城商品发送记录":2==this.$route.query.tabType?"积分商城商品发送记录":""}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,i=t.minDate;e.choiceDateCopy=[i.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,i=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>i||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:20,total:0,showFlag:!1,itemRow:{}}},methods:{delSelectData:function(e){this.defaultStoreList.splice(e,1),this.currentPage=1,this.getTableList()},showSingleInfo:function(e){},exportExcel:function(){var e=this,t=[],a=[],i=[];e.conditionObj.storeGroup.forEach(function(e){1==e.type&&i.push(e.employeeClerkId),2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var o={enterpriseId:e.enterpriseId,relatedId:e.$route.query.relatedId,type:e.$route.query.tabType,keyword:e.conditionObj.searchInput||"",groupIds:t.join(",")||"",storeIds:a.join(",")||"",clerkIds:i.join(",")||"",startTime:e.conditionObj.dateRange[0]||"",endTime:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand};Object(l.b)("/haoban-app-member-web/customer/export_message_log",o).then(function(t){if(!t.data)return c.a.errorMsg("暂无数据"),!1;var a=1==e.$route.query.tabType?"微商城商品":2==e.$route.query.tabType?"积分商城商品":"图文",i=new Blob([t.data],{type:"application/vnd.ms-excel"}),o=a+"发送记录.csv",n=document.createElement("a");n.download=o,n.style.display="none",n.href=URL.createObjectURL(i),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.defaultStoreList=e,this.conditionObj.storeGroup=e,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDetail:function(e,t){this.showFlag=!0;var a=JSON.parse(o()(t));a.userMessageId="",this.itemRow=a},hideDetail:function(){this.showFlag=!1,this.itemRow={},this.$nextTick(function(){document.body.style.overflow="auto"})},getTableList:function(e){var t=this,a=[],i=[],o=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&o.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&i.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var n={enterpriseId:t.enterpriseId,relatedId:t.$route.query.relatedId,type:t.$route.query.tabType,keyword:t.conditionObj.searchInput||"",groupIds:a.join(",")||"",storeIds:i.join(",")||"",clerkIds:o.join(",")||"",startTime:t.conditionObj.dateRange[0]||"",endTime:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(l.e)("/haoban-app-member-web/customer/send_message_log",n).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,!1;c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:"请输入导购姓名/手机号/code",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-date-picker",{staticClass:"m-l-10 m-r-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}}),a("el-button",{staticStyle:{"vertical-align":"middle"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e._v("门店架构选人")])],1),e._v(" "),a("div",{staticClass:"table-condition-right"})]),e._v(" "),e.defaultStoreList.length?a("div",{staticClass:"select-data-wrap m-b-20"},[a("ul",{staticClass:"selector-selected-list flex flex-wrap"},[e._l(e.defaultStoreList,function(t,i){return[a("li",{key:i+t.id+t.label,staticClass:"select-item"},[e._v(e._s(t.label)+" "),a("i",{staticClass:"el-icon-close",on:{click:function(t){e.delSelectData(i)}}})])]})],2)]):e._e(),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"导购信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.row.clerkImgUrl?a("img",{attrs:{src:t.row.clerkImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(t.row.clerkName)+"\n "),a("i",{class:[2==t.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),e._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[e._v("员工代码:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.clerkCode||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.clerkPhoneNumber||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[e._v("职位:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.positionName||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属门店:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.storeName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.clerkImgUrl?a("img",{attrs:{src:t.row.clerkImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info over-hidden"},[a("span",{staticClass:"font-14 color-606266 text-ellipsis"},[e._v(e._s(t.row.clerkName||"--"))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis"},[e._v(e._s(t.row.storeName||"--"))])])],1)]}}])}),e._v(" "),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.clerkPhoneNumber||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.memberImgUrl?a("img",{attrs:{src:t.row.memberImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"font-14 color-606266 text-ellipsis"},[e._v(e._s(t.row.memberName||"--"))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis"},[e._v(e._s(t.row.storeName||"--"))])])])]}}])}),e._v(" "),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.memberPhoneNumber||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发送时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("chat-log-list",{attrs:{brandId:e.brandId,itemRow:e.itemRow,showFlag:e.showFlag},on:{hideDetail:e.hideDetail}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)])},staticRenderFns:[]};var h=a("VU/8")(p,u,!1,function(e){a("LOWD")},"data-v-304d5fad",null);t.default=h.exports},LOWD:function(e,t){}}); webpackJsonp([83],{"8msp":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("mvHQ"),o=a.n(i),n=a("Ie7z"),s=a("Ke24"),r=a("b28S"),l=a("P9l9"),c=a("Ch4/"),d=a("PI0u"),p={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:s.a,vueSelectStore:n.a,chatLogList:r.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,activeId:"2",topMenuData:[{id:"1",name:"在线沟通设置",path:"/onlineChatSet?appIcon="+this.$route.query.appIcon+"&activeTab="+this.$route.query.activeTab},{id:"2",name:3==this.$route.query.activeTab?"图文发送记录":1==this.$route.query.tabType?"微商城商品发送记录":2==this.$route.query.tabType?"积分商城商品发送记录":""}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,i=t.minDate;e.choiceDateCopy=[i.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,i=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>i||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:20,total:0,showFlag:!1,itemRow:{}}},methods:{delSelectData:function(e){this.defaultStoreList.splice(e,1),this.currentPage=1,this.getTableList()},showSingleInfo:function(e){},exportExcel:function(){var e=this,t=[],a=[],i=[];e.conditionObj.storeGroup.forEach(function(e){1==e.type&&i.push(e.employeeClerkId),2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var o={enterpriseId:e.enterpriseId,relatedId:e.$route.query.relatedId,type:e.$route.query.tabType,keyword:e.conditionObj.searchInput||"",groupIds:t.join(",")||"",storeIds:a.join(",")||"",clerkIds:i.join(",")||"",startTime:e.conditionObj.dateRange[0]||"",endTime:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand};Object(l.b)("/haoban-app-member-web/customer/export_message_log",o).then(function(t){if(!t.data)return c.a.errorMsg("暂无数据"),!1;var a=1==e.$route.query.tabType?"微商城商品":2==e.$route.query.tabType?"积分商城商品":"图文",i=new Blob([t.data],{type:"application/vnd.ms-excel"}),o=a+"发送记录.csv",n=document.createElement("a");n.download=o,n.style.display="none",n.href=URL.createObjectURL(i),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.defaultStoreList=e,this.conditionObj.storeGroup=e,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDetail:function(e,t){this.showFlag=!0;var a=JSON.parse(o()(t));a.userMessageId="",this.itemRow=a},hideDetail:function(){this.showFlag=!1,this.itemRow={},this.$nextTick(function(){document.body.style.overflow="auto"})},getTableList:function(e){var t=this,a=[],i=[],o=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&o.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&i.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var n={enterpriseId:t.enterpriseId,relatedId:t.$route.query.relatedId,type:t.$route.query.tabType,keyword:t.conditionObj.searchInput||"",groupIds:a.join(",")||"",storeIds:i.join(",")||"",clerkIds:o.join(",")||"",startTime:t.conditionObj.dateRange[0]||"",endTime:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(l.e)("/haoban-app-member-web/customer/send_message_log",n).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,!1;c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:"请输入导购姓名/手机号/code",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-date-picker",{staticClass:"m-l-10 m-r-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}}),a("el-button",{staticStyle:{"vertical-align":"middle"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e._v("门店架构选人")])],1),e._v(" "),a("div",{staticClass:"table-condition-right"})]),e._v(" "),e.defaultStoreList.length?a("div",{staticClass:"select-data-wrap m-b-20"},[a("ul",{staticClass:"selector-selected-list flex flex-wrap"},[e._l(e.defaultStoreList,function(t,i){return[a("li",{key:i+t.id+t.label,staticClass:"select-item"},[e._v(e._s(t.label)+" "),a("i",{staticClass:"el-icon-close",on:{click:function(t){e.delSelectData(i)}}})])]})],2)]):e._e(),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"导购信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.row.clerkImgUrl?a("img",{attrs:{src:t.row.clerkImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(t.row.clerkName)+"\n "),a("i",{class:[2==t.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),e._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[e._v("员工代码:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.clerkCode||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.clerkPhoneNumber||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[e._v("职位:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.positionName||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属门店:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.storeName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.clerkImgUrl?a("img",{attrs:{src:t.row.clerkImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info over-hidden"},[a("span",{staticClass:"font-14 color-606266 text-ellipsis"},[e._v(e._s(t.row.clerkName||"--"))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis"},[e._v(e._s(t.row.storeName||"--"))])])],1)]}}])}),e._v(" "),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.clerkPhoneNumber||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.memberImgUrl?a("img",{attrs:{src:t.row.memberImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"font-14 color-606266 text-ellipsis"},[e._v(e._s(t.row.memberName||"--"))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis"},[e._v(e._s(t.row.storeName||"--"))])])])]}}])}),e._v(" "),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.memberPhoneNumber||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发送时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("chat-log-list",{attrs:{brandId:e.brandId,itemRow:e.itemRow,showFlag:e.showFlag},on:{hideDetail:e.hideDetail}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)])},staticRenderFns:[]};var h=a("VU/8")(p,u,!1,function(e){a("LOWD")},"data-v-304d5fad",null);t.default=h.exports},LOWD:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([83],{DxdI:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("2eFk"),n=a("Ke24"),i=a("fPyK"),l=a("P9l9"),r=a("Ch4/"),s=a("3E4D"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!1,tableH:window.screen.availHeight-464-126+"px",topMenuData:[{id:"1",name:"自定义报表"}],activeId:"1",activeTab:"1",activeBrand:"1",tableData:[],multipleSelection:[]}},computed:{},methods:{changeRouter:function(e){this.$router.push(e)},setSelectTab:function(e){this.activeTab=e.tabId},handlePreview:function(e,t){var a=window.location.origin+"/office-mobile/#/defineTemplate?templateId="+t.dailyReportTemplateId;this.$refs.qrcodePreview.qrcode(a,"daily-preview"),this.dialogVisible=!0},toCustomSet:function(){this.changeRouter("/template?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},handleCopy:function(e,t){this.changeRouter("/template?brandId="+this.brandId+"&templateId="+t.dailyReportTemplateId+"&type=copy&appIcon="+this.$route.query.appIcon)},handleEdit:function(e,t){this.changeRouter("/template?brandId="+this.brandId+"&templateId="+t.dailyReportTemplateId+"&type=edit&appIcon="+this.$route.query.appIcon)},handleDelete:function(e,t){var a=this;a.$confirm("一旦删除之后,该范围的门店将无法接收该日报,是否确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.deleteTemplate(e,t)}).catch(function(){})},deleteTemplate:function(e,t){var a=this;Object(l.e)("/haoban-app-daily-web/daily/del-define-template",{templateId:t.dailyReportTemplateId}).then(function(t){var o=t.data;if(1==o.errorCode)return s.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);r.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this;Object(l.e)("/haoban-app-daily-web/daily/list-define-template",{brandId:e.brandId}).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=[],void(a.result&&a.result.length&&(e.tableData=a.result));r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","212"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:o.a,commonDetailTop:n.a,qrcodeDialog:i.a}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"custom-set-content boder-box"},[a("div",{staticClass:"flex flex-space-between flex-pack-center m-b-23 m-t-30"},[a("div",{staticClass:"custom-set-title flex flex-pack-center"},[a("span",[e._v("模板列表("+e._s(e.tableData.length)+")")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:创建自定义日报后才能下发日报")])]),e._v(" "),a("div",[a("el-button",{attrs:{type:"button"},on:{click:function(t){e.toCustomSet("")}}},[e._v("新建模板")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.title))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"模板描述","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.description))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"门店类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.storeType?a("span",[e._v("自营门店")]):e._e(),e._v(" "),1==t.row.storeType?a("span",[e._v("联营门店")]):e._e(),e._v(" "),2==t.row.storeType?a("span",[e._v("代理门店")]):e._e(),e._v(" "),3==t.row.storeType?a("span",[e._v("代销门店")]):e._e(),e._v(" "),4==t.row.storeType?a("span",[e._v("托管门店")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleCopy(t.$index,t.row)}}},[e._v("复制")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDelete(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("sgiw")},"data-v-2dc7d0eb",null);t.default=u.exports},sgiw:function(e,t){}}); webpackJsonp([84],{DxdI:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("2eFk"),n=a("Ke24"),i=a("fPyK"),l=a("P9l9"),r=a("Ch4/"),s=a("3E4D"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!1,tableH:window.screen.availHeight-464-126+"px",topMenuData:[{id:"1",name:"自定义报表"}],activeId:"1",activeTab:"1",activeBrand:"1",tableData:[],multipleSelection:[]}},computed:{},methods:{changeRouter:function(e){this.$router.push(e)},setSelectTab:function(e){this.activeTab=e.tabId},handlePreview:function(e,t){var a=window.location.origin+"/office-mobile/#/defineTemplate?templateId="+t.dailyReportTemplateId;this.$refs.qrcodePreview.qrcode(a,"daily-preview"),this.dialogVisible=!0},toCustomSet:function(){this.changeRouter("/template?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},handleCopy:function(e,t){this.changeRouter("/template?brandId="+this.brandId+"&templateId="+t.dailyReportTemplateId+"&type=copy&appIcon="+this.$route.query.appIcon)},handleEdit:function(e,t){this.changeRouter("/template?brandId="+this.brandId+"&templateId="+t.dailyReportTemplateId+"&type=edit&appIcon="+this.$route.query.appIcon)},handleDelete:function(e,t){var a=this;a.$confirm("一旦删除之后,该范围的门店将无法接收该日报,是否确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.deleteTemplate(e,t)}).catch(function(){})},deleteTemplate:function(e,t){var a=this;Object(l.e)("/haoban-app-daily-web/daily/del-define-template",{templateId:t.dailyReportTemplateId}).then(function(t){var o=t.data;if(1==o.errorCode)return s.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);r.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this;Object(l.e)("/haoban-app-daily-web/daily/list-define-template",{brandId:e.brandId}).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=[],void(a.result&&a.result.length&&(e.tableData=a.result));r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","212"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:o.a,commonDetailTop:n.a,qrcodeDialog:i.a}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"custom-set-content boder-box"},[a("div",{staticClass:"flex flex-space-between flex-pack-center m-b-23 m-t-30"},[a("div",{staticClass:"custom-set-title flex flex-pack-center"},[a("span",[e._v("模板列表("+e._s(e.tableData.length)+")")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:创建自定义日报后才能下发日报")])]),e._v(" "),a("div",[a("el-button",{attrs:{type:"button"},on:{click:function(t){e.toCustomSet("")}}},[e._v("新建模板")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.title))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"模板描述","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.description))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"门店类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.storeType?a("span",[e._v("自营门店")]):e._e(),e._v(" "),1==t.row.storeType?a("span",[e._v("联营门店")]):e._e(),e._v(" "),2==t.row.storeType?a("span",[e._v("代理门店")]):e._e(),e._v(" "),3==t.row.storeType?a("span",[e._v("代销门店")]):e._e(),e._v(" "),4==t.row.storeType?a("span",[e._v("托管门店")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleCopy(t.$index,t.row)}}},[e._v("复制")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDelete(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("sgiw")},"data-v-2dc7d0eb",null);t.default=u.exports},sgiw:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([84],{"/IZy":function(t,e){},FB5x:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"指标管理",appIcon:"icon-ribao",activeSelTab:"11",activeTab:"11",tabListData:[{tabId:"1",tabName:"指标管理",icon:"icon-ribaoshezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"月指标",icon:""},{tabId:"13",tabName:"月指标任务",icon:""}]}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":case"11":case"12":this.changeRoute("monthList?appIcon="+this.$route.query.appIcon);break;case"13":this.changeRoute("monthTask?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157"},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?a("keep-alive",[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1):a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("/IZy")},"data-v-2d226637",null);e.default=r.exports}}); webpackJsonp([85],{"/IZy":function(t,e){},FB5x:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"指标管理",appIcon:"icon-ribao",activeSelTab:"11",activeTab:"11",tabListData:[{tabId:"1",tabName:"指标管理",icon:"icon-ribaoshezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"月指标",icon:""},{tabId:"13",tabName:"月指标任务",icon:""}]}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":case"11":case"12":this.changeRoute("monthList?appIcon="+this.$route.query.appIcon);break;case"13":this.changeRoute("monthTask?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157"},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?a("keep-alive",[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1):a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("/IZy")},"data-v-2d226637",null);e.default=r.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([85],{HHra:function(t,e){},RHxA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Xxa5"),r=a.n(s),o=a("exGp"),n=a.n(o),i=a("3Xzz"),l=a("elmV"),c=a("P9l9"),u=a("unF8"),p=a("Ch4/"),d={name:"employee-io",components:{navCrumb:i.a,uploadExcelComponent:l.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"storeFrame"},{name:"批量导入导出",path:""}],host:window.location.origin,windowH:window.screen.availHeight-180+"px",type:"import",fileList:[],url:t+"/haoban-manage-web/store/upload",uploadSuccessMsg:"",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,gicFlag:!0}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(c.a)("/haoban-manage-web/error-log-page",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result,t.loading=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},handleRemove:function(t,e){this.fileList=[]},handlePreview:function(t){},beforeAvatarUpload:function(t){var e=t.name.lastIndexOf(".");if(e<0)return this.$message.error("文件格式不正确!"),!1;var a=t.name.substring(e+1,t.name.length),s=a.includes("xls")||a.includes("xlsx");return s||this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),s},getChange:function(t,e){var a=e.length-1<0?0:e.length-1,s=t.name.lastIndexOf("."),r=t.name.substring(s+1,t.name.length);if(!(r.includes("xls")||r.includes("xlsx")))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(a,1),!1;this.fileList=[e[a]]},uploadSuccess:function(t,e){var a=this;1==t.errorCode?(a.$forceUpdate(),a.uploadSuccessMsg=t.message.split(","),a.$message({message:t.message,type:"success"}),a.$nextTick(function(){a.fileList=[]})):a.$message.error(t.message)},submitUpload:function(t){this.$refs[t].submit()},getGicData:function(t){var e=this;return n()(r.a.mark(function a(){var s,o,n,i;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(s=e,t){a.next=3;break}return a.abrupt("return",!1);case 3:return o={type:1,businessId:t},a.next=6,Object(u.a)(o);case 6:n=a.sent,1==(i=n.data).errorCode?(s.gicFlag=i.result,s.type=i.result?"export":"import"):p.a.errorMsg(i);case 9:case"end":return a.stop()}},a,e)}))()}},beforeMount:function(){var t=this.$route.query.brandId;this.getGicData(t),"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-set-wrap",style:{height:t.windowH}},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"io-container border-box "},[t._m(0),t._v(" "),a("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[t.gicFlag?t._e():a("el-radio-button",{attrs:{label:"import"}},[t._v("导入门店")]),t._v(" "),a("el-radio-button",{attrs:{label:"export"}},[t._v("导出")]),t._v(" "),a("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载门店导入模板,批量填写门店信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx"}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传填写好的门店信息\n "),a("div",{staticClass:"d-u-btn"},[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url+"?brandId="+t.$route.query.brandId,"auto-upload":!1,"before-upload":t.beforeAvatarUpload,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"on-remove":t.handleRemove}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("\n 上传\n ")])],1)]):"export"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出门店\n "),a("a",{staticClass:"d-u-btn",attrs:{href:"/haoban-manage-web/store/export?storeGroupId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改门店信息\n ")])]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[a("div",{staticClass:"tip"},[t._v(t._s(t.uploadSuccessMsg))]),t._v(" "),a("a",{attrs:{href:"/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[a("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",prop:"storeName"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店code",prop:"storeCode"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店分组ID",prop:"storeGroupId"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店类型",prop:"storeTypeStr"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店状态",prop:"statusStr"}}),t._v(" "),a("el-table-column",{attrs:{label:"店长",prop:"managerName"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号码",prop:"managerPhone"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s("86"==e.row.managerNationcode||null==e.row.managerNationcode?e.row.managerPhone:"+"+e.row.nationcode+"-"+e.row.managerPhone)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"店长编码",prop:"managerCode"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"managerPostionName"}})],1),t._v(" "),t.logList.length?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)],1)])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"tip-area border-box "},[a("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,最多导入30家门店,如有超出,可先进行"),a("a",{staticClass:"a-href",attrs:{href:"#/companyCertify"}},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("不能在本excel表中对门店信息类别进行增加、删除、修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 门店所在分组:请先到后台创建门店分组,将分组id填入导入表格中,导入中,若找不到对应分组,将直接将门店挂在根目录下面\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入30家门店,超出后无法导入,请先进行企业认证")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("每次最多导入2000家门店,如果超出则只取前2000条数据,可以分多次导入")])])}]};var g=a("VU/8")(d,m,!1,function(t){a("HHra")},null,null);e.default=g.exports}}); webpackJsonp([86],{HHra:function(t,e){},RHxA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Xxa5"),r=a.n(s),o=a("exGp"),n=a.n(o),i=a("3Xzz"),l=a("elmV"),c=a("P9l9"),u=a("unF8"),p=a("Ch4/"),d={name:"employee-io",components:{navCrumb:i.a,uploadExcelComponent:l.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"storeFrame"},{name:"批量导入导出",path:""}],host:window.location.origin,windowH:window.screen.availHeight-180+"px",type:"import",fileList:[],url:t+"/haoban-manage-web/store/upload",uploadSuccessMsg:"",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,gicFlag:!0}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(c.a)("/haoban-manage-web/error-log-page",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result,t.loading=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},handleRemove:function(t,e){this.fileList=[]},handlePreview:function(t){},beforeAvatarUpload:function(t){var e=t.name.lastIndexOf(".");if(e<0)return this.$message.error("文件格式不正确!"),!1;var a=t.name.substring(e+1,t.name.length),s=a.includes("xls")||a.includes("xlsx");return s||this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),s},getChange:function(t,e){var a=e.length-1<0?0:e.length-1,s=t.name.lastIndexOf("."),r=t.name.substring(s+1,t.name.length);if(!(r.includes("xls")||r.includes("xlsx")))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(a,1),!1;this.fileList=[e[a]]},uploadSuccess:function(t,e){var a=this;1==t.errorCode?(a.$forceUpdate(),a.uploadSuccessMsg=t.message.split(","),a.$message({message:t.message,type:"success"}),a.$nextTick(function(){a.fileList=[]})):a.$message.error(t.message)},submitUpload:function(t){this.$refs[t].submit()},getGicData:function(t){var e=this;return n()(r.a.mark(function a(){var s,o,n,i;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(s=e,t){a.next=3;break}return a.abrupt("return",!1);case 3:return o={type:1,businessId:t},a.next=6,Object(u.a)(o);case 6:n=a.sent,1==(i=n.data).errorCode?(s.gicFlag=i.result,s.type=i.result?"export":"import"):p.a.errorMsg(i);case 9:case"end":return a.stop()}},a,e)}))()}},beforeMount:function(){var t=this.$route.query.brandId;this.getGicData(t),"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-set-wrap",style:{height:t.windowH}},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"io-container border-box "},[t._m(0),t._v(" "),a("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[t.gicFlag?t._e():a("el-radio-button",{attrs:{label:"import"}},[t._v("导入门店")]),t._v(" "),a("el-radio-button",{attrs:{label:"export"}},[t._v("导出")]),t._v(" "),a("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载门店导入模板,批量填写门店信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx"}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传填写好的门店信息\n "),a("div",{staticClass:"d-u-btn"},[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url+"?brandId="+t.$route.query.brandId,"auto-upload":!1,"before-upload":t.beforeAvatarUpload,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"on-remove":t.handleRemove}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("\n 上传\n ")])],1)]):"export"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出门店\n "),a("a",{staticClass:"d-u-btn",attrs:{href:"/haoban-manage-web/store/export?storeGroupId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改门店信息\n ")])]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[a("div",{staticClass:"tip"},[t._v(t._s(t.uploadSuccessMsg))]),t._v(" "),a("a",{attrs:{href:"/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[a("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",prop:"storeName"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店code",prop:"storeCode"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店分组ID",prop:"storeGroupId"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店类型",prop:"storeTypeStr"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店状态",prop:"statusStr"}}),t._v(" "),a("el-table-column",{attrs:{label:"店长",prop:"managerName"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号码",prop:"managerPhone"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s("86"==e.row.managerNationcode||null==e.row.managerNationcode?e.row.managerPhone:"+"+e.row.nationcode+"-"+e.row.managerPhone)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"店长编码",prop:"managerCode"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"managerPostionName"}})],1),t._v(" "),t.logList.length?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)],1)])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"tip-area border-box "},[a("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,最多导入30家门店,如有超出,可先进行"),a("a",{staticClass:"a-href",attrs:{href:"#/companyCertify"}},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("不能在本excel表中对门店信息类别进行增加、删除、修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 门店所在分组:请先到后台创建门店分组,将分组id填入导入表格中,导入中,若找不到对应分组,将直接将门店挂在根目录下面\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入30家门店,超出后无法导入,请先进行企业认证")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("每次最多导入2000家门店,如果超出则只取前2000条数据,可以分多次导入")])])}]};var g=a("VU/8")(d,m,!1,function(t){a("HHra")},null,null);e.default=g.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([86],{"G/J9":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("Ke24"),r=a("Ie7z"),o=a("P9l9"),n=a("3E4D"),l=a("Ch4/"),i=a("PI0u"),c={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:s.a,vueSelectStore:r.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"3",topMenuData:[{id:"1",name:"在线沟通设置",path:"/onlineChatSet?appIcon="+this.$route.query.appIcon+"&activeTab="+this.$route.query.activeTab},{id:"2",name:"卡券列表",path:"/onlineChatSet?appIcon="+this.$route.query.appIcon+"&activeTab="+this.$route.query.activeTab},{id:"3",name:this.$route.query.coupCardId?"编辑卡券":"新增卡券"}],selectCoupCardId:"",selectList:"",tableData:[],conditionObj:{searchInput:""},appScene:2,defaultStoreList:[],selectType:"store",storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},groupTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:6,total:0,formData:{id:"",coupCardId:"",sendRange:"0",selectList:[],eachSendTimes:3,sendType:"0",totalSendTimes:0},rules:{coupCardId:[{required:!0,message:"请选择卡券",trigger:"change"}],sendRange:[{validator:function(t,a,s){return""==a?s(new Error("请选择发送范围")):"1"!=a&&"2"!=a||e.formData.selectList.length?void s():s(new Error("请选择发送范围"))},trigger:"change"}],sendType:[{validator:function(t,a,s){return""==a?s(new Error("请选择券发放总数")):"1"!=a||e.formData.totalSendTimes?void s():s(new Error("请选择券发放总数"))},trigger:"change"}],eachSendTimes:[{required:!0,message:"请输入券发放张数",trigger:"blur"}]}}},methods:{submitForm:function(e,t){var a=this;return a.formData.coupCardId=a.selectCoupCardId,!!("1"!=a.formData.sendRange&&"2"!=a.formData.sendRange||a.formData.selectList.length)&&(!("1"==a.formData.sendType&&!a.formData.totalSendTimes)&&(!("1"==a.formData.receiveType&&!a.formData.totalReceiveTimes)&&void a.$refs[e].validate(function(e){e&&a.postSaveCard(t)})))},postSaveCard:function(e){var t=this,a={id:t.formData.id,coupCardId:t.formData.coupCardId,sendRange:t.formData.sendRange,selectList:1==t.formData.sendRange?t.formData.selectList.map(function(e){return e.groupId||e.id}).join(","):2==t.formData.sendRange?t.formData.selectList.map(function(e){return e.storeId||e.id}).join(","):"",eachSendTimes:t.formData.eachSendTimes,sendType:t.formData.sendType,totalSendTimes:t.formData.totalSendTimes,brandId:t.brandId};Object(o.e)(t.$route.query.coupCardId?"/haoban-app-member-web/cardCoupon/edit-card-coup":"/haoban-app-member-web/cardCoupon/add-card-coup",a).then(function(a){var s=a.data;1==s.errorCode&&(n.a.showmsg(t.$route.query.coupCardId?"编辑卡券成功":"新建卡券成功","success"),e?(t.formData={id:"",coupCardId:"",sendRange:"0",selectList:[],eachSendTimes:3,sendType:"0",totalSendTimes:0},t.tableData.forEach(function(e){e.coupCardId==t.selectCoupCardId&&(e.selected=1)}),t.$nextTick(function(){t.selectCoupCardId=""})):t.$router.push("/onlineChatSet?activeTab="+t.$route.query.activeTab+"&appIcon="+t.$route.query.appIcon)),l.a.errorMsg(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toReturn:function(){this.$router.go(-1)},toInput:Object(i.a)(function(e,t){this.currentPage=1,this.getTableList()},200),clearInput:function(){this.currentPage=1,this.getTableList()},changeRange:function(e){this.formData.selectList=[]},showDialogLayer:function(e,t){this.selectType=e,this.defaultStoreList=t,"store"==e?this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0,openNextBool:!0}:this.groupTreeSet={isSelectPerson:!1,dialogVisible:!0,isSingle:!1,openNextBool:!0}},handleSelectedList:function(e){this.formData.selectList=e,this.defaultStoreList=e},delDepart:function(e,t,a){t.splice(e,1)},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getCardData:function(){var e=this,t={coupCardId:e.$route.query.coupCardId,brandId:e.brandId};Object(o.a)("/haoban-app-member-web/cardCoupon/find-card-coup-detail",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.list&&a.result.list.forEach(function(e){e.label=e.name}),e.formData={id:a.result.detail.id,coupCardId:a.result.detail.coupCardId,sendRange:String(a.result.detail.sendRange),selectList:0!=a.result.detail.sendRange?a.result.list:[],eachSendTimes:a.result.detail.eachSendTimes,sendType:String(a.result.detail.sendType),totalSendTimes:a.result.detail.totalSendTimes},e.defaultStoreList=0!=a.result.detail.sendRange?a.result.list:[],e.selectCoupCardId=a.result.detail.coupCardId,!1;l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(e){var t=this,a={cardName:t.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(o.a)("/haoban-app-member-web/cardCoupon/find-select-card-page",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,t.$route.query.coupCardId&&t.getCardData(),!1;l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log boder-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"new-card-body"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"选择卡券:",prop:"coupCardId"}},[a("div",{staticClass:"search-div"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入卡券名称",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),a("span",{staticClass:"search-tip p-l-20 font-14 color-909399"},[e._v("领取限制<100的卡券不支持选择,系统已过滤,符合条件共"+e._s(e.total)+"张")])],1),e._v(" "),a("div",{staticClass:"chat-log-content boder-box m-t-20"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{disabled:1==t.row.selected,label:t.row.coupCardId},model:{value:e.selectCoupCardId,callback:function(t){e.selectCoupCardId=t},expression:"selectCoupCardId"}},[e._v(e._s(""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"cardName",label:"卡券名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"备注名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.subName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"effectDateString",label:"有效期","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"cardLimit",label:"领取限制","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"storeMode",label:"适用门店","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.storeMode?"所有门店":1==t.row.storeMode?"部分分组":"部分门店")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"couponStock",label:"库存","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"getedQuantity",label:"领取次数","show-overflow-tooltip":""}})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-size":e.pageSize,layout:" prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1):e._e()],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券的发送范围设置",placement:"top-start"}},[a("span",[e._v("选择发送范围"),a("span",{staticClass:"el-icon-info font-12 color-909399"}),e._v(" :")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[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("所有门店")]),e._v(" "),a("el-radio",{staticClass:"m-l-40",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("部分分组")]),e._v(" "),1==e.formData.sendRange?a("div",{staticClass:"w-240 inline-block item-cell-select"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("group",e.formData.selectList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.formData.selectList,function(t,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(s,e.formData.selectList)}}})])]})],2)])])])]):e._e(),e._v(" "),a("el-radio",{staticClass:"m-l-40",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("部分门店")]),e._v(" "),2==e.formData.sendRange?a("div",{staticClass:"w-240 inline-block item-cell-select"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.formData.selectList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.formData.selectList,function(t,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(s,e.formData.selectList)}}})])]})],2)])])])]):e._e(),e._v(" "),"1"!=e.formData.sendRange&&"2"!=e.formData.sendRange||e.formData.selectList.length?e._e():a("div",{staticClass:"el-form-item__error"},[e._v("请选择发送范围")])],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券限制每个会员最大发放次数",placement:"top-start"}},[a("span",[e._v("券发放张数"),a("span",{staticClass:"el-icon-info font-12 color-909399"}),e._v(" :")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-input-number",{staticClass:"w-90",attrs:{"controls-position":"right",min:0,max:20},model:{value:e.formData.eachSendTimes,callback:function(t){e.$set(e.formData,"eachSendTimes",t)},expression:"formData.eachSendTimes"}}),a("span",{staticClass:"font-14 color-c0c4cc p-l-20"},[e._v("最多20张每人")])],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券发放总数,不得超过券库存数",placement:"top-start"}},[a("span",[e._v("券发放总数"),a("span",{staticClass:"el-icon-info font-12 color-909399"}),e._v(" :")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{label:"0"},model:{value:e.formData.sendType,callback:function(t){e.$set(e.formData,"sendType",t)},expression:"formData.sendType"}},[e._v("无限制")]),e._v(" "),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},model:{value:e.formData.sendType,callback:function(t){e.$set(e.formData,"sendType",t)},expression:"formData.sendType"}},[e._v("限制总数")]),1==e.formData.sendType?a("el-input-number",{staticClass:"m-l-10",attrs:{"controls-position":"right",min:1},model:{value:e.formData.totalSendTimes,callback:function(t){e.$set(e.formData,"totalSendTimes",t)},expression:"formData.totalSendTimes"}}):e._e()],1)]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.coupCardId?"编辑":"新建"))]),e._v(" "),e.$route.query.coupCardId?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm","flag")}}},[e._v("保存并继续")]),e._v(" "),a("el-button",{on:{click:e.toReturn}},[e._v("取消")])],1)],1)],1)],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("vue-select-store",{ref:"storeSelectorGroup",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.groupTreeSet,selectType:"group",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("hALC")},"data-v-1e122884",null);t.default=u.exports},hALC:function(e,t){}}); webpackJsonp([87],{"G/J9":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("Ke24"),r=a("Ie7z"),o=a("P9l9"),n=a("3E4D"),l=a("Ch4/"),i=a("PI0u"),c={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:s.a,vueSelectStore:r.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"3",topMenuData:[{id:"1",name:"在线沟通设置",path:"/onlineChatSet?appIcon="+this.$route.query.appIcon+"&activeTab="+this.$route.query.activeTab},{id:"2",name:"卡券列表",path:"/onlineChatSet?appIcon="+this.$route.query.appIcon+"&activeTab="+this.$route.query.activeTab},{id:"3",name:this.$route.query.coupCardId?"编辑卡券":"新增卡券"}],selectCoupCardId:"",selectList:"",tableData:[],conditionObj:{searchInput:""},appScene:2,defaultStoreList:[],selectType:"store",storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},groupTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:6,total:0,formData:{id:"",coupCardId:"",sendRange:"0",selectList:[],eachSendTimes:3,sendType:"0",totalSendTimes:0},rules:{coupCardId:[{required:!0,message:"请选择卡券",trigger:"change"}],sendRange:[{validator:function(t,a,s){return""==a?s(new Error("请选择发送范围")):"1"!=a&&"2"!=a||e.formData.selectList.length?void s():s(new Error("请选择发送范围"))},trigger:"change"}],sendType:[{validator:function(t,a,s){return""==a?s(new Error("请选择券发放总数")):"1"!=a||e.formData.totalSendTimes?void s():s(new Error("请选择券发放总数"))},trigger:"change"}],eachSendTimes:[{required:!0,message:"请输入券发放张数",trigger:"blur"}]}}},methods:{submitForm:function(e,t){var a=this;return a.formData.coupCardId=a.selectCoupCardId,!!("1"!=a.formData.sendRange&&"2"!=a.formData.sendRange||a.formData.selectList.length)&&(!("1"==a.formData.sendType&&!a.formData.totalSendTimes)&&(!("1"==a.formData.receiveType&&!a.formData.totalReceiveTimes)&&void a.$refs[e].validate(function(e){e&&a.postSaveCard(t)})))},postSaveCard:function(e){var t=this,a={id:t.formData.id,coupCardId:t.formData.coupCardId,sendRange:t.formData.sendRange,selectList:1==t.formData.sendRange?t.formData.selectList.map(function(e){return e.groupId||e.id}).join(","):2==t.formData.sendRange?t.formData.selectList.map(function(e){return e.storeId||e.id}).join(","):"",eachSendTimes:t.formData.eachSendTimes,sendType:t.formData.sendType,totalSendTimes:t.formData.totalSendTimes,brandId:t.brandId};Object(o.e)(t.$route.query.coupCardId?"/haoban-app-member-web/cardCoupon/edit-card-coup":"/haoban-app-member-web/cardCoupon/add-card-coup",a).then(function(a){var s=a.data;1==s.errorCode&&(n.a.showmsg(t.$route.query.coupCardId?"编辑卡券成功":"新建卡券成功","success"),e?(t.formData={id:"",coupCardId:"",sendRange:"0",selectList:[],eachSendTimes:3,sendType:"0",totalSendTimes:0},t.tableData.forEach(function(e){e.coupCardId==t.selectCoupCardId&&(e.selected=1)}),t.$nextTick(function(){t.selectCoupCardId=""})):t.$router.push("/onlineChatSet?activeTab="+t.$route.query.activeTab+"&appIcon="+t.$route.query.appIcon)),l.a.errorMsg(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toReturn:function(){this.$router.go(-1)},toInput:Object(i.a)(function(e,t){this.currentPage=1,this.getTableList()},200),clearInput:function(){this.currentPage=1,this.getTableList()},changeRange:function(e){this.formData.selectList=[]},showDialogLayer:function(e,t){this.selectType=e,this.defaultStoreList=t,"store"==e?this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0,openNextBool:!0}:this.groupTreeSet={isSelectPerson:!1,dialogVisible:!0,isSingle:!1,openNextBool:!0}},handleSelectedList:function(e){this.formData.selectList=e,this.defaultStoreList=e},delDepart:function(e,t,a){t.splice(e,1)},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getCardData:function(){var e=this,t={coupCardId:e.$route.query.coupCardId,brandId:e.brandId};Object(o.a)("/haoban-app-member-web/cardCoupon/find-card-coup-detail",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.list&&a.result.list.forEach(function(e){e.label=e.name}),e.formData={id:a.result.detail.id,coupCardId:a.result.detail.coupCardId,sendRange:String(a.result.detail.sendRange),selectList:0!=a.result.detail.sendRange?a.result.list:[],eachSendTimes:a.result.detail.eachSendTimes,sendType:String(a.result.detail.sendType),totalSendTimes:a.result.detail.totalSendTimes},e.defaultStoreList=0!=a.result.detail.sendRange?a.result.list:[],e.selectCoupCardId=a.result.detail.coupCardId,!1;l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(e){var t=this,a={cardName:t.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(o.a)("/haoban-app-member-web/cardCoupon/find-select-card-page",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,t.$route.query.coupCardId&&t.getCardData(),!1;l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log boder-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"new-card-body"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"选择卡券:",prop:"coupCardId"}},[a("div",{staticClass:"search-div"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入卡券名称",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),a("span",{staticClass:"search-tip p-l-20 font-14 color-909399"},[e._v("领取限制<100的卡券不支持选择,系统已过滤,符合条件共"+e._s(e.total)+"张")])],1),e._v(" "),a("div",{staticClass:"chat-log-content boder-box m-t-20"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{disabled:1==t.row.selected,label:t.row.coupCardId},model:{value:e.selectCoupCardId,callback:function(t){e.selectCoupCardId=t},expression:"selectCoupCardId"}},[e._v(e._s(""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"cardName",label:"卡券名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"备注名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.subName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"effectDateString",label:"有效期","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"cardLimit",label:"领取限制","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"storeMode",label:"适用门店","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.storeMode?"所有门店":1==t.row.storeMode?"部分分组":"部分门店")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"couponStock",label:"库存","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"getedQuantity",label:"领取次数","show-overflow-tooltip":""}})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-size":e.pageSize,layout:" prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1):e._e()],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券的发送范围设置",placement:"top-start"}},[a("span",[e._v("选择发送范围"),a("span",{staticClass:"el-icon-info font-12 color-909399"}),e._v(" :")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[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("所有门店")]),e._v(" "),a("el-radio",{staticClass:"m-l-40",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("部分分组")]),e._v(" "),1==e.formData.sendRange?a("div",{staticClass:"w-240 inline-block item-cell-select"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("group",e.formData.selectList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.formData.selectList,function(t,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(s,e.formData.selectList)}}})])]})],2)])])])]):e._e(),e._v(" "),a("el-radio",{staticClass:"m-l-40",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("部分门店")]),e._v(" "),2==e.formData.sendRange?a("div",{staticClass:"w-240 inline-block item-cell-select"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.formData.selectList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.formData.selectList,function(t,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(s,e.formData.selectList)}}})])]})],2)])])])]):e._e(),e._v(" "),"1"!=e.formData.sendRange&&"2"!=e.formData.sendRange||e.formData.selectList.length?e._e():a("div",{staticClass:"el-form-item__error"},[e._v("请选择发送范围")])],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券限制每个会员最大发放次数",placement:"top-start"}},[a("span",[e._v("券发放张数"),a("span",{staticClass:"el-icon-info font-12 color-909399"}),e._v(" :")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-input-number",{staticClass:"w-90",attrs:{"controls-position":"right",min:0,max:20},model:{value:e.formData.eachSendTimes,callback:function(t){e.$set(e.formData,"eachSendTimes",t)},expression:"formData.eachSendTimes"}}),a("span",{staticClass:"font-14 color-c0c4cc p-l-20"},[e._v("最多20张每人")])],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券发放总数,不得超过券库存数",placement:"top-start"}},[a("span",[e._v("券发放总数"),a("span",{staticClass:"el-icon-info font-12 color-909399"}),e._v(" :")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{label:"0"},model:{value:e.formData.sendType,callback:function(t){e.$set(e.formData,"sendType",t)},expression:"formData.sendType"}},[e._v("无限制")]),e._v(" "),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},model:{value:e.formData.sendType,callback:function(t){e.$set(e.formData,"sendType",t)},expression:"formData.sendType"}},[e._v("限制总数")]),1==e.formData.sendType?a("el-input-number",{staticClass:"m-l-10",attrs:{"controls-position":"right",min:1},model:{value:e.formData.totalSendTimes,callback:function(t){e.$set(e.formData,"totalSendTimes",t)},expression:"formData.totalSendTimes"}}):e._e()],1)]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.coupCardId?"编辑":"新建"))]),e._v(" "),e.$route.query.coupCardId?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm","flag")}}},[e._v("保存并继续")]),e._v(" "),a("el-button",{on:{click:e.toReturn}},[e._v("取消")])],1)],1)],1)],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("vue-select-store",{ref:"storeSelectorGroup",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.groupTreeSet,selectType:"group",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("hALC")},"data-v-1e122884",null);t.default=u.exports},hALC:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([87],{"9zht":function(e,t){},ys9I:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fZjL"),a=n.n(r),o=n("3Xzz"),s=n("c4uw"),i=n("XDyb"),l=n("PI0u"),c=n("Ch4/"),u=n("3E4D"),m=n("P9l9"),d={name:"replaceAdmin",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"更换超级管理员",path:""}],subNavText:"更换超级管理员,需要先验证当前超级管理员身份",active:0,ruleForm:{name:"",phone:1334444444,code:"",nationcode:""},rules:{name:[{required:!0,message:"请输入当前绑定账号",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},disableBtn:!1,countNum:60,newFormLoad:!1,newRuleForm:{name:"",id:"",label:"",type:""},newRules:{name:[{required:!0,message:"请输入手机号/姓名",trigger:["blur","change"]}]},treeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!0},treeData:{},defaultSelection:[],onlyPerson:!0,changed:""}},computed:{},methods:{showSelect:function(){this.treeSet={dialogVisible:!0,isSingle:!0,isSelectPerson:!0}},handleSelectedList:function(e){e&&a()(e).length&&(this.defaultSelection=[e],this.newRuleForm.name=e.name,this.newRuleForm.id=e.id)},countDown:function(){var e=this,t=setInterval(function(){if(0===e.countNum)return clearInterval(t),e.countNum=60,e.disableBtn=!1,!1;e.countNum--},1e3)},sendCode:Object(l.a)(function(e){this.disableBtn=!0,this.postSendCode(e)},500),postSendCode:function(e){var t=this;Object(m.e)("/haoban-manage-web/enterprise-setting/send-admin-valid-code",{}).then(function(n){var r=n.data;if(1!=r.errorCode)c.a.errorMsg(r);else{t.countDown();var a=String(e).substr(0,3)+"****"+e.substr(7,e.length-1);t.$message({message:"验证码已发送到您的手机:+"+t.ruleForm.nationcode+a,type:"success"})}}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},submitForm:Object(l.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.checkSendCode()})},500),checkSendCode:function(){var e=this,t={code:e.ruleForm.code};Object(m.e)("/haoban-manage-web/enterprise-setting/check-admin-valid-code",t).then(function(t){var n=t.data;1!=n.errorCode?c.a.errorMsg(n):e.active++>2&&e.active}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},newSubmitForm:Object(l.a)(function(e){var t=this;t.newRuleForm.name=t.newRuleForm.name.replace(/(^\s+)|(\s+$)/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.postReplace()})},500),postReplace:function(){var e=this,t={adminClerkId:e.newRuleForm.id};Object(m.e)("/haoban-manage-web/enterprise-setting/change-admin",t).then(function(t){var n=t.data;if(1==n.errorCode)return e.active++,u.a.showmsg("保存成功,请重新登录!","success"),void e.loginOut();c.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},submitFormBack:function(){this.$refs.newRuleForm.resetFields(),this.active&&this.active--},loginOut:function(){var e=this;Object(m.e)("/haoban-manage-web/logout",{}).then(function(e){var t=e.data;1!=t.errorCode?c.a.errorMsg(t):window.location.href=window.location.origin+"/haoban-web/#/login"}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCurrentUser:function(){var e=this,t=JSON.parse(localStorage.getItem("userInfo"));Object(m.e)("/haoban-manage-web/enterprise/find-super-manager",{}).then(function(n){var r=n.data;if(1==r.errorCode)return e.ruleForm.name=r.result.name,e.ruleForm.phone=r.result.phoneNumber,e.ruleForm.nationcode=r.result.nationcode,void(t.phoneNumber!=r.result.phoneNumber?e.disableBtn=!0:e.disableBtn=!1);c.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getCurrentUser()},components:{navCrumb:o.a,vueSelectEmployee:s.a,countryMobile:i.a}},h={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"replaceAdmin-wrap common-set-wrap"},[n("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[n("el-steps",{attrs:{active:e.active,"finish-status":"success","align-center":""}},[n("el-step",{attrs:{title:"获取验证码"}}),e._v(" "),n("el-step",{attrs:{title:"绑定新的超级管理员"}}),e._v(" "),n("el-step",{attrs:{title:"完成"}})],1),e._v(" "),n("div",{staticClass:"w-514 replaceAdmin-wrap-form m-t-45"},[0==e.active?n("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"110px"}},[n("el-form-item",{attrs:{label:"当前绑定账号",prop:"name"}},[n("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"手机号",prop:"phone"}},[n("countryMobile",{attrs:{inputWidth:280,nationCode:e.ruleForm.nationcode,holder:"",disflag:"true"},on:{"update:nationCode":function(t){e.$set(e.ruleForm,"nationcode",t)}},model:{value:e.ruleForm.phone,callback:function(t){e.$set(e.ruleForm,"phone",t)},expression:"ruleForm.phone"}}),n("el-button",{staticClass:"m-l-20 v-align-b",attrs:{type:"primary",plain:"",disabled:e.disableBtn},on:{click:function(t){e.sendCode(e.ruleForm.phone)}}},[e._v(e._s(e.disableBtn&&60==e.countNum||!e.disableBtn&&e.countNum?"获取验证码":e.countNum+"s")+" ")])],1),e._v(" "),n("el-form-item",{attrs:{label:"验证码",prop:"code"}},[n("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入验证码"},model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("下一步")])],1)],1):e._e(),e._v(" "),n("el-form",{directives:[{name:"show",rawName:"v-show",value:1==e.active,expression:"active == 1"}],ref:"newRuleForm",staticClass:"demo-ruleForm",attrs:{model:e.newRuleForm,rules:e.newRules,"label-width":"140px"}},[n("el-form-item",{attrs:{label:"新绑定超级管理员",prop:"name"}},[n("div",{staticClass:"master-select w-280",on:{click:e.showSelect}},[e._v("\n "+e._s(e.newRuleForm.name?e.newRuleForm.name:"请选择")+"\n ")])]),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",loading:e.newFormLoad},on:{click:function(t){e.newSubmitForm("newRuleForm")}}},[e._v("提 交")]),e._v(" "),n("el-button",{attrs:{plain:""},on:{click:e.submitFormBack}},[e._v("上一步")])],1)],1),e._v(" "),2==e.active?n("div",{staticClass:"replaceAdmin-wrap-success"},[e._m(0),e._v(" "),n("p",{staticClass:"font-w-500"},[e._v("操作成功")])]):e._e()],1)],1)]),e._v(" "),n("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,onlyPerson:e.onlyPerson,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),n("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"icon-outer"},[t("i",{staticClass:"el-icon-success"})])}]};var v=n("VU/8")(d,h,!1,function(e){n("9zht")},"data-v-1d079368",null);t.default=v.exports}}); webpackJsonp([88],{"9zht":function(e,t){},ys9I:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fZjL"),a=n.n(r),o=n("3Xzz"),s=n("c4uw"),i=n("XDyb"),l=n("PI0u"),c=n("Ch4/"),u=n("3E4D"),m=n("P9l9"),d={name:"replaceAdmin",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"更换超级管理员",path:""}],subNavText:"更换超级管理员,需要先验证当前超级管理员身份",active:0,ruleForm:{name:"",phone:1334444444,code:"",nationcode:""},rules:{name:[{required:!0,message:"请输入当前绑定账号",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},disableBtn:!1,countNum:60,newFormLoad:!1,newRuleForm:{name:"",id:"",label:"",type:""},newRules:{name:[{required:!0,message:"请输入手机号/姓名",trigger:["blur","change"]}]},treeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!0},treeData:{},defaultSelection:[],onlyPerson:!0,changed:""}},computed:{},methods:{showSelect:function(){this.treeSet={dialogVisible:!0,isSingle:!0,isSelectPerson:!0}},handleSelectedList:function(e){e&&a()(e).length&&(this.defaultSelection=[e],this.newRuleForm.name=e.name,this.newRuleForm.id=e.id)},countDown:function(){var e=this,t=setInterval(function(){if(0===e.countNum)return clearInterval(t),e.countNum=60,e.disableBtn=!1,!1;e.countNum--},1e3)},sendCode:Object(l.a)(function(e){this.disableBtn=!0,this.postSendCode(e)},500),postSendCode:function(e){var t=this;Object(m.e)("/haoban-manage-web/enterprise-setting/send-admin-valid-code",{}).then(function(n){var r=n.data;if(1!=r.errorCode)c.a.errorMsg(r);else{t.countDown();var a=String(e).substr(0,3)+"****"+e.substr(7,e.length-1);t.$message({message:"验证码已发送到您的手机:+"+t.ruleForm.nationcode+a,type:"success"})}}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},submitForm:Object(l.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.checkSendCode()})},500),checkSendCode:function(){var e=this,t={code:e.ruleForm.code};Object(m.e)("/haoban-manage-web/enterprise-setting/check-admin-valid-code",t).then(function(t){var n=t.data;1!=n.errorCode?c.a.errorMsg(n):e.active++>2&&e.active}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},newSubmitForm:Object(l.a)(function(e){var t=this;t.newRuleForm.name=t.newRuleForm.name.replace(/(^\s+)|(\s+$)/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.postReplace()})},500),postReplace:function(){var e=this,t={adminClerkId:e.newRuleForm.id};Object(m.e)("/haoban-manage-web/enterprise-setting/change-admin",t).then(function(t){var n=t.data;if(1==n.errorCode)return e.active++,u.a.showmsg("保存成功,请重新登录!","success"),void e.loginOut();c.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},submitFormBack:function(){this.$refs.newRuleForm.resetFields(),this.active&&this.active--},loginOut:function(){var e=this;Object(m.e)("/haoban-manage-web/logout",{}).then(function(e){var t=e.data;1!=t.errorCode?c.a.errorMsg(t):window.location.href=window.location.origin+"/haoban-web/#/login"}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCurrentUser:function(){var e=this,t=JSON.parse(localStorage.getItem("userInfo"));Object(m.e)("/haoban-manage-web/enterprise/find-super-manager",{}).then(function(n){var r=n.data;if(1==r.errorCode)return e.ruleForm.name=r.result.name,e.ruleForm.phone=r.result.phoneNumber,e.ruleForm.nationcode=r.result.nationcode,void(t.phoneNumber!=r.result.phoneNumber?e.disableBtn=!0:e.disableBtn=!1);c.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getCurrentUser()},components:{navCrumb:o.a,vueSelectEmployee:s.a,countryMobile:i.a}},h={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"replaceAdmin-wrap common-set-wrap"},[n("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[n("el-steps",{attrs:{active:e.active,"finish-status":"success","align-center":""}},[n("el-step",{attrs:{title:"获取验证码"}}),e._v(" "),n("el-step",{attrs:{title:"绑定新的超级管理员"}}),e._v(" "),n("el-step",{attrs:{title:"完成"}})],1),e._v(" "),n("div",{staticClass:"w-514 replaceAdmin-wrap-form m-t-45"},[0==e.active?n("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"110px"}},[n("el-form-item",{attrs:{label:"当前绑定账号",prop:"name"}},[n("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"手机号",prop:"phone"}},[n("countryMobile",{attrs:{inputWidth:280,nationCode:e.ruleForm.nationcode,holder:"",disflag:"true"},on:{"update:nationCode":function(t){e.$set(e.ruleForm,"nationcode",t)}},model:{value:e.ruleForm.phone,callback:function(t){e.$set(e.ruleForm,"phone",t)},expression:"ruleForm.phone"}}),n("el-button",{staticClass:"m-l-20 v-align-b",attrs:{type:"primary",plain:"",disabled:e.disableBtn},on:{click:function(t){e.sendCode(e.ruleForm.phone)}}},[e._v(e._s(e.disableBtn&&60==e.countNum||!e.disableBtn&&e.countNum?"获取验证码":e.countNum+"s")+" ")])],1),e._v(" "),n("el-form-item",{attrs:{label:"验证码",prop:"code"}},[n("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入验证码"},model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("下一步")])],1)],1):e._e(),e._v(" "),n("el-form",{directives:[{name:"show",rawName:"v-show",value:1==e.active,expression:"active == 1"}],ref:"newRuleForm",staticClass:"demo-ruleForm",attrs:{model:e.newRuleForm,rules:e.newRules,"label-width":"140px"}},[n("el-form-item",{attrs:{label:"新绑定超级管理员",prop:"name"}},[n("div",{staticClass:"master-select w-280",on:{click:e.showSelect}},[e._v("\n "+e._s(e.newRuleForm.name?e.newRuleForm.name:"请选择")+"\n ")])]),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",loading:e.newFormLoad},on:{click:function(t){e.newSubmitForm("newRuleForm")}}},[e._v("提 交")]),e._v(" "),n("el-button",{attrs:{plain:""},on:{click:e.submitFormBack}},[e._v("上一步")])],1)],1),e._v(" "),2==e.active?n("div",{staticClass:"replaceAdmin-wrap-success"},[e._m(0),e._v(" "),n("p",{staticClass:"font-w-500"},[e._v("操作成功")])]):e._e()],1)],1)]),e._v(" "),n("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,onlyPerson:e.onlyPerson,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),n("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"icon-outer"},[t("i",{staticClass:"el-icon-success"})])}]};var v=n("VU/8")(d,h,!1,function(e){n("9zht")},"data-v-1d079368",null);t.default=v.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([88],{lFAe:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i("//Fk"),a=i.n(s),l=i("gBtx"),n=i.n(l),d=i("mvHQ"),o=i.n(d),r=i("DAYN"),f=i.n(r),c=i("Isrn"),p=i("l46T"),m=i("fPyK"),u=[{parentCode:"defineInfo",fieldCode:"-1",fieldName:"单行输入框",systemFlag:!1,fieldEdited:1,fieldType:"0",fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"多行输入框",systemFlag:!1,fieldEdited:1,fieldType:"1",fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"单选框",systemFlag:!1,fieldEdited:1,fieldType:"2",fixed:!1,fieldDescription:"请选择",fieldOperations:{ruleContent:[],fieldContent:[{type:"radio",name:"选项1"},{type:"radio",name:"选项2"},{type:"radio",name:"选项3"}]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"多选框",systemFlag:!1,fieldEdited:1,fieldType:"3",fixed:!1,fieldDescription:"请选择",fieldOperations:{ruleContent:[],fieldContent:[{type:"checkbox",name:"选项1"},{type:"checkbox",name:"选项2"},{type:"checkbox",name:"选项3"}]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"日期",systemFlag:!1,fieldEdited:1,fieldType:"4",fixed:!1,fieldDescription:"请选择",fieldOperations:{typeValue:"yyyy-MM-dd",ruleContent:[{type:"radio",name:"年-月-日",key:"yyyy-MM-dd",isEdit:1},{type:"radio",name:"年-月",key:"yyyy-MM",isEdit:1}],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"日期区间",systemFlag:!1,fieldEdited:1,fieldType:"5",fixed:!1,fieldOperations:{startName:"开始时间",endName:"结束时间",startDescription:"请选择开始时间",endDescription:"请选择结束时间",typeValue:"yyyy-MM-dd",ruleContent:[{type:"radio",name:"年-月-日",key:"yyyy-MM-dd",isEdit:1},{type:"radio",name:"年-月",key:"yyyy-MM",isEdit:1}],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"数字输入框",systemFlag:!1,fieldType:"6",fieldEdited:1,fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[],unit:"元"},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"图片",systemFlag:!1,fieldType:"7",fieldEdited:1,fixed:!1,fieldDescription:"最多上传9张图片",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}}],v=function(){return u},C=i("3E4D"),g=i("Ch4/"),h=i("PI0u"),y=i("P9l9"),_={name:"staffRecordsTemplate",data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},selectKey:"",baseInfo:[],jobInfo:[],selfInfo:[],eduInfo:[],contractInfo:[],contactInfo:[],personalInfo:[],defineInfo:v(),currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"baseInfo",fieldName:"基本信息",fieldEdited:!1,fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"jobInfo",fieldName:"工作信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"selfInfo",fieldName:"个人信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"eduInfo",fieldName:"学历信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"contractInfo",fieldName:"合同信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"contactInfo",fieldName:"紧急联系人",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"personalInfo",fieldName:"个人资料",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""}],fieldParent:{baseInfo:{},jobInfo:{},selfInfo:{},eduInfo:{},contractInfo:{},contactInfo:{},personalInfo:{}},setList:[]}},created:function(){},methods:{baseInfoClone:function(){},clickItem:function(e){this.tempaletDataList.map(function(e){return e.fieldCode}).includes(e.parentCode)||"defineInfo"===e.parentCode||(this.tempaletDataList.push(this.fieldParent[e.parentCode]),this.tempaletDataList=JSON.parse(o()(this.tempaletDataList)))},checkMove:function(e){var t=!0;return"baseInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("baseInfo")||(t=!1),"jobInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("jobInfo")||(t=!1),"selfInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("selfInfo")||(t=!1),"eduInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("eduInfo")||(t=!1),"contractInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("contractInfo")||(t=!1),"contactInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("contactInfo")||(t=!1),"personalInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("personalInfo")||(t=!1),t},onMove:function(e){return!!this.checkMove(e)&&!e.draggedContext.element.fixed},onChildMove:function(e){return-1!=e.dragged.className.indexOf("block-class")&&e.to.className.indexOf("block-wrap"),!0},itemMoveEnd:function(e){var t=this;t.isDragging=!1,t.selectKey="",t.selectKey=e.clone.dataset.type,t.tempaletDataList.forEach(function(e,i){e.children.forEach(function(e,i){var s;e.systemFlag&&e.fieldCode==t.selectKey&&(s=e.parentCode,t[s].forEach(function(e,i){e.fieldCode==t.selectKey&&(e.fixed=!0)}))})}),t.selectKey="",t.tempaletDataList=JSON.parse(o()(t.tempaletDataList)),t.$forceUpdate()},selectItem:function(e,t){this.currentIndex=t,this.currentChildIndex=null},deleteItem:function(e,t){this.tempaletDataList.splice(t,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,t){e.fixed=!1})},addDragItem:function(e){return!1},selectChildItem:function(e,t,i,s){this.currentIndex=null,this.currentChildKey=e,this.childIndex=t,this.currentChildIndex=i},deleteChildItem:function(e,t,i,s,a){this.childIndex=t,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[t].children[i].fieldCode,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(o()(this.tempaletDataList)),this.tempaletDataList[t].children.splice(i,1),this[a.parentCode].forEach(function(t,i){t.fieldCode===e&&(t.fixed=!1)})},delChildItem:function(e,t,i){i.fieldOperations.fieldContent.splice(t,1)},addChildItem:function(e,t,i){if(19!=t){var s="radio";i.systemFlag||3!==parseInt(i.fieldType)||(s="checkbox"),i.fieldOperations.fieldContent.push({type:s,name:"请输入选项"});var a=i.fieldOperations.fieldContent.map(function(e){return e.name});this.isRepeat(a)&&(i.fieldOperations.fieldContent.splice(i.fieldOperations.fieldContent.length-1,1),a.splice(i.fieldOperations.fieldContent.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},isRepeat:function(e){var t={};for(var i in e){if(t[e[i]])return!0;t[e[i]]=!0}return!1},changeRoute:function(e){this.$router.push(e)},checkTag:function(e){var t={filedFlag:!0,filedRepeat:!1},i=[];return e.forEach(function(e,s){if(""==e.fieldName)return t.filedFlag=!1,t.name=e.fieldName||"",!1;e.children.length&&e.children.forEach(function(e,s){if(e.systemFlag&&""==e.fieldName)return t.filedFlag=!1,t.name=e.fieldName||"",!1;i.push(e.fieldName)})}),this.isRepeat(i)&&(t.filedRepeat=!0),t},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},saveAndBack:Object(h.a)(function(e){var t=JSON.parse(o()(this.tempaletDataList)),i=this.checkTag(t),s=[];if(i.filedFlag)if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(t.forEach(function(e,t){e.sort=t,e.fixed=!0===e.fixed?1:0,e.isMust=!0===e.isMust?1:0,e.systemFlag=!0===e.systemFlag?1:0,e.parentFieldTemplateId=e.parentFieldTemplateId?e.parentFieldTemplateId:-1,e.fieldTemplateId=e.fieldTemplateId?e.fieldTemplateId:-1,e.children.forEach(function(t,i){s.push(t),t.sort=i,t.fixed=!0===t.fixed?1:0,t.isMust=!0===t.isMust?1:0,t.systemFlag=!0===t.systemFlag?1:0,e.systemFlag||(t.fieldEdited=1),2!==parseInt(t.fieldType)&&3!==parseInt(t.fieldType)||t.fieldOperations.fieldContent.forEach(function(e,i){e.key=String(e.key)?String(e.key):"",t.systemFlag||e.hasOwnProperty("key")&&""!=e.key&&"undefined"!=e.key||(e.key=e.name)}),t.systemFlag||(t.parentCode=e.fieldCode),t.fieldTemplateId=t.fieldTemplateId?t.fieldTemplateId:-1,t.parentFieldTemplateId=e.fieldTemplateId})}),s.length>40)return this.$message.error({duration:1e3,message:"最多设置 40 个字段"}),!1;"save"===e?this.saveAllData(t):this.postPreview(t)}else this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"})},500),saveAllData:function(e){var t=this,i={templateContent:o()(e)};Object(y.e)("/haoban-manage-web/record/record-template-save.json",i).then(function(e){var i=e.data;if(1==i.errorCode)return C.a.showmsg("保存成功","success"),void t.changeRoute("/fileSet");g.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postPreview:function(e){var t=this,i={templateContent:o()(e)};Object(y.e)("/haoban-manage-web/record/record-template-preview.json",i).then(function(e){var i=e.data;if(1==i.errorCode){var s=window.location.origin+"/office-mobile/#/staffRecordsTemplate?enterpriseId="+i.result;return t.$refs.qrcodePreview.qrcode(s,"record"),void(t.dialogVisible=!0)}g.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var e=this;Object(y.e)("/haoban-manage-web/record/employee-find-system-template.json",{}).then(function(t){var i=t.data;1!=i.errorCode?g.a.errorMsg(i):e.handleAllFields(i.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAllFields:function(e){var t=this;e.forEach(function(e,i){t.hasOwnProperty(e.parentCode)&&(e.fixed=1===parseInt(e.fixed),e.isMust=1===parseInt(e.isMust),e.systemFlag=!0,e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[],t[e.parentCode].push(e)),t.fieldParent.hasOwnProperty(e.fieldCode)&&(e.children=[],t.fieldParent[e.fieldCode]=e,e.systemFlag=!0)})},getInfo:function(){var e=this;Object(y.e)("/haoban-manage-web/record/employee-find-template.json",{}).then(function(t){var i=t.data;if(1==i.errorCode)return e.setList=[],void(i.result&&i.result.length&&e.handleGetInfo(i.result));g.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){var t=e.filter(function(t){var i=e.filter(function(e){return t.fieldCode==e.parentCode});return i.length>0?t.children=i:t.children=[],0==t.parentCode});return t.sort(function(e,t){return e.sort-t.sort}),t.forEach(function(e,t){e.children&&e.children.length&&e.children.sort(function(e,t){return e.sort-t.sort})}),t},handleGetInfo:function(e){var t=this,i=JSON.parse(o()(e));t.setParent=[],i.forEach(function(e,i){e.fixed=1===n()(e.fixed),e.isMust=1===n()(e.isMust),e.systemFlag=1===n()(e.systemFlag),e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[],e.systemFlag&&0==e.parentCode&&t.setParent.push(e.fieldCode),e.systemFlag&&0!=e.parentCode&&t.setList.push(e.fieldCode)}),t.tempaletDataList=t.treeData(i),setTimeout(function(){t.setFixed()},100)},setFixed:function(){var e=this;e.setParent.forEach(function(t,i){e[t].forEach(function(t,i){e.setList.includes(t.fieldCode)&&(t.fixed=!0)})})}},watch:{isDragging:function(e){var t=this;e?t.delayedDragging=!0:t.$nextTick(function(){t.delayedDragging=!1})}},components:{draggable:f.a,AddInput:c.a,limitInput:p.a,qrcodeDialog:m.a},mounted:function(){a.a.all([this.getAllFields(),this.getInfo()]),document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()}}},I={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"template-wrap",style:{height:e.bodyHeight}},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-head"},[e._m(0),e._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[s("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.saveAndBack("preview")}}},[e._v("预 览")]),e._v(" "),s("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.changeRoute("/fileSet")}}},[e._v("返 回")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveAndBack("save")}}},[e._v("保存并启用")])],1)]),e._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l"},[s("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[s("div",{staticClass:"filed-item-title"},[e._v("基本信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:e.baseInfo,options:e.leftOption,move:e.onMove},on:{clone:e.baseInfoClone,start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.baseInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode,"aria-hidden":"true"},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("工作信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:e.jobInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.jobInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("个人信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:e.selfInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.selfInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("学历信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:e.eduInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.eduInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("合同信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.contractInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.contractInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("紧急联系人")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.contactInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.contactInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("个人材料")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.personalInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.personalInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1)]),e._v(" "),s("el-tab-pane",{attrs:{label:"自定义字段",name:"second"}},[s("div",{staticClass:"filed-item-title"}),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.defineInfo,options:e.leftDefineOption,move:e.onChildMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.defineInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[t.systemFlag||0!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||1!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||2!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||3!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||4!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||5!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||6!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||7!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||0!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-one"}),e._v(" "),t.systemFlag||1!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-two"}),e._v(" "),t.systemFlag||2!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-three"}),e._v(" "),t.systemFlag||3!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-four"}),e._v(" "),t.systemFlag||4!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-five"}),e._v(" "),t.systemFlag||5!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-six"}),e._v(" "),t.systemFlag||6!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-seven"}),e._v(" "),t.systemFlag||7!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-eight"})])}))],1)])],1)],1),e._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==e.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:e._e(),e._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!1},sort:!0}},model:{value:e.tempaletDataList,callback:function(t){e.tempaletDataList=t},expression:"tempaletDataList"}},e._l(e.tempaletDataList,function(t,i){return s("li",{key:"li1"+i,class:["filed-item",e.currentIndex==i?"active-item":"","li-block"],on:{click:function(s){e.selectItem(t.fieldCode,i)}}},["baseInfo"!=t.fieldCode&&"jobInfo"!=t.fieldCode&&"selfInfo"!=t.fieldCode?s("span",{staticClass:"item-close p-item-close",on:{click:function(s){s.stopPropagation(),e.deleteItem(t.fieldCode,i)}}},[s("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),[s("div",{staticClass:"block"},[s("div",{staticClass:"block-head"},[s("div",{class:["opencard-item-title",t.fieldName.length>6?"block-pre-wrap":""]},[e._v(e._s(t.fieldName))])]),e._v(" "),s("ul",{staticClass:"view-content"},[s("draggable",{class:["drag-wrap","block-wrap",t.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:e.addDragItem},model:{value:t.children,callback:function(i){e.$set(t,"children",i)},expression:"item.children"}},e._l(t.children,function(a,l){return s("li",{key:"li"+l,class:["filed-item","child-filed-item",e.currentChildKey==a.fieldCode&&e.currentChildIndex==l?"active-item":""],on:{click:function(s){s.stopPropagation(),e.selectChildItem(a.fieldCode,i,l,t.children)}}},["clerkPhone"!=a.fieldCode&&"clerkName"!=a.fieldCode&&"groupName"!=a.fieldCode&&"clerkCode"!=a.fieldCode&&"positionName"!=a.fieldCode&&"clerkType"!=a.fieldCode&&"clerkStatus"!=a.fieldCode&&"sex"!=a.fieldCode&&"hireDate"!=a.fieldCode&&"nation"!=a.fieldCode?s("span",{staticClass:"item-close child-item-close",on:{click:function(s){s.stopPropagation(),e.deleteChildItem(a.fieldCode,i,l,t.children,a)}}},[s("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),2==a.fieldType||3==a.fieldType||4==a.fieldType?s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldDescription)+" "),s("i",{staticClass:"el-icon-arrow-right"})])])]):e._e(),e._v(" "),5==a.fieldType?s("div",{staticClass:"flex"},[s("div",[s("div",{class:["opencard-item-title",a.fieldOperations.startName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldOperations.startName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldOperations.startDescription)),s("i",{staticClass:"el-icon-arrow-right"})])])]),e._v(" "),s("div",{staticClass:"b-t-1"},[s("div",{class:["opencard-item-title",a.fieldOperations.endName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldOperations.endName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldOperations.endDescription)),s("i",{staticClass:"el-icon-arrow-right"})])])])]):e._e(),e._v(" "),7==a.fieldType?s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[s("i",{staticClass:"iconfont icon-icon"})])])]):e._e(),e._v(" "),0==a.fieldType||1==a.fieldType||6==a.fieldType?s("div",[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag"},[e._v(e._s(a.fieldDescription))])])]):e._e()])}))],1)])]],2)}))],2)])])])])]),e._v(" "),s("div",{staticClass:"template-cell template-cell-r"},[s("el-tabs",{model:{value:e.rightName,callback:function(t){e.rightName=t},expression:"rightName"}},[s("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[s("div",{attrs:{id:"edit-box"}},[s("div",{staticClass:"edit-view baby-info-flag baby-info"},[e._l(e.tempaletDataList,function(t,i){return[e.currentIndex==i&&"0"==t.parentCode?[s("div",{key:"parent"+i,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("标题")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldName,holder:"",disflag:!0,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"fieldName",i)}}})],1)]:e._e(),e._v(" "),e.childIndex==i&&t.children&&t.children.length?[e._l(t.children,function(t,a){return[e.currentChildIndex==a?[s("div",{key:"child"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"fieldName",i)}}}),e._v(" "),7==t.fieldType?s("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n "+e._s(t.fieldDescription)+"\n ")]):e._e()],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&5!=t.fieldType&&7!=t.fieldType?[s("div",{key:"child1"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t,"fieldDescription",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&5==t.fieldType?[s("div",{key:"child2"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("开始时间")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.startName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"startName",i)}}})],1),e._v(" "),s("div",{key:"child3"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.startDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"startDescription",i)}}})],1),e._v(" "),s("div",{key:"child4"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("结束时间")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.endName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"endName",i)}}})],1),e._v(" "),s("div",{key:"child5"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.endDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"endDescription",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&6==t.fieldType?[s("div",{key:"child6"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("单位")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"unit",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex!=a||4!=t.fieldType&&5!=t.fieldType?e._e():[s("div",{key:"child7"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),e._l(t.fieldOperations.ruleContent,function(i,a){return[s("el-radio",{key:"child8"+a,attrs:{label:i.key},model:{value:t.fieldOperations.typeValue,callback:function(i){e.$set(t.fieldOperations,"typeValue",i)},expression:"childItem.fieldOperations.typeValue"}},[e._v("\n "+e._s(i.name)+"\n ")])]})],2)],e._v(" "),e.currentChildIndex!=a||"2"!=t.fieldType&&"3"!=t.fieldType?e._e():[s("div",{key:"child9"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():s("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.fieldOperations.fieldContent,function(a,l){return[s("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:a.name,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){e.$set(a,"name",t)}}}),e._v(" "),!t.systemFlag&&t.fieldOperations.fieldContent.length>1?s("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(s){e.delChildItem(i,l,t)}}}):e._e(),e._v(" "),!t.systemFlag&&l<19?[l==t.fieldOperations.fieldContent.length-1?s("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(s){e.addChildItem(i,l,t)}}}):e._e()]:e._e()],2)]})],2)],e._v(" "),e.currentChildIndex==a?[s("div",{key:"child11"+a,staticClass:"edit-item"},[s("div",{staticClass:"edit-item-title"},[e._v("验证")]),e._v(" "),s("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"childItem.isMust"}},[e._v("必填")])],1)]:e._e(),e._v(" "),e.currentChildIndex==a?[s("div",{key:"parent2"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("员工档案中")]),e._v(" "),s("div",{staticClass:"staffRecords-limit"},[s("el-radio",{staticClass:"label-cell",attrs:{disabled:"clerkPhone"==t.fieldCode||"groupName"==t.fieldCode||"clerkCode"==t.fieldCode||"positionName"==t.fieldCode,label:"1"},model:{value:t.staffRecordsIds.staffVisible,callback:function(i){e.$set(t.staffRecordsIds,"staffVisible",i)},expression:"childItem.staffRecordsIds.staffVisible"}},[e._v("对员工可见")]),e._v(" "),s("el-radio",{staticClass:"label-cell",attrs:{disabled:"clerkPhone"==t.fieldCode||"groupName"==t.fieldCode||"clerkCode"==t.fieldCode||"positionName"==t.fieldCode,label:"0"},model:{value:t.staffRecordsIds.staffVisible,callback:function(i){e.$set(t.staffRecordsIds,"staffVisible",i)},expression:"childItem.staffRecordsIds.staffVisible"}},[e._v("对员工不可见")])],1),e._v(" "),s("div",{staticClass:"staffRecords-limit"},[s("el-radio",{staticClass:"label-cell",attrs:{disabled:"clerkPhone"==t.fieldCode||"groupName"==t.fieldCode||"clerkCode"==t.fieldCode||"positionName"==t.fieldCode,label:"1"},model:{value:t.staffRecordsIds.staffModify,callback:function(i){e.$set(t.staffRecordsIds,"staffModify",i)},expression:"childItem.staffRecordsIds.staffModify"}},[e._v("对员工可修改")]),e._v(" "),s("el-radio",{staticClass:"label-cell",attrs:{disabled:"clerkPhone"==t.fieldCode||"groupName"==t.fieldCode||"clerkCode"==t.fieldCode||"positionName"==t.fieldCode,label:"0"},model:{value:t.staffRecordsIds.staffModify,callback:function(i){e.$set(t.staffRecordsIds,"staffModify",i)},expression:"childItem.staffRecordsIds.staffModify"}},[e._v("对员工不可修改")])],1)])]:e._e()]})]:e._e()]})],2)])])],1)],1)])]),e._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"template-title flex-1"},[t("img",{attrs:{src:i("LbEI"),alt:"logo"}}),this._v(" "),t("span",{staticClass:"template-title-span"},[this._v("员工档案设置")])])}]};var x=i("VU/8")(_,I,!1,function(e){i("q0cL")},"data-v-19ab8c07",null);t.default=x.exports},q0cL:function(e,t){}}); webpackJsonp([89],{lFAe:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i("//Fk"),a=i.n(s),l=i("gBtx"),n=i.n(l),d=i("mvHQ"),o=i.n(d),r=i("DAYN"),f=i.n(r),c=i("Isrn"),p=i("l46T"),m=i("fPyK"),u=[{parentCode:"defineInfo",fieldCode:"-1",fieldName:"单行输入框",systemFlag:!1,fieldEdited:1,fieldType:"0",fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"多行输入框",systemFlag:!1,fieldEdited:1,fieldType:"1",fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"单选框",systemFlag:!1,fieldEdited:1,fieldType:"2",fixed:!1,fieldDescription:"请选择",fieldOperations:{ruleContent:[],fieldContent:[{type:"radio",name:"选项1"},{type:"radio",name:"选项2"},{type:"radio",name:"选项3"}]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"多选框",systemFlag:!1,fieldEdited:1,fieldType:"3",fixed:!1,fieldDescription:"请选择",fieldOperations:{ruleContent:[],fieldContent:[{type:"checkbox",name:"选项1"},{type:"checkbox",name:"选项2"},{type:"checkbox",name:"选项3"}]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"日期",systemFlag:!1,fieldEdited:1,fieldType:"4",fixed:!1,fieldDescription:"请选择",fieldOperations:{typeValue:"yyyy-MM-dd",ruleContent:[{type:"radio",name:"年-月-日",key:"yyyy-MM-dd",isEdit:1},{type:"radio",name:"年-月",key:"yyyy-MM",isEdit:1}],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"日期区间",systemFlag:!1,fieldEdited:1,fieldType:"5",fixed:!1,fieldOperations:{startName:"开始时间",endName:"结束时间",startDescription:"请选择开始时间",endDescription:"请选择结束时间",typeValue:"yyyy-MM-dd",ruleContent:[{type:"radio",name:"年-月-日",key:"yyyy-MM-dd",isEdit:1},{type:"radio",name:"年-月",key:"yyyy-MM",isEdit:1}],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"数字输入框",systemFlag:!1,fieldType:"6",fieldEdited:1,fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[],unit:"元"},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"图片",systemFlag:!1,fieldType:"7",fieldEdited:1,fixed:!1,fieldDescription:"最多上传9张图片",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}}],v=function(){return u},C=i("3E4D"),g=i("Ch4/"),h=i("PI0u"),y=i("P9l9"),_={name:"staffRecordsTemplate",data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},selectKey:"",baseInfo:[],jobInfo:[],selfInfo:[],eduInfo:[],contractInfo:[],contactInfo:[],personalInfo:[],defineInfo:v(),currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"baseInfo",fieldName:"基本信息",fieldEdited:!1,fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"jobInfo",fieldName:"工作信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"selfInfo",fieldName:"个人信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"eduInfo",fieldName:"学历信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"contractInfo",fieldName:"合同信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"contactInfo",fieldName:"紧急联系人",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"personalInfo",fieldName:"个人资料",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""}],fieldParent:{baseInfo:{},jobInfo:{},selfInfo:{},eduInfo:{},contractInfo:{},contactInfo:{},personalInfo:{}},setList:[]}},created:function(){},methods:{baseInfoClone:function(){},clickItem:function(e){this.tempaletDataList.map(function(e){return e.fieldCode}).includes(e.parentCode)||"defineInfo"===e.parentCode||(this.tempaletDataList.push(this.fieldParent[e.parentCode]),this.tempaletDataList=JSON.parse(o()(this.tempaletDataList)))},checkMove:function(e){var t=!0;return"baseInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("baseInfo")||(t=!1),"jobInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("jobInfo")||(t=!1),"selfInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("selfInfo")||(t=!1),"eduInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("eduInfo")||(t=!1),"contractInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("contractInfo")||(t=!1),"contactInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("contactInfo")||(t=!1),"personalInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("personalInfo")||(t=!1),t},onMove:function(e){return!!this.checkMove(e)&&!e.draggedContext.element.fixed},onChildMove:function(e){return-1!=e.dragged.className.indexOf("block-class")&&e.to.className.indexOf("block-wrap"),!0},itemMoveEnd:function(e){var t=this;t.isDragging=!1,t.selectKey="",t.selectKey=e.clone.dataset.type,t.tempaletDataList.forEach(function(e,i){e.children.forEach(function(e,i){var s;e.systemFlag&&e.fieldCode==t.selectKey&&(s=e.parentCode,t[s].forEach(function(e,i){e.fieldCode==t.selectKey&&(e.fixed=!0)}))})}),t.selectKey="",t.tempaletDataList=JSON.parse(o()(t.tempaletDataList)),t.$forceUpdate()},selectItem:function(e,t){this.currentIndex=t,this.currentChildIndex=null},deleteItem:function(e,t){this.tempaletDataList.splice(t,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,t){e.fixed=!1})},addDragItem:function(e){return!1},selectChildItem:function(e,t,i,s){this.currentIndex=null,this.currentChildKey=e,this.childIndex=t,this.currentChildIndex=i},deleteChildItem:function(e,t,i,s,a){this.childIndex=t,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[t].children[i].fieldCode,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(o()(this.tempaletDataList)),this.tempaletDataList[t].children.splice(i,1),this[a.parentCode].forEach(function(t,i){t.fieldCode===e&&(t.fixed=!1)})},delChildItem:function(e,t,i){i.fieldOperations.fieldContent.splice(t,1)},addChildItem:function(e,t,i){if(19!=t){var s="radio";i.systemFlag||3!==parseInt(i.fieldType)||(s="checkbox"),i.fieldOperations.fieldContent.push({type:s,name:"请输入选项"});var a=i.fieldOperations.fieldContent.map(function(e){return e.name});this.isRepeat(a)&&(i.fieldOperations.fieldContent.splice(i.fieldOperations.fieldContent.length-1,1),a.splice(i.fieldOperations.fieldContent.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},isRepeat:function(e){var t={};for(var i in e){if(t[e[i]])return!0;t[e[i]]=!0}return!1},changeRoute:function(e){this.$router.push(e)},checkTag:function(e){var t={filedFlag:!0,filedRepeat:!1},i=[];return e.forEach(function(e,s){if(""==e.fieldName)return t.filedFlag=!1,t.name=e.fieldName||"",!1;e.children.length&&e.children.forEach(function(e,s){if(e.systemFlag&&""==e.fieldName)return t.filedFlag=!1,t.name=e.fieldName||"",!1;i.push(e.fieldName)})}),this.isRepeat(i)&&(t.filedRepeat=!0),t},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},saveAndBack:Object(h.a)(function(e){var t=JSON.parse(o()(this.tempaletDataList)),i=this.checkTag(t),s=[];if(i.filedFlag)if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(t.forEach(function(e,t){e.sort=t,e.fixed=!0===e.fixed?1:0,e.isMust=!0===e.isMust?1:0,e.systemFlag=!0===e.systemFlag?1:0,e.parentFieldTemplateId=e.parentFieldTemplateId?e.parentFieldTemplateId:-1,e.fieldTemplateId=e.fieldTemplateId?e.fieldTemplateId:-1,e.children.forEach(function(t,i){s.push(t),t.sort=i,t.fixed=!0===t.fixed?1:0,t.isMust=!0===t.isMust?1:0,t.systemFlag=!0===t.systemFlag?1:0,e.systemFlag||(t.fieldEdited=1),2!==parseInt(t.fieldType)&&3!==parseInt(t.fieldType)||t.fieldOperations.fieldContent.forEach(function(e,i){e.key=String(e.key)?String(e.key):"",t.systemFlag||e.hasOwnProperty("key")&&""!=e.key&&"undefined"!=e.key||(e.key=e.name)}),t.systemFlag||(t.parentCode=e.fieldCode),t.fieldTemplateId=t.fieldTemplateId?t.fieldTemplateId:-1,t.parentFieldTemplateId=e.fieldTemplateId})}),s.length>40)return this.$message.error({duration:1e3,message:"最多设置 40 个字段"}),!1;"save"===e?this.saveAllData(t):this.postPreview(t)}else this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"})},500),saveAllData:function(e){var t=this,i={templateContent:o()(e)};Object(y.e)("/haoban-manage-web/record/record-template-save.json",i).then(function(e){var i=e.data;if(1==i.errorCode)return C.a.showmsg("保存成功","success"),void t.changeRoute("/fileSet");g.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postPreview:function(e){var t=this,i={templateContent:o()(e)};Object(y.e)("/haoban-manage-web/record/record-template-preview.json",i).then(function(e){var i=e.data;if(1==i.errorCode){var s=window.location.origin+"/office-mobile/#/staffRecordsTemplate?enterpriseId="+i.result;return t.$refs.qrcodePreview.qrcode(s,"record"),void(t.dialogVisible=!0)}g.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var e=this;Object(y.e)("/haoban-manage-web/record/employee-find-system-template.json",{}).then(function(t){var i=t.data;1!=i.errorCode?g.a.errorMsg(i):e.handleAllFields(i.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAllFields:function(e){var t=this;e.forEach(function(e,i){t.hasOwnProperty(e.parentCode)&&(e.fixed=1===parseInt(e.fixed),e.isMust=1===parseInt(e.isMust),e.systemFlag=!0,e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[],t[e.parentCode].push(e)),t.fieldParent.hasOwnProperty(e.fieldCode)&&(e.children=[],t.fieldParent[e.fieldCode]=e,e.systemFlag=!0)})},getInfo:function(){var e=this;Object(y.e)("/haoban-manage-web/record/employee-find-template.json",{}).then(function(t){var i=t.data;if(1==i.errorCode)return e.setList=[],void(i.result&&i.result.length&&e.handleGetInfo(i.result));g.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){var t=e.filter(function(t){var i=e.filter(function(e){return t.fieldCode==e.parentCode});return i.length>0?t.children=i:t.children=[],0==t.parentCode});return t.sort(function(e,t){return e.sort-t.sort}),t.forEach(function(e,t){e.children&&e.children.length&&e.children.sort(function(e,t){return e.sort-t.sort})}),t},handleGetInfo:function(e){var t=this,i=JSON.parse(o()(e));t.setParent=[],i.forEach(function(e,i){e.fixed=1===n()(e.fixed),e.isMust=1===n()(e.isMust),e.systemFlag=1===n()(e.systemFlag),e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[],e.systemFlag&&0==e.parentCode&&t.setParent.push(e.fieldCode),e.systemFlag&&0!=e.parentCode&&t.setList.push(e.fieldCode)}),t.tempaletDataList=t.treeData(i),setTimeout(function(){t.setFixed()},100)},setFixed:function(){var e=this;e.setParent.forEach(function(t,i){e[t].forEach(function(t,i){e.setList.includes(t.fieldCode)&&(t.fixed=!0)})})}},watch:{isDragging:function(e){var t=this;e?t.delayedDragging=!0:t.$nextTick(function(){t.delayedDragging=!1})}},components:{draggable:f.a,AddInput:c.a,limitInput:p.a,qrcodeDialog:m.a},mounted:function(){a.a.all([this.getAllFields(),this.getInfo()]),document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()}}},I={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"template-wrap",style:{height:e.bodyHeight}},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-head"},[e._m(0),e._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[s("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.saveAndBack("preview")}}},[e._v("预 览")]),e._v(" "),s("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.changeRoute("/fileSet")}}},[e._v("返 回")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveAndBack("save")}}},[e._v("保存并启用")])],1)]),e._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l"},[s("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[s("div",{staticClass:"filed-item-title"},[e._v("基本信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:e.baseInfo,options:e.leftOption,move:e.onMove},on:{clone:e.baseInfoClone,start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.baseInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode,"aria-hidden":"true"},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("工作信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:e.jobInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.jobInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("个人信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:e.selfInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.selfInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("学历信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:e.eduInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.eduInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("合同信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.contractInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.contractInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("紧急联系人")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.contactInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.contactInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("个人材料")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.personalInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.personalInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1)]),e._v(" "),s("el-tab-pane",{attrs:{label:"自定义字段",name:"second"}},[s("div",{staticClass:"filed-item-title"}),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.defineInfo,options:e.leftDefineOption,move:e.onChildMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.defineInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[t.systemFlag||0!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||1!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||2!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||3!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||4!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||5!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||6!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||7!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||0!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-one"}),e._v(" "),t.systemFlag||1!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-two"}),e._v(" "),t.systemFlag||2!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-three"}),e._v(" "),t.systemFlag||3!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-four"}),e._v(" "),t.systemFlag||4!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-five"}),e._v(" "),t.systemFlag||5!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-six"}),e._v(" "),t.systemFlag||6!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-seven"}),e._v(" "),t.systemFlag||7!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-eight"})])}))],1)])],1)],1),e._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==e.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:e._e(),e._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!1},sort:!0}},model:{value:e.tempaletDataList,callback:function(t){e.tempaletDataList=t},expression:"tempaletDataList"}},e._l(e.tempaletDataList,function(t,i){return s("li",{key:"li1"+i,class:["filed-item",e.currentIndex==i?"active-item":"","li-block"],on:{click:function(s){e.selectItem(t.fieldCode,i)}}},["baseInfo"!=t.fieldCode&&"jobInfo"!=t.fieldCode&&"selfInfo"!=t.fieldCode?s("span",{staticClass:"item-close p-item-close",on:{click:function(s){s.stopPropagation(),e.deleteItem(t.fieldCode,i)}}},[s("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),[s("div",{staticClass:"block"},[s("div",{staticClass:"block-head"},[s("div",{class:["opencard-item-title",t.fieldName.length>6?"block-pre-wrap":""]},[e._v(e._s(t.fieldName))])]),e._v(" "),s("ul",{staticClass:"view-content"},[s("draggable",{class:["drag-wrap","block-wrap",t.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:e.addDragItem},model:{value:t.children,callback:function(i){e.$set(t,"children",i)},expression:"item.children"}},e._l(t.children,function(a,l){return s("li",{key:"li"+l,class:["filed-item","child-filed-item",e.currentChildKey==a.fieldCode&&e.currentChildIndex==l?"active-item":""],on:{click:function(s){s.stopPropagation(),e.selectChildItem(a.fieldCode,i,l,t.children)}}},["clerkPhone"!=a.fieldCode&&"clerkName"!=a.fieldCode&&"groupName"!=a.fieldCode&&"clerkCode"!=a.fieldCode&&"positionName"!=a.fieldCode&&"clerkType"!=a.fieldCode&&"clerkStatus"!=a.fieldCode&&"sex"!=a.fieldCode&&"hireDate"!=a.fieldCode&&"nation"!=a.fieldCode?s("span",{staticClass:"item-close child-item-close",on:{click:function(s){s.stopPropagation(),e.deleteChildItem(a.fieldCode,i,l,t.children,a)}}},[s("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),2==a.fieldType||3==a.fieldType||4==a.fieldType?s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldDescription)+" "),s("i",{staticClass:"el-icon-arrow-right"})])])]):e._e(),e._v(" "),5==a.fieldType?s("div",{staticClass:"flex"},[s("div",[s("div",{class:["opencard-item-title",a.fieldOperations.startName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldOperations.startName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldOperations.startDescription)),s("i",{staticClass:"el-icon-arrow-right"})])])]),e._v(" "),s("div",{staticClass:"b-t-1"},[s("div",{class:["opencard-item-title",a.fieldOperations.endName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldOperations.endName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldOperations.endDescription)),s("i",{staticClass:"el-icon-arrow-right"})])])])]):e._e(),e._v(" "),7==a.fieldType?s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[s("i",{staticClass:"iconfont icon-icon"})])])]):e._e(),e._v(" "),0==a.fieldType||1==a.fieldType||6==a.fieldType?s("div",[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag"},[e._v(e._s(a.fieldDescription))])])]):e._e()])}))],1)])]],2)}))],2)])])])])]),e._v(" "),s("div",{staticClass:"template-cell template-cell-r"},[s("el-tabs",{model:{value:e.rightName,callback:function(t){e.rightName=t},expression:"rightName"}},[s("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[s("div",{attrs:{id:"edit-box"}},[s("div",{staticClass:"edit-view baby-info-flag baby-info"},[e._l(e.tempaletDataList,function(t,i){return[e.currentIndex==i&&"0"==t.parentCode?[s("div",{key:"parent"+i,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("标题")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldName,holder:"",disflag:!0,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"fieldName",i)}}})],1)]:e._e(),e._v(" "),e.childIndex==i&&t.children&&t.children.length?[e._l(t.children,function(t,a){return[e.currentChildIndex==a?[s("div",{key:"child"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"fieldName",i)}}}),e._v(" "),7==t.fieldType?s("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n "+e._s(t.fieldDescription)+"\n ")]):e._e()],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&5!=t.fieldType&&7!=t.fieldType?[s("div",{key:"child1"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t,"fieldDescription",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&5==t.fieldType?[s("div",{key:"child2"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("开始时间")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.startName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"startName",i)}}})],1),e._v(" "),s("div",{key:"child3"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.startDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"startDescription",i)}}})],1),e._v(" "),s("div",{key:"child4"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("结束时间")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.endName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"endName",i)}}})],1),e._v(" "),s("div",{key:"child5"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.endDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"endDescription",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&6==t.fieldType?[s("div",{key:"child6"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("单位")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"unit",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex!=a||4!=t.fieldType&&5!=t.fieldType?e._e():[s("div",{key:"child7"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),e._l(t.fieldOperations.ruleContent,function(i,a){return[s("el-radio",{key:"child8"+a,attrs:{label:i.key},model:{value:t.fieldOperations.typeValue,callback:function(i){e.$set(t.fieldOperations,"typeValue",i)},expression:"childItem.fieldOperations.typeValue"}},[e._v("\n "+e._s(i.name)+"\n ")])]})],2)],e._v(" "),e.currentChildIndex!=a||"2"!=t.fieldType&&"3"!=t.fieldType?e._e():[s("div",{key:"child9"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():s("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.fieldOperations.fieldContent,function(a,l){return[s("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:a.name,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){e.$set(a,"name",t)}}}),e._v(" "),!t.systemFlag&&t.fieldOperations.fieldContent.length>1?s("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(s){e.delChildItem(i,l,t)}}}):e._e(),e._v(" "),!t.systemFlag&&l<19?[l==t.fieldOperations.fieldContent.length-1?s("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(s){e.addChildItem(i,l,t)}}}):e._e()]:e._e()],2)]})],2)],e._v(" "),e.currentChildIndex==a?[s("div",{key:"child11"+a,staticClass:"edit-item"},[s("div",{staticClass:"edit-item-title"},[e._v("验证")]),e._v(" "),s("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"childItem.isMust"}},[e._v("必填")])],1)]:e._e(),e._v(" "),e.currentChildIndex==a?[s("div",{key:"parent2"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("员工档案中")]),e._v(" "),s("div",{staticClass:"staffRecords-limit"},[s("el-radio",{staticClass:"label-cell",attrs:{disabled:"clerkPhone"==t.fieldCode||"groupName"==t.fieldCode||"clerkCode"==t.fieldCode||"positionName"==t.fieldCode,label:"1"},model:{value:t.staffRecordsIds.staffVisible,callback:function(i){e.$set(t.staffRecordsIds,"staffVisible",i)},expression:"childItem.staffRecordsIds.staffVisible"}},[e._v("对员工可见")]),e._v(" "),s("el-radio",{staticClass:"label-cell",attrs:{disabled:"clerkPhone"==t.fieldCode||"groupName"==t.fieldCode||"clerkCode"==t.fieldCode||"positionName"==t.fieldCode,label:"0"},model:{value:t.staffRecordsIds.staffVisible,callback:function(i){e.$set(t.staffRecordsIds,"staffVisible",i)},expression:"childItem.staffRecordsIds.staffVisible"}},[e._v("对员工不可见")])],1),e._v(" "),s("div",{staticClass:"staffRecords-limit"},[s("el-radio",{staticClass:"label-cell",attrs:{disabled:"clerkPhone"==t.fieldCode||"groupName"==t.fieldCode||"clerkCode"==t.fieldCode||"positionName"==t.fieldCode,label:"1"},model:{value:t.staffRecordsIds.staffModify,callback:function(i){e.$set(t.staffRecordsIds,"staffModify",i)},expression:"childItem.staffRecordsIds.staffModify"}},[e._v("对员工可修改")]),e._v(" "),s("el-radio",{staticClass:"label-cell",attrs:{disabled:"clerkPhone"==t.fieldCode||"groupName"==t.fieldCode||"clerkCode"==t.fieldCode||"positionName"==t.fieldCode,label:"0"},model:{value:t.staffRecordsIds.staffModify,callback:function(i){e.$set(t.staffRecordsIds,"staffModify",i)},expression:"childItem.staffRecordsIds.staffModify"}},[e._v("对员工不可修改")])],1)])]:e._e()]})]:e._e()]})],2)])])],1)],1)])]),e._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"template-title flex-1"},[t("img",{attrs:{src:i("LbEI"),alt:"logo"}}),this._v(" "),t("span",{staticClass:"template-title-span"},[this._v("员工档案设置")])])}]};var x=i("VU/8")(_,I,!1,function(e){i("q0cL")},"data-v-19ab8c07",null);t.default=x.exports},q0cL:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([89],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(e){this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(e){n("Z64I")},null,null);t.default=i.exports},Z64I:function(e,t){}}); webpackJsonp([90],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(e){this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(e){n("Z64I")},null,null);t.default=i.exports},Z64I:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([90],{"3qCE":function(e,t){},VqB7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("3Xzz"),n=a("3E4D"),i=a("Ch4/"),r=a("P9l9"),l={name:"setChildAdmin",data:function(){return{windowH:window.screen.availHeight-180-15+"px",tableH:window.screen.availHeight-440-180,navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:""}],boxHeight:window.screen.availHeight-20+"px",isAddAdmin:"",activeId:"",activeBrandId:"",roleListData:[],roleRightObj:{roleName:"超级管理员",tip:"企业的创建者,拥有企业的所有权限,只会有一个",roleCode:"",isEdit:0},tableData:[],currentPage:1,pageSize:20,total:0}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},toRoleDetail:function(e){this.changeRoute("/addAdminRole?roleId="+this.activeId+"&type="+e+"&brandId="+this.activeBrandId)},toDelRole:function(){var e=this;e.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postToDelRole()}).catch(function(){})},postToDelRole:function(){var e=this,t={roleId:e.activeId,brandId:e.activeBrandId};Object(r.e)("/haoban-manage-web/del-role",t).then(function(t){var a=t.data;if(1==a.errorCode)return n.a.showmsg("删除成功","success"),void e.getRoles();i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},selectRole:function(e,t){this.activeId=e.roleId,this.activeBrandId=t,this.roleRightObj=e,this.getRoleUsers()},toAddRole:function(e){this.changeRoute("/addAdmin?roleId="+this.activeId+"&roleCode="+e+"&brandId="+this.activeBrandId)},handleDel:function(e,t){var a=this;a.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(o){o.value;a.postDelUser(t.userId,e)}).catch(function(){})},postDelUser:function(e,t){var a=this,o={roleId:a.activeId,userId:e,brandId:a.activeBrandId};Object(r.e)("/haoban-manage-web/del-role-user",o).then(function(e){var o=e.data;if(1==o.errorCode)return n.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);i.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleShow:function(e,t,a){this.changeRoute("/addAdmin?roleId="+this.activeId+"&roleCode="+a+"&userId="+t.userId+"&brandId="+this.activeBrandId)},handleSizeChange:function(e){this.pageSize=e,this.getRoleUsers()},handleCurrentChange:function(e){this.currentPage=e,this.getRoleUsers()},getRoleUsers:function(){var e=this,t={roleId:e.activeId,brandId:e.activeBrandId,pageSize:e.pageSize,pageNum:e.currentPage};Object(r.e)("/haoban-manage-web/role-user-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.result?(e.tableData=a.result.result,void(e.total=a.result.totalCount)):(e.tableData=[],!1);i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getRoles:function(){var e=this;Object(r.e)("/haoban-manage-web/role-list",{}).then(function(t){var a=t.data;if(1==a.errorCode)return e.isAddAdmin=a.result.isAddAdmin,e.roleListData=a.result.roleList||[],void(a.result&&a.result.roleList.length&&(e.activeId=e.roleListData[0].roleList[0].roleId,e.activeBrandId=e.roleListData[0].brandId,e.roleRightObj=e.roleListData[0].roleList[0],e.getRoleUsers()));i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.boxHeight=window.screen.availHeight-430+"px",this.getRoles()},components:{navCrumb:o.a}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"setChildAdmin-wrap common-set-wrap",style:{height:e.windowH}},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"setChildAdmin-wrap-body flex"},[a("div",{staticClass:"setChildAdmin-wrap-left w-260",style:{height:e.boxHeight}},e._l(e.roleListData,function(t,o){return a("div",{key:o,staticClass:"m-t-20"},[a("div",{staticClass:"role-cell-head flex"},[a("div",{staticClass:"flex-1 max-half role-cell-head_name"},[e._v(e._s(t.brandName))]),e._v(" "),t.canAddRole?a("div",{staticClass:"text-right flex-1 "},[a("el-button",{attrs:{size:"mini"},on:{click:function(a){e.changeRoute("/addAdminRole?brandId="+t.brandId)}}},[e._v("新增角色")])],1):e._e()]),e._v(" "),a("ul",e._l(t.roleList,function(o,n){return a("li",{key:n,class:["role-cell border-bottom-1",t.brandId==e.activeBrandId&&o.roleId==e.activeId?"role-active":""],on:{click:function(a){a.stopPropagation(),e.selectRole(o,t.brandId)}}},[a("i",{staticClass:"iconfont icon-lizhi p-r-6"}),e._v("\n "+e._s(o.roleName)+"\n ")])}))])})),e._v(" "),a("div",{staticClass:"setChildAdmin-wrap-right box-sizing"},[a("div",{staticClass:"role-title flex flex-between m-b-25"},[a("span",{staticClass:"font-20 color-303133"},[e._v(" "+e._s(e.roleRightObj.roleName)+" ")]),"child_admin"!=e.roleRightObj.roleCode?a("span",{staticClass:"font-14 color-1890ff pinter",on:{click:function(t){e.toRoleDetail("show")}}},[e._v(" 查看权限 ")]):e._e(),"child_admin"==e.roleRightObj.roleCode?a("span",[e.tableData.length?e._e():a("span",{staticClass:"font-14 color-1890ff pinter p-r-6",on:{click:e.toDelRole}},[e._v(" 删除角色 ")]),a("span",{staticClass:"font-14 color-1890ff pinter",on:{click:function(t){e.toRoleDetail("edit")}}},[e._v("\n 编辑权限\n ")])]):e._e()]),e._v(" "),"master_admin"===e.roleRightObj.roleCode||"admin"===e.roleRightObj.roleCode?a("div",{staticClass:"role-tip "},[a("el-alert",{attrs:{title:"master_admin"===e.roleRightObj.roleCode?"企业的创建者,拥有企业的所有权限,只会有一个":"admin"===e.roleRightObj.roleCode?"企业管理员,拥有企业的所有权限,不能创建企业管理员,可以有多个":"",type:"info",closable:!1,"show-icon":""}})],1):e._e(),e._v(" "),e.roleRightObj.isEdit?a("div",{staticClass:"role-add m-t-27"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.toAddRole(e.roleRightObj.roleCode)}}},[e._v("添加成员")])],1):e._e(),e._v(" "),a("div",{class:["role-table",e.roleRightObj.isEdit?"":"m-t-27"]},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"clerkName",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{label:"手机号"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("86"==t.row.nationcode?t.row.clerkPhone:"+"+t.row.nationcode+"-"+t.row.clerkPhone)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"groupName",label:"部门"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return 1==t.row.canEdit?[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleShow(t.$index,t.row,e.roleRightObj.roleCode)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")])]:void 0}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"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._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var d=a("VU/8")(l,s,!1,function(e){a("3qCE")},"data-v-17e48553",null);t.default=d.exports}}); webpackJsonp([91],{"3qCE":function(e,t){},VqB7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("3Xzz"),n=a("3E4D"),i=a("Ch4/"),r=a("P9l9"),l={name:"setChildAdmin",data:function(){return{windowH:window.screen.availHeight-180-15+"px",tableH:window.screen.availHeight-440-180,navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:""}],boxHeight:window.screen.availHeight-20+"px",isAddAdmin:"",activeId:"",activeBrandId:"",roleListData:[],roleRightObj:{roleName:"超级管理员",tip:"企业的创建者,拥有企业的所有权限,只会有一个",roleCode:"",isEdit:0},tableData:[],currentPage:1,pageSize:20,total:0}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},toRoleDetail:function(e){this.changeRoute("/addAdminRole?roleId="+this.activeId+"&type="+e+"&brandId="+this.activeBrandId)},toDelRole:function(){var e=this;e.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postToDelRole()}).catch(function(){})},postToDelRole:function(){var e=this,t={roleId:e.activeId,brandId:e.activeBrandId};Object(r.e)("/haoban-manage-web/del-role",t).then(function(t){var a=t.data;if(1==a.errorCode)return n.a.showmsg("删除成功","success"),void e.getRoles();i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},selectRole:function(e,t){this.activeId=e.roleId,this.activeBrandId=t,this.roleRightObj=e,this.getRoleUsers()},toAddRole:function(e){this.changeRoute("/addAdmin?roleId="+this.activeId+"&roleCode="+e+"&brandId="+this.activeBrandId)},handleDel:function(e,t){var a=this;a.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(o){o.value;a.postDelUser(t.userId,e)}).catch(function(){})},postDelUser:function(e,t){var a=this,o={roleId:a.activeId,userId:e,brandId:a.activeBrandId};Object(r.e)("/haoban-manage-web/del-role-user",o).then(function(e){var o=e.data;if(1==o.errorCode)return n.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);i.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleShow:function(e,t,a){this.changeRoute("/addAdmin?roleId="+this.activeId+"&roleCode="+a+"&userId="+t.userId+"&brandId="+this.activeBrandId)},handleSizeChange:function(e){this.pageSize=e,this.getRoleUsers()},handleCurrentChange:function(e){this.currentPage=e,this.getRoleUsers()},getRoleUsers:function(){var e=this,t={roleId:e.activeId,brandId:e.activeBrandId,pageSize:e.pageSize,pageNum:e.currentPage};Object(r.e)("/haoban-manage-web/role-user-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.result?(e.tableData=a.result.result,void(e.total=a.result.totalCount)):(e.tableData=[],!1);i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getRoles:function(){var e=this;Object(r.e)("/haoban-manage-web/role-list",{}).then(function(t){var a=t.data;if(1==a.errorCode)return e.isAddAdmin=a.result.isAddAdmin,e.roleListData=a.result.roleList||[],void(a.result&&a.result.roleList.length&&(e.activeId=e.roleListData[0].roleList[0].roleId,e.activeBrandId=e.roleListData[0].brandId,e.roleRightObj=e.roleListData[0].roleList[0],e.getRoleUsers()));i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.boxHeight=window.screen.availHeight-430+"px",this.getRoles()},components:{navCrumb:o.a}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"setChildAdmin-wrap common-set-wrap",style:{height:e.windowH}},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"setChildAdmin-wrap-body flex"},[a("div",{staticClass:"setChildAdmin-wrap-left w-260",style:{height:e.boxHeight}},e._l(e.roleListData,function(t,o){return a("div",{key:o,staticClass:"m-t-20"},[a("div",{staticClass:"role-cell-head flex"},[a("div",{staticClass:"flex-1 max-half role-cell-head_name"},[e._v(e._s(t.brandName))]),e._v(" "),t.canAddRole?a("div",{staticClass:"text-right flex-1 "},[a("el-button",{attrs:{size:"mini"},on:{click:function(a){e.changeRoute("/addAdminRole?brandId="+t.brandId)}}},[e._v("新增角色")])],1):e._e()]),e._v(" "),a("ul",e._l(t.roleList,function(o,n){return a("li",{key:n,class:["role-cell border-bottom-1",t.brandId==e.activeBrandId&&o.roleId==e.activeId?"role-active":""],on:{click:function(a){a.stopPropagation(),e.selectRole(o,t.brandId)}}},[a("i",{staticClass:"iconfont icon-lizhi p-r-6"}),e._v("\n "+e._s(o.roleName)+"\n ")])}))])})),e._v(" "),a("div",{staticClass:"setChildAdmin-wrap-right box-sizing"},[a("div",{staticClass:"role-title flex flex-between m-b-25"},[a("span",{staticClass:"font-20 color-303133"},[e._v(" "+e._s(e.roleRightObj.roleName)+" ")]),"child_admin"!=e.roleRightObj.roleCode?a("span",{staticClass:"font-14 color-1890ff pinter",on:{click:function(t){e.toRoleDetail("show")}}},[e._v(" 查看权限 ")]):e._e(),"child_admin"==e.roleRightObj.roleCode?a("span",[e.tableData.length?e._e():a("span",{staticClass:"font-14 color-1890ff pinter p-r-6",on:{click:e.toDelRole}},[e._v(" 删除角色 ")]),a("span",{staticClass:"font-14 color-1890ff pinter",on:{click:function(t){e.toRoleDetail("edit")}}},[e._v("\n 编辑权限\n ")])]):e._e()]),e._v(" "),"master_admin"===e.roleRightObj.roleCode||"admin"===e.roleRightObj.roleCode?a("div",{staticClass:"role-tip "},[a("el-alert",{attrs:{title:"master_admin"===e.roleRightObj.roleCode?"企业的创建者,拥有企业的所有权限,只会有一个":"admin"===e.roleRightObj.roleCode?"企业管理员,拥有企业的所有权限,不能创建企业管理员,可以有多个":"",type:"info",closable:!1,"show-icon":""}})],1):e._e(),e._v(" "),e.roleRightObj.isEdit?a("div",{staticClass:"role-add m-t-27"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.toAddRole(e.roleRightObj.roleCode)}}},[e._v("添加成员")])],1):e._e(),e._v(" "),a("div",{class:["role-table",e.roleRightObj.isEdit?"":"m-t-27"]},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"clerkName",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{label:"手机号"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("86"==t.row.nationcode?t.row.clerkPhone:"+"+t.row.nationcode+"-"+t.row.clerkPhone)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"groupName",label:"部门"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return 1==t.row.canEdit?[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleShow(t.$index,t.row,e.roleRightObj.roleCode)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")])]:void 0}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"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._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var d=a("VU/8")(l,s,!1,function(e){a("3qCE")},"data-v-17e48553",null);t.default=d.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([91],{"+Qrr":function(e,t){},RQuk:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("mvHQ"),r=a.n(o),n=a("nsZK"),c=a("P9l9"),i=a("Ch4/"),s={name:"index",components:{storeTreeSelect:n.a},data:function(){var e=this;return{projectName:"haoban-manage-web",contentHeight:"0px",choiceDate:[],choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-26784e5,o=e.choiceDateCopy[0]+26784e5;return t.getTime()<a||t.getTime()>o||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},brandId:"",activeGroupId:"",storeGroupIds:[]}},methods:{exportData:function(){this.postExportData()},postExportData:function(){var e=this,t={date:e.choiceDate,storeIds:e.storeGroupIds};Object(c.a)("/haoban-manage-web/home/find-quick-entry",t).then(function(t){var a=t.data;1!=a.errorCode?i.a.errorMsg(a):e.entryData=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeDate:function(e){e?this.choiceDateCopy=JSON.parse(r()(this.choiceDate)):(this.choiceDateCopy=[],this.choiceDate=[])},checkStoreGroupIds:function(e){this.currentPage=1,this.storeGroupIds=e},getStoreData:function(){var e=this;Object(c.a)("/haoban-manage-web/home/find-quick-entry",{}).then(function(t){var a=t.data;1!=a.errorCode?i.a.errorMsg(a):e.entryData=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getStoreData()}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sign-contain"},[a("div",{staticClass:"sign-content border-box"},[a("div",[a("el-date-picker",{staticClass:"m-l-10",attrs:{"picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.choiceDate,callback:function(t){e.choiceDate=t},expression:"choiceDate"}})],1),e._v(" "),a("div",{staticClass:"m-t-20"},[a("store-tree-select",{attrs:{brandId:e.brandId,activeGroupId:e.activeGroupId},on:{checkStoreGroupIds:e.checkStoreGroupIds}})],1),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-button",{staticClass:"m-l-10",attrs:{type:"primary"},on:{click:e.exportData}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导 出")])],1)])])},staticRenderFns:[]};var u=a("VU/8")(s,d,!1,function(e){a("+Qrr")},"data-v-14d8f766",null);t.default=u.exports}}); webpackJsonp([92],{"+Qrr":function(e,t){},RQuk:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("mvHQ"),r=a.n(o),n=a("nsZK"),c=a("P9l9"),i=a("Ch4/"),s={name:"index",components:{storeTreeSelect:n.a},data:function(){var e=this;return{projectName:"haoban-manage-web",contentHeight:"0px",choiceDate:[],choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-26784e5,o=e.choiceDateCopy[0]+26784e5;return t.getTime()<a||t.getTime()>o||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},brandId:"",activeGroupId:"",storeGroupIds:[]}},methods:{exportData:function(){this.postExportData()},postExportData:function(){var e=this,t={date:e.choiceDate,storeIds:e.storeGroupIds};Object(c.a)("/haoban-manage-web/home/find-quick-entry",t).then(function(t){var a=t.data;1!=a.errorCode?i.a.errorMsg(a):e.entryData=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeDate:function(e){e?this.choiceDateCopy=JSON.parse(r()(this.choiceDate)):(this.choiceDateCopy=[],this.choiceDate=[])},checkStoreGroupIds:function(e){this.currentPage=1,this.storeGroupIds=e},getStoreData:function(){var e=this;Object(c.a)("/haoban-manage-web/home/find-quick-entry",{}).then(function(t){var a=t.data;1!=a.errorCode?i.a.errorMsg(a):e.entryData=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getStoreData()}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sign-contain"},[a("div",{staticClass:"sign-content border-box"},[a("div",[a("el-date-picker",{staticClass:"m-l-10",attrs:{"picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.choiceDate,callback:function(t){e.choiceDate=t},expression:"choiceDate"}})],1),e._v(" "),a("div",{staticClass:"m-t-20"},[a("store-tree-select",{attrs:{brandId:e.brandId,activeGroupId:e.activeGroupId},on:{checkStoreGroupIds:e.checkStoreGroupIds}})],1),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-button",{staticClass:"m-l-10",attrs:{type:"primary"},on:{click:e.exportData}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导 出")])],1)])])},staticRenderFns:[]};var u=a("VU/8")(s,d,!1,function(e){a("+Qrr")},"data-v-14d8f766",null);t.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([92],{"4H54":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("2eFk"),i=s("Ke24"),n=s("PI0u"),o=s("Ch4/"),l=s("3E4D"),r=s("P9l9"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeId:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"话务任务设置"}],setObj:{taskType:1,overDayJudge:"",distributeTypeJudge:"",posDistributeJudge:"",giveUpJudge:""}}},computed:{},methods:{saveSet:Object(n.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,taskType:1,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,posDistributeJudge:t.setObj.posDistributeJudge};Object(r.e)("/haoban-app-tel-task-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):l.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand,taskType:1};Object(r.e)("/haoban-app-tel-task-web/setting/find-task-setting",e).then(function(e){var s=e.data;1!=s.errorCode?o.a.errorMsg(s):t.setObj=s.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:a.a,commonDetailTop:i.a}},d={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"font-16 color-606266 m-b-20 font-w-500"},[t._v("话务任务逾期时间设置")]),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("话务任务下发")]),t._v(" "),s("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),t._m(0),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266"}),t._v(" "),s("el-radio",{attrs:{label:0},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给主门店店长")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给专属导购")])],1),t._v(" "),t._m(1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266"}),t._v(" "),s("el-radio",{attrs:{label:0},model:{value:t.setObj.posDistributeJudge,callback:function(e){t.$set(t.setObj,"posDistributeJudge",e)},expression:"setObj.posDistributeJudge"}},[t._v("分配给主门店店长")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.posDistributeJudge,callback:function(e){t.$set(t.setObj,"posDistributeJudge",e)},expression:"setObj.posDistributeJudge"}},[t._v("分配给专属导购")])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("话务任务放弃前提")]),t._v(" "),s("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"},[s("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"set-line-item"},[e("span",{staticClass:"set-line-item_title font-14 color-606266"},[this._v("话务任务下发")]),this._v(" "),e("span",{staticClass:"set-line-item_title font-14 color-606266"},[this._v("微信会员")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"set-line-item"},[e("span",{staticClass:"set-line-item_title font-14 color-606266"}),this._v(" "),e("span",{staticClass:"set-line-item_title font-14 color-606266 w-320"},[this._v("POS会员 "),e("i",{staticClass:"font-10 color-909399"},[this._v("注:若无pos会员,请忽略此项设置")])])])}]};var u=s("VU/8")(c,d,!1,function(t){s("FqXT")},"data-v-14a4c4a4",null);e.default=u.exports},FqXT:function(t,e){}}); webpackJsonp([93],{"4H54":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("2eFk"),i=s("Ke24"),n=s("PI0u"),o=s("Ch4/"),l=s("3E4D"),r=s("P9l9"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeId:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"话务任务设置"}],setObj:{taskType:1,overDayJudge:"",distributeTypeJudge:"",posDistributeJudge:"",giveUpJudge:""}}},computed:{},methods:{saveSet:Object(n.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,taskType:1,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,posDistributeJudge:t.setObj.posDistributeJudge};Object(r.e)("/haoban-app-tel-task-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):l.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand,taskType:1};Object(r.e)("/haoban-app-tel-task-web/setting/find-task-setting",e).then(function(e){var s=e.data;1!=s.errorCode?o.a.errorMsg(s):t.setObj=s.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:a.a,commonDetailTop:i.a}},d={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"font-16 color-606266 m-b-20 font-w-500"},[t._v("话务任务逾期时间设置")]),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("话务任务下发")]),t._v(" "),s("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),t._m(0),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266"}),t._v(" "),s("el-radio",{attrs:{label:0},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给主门店店长")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给专属导购")])],1),t._v(" "),t._m(1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266"}),t._v(" "),s("el-radio",{attrs:{label:0},model:{value:t.setObj.posDistributeJudge,callback:function(e){t.$set(t.setObj,"posDistributeJudge",e)},expression:"setObj.posDistributeJudge"}},[t._v("分配给主门店店长")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.posDistributeJudge,callback:function(e){t.$set(t.setObj,"posDistributeJudge",e)},expression:"setObj.posDistributeJudge"}},[t._v("分配给专属导购")])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("话务任务放弃前提")]),t._v(" "),s("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"},[s("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"set-line-item"},[e("span",{staticClass:"set-line-item_title font-14 color-606266"},[this._v("话务任务下发")]),this._v(" "),e("span",{staticClass:"set-line-item_title font-14 color-606266"},[this._v("微信会员")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"set-line-item"},[e("span",{staticClass:"set-line-item_title font-14 color-606266"}),this._v(" "),e("span",{staticClass:"set-line-item_title font-14 color-606266 w-320"},[this._v("POS会员 "),e("i",{staticClass:"font-10 color-909399"},[this._v("注:若无pos会员,请忽略此项设置")])])])}]};var u=s("VU/8")(c,d,!1,function(t){s("FqXT")},"data-v-14a4c4a4",null);e.default=u.exports},FqXT:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([93],{"+Q5U":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("mvHQ"),i=a.n(o),n=a("Ie7z"),s=a("Ke24"),l=a("b28S"),r=a("P9l9"),c=a("Ch4/"),d=a("PI0u"),p={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:s.a,vueSelectStore:n.a,chatLogList:l.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",topMenuData:[{id:"1",name:"在线沟通设置",path:"/onlineChatSet?appIcon="+this.$route.query.appIcon+"&activeTab="+this.$route.query.activeTab},{id:"2",name:"卡券发送记录"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,o=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>o||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:20,total:0,showFlag:!1,itemRow:{},clerkInfo:{name:"",code:"",employeeClerkId:"",storeName:"",nationcode:"",phoneNumber:"",positionName:""}}},methods:{delSelectData:function(e){this.defaultStoreList.splice(e,1),this.currentPage=1,this.getTableList()},showSingleInfo:function(e){},exportExcel:function(){var e=this,t=[],a=[],o=[];e.conditionObj.storeGroup.forEach(function(e){1==e.type&&o.push(e.employeeClerkId),2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var i={relatedId:e.$route.query.relatedId,search:e.conditionObj.searchInput||"",groupIds:t.join(",")||"",storeIds:a.join(",")||"",clerkIds:o.join(",")||"",startTime:e.conditionObj.dateRange[0]||"",endTime:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand};Object(r.b)("/haoban-app-member-web/customer/export_message_log",i).then(function(t){if(!t.data)return c.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),o=(e.tableData[0]?e.tableData[0].storeName:"")+"发送记录报表.csv",i=document.createElement("a");i.download=o,i.style.display="none",i.href=URL.createObjectURL(a),document.body.appendChild(i),i.click(),URL.revokeObjectURL(i.href),document.body.removeChild(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.defaultStoreList=e,this.conditionObj.storeGroup=e,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDetail:function(e,t){this.showFlag=!0;var a=JSON.parse(i()(t));a.userMessageId="",this.itemRow=a},hideDetail:function(){this.showFlag=!1,this.itemRow={},this.$nextTick(function(){document.body.style.overflow="auto"})},getClerkInfo:function(e){var t=this,a={id:e};Object(r.e)("/haoban-manage-web/emp/findOne",a).then(function(e){var a=e.data;1==a.errorCode?t.clerkInfo=a.result:t.$message.error({message:a.message})}).catch(function(e){t.$message.error({message:e})})},getTableList:function(e){var t=this,a=[],o=[],i=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&i.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&o.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var n={coupCardId:t.$route.query.coupCardId,search:t.conditionObj.searchInput||"",groupIds:a.join(",")||"",storeIds:o.join(",")||"",clerkIds:i.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(r.e)("/haoban-app-member-web/cardCoupon/find-send-card-page",n).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:"请输入导购姓名/手机号/code",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-date-picker",{staticClass:"m-l-10 m-r-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}}),a("el-button",{staticStyle:{"vertical-align":"middle"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e._v("门店架构选人")])],1),e._v(" "),a("div",{staticClass:"table-condition-right"})]),e._v(" "),e.defaultStoreList.length?a("div",{staticClass:"select-data-wrap m-b-20"},[a("ul",{staticClass:"selector-selected-list flex flex-wrap"},[e._l(e.defaultStoreList,function(t,o){return[a("li",{key:o+t.id+t.label,staticClass:"select-item"},[e._v(e._s(t.label)+" "),a("i",{staticClass:"el-icon-close",on:{click:function(t){e.delSelectData(o)}}})])]})],2)]):e._e(),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"导购信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.row.clerkImage?a("img",{attrs:{src:t.row.clerkImage,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(t.row.clerkName)+"\n "),a("i",{class:[2==t.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),e._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[e._v("员工代码:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.clerkCode||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.clerkPhone||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[e._v("职位:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.positionName||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属门店:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.storeName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.clerkImage?a("img",{attrs:{src:t.row.clerkImage,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"font-14 color-606266 text-ellipsis"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis"},[e._v(e._s(t.row.storeName))])])],1)]}}])}),e._v(" "),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.clerkPhone||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.memberUrl?a("img",{attrs:{src:t.row.memberUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"font-14 color-606266 text-ellipsis"},[e._v(e._s(t.row.memberName))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis"},[e._v(e._s(t.row.memberCardNo))])])])]}}])}),e._v(" "),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.memberPhone||"--"))]}}])}),e._v(" "),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.receiveName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发送时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.sendTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.sendTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("chat-log-list",{attrs:{brandId:e.brandId,itemRow:e.itemRow,showFlag:e.showFlag},on:{hideDetail:e.hideDetail}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)])},staticRenderFns:[]};var f=a("VU/8")(p,u,!1,function(e){a("i6bw")},"data-v-0821f7cb",null);t.default=f.exports},i6bw:function(e,t){}}); webpackJsonp([94],{"+Q5U":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("mvHQ"),i=a.n(o),n=a("Ie7z"),s=a("Ke24"),l=a("b28S"),r=a("P9l9"),c=a("Ch4/"),d=a("PI0u"),p={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:s.a,vueSelectStore:n.a,chatLogList:l.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",topMenuData:[{id:"1",name:"在线沟通设置",path:"/onlineChatSet?appIcon="+this.$route.query.appIcon+"&activeTab="+this.$route.query.activeTab},{id:"2",name:"卡券发送记录"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,o=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>o||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:20,total:0,showFlag:!1,itemRow:{},clerkInfo:{name:"",code:"",employeeClerkId:"",storeName:"",nationcode:"",phoneNumber:"",positionName:""}}},methods:{delSelectData:function(e){this.defaultStoreList.splice(e,1),this.currentPage=1,this.getTableList()},showSingleInfo:function(e){},exportExcel:function(){var e=this,t=[],a=[],o=[];e.conditionObj.storeGroup.forEach(function(e){1==e.type&&o.push(e.employeeClerkId),2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var i={relatedId:e.$route.query.relatedId,search:e.conditionObj.searchInput||"",groupIds:t.join(",")||"",storeIds:a.join(",")||"",clerkIds:o.join(",")||"",startTime:e.conditionObj.dateRange[0]||"",endTime:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand};Object(r.b)("/haoban-app-member-web/customer/export_message_log",i).then(function(t){if(!t.data)return c.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),o=(e.tableData[0]?e.tableData[0].storeName:"")+"发送记录报表.csv",i=document.createElement("a");i.download=o,i.style.display="none",i.href=URL.createObjectURL(a),document.body.appendChild(i),i.click(),URL.revokeObjectURL(i.href),document.body.removeChild(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.defaultStoreList=e,this.conditionObj.storeGroup=e,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDetail:function(e,t){this.showFlag=!0;var a=JSON.parse(i()(t));a.userMessageId="",this.itemRow=a},hideDetail:function(){this.showFlag=!1,this.itemRow={},this.$nextTick(function(){document.body.style.overflow="auto"})},getClerkInfo:function(e){var t=this,a={id:e};Object(r.e)("/haoban-manage-web/emp/findOne",a).then(function(e){var a=e.data;1==a.errorCode?t.clerkInfo=a.result:t.$message.error({message:a.message})}).catch(function(e){t.$message.error({message:e})})},getTableList:function(e){var t=this,a=[],o=[],i=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&i.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&o.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var n={coupCardId:t.$route.query.coupCardId,search:t.conditionObj.searchInput||"",groupIds:a.join(",")||"",storeIds:o.join(",")||"",clerkIds:i.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(r.e)("/haoban-app-member-web/cardCoupon/find-send-card-page",n).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:"请输入导购姓名/手机号/code",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-date-picker",{staticClass:"m-l-10 m-r-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}}),a("el-button",{staticStyle:{"vertical-align":"middle"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e._v("门店架构选人")])],1),e._v(" "),a("div",{staticClass:"table-condition-right"})]),e._v(" "),e.defaultStoreList.length?a("div",{staticClass:"select-data-wrap m-b-20"},[a("ul",{staticClass:"selector-selected-list flex flex-wrap"},[e._l(e.defaultStoreList,function(t,o){return[a("li",{key:o+t.id+t.label,staticClass:"select-item"},[e._v(e._s(t.label)+" "),a("i",{staticClass:"el-icon-close",on:{click:function(t){e.delSelectData(o)}}})])]})],2)]):e._e(),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"导购信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.row.clerkImage?a("img",{attrs:{src:t.row.clerkImage,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(t.row.clerkName)+"\n "),a("i",{class:[2==t.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),e._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[e._v("员工代码:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.clerkCode||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.clerkPhone||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[e._v("职位:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.positionName||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属门店:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.storeName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.clerkImage?a("img",{attrs:{src:t.row.clerkImage,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"font-14 color-606266 text-ellipsis"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis"},[e._v(e._s(t.row.storeName))])])],1)]}}])}),e._v(" "),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.clerkPhone||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.memberUrl?a("img",{attrs:{src:t.row.memberUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"font-14 color-606266 text-ellipsis"},[e._v(e._s(t.row.memberName))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis"},[e._v(e._s(t.row.memberCardNo))])])])]}}])}),e._v(" "),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.memberPhone||"--"))]}}])}),e._v(" "),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.receiveName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发送时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.sendTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.sendTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-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._v(" "),a("chat-log-list",{attrs:{brandId:e.brandId,itemRow:e.itemRow,showFlag:e.showFlag},on:{hideDetail:e.hideDetail}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)])},staticRenderFns:[]};var f=a("VU/8")(p,u,!1,function(e){a("i6bw")},"data-v-0821f7cb",null);t.default=f.exports},i6bw:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([94],{"79Bk":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,s=0;s<t.length;s++){null!=t.charAt(s).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),s("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),s("div",{staticClass:"b-t-1 flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),s("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=s("VU/8")(a,i,!1,function(t){s("Dy6z")},"data-v-05d718c8",null);e.default=l.exports},Dy6z:function(t,e){}}); webpackJsonp([95],{"79Bk":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,s=0;s<t.length;s++){null!=t.charAt(s).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),s("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),s("div",{staticClass:"b-t-1 flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),s("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=s("VU/8")(a,i,!1,function(t){s("Dy6z")},"data-v-05d718c8",null);e.default=l.exports},Dy6z:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([95],{"/rje":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"我的顾客",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"会员基础设置",icon:"icon-sousuoshezhi"},{tabId:"2",tabName:"在线沟通设置",icon:"icon-zaixiangoutong"},{tabId:"3",tabName:"聊天记录",icon:"icon-liaotianjilu"}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("memeberBaseSet?appIcon="+this.$route.query.appIcon);break;case"2":this.changeRoute("onlineChatSet?appIcon="+this.$route.query.appIcon);break;case"3":this.changeRoute("chatRecord?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("cxXI")},"data-v-03f543c4",null);e.default=r.exports},cxXI:function(t,e){}}); webpackJsonp([96],{"/rje":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"我的顾客",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"会员基础设置",icon:"icon-sousuoshezhi"},{tabId:"2",tabName:"在线沟通设置",icon:"icon-zaixiangoutong"},{tabId:"3",tabName:"聊天记录",icon:"icon-liaotianjilu"}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("memeberBaseSet?appIcon="+this.$route.query.appIcon);break;case"2":this.changeRoute("onlineChatSet?appIcon="+this.$route.query.appIcon);break;case"3":this.changeRoute("chatRecord?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("cxXI")},"data-v-03f543c4",null);e.default=r.exports},cxXI:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([97],{estW:function(l,e,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=u("VU/8")(null,null,!1,null,null,null);e.default=n.exports}});
\ No newline at end of file
webpackJsonp([96],{BVw6:function(t,e){},Knd1:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),c=a("fvdr"),i=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"云日报",appIcon:window.unescape(this.$route.query.appIcon),activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"云日报记录",icon:"icon-ribao1",onlyIconActive:!1},{tabId:"22",tabName:"任务下发设置",icon:""},{tabId:"2",tabName:"云日报设置",icon:"icon-ribaoshezhi",onlyIconActive:!1,children:[{tabId:"21",tabName:"模板配置",icon:"",children:[{tabId:"211",tabName:"系统报表",icon:""},{tabId:"212",tabName:"自定义报表",icon:""}]}]}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("dailyRecord?appIcon="+this.$route.query.appIcon);break;case"2":case"21":case"211":this.changeRoute("systemReport?appIcon="+this.$route.query.appIcon);break;case"212":this.changeRoute("customReport?appIcon="+this.$route.query.appIcon);break;case"22":this.changeRoute("taskAssign?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:c.a,commonDetailLeft:i.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("BVw6")},"data-v-03418ad6",null);e.default=r.exports}}); webpackJsonp([97],{BVw6:function(t,e){},Knd1:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),c=a("fvdr"),i=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"云日报",appIcon:window.unescape(this.$route.query.appIcon),activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"云日报记录",icon:"icon-ribao1",onlyIconActive:!1},{tabId:"22",tabName:"任务下发设置",icon:""},{tabId:"2",tabName:"云日报设置",icon:"icon-ribaoshezhi",onlyIconActive:!1,children:[{tabId:"21",tabName:"模板配置",icon:"",children:[{tabId:"211",tabName:"系统报表",icon:""},{tabId:"212",tabName:"自定义报表",icon:""}]}]}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("dailyRecord?appIcon="+this.$route.query.appIcon);break;case"2":case"21":case"211":this.changeRoute("systemReport?appIcon="+this.$route.query.appIcon);break;case"212":this.changeRoute("customReport?appIcon="+this.$route.query.appIcon);break;case"22":this.changeRoute("taskAssign?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:c.a,commonDetailLeft:i.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("BVw6")},"data-v-03418ad6",null);e.default=r.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([101],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mvHQ"),r=n.n(a),o=n("fZjL"),p=n.n(o),i=(n("j1ja"),n("hKoQ")),s=n.n(i),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var m=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,d=n("lRwf"),u=n.n(d),l=n("pRNm"),h=n.n(l),v=n("5tgt"),g=n.n(v);u.a.use(h.a);var A=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var f,y=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:g()("login","index")},{path:"/download",name:"下载",component:g()("download","index")},{path:"/index",name:"index",component:g()("index","index")},{path:"/sign",name:"index",component:g()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:g()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:g()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:g()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:g()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:g()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:g()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:g()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:g()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:g()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:g()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:g()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:g()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:g()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:g()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:g()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:g()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:g()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:g()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:g()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:g()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客的",redirect:"/memeberBaseSet",component:g()("enterpriseApp/myCustomer","index"),children:[{path:"/memeberBaseSet",name:"会员基础设置",component:g()("enterpriseApp/myCustomer","memeberBaseSet")},{path:"/onlineChatSet",name:"在线沟通设置",component:g()("enterpriseApp/myCustomer","onlineChatSet")},{path:"/chatRecord",name:"聊天记录",component:g()("enterpriseApp/myCustomer","chatRecord")},{path:"/sendRecord",name:"发送记录",component:g()("enterpriseApp/myCustomer","sendRecord")},{path:"/newCard",name:"新建卡券",component:g()("enterpriseApp/myCustomer","newCard")},{path:"/cardSendRecord",name:"卡券发送记录",component:g()("enterpriseApp/myCustomer","cardSendRecord")},{path:"/cardGetRecord",name:"卡券领取卡券",component:g()("enterpriseApp/myCustomer","cardGetRecord")}]},{path:"/marketing",name:"营销素材",redirect:"/imageText",component:g()("enterpriseApp/marketingMaterial","index"),children:[{path:"/imageText",name:"图文素材",component:g()("enterpriseApp/marketingMaterial","imageText")},{path:"/newImageText",name:"选择图文",component:g()("enterpriseApp/marketingMaterial","newImageText")},{path:"/enjoyMaterial",name:"纷享素材",component:g()("enterpriseApp/marketingMaterial","enjoyMaterial")},{path:"/newEnjoy",name:"新建素材",component:g()("enterpriseApp/marketingMaterial","newEnjoy")}]},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:g()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:g()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:g()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:g()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:g()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:g()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:g()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:g()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:g()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:g()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:g()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:g()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:g()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:g()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:g()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:g()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:g()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:g()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:g()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:g()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:g()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:g()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:g()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:g()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:g()("enterpriseApp/signApp","signList")}]},{path:"/clockin",name:"考勤打卡",redirect:"/dayStatistics",component:g()("enterpriseApp/dailyAttendance","index"),children:[{path:"/dayStatistics",name:"日统计",component:g()("enterpriseApp/dailyAttendance","dayStatistics")},{path:"/monthStatistics",name:"月统计",component:g()("enterpriseApp/dailyAttendance","monthStatistics")},{path:"/workSet",name:"考勤设置",component:g()("enterpriseApp/dailyAttendance","workSet")},{path:"/workGroupSet",name:"考勤设置",component:g()("enterpriseApp/dailyAttendance","workGroupSet")},{path:"/workTimeManage",name:"排班管理",component:g()("enterpriseApp/dailyAttendance","workTimeManage")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:g()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:g()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:g()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:g()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:g()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:g()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:g()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:g()("setting","storePermission")},{path:"/contactPermission",name:"通讯录控制",component:g()("setting","contactPermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:g()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:g()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:g()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:g()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:g()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:g()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:g()("enterpriseApp/cloudDaily","template")},{path:"/gic-error",name:"gic跳转失败页",component:g()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:A},{path:"/404",name:"error404",component:A},{path:"/500",name:"error500",component:A},{path:"*",redirect:"/404",hidden:!0}],k=new h.a({routes:y,scrollBehavior:function(){return{y:0}}}),w=n("zL8q"),D=n.n(w),x=n("Rf8U"),S=n.n(x),R=n("mtWM"),C=n.n(R),T=n("bOdI"),M=n.n(T),E=n("SJI6"),b=n.n(E);u.a.use(b.a);var I=new b.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(f={},M()(f,"login",function(e,t){sessionStorage.token=t,e.token=t}),M()(f,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),M()(f,"title",function(e,t){e.title=t}),M()(f,"show",function(e,t){e.show=t}),f)}),j=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),a={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var r in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[r]:("00"+a[r]).substr((""+a[r]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+r+"-"+a+" "+o+":"+p+":"+i}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n;return t.getFullYear()+"-"+r+"-"+a}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+r+"."+a+" "+o+":"+p+":"+i}}}),V=n("TUaa"),q=n.n(V),P=n("tyqE"),G=n.n(P),H=n("pRVe"),L=n.n(H),F=n("SE7k"),O=n.n(F),N=n("XsK6"),z=n.n(N),Y=n("QRL9"),J=n.n(Y),K=n("2Pnh"),B=n.n(K),U=n("l9mu"),X=n.n(U),Q={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;B()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,r=n/592.28*841.89,o=a,p=0,i=592.28/n*a,s=t.toDataURL("image/jpeg",1),c=new X.a("","pt","a4");if(o<r)c.addImage(s,"JPEG",0,0,595.28,i);else for(;o>0;)c.addImage(s,"JPEG",0,p,595.28,i),p-=841.89,(o-=r)>0&&c.addPage();c.save(e+".pdf")})}}},Z=n("/IwO"),W=n.n(Z);s.a.polyfill(),Vue.use(W.a),W.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),Vue.use(Q),Vue.use(z.a),Vue.use(J.a),Vue.use(O.a),Vue.use(L.a),Vue.use(G.a),Vue.use(q.a),Vue.config.productionTip=!1,Vue.use(D.a,{size:"large"}),Vue.use(S.a,C.a),Vue.axios.defaults.withCredentials=!0,p()(j).forEach(function(e){Vue.filter(e,j[e])}),k.beforeEach(function(e,t,n){var a=void 0,o=window.location.origin;a=-1!=o.indexOf("localhost")?"http://www.gicdev.com":o,localStorage.getItem("userInfo")||C.a.get(a+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",r()(t.result))}).catch(function(e){w.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:k,store:I,components:{App:m},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,22],"./contacts/addDepartment.vue":["HHRu",0,20],"./contacts/addEmployee.vue":["00Sv",60],"./contacts/addGroup.vue":["mPjx",0,69],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,59],"./contacts/employeeIo.vue":["Rwbg",0,80],"./contacts/employeeRecord.vue":["zGJY",0,9],"./contacts/fileSet.vue":["CSjr",0,11],"./contacts/index.vue":["41Rh",0,66],"./contacts/recordInfo.vue":["67iC",0,16],"./contacts/recordIo.vue":["738z",0,24],"./contacts/recycle.vue":["HkK0",0,36],"./contacts/shareAddDepartment.vue":["q5Ri",0,19],"./contacts/shareCode.vue":["JsWW",0,42],"./contacts/shareContact.vue":["Gfms",0,3],"./contacts/staffRecordsTemplate.vue":["lFAe",0,89],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,57],"./contacts/storeIo.vue":["RHxA",0,86],"./contacts/unemployee.vue":["TGrv",0,18],"./download/index.vue":["ASGJ",0,8],"./enterpriseApp/appcenter.vue":["yuVF",0,38],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,58],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,51],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,79],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,49],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,84],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,64],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,40],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,97],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,41],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,81],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",54],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",95],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",61],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",71],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",78],"./enterpriseApp/dailyAttendance/dayStatistics.vue":["gncU",99],"./enterpriseApp/dailyAttendance/index.vue":["vgwM",0,52],"./enterpriseApp/dailyAttendance/monthStatistics.vue":["z8Gq",98],"./enterpriseApp/dailyAttendance/workGroupSet.vue":["estW",0,23],"./enterpriseApp/dailyAttendance/workSet.vue":["A/XQ",0,39],"./enterpriseApp/dailyAttendance/workTimeManage.vue":["/n/x",32],"./enterpriseApp/index.vue":["da9f",50],"./enterpriseApp/marketingMaterial/enjoyMaterial.vue":["SB6x",0,26],"./enterpriseApp/marketingMaterial/imageText.vue":["0qiV",0,28],"./enterpriseApp/marketingMaterial/index.vue":["m0O4",0,67],"./enterpriseApp/marketingMaterial/newEnjoy.vue":["7fkC",0,17],"./enterpriseApp/marketingMaterial/newImageText.vue":["NajC",0,14],"./enterpriseApp/myCustomer/cardGetRecord.vue":["YqmZ",0,74],"./enterpriseApp/myCustomer/cardSendRecord.vue":["+Q5U",0,94],"./enterpriseApp/myCustomer/chatRecord.vue":["gjw3",0,56],"./enterpriseApp/myCustomer/index.vue":["/rje",0,96],"./enterpriseApp/myCustomer/memeberBaseSet.vue":["N+Or",0,46],"./enterpriseApp/myCustomer/newCard.vue":["G/J9",0,87],"./enterpriseApp/myCustomer/onlineChatSet.vue":["ahzF",0,27],"./enterpriseApp/myCustomer/sendRecord.vue":["8msp",0,83],"./enterpriseApp/mycustomer.vue":["cuIN",0,47],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,2],"./enterpriseApp/notice/index.vue":["av/3",0,65],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,13],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,45],"./enterpriseApp/quota/index.vue":["FB5x",0,85],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,76],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,82],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,75],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,62],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,44],"./enterpriseApp/signApp/index.vue":["Gk4o",0,70],"./enterpriseApp/signApp/signList.vue":["kCy7",0,63],"./enterpriseApp/trafficTask/index.vue":["e88N",0,68],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,48],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,33],"./enterpriseApp/trafficTask/taskViewDetail.vue":["Akas",0,73],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,93],"./errorPage/403.vue":["6XGN",34],"./errorPage/404.vue":["AejC",37],"./errorPage/500.vue":["FskK",29],"./errorPage/gic-error.vue":["Q3j/",31],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,35],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",90],"./reviewCenter/reviewed.vue":["CLYF",0,21],"./reviewCenter/unreview.vue":["xCEU",0,12],"./setting/addAdmin.vue":["rs/A",0,55],"./setting/addAdminRole.vue":["fZsz",0,77],"./setting/companyAddress.vue":["SKyE",0,53],"./setting/companyCertify.vue":["3zYh",0,15],"./setting/contactPermission.vue":["6zFj",0,72],"./setting/index.vue":["VlR1",43],"./setting/replaceAdmin.vue":["ys9I",0,88],"./setting/setChildAdmin.vue":["VqB7",0,91],"./setting/staffDetails.vue":["Zyzf",0,30],"./setting/storePermission.vue":["Xwfy",0,25],"./sign/index.vue":["RQuk",0,92]};function r(e){var t=a[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}r.keys=function(){return Object.keys(a)},r.id="Opzk",e.exports=r},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
webpackJsonp([101],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mvHQ"),r=n.n(a),o=n("fZjL"),p=n.n(o),i=(n("j1ja"),n("hKoQ")),s=n.n(i),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var m=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,d=n("lRwf"),u=n.n(d),l=n("pRNm"),h=n.n(l),g=n("5tgt"),v=n.n(g);u.a.use(h.a);var A=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var f,y=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:v()("login","index")},{path:"/download",name:"下载",component:v()("download","index")},{path:"/index",name:"index",component:v()("index","index")},{path:"/sign",name:"index",component:v()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:v()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:v()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:v()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:v()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:v()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:v()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:v()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:v()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:v()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:v()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:v()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:v()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:v()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:v()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:v()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:v()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:v()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:v()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:v()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:v()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客的",redirect:"/memeberBaseSet",component:v()("enterpriseApp/myCustomer","index"),children:[{path:"/memeberBaseSet",name:"会员基础设置",component:v()("enterpriseApp/myCustomer","memeberBaseSet")},{path:"/onlineChatSet",name:"在线沟通设置",component:v()("enterpriseApp/myCustomer","onlineChatSet")},{path:"/chatRecord",name:"聊天记录",component:v()("enterpriseApp/myCustomer","chatRecord")},{path:"/sendRecord",name:"发送记录",component:v()("enterpriseApp/myCustomer","sendRecord")},{path:"/newCard",name:"新建卡券",component:v()("enterpriseApp/myCustomer","newCard")},{path:"/cardSendRecord",name:"卡券发送记录",component:v()("enterpriseApp/myCustomer","cardSendRecord")},{path:"/cardGetRecord",name:"卡券领取卡券",component:v()("enterpriseApp/myCustomer","cardGetRecord")}]},{path:"/marketing",name:"营销素材",redirect:"/imageText",component:v()("enterpriseApp/marketingMaterial","index"),children:[{path:"/imageText",name:"图文素材",component:v()("enterpriseApp/marketingMaterial","imageText")},{path:"/newImageText",name:"选择图文",component:v()("enterpriseApp/marketingMaterial","newImageText")},{path:"/enjoyMaterial",name:"纷享素材",component:v()("enterpriseApp/marketingMaterial","enjoyMaterial")},{path:"/newEnjoy",name:"新建素材",component:v()("enterpriseApp/marketingMaterial","newEnjoy")}]},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:v()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:v()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:v()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:v()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:v()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:v()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:v()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:v()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:v()("enterpriseApp/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:v()("enterpriseApp/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:v()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:v()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:v()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:v()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:v()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:v()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:v()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:v()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:v()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:v()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:v()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:v()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:v()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:v()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:v()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:v()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:v()("enterpriseApp/signApp","signList")}]},{path:"/clockin",name:"考勤打卡",redirect:"/dayStatistics",component:v()("enterpriseApp/dailyAttendance","index"),children:[{path:"/dayStatistics",name:"日统计",component:v()("enterpriseApp/dailyAttendance","dayStatistics")},{path:"/monthStatistics",name:"月统计",component:v()("enterpriseApp/dailyAttendance","monthStatistics")},{path:"/workSet",name:"考勤设置",component:v()("enterpriseApp/dailyAttendance","workSet")},{path:"/workGroupSet",name:"考勤设置",component:v()("enterpriseApp/dailyAttendance","workGroupSet")},{path:"/workTimeManage",name:"排班管理",component:v()("enterpriseApp/dailyAttendance","workTimeManage")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:v()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:v()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:v()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:v()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:v()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:v()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:v()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:v()("setting","storePermission")},{path:"/contactPermission",name:"通讯录控制",component:v()("setting","contactPermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:v()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:v()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:v()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:v()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:v()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:v()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:v()("enterpriseApp/cloudDaily","template")},{path:"/gic-error",name:"gic跳转失败页",component:v()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:A},{path:"/404",name:"error404",component:A},{path:"/500",name:"error500",component:A},{path:"*",redirect:"/404",hidden:!0}],k=new h.a({routes:y,scrollBehavior:function(){return{y:0}}}),w=n("zL8q"),D=n.n(w),x=n("Rf8U"),S=n.n(x),R=n("mtWM"),C=n.n(R),T=n("bOdI"),M=n.n(T),b=n("SJI6"),E=n.n(b);u.a.use(E.a);var I=new E.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(f={},M()(f,"login",function(e,t){sessionStorage.token=t,e.token=t}),M()(f,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),M()(f,"title",function(e,t){e.title=t}),M()(f,"show",function(e,t){e.show=t}),f)}),j=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),a={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var r in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[r]:("00"+a[r]).substr((""+a[r]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+r+"-"+a+" "+o+":"+p+":"+i}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n;return t.getFullYear()+"-"+r+"-"+a}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+r+"."+a+" "+o+":"+p+":"+i}}}),V=n("TUaa"),q=n.n(V),H=n("tyqE"),P=n.n(H),F=n("pRVe"),G=n.n(F),L=n("SE7k"),N=n.n(L),O=n("XsK6"),z=n.n(O),Y=n("QRL9"),J=n.n(Y),K=n("2Pnh"),U=n.n(K),B=n("l9mu"),X=n.n(B),Q={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;U()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,r=n/592.28*841.89,o=a,p=0,i=592.28/n*a,s=t.toDataURL("image/jpeg",1),c=new X.a("","pt","a4");if(o<r)c.addImage(s,"JPEG",0,0,595.28,i);else for(;o>0;)c.addImage(s,"JPEG",0,p,595.28,i),p-=841.89,(o-=r)>0&&c.addPage();c.save(e+".pdf")})}}};s.a.polyfill(),Vue.use(Q),Vue.use(z.a),Vue.use(J.a),Vue.use(N.a),Vue.use(G.a),Vue.use(P.a),Vue.use(q.a),Vue.config.productionTip=!1,Vue.use(D.a,{size:"large"}),Vue.use(S.a,C.a),Vue.axios.defaults.withCredentials=!0,p()(j).forEach(function(e){Vue.filter(e,j[e])}),k.beforeEach(function(e,t,n){var a=void 0,o=window.location.origin;a=-1!=o.indexOf("localhost")?"http://www.gicdev.com":o,localStorage.getItem("userInfo")||C.a.get(a+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",r()(t.result))}).catch(function(e){w.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:k,store:I,components:{App:m},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,22],"./contacts/addDepartment.vue":["HHRu",0,20],"./contacts/addEmployee.vue":["00Sv",59],"./contacts/addGroup.vue":["mPjx",0,68],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,58],"./contacts/employeeIo.vue":["Rwbg",0,79],"./contacts/employeeRecord.vue":["zGJY",0,9],"./contacts/fileSet.vue":["CSjr",0,11],"./contacts/index.vue":["41Rh",0,65],"./contacts/recordInfo.vue":["67iC",0,16],"./contacts/recordIo.vue":["738z",0,23],"./contacts/recycle.vue":["HkK0",0,35],"./contacts/shareAddDepartment.vue":["q5Ri",0,19],"./contacts/shareCode.vue":["JsWW",0,40],"./contacts/shareContact.vue":["Gfms",0,3],"./contacts/staffRecordsTemplate.vue":["lFAe",0,88],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,56],"./contacts/storeIo.vue":["RHxA",0,85],"./contacts/unemployee.vue":["TGrv",0,18],"./download/index.vue":["ASGJ",0,8],"./enterpriseApp/appcenter.vue":["yuVF",0,37],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,57],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,51],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,78],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,49],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,83],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,63],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,38],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,96],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,39],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,80],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",53],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",94],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",60],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",70],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",77],"./enterpriseApp/dailyAttendance/dayStatistics.vue":["gncU",99],"./enterpriseApp/dailyAttendance/index.vue":["vgwM",0,44],"./enterpriseApp/dailyAttendance/monthStatistics.vue":["z8Gq",98],"./enterpriseApp/dailyAttendance/workGroupSet.vue":["estW",97],"./enterpriseApp/dailyAttendance/workSet.vue":["A/XQ",0,46],"./enterpriseApp/dailyAttendance/workTimeManage.vue":["/n/x",31],"./enterpriseApp/index.vue":["da9f",50],"./enterpriseApp/marketingMaterial/enjoyMaterial.vue":["SB6x",0,25],"./enterpriseApp/marketingMaterial/imageText.vue":["0qiV",0,27],"./enterpriseApp/marketingMaterial/index.vue":["m0O4",0,66],"./enterpriseApp/marketingMaterial/newEnjoy.vue":["7fkC",0,17],"./enterpriseApp/marketingMaterial/newImageText.vue":["NajC",0,14],"./enterpriseApp/myCustomer/cardGetRecord.vue":["YqmZ",0,73],"./enterpriseApp/myCustomer/cardSendRecord.vue":["+Q5U",0,93],"./enterpriseApp/myCustomer/chatRecord.vue":["gjw3",0,55],"./enterpriseApp/myCustomer/index.vue":["/rje",0,95],"./enterpriseApp/myCustomer/memeberBaseSet.vue":["N+Or",0,45],"./enterpriseApp/myCustomer/newCard.vue":["G/J9",0,86],"./enterpriseApp/myCustomer/onlineChatSet.vue":["ahzF",0,26],"./enterpriseApp/myCustomer/sendRecord.vue":["8msp",0,82],"./enterpriseApp/mycustomer.vue":["cuIN",0,47],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,2],"./enterpriseApp/notice/index.vue":["av/3",0,64],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,13],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,43],"./enterpriseApp/quota/index.vue":["FB5x",0,84],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,75],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,81],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,74],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,61],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,42],"./enterpriseApp/signApp/index.vue":["Gk4o",0,69],"./enterpriseApp/signApp/signList.vue":["kCy7",0,62],"./enterpriseApp/trafficTask/index.vue":["e88N",0,67],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,48],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,32],"./enterpriseApp/trafficTask/taskViewDetail.vue":["Akas",0,72],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,92],"./errorPage/403.vue":["6XGN",33],"./errorPage/404.vue":["AejC",36],"./errorPage/500.vue":["FskK",28],"./errorPage/gic-error.vue":["Q3j/",30],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,34],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",89],"./reviewCenter/reviewed.vue":["CLYF",0,21],"./reviewCenter/unreview.vue":["xCEU",0,12],"./setting/addAdmin.vue":["rs/A",0,54],"./setting/addAdminRole.vue":["fZsz",0,76],"./setting/companyAddress.vue":["SKyE",0,52],"./setting/companyCertify.vue":["3zYh",0,15],"./setting/contactPermission.vue":["6zFj",0,71],"./setting/index.vue":["VlR1",41],"./setting/replaceAdmin.vue":["ys9I",0,87],"./setting/setChildAdmin.vue":["VqB7",0,90],"./setting/staffDetails.vue":["Zyzf",0,29],"./setting/storePermission.vue":["Xwfy",0,24],"./sign/index.vue":["RQuk",0,91]};function r(e){var t=a[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}r.keys=function(){return Object.keys(a)},r.id="Opzk",e.exports=r},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(a&&a(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},f={103:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"ab616832b6f6019a8690",1:"fe9dec1f31b04053fd7e",2:"54aabab28c7735d34c10",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"8c0c52db56f248745f1f",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"57e51fc1b6342003f25d",14:"a52947dac152c08630f5",15:"26e240debc0e9e519cfc",16:"3764f209950b5a339958",17:"cd897e152428f8fe12c6",18:"f7633d51986d0c6798f1",19:"60cda7a1997f26103e8b",20:"9978a0294be1004d697d",21:"ed8d46095e29b1e8d098",22:"537abc52bc237952c65a",23:"6586d8dbbc88ff9e7868",24:"ae973093bb8dd3a5b495",25:"15f8f2109a81133d5bf7",26:"13962bf105070352b110",27:"85ef6a2f25470cba9ab2",28:"4967b74d6bbb9e6cc702",29:"28ccae4d06ea6b595ca9",30:"fd04453caecf77de05a2",31:"320f1a0aa86ca13e4306",32:"5e1383bc5cac66f2999a",33:"61635e97ee430e22a19b",34:"50c83d54c676bdfa7dd4",35:"ac9cb6aa5dc9b6fc2b6f",36:"7674738e3017ed5fcc1c",37:"e223c4067dc6c2fd38ab",38:"eaa34f0904ef970709a7",39:"f4a6c4a1b3881e31a92c",40:"655877fc2e44168b8c1c",41:"89560c4643dfa5754a23",42:"5c09b508b0a58d47c09c",43:"7c7427290d655f79f005",44:"a21f6218074caf91b74b",45:"8a04536194d5d4f6f7cf",46:"4ded394e8d7c17771667",47:"393792502b1faedfd75b",48:"e413bb6ddbf0598e75ed",49:"8be0d341bf9560ab91d8",50:"edc711153403cc5a63ed",51:"5996349b24bab60188ec",52:"8e0bba68aa5e71955d4a",53:"86bbf67dd9e404acbe4f",54:"ddb7223a0928a1e1f4ce",55:"ef82ecd8807c80c07283",56:"52e6d99e9c54ec107c38",57:"04c21ade68e092912ad8",58:"ee398ad1c913c4c2ab6c",59:"582b016b4eda170bb861",60:"34b991ba5a199b8e4040",61:"f2dbd6d166f5018e7367",62:"2b352c28006429462f15",63:"ab01ba664ebbda2847d1",64:"b74592601e7caef1de9e",65:"515774c23255d836ad26",66:"023f892322dbb28f128e",67:"071cd1e7b61c5772738f",68:"1dd1e3d4d03e947443e2",69:"743ce24f263c6fd8f2ac",70:"8b879328ccc44fad5738",71:"fe2ac6e8788befca1387",72:"c8fce8488dc69f23c5fa",73:"d0a4ea1d6ca9070f4af2",74:"f32694482ece291b85c5",75:"aefaa1ec53346b0620ee",76:"ac9f2d89f2dfaa1cc832",77:"2e5b479bad56d8080366",78:"175a8cff8f0836391370",79:"fbb1ccada91ddc3fd89a",80:"57a98dd9f03000521859",81:"4dacad2f821e78c65769",82:"f4f0f4c3bc18966e6274",83:"3c3a9064a8329a85e5f4",84:"ae0f08ddce079d07ddb1",85:"a09d0d5616387faf69d4",86:"accf71c6c86be071b5f7",87:"1deb3dbe1d497f25f308",88:"6f36ba8f8ae4f79ef55d",89:"8507d5304a52aa4b7031",90:"bc5f3c2eb751b2a629e4",91:"33a050fd8dd3e019c03e",92:"5b2a0d7a7e057484e4eb",93:"51ab8f5aba21e415de52",94:"87ab23b32eff068e0923",95:"0abb5e0595c8171ef018",96:"b3aa0834a6d984e5b97a",97:"0e2c91f700644c815f14",98:"d54541a3a62bae3a075b",99:"b2c0b52f472168172ad5",102:"2c7e1d628bd2f4ac709c"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,d,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],b[t]&&u.push(b[t][0]),b[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(c&&c(a,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=f(f.s=n[i]);return o};var a={},b={103:0};function f(c){if(a[c])return a[c].exports;var b=a[c]={i:c,l:!1,exports:{}};return e[c].call(b.exports,b,b.exports,f),b.l=!0,b.exports}f.e=function(e){var c=b[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,f){c=b[e]=[a,f]});c[2]=a;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,f.nc&&n.setAttribute("nonce",f.nc),n.src=f.p+"static/js/"+e+"."+{0:"ab616832b6f6019a8690",1:"fe9dec1f31b04053fd7e",2:"54aabab28c7735d34c10",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"330c91a0a9fe8490c0e7",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"57e51fc1b6342003f25d",14:"d4577e674687596a82fe",15:"26e240debc0e9e519cfc",16:"3764f209950b5a339958",17:"cd897e152428f8fe12c6",18:"f7633d51986d0c6798f1",19:"60cda7a1997f26103e8b",20:"9978a0294be1004d697d",21:"ed8d46095e29b1e8d098",22:"537abc52bc237952c65a",23:"ba6658b78f36c8b29a87",24:"56085041ae784faf3c32",25:"e23f42a6b2180b63c129",26:"88e76d9c9f4d5e2d0c27",27:"c3f7fb68797f235ad906",28:"8eb2bb1afe16d964a0b2",29:"c5bb15e8e1bd17cdc0f7",30:"ea05d43b99177823fbdc",31:"b8b827be7489c76082e9",32:"fa08375056ae64364bce",33:"f4e32fc6846aa744ee48",34:"0fb2eb67d47b9ecbd519",35:"e64c33855b455bcdd9a2",36:"8615782328f743c5f783",37:"8d599976023acb79bef4",38:"6620399d71206af0621b",39:"200970a93d2f730ebbd5",40:"52567857be12ee835446",41:"7264f33d2c3cf44d63a5",42:"9cacb9b0dc2a83864afe",43:"2324b3155ba3e3fe67b2",44:"a899f81af77b5d1b6daf",45:"d4e2ecd5b9efc4c430de",46:"03ae66bfca82c8ffa033",47:"393792502b1faedfd75b",48:"e413bb6ddbf0598e75ed",49:"8be0d341bf9560ab91d8",50:"edc711153403cc5a63ed",51:"5996349b24bab60188ec",52:"4b670e09f79ed49e862d",53:"ec91f2b143d0b1e708b5",54:"31eed9c38748896262d1",55:"4f96191ae2c44c6f18f7",56:"99063bd3b07926595af4",57:"ba6530916d934b70d218",58:"2241679269f18e7f14c3",59:"5c336f6f4d119300c1d8",60:"d43c13d5c29feb45e864",61:"0806aac37bd2b86e8bc2",62:"8ef5c75f77376ecd8873",63:"bbe4da77ef31a0aa9150",64:"f26939887c305ec6f7fc",65:"069ccaf5f8e5b5f3c59d",66:"5f0382c9cb76b57ba778",67:"745b9621e5297c575b33",68:"aaaa125fb978b59c2cbf",69:"bb6a8bab41cac9f11bd4",70:"a226d330de7ebb2a4c5f",71:"9551ae81326c57064dec",72:"cb1b3985b92be4556fc1",73:"b6b1fb51b601c0fafcda",74:"6206c00744e77bc84fec",75:"93eb5a61daaa3a1df425",76:"78e5a422e9fecbbd255a",77:"b3f7cf4d2b54d306c522",78:"1fc3472c5f95a0a66979",79:"69811ba75d1fceae9737",80:"12442b543aff65f2c05d",81:"00a94b58ac2affb758dc",82:"1fa56152d6bdcfd4ec14",83:"976088a6ee120b8caa17",84:"45dae077c86a1a0050ff",85:"0c7635a15cceae31d981",86:"d0d0607a424156f2d88d",87:"8c62418c0b2cc9b8e750",88:"d451f8cffee0abe026c6",89:"b528547071d6c896cf0f",90:"57319965505945b3ae7e",91:"446342439ce97b19c84f",92:"09a5823b00d6180576b9",93:"e801fdd8bbd27a68d8ee",94:"0667cc1720cd56e116d9",95:"a08b7e730d57a7f096a5",96:"37acaa2f6f812ee7216b",97:"84d009afd65fa1e0cb42",98:"d54541a3a62bae3a075b",99:"b2c0b52f472168172ad5",102:"2c7e1d628bd2f4ac709c"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=b[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),b[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),a},f.m=e,f.c=a,f.d=function(e,c,a){f.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},f.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="./",f.oe=function(e){throw console.error(e),e}}([]);
\ 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.
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
"requset": "^1.0.5", "requset": "^1.0.5",
"script-loader": "^0.7.2", "script-loader": "^0.7.2",
"tinymce": "^4.8.3", "tinymce": "^4.8.3",
"vue-amap": "^0.5.10",
"vue-awesome-swiper": "^3.1.3", "vue-awesome-swiper": "^3.1.3",
"vue-clipboard2": "^0.2.0", "vue-clipboard2": "^0.2.0",
"xlsx": "^0.13.5" "xlsx": "^0.13.5"
......
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-12-17 09:40:42
* @LastEditors: 无尘
* @LastEditTime: 2019-12-17 16:05:44
-->
<!--
<class-select
:workClassShow="workClassShow"
:classesId="classesId"
@hideDetailDialog="hideDetailDialog">
</class-select>
import classSelect from '@/components/app/dailyAttendance/class-select.vue'
-->
<template>
<div v-show="customDialog">
<el-dialog class="edit-dialog" :title="classesId ? '编辑班次' : '新建班次'" :visible.sync="customDialog" width="600px" :before-close="handleClose">
<div class="edit-dialog-body">
<div>
<el-input placeholder="请输入班次名称" v-model="classesName" class="w-264" style="width: 264px;" prefix-icon="el-icon-search" @keyup.native="value => toInput(value, classesName)" clearable @clear="clearInput"></el-input>
</div>
<el-table :data="tableData" style="width: 100%">
<el-table-column label="" width="50">
<template slot-scope="scope">
<el-radio v-model="selClassesId" :label="scope.row.classesId" @change="changeId($event, scope.row)">{{ '' }}</el-radio>
</template>
</el-table-column>
<el-table-column prop="imageUrl" label="班次名称" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.classesName }}
</template>
</el-table-column>
<el-table-column prop="titleName" label="考勤时间" show-overflow-tooltip>
<template slot-scope="scope">
<div class="cell color-1890ff cursor-pointer" @click="showPreviewDetail(scope.row)">{{ scope.row.titleName || '--' }}</div>
</template>
</el-table-column>
</el-table>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click.stop="customCancel">取消</el-button>
<el-button type="primary" @click.stop="customConfirm('ruleForm')">确定</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { getRequest } from '@/api/api';
// import errMsg from '@/common/js/error';
// import showMsg from '@/common/js/showmsg';
import { _debounce } from '@/common/js/public';
export default {
name: 'class-select',
components: {},
props: {
workClassShow: {
type: Boolean,
default: false
},
classesId: {
type: String,
default: ''
}
},
data() {
return {
enterpriseId: JSON.parse(localStorage.getItem('userInfo')).enterpriseId,
userId: JSON.parse(localStorage.getItem('userInfo')).userId,
selClassesId: this.classesId,
customDialog: false,
tableData: [],
classesName: ''
};
},
methods: {
/**
* 输入
*/
toInput: _debounce(function(e, value) {
const that = this;
that.getClassifyData();
}, 500),
// 搜索清除
clearInput() {
const that = this;
that.currentPage = 1;
that.getClassifyData();
},
customConfirm: _debounce(async function() {
const that = this;
that.customDialog = false;
that.$emit('hideClassDialog', that.selClassesId);
}, 300),
/**
* 关闭
*/
handleClose(done) {
const that = this;
done();
that.hideDialog();
},
/**
* 取消
*/
customCancel() {
const that = this;
that.hideDialog();
},
/**
* 隐藏弹出层
*/
hideDialog() {
const that = this;
that.customDialog = false;
that.$emit('hideClassDialog');
},
/**
* 获取班次
*/
getClassifyData() {
const that = this;
let para = {
enterpriseId: that.enterpriseId,
classesName: that.classesName
};
getRequest('/haoban-app-attence-web/attence-classes-list', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.result.list && resData.result.list.length) {
resData.result.list.forEach(ele => {
if (ele.classessTimesJson) {
ele.classessTimesJson = JSON.parse(ele.classessTimesJson);
}
});
}
that.tableData = resData.result.list || [];
}
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
}
},
watch: {
workClassShow: function(newData, oldData) {
const that = this;
that.customDialog = newData;
},
classesId(newData) {
const that = this;
if (newData) {
that.selClassesId = newData;
}
}
},
mounted() {
const that = this;
console.log(that.classesId);
if (that.classesId) {
that.selClassesId = that.classesId;
}
that.customDialog = that.workClassShow;
}
};
</script>
<style lang="less" scoped></style>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-10-21 14:27:29 * @Date: 2019-10-21 14:27:29
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-12-15 17:41:14 * @LastEditTime: 2019-12-17 15:58:45
--> -->
<!-- <!--
...@@ -477,7 +477,7 @@ export default { ...@@ -477,7 +477,7 @@ export default {
console.log(rangeStart); console.log(rangeStart);
// 跨天了(次日) // 跨天了(次日)
if (!(await that.compareDate(item.startTime, item.endTime)) && diff < 0 && !(await that.compareDate(item.startTime, rangeStart))) { if (!(await that.compareDate(item.startTime, item.endTime)) && diff < 0 && !(await that.compareDate(item.startTime, rangeStart))) {
// // 这个是特殊情况,不一定能走进来 23:00 -22:00, 假如 上班 22-8 = 14如果小于 23, diff > 0 的,默认的就可以,不走这个里面
console.log(2); console.log(2);
rangeStart = await that.hmPlushm(item.startTime, '00:01'); // 下班时间 - 8 ,如果比上班时间还小,就把上班时间之前作为可打卡开始的最小时间 rangeStart = await that.hmPlushm(item.startTime, '00:01'); // 下班时间 - 8 ,如果比上班时间还小,就把上班时间之前作为可打卡开始的最小时间
} }
...@@ -589,12 +589,125 @@ export default { ...@@ -589,12 +589,125 @@ export default {
that.$forceUpdate(); that.$forceUpdate();
}, },
/** /**
* 未设置打卡时间段,默认计算设置可选的时间段
*/
async setDefaultRangeData() {
const that = this;
// 计算当前禁用时间段
let item = that.formData.classessTimesJson[0];
item.forbidStartBeginTime = await that.defaultForbidStartBeginTime(item);
item.forbidStartEndTime = await that.defaultForbidStartEndTime(item);
item.forbidEndStartTime = await that.defaultForbidEndStartTime(item);
item.forbidEndEndTime = await that.forbidEndEndTime(item);
that.$forceUpdate();
},
/**
* 未设置打卡时间段,默认打卡时间段限制
*/
async defaultForbidStartBeginTime(item) {
const that = this;
let arr = [];
let rangeStart = await that.hmMinuxhm(item.startTime, await that.hourTohm(4));
let rangeEnd = await that.hmMinuxhm(item.startTime, '00:01');
console.log(rangeStart);
// 判断是否小于下班时间
console.log('上班时间-4之后和下班时间比较:', await that.compareDate(rangeStart, item.endTime));
const diff = parseInt(item.startTime.split(':')[0]) - 4;
console.log('上班时间-4:', diff);
if (diff < 0 && (await that.compareDate(rangeStart, item.endTime))) {
rangeStart = await that.hmMinuxhm(item.endTime, '00:01'); // 上班时间 - 4 ,如果比下班时间还小,就把下班时间作为可打卡开始的最小时间
}
// 跨天了(次日)
// 上班 < 下班, 上班-4 <0 && 差大于 下班
if (!(await that.compareDate(item.startTime, item.endTime)) && diff < 0 && !(await that.compareDate(rangeStart, item.endTime))) {
rangeStart = await that.hmPlushm(item.endTime, '00:01');
}
// 上班 < 下班, 上班-4 >0 && 差小于 下班
if (!(await that.compareDate(item.startTime, item.endTime)) && diff > 0 && (await that.compareDate(rangeStart, item.endTime))) {
rangeStart = await that.hmPlushm(item.endTime, '00:01');
}
// 比较开始于结束,如果开始大于结束,分段计算
if (!(await that.compareDate(rangeStart, rangeEnd))) {
arr.push([rangeStart + ':00', '23:59:00'].join('-'));
arr.push(['00:00:00', rangeEnd + ':00'].join('-'));
return arr;
}
return [[rangeStart + ':00', rangeEnd + ':00'].join('-')];
},
async defaultForbidStartEndTime(item) {
const that = this;
let arr = [];
let rangeStart = await that.hmPlushm(item.startTime, '00:01');
let rangeEnd = await that.hmPlushm(item.startTime, '02:00');
// 判断是否大于上班时间
console.log('下班时间+2 之后和上班时间比较:', await that.compareDate(rangeEnd, item.endTime));
const diff = parseInt(item.startTime.split(':')[0]) + 2;
console.log('下班时间+2:', diff, rangeEnd, await that.compareDate(item.endTime, rangeEnd));
if ((await that.compareDate(item.startTime, item.endTime)) && diff < 24 && (await that.compareDate(item.endTime, rangeEnd))) {
// 如: 07:00-17:00 17 < 7+2 可是 06:00-02:00,符合,但是不能走这个,所以加 是否跨日
rangeEnd = await that.hmMinuxhm(item.endTime, '00:01');
}
if ((await that.compareDate(item.startTime, item.endTime)) && diff > 24 && !(await that.compareDate(item.endTime, rangeEnd))) {
// 如 20:00- 23:00 23 > 20+2 = 8:00
rangeEnd = await that.hmMinuxhm(item.endTime, '00:01'); // ,如果比下班时间还小,就把下班时间作为可打卡开始的最小时间
}
// 跨天了(次日)
if (!(await that.compareDate(item.startTime, item.endTime)) && diff > 24 && (await that.compareDate(item.endTime, rangeEnd))) {
// 18:00-02:00 2 < 18+2 = 6:00
rangeEnd = await that.hmMinuxhm(item.endTime, '00:01');
}
// 比较开始于结束,如果开始大于结束,分段计算
if (!(await that.compareDate(rangeStart, rangeEnd))) {
arr.push([rangeStart + ':00', '23:59:00'].join('-'));
arr.push(['00:00:00', rangeEnd + ':00'].join('-'));
return arr;
}
return [[rangeStart + ':00', rangeEnd + ':00'].join('-')];
},
async defaultForbidEndStartTime(item) {
const that = this;
let arr = [];
let rangeStart = await that.hmMinuxhm(item.endTime, '04:00');
let rangeEnd = await that.hmMinuxhm(item.endTime, '00:01');
// 判断是否大于上班时间
console.log('下班时间-4 之后和上班时间比较:', await that.compareDate(item.startTime, rangeStart));
const diff = parseInt(item.endTime.split(':')[0]) - 4;
console.log('下班时间-4:', diff, rangeStart, await that.compareDate(item.startTime, rangeStart));
if (((await that.compareDate(item.startTime, item.endTime)) && diff < 0 && (await that.compareDate(item.startTime, rangeStart))) || ((await that.compareDate(item.startTime, item.endTime)) && diff > 0 && !(await that.compareDate(item.startTime, rangeStart)))) {
// 如 00:00-07:00 12:00-18:00
console.log(1);
rangeStart = await that.hmPlushm(item.startTime, '00:01'); // 下班时间 - 4 ,如果比上班时间还小,就把上班时间之前作为可打卡开始的最小时间
}
console.log(rangeStart);
// 跨天了(次日)
if (!(await that.compareDate(item.startTime, item.endTime)) && diff < 0 && !(await that.compareDate(item.startTime, rangeStart))) {
// 这个是特殊情况,不一定能走进来 23:00 -22:00, 假如 上班 22-4 = 14如果小于 23, diff > 0 的,默认的就可以,不走这个里面
console.log(2);
rangeStart = await that.hmPlushm(item.startTime, '00:01'); // 下班时间 - 4 ,如果比上班时间还小,就把上班时间之前作为可打卡开始的最小时间
}
console.log('是否跨天:', !(await that.compareDate(item.startTime, item.endTime)));
/* if (!(await that.compareDate(item.startTime, item.endTime)) && diff > 0 && !(await that.compareDate(item.startTime, rangeStart))) {
// 09:07-09:05
rangeStart = await that.hmPlushm(item.startTime, '00:01'); // 下班时间 - 4 ,如果比上班时间还小,就把上班时间之前作为可打卡开始的最小时间
} */
console.log('下班可以开始时间:', rangeStart, rangeEnd);
// 比较开始于结束,如果开始大于结束,分段计算
if (!(await that.compareDate(rangeStart, rangeEnd))) {
arr.push([rangeStart + ':00', '23:59:00'].join('-'));
arr.push(['00:00:00', rangeEnd + ':00'].join('-'));
return arr;
}
return [[rangeStart + ':00', rangeEnd + ':00'].join('-')];
},
/**
* 开启打卡时间段限制 * 开启打卡时间段限制
*/ */
async changeTimeRange(e) { async changeTimeRange(e) {
const that = this; const that = this;
if (e) { if (e) {
await that.setRangeData(); await that.setRangeData();
} else {
await that.setDefaultRangeData();
} }
}, },
/** /**
...@@ -602,7 +715,7 @@ export default { ...@@ -602,7 +715,7 @@ export default {
*/ */
handleChangeLate(e) { handleChangeLate(e) {
const that = this; const that = this;
console.log(e); console.log('开启晚走:', e);
if (e) { if (e) {
that.formData.lateRuleJson.push({ that.formData.lateRuleJson.push({
lateDate: 2.5, lateDate: 2.5,
...@@ -712,6 +825,10 @@ export default { ...@@ -712,6 +825,10 @@ export default {
showMsg.showmsg('旷工迟到时间必须大于严重迟到时间', 'warning'); showMsg.showmsg('旷工迟到时间必须大于严重迟到时间', 'warning');
return false; return false;
} }
// 打卡时间段
if (!that.formData.clockType) {
await that.setDefaultRangeData();
}
// 晚到 // 晚到
let lateFlag = true; let lateFlag = true;
if (that.formData.lateRule && that.formData.lateRuleJson.length > 1) { if (that.formData.lateRule && that.formData.lateRuleJson.length > 1) {
...@@ -782,42 +899,21 @@ export default { ...@@ -782,42 +899,21 @@ export default {
const that = this; const that = this;
that.customDialog = false; that.customDialog = false;
that.$emit('hideDetailDialog'); that.$emit('hideDetailDialog');
that.$nextTick(() => {
that.formData = {
classesId: '',
classesName: '', // 班次名称
times: '1', // 次数设置
classessTimesJson: [
{
startTime: '9:00',
endTime: '18:00',
allowStartBeginTime: '',
forbidStartBeginTime: [],
allowStartEndTime: '',
forbidStartEndTime: [],
allowEndStartTime: '',
forbidEndStartTime: [],
allowEndEndTime: '',
forbidEndEndTime: []
}
],
clockType: false, // 1/0 打开时间段设置
relaxFlag: false, // 休息时间
relaxStartDate: '12:00',
relaxEndDate: '13:00',
isAllowLate: false, // 允许迟到
isMoreLate: false, // 严重迟到
isMostLate: false, // 旷工迟到
allowLateDate: '30', // 允许迟到 分
moreLateDate: '35', // 严重迟到 分
mostLateDate: '60', // 旷工迟到 分
lateRule: false, // 晚走次日晚到
lateRuleJson: []
};
});
}, },
/** /**
* 获取列表数据 * 处理编辑数据
*/
async handleData() {
const that = this;
if (that.formData.clockType) {
await that.setRangeData();
} else {
await that.setDefaultRangeData();
}
await that.setLateHours();
},
/**
* 获取编辑数据
*/ */
getData(val) { getData(val) {
const that = this; const that = this;
...@@ -829,7 +925,20 @@ export default { ...@@ -829,7 +925,20 @@ export default {
.then(res => { .then(res => {
let resData = res.data; let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
resData.result.clockType = resData.result.clockType == 1 ? true : false; // 1/0 打开时间段设置
resData.result.relaxFlag = resData.result.relaxFlag == 1 ? true : false; // 休息时间
resData.result.isAllowLate = resData.result.isAllowLate == 1 ? true : false; // 允许迟到
resData.result.isMostLate = resData.result.isMostLate == 1 ? true : false; // 严重迟到
resData.result.isMoreLate = resData.result.isMoreLate == 1 ? true : false; // 旷工迟到
resData.result.lateRule = resData.result.lateRule == 1 ? true : false; // 晚走次日晚到
if (resData.result.classessTimesJson) {
resData.result.classessTimesJson = JSON.parse(resData.result.classessTimesJson);
}
if (resData.result.lateRuleJson) {
resData.result.lateRuleJson = JSON.parse(resData.result.lateRuleJson);
}
that.formData = resData.result; that.formData = resData.result;
that.handleData();
return false; return false;
} }
errMsg.errorMsg(resData); errMsg.errorMsg(resData);
...@@ -840,12 +949,50 @@ export default { ...@@ -840,12 +949,50 @@ export default {
message: error.message message: error.message
}); });
}); });
},
resetForm() {
const that = this;
that.conditionObj.classesId = '';
that.formData = {
classesId: '',
classesName: '', // 班次名称
times: '1', // 次数设置
classessTimesJson: [
{
startTime: '9:00',
endTime: '18:00',
allowStartBeginTime: '',
forbidStartBeginTime: [],
allowStartEndTime: '',
forbidStartEndTime: [],
allowEndStartTime: '',
forbidEndStartTime: [],
allowEndEndTime: '',
forbidEndEndTime: []
}
],
clockType: false, // 1/0 打开时间段设置
relaxFlag: false, // 休息时间
relaxStartDate: '12:00',
relaxEndDate: '13:00',
isAllowLate: false, // 允许迟到
isMoreLate: false, // 严重迟到
isMostLate: false, // 旷工迟到
allowLateDate: '30', // 允许迟到 分
moreLateDate: '35', // 严重迟到 分
mostLateDate: '60', // 旷工迟到 分
lateRule: false, // 晚走次日晚到
lateRuleJson: []
};
} }
}, },
watch: { watch: {
workClassShow: function(newData, oldData) { workClassShow: function(newData, oldData) {
const that = this; const that = this;
that.customDialog = newData; that.customDialog = newData;
if (!that.classesId) {
that.resetForm();
}
}, },
classesId: function(newData, oldData) { classesId: function(newData, oldData) {
const that = this; const that = this;
......
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-12-17 09:40:42
* @LastEditors: 无尘
* @LastEditTime: 2019-12-17 15:39:44
-->
<!--
<map-select
:mapShow="mapShow"
@hideMapDialog="hideMapDialog">
</map-select>
import mapSelect from '@/components/app/dailyAttendance/map-select.vue'
-->
<template>
<div v-show="customDialog">
<el-dialog class="edit-dialog" title="考勤地点" :visible.sync="customDialog" width="600px" :before-close="handleClose">
<div class="edit-dialog-body">
<div class="amap-page-container">
<!-- <el-amap-search-box class="search-box" :search-option="searchOption" :on-search-result="onSearchResult"></el-amap-search-box> -->
<el-amap vid="amapDemo" :center="center" :zoom="zoom" class="amap-demo" :plugin="plugin" :events="events">
<!-- <el-amap-marker v-for="(marker, index) in markers" :position="marker" :key="index + 'maker'"></el-amap-marker> -->
</el-amap>
<div class="toolbar m-t-20">
<!-- position: [{{ lng }}, {{ lat }}] address: {{ address }} -->
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
<el-form-item label="详细地址:" prop="address">
<el-input v-model="ruleForm.address"></el-input>
</el-form-item>
</el-form>
</div>
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click.stop="customCancel">取消</el-button>
<el-button type="primary" @click.stop="customConfirm('ruleForm')">确定</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
// import { getRequest } from '@/api/api';
// import errMsg from '@/common/js/error';
// import showMsg from '@/common/js/showmsg';
import { _debounce } from '@/common/js/public';
export default {
name: 'class-select',
components: {},
props: {
mapShow: {
type: Boolean,
default: false
}
},
data() {
let that = this;
return {
enterpriseId: JSON.parse(localStorage.getItem('userInfo')).enterpriseId,
userId: JSON.parse(localStorage.getItem('userInfo')).userId,
selClassesId: this.classesId,
customDialog: false,
ruleForm: {
address: ''
},
rules: {
address: [{ required: true, message: '请选择考勤地点', trigger: 'blur' }]
},
zoom: 12,
center: [120.12497, 30.277155],
address: '',
plugin: [
{
pName: 'ToolBar'
}
],
events: {
click(e) {
let { lng, lat } = e.lnglat;
that.lng = lng;
that.lat = lat;
// 这里通过高德 SDK 完成。
var geocoder = new AMap.Geocoder({
radius: 1000,
extensions: 'all'
});
geocoder.getAddress([lng, lat], function(status, result) {
if (status === 'complete' && result.info === 'OK') {
if (result && result.regeocode) {
that.address = result.regeocode.formattedAddress;
that.ruleForm.address = result.regeocode.formattedAddress;
that.$nextTick();
}
}
});
}
},
lng: 0,
lat: 0
};
},
methods: {
customConfirm: _debounce(async function(formName) {
const that = this;
this.$refs[formName].validate(valid => {
if (valid) {
that.customDialog = false;
that.$emit('hideMapDialog', {
address: that.address,
longitude: that.lng,
latitude: that.lat
});
}
});
}, 300),
/**
* 关闭
*/
handleClose(done) {
const that = this;
done();
that.hideDialog();
},
/**
* 取消
*/
customCancel() {
const that = this;
that.hideDialog();
},
/**
* 隐藏弹出层
*/
hideDialog() {
const that = this;
that.customDialog = false;
that.$emit('hideMapDialog');
}
},
watch: {
mapShow: function(newData, oldData) {
const that = this;
that.customDialog = newData;
}
},
mounted() {
const that = this;
that.customDialog = that.mapShow;
}
};
</script>
<style lang="less" scoped>
.amap-demo {
height: 300px;
}
</style>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2018-10-08 10:45:05 * @Date: 2018-10-08 10:45:05
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-10-29 09:59:20 * @LastEditTime: 2019-12-17 11:23:28
*/ */
import 'babel-polyfill'; import 'babel-polyfill';
import promise from 'es6-promise'; import promise from 'es6-promise';
...@@ -32,6 +32,14 @@ import vueGicFooter from '@gic-test/vue-gic-footer'; ...@@ -32,6 +32,14 @@ import vueGicFooter from '@gic-test/vue-gic-footer';
import vueGicImgPreview from '@gic-test/vue-gic-img-preview'; import vueGicImgPreview from '@gic-test/vue-gic-img-preview';
import vueOfficeUploadImage from '@gic-test/vue-office-upload-image'; import vueOfficeUploadImage from '@gic-test/vue-office-upload-image';
import htmlToPdf from '@/components/utils/htmlToPdf'; import htmlToPdf from '@/components/utils/htmlToPdf';
import VueAMap from 'vue-amap';
Vue.use(VueAMap);
VueAMap.initAMapApiLoader({
key: 'd53a58848be368a7398dc56d5670fe9c',
plugin: ['Autocomplete', 'PlaceSearch', 'Scale', 'OverView', 'Geocoder', 'ToolBar', 'MapType', 'PolyEditor', 'AMap.CircleEditor'],
v: '1.4.4'
});
Vue.use(htmlToPdf); Vue.use(htmlToPdf);
Vue.use(vueGicImgPreview); Vue.use(vueGicImgPreview);
......
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-04-12 17:56:45
* @LastEditors: 无尘
* @LastEditTime: 2019-12-17 16:09:54
-->
<template>
<div class="notice-list-wrap">
<div class="notice-list">
<common-detail-top :topMenuData="topMenuData" :activeId="activeId"></common-detail-top>
<el-form :model="ruleFormData" :rules="rules" ref="noteForm" label-width="120px" class="demo-ruleForm">
<el-form-item label="考勤组名称:" prop="attenceGroupName" class="input-item">
<limitInput :disflag="$route.query.attenceGroupId ? true : false" :inputWidth="286" :inputValue.sync="ruleFormData.attenceGroupName" :holder="'请输入考勤组名称'" :getByType="'word'" :maxLength="15"> </limitInput>
</el-form-item>
<el-form-item label="参与考勤人员:" class="input-item" prop="">
<div class="flex">
<el-checkbox :disabled="$route.query.attenceGroupId ? true : false" v-model="ruleFormData.attenceRangeType">行政架构</el-checkbox>
<div v-if="ruleFormData.attenceRangeType" class="flex-column item-cell-select inline-block m-l-10">
<div class="depart-item-wrap">
<div style="width:470px" class="el-select el-select--large depart-item-content" @click="showDialogLayer('depart', ruleFormData.adminList)">
<span class="font-14 color-c0c4cc p-l-10" v-if="!ruleFormData.adminList.length">请选择行政架构</span>
<div class="el-select__tags">
<span>
<template v-for="(item, index) in ruleFormData.adminList">
<span class="el-tag el-tag--info el-tag--small" :key="index">
<span class="el-select__tags-text">{{ item.name || item.storeName }}</span
><i class="el-tag__close el-icon-close" @click.stop="delDepart(index, ruleFormData.adminList, 'depart')"></i>
</span>
</template>
</span>
</div>
</div>
</div>
</div>
</div>
<div class="flex m-t-20">
<el-checkbox :disabled="$route.query.attenceGroupId ? true : false" v-model="ruleFormData.attenceRangeStoreType">门店架构</el-checkbox>
<div v-if="ruleFormData.attenceRangeStoreType" class="flex-column item-cell-select inline-block m-l-10">
<div class="depart-item-wrap">
<div style="width:330px" class="el-select el-select--large depart-item-content" @click="showDialogLayer('store', ruleFormData.storeList)">
<span class="font-14 color-c0c4cc p-l-10" v-if="!ruleFormData.storeList.length">请选择门店架构</span>
<div class="el-select__tags">
<span>
<template v-for="(item, index) in ruleFormData.storeList">
<span class="el-tag el-tag--info el-tag--small" :key="index">
<span class="el-select__tags-text">{{ item.name || item.storeName }}</span
><i class="el-tag__close el-icon-close" @click.stop="delDepart(index, ruleFormData.storeList, 'store')"></i>
</span>
</template>
</span>
</div>
</div>
</div>
</div>
</div>
</el-form-item>
<el-form-item label="考勤白名单:" class="input-item" prop="">
<div class="flex">
<el-checkbox :disabled="$route.query.attenceGroupId ? true : false" v-model="ruleFormData.noAttenceRangeType">行政架构</el-checkbox>
<div v-if="ruleFormData.noAttenceRangeType" class="flex-column item-cell-select inline-block m-l-10">
<div class="depart-item-wrap">
<div style="width:470px" class="el-select el-select--large depart-item-content" @click="showDialogLayer('depart', ruleFormData.noAdminList)">
<span class="font-14 color-c0c4cc p-l-10" v-if="!ruleFormData.noAdminList.length">请选择行政架构</span>
<div class="el-select__tags">
<span>
<template v-for="(item, index) in ruleFormData.noAdminList">
<span class="el-tag el-tag--info el-tag--small" :key="index">
<span class="el-select__tags-text">{{ item.name || item.storeName }}</span
><i class="el-tag__close el-icon-close" @click.stop="delDepart(index, ruleFormData.noAdminList, 'depart')"></i>
</span>
</template>
</span>
</div>
</div>
</div>
</div>
</div>
<div class="flex m-t-20">
<el-checkbox :disabled="$route.query.attenceGroupId ? true : false" v-model="ruleFormData.noAttenceRangeStoreType">门店架构</el-checkbox>
<div v-if="ruleFormData.noAttenceRangeStoreType" class="flex-column item-cell-select inline-block m-l-10">
<div class="depart-item-wrap">
<div style="width:330px" class="el-select el-select--large depart-item-content" @click="showDialogLayer('store', ruleFormData.noStoreList)">
<span class="font-14 color-c0c4cc p-l-10" v-if="!ruleFormData.noStoreList.length">请选择门店架构</span>
<div class="el-select__tags">
<span>
<template v-for="(item, index) in ruleFormData.noStoreList">
<span class="el-tag el-tag--info el-tag--small" :key="index">
<span class="el-select__tags-text">{{ item.name || item.storeName }}</span
><i class="el-tag__close el-icon-close" @click.stop="delDepart(index, ruleFormData.noStoreList, 'store')"></i>
</span>
</template>
</span>
</div>
</div>
</div>
</div>
</div>
</el-form-item>
<el-form-item label="考勤类型:" prop="">
<div class="work-type m-b-8">
<el-radio v-model="ruleFormData.attenceType" :label="1">固定时间上下班【所有人按照相同时间打卡】</el-radio>
<div class="line-h-15 font-14 color-909399">适用于:办公室等</div>
</div>
<div class="work-type m-b-8">
<el-radio v-model="ruleFormData.attenceType" :label="2">排班时间上下班【不同人员根据各自排班打卡】</el-radio>
<div class="line-h-15 font-14 color-909399">适用于:工厂、门店等</div>
</div>
<!-- <div class="work-type">
<el-radio v-model="ruleFormData.attenceType" :label="3">自由时间上下班【上下班时间不固定,可随时打卡】</el-radio>
<div class="line-h-15 font-14 color-909399">适用于:销售、计时工等</div>
</div> -->
</el-form-item>
<el-form-item v-if="ruleFormData.attenceType == 1" label="工作日设置:" prop="">
<!-- <div class="quick-set-class"><span>快捷设置班次:</span><el-button type="text" @click="showClasses()" plain>更改班次</el-button></div> -->
<div class="quick-set-table">
<el-table ref="multipleTable" :data="ruleFormData.attenceWorkJson" tooltip-effect="dark" style="width: 567px">
<el-table-column width="55">
<template slot-scope="scope">
<el-checkbox v-model="scope.row.workType"></el-checkbox>
</template>
</el-table-column>
<el-table-column label="工作日" width="120">
<template slot-scope="scope">{{ scope.row.weekDay }}</template>
</el-table-column>
<el-table-column prop="name" label="排班时间段" width="120">
<template slot-scope="scope">{{ scope.row.workType ? scope.row.weekDay : '休息' }}</template>
</el-table-column>
<el-table-column prop="address" label="操作" show-overflow-tooltip>
<template slot-scope="scope">
<el-button type="text" @click.stop="modClasses(scope.row)">更改班次</el-button>
</template>
</el-table-column>
</el-table>
</div>
<div><el-checkbox v-model="ruleFormData.lawFreeFlag">法定节假日自动排休</el-checkbox></div>
</el-form-item>
<!-- <el-form-item label="特殊日期:" prop="">
<div class="must-clock">
<span class="font-14 color-606266">必须打卡的日期</span><el-button @click="cancelSend" plain>添加</el-button>
<div class="must-clock-table">
<el-table :data="ruleFormData.mustJson" tooltip-effect="dark" style="width: 567px">
<el-table-column label="日期" width="120">
<template slot-scope="scope">{{ scope.row.weekDay }}</template>
</el-table-column>
<el-table-column prop="name" label="考勤时间" width="120">
<template slot-scope="scope">{{ scope.row.weekDay }}</template>
</el-table-column>
<el-table-column prop="address" label="操作" show-overflow-tooltip>
<el-button type="text" @click="modMust(scope.row)" plain>编辑</el-button>
<el-button type="text" @click="delMust(scope.row)" plain>删除</el-button>
</el-table-column>
</el-table>
</div>
</div>
<div class="must-clock">
<span class="font-14 color-606266">不用打卡日期</span><el-button @click="cancelSend" plain>添加</el-button>
<div class="must-clock-table">
<el-table :data="ruleFormData.noMustJson" tooltip-effect="dark" style="width: 567px">
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column label="日期" width="120">
<template slot-scope="scope">{{ scope.row.weekDay }}</template>
</el-table-column>
<el-table-column prop="name" label="考勤时间" width="120">
<template slot-scope="scope">{{ scope.row.weekDay }}</template>
</el-table-column>
<el-table-column prop="address" label="操作" show-overflow-tooltip>
<el-button type="text" @click="modNoMust(scope.row)" plain>编辑</el-button>
<el-button type="text" @click="delNoMust(scope.row)" plain>删除</el-button>
</el-table-column>
</el-table>
</div>
</div>
</el-form-item> -->
<el-form-item v-if="ruleFormData.attenceType == 2" label="考勤班次:" prop="">
<div class="tags-classes"></div>
</el-form-item>
<el-form-item v-if="ruleFormData.attenceType == 2" label="排班周期:" prop=""> </el-form-item>
<el-form-item label="考勤方式:" prop="">
<div>
<el-checkbox v-model="ruleFormData.gpsFlag">GPS打卡</el-checkbox>
</div>
<div class="gps-body p-20 bg-f7f8fa" style="width: 567px">
<div>根据工作地点考勤(可添加多个考勤地点)</div>
<div>
<el-button type="primary" plain="" @click="addMap">添加考勤地点</el-button> <span>有效范围</span>
<el-select v-model="ruleFormData.clockDistance" placeholder="请选择">
<el-option v-for="item in distance" :key="item.value" :label="item.label" :value="item.value"> </el-option>
</el-select>
</div>
<div v-if="ruleFormData.distanceAddress.length" class="m-t-20">
<el-table :data="ruleFormData.distanceAddress" tooltip-effect="dark" style="width: 567px">
<el-table-column prop="name" label="考勤地址">
<template slot-scope="scope">{{ scope.row.address }}</template>
</el-table-column>
<el-table-column prop="address" label="操作" show-overflow-tooltip>
<el-button type="text" @click="delGps(scope.row)" plain>删除</el-button>
</el-table-column>
</el-table>
</div>
<div>
<el-checkbox v-model="ruleFormData.storeClockFlag">根据门店地址经纬度自动配置</el-checkbox>
<p class="font-14 color-909399">如门店经纬度有误,请在通讯录修改门店相关信息,未设置门店打卡无须选择此项</p>
</div>
</div>
</el-form-item>
<el-form-item>
<div class="btn-wrap">
<el-button @click="cancelSend" plain>取消</el-button>
<el-button :disabled="$route.query.attenceGroupId ? true : false" @click="showEffect = true" type="primary">保存</el-button>
</div>
</el-form-item>
</el-form>
</div>
<vue-select-employee :appScene="appScene" :defaultSelection="defaultSelection" :onlyPerson="onlyPerson" :treeSet="treeSet" :changed="changed" @handleSelectedList="handleSelectedList"> </vue-select-employee>
<!-- 发送范围的门店选择 -->
<vue-select-store ref="storeSelector" :currentBrand="activeGroup" :appScene="appScene" :treeSet="storeTreeSet" :selectType="'group-store'" :defaultList="defaultStoreList" @handleSelectedList="handleSelectedList"> </vue-select-store>
<el-dialog title="选择规则生效时间" :visible.sync="showEffect" width="420px" :before-close="handleClose">
<span>立即生效:今日考勤结果将按新规则重算</span>
<span slot="footer" class="dialog-footer">
<el-button @click="sendData('noteForm')">明天生效</el-button>
<el-button type="primary" @click="sendData('noteForm')">立即生效</el-button>
</span>
</el-dialog>
<class-select :workClassShow="workClassShow" :classesId="classesId" @hideClassDialog="hideClassDialog"> </class-select>
<map-select :mapShow="mapShow" @hideMapDialog="hideMapDialog"> </map-select>
</div>
</template>
<script>
import classSelect from '@/components/app/dailyAttendance/class-select.vue';
import mapSelect from '@/components/app/dailyAttendance/map-select.vue';
import commonDetailTop from '@/components/app/common-detail-top.vue';
import limitInput from '@/components/limit-input.vue';
import vueSelectStore from 'components/common/vueSelectStore';
import vueSelectEmployee from '@/components/common/vueSelectEmployee.vue';
import limitTextarea from '@/components/limit-textarea.vue';
import { getRequest, postRequest } from '@/api/api';
// import showMsg from '@/common/js/showmsg';
import { _debounce, formatDate } from '@/common/js/public';
// import errMsg from '@/common/js/error';
export default {
name: 'workGroupSet',
props: {
brandId: {
type: String,
default() {
return '';
}
},
activeGroupId: {
type: String,
default() {
return '';
}
}
},
data() {
return {
projectName: 'haoban-manage-web',
topMenuData: [
{
id: '1',
name: '考勤组管理',
path: `/workSet?appIcon=${this.$route.query.appIcon}`
},
{
id: '2',
name: this.$route.query.attenceGroupId ? '编辑考勤组' : '新建考勤组',
path: ''
}
],
classifyOptions: [], // 分类列表
activeId: '2', // 详情头部选中 id
activeBrand: this.brandId, // 商户(品牌) id
activeGroup: this.activeGroupId, // 商户(品牌) groupId
enterpriseId: JSON.parse(localStorage.getItem('userInfo')).enterpriseId,
userId: JSON.parse(localStorage.getItem('userInfo')).userId,
ruleFormData: {
attenceGroupId: '',
attenceType: 1, // 考勤组类型1固定排班2排班制3自由排班
attenceRangeType: false, // 是否设置行政架构考勤名单 1是0否
attenceRangeStoreType: false, // 是否选择考勤范围门店结构1是0否
adminList: [],
storeList: [],
noAttenceRangeType: false, // 是否设置白名单行政架构考勤名单 1是0否
noAttenceRangeStoreType: false, // 是否选择考勤范围门店结构1是0否
noAdminList: [],
noStoreList: [],
lawFreeFlag: false, // 是否法定节假日自动排休
clockDistance: '', // 考勤距离
storeClockFlag: false, // 是否开启门店打卡
gpsFlag: false, // 是否gps打卡1是0否
distanceAddress: [{ address: '', longitude: '', latitude: '' }], // 考勤地址范围集合
attenceRangeJson: [{ rangeType: '', userId: '', storeId: '', groupId: '', storeFlag: '' }],
// 需要打卡的范围1需要打卡的2无须打卡的 storeFlag 1门店架构0行政架构
sperialRangeJson: [{ attenceDate: '', sperialType: '' }],
mustJson: [],
noMustJson: [],
//特殊考勤日期sperialType 1必须打卡0无须打卡
attenceWorkJson: [{ weekDay: '周一', workType: false, classesName: '', classesId: '', classessTimesJson: '' }, { weekDay: '周二', workType: false, classesName: '', classesId: '', classessTimesJson: '' }, { weekDay: '周三', workType: false, classesName: '', classesId: '', classessTimesJson: '' }, { weekDay: '周四', workType: false, classesName: '', classesId: '', classessTimesJson: '' }, { weekDay: '周五', workType: false, classesName: '', classesId: '', classessTimesJson: '' }, { weekDay: '周六', workType: false, classesName: '', classesId: '', classessTimesJson: '' }, { weekDay: '周日', workType: false, classesName: '', classesId: '', classessTimesJson: '' }],
// 类型上班还是休息1上班0休息
attenceClassesRangeJSON: { ranageName: '', classes: { classesId: '', times: '' } }
},
rules: {
// receiveType: [{ required: true, message: '请选择发送对象', trigger: 'change' }],
// img: [{ required: true, message: '请上传封面图片', trigger: 'blur' }],
attenceGroupName: [{ required: true, message: '请输入考勤组名称', trigger: 'blur' }],
content: [{ required: true, message: '请输入公告内容', trigger: 'blur' }],
sendType: [{ required: true, message: '请选择发送方式', trigger: 'change' }]
},
wxFlag: 1,
actionUrl: '/haoban-manage-web/upload-img',
datePickerBool: false,
dateValue: '',
// 行政
selectType: '',
treeSet: {
isSelectPerson: false, // 控制只能选部门(false)
dialogVisible: false, // 控制显示/隐藏
isSingle: false, // 是否单选
openNextBool: true // 展开下级不调用接口
},
defaultSelection: [],
changed: '',
onlyPerson: false, // 控制只能选人(true)
// 门店选择
appScene: 2,
defaultStoreList: [], // 默认的数据
storeTreeSet: {
isSelectPerson: true, // 控制只能选部门(false)
dialogVisible: false, // 控制显示/隐藏
isSingle: false // 是否单选
},
defaultStoreBool: false,
// 是否保存的标识
saveDataBool: true,
showEffect: false,
// 工作日设置
showClassesFlag: false,
multipleSelection: [],
distance: [
{
value: '50',
label: '50米'
}
],
mapShow: false
};
},
methods: {
/**
* 地图
*/
addMap() {
const that = this;
that.mapShow = true;
},
hideMapDialog(obj) {
const that = this;
console.log(obj);
that.mapShow = false;
if (!obj) {
return false;
}
that.distanceAddress.push({
address: obj.address,
longitude: obj.longitude,
latitude: obj.latitude
});
},
/**
* 工作日设置
*
*/
showClasses() {
const that = this;
that.workClassShow = true;
},
modClasses(row) {
const that = this;
console.log(row);
that.classesId = row.classesId || '';
that.workClassShow = true;
},
hideClassDialog() {
const that = this;
that.workClassShow = false;
},
handleSelectionChange(val) {
const that = this;
console.log(val);
that.multipleSelection = val;
// 设置班次
},
// 返回 的 brandId
selectBrandId(id, groupId) {
this.brandId = id;
},
// 取消
cancelSend() {
let that = this;
if (that.$route.query.attenceGroupId) {
that.$router.go(-1);
return false;
}
that
.$confirm('是否确认返回,返回后当前页面内容将丢失', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
that.$router.go(-1);
})
.catch(() => {});
},
// 门店弹窗显示
showDialogLayer(type, selData) {
const that = this;
// 查看不能操作
if (that.$route.query.attenceGroupId) {
return false;
}
that.selectType = type;
that.changed = type;
if (type === 'store') {
that.defaultStoreList = selData;
that.storeTreeSet = {
dialogVisible: true,
isSingle: false,
isSelectPerson: true,
openNextBool: true // 展开下级不调用接口
};
return;
}
that.treeSet = {
dialogVisible: true,
isSingle: false,
isSelectPerson: true,
openNextBool: true // 展开下级不调用接口
};
that.defaultSelection = selData;
},
/**
* 处理已选部门
*/
handleSelectedList(group) {
// type: 1:员工,2:部门,3:门店;
const that = this;
if (that.selectType === 'store') {
that.ruleFormData.storeStructor = group;
that.defaultStoreList = group;
} else {
that.ruleFormData.adminStructor = group;
that.defaultSelection = group;
}
that.ruleFormData.sendArea = group;
},
/**
* 删除选的部门
*/
delDepart(index, obj, type) {
const that = this;
if (that.$route.query.attenceGroupId) {
return false;
}
obj.splice(index, 1);
},
// 选择定时发送的日期
changeMyDate() {
if (!this.dateValue) {
this.datePickerBool = true;
} else {
this.saveDataBool = true;
}
},
// 改变发送方式
changeSendType(val) {
if (val == '0') {
this.saveDataBool = true;
}
},
// 发布
sendData: _debounce(function(formName) {
const that = this;
// 发送范围
if (!that.ruleFormData.adminCheck && !that.ruleFormData.storeCheck) {
that.defaultStoreBool = true;
that.saveDataBool = false;
}
if (that.ruleFormData.adminCheck && !that.ruleFormData.adminStructor.length) {
that.defaultStoreBool = true;
that.saveDataBool = false;
}
if (that.ruleFormData.storeCheck && !that.ruleFormData.storeStructor.length) {
that.defaultStoreBool = true;
that.saveDataBool = false;
}
// 发送方式
if (that.ruleFormData.sendType == '1' && !that.dateValue) {
that.datePickerBool = true;
that.saveDataBool = false;
}
if (that.$refs.tinymceWrap.tinymceHtml != '') {
that.ruleFormData.content = that.$refs.tinymceWrap.tinymceHtml;
}
let adminStructor = [];
if (that.ruleFormData.adminCheck && that.ruleFormData.adminStructor.length) {
adminStructor = that.ruleFormData.adminStructor.map(item => {
return {
id: item.id,
name: item.name || item.label,
type: item.type
};
});
}
let storeStructor = [];
if (that.ruleFormData.storeCheck && that.ruleFormData.storeStructor.length) {
storeStructor = that.ruleFormData.storeStructor.map(item => {
return {
id: item.id,
name: item.name || item.label,
type: item.type
};
});
}
that.$refs[formName].validate(valid => {
if (valid) {
let para = {
adminCheck: that.ruleFormData.adminCheck ? 1 : 0,
storeCheck: that.ruleFormData.storeCheck ? 1 : 0,
adminStructor: JSON.stringify(adminStructor),
storeStructor: JSON.stringify(storeStructor),
receiveType: that.ruleFormData.receiveType,
labelId: that.ruleFormData.labelId || '',
title: that.ruleFormData.title,
imgUrl: that.ruleFormData.imgUrl,
content: that.ruleFormData.content,
sendType: that.ruleFormData.sendType,
sendTime: that.dateValue,
brandId: that.brandId,
userId: that.userId,
enterpriseId: that.enterpriseId,
pageTop: that.ruleFormData.pageTop ? 1 : 0,
newSeeFlag: that.ruleFormData.newSeeFlag ? 1 : 0,
watermarkFlag: that.ruleFormData.watermarkFlag ? 1 : 0
};
if (that.saveDataBool) {
postRequest('/haoban-app-attence-web/attence-add', para).then(res => {
let data = res.data;
if (data.errorCode == 1) {
that.$message.success('编辑成功');
that.$router.go(-1);
} else {
that.$message.error(data.message);
}
});
}
} else {
return false;
}
});
}, 500),
/**
* 获取班次
*/
getClassifyData() {
const that = this;
let para = {
enterpriseId: that.enterpriseId
};
getRequest('/haoban-app-attence-web/attence-classes-list', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.result.list && resData.result.list.length) {
resData.result.list.forEach(ele => {
if (ele.classessTimesJson) {
ele.classessTimesJson = JSON.parse(ele.classessTimesJson);
}
});
}
that.classifyList = resData.result.list || [];
}
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
},
/**
* 获取考勤组详情
*/
getGroupData() {
const that = this;
let para = {
attenceGroupId: that.$route.query.attenceGroupId
};
getRequest('/haoban-app-attence-web/attence-detail', para)
.then(res => {
let data = res.data;
if (data.errorCode == 1) {
data.result.adminCheck = data.result.adminCheck == 0 ? false : true;
data.result.storeCheck = data.result.storeCheck == 0 ? false : true;
data.result.adminStructor = data.result.adminStructor ? JSON.parse(data.result.adminStructor) : [];
data.result.storeStructor = data.result.storeStructor ? JSON.parse(data.result.storeStructor) : [];
that.defaultSelection = data.result.adminStructor;
that.defaultStoreList = data.result.storeStructor;
data.result.pageTop = data.result.pageTop ? true : false;
data.result.newSeeFlag = data.result.newSeeFlag ? true : false;
data.result.watermarkFlag = data.result.watermarkFlag ? true : false;
data.result.sendType = String(data.result.sendType);
data.result.receiveType = String(data.result.receiveType);
that.dateValue = formatDate(data.result.sendTime);
that.noticePreviewData = JSON.parse(JSON.stringify(data.result));
that.ruleFormData = JSON.parse(JSON.stringify(data.result));
}
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
},
setDistance() {
const that = this;
for (let index = 1; index < 11; index++) {
that.distance.push({
value: index * 100,
label: index * 100 + '米'
});
}
that.distance.push({
value: 2000,
label: '2000米'
});
}
},
watch: {
brandId: function(newData, oldData) {
const that = this;
if (!!newData) {
that.activeBrand = newData;
that.getClassifyData();
}
},
activeGroupId: function(newData, oldData) {
const that = this;
if (!!newData) {
that.activeGroup = newData;
}
}
},
components: {
commonDetailTop,
limitInput,
limitTextarea,
vueSelectStore,
vueSelectEmployee,
classSelect,
mapSelect
},
mounted() {
const that = this;
that.getClassifyData();
that.setDistance();
if (that.$route.query.attenceGroupId) {
that.$nextTick(() => {
that.getNoticeData();
});
}
}
};
</script>
<style type="text/less" lang="less" scoped>
.line-h-15 {
line-height: 15px;
}
.m-b-8 {
margin-bottom: 8px;
}
.icon-xinxixianshi {
.font-12 {
font-size: 12px;
}
}
.bg-f7f8fa {
background-color: #f7f8fa;
}
.notice-list-wrap {
height: 100%;
.notice-list {
background: #fff;
margin-bottom: 34px;
min-height: 100%;
// min-height: calc(100% + 24px);
}
}
.demo-ruleForm {
padding-top: 30px;
}
.input-item {
width: 680px;
position: relative;
&.w-1012 {
width: 1012px;
}
}
.input-item-textarea /deep/ textarea {
height: 94px;
font-size: 14px;
color: #606266;
font-family: 'Helvetica Neue';
}
.el-upload__tip {
line-height: 20px;
}
.active-info-num {
position: absolute;
right: 0;
bottom: -31px;
color: #909399;
font-size: 12px;
}
.my-date-picker {
margin-left: 15px;
}
.demo-ruleForm /deep/ .el-form-item__label {
color: #606266;
}
.btn-wrap {
font-size: 0;
}
.el-button {
&.p-l-20 {
padding-left: 20px;
-webkit-transform: translateY(2px);
-moz-transform: translateY(2px);
-ms-transform: translateY(2px);
transform: translateY(2px);
}
}
// 发送范围
.depart-item-content {
width: 100%;
height: 32px;
overflow: hidden;
white-space: nowrap;
border-radius: 4px;
border: 1px solid #dcdfe6;
cursor: pointer;
box-sizing: border-box;
}
.item-cell-select {
/deep/ .el-select__tags {
white-space: nowrap;
overflow: hidden;
}
}
.avatar-wrap {
width: 100px;
img {
width: 100%;
}
}
.date-picker-error {
padding-left: 193px;
}
.el-form-item {
/deep/ .file-list {
.notice-upload-file .el-icon-circle-check:before {
content: '\E60F';
}
}
}
</style>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-03-20 14:36:37 * @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-12-15 16:31:44 * @LastEditTime: 2019-12-16 11:45:29
--> -->
<!-- <!--
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<el-tab-pane label="班次管理" name="second"></el-tab-pane> <el-tab-pane label="班次管理" name="second"></el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
<div v-if="activeName == 'first'" class="app-detail-pane border-box p-20"> <div v-show="activeName == 'first'" class="app-detail-pane border-box p-20">
<div class="m-b-20"> <div class="m-b-20">
<div class="switch-wrap"> <div class="switch-wrap">
<div class="flex flex-space-between"> <div class="flex flex-space-between">
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="activeName == 'second'" class="app-detail-pane border-box p-20"> <div v-show="activeName == 'second'" class="app-detail-pane border-box p-20">
<div class="m-b-20"> <div class="m-b-20">
<div class="switch-wrap"> <div class="switch-wrap">
<div class="flex flex-space-between"> <div class="flex flex-space-between">
...@@ -80,21 +80,23 @@ ...@@ -80,21 +80,23 @@
</div> </div>
</div> </div>
<div> <div>
<el-table class="select-table" ref="multipleTable" :data="groupListData" tooltip-effect="dark" :style="{ width: '100%' }"> <el-table class="select-table" ref="multipleTable" :data="classifyList" tooltip-effect="dark" :style="{ width: '100%' }">
<el-table-column label="班次名称" width="120" show-overflow-tooltip> <el-table-column label="班次名称" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.classesName }}</template> <template slot-scope="scope">{{ scope.row.classesName }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="考勤时间"> <el-table-column prop="" label="考勤时间">
<template slot-scope="scope">{{ scope.row.classesTimesJson }}</template> <template slot-scope="scope">
<div v-for="(item, index) in scope.row.classessTimesJson" :key="index + 'time'">{{ item.startTime }}-{{ item.endTime }}</div>
</template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click="toEditClass(scope.$index, scope.row)">编辑</el-button> <el-button type="text" size="small" @click="toEditClass(scope.$index, scope.row)">编辑</el-button>
<el-button type="text" size="small" @click="toDel(scope.$index, scope.row)"></el-button> <el-button type="text" size="small" @click="toDel(scope.$index, scope.row)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="block common-wrap__page text-right m-t-24" v-if="groupListData.length != 0"> <div class="block common-wrap__page text-right m-t-24" v-if="classifyList.length != 0">
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[20, 40, 60, 80]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total"> </el-pagination> <el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[20, 40, 60, 80]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total"> </el-pagination>
</div> </div>
</div> </div>
...@@ -209,7 +211,8 @@ export default { ...@@ -209,7 +211,8 @@ export default {
const that = this; const that = this;
that.workClassShow = false; that.workClassShow = false;
that.classesId = ''; that.classesId = '';
console.log(that.workClassShow ) that.currentPage = 1;
that.getTableList(that.brandId);
}, },
/** /**
* 删除 * 删除
...@@ -307,11 +310,24 @@ export default { ...@@ -307,11 +310,24 @@ export default {
pageNum: that.currentPage, pageNum: that.currentPage,
pageSize: that.pageSize pageSize: that.pageSize
}; };
postRequest(that.activeName == 'first'?'/haoban-app-attence-web/attence_list' :'/haoban-app-attence-web/classes-list', para) postRequest(that.activeName == 'first'?'/haoban-app-attence-web/attence-list' :'/haoban-app-attence-web/classes-page', para)
.then(res => { .then(res => {
let resData = res.data; let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
that.groupListData = resData.result.list || []; if (that.activeName == 'first') {
that.groupListData = resData.result.list || [];
that.classifyList = [];
}else {
that.groupListData = [];
if(resData.result.list && resData.result.list.length) {
resData.result.list.forEach(ele => {
if (ele.classessTimesJson) {
ele.classessTimesJson = JSON.parse(ele.classessTimesJson)
}
})
}
that.classifyList = resData.result.list || [];
}
that.total = resData.result.total; that.total = resData.result.total;
return; return;
} }
......
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