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.
Files changed (94) hide show
  1. package/build/dev-server.js +174 -185
  2. package/package.json +3 -4
  3. package/src/components/AddAreaMsg.vue +7 -7
  4. package/src/components/AddCommunityManageMsg.vue +3 -3
  5. package/src/components/AddStreetManageMsg.vue +3 -3
  6. package/src/components/AddStreetOrPcd.vue +22 -16
  7. package/src/components/AddressAddAddress.vue +14 -14
  8. package/src/components/AddressFiles.vue +1 -1
  9. package/src/components/AddressList.vue +9 -9
  10. package/src/components/AddressTree.vue +5 -5
  11. package/src/components/AreaFiles.vue +1 -1
  12. package/src/components/AreaList.vue +5 -5
  13. package/src/components/AreaTree.vue +5 -5
  14. package/src/components/Basch.vue +1 -1
  15. package/src/components/BatchOrders.vue +6 -6
  16. package/src/components/BuildingList.vue +2 -2
  17. package/src/components/CityList.vue +4 -3
  18. package/src/components/CommunityAreaList.vue +1 -1
  19. package/src/components/CommunityManageList.vue +4 -4
  20. package/src/components/NewAddressInfo.vue +4 -4
  21. package/src/components/StreetList.vue +240 -241
  22. package/src/components/StreetManageList.vue +4 -4
  23. package/src/components/UserAddress.vue +903 -903
  24. package/src/components/UserAddressChange.vue +1 -1
  25. package/src/components/selectAddress/BatchList.vue +6 -6
  26. package/src/filiale/WEINAN/AddAreaMsg.vue +5 -5
  27. package/src/filiale/WEINAN/AddressList.vue +9 -9
  28. package/src/filiale/WEINAN/AreaList.vue +435 -435
  29. package/src/filiale/WEINAN/AreaUserList.vue +3 -3
  30. package/src/filiale/WEINAN/UserAddress.vue +5 -5
  31. package/src/filiale/chengtou/UserAddress.vue +6 -6
  32. package/src/filiale/dongguan/AddStreetOrPcd.vue +6 -6
  33. package/src/filiale/gaomi/AddressList.vue +6 -6
  34. package/src/filiale/gaomi/UserAddress.vue +5 -5
  35. package/src/filiale/gongyi/AddAreaMsg.vue +4 -4
  36. package/src/filiale/gongyi/UserAddress.vue +5 -5
  37. package/src/filiale/haile/AddressList.vue +9 -9
  38. package/src/filiale/jingwei/UserAddress.vue +5 -5
  39. package/src/filiale/macheng/AddAreaMsg.vue +4 -4
  40. package/src/filiale/macheng/AddStreetOrPcd.vue +3 -3
  41. package/src/filiale/macheng/AddressList.vue +9 -9
  42. package/src/filiale/macheng/AreaList.vue +4 -4
  43. package/src/filiale/macheng/StreetList.vue +3 -3
  44. package/src/filiale/macheng/UserAddress.vue +5 -5
  45. package/src/filiale/meihekou/UserAddress.vue +6 -6
  46. package/src/filiale/qianneng/AddAreaMsg.vue +7 -7
  47. package/src/filiale/qianneng/AddStreetOrPcd.vue +5 -5
  48. package/src/filiale/qianneng/AddressList.vue +10 -10
  49. package/src/filiale/qianneng/AreaList.vue +6 -6
  50. package/src/filiale/qianneng/UserAddress.vue +7 -7
  51. package/src/filiale/qinhua/AddAreaMsg.vue +7 -7
  52. package/src/filiale/qinhua/AddressList.vue +9 -9
  53. package/src/filiale/qinhua/AreaList.vue +6 -6
  54. package/src/filiale/qinhua/StreetList.vue +4 -4
  55. package/src/filiale/qinhua/UserAddress.vue +6 -6
  56. package/src/filiale/rizhao/UserAddress.vue +6 -6
  57. package/src/filiale/rongcheng/AddressList.vue +5 -5
  58. package/src/filiale/rongcheng/UserAddress.vue +5 -5
  59. package/src/filiale/shanggao/AddAreaMsg.vue +7 -7
  60. package/src/filiale/shanggao/AddStreetOrPcd.vue +5 -5
  61. package/src/filiale/shanggao/AddressList.vue +9 -9
  62. package/src/filiale/shanggao/AreaList.vue +6 -6
  63. package/src/filiale/shanggao/BuildingList.vue +2 -2
  64. package/src/filiale/shanggao/StreetList.vue +4 -4
  65. package/src/filiale/shanggao/UserAddress.vue +7 -7
  66. package/src/filiale/shanxian/AddAreaMsg.vue +7 -7
  67. package/src/filiale/shanxian/AddressList.vue +9 -9
  68. package/src/filiale/shanxian/AreaList.vue +6 -6
  69. package/src/filiale/shanxian/UserAddress.vue +6 -6
  70. package/src/filiale/shaoguan/AddAreaMsg.vue +4 -4
  71. package/src/filiale/shaoguan/UserAddress.vue +5 -5
  72. package/src/filiale/tongchuan/AddAreaMsg.vue +4 -4
  73. package/src/filiale/tongchuan/AddStreetOrPcd.vue +6 -6
  74. package/src/filiale/tongchuan/AddressList.vue +392 -379
  75. package/src/filiale/tongchuan/AreaList.vue +4 -4
  76. package/src/filiale/tongchuan/CityList.vue +3 -3
  77. package/src/filiale/tongchuan/StreetList.vue +4 -4
  78. package/src/filiale/tongchuan/UserAddress.vue +6 -6
  79. package/src/filiale/wuhai/UserAddress.vue +5 -5
  80. package/src/filiale/xinkang/AddAreaMsg.vue +8 -8
  81. package/src/filiale/xinkang/AreaList.vue +5 -5
  82. package/src/filiale/yangchun/AddAreaMsg.vue +756 -756
  83. package/src/filiale/yangchun/sale.js +7 -7
  84. package/src/filiale/zhongsheng/AddressList.vue +10 -10
  85. package/src/filiale/zhongsheng/AreaList.vue +7 -7
  86. package/src/filiale/zhongyi/AddAreaMsg.vue +7 -7
  87. package/src/filiale/zhoukou/AddAreaMsg.vue +5 -5
  88. package/src/filiale/zhoukou/AddressList.vue +5 -5
  89. package/src/filiale/zhoukou/AreaList.vue +4 -4
  90. package/src/filiale/zhoukou/UserAddress.vue +6 -6
  91. package/src/main.js +2 -3
  92. package/build/versionCheck.js +0 -31
  93. package/src/filiale/lixianV3/AreaList.vue +0 -416
  94. package/src/filiale/lixianV3/sale.js +0 -12
@@ -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
- 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
- })
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.104",
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.95",
82
+ "system-clients": "3.2.68",
84
83
  "url-loader": "^0.5.7",
85
- "vue-client": "1.24.150",
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', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
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', 'api/af-revenue/sql/address_singleTableOrderBy', {
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', 'api/af-revenue/sql/address_singleTableOrderBy', {
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('api/af-revenue/sql/address_singleTableOrderBy', {
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('api/af-revenue/logic/address_validateAreaID', param, {resolveMsg: null,rejectMsg: '小区编号验证失败!!'})
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('api/af-revenue/logic/address_savebuilding', this.buildingmodel)
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('api/af-revenue/logic/address_updatearea', this.areamodel)
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('api/af-revenue/sql/address_singleTableOrderBy', {
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', 'api/af-revenue/sql/address_singleTableOrderBy', {
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('api/af-revenue/logic/address_updateCommunityManage', this.communitymodel)
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('api/af-revenue/sql/address_singleTableOrderBy', {
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', 'api/af-revenue/sql/address_singleTableOrderBy', {
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('api/af-revenue/logic/address_updateStreetManage', this.streetmanagemodel)
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
- 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 = ''
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('api/af-revenue/sql/address_singleTableOrderBy', {
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', 'api/af-revenue/sql/address_singleTableOrderBy', {
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('api/af-revenue/logic/address_updatepcd', this.pcdmodel)
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('api/af-revenue/logic/address_updatestreet', this.streetmodel)
279
+ await this.$resetpost('rs/logic/address_updatestreet', this.streetmodel)
274
280
  },
275
281
  cancel(){
276
282
  this.cleardara()