address-client 3.2.113-yangchun → 3.2.113

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 (111) hide show
  1. package/.gradle/8.5/checksums/checksums.lock +0 -0
  2. package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
  4. package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
  5. package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
  6. package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  7. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  8. package/.gradle/file-system.probe +0 -0
  9. package/build/dev-server.js +14 -3
  10. package/build/versionCheck.js +31 -0
  11. package/package.json +5 -4
  12. package/src/components/AddAreaMsg.vue +481 -470
  13. package/src/components/AddCommunityManageMsg.vue +3 -3
  14. package/src/components/AddStreetManageMsg.vue +3 -3
  15. package/src/components/AddStreetOrPcd.vue +17 -21
  16. package/src/components/AddressAddAddress.vue +14 -14
  17. package/src/components/AddressFiles.vue +1 -1
  18. package/src/components/AddressList.vue +16 -9
  19. package/src/components/AddressTree.vue +5 -5
  20. package/src/components/AreaFiles.vue +1 -1
  21. package/src/components/AreaList.vue +5 -5
  22. package/src/components/AreaManage.vue +1 -1
  23. package/src/components/AreaTree.vue +5 -5
  24. package/src/components/Basch.vue +1 -1
  25. package/src/components/BatchOrders.vue +6 -6
  26. package/src/components/BuildingList.vue +2 -2
  27. package/src/components/CityList.vue +4 -3
  28. package/src/components/CommunityAreaList.vue +1 -1
  29. package/src/components/CommunityManageList.vue +4 -4
  30. package/src/components/NewAddressInfo.vue +4 -4
  31. package/src/components/StreetList.vue +5 -4
  32. package/src/components/StreetManageList.vue +4 -4
  33. package/src/components/UserAddress.vue +33 -44
  34. package/src/components/UserAddressChange.vue +1 -1
  35. package/src/components/selectAddress/BatchList.vue +6 -6
  36. package/src/filiale/WEINAN/AddAreaMsg.vue +5 -5
  37. package/src/filiale/WEINAN/AddressList.vue +9 -9
  38. package/src/filiale/WEINAN/AreaList.vue +5 -5
  39. package/src/filiale/WEINAN/AreaUserList.vue +3 -3
  40. package/src/filiale/WEINAN/UserAddress.vue +5 -5
  41. package/src/filiale/bayan/AddAreaMsg.vue +782 -0
  42. package/src/filiale/bayan/AddStreetOrPcd.vue +348 -0
  43. package/src/filiale/bayan/AddressList.vue +641 -0
  44. package/src/filiale/bayan/AreaList.vue +431 -0
  45. package/src/filiale/bayan/StreetList.vue +245 -0
  46. package/src/filiale/bayan/UserAddress.vue +924 -0
  47. package/src/filiale/bayan/sale.js +17 -0
  48. package/src/filiale/chengtou/UserAddress.vue +6 -6
  49. package/src/filiale/dongguan/AddStreetOrPcd.vue +6 -6
  50. package/src/filiale/gaomi/AddressList.vue +6 -6
  51. package/src/filiale/gaomi/UserAddress.vue +5 -5
  52. package/src/filiale/gongyi/AddAreaMsg.vue +4 -4
  53. package/src/filiale/gongyi/UserAddress.vue +5 -5
  54. package/src/filiale/haile/AddressList.vue +9 -9
  55. package/src/filiale/jingwei/UserAddress.vue +5 -5
  56. package/src/filiale/lixianV3/AreaList.vue +5 -5
  57. package/src/filiale/macheng/AddAreaMsg.vue +4 -4
  58. package/src/filiale/macheng/AddStreetOrPcd.vue +3 -3
  59. package/src/filiale/macheng/AddressList.vue +9 -9
  60. package/src/filiale/macheng/AreaList.vue +4 -4
  61. package/src/filiale/macheng/StreetList.vue +3 -3
  62. package/src/filiale/macheng/UserAddress.vue +5 -5
  63. package/src/filiale/meihekou/UserAddress.vue +6 -6
  64. package/src/filiale/qianneng/AddAreaMsg.vue +11 -7
  65. package/src/filiale/qianneng/AddStreetOrPcd.vue +5 -5
  66. package/src/filiale/qianneng/AddressList.vue +10 -10
  67. package/src/filiale/qianneng/AreaList.vue +6 -6
  68. package/src/filiale/qianneng/UserAddress.vue +22 -22
  69. package/src/filiale/qinhua/AddAreaMsg.vue +7 -7
  70. package/src/filiale/qinhua/AddressList.vue +9 -9
  71. package/src/filiale/qinhua/AreaList.vue +6 -6
  72. package/src/filiale/qinhua/StreetList.vue +4 -4
  73. package/src/filiale/qinhua/UserAddress.vue +6 -6
  74. package/src/filiale/rizhao/UserAddress.vue +6 -6
  75. package/src/filiale/rongcheng/AddressList.vue +5 -5
  76. package/src/filiale/rongcheng/UserAddress.vue +5 -5
  77. package/src/filiale/shanggao/AddAreaMsg.vue +7 -7
  78. package/src/filiale/shanggao/AddStreetOrPcd.vue +5 -5
  79. package/src/filiale/shanggao/AddressList.vue +9 -9
  80. package/src/filiale/shanggao/AreaList.vue +6 -6
  81. package/src/filiale/shanggao/BuildingList.vue +2 -2
  82. package/src/filiale/shanggao/StreetList.vue +4 -4
  83. package/src/filiale/shanggao/UserAddress.vue +7 -7
  84. package/src/filiale/shanxian/AddAreaMsg.vue +7 -7
  85. package/src/filiale/shanxian/AddressList.vue +9 -9
  86. package/src/filiale/shanxian/AreaList.vue +6 -6
  87. package/src/filiale/shanxian/UserAddress.vue +6 -6
  88. package/src/filiale/shaoguan/AddAreaMsg.vue +4 -4
  89. package/src/filiale/shaoguan/UserAddress.vue +5 -5
  90. package/src/filiale/tongchuan/AddAreaMsg.vue +4 -4
  91. package/src/filiale/tongchuan/AddStreetOrPcd.vue +6 -6
  92. package/src/filiale/tongchuan/AddressList.vue +5 -5
  93. package/src/filiale/tongchuan/AreaList.vue +4 -4
  94. package/src/filiale/tongchuan/CityList.vue +3 -3
  95. package/src/filiale/tongchuan/StreetList.vue +4 -4
  96. package/src/filiale/tongchuan/UserAddress.vue +6 -6
  97. package/src/filiale/wuhai/UserAddress.vue +5 -5
  98. package/src/filiale/xihu/AreaList.vue +409 -0
  99. package/src/filiale/xihu/StreetList.vue +238 -0
  100. package/src/filiale/xihu/sale.js +14 -0
  101. package/src/filiale/xinkang/AddAreaMsg.vue +8 -8
  102. package/src/filiale/xinkang/AreaList.vue +5 -5
  103. package/src/filiale/yangchun/AddAreaMsg.vue +11 -11
  104. package/src/filiale/zhongsheng/AddressList.vue +10 -10
  105. package/src/filiale/zhongsheng/AreaList.vue +7 -7
  106. package/src/filiale/zhongyi/AddAreaMsg.vue +7 -7
  107. package/src/filiale/zhoukou/AddAreaMsg.vue +5 -5
  108. package/src/filiale/zhoukou/AddressList.vue +5 -5
  109. package/src/filiale/zhoukou/AreaList.vue +4 -4
  110. package/src/filiale/zhoukou/UserAddress.vue +6 -6
  111. package/src/main.js +3 -3
@@ -0,0 +1,348 @@
1
+ <template>
2
+ <div class="span">
3
+ <validator name='v'>
4
+ <p class="bg-info text-center" style="padding: 8px;" v-if="operation=='add'">添加{{areatype}}</p>
5
+ <p class="bg-info text-center" style="padding: 8px;" v-if="operation=='modify'&&areatype=='街道'">修改【{{streetmodel.f_street}}】街道</p>
6
+ <p class="bg-info text-center" style="padding: 8px;" v-if="operation=='modify'&&areatype=='省市区'">修改【{{pcdmodel.f_pcd}}】</p>
7
+ <div class="auto select-overspread form-horizontal">
8
+ <div style="text-align:right;margin-top:6px;" class="col-sm-12">
9
+ <!-- 省市区-->
10
+ <div v-if="areatype=='省市区'" class="row">
11
+ <div class="col-sm-6 form-group "
12
+ :class="[$v.f_province.required ? 'has-error' : 'has-success']">
13
+ <label class="font_normal_body">省&emsp;&emsp;份</label>
14
+ <input type="text" v-model="pcdmodel.f_province"
15
+ class="input_search" style="width:60%" placeholder="省份"
16
+ v-validate:f_province='{required: true }'>
17
+ </div>
18
+ <div class="col-sm-6 form-group "
19
+ :class="[$v.f_city.required ? 'has-error' : 'has-success']">
20
+ <label class="font_normal_body">城&emsp;&emsp;市</label>
21
+ <input type="text" v-model="pcdmodel.f_city"
22
+ class="input_search" style="width:60%" placeholder="城市"
23
+ v-validate:f_city='{required: true }'>
24
+ </div>
25
+ <div class="col-sm-6 form-group "
26
+ :class="[$v.f_district.required ? 'has-error' : 'has-success']">
27
+ <label class="font_normal_body">区&ensp;&ensp;/&ensp;县</label>
28
+ <input type="text" v-model="pcdmodel.f_district"
29
+ class="input_search" style="width:60%" placeholder="区/县"
30
+ v-validate:f_district='{required: true }'>
31
+ </div>
32
+ <div class="col-sm-6 form-group " v-if="config.hasnumber"
33
+ :class="[$v.f_pcd_number.required ? 'has-error' : 'has-success']">
34
+ <label class="font_normal_body">区域编码</label>
35
+ <input type="number" v-model="pcdmodel.f_pcd_number"
36
+ class="input_search" style="width:60%" placeholder="区/县"
37
+ @change="numberyanzheng"
38
+ v-validate:f_pcd_number='{required: true }'>
39
+ </div>
40
+ <div class="col-sm-12 form-group">
41
+ <label class="font_normal_body " style="">备&emsp;&emsp;注</label>
42
+ <textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="pcdmodel.f_comments"></textarea>
43
+ </div>
44
+ </div>
45
+ <!-- 街道-->
46
+ <div v-if="areatype=='街道'" class="row">
47
+ <div class="col-sm-6 form-group "
48
+ :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
49
+ <label class="font_normal_body">省&ensp;市&ensp;区</label>
50
+ <input type="text" v-show="false" v-model="streetmodel.f_pcd_id"
51
+ v-validate:f_pcd_id='{required: true }'>
52
+ <v-select
53
+ :value.sync="streetmodel.f_pcd_id" :value-single="true"
54
+ :options='pcdslist' placeholder='请选择'
55
+ close-on-select search="true" @change="pcdChange">
56
+ </v-select>
57
+ </div>
58
+ <div class="col-sm-6 form-group "
59
+ :class="[$v.f_street.required ? 'has-error' : 'has-success']">
60
+ <label class="font_normal_body">街道/乡镇</label>
61
+ <input type="text" v-model="streetmodel.f_street"
62
+ class="input_search" style="width:60%" placeholder="街道/乡镇"
63
+ v-validate:f_street='{required: true }'>
64
+ </div>
65
+ <div class="col-sm-6 form-group " v-if="config.hasnumber"
66
+ :class="[$v.f_street_number.required ? 'has-error' : 'has-success']">
67
+ <label class="font_normal_body">街道编号</label>
68
+ <input type="text" v-model="streetmodel.f_street_number"
69
+ @change="streetyanzheng"
70
+ class="input_search" style="width:60%" placeholder="街道编号"
71
+ v-validate:f_street_number='{required: true }'>
72
+ </div>
73
+ <div class="col-sm-6 form-group "
74
+ :class="[$v.f_iscity.required ? 'has-error' : 'has-success']">
75
+ <label class="font_normal_body">地区类型</label>
76
+ <input type="text" v-show="false" v-model="streetmodel.f_iscity"
77
+ v-validate:f_iscity='{required: true }'>
78
+ <v-select
79
+ :value.sync="streetmodel.f_iscity" :value-single="true"
80
+ :options='iscity' placeholder='请选择'
81
+ close-on-select>
82
+ </v-select>
83
+ </div>
84
+ <div class="col-sm-6 form-group">
85
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
86
+ <v-select :value.sync="streetmodel.slice_area" v-model="streetmodel.slice_area"
87
+ :options='sliceArea' placeholder='片区/管理站' filer-key="name"
88
+ close-on-select v-ref:slice>
89
+ </v-select>
90
+ </div>
91
+ <div class="col-sm-12 form-group">
92
+ <label class="font_normal_body " style="">备&emsp;&emsp;注</label>
93
+ <textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="streetmodel.f_comments"></textarea>
94
+ </div>
95
+ </div>
96
+
97
+ <div class="row">
98
+ <div style="margin-top:40px;text-align:right;">
99
+ <button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
100
+ <button class="button_clear button_spacing" @click="cancel()">取消</button>
101
+ </div>
102
+ <div v-if="areatype=='省市区'" class="row" style="margin-top:40px;height: 580px;">
103
+ <city-list v-ref:addpcd @select-changed="selected" :f_filialeids.sync="f_filialeids"></city-list>
104
+ </div>
105
+ </div>
106
+ </div>
107
+ </validator>
108
+ </div>
109
+ </template>
110
+
111
+ <script>
112
+ import {HttpResetClass} from 'vue-client'
113
+
114
+ let getAreaConfig = async function (self) {
115
+ // 获取气价里面的配置
116
+ await self.$getConfig(self, 'UserPcd')
117
+ console.log('原地址配置',self.config)
118
+ console.log('获取地址配置',self.config)
119
+ Object.assign(self.model, self.config)
120
+ }
121
+ export default {
122
+ title: '区域地址添加',
123
+ data () {
124
+ return {
125
+ //初始化省市区数据
126
+ config:{
127
+ hasnumber: false
128
+ },
129
+ pcdslist:[],
130
+ sliceArea:[],
131
+ iscity:[{label:'市区',value:'市区'},{label:'乡镇',value:'乡镇'}],
132
+ //省市区
133
+ pcdmodel: {
134
+ f_province:'',
135
+ f_city:'',
136
+ f_district:'',
137
+ f_comments:'',
138
+ f_pcd_number: ''
139
+ },
140
+ //街道
141
+ streetmodel: {
142
+ f_pcd_id:'',
143
+ f_street_id:'',
144
+ slice_area: null,
145
+ f_slice_area: '',
146
+ f_adjustable_id: null,
147
+ f_area_code: '',
148
+ f_street:'',
149
+ f_comments:'',
150
+ f_street_number:''
151
+ }
152
+ }
153
+ },
154
+ props: ['f_filialeids', 'areatype','row','operation'],
155
+ ready(){
156
+ this.initdata()
157
+ getAreaConfig(this)
158
+ },
159
+ methods: {
160
+ async streetyanzheng(){
161
+ console.log(this.streetmodel.f_street_number.length)
162
+ let res =await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
163
+ data: {
164
+ items: '*',
165
+ tablename: 't_street',
166
+ orderitem: 'id',
167
+ condition: `f_street_number = '${this.streetmodel.f_street_number}' and f_orgid = '${this.$login.f.orgid}'`
168
+ }
169
+ }, {resolveMsg: null, rejectMsg: null})
170
+ if (res.data.length>0){
171
+ if (res.data[0].id != this.streetmodel.id) {
172
+ this.$showAlert('当前编号已存在', 'warning', 2000)
173
+ this.streetmodel.f_street_number = ''
174
+ }
175
+ }
176
+ },
177
+ async numberyanzheng(){
178
+ console.log(this.pcdmodel.f_pcd_number.length)
179
+ if (this.pcdmodel.f_pcd_number.length != 3){
180
+ this.$showAlert('请输入正确的位数', 'warning', 2000)
181
+ this.pcdmodel.f_pcd_number = ''
182
+ }else{
183
+ let res =await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
184
+ data: {
185
+ items: '*',
186
+ tablename: 't_pcd',
187
+ orderitem: 'id',
188
+ condition: `f_pcd_number = '${this.pcdmodel.f_pcd_number}' and f_orgid = '${this.$login.f.orgid}'`
189
+ }
190
+ }, {resolveMsg: null, rejectMsg: null})
191
+ if (res.data.length>0){
192
+ if (res.data[0].id != this.pcdmodel.id) {
193
+ this.$showAlert('当前编号已存在', 'warning', 2000)
194
+ this.pcdmodel.f_pcd_number = ''
195
+ }
196
+ }
197
+ }
198
+ },
199
+ //初始化省市区,添加街道
200
+ initpcds(pconditon){
201
+ console.log("省市区准备")
202
+ let HttpReset = new HttpResetClass()
203
+ HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
204
+ data: {
205
+ items: '*',
206
+ tablename: 't_pcd',
207
+ orderitem: 'id',
208
+ condition: pconditon
209
+ }
210
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'}).then((req) => {
211
+ let redata = []
212
+ req.data.forEach((row, n) => {
213
+ redata[n] = {
214
+ label: row.f_pcd,
215
+ value: row.id,
216
+ data:row,
217
+ id:row.id
218
+ }
219
+ })
220
+ this.pcdslist=redata
221
+ })
222
+ },
223
+ //根据名字找数据
224
+ findbyid(list,name){
225
+ var result
226
+ list.forEach((row, n) => {
227
+ if(name==row.id){
228
+ result= row.data
229
+ }
230
+ })
231
+ return result
232
+ },
233
+ //初始化数据
234
+ async initdata() {
235
+ if (this.areatype == '街道') {
236
+ this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
237
+ }
238
+ if (this.areatype == '小区') {
239
+ this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
240
+ this.initstreets(` f_filialeid = '${this.f_filialeids}'`)
241
+ }
242
+ await this.initSlice(this.f_filialeids)
243
+ },
244
+ async initSlice(val) {
245
+ if (val) {
246
+ let getAllArea = await this.$resetpost('/rs/search', {
247
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
248
+ userid: this.$login.f.id
249
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
250
+
251
+ let arr = getAllArea.data.filter((res) => {
252
+ return res.parentid == val
253
+ })
254
+ this.sliceArea = []
255
+ arr.forEach((res) => {
256
+ this.sliceArea.push({label: res.name, value: {name: res.name, code: res.number}})
257
+ })
258
+ }
259
+ },
260
+ //省/市/区变化
261
+ pcdChange(val){
262
+ console.log("省/市/区变化",val)
263
+ this.$resetValidation()
264
+ },
265
+ //保存
266
+ async confirm(){
267
+ if(this.areatype=='省市区'){
268
+ await this.savepcd()
269
+ this.$refs.addpcd.search()
270
+ }
271
+ if(this.areatype=='街道'){
272
+ await this.savestreet()
273
+ }
274
+ this.cleardara()
275
+ this.$dispatch('confirm')
276
+ },
277
+ //保存省市区
278
+ async savepcd(){
279
+ this.pcdmodel.f_filialeid = this.f_filialeids
280
+ this.pcdmodel.f_operator = this.$login.f.name
281
+ this.pcdmodel.f_operatorid = this.$login.f.id
282
+ this.pcdmodel.f_orgid = this.$login.f.orgid
283
+ this.pcdmodel.f_orgname = this.$login.f.orgs
284
+ this.pcdmodel.f_depid = this.$login.f.depids
285
+ this.pcdmodel.f_depname = this.$login.f.deps
286
+ this.pcdmodel.f_pcd = this.pcdmodel.f_province+this.pcdmodel.f_city+this.pcdmodel.f_district
287
+ await this.$resetpost('api/af-revenue/logic/address_updatepcd', this.pcdmodel)
288
+ },
289
+ //保存街道
290
+ async savestreet(){
291
+ this.streetmodel.f_filialeid = this.f_filialeids
292
+ this.streetmodel.f_operator= this.$login.f.name
293
+ this.streetmodel.f_operatorid = this.$login.f.id
294
+ this.streetmodel.f_orgid = this.$login.f.orgid
295
+ this.streetmodel.f_orgname = this.$login.f.orgs
296
+ this.streetmodel.f_depid = this.$login.f.depids
297
+ this.streetmodel.f_depname = this.$login.f.deps
298
+ if (this.streetmodel.slice_area) {
299
+ if (this.streetmodel.slice_area.length > 0) {
300
+ this.streetmodel.f_slice_area = this.streetmodel.slice_area[0].name
301
+ this.streetmodel.f_area_code = this.streetmodel.slice_area[0].code
302
+ }
303
+ }
304
+ // this.streetmodel.f_pcd=this.findbyid(this.pcdslist,this.streetmodel.f_pcd_id).f_pcd
305
+ console.log('获取街道model', this.streetmodel)
306
+ await this.$resetpost('api/af-revenue/logic/address_updatestreet', this.streetmodel)
307
+ },
308
+ cancel(){
309
+ this.cleardara()
310
+ this.$dispatch('cancel')
311
+ },
312
+ cleardara () {
313
+ this.pcdmodel = {
314
+ f_province: '',
315
+ f_city: '',
316
+ f_district: '',
317
+ f_comments:''
318
+ }
319
+ this.streetmodel = {
320
+ f_pcd_id: '',
321
+ f_slice_area: '',
322
+ f_adjustable_id: '',
323
+ f_street: '',
324
+ f_comments:''
325
+ }
326
+ }
327
+
328
+ },
329
+ watch: {
330
+ 'areatype'(){
331
+ this.initdata()
332
+ },
333
+ 'f_filialeids'(){
334
+ if (this.streetmodel.f_filialeid) {
335
+ if (this.streetmodel.f_filialeid != this.f_filialeids) {
336
+ this.$dispatch('cancel')
337
+ }
338
+ }
339
+ if (this.pcdmodel.f_filialeid) {
340
+ if (this.pcdmodel.f_filialeid != this.f_filialeids) {
341
+ this.$dispatch('cancel')
342
+ }
343
+ }
344
+ this.initdata()
345
+ }
346
+ }
347
+ }
348
+ </script>