address-client 3.2.3 → 3.2.6

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 (32) hide show
  1. package/.gradle/{5.2.1/fileChanges → 3.5/file-changes}/last-build.bin +0 -0
  2. package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
  3. package/.gradle/{5.2.1/gc.properties → buildOutputCleanup/built.bin} +0 -0
  4. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  5. package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
  6. package/AddressClient.iml +13 -0
  7. package/build/dev-server.js +125 -125
  8. package/package.json +1 -1
  9. package/src/components/AddressList.vue +16 -14
  10. package/src/components/AreaList.vue +123 -10
  11. package/src/components/CityList.vue +133 -133
  12. package/src/components/StreetList.vue +210 -210
  13. package/src/components/UserAddress.vue +2 -4
  14. package/src/filiale/WEINAN/AddAreaMsg.vue +656 -656
  15. package/src/filiale/WEINAN/AddressList.vue +6 -0
  16. package/src/filiale/gongyi/AddAreaMsg.vue +11 -0
  17. package/src/filiale/tongchuan/AreaList.vue +315 -315
  18. package/src/filiale/tongchuan/CityList.vue +133 -133
  19. package/src/filiale/tongchuan/StreetList.vue +208 -208
  20. package/src/filiale/tongchuan/sale.js +19 -19
  21. package/src/main.js +21 -21
  22. package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
  23. package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
  24. package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
  25. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  26. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  27. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  28. package/.gradle/vcs-1/gc.properties +0 -0
  29. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  30. package/gradle/wrapper/gradle-wrapper.properties +0 -5
  31. package/gradlew +0 -172
  32. package/gradlew.bat +0 -84
@@ -1,2 +1,2 @@
1
- #Mon Dec 07 15:35:10 CST 2020
2
- gradle.version=5.2.1
1
+ #Fri Aug 06 15:02:49 CST 2021
2
+ gradle.version=3.5
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module external.linked.project.id="AddressClient" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="3.0.11" type="JAVA_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$">
6
+ <excludeFolder url="file://$MODULE_DIR$/.gradle" />
7
+ <excludeFolder url="file://$MODULE_DIR$/build" />
8
+ <excludeFolder url="file://$MODULE_DIR$/out" />
9
+ </content>
10
+ <orderEntry type="inheritedJdk" />
11
+ <orderEntry type="sourceFolder" forTests="false" />
12
+ </component>
13
+ </module>
@@ -1,125 +1,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 str = 'http://127.0.0.1:8078', str2= 'http://192.168.50.4:8400/'
14
- var proxyTable = {
15
-
16
- '/rs/logic/getLogin': {
17
- target: str2
18
- },
19
- '/rs/vue': {
20
- target: str2
21
- },
22
- '/rs/user': {
23
- target: str2
24
- },
25
- '/rs/db': {
26
- target: str2
27
- },
28
- '/rs/search': {
29
- target: str2
30
- },
31
- '/rs/data': {
32
- target: str2
33
- },
34
- '/rs/logic/getInitData': {
35
- target: str2
36
- },
37
- '/rs/logic/getSaleInitData': {
38
- target: str2
39
- },
40
- '/rs': {
41
- // target: 'http://192.168.50.199:8300'
42
- target: str
43
- }
44
- }
45
-
46
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
47
- publicPath: config.output.publicPath,
48
- stats: {
49
- colors: true,
50
- chunks: false
51
- }
52
- })
53
-
54
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
55
- // force page reload when html-webpack-plugin template changes
56
- compiler.plugin('compilation', function (compilation) {
57
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
58
- hotMiddleware.publish({ action: 'reload' })
59
- cb()
60
- })
61
- })
62
-
63
- // proxy api requests
64
- Object.keys(proxyTable).forEach(function (context) {
65
- var options = proxyTable[context]
66
- if (typeof options === 'string') {
67
- options = { target: options }
68
- }
69
- app.use(proxyMiddleware(context, options))
70
- })
71
-
72
- // handle fallback for HTML5 history API
73
- app.use(require('connect-history-api-fallback')())
74
-
75
- // serve webpack bundle output
76
- app.use(devMiddleware)
77
-
78
- // enable hot-reload and state-preserving
79
- // compilation error display
80
- app.use(hotMiddleware)
81
-
82
- // serve pure static assets
83
- app.use('/static', express.static('./static'))
84
-
85
- // app.all('/rs/*', function (req, res) {
86
- // proxy.web(req, res, {
87
- // target: 'http://127.0.0.1:8081/reports'
88
- // })
89
- // })
90
-
91
- // app.all('/rs/*', function (req, res) {
92
- // proxy.web(req, res, {
93
- // target: 'http://127.0.0.1:8081/ldap'
94
- // })
95
- // })
96
- // app.all('/excel/*', function (req, res) {
97
- // proxy.web(req, res, {
98
- // target: 'http://127.0.0.1:8081/charge'
99
- // })
100
- // })
101
-
102
- // app.all('/rs/*', function (req, res) {
103
- // proxy.web(req, res, {
104
- // target: 'http://127.0.0.1:82/charge'
105
- // })
106
- // })
107
-
108
- // app.all('/*', function (req, res) {
109
- // proxy.web(req, res, {
110
- // target: 'http://127.0.0.1:82'
111
- // })
112
- // })
113
- // app.all('/rs/user', function (req, res) {
114
- // proxy.web(req, res, {
115
- // target: 'http://127.0.0.1:82'
116
- // })
117
- // })
118
-
119
- module.exports = app.listen(8085, function (err) {
120
- if (err) {
121
- console.log(err)
122
- return
123
- }
124
- console.log('Listening at http://localhost:8085')
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 str = 'http://127.0.0.1:8078', str2= 'http://192.168.50.4:8400/'
14
+ var proxyTable = {
15
+
16
+ '/rs/logic/getLogin': {
17
+ target: str2
18
+ },
19
+ '/rs/vue': {
20
+ target: str2
21
+ },
22
+ '/rs/user': {
23
+ target: str2
24
+ },
25
+ '/rs/db': {
26
+ target: str2
27
+ },
28
+ '/rs/search': {
29
+ target: str2
30
+ },
31
+ '/rs/data': {
32
+ target: str2
33
+ },
34
+ '/rs/logic/getInitData': {
35
+ target: str2
36
+ },
37
+ '/rs/logic/getSaleInitData': {
38
+ target: str2
39
+ },
40
+ '/rs': {
41
+ // target: 'http://192.168.50.199:8300'
42
+ target: str2
43
+ }
44
+ }
45
+
46
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
47
+ publicPath: config.output.publicPath,
48
+ stats: {
49
+ colors: true,
50
+ chunks: false
51
+ }
52
+ })
53
+
54
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
55
+ // force page reload when html-webpack-plugin template changes
56
+ compiler.plugin('compilation', function (compilation) {
57
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
58
+ hotMiddleware.publish({ action: 'reload' })
59
+ cb()
60
+ })
61
+ })
62
+
63
+ // proxy api requests
64
+ Object.keys(proxyTable).forEach(function (context) {
65
+ var options = proxyTable[context]
66
+ if (typeof options === 'string') {
67
+ options = { target: options }
68
+ }
69
+ app.use(proxyMiddleware(context, options))
70
+ })
71
+
72
+ // handle fallback for HTML5 history API
73
+ app.use(require('connect-history-api-fallback')())
74
+
75
+ // serve webpack bundle output
76
+ app.use(devMiddleware)
77
+
78
+ // enable hot-reload and state-preserving
79
+ // compilation error display
80
+ app.use(hotMiddleware)
81
+
82
+ // serve pure static assets
83
+ app.use('/static', express.static('./static'))
84
+
85
+ // app.all('/rs/*', function (req, res) {
86
+ // proxy.web(req, res, {
87
+ // target: 'http://127.0.0.1:8081/reports'
88
+ // })
89
+ // })
90
+
91
+ // app.all('/rs/*', function (req, res) {
92
+ // proxy.web(req, res, {
93
+ // target: 'http://127.0.0.1:8081/ldap'
94
+ // })
95
+ // })
96
+ // app.all('/excel/*', function (req, res) {
97
+ // proxy.web(req, res, {
98
+ // target: 'http://127.0.0.1:8081/charge'
99
+ // })
100
+ // })
101
+
102
+ // app.all('/rs/*', function (req, res) {
103
+ // proxy.web(req, res, {
104
+ // target: 'http://127.0.0.1:82/charge'
105
+ // })
106
+ // })
107
+
108
+ // app.all('/*', function (req, res) {
109
+ // proxy.web(req, res, {
110
+ // target: 'http://127.0.0.1:82'
111
+ // })
112
+ // })
113
+ // app.all('/rs/user', function (req, res) {
114
+ // proxy.web(req, res, {
115
+ // target: 'http://127.0.0.1:82'
116
+ // })
117
+ // })
118
+
119
+ module.exports = app.listen(8085, function (err) {
120
+ if (err) {
121
+ console.log(err)
122
+ return
123
+ }
124
+ console.log('Listening at http://localhost:8085')
125
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "address-client",
3
- "version": "3.2.3",
3
+ "version": "3.2.6",
4
4
  "description": "地址管理前台组件",
5
5
  "author": "wanbochao",
6
6
  "license": "ISC",
@@ -295,6 +295,7 @@
295
295
  f_pcd_id:'',
296
296
  f_street_id:'',
297
297
  f_residential_area:'',
298
+ f_residential_area_id:''
298
299
  },
299
300
  //初始化省市区数据
300
301
  pcdslist:[],
@@ -403,11 +404,15 @@
403
404
  this.f_filialeids = val[0]
404
405
  },
405
406
  async modifyBatch () {
406
- if(this.$refs.paged.$refs.grid.getRowData().length != 0){
407
- this.areamodel.f_pcd_id = this.$refs.paged.$refs.grid.getRowData()[0].f_pcd_id
408
- this.showModify = true
407
+ if (this.f_filialeids) {
408
+ if (this.$refs.paged.$refs.grid.getRowData().length != 0) {
409
+ this.areamodel.f_pcd_id = this.$refs.paged.$refs.grid.getRowData()[0].f_pcd_id
410
+ this.showModify = true
411
+ } else {
412
+ this.$showAlert('请至少选择一项!', 'warning', 2000)
413
+ }
409
414
  }else {
410
- this.$showAlert('请至少选择一项!', 'warning', 2000)
415
+ this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
411
416
  }
412
417
  },
413
418
  confirmModify () {
@@ -415,14 +420,10 @@
415
420
  this.$refs.paged.$refs.grid.getRowData().forEach((row,n) => {
416
421
  this.userInfos[n] = {
417
422
  userid: row.id,
418
- userBuilding: row.f_building,
419
- userBuildingSuffix: row.f_building_suffix,
420
- userUnit: row.f_unit,
421
- userUnitSuffix: row.f_unit_suffix,
422
- userFloor: row.f_floor,
423
- userFloorSuffix: row.f_floor_suffix,
424
- userRoom: row.f_room,
425
- userRoomSuffix: row.f_room_suffix
423
+ f_residential_area: row.f_residential_area,
424
+ f_street: row.f_street,
425
+ f_address: row.f_address,
426
+ f_address_rest: row.f_street + row.f_residential_area + (row.f_building?row.f_building+row.f_building_suffix:'') + (row.f_unit?row.f_unit+row.f_unit_suffix:'') + (row.f_floor?row.f_floor+row.f_floor_suffix:'') + (row.f_room?row.f_room+row.f_room_suffix:'')
426
427
  }
427
428
  })
428
429
  let modifyBatchData = {
@@ -435,13 +436,14 @@
435
436
  f_orgid: this.$login.f.orgid,
436
437
  f_orgname: this.$login.f.orgs,
437
438
  f_depid: this.$login.f.depids,
438
- f_depname: this.$login.f.deps
439
+ f_depname: this.$login.f.deps,
440
+ f_filialeid: this.f_filialeids
439
441
  }
440
442
  this.$resetpost('rs/logic/modifyBatch',modifyBatchData)
441
443
  this.initpcds(`f_filialeid = '${this.f_filialeids}'`)
442
444
  this.showModify = false
443
445
  this.$refs.paged.$refs.grid.selectInit()
444
- this.search()
446
+ this.$refs.paged.$refs.cri.search()
445
447
  },
446
448
  cancelModify() {
447
449
  this.initpcds(`f_filialeid = '${this.f_filialeids}'`)
@@ -40,6 +40,7 @@
40
40
  </div>
41
41
  <div class="col-sm-4 form-group button-range">
42
42
  <button class="button_search button_spacing" @click="search()" >查询</button>
43
+ <button class="button_search button_spacing" @click="$parent.$parent.batchDelete()">批量删除</button>
43
44
  <button v-if="!$parent.$parent.f_special" class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('小区')">添加小区</button>
44
45
  <button v-if="$parent.$parent.f_special"class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('单位')">添加单位</button>
45
46
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
@@ -97,12 +98,10 @@
97
98
  </div>
98
99
  </div>
99
100
  </div>
100
-
101
-
102
101
  </criteria>
103
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
102
+
103
+ <data-grid :model="model" partial='list' class="list_area table_sy" :optional="true" v-ref:grid>
104
104
  <template partial='head'>
105
- <tr>
106
105
  <th><nobr>序号</nobr></th>
107
106
  <th v-if="false"><nobr>省份</nobr></th>
108
107
  <th v-if="false"><nobr>城市</nobr></th>
@@ -127,11 +126,8 @@
127
126
  <th><nobr>操作日期</nobr></th>
128
127
  <th title="该小区下现有的地址数"><nobr>地址数</nobr></th>
129
128
  <th><nobr>操作</nobr></th>
130
-
131
- </tr>
132
129
  </template>
133
130
  <template partial='body'>
134
- <tr>
135
131
  <td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
136
132
  <td style="text-align:center" v-if="false"><nobr>{{row.f_province}}</nobr></td>
137
133
  <td style="text-align:center" v-if="false"><nobr>{{row.f_city}}</nobr></td>
@@ -157,12 +153,34 @@
157
153
  <button v-if="!row.f_residential_area_id" type="button" name="button" class="btn btn-danger"
158
154
  style="padding: 5px 12px"
159
155
  @click.stop="$parent.$parent.$parent.delete(row)">删除</button>
160
- </nobr></td>
161
- </tr>
156
+ </nobr>
157
+ </td>
162
158
  </template>
163
159
  <template partial='foot'></template>
164
160
  </data-grid>
165
161
  </criteria-paged>
162
+ <modal :show="showDelete" large backdrop="false" :width="900">
163
+ <header slot="modal-header" class="modal-header">
164
+ <p class="bg-info text-center" style="padding: 8px;">请选择目标小区</p>
165
+ </header>
166
+ <article slot="modal-body" class="modal-body">
167
+ <validator name='v'>
168
+ <div class="col-sm-6 form-group ">
169
+ <label class="font_normal_body">小区名称</label>
170
+ <input type="text" style="width:41%" v-show="false" v-validate:f_residential_area_id='{required: true }' v-model="areamodel.f_residential_area_id">
171
+ <v-select :value.sync="areamodel.f_residential_area_id" :value-single="true"
172
+ @change="areaChange"
173
+ :options='areaslist' placeholder='请选择'
174
+ close-on-select search="true">
175
+ </v-select>
176
+ </div>
177
+ </validator>
178
+ </article>
179
+ <footer slot="modal-footer" class="modal-footer">
180
+ <button v-show="showDelete" type="button" class="button_search button_spacing" @click='confirmDelete()' :disabled='!$v.valid'>确认</button>
181
+ <button v-show="showDelete" type="button" class="button_clear button_spacing" @click='cancelDelete()'>取消</button>
182
+ </footer>
183
+ </modal>
166
184
  </div>
167
185
  </template>
168
186
 
@@ -176,7 +194,18 @@
176
194
 
177
195
  data () {
178
196
  return {
197
+ showDelete: false,
179
198
  criteriaShow: false,
199
+ // 目标小区数据
200
+ areamodel: {
201
+ f_residential_area_id: '',
202
+ f_pcd: '',
203
+ f_pcd_id: '',
204
+ f_street: '',
205
+ f_street_id: '',
206
+ f_slice_area: '',
207
+ f_residential_area: ''
208
+ },
180
209
  model: new PagedList('rs/sql/address_getarealist',20),
181
210
  addflag: false,
182
211
  addtitle:'',
@@ -184,6 +213,8 @@
184
213
  // 公司下拉
185
214
  curorgid: [this.$login.f.orgid],
186
215
  f_orgid: '',
216
+ //初始化小区数据
217
+ areaslist:[],
187
218
  config: {
188
219
  // 导出列要和查询列相同
189
220
  excelHeaders: {
@@ -280,7 +311,89 @@
280
311
  getorg (val) {
281
312
  this.f_orgid = this.$login.convertToIn(val)
282
313
  this.f_filialeids = val[0]
283
- }
314
+ },
315
+ async batchDelete () {
316
+ if (this.f_filialeids) {
317
+ if (this.$refs.paged.$refs.grid.getRowData().length != 0) {
318
+ this.showDelete = true
319
+ let condition = `a.f_orgid = '${this.f_filialeids}'`
320
+ let req = await this.$resetpost('rs/sql/address_getresidential', {
321
+ data: {
322
+ condition: condition
323
+ }
324
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
325
+ let redata = []
326
+ req.data.forEach((row) => {
327
+ redata.push({
328
+ label: row.f_residential_area,
329
+ value: row.id,
330
+ data: row,
331
+ id: row.id
332
+ })
333
+ })
334
+ this.areaslist = redata
335
+ } else {
336
+ this.$showAlert('请至少选择一项!', 'warning', 2000)
337
+ }
338
+ }else {
339
+ this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
340
+ }
341
+ },
342
+ confirmDelete () {
343
+ let msg = {
344
+ resolveMsg: '批量删除成功',
345
+ rejectMsg: '批量删除失败!'
346
+ }
347
+ let oldAreaIds = []
348
+ // 获取要批量删除的小区数据
349
+ this.$refs.paged.$refs.grid.getRowData().forEach((row,n) => {
350
+ oldAreaIds[n] = row.id
351
+ })
352
+ this.$resetpost('rs/logic/batchDelete',{
353
+ data:{
354
+ areamodel:this.areamodel,
355
+ oldAreaIds:oldAreaIds,
356
+ f_operator: this.$login.f.name,
357
+ f_operatorid: this.$login.f.id,
358
+ f_orgid: this.$login.f.orgid,
359
+ f_orgname: this.$login.f.orgs,
360
+ f_depid: this.$login.f.depids,
361
+ f_depname: this.$login.f.deps
362
+ }
363
+ },msg)
364
+ this.$refs.paged.$refs.grid.selectInit()
365
+ this.$refs.paged.$refs.cri.search()
366
+ this.areamodel.f_residential_area_id = ''
367
+ this.showDelete = false
368
+ },
369
+ cancelDelete () {
370
+ this.$refs.paged.$refs.grid.selectInit()
371
+ this.$refs.paged.$refs.cri.search()
372
+ this.areamodel.f_residential_area_id = ''
373
+ this.showDelete = false
374
+ },
375
+ areaChange(val){
376
+ console.log("小区变化",val)
377
+ let selectArea // 选中的小区数据
378
+ for (let row of this.areaslist) {
379
+ if (val == row.value) {
380
+ selectArea = row.data
381
+ break
382
+ }
383
+ }
384
+ if (selectArea) {
385
+ this.areamodel.f_residential_area_id = selectArea.id
386
+ this.areamodel.f_pcd = selectArea.f_pcd
387
+ this.areamodel.f_pcd_id = selectArea.f_pcd_id
388
+ this.areamodel.f_street = selectArea.f_street
389
+ this.areamodel.f_street_id = selectArea.f_street_id
390
+ this.areamodel.f_slice_area = selectArea.f_slice_area
391
+ this.areamodel.f_residential_area = selectArea.f_residential_area
392
+ }
393
+ this.$nextTick(() => {
394
+ this.$resetValidation()
395
+ })
396
+ },
284
397
  },
285
398
  watch:{
286
399