address-client 3.2.104 → 3.2.105-ls
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 +174 -185
- package/package.json +3 -4
- 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 +22 -16
- 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 +4 -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 +240 -241
- 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/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 +392 -379
- 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 +2 -3
- package/build/versionCheck.js +0 -31
- package/src/filiale/lixianV3/AreaList.vue +0 -416
- package/src/filiale/lixianV3/sale.js +0 -12
package/build/dev-server.js
CHANGED
|
@@ -1,185 +1,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
|
-
|
|
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
|
-
|
|
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
|
-
secure:true,
|
|
78
|
-
changeOrigin:true
|
|
79
|
-
// target: 'http://127.0.0.1:8080'
|
|
80
|
-
},
|
|
81
|
-
'/rs/
|
|
82
|
-
target:
|
|
83
|
-
secure:true,
|
|
84
|
-
changeOrigin:true
|
|
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
|
-
var
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
//
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
//
|
|
139
|
-
|
|
140
|
-
app.
|
|
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
|
-
|
|
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
|
-
})
|
|
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 str = 'http://127.0.0.1:8288/', str2= 'http://172.168.1.11:9001/#'
|
|
14
|
+
var str3= 'http://172.168.1.11:9001/#'
|
|
15
|
+
var proxyTable = {
|
|
16
|
+
'/rs/entity': {
|
|
17
|
+
target: str
|
|
18
|
+
// secure:true,
|
|
19
|
+
// changeOrigin:true
|
|
20
|
+
// target: 'http://127.0.0.1:8080'
|
|
21
|
+
},
|
|
22
|
+
'/webapps':{
|
|
23
|
+
target: str3,
|
|
24
|
+
secure:true,
|
|
25
|
+
changeOrigin:true
|
|
26
|
+
// target: 'http://127.0.0.1:8080'
|
|
27
|
+
},
|
|
28
|
+
'/rs/logic/getLogin': {
|
|
29
|
+
target: str3,
|
|
30
|
+
secure:true,
|
|
31
|
+
changeOrigin:true
|
|
32
|
+
},
|
|
33
|
+
'/rs/logic/getInitData': {
|
|
34
|
+
target: str3,
|
|
35
|
+
secure:true,
|
|
36
|
+
changeOrigin:true,
|
|
37
|
+
},
|
|
38
|
+
'/rs/logic/getSaleInitData': {
|
|
39
|
+
target: str3,
|
|
40
|
+
secure:true,
|
|
41
|
+
changeOrigin:true
|
|
42
|
+
},
|
|
43
|
+
// '/rs/logic':{
|
|
44
|
+
// target: str3,
|
|
45
|
+
// secure:true,
|
|
46
|
+
// changeOrigin:true
|
|
47
|
+
// // target: 'http://127.0.0.1:8080'
|
|
48
|
+
// },
|
|
49
|
+
'/rs/vue': {
|
|
50
|
+
target: str3,
|
|
51
|
+
secure:true,
|
|
52
|
+
changeOrigin:true
|
|
53
|
+
},
|
|
54
|
+
'/rs/user': {
|
|
55
|
+
target: str3,
|
|
56
|
+
secure:true,
|
|
57
|
+
changeOrigin:true
|
|
58
|
+
},
|
|
59
|
+
'/rs/db': {
|
|
60
|
+
target: str3,
|
|
61
|
+
secure:true,
|
|
62
|
+
changeOrigin:true
|
|
63
|
+
},
|
|
64
|
+
'/rs/search': {
|
|
65
|
+
target: str3,
|
|
66
|
+
secure:true,
|
|
67
|
+
changeOrigin:true
|
|
68
|
+
// target: 'http://127.0.0.1:8080'
|
|
69
|
+
},
|
|
70
|
+
'/rs/data': {
|
|
71
|
+
target: str3,
|
|
72
|
+
secure:true,
|
|
73
|
+
changeOrigin:true
|
|
74
|
+
},
|
|
75
|
+
'/rs/sql': {
|
|
76
|
+
target: str
|
|
77
|
+
// secure: true,
|
|
78
|
+
// changeOrigin:true
|
|
79
|
+
// target: 'http://127.0.0.1:8080'
|
|
80
|
+
},
|
|
81
|
+
'/rs/logic': {
|
|
82
|
+
target: str
|
|
83
|
+
// secure: true,
|
|
84
|
+
// changeOrigin:true
|
|
85
|
+
// target: 'http://127.0.0.1:8080'
|
|
86
|
+
},
|
|
87
|
+
'/rs': {
|
|
88
|
+
// target: 'http://192.168.50.199:8300'
|
|
89
|
+
target: str3,
|
|
90
|
+
secure:true,
|
|
91
|
+
changeOrigin:true
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
96
|
+
publicPath: config.output.publicPath,
|
|
97
|
+
stats: {
|
|
98
|
+
colors: true,
|
|
99
|
+
chunks: false
|
|
100
|
+
}
|
|
101
|
+
})
|
|
102
|
+
|
|
103
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
104
|
+
// force page reload when html-webpack-plugin template changes
|
|
105
|
+
compiler.plugin('compilation', function (compilation) {
|
|
106
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
107
|
+
hotMiddleware.publish({ action: 'reload' })
|
|
108
|
+
cb()
|
|
109
|
+
})
|
|
110
|
+
})
|
|
111
|
+
|
|
112
|
+
// proxy api requests
|
|
113
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
114
|
+
var options = proxyTable[context]
|
|
115
|
+
if (typeof options === 'string') {
|
|
116
|
+
options = { target: options }
|
|
117
|
+
}
|
|
118
|
+
app.use(proxyMiddleware(context, options))
|
|
119
|
+
})
|
|
120
|
+
|
|
121
|
+
// handle fallback for HTML5 history API
|
|
122
|
+
app.use(require('connect-history-api-fallback')())
|
|
123
|
+
|
|
124
|
+
// serve webpack bundle output
|
|
125
|
+
app.use(devMiddleware)
|
|
126
|
+
|
|
127
|
+
// enable hot-reload and state-preserving
|
|
128
|
+
// compilation error display
|
|
129
|
+
app.use(hotMiddleware)
|
|
130
|
+
|
|
131
|
+
// serve pure static assets
|
|
132
|
+
app.use('/static', express.static('./static'))
|
|
133
|
+
|
|
134
|
+
// app.all('/rs/*', function (req, res) {
|
|
135
|
+
// proxy.web(req, res, {
|
|
136
|
+
// target: 'http://127.0.0.1:8081/reports'
|
|
137
|
+
// })
|
|
138
|
+
// })
|
|
139
|
+
|
|
140
|
+
// app.all('/rs/*', function (req, res) {
|
|
141
|
+
// proxy.web(req, res, {
|
|
142
|
+
// target: 'http://127.0.0.1:8081/ldap'
|
|
143
|
+
// })
|
|
144
|
+
// })
|
|
145
|
+
// app.all('/excel/*', function (req, res) {
|
|
146
|
+
// proxy.web(req, res, {
|
|
147
|
+
// target: 'http://127.0.0.1:8081/charge'
|
|
148
|
+
// })
|
|
149
|
+
// })
|
|
150
|
+
|
|
151
|
+
// app.all('/rs/*', function (req, res) {
|
|
152
|
+
// proxy.web(req, res, {
|
|
153
|
+
// target: 'http://127.0.0.1:82/charge'
|
|
154
|
+
// })
|
|
155
|
+
// })
|
|
156
|
+
|
|
157
|
+
// app.all('/*', function (req, res) {
|
|
158
|
+
// proxy.web(req, res, {
|
|
159
|
+
// target: 'http://127.0.0.1:82'
|
|
160
|
+
// })
|
|
161
|
+
// })
|
|
162
|
+
// app.all('/rs/user', function (req, res) {
|
|
163
|
+
// proxy.web(req, res, {
|
|
164
|
+
// target: 'http://127.0.0.1:82'
|
|
165
|
+
// })
|
|
166
|
+
// })
|
|
167
|
+
|
|
168
|
+
module.exports = app.listen(8085, function (err) {
|
|
169
|
+
if (err) {
|
|
170
|
+
console.log(err)
|
|
171
|
+
return
|
|
172
|
+
}
|
|
173
|
+
console.log('Listening at http://localhost:8085')
|
|
174
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "address-client",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.105-ls",
|
|
4
4
|
"description": "地址管理前台组件",
|
|
5
5
|
"author": "wanbochao",
|
|
6
6
|
"license": "ISC",
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"url": "https://gitee.com/aote/address_management.git"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"crypto-js": "^4.1.1",
|
|
27
26
|
"less-loader": "^2.2.3",
|
|
28
27
|
"vue": "^1.0.17"
|
|
29
28
|
},
|
|
@@ -80,9 +79,9 @@
|
|
|
80
79
|
"style": "0.0.3",
|
|
81
80
|
"style-loader": "^0.20.3",
|
|
82
81
|
"ldap-clients": "3.0.48",
|
|
83
|
-
"system-clients": "3.2.
|
|
82
|
+
"system-clients": "3.2.68",
|
|
84
83
|
"url-loader": "^0.5.7",
|
|
85
|
-
"vue-client": "1.24.
|
|
84
|
+
"vue-client": "1.24.98",
|
|
86
85
|
"vue-hot-reload-api": "^1.2.0",
|
|
87
86
|
"vue-html-loader": "^1.0.0",
|
|
88
87
|
"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', 'rs/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', 'rs/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', 'rs/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('rs/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('rs/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('rs/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('rs/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('rs/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', 'rs/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('rs/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('rs/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', 'rs/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('rs/logic/address_updateStreetManage', this.streetmanagemodel)
|
|
176
176
|
},
|
|
177
177
|
cancel() {
|
|
178
178
|
this.clearData()
|
|
@@ -150,18 +150,23 @@
|
|
|
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
|
-
|
|
153
|
+
if (this.streetmodel.f_street_number.length != 2){
|
|
154
|
+
this.$showAlert('请输入正确的位数', 'warning', 2000)
|
|
155
|
+
this.streetmodel.f_street_number = ''
|
|
156
|
+
}else{
|
|
157
|
+
let res =await this.$resetpost('rs/sql/address_singleTableOrderBy', {
|
|
158
|
+
data: {
|
|
159
|
+
items: '*',
|
|
160
|
+
tablename: 't_street',
|
|
161
|
+
orderitem: 'id',
|
|
162
|
+
condition: `f_street_number = '${this.streetmodel.f_street_number}' and f_orgid = '${this.$login.f.orgid}'`
|
|
163
|
+
}
|
|
164
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
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
|
+
}
|
|
165
170
|
}
|
|
166
171
|
}
|
|
167
172
|
},
|
|
@@ -171,7 +176,7 @@
|
|
|
171
176
|
this.$showAlert('请输入正确的位数', 'warning', 2000)
|
|
172
177
|
this.pcdmodel.f_pcd_number = ''
|
|
173
178
|
}else{
|
|
174
|
-
let res =await this.$resetpost('
|
|
179
|
+
let res =await this.$resetpost('rs/sql/address_singleTableOrderBy', {
|
|
175
180
|
data: {
|
|
176
181
|
items: '*',
|
|
177
182
|
tablename: 't_pcd',
|
|
@@ -191,7 +196,7 @@
|
|
|
191
196
|
initpcds(pconditon){
|
|
192
197
|
console.log("省市区准备")
|
|
193
198
|
let HttpReset = new HttpResetClass()
|
|
194
|
-
HttpReset.load('POST', '
|
|
199
|
+
HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
|
|
195
200
|
data: {
|
|
196
201
|
items: '*',
|
|
197
202
|
tablename: 't_pcd',
|
|
@@ -240,6 +245,7 @@
|
|
|
240
245
|
async confirm(){
|
|
241
246
|
if(this.areatype=='省市区'){
|
|
242
247
|
await this.savepcd()
|
|
248
|
+
this.$refs.addpcd.search()
|
|
243
249
|
}
|
|
244
250
|
if(this.areatype=='街道'){
|
|
245
251
|
await this.savestreet()
|
|
@@ -257,7 +263,7 @@
|
|
|
257
263
|
this.pcdmodel.f_depid = this.$login.f.depids
|
|
258
264
|
this.pcdmodel.f_depname = this.$login.f.deps
|
|
259
265
|
this.pcdmodel.f_pcd = this.pcdmodel.f_province+this.pcdmodel.f_city+this.pcdmodel.f_district
|
|
260
|
-
await this.$resetpost('
|
|
266
|
+
await this.$resetpost('rs/logic/address_updatepcd', this.pcdmodel)
|
|
261
267
|
},
|
|
262
268
|
//保存街道
|
|
263
269
|
async savestreet(){
|
|
@@ -270,7 +276,7 @@
|
|
|
270
276
|
this.streetmodel.f_depname = this.$login.f.deps
|
|
271
277
|
this.streetmodel.f_pcd=this.findbyid(this.pcdslist,this.streetmodel.f_pcd_id).f_pcd
|
|
272
278
|
console.log('获取街道model', this.streetmodel)
|
|
273
|
-
await this.$resetpost('
|
|
279
|
+
await this.$resetpost('rs/logic/address_updatestreet', this.streetmodel)
|
|
274
280
|
},
|
|
275
281
|
cancel(){
|
|
276
282
|
this.cleardara()
|