address-client 3.0.24-78 → 3.0.24-aode

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 (79) hide show
  1. package/.gradle/{5.2.1 → 5.5}/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.5/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/{5.2.1 → 5.5}/gc.properties +0 -0
  4. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  5. package/.gradle/buildOutputCleanup/built.bin +0 -0
  6. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  7. package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
  8. package/CHANGELOG.md +0 -3
  9. package/build/dev-server.js +2 -2
  10. package/build/webpack.base.conf.js +2 -6
  11. package/examples/showAdd/App.vue +2 -2
  12. package/index.html +0 -4
  13. package/package.json +5 -6
  14. package/src/address.js +5 -11
  15. package/src/components/AddAreaMsg.vue +78 -148
  16. package/src/components/AddStreetOrPcd.vue +2 -79
  17. package/src/components/AddressList.vue +108 -182
  18. package/src/components/AddressManage.vue +1 -1
  19. package/src/components/AddressTree.vue +1 -1
  20. package/src/components/AreaList.vue +247 -317
  21. package/src/components/AreaManage.vue +18 -17
  22. package/src/components/CityManage.vue +1 -1
  23. package/src/components/NewAddressInfo.vue +1 -1
  24. package/src/components/StreetList.vue +26 -50
  25. package/src/components/UserAddress.vue +383 -509
  26. package/src/components/areauser/AreaUser.vue +233 -0
  27. package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
  28. package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
  29. package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
  30. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  31. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  32. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  33. package/gradle/wrapper/gradle-wrapper.properties +0 -5
  34. package/gradlew +0 -172
  35. package/gradlew.bat +0 -84
  36. package/src/components/CityList.vue +0 -133
  37. package/src/filiale/WEINAN/AddAreaMsg.vue +0 -656
  38. package/src/filiale/WEINAN/AddressList.vue +0 -351
  39. package/src/filiale/WEINAN/AddressManage.vue +0 -122
  40. package/src/filiale/WEINAN/AreaList.vue +0 -275
  41. package/src/filiale/WEINAN/UserAddress.vue +0 -783
  42. package/src/filiale/WEINAN/sale.js +0 -16
  43. package/src/filiale/gaomi/AddressList.vue +0 -430
  44. package/src/filiale/gaomi/UserAddress.vue +0 -832
  45. package/src/filiale/gaomi/sale.js +0 -14
  46. package/src/filiale/gongyi/AddAreaMsg.vue +0 -640
  47. package/src/filiale/gongyi/AreaManage.vue +0 -100
  48. package/src/filiale/gongyi/UserAddress.vue +0 -751
  49. package/src/filiale/gongyi/sale.js +0 -14
  50. package/src/filiale/jingwei/UserAddress.vue +0 -764
  51. package/src/filiale/jingwei/sale.js +0 -12
  52. package/src/filiale/macheng/AddAreaMsg.vue +0 -635
  53. package/src/filiale/macheng/AddStreetOrPcd.vue +0 -231
  54. package/src/filiale/macheng/AddressList.vue +0 -306
  55. package/src/filiale/macheng/AreaList.vue +0 -279
  56. package/src/filiale/macheng/CityManage.vue +0 -76
  57. package/src/filiale/macheng/StreetList.vue +0 -186
  58. package/src/filiale/macheng/UserAddress.vue +0 -743
  59. package/src/filiale/macheng/sale.js +0 -17
  60. package/src/filiale/rongcheng/AddressList.vue +0 -363
  61. package/src/filiale/rongcheng/UserAddress.vue +0 -799
  62. package/src/filiale/rongcheng/sale.js +0 -11
  63. package/src/filiale/shaoguan/AddAreaMsg.vue +0 -631
  64. package/src/filiale/shaoguan/UserAddress.vue +0 -764
  65. package/src/filiale/shaoguan/sale.js +0 -11
  66. package/src/filiale/tongchuan/AddAreaMsg.vue +0 -635
  67. package/src/filiale/tongchuan/AddStreetOrPcd.vue +0 -308
  68. package/src/filiale/tongchuan/AddressList.vue +0 -379
  69. package/src/filiale/tongchuan/AreaList.vue +0 -315
  70. package/src/filiale/tongchuan/AreaManage.vue +0 -100
  71. package/src/filiale/tongchuan/CityList.vue +0 -133
  72. package/src/filiale/tongchuan/StreetList.vue +0 -208
  73. package/src/filiale/tongchuan/UserAddress.vue +0 -795
  74. package/src/filiale/tongchuan/sale.js +0 -19
  75. package/src/filiale/wuhai/UserAddress.vue +0 -795
  76. package/src/filiale/wuhai/sale.js +0 -12
  77. package/src/filiale/zhoukou/AddressList.vue +0 -391
  78. package/src/filiale/zhoukou/UserAddress.vue +0 -833
  79. package/src/filiale/zhoukou/sale.js +0 -13
@@ -1,833 +0,0 @@
1
- <template>
2
- <div class="auto" style="height:80%">
3
- <validator name='v'>
4
- <p class="bg-info text-center" style="padding: 8px;">{{usertype ? '特殊地址管理' : '民用地址管理'}}</p>
5
- <div class="auto select-overspread form-horizontal">
6
- <div class="form-group" v-if="!usertype&&!model.id">
7
- <input type="radio" id="true" value="one" v-model="onedata">
8
- <label for="one">单户</label>
9
- <input type="radio" id="false" value="more" v-model="onedata">
10
- <label for="more">多户</label>
11
- </div>
12
- <!--单个录入-->
13
- <div v-if="onedata=='one'" class="row">
14
- <div class="col-sm-6 form-group">
15
- <label class="font_normal_body">地址类型</label>
16
- <v-select :value.sync="model.f_address_type" :value-single="true"
17
- class="select_list select"
18
- :options='addresstype' placeholder='地址类型'
19
- close-on-select>
20
- </v-select>
21
- </div>
22
- <div class="col-sm-6 form-group "
23
- :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']" v-if="!usertype&&model.f_address_type==='城市'">
24
- <label class="font_normal_body">省&ensp;市&ensp;区</label>
25
- <input type="text" style="width:41%" v-show="false" v-model="model.f_pcd_id"
26
- >
27
- <v-select :value.sync="model.f_pcd_id" :value-single="true"
28
- :options='pcdslist' placeholder='请选择'
29
- close-on-select search="true" @change="pcdChange" :disabled="!usertype">
30
- </v-select>
31
- </div>
32
- <div class="col-sm-6 form-group "
33
- :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']" v-if="usertype&&model.f_address_type==='城市'">
34
- <label class="font_normal_body">省&ensp;市&ensp;区</label>
35
- <input type="text" style="width:41%" v-show="false" v-model="model.f_pcd_id" v-validate:f_pcd_id='{required: true }'
36
- >
37
- <v-select :value.sync="model.f_pcd_id" :value-single="true"
38
- :options='pcdslist' placeholder='请选择'
39
- close-on-select search="true" @change="pcdChange" :disabled="!usertype">
40
- </v-select>
41
- </div>
42
- <div class="col-sm-6 form-group "
43
- :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']" v-if="usertype||model.f_address_type==='农村'">
44
- <label class="font_normal_body">&emsp;区&nbsp;/&nbsp;县</label>
45
- <input type="text" style="width:41%" v-show="false" v-model="$refs.f_pcd_id.selectedItems" v-validate:f_pcd_id='{required: true }'
46
- >
47
- <v-select :value.sync="model.f_pcd_id" :value-single="true"
48
- :options='pcdslist' placeholder='请选择' v-ref:f_pcd_id
49
- close-on-select search="true" @change="pcdChange">
50
- </v-select>
51
- </div>
52
- <div class="col-sm-6 form-group " v-if="!usertype && model.f_address_type==='城区'"
53
- :class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
54
- <label class="font_normal_body">街道名称</label>
55
- <input type="text" style="width:41%" v-show="false" v-model="model.f_street_id"
56
- >
57
- <v-select :value.sync="model.f_street_id" :value-single="true"
58
- :options='streetslist' placeholder='请选择'
59
- close-on-select search="true" :disabled="!usertype">
60
- </v-select>
61
- </div>
62
- <div class="col-sm-6 form-group " v-if="usertype && model.f_address_type==='城区'"
63
- :class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
64
- <label class="font_normal_body">街道名称</label>
65
- <input type="text" style="width:41%" v-show="false" v-model="model.f_street_id" v-validate:f_street_id='{required: true }'
66
- >
67
- <v-select :value.sync="model.f_street_id" :value-single="true"
68
- :options='streetslist' placeholder='请选择'
69
- @change="streetChange"
70
- close-on-select search="true" :disabled="!usertype">
71
- </v-select>
72
- </div>
73
- <div class="col-sm-6 form-group " v-if="!usertype && model.f_address_type==='城区'"
74
- :class="[$v.f_residential_area_id1.required ? 'has-error' : 'has-success']">
75
- <label class="font_normal_body">小区名称</label>
76
- <input type="text" style="width:41%" v-show="false" v-model="model.f_residential_area_id"
77
- v-validate:f_residential_area_id1='{required: true }'>
78
- <v-select :value.sync="model.f_residential_area_id" :value-single="true"
79
- :options='areaslist' placeholder='请选择'
80
- @change="areaChange"
81
- close-on-select search="true">
82
- </v-select>
83
- </div>
84
-
85
- <div class="col-sm-6 form-group " v-if="usertype && model.f_address_type==='城区'">
86
- <label class="font_normal_body">小区名称</label>
87
- <v-select :value.sync="model.f_residential_area_id" :value-single="true"
88
- :options='areaslist' placeholder='请选择'
89
- @change="areaChange"
90
- close-on-select search="true">
91
- </v-select>
92
- </div>
93
-
94
- <div v-if=" model.f_address_type==='城区'" class="col-sm-6 form-group " :class="[$v.slice_area1.required ? 'has-error' : 'has-success']">
95
- <label class="font_normal_body">片&emsp;&emsp;区</label>
96
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
97
- v-validate:slice_area1='{required: true }'>
98
- <v-select :value.sync="model.slice_area" v-model="model.slice_area" :value-single="true"
99
- :options='sliceArea' placeholder='片区/管理站' filer-key="name"
100
- close-on-select v-ref:slice>
101
- </v-select>
102
- </div>
103
- <div v-if=" model.f_address_type==='农村'" class="col-sm-6 form-group " >
104
- <label class="font_normal_body">片&emsp;&emsp;区</label>
105
- <v-select :value.sync="model.slice_area" v-model="model.slice_area" :value-single="true"
106
- :options='sliceArea' placeholder='片区/管理站' filer-key="name"
107
- close-on-select >
108
- </v-select>
109
- </div>
110
- <div v-if="!usertype && model.f_address_type==='城区'" class="col-sm-6 form-group ">
111
- <label for="f_address" class="font_normal_body">楼&emsp;&emsp;号</label>
112
- <input type="text" style="width:40%" v-model="model.f_building" class="input_search"
113
- placeholder="楼号"/>
114
- <input type="text" style="width:20%" v-model="model.f_building_suffix" class="input_search"
115
- />
116
-
117
- </div>
118
- <div v-if="!usertype && model.f_address_type==='农村'" class="col-sm-6 form-group "
119
- :class="[$v.f_building.required ? 'has-error' : 'has-success']">
120
- <label for="f_address" class="font_normal_body">&emsp;乡&nbsp;/&nbsp;镇</label>
121
- <input type="text" style="width:40%" v-model="model.f_building" class="input_search"
122
- v-validate:f_building='{required: true }' placeholder="乡镇"
123
- />
124
- </div>
125
- <div v-if="usertype && model.f_address_type==='农村'" class="col-sm-6 form-group " >
126
- <label for="f_address" class="font_normal_body">&emsp;乡&nbsp;/&nbsp;镇</label>
127
- <input type="text" style="width:40%" v-model="model.f_building" class="input_search"
128
- placeholder="乡镇"
129
- />
130
- </div>
131
- <div v-if="!usertype && model.f_address_type==='城区'" class="col-sm-6 form-group ">
132
- <label for="f_address" class="font_normal_body">单&emsp;&emsp;元</label>
133
- <input type="text" style="width:40%" v-model="model.f_unit" class="input_search" :placeholder="model.f_address_type==='城区'?'单元':'村'"/>
134
- <input type="text" style="width:20%" v-model="model.f_unit_suffix" class="input_search"
135
- />
136
- </div>
137
- <div v-if="!usertype && model.f_address_type==='农村'" class="col-sm-6 form-group "
138
- :class="[$v.f_unit.required ? 'has-error' : 'has-success']">
139
- <label for="f_address" class="font_normal_body">&emsp;&emsp;&emsp;村</label>
140
- <input type="text" style="width:40%" v-model="model.f_unit" class="input_search"
141
- placeholder="村" v-validate:f_unit='{required: true }'/>
142
- </div>
143
- <div v-if="!usertype && model.f_address_type==='城区'" class="col-sm-6 form-group ">
144
- <label for="f_address" class="font_normal_body">楼&emsp;&emsp;层</label>
145
- <input type="text" style="width:40%" v-model="model.f_floor" class="input_search"
146
- placeholder="楼层"/>
147
- <input type="text" style="width:20%" v-model="model.f_floor_suffix" class="input_search"
148
- />
149
- </div>
150
- <div v-if="!usertype && model.f_address_type==='农村'" class="col-sm-6 form-group "
151
- :class="[$v.f_floor.required ? 'has-error' : 'has-success']">
152
- <label for="f_address" class="font_normal_body">&emsp;&emsp;&emsp;组</label>
153
- <input type="text" style="width:40%" v-model="model.f_floor" class="input_search"
154
- placeholder="组" v-validate:f_floor='{required: true }'/>
155
- </div>
156
- <div v-if="!usertype" class="col-sm-6 form-group "
157
- :class="[$v.f_room.required ? 'has-error' : 'has-success']">
158
- <label v-if="model.f_address_type==='城区'" for="f_address" class="font_normal_body">门&ensp;牌&ensp;号</label>
159
- <label v-if="model.f_address_type==='农村'" for="f_address" class="font_normal_body">&emsp;&emsp;&emsp;号</label>
160
- <input type="text" style="width:40%" v-model="model.f_room" class="input_search"
161
- :placeholder="model.f_address_type==='城区'?'门牌号':'号'"
162
- v-validate:f_room='{required: true }'/>
163
- <input v-if="model.f_address_type==='城区'" type="text" style="width:20%" v-model="model.f_room_suffix" class="input_search"
164
- />
165
- </div>
166
- <div class="col-sm-6 form-group">
167
- <label class="font_normal_body">地址状态</label>
168
- <v-select :value.sync="model.f_address_state" :value-single="true"
169
- class="select_list select"
170
- condition="f_address_state = '{}'"
171
- :options='addresstate' placeholder='地址状态'
172
- close-on-select>
173
- </v-select>
174
- </div>
175
- <div v-if="usertype" class="col-sm-12 form-group "
176
- :class="[$v.f_address.required ? 'has-error' : 'has-success']">
177
- <label for="f_address" class="font_normal_body">详细地址</label>
178
- <input type="text" style="width:80%" v-model="model.f_address" class="input_search" placeholder="详细地址"
179
- v-validate:f_address='{required: true }'/>
180
- </div>
181
- <div class="col-sm-12 form-group">
182
- <label class="font_normal_body " >备&emsp;&emsp;注</label>
183
- <textarea class="input_textarea" rows="3" style="margin-top: 25px; width:80%;height: auto;" v-model="model.f_comments"></textarea>
184
- </div>
185
- <div style="text-align:right;margin-top:40px;margin-right:50px;" class="col-sm-12">
186
- <button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
187
- <button class="button_clear button_spacing" @click="cancel()">取消</button>
188
- </div>
189
-
190
- </div>
191
- <!--批量录入-->
192
- <div v-if="onedata=='more'" class="row">
193
- <div class="col-sm-6 form-group "
194
- :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
195
- <label class="font_normal_body">省&ensp;市&ensp;区</label>
196
- <input type="text" style="width:60%" v-show="false" v-model="model.f_pcd_id"
197
- >
198
- <v-select :value.sync="model.f_pcd_id" :value-single="true"
199
- :options='pcdslist' placeholder='请选择'
200
- close-on-select search="true" @change="pcdChange" :disabled="!usertype">
201
- </v-select>
202
- </div>
203
- <div class="col-sm-6 form-group "
204
- :class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
205
- <label class="font_normal_body">街&emsp;&emsp;道</label>
206
- <input type="text" style="width:60%" v-show="false" v-model="model.f_street_id"
207
- >
208
- <v-select :value.sync="model.f_street_id" :value-single="true"
209
- :options='streetslist' placeholder='请选择'
210
- close-on-select search="true" :disabled="!usertype">
211
- </v-select>
212
- </div>
213
- <div class="col-sm-6 form-group "
214
- :class="[$v.f_residential_area_id.required ? 'has-error' : 'has-success']">
215
- <label class="font_normal_body">小区名称</label>
216
- <input type="text" style="width:60%" v-show="false" v-model="model.f_residential_area_id"
217
- v-validate:f_residential_area_id='{required: true }'>
218
- <v-select :value.sync="model.f_residential_area_id" :value-single="true"
219
- @change="areaChange"
220
- :options='areaslist' placeholder='请选择'
221
- close-on-select search="true">
222
- </v-select>
223
- </div>
224
- <div class="col-sm-6 form-group " :class="[$v.slice.required ? 'has-error' : 'has-success']">
225
- <label class="font_normal_body">片&emsp;&emsp;区</label>
226
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
227
- v-validate:slice='{required: true }'>
228
- <v-select :value.sync="model.slice_area" v-model="model.slice_area" :value-single="true"
229
- :options='sliceArea' placeholder='片区/管理站' filer-key="name"
230
- close-on-select v-ref:slice>
231
- </v-select>
232
- </div>
233
-
234
- <div class="col-sm-6 form-group "
235
- :class="[$v.f_building_start.integernum || $v.f_building_start.dctest ?'has-error' : 'has-success']">
236
- <label for="f_address" class="font_normal_body">起始楼号</label>
237
- <input type="text" style="width:15%" placeholder="前缀" v-model="model.f_building_prefix" class="input_search"/>
238
- <input type="text" style="width:25%"
239
- v-validate:f_building_start='{integernum: true ,dctest: [model.f_building_end, "<=" ]}'
240
- v-model="model.f_building_start" class="input_search" placeholder="楼号"/>
241
- <input type="text" style="width:17%" v-model="model.f_building_suffix" class="input_search"/>
242
- </div>
243
- <div class="col-sm-6 form-group "
244
- :class="[$v.f_building_end.integernum ||$v.f_building_end.dctest ? 'has-error' : 'has-success']">
245
- <label for="f_address" class="font_normal_body">截止楼号</label>
246
- <input type="text" style="width:15%" placeholder="前缀" v-model="model.f_building_prefix" class="input_search"/>
247
- <input type="text" style="width:25%"
248
- v-validate:f_building_end='{integernum: true ,dctest: [model.f_building_start, ">=" ]}'
249
- v-model="model.f_building_end" class="input_search" placeholder="楼号"/>
250
- <input type="text" style="width:17%" v-model="model.f_building_suffix" class="input_search"
251
- />
252
- </div>
253
- <div class="col-sm-6 form-group "
254
- :class="[$v.f_unit_start.integernum || $v.f_unit_start.dctest ? 'has-error' : 'has-success']">
255
- <label for="f_address" class="font_normal_body">起始单元</label>
256
- <input type="text" style="width:15%" placeholder="前缀" v-model="model.f_unit_prefix" class="input_search" />
257
- <input type="text" style="width:25%"
258
- v-validate:f_unit_start='{integernum: true ,dctest: [model.f_unit_end, "<=" ]}'
259
- v-model="model.f_unit_start" class="input_search" placeholder="单元"/>
260
- <input type="text" style="width:17%" v-model="model.f_unit_suffix" class="input_search" />
261
- </div>
262
- <div class="col-sm-6 form-group "
263
- :class="[$v.f_unit_end.integernum ||$v.f_unit_end.dctest ? 'has-error' : 'has-success']">
264
- <label for="f_address" class="font_normal_body">截止单元</label>
265
- <input type="text" style="width:15%" placeholder="前缀" v-model="model.f_unit_prefix" class="input_search" />
266
- <input type="text" style="width:25%"
267
- v-validate:f_unit_end='{integernum: true ,dctest: [model.f_unit_start, ">="]}'
268
- v-model="model.f_unit_end" class="input_search" placeholder="单元"/>
269
- <input type="text" style="width:17%" v-model="model.f_unit_suffix" class="input_search"/>
270
- </div>
271
- <div class="col-sm-6 form-group "
272
- :class="[$v.f_floor_start.integernum || $v.f_floor_start.dctest ? 'has-error' : 'has-success']">
273
- <label for="f_address" class="font_normal_body">起始楼层</label>
274
- <input type="text" style="width:15%" placeholder="前缀" v-model="model.f_floor_prefix" class="input_search"/>
275
- <input type="text" style="width:25%"
276
- v-validate:f_floor_start='{integernum: true,dctest: [model.f_floor_end, "<=" ] }'
277
- v-model="model.f_floor_start" class="input_search" placeholder="楼层"/>
278
- <input type="text" style="width:17%" v-model="model.f_floor_suffix" class="input_search"/>
279
- </div>
280
- <div class="col-sm-6 form-group "
281
- :class="[$v.f_floor_end.integernum ||$v.f_floor_end.dctest ? 'has-error' : 'has-success']">
282
- <label for="f_address" class="font_normal_body">截止楼层</label>
283
- <input type="text" style="width:15%" placeholder="前缀" v-model="model.f_floor_prefix" class="input_search"/>
284
- <input type="text" style="width:25%" v-model="model.f_floor_end"
285
- v-validate:f_floor_end='{integernum: true,dctest: [model.f_floor_start, ">=" ] }'
286
- class="input_search" placeholder="楼层"/>
287
- <input type="text" style="width:17%" v-model="model.f_floor_suffix" class="input_search"/>
288
- </div>
289
- <div class="col-sm-6 form-group "
290
- :class="[$v.f_room_start.integernum || $v.f_room_start.dctest ? 'has-error' : 'has-success']">
291
- <label for="f_address" class="font_normal_body">起始门牌</label>
292
- <input type="text" style="width:15%" placeholder="前缀" v-model="model.f_room_prefix" class="input_search"/>
293
- <input type="text" style="width:25%" v-model="model.f_room_start"
294
- class="input_search" placeholder="门牌号"
295
- v-validate:f_room_start='{integernum: true ,dctest: [model.f_room_end, "<=" ]}'
296
- />
297
- <input type="text" style="width:17%" v-model="model.f_room_suffix" class="input_search"/>
298
- </div>
299
- <div class="col-sm-6 form-group "
300
- :class="[$v.f_room_end.integernum ||$v.f_room_end.dctest ? 'has-error' : 'has-success']">
301
- <label for="f_address" class="font_normal_body">截止门牌</label>
302
- <input type="text" style="width:15%" placeholder="前缀" v-model="model.f_room_prefix" class="input_search"/>
303
- <input type="text" style="width:25%" v-model="model.f_room_end" class="input_search" placeholder="门牌号"
304
- v-validate:f_room_end='{integernum: true ,dctest: [model.f_room_start, ">=" ]}'/>
305
- <input type="text" style="width:17%" v-model="model.f_room_suffix" class="input_search"/>
306
- </div>
307
- <div class="col-sm-6 form-group">
308
- <label class="font_normal_body">地址状态</label>
309
- <v-select :value.sync="model.f_address_state" :value-single="true"
310
- class="select_list select"
311
- condition="f_address_state = '{}'"
312
- :options='addresstate' placeholder='地址状态'
313
- close-on-select>
314
- </v-select>
315
- </div>
316
- <div class="col-sm-10 form-group ">
317
- <p class="navbar-text" style="margin-left: 10%">说明: 层数输入1,门牌号输入001。产生的最终门牌号显示1001</p>
318
- </div>
319
- <div class="col-sm-12 form-group">
320
- <label class="font_normal_body " style="margin-top:-20px">备&emsp;&emsp;注</label>
321
- <textarea class="input_textarea" rows="3" style="width:80%;height: auto;" v-model="model.f_comments"></textarea>
322
- </div>
323
- <div class="row">
324
- <div style="text-align:right;margin-top:20px;margin-right:50px;" class="col-sm-12">
325
- <button class="button_search button_spacing" @click="confirmall()" :disabled='!$v.valid'>保存</button>
326
- <button class="button_clear button_spacing" @click="cancel()">取消</button>
327
- </div>
328
- </div>
329
- </div>
330
- </div>
331
- </validator>
332
- </div>
333
- </template>
334
-
335
- <script>
336
- import {HttpResetClass} from 'vue-client'
337
-
338
-
339
- let getAreaConfig = async function (self) {
340
- // 获取气价里面的配置
341
- await self.$getConfig(self, 'UserAddress')
342
- console.log('原地址配置',self.config)
343
- console.log('获取地址配置',self.config)
344
- Object.assign(self.model, self.config)
345
- }
346
-
347
- export default {
348
- title: '用户地址添加',
349
- data () {
350
- return {
351
- //初始化省市区数据
352
- pcdslist:[],
353
- //初始化街道数据
354
- streetslist:[],
355
- //初始化街道数据
356
- areaslist:[],
357
- config:{
358
- f_building_suffix: '号楼',
359
- f_unit_suffix: '单元',
360
- f_floor_suffix: '层',
361
- f_room_suffix: '室'
362
- },
363
- model: {
364
- f_address_type:'城区',
365
- f_pcd_id: '',
366
- f_street_id: '',
367
- f_comments:'',
368
- f_residential_area_id: '',
369
- f_pcd: '',
370
- f_street: '',
371
- f_residential_area: '',
372
- f_slice_area: '',
373
- slice_area:'',
374
- f_building: '',
375
- f_building_start: '',
376
- f_building_end: '',
377
- f_building_suffix: '',
378
- f_unit: '',
379
- f_unit_start: '',
380
- f_unit_end: '',
381
- f_unit_suffix: '',
382
- f_floor: '',
383
- f_floor_start: '',
384
- f_floor_end: '',
385
- f_floor_suffix: '',
386
- f_room: '',
387
- f_room_start: '',
388
- f_room_end: '',
389
- f_room_suffix: '',
390
- //详细地址
391
- f_address: '',
392
- //单位名称
393
- f_company: '',
394
- //单位地址
395
- f_company_address: '',
396
- },
397
- //判读是否为单个数据录入
398
- onedata: 'one',
399
- //选中所有地址
400
- addresslist: [],
401
- usertype:false,
402
-
403
- // 公司信息
404
- curorgid: [this.$login.f.orgid],
405
-
406
- f_orgid: '',
407
- addresstype:[{label:'城区',value:'城区'},{label:'农村',value:'农村'}],
408
- sliceArea: []
409
- }
410
- },
411
- props: ['f_filialeids', 'row','operation','usertype'],
412
- ready(){
413
- this.initdata()
414
- getAreaConfig(this)
415
- this.model.f_building_suffix=this.config.f_building_suffix
416
- this.model.f_unit_suffix=this.config.f_unit_suffix
417
- this.model.f_floor_suffix=this.config.f_floor_suffix
418
- this.model.f_room_suffix=this.config.f_room_suffix
419
- },
420
- methods: {
421
- async initdata(){
422
- this.model.f_address_state = '已通气'
423
- this.initAreas(this.f_filialeids)
424
- // 添加特殊地址选省市区
425
-
426
- this.initpcds(` f_orgid = '${this.f_filialeids}'`)
427
- this.initstreets(` f_orgid = '${this.f_filialeids}' `)
428
- this.initareas(` f_orgid = '${this.f_filialeids}'`)
429
-
430
- },
431
-
432
- // 初始化片区
433
- async initAreas (val) {
434
- if (val) {
435
- let getAllArea = await this.$resetpost('/rs/search', {
436
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
437
- userid: this.$login.f.id
438
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
439
-
440
- let arr = getAllArea.data.filter((res) => {
441
- return res.parentid == val
442
- })
443
- console.log('过滤之后的片区', arr)
444
- this.sliceArea = []
445
- arr.forEach((res) => {
446
- this.sliceArea.push({label: res.name, value: res.name})
447
- })
448
- }
449
- },
450
- //初始化省市区,添加街道
451
- async initpcds(pconditon){
452
- this.pcdslist = []
453
- let HttpReset = new HttpResetClass()
454
- let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
455
- data: {
456
- items: '*',
457
- tablename: 't_pcd',
458
- orderitem: 'id',
459
- condition: pconditon
460
- }
461
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
462
- let redata = []
463
- req.data.forEach((row, n) => {
464
- redata[n] = {
465
- label: row.f_pcd,
466
- value: row.id,
467
- data:row,
468
- id:row.id
469
- }
470
- })
471
- this.pcdslist=redata
472
- },
473
- //初始化街道 添加小区
474
- async initstreets(pconditon){
475
- this.streetslist = []
476
- let HttpReset = new HttpResetClass()
477
- let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
478
- data: {
479
- items: '*',
480
- tablename: 't_street',
481
- orderitem: 'id',
482
- condition: pconditon
483
- }
484
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
485
- let redata = []
486
- req.data.forEach((row, n) => {
487
- redata[n] = {
488
- label: row.f_street,
489
- value: row.id,
490
- data:row,
491
- id:row.id
492
- }
493
- })
494
- this.streetslist=redata
495
- },
496
- //初始化小区添加小区
497
- async initareas(pconditon){
498
- // if(this.usertype){
499
- // pconditon=pconditon+` and f_special='1' `
500
- // }
501
- this.areaslist = []
502
- let HttpReset = new HttpResetClass()
503
- let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
504
- data: {
505
- items: '*',
506
- tablename: 't_area',
507
- orderitem: 'id',
508
- condition: pconditon
509
- }
510
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
511
- let redata = []
512
- req.data.forEach((row) => {
513
- redata.push({
514
- label: row.f_residential_area,
515
- value: row.id,
516
- data: row,
517
- id: row.id
518
- })
519
- })
520
- this.areaslist=redata
521
- },
522
- //省/市/区变化
523
- async pcdChange(val){
524
- // 只有添加特殊地址时才级联
525
- if (!this.usertype) {
526
- return
527
- }
528
- console.log("省/市/区变化",val)
529
- if(val){
530
- //那就把[小区,街道]重新组织一下
531
- await this.initstreets(` f_pcd_id ='${val}' `)
532
- if(this.model.f_street_id){
533
- if (this.findbyid(this.streetslist,this.model.f_street_id)) {
534
- let pcd_id=this.findbyid(this.streetslist,this.model.f_street_id).f_pcd_id
535
- if(pcd_id!=val){
536
- this.model.f_street_id=''
537
- }
538
- } else {
539
- this.model.f_street_id=''
540
- }
541
-
542
- //那就把[小区,街道]重新组织一下
543
- if (this.model.f_street_id) {
544
- await this.initareas(` f_street_id ='${this.model.f_street_id}' `)
545
- if(this.model.f_residential_area_id){
546
- if (this.findbyid(this.areaslist,this.model.f_residential_area_id)) {
547
- let pcd_id=this.findbyid(this.areaslist,this.model.f_residential_area_id).f_pcd_id
548
- if(pcd_id!=val){
549
- this.model.f_residential_area_id=''
550
- }
551
- } else {
552
- this.model.f_residential_area_id=''
553
- }
554
-
555
- }
556
- }
557
- }
558
- }
559
- this.$resetValidation()
560
- },
561
- //小区变化
562
- areaChange(val){
563
- console.log("小区变化",val)
564
- // 选择小区后级联出省市区和街道
565
- let selectArea // 选中的小区数据
566
- for (let row of this.areaslist) {
567
- if (val == row.value) {
568
- selectArea = row.data
569
- break
570
- }
571
- }
572
- if (selectArea) {
573
- this.model.f_street_id = selectArea.f_street_id
574
- this.model.f_pcd_id = selectArea.f_pcd_id
575
- this.initstreets(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_street_id}' `)
576
- this.initpcds(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_pcd_id}' `)
577
- this.model.slice_area = selectArea.f_slice_area
578
- // 拼接地址
579
- this.model.f_address = `${selectArea.f_street?selectArea.f_street:''}${selectArea.f_residential_area}`
580
- }
581
- this.$nextTick(() => {
582
- this.$resetValidation()
583
- })
584
- },
585
- //街道变化
586
- async streetChange(val){
587
- console.log("街道变化",val)
588
- if(this.streetslist[0]) {
589
- var street=''
590
- this.streetslist.forEach((item)=>{
591
- if(item.id===val){
592
- street=item.label
593
- }
594
- })
595
- this.model.f_address = street
596
- }
597
- if(val){
598
- //那就把[小区]重新组织一下
599
- await this.initareas(` f_street_id ='${val}' `)
600
- if(this.model.f_residential_area_id){
601
- if (this.findbyid(this.areaslist,this.model.f_residential_area_id)) {
602
- let street_id=this.findbyid(this.areaslist,this.model.f_residential_area_id).f_street_id
603
- if(street_id!=val){
604
- this.model.f_residential_area_id=''
605
- }
606
- } else {
607
- this.model.f_residential_area_id=''
608
- }
609
-
610
- }
611
- }
612
- this.$resetValidation()
613
- },
614
-
615
- getorg (val) {
616
- this.f_orgid = val[0]
617
- },
618
-
619
- //处理批量地址信息
620
- dealaddlist(){
621
- try {
622
- var resultlist=[]
623
- for (var i = parseInt(this.model.f_building_start); i <= parseInt(this.model.f_building_end); i++) {
624
- for (var j = parseInt(this.model.f_unit_start); j <= parseInt(this.model.f_unit_end); j++) {
625
- for (var m = parseInt(this.model.f_floor_start); m <= parseInt(this.model.f_floor_end); m++) {
626
- for (var n = parseInt(this.model.f_room_start); n <= parseInt(this.model.f_room_end); n++) {
627
- //预备一个空的json
628
- console.log('批量', this.model)
629
- let data=Object.assign({},this.model)
630
- data.f_create_person= this.$login.f.name
631
- data.f_building= data.f_building_prefix + i
632
- data.f_unit= data.f_unit_prefix + j
633
- data.f_floor= data.f_floor_prefix + m
634
- // 目前房号都按两位处理 如: 101室 201室 110室
635
- if ((n+'').length == 1) {
636
- data.f_room = data.f_room_prefix + m + '0' + n
637
- } else {
638
- data.f_room = data.f_room_prefix + m + '' + n
639
- }
640
- data.f_filialeid = this.f_filialeids
641
- data.f_operator = this.$login.f.name
642
- data.f_operatorid = this.$login.f.id
643
- data.f_orgid = this.$login.f.orgid
644
- data.f_orgname = this.$login.f.orgs
645
- data.f_depid = this.$login.f.depids
646
- data.f_depname = this.$login.f.deps
647
- data.f_pcd=this.findbyid(this.pcdslist,this.model.f_pcd_id).f_pcd
648
- data.f_street=this.findbyid(this.streetslist,this.model.f_street_id).f_street
649
- data.f_residential_area=this.findbyid(this.areaslist,this.model.f_residential_area_id).f_residential_area
650
- data.f_address = data.f_street
651
- + data.f_residential_area +
652
- data.f_building + data.f_building_suffix
653
- + data.f_unit + data.f_unit_suffix
654
- + data.f_floor + data.f_floor_suffix
655
- + data.f_room + data.f_room_suffix
656
- if (this.model.slice_area) {
657
- data.f_slice_area = this.model.slice_area
658
-
659
- }
660
- resultlist.push(data)
661
- }
662
- }
663
- }
664
- }
665
- this.addresslist=resultlist
666
- } catch (e) {
667
- console.log(e)
668
- this.$showAlert('输出数据有误,请检查', 'warning', 2000)
669
- }
670
- },
671
- //保存多个
672
- async confirmall(){
673
- this.dealaddlist()
674
- if(this.addresslist.length>0){
675
- let msg = {
676
- resolveMsg: '地址保存成功',
677
- rejectMsg: '地址保存失败'
678
- }
679
- this.$showMessage('确定要批量添加'+this.addresslist.length+'户地址吗?,如有已经存在的,将会重复添加!!!', ['confirm', 'cancel']).then((res) => {
680
- if (res === 'confirm') {
681
- this.$resetpost('rs/logic/address_adduserlist',{data: {addlist:this.addresslist}},msg).then((req) => {
682
- this.cleardara()
683
- this.$dispatch('confirm')
684
- })
685
- }
686
- })
687
- }
688
- },
689
- //保存
690
- async confirm(){
691
- if(this.onedata=='one'){
692
- await this.saveonedata()
693
- }
694
- this.cleardara()
695
- this.$dispatch('confirm')
696
- },
697
- //保存一户信息
698
- async saveonedata(){
699
- this.model.f_create_person= this.$login.f.name
700
- this.model.f_filialeid = this.f_filialeids
701
- this.model.f_operator = this.$login.f.name
702
- this.model.f_operatorid = this.$login.f.id
703
- this.model.f_orgid = this.$login.f.orgid
704
- this.model.f_orgname = this.$login.f.orgs
705
- this.model.f_depid = this.$login.f.depids
706
- this.model.f_depname = this.$login.f.deps
707
- console.log("片区:",this.model.slice_area)
708
- if (this.model.slice_area ) {
709
- if (this.model.slice_area instanceof Array) {
710
- console.log("修改",this.model.slice_area)
711
- this.model.f_slice_area = this.model.slice_area[0].name
712
- }else{
713
- console.log("保存",this.model.slice_area)
714
- this.model.f_slice_area = this.model.slice_area
715
- }
716
- }
717
- if (this.usertype) {
718
- //非民用
719
- this.model.f_special='1'
720
- this.model.f_building_suffix=''
721
- this.model.f_unit_suffix=''
722
- this.model.f_floor_suffix=''
723
- this.model.f_room_suffix=''
724
- this.model.f_pcd=this.findbyid(this.pcdslist,this.model.f_pcd_id).f_pcd
725
- this.model.f_street=this.model.f_street?this.findbyid(this.streetslist,this.model.f_street_id).f_street:''
726
- this.model.f_residential_area =this.model.f_residential_area?( this.findbyid(this.areaslist,this.model.f_residential_area_id) ? this.findbyid(this.areaslist,this.model.f_residential_area_id).f_residential_area : ''):''
727
- this.model.f_address = this.model.f_pcd + (this.model.f_building?this.model.f_building :'') + this.model.f_address;
728
- } else {
729
- //民用
730
- this.model.f_pcd=this.findbyid(this.pcdslist,this.model.f_pcd_id).f_pcd
731
- this.model.f_street=this.model.f_street_id?this.findbyid(this.streetslist,this.model.f_street_id).f_street:''
732
- this.model.f_residential_area=this.model.f_residential_area?this.findbyid(this.areaslist,this.model.f_residential_area_id).f_residential_area:''
733
- this.model.f_address = this.model.f_pcd + this.model.f_street + this.model.f_residential_area + (this.model.f_building?this.model.f_building +this.model.f_building_suffix:'') + (this.model.f_unit?this.model.f_unit +this.model.f_unit_suffix:'') + (this.model.f_floor?this.model.f_floor +this.model.f_floor_suffix:'') + this.model.f_room + this.model.f_room_suffix
734
- }
735
- await this.$resetpost('rs/logic/address_updateuseraddress', this.model)
736
- },
737
- cancel(){
738
- this.cleardara()
739
- this.$dispatch('cancel')
740
- },
741
- cleardara(){
742
- this.model= {
743
- f_address_type: '城区',
744
- f_pcd_id: '',
745
- f_street_id: '',
746
- f_residential_area_id: '',
747
- f_pcd: '',
748
- f_comments:'',
749
- f_street: '',
750
- f_residential_area: '',
751
- f_slice_area: '',
752
- slice_area: '',
753
- f_building: '',
754
- f_building_start: '',
755
- f_building_end: '',
756
- f_building_prefix: '',
757
- f_building_suffix: this.config.f_building_suffix,
758
- f_unit: '',
759
- f_unit_start: '',
760
- f_unit_end: '',
761
- f_unit_prefix: '',
762
- f_unit_suffix: this.config.f_unit_suffix,
763
- f_floor: '',
764
- f_floor_start: '',
765
- f_floor_end: '',
766
- f_floor_prefix: '',
767
- f_floor_suffix: this.config.f_floor_suffix,
768
- f_room: '',
769
- f_room_start: '',
770
- f_room_end: '',
771
- f_room_prefix: '',
772
- f_room_suffix: this.config.f_room_suffix,
773
- //详细地址
774
- f_address: '',
775
- //单位名称
776
- f_company: '',
777
- //单位地址
778
- f_company_address: '',
779
- }
780
- // this.pcdslist = []
781
- // this.streetslist = []
782
- // this.areaslist = []
783
- },
784
-
785
- //根据名字找数据
786
- findbyid(list,name){
787
- var result
788
- list.forEach((row, n) => {
789
- if(name==row.value){
790
- result= row.data
791
- }
792
- })
793
- return result
794
- },
795
- },
796
- watch: {
797
- 'model.f_address_type'(val){
798
- if(val==='城区'){
799
- this.model.f_building_suffix=this.config.f_building_suffix
800
- this.model.f_unit_suffix=this.config.f_unit_suffix
801
- this.model.f_floor_suffix=this.config.f_floor_suffix
802
- this.model.f_room_suffix=this.config.f_room_suffix
803
- this.model.f_address = ''
804
- }else{
805
- this.model.f_building_suffix=''
806
- this.model.f_unit_suffix=''
807
- this.model.f_floor_suffix=''
808
- this.model.f_room_suffix=''
809
- this.model.f_address = ''
810
- }
811
- },
812
- //分公司变化
813
- 'f_filialeids'(){
814
- if (this.model.f_filialeid) {
815
- if (this.model.f_filialeid != this.f_filialeids) {
816
- this.$dispatch('cancel')
817
- }
818
- }
819
- this.cleardara()
820
- this.initdata()
821
- },
822
- 'row'(){
823
- this.onedata='one'
824
- }
825
- },
826
- computed: {
827
- //地址状态下拉框
828
- addresstate() {
829
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
830
- }
831
- }
832
- }
833
- </script>