address-client 3.2.103 → 3.2.104
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 +185 -174
- package/build/versionCheck.js +31 -0
- package/package.json +4 -3
- package/src/components/AddAreaMsg.vue +7 -7
- package/src/components/AddCommunityManageMsg.vue +3 -3
- package/src/components/AddStreetManageMsg.vue +3 -3
- package/src/components/AddStreetOrPcd.vue +16 -21
- package/src/components/AddressAddAddress.vue +14 -14
- package/src/components/AddressFiles.vue +1 -1
- package/src/components/AddressList.vue +9 -9
- package/src/components/AddressTree.vue +5 -5
- package/src/components/AreaFiles.vue +1 -1
- package/src/components/AreaList.vue +5 -5
- package/src/components/AreaTree.vue +5 -5
- package/src/components/Basch.vue +1 -1
- package/src/components/BatchOrders.vue +6 -6
- package/src/components/BuildingList.vue +2 -2
- package/src/components/CityList.vue +3 -3
- package/src/components/CommunityAreaList.vue +1 -1
- package/src/components/CommunityManageList.vue +4 -4
- package/src/components/NewAddressInfo.vue +4 -4
- package/src/components/StreetList.vue +241 -240
- package/src/components/StreetManageList.vue +4 -4
- package/src/components/UserAddress.vue +903 -903
- package/src/components/UserAddressChange.vue +1 -1
- package/src/components/selectAddress/BatchList.vue +6 -6
- package/src/filiale/WEINAN/AddAreaMsg.vue +5 -5
- package/src/filiale/WEINAN/AddressList.vue +9 -9
- package/src/filiale/WEINAN/AreaList.vue +435 -435
- package/src/filiale/WEINAN/AreaUserList.vue +3 -3
- package/src/filiale/WEINAN/UserAddress.vue +5 -5
- package/src/filiale/chengtou/UserAddress.vue +6 -6
- package/src/filiale/dongguan/AddStreetOrPcd.vue +6 -6
- package/src/filiale/gaomi/AddressList.vue +6 -6
- package/src/filiale/gaomi/UserAddress.vue +5 -5
- package/src/filiale/gongyi/AddAreaMsg.vue +4 -4
- package/src/filiale/gongyi/UserAddress.vue +5 -5
- package/src/filiale/haile/AddressList.vue +9 -9
- package/src/filiale/jingwei/UserAddress.vue +5 -5
- package/src/filiale/lixianV3/AreaList.vue +416 -416
- package/src/filiale/lixianV3/sale.js +12 -12
- package/src/filiale/macheng/AddAreaMsg.vue +4 -4
- package/src/filiale/macheng/AddStreetOrPcd.vue +3 -3
- package/src/filiale/macheng/AddressList.vue +9 -9
- package/src/filiale/macheng/AreaList.vue +4 -4
- package/src/filiale/macheng/StreetList.vue +3 -3
- package/src/filiale/macheng/UserAddress.vue +5 -5
- package/src/filiale/meihekou/UserAddress.vue +6 -6
- package/src/filiale/qianneng/AddAreaMsg.vue +7 -7
- package/src/filiale/qianneng/AddStreetOrPcd.vue +5 -5
- package/src/filiale/qianneng/AddressList.vue +10 -10
- package/src/filiale/qianneng/AreaList.vue +6 -6
- package/src/filiale/qianneng/UserAddress.vue +7 -7
- package/src/filiale/qinhua/AddAreaMsg.vue +7 -7
- package/src/filiale/qinhua/AddressList.vue +9 -9
- package/src/filiale/qinhua/AreaList.vue +6 -6
- package/src/filiale/qinhua/StreetList.vue +4 -4
- package/src/filiale/qinhua/UserAddress.vue +6 -6
- package/src/filiale/rizhao/UserAddress.vue +6 -6
- package/src/filiale/rongcheng/AddressList.vue +5 -5
- package/src/filiale/rongcheng/UserAddress.vue +5 -5
- package/src/filiale/shanggao/AddAreaMsg.vue +7 -7
- package/src/filiale/shanggao/AddStreetOrPcd.vue +5 -5
- package/src/filiale/shanggao/AddressList.vue +9 -9
- package/src/filiale/shanggao/AreaList.vue +6 -6
- package/src/filiale/shanggao/BuildingList.vue +2 -2
- package/src/filiale/shanggao/StreetList.vue +4 -4
- package/src/filiale/shanggao/UserAddress.vue +7 -7
- package/src/filiale/shanxian/AddAreaMsg.vue +7 -7
- package/src/filiale/shanxian/AddressList.vue +9 -9
- package/src/filiale/shanxian/AreaList.vue +6 -6
- package/src/filiale/shanxian/UserAddress.vue +6 -6
- package/src/filiale/shaoguan/AddAreaMsg.vue +4 -4
- package/src/filiale/shaoguan/UserAddress.vue +5 -5
- package/src/filiale/tongchuan/AddAreaMsg.vue +4 -4
- package/src/filiale/tongchuan/AddStreetOrPcd.vue +6 -6
- package/src/filiale/tongchuan/AddressList.vue +5 -5
- package/src/filiale/tongchuan/AreaList.vue +4 -4
- package/src/filiale/tongchuan/CityList.vue +3 -3
- package/src/filiale/tongchuan/StreetList.vue +4 -4
- package/src/filiale/tongchuan/UserAddress.vue +6 -6
- package/src/filiale/wuhai/UserAddress.vue +5 -5
- package/src/filiale/xinkang/AddAreaMsg.vue +8 -8
- package/src/filiale/xinkang/AreaList.vue +5 -5
- package/src/filiale/yangchun/AddAreaMsg.vue +756 -756
- package/src/filiale/yangchun/sale.js +7 -7
- package/src/filiale/zhongsheng/AddressList.vue +10 -10
- package/src/filiale/zhongsheng/AreaList.vue +7 -7
- package/src/filiale/zhongyi/AddAreaMsg.vue +7 -7
- package/src/filiale/zhoukou/AddAreaMsg.vue +5 -5
- package/src/filiale/zhoukou/AddressList.vue +5 -5
- package/src/filiale/zhoukou/AreaList.vue +4 -4
- package/src/filiale/zhoukou/UserAddress.vue +6 -6
- package/src/main.js +3 -2
package/build/dev-server.js
CHANGED
|
@@ -1,174 +1,185 @@
|
|
|
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
|
-
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
//
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
'/
|
|
34
|
-
target: str3,
|
|
35
|
-
secure:true,
|
|
36
|
-
changeOrigin:true
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
'/rs/
|
|
50
|
-
target: str3,
|
|
51
|
-
secure:true,
|
|
52
|
-
changeOrigin:true
|
|
53
|
-
},
|
|
54
|
-
'/rs/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
'/rs/
|
|
71
|
-
target: str3,
|
|
72
|
-
secure:true,
|
|
73
|
-
changeOrigin:true
|
|
74
|
-
},
|
|
75
|
-
'/rs/
|
|
76
|
-
target:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
// target: 'http://127.0.0.1:8080'
|
|
80
|
-
},
|
|
81
|
-
'/rs/
|
|
82
|
-
target:
|
|
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
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
app.use(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
//
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
//
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
//
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
// app.all('/
|
|
146
|
-
// proxy.web(req, res, {
|
|
147
|
-
// target: 'http://127.0.0.1:8081/
|
|
148
|
-
// })
|
|
149
|
-
// })
|
|
150
|
-
|
|
151
|
-
// app.all('/rs/*', function (req, res) {
|
|
152
|
-
// proxy.web(req, res, {
|
|
153
|
-
// target: 'http://127.0.0.1:
|
|
154
|
-
// })
|
|
155
|
-
// })
|
|
156
|
-
|
|
157
|
-
//
|
|
158
|
-
//
|
|
159
|
-
//
|
|
160
|
-
//
|
|
161
|
-
|
|
162
|
-
// app.all('/rs
|
|
163
|
-
// proxy.web(req, res, {
|
|
164
|
-
// target: 'http://127.0.0.1:82'
|
|
165
|
-
// })
|
|
166
|
-
// })
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
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 checkVersion = require('./versionCheck.js')
|
|
7
|
+
checkVersion()
|
|
8
|
+
var app = express()
|
|
9
|
+
var compiler = webpack(config)
|
|
10
|
+
var proxy = httpProxy.createProxyServer()
|
|
11
|
+
|
|
12
|
+
// Define HTTP proxies to your custom API backend
|
|
13
|
+
// https://github.com/chimurai/http-proxy-middleware
|
|
14
|
+
var str = 'http://192.168.50.4:8400', str2= 'http://192.168.50.4:8400'
|
|
15
|
+
var str3= 'http://192.168.50.4:8400'
|
|
16
|
+
var proxyTable = {
|
|
17
|
+
'/api/af-auth': {
|
|
18
|
+
target: str
|
|
19
|
+
},
|
|
20
|
+
'/api/af-system': {
|
|
21
|
+
target: str
|
|
22
|
+
},
|
|
23
|
+
'/api/af-revenue': {
|
|
24
|
+
pathRewrite: {'/api/af-revenue': '/'},
|
|
25
|
+
target: 'http://127.0.0.1:9026'
|
|
26
|
+
},
|
|
27
|
+
'/rs/entity': {
|
|
28
|
+
target: str
|
|
29
|
+
// secure:true,
|
|
30
|
+
// changeOrigin:true
|
|
31
|
+
// target: 'http://127.0.0.1:8080'
|
|
32
|
+
},
|
|
33
|
+
'/webapps':{
|
|
34
|
+
target: str3,
|
|
35
|
+
secure:true,
|
|
36
|
+
changeOrigin:true
|
|
37
|
+
// target: 'http://127.0.0.1:8080'
|
|
38
|
+
},
|
|
39
|
+
'/rs/logic/getLogin': {
|
|
40
|
+
target: str3,
|
|
41
|
+
secure:true,
|
|
42
|
+
changeOrigin:true
|
|
43
|
+
},
|
|
44
|
+
'/rs/logic/getInitData': {
|
|
45
|
+
target: str3,
|
|
46
|
+
secure:true,
|
|
47
|
+
changeOrigin:true,
|
|
48
|
+
},
|
|
49
|
+
'/rs/logic/getSaleInitData': {
|
|
50
|
+
target: str3,
|
|
51
|
+
secure:true,
|
|
52
|
+
changeOrigin:true
|
|
53
|
+
},
|
|
54
|
+
// '/rs/logic':{
|
|
55
|
+
// target: str3,
|
|
56
|
+
// secure:true,
|
|
57
|
+
// changeOrigin:true
|
|
58
|
+
// // target: 'http://127.0.0.1:8080'
|
|
59
|
+
// },
|
|
60
|
+
'/rs/vue': {
|
|
61
|
+
target: str3,
|
|
62
|
+
secure:true,
|
|
63
|
+
changeOrigin:true
|
|
64
|
+
},
|
|
65
|
+
'/rs/user': {
|
|
66
|
+
target: str3,
|
|
67
|
+
secure:true,
|
|
68
|
+
changeOrigin:true
|
|
69
|
+
},
|
|
70
|
+
'/rs/db': {
|
|
71
|
+
target: str3,
|
|
72
|
+
secure:true,
|
|
73
|
+
changeOrigin:true
|
|
74
|
+
},
|
|
75
|
+
'/rs/search': {
|
|
76
|
+
target: str3,
|
|
77
|
+
secure:true,
|
|
78
|
+
changeOrigin:true
|
|
79
|
+
// target: 'http://127.0.0.1:8080'
|
|
80
|
+
},
|
|
81
|
+
'/rs/data': {
|
|
82
|
+
target: str3,
|
|
83
|
+
secure:true,
|
|
84
|
+
changeOrigin:true
|
|
85
|
+
},
|
|
86
|
+
'/rs/sql': {
|
|
87
|
+
target: str
|
|
88
|
+
// secure: true,
|
|
89
|
+
// changeOrigin:true
|
|
90
|
+
// target: 'http://127.0.0.1:8080'
|
|
91
|
+
},
|
|
92
|
+
'/rs/logic': {
|
|
93
|
+
target: str
|
|
94
|
+
// secure: true,
|
|
95
|
+
// changeOrigin:true
|
|
96
|
+
// target: 'http://127.0.0.1:8080'
|
|
97
|
+
},
|
|
98
|
+
'/rs': {
|
|
99
|
+
// target: 'http://192.168.50.199:8300'
|
|
100
|
+
target: str3,
|
|
101
|
+
secure:true,
|
|
102
|
+
changeOrigin:true
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
107
|
+
publicPath: config.output.publicPath,
|
|
108
|
+
stats: {
|
|
109
|
+
colors: true,
|
|
110
|
+
chunks: false
|
|
111
|
+
}
|
|
112
|
+
})
|
|
113
|
+
|
|
114
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
115
|
+
// force page reload when html-webpack-plugin template changes
|
|
116
|
+
compiler.plugin('compilation', function (compilation) {
|
|
117
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
118
|
+
hotMiddleware.publish({ action: 'reload' })
|
|
119
|
+
cb()
|
|
120
|
+
})
|
|
121
|
+
})
|
|
122
|
+
|
|
123
|
+
// proxy api requests
|
|
124
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
125
|
+
var options = proxyTable[context]
|
|
126
|
+
if (typeof options === 'string') {
|
|
127
|
+
options = { target: options }
|
|
128
|
+
}
|
|
129
|
+
app.use(proxyMiddleware(context, options))
|
|
130
|
+
})
|
|
131
|
+
|
|
132
|
+
// handle fallback for HTML5 history API
|
|
133
|
+
app.use(require('connect-history-api-fallback')())
|
|
134
|
+
|
|
135
|
+
// serve webpack bundle output
|
|
136
|
+
app.use(devMiddleware)
|
|
137
|
+
|
|
138
|
+
// enable hot-reload and state-preserving
|
|
139
|
+
// compilation error display
|
|
140
|
+
app.use(hotMiddleware)
|
|
141
|
+
|
|
142
|
+
// serve pure static assets
|
|
143
|
+
app.use('/static', express.static('./static'))
|
|
144
|
+
|
|
145
|
+
// app.all('/rs/*', function (req, res) {
|
|
146
|
+
// proxy.web(req, res, {
|
|
147
|
+
// target: 'http://127.0.0.1:8081/reports'
|
|
148
|
+
// })
|
|
149
|
+
// })
|
|
150
|
+
|
|
151
|
+
// app.all('/rs/*', function (req, res) {
|
|
152
|
+
// proxy.web(req, res, {
|
|
153
|
+
// target: 'http://127.0.0.1:8081/ldap'
|
|
154
|
+
// })
|
|
155
|
+
// })
|
|
156
|
+
// app.all('/excel/*', function (req, res) {
|
|
157
|
+
// proxy.web(req, res, {
|
|
158
|
+
// target: 'http://127.0.0.1:8081/charge'
|
|
159
|
+
// })
|
|
160
|
+
// })
|
|
161
|
+
|
|
162
|
+
// app.all('/rs/*', function (req, res) {
|
|
163
|
+
// proxy.web(req, res, {
|
|
164
|
+
// target: 'http://127.0.0.1:82/charge'
|
|
165
|
+
// })
|
|
166
|
+
// })
|
|
167
|
+
|
|
168
|
+
// app.all('/*', function (req, res) {
|
|
169
|
+
// proxy.web(req, res, {
|
|
170
|
+
// target: 'http://127.0.0.1:82'
|
|
171
|
+
// })
|
|
172
|
+
// })
|
|
173
|
+
// app.all('/rs/user', function (req, res) {
|
|
174
|
+
// proxy.web(req, res, {
|
|
175
|
+
// target: 'http://127.0.0.1:82'
|
|
176
|
+
// })
|
|
177
|
+
// })
|
|
178
|
+
|
|
179
|
+
module.exports = app.listen(8085, function (err) {
|
|
180
|
+
if (err) {
|
|
181
|
+
console.log(err)
|
|
182
|
+
return
|
|
183
|
+
}
|
|
184
|
+
console.log('Listening at http://localhost:8085')
|
|
185
|
+
})
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
function isVersionGreaterThan (version1, version2) {
|
|
2
|
+
const v1parts = version1.split('.')
|
|
3
|
+
const v2parts = version2.split('.')
|
|
4
|
+
let flag = false
|
|
5
|
+
for (let i = 0; i < v1parts.length; ++i) {
|
|
6
|
+
if (v1parts[i] > v2parts[i]) {
|
|
7
|
+
flag = true
|
|
8
|
+
break
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
return flag
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const pkg = require('../package.json')
|
|
16
|
+
const checkVersion = () => {
|
|
17
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请注意:当前使用的 addressclient 版本, 会发送 api/af-revenue/sql ,api/af-revenue/logic 到v4 服务')
|
|
18
|
+
const {devDependencies} = pkg
|
|
19
|
+
if (devDependencies && devDependencies['system-clients']) {
|
|
20
|
+
if (isVersionGreaterThan(devDependencies['system-clients'], '3.2.87')) {
|
|
21
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请注意:当前使用的 systemClients 版本不兼容旧版登录')
|
|
22
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '登录是会发送 api/af-auth 请求')
|
|
23
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请转发到公司 v4 测试地址或者客户 v4 网关')
|
|
24
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '如不使用新版登录,请降级 system-clients 版本到 3.2.87')
|
|
25
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请查看营收后台升级日志:' +
|
|
26
|
+
'http://aote-office.8866.org:31467/sale-doc-web/V4Product/%E8%90%A5%E6%94%B6%E5%90%8E%E5%8F%B0%E6%94%B9%E9%80%A0%E8%AF%B4%E6%98%8E')
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
module.exports = checkVersion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "address-client",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.104",
|
|
4
4
|
"description": "地址管理前台组件",
|
|
5
5
|
"author": "wanbochao",
|
|
6
6
|
"license": "ISC",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"url": "https://gitee.com/aote/address_management.git"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
+
"crypto-js": "^4.1.1",
|
|
26
27
|
"less-loader": "^2.2.3",
|
|
27
28
|
"vue": "^1.0.17"
|
|
28
29
|
},
|
|
@@ -79,9 +80,9 @@
|
|
|
79
80
|
"style": "0.0.3",
|
|
80
81
|
"style-loader": "^0.20.3",
|
|
81
82
|
"ldap-clients": "3.0.48",
|
|
82
|
-
"system-clients": "3.2.
|
|
83
|
+
"system-clients": "3.2.95",
|
|
83
84
|
"url-loader": "^0.5.7",
|
|
84
|
-
"vue-client": "1.24.
|
|
85
|
+
"vue-client": "1.24.150",
|
|
85
86
|
"vue-hot-reload-api": "^1.2.0",
|
|
86
87
|
"vue-html-loader": "^1.0.0",
|
|
87
88
|
"vue-loader": "^8.2.1",
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
// }
|
|
402
402
|
this.areaslist = []
|
|
403
403
|
let HttpReset = new HttpResetClass()
|
|
404
|
-
let req = await HttpReset.load('POST', '
|
|
404
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
|
|
405
405
|
data: {
|
|
406
406
|
items: '*',
|
|
407
407
|
tablename: 't_area',
|
|
@@ -425,7 +425,7 @@
|
|
|
425
425
|
async initpcds(pconditon){
|
|
426
426
|
this.pcdslist = []
|
|
427
427
|
let HttpReset = new HttpResetClass()
|
|
428
|
-
let req = await HttpReset.load('POST', '
|
|
428
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
|
429
429
|
data: {
|
|
430
430
|
items: '*',
|
|
431
431
|
tablename: 't_pcd',
|
|
@@ -449,7 +449,7 @@
|
|
|
449
449
|
async initstreets(pconditon){
|
|
450
450
|
this.streetslist = []
|
|
451
451
|
let HttpReset = new HttpResetClass()
|
|
452
|
-
let req = await HttpReset.load('POST', '
|
|
452
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
|
453
453
|
data: {
|
|
454
454
|
items: '*',
|
|
455
455
|
tablename: 't_street',
|
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
this.$showAlert('请输入正确的位数', 'warning', 2000)
|
|
475
475
|
this.areamodel.f_area_id = ''
|
|
476
476
|
}else{
|
|
477
|
-
let res =await this.$resetpost('
|
|
477
|
+
let res =await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
|
|
478
478
|
data: {
|
|
479
479
|
items: '*',
|
|
480
480
|
tablename: 't_area',
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
f_filialeid: this.f_filialeids
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
-
let res = await this.$resetpost('
|
|
502
|
+
let res = await this.$resetpost('api/af-revenue/logic/address_validateAreaID', param, {resolveMsg: null,rejectMsg: '小区编号验证失败!!'})
|
|
503
503
|
console.log('验证小区是否存在', res)
|
|
504
504
|
if (res.data) {
|
|
505
505
|
this.$showAlert('这个小区编号已存在!!!请核实', 'warning', 3000)
|
|
@@ -576,7 +576,7 @@
|
|
|
576
576
|
this.buildingmodel.f_orgname = this.$login.f.orgs
|
|
577
577
|
this.buildingmodel.f_depid = this.$login.f.depids
|
|
578
578
|
this.buildingmodel.f_depname = this.$login.f.deps
|
|
579
|
-
await this.$resetpost('
|
|
579
|
+
await this.$resetpost('api/af-revenue/logic/address_savebuilding', this.buildingmodel)
|
|
580
580
|
this.$refs.buildinglist.search()
|
|
581
581
|
},
|
|
582
582
|
//保存小区
|
|
@@ -600,7 +600,7 @@
|
|
|
600
600
|
this.areamodel.f_pcd=this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd
|
|
601
601
|
this.areamodel.f_street=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street
|
|
602
602
|
|
|
603
|
-
await this.$resetpost('
|
|
603
|
+
await this.$resetpost('api/af-revenue/logic/address_updatearea', this.areamodel)
|
|
604
604
|
},
|
|
605
605
|
cleardara(){
|
|
606
606
|
this.areamodel= {
|
|
@@ -117,7 +117,7 @@ export default {
|
|
|
117
117
|
methods: {
|
|
118
118
|
async communityyanzheng() {
|
|
119
119
|
console.log(this.communitymodel.f_community_code)
|
|
120
|
-
let res = await this.$resetpost('
|
|
120
|
+
let res = await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
|
|
121
121
|
data: {
|
|
122
122
|
items: '*',
|
|
123
123
|
tablename: 't_community',
|
|
@@ -147,7 +147,7 @@ export default {
|
|
|
147
147
|
this.streetlist = []
|
|
148
148
|
console.log("街道准备")
|
|
149
149
|
let HttpReset = new HttpResetClass()
|
|
150
|
-
HttpReset.load('POST', '
|
|
150
|
+
HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
|
151
151
|
data: {
|
|
152
152
|
items: '*',
|
|
153
153
|
tablename: 't_street',
|
|
@@ -189,7 +189,7 @@ export default {
|
|
|
189
189
|
this.communitymodel.f_depname = this.$login.f.deps
|
|
190
190
|
this.communitymodel.f_street = this.findbyid(this.streetlist, this.communitymodel.f_street_id).f_street
|
|
191
191
|
console.log('获取社区model', this.communitymodel)
|
|
192
|
-
await this.$resetpost('
|
|
192
|
+
await this.$resetpost('api/af-revenue/logic/address_updateCommunityManage', this.communitymodel)
|
|
193
193
|
},
|
|
194
194
|
cancel() {
|
|
195
195
|
this.clearData()
|
|
@@ -101,7 +101,7 @@ export default {
|
|
|
101
101
|
methods: {
|
|
102
102
|
async streetyanzheng() {
|
|
103
103
|
console.log(this.streetmanagemodel.f_street_manage_number.length)
|
|
104
|
-
let res = await this.$resetpost('
|
|
104
|
+
let res = await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
|
|
105
105
|
data: {
|
|
106
106
|
items: '*',
|
|
107
107
|
tablename: 't_street_manage',
|
|
@@ -130,7 +130,7 @@ export default {
|
|
|
130
130
|
initdata() {
|
|
131
131
|
console.log("省市区准备")
|
|
132
132
|
let HttpReset = new HttpResetClass()
|
|
133
|
-
HttpReset.load('POST', '
|
|
133
|
+
HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
|
134
134
|
data: {
|
|
135
135
|
items: '*',
|
|
136
136
|
tablename: 't_pcd',
|
|
@@ -172,7 +172,7 @@ export default {
|
|
|
172
172
|
this.streetmanagemodel.f_depname = this.$login.f.deps
|
|
173
173
|
this.streetmanagemodel.f_pcd = this.findbyid(this.pcdslist, this.streetmanagemodel.f_pcd_id).f_pcd
|
|
174
174
|
console.log('获取街道model', this.streetmanagemodel)
|
|
175
|
-
await this.$resetpost('
|
|
175
|
+
await this.$resetpost('api/af-revenue/logic/address_updateStreetManage', this.streetmanagemodel)
|
|
176
176
|
},
|
|
177
177
|
cancel() {
|
|
178
178
|
this.clearData()
|
|
@@ -150,23 +150,18 @@
|
|
|
150
150
|
methods: {
|
|
151
151
|
async streetyanzheng(){
|
|
152
152
|
console.log(this.streetmodel.f_street_number.length)
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
if (res.data.length>0){
|
|
166
|
-
if (res.data[0].id != this.streetmodel.id) {
|
|
167
|
-
this.$showAlert('当前编号已存在', 'warning', 2000)
|
|
168
|
-
this.streetmodel.f_street_number = ''
|
|
169
|
-
}
|
|
153
|
+
let res =await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
|
|
154
|
+
data: {
|
|
155
|
+
items: '*',
|
|
156
|
+
tablename: 't_street',
|
|
157
|
+
orderitem: 'id',
|
|
158
|
+
condition: `f_street_number = '${this.streetmodel.f_street_number}' and f_orgid = '${this.$login.f.orgid}'`
|
|
159
|
+
}
|
|
160
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
161
|
+
if (res.data.length>0){
|
|
162
|
+
if (res.data[0].id != this.streetmodel.id) {
|
|
163
|
+
this.$showAlert('当前编号已存在', 'warning', 2000)
|
|
164
|
+
this.streetmodel.f_street_number = ''
|
|
170
165
|
}
|
|
171
166
|
}
|
|
172
167
|
},
|
|
@@ -176,7 +171,7 @@
|
|
|
176
171
|
this.$showAlert('请输入正确的位数', 'warning', 2000)
|
|
177
172
|
this.pcdmodel.f_pcd_number = ''
|
|
178
173
|
}else{
|
|
179
|
-
let res =await this.$resetpost('
|
|
174
|
+
let res =await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
|
|
180
175
|
data: {
|
|
181
176
|
items: '*',
|
|
182
177
|
tablename: 't_pcd',
|
|
@@ -196,7 +191,7 @@
|
|
|
196
191
|
initpcds(pconditon){
|
|
197
192
|
console.log("省市区准备")
|
|
198
193
|
let HttpReset = new HttpResetClass()
|
|
199
|
-
HttpReset.load('POST', '
|
|
194
|
+
HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
|
200
195
|
data: {
|
|
201
196
|
items: '*',
|
|
202
197
|
tablename: 't_pcd',
|
|
@@ -262,7 +257,7 @@
|
|
|
262
257
|
this.pcdmodel.f_depid = this.$login.f.depids
|
|
263
258
|
this.pcdmodel.f_depname = this.$login.f.deps
|
|
264
259
|
this.pcdmodel.f_pcd = this.pcdmodel.f_province+this.pcdmodel.f_city+this.pcdmodel.f_district
|
|
265
|
-
await this.$resetpost('
|
|
260
|
+
await this.$resetpost('api/af-revenue/logic/address_updatepcd', this.pcdmodel)
|
|
266
261
|
},
|
|
267
262
|
//保存街道
|
|
268
263
|
async savestreet(){
|
|
@@ -275,7 +270,7 @@
|
|
|
275
270
|
this.streetmodel.f_depname = this.$login.f.deps
|
|
276
271
|
this.streetmodel.f_pcd=this.findbyid(this.pcdslist,this.streetmodel.f_pcd_id).f_pcd
|
|
277
272
|
console.log('获取街道model', this.streetmodel)
|
|
278
|
-
await this.$resetpost('
|
|
273
|
+
await this.$resetpost('api/af-revenue/logic/address_updatestreet', this.streetmodel)
|
|
279
274
|
},
|
|
280
275
|
cancel(){
|
|
281
276
|
this.cleardara()
|