Commit b541ba35 by 无尘

feat: 添加基本结构

parent d8e5dd8b
{
"presets": [
["env", {
"modules": false,
"targets": {
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
}
}],
"stage-2"
],
"plugins": ["transform-vue-jsx", "transform-runtime"]
}
# http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
.DS_Store
node_modules/
/build/
/config/
/dist/
/*.js
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parserOptions: {
parser: "babel-eslint"
},
env: {
browser: true
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
// "standard",
"plugin:vue/essential",
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
"plugin:prettier/recommended"
],
// required to lint *.vue files
plugins: ["vue", "prettier"],
// add your custom rules here
rules: {
"prettier/prettier": "error",
// allow async-await
"generator-star-spacing": "off",
"no-console": process.env.NODE_ENV === "production" ? 2 : 0,
"no-alert": process.env.NODE_ENV === "production" ? 2 : 0, //禁止使用alert confirm prompt
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
// --------------------静态检测-----------------------------
/**
* 静态检测:
* 以下基本位能够帮助发现代码错误的规则
* */
// 禁止与负零进行比较
"no-compare-neg-zero": 2,
// 禁止将常量作为 if 或三元表达式的测试条件,比如 if (true), let foo = 0 ? 'foo' : 'bar'
"no-constant-condition": [
2,
{
checkLoops: false
}
],
// 禁止在函数参数中出现重复名称的参数 【辅助检测】
"no-dupe-args": 2,
// 禁止在对象字面量中出现重复名称的键名 【辅助检测】
"no-dupe-keys": 2,
// 禁止出现空代码块 【可读性差】
"no-empty": [
2,
{
"allowEmptyCatch": true
}
],
// 禁止将 catch 的第一个参数 error 重新赋值 【重新赋值,error将没有意义】
"no-ex-assign": 2,
// @fixable 禁止函数表达式中出现多余的括号,比如 let foo = (function () { return 1 }) 【一般不会这么写,可读性差】
"no-extra-parens": [2, "functions"],
// 禁止将一个函数申明重新赋值,如:
// function foo() {}
// foo = bar [静态检测:无意义]
"no-func-assign": 2,
// 禁止在 if 内出现函数申明或使用 var 定义变量
"no-inner-declarations": [2, "both"],
// 禁止使用特殊空白符(比如全角空格),除非是出现在字符串、正则表达式或模版字符串中
"no-irregular-whitespace": [
2,
{
skipStrings: true,
skipComments: false,
skipRegExps: true,
skipTemplates: true
}
],
// typeof 表达式比较的对象必须是 'undefined', 'object', 'boolean', 'number', 'string', 'function' 或 'symbol'
"valid-typeof": 2,
// -----------------------------------最佳实践----------------------------------------------
/**
* 最佳实践
* 这些规则通过一些最佳实践帮助你避免问题
*/
// 禁止函数的循环复杂度超过 20,【https://en.wikipedia.org/wiki/Cyclomatic_complexity】
complexity: [
2,
{
max: 20
}
],
// 不允许有空函数,除非是将一个空函数设置为某个项的默认值 【否则空函数并没有实际意义】
"no-empty-function": [
2,
{
allow: ["functions", "arrowFunctions"]
}
],
// 禁止修改原生对象 【例如 Array.protype.xxx=funcion(){},很容易出问题,比如for in 循环数组 会出问题】
"no-extend-native": 2,
// @fixable 表示小数时,禁止省略 0,比如 .5 【可读性】
"no-floating-decimal": 2,
// 禁止直接 new 一个类而不赋值 【 那么除了占用内存还有什么意义呢? @off vue语法糖大量存在此类语义 先手动关闭】
"no-new": 0,
// 禁止使用 new Function,比如 let x = new Function("a", "b", "return a + b"); 【可读性差】
"no-new-func": 2,
// 禁止将自己赋值给自己 [规则帮助检测]
"no-self-assign": 2,
// 禁止将自己与自己比较 [规则帮助检测]
"no-self-compare": 2,
// @fixable 立即执行的函数必须符合如下格式 (function () { alert('Hello') })() 【立即函数写法很多,这个是最易读最标准的】
"wrap-iife": [
2,
"inside",
{
functionPrototypeMethods: true
}
],
// 禁止使用保留字作为变量名 [规则帮助检测保留字,通常ide难以发现,生产会出现问题]
"no-shadow-restricted-names": 2,
// 禁止使用未定义的变量
"no-undef": [
2,
{
typeof: false
}
],
// 定义过的变量必须使用 【正规应该是这样的,具体可以大家讨论】
"no-unused-vars": [
2,
{
vars: "all",
args: "none",
caughtErrors: "none",
ignoreRestSiblings: true
}
],
// 变量必须先定义后使用 【ps:涉及到es6存在不允许变量提升的问题,以免引起意想不到的错误,具体可以大家讨论】
"no-use-before-define": [
2,
{
functions: false,
classes: false,
variables: false
}
],
// ----------------------------------------------------代码规范----------------------------------------------------------
/**
* 代码规范
* 有关【空格】、【链式换行】、【缩进】、【=、{}、()、首位空格】规范没有添加,怕大家一时间接受不了,目前所挑选的规则都是:保障我们的代码可读性、可维护性的
* */
// 变量名必须是 camelcase 驼峰风格的
// @off 【涉及到 很多 api 或文件名可能都不是 camelcase 先关闭】
camelcase: 0,
// @fixable 禁止在行首写逗号
"comma-style": [2, "last"],
// @fixable 一个缩进必须用两个空格替代
// @off 【不限制大家,为了关闭eslint默认值,所以手动关闭,off不可去掉】 讨论
indent: [2, 2,{ "SwitchCase": 1 }],
//@off 手动关闭//前面需要回车的规则 注释
"spaced-comment": 0,
//@off 手动关闭: 禁用行尾空白
"no-trailing-spaces": 2,
//@off 手动关闭: 不允许多行回车
"no-multiple-empty-lines": 1,
//@off 手动关闭: 逗号前必须加空格
"comma-spacing": 0,
//@off 手动关闭: 冒号后必须加空格
"key-spacing": 1,
// @fixable 结尾禁止使用分号
//@off [vue官方推荐无分号,不知道大家是否可以接受?先手动off掉] 讨论
// "semi": [2,"never"],
semi: 0,
// 代码块嵌套的深度禁止超过 5 层
"max-depth": [1, 5],
// 回调函数嵌套禁止超过 4 层,多了请用 async await 替代
"max-nested-callbacks": [2, 4],
// 函数的参数禁止超过 7 个
"max-params": [2, 7],
// new 后面的类名必须首字母大写 【面向对象编程原则】
"new-cap": [
2,
{
newIsCap: true,
capIsNew: false,
properties: true
}
],
// @fixable new 后面的类必须有小括号 【没有小括号、指针指过去没有意义】
"new-parens": 2,
// @fixable 禁止属性前有空格,比如 foo. bar() 【可读性太差,一般也没人这么写】
"no-whitespace-before-property": 2,
// @fixable 禁止 if 后面不加大括号而写两行代码 eg: if(a>b) a=0 b=0
"nonblock-statement-body-position": [
2,
"beside",
{ overrides: { while: "below" } }
],
// 禁止变量申明时用逗号一次申明多个 eg: let a,b,c,d,e,f,g = [] 【debug并不好审查、并且没办法单独写注释】
"one-var": [2, "never"],
// @fixable 【变量申明必须每行一个,同上】
"one-var-declaration-per-line": [2, "always"],
//是否使用全等
eqeqeq: 0,
//this别名
"consistent-this": [2, "that"],
// -----------------------------ECMAScript 6-------------------------------------
/**
* ECMAScript 6
* 这些规则与 ES6 有关 【请大家 尝试使用正确使用const和let代替var,以后大家熟悉之后可能会提升规则】
* */
// 禁止对定义过的 class 重新赋值
"no-class-assign": 2,
// @fixable 禁止出现难以理解的箭头函数,比如 let x = a => 1 ? 2 : 3
"no-confusing-arrow": [2, { allowParens: true }],
// 禁止对使用 const 定义的常量重新赋值
"no-const-assign": 2,
// 禁止重复定义类
"no-dupe-class-members": 2,
// 禁止重复 import 模块
"no-duplicate-imports": 2,
//@off 以后可能会开启 禁止 var
"no-var": 0,
// ---------------------------------被关闭的规则-----------------------
// parseInt必须指定第二个参数 parseInt("071",10);
radix: 0,
//强制使用一致的反勾号、双引号或单引号 (quotes) 关闭
quotes: 0,
//要求或禁止函数圆括号之前有一个空格
"space-before-function-paren": [0, "always"],
//禁止或强制圆括号内的空格
"space-in-parens": [0, "never"],
//关键字后面是否要空一格
"space-after-keywords": [0, "always"],
// 要求或禁止在函数标识符和其调用之间有空格
"func-call-spacing": [0, "never"]
}
};
.DS_Store
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock.json*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
// https://github.com/michael-ciniawsky/postcss-load-config
module.exports = {
"plugins": {
"postcss-import": {},
"postcss-url": {},
// to edit target browsers: use "browserslist" field in package.json
"autoprefixer": {}
}
}
{
"printWidth": 2800,
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"semi": true,
"trailingComma": "none",
"bracketSpacing": true,
"insertPragma": false,
"jsxBracketSameLine": true,
"proseWrap": "preserve"
}
# API 网关
\ No newline at end of file
# api-gateway
> API 网关前端代码
## Build Setup
``` bash
# install dependencies
npm install
# serve with hot reload at localhost:8008
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
```
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
'use strict'
require('./check-versions')()
process.env.NODE_ENV = 'production'
const ora = require('ora')
const rm = require('rimraf')
const path = require('path')
const chalk = require('chalk')
const webpack = require('webpack')
const config = require('../config')
const webpackConfig = require('./webpack.prod.conf')
const spinner = ora('building for production...')
spinner.start()
rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
if (err) throw err
webpack(webpackConfig, (err, stats) => {
spinner.stop()
if (err) throw err
process.stdout.write(stats.toString({
colors: true,
modules: false,
children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
chunks: false,
chunkModules: false
}) + '\n\n')
if (stats.hasErrors()) {
console.log(chalk.red(' Build failed with errors.\n'))
process.exit(1)
}
console.log(chalk.cyan(' Build complete.\n'))
console.log(chalk.yellow(
' Tip: built files are meant to be served over an HTTP server.\n' +
' Opening index.html over file:// won\'t work.\n'
))
})
})
'use strict'
const chalk = require('chalk')
const semver = require('semver')
const packageConfig = require('../package.json')
const shell = require('shelljs')
function exec (cmd) {
return require('child_process').execSync(cmd).toString().trim()
}
const versionRequirements = [
{
name: 'node',
currentVersion: semver.clean(process.version),
versionRequirement: packageConfig.engines.node
}
]
if (shell.which('npm')) {
versionRequirements.push({
name: 'npm',
currentVersion: exec('npm --version'),
versionRequirement: packageConfig.engines.npm
})
}
module.exports = function () {
const warnings = []
for (let i = 0; i < versionRequirements.length; i++) {
const mod = versionRequirements[i]
if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
warnings.push(mod.name + ': ' +
chalk.red(mod.currentVersion) + ' should be ' +
chalk.green(mod.versionRequirement)
)
}
}
if (warnings.length) {
console.log('')
console.log(chalk.yellow('To use this template, you must update following to modules:'))
console.log()
for (let i = 0; i < warnings.length; i++) {
const warning = warnings[i]
console.log(' ' + warning)
}
console.log()
process.exit(1)
}
}
'use strict'
const path = require('path')
const config = require('../config')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const packageConfig = require('../package.json')
exports.assetsPath = function (_path) {
const assetsSubDirectory = process.env.NODE_ENV === 'production'
? config.build.assetsSubDirectory
: config.dev.assetsSubDirectory
return path.posix.join(assetsSubDirectory, _path)
}
exports.cssLoaders = function (options) {
options = options || {}
const cssLoader = {
loader: 'css-loader',
options: {
sourceMap: options.sourceMap
}
}
const postcssLoader = {
loader: 'postcss-loader',
options: {
sourceMap: options.sourceMap
}
}
// generate loader string to be used with extract text plugin
function generateLoaders (loader, loaderOptions) {
const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader]
if (loader) {
loaders.push({
loader: loader + '-loader',
options: Object.assign({}, loaderOptions, {
sourceMap: options.sourceMap
})
})
}
// Extract CSS when that option is specified
// (which is the case during production build)
if (options.extract) {
return ExtractTextPlugin.extract({
use: loaders,
publicPath: '../../', //注意: 此处根据路径, 自动更改
fallback: 'vue-style-loader'
})
} else {
return ['vue-style-loader'].concat(loaders)
}
}
// https://vue-loader.vuejs.org/en/configurations/extract-css.html
return {
css: generateLoaders(),
postcss: generateLoaders(),
less: generateLoaders('less'),
sass: generateLoaders('sass', { indentedSyntax: true }),
scss: generateLoaders('sass'),
stylus: generateLoaders('stylus'),
styl: generateLoaders('stylus')
}
}
// Generate loaders for standalone style files (outside of .vue)
exports.styleLoaders = function (options) {
const output = []
const loaders = exports.cssLoaders(options)
for (const extension in loaders) {
const loader = loaders[extension]
output.push({
test: new RegExp('\\.' + extension + '$'),
use: loader
})
}
return output
}
exports.createNotifierCallback = () => {
const notifier = require('node-notifier')
return (severity, errors) => {
if (severity !== 'error') return
const error = errors[0]
const filename = error.file && error.file.split('!').pop()
notifier.notify({
title: packageConfig.name,
message: severity + ': ' + error.name,
subtitle: filename || '',
icon: path.join(__dirname, 'logo.png')
})
}
}
'use strict'
const utils = require('./utils')
const config = require('../config')
const isProduction = process.env.NODE_ENV === 'production'
const sourceMapEnabled = isProduction
? config.build.productionSourceMap
: config.dev.cssSourceMap
module.exports = {
loaders: utils.cssLoaders({
sourceMap: sourceMapEnabled,
extract: isProduction
}),
cssSourceMap: sourceMapEnabled,
cacheBusting: config.dev.cacheBusting,
transformToRequire: {
video: ['src', 'poster'],
source: 'src',
img: 'src',
image: 'xlink:href'
}
}
'use strict'
const path = require('path')
const utils = require('./utils')
const config = require('../config')
const vueLoaderConfig = require('./vue-loader.conf')
function resolve (dir) {
return path.join(__dirname, '..', dir)
}
const createLintingRule = () => ({
test: /\.(js|vue)$/,
loader: "eslint-loader",
enforce: "pre",
include: [resolve("src"), resolve("test")],
options: {
fix: true,
formatter: require("eslint-friendly-formatter"),
emitWarning: !config.dev.showEslintErrorsInOverlay
}
});
module.exports = {
context: path.resolve(__dirname, '../'),
entry: {
app: ["babel-polyfill", "./src/main.js"]
},
output: {
path: config.build.assetsRoot,
filename: '[name].js',
publicPath: process.env.NODE_ENV === 'production'
? config.build.assetsPublicPath
: config.dev.assetsPublicPath
},
externals: {
'vue': 'Vue',
'vue-router': 'VueRouter',
'vuex': 'Vuex'
},
resolve: {
extensions: ['.js', '.vue', '.json'],
alias: {
'vue$': 'vue/dist/vue.esm.js',
'@': resolve('src'),
'components': resolve('src/components'),
'views': resolve('src/views')
}
},
module: {
rules: [
/* {
test: /\.(js|vue)$/,
loader: 'eslint-loader',
enforce: 'pre',
include: [resolve('src'), resolve('test')],
options: {
fix: true,
formatter: require('eslint-friendly-formatter'),
emitWarning: !config.dev.showEslintErrorsInOverlay,
}
}, */
...(config.dev.useEslint ? [createLintingRule()] : []),
{
test: /\.vue$/,
loader: 'vue-loader',
options: vueLoaderConfig
},
{
test: /\.js$/,
loader: 'babel-loader',
include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]
},
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: utils.assetsPath('img/[name].[hash:7].[ext]')
}
},
{
test: /\.scss$/,
loaders: ["style", "css", "scss", "sass"]
},
{
test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: utils.assetsPath('media/[name].[hash:7].[ext]')
}
},
{
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
}
}
]
},
node: {
// prevent webpack from injecting useless setImmediate polyfill because Vue
// source contains it (although only uses it if it's native).
setImmediate: false,
// prevent webpack from injecting mocks to Node native modules
// that does not make sense for the client
dgram: 'empty',
fs: 'empty',
net: 'empty',
tls: 'empty',
child_process: 'empty'
}
}
'use strict'
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const path = require('path')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
const portfinder = require('portfinder')
const HOST = process.env.HOST
const PORT = process.env.PORT && Number(process.env.PORT)
const devWebpackConfig = merge(baseWebpackConfig, {
module: {
rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
},
// cheap-module-eval-source-map is faster for development
devtool: config.dev.devtool,
// these devServer options should be customized in /config/index.js
devServer: {
clientLogLevel: 'warning',
historyApiFallback: {
rewrites: [
{ from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
],
},
hot: true,
contentBase: false, // since we use CopyWebpackPlugin.
compress: true,
host: HOST || config.dev.host,
port: PORT || config.dev.port,
open: config.dev.autoOpenBrowser,
overlay: config.dev.errorOverlay
? { warnings: false, errors: true }
: false,
publicPath: config.dev.assetsPublicPath,
proxy: config.dev.proxyTable,
quiet: true, // necessary for FriendlyErrorsPlugin
watchOptions: {
poll: config.dev.poll,
}
},
plugins: [
new webpack.DefinePlugin({
'process.env': require('../config/dev.env')
}),
new webpack.HotModuleReplacementPlugin(),
new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
new webpack.NoEmitOnErrorsPlugin(),
// https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'index.html',
inject: true,
favicon: './favicon.ico'
}),
// copy custom static assets
new CopyWebpackPlugin([
{
from: path.resolve(__dirname, '../static'),
to: config.dev.assetsSubDirectory,
ignore: ['.*']
}
])
]
})
module.exports = new Promise((resolve, reject) => {
portfinder.basePort = process.env.PORT || config.dev.port
portfinder.getPort((err, port) => {
if (err) {
reject(err)
} else {
// publish the new Port, necessary for e2e tests
process.env.PORT = port
// add port to devServer config
devWebpackConfig.devServer.port = port
// Add FriendlyErrorsPlugin
devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
compilationSuccessInfo: {
messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
},
onErrors: config.dev.notifyOnErrors
? utils.createNotifierCallback()
: undefined
}))
resolve(devWebpackConfig)
}
})
})
'use strict'
const path = require('path')
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const env = require('../config/prod.env')
const webpackConfig = merge(baseWebpackConfig, {
module: {
rules: utils.styleLoaders({
sourceMap: config.build.productionSourceMap,
extract: true,
usePostCSS: true
})
},
devtool: config.build.productionSourceMap ? config.build.devtool : false,
output: {
path: config.build.assetsRoot,
filename: utils.assetsPath('js/[name].[chunkhash].js'),
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
},
plugins: [
// http://vuejs.github.io/vue-loader/en/workflow/production.html
new webpack.DefinePlugin({
'process.env': env
}),
new UglifyJsPlugin({
uglifyOptions: {
compress: {
warnings: false
}
},
sourceMap: config.build.productionSourceMap,
parallel: true
}),
// extract css into its own file
new ExtractTextPlugin({
filename: utils.assetsPath('css/[name].[contenthash].css'),
// Setting the following option to `false` will not extract CSS from codesplit chunks.
// Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
// It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
// increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
allChunks: true,
}),
// Compress extracted CSS. We are using this plugin so that possible
// duplicated CSS from different components can be deduped.
new OptimizeCSSPlugin({
cssProcessorOptions: config.build.productionSourceMap
? { safe: true, map: { inline: false } }
: { safe: true }
}),
// generate dist index.html with correct asset hash for caching.
// you can customize output by editing /index.html
// see https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin({
filename: config.build.index,
template: 'index.html',
inject: true,
minify: {
removeComments: true,
collapseWhitespace: true,
removeAttributeQuotes: true
// more options:
// https://github.com/kangax/html-minifier#options-quick-reference
},
// necessary to consistently work with multiple chunks via CommonsChunkPlugin
chunksSortMode: 'dependency'
}),
// keep module.id stable when vendor modules does not change
new webpack.HashedModuleIdsPlugin(),
// enable scope hoisting
new webpack.optimize.ModuleConcatenationPlugin(),
// split vendor js into its own file
new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
minChunks (module) {
// any required modules inside node_modules are extracted to vendor
return (
module.resource &&
/\.js$/.test(module.resource) &&
module.resource.indexOf(
path.join(__dirname, '../node_modules')
) === 0
)
}
}),
// extract webpack runtime and module manifest to its own file in order to
// prevent vendor hash from being updated whenever app bundle is updated
new webpack.optimize.CommonsChunkPlugin({
name: 'manifest',
minChunks: Infinity
}),
// This instance extracts shared chunks from code splitted chunks and bundles them
// in a separate chunk, similar to the vendor chunk
// see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
new webpack.optimize.CommonsChunkPlugin({
name: 'app',
async: 'vendor-async',
children: true,
minChunks: 3
}),
// copy custom static assets
new CopyWebpackPlugin([
{
from: path.resolve(__dirname, '../static'),
to: config.build.assetsSubDirectory,
ignore: ['.*']
}
])
]
})
if (config.build.productionGzip) {
const CompressionWebpackPlugin = require('compression-webpack-plugin')
webpackConfig.plugins.push(
new CompressionWebpackPlugin({
asset: '[path].gz[query]',
algorithm: 'gzip',
test: new RegExp(
'\\.(' +
config.build.productionGzipExtensions.join('|') +
')$'
),
threshold: 10240,
minRatio: 0.8
})
)
}
if (config.build.bundleAnalyzerReport) {
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
webpackConfig.plugins.push(new BundleAnalyzerPlugin())
}
module.exports = webpackConfig
'use strict'
const merge = require('webpack-merge')
const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, {
NODE_ENV: '"development"'
})
'use strict'
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path');
const proxyConfig = require('./proxyList');
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},//proxyConfig.proxyList,
// Various Dev Server settings
// host: '0.0.0.0', // can be overwritten by process.env.HOST
host: 'localhost',//'192.168.1.20',//
port: 8008, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
notifyOnErrors: true,
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
// Use Eslint Loader?
// If true, your code will be linted during bundling and
// linting errors and warnings will be shown in the console.
useEslint: true,
// If true, eslint errors and warnings will also be shown in the error overlay
// in the browser.
showEslintErrorsInOverlay: false,
/**
* Source Maps
*/
// https://webpack.js.org/configuration/devtool/#development
devtool: 'cheap-module-eval-source-map',
// If you have problems debugging vue-files in devtools,
// set this to false - it *may* help
// https://vue-loader.vuejs.org/en/options.html#cachebusting
cacheBusting: true,
cssSourceMap: true
},
build: {
// Template for index.html
index: path.resolve(__dirname, '../dist/index.html'),
// Paths
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPath: './',
/**
* Source Maps
*/
productionSourceMap: false,
// https://webpack.js.org/configuration/devtool/#production
devtool: '#source-map',
// Gzip off by default as many popular static hosts such as
// Surge or Netlify already gzip all static assets for you.
// Before setting to `true`, make sure to:
// npm install --save-dev compression-webpack-plugin
productionGzip: false,
productionGzipExtensions: ['js', 'css'],
// Run the build command with an extra argument to
// View the bundle analyzer report after build finishes:
// `npm run build --report`
// Set to `true` or `false` to always turn it on or off
bundleAnalyzerReport: process.env.npm_config_report
}
}
'use strict'
module.exports = {
NODE_ENV: '"production"'
}
module.exports = {
proxyList: {
'/api-auth/': {
target: 'http://gicdev.demogic.com/api-auth/',
changeOrigin: true,
pathRewrite: {
'^/api-auth': ''
}
},
'/api-admin/': {
target: 'http://gicdev.demogic.com/api-admin/',
changeOrigin: true,
pathRewrite: {
'^/api-admin': ''
}
},
'/api-plug/': {
target: 'http://gicdev.demogic.com/api-plug/',
changeOrigin: true,
pathRewrite: {
'^/api-plug': ''
}
},
'/api-mall/': {
target: 'http://gicdev.demogic.com/api-mall/',
changeOrigin: true,
pathRewrite: {
'^/api-mall': ''
}
}
}
}
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.84e36005a4e602ad7472902f7156c9ee.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.1b4f8252b875fbc2d9b2.js></script><script type=text/javascript src=./static/js/vendor.928b68e48614c700460c.js></script><script type=text/javascript src=./static/js/app.5f56b3d2cef579f70e75.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
@import './public.css';
.arrowico {
position: absolute;
transition: all .5s;
.icoposition(0px, 25px);
}
.icoposition(@right: right, @top: top) {
right: @right;
top: @top;
}
.user-form-dialog {
/deep/ .el-dialog {
min-width: 425px;
}
/*/deep/ .el-dialog__body {
padding: 0 20px;
}*/
/deep/ .el-input {
width: 260px;
}
}
.pass-form-dialog {
/deep/ .el-dialog {
min-width: 425px;
}
/*/deep/ .el-dialog__body {
padding: 0 20px;
}*/
}
.commom-container {
background: #fff;
}
.common-frame-container {
display: flex;
.common-right-container {
/*height: 690px;*/
background: #fff;
flex: 1;
padding: 0 24px;
.common-right-header {
height: 70px;
line-height: 70px;
font-weight: 400;
font-size: 14px;
color: #606266;
.title-span {
color: #303133;
font-size: 20px;
}
.handle-area {
float: right;
.hurdle {
width: 1px;
height: 16px;
display: inline-block;
background: #DCDFE6;
margin: 0;
vertical-align: sub;
}
.no-bdr-btn {
background: none;
color: #409EFF;
border: none;
}
.el-button.is-disabled,
.el-button.is-disabled:hover,
.el-button.is-disabled:focus {
background: none;
color: #c0c4cc;
}
}
}
.tab-div {
margin-bottom: 20px;
}
.common-right-button-box {
padding: 8px 15px;
background: #EBEEF5;
font-size: 0;
.el-select--small {
width: 120px;
margin-right: 10px;
}
.el-button {
margin-right: 8px;
}
}
.pagination {
margin: 24px 0;
text-align: right;
}
.diy-table {
.diy-header {
display: flex;
.name {
width: 130px;
min-width: 130px;
max-width: 130px;
}
.phone,
.position {
width: 125px;
min-width: 125px;
max-width: 125px;
}
.status {
width: 100px;
min-width: 100px;
max-width: 100px;
}
}
.clerk-obj-li {
display: flex;
padding: 10px 0;
margin-bottom: 25px;
line-height: 32px;
&:last-child {
margin-bottom: 0;
}
.clerk-name {
width: 130px;
.manager {
display: inline-block;
width: 30px;
height: 15px;
line-height: 16px;
vertical-align: middle;
text-align: center;
background: rgba(247, 203, 39, 1);
border-radius: 2px;
color: #fff;
font-size: 10px;
}
}
.clerk-phone,
.clerk-position {
width: 125px;
}
.clerk-status {
width: 100px;
.status-icon {
width: 34px;
height: 32px;
line-height: 32px;
text-align: center;
background: #ECF5FF;
border: 1px solid #D9ECFF;
border-radius: 4px;
&.is-active {
color: #409EFF;
}
}
}
}
}
}
}
.store-info {
flex: 1;
height: 690px;
overflow: auto;
.info-cell {
margin-bottom: 24px;
background: #fff;
padding-bottom: 24px;
>.title {
line-height: 55px;
text-indent: 32px;
border-bottom: 1px solid #E4E7ED;
}
.info-form {
padding: 24px 60px 0;
.el-form-item:last-child {
margin-bottom: 0;
}
.el-textarea,
.counter {
width: 500px;
&.el-date-editor {
width: 150px;
}
}
.w-92 {
.el-input {
width: 92px;
}
}
.area-container {
.el-select {
width: 163px;
}
.el-input {
width: 160px;
}
}
.img-list {
display: flex;
flex-wrap: wrap;
width: 500px;
.img-li {
width: 148px;
height: 148px;
border-radius: 6px;
margin-right: 12px;
margin-bottom: 10px;
position: relative;
&.J_add-img {
text-align: center;
line-height: 150px;
border: 1px solid rgba(192, 204, 218, 1);
font-size: 23px;
color: #909399;
.tip {
position: absolute;
font-size: 13px;
bottom: -23px;
height: 13px;
line-height: 13px;
text-align: center;
width: 100%;
}
}
.J_del-img {
position: absolute;
font-size: 20px;
color: #808995;
top: -10px;
right: -10px;
cursor: pointer;
}
img {
width: 100%;
height: 100%;
border-radius: 6px;
}
}
}
}
}
.handle-area {
background: rgba(255, 255, 255, 1);
height: 57px;
line-height: 57px;
text-align: center;
}
}
@base-color: #353944;
@hover-color: #3c92eb;
@hoverbg-color: #20242d;
@main-color: #1890ff;
@navbgcolor: #04143a;
@sidebgcolor: #343c4c;
@userinfobgcolor: #ecf5ff;
@contentbgcolor: #f5f7fa;
@bordercolor: #dcdfe6;
@customnavcolor: #04143a;
@btnbgcolor: #f5f7fa;
@iconbgcolor: #e6e9f2;
.flex1(@width,@height) {
flex: 0 0 @width;
width: @width;
height: @height;
}
/* Logo 字体 */
@font-face {
font-family: "iconfont logo";
src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834');
src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix') format('embedded-opentype'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont') format('svg');
}
.logo {
font-family: "iconfont logo";
font-size: 160px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* tabs */
.nav-tabs {
position: relative;
}
.nav-tabs .nav-more {
position: absolute;
right: 0;
bottom: 0;
height: 42px;
line-height: 42px;
color: #666;
}
#tabs {
border-bottom: 1px solid #eee;
}
#tabs li {
cursor: pointer;
width: 100px;
height: 40px;
line-height: 40px;
text-align: center;
font-size: 16px;
border-bottom: 2px solid transparent;
position: relative;
z-index: 1;
margin-bottom: -1px;
color: #666;
}
#tabs .active {
border-bottom-color: #f00;
color: #222;
}
.tab-container .content {
display: none;
}
/* 页面布局 */
.main {
padding: 30px 100px;
width: 960px;
margin: 0 auto;
}
.main .logo {
color: #333;
text-align: left;
margin-bottom: 30px;
line-height: 1;
height: 110px;
margin-top: -50px;
overflow: hidden;
*zoom: 1;
}
.main .logo a {
font-size: 160px;
color: #333;
}
.helps {
margin-top: 40px;
}
.helps pre {
padding: 20px;
margin: 10px 0;
border: solid 1px #e7e1cd;
background-color: #fffdef;
overflow: auto;
}
.icon_lists {
width: 100% !important;
overflow: hidden;
*zoom: 1;
}
.icon_lists li {
width: 100px;
margin-bottom: 10px;
margin-right: 20px;
text-align: center;
list-style: none !important;
cursor: default;
}
.icon_lists li .code-name {
line-height: 1.2;
}
.icon_lists .icon {
display: block;
height: 100px;
line-height: 100px;
font-size: 42px;
margin: 10px auto;
color: #333;
-webkit-transition: font-size 0.25s linear, width 0.25s linear;
-moz-transition: font-size 0.25s linear, width 0.25s linear;
transition: font-size 0.25s linear, width 0.25s linear;
}
.icon_lists .icon:hover {
font-size: 100px;
}
.icon_lists .svg-icon {
/* 通过设置 font-size 来改变图标大小 */
width: 1em;
/* 图标和文字相邻时,垂直对齐 */
vertical-align: -0.15em;
/* 通过设置 color 来改变 SVG 的颜色/fill */
fill: currentColor;
/* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
normalize.css 中也包含这行 */
overflow: hidden;
}
.icon_lists li .name,
.icon_lists li .code-name {
color: #666;
}
/* markdown 样式 */
.markdown {
color: #666;
font-size: 14px;
line-height: 1.8;
}
.highlight {
line-height: 1.5;
}
.markdown img {
vertical-align: middle;
max-width: 100%;
}
.markdown h1 {
color: #404040;
font-weight: 500;
line-height: 40px;
margin-bottom: 24px;
}
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
color: #404040;
margin: 1.6em 0 0.6em 0;
font-weight: 500;
clear: both;
}
.markdown h1 {
font-size: 28px;
}
.markdown h2 {
font-size: 22px;
}
.markdown h3 {
font-size: 16px;
}
.markdown h4 {
font-size: 14px;
}
.markdown h5 {
font-size: 12px;
}
.markdown h6 {
font-size: 12px;
}
.markdown hr {
height: 1px;
border: 0;
background: #e9e9e9;
margin: 16px 0;
clear: both;
}
.markdown p {
margin: 1em 0;
}
.markdown>p,
.markdown>blockquote,
.markdown>.highlight,
.markdown>ol,
.markdown>ul {
width: 80%;
}
.markdown ul>li {
list-style: circle;
}
.markdown>ul li,
.markdown blockquote ul>li {
margin-left: 20px;
padding-left: 4px;
}
.markdown>ul li p,
.markdown>ol li p {
margin: 0.6em 0;
}
.markdown ol>li {
list-style: decimal;
}
.markdown>ol li,
.markdown blockquote ol>li {
margin-left: 20px;
padding-left: 4px;
}
.markdown code {
margin: 0 3px;
padding: 0 5px;
background: #eee;
border-radius: 3px;
}
.markdown strong,
.markdown b {
font-weight: 600;
}
.markdown>table {
border-collapse: collapse;
border-spacing: 0px;
empty-cells: show;
border: 1px solid #e9e9e9;
width: 95%;
margin-bottom: 24px;
}
.markdown>table th {
white-space: nowrap;
color: #333;
font-weight: 600;
}
.markdown>table th,
.markdown>table td {
border: 1px solid #e9e9e9;
padding: 8px 16px;
text-align: left;
}
.markdown>table th {
background: #F7F7F7;
}
.markdown blockquote {
font-size: 90%;
color: #999;
border-left: 4px solid #e9e9e9;
padding-left: 0.8em;
margin: 1em 0;
}
.markdown blockquote p {
margin: 0;
}
.markdown .anchor {
opacity: 0;
transition: opacity 0.3s ease;
margin-left: 8px;
}
.markdown .waiting {
color: #ccc;
}
.markdown h1:hover .anchor,
.markdown h2:hover .anchor,
.markdown h3:hover .anchor,
.markdown h4:hover .anchor,
.markdown h5:hover .anchor,
.markdown h6:hover .anchor {
opacity: 1;
display: inline-block;
}
.markdown>br,
.markdown>p>br {
clear: both;
}
.hljs {
display: block;
background: white;
padding: 0.5em;
color: #333333;
overflow-x: auto;
}
.hljs-comment,
.hljs-meta {
color: #969896;
}
.hljs-string,
.hljs-variable,
.hljs-template-variable,
.hljs-strong,
.hljs-emphasis,
.hljs-quote {
color: #df5000;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-type {
color: #a71d5d;
}
.hljs-literal,
.hljs-symbol,
.hljs-bullet,
.hljs-attribute {
color: #0086b3;
}
.hljs-section,
.hljs-name {
color: #63a35c;
}
.hljs-tag {
color: #333333;
}
.hljs-title,
.hljs-attr,
.hljs-selector-id,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo {
color: #795da3;
}
.hljs-addition {
color: #55a532;
background-color: #eaffea;
}
.hljs-deletion {
color: #bd2c00;
background-color: #ffecec;
}
.hljs-link {
text-decoration: underline;
}
/* 代码高亮 */
/* PrismJS 1.15.0
https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */
/**
* prism.js default theme for JavaScript, CSS and HTML
* Based on dabblet (http://dabblet.com)
* @author Lea Verou
*/
code[class*="language-"],
pre[class*="language-"] {
color: black;
background: none;
text-shadow: 0 1px white;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection {
text-shadow: none;
background: #b3d4fc;
}
pre[class*="language-"]::selection,
pre[class*="language-"] ::selection,
code[class*="language-"]::selection,
code[class*="language-"] ::selection {
text-shadow: none;
background: #b3d4fc;
}
@media print {
code[class*="language-"],
pre[class*="language-"] {
text-shadow: none;
}
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
}
:not(pre)>code[class*="language-"],
pre[class*="language-"] {
background: #f5f2f0;
}
/* Inline code */
:not(pre)>code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: slategray;
}
.token.punctuation {
color: #999;
}
.namespace {
opacity: .7;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
color: #905;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: #690;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
color: #9a6e3a;
background: hsla(0, 0%, 100%, .5);
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #07a;
}
.token.function,
.token.class-name {
color: #DD4A68;
}
.token.regex,
.token.important,
.token.variable {
color: #e90;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([1],{"2X9c":function(M,L,j){M.exports=j.p+"static/img/error_500.ed0cba4.svg"},CkW6:function(M,L){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i5Zu+5bGCXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgNDAwIDMzNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDAwIDMzNTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6I0ZBRkNGRjt9DQoJLnN0MXtmaWxsOiNEQkU1RjE7fQ0KCS5zdDJ7ZmlsbDojREVFN0Y0O30NCgkuc3Qze2ZpbGw6I0I5QzdEQjt9DQoJLnN0NHtmaWxsOiNGRkZGRkY7fQ0KCS5zdDV7ZmlsbDpub25lO3N0cm9rZTojQjlDN0RCO3N0cm9rZS13aWR0aDo0O3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCgkuc3Q2e2ZpbGw6bm9uZTtzdHJva2U6I0I2QzdEODtz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LjIsMjY0LjZoMTcxLjdjMC40LDAsMC43LDAuMSwwLjksMC40YzAuNCwwLjQsMC41LDEsMC4zLDEuNWMtMC4yLDAuNS0wLjcsMC44LTEuMiwwLjhIOTkuMQ0KCWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zQzk3LjgsMjY1LjMsOTguNCwyNjQuNiw5OS4yLDI2NC42Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjM1LDk1Ljh2OC4xYzAsMC43LTAuNiwxLjMtMS4zLDEuM3MtMS4zLTAuNi0xLjMtMS4zdi04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44Ig0KCS8+DQo8L3N2Zz4NCg=="},Minx:function(M,L,j){M.exports=j.p+"static/img/error_404.bf58747.svg"},ODjX:function(M,L,j){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u=j("CkW6"),N=j.n(u),w=j("Minx"),D=j.n(w),C=j("2X9c"),s=j.n(C),y={name:"errpage",data:function(){return{imgSrc:"",message:"",srcList:{403:N.a,404:D.a,500:s.a},msgList:{403:"抱歉,你无权访问该页面",404:"抱歉,你访问的页面不存在",500:"抱歉,服务器出错了"}}},mounted:function(){var M=this.$route.path.split("/")[1];this.imgSrc=this.srcList[M],this.message=this.msgList[M]}},t={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.imgSrc,alt:"404"}})]),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:"#/index"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var i=j("VU/8")(y,t,!1,function(M){j("hUzu")},"data-v-44d58fb6",null);L.default=i.exports},hUzu:function(M,L){}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([15],{HKlq:function(e,t){},e8iM:function(e,t){},n7j5:function(e,t,i){"use strict";var a=i("mvHQ"),s=i.n(a),n={name:"select-area",components:{vueSelectEmployee:i("c4uw").a},props:{treeData:{type:Object,default:function(){return{}}},butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}}},data:function(){return{copyTreeData:JSON.parse(s()(this.treeData))}},methods:{delCurrent:function(e,t){var i=this[t];i.splice(i.indexOf(e),1)},handleSelectedList:function(e){this.butList=e},callSelector:function(e,t){this.$emit("callPerSelector",e,t)}}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"select-area"},[i("div",{staticClass:"setting-name"},[e._v("\n 个别员工不设置该权限\n ")]),e._v(" "),i("ul",{staticClass:"particular-list"},[e._l(e.butList,function(t,a){return[t.employeeClerkId?i("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"butList")}}})]):i("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"butList")}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("but",e.butList)}}},[i("i",{staticClass:"el-icon-plus"})])],2),e._v(" "),i("div",{staticClass:"setting-name"},[e._v("\n 允许指定部门/人员可见\n ")]),e._v(" "),i("ul",{staticClass:"particular-list"},[e._l(e.specialList,function(t,a){return[t.employeeClerkId?i("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"specialList")}}})]):i("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"specialList")}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("special",e.specialList)}}},[i("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var l={name:"permissionSetting",components:{selectArea:i("VU/8")(n,r,!1,function(e){i("HKlq")},null,null).exports},props:{butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}},selfButList:{type:Array,default:function(){return[]}},selfSpecialList:{type:Array,default:function(){return[]}},visibleSpecialLsit:{type:Array,default:function(){return[]}},onlySelfApartList:{type:Array,default:function(){return[]}},treeData:{type:Object,default:function(){return{}}},departInfo:{type:Object,default:function(){return{}}}},data:function(){return{visibleThere:!1,visibleSelf:!1}},methods:{switchPermission:function(e,t,i){e&&(this[i]=!e),this.visibleSelf?this.departInfo.type=2:this.visibleThere?this.departInfo.type=1:this.departInfo.type=""},callPerSelector:function(e,t){this.$emit("callPerSelector",e,t)}},mounted:function(){var e=this.departInfo.type;this.visibleThere=!(1!=e),this.visibleSelf=!(2!=e)},watch:{departInfo:{handler:function(e,t){var i=e.type;this.visibleThere=!(1!=i),this.visibleSelf=!(2!=i)},deep:!0}}},o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"jurisdiction-setting"},[i("div",{staticClass:"only-visivble-there permission-div"},[i("div",{staticClass:"permission-div-title"},[i("span",[e._v("本部门员工仅可见本部门员工")]),e._v(" "),i("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleThere,"visibleThere","visibleSelf")}},model:{value:e.visibleThere,callback:function(t){e.visibleThere=t},expression:"visibleThere"}})],1),e._v(" "),e.visibleThere?i("div",{staticClass:"particular-setting"},[i("select-area",{attrs:{treeData:e.treeData,butList:e.butList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()]),e._v(" "),i("div",{staticClass:"only-visivble-self permission-div"},[i("div",{staticClass:"permission-div-title"},[i("span",[e._v("本部门员工仅可见自己")]),e._v(" "),i("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleSelf,"visibleSelf","visibleThere")}},model:{value:e.visibleSelf,callback:function(t){e.visibleSelf=t},expression:"visibleSelf"}})],1),e._v(" "),e.visibleSelf?i("div",{staticClass:"particular-setting"},[i("select-area",{attrs:{treeData:e.treeData,butList:e.selfButList,specialList:e.selfSpecialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()])])},staticRenderFns:[]};var c=i("VU/8")(l,o,!1,function(e){i("wVEX")},null,null);t.a=c.exports},q5Ri:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("n7j5"),s=i("c4uw"),n=i("P9l9"),r={name:"addDepartment",components:{permissionSetting:a.a,vueSelectEmployee:s.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},testList:[],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},treeData:{},disabled:!0,defaultSelection:[],defaultParent:[],selectorType:"parent",changed:"parent",onlyPerson:!1,onlyGroup:[]}},methods:{getDepartInfo:function(){var e=this,t={groupId:e.$route.query.departmentId};Object(n.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){if(1==t.data.errorCode){e.departInfo.name=t.data.result.name,e.departInfo.parentId=t.data.result.parentId;var i=t.data.result.chainName.split("/"),a=i.length;e.departInfo.parentName=1==a?"":i[a-2],e.defaultParent=[{label:e.departInfo.parentName,id:t.data.result.parentId,groupId:t.data.result.parentId}]}else e.$message.error({duration:1e3,message:t.data.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},callGroupSelector:function(){this.selectorType="parent",this.defaultSelection=this.defaultParent,this.onlyPerson=!1,this.onlyGroup=[],this.changed="parent",this.treeSet={dialogVisible:!0,isSingle:!0,isSelectPerson:!1}},callPerSelector:function(e,t){this.selectorType=e,this.defaultSelection=t,this.onlyPerson=!0,this.onlyGroup=[this.$route.query.departmentId],this.changed=e,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}},handleSelectedList:function(e){this.departInfo.parentId=e?e.id:"",this.departInfo.parentName=e?e.label:""},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(i){if(!i)return!1;var a=e,s={parentId:a.departInfo.parentId,name:a.departInfo.name};Object(n.a)("/haoban-manage-web/dept/insert",s).then(function(e){1==e.data.errorCode?(a.$message.success({duration:1e3,message:"操作成功!"}),"continue"==t?(a.departInfo={name:"",parentName:"",parentId:""},a.disabled=!0,a.getGroupData()):window.history.go(-1)):a.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})})},getGroupData:function(){var e=this;Object(n.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var i=[],a=[];1==t.data.errorCode&&(i=t.data.result.departmentList||[],a=t.data.result.searchList||[]),e.treeData={treeData:i,personData:a},e.disabled=!1}).catch(function(e){})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},beforeMount:function(){this.getGroupData(),this.isAddNew||this.getDepartInfo()},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)}}},l={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"add-department-container"},[i("div",{staticClass:"setting-cell depart-info"},[i("p",{staticClass:"title"},[e._v("部门信息")]),e._v(" "),i("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[i("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[i("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[i("el-input",{attrs:{disabled:e.disabled,"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)],1)],1),e._v(" "),i("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var o=i("VU/8")(r,l,!1,function(e){i("e8iM")},null,null);t.default=o.exports},wVEX:function(e,t){}});
\ No newline at end of file
webpackJsonp([18],{"71JE":function(t,e){},CLYF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),i=a("Zx22"),s=a("Ch4/"),o=a("PI0u"),l=a("P9l9"),r={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",navpath:[{name:"首页",path:"/index"},{name:"审核中心",path:"/unreview"},{name:"已审核",path:""}],filterValue:"99",filterOptions:[{label:"已同意",value:"1"},{label:"已拒绝",value:"2"},{label:"已审核",value:"99"}],searchValue:"",tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,applyInfo:{},showStoreDialog:!1,storeChangeData:{}}},filters:{formatTimeYMD:function(t){return"--"!=t?t.split(" ")[0]:"--"},formatTimeHMS:function(t){return"--"!=t?t.split(" ")[1]:"--"},formatNum:function(t){return(t+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")}},computed:{},methods:{clearSearch:function(){this.currentPage=1,this.getTableList()},searchEnterFun:function(t){if(!String(t.target.value).trim())return!1;this.currentPage=1,this.getTableList()},toggleReason:function(t){t.visible=!0,this.tableData.forEach(function(e,a){e.enterpriseAuditingId!=t.enterpriseAuditingId&&(e.visible=!1)})},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showSingleInfo:function(t){},showStoreChange:function(t){this.storeChangeData={beforeContent:[],afterContent:[]},this.showStoreDialog=!0,this.storeChangeData={beforeContent:""!=t.beforeContent?JSON.parse(t.beforeContent):[],afterContent:""!=t.afterContent?JSON.parse(t.afterContent):[]}},getTableList:function(t){var e=this;t&&(e.currentPage=1);var a={auditingType:"",auditingStatus:e.filterValue,search:e.searchValue||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(l.a)("/haoban-manage-web/audit/auditing-list.json",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.list&&a.result.list.forEach(function(t,e){t.createTime&&(t.createTime=Object(o.c)(t.createTime))}),e.tableData=a.result.list,void(e.total=a.result.total);s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getTableList()},components:{navCrumb:n.a,storeChange:i.a}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"reviewed-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.$store.state.bgHeight}},[a("div",{staticClass:"reviewed-body-head"},[a("el-select",{staticClass:"w-130",attrs:{placeholder:"全部状态"},on:{change:t.getTableList},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}},t._l(t.filterOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),a("el-input",{staticClass:"w-250 m-l-10",attrs:{placeholder:"请输入提交人姓名或门店名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.searchEnterFun(e):null}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1),t._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.auditingType?"门店信息变更":1==e.row.auditingType?"新增成员":"成员离职")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){t.showSingleInfo(e.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 "},[e.row.headPic?a("img",{attrs:{src:e.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[t._v("\n "+t._s(e.row.applyName)+"\n "),a("i",{class:[2==e.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),t._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[t._v("员工代码:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.code))])]),t._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[t._v("手机号:")]),a("span",{staticClass:"w-130"},[t._v(t._s("86"==e.row.nationcode?e.row.phoneNumber:"+"+e.row.nationcode+"-"+e.row.phoneNumber))])]),t._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[t._v("职位:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.positionName))])]),t._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[t._v("所属门店:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.storeName))])])])])]),t._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headPic?a("img",{attrs:{src:e.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",[t._v(t._s(e.row.applyName))]),t._v(" "),a("span",{staticClass:"font-13"},[t._v(t._s(e.row.storeName))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=e.row.auditingType||0==e.row.auditingType&&1!=e.row.auditingUpdateType?a("span",[t._v(t._s(e.row.detail))]):t._e(),t._v(" "),1==e.row.auditingUpdateType?a("div",{staticClass:"line-hidden-2"},[a("span",[t._v(t._s(e.row.detail))]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showStoreChange(e.row)}}},[t._v("查看详情")])],1):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("formatTimeYMD")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("formatTimeHMS")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:[2==e.row.auditingStatus?"color-FF585C":""]},[t._v(t._s(1==e.row.auditingStatus?"超级管理员已同意":"超级管理员已拒绝"))]),t._v(" "),a("el-popover",{staticClass:"inline-block",attrs:{placement:"top",width:"150",trigger:"hover"}},[a("div",{staticClass:"tooltip-text"},[t._v(t._s(e.row.refuseReason))]),t._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[2==e.row.auditingStatus?a("i",{staticClass:"el-icon-question",on:{click:function(a){t.toggleReason(e.row)}}}):t._e()])])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[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("vue-gic-footer"),t._v(" "),a("storeChange",{attrs:{storeChangeData:t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}})],1)},staticRenderFns:[]};var u=a("VU/8")(r,c,!1,function(t){a("aayb")},"data-v-44a1979f",null);e.default=u.exports},Zx22:function(t,e,a){"use strict";var n={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"gic-web",customDialog:this.value,leftData:[],rightData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(t,e){function a(t){return t>9?""+t:"0"+t}var n=new Date(t),i=n.getFullYear(),s=n.getMonth()+1,o=n.getDate();return i+e+a(s)+e+a(o)+e},handleData:function(){}},watch:{value:function(t,e){this.customDialog=t},storeChangeData:function(t,e){this.leftData=t.beforeContent,this.rightData=t.afterContent}},mounted:function(){this.leftData=this.storeChangeData.beforeContent,this.rightData=this.storeChangeData.afterContent}},i={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:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]})],2)])]),t._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var s=a("VU/8")(n,i,!1,function(t){a("71JE")},"data-v-709a6f08",null);e.a=s.exports},aayb:function(t,e){}});
\ No newline at end of file
webpackJsonp([20],{"27o1":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("3Xzz"),o={name:"add-clerk-page",components:{clerkInfo:r("oncj").a,navCrumb:n.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"新增店员",path:""}],isAddnew:!1,firstLevelId:"",storeType:"",gicFlag:!(!this.$route.query.gicFlag||"false"==this.$route.query.gicFlag)}},beforeMount:function(){this.firstLevelId=this.$route.query.firstLevelId,this.storeType=this.$route.query.type,this.$route.query.clerkId?(this.isAddnew=!1,this.navpath[3].name="编辑店员"):this.isAddnew=!0}},a={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-wrap add-clerk-wrap"},[t("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"add-clerk-page"},[t("clerk-info",{attrs:{storeType:this.storeType,firstLevelId:this.firstLevelId,isAddnew:this.isAddnew,gicFlag:this.gicFlag}})],1)])]),this._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var s=r("VU/8")(o,a,!1,function(e){r("Tb0k")},null,null);t.default=s.exports},Tb0k:function(e,t){},oncj:function(e,t,r){"use strict";var n=r("Ie7z"),o=r("P9l9"),a=r("XDyb"),s=r("T+u5"),i=r.n(s),l={name:"clerk-info-form",props:{isAddnew:{type:Boolean,default:!1},perId:{type:[String,Number],default:""},firstLevelId:{type:[String,Number],default:""},storeType:{type:[String,Number],default:""},gicFlag:{type:Boolean,default:!1}},components:{vueSelectStore:n.a,countryMobile:a.a},data:function(){var e=this;return{rules:{name:[{required:!0,message:"请输入店员姓名",trigger:"blur"},{min:2,max:10,message:"长度在 2 到 10 个字符",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(t,r,n){if(!r)return n(new Error("请输入手机号"));var o=new i.a("+"+e.clerkInfo.nationcode+r);o.isValid()&&o.isMobile()?n():n(new Error("手机号格式不正确"))},trigger:"blur"}],storeName:[{required:!0,message:"请选择门店",trigger:"change"}],code:[{required:!0,message:"请输入code",trigger:"blur"},{min:2,max:20,message:"长度在 2 到 20 个字符",trigger:"blur"}],positionName:[{required:!0,message:"请输入店员职位",trigger:"blur"}]},clerkInfo:{storeName:"",storeId:"",managerMode:!1,positionName:"职员",nationcode:"86"},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:"",storeType:"",openNextBool:!0},defaultList:[]}},methods:{toInputCode:function(e){var t=this.clerkInfo.code;""!==t&&(this.clerkInfo.code=t.replace(/[^A-Za-z0-9]+/g,""))},saveFn:function(e){var t=!0;this.$refs.clerk_info.validate(function(e){e||(t=!1)}),t&&this.addEmployee(this.clerkInfo,e)},callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.clerkInfo.storeName=e&&e.length?e[0].label:"",this.clerkInfo.storeId=e&&e.length?e[0].id:"",this.$forceUpdate()},addEmployee:function(e,t){var r=this,n={name:e.name,isClerk:1,phoneNumber:e.phoneNumber,positionName:e.positionName,storeId:e.storeId,managerMode:1*e.managerMode,code:e.code,employeeClerkId:e.employeeClerkId||"",nationcode:e.nationcode},a=r.isAddnew?"/haoban-manage-web/emp/add":"/haoban-manage-web/emp/update";Object(o.a)(a,n).then(function(e){1==e.data.errorCode?(r.$message.success({message:"操作成功"}),1==t?(r.clerkInfo={name:"",isClerk:1,phoneNumber:"",positionName:"职员",storeId:"",managerMode:!1,code:"",nationcode:"86"},r.defaultList=[],r.$refs.clerk_info.resetFields()):r.$router.push("/storeFrame")):r.$message.error({message:e.data.message})}).catch(function(e){r.$message.error({message:e.message})})},cancel:function(){var e=this;this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(e){})},getClerkInfo:function(){var e=this,t={id:e.$route.query.clerkId?e.$route.query.clerkId:e.perId};Object(o.a)("/haoban-manage-web/emp/findOne",t).then(function(t){1==t.data.errorCode?(e.clerkInfo=t.data.result,e.defaultList=[{id:t.data.result.storeId,label:t.data.result.storeName}]):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t})})}},beforeMount:function(){this.treeSet.storeType=this.storeType,this.treeSet.groupId=this.firstLevelId,this.isAddnew||this.getClerkInfo()},watch:{perId:function(e,t){this.getClerkInfo(e)}}},c={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"form-container bdr-box"},[r("el-form",{ref:"clerk_info",staticClass:"add-clerk-form",attrs:{model:e.clerkInfo,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"姓名",prop:"name"}},[r("el-input",{staticClass:"clerk-info-input",model:{value:e.clerkInfo.name,callback:function(t){e.$set(e.clerkInfo,"name",t)},expression:"clerkInfo.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[r("countryMobile",{attrs:{inputWidth:380,nationCode:e.clerkInfo.nationcode,holder:"请输入手机号",disflag:!e.isAddnew},on:{"update:nationCode":function(t){e.$set(e.clerkInfo,"nationcode",t)}},model:{value:e.clerkInfo.phoneNumber,callback:function(t){e.$set(e.clerkInfo,"phoneNumber",t)},expression:"clerkInfo.phoneNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"门店",prop:"storeName"}},[r("el-input",{staticClass:"clerk-info-input",attrs:{disabled:!e.isAddnew},on:{focus:e.callSelector},model:{value:e.clerkInfo.storeName,callback:function(t){e.$set(e.clerkInfo,"storeName",t)},expression:"clerkInfo.storeName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"code",prop:"code"}},[r("el-input",{staticClass:"clerk-info-input",attrs:{disabled:e.gicFlag&&!e.isAddnew},on:{blur:function(t){return e.toInputCode(t)}},model:{value:e.clerkInfo.code,callback:function(t){e.$set(e.clerkInfo,"code",t)},expression:"clerkInfo.code"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"职位",prop:"positionName"}},[r("el-input",{staticClass:"clerk-info-input",model:{value:e.clerkInfo.positionName,callback:function(t){e.$set(e.clerkInfo,"positionName",t)},expression:"clerkInfo.positionName"}})],1)],1),e._v(" "),r("div",{staticClass:"btn-box"},[r("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("保 存")]),e._v(" "),!e.gicFlag&&e.isAddnew?r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveFn(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),e.gicFlag?e._e():r("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{selectType:"store",defaultList:e.defaultList,treeSet:e.treeSet},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var d=r("VU/8")(l,c,!1,function(e){r("sqQd")},null,null);t.a=d.exports},sqQd:function(e,t){}});
\ No newline at end of file
webpackJsonp([22],{"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
webpackJsonp([24],{"3dLr":function(t,e){},Z46G: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("3dLr")},"data-v-a87ee7f0",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("Z46G")},"data-v-575a9b1d",null);e.default=v.exports}});
\ No newline at end of file
webpackJsonp([25],{"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+5bGCXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgNDAwIDMzNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDAwIDMzNTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Q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TcsMjcyLjcsMTk3LjEsMjcyLjcsMTk3LjEsMjcyLjciLz4NCjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0yODQuNCwyNjQuNmg4LjFjMC43LDAsMS4zLDAuNiwxLjMsMS4zbDAsMGMwLDAuNy0wLjYsMS4zLTEuMywxLjNoLTguMWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zDQoJQzI4MywyNjUuMywyODMuNiwyNjQuNiwyODQuNCwyNjQuNiIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTk5LjIsMjY0LjZoMTcxLjdjMC40LDAsMC43LDAuMSwwLjksMC40YzAuNCwwLjQsMC41LDEsMC4zLDEuNWMtMC4yLDAuNS0wLjcsMC44LTEuMiwwLjhIOTkuMQ0KCWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zQzk3LjgsMjY1LjMsOTguNCwyNjQuNiw5OS4yLDI2NC42Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjM1LDk1Ljh2OC4xYzAsMC43LTAuNiwxLjMtMS4zLDEuM3MtMS4zLTAuNi0xLjMtMS4zdi04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44Ig0KCS8+DQo8L3N2Zz4NCg=="},GVON:function(M,L){}});
\ No newline at end of file
webpackJsonp([26],{"2U5L":function(e,t){},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("2U5L")},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()},500),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("awO3")},null,null);t.default=b.exports},awO3:function(e,t){}});
\ No newline at end of file
webpackJsonp([27],{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
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([31],{"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("8TZm")},"data-v-fea23f38",null);t.default=p.exports},"8TZm":function(e,t){}});
\ No newline at end of file
webpackJsonp([33],{Uk4F: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"),u=r("Ch4/"),c=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(c.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){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");u.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?u.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?u.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("el-form-item",{attrs:{label:e.ruleForm.userId?"":"选择人员",prop:"name"}},[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("Uk4F")},"data-v-e279d1f6",null);t.default=h.exports}});
\ No newline at end of file
webpackJsonp([34],{ys9I:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("fZjL"),r=n.n(a),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&&r()(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 a=n.data;if(1!=a.errorCode)c.a.errorMsg(a);else{t.countDown();var r=String(e).substr(0,3)+"****"+e.substr(7,e.length-1);t.$message({message:"验证码已发送到您的手机:+"+t.ruleForm.nationcode+r,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(t){var n=t.data;1!=n.errorCode?e.$message.error({duration:1e3,message:n.message}):window.location.href=window.location.origin+"/haoban-web/#/login"}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCurrentUser:function(){var e=JSON.parse(localStorage.getItem("userInfo"));this.ruleForm.name=e.name,this.ruleForm.phone=e.phoneNumber,this.ruleForm.nationcode=e.nationcode}},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&&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("zgM7")},"data-v-e0d382ac",null);t.default=v.exports},zgM7:function(e,t){}});
\ No newline at end of file
webpackJsonp([35],{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("tUyM")},null,null);e.default=i.exports},tUyM:function(t,e){}});
\ No newline at end of file
webpackJsonp([36],{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 n=i("VU/8")(s,a,!1,function(t){i("o82P")},"data-v-d0955ee0",null);e.default=n.exports},o82P:function(t,e){}});
\ No newline at end of file
webpackJsonp([38],{CqVe:function(t,e){},W0k8: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-badreviewstatistics",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("badEvaluateRecord");break;case"2":this.changeRoute("badEvaluateSet")}},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:{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"}},[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("CqVe")},"data-v-b841b8f6",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([39],{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"},[e._v("模板列表("+e._s(e.tableData.length)+")")]),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("egY4")},"data-v-a622ac3c",null);t.default=u.exports},egY4:function(e,t){}});
\ No newline at end of file
webpackJsonp([40],{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("kT9X")},"data-v-9dd05db2",null);t.default=d.exports},kT9X:function(e,t){}});
\ No newline at end of file
webpackJsonp([41],{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("kVwA")},"data-v-8bdd44ec",null);t.default=d.exports},kVwA:function(e,t){}});
\ 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.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment