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,308 +0,0 @@
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 "
33
- :class="[$v.f_pcd_number.required ? 'has-error' : 'has-success']">
34
- <label class="font_normal_body">区域编码</label>
35
- <input type="text" 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-6 form-group "
41
- :class="[$v.f_iscity.required ? 'has-error' : 'has-success']">
42
- <label class="font_normal_body">地区类型</label>
43
- <input type="text" v-show="false" v-model="pcdmodel.f_iscity"
44
- v-validate:f_iscity='{required: true }'>
45
- <v-select
46
- :value.sync="pcdmodel.f_iscity" :value-single="true"
47
- :options='iscity' placeholder='请选择'
48
- close-on-select>
49
- </v-select>
50
- </div>-->
51
- <div class="col-sm-12 form-group">
52
- <label class="font_normal_body " style="">备&emsp;&emsp;注</label>
53
- <textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="pcdmodel.f_comments"></textarea>
54
- </div>
55
- </div>
56
- <!-- 街道-->
57
- <div v-if="areatype=='街道'" class="row">
58
- <div class="col-sm-6 form-group "
59
- :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
60
- <label class="font_normal_body">省&ensp;市&ensp;区</label>
61
- <input type="text" v-show="false" v-model="streetmodel.f_pcd_id"
62
- v-validate:f_pcd_id='{required: true }'>
63
- <v-select
64
- :value.sync="streetmodel.f_pcd_id" :value-single="true"
65
- :options='pcdslist' placeholder='请选择'
66
- close-on-select search="true" @change="pcdChange">
67
- </v-select>
68
- </div>
69
- <div class="col-sm-6 form-group "
70
- :class="[$v.f_street.required ? 'has-error' : 'has-success']">
71
- <label class="font_normal_body">街道/乡镇</label>
72
- <input type="text" v-model="streetmodel.f_street"
73
- class="input_search" style="width:60%" placeholder="街道/乡镇"
74
- v-validate:f_street='{required: true }'>
75
- </div>
76
- <div class="col-sm-12 form-group">
77
- <label class="font_normal_body " style="">备&emsp;&emsp;注</label>
78
- <textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="streetmodel.f_comments"></textarea>
79
- </div>
80
- </div>
81
-
82
- <div class="row">
83
- <div style="margin-top:40px;text-align:right;">
84
- <button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
85
- <button class="button_clear button_spacing" @click="cancel()">取消</button>
86
- </div>
87
- <div v-if="areatype=='省市区'" class="row" style="margin-top:40px;height: 580px;">
88
- <city-list v-ref:addpcd @select-changed="selected" :f_filialeids.sync="f_filialeids"></city-list>
89
- </div>
90
- </div>
91
- </div>
92
- </validator>
93
- </div>
94
- </template>
95
-
96
- <script>
97
- import {HttpResetClass} from 'vue-client'
98
-
99
- let getAreaConfig = async function (self) {
100
- // 获取气价里面的配置
101
- await self.$getConfig(self, 'UserPcd')
102
- console.log('原地址配置',self.config)
103
- console.log('获取地址配置',self.config)
104
- Object.assign(self.model, self.config)
105
- }
106
- export default {
107
- title: '区域地址添加',
108
- data () {
109
- return {
110
- //初始化省市区数据
111
- config:{
112
- hasnumber: false
113
- },
114
- pcdslist:[],
115
- iscity:[{label:'市区',value:'市区'},{label:'乡镇',value:'乡镇'}],
116
- //省市区
117
- pcdmodel: {
118
- f_province:'',
119
- f_city:'',
120
- f_district:'',
121
- f_comments:'',
122
- f_pcd_number: ''
123
- },
124
- //街道
125
- streetmodel: {
126
- f_pcd_id:'',
127
- f_street_id:'',
128
- slice_area: null,
129
- f_slice_area: null,
130
- f_adjustable_id: null,
131
- f_street:'',
132
- f_comments:'',
133
- f_street_number:'',
134
- f_iscity:''
135
- }
136
- }
137
- },
138
- props: ['f_filialeids', 'areatype','row','operation'],
139
- ready(){
140
- this.initdata()
141
- getAreaConfig(this)
142
- },
143
- methods: {
144
- async streetyanzheng(){
145
- let res =await this.$resetpost('rs/sql/address_singleTableOrderBy', {
146
- data: {
147
- items: '*',
148
- tablename: 't_street',
149
- orderitem: 'id',
150
- condition: `f_street_number = '${this.streetmodel.f_street_number}' and f_orgid = '${this.$login.f.orgid}'`
151
- }
152
- }, {resolveMsg: null, rejectMsg: null})
153
- if (res.data.length>0){
154
- if (res.data[0].id != this.streetmodel.id) {
155
- this.$showAlert('当前编号已存在', 'warning', 2000)
156
- this.streetmodel.f_street_number = ''
157
- }
158
- }
159
-
160
- },
161
- async numberyanzheng(){
162
- console.log(this.pcdmodel.f_pcd_number.length)
163
- if (this.pcdmodel.f_pcd_number.length != 1){
164
- this.$showAlert('请输入正确的位数', 'warning', 2000)
165
- this.pcdmodel.f_pcd_number = ''
166
- }else{
167
- let res =await this.$resetpost('rs/sql/address_singleTableOrderBy', {
168
- data: {
169
- items: '*',
170
- tablename: 't_pcd',
171
- orderitem: 'id',
172
- condition: `f_pcd_number = '${this.pcdmodel.f_pcd_number}' and f_orgid = '${this.$login.f.orgid}'`
173
- }
174
- }, {resolveMsg: null, rejectMsg: null})
175
- if (res.data.length>0){
176
- if (res.data[0].id != this.pcdmodel.id) {
177
- this.$showAlert('当前编号已存在', 'warning', 2000)
178
- this.pcdmodel.f_pcd_number = ''
179
- }
180
- }
181
- }
182
- },
183
- //初始化省市区,添加街道
184
- initpcds(pconditon){
185
- console.log("省市区准备")
186
- let HttpReset = new HttpResetClass()
187
- HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
188
- data: {
189
- items: '*',
190
- tablename: 't_pcd',
191
- orderitem: 'id',
192
- condition: pconditon
193
- }
194
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'}).then((req) => {
195
- let redata = []
196
- req.data.forEach((row, n) => {
197
- redata[n] = {
198
- label: row.f_pcd,
199
- value: row.id,
200
- data:row,
201
- id:row.id
202
- }
203
- })
204
- this.pcdslist=redata
205
- })
206
- },
207
- //根据名字找数据
208
- findbyid(list,name){
209
- var result
210
- list.forEach((row, n) => {
211
- if(name==row.id){
212
- result= row.data
213
- }
214
- })
215
- return result
216
- },
217
- //初始化数据
218
- initdata(){
219
- if(this.areatype=='街道'){
220
- this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
221
- }
222
- if(this.areatype=='小区'){
223
- this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
224
- this.initstreets(` f_filialeid = '${this.f_filialeids}'`)
225
- }
226
- },
227
- //省/市/区变化
228
- pcdChange(val){
229
- console.log("省/市/区变化",val)
230
- this.$resetValidation()
231
- },
232
- //保存
233
- async confirm(){
234
- if(this.areatype=='省市区'){
235
- await this.savepcd()
236
- }
237
- if(this.areatype=='街道'){
238
- await this.savestreet()
239
- }
240
- this.cleardara()
241
- this.$dispatch('confirm')
242
- },
243
- //保存省市区
244
- async savepcd(){
245
- this.pcdmodel.f_filialeid = this.f_filialeids
246
- this.pcdmodel.f_operator = this.$login.f.name
247
- this.pcdmodel.f_operatorid = this.$login.f.id
248
- this.pcdmodel.f_orgid = this.$login.f.orgid
249
- this.pcdmodel.f_orgname = this.$login.f.orgs
250
- this.pcdmodel.f_depid = this.$login.f.depids
251
- this.pcdmodel.f_depname = this.$login.f.deps
252
- this.pcdmodel.f_pcd = this.pcdmodel.f_province+this.pcdmodel.f_city+this.pcdmodel.f_district
253
- await this.$resetpost('rs/logic/address_updatepcd', this.pcdmodel)
254
- },
255
- //保存街道
256
- async savestreet(){
257
- this.streetmodel.f_filialeid = this.f_filialeids
258
- this.streetmodel.f_operator= this.$login.f.name
259
- this.streetmodel.f_operatorid = this.$login.f.id
260
- this.streetmodel.f_orgid = this.$login.f.orgid
261
- this.streetmodel.f_orgname = this.$login.f.orgs
262
- this.streetmodel.f_depid = this.$login.f.depids
263
- this.streetmodel.f_depname = this.$login.f.deps
264
- this.streetmodel.f_pcd=this.findbyid(this.pcdslist,this.streetmodel.f_pcd_id).f_pcd
265
- console.log('获取街道model', this.streetmodel)
266
- await this.$resetpost('rs/logic/address_updatestreet', this.streetmodel)
267
- },
268
- cancel(){
269
- this.cleardara()
270
- this.$dispatch('cancel')
271
- },
272
- cleardara () {
273
- this.pcdmodel = {
274
- f_province: '',
275
- f_city: '',
276
- f_district: '',
277
- f_comments:''
278
- }
279
- this.streetmodel = {
280
- f_pcd_id: '',
281
- f_slice_area: '',
282
- f_adjustable_id: '',
283
- f_street: '',
284
- f_comments:''
285
- }
286
- }
287
-
288
- },
289
- watch: {
290
- 'areatype'(){
291
- this.initdata()
292
- },
293
- 'f_filialeids'(){
294
- if (this.streetmodel.f_filialeid) {
295
- if (this.streetmodel.f_filialeid != this.f_filialeids) {
296
- this.$dispatch('cancel')
297
- }
298
- }
299
- if (this.pcdmodel.f_filialeid) {
300
- if (this.pcdmodel.f_filialeid != this.f_filialeids) {
301
- this.$dispatch('cancel')
302
- }
303
- }
304
- this.initdata()
305
- }
306
- }
307
- }
308
- </script>