apply-clients 6.0.3 → 6.0.4
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.
- package/build/dev-server.js +72 -72
- package/package.json +1 -1
- package/src/components/apply/base/rightview/InstallCardList2.vue +267 -268
- package/src/components/apply/base/rightview/carddetail/BuildFeeDetail2.vue +77 -77
- package/src/components/apply/base/rightview/carddetail/ChangeFeeDetail2.vue +116 -116
- package/src/components/apply/base/rightview/carddetail/ReduceFeeDetail2.vue +1 -1
- package/src/components/build/Install/InstallFee/AddContract.vue +257 -257
- package/src/components/build/Install/InstallFee/InstallFee.vue +929 -929
- package/src/components/build/Install/InstallFee/PreparationFee.vue +223 -223
- package/src/components/build/Install/InstallFee/PrestoreFee.vue +630 -630
- package/src/components/build/Install/Process/CustomerBuildingMessage.vue +251 -251
- package/src/components/build/Install/Process/CustomerEquipmentMessage.vue +172 -172
- package/src/components/build/Install/Process/CustomerFile.vue +423 -423
- package/src/components/build/Install/Process/CustomerMaterialMessage.vue +414 -414
- package/src/components/build/Install/Process/CustomerRecordMessage.vue +749 -749
- package/src/components/build/Install/Process/FeeNormeAndContratSigne.vue +376 -376
- package/src/components/build/Install/Process/MeterType.vue +379 -379
- package/src/components/build/Install/Process/PlaceControler.vue +304 -304
- package/src/components/build/Install/Process/zhongran/ZR_Construction.vue +388 -388
- package/src/components/build/Install/Process/zhongran/ZR_MaterialPlan.vue +259 -259
- package/src/components/build/Install/Process/zhongran/ZR_MaterialPlanExamine.vue +243 -243
- package/src/components/build/Install/Process/zhongran/ZR_PlaceControler.vue +426 -426
- package/src/components/build/Install/Process/zhongran/ZR_TestDesign.vue +441 -441
- package/src/components/build/Install/ProcessInfo/ApplyRecordCancel.vue +135 -135
- package/src/components/build/Install/bill/BillGZKMakeInfo.vue +58 -58
- package/src/components/build/Install/bill/BillQRKMakeInfo.vue +79 -79
- package/src/components/build/Install/bill/BillXSDMakeInfo.vue +206 -206
- package/src/main.js +25 -25
package/build/dev-server.js
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
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
|
-
var app = express()
|
|
7
|
-
var compiler = webpack(config)
|
|
8
|
-
// var proxy = httpProxy.createProxyServer()
|
|
9
|
-
|
|
10
|
-
// Define HTTP proxies to your custom API backend
|
|
11
|
-
// https://github.com/chimurai/http-proxy-middleware
|
|
12
|
-
var proxyTable = {
|
|
13
|
-
'/rs': {
|
|
14
|
-
target: 'http://
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
19
|
-
publicPath: config.output.publicPath,
|
|
20
|
-
stats: {
|
|
21
|
-
colors: true,
|
|
22
|
-
chunks: false
|
|
23
|
-
}
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
27
|
-
// force page reload when html-webpack-plugin template changes
|
|
28
|
-
compiler.plugin('compilation', function (compilation) {
|
|
29
|
-
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
30
|
-
hotMiddleware.publish({action: 'reload'})
|
|
31
|
-
cb()
|
|
32
|
-
})
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
// proxy api requests
|
|
36
|
-
Object.keys(proxyTable).forEach(function (context) {
|
|
37
|
-
var options = proxyTable[context]
|
|
38
|
-
if (typeof options === 'string') {
|
|
39
|
-
options = {target: options}
|
|
40
|
-
}
|
|
41
|
-
app.use(proxyMiddleware(context, options))
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
// handle fallback for HTML5 history API
|
|
45
|
-
app.use(require('connect-history-api-fallback')())
|
|
46
|
-
// app.use(function (req, res, next) {
|
|
47
|
-
// res.header('Access-Control-Allow-Origin', '*')
|
|
48
|
-
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
49
|
-
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
50
|
-
// res.header('X-Powered-By', '3,2,1')
|
|
51
|
-
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
52
|
-
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
53
|
-
// next()
|
|
54
|
-
// })
|
|
55
|
-
|
|
56
|
-
// serve webpack bundle output
|
|
57
|
-
app.use(devMiddleware)
|
|
58
|
-
|
|
59
|
-
// enable hot-reload and state-preserving
|
|
60
|
-
// compilation error display
|
|
61
|
-
app.use(hotMiddleware)
|
|
62
|
-
|
|
63
|
-
// serve pure static assets
|
|
64
|
-
app.use('/static', express.static('./static'))
|
|
65
|
-
|
|
66
|
-
module.exports = app.listen(8004, function (err) {
|
|
67
|
-
if (err) {
|
|
68
|
-
console.log(err)
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
console.log('Listening at http://localhost:8004')
|
|
72
|
-
})
|
|
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
|
+
var app = express()
|
|
7
|
+
var compiler = webpack(config)
|
|
8
|
+
// var proxy = httpProxy.createProxyServer()
|
|
9
|
+
|
|
10
|
+
// Define HTTP proxies to your custom API backend
|
|
11
|
+
// https://github.com/chimurai/http-proxy-middleware
|
|
12
|
+
var proxyTable = {
|
|
13
|
+
'/rs': {
|
|
14
|
+
target: 'http://118.122.2.49:8060'
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
19
|
+
publicPath: config.output.publicPath,
|
|
20
|
+
stats: {
|
|
21
|
+
colors: true,
|
|
22
|
+
chunks: false
|
|
23
|
+
}
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
27
|
+
// force page reload when html-webpack-plugin template changes
|
|
28
|
+
compiler.plugin('compilation', function (compilation) {
|
|
29
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
30
|
+
hotMiddleware.publish({action: 'reload'})
|
|
31
|
+
cb()
|
|
32
|
+
})
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
// proxy api requests
|
|
36
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
37
|
+
var options = proxyTable[context]
|
|
38
|
+
if (typeof options === 'string') {
|
|
39
|
+
options = {target: options}
|
|
40
|
+
}
|
|
41
|
+
app.use(proxyMiddleware(context, options))
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
// handle fallback for HTML5 history API
|
|
45
|
+
app.use(require('connect-history-api-fallback')())
|
|
46
|
+
// app.use(function (req, res, next) {
|
|
47
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
48
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
49
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
50
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
51
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
52
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
53
|
+
// next()
|
|
54
|
+
// })
|
|
55
|
+
|
|
56
|
+
// serve webpack bundle output
|
|
57
|
+
app.use(devMiddleware)
|
|
58
|
+
|
|
59
|
+
// enable hot-reload and state-preserving
|
|
60
|
+
// compilation error display
|
|
61
|
+
app.use(hotMiddleware)
|
|
62
|
+
|
|
63
|
+
// serve pure static assets
|
|
64
|
+
app.use('/static', express.static('./static'))
|
|
65
|
+
|
|
66
|
+
module.exports = app.listen(8004, function (err) {
|
|
67
|
+
if (err) {
|
|
68
|
+
console.log(err)
|
|
69
|
+
return
|
|
70
|
+
}
|
|
71
|
+
console.log('Listening at http://localhost:8004')
|
|
72
|
+
})
|