address-client 3.2.2 → 3.2.3-zk

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 (66) hide show
  1. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  2. package/build/dev-server.js +133 -125
  3. package/package.json +2 -2
  4. package/src/address.js +55 -55
  5. package/src/components/AddAreaMsg.vue +675 -669
  6. package/src/components/AddressList.vue +391 -611
  7. package/src/components/AddressManage.vue +110 -117
  8. package/src/components/AreaList.vue +137 -135
  9. package/src/components/AreaManage.vue +101 -100
  10. package/src/components/CityList.vue +133 -133
  11. package/src/components/StreetList.vue +210 -210
  12. package/src/components/UserAddress.vue +905 -896
  13. package/src/main.js +21 -21
  14. package/yarn-error.log +7619 -0
  15. package/.gradle/3.5/file-changes/last-build.bin +0 -0
  16. package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
  17. package/.gradle/buildOutputCleanup/built.bin +0 -0
  18. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
  19. package/AddressClient.iml +0 -13
  20. package/src/filiale/WEINAN/AddAreaMsg.vue +0 -656
  21. package/src/filiale/WEINAN/AddressList.vue +0 -351
  22. package/src/filiale/WEINAN/AddressManage.vue +0 -122
  23. package/src/filiale/WEINAN/AreaList.vue +0 -275
  24. package/src/filiale/WEINAN/UserAddress.vue +0 -783
  25. package/src/filiale/WEINAN/sale.js +0 -16
  26. package/src/filiale/gaomi/AddressList.vue +0 -430
  27. package/src/filiale/gaomi/UserAddress.vue +0 -832
  28. package/src/filiale/gaomi/sale.js +0 -14
  29. package/src/filiale/gongyi/AddAreaMsg.vue +0 -640
  30. package/src/filiale/gongyi/AreaManage.vue +0 -100
  31. package/src/filiale/gongyi/UserAddress.vue +0 -751
  32. package/src/filiale/gongyi/sale.js +0 -14
  33. package/src/filiale/jingwei/UserAddress.vue +0 -764
  34. package/src/filiale/jingwei/sale.js +0 -12
  35. package/src/filiale/macheng/AddAreaMsg.vue +0 -635
  36. package/src/filiale/macheng/AddStreetOrPcd.vue +0 -231
  37. package/src/filiale/macheng/AddressList.vue +0 -306
  38. package/src/filiale/macheng/AreaList.vue +0 -279
  39. package/src/filiale/macheng/CityManage.vue +0 -76
  40. package/src/filiale/macheng/StreetList.vue +0 -186
  41. package/src/filiale/macheng/UserAddress.vue +0 -743
  42. package/src/filiale/macheng/sale.js +0 -17
  43. package/src/filiale/rongcheng/AddressList.vue +0 -363
  44. package/src/filiale/rongcheng/UserAddress.vue +0 -799
  45. package/src/filiale/rongcheng/sale.js +0 -11
  46. package/src/filiale/shaoguan/AddAreaMsg.vue +0 -631
  47. package/src/filiale/shaoguan/UserAddress.vue +0 -764
  48. package/src/filiale/shaoguan/sale.js +0 -11
  49. package/src/filiale/tongchuan/AddAreaMsg.vue +0 -635
  50. package/src/filiale/tongchuan/AddStreetOrPcd.vue +0 -308
  51. package/src/filiale/tongchuan/AddressList.vue +0 -379
  52. package/src/filiale/tongchuan/AreaList.vue +0 -315
  53. package/src/filiale/tongchuan/AreaManage.vue +0 -100
  54. package/src/filiale/tongchuan/CityList.vue +0 -133
  55. package/src/filiale/tongchuan/StreetList.vue +0 -208
  56. package/src/filiale/tongchuan/UserAddress.vue +0 -822
  57. package/src/filiale/tongchuan/sale.js +0 -19
  58. package/src/filiale/wuhai/UserAddress.vue +0 -795
  59. package/src/filiale/wuhai/sale.js +0 -12
  60. package/src/filiale/zhoukou/AddAreaMsg.vue +0 -673
  61. package/src/filiale/zhoukou/AddressList.vue +0 -391
  62. package/src/filiale/zhoukou/AddressManage.vue +0 -115
  63. package/src/filiale/zhoukou/AreaList.vue +0 -319
  64. package/src/filiale/zhoukou/AreaManage.vue +0 -100
  65. package/src/filiale/zhoukou/UserAddress.vue +0 -925
  66. package/src/filiale/zhoukou/sale.js +0 -23
@@ -1,279 +0,0 @@
1
- <template>
2
- <div class="flex" @keyup.enter="search">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div :class="$parent.$parent.style">
8
- <label class="font_normal_body">组织机构</label>
9
- <res-select restype='organization'
10
- @res-select="$parent.$parent.getorg"
11
- is-mul="false"
12
- :initresid='$parent.$parent.curorgid'>
13
- </res-select>
14
- </div>
15
- <div :class="$parent.$parent.style">
16
- <label class="font_normal_body">小区编号</label>
17
- <input type="text" class="input_search" style="width:60%" v-model="model.f_area_id"
18
- condition="f_area_id = '{}'" placeholder="小区编号"/>
19
- </div>
20
- <div :class="$parent.$parent.style" v-if="false">
21
- <label class="font_normal_body">省&emsp;&emsp;份</label>
22
- <input type="text" class="input_search" style="width:60%" v-model="model.f_province"
23
- condition="f_province like '%{}%'" placeholder="省份"/>
24
- </div>
25
- <!--<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">-->
26
- <div :class="$parent.$parent.style" v-if="false">
27
- <label class="font_normal_body">城&emsp;&emsp;市</label>
28
- <input type="text" class="input_search" style="width:60%" v-model="model.f_city"
29
- condition="f_city like '%{}%'" placeholder="城市"/>
30
- </div>
31
- <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
32
- <label class="font_normal_body">区&emsp;&emsp;镇</label>
33
- <input type="text" class="input_search" style="width:60%" v-model="model.f_district"
34
- condition="f_district like '%{}%'" placeholder="区镇"/>
35
- </div>
36
- <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
37
- <label class="font_normal_body">社区/村委</label>
38
- <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
39
- condition="f_street like '%{}%'" placeholder="社区/村委"/>
40
- </div>
41
- <div class="col-sm-4 form-group button-range">
42
- <button class="button_search button_spacing" @click="search()" >查询</button>
43
- <button v-if="!$parent.$parent.f_special" class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('小区')">添加小区</button>
44
- <button v-if="$parent.$parent.f_special"class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('单位')">添加单位</button>
45
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
46
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
47
- </div>
48
- </div>
49
- <div class="row" v-if="$parent.$parent.criteriaShow">
50
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
51
- <label class="font_normal_body">城&emsp;&emsp;市</label>
52
- <input type="text" class="input_search" style="width:60%" v-model="model.f_city"
53
- condition="f_city like '%{}%'" placeholder="城市"
54
- :size="model.f_city ? model.f_city.length*2 : 6"/>
55
- </div>
56
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
57
- <label class="font_normal_body">区&emsp;&emsp;镇</label>
58
- <input type="text" class="input_search" style="width:60%" v-model="model.f_district"
59
- condition="f_district like '%{}%'" placeholder="区镇"
60
- :size="model.f_district ? model.f_district.length*2 : 6"/>
61
- </div>
62
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
63
- <label class="font_normal_body">社区/村委</label>
64
- <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
65
- condition="f_street like '%{}%'" placeholder="社区/村委"
66
- :size="model.f_street ? model.f_street.length*2 : 6"/>
67
- </div>
68
- <div :class="$parent.$parent.style">
69
- <label class="font_normal_body">小&emsp;&emsp;区</label>
70
- <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area"
71
- condition="f_residential_area like '%{}%'" placeholder="小区"
72
- :size="model.f_residential_area ? model.f_residential_area.length*2 : 6"/>
73
- </div>
74
- <div :class="$parent.$parent.style">
75
- <label class="font_normal_body">房屋类型</label>
76
- <v-select :options='$parent.$parent.housetype' :value.sync="model.f_house_type"
77
- close-on-select condition="f_house_type='{}'"
78
- placeholder='房屋类型' v-model="model.f_house_type"></v-select>
79
- </div>
80
- <div :class="$parent.$parent.style">
81
- <label class="font_normal_body">安装位置</label>
82
- <v-select :options='$parent.$parent.position' :value.sync="model.f_position"
83
- close-on-select condition="f_position='{}'"
84
- placeholder='安装位置' v-model="model.f_position"></v-select>
85
- </div>
86
- <div :class="$parent.$parent.style">
87
- <label class="font_normal_body">&emsp;抄表员</label>
88
- <v-select :options='$parent.$parent.inputtores' :value.sync="model.f_inputtor"
89
- close-on-select condition="f_inputtor='{}'"
90
- placeholder='抄表员' v-model="model.f_inputtor"></v-select>
91
- </div>
92
- </div>
93
- </div>
94
-
95
-
96
- </criteria>
97
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
98
- <template partial='head'>
99
- <tr>
100
- <th><nobr>序号</nobr></th>
101
- <th v-if="false"><nobr>省份</nobr></th>
102
- <th v-if="false"><nobr>城市</nobr></th>
103
- <th><nobr>区/镇</nobr></th>
104
- <th><nobr>社区/村委名称</nobr></th>
105
- <!--民用小区信息开始-->
106
- <th v-if="!$parent.$parent.$parent.f_special"><nobr>小区名称</nobr></th>
107
- <th v-if="!$parent.$parent.$parent.f_special"><nobr>详细地址</nobr></th>
108
- <th v-if="!$parent.$parent.$parent.f_special"><nobr>小区备注</nobr></th>
109
- <!--民用小区信息结束-->
110
- <!--非民用单位信息开始-->
111
- <th v-if="$parent.$parent.$parent.f_special"><nobr>单位名称</nobr></th>
112
- <th v-if="$parent.$parent.$parent.f_special"><nobr>单位地址</nobr></th>
113
- <th v-if="$parent.$parent.$parent.f_special"><nobr>联系人</nobr></th>
114
- <th v-if="$parent.$parent.$parent.f_special"><nobr>联系电话</nobr></th>
115
- <!--非民用单位信息结束-->
116
- <th><nobr>抄表员</nobr></th>
117
- <th><nobr>抄表月份</nobr></th>
118
- <th><nobr>房屋类型</nobr></th>
119
- <th><nobr>安装位置</nobr></th>
120
- <th><nobr>片区/管理站 </nobr></th>
121
- <th><nobr>操作人</nobr></th>
122
- <th><nobr>操作日期</nobr></th>
123
- <th><nobr>操作</nobr></th>
124
-
125
- </tr>
126
- </template>
127
- <template partial='body'>
128
- <tr>
129
- <td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
130
- <td style="text-align:center" v-if="false"><nobr>{{row.f_province}}</nobr></td>
131
- <td style="text-align:center" v-if="false"><nobr>{{row.f_city}}</nobr></td>
132
- <td style="text-align:center"><nobr>{{row.f_district}}</nobr></td>
133
- <td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
134
- <td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
135
- <td style="text-align:center"><nobr>{{row.f_area_address}}{{row.f_residential_area}}</nobr></td>
136
- <td style="text-align:center"><nobr>{{row.f_comments}}</nobr></td>
137
- <!--非民用单位信息开始-->
138
- <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkname}}</nobr></td>
139
- <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkphone}}</nobr></td>
140
- <!--非民用单位信息结束-->
141
- <td style="text-align:center"><nobr>{{row.f_inputtor}}</nobr></td>
142
- <td style="text-align:center"><nobr>{{row.f_house_type}}</nobr></td>
143
- <td style="text-align:center"><nobr>{{row.f_position}}</nobr></td>
144
- <td style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
145
- <td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
146
- <td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
147
- <td><nobr>
148
- <!--<button type="button" name="button" class="btn btn-link"
149
- @click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
150
- <button type="button" name="button" class="btn btn-link"
151
- @click.stop="$parent.$parent.$parent.delete(row)">删除</button>
152
- </nobr></td>
153
- </tr>
154
- </template>
155
- <template partial='foot'></template>
156
- </data-grid>
157
- </criteria-paged>
158
- </div>
159
- </template>
160
-
161
- <script>
162
- import { PagedList } from 'vue-client'
163
-
164
- export default {
165
-
166
- data () {
167
- return {
168
- criteriaShow: false,
169
- model: new PagedList('rs/sql/address_getarealist',20),
170
- addflag: false,
171
- addtitle:'',
172
-
173
- // 公司下拉
174
- curorgid: [this.$login.f.orgid],
175
- f_orgid: '',
176
- handmonth:[{label:'全部',value:''},{label:'单月',value:'单月'},{label:'双月',value:'双月'}],
177
- housetype:[{label:'全部',value:''},{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
178
- position:this.$appdata.getParam('安装位置')?[{label:'全部',value:''},...this.$appdata.getParam('安装位置')]:[{label:'全部',value:''}]
179
- }
180
- },
181
- title: '小区管理',
182
- props:{
183
- f_filialeids:{
184
- type: String
185
- },
186
- style: {
187
- type: String,
188
- default: 'col-sm-2 form-group'
189
- },
190
- f_special:{
191
- type: String
192
- }
193
- },
194
- ready(){
195
- this.search()
196
- },
197
- methods: {
198
- hidden() {
199
- this.criteriaShow = !this.criteriaShow
200
- },
201
- search() {
202
- this.$refs.paged.$refs.cri.search()
203
- },
204
-
205
- async delete(row){
206
- if(row.id){
207
- var id = row.id
208
- let useraredss = await this.$resetpost('rs/sql/address_singleTable',
209
- {data: {
210
- items: 'f_residential_area_id',
211
- tablename: 't_user_address',
212
- condition: `f_residential_area_id='${id}'`}
213
- },
214
- {resolveMsg: null, rejectMsg: null})
215
- if(useraredss.data.length>0){
216
- this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
217
- }else{
218
- this.$resetdelete('rs/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
219
- this.$dispatch('cancel')
220
- })
221
- }
222
- }
223
- },
224
- add(val){
225
- if (this.f_filialeids) {
226
- this.$refs.paged.$refs.grid.selectStore.selected = null
227
- this.$dispatch('add')
228
- } else {
229
- this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
230
- }
231
- },
232
- modify(val){
233
- this.$refs.paged.$refs.grid.selectStore.selected = null
234
- this.$dispatch('modify',val)
235
- },
236
- selfSearch (args) {
237
-
238
- if (!this.f_orgid) {
239
- this.getorg([this.$login.f.orgid])
240
- }
241
- console.log('查询。。。', this.f_orgid)
242
- if(this.f_special){
243
- args.condition = `${args.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
244
- }else{
245
- args.condition = `${args.condition} and s.f_filialeid = ${this.f_orgid}`
246
- }
247
- this.model.search(args.condition, args.model)
248
- },
249
- //清空
250
- clear(){
251
- this.$refs.paged.$refs.cri.model = {}
252
- },
253
- getorg (val) {
254
- this.f_orgid = this.$login.convertToIn(val)
255
- this.f_filialeids = val[0]
256
- }
257
- },
258
- watch:{
259
-
260
- },
261
- computed:{
262
- inputtores () {
263
- // 获取抄表员
264
- let rs = new Array()
265
- if (this.$login.f.f_gasman.length > 0) {
266
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
267
- let temp = {
268
- label: this.$login.f.f_gasman[i].name,
269
- value: this.$login.f.f_gasman[i].name
270
- }
271
- rs.push(temp)
272
- }
273
- }
274
- return rs
275
- }
276
- }
277
-
278
- }
279
- </script>
@@ -1,76 +0,0 @@
1
- <template>
2
- <div id="unit" class="flex-row " :class="{'binary':areaShow}">
3
- <div :class="{'basic-main':!areaShow,'binary-left':areaShow}">
4
- <street-list @select-changed="selected" :f_filialeids.sync="f_filialeids" v-ref:arealist></street-list>
5
- </div>
6
- <div v-show="areaShow" class="binary-right">
7
- <add-street-pcd v-ref:addstreetpcd :areatype.sync="areatype" :operation='operation' :f_filialeids.sync="f_filialeids" :row="row"></add-street-pcd>
8
- </div>
9
- </div>
10
- </template>
11
-
12
- <script>
13
- export default {
14
- title: '区镇管理',
15
- components:{
16
- },
17
- data () {
18
- return {
19
- //分公司id串
20
- f_filialeids: this.$login.f.orgid,
21
- areaShow:false,
22
- areatype:'街道'
23
-
24
- }
25
- },
26
- props:{
27
-
28
- },
29
- methods:{
30
- selected(obj){
31
- if(obj.val&&obj.val.id){
32
- if (obj.val.f_filialeid != this.f_filialeids) {
33
- this.refresh()
34
- return
35
- }
36
- this.$refs.addstreetpcd.cleardara()
37
- this.areatype = '街道'
38
- this.areaShow=true
39
- this.$refs.addstreetpcd.operation='modify'
40
- this.$refs.addstreetpcd.streetmodel=Object.assign({},obj.val)
41
- this.$refs.addstreetpcd.initdata()
42
- }
43
- },
44
- async refresh () {
45
- this.areaShow = false
46
- await this.$refs.arealist.$refs.paged.$refs.cri.search()
47
- }
48
- },
49
- events:{
50
- 'add'(areatype){
51
- this.style='col-sm-3 '
52
- this.areaShow=true
53
- this.$refs.addstreetpcd.cleardara()
54
- this.$refs.addstreetpcd.operation='add'
55
- this.$refs.addstreetpcd.areatype=areatype
56
- this.$refs.addstreetpcd.initdata()
57
- },
58
- 'modify'(area){
59
- this.style='col-sm-2 '
60
- },
61
- 'confirm' () {
62
- this.style='col-sm-2 '
63
-
64
- this.refresh()
65
- },
66
- 'cancel' () {
67
- this.style='col-sm-2 '
68
-
69
- this.areaShow = false
70
- this.$refs.arealist.$refs.paged.$refs.cri.search()
71
- },
72
- }
73
- }
74
- </script>
75
-
76
-
@@ -1,186 +0,0 @@
1
- <template>
2
- <div class="flex" @keyup.enter="search">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="form-group" :class="{'col-sm-3':$parent.$parent.$parent.areaShow,'col-sm-2':!$parent.$parent.$parent.areaShow}">
8
- <label class="font_normal_body">组织机构</label>
9
- <res-select restype='organization'
10
- @res-select="$parent.$parent.getorg"
11
- :initresid='$parent.$parent.curorgid'>
12
- </res-select>
13
- </div>
14
- <div class="form-group" v-if="!$parent.$parent.$parent.areaShow" :class="{'col-sm-3':$parent.$parent.$parent.areaShow,'col-sm-2':!$parent.$parent.$parent.areaShow}">
15
- <label class="font_normal_body">省&emsp;&emsp;份</label>
16
- <input type="text" style="width:60%" class="input_search" v-model="model.f_province"
17
- condition="f_province like '%{}%'" placeholder="省份"
18
- :size="model.f_province ? model.f_province.length*2 : 6"/>
19
- </div>
20
- <div class="form-group" v-if="!$parent.$parent.$parent.areaShow" :class="{'col-sm-3':$parent.$parent.$parent.areaShow,'col-sm-2':!$parent.$parent.$parent.areaShow}">
21
- <label class="font_normal_body">城&emsp;&emsp;市</label>
22
- <input type="text" style="width:60%" class="input_search" v-model="model.f_city"
23
- condition="f_city like '%{}%'" placeholder="城市"
24
- :size="model.f_city ? model.f_city.length*2 : 6"/>
25
- </div>
26
-
27
- <div class="form-group" :class="{'col-sm-3':$parent.$parent.$parent.areaShow,'col-sm-2':!$parent.$parent.$parent.areaShow}">
28
- <label class="font_normal_body">区&emsp;&emsp;镇</label>
29
- <input type="text" style="width:60%" class="input_search" v-model="model.f_district"
30
- condition="f_district like '%{}%'" placeholder="区县"
31
- :size="model.f_district ? model.f_district.length*2 : 6"/>
32
- </div>
33
-
34
- <div class="col-sm-4 form-group button-range">
35
- <button class="button_search button_spacing" @click="search()" >查询</button>
36
- <button class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('省市区')">添加省市区</button>
37
- <button class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('街道')">添加社区/村委</button>
38
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
40
- </div>
41
- </div>
42
- <div class="row" v-show="$parent.$parent.criteriaShow">
43
- <div class="form-group" v-if="$parent.$parent.$parent.areaShow" :class="{'col-sm-3':$parent.$parent.$parent.areaShow,'col-sm-2':!$parent.$parent.$parent.areaShow}">
44
- <label class="font_normal_body">省&emsp;&emsp;份</label>
45
- <input type="text" style="width:60%" class="input_search" v-model="model.f_province"
46
- condition="f_province like '%{}%'" placeholder="省份"
47
- :size="model.f_province ? model.f_province.length*2 : 6"/>
48
- </div>
49
- <div class="form-group" v-if="$parent.$parent.$parent.areaShow" :class="{'col-sm-3':$parent.$parent.$parent.areaShow,'col-sm-2':!$parent.$parent.$parent.areaShow}">
50
- <label class="font_normal_body">城&emsp;&emsp;市</label>
51
- <input type="text" style="width:60%" class="input_search" v-model="model.f_city"
52
- condition="f_city like '%{}%'" placeholder="城市"
53
- :size="model.f_city ? model.f_city.length*2 : 6"/>
54
- </div>
55
- <div class="form-group" :class="{'col-sm-3':$parent.$parent.$parent.areaShow,'col-sm-2':!$parent.$parent.$parent.areaShow}">
56
- <label class="font_normal_body">社区/村委</label>
57
- <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
58
- condition="f_street like '%{}%'" placeholder="社区/村委"/>
59
- </div>
60
- </div>
61
- </div>
62
- </criteria>
63
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
64
- <template partial='head'>
65
- <tr>
66
- <th><nobr>序号</nobr></th>
67
- <th><nobr>省份</nobr></th>
68
- <th><nobr>城市</nobr></th>
69
- <th><nobr>区/镇</nobr></th>
70
- <th><nobr>社区/村委</nobr></th>
71
- <th><nobr>详细地址</nobr></th>
72
- <th><nobr>分公司</nobr></th>
73
- <th><nobr>操作</nobr></th>
74
- </tr>
75
- </template>
76
- <template partial='body'>
77
- <tr @click="$parent.$parent.changestyle()">
78
- <td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
79
- <td style="text-align:center"><nobr>{{row.f_province}}</nobr></td>
80
- <td style="text-align:center"><nobr>{{row.f_city}}</nobr></td>
81
- <td style="text-align:center"><nobr>{{row.f_district}}</nobr></td>
82
- <td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
83
- <td style="text-align:center"><nobr>{{row.f_pcd}}-{{row.f_street}}</nobr></td>
84
- <td style="text-align:center"><nobr>{{row.f_org_name}}</nobr></td>
85
- <td style="text-align:center"><nobr>
86
- <!-- <button type="button" name="button" class="btn btn-link"
87
- @click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
88
- <button type="button" name="button" class="btn btn-link"
89
- @click.stop="$parent.$parent.$parent.delete(row)">删除</button>
90
- </nobr></td>
91
- </tr>
92
- </template>
93
- <template partial='foot'></template>
94
- </data-grid>
95
- </criteria-paged>
96
- </div>
97
- </template>
98
-
99
- <script>
100
- import { PagedList } from 'vue-client'
101
-
102
- export default {
103
- data () {
104
- return {
105
- criteriaShow: false,
106
- model: new PagedList('rs/sql/address_getstreetlist',20),
107
- addflag: false,
108
- addtitle:'',
109
-
110
- // 公司下拉
111
- curorgid: [this.$login.f.orgid],
112
- f_orgid: '',
113
-
114
- }
115
- },
116
- title: '街道管理',
117
- props:{
118
- f_filialeids:{
119
- type: String
120
- }
121
- },
122
- ready(){
123
- this.search()
124
- },
125
- methods: {
126
- hidden() {
127
- this.criteriaShow = !this.criteriaShow
128
- },
129
- search () {
130
- this.$refs.paged.$refs.cri.search()
131
- },
132
-
133
- async delete(row){
134
- if(row.id){
135
- var id = row.id
136
- let useraredss = await this.$resetpost('rs/sql/address_singleTable',
137
- {data: {
138
- items: 'f_street_id',
139
- tablename: 't_area',
140
- condition: `f_street_id='${id}'`}
141
- },
142
- {resolveMsg: null, rejectMsg: null})
143
- if(useraredss.data.length>0){
144
- this.$showAlert('该街道下已有小区信息,无法删除!','warning',1000)
145
- }else{
146
- this.$resetdelete('rs/entity/t_street', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
147
- this.$dispatch('cancel')
148
- })
149
- }
150
- }
151
- },
152
- add(val){
153
- if (this.f_filialeids) {
154
- this.$refs.paged.$refs.grid.selectStore.selected = null
155
- this.$dispatch('add',val)
156
- } else {
157
- this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
158
- }
159
-
160
- },
161
- modify(val){
162
- this.$refs.paged.$refs.grid.selectStore.selected = null
163
- this.$dispatch('modify',val)
164
- },
165
- selfSearch (args) {
166
- if (!this.f_orgid) {
167
- this.getorg([this.$login.f.orgid])
168
- }
169
- args.condition = `${args.condition} and s.f_filialeid in ${this.f_orgid}`
170
- this.model.search(args.condition, args.model)
171
- },
172
- //清空
173
- clear(){
174
- this.$refs.paged.$refs.cri.model = {}
175
- },
176
- getorg (val) {
177
- this.f_orgid = this.$login.convertToIn(val)
178
- this.f_filialeids = val[0]
179
- }
180
- },
181
- watch:{
182
-
183
- }
184
-
185
- }
186
- </script>