address-client 3.0.34-aodeToV4 → 3.0.35-aodeToV4

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 (41) hide show
  1. package/AddressClient.iml +12 -12
  2. package/CHANGELOG.md +12 -12
  3. package/build/dev-server.js +128 -128
  4. package/build/webpack.base.conf.js +81 -81
  5. package/examples/showAdd/App.vue +40 -40
  6. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  7. package/gradle/wrapper/gradle-wrapper.properties +5 -0
  8. package/gradlew +234 -0
  9. package/gradlew.bat +89 -0
  10. package/index.html +40 -40
  11. package/package.json +1 -1
  12. package/src/address.js +58 -58
  13. package/src/components/AddAreaMsg.vue +599 -599
  14. package/src/components/AddStreetOrPcd.vue +231 -231
  15. package/src/components/AddressAddAddress.vue +479 -479
  16. package/src/components/AddressFiles.vue +156 -156
  17. package/src/components/AddressList.vue +323 -323
  18. package/src/components/AddressManage.vue +117 -117
  19. package/src/components/AddressTree.vue +501 -501
  20. package/src/components/AreaFiles.vue +73 -73
  21. package/src/components/AreaList.vue +357 -357
  22. package/src/components/AreaManage.vue +101 -101
  23. package/src/components/AreaTree.vue +508 -508
  24. package/src/components/Basch.vue +72 -72
  25. package/src/components/BatchOrders.vue +328 -328
  26. package/src/components/CityManage.vue +76 -76
  27. package/src/components/NewAddressInfo.vue +432 -432
  28. package/src/components/OneCodeList.vue +251 -251
  29. package/src/components/StreetList.vue +184 -184
  30. package/src/components/UserAddress.vue +780 -780
  31. package/src/components/UserAddressChange.vue +58 -58
  32. package/src/components/addressts/AddressListts.vue +307 -307
  33. package/src/components/addressts/AddressManagets.vue +117 -117
  34. package/src/components/addressts/UserAddressChangets.vue +58 -58
  35. package/src/components/addressts/UserAddressts.vue +739 -739
  36. package/src/components/areauser/AreaUser.vue +233 -233
  37. package/src/components/selectAddress/BatchList.vue +177 -174
  38. package/src/main.js +23 -23
  39. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  40. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  41. package/.gradle/buildOutputCleanup/cache.properties +0 -2
@@ -1,231 +1,231 @@
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-12 form-group">
33
- <label class="font_normal_body " style="">备&emsp;&emsp;注</label>
34
- <textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="pcdmodel.f_comments"></textarea>
35
- </div>
36
- </div>
37
- <!-- 街道-->
38
- <div v-if="areatype=='街道'" class="row">
39
- <div class="col-sm-6 form-group "
40
- :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
41
- <label class="font_normal_body">省&ensp;市&ensp;区</label>
42
- <input type="text" v-show="false" v-model="streetmodel.f_pcd_id"
43
- v-validate:f_pcd_id='{required: true }'>
44
- <v-select
45
- :value.sync="streetmodel.f_pcd_id" :value-single="true"
46
- :options='pcdslist' placeholder='请选择'
47
- close-on-select search="true" @change="pcdChange">
48
- </v-select>
49
- </div>
50
- <div class="col-sm-6 form-group "
51
- :class="[$v.f_street.required ? 'has-error' : 'has-success']">
52
- <label class="font_normal_body">街道名称</label>
53
- <input type="text" v-model="streetmodel.f_street"
54
- class="input_search" style="width:60%" placeholder="街道名称"
55
- v-validate:f_street='{required: true }'>
56
- </div>
57
- <div class="col-sm-12 form-group">
58
- <label class="font_normal_body " style="">备&emsp;&emsp;注</label>
59
- <textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="streetmodel.f_comments"></textarea>
60
- </div>
61
- </div>
62
-
63
- <div class="row">
64
- <div style="margin-top:40px;text-align:right;">
65
- <button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
66
- <button class="button_clear button_spacing" @click="cancel()">取消</button>
67
- </div>
68
- </div>
69
- </div>
70
- </validator>
71
- </div>
72
- </template>
73
-
74
- <script>
75
- import {HttpResetClass} from 'vue-client'
76
- export default {
77
- title: '区域地址添加',
78
- data () {
79
- return {
80
- //初始化省市区数据
81
- pcdslist:[],
82
- //省市区
83
- pcdmodel: {
84
- f_province:'',
85
- f_city:'',
86
- f_district:'',
87
- f_comments:''
88
- },
89
- //街道
90
- streetmodel: {
91
- f_pcd_id:'',
92
- f_street_id:'',
93
- slice_area: null,
94
- f_slice_area: null,
95
- f_adjustable_id: null,
96
- f_street:'',
97
- f_comments:''
98
- }
99
- }
100
- },
101
- props: ['f_filialeids', 'areatype','row','operation'],
102
- ready(){
103
- this.initdata()
104
- },
105
- methods: {
106
- //初始化省市区,添加街道
107
- initpcds(pconditon){
108
- console.log("省市区准备")
109
- let HttpReset = new HttpResetClass()
110
- HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
111
- data: {
112
- items: '*',
113
- tablename: 't_pcd',
114
- orderitem: 'id',
115
- condition: pconditon
116
- }
117
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'}).then((req) => {
118
- let redata = []
119
- req.data.forEach((row, n) => {
120
- redata[n] = {
121
- label: row.f_pcd,
122
- value: row.id,
123
- data:row,
124
- id:row.id
125
- }
126
- })
127
- this.pcdslist=redata
128
- })
129
- },
130
- //根据名字找数据
131
- findbyid(list,name){
132
- var result
133
- list.forEach((row, n) => {
134
- if(name==row.id){
135
- result= row.data
136
- }
137
- })
138
- return result
139
- },
140
- //初始化数据
141
- initdata(){
142
- if(this.areatype=='街道'){
143
- this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
144
- }
145
- if(this.areatype=='小区'){
146
- this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
147
- this.initstreets(` f_filialeid = '${this.f_filialeids}'`)
148
- }
149
- },
150
- //省/市/区变化
151
- pcdChange(val){
152
- console.log("省/市/区变化",val)
153
- this.$resetValidation()
154
- },
155
- //保存
156
- async confirm(){
157
- if(this.areatype=='省市区'){
158
- await this.savepcd()
159
- }
160
- if(this.areatype=='街道'){
161
- await this.savestreet()
162
- }
163
- this.cleardara()
164
- this.$dispatch('confirm')
165
- },
166
- //保存省市区
167
- async savepcd(){
168
- this.pcdmodel.f_filialeid = this.f_filialeids
169
- this.pcdmodel.f_operator = this.$login.f.name
170
- this.pcdmodel.f_operatorid = this.$login.f.id
171
- this.pcdmodel.f_orgid = this.$login.f.orgid
172
- this.pcdmodel.f_orgname = this.$login.f.orgs
173
- this.pcdmodel.f_depid = this.$login.f.depids
174
- this.pcdmodel.f_depname = this.$login.f.deps
175
- this.pcdmodel.f_pcd = this.pcdmodel.f_province+this.pcdmodel.f_city+this.pcdmodel.f_district
176
- await this.$resetpost('api/af-revenue/logic/address_updatepcd', this.pcdmodel)
177
- },
178
- //保存街道
179
- async savestreet(){
180
- this.streetmodel.f_filialeid = this.f_filialeids
181
- this.streetmodel.f_operator= this.$login.f.name
182
- this.streetmodel.f_operatorid = this.$login.f.id
183
- this.streetmodel.f_orgid = this.$login.f.orgid
184
- this.streetmodel.f_orgname = this.$login.f.orgs
185
- this.streetmodel.f_depid = this.$login.f.depids
186
- this.streetmodel.f_depname = this.$login.f.deps
187
- this.streetmodel.f_pcd=this.findbyid(this.pcdslist,this.streetmodel.f_pcd_id).f_pcd
188
- console.log('获取街道model', this.streetmodel)
189
- await this.$resetpost('api/af-revenue/logic/address_updatestreet', this.streetmodel)
190
- },
191
- cancel(){
192
- this.cleardara()
193
- this.$dispatch('cancel')
194
- },
195
- cleardara () {
196
- this.pcdmodel = {
197
- f_province: '',
198
- f_city: '',
199
- f_district: '',
200
- f_comments:''
201
- }
202
- this.streetmodel = {
203
- f_pcd_id: '',
204
- f_slice_area: '',
205
- f_adjustable_id: '',
206
- f_street: '',
207
- f_comments:''
208
- }
209
- }
210
-
211
- },
212
- watch: {
213
- 'areatype'(){
214
- this.initdata()
215
- },
216
- 'f_filialeids'(){
217
- if (this.streetmodel.f_filialeid) {
218
- if (this.streetmodel.f_filialeid != this.f_filialeids) {
219
- this.$dispatch('cancel')
220
- }
221
- }
222
- if (this.pcdmodel.f_filialeid) {
223
- if (this.pcdmodel.f_filialeid != this.f_filialeids) {
224
- this.$dispatch('cancel')
225
- }
226
- }
227
- this.initdata()
228
- }
229
- }
230
- }
231
- </script>
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-12 form-group">
33
+ <label class="font_normal_body " style="">备&emsp;&emsp;注</label>
34
+ <textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="pcdmodel.f_comments"></textarea>
35
+ </div>
36
+ </div>
37
+ <!-- 街道-->
38
+ <div v-if="areatype=='街道'" class="row">
39
+ <div class="col-sm-6 form-group "
40
+ :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
41
+ <label class="font_normal_body">省&ensp;市&ensp;区</label>
42
+ <input type="text" v-show="false" v-model="streetmodel.f_pcd_id"
43
+ v-validate:f_pcd_id='{required: true }'>
44
+ <v-select
45
+ :value.sync="streetmodel.f_pcd_id" :value-single="true"
46
+ :options='pcdslist' placeholder='请选择'
47
+ close-on-select search="true" @change="pcdChange">
48
+ </v-select>
49
+ </div>
50
+ <div class="col-sm-6 form-group "
51
+ :class="[$v.f_street.required ? 'has-error' : 'has-success']">
52
+ <label class="font_normal_body">街道名称</label>
53
+ <input type="text" v-model="streetmodel.f_street"
54
+ class="input_search" style="width:60%" placeholder="街道名称"
55
+ v-validate:f_street='{required: true }'>
56
+ </div>
57
+ <div class="col-sm-12 form-group">
58
+ <label class="font_normal_body " style="">备&emsp;&emsp;注</label>
59
+ <textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="streetmodel.f_comments"></textarea>
60
+ </div>
61
+ </div>
62
+
63
+ <div class="row">
64
+ <div style="margin-top:40px;text-align:right;">
65
+ <button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
66
+ <button class="button_clear button_spacing" @click="cancel()">取消</button>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ </validator>
71
+ </div>
72
+ </template>
73
+
74
+ <script>
75
+ import {HttpResetClass} from 'vue-client'
76
+ export default {
77
+ title: '区域地址添加',
78
+ data () {
79
+ return {
80
+ //初始化省市区数据
81
+ pcdslist:[],
82
+ //省市区
83
+ pcdmodel: {
84
+ f_province:'',
85
+ f_city:'',
86
+ f_district:'',
87
+ f_comments:''
88
+ },
89
+ //街道
90
+ streetmodel: {
91
+ f_pcd_id:'',
92
+ f_street_id:'',
93
+ slice_area: null,
94
+ f_slice_area: null,
95
+ f_adjustable_id: null,
96
+ f_street:'',
97
+ f_comments:''
98
+ }
99
+ }
100
+ },
101
+ props: ['f_filialeids', 'areatype','row','operation'],
102
+ ready(){
103
+ this.initdata()
104
+ },
105
+ methods: {
106
+ //初始化省市区,添加街道
107
+ initpcds(pconditon){
108
+ console.log("省市区准备")
109
+ let HttpReset = new HttpResetClass()
110
+ HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
111
+ data: {
112
+ items: '*',
113
+ tablename: 't_pcd',
114
+ orderitem: 'id',
115
+ condition: pconditon
116
+ }
117
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'}).then((req) => {
118
+ let redata = []
119
+ req.data.forEach((row, n) => {
120
+ redata[n] = {
121
+ label: row.f_pcd,
122
+ value: row.id,
123
+ data:row,
124
+ id:row.id
125
+ }
126
+ })
127
+ this.pcdslist=redata
128
+ })
129
+ },
130
+ //根据名字找数据
131
+ findbyid(list,name){
132
+ var result
133
+ list.forEach((row, n) => {
134
+ if(name==row.id){
135
+ result= row.data
136
+ }
137
+ })
138
+ return result
139
+ },
140
+ //初始化数据
141
+ initdata(){
142
+ if(this.areatype=='街道'){
143
+ this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
144
+ }
145
+ if(this.areatype=='小区'){
146
+ this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
147
+ this.initstreets(` f_filialeid = '${this.f_filialeids}'`)
148
+ }
149
+ },
150
+ //省/市/区变化
151
+ pcdChange(val){
152
+ console.log("省/市/区变化",val)
153
+ this.$resetValidation()
154
+ },
155
+ //保存
156
+ async confirm(){
157
+ if(this.areatype=='省市区'){
158
+ await this.savepcd()
159
+ }
160
+ if(this.areatype=='街道'){
161
+ await this.savestreet()
162
+ }
163
+ this.cleardara()
164
+ this.$dispatch('confirm')
165
+ },
166
+ //保存省市区
167
+ async savepcd(){
168
+ this.pcdmodel.f_filialeid = this.f_filialeids
169
+ this.pcdmodel.f_operator = this.$login.f.name
170
+ this.pcdmodel.f_operatorid = this.$login.f.id
171
+ this.pcdmodel.f_orgid = this.$login.f.orgid
172
+ this.pcdmodel.f_orgname = this.$login.f.orgs
173
+ this.pcdmodel.f_depid = this.$login.f.depids
174
+ this.pcdmodel.f_depname = this.$login.f.deps
175
+ this.pcdmodel.f_pcd = this.pcdmodel.f_province+this.pcdmodel.f_city+this.pcdmodel.f_district
176
+ await this.$resetpost('api/af-revenue/logic/address_updatepcd', this.pcdmodel)
177
+ },
178
+ //保存街道
179
+ async savestreet(){
180
+ this.streetmodel.f_filialeid = this.f_filialeids
181
+ this.streetmodel.f_operator= this.$login.f.name
182
+ this.streetmodel.f_operatorid = this.$login.f.id
183
+ this.streetmodel.f_orgid = this.$login.f.orgid
184
+ this.streetmodel.f_orgname = this.$login.f.orgs
185
+ this.streetmodel.f_depid = this.$login.f.depids
186
+ this.streetmodel.f_depname = this.$login.f.deps
187
+ this.streetmodel.f_pcd=this.findbyid(this.pcdslist,this.streetmodel.f_pcd_id).f_pcd
188
+ console.log('获取街道model', this.streetmodel)
189
+ await this.$resetpost('api/af-revenue/logic/address_updatestreet', this.streetmodel)
190
+ },
191
+ cancel(){
192
+ this.cleardara()
193
+ this.$dispatch('cancel')
194
+ },
195
+ cleardara () {
196
+ this.pcdmodel = {
197
+ f_province: '',
198
+ f_city: '',
199
+ f_district: '',
200
+ f_comments:''
201
+ }
202
+ this.streetmodel = {
203
+ f_pcd_id: '',
204
+ f_slice_area: '',
205
+ f_adjustable_id: '',
206
+ f_street: '',
207
+ f_comments:''
208
+ }
209
+ }
210
+
211
+ },
212
+ watch: {
213
+ 'areatype'(){
214
+ this.initdata()
215
+ },
216
+ 'f_filialeids'(){
217
+ if (this.streetmodel.f_filialeid) {
218
+ if (this.streetmodel.f_filialeid != this.f_filialeids) {
219
+ this.$dispatch('cancel')
220
+ }
221
+ }
222
+ if (this.pcdmodel.f_filialeid) {
223
+ if (this.pcdmodel.f_filialeid != this.f_filialeids) {
224
+ this.$dispatch('cancel')
225
+ }
226
+ }
227
+ this.initdata()
228
+ }
229
+ }
230
+ }
231
+ </script>