sale-client 3.4.124 → 3.4.125-jb

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 (100) hide show
  1. package/build/dev-server.js +157 -157
  2. package/package.json +116 -116
  3. package/src/App.vue +48 -3
  4. package/src/components/FilesManage/MeterinfoTest.vue +0 -4
  5. package/src/components/FilesManage/UserDeviceInfoTest.vue +3 -3
  6. package/src/components/SellGasCharge/ChargeCancel/CardMeterChargeCancel.vue +1 -1
  7. package/src/components/charge/ChargeList.vue +2 -2
  8. package/src/components/charge/ChargeManage.vue +1 -1
  9. package/src/components/charge/business/IOTMeterCenter.vue +2 -6
  10. package/src/components/charge/business/PriceChangeCompensation/CompensationManage.vue +1 -3
  11. package/src/components/charge/business/PriceChangeCompensation/JbCompensation.vue +1 -1
  12. package/src/components/charge/business/ShowCardSellGas.vue +0 -5
  13. package/src/components/chargeNew/thirdSurplus.vue +35 -90
  14. package/src/components/common/userinfo_detail/UserBaseInfoNew.vue +2 -14
  15. package/src/components/common/userinfo_detail/iot_detail/QueryInstruct.vue +4 -2
  16. package/src/components/meterBook/MeterManger.vue +61 -61
  17. package/src/components/revenue/Common/EticketPrintAsync.vue +64 -76
  18. package/src/components/revenue/HandManager/HandManagerCard.vue +17 -16
  19. package/src/components/revenue/HandManager/MeterBookList.vue +488 -488
  20. package/src/components/revenue/HandManager/MeterBookUser.vue +702 -702
  21. package/src/components/revenue/HandManager/OverdueSet.vue +45 -45
  22. package/src/components/revenue/base/leftview/SafeCheck.vue +2 -2
  23. package/src/components/revenue/base/leftview/Userinfo.vue +60 -4
  24. package/src/components/revenue/base/leftview/meterinfodetail.vue +2 -23
  25. package/src/components/revenue/changeInsurance/InsuranceManage.vue +0 -3
  26. package/src/components/revenue/comprehen/ComprehenOperation/FeeDeduction/feeDeduction.vue +4 -15
  27. package/src/components/revenue/comprehen/ComprehenOperation/OtherGas/OtherGas.vue +348 -348
  28. package/src/components/revenue/comprehen/ComprehenOperation/OverCharge/OverUseCharge.vue +407 -407
  29. package/src/components/revenue/comprehen/Maintenance/changeMeter/changemeterOperate.vue +15 -6
  30. package/src/components/revenue/comprehen/Maintenance/hand/handListMaintain.vue +638 -638
  31. package/src/components/revenue/comprehen/handAudit/MeterReadAudit.vue +342 -342
  32. package/src/components/revenue/machineHandManage/ArrearsQuery.vue +1 -1
  33. package/src/components/revenue/machineHandManage/machineDown.vue +63 -68
  34. package/src/components/revenue/machineHandManage/machineHand.vue +2 -2
  35. package/src/components/revenue/machineHandManage/machineHandAudit.vue +3 -16
  36. package/src/filiale/gaomi/components/ShowCardSellGas.vue +0 -5
  37. package/src/filiale/gaomi/components/charge/ChargeOper.vue +2 -1
  38. package/src/filiale/jinbin/ShowCardSellGas.vue +0 -5
  39. package/src/filiale/jingwei/ShowCardSellGas.vue +0 -5
  40. package/src/filiale/macheng/FilesManageNew/UserEssentialInfoTest.vue +2 -4
  41. package/src/filiale/macheng/MessageList.vue +8 -8
  42. package/src/filiale/macheng/sale.js +0 -2
  43. package/src/filiale/qianneng/FilesManage/MeterinfoTest.vue +3 -7
  44. package/src/filiale/qianneng/revenue/comprehen/closeaccount/Batchmanage.vue +58 -58
  45. package/src/filiale/rongcheng/ShowCardSellGas.vue +0 -5
  46. package/src/filiale/rongchuang/PrintBill.vue +3 -8
  47. package/src/filiale/rongchuang/ReissueBill.vue +4 -9
  48. package/src/filiale/rongchuang/ShowCardSellGas.vue +0 -5
  49. package/src/filiale/rongchuang/sale.js +1 -3
  50. package/src/filiale/shaoguan/ShowCardSellGas.vue +0 -5
  51. package/src/filiale/tongchuan/feeDeduction.vue +4 -14
  52. package/src/main.js +1 -1
  53. package/src/plugins/CardService.js +4 -5
  54. package/src/sale.js +0 -2
  55. package/src/components/charge/business/PriceChangeCompensation/SurplusRecordDetail.vue +0 -72
  56. package/src/components/revenue/changeInsurance/InsuranceChargesDetails.vue +0 -242
  57. package/src/filiale/macheng/UserDeviceInfoTest.vue +0 -412
  58. package/src/filiale/qianneng/filemanagenew/FileUserFiles.vue +0 -743
  59. package/src/filiale/qianneng/filemanagenew/UserEssentialInfoTest.vue +0 -318
  60. package/src/filiale/qianneng/filemanagenew/UserMeterInfoTest.vue +0 -133
  61. package/src/filiale/rongchuang/Userinfo.vue +0 -176
  62. /package/src/filiale/{weinan → WEINAN}/AutomaticPurse.vue +0 -0
  63. /package/src/filiale/{weinan → WEINAN}/CardList.vue +0 -0
  64. /package/src/filiale/{weinan → WEINAN}/CardMeterCenter.vue +0 -0
  65. /package/src/filiale/{weinan → WEINAN}/CardMeterChargeCancel.vue +0 -0
  66. /package/src/filiale/{weinan → WEINAN}/ChangeMeter.vue +0 -0
  67. /package/src/filiale/{weinan → WEINAN}/ChargeList.vue +0 -0
  68. /package/src/filiale/{weinan → WEINAN}/ChargeManageNew.vue +0 -0
  69. /package/src/filiale/{weinan → WEINAN}/ChargeQueryUser.vue +0 -0
  70. /package/src/filiale/{weinan → WEINAN}/ChargeRecordQuery.vue +0 -0
  71. /package/src/filiale/{weinan → WEINAN}/DisableManage.vue +0 -0
  72. /package/src/filiale/{weinan → WEINAN}/EnableManage.vue +0 -0
  73. /package/src/filiale/{weinan → WEINAN}/FileAddressManage.vue +0 -0
  74. /package/src/filiale/{weinan → WEINAN}/FileUserAddress.vue +0 -0
  75. /package/src/filiale/{weinan → WEINAN}/HighMeter.vue +0 -0
  76. /package/src/filiale/{weinan → WEINAN}/IOTMeterCenter.vue +0 -0
  77. /package/src/filiale/{weinan → WEINAN}/MachineMeterCenter.vue +0 -0
  78. /package/src/filiale/{weinan → WEINAN}/MeterMessage.vue +0 -0
  79. /package/src/filiale/{weinan → WEINAN}/MeterinfoTest.vue +0 -0
  80. /package/src/filiale/{weinan → WEINAN}/OffGasAddGas.vue +0 -0
  81. /package/src/filiale/{weinan → WEINAN}/OtherGas.vue +0 -0
  82. /package/src/filiale/{weinan → WEINAN}/OverUseCharge.vue +0 -0
  83. /package/src/filiale/{weinan → WEINAN}/RecordCancel.vue +0 -0
  84. /package/src/filiale/{weinan → WEINAN}/RecordQueryUser.vue +0 -0
  85. /package/src/filiale/{weinan → WEINAN}/ReplaceCardManage.vue +0 -0
  86. /package/src/filiale/{weinan → WEINAN}/ShowCardSellGas.vue +0 -0
  87. /package/src/filiale/{weinan → WEINAN}/Stairinfo.vue +0 -0
  88. /package/src/filiale/{weinan → WEINAN}/TransferManage.vue +0 -0
  89. /package/src/filiale/{weinan → WEINAN}/UserBaseInfoNew.vue +0 -0
  90. /package/src/filiale/{weinan → WEINAN}/UserEssentialInfoTest.vue +0 -0
  91. /package/src/filiale/{weinan → WEINAN}/UserGeneralInfoTest.vue +0 -0
  92. /package/src/filiale/{weinan → WEINAN}/UserInfoDetailManageNew.vue +0 -0
  93. /package/src/filiale/{weinan → WEINAN}/Userinfo.vue +0 -0
  94. /package/src/filiale/{weinan → WEINAN}/gasmove.vue +0 -0
  95. /package/src/filiale/{weinan → WEINAN}/meterinfodetail.vue +0 -0
  96. /package/src/filiale/{weinan → WEINAN}/plugins/FileManageService.js +0 -0
  97. /package/src/filiale/{weinan → WEINAN}/plugins/getTimeService.js +0 -0
  98. /package/src/filiale/{weinan → WEINAN}/sale.js +0 -0
  99. /package/src/filiale/{weinan → WEINAN}/sale.js~Stashed changes +0 -0
  100. /package/src/filiale/{weinan → WEINAN}/static/mainicon//347/237/251/345/275/2421828.png" +0 -0
@@ -1,157 +1,157 @@
1
- var express = require('express')
2
- var webpack = require('webpack')
3
- var config = require('./webpack.dev.conf')
4
- var proxyMiddleware = require('http-proxy-middleware')
5
- // var httpProxy = require('http-proxy')
6
-
7
- var app = express()
8
- var compiler = webpack(config)
9
- // var proxy = httpProxy.createProxyServer()
10
-
11
- // Define HTTP proxies to your custom API backend
12
- // https://github.com/chimurai/http-proxy-middleware
13
- var bendi = 'http://183.67.41.139:8400/',bendi1 = 'http://183.67.41.139:8400/'
14
- // 公司测试服务
15
- var fuwu = 'http://183.67.41.139:8400/'
16
- //铜川正式
17
- // var fuwu = 'http://61.134.55.234:9999/'
18
- //铜川测试
19
- // var fuwu = 'http://61.134.55.234:9999/'
20
- // var fuwu = 'http://60.222.250.39:8300/'
21
- //韶关
22
- // var fuwu = 'http://119.146.1.106:8300/'
23
- // 巩义测试服务
24
- // var fuwu = 'http://192.168.0.227:8400'
25
- // 燎原测试服务
26
- // var fuwu = 'http://121.41.19.238:8400 '
27
- // var fuwu = 'http://121.41.19.238:9001/'
28
-
29
- // var fuwu = 'http://139.214.92.34:8301/'
30
-
31
- var proxyTable = {
32
- '/rs/logic/saleExport': {
33
- target: fuwu
34
- },
35
- '/rs/logic/saleGetExportProgress': {
36
- target: fuwu
37
- },
38
- '/files': {
39
- target: fuwu
40
- },
41
- // 查找资源服务数据
42
- '/rs/search': {
43
- target: fuwu
44
- },
45
- // 查找资源服务数据
46
- '/rs/logic/getLogin': {
47
- target: fuwu
48
- },
49
- // 查找资源服务数据
50
- '/rs/logic/getInitData': {
51
- target: fuwu
52
- },
53
- '/rs/logic/getSaleInitData': {
54
- target: fuwu
55
- },
56
- '/invoice':{
57
- target: fuwu
58
- },
59
- // 用户登录服务地址
60
- '/rs/user': {
61
- target: fuwu
62
- },
63
- '/rs/path/getParams': {
64
- target: fuwu
65
- },
66
- '/rs/data': {
67
- target: fuwu
68
- },
69
- '/rs/license': {
70
- target: fuwu
71
- },
72
- '/rs/db': {
73
- target: fuwu
74
- },
75
- '/excel': {
76
- target: fuwu
77
- },
78
- '/rs/config': {
79
- target: fuwu
80
- },
81
- '/rs/sql/getLicenseById': {
82
- target: fuwu
83
- },
84
- '/rs/sql/manage_getarealist': {
85
- target: fuwu
86
- },
87
- '/rs/sql/manage_getstreetlist': {
88
- target: fuwu
89
- },
90
- // '/rs/report': {
91
- // target: 'http://127.0.0.1:8079'
92
- // },
93
- '/rs/vue': {
94
- target: fuwu
95
- },
96
- '/rs': {
97
- // target: 'http://192.168.30.63:8081/'
98
- // target: 'http://127.0.0.1:8078'
99
- target:fuwu
100
- }
101
- }
102
-
103
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
104
- publicPath: config.output.publicPath,
105
- stats: {
106
- colors: true,
107
- chunks: false
108
- }
109
- })
110
-
111
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
112
- // force page reload when html-webpack-plugin template changes
113
- compiler.plugin('compilation', function (compilation) {
114
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
115
- hotMiddleware.publish({action: 'reload'})
116
- cb()
117
- })
118
- })
119
-
120
- // proxy api requests
121
- Object.keys(proxyTable).forEach(function (context) {
122
- var options = proxyTable[context]
123
- if (typeof options === 'string') {
124
- options = {target: options}
125
- }
126
- app.use(proxyMiddleware(context, options))
127
- })
128
-
129
- // handle fallback for HTML5 history API
130
- app.use(require('connect-history-api-fallback')())
131
- // app.use(function (req, res, next) {
132
- // res.header('Access-Control-Allow-Origin', '*')
133
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
134
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
135
- // res.header('X-Powered-By', '3,2,1')
136
- // res.header('Access-Control-Allow-Credentials', 'true')
137
- // res.header('Content-Type', 'application/json;charset=utf-8')
138
- // next()
139
- // })
140
-
141
- // serve webpack bundle output
142
- app.use(devMiddleware)
143
-
144
- // enable hot-reload and state-preserving
145
- // compilation error display
146
- app.use(hotMiddleware)
147
-
148
- // serve pure static assets
149
- app.use('/static', express.static('./static'))
150
-
151
- module.exports = app.listen(8089, function (err) {
152
- if (err) {
153
- console.log(err)
154
- return
155
- }
156
- console.log('Listening at http://localhost:8089')
157
- })
1
+ var express = require('express')
2
+ var webpack = require('webpack')
3
+ var config = require('./webpack.dev.conf')
4
+ var proxyMiddleware = require('http-proxy-middleware')
5
+ // var httpProxy = require('http-proxy')
6
+
7
+ var app = express()
8
+ var compiler = webpack(config)
9
+ // var proxy = httpProxy.createProxyServer()
10
+
11
+ // Define HTTP proxies to your custom API backend
12
+ // https://github.com/chimurai/http-proxy-middleware
13
+ var bendi = 'http://127.0.0.1:8080/',bendi1 = 'http://119.146.1.106:8300/'
14
+ // 公司测试服务
15
+ var fuwu = 'http://114.117.163.208:8600/#'
16
+ //铜川正式
17
+ // var fuwu = 'http://61.134.55.234:9999/'
18
+ //铜川测试
19
+ // var fuwu = 'http://61.134.55.234:9999/'
20
+ // var fuwu = 'http://60.222.250.39:8300/'
21
+ //韶关
22
+ // var fuwu = 'http://119.146.1.106:8300/'
23
+ // 巩义测试服务
24
+ // var fuwu = 'http://192.168.0.227:8400'
25
+ // 燎原测试服务
26
+ // var fuwu = 'http://121.41.19.238:8400 '
27
+ // var fuwu = 'http://121.41.19.238:9001/'
28
+
29
+ // var fuwu = 'http://139.214.92.34:8301/'
30
+
31
+ var proxyTable = {
32
+ '/rs/logic/saleExport': {
33
+ target: fuwu
34
+ },
35
+ '/rs/logic/saleGetExportProgress': {
36
+ target: fuwu
37
+ },
38
+ '/files': {
39
+ target: fuwu
40
+ },
41
+ // 查找资源服务数据
42
+ '/rs/search': {
43
+ target: fuwu
44
+ },
45
+ // 查找资源服务数据
46
+ '/rs/logic/getLogin': {
47
+ target: fuwu
48
+ },
49
+ // 查找资源服务数据
50
+ '/rs/logic/getInitData': {
51
+ target: fuwu
52
+ },
53
+ '/rs/logic/getSaleInitData': {
54
+ target: fuwu
55
+ },
56
+ '/invoice':{
57
+ target: fuwu
58
+ },
59
+ // 用户登录服务地址
60
+ '/rs/user': {
61
+ target: fuwu
62
+ },
63
+ '/rs/path/getParams': {
64
+ target: fuwu
65
+ },
66
+ '/rs/data': {
67
+ target: fuwu
68
+ },
69
+ '/rs/license': {
70
+ target: fuwu
71
+ },
72
+ '/rs/db': {
73
+ target: fuwu
74
+ },
75
+ '/excel': {
76
+ target: fuwu
77
+ },
78
+ '/rs/config': {
79
+ target: fuwu
80
+ },
81
+ '/rs/sql/getLicenseById': {
82
+ target: fuwu
83
+ },
84
+ '/rs/sql/manage_getarealist': {
85
+ target: fuwu
86
+ },
87
+ '/rs/sql/manage_getstreetlist': {
88
+ target: fuwu
89
+ },
90
+ '/rs/report': {
91
+ target: 'http://127.0.0.1:8079'
92
+ },
93
+ '/rs/vue': {
94
+ target: fuwu
95
+ },
96
+ '/rs': {
97
+ // target: 'http://192.168.30.63:8081/'
98
+ target: fuwu
99
+ // target:fuwu
100
+ }
101
+ }
102
+
103
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
104
+ publicPath: config.output.publicPath,
105
+ stats: {
106
+ colors: true,
107
+ chunks: false
108
+ }
109
+ })
110
+
111
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
112
+ // force page reload when html-webpack-plugin template changes
113
+ compiler.plugin('compilation', function (compilation) {
114
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
115
+ hotMiddleware.publish({action: 'reload'})
116
+ cb()
117
+ })
118
+ })
119
+
120
+ // proxy api requests
121
+ Object.keys(proxyTable).forEach(function (context) {
122
+ var options = proxyTable[context]
123
+ if (typeof options === 'string') {
124
+ options = {target: options}
125
+ }
126
+ app.use(proxyMiddleware(context, options))
127
+ })
128
+
129
+ // handle fallback for HTML5 history API
130
+ app.use(require('connect-history-api-fallback')())
131
+ // app.use(function (req, res, next) {
132
+ // res.header('Access-Control-Allow-Origin', '*')
133
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
134
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
135
+ // res.header('X-Powered-By', '3,2,1')
136
+ // res.header('Access-Control-Allow-Credentials', 'true')
137
+ // res.header('Content-Type', 'application/json;charset=utf-8')
138
+ // next()
139
+ // })
140
+
141
+ // serve webpack bundle output
142
+ app.use(devMiddleware)
143
+
144
+ // enable hot-reload and state-preserving
145
+ // compilation error display
146
+ app.use(hotMiddleware)
147
+
148
+ // serve pure static assets
149
+ app.use('/static', express.static('./static'))
150
+
151
+ module.exports = app.listen(8089, function (err) {
152
+ if (err) {
153
+ console.log(err)
154
+ return
155
+ }
156
+ console.log('Listening at http://localhost:8089')
157
+ })
package/package.json CHANGED
@@ -1,116 +1,116 @@
1
- {
2
- "name": "sale-client",
3
- "version": "3.4.124",
4
- "description": "收费模块前台组件",
5
- "main": "src/index.js",
6
- "scripts": {
7
- "example": "node build/example-server.js",
8
- "dev": "node build/dev-server.js",
9
- "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
10
- "unit": "karma start test/unit/karma.conf.js",
11
- "build": "rimraf dist && mkdirp dist && ncp static dist/mergeUser && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
12
- "e2e": "node test/e2e/runner.js",
13
- "release": "bash build/release.sh",
14
- "page": "rimraf dist && mkdirp dist && ncp static dist/singlepage && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.singlepage.conf.js"
15
- },
16
- "repository": {
17
- "type": "git",
18
- "url": "https://gitee.com/aote/product.git"
19
- },
20
- "dependencies": {
21
- "examples": "^0.1.0",
22
- "js-file-download": "0.4.12",
23
- "less-loader": "^2.2.3",
24
- "qrcodejs2": "0.0.2",
25
- "vue": "^1.0.17",
26
- "yarn": "^1.22.10"
27
- },
28
- "devDependencies": {
29
- "address-client": "3.0.24-70",
30
- "axios": "0.15.3",
31
- "babel-core": "^6.0.0",
32
- "babel-loader": "^6.0.0",
33
- "babel-plugin-transform-runtime": "^6.0.0",
34
- "babel-preset-es2015": "^6.0.0",
35
- "babel-preset-stage-2": "^6.0.0",
36
- "chai": "^3.5.0",
37
- "co": "^4.6.0",
38
- "connect-history-api-fallback": "^1.1.0",
39
- "compression-webpack-plugin": "1.1.2",
40
- "cross-env": "^1.0.7",
41
- "cross-spawn": "^2.1.5",
42
- "css-loader": "^0.23.0",
43
- "echarts": "^4.1.0",
44
- "eslint": "^3.19.0",
45
- "eslint-config-standard": "^10.2.1",
46
- "eslint-friendly-formatter": "^3.0.0",
47
- "eslint-loader": "^1.7.1",
48
- "eslint-plugin-html": "^3.0.0",
49
- "eslint-plugin-import": "^2.7.0",
50
- "eslint-plugin-node": "^5.2.0",
51
- "eslint-plugin-promise": "^3.4.0",
52
- "eslint-plugin-standard": "^3.0.1",
53
- "eventsource-polyfill": "^0.9.6",
54
- "express": "^4.13.3",
55
- "extract-text-webpack-plugin": "^1.0.1",
56
- "file-loader": "^0.8.4",
57
- "function-bind": "^1.0.2",
58
- "html-webpack-plugin": "^2.8.1",
59
- "http-proxy-middleware": "^0.11.0",
60
- "inject-loader": "^2.0.1",
61
- "isparta-loader": "^2.0.0",
62
- "jasmine-core": "^2.4.1",
63
- "jquery": "^3.3.1",
64
- "jsencrypt": "3.0.0-rc.1",
65
- "json-loader": "^0.5.4",
66
- "karma": "^1.4.1",
67
- "karma-chrome-launcher": "^2.2.0",
68
- "karma-coverage": "^1.1.1",
69
- "karma-mocha": "^1.3.0",
70
- "karma-sinon-chai": "^1.3.1",
71
- "karma-sourcemap-loader": "^0.3.7",
72
- "karma-spec-reporter": "0.0.31",
73
- "karma-webpack": "^2.0.2",
74
- "ldap-clients": "3.0.7",
75
- "less": "^2.7.3",
76
- "manage-client": "3.1.8-88",
77
- "mkdirp": "^0.5.1",
78
- "mocha": "^3.2.0",
79
- "moment": "2.24.0",
80
- "ncp": "^2.0.0",
81
- "nightwatch": "^0.8.18",
82
- "qrcodejs2": "0.0.2",
83
- "rimraf": "^2.5.0",
84
- "selenium-server": "2.52.0",
85
- "sinon": "^2.1.0",
86
- "sinon-chai": "^2.8.0",
87
- "style": "0.0.3",
88
- "style-loader": "^0.20.3",
89
- "system-clients": "3.2.0-2",
90
- "url-loader": "^0.5.7",
91
- "vue-client": "1.24.48",
92
- "vue-clipboard2": "0.3.1",
93
- "vue-hot-reload-api": "^1.2.0",
94
- "vue-html-loader": "^1.0.0",
95
- "vue-loader": "^8.2.1",
96
- "vue-resource": "^1.5.0",
97
- "vue-router": "^0.7.13",
98
- "vue-strap": "^1.0.9",
99
- "vue-style-loader": "^1.0.0",
100
- "vue-validator": "2.1.7",
101
- "webpack": "^1.12.2",
102
- "webpack-dev-middleware": "^1.4.0",
103
- "webpack-hot-middleware": "^2.6.0",
104
- "webpack-merge": "^0.8.3",
105
- "weixin-js-sdk": "^1.2.0"
106
- },
107
- "keywords": [
108
- "selling-clients"
109
- ],
110
- "author": "张桥",
111
- "license": "ISC",
112
- "directories": {
113
- "example": "examples",
114
- "test": "test"
115
- }
116
- }
1
+ {
2
+ "name": "sale-client",
3
+ "version": "3.4.125-jb",
4
+ "description": "收费模块前台组件",
5
+ "main": "src/index.js",
6
+ "scripts": {
7
+ "example": "node build/example-server.js",
8
+ "dev": "node build/dev-server.js",
9
+ "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
10
+ "unit": "karma start test/unit/karma.conf.js",
11
+ "build": "rimraf dist && mkdirp dist && ncp static dist/mergeUser && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
12
+ "e2e": "node test/e2e/runner.js",
13
+ "release": "bash build/release.sh",
14
+ "page": "rimraf dist && mkdirp dist && ncp static dist/singlepage && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.singlepage.conf.js"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://gitee.com/aote/product.git"
19
+ },
20
+ "dependencies": {
21
+ "examples": "^0.1.0",
22
+ "js-file-download": "0.4.12",
23
+ "less-loader": "^2.2.3",
24
+ "qrcodejs2": "0.0.2",
25
+ "vue": "^1.0.17",
26
+ "yarn": "^1.22.10"
27
+ },
28
+ "devDependencies": {
29
+ "address-client": "3.0.24-70",
30
+ "axios": "0.15.3",
31
+ "babel-core": "^6.0.0",
32
+ "babel-loader": "^6.0.0",
33
+ "babel-plugin-transform-runtime": "^6.0.0",
34
+ "babel-preset-es2015": "^6.0.0",
35
+ "babel-preset-stage-2": "^6.0.0",
36
+ "chai": "^3.5.0",
37
+ "co": "^4.6.0",
38
+ "connect-history-api-fallback": "^1.1.0",
39
+ "compression-webpack-plugin": "1.1.2",
40
+ "cross-env": "^1.0.7",
41
+ "cross-spawn": "^2.1.5",
42
+ "css-loader": "^0.23.0",
43
+ "echarts": "^4.1.0",
44
+ "eslint": "^3.19.0",
45
+ "eslint-config-standard": "^10.2.1",
46
+ "eslint-friendly-formatter": "^3.0.0",
47
+ "eslint-loader": "^1.7.1",
48
+ "eslint-plugin-html": "^3.0.0",
49
+ "eslint-plugin-import": "^2.7.0",
50
+ "eslint-plugin-node": "^5.2.0",
51
+ "eslint-plugin-promise": "^3.4.0",
52
+ "eslint-plugin-standard": "^3.0.1",
53
+ "eventsource-polyfill": "^0.9.6",
54
+ "express": "^4.13.3",
55
+ "extract-text-webpack-plugin": "^1.0.1",
56
+ "file-loader": "^0.8.4",
57
+ "function-bind": "^1.0.2",
58
+ "html-webpack-plugin": "^2.8.1",
59
+ "http-proxy-middleware": "^0.11.0",
60
+ "inject-loader": "^2.0.1",
61
+ "isparta-loader": "^2.0.0",
62
+ "jasmine-core": "^2.4.1",
63
+ "jquery": "^3.3.1",
64
+ "jsencrypt": "3.0.0-rc.1",
65
+ "json-loader": "^0.5.4",
66
+ "karma": "^1.4.1",
67
+ "karma-chrome-launcher": "^2.2.0",
68
+ "karma-coverage": "^1.1.1",
69
+ "karma-mocha": "^1.3.0",
70
+ "karma-sinon-chai": "^1.3.1",
71
+ "karma-sourcemap-loader": "^0.3.7",
72
+ "karma-spec-reporter": "0.0.31",
73
+ "karma-webpack": "^2.0.2",
74
+ "ldap-clients": "3.0.60",
75
+ "less": "^2.7.3",
76
+ "manage-client": "3.1.8-88",
77
+ "mkdirp": "^0.5.1",
78
+ "mocha": "^3.2.0",
79
+ "moment": "2.24.0",
80
+ "ncp": "^2.0.0",
81
+ "nightwatch": "^0.8.18",
82
+ "qrcodejs2": "0.0.2",
83
+ "rimraf": "^2.5.0",
84
+ "selenium-server": "2.52.0",
85
+ "sinon": "^2.1.0",
86
+ "sinon-chai": "^2.8.0",
87
+ "style": "0.0.3",
88
+ "style-loader": "^0.20.3",
89
+ "system-clients": "3.2.68",
90
+ "url-loader": "^0.5.7",
91
+ "vue-client": "1.24.93",
92
+ "vue-clipboard2": "0.3.1",
93
+ "vue-hot-reload-api": "^1.2.0",
94
+ "vue-html-loader": "^1.0.0",
95
+ "vue-loader": "^8.2.1",
96
+ "vue-resource": "^1.5.0",
97
+ "vue-router": "^0.7.13",
98
+ "vue-strap": "^1.0.9",
99
+ "vue-style-loader": "^1.0.0",
100
+ "vue-validator": "2.1.7",
101
+ "webpack": "^1.12.2",
102
+ "webpack-dev-middleware": "^1.4.0",
103
+ "webpack-hot-middleware": "^2.6.0",
104
+ "webpack-merge": "^0.8.3",
105
+ "weixin-js-sdk": "^1.2.0"
106
+ },
107
+ "keywords": [
108
+ "selling-clients"
109
+ ],
110
+ "author": "张桥",
111
+ "license": "ISC",
112
+ "directories": {
113
+ "example": "examples",
114
+ "test": "test"
115
+ }
116
+ }
package/src/App.vue CHANGED
@@ -1,16 +1,61 @@
1
1
  <template>
2
- <app-base class="bg">
2
+ <app-base class="bg" @click="isTimeOut">
3
3
  <div class='flex'>
4
4
  <article>
5
5
  <route :comp="{name: 'login'}"></route>
6
- <!--<route :comp="{name: 'change-meter-add-gas'}"></route>-->
7
6
  </article>
8
7
  </div>
9
8
  </app-base>
10
9
  </template>
11
10
 
12
11
  <script>
13
- export default {
12
+ import Vue from 'vue'
14
13
 
14
+ export default {
15
+ data () {
16
+ return {
17
+ lastTime: null, // 最后一次点击的时间
18
+ currentTime: null, // 当前点击的时间
19
+ // 获取一次不在获取控制
20
+ getConfig: false,
21
+ config: {
22
+ timeOut: 0, // 单位: 分钟
23
+ exitPrompt: '因您长时间未操作, 请重新登陆!'
24
+ },
25
+ }
26
+ },
27
+ ready () {
28
+ Vue.mmType = 'nginx'
29
+ Vue.HWQMM = [51, 150, 231, 300, 565, 708, 721, 952, 738, 560, 935, 912, 1274, 1148, 840, 1440]
30
+ },
31
+ created () {
32
+ this.lastTime = new Date().getTime()
33
+ },
34
+ methods: {
35
+ async isTimeOut () {
36
+ // 获取config配置
37
+ if (!this.getConfig && this.$login.f && this.$login.f.dir) {
38
+ await this.$getConfig(this, 'App')
39
+ this.getConfig = true
40
+ }
41
+ // 无配置,不开启
42
+ if (this.config.timeOut <= 0) return
43
+ // 记录这次点击的时间
44
+ this.currentTime = new Date().getTime()
45
+ // 判断上次最后一次点击的时间和这次点击的时间间隔是否大于超时时间
46
+ if (this.currentTime - this.lastTime > (this.config.timeOut * 60 * 1000)) {
47
+ // 如果是登录状态
48
+ if (this.$login.f.id) {
49
+ await this.$showMessage(this.config.exitPrompt)
50
+ window.location.reload()
51
+ } else {
52
+ this.lastTime = new Date().getTime()
53
+ }
54
+ } else {
55
+ // 如果在超时时间内点击,则把这次点击的时间记录覆盖掉之前存的最后一次点击的时间
56
+ this.lastTime = new Date().getTime()
57
+ }
58
+ }
15
59
  }
60
+ }
16
61
  </script>
@@ -23,10 +23,6 @@
23
23
  <input type="text" class="input_search" style="width:60%" v-model="row.f_metertitles" placeholder='表封号'
24
24
  v-next-el="{id: 'meterbase'}">
25
25
  </div>
26
- <div class="col-sm-4 form-group">
27
- <label for="f_metertitles" class="font_normal_body">表具状态</label>
28
- <input type="text" class="input_search" style="width:60%" v-model="row.f_table_state" placeholder='表具状态' disabled>
29
- </div>
30
26
  <div class="col-sm-4 form-group">
31
27
  <label for="f_meter_base" class="font_normal_body">&ensp;表&ensp;读&ensp;数</label>
32
28
  <input type="number" class="input_search" style="width:60%" v-model="row.f_meter_base" placeholder='表底数'
@@ -67,7 +67,7 @@
67
67
  <datepicker placeholder="安装日期" style="width: 60%"
68
68
  v-model="row.f_input_date"
69
69
  :value.sync="row.f_input_date"
70
- :format="'yyyy-MM-dd'">
70
+ :format="'yyyy-MM-dd HH:mm:ss'">
71
71
  </datepicker>
72
72
  </div>
73
73
  </div>
@@ -144,7 +144,7 @@
144
144
  <datepicker placeholder="连接管安装日期" style="width: 60%"
145
145
  v-model="row.f_pipeinstall_date"
146
146
  :value.sync="row.f_pipeinstall_date"
147
- :format="'yyyy-MM-dd'">
147
+ :format="'yyyy-MM-dd HH:mm:ss'">
148
148
  </datepicker>
149
149
  </div>
150
150
  </div>
@@ -154,7 +154,7 @@
154
154
  <datepicker placeholder="连接管到期日期" style="width: 60%"
155
155
  v-model="row.f_pipeexpire_date"
156
156
  :value.sync="row.f_pipeexpire_date"
157
- :format="'yyyy-MM-dd'">
157
+ :format="'yyyy-MM-dd HH:mm:ss'">
158
158
  </datepicker>
159
159
  </div>
160
160
  </div>
@@ -101,7 +101,7 @@
101
101
  </div>
102
102
  </form>
103
103
  <div style="text-align:right;margin-right:50px;height: auto">
104
- <button class="btn btn-success width-60" @click="cancel()" :disabled="isToday" v-if="jurisdiction.includes('购气撤销')">购气撤销</button>
104
+ <button class="btn btn-default width-60" @click="cancel()" :disabled="isToday" v-if="jurisdiction.includes('购气撤销')">购气撤销</button>
105
105
  <button class="button_clear" @click="clean()">取消</button>
106
106
  </div>
107
107