├── .babelrc ├── .editorconfig ├── .gitignore ├── .postcssrc.js ├── README.md ├── build ├── build.js ├── check-versions.js ├── logo.png ├── utils.js ├── vue-loader.conf.js ├── webpack.base.conf.js ├── webpack.dev.conf.js └── webpack.prod.conf.js ├── config ├── dev.env.js ├── index.js └── prod.env.js ├── index.html ├── package-lock.json ├── package.json ├── src ├── App.vue ├── assets │ └── logo.png ├── axios │ ├── api.js │ ├── fetch.js │ └── url.js ├── components │ ├── btnList │ │ └── btnList.vue │ ├── filterBox │ │ ├── batchAudit.vue │ │ ├── batchDelete.vue │ │ ├── batchDifferences.vue │ │ ├── batchStatement.vue │ │ └── batchUnAudit.vue │ ├── getWebSocket │ │ └── getWebSocket.vue │ ├── head │ │ └── head.vue │ ├── search │ │ └── Search.vue │ ├── sidebar │ │ └── sidebar.vue │ ├── tabs │ │ └── Tabs.vue │ ├── tags │ │ └── tags.vue │ ├── template │ │ ├── hzlDialog.vue │ │ ├── hzlInput.vue │ │ ├── hzlPage.vue │ │ ├── hzlSelect.vue │ │ ├── hzlTable.vue │ │ └── index.js │ └── templateOne.vue ├── i18n │ ├── index.js │ └── lan │ │ ├── en.js │ │ └── zh.js ├── images │ ├── captcha.png │ └── login-bg .png ├── main.js ├── page │ ├── chart │ │ └── chart.vue │ ├── home │ │ └── home.vue │ ├── inquiry │ │ ├── BankFlow.vue │ │ ├── OrderReceivable.vue │ │ ├── SystemStatement.vue │ │ ├── TransactionFlow.vue │ │ └── children │ │ │ ├── orderAdd.vue │ │ │ └── orderDetail.vue │ ├── login │ │ └── login.vue │ ├── reportForms │ │ ├── OrderSummary.vue │ │ └── ReceivablesBalance.vue │ ├── set │ │ ├── structure.vue │ │ └── updatePWD.vue │ ├── upload │ │ └── upload.vue │ ├── verifyPlatform │ │ ├── VerifyBankStatement.vue │ │ ├── VerifyReceivables.vue │ │ └── verifyAutomate.vue │ └── verifyRecord │ │ ├── VerifyBankStatementRecord.vue │ │ └── VerifyReceivablesRecord.vue ├── router │ └── index.js ├── store │ ├── index.js │ └── modules │ │ ├── actions.js │ │ ├── mutation-type.js │ │ └── mutations.js └── style │ └── main.css └── static ├── .gitkeep └── data ├── localData.json └── tableCols.json /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { 4 | "modules": false, 5 | "targets": { 6 | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] 7 | } 8 | }], 9 | "stage-2" 10 | ], 11 | "plugins": ["transform-vue-jsx", "transform-runtime"] 12 | } 13 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | /dist/ 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Editor directories and files 9 | .idea 10 | .vscode 11 | *.suo 12 | *.ntvs* 13 | *.njsproj 14 | *.sln 15 | -------------------------------------------------------------------------------- /.postcssrc.js: -------------------------------------------------------------------------------- 1 | // https://github.com/michael-ciniawsky/postcss-load-config 2 | 3 | module.exports = { 4 | "plugins": { 5 | "postcss-import": {}, 6 | "postcss-url": {}, 7 | // to edit target browsers: use "browserslist" field in package.json 8 | "autoprefixer": {} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | #基于vue-cli构建的财务后台管理系统(`vue2`+`vuex`+`axios`+`vue-router`+`element-ui`+`echarts`+`websocket`+`vue-i18n`) 4 | 5 | [![LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE)[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu) 6 | 7 | 8 | ------- 9 | 10 | ### 本项目可以学到: 11 | 1、学会使用vue-cli2.0构建项目. 12 | 2、基于(pomise)封装axios的get、post等http请求. 13 | 3、学会使用vue-router实现页面跳转带参. 14 | 4、学会使用vuex状态管理. 15 | 5、配套element-ui(主要对table的操作多) 16 | 6、对elementui进行二次封装组件,提高复用性 17 | 7、略微涉及echarts作图标分析 18 | 8、使用websocket监听ele进度条状态 19 | 9、使用vue-i18n实现国际化--中英文切换 20 | 10、使用Ngprogress做加载,类似github loading bar 21 | 22 | 23 | #### 安装 24 | 25 | #### 项目地址: 26 | (`git clone`) 27 | 28 | ```shell 29 | git clone https://github.com/hzlshen/vue-project.git 30 | ``` 31 | 32 | #### 通过`npm`安装本地服务第三方依赖模块(需要已安装[Node.js](https://nodejs.org/)) 33 | 34 | ``` 35 | npm install 36 | ``` 37 | 38 | #### 启动服务(http://localhost:8080) 39 | 40 | ``` 41 | npm run dev 42 | ``` 43 | 44 | #### 发布代码 45 | ``` 46 | npm run build 47 | ``` 48 | 49 | #### 开发 50 | 51 | #### 目录结构 52 |
53 | .
54 | ├── README.md           
55 | ├── build              // 构建服务和webpack配置
56 | ├── config             // 项目不同环境的配置
57 | ├── dist               // 项目build目录
58 | ├── index.html         // 项目入口文件
59 | ├── package.json       // 项目配置文件
60 | ├── src                // 生产目录
61 | │   ├── assets         // css js 和图片资源
62 | │   ├── axios          // ajax url 放置
63 | │   ├── components     // 各种组件
64 | │   ├── images         // 图片文件夹
65 | │   ├── i18n           // 国际化文件夹
66 | │   ├── page           // 各种页面
67 | │   ├── router         // 页面路由
68 | │   ├── store          // vuex状态管理器
69 | │   ├── style          // 样式文件
70 | │   └── main.js        // Webpack 预编译入口
71 | 
72 | 73 | 74 | ###项目截图 75 |
76 | ![](https://github.com/hzlshen/Imgage_box/blob/master/vue-project1.png) 77 | 78 | ![](https://github.com/hzlshen/Imgage_box/blob/master/vue-project2.png) 79 | -------------------------------------------------------------------------------- /build/build.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | require('./check-versions')() 3 | 4 | process.env.NODE_ENV = 'production' 5 | 6 | const ora = require('ora') 7 | const rm = require('rimraf') 8 | const path = require('path') 9 | const chalk = require('chalk') 10 | const webpack = require('webpack') 11 | const config = require('../config') 12 | const webpackConfig = require('./webpack.prod.conf') 13 | 14 | const spinner = ora('building for production...') 15 | spinner.start() 16 | 17 | rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { 18 | if (err) throw err 19 | webpack(webpackConfig, (err, stats) => { 20 | spinner.stop() 21 | if (err) throw err 22 | process.stdout.write(stats.toString({ 23 | colors: true, 24 | modules: false, 25 | children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build. 26 | chunks: false, 27 | chunkModules: false 28 | }) + '\n\n') 29 | 30 | if (stats.hasErrors()) { 31 | console.log(chalk.red(' Build failed with errors.\n')) 32 | process.exit(1) 33 | } 34 | 35 | console.log(chalk.cyan(' Build complete.\n')) 36 | console.log(chalk.yellow( 37 | ' Tip: built files are meant to be served over an HTTP server.\n' + 38 | ' Opening index.html over file:// won\'t work.\n' 39 | )) 40 | }) 41 | }) 42 | -------------------------------------------------------------------------------- /build/check-versions.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const chalk = require('chalk') 3 | const semver = require('semver') 4 | const packageConfig = require('../package.json') 5 | const shell = require('shelljs') 6 | 7 | function exec (cmd) { 8 | return require('child_process').execSync(cmd).toString().trim() 9 | } 10 | 11 | const versionRequirements = [ 12 | { 13 | name: 'node', 14 | currentVersion: semver.clean(process.version), 15 | versionRequirement: packageConfig.engines.node 16 | } 17 | ] 18 | 19 | if (shell.which('npm')) { 20 | versionRequirements.push({ 21 | name: 'npm', 22 | currentVersion: exec('npm --version'), 23 | versionRequirement: packageConfig.engines.npm 24 | }) 25 | } 26 | 27 | module.exports = function () { 28 | const warnings = [] 29 | 30 | for (let i = 0; i < versionRequirements.length; i++) { 31 | const mod = versionRequirements[i] 32 | 33 | if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) { 34 | warnings.push(mod.name + ': ' + 35 | chalk.red(mod.currentVersion) + ' should be ' + 36 | chalk.green(mod.versionRequirement) 37 | ) 38 | } 39 | } 40 | 41 | if (warnings.length) { 42 | console.log('') 43 | console.log(chalk.yellow('To use this template, you must update following to modules:')) 44 | console.log() 45 | 46 | for (let i = 0; i < warnings.length; i++) { 47 | const warning = warnings[i] 48 | console.log(' ' + warning) 49 | } 50 | 51 | console.log() 52 | process.exit(1) 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /build/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hzlshen/vue-project/74108e477990a93074ae9460db44c4ec58b76b79/build/logo.png -------------------------------------------------------------------------------- /build/utils.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const path = require('path') 3 | const config = require('../config') 4 | const ExtractTextPlugin = require('extract-text-webpack-plugin') 5 | const packageConfig = require('../package.json') 6 | 7 | exports.assetsPath = function (_path) { 8 | const assetsSubDirectory = process.env.NODE_ENV === 'production' 9 | ? config.build.assetsSubDirectory 10 | : config.dev.assetsSubDirectory 11 | 12 | return path.posix.join(assetsSubDirectory, _path) 13 | } 14 | 15 | exports.cssLoaders = function (options) { 16 | options = options || {} 17 | 18 | const cssLoader = { 19 | loader: 'css-loader', 20 | options: { 21 | sourceMap: options.sourceMap 22 | } 23 | } 24 | 25 | const postcssLoader = { 26 | loader: 'postcss-loader', 27 | options: { 28 | sourceMap: options.sourceMap 29 | } 30 | } 31 | 32 | // generate loader string to be used with extract text plugin 33 | function generateLoaders (loader, loaderOptions) { 34 | const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader] 35 | 36 | if (loader) { 37 | loaders.push({ 38 | loader: loader + '-loader', 39 | options: Object.assign({}, loaderOptions, { 40 | sourceMap: options.sourceMap 41 | }) 42 | }) 43 | } 44 | 45 | // Extract CSS when that option is specified 46 | // (which is the case during production build) 47 | if (options.extract) { 48 | return ExtractTextPlugin.extract({ 49 | use: loaders, 50 | fallback: 'vue-style-loader' 51 | }) 52 | } else { 53 | return ['vue-style-loader'].concat(loaders) 54 | } 55 | } 56 | 57 | // https://vue-loader.vuejs.org/en/configurations/extract-css.html 58 | return { 59 | css: generateLoaders(), 60 | postcss: generateLoaders(), 61 | less: generateLoaders('less'), 62 | sass: generateLoaders('sass', { indentedSyntax: true }), 63 | scss: generateLoaders('sass'), 64 | stylus: generateLoaders('stylus'), 65 | styl: generateLoaders('stylus') 66 | } 67 | } 68 | 69 | // Generate loaders for standalone style files (outside of .vue) 70 | exports.styleLoaders = function (options) { 71 | const output = [] 72 | const loaders = exports.cssLoaders(options) 73 | 74 | for (const extension in loaders) { 75 | const loader = loaders[extension] 76 | output.push({ 77 | test: new RegExp('\\.' + extension + '$'), 78 | use: loader 79 | }) 80 | } 81 | 82 | return output 83 | } 84 | 85 | exports.createNotifierCallback = () => { 86 | const notifier = require('node-notifier') 87 | 88 | return (severity, errors) => { 89 | if (severity !== 'error') return 90 | 91 | const error = errors[0] 92 | const filename = error.file && error.file.split('!').pop() 93 | 94 | notifier.notify({ 95 | title: packageConfig.name, 96 | message: severity + ': ' + error.name, 97 | subtitle: filename || '', 98 | icon: path.join(__dirname, 'logo.png') 99 | }) 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /build/vue-loader.conf.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const utils = require('./utils') 3 | const config = require('../config') 4 | const isProduction = process.env.NODE_ENV === 'production' 5 | const sourceMapEnabled = isProduction 6 | ? config.build.productionSourceMap 7 | : config.dev.cssSourceMap 8 | 9 | module.exports = { 10 | loaders: utils.cssLoaders({ 11 | sourceMap: sourceMapEnabled, 12 | extract: isProduction 13 | }), 14 | cssSourceMap: sourceMapEnabled, 15 | cacheBusting: config.dev.cacheBusting, 16 | transformToRequire: { 17 | video: ['src', 'poster'], 18 | source: 'src', 19 | img: 'src', 20 | image: 'xlink:href' 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /build/webpack.base.conf.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const path = require('path') 3 | const utils = require('./utils') 4 | const config = require('../config') 5 | const vueLoaderConfig = require('./vue-loader.conf') 6 | 7 | function resolve (dir) { 8 | return path.join(__dirname, '..', dir) 9 | } 10 | 11 | 12 | 13 | module.exports = { 14 | context: path.resolve(__dirname, '../'), 15 | entry: { 16 | app: './src/main.js' 17 | }, 18 | output: { 19 | path: config.build.assetsRoot, 20 | filename: '[name].js', 21 | publicPath: process.env.NODE_ENV === 'production' 22 | ? config.build.assetsPublicPath 23 | : config.dev.assetsPublicPath 24 | }, 25 | resolve: { 26 | extensions: ['.js', '.vue', '.json'], 27 | alias: { 28 | 'vue$': 'vue/dist/vue.esm.js', 29 | '@': resolve('src'), 30 | } 31 | }, 32 | module: { 33 | rules: [ 34 | { 35 | test: /\.vue$/, 36 | loader: 'vue-loader', 37 | options: vueLoaderConfig 38 | }, 39 | { 40 | test: /\.js$/, 41 | loader: 'babel-loader', 42 | include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')] 43 | }, 44 | { 45 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, 46 | loader: 'url-loader', 47 | options: { 48 | limit: 10000, 49 | name: utils.assetsPath('img/[name].[hash:7].[ext]') 50 | } 51 | }, 52 | { 53 | test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, 54 | loader: 'url-loader', 55 | options: { 56 | limit: 10000, 57 | name: utils.assetsPath('media/[name].[hash:7].[ext]') 58 | } 59 | }, 60 | { 61 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, 62 | loader: 'url-loader', 63 | options: { 64 | limit: 10000, 65 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]') 66 | } 67 | } 68 | ] 69 | }, 70 | node: { 71 | // prevent webpack from injecting useless setImmediate polyfill because Vue 72 | // source contains it (although only uses it if it's native). 73 | setImmediate: false, 74 | // prevent webpack from injecting mocks to Node native modules 75 | // that does not make sense for the client 76 | dgram: 'empty', 77 | fs: 'empty', 78 | net: 'empty', 79 | tls: 'empty', 80 | child_process: 'empty' 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /build/webpack.dev.conf.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const utils = require('./utils') 3 | const webpack = require('webpack') 4 | const config = require('../config') 5 | const merge = require('webpack-merge') 6 | const path = require('path') 7 | const baseWebpackConfig = require('./webpack.base.conf') 8 | const CopyWebpackPlugin = require('copy-webpack-plugin') 9 | const HtmlWebpackPlugin = require('html-webpack-plugin') 10 | const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') 11 | const portfinder = require('portfinder') 12 | 13 | const HOST = process.env.HOST 14 | const PORT = process.env.PORT && Number(process.env.PORT) 15 | 16 | const devWebpackConfig = merge(baseWebpackConfig, { 17 | module: { 18 | rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true }) 19 | }, 20 | // cheap-module-eval-source-map is faster for development 21 | devtool: config.dev.devtool, 22 | 23 | // these devServer options should be customized in /config/index.js 24 | devServer: { 25 | clientLogLevel: 'warning', 26 | historyApiFallback: { 27 | rewrites: [ 28 | { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') }, 29 | ], 30 | }, 31 | hot: true, 32 | contentBase: false, // since we use CopyWebpackPlugin. 33 | compress: true, 34 | host: HOST || config.dev.host, 35 | port: PORT || config.dev.port, 36 | open: config.dev.autoOpenBrowser, 37 | overlay: config.dev.errorOverlay 38 | ? { warnings: false, errors: true } 39 | : false, 40 | publicPath: config.dev.assetsPublicPath, 41 | proxy: config.dev.proxyTable, 42 | quiet: true, // necessary for FriendlyErrorsPlugin 43 | watchOptions: { 44 | poll: config.dev.poll, 45 | } 46 | }, 47 | plugins: [ 48 | new webpack.DefinePlugin({ 49 | 'process.env': require('../config/dev.env') 50 | }), 51 | new webpack.HotModuleReplacementPlugin(), 52 | new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update. 53 | new webpack.NoEmitOnErrorsPlugin(), 54 | // https://github.com/ampedandwired/html-webpack-plugin 55 | new HtmlWebpackPlugin({ 56 | filename: 'index.html', 57 | template: 'index.html', 58 | inject: true 59 | }), 60 | // copy custom static assets 61 | new CopyWebpackPlugin([ 62 | { 63 | from: path.resolve(__dirname, '../static'), 64 | to: config.dev.assetsSubDirectory, 65 | ignore: ['.*'] 66 | } 67 | ]) 68 | ] 69 | }) 70 | 71 | module.exports = new Promise((resolve, reject) => { 72 | portfinder.basePort = process.env.PORT || config.dev.port 73 | portfinder.getPort((err, port) => { 74 | if (err) { 75 | reject(err) 76 | } else { 77 | // publish the new Port, necessary for e2e tests 78 | process.env.PORT = port 79 | // add port to devServer config 80 | devWebpackConfig.devServer.port = port 81 | 82 | // Add FriendlyErrorsPlugin 83 | devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({ 84 | compilationSuccessInfo: { 85 | messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`], 86 | }, 87 | onErrors: config.dev.notifyOnErrors 88 | ? utils.createNotifierCallback() 89 | : undefined 90 | })) 91 | 92 | resolve(devWebpackConfig) 93 | } 94 | }) 95 | }) 96 | -------------------------------------------------------------------------------- /build/webpack.prod.conf.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const path = require('path') 3 | const utils = require('./utils') 4 | const webpack = require('webpack') 5 | const config = require('../config') 6 | const merge = require('webpack-merge') 7 | const baseWebpackConfig = require('./webpack.base.conf') 8 | const CopyWebpackPlugin = require('copy-webpack-plugin') 9 | const HtmlWebpackPlugin = require('html-webpack-plugin') 10 | const ExtractTextPlugin = require('extract-text-webpack-plugin') 11 | const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') 12 | const UglifyJsPlugin = require('uglifyjs-webpack-plugin') 13 | 14 | const env = require('../config/prod.env') 15 | 16 | const webpackConfig = merge(baseWebpackConfig, { 17 | module: { 18 | rules: utils.styleLoaders({ 19 | sourceMap: config.build.productionSourceMap, 20 | extract: true, 21 | usePostCSS: true 22 | }) 23 | }, 24 | devtool: config.build.productionSourceMap ? config.build.devtool : false, 25 | output: { 26 | path: config.build.assetsRoot, 27 | filename: utils.assetsPath('js/[name].[chunkhash].js'), 28 | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') 29 | }, 30 | plugins: [ 31 | // http://vuejs.github.io/vue-loader/en/workflow/production.html 32 | new webpack.DefinePlugin({ 33 | 'process.env': env 34 | }), 35 | new UglifyJsPlugin({ 36 | uglifyOptions: { 37 | compress: { 38 | warnings: false 39 | } 40 | }, 41 | sourceMap: config.build.productionSourceMap, 42 | parallel: true 43 | }), 44 | // extract css into its own file 45 | new ExtractTextPlugin({ 46 | filename: utils.assetsPath('css/[name].[contenthash].css'), 47 | // Setting the following option to `false` will not extract CSS from codesplit chunks. 48 | // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack. 49 | // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, 50 | // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110 51 | allChunks: true, 52 | }), 53 | // Compress extracted CSS. We are using this plugin so that possible 54 | // duplicated CSS from different components can be deduped. 55 | new OptimizeCSSPlugin({ 56 | cssProcessorOptions: config.build.productionSourceMap 57 | ? { safe: true, map: { inline: false } } 58 | : { safe: true } 59 | }), 60 | // generate dist index.html with correct asset hash for caching. 61 | // you can customize output by editing /index.html 62 | // see https://github.com/ampedandwired/html-webpack-plugin 63 | new HtmlWebpackPlugin({ 64 | filename: config.build.index, 65 | template: 'index.html', 66 | inject: true, 67 | minify: { 68 | removeComments: true, 69 | collapseWhitespace: true, 70 | removeAttributeQuotes: true 71 | // more options: 72 | // https://github.com/kangax/html-minifier#options-quick-reference 73 | }, 74 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin 75 | chunksSortMode: 'dependency' 76 | }), 77 | // keep module.id stable when vendor modules does not change 78 | new webpack.HashedModuleIdsPlugin(), 79 | // enable scope hoisting 80 | new webpack.optimize.ModuleConcatenationPlugin(), 81 | // split vendor js into its own file 82 | new webpack.optimize.CommonsChunkPlugin({ 83 | name: 'vendor', 84 | minChunks (module) { 85 | // any required modules inside node_modules are extracted to vendor 86 | return ( 87 | module.resource && 88 | /\.js$/.test(module.resource) && 89 | module.resource.indexOf( 90 | path.join(__dirname, '../node_modules') 91 | ) === 0 92 | ) 93 | } 94 | }), 95 | // extract webpack runtime and module manifest to its own file in order to 96 | // prevent vendor hash from being updated whenever app bundle is updated 97 | new webpack.optimize.CommonsChunkPlugin({ 98 | name: 'manifest', 99 | minChunks: Infinity 100 | }), 101 | // This instance extracts shared chunks from code splitted chunks and bundles them 102 | // in a separate chunk, similar to the vendor chunk 103 | // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk 104 | new webpack.optimize.CommonsChunkPlugin({ 105 | name: 'app', 106 | async: 'vendor-async', 107 | children: true, 108 | minChunks: 3 109 | }), 110 | 111 | // copy custom static assets 112 | new CopyWebpackPlugin([ 113 | { 114 | from: path.resolve(__dirname, '../static'), 115 | to: config.build.assetsSubDirectory, 116 | ignore: ['.*'] 117 | } 118 | ]) 119 | ] 120 | }) 121 | 122 | if (config.build.productionGzip) { 123 | const CompressionWebpackPlugin = require('compression-webpack-plugin') 124 | 125 | webpackConfig.plugins.push( 126 | new CompressionWebpackPlugin({ 127 | asset: '[path].gz[query]', 128 | algorithm: 'gzip', 129 | test: new RegExp( 130 | '\\.(' + 131 | config.build.productionGzipExtensions.join('|') + 132 | ')$' 133 | ), 134 | threshold: 10240, 135 | minRatio: 0.8 136 | }) 137 | ) 138 | } 139 | 140 | if (config.build.bundleAnalyzerReport) { 141 | const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin 142 | webpackConfig.plugins.push(new BundleAnalyzerPlugin()) 143 | } 144 | 145 | module.exports = webpackConfig 146 | -------------------------------------------------------------------------------- /config/dev.env.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const merge = require('webpack-merge') 3 | const prodEnv = require('./prod.env') 4 | 5 | module.exports = merge(prodEnv, { 6 | NODE_ENV: '"development"' 7 | }) 8 | -------------------------------------------------------------------------------- /config/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | // Template version: 1.3.1 3 | // see http://vuejs-templates.github.io/webpack for documentation. 4 | 5 | const path = require('path') 6 | 7 | module.exports = { 8 | dev: { 9 | 10 | // Paths 11 | assetsSubDirectory: 'static', 12 | assetsPublicPath: '/', 13 | proxyTable: {}, 14 | 15 | // Various Dev Server settings 16 | host: 'localhost', // can be overwritten by process.env.HOST 17 | port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined 18 | autoOpenBrowser: false, 19 | errorOverlay: true, 20 | notifyOnErrors: true, 21 | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- 22 | 23 | 24 | /** 25 | * Source Maps 26 | */ 27 | 28 | // https://webpack.js.org/configuration/devtool/#development 29 | devtool: 'cheap-module-eval-source-map', 30 | 31 | // If you have problems debugging vue-files in devtools, 32 | // set this to false - it *may* help 33 | // https://vue-loader.vuejs.org/en/options.html#cachebusting 34 | cacheBusting: true, 35 | 36 | cssSourceMap: true 37 | }, 38 | 39 | build: { 40 | // Template for index.html 41 | index: path.resolve(__dirname, '../dist/index.html'), 42 | 43 | // Paths 44 | assetsRoot: path.resolve(__dirname, '../dist'), 45 | assetsSubDirectory: 'static', 46 | assetsPublicPath: '/', 47 | 48 | /** 49 | * Source Maps 50 | */ 51 | 52 | productionSourceMap: true, 53 | // https://webpack.js.org/configuration/devtool/#production 54 | devtool: '#source-map', 55 | 56 | // Gzip off by default as many popular static hosts such as 57 | // Surge or Netlify already gzip all static assets for you. 58 | // Before setting to `true`, make sure to: 59 | // npm install --save-dev compression-webpack-plugin 60 | productionGzip: false, 61 | productionGzipExtensions: ['js', 'css'], 62 | 63 | // Run the build command with an extra argument to 64 | // View the bundle analyzer report after build finishes: 65 | // `npm run build --report` 66 | // Set to `true` or `false` to always turn it on or off 67 | bundleAnalyzerReport: process.env.npm_config_report 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /config/prod.env.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | module.exports = { 3 | NODE_ENV: '"production"' 4 | } 5 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Vue+Element后台管理系统 7 | 8 | 9 |
10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my-project", 3 | "version": "1.0.0", 4 | "description": "A Vue.js project", 5 | "author": "liuzhu", 6 | "private": true, 7 | "scripts": { 8 | "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", 9 | "start": "npm run dev", 10 | "build": "node build/build.js" 11 | }, 12 | "dependencies": { 13 | "axios": "^0.18.0", 14 | "echarts": "^4.1.0", 15 | "element-ui": "^2.4.11", 16 | "moment": "^2.22.2", 17 | "normalize.css": "^8.0.1", 18 | "nprogress": "^0.2.0", 19 | "url-parse": "^1.4.4", 20 | "vue": "^2.5.21", 21 | "vue-i18n": "^8.7.0", 22 | "vue-router": "^3.0.2", 23 | "vuex": "^3.0.1" 24 | }, 25 | "devDependencies": { 26 | "autoprefixer": "^7.1.2", 27 | "babel-core": "^6.22.1", 28 | "babel-helper-vue-jsx-merge-props": "^2.0.3", 29 | "babel-loader": "^7.1.1", 30 | "babel-plugin-syntax-jsx": "^6.18.0", 31 | "babel-plugin-transform-runtime": "^6.22.0", 32 | "babel-plugin-transform-vue-jsx": "^3.5.0", 33 | "babel-preset-env": "^1.3.2", 34 | "babel-preset-stage-2": "^6.22.0", 35 | "chalk": "^2.4.2", 36 | "copy-webpack-plugin": "^4.6.0", 37 | "css-loader": "^0.28.0", 38 | "extract-text-webpack-plugin": "^3.0.0", 39 | "file-loader": "^1.1.4", 40 | "friendly-errors-webpack-plugin": "^1.6.1", 41 | "html-webpack-plugin": "^2.30.1", 42 | "node-notifier": "^5.3.0", 43 | "optimize-css-assets-webpack-plugin": "^3.2.0", 44 | "ora": "^1.2.0", 45 | "portfinder": "^1.0.20", 46 | "postcss-import": "^11.0.0", 47 | "postcss-loader": "^2.1.6", 48 | "postcss-url": "^7.2.1", 49 | "rimraf": "^2.6.3", 50 | "semver": "^5.6.0", 51 | "shelljs": "^0.7.6", 52 | "uglifyjs-webpack-plugin": "^1.3.0", 53 | "url-loader": "^0.5.8", 54 | "vue-loader": "^13.7.3", 55 | "vue-style-loader": "^3.0.1", 56 | "vue-template-compiler": "^2.5.21", 57 | "webpack": "^3.6.0", 58 | "webpack-bundle-analyzer": "^2.9.0", 59 | "webpack-dev-server": "^2.9.1", 60 | "webpack-merge": "^4.2.1" 61 | }, 62 | "engines": { 63 | "node": ">= 6.0.0", 64 | "npm": ">= 3.0.0" 65 | }, 66 | "browserslist": [ 67 | "> 1%", 68 | "last 2 versions", 69 | "not ie <= 8" 70 | ] 71 | } 72 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 18 | 19 | 22 | -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hzlshen/vue-project/74108e477990a93074ae9460db44c4ec58b76b79/src/assets/logo.png -------------------------------------------------------------------------------- /src/axios/api.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by 不动的推动者 on 2018/4/30. 3 | */ 4 | /***** 5 | * 获取数据get + 对应路由名称 6 | * 向后台传数据 store + 对应路由名称 7 | * 驼峰命名 8 | * *****/ 9 | 10 | 11 | import { fetch } from "./fetch"; //引用fetch.js 12 | import api from './url'; //引用url.js 13 | 14 | 15 | //查看用户 16 | export const lookOption = (username,password,captcha) => fetch({//lookOption是你要调用接口的名字,issuer,userId是传进来的参数 17 | //api.Hallowmas 引用url.js里面的数据 18 | url: api.Hallowmas, 19 | method: 'get',//请求方法 20 | params:{ 21 | // username,password,captcha//参数 22 | } 23 | }); 24 | //获取公司 25 | export const getCompany = (date,audit) => fetch({ 26 | url:'', 27 | method:'', 28 | params:{ 29 | date, 30 | audit 31 | } 32 | }); 33 | 34 | //订单应收获取数据 35 | export const getOrderReceivable = ()=>fetch({ 36 | url: api.commonLick, 37 | method: 'get', 38 | params: { 39 | } 40 | }); 41 | 42 | //cols title 43 | export const getCols = ()=>fetch({ 44 | url: api.cols, 45 | method: 'get', 46 | params: { 47 | } 48 | }); 49 | 50 | //审核 批量审核audit 51 | export const audit = (data)=>fetch({ 52 | url: '', 53 | methods: 'get', 54 | params: { 55 | data: data 56 | } 57 | }) 58 | 59 | 60 | 61 | 62 | 63 | //获取验证码 64 | export const getcaptchas = () => fetch('', {},'POST'); //简写 65 | 66 | //有新接口的时候像上面那样再来一次 67 | // //修改昵称接口 68 | // export function userID(name){ 69 | // return fetch({ 70 | // url:api.myself_name, 71 | // method:"put", 72 | // data:{ 73 | // nickname:name 74 | // } 75 | // }) 76 | // } 77 | // 78 | // 79 | // //取消转发赞踩接口 80 | // export function cancelForward(articleId,type){ 81 | // return fetch({ 82 | // url:api.detail_article+articleId+"/forwarded_impress", 83 | // method:"delete", 84 | // params:{ 85 | // type:type 86 | // } 87 | // }) 88 | // } 89 | 90 | //导入 91 | export const leadingIn = () => fetch('',{},'POST') 92 | -------------------------------------------------------------------------------- /src/axios/fetch.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by 不动的推动者 on 2018/4/30. 3 | */ 4 | import axios from 'axios';//引入axios 5 | 6 | export function fetch(options){ 7 | return new Promise((resolve, reject) => { 8 | const instance = axios.create({ 9 | //instance创建一个axios实例,可以自定义配置。 10 | //所有的请求都会带上这些配置,比如全局都要用的身份信息等。 11 | headers: { 12 | 'Content-Type': 'application/json', 13 | // 'token_in_header': global_.token,//token从全局变量那里传过来 14 | }, 15 | timeout:30 * 1000 // 30秒超时 16 | }); 17 | instance(options) 18 | .then(response => { //then 请求成功之后进行什么操作 19 | resolve(response);//把请求到的数据发到引用请求的地方 20 | }) 21 | .catch(error => { 22 | console.log('请求异常信息:'+error); 23 | reject(error); 24 | }); 25 | }); 26 | } 27 | -------------------------------------------------------------------------------- /src/axios/url.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by 不动的推动者 on 2018/4/30. 3 | */ 4 | export default { 5 | //接口代理配置 6 | Hallowmas:'http://jsonplaceholder.typicode.com/users', 7 | commonLick:'../static/data/localData.json', 8 | cols:'../static/data/tableCols.json', 9 | ws:'ws://baidu.com' 10 | } 11 | 12 | //区分环境或者区分服务器 13 | // let service = 'dev'; 14 | // // // let service = 'prod'; 15 | // let api = ''; 16 | // if (service === 'dev') { 17 | // /**dev开发**/ 18 | // api = 'data/localData.json'; 19 | // } else if (service === 'prod') { 20 | // /**prod部署**/ 21 | // api = '/proxy/client'; 22 | // } 23 | // 24 | // export default { 25 | // /**个人中心start**/ 26 | // //1 获取c端个人信息 POST /wx/getClientInfo 27 | // getClientInfo: `${api}/wx/getClientInfo`, 28 | // //2 获取手机注册验证码 POST /wx/getClientRegisterCode 29 | // getClientRegisterCode: `${api}/wx/getClientRegisterCode`, 30 | // //3 绑定手机号 POST /wx/clientBindMobile 31 | // clientBindMobile: `${api}/wx/clientBindMobile`, 32 | // /**个人中心end**/ 33 | // 34 | // } 35 | -------------------------------------------------------------------------------- /src/components/btnList/btnList.vue: -------------------------------------------------------------------------------- 1 | 47 | 48 | 121 | 124 | -------------------------------------------------------------------------------- /src/components/filterBox/batchAudit.vue: -------------------------------------------------------------------------------- 1 | 52 | 53 | 88 | 93 | -------------------------------------------------------------------------------- /src/components/filterBox/batchDelete.vue: -------------------------------------------------------------------------------- 1 | 56 | 57 | 88 | 91 | -------------------------------------------------------------------------------- /src/components/filterBox/batchDifferences.vue: -------------------------------------------------------------------------------- 1 | 60 | 61 | 93 | 96 | -------------------------------------------------------------------------------- /src/components/filterBox/batchStatement.vue: -------------------------------------------------------------------------------- 1 | 63 | 64 | 100 | 107 | -------------------------------------------------------------------------------- /src/components/filterBox/batchUnAudit.vue: -------------------------------------------------------------------------------- 1 | 52 | 53 | 84 | 87 | -------------------------------------------------------------------------------- /src/components/getWebSocket/getWebSocket.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 149 | 158 | 159 | 160 | -------------------------------------------------------------------------------- /src/components/head/head.vue: -------------------------------------------------------------------------------- 1 | 63 | 124 | 138 | -------------------------------------------------------------------------------- /src/components/sidebar/sidebar.vue: -------------------------------------------------------------------------------- 1 | 32 | 33 | 158 | 161 | -------------------------------------------------------------------------------- /src/components/tabs/Tabs.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 48 | 51 | -------------------------------------------------------------------------------- /src/components/tags/tags.vue: -------------------------------------------------------------------------------- 1 | 26 | 27 | 84 | 88 | -------------------------------------------------------------------------------- /src/components/template/hzlDialog.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 52 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /src/components/template/hzlInput.vue: -------------------------------------------------------------------------------- 1 | 6 | 46 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /src/components/template/hzlPage.vue: -------------------------------------------------------------------------------- 1 | 14 | 45 | 50 | 51 | -------------------------------------------------------------------------------- /src/components/template/hzlSelect.vue: -------------------------------------------------------------------------------- 1 | 13 | 46 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /src/components/template/hzlTable.vue: -------------------------------------------------------------------------------- 1 | 24 | 65 | 68 | -------------------------------------------------------------------------------- /src/components/template/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | 3 | import hzlInput from './hzlInput.vue' 4 | import hzlSelect from './hzlSelect.vue' 5 | import hzlPage from './hzlPage.vue' 6 | import hzlTable from './hzlTable.vue' 7 | import hzlDialog from './hzlDialog.vue' 8 | 9 | Vue.component('hzl-input',hzlInput); 10 | Vue.component('hzl-select',hzlSelect); 11 | Vue.component('hzl-page',hzlPage); 12 | Vue.component('hzl-table',hzlTable); 13 | Vue.component('hzl-dialog',hzlDialog); 14 | -------------------------------------------------------------------------------- /src/components/templateOne.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 40 | 43 | -------------------------------------------------------------------------------- /src/i18n/index.js: -------------------------------------------------------------------------------- 1 | import Vue from "vue"; 2 | import VueI18n from "vue-i18n"; 3 | 4 | Vue.use(VueI18n); // 全局挂载 5 | 6 | export const i18n = new VueI18n({ 7 | locale: localStorage.getItem("locale") || "en", // 从localStorage中获取 默认英文 8 | messages: { 9 | zh: require("./lan/zh"), // 中文语言包 10 | en: require("./lan/en") // 英文语言包 11 | } 12 | }); 13 | 14 | export default i18n; -------------------------------------------------------------------------------- /src/i18n/lan/en.js: -------------------------------------------------------------------------------- 1 | export const h = { 2 | system: "Background management system", 3 | full: "full-screen display", 4 | account: "myAccount", 5 | invoice: "invoice", 6 | reconciliation: "Statement", 7 | record: "recording", 8 | report: "report", 9 | setting: "Settings", 10 | login: "login", 11 | tips: "Username and password are filled in casually", 12 | administrator: "administrator", 13 | placeUser: "please enter user name", 14 | palcePass: "Please enter your password", 15 | palceCode: "please enter verification code", 16 | accounts: "accounts", 17 | password: "password", 18 | code: "Verification code" 19 | } -------------------------------------------------------------------------------- /src/i18n/lan/zh.js: -------------------------------------------------------------------------------- 1 | export const h = { 2 | system: "Vue后台管理系统", 3 | full: "全屏显示", 4 | account: "我的账户", 5 | invoice: "原始单据", 6 | reconciliation: "财务对账", 7 | record: "对账记录", 8 | report: "月结报表", 9 | setting: "系统设置", 10 | login: "登录", 11 | tips: "用户名和密码随便填", 12 | administrator: "管理员", 13 | placeUser: "请输入用户名", 14 | palcePass: "请输入密码", 15 | palceCode: "请输入验证码", 16 | accounts: "账号", 17 | password: "密码", 18 | code: "验证码" 19 | } -------------------------------------------------------------------------------- /src/images/captcha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hzlshen/vue-project/74108e477990a93074ae9460db44c4ec58b76b79/src/images/captcha.png -------------------------------------------------------------------------------- /src/images/login-bg .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hzlshen/vue-project/74108e477990a93074ae9460db44c4ec58b76b79/src/images/login-bg .png -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | // The Vue build version to load with the `import` command 2 | // (runtime-only or standalone) has been set in webpack.base.conf with an alias. 3 | /** 4 | * Created by 不动的推动者 on 2018/5/2. 5 | */ 6 | // 7 | import Vue from 'vue' 8 | import App from './App' 9 | import router from './router' 10 | import store from './store/index' 11 | import 'normalize.css' 12 | import Axios from 'axios' 13 | import Elementui from 'element-ui' 14 | import 'element-ui/lib/theme-chalk/index.css' 15 | import moment from 'moment' 16 | import echarts from 'echarts' 17 | import './components/template/index' 18 | 19 | import { i18n } from './i18n/index' //国际化 20 | 21 | Vue.use(Elementui); 22 | Vue.use(moment); 23 | Vue.config.productionTip = false; 24 | Vue.prototype.$http = Axios; 25 | Vue.prototype.$echarts = echarts 26 | 27 | import NProgress from 'nprogress' // Progress 进度条 28 | import 'nprogress/nprogress.css'// Progress 进度条样式 29 | 30 | router.beforeEach((to, from, next) => { 31 | NProgress.start() 32 | const user = localStorage.getItem('lz_userName'); 33 | const pass = localStorage.getItem('lz_passNumber'); 34 | if (!user && !pass && to.path !== '/login') { // 检查路径用户是否即将进入我们的 chart 路径 35 | next('/login'); 36 | }else{ 37 | localStorage.setItem('lz_userName', user); 38 | localStorage.setItem('lz_passNumber', pass); 39 | next() 40 | } 41 | }) 42 | router.afterEach(() => { 43 | NProgress.done() // 结束Progress 44 | }) 45 | 46 | /* eslint-disable no-new */ 47 | new Vue({ 48 | el: '#app', 49 | router, 50 | store,//使用store 51 | i18n, //使用国际化 52 | components: { App }, 53 | template: '' 54 | }) 55 | -------------------------------------------------------------------------------- /src/page/chart/chart.vue: -------------------------------------------------------------------------------- 1 | 27 | 28 | 77 | 80 | -------------------------------------------------------------------------------- /src/page/home/home.vue: -------------------------------------------------------------------------------- 1 | 21 | 22 | 51 | 54 | -------------------------------------------------------------------------------- /src/page/inquiry/BankFlow.vue: -------------------------------------------------------------------------------- 1 | 133 | 134 | 243 | 246 | -------------------------------------------------------------------------------- /src/page/inquiry/OrderReceivable.vue: -------------------------------------------------------------------------------- 1 | 68 | 69 | 193 | 196 | -------------------------------------------------------------------------------- /src/page/inquiry/SystemStatement.vue: -------------------------------------------------------------------------------- 1 | 162 | 163 | 303 | 306 | -------------------------------------------------------------------------------- /src/page/inquiry/TransactionFlow.vue: -------------------------------------------------------------------------------- 1 | 173 | 174 | 302 | 322 | -------------------------------------------------------------------------------- /src/page/login/login.vue: -------------------------------------------------------------------------------- 1 | 42 | 43 | 115 | 176 | -------------------------------------------------------------------------------- /src/page/reportForms/OrderSummary.vue: -------------------------------------------------------------------------------- 1 | 211 | 212 | 292 | 308 | -------------------------------------------------------------------------------- /src/page/reportForms/ReceivablesBalance.vue: -------------------------------------------------------------------------------- 1 | 227 | 228 | 279 | 300 | -------------------------------------------------------------------------------- /src/page/set/structure.vue: -------------------------------------------------------------------------------- 1 | 78 | 79 | 166 | 167 | 190 | -------------------------------------------------------------------------------- /src/page/set/updatePWD.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 89 | 90 | 110 | -------------------------------------------------------------------------------- /src/page/upload/upload.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 45 | 50 | -------------------------------------------------------------------------------- /src/page/verifyPlatform/VerifyBankStatement.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 15 | 18 | -------------------------------------------------------------------------------- /src/page/verifyPlatform/VerifyReceivables.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 15 | 18 | -------------------------------------------------------------------------------- /src/page/verifyPlatform/verifyAutomate.vue: -------------------------------------------------------------------------------- 1 | 103 | 104 | 186 | 213 | -------------------------------------------------------------------------------- /src/page/verifyRecord/VerifyBankStatementRecord.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 15 | 18 | -------------------------------------------------------------------------------- /src/page/verifyRecord/VerifyReceivablesRecord.vue: -------------------------------------------------------------------------------- 1 | 172 | 173 | 357 | 360 | -------------------------------------------------------------------------------- /src/router/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by 不动的推动者 on 2018/5/2. 3 | */ 4 | // 5 | import Vue from 'vue' 6 | import Router from 'vue-router' 7 | 8 | const Login = resolve => require(['../page/login/login'], resolve) 9 | const Home = resolve => require(['../page/home/home'], resolve) 10 | const Chart = resolve => require(['../page/chart/chart'], resolve) 11 | const OrderReceivable = resolve => require(['../page/inquiry/OrderReceivable'], resolve) 12 | const TransactionFlow = resolve => require(['../page/inquiry/TransactionFlow'], resolve) 13 | const SystemStatement = resolve => require(['../page/inquiry/SystemStatement'], resolve) 14 | const orderDetail = resolve => require(['../page/inquiry/children/orderDetail'],resolve) 15 | const orderAdd = resolve => require(['../page/inquiry/children/orderAdd'],resolve) 16 | const BankFlow = resolve => require(['../page/inquiry/BankFlow'], resolve) 17 | const VerifyReceivables = resolve => require(['../page/verifyPlatform/VerifyReceivables'], resolve) 18 | const VerifyBankStatement = resolve => require(['../page/verifyPlatform/VerifyBankStatement'], resolve) 19 | const VerifyReceivablesRecord = resolve => require(['../page/verifyRecord/VerifyReceivablesRecord'], resolve) 20 | const VerifyBankStatementRecord = resolve => require(['../page/verifyRecord/VerifyBankStatementRecord'], resolve) 21 | const OrderSummary = resolve => require(['../page/reportForms/OrderSummary'], resolve) 22 | const ReceivablesBalance = resolve => require(['../page/reportForms/ReceivablesBalance'], resolve) 23 | const Upload = resolve => require(['../page/upload/upload'], resolve) 24 | const Structure = resolve => require(['../page/set/structure'], resolve) 25 | const UpdatePWD = resolve => require(['../page/set/updatePWD'], resolve) 26 | const VerifyAutomate = resolve => require(['../page/verifyPlatform/verifyAutomate'], resolve) 27 | 28 | Vue.use(Router); 29 | 30 | 31 | export default new Router({ 32 | routes: [ 33 | { 34 | path: '', 35 | redirect: '/login' 36 | }, 37 | { 38 | path:'/home', 39 | component: Home, 40 | meta: { title: '自述文件' }, 41 | children: [ 42 | { //我的账户 43 | path: '/chart', 44 | component: Chart, 45 | meta: { title: '我的账户' } 46 | }, 47 | /** 48 | * inquiry 单据查询 49 | * **/ 50 | {//订单应收 51 | path: '/orderReceivable', 52 | component: OrderReceivable, 53 | meta: { title: '应收单据' }, 54 | }, 55 | {//交易流水 56 | path: '/transactionFlow', 57 | component: TransactionFlow, 58 | meta: { title: '交易流水' } 59 | }, 60 | {//系统对账单 61 | path: '/systemStatement', 62 | component: SystemStatement, 63 | meta: { title: '系统对账单' } 64 | }, 65 | {//银行流水 66 | path: '/bankFlow', 67 | component: BankFlow, 68 | meta: { title: '银行流水' } 69 | }, 70 | { 71 | path: '/orderDetail/:id', 72 | component: orderDetail, 73 | name: 'orderDetail', 74 | meta: { title: '订单详情' } 75 | }, 76 | { 77 | path: '/orderAdd', 78 | component: orderAdd, 79 | meta: { title: '订单新增' } 80 | }, 81 | /** 82 | * verifyPlatform 对账平台 83 | * **/ 84 | { 85 | path: '/verifyAutomate', 86 | component: VerifyAutomate, 87 | meta: { title: '自动对账' } 88 | }, 89 | {//对账平台 90 | path: '/verifyReceivables', 91 | component: VerifyReceivables, 92 | meta: { title: '收款对账' } 93 | }, 94 | {//银行对账 95 | path: '/verifyBankStatement', 96 | component: VerifyBankStatement, 97 | meta: { title: '银行对账' } 98 | }, 99 | 100 | /** 101 | * verifyRecord 对账记录 102 | * **/ 103 | {//银行对账单记录 104 | path: '/verifyReceivablesRecord', 105 | component: VerifyReceivablesRecord, 106 | meta: { title: '收款对账记录' } 107 | }, 108 | {//银行对账单记录 109 | path: '/verifyBankStatementRecord', 110 | component: VerifyBankStatementRecord, 111 | meta: { title: '银行对账记录' } 112 | }, 113 | /** 114 | * reportForms报表 115 | * **/ 116 | {//订单执行汇总表 117 | path: '/orderSummary', 118 | component: OrderSummary, 119 | meta: { title: '订单执行汇总表' } 120 | }, 121 | {//收款对账余额表 122 | path: '/receivablesBalance', 123 | component: ReceivablesBalance, 124 | meta: { title: '收款对账余额表' } 125 | }, 126 | { 127 | path: '/Upload', 128 | component: Upload, 129 | meta: {title: '文件上传'} 130 | }, 131 | /** 132 | * 设置 133 | * */ 134 | { 135 | path: '/Structure', 136 | component: Structure, 137 | meta: { title: '组织架构'} 138 | }, 139 | //修改密码 140 | { 141 | path: '/UpdatePWD', 142 | component: UpdatePWD, 143 | meta: { title: '修改密码'} 144 | } 145 | ] 146 | }, 147 | { 148 | path: '/login', 149 | component: Login, 150 | meta: { title: '登陆' } 151 | } 152 | ] 153 | 154 | 155 | }) 156 | -------------------------------------------------------------------------------- /src/store/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by 不动的推动者 on 2018/4/21. 3 | */ 4 | //分离vuex方便维护 5 | // # 我们组装模块并导出 store 的地方 6 | import Vue from 'vue' 7 | import Vuex from 'vuex' 8 | import actions from './modules/actions' 9 | import mutations from './modules/mutations' 10 | 11 | 12 | Vue.use(Vuex); 13 | 14 | 15 | const state = {//存储状态 16 | show: false, 17 | author: 'Wise Wrong', 18 | messages: 2, 19 | userInfo:null, //用户信息 20 | collapse:false,//折叠面板 21 | companyValue:null, //选中的厂商 22 | tags:null,//保存的 23 | company:null, //公司 24 | orderListUUid: null,//订单应收单条数据 25 | verifyStatus: 'Whole', //Tabs 切换的状态 默认是全部 26 | dialogFromAudit: false,//批量审核框 27 | dialogFromUnAudit: false,//批量反审核 28 | dialogFromDifferences: false,//批量差异对帐 29 | dialogFromDelete: false,//批量删除 30 | dialogFromStatement: false,//报表通用弹出框 31 | dialoggetWebSocket:false, //websocket 32 | } 33 | 34 | 35 | 36 | export default new Vuex.Store({ 37 | state, 38 | actions, 39 | mutations 40 | }) 41 | -------------------------------------------------------------------------------- /src/store/modules/actions.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by 不动的推动者 on 2018/5/2. 3 | */ 4 | import { 5 | COLLAPSE, 6 | COMPANY, 7 | VERIFY_STATUS 8 | }from './mutation-type' 9 | 10 | export default { 11 | getCollapse({commit}){ 12 | commit('COLLAPSE'); 13 | }, 14 | getCompanyValue({commit},companyValue) { // 提交到mutations中处理 15 | commit('COMPANY',companyValue) 16 | }, 17 | getVerifyStatus({commit},verifyStatus){ //获取 18 | commit('VERIFY_STATUS',verifyStatus) 19 | }, 20 | storeOrderListUUid({commit},orderListInfo){ //存储 21 | commit('ORDER_LIST_INFO',orderListInfo) 22 | }, 23 | dialogFromAudit({commit}){ //批量审核 24 | commit('DIALOG_FROM_AUDIT') 25 | }, 26 | dialogFromUnAudit({commit}){ //批量反深恶黑 27 | commit('DIALOG_FROM_UN_AUDIT') 28 | }, 29 | dialogFromDifferences({commit}){ //批量差异对帐 30 | commit('DIALOG_FROM_DIFFERENCES') 31 | }, 32 | dialogFromDelete({commit}){ //批量删除 33 | commit('DIALOG_FROM_DELETE') 34 | }, 35 | dialogFromStatement({commit}){//报表通用弹出层 36 | commit('DIALOG_FROM_STATEMENT') 37 | }, 38 | dialoggetWebSocket({commit}){//websocket 39 | commit('DIALOGGET_WEB_SOCKET') 40 | }, 41 | } 42 | -------------------------------------------------------------------------------- /src/store/modules/mutation-type.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by 不动的推动者 on 2018/5/2. 3 | */ 4 | // 5 | export const COLLAPSE = 'COLLAPSE' //左侧边栏隐藏状态 6 | export const COMPANY = 'COMPANY' //公司 7 | export const VERIFY_STATUS = 'VERIFY_STATUS' // 8 | export const ORDER_LIST_INFO = 'ORDER_LIST_INFO' // 9 | export const DIALOG_FROM_AUDIT = 'DIALOG_FROM_AUDIT' //批量审核框 10 | export const DIALOG_FROM_UN_AUDIT = 'DIALOG_FROM_UN_AUDIT' //批量反审核框 11 | export const DIALOG_FROM_DIFFERENCES = 'DIALOG_FROM_DIFFERENCES' //批量差异对帐 12 | export const DIALOG_FROM_DELETE = 'DIALOG_FROM_DELETE' //批量删除 13 | export const DIALOG_FROM_STATEMENT = 'DIALOG_FROM_STATEMENT' //报表通用弹出层 14 | export const DIALOGGET_WEB_SOCKET = 'DIALOGGET_WEB_SOCKET' //websocket 15 | -------------------------------------------------------------------------------- /src/store/modules/mutations.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by 不动的推动者 on 2018/5/2. 3 | */ 4 | import { 5 | COLLAPSE, 6 | COMPANY, 7 | VERIFY_STATUS, 8 | DIALOG_FROM_AUDIT, 9 | DIALOG_FROM_UN_AUDIT, 10 | DIALOG_FROM_DIFFERENCES, 11 | DIALOG_FROM_DELETE, 12 | DIALOG_FROM_STATEMENT 13 | }from './mutation-type' 14 | 15 | export default { 16 | //侧边栏 17 | ['COLLAPSE'](state) { 18 | state.collapse = !state.collapse 19 | }, 20 | //将选择的公司 21 | ['COMPANY'](state,obj) { 22 | state.companyValue = obj; 23 | }, 24 | ['VERIFY_STATUS'](state,obj){ 25 | state.verifyStatus = obj; 26 | }, 27 | ['ORDER_LIST_INFO'](state,obj){ 28 | state.orderListUUid = obj; 29 | }, 30 | ['DIALOG_FROM_AUDIT'](state){ 31 | state.dialogFromAudit = !state.dialogFromAudit; 32 | }, 33 | ['DIALOG_FROM_UN_AUDIT'](state){ 34 | state.dialogFromUnAudit = !state.dialogFromUnAudit 35 | }, 36 | ['DIALOG_FROM_DIFFERENCES'](state){ 37 | state.dialogFromDifferences = !state.dialogFromDifferences 38 | }, 39 | ['DIALOG_FROM_DELETE'](state){ 40 | state.dialogFromDelete = !state.dialogFromDelete 41 | }, 42 | ['DIALOG_FROM_STATEMENT'](state){ 43 | state.dialogFromStatement = !state.dialogFromStatement; 44 | console.log(state.dialogFromStatement); 45 | }, 46 | ['DIALOGGET_WEB_SOCKET'](state) { //websocket 47 | state.dialoggetWebSocket = !state.dialoggetWebSocket; 48 | }, 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/style/main.css: -------------------------------------------------------------------------------- 1 | body{ 2 | font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif; 3 | } 4 | #app{ 5 | height: 100vh; 6 | width: 100vw; 7 | } 8 | 9 | ul{ 10 | margin: 0; 11 | padding: 0; 12 | } 13 | /*element-ui局部样式修改*/ 14 | .el-tabs--border-card>.el-tabs__content{ 15 | padding-top: 0; 16 | } 17 | /*Element-ui弹出层样式调整*/ 18 | .el-dialog__header{ 19 | padding: 15px 20px 10px; 20 | } 21 | .el-dialog__body{ 22 | padding: 0 20px; 23 | border-top: 1px solid #eaeefb; 24 | border-bottom: 1px solid #eaeefb; 25 | } 26 | .el-dialog__body .el-button--small{ 27 | padding: 5px 8px; 28 | } 29 | .el-dialog__body{ 30 | min-height: 160px; 31 | } 32 | .left-search-body{ 33 | border-right: 1px solid #eaeefb; 34 | min-height: 160px; 35 | padding-top: 10px; 36 | padding-right: 10px; 37 | } 38 | .right-search-body{ 39 | -webkit-flex:1; 40 | flex: 1; 41 | padding:10px; 42 | } 43 | .btn-list .el-dropdown .el-button{ 44 | /*background: #d0e9ff;*/ 45 | /*border:none;*/ 46 | /*color: #333;*/ 47 | /*font-size: 13px;*/ 48 | /*padding: 5px 6px;*/ 49 | } 50 | .el-dialog .el-input{ 51 | width: 220px; 52 | } 53 | .el-dialog .el-date-editor{ 54 | width: 220px; 55 | } 56 | .el-dialog__body{ 57 | padding-top:20px; 58 | } 59 | .el-dialog .el-form-item{ 60 | margin-bottom: 15px; 61 | } 62 | .el-dialog .el-form{ 63 | display: -webkit-flex; 64 | display: flex; 65 | flex-wrap: wrap; 66 | } 67 | .head_title{ 68 | margin: 0; 69 | padding:12px 0; 70 | } 71 | .container .el-row{ 72 | /*background: #d0e9ff;*/ 73 | height:40px; 74 | padding:5px 0; 75 | } 76 | .container table .el-button{ 77 | width: 50%; 78 | padding: 0; 79 | } 80 | .container .el-dropdown{ 81 | padding:0 8px; 82 | } 83 | .container .el-tabs{ 84 | padding-left: 0; 85 | padding-right: 0; 86 | } 87 | .verify-automate .el-form-item__label{ 88 | flex: 1; 89 | font-size: 13px; 90 | } 91 | 92 | /*****HOME*****/ 93 | #Home{ 94 | height: 100%; 95 | overflow: hidden; 96 | width: 100%; 97 | } 98 | .wrapper{ 99 | height: 100%; 100 | width: 100%; 101 | overflow: hidden; 102 | } 103 | /*main内容*/ 104 | .main{ 105 | background: #f6f6f6; 106 | position: absolute; 107 | top: 60px; 108 | left: 160px; 109 | right: 0; 110 | bottom: 0; 111 | overflow-y: auto; 112 | -webkit-transition: left .3s ease-in-out; 113 | -o-transition: left .3s ease-in-out; 114 | transition: left .3s ease-in-out; 115 | } 116 | .container{ 117 | padding: 10px 20px 0 20px; 118 | } 119 | .pagination{ 120 | margin-top: 10px; 121 | } 122 | .verify-automate .el-dialog__body{ 123 | min-height: 35px; 124 | } 125 | .verify-automate .el-dialog__footer{ 126 | padding: 10px 20px 10px; 127 | } 128 | /*标题*/ 129 | .container h2{ 130 | margin:10px 0; 131 | } 132 | /*设置边框角度和阴影*/ 133 | .container>div{ 134 | background: #fff; 135 | border-radius: 10px; 136 | box-shadow: 0 1px 3px rgba(26,26,26,.1); 137 | -webkit-box-sizing: border-box; 138 | -moz-box-sizing: border-box; 139 | box-sizing: border-box; 140 | padding:0 20px 10px; 141 | 142 | } 143 | /*路由跳转动画*/ 144 | .move-enter-active, 145 | .move-leave-active { 146 | transition: opacity .5s; 147 | } 148 | .move-enter, 149 | .move-leave { 150 | opacity: 0; 151 | } 152 | 153 | 154 | /*****HEADER 头部*****/ 155 | header{ 156 | display: flex; 157 | position: relative; 158 | width: 100%; 159 | height: 60px; 160 | line-height:60px; 161 | font-size: 22px; 162 | color: #fff; 163 | background-color: #24292e; 164 | -webkit-transition: all .3s ; 165 | -moz-transition: all .3s ; 166 | transition:all .3s ; 167 | 168 | } 169 | .collapse-btn{ 170 | float: left; 171 | height: 100%; 172 | padding:0 20px; 173 | cursor: pointer; 174 | } 175 | .top-nav{ 176 | display: flex; 177 | -webkit-box-flex:1; 178 | flex:1; 179 | justify-content: flex-end; 180 | } 181 | .top-nav>div{ 182 | cursor: pointer; 183 | margin-right: 40px; 184 | } 185 | /*厂商*/ 186 | .company{ 187 | margin-left: 15px; 188 | } 189 | /*消息*/ 190 | .news{ 191 | position: relative; 192 | } 193 | .msg{ 194 | background-color: #d76662; 195 | border-radius: 50%; 196 | position: absolute; 197 | top: 50%; 198 | right: 0; 199 | height: 8px; 200 | width: 8px; 201 | margin-top: -10px; 202 | margin-right: -5px; 203 | } 204 | /*退出or设置*/ 205 | .head .el-dropdown{ 206 | color: #fff; 207 | font-size: 20px; 208 | } 209 | 210 | 211 | /*****SIDEBAR左侧边栏*****/ 212 | #sidebar-left{ 213 | display: inline-block; 214 | height: 100%; 215 | } 216 | #sidebar-left>ul{ 217 | height: 100%; 218 | } 219 | .el-menu-vertical-demo:not(.el-menu--collapse) { 220 | width: 160px; 221 | min-height: 400px; 222 | } 223 | .content-collapse{ 224 | left:64px; 225 | } 226 | 227 | /*****HEAD_SEARCH 搜索*****/ 228 | .head_search{ 229 | align-items: center; 230 | display: -webkit-flex; 231 | display: flex; 232 | } 233 | .head_search .head_title{ 234 | -webkit-flex: 1; 235 | flex: 1; 236 | margin: 0; 237 | padding: 0; 238 | } 239 | .search{ 240 | cursor: pointer; 241 | } 242 | .search-contain{ 243 | display: -webkit-flex; 244 | display: flex; 245 | } 246 | .search .el-button{ 247 | padding-bottom: 5px; 248 | } 249 | 250 | 251 | /*****TAGS 顶部标签 *****/ 252 | .tags{ 253 | display: -webkit-flex; 254 | display: flex; 255 | align-items: center; 256 | background: #fff; 257 | height: 30px; 258 | } 259 | .tags .tag-box{ 260 | -webkit-flex: 1; 261 | flex: 1; 262 | } 263 | .tags ul{ 264 | align-content: center; 265 | display: -webkit-flex; 266 | display: flex; 267 | padding-top: 2px; 268 | } 269 | .tags li{ 270 | align-items: center; 271 | border-radius: 4px; 272 | box-sizing: border-box; 273 | -webkit-box-sizing: border-box; 274 | border: 1px solid rgba(64,158,255,.2); 275 | /* background-color: #7CBCE8; */ 276 | cursor: pointer; 277 | display: -webkit-flex; 278 | display: flex; 279 | font-size: 12px; 280 | height: 26px; 281 | list-style: none; 282 | line-height: 26px; 283 | margin:0 6px; 284 | padding: 0 6px; 285 | white-space: nowrap; 286 | -webkit-transition: all .5s ease-in; 287 | -moz-transition: all .5s ease-in; 288 | transition: all .5s ease-in; 289 | } 290 | .tags li a{ 291 | display: block; 292 | color: #24292e; 293 | text-decoration: none; 294 | } 295 | /*关闭标签按钮*/ 296 | .tag-close-box .el-dropdown span{ 297 | color: #24292e; 298 | cursor: pointer; 299 | font-size: 14px; 300 | margin-right: 10px; 301 | } 302 | /*选中状态*/ 303 | .tags li.active{ 304 | background: #24292e; 305 | } 306 | .tags li.active a{ 307 | color: #fff; 308 | } 309 | /*删除*/ 310 | .tag_delete{ 311 | border-radius: 50%; 312 | color: #fff; 313 | display: inline-block; 314 | height: 16px; 315 | line-height: 16px; 316 | width: 16px; 317 | margin-left: 3px; 318 | text-align: center; 319 | -webkit-transition: all .2s ease-in; 320 | -moz-transition: all .2s ease-in; 321 | transition: all .2s ease-in; 322 | 323 | } 324 | .tag_delete:hover{ 325 | background: #24292e; 326 | color: #fff; 327 | 328 | } 329 | .tags .active .tag_delete:hover { 330 | background: #fff; 331 | color: #24292e; 332 | } 333 | 334 | /*****CHART系统首页*****/ 335 | 336 | 337 | 338 | 339 | /*****INQUIRY单据查询*****/ 340 | 341 | 342 | /*orderReceivable订单应收*/ 343 | /*修改订单应收页面element-ui td样式*/ 344 | .bill{ 345 | height: 100%; 346 | /*padding:30px;*/ 347 | background: #fff; 348 | } 349 | .el-row{ 350 | margin-bottom: 15px; 351 | } 352 | 353 | table .cell{ 354 | text-align: center; 355 | } 356 | 357 | table .el-button+.el-button{ 358 | padding:5px 0 ; 359 | margin-left: 0; 360 | } 361 | .el-table td{ 362 | padding:4px 0; 363 | } 364 | /*订单新增or订单修改*/ 365 | .order-detail .el-tabs,.order-add .el-tabs{ 366 | min-height:334px; 367 | } 368 | .order-detail .el-tabs .btn-wrap,.order-add .el-tabs .btn-wrap{ 369 | margin:10px 0; 370 | } 371 | .order-detail .el-row,.order-add .el-row{ 372 | margin-bottom: 20px; 373 | } 374 | .order-detail .grid-content,.order-add .grid-content { 375 | display: -ms-flexbox; 376 | display:-webkit-flex; 377 | display: flex; 378 | align-items: center; 379 | border-radius: 4px; 380 | min-height: 36px; 381 | } 382 | .order-detail .grid-content>span,.order-add .grid-content>span{ 383 | display: block; 384 | font-size:13px; 385 | margin-right: 10px; 386 | min-width:90px; 387 | text-align: right; 388 | } 389 | .order-detail .grid-content .el-input,.order-add .grid-content .el-input{ 390 | -webkit-flex:1; 391 | -ms-flex:1; 392 | flex: 1; 393 | max-width:194px; 394 | } 395 | 396 | /*右侧栏*/ 397 | .el-submenu__title i{ 398 | color: #fff!important; 399 | } 400 | .el-menu-item i{ 401 | color: #fff!important; 402 | } 403 | 404 | -------------------------------------------------------------------------------- /static/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hzlshen/vue-project/74108e477990a93074ae9460db44c4ec58b76b79/static/.gitkeep -------------------------------------------------------------------------------- /static/data/tableCols.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "prop": "", 4 | "label": "", 5 | "width": "60", 6 | "type":"selection" 7 | }, 8 | { 9 | "prop": "billNo", 10 | "label": "单据编号", 11 | "width": "200" 12 | }, 13 | { 14 | "prop": "platform", 15 | "label": "平台", 16 | "width": "200" 17 | }, 18 | { 19 | "prop": "orderNo", 20 | "label": "平台订单号", 21 | "width": "250" 22 | }, 23 | { 24 | "prop": "totalAmount", 25 | "label": "总金额", 26 | "width": "80" 27 | }, 28 | { 29 | "prop": "status", 30 | "label": "单据状态", 31 | "width": "90" 32 | }, 33 | { 34 | "prop": "businessDate", 35 | "label": "业务日期", 36 | "width": "110" 37 | }, 38 | { 39 | "prop": "settleStatus", 40 | "label": "对账状态", 41 | "width": "110" 42 | }, 43 | { 44 | "prop": "settleAmount", 45 | "label": "已对账金额", 46 | "width": "110" 47 | }, 48 | { 49 | "prop": "unsettleAmount", 50 | "label": "未对账金额", 51 | "width": "110" 52 | }, 53 | { 54 | "prop": "differenceProcessingStatus", 55 | "label": "差异处理状态", 56 | "width": "110" 57 | }, 58 | { 59 | "prop": "differenceProcessingAmount", 60 | "label": "差异处理金额", 61 | "width": "110" 62 | }, 63 | { 64 | "prop": "differenceProcessingRamarks", 65 | "label": "差异处理原因", 66 | "width": "130" 67 | }, 68 | { 69 | "prop": "reconStatus", 70 | "label": "退款状态", 71 | "width": "110" 72 | }, 73 | { 74 | "prop": "unsettlementMoney", 75 | "label": "未退款金额", 76 | "width": "110" 77 | }, 78 | { 79 | "prop": "settlementMoney", 80 | "label": "已退款金额", 81 | "width": "110" 82 | }, 83 | { 84 | "prop": "orderType", 85 | "label": "单据类型", 86 | "width": "110", 87 | "type":"" 88 | }, 89 | { 90 | "prop": "orderTotalAmount", 91 | "label": "订单总金额", 92 | "width": "110" 93 | }, 94 | { 95 | "prop": "commission", 96 | "label": "佣金", 97 | "width": "110" 98 | }, 99 | { 100 | "prop": "integral", 101 | "label": "积分", 102 | "width": "110" 103 | }, 104 | { 105 | "prop": "platformCoupon", 106 | "label": "平台优惠卷", 107 | "width": "110" 108 | }, 109 | { 110 | "prop": "companyCoupon", 111 | "label": "公司优惠卷", 112 | "width": "110" 113 | }, 114 | { 115 | "prop": "insurance", 116 | "label": "保险", 117 | "width": "110" 118 | }, 119 | { 120 | "prop": "freight", 121 | "label": "运费", 122 | "width": "110" 123 | }, 124 | { 125 | "prop": "sellerPayment", 126 | "label": "买家支付金额", 127 | "width": "120" 128 | } 129 | ] --------------------------------------------------------------------------------