manage-client 3.2.127 → 3.2.128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/build/dev-server.js +1 -1
  2. package/build/webpack.base.conf.js +16 -17
  3. package/build/webpack.prod.conf.js +106 -23
  4. package/package.json +9 -4
  5. package/src/ManageHome.js +269 -269
  6. package/src/components/SellReport/ManageBusSummary.vue +3 -3
  7. package/src/components/SellReport/MarketAnjianChuli.vue +228 -0
  8. package/src/components/SellReport/MarketAnjianSituation.vue +228 -0
  9. package/src/components/SellReport/MarketanjianStyle.vue +228 -0
  10. package/src/components/sale/businessquery/BalanceTable.vue +5 -1
  11. package/src/components/sale/businessquery/CollectManage.vue +1 -3
  12. package/src/components/sale/businessquery/CommunityPaymen.vue +2 -2
  13. package/src/components/sale/businessquery/GroupChargeQuery.vue +4 -2
  14. package/src/components/sale/businessquery/MoveMeterQuery.vue +1 -1
  15. package/src/components/sale/businessquery/ReceiptQuery.vue +5 -7
  16. package/src/components/sale/businessquery/overDueQuery.vue +1 -1
  17. package/src/components/sale/config/exportConfig.js +2 -1
  18. package/src/components/sale/resourcequery/LoginQuery.vue +2 -1
  19. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +1 -1
  20. package/src/components/valueaddinfo/valueAddCountQuery.vue +2 -2
  21. package/src/components/valueaddinfo/valueAddUserQuery.vue +1 -1
  22. package/src/components/webmeter/WebmeterQuery.vue +3 -3
  23. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +5 -11
  24. package/src/filiale/liaoyuan/exportConfig.js +2 -1
  25. package/src/filiale/macheng/MonthGasQuery.vue +2 -2
  26. package/src/filiale/macheng/RecordInfoQuery.vue +2 -2
  27. package/src/filiale/macheng/WebmeterSettlementAnalysis.vue +367 -0
  28. package/src/filiale/macheng/sale.js +2 -1
  29. package/src/filiale/qianneng/exportConfig.js +1 -1
  30. package/src/filiale/qingtongxia/RecordInfoQuery.vue +988 -988
  31. package/src/filiale/wuhai/ChargeQuery.vue +8 -8
  32. package/src/main.js +66 -66
  33. package/src/newmanage.js +535 -535
  34. package/src/reportManage.js +584 -572
  35. package/src/saleManage.js +595 -595
  36. package/src/webmeterManage.js +104 -100
@@ -81,7 +81,7 @@ var proxyTable = {
81
81
  target: 'http://127.0.0.1:8080'
82
82
  },
83
83
  '/rs': {
84
- target: bendi
84
+ target: fuwu
85
85
  }
86
86
  }
87
87
 
@@ -1,13 +1,13 @@
1
1
  var path = require('path')
2
2
  var cssLoaders = require('./css-loaders')
3
- var projectRoot = path.resolve(__dirname, '../')
3
+
4
4
  module.exports = {
5
5
  entry: {
6
6
  app: './src/main.js'
7
7
  },
8
8
  output: {
9
- path: path.resolve(__dirname, '../dist/static'),
10
- publicPath: 'static/',
9
+ path: path.resolve(__dirname, '../dist/mergeUser'),
10
+ publicPath: 'mergeUser/',
11
11
  filename: '[name].js'
12
12
  },
13
13
  resolve: {
@@ -15,8 +15,7 @@ module.exports = {
15
15
  fallback: [path.join(__dirname, '../node_modules')],
16
16
  alias: {
17
17
  'src': path.resolve(__dirname, '../src'),
18
- 'test': path.resolve(__dirname, '../test'),
19
- '@src': path.resolve('src')
18
+ 'test': path.resolve(__dirname, '../test')
20
19
  }
21
20
  },
22
21
  resolveLoader: {
@@ -26,23 +25,23 @@ module.exports = {
26
25
  loaders: [
27
26
  {
28
27
  test: /\.vue$/,
29
- loader: 'vue-loader'
28
+ loader: 'vue'
30
29
  },
31
30
  {
32
31
  test: /\.js$/,
33
32
  loader: 'babel',
34
33
  include: [
35
- `${projectRoot}\\src`,
36
- `${projectRoot}\\build`,
37
- `${projectRoot}\\examples`,
38
- `${projectRoot}\\test`,
39
- `${projectRoot}\\node_modules\\vue-client\\src`,
40
- `${projectRoot}\\node_modules\\vue-strap\\src`,
41
- `${projectRoot}\\node_modules\\system-clients\\src`,
42
- `${projectRoot}\\node_modules\\sale-client\\src`,
43
- `${projectRoot}\\node_modules\\sale-client\\node_modules`,
44
- `${projectRoot}\\node_modules\\ldap-clients\\src`,
45
- ]
34
+ /src/,
35
+ /build/,
36
+ /examples/,
37
+ /singlepage/,
38
+ /test/,
39
+ /node_modules\/vue-client\/src/,
40
+ /node_modules\/vue-strap\/src/
41
+ ],
42
+ options: {
43
+ presets: ['es2015']
44
+ }
46
45
  },
47
46
  {
48
47
  test: /\.json$/,
@@ -1,24 +1,83 @@
1
- var webpack = require('webpack')
2
- var merge = require('webpack-merge')
3
- var baseConfig = require('./webpack.base.conf')
4
- var cssLoaders = require('./css-loaders')
5
- var ExtractTextPlugin = require('extract-text-webpack-plugin')
6
- var HtmlWebpackPlugin = require('html-webpack-plugin')
1
+ const webpack = require('webpack')
2
+ const merge = require('webpack-merge')
3
+ const baseConfig = require('./webpack.base.conf')
4
+ const cssLoaders = require('./css-loaders')
5
+ const ExtractTextPlugin = require('extract-text-webpack-plugin')
6
+ // const HtmlWebpackPlugin = require('html-webpack-plugin')
7
+ const FileManagerPlugin = require('filemanager-webpack-plugin')
8
+ const ParallelUglifyPlugin = require('webpack-parallel-uglify-plugin')
9
+ const path = require('path')
10
+
11
+ // 将日期时间进行格式化
12
+ function formatDate (date, format) {
13
+ // name="date" type="Date" 要格式化的日期时间
14
+ // name="format" type="String" 格式类型,形如 yyyy-MM-dd hh:mm:ss
15
+ var o = {
16
+ 'M+': date.getMonth() + 1,
17
+ // 月份
18
+ 'd+': date.getDate(),
19
+ // 日
20
+ 'h+': date.getHours(),
21
+ // 小时
22
+ 'm+': date.getMinutes(),
23
+ // 分
24
+ 's+': date.getSeconds() // 秒
25
+ }
26
+ if (/(y+)/.test(format)) format = format.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length))
27
+ for (var k in o) if (new RegExp('(' + k + ')').test(format)) format = format.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
28
+ return format
29
+ }
30
+ const timeStamp = formatDate(new Date(), 'yyyy-MM-dd-hh-mm-ss')
31
+ console.log('开始打包:', timeStamp)
32
+ console.log('入口:', process.env.VUE_APP_ENTRY)
33
+ // 单个入口打包压缩配置
34
+ let onEndParam = {
35
+ copy: [
36
+ {source: './package.json', destination: './lib/package_' + timeStamp + '.json'}
37
+ ],
38
+ archive: [
39
+ { source: './lib', destination: './' + process.env.VUE_APP_ENTRY + '_lib' + timeStamp + '.zip' }
40
+ ]
41
+ }
42
+ if (process.env.VUE_APP_SINGLE !== 'true') {
43
+ onEndParam = {}
44
+ // 多个一起打包, 最后一个在压缩
45
+ if (process.env.VUE_APP_BUILDEND === 'true') {
46
+ onEndParam = {
47
+ copy: [
48
+ {source: './package.json', destination: './lib/package_' + timeStamp + '.json'}
49
+ ],
50
+ archive: [
51
+ { source: './lib', destination: './manage_lib' + timeStamp + '.zip' }
52
+ ]
53
+ }
54
+ }
55
+ }
7
56
 
8
57
  // whether to generate source map for production files.
9
58
  // disabling this can speed up the build.
10
- var SOURCE_MAP = true
59
+ const SOURCE_MAP = false
11
60
 
12
61
  module.exports = merge(baseConfig, {
62
+ externals: {
63
+ 'vue-client': 'vue-client',
64
+ 'system-clients': 'system-clients',
65
+ 'vue': 'vue'
66
+ },
13
67
  stats: {
14
68
  children: false
15
69
  },
16
70
  devtool: SOURCE_MAP ? '#source-map' : false,
71
+ entry: {
72
+ app: './src/' + process.env.VUE_APP_ENTRY + '.js'
73
+ },
17
74
  output: {
18
75
  // naming output files with hashes for better caching.
19
76
  // dist/index.html will be auto-generated with correct URLs.
20
- filename: '[name][chunkhash].js',
21
- chunkFilename: '[id].[chunkhash].js'
77
+ publicPath: 'library/manage/' + process.env.VUE_APP_ENTRY + '/lib/',
78
+ path: path.resolve(__dirname, '../lib/' + process.env.VUE_APP_ENTRY + '/lib'),
79
+ filename: 'lib.js',
80
+ libraryTarget: 'umd' // 不管在commonJS环境还是在AMD环境,能让任何形式引入都可以引入
22
81
  },
23
82
  vue: {
24
83
  loaders: cssLoaders({
@@ -33,28 +92,52 @@ module.exports = merge(baseConfig, {
33
92
  NODE_ENV: '"production"'
34
93
  }
35
94
  }),
36
- new webpack.optimize.UglifyJsPlugin({
37
- compress: {
38
- warnings: false
95
+ new ParallelUglifyPlugin({
96
+ // 用作缓存的可选绝对路径。如果未提供,则不使用缓存。
97
+ // cacheDir: '.cache/',
98
+ uglifyJS: {
99
+ output: {
100
+ // 是否保留代码中的注释,默认为保留
101
+ comments: false
102
+ },
103
+ // 是否在UglifyJS删除没有用到的代码时输出警告信息,默认为false
104
+ warnings: false,
105
+ compress: {
106
+ // 是否删除代码中所有的console语句,默认为false
107
+ drop_console: true,
108
+ // 是否内嵌虽然已经定义了,但是只用到一次的变量, 默认值false
109
+ collapse_vars: true,
110
+ // 是否提取出现了多次但是没有定义成变量去引用的静态值,默认为false
111
+ reduce_vars: true
112
+ }
39
113
  }
40
114
  }),
115
+ // new webpack.optimize.UglifyJsPlugin({
116
+ // compress: {
117
+ // warnings: false
118
+ // }
119
+ // }),
41
120
  new webpack.optimize.OccurenceOrderPlugin(),
42
121
  // extract css into its own file
43
122
  new ExtractTextPlugin('[name].css'),
44
123
  // generate dist index.html with correct asset hash for caching.
45
124
  // you can customize output by editing /index.html
46
125
  // see https://github.com/ampedandwired/html-webpack-plugin
47
- new HtmlWebpackPlugin({
48
- filename: '../index.html',
49
- template: 'index.html',
50
- inject: true,
51
- minify: {
52
- removeComments: true,
53
- collapseWhitespace: true,
54
- removeAttributeQuotes: true
55
- // more options:
56
- // https://github.com/kangax/html-minifier#options-quick-reference
57
- }
126
+ // new HtmlWebpackPlugin({
127
+ // filename: '../index.html',
128
+ // template: 'index.html',
129
+ // inject: true,
130
+ // minify: {
131
+ // removeComments: true,
132
+ // collapseWhitespace: true,
133
+ // removeAttributeQuotes: true
134
+ // // more options:
135
+ // // https://github.com/kangax/html-minifier#options-quick-reference
136
+ // }
137
+ // }),
138
+ // 打包文件压缩
139
+ new FileManagerPlugin({
140
+ onEnd: onEndParam
58
141
  })
59
142
  ]
60
143
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.127",
3
+ "version": "3.2.128",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -32,6 +32,7 @@
32
32
  "eventsource-polyfill": "^0.9.6",
33
33
  "express": "^4.13.3",
34
34
  "extract-text-webpack-plugin": "^1.0.1",
35
+ "filemanager-webpack-plugin": "^2.0.5",
35
36
  "file-loader": "^0.8.4",
36
37
  "function-bind": "^1.0.2",
37
38
  "html-webpack-plugin": "^2.8.1",
@@ -66,7 +67,7 @@
66
67
  "system-clients": "3.1.89-20",
67
68
  "url-loader": "^0.5.7",
68
69
  "vue-amap": "0.5.10",
69
- "vue-client": "1.24.50-1",
70
+ "vue-client": "1.24.51",
70
71
  "vue-hot-reload-api": "^1.2.0",
71
72
  "vue-html-loader": "^1.0.0",
72
73
  "vue-loader": "8.2.1",
@@ -78,14 +79,18 @@
78
79
  "webpack": "1.12.2",
79
80
  "webpack-dev-middleware": "^1.4.0",
80
81
  "webpack-hot-middleware": "^2.6.0",
81
- "webpack-merge": "^0.8.3"
82
+ "webpack-merge": "^0.8.3",
83
+ "webpack-parallel-uglify-plugin": "^1.0.0"
82
84
  },
83
85
  "scripts": {
84
86
  "unit": "karma start test/unit/karma.conf.js --single-run",
85
87
  "example": "node build/example-server.js",
86
88
  "dev": "node build/dev-server.js",
87
89
  "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
88
- "build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
90
+ "build": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=saleManage webpack --progress --hide-modules --config build/webpack.prod.conf.js && cross-env VUE_APP_ENTRY=reportManage webpack --progress --hide-modules --config build/webpack.prod.conf.js && cross-env VUE_APP_BUILDEND=true VUE_APP_ENTRY=webmeterManage webpack --progress --hide-modules --config build/webpack.prod.conf.js",
91
+ "buildSaleManage": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=saleManage VUE_APP_SINGLE=true webpack --progress --hide-modules --config build/webpack.prod.conf.js",
92
+ "buildReportManage": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=reportManage VUE_APP_SINGLE=true webpack --progress --hide-modules --config build/webpack.prod.conf.js",
93
+ "buildWebmeterManage": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=webmeterManage VUE_APP_SINGLE=true webpack --progress --hide-modules --config build/webpack.prod.conf.js",
89
94
  "e2e": "node test/e2e/runner.js",
90
95
  "release": "bash build/release.sh"
91
96
  },