address-client 4.0.14 → 4.0.16
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.
- package/package.json +1 -1
- package/src/filiale/meihekou/AddAreaMsg.vue +754 -0
- package/src/filiale/meihekou/AreaList.vue +513 -0
- package/src/filiale/meihekou/sale.js +3 -2
- package/src/filiale/yangchun/AreaList.vue +1 -1
- package/.gradle/8.5/checksums/checksums.lock +0 -0
- package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
- package/.gradle/8.5/fileChanges/last-build.bin +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
- package/.gradle/8.5/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/file-system.probe +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/gradlew +0 -249
- package/gradlew.bat +0 -92
|
@@ -0,0 +1,513 @@
|
|
|
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" v-if="!$parent.$parent.$parent.areaShow">
|
|
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">省  份</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">城  市</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">区  县</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 class="button_search button_spacing" @click="$parent.$parent.batchDelete()">批量删除</button>
|
|
44
|
+
<button class="button_search button_spacing" @click="$parent.$parent.batchUpdate()">批量修改</button>
|
|
45
|
+
<button v-if="!$parent.$parent.f_special" class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('小区')">添加小区</button>
|
|
46
|
+
<button v-if="$parent.$parent.f_special"class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('单位')">添加单位</button>
|
|
47
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
48
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
49
|
+
:field="$parent.$parent.getfield"
|
|
50
|
+
sqlurl="api/af-revenue/logic/exportfile"
|
|
51
|
+
sql-name="manage_getarealist"
|
|
52
|
+
template-name='小区信息查询导出'
|
|
53
|
+
:choose-col="true"></export-excel>
|
|
54
|
+
<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>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="row" v-if="$parent.$parent.criteriaShow">
|
|
58
|
+
<div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
|
|
59
|
+
<label class="font_normal_body">小区编号</label>
|
|
60
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_area_id"
|
|
61
|
+
condition="f_area_id = '{}'" placeholder="小区编号"/>
|
|
62
|
+
</div>
|
|
63
|
+
<div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
|
|
64
|
+
<label class="font_normal_body">城  市</label>
|
|
65
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_city"
|
|
66
|
+
condition="f_city like '%{}%'" placeholder="城市"
|
|
67
|
+
:size="model.f_city ? model.f_city.length*2 : 6"/>
|
|
68
|
+
</div>
|
|
69
|
+
<div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
|
|
70
|
+
<label class="font_normal_body">区  县</label>
|
|
71
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_district"
|
|
72
|
+
condition="f_district like '%{}%'" placeholder="区县"
|
|
73
|
+
:size="model.f_district ? model.f_district.length*2 : 6"/>
|
|
74
|
+
</div>
|
|
75
|
+
<div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
|
|
76
|
+
<label class="font_normal_body">街道/乡镇</label>
|
|
77
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_street"
|
|
78
|
+
condition="f_street like '%{}%'" placeholder="街道/乡镇"
|
|
79
|
+
:size="model.f_street ? model.f_street.length*2 : 6"/>
|
|
80
|
+
</div>
|
|
81
|
+
<div :class="$parent.$parent.style">
|
|
82
|
+
<label class="font_normal_body">小区名称</label>
|
|
83
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area"
|
|
84
|
+
condition="f_residential_area like '%{}%'" placeholder="小区"
|
|
85
|
+
:size="model.f_residential_area ? model.f_residential_area.length*2 : 6"/>
|
|
86
|
+
</div>
|
|
87
|
+
<div :class="$parent.$parent.style">
|
|
88
|
+
<label class="font_normal_body">房屋类型</label>
|
|
89
|
+
<v-select :options='$parent.$parent.housetype' :value.sync="model.f_house_type"
|
|
90
|
+
close-on-select condition="f_house_type='{}'"
|
|
91
|
+
placeholder='房屋类型' v-model="model.f_house_type"></v-select>
|
|
92
|
+
</div>
|
|
93
|
+
<div :class="$parent.$parent.style">
|
|
94
|
+
<label class="font_normal_body">安装位置</label>
|
|
95
|
+
<v-select :options='$parent.$parent.position' :value.sync="model.f_position"
|
|
96
|
+
close-on-select condition="f_position='{}'"
|
|
97
|
+
placeholder='安装位置' v-model="model.f_position"></v-select>
|
|
98
|
+
</div>
|
|
99
|
+
<div :class="$parent.$parent.style">
|
|
100
|
+
<label class="font_normal_body"> 抄表员</label>
|
|
101
|
+
<v-select :options='$parent.$parent.inputtores' :value.sync="model.f_inputtor"
|
|
102
|
+
close-on-select condition="f_inputtor='{}'"
|
|
103
|
+
placeholder='抄表员' v-model="model.f_inputtor"></v-select>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</criteria>
|
|
108
|
+
|
|
109
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" :optional="true" v-ref:grid>
|
|
110
|
+
<template partial='head'>
|
|
111
|
+
<th><nobr>序号</nobr></th>
|
|
112
|
+
<th v-if="false"><nobr>省份</nobr></th>
|
|
113
|
+
<th v-if="false"><nobr>城市</nobr></th>
|
|
114
|
+
<th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>区/县</nobr></th>
|
|
115
|
+
<th><nobr>街道/乡镇</nobr></th>
|
|
116
|
+
<!--民用小区信息开始-->
|
|
117
|
+
<th v-if="!$parent.$parent.$parent.f_special"><nobr>小区名称</nobr></th>
|
|
118
|
+
<th v-if="!$parent.$parent.$parent.f_special"><nobr>地址</nobr></th>
|
|
119
|
+
<th v-if="!$parent.$parent.$parent.f_special && !$parent.$parent.$parent.$parent.areaShow"><nobr>小区备注</nobr></th>
|
|
120
|
+
<!--民用小区信息结束-->
|
|
121
|
+
<!--非民用单位信息开始-->
|
|
122
|
+
<th v-if="$parent.$parent.$parent.f_special"><nobr>单位名称</nobr></th>
|
|
123
|
+
<th v-if="$parent.$parent.$parent.f_special"><nobr>单位地址</nobr></th>
|
|
124
|
+
<th v-if="$parent.$parent.$parent.f_special"><nobr>联系人</nobr></th>
|
|
125
|
+
<th v-if="$parent.$parent.$parent.f_special"><nobr>联系电话</nobr></th>
|
|
126
|
+
<!--非民用单位信息结束-->
|
|
127
|
+
<th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>抄表员</nobr></th>
|
|
128
|
+
<th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>房屋类型</nobr></th>
|
|
129
|
+
<th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>安装位置</nobr></th>
|
|
130
|
+
<th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>片区/管理站 </nobr></th>
|
|
131
|
+
<th><nobr>操作人</nobr></th>
|
|
132
|
+
<th><nobr>操作日期</nobr></th>
|
|
133
|
+
<th title="该小区下现有的地址数"><nobr>地址数</nobr></th>
|
|
134
|
+
<th><nobr>操作</nobr></th>
|
|
135
|
+
</template>
|
|
136
|
+
<template partial='body'>
|
|
137
|
+
<td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
|
|
138
|
+
<td style="text-align:center" v-if="false"><nobr>{{row.f_province}}</nobr></td>
|
|
139
|
+
<td style="text-align:center" v-if="false"><nobr>{{row.f_city}}</nobr></td>
|
|
140
|
+
<td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_district}}</nobr></td>
|
|
141
|
+
<td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
|
|
142
|
+
<td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
|
|
143
|
+
<td style="text-align:center"><nobr>{{row.f_area_address}}</nobr></td>
|
|
144
|
+
<td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_comments}}</nobr></td>
|
|
145
|
+
<!--非民用单位信息开始-->
|
|
146
|
+
<td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkname}}</nobr></td>
|
|
147
|
+
<td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkphone}}</nobr></td>
|
|
148
|
+
<!--非民用单位信息结束-->
|
|
149
|
+
<td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_inputtor}}</nobr></td>
|
|
150
|
+
<td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_house_type}}</nobr></td>
|
|
151
|
+
<td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_position}}</nobr></td>
|
|
152
|
+
<td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
|
|
153
|
+
<td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
|
|
154
|
+
<td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
155
|
+
<td style="text-align:center"><button @click.stop="$parent.$parent.$parent.operates(row.id)" class="btn btn-link"><b>{{row.addressnum}}</b></button></td>
|
|
156
|
+
<td><nobr>
|
|
157
|
+
<!--<button type="button" name="button" class="btn btn-link"
|
|
158
|
+
@click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
|
|
159
|
+
<button v-if="!row.addressnum>0" type="button" name="button" class="btn btn-danger"
|
|
160
|
+
style="padding: 5px 12px"
|
|
161
|
+
@click.stop="$parent.$parent.$parent.delete(row)">删除</button>
|
|
162
|
+
</nobr>
|
|
163
|
+
</td>
|
|
164
|
+
</template>
|
|
165
|
+
<template partial='foot'></template>
|
|
166
|
+
</data-grid>
|
|
167
|
+
</criteria-paged>
|
|
168
|
+
<modal :show="showDelete" large backdrop="false" :width="900">
|
|
169
|
+
<header slot="modal-header" class="modal-header">
|
|
170
|
+
<p class="bg-info text-center" style="padding: 8px;">提示</p>
|
|
171
|
+
</header>
|
|
172
|
+
<article slot="modal-body" class="modal-body">
|
|
173
|
+
<p>您一共选中{{selectDataLen}}个小区,您确定是否要删除吗?</p>
|
|
174
|
+
</article>
|
|
175
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
176
|
+
<button v-show="showDelete" type="button" class="button_search button_spacing" @click='confirmDelete()' :disabled='!$v.valid'>确认</button>
|
|
177
|
+
<button v-show="showDelete" type="button" class="button_clear button_spacing" @click='cancelDelete()'>取消</button>
|
|
178
|
+
</footer>
|
|
179
|
+
</modal>
|
|
180
|
+
<modal :show="showUpdate" large backdrop="false" :width="900">
|
|
181
|
+
<header slot="modal-header" class="modal-header">
|
|
182
|
+
<p class="bg-info text-center" style="padding: 8px;">批量修改小区</p>
|
|
183
|
+
</header>
|
|
184
|
+
<article slot="modal-body" class="modal-body">
|
|
185
|
+
<div class="row">
|
|
186
|
+
<div class="col-sm-12 form-group"
|
|
187
|
+
>
|
|
188
|
+
<label class="font_normal_body">省 市 区</label>
|
|
189
|
+
<v-select
|
|
190
|
+
:value.sync="areamodel.f_pcd_id" :value-single="true"
|
|
191
|
+
v-model="areamodel.f_pcd_id"
|
|
192
|
+
:options='pcdslist' placeholder='请选择'
|
|
193
|
+
close-on-select search="true" >
|
|
194
|
+
</v-select>
|
|
195
|
+
</div>
|
|
196
|
+
<div class="col-sm-12 form-group">
|
|
197
|
+
<label class="font_normal_body">片  区</label>
|
|
198
|
+
<v-select :value.sync="areamodel.slice_area" v-model="areamodel.slice_area"
|
|
199
|
+
:value-single="true" :options='sliceArea' placeholder='片区/管理站' filer-key="name"
|
|
200
|
+
close-on-select v-ref:slice>
|
|
201
|
+
</v-select>
|
|
202
|
+
</div>
|
|
203
|
+
</div>
|
|
204
|
+
</article>
|
|
205
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
206
|
+
<button v-show="showUpdate" type="button" class="button_search button_spacing" @click='confirmUpdate()' :disabled='!$v.valid'>确认</button>
|
|
207
|
+
<button v-show="showUpdate" type="button" class="button_clear button_spacing" @click='showUpdate=!showUpdate'>取消</button>
|
|
208
|
+
</footer>
|
|
209
|
+
</modal>
|
|
210
|
+
</div>
|
|
211
|
+
</template>
|
|
212
|
+
|
|
213
|
+
<script>
|
|
214
|
+
import { PagedList } from 'vue-client'
|
|
215
|
+
let readyGen = async function (self) {
|
|
216
|
+
self.getfield = self.config.excelHeaders
|
|
217
|
+
self.search()
|
|
218
|
+
}
|
|
219
|
+
export default {
|
|
220
|
+
|
|
221
|
+
data () {
|
|
222
|
+
return {
|
|
223
|
+
showDelete: false,
|
|
224
|
+
showUpdate: false,
|
|
225
|
+
criteriaShow: false,
|
|
226
|
+
model: new PagedList('api/af-revenue/sql/address_getarealist',20),
|
|
227
|
+
selectDataLen: 0,
|
|
228
|
+
addflag: false,
|
|
229
|
+
pcdslist:[],
|
|
230
|
+
sliceArea:[],
|
|
231
|
+
areamodel: {
|
|
232
|
+
slice_area:null,
|
|
233
|
+
f_slice_area_id: '',
|
|
234
|
+
f_slice_area:'',
|
|
235
|
+
f_pcd_id: '',
|
|
236
|
+
f_pcd:''
|
|
237
|
+
},
|
|
238
|
+
addtitle:'',
|
|
239
|
+
getfield: {},
|
|
240
|
+
getRowData:[],
|
|
241
|
+
// 公司下拉
|
|
242
|
+
curorgid: [this.$login.f.orgid],
|
|
243
|
+
f_orgid: '',
|
|
244
|
+
//初始化小区数据
|
|
245
|
+
areaslist:[],
|
|
246
|
+
config: {
|
|
247
|
+
// 导出列要和查询列相同
|
|
248
|
+
excelHeaders: {
|
|
249
|
+
'f_district':'区/县',
|
|
250
|
+
'f_street':'街道名称',
|
|
251
|
+
'f_residential_area':'小区名称',
|
|
252
|
+
'f_area_address':'小区地址',
|
|
253
|
+
'f_comments':'小区备注',
|
|
254
|
+
'f_inputtor':'抄表员',
|
|
255
|
+
'f_house_type':'房屋类型',
|
|
256
|
+
'f_position':'安装位置',
|
|
257
|
+
'f_slice_area':'片区/管理站',
|
|
258
|
+
'f_operator':'操作人',
|
|
259
|
+
'f_operate_date':'操作日期',
|
|
260
|
+
'addressnum':'地址数'
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
housetype:[{label:'全部',value:''},{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
|
|
264
|
+
position:this.$appdata.getParam('安装位置')?[{label:'全部',value:''},...this.$appdata.getParam('安装位置')]:[{label:'全部',value:''}]
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
title: '小区管理',
|
|
268
|
+
props:{
|
|
269
|
+
f_filialeids:{
|
|
270
|
+
type: String
|
|
271
|
+
},
|
|
272
|
+
style: {
|
|
273
|
+
type: String,
|
|
274
|
+
default: 'col-sm-2 form-group'
|
|
275
|
+
},
|
|
276
|
+
f_special:{
|
|
277
|
+
type: String
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
ready(){
|
|
281
|
+
readyGen(this)
|
|
282
|
+
|
|
283
|
+
},
|
|
284
|
+
methods: {
|
|
285
|
+
hidden() {
|
|
286
|
+
this.criteriaShow = !this.criteriaShow
|
|
287
|
+
},
|
|
288
|
+
search() {
|
|
289
|
+
this.$refs.paged.$refs.cri.search()
|
|
290
|
+
},
|
|
291
|
+
operates(areaid){
|
|
292
|
+
this.$parent.areaShow = false
|
|
293
|
+
this.$parent.addressShow = true
|
|
294
|
+
this.$parent.areaid = areaid
|
|
295
|
+
},
|
|
296
|
+
//根据名字找数据
|
|
297
|
+
findbyid(list, name) {
|
|
298
|
+
var result
|
|
299
|
+
list.forEach((row, n) => {
|
|
300
|
+
if (name == row.id) {
|
|
301
|
+
result = row.data
|
|
302
|
+
}
|
|
303
|
+
})
|
|
304
|
+
return result
|
|
305
|
+
},
|
|
306
|
+
confirmUpdate(){
|
|
307
|
+
this.areamodel.f_slice_area = this.areamodel.slice_area.name
|
|
308
|
+
this.areamodel.f_slice_area_id = this.areamodel.slice_area.code
|
|
309
|
+
this.areamodel.f_pcd = this.findbyid(this.pcdslist, this.areamodel.f_pcd_id).f_pcd
|
|
310
|
+
console.log(this.areamodel,this.getRowData)
|
|
311
|
+
let msg = {
|
|
312
|
+
resolveMsg: '批量修改成功!',
|
|
313
|
+
rejectMsg: '批量修改失败!'
|
|
314
|
+
}
|
|
315
|
+
let oldAreaIds = this.getRowData
|
|
316
|
+
this.$resetpost('api/af-revenue/logic/batchUpdateArea',{
|
|
317
|
+
data:{
|
|
318
|
+
oldAreaIds:oldAreaIds,
|
|
319
|
+
areamodel:this.areamodel,
|
|
320
|
+
f_operator: this.$login.f.name,
|
|
321
|
+
f_operatorid: this.$login.f.id,
|
|
322
|
+
f_orgid: this.$login.f.orgid,
|
|
323
|
+
f_orgname: this.$login.f.orgs,
|
|
324
|
+
f_depid: this.$login.f.depids,
|
|
325
|
+
f_depname: this.$login.f.deps
|
|
326
|
+
}
|
|
327
|
+
},msg).then(()=>{
|
|
328
|
+
this.$refs.paged.$refs.grid.selectInit()
|
|
329
|
+
this.$refs.paged.$refs.cri.search()
|
|
330
|
+
this.showUpdate = false
|
|
331
|
+
})
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
},
|
|
335
|
+
async delete(row){
|
|
336
|
+
if(row.id >= 0){
|
|
337
|
+
var id = row.id
|
|
338
|
+
let useraredss = await this.$resetpost('api/af-revenue/sql/address_singleTable',
|
|
339
|
+
{data: {
|
|
340
|
+
items: 'f_residential_area_id',
|
|
341
|
+
tablename: 't_user_address',
|
|
342
|
+
condition: `f_residential_area_id='${id}'`}
|
|
343
|
+
},
|
|
344
|
+
{resolveMsg: null, rejectMsg: null})
|
|
345
|
+
if(useraredss.data.length>0){
|
|
346
|
+
this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
|
|
347
|
+
}else{
|
|
348
|
+
this.$resetdelete('api/af-revenue/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
349
|
+
this.$dispatch('cancel')
|
|
350
|
+
})
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
add(val){
|
|
355
|
+
if (this.f_filialeids) {
|
|
356
|
+
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
357
|
+
this.$dispatch('add')
|
|
358
|
+
} else {
|
|
359
|
+
this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
modify(val){
|
|
363
|
+
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
364
|
+
this.$dispatch('modify',val)
|
|
365
|
+
},
|
|
366
|
+
selfSearch (args) {
|
|
367
|
+
|
|
368
|
+
if (!this.f_orgid) {
|
|
369
|
+
this.getorg([this.$login.f.orgid])
|
|
370
|
+
}
|
|
371
|
+
if(this.f_special){
|
|
372
|
+
args.condition = `${args.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
|
|
373
|
+
}else{
|
|
374
|
+
args.condition = `${args.condition} and s.f_filialeid = ${this.f_orgid}`
|
|
375
|
+
}
|
|
376
|
+
this.model.search(args.condition, args.model)
|
|
377
|
+
this.$parent.addressShow = false
|
|
378
|
+
},
|
|
379
|
+
//清空
|
|
380
|
+
clear(){
|
|
381
|
+
this.$refs.paged.$refs.cri.model = {}
|
|
382
|
+
},
|
|
383
|
+
getorg (val) {
|
|
384
|
+
this.f_orgid = this.$login.convertToIn(val)
|
|
385
|
+
this.f_filialeids = val[0]
|
|
386
|
+
},
|
|
387
|
+
batchUpdate(){
|
|
388
|
+
console.log(this.$parent.$refs.addareamsg)
|
|
389
|
+
this.pcdslist = this.$parent.$refs.addareamsg.pcdslist
|
|
390
|
+
this.sliceArea = this.$parent.$refs.addareamsg.sliceArea
|
|
391
|
+
if (this.f_filialeids) {
|
|
392
|
+
if (this.$refs.paged.$refs.grid.getRowData().length != 0) {
|
|
393
|
+
// 获取要批量修改的小区数据
|
|
394
|
+
this.getRowData = this.$refs.paged.$refs.grid.getRowData()
|
|
395
|
+
this.selectDataLen = this.getRowData.length
|
|
396
|
+
console.log(this.selectDataLen + '-----------------------')
|
|
397
|
+
this.showUpdate = true
|
|
398
|
+
} else {
|
|
399
|
+
this.$showAlert('请至少选择一项!', 'warning', 2000)
|
|
400
|
+
}
|
|
401
|
+
}else {
|
|
402
|
+
this.$showAlert('请先选择左上角的所在分公司!', 'warning', 2000)
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
async batchDelete () {
|
|
406
|
+
let flag = true
|
|
407
|
+
if (this.f_filialeids) {
|
|
408
|
+
if (this.$refs.paged.$refs.grid.getRowData().length != 0) {
|
|
409
|
+
// 获取要批量删除的小区数据
|
|
410
|
+
this.getRowData = this.$refs.paged.$refs.grid.getRowData()
|
|
411
|
+
this.getRowData.forEach((row,n) => {
|
|
412
|
+
console.log(JSON.stringify(row) + '==========')
|
|
413
|
+
if (row.addressnum > 0 ) {
|
|
414
|
+
this.$showAlert('您所选择的小区下已有地址信息,无法删除!','warning',2000)
|
|
415
|
+
this.selectDataLen = 0
|
|
416
|
+
flag = false
|
|
417
|
+
}
|
|
418
|
+
})
|
|
419
|
+
if(flag){
|
|
420
|
+
this.selectDataLen = this.getRowData.length
|
|
421
|
+
console.log(this.selectDataLen + '-----------------------')
|
|
422
|
+
this.showDelete = true
|
|
423
|
+
}
|
|
424
|
+
} else {
|
|
425
|
+
this.$showAlert('请至少选择一项!', 'warning', 2000)
|
|
426
|
+
}
|
|
427
|
+
}else {
|
|
428
|
+
this.$showAlert('请先选择左上角的所在分公司!', 'warning', 2000)
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
confirmDelete () {
|
|
432
|
+
let msg = {
|
|
433
|
+
resolveMsg: '批量删除成功!',
|
|
434
|
+
rejectMsg: '批量删除失败!'
|
|
435
|
+
}
|
|
436
|
+
let oldAreaIds = this.getRowData
|
|
437
|
+
console.log('所选中的小区信息:=======' + JSON.stringify(oldAreaIds))
|
|
438
|
+
this.$resetpost('api/af-revenue/logic/batchDelete',{
|
|
439
|
+
data:{
|
|
440
|
+
oldAreaIds:oldAreaIds,
|
|
441
|
+
f_operator: this.$login.f.name,
|
|
442
|
+
f_operatorid: this.$login.f.id,
|
|
443
|
+
f_orgid: this.$login.f.orgid,
|
|
444
|
+
f_orgname: this.$login.f.orgs,
|
|
445
|
+
f_depid: this.$login.f.depids,
|
|
446
|
+
f_depname: this.$login.f.deps
|
|
447
|
+
}
|
|
448
|
+
},msg)
|
|
449
|
+
this.$refs.paged.$refs.grid.selectInit()
|
|
450
|
+
this.$refs.paged.$refs.cri.search()
|
|
451
|
+
this.showDelete = false
|
|
452
|
+
},
|
|
453
|
+
cancelDelete () {
|
|
454
|
+
this.$refs.paged.$refs.grid.selectInit()
|
|
455
|
+
this.$refs.paged.$refs.cri.search()
|
|
456
|
+
this.showDelete = false
|
|
457
|
+
},
|
|
458
|
+
// areaChange(val){
|
|
459
|
+
// console.log("小区变化",val)
|
|
460
|
+
// let selectArea // 选中的小区数据
|
|
461
|
+
// for (let row of this.areaslist) {
|
|
462
|
+
// if (val == row.value) {
|
|
463
|
+
// selectArea = row.data
|
|
464
|
+
// break
|
|
465
|
+
// }
|
|
466
|
+
// }
|
|
467
|
+
// if (selectArea) {
|
|
468
|
+
// this.areamodel.f_residential_area_id = selectArea.id
|
|
469
|
+
// this.areamodel.f_pcd = selectArea.f_pcd
|
|
470
|
+
// this.areamodel.f_pcd_id = selectArea.f_pcd_id
|
|
471
|
+
// this.areamodel.f_street = selectArea.f_street
|
|
472
|
+
// this.areamodel.f_street_id = selectArea.f_street_id
|
|
473
|
+
// this.areamodel.f_slice_area = selectArea.f_slice_area
|
|
474
|
+
// this.areamodel.f_residential_area = selectArea.f_residential_area
|
|
475
|
+
// }
|
|
476
|
+
// this.$nextTick(() => {
|
|
477
|
+
// this.$resetValidation()
|
|
478
|
+
// })
|
|
479
|
+
// },
|
|
480
|
+
},
|
|
481
|
+
watch:{
|
|
482
|
+
|
|
483
|
+
},
|
|
484
|
+
computed:{
|
|
485
|
+
getCondition() {
|
|
486
|
+
var condition=''
|
|
487
|
+
if(this.f_special){
|
|
488
|
+
condition = `${this.$refs.paged.$refs.cri.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
|
|
489
|
+
}else{
|
|
490
|
+
condition = `${this.$refs.paged.$refs.cri.condition} and s.f_filialeid = ${this.f_orgid}`
|
|
491
|
+
}
|
|
492
|
+
return {
|
|
493
|
+
condition: condition
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
inputtores () {
|
|
497
|
+
// 获取抄表员
|
|
498
|
+
let rs = new Array()
|
|
499
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
500
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
501
|
+
let temp = {
|
|
502
|
+
label: this.$login.f.f_gasman[i].name,
|
|
503
|
+
value: this.$login.f.f_gasman[i].name
|
|
504
|
+
}
|
|
505
|
+
rs.push(temp)
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
return rs
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
}
|
|
513
|
+
</script>
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import Vue from 'vue'
|
|
3
3
|
|
|
4
4
|
let specialComp = {
|
|
5
|
-
'user-address': (resolve) => { require (['./UserAddress'], resolve)
|
|
6
|
-
}
|
|
5
|
+
'user-address': (resolve) => { require (['./UserAddress'], resolve) },
|
|
6
|
+
'area-list': (resolve) => { require (['./AreaList'], resolve) },
|
|
7
|
+
'add-area-msg': (resolve) => { require (['./AddAreaMsg'], resolve)}
|
|
7
8
|
}
|
|
8
9
|
exports.specialComp = specialComp
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<div class="col-sm-4 form-group button-range">
|
|
42
42
|
<button class="button_search button_spacing" @click="search()" >查询</button>
|
|
43
43
|
<button class="button_search button_spacing" @click="$parent.$parent.batchDelete()" v-if="this.$login.r.includes('小区批量删除')">批量删除</button>
|
|
44
|
-
<button v-if="!$parent.$parent.f_special"
|
|
44
|
+
<button v-if="!$parent.$parent.f_special && this.$login.r.includes('添加小区')" class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('小区')">添加小区</button>
|
|
45
45
|
<button v-if="$parent.$parent.f_special"class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('单位')">添加单位</button>
|
|
46
46
|
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
47
47
|
<export-excel :data="$parent.$parent.getCondition"
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|