address-client 3.2.7 → 3.2.8-zk
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 +151 -125
- package/package.json +7 -2
- package/src/address.js +6 -6
- package/src/components/AddAreaMsg.vue +394 -388
- package/src/components/AddressList.vue +250 -466
- package/src/components/AddressManage.vue +112 -117
- package/src/components/AreaList.vue +146 -257
- package/src/components/AreaManage.vue +76 -75
- package/src/components/UserAddress.vue +723 -708
- package/src/main.js +21 -21
- package/yarn-error.log +7619 -0
- package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
- package/.gradle/4.4/fileChanges/last-build.bin +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/AddressClient.iml +0 -13
- package/src/filiale/WEINAN/AddAreaMsg.vue +0 -656
- package/src/filiale/WEINAN/AddressList.vue +0 -588
- package/src/filiale/WEINAN/AddressManage.vue +0 -122
- package/src/filiale/WEINAN/AreaList.vue +0 -388
- package/src/filiale/WEINAN/UserAddress.vue +0 -783
- package/src/filiale/WEINAN/sale.js +0 -16
- package/src/filiale/gaomi/AddressList.vue +0 -430
- package/src/filiale/gaomi/UserAddress.vue +0 -832
- package/src/filiale/gaomi/sale.js +0 -14
- package/src/filiale/gongyi/AddAreaMsg.vue +0 -651
- package/src/filiale/gongyi/AreaManage.vue +0 -100
- package/src/filiale/gongyi/UserAddress.vue +0 -751
- package/src/filiale/gongyi/sale.js +0 -14
- package/src/filiale/jingwei/UserAddress.vue +0 -764
- package/src/filiale/jingwei/sale.js +0 -12
- package/src/filiale/macheng/AddAreaMsg.vue +0 -635
- package/src/filiale/macheng/AddStreetOrPcd.vue +0 -231
- package/src/filiale/macheng/AddressList.vue +0 -306
- package/src/filiale/macheng/AreaList.vue +0 -279
- package/src/filiale/macheng/CityManage.vue +0 -76
- package/src/filiale/macheng/StreetList.vue +0 -186
- package/src/filiale/macheng/UserAddress.vue +0 -743
- package/src/filiale/macheng/sale.js +0 -17
- package/src/filiale/rongcheng/AddressList.vue +0 -363
- package/src/filiale/rongcheng/UserAddress.vue +0 -799
- package/src/filiale/rongcheng/sale.js +0 -11
- package/src/filiale/shaoguan/AddAreaMsg.vue +0 -631
- package/src/filiale/shaoguan/UserAddress.vue +0 -764
- package/src/filiale/shaoguan/sale.js +0 -11
- package/src/filiale/tongchuan/AddAreaMsg.vue +0 -635
- package/src/filiale/tongchuan/AddStreetOrPcd.vue +0 -308
- package/src/filiale/tongchuan/AddressList.vue +0 -379
- package/src/filiale/tongchuan/AreaList.vue +0 -315
- package/src/filiale/tongchuan/AreaManage.vue +0 -100
- package/src/filiale/tongchuan/CityList.vue +0 -133
- package/src/filiale/tongchuan/StreetList.vue +0 -208
- package/src/filiale/tongchuan/UserAddress.vue +0 -822
- package/src/filiale/tongchuan/sale.js +0 -19
- package/src/filiale/wuhai/UserAddress.vue +0 -795
- package/src/filiale/wuhai/sale.js +0 -12
- package/src/filiale/zhoukou/AddAreaMsg.vue +0 -673
- package/src/filiale/zhoukou/AddressList.vue +0 -391
- package/src/filiale/zhoukou/AddressManage.vue +0 -115
- package/src/filiale/zhoukou/AreaList.vue +0 -319
- package/src/filiale/zhoukou/AreaManage.vue +0 -100
- package/src/filiale/zhoukou/UserAddress.vue +0 -925
- package/src/filiale/zhoukou/sale.js +0 -23
package/build/dev-server.js
CHANGED
|
@@ -1,125 +1,151 @@
|
|
|
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
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
//
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
//
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
//
|
|
105
|
-
//
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
//
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
//
|
|
112
|
-
//
|
|
113
|
-
//
|
|
114
|
-
//
|
|
115
|
-
//
|
|
116
|
-
|
|
117
|
-
//
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
})
|
|
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', fuwu= 'http://192.168.20.28:8400'
|
|
14
|
+
// var bendi = 'http://192.168.20.28:8400', fuwu= 'http://192.168.20.28:8400'
|
|
15
|
+
var bendi = 'http://192.168.20.27:8400', fuwu= 'http://192.168.20.27:8400'
|
|
16
|
+
// var bendi = 'http://61.163.127.69:8557/', fuwu= 'http://61.163.127.69:8557/'
|
|
17
|
+
var proxyTable = {
|
|
18
|
+
'/rs/logic/getLogin': {
|
|
19
|
+
target: fuwu
|
|
20
|
+
},
|
|
21
|
+
'/rs/sql/address_getAddress': {
|
|
22
|
+
target: bendi
|
|
23
|
+
},
|
|
24
|
+
'/rs/sql/address_singleTableOrderBy': {
|
|
25
|
+
target: bendi
|
|
26
|
+
},
|
|
27
|
+
'/rs/logic/address_updateuseraddress': {
|
|
28
|
+
target: bendi
|
|
29
|
+
},
|
|
30
|
+
'/rs/vue': {
|
|
31
|
+
target: fuwu
|
|
32
|
+
},
|
|
33
|
+
'/rs/user': {
|
|
34
|
+
target: fuwu
|
|
35
|
+
},
|
|
36
|
+
'/rs/db': {
|
|
37
|
+
target: fuwu
|
|
38
|
+
},
|
|
39
|
+
'/rs/search': {
|
|
40
|
+
target: fuwu
|
|
41
|
+
},
|
|
42
|
+
'/rs/data': {
|
|
43
|
+
target: fuwu
|
|
44
|
+
},
|
|
45
|
+
'/rs/logic/getInitData': {
|
|
46
|
+
target: fuwu
|
|
47
|
+
},
|
|
48
|
+
'/rs/logic/exportfile': {
|
|
49
|
+
target: fuwu
|
|
50
|
+
},
|
|
51
|
+
'/rs/logic/getBatchOperaPro': {
|
|
52
|
+
target: fuwu
|
|
53
|
+
},
|
|
54
|
+
'/rs/logic/getSaleInitData': {
|
|
55
|
+
target: fuwu
|
|
56
|
+
},
|
|
57
|
+
'/rs/logic/address_useraddressimport': {
|
|
58
|
+
target: bendi
|
|
59
|
+
},
|
|
60
|
+
'/rs/sql': {
|
|
61
|
+
target: bendi
|
|
62
|
+
},
|
|
63
|
+
'/rs/logic': {
|
|
64
|
+
target: bendi
|
|
65
|
+
},
|
|
66
|
+
'/rs': {
|
|
67
|
+
// target: 'http://192.168.50.199:8300'
|
|
68
|
+
target: fuwu
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
73
|
+
publicPath: config.output.publicPath,
|
|
74
|
+
stats: {
|
|
75
|
+
colors: true,
|
|
76
|
+
chunks: false
|
|
77
|
+
}
|
|
78
|
+
})
|
|
79
|
+
|
|
80
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
81
|
+
// force page reload when html-webpack-plugin template changes
|
|
82
|
+
compiler.plugin('compilation', function (compilation) {
|
|
83
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
84
|
+
hotMiddleware.publish({ action: 'reload' })
|
|
85
|
+
cb()
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
|
|
89
|
+
// proxy api requests
|
|
90
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
91
|
+
var options = proxyTable[context]
|
|
92
|
+
if (typeof options === 'string') {
|
|
93
|
+
options = { target: options }
|
|
94
|
+
}
|
|
95
|
+
app.use(proxyMiddleware(context, options))
|
|
96
|
+
})
|
|
97
|
+
|
|
98
|
+
// handle fallback for HTML5 history API
|
|
99
|
+
app.use(require('connect-history-api-fallback')())
|
|
100
|
+
|
|
101
|
+
// serve webpack bundle output
|
|
102
|
+
app.use(devMiddleware)
|
|
103
|
+
|
|
104
|
+
// enable hot-reload and state-preserving
|
|
105
|
+
// compilation error display
|
|
106
|
+
app.use(hotMiddleware)
|
|
107
|
+
|
|
108
|
+
// serve pure static assets
|
|
109
|
+
app.use('/static', express.static('./static'))
|
|
110
|
+
|
|
111
|
+
// app.all('/rs/*', function (req, res) {
|
|
112
|
+
// proxy.web(req, res, {
|
|
113
|
+
// target: 'http://127.0.0.1:8081/reports'
|
|
114
|
+
// })
|
|
115
|
+
// })
|
|
116
|
+
|
|
117
|
+
// app.all('/rs/*', function (req, res) {
|
|
118
|
+
// proxy.web(req, res, {
|
|
119
|
+
// target: 'http://127.0.0.1:8081/ldap'
|
|
120
|
+
// })
|
|
121
|
+
// })
|
|
122
|
+
// app.all('/excel/*', function (req, res) {
|
|
123
|
+
// proxy.web(req, res, {
|
|
124
|
+
// target: 'http://127.0.0.1:8081/charge'
|
|
125
|
+
// })
|
|
126
|
+
// })
|
|
127
|
+
|
|
128
|
+
// app.all('/rs/*', function (req, res) {
|
|
129
|
+
// proxy.web(req, res, {
|
|
130
|
+
// target: 'http://127.0.0.1:82/charge'
|
|
131
|
+
// })
|
|
132
|
+
// })
|
|
133
|
+
|
|
134
|
+
// app.all('/*', function (req, res) {
|
|
135
|
+
// proxy.web(req, res, {
|
|
136
|
+
// target: 'http://127.0.0.1:82'
|
|
137
|
+
// })
|
|
138
|
+
// })
|
|
139
|
+
// app.all('/rs/user', function (req, res) {
|
|
140
|
+
// proxy.web(req, res, {
|
|
141
|
+
// target: 'http://127.0.0.1:82'
|
|
142
|
+
// })
|
|
143
|
+
// })
|
|
144
|
+
|
|
145
|
+
module.exports = app.listen(8085, function (err) {
|
|
146
|
+
if (err) {
|
|
147
|
+
console.log(err)
|
|
148
|
+
return
|
|
149
|
+
}
|
|
150
|
+
console.log('Listening at http://localhost:8085')
|
|
151
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "address-client",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.8-zk",
|
|
4
4
|
"description": "地址管理前台组件",
|
|
5
5
|
"author": "wanbochao",
|
|
6
6
|
"license": "ISC",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"style-loader": "^0.20.3",
|
|
81
81
|
"system-clients": "3.1.88-5",
|
|
82
82
|
"url-loader": "^0.5.7",
|
|
83
|
-
"vue-client": "1.24.
|
|
83
|
+
"vue-client": "1.24.31",
|
|
84
84
|
"vue-hot-reload-api": "^1.2.0",
|
|
85
85
|
"vue-html-loader": "^1.0.0",
|
|
86
86
|
"vue-loader": "^8.2.1",
|
|
@@ -95,5 +95,10 @@
|
|
|
95
95
|
"webpack-merge": "^0.8.3",
|
|
96
96
|
"jsencrypt": "3.0.0-rc.1",
|
|
97
97
|
"axios": "0.15.3"
|
|
98
|
+
},
|
|
99
|
+
"directories": {
|
|
100
|
+
"doc": "doc",
|
|
101
|
+
"example": "examples",
|
|
102
|
+
"test": "test"
|
|
98
103
|
}
|
|
99
104
|
}
|
package/src/address.js
CHANGED
|
@@ -46,10 +46,10 @@ export default function (filiale) {
|
|
|
46
46
|
//批量置换接单
|
|
47
47
|
Vue.component('batch_orders', (resolve) => { require(['./components/selectAddress/BatchOrders'], resolve) })
|
|
48
48
|
// 分公司特殊页面注册替换
|
|
49
|
-
if (filiale) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
49
|
+
// if (filiale) {
|
|
50
|
+
// let filialeComp = require(`./filiale/${filiale}/sale`).specialComp
|
|
51
|
+
// for (let key in filialeComp) {
|
|
52
|
+
// Vue.component(key, filialeComp[key])
|
|
53
|
+
// }
|
|
54
|
+
// }
|
|
55
55
|
}
|