manage-client 3.2.46 → 3.2.47

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 (32) hide show
  1. package/build/dev-server.js +176 -176
  2. package/package.json +1 -1
  3. package/src/components/sale/businessquery/BusinesQuery.vue +11 -0
  4. package/src/components/sale/businessquery/CancellationQuery.vue +14 -3
  5. package/src/components/sale/businessquery/CardHandplanQuery.vue +11 -7
  6. package/src/components/sale/businessquery/ChangeMeterQuery.vue +15 -3
  7. package/src/components/sale/businessquery/ChargeQuery.vue +12 -3
  8. package/src/components/sale/businessquery/DisableQuery.vue +14 -3
  9. package/src/components/sale/businessquery/EnableQuery.vue +15 -4
  10. package/src/components/sale/businessquery/FillCardQuery.vue +14 -3
  11. package/src/components/sale/businessquery/FillGasQuery.vue +14 -3
  12. package/src/components/sale/businessquery/HandplanQuery.vue +15 -4
  13. package/src/components/sale/businessquery/MoveMeterQuery.vue +17 -6
  14. package/src/components/sale/businessquery/OtherChargeQuery.vue +14 -3
  15. package/src/components/sale/businessquery/PriceChange.vue +12 -3
  16. package/src/components/sale/businessquery/ReceiptQuery.vue +13 -5
  17. package/src/components/sale/businessquery/ReverseQuery.vue +14 -3
  18. package/src/components/sale/businessquery/SendbookQuery.vue +17 -6
  19. package/src/components/sale/businessquery/SuspiciousUserQuery.vue +9 -0
  20. package/src/components/sale/businessquery/TransferQuery.vue +11 -0
  21. package/src/components/sale/businessquery/gasPriceQuery.vue +7 -0
  22. package/src/components/sale/businessquery/overDueQuery.vue +11 -0
  23. package/src/components/sale/businessquery/priceadjustQuery.vue +14 -4
  24. package/src/components/sale/businessquery/pricechangeRecordQuery.vue +18 -7
  25. package/src/components/sale/config/exportConfig.js +26 -24
  26. package/src/filiale/rongchuang/ChargeQuery.vue +12 -3
  27. package/src/filiale/rongchuang/exportConfig.js +8 -8
  28. package/src/filiale/tongchuan/ChargeQuery.vue +1319 -1284
  29. package/src/filiale/tongchuan/HandplanQuery.vue +1324 -0
  30. package/src/filiale/tongchuan/UserQuery.vue +921 -921
  31. package/src/filiale/tongchuan/sale.js +16 -16
  32. package/src/main.js +66 -66
@@ -1,921 +1,921 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search" v-if="!show">
4
- <div class="flex">
5
- <div style="flex:1;" class="flex" >
6
- <criteria-paged :model="model" v-ref:paged @sort="sort">
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <div class="col-sm-2 form-group">
11
- <label class="font_normal_body">客户编号</label>
12
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
- </div>
15
- <div class="col-sm-2 form-group">
16
- <label class="font_normal_body">客户名称</label>
17
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
- condition="f_user_name like '%{}%'" placeholder="客户名称">
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label class="font_normal_body">客户电话</label>
22
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
23
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
24
- </div>
25
- <div class="span" style="float:right;">
26
- <button class="button_search button_spacing" @click="search()">查询</button>
27
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
28
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
29
-
30
- <export-excel :data="$parent.$parent.getCondition"
31
- :field="$parent.$parent.getExportField"
32
- :footer="$parent.$parent.footer"
33
- :header="$parent.$parent.other"
34
- v-if="$parent.$parent.authArr.includes('档案查询导出')"
35
- sqlurl="rs/logic/exportfile" sql-name="filesQuery" template-name='用户查询导出'
36
- :choose-col="true"></export-excel>
37
- <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"
38
- :defaultfield="$parent.$parent.defaultfield"
39
- titletable="客户查询"
40
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
41
-
42
- <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>
43
- </div>
44
- </div>
45
- <div class="row" v-show="$parent.$parent.criteriaShow">
46
- <div class="col-sm-2 form-group">
47
- <label class="font_normal_body">身份证号</label>
48
- <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
49
- condition="f_idnumber like '%{}%'" placeholder="身份证号">
50
- </div>
51
- <div class="col-sm-2 form-group">
52
- <label class="font_normal_body">客户状态</label>
53
- <v-select :value.sync="model.f_user_state"
54
- v-model="model.f_user_state"
55
- :options='$parent.$parent.userstates' placeholder='请选择'
56
- condition="f_user_state = '{}'"
57
- close-on-select></v-select>
58
- </div>
59
- <div class="col-sm-2 form-group">
60
- <label class="font_normal_body">客户类型</label>
61
- <v-select :value.sync="model.f_user_type"
62
- :options='$parent.$parent.usertypes'
63
- placeholder='请选择' v-model="model.f_user_type"
64
- condition="f_user_type = '{}'"
65
- close-on-select></v-select>
66
- </div>
67
- <div class="col-sm-2 form-group">
68
- <label class="font_normal_body">用气性质</label>
69
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
70
- :options='$parent.$parent.gasproperties' placeholder='请选择'
71
- condition="f_gasproperties = '{}'"
72
- close-on-select></v-select>
73
- </div>
74
- <div class="col-sm-2 form-group">
75
- <label class="font_normal_body">气表分类</label>
76
- <v-select :value.sync="model.f_meter_classify"
77
- :multiple="true"
78
- v-model="model.f_meter_classify"
79
- :options='$parent.$parent.metertypes' placeholder='请选择'
80
- condition="f_meter_classify in {}"
81
- close-on-select></v-select>
82
- </div>
83
- <div class="col-sm-2 form-group">
84
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人数&nbsp;&nbsp;&nbsp;</label>
85
- <input type="text" style="width:60%" class="input_search" v-model="model.f_people_num"
86
- condition="f_people_num = '{}'" placeholder="人数">
87
- </div>
88
- <!-- <div class="col-sm-2 form-group">-->
89
- <!-- <label class="font_normal_body">微信绑定</label>-->
90
- <!-- <v-select-->
91
- <!-- :value.sync="model.f_wechat"-->
92
- <!-- v-model="model.f_wechat"-->
93
- <!-- :options='$parent.$parent.weixinSign'-->
94
- <!-- placeholder='请选择'-->
95
- <!-- condition="f_wechat = '{}'"-->
96
- <!-- close-on-select>-->
97
- <!-- </v-select>-->
98
- <!-- </div>-->
99
- <div class="col-sm-2 form-group">
100
- <label class="font_normal_body" >缴费类型</label>
101
- <v-select :value.sync="model.f_payment" multiple
102
- v-model="model.f_payment"
103
- :options='$parent.$parent.dypayment' placeholder='请选择'
104
- condition="f_cost_type in {}"
105
- close-on-select></v-select>
106
- </div>
107
- <div class="col-sm-2 form-group">
108
- <label class="font_normal_body">客户地址</label>
109
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
110
- condition="f_address like '%{}%'" placeholder='客户地址'>
111
- </div>
112
- <div v-show=this.flag class="col-sm-2 form-group">
113
- <label for="startDate" class="font_normal_body">建档日期</label>
114
- <datepicker placeholder="建档日期" style="width:60%"
115
- v-model="model.f_createfile_date"
116
- :value.sync="model.f_createfile_date"
117
- :format="'yyyy-MM-dd'"
118
- :show-reset-button="true"
119
- condition="f_createfile_date >= '{} 00:00:00'">
120
- </datepicker>
121
- </div>
122
- <div v-show=this.flag class="col-sm-2 form-group">
123
- <label class="font_normal_body">建档部门</label>
124
- <input type="text" style="width:60%" class="input_search" v-model="model.f_depname"
125
- condition="f_depname like '%{}%'" placeholder='建档部门'>
126
- </div>
127
- <div class="col-sm-2 form-group">
128
- <label class="font_normal_body">报警器编码</label>
129
- <input type="text" style="width:60%" class="input_search" v-model="model.f_alarm_code"
130
- condition="f_alarm_code like '%{}%'" placeholder='报警器编码'>
131
- </div>
132
- <div class="col-sm-2 form-group">
133
- <label class="font_normal_body">发票编码</label>
134
- <input type="text" style="width:60%" class="input_search" v-model="model.f_taxpayer_id"
135
- condition="f_taxpayer_id like '%{}%'" placeholder='发票编码'>
136
- </div>
137
- <div class="col-sm-2 form-group">
138
- <label class="font_normal_body">燃气表号</label>
139
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
140
- condition="f_meternumber like '%{}%'" placeholder='燃气表号'>
141
- </div>
142
- <!-- <div class="col-sm-2">-->
143
- <!-- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区名称&nbsp;&nbsp;&nbsp;</label>-->
144
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"-->
145
- <!-- condition="f_residential_area like '%{}%'" placeholder="小区"/>-->
146
- <!-- <div class="col-sm-8">&ndash;&gt;-->
147
- <!-- <input type="text" v-show="false" v-model="model.f_residential_area" class="input_search" style="width: 80%"&ndash;&gt;-->
148
- <!--; v-validate:f_residential_area='{required: true }'>&ndash;&gt;-->
149
- <!-- <v-select :value.sync="model.f_residential_area" :value-single="true"&ndash;&gt;-->
150
- <!-- class="select_list select"&ndash;&gt;-->
151
- <!-- :options='fresidentialarea' placeholder='请选择'&ndash;&gt;-->
152
- <!-- close-on-select search="true">&ndash;&gt;-->
153
- <!-- </v-select>-->
154
- <!-- </div>-->
155
-
156
- <div class="col-sm-2 form-group">
157
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
158
- <v-select :value.sync="model.f_residential_area"
159
- class="select_list select"
160
- enter-push
161
- multiple = "true"
162
- v-model="model.f_residential_area"
163
- style="width: 60%"
164
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
165
- close-on-select>
166
-
167
- </v-select>
168
- </div>
169
- <div class="col-sm-2 form-group">
170
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼栋&nbsp;&nbsp;&nbsp;</label>
171
- <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
172
- condition="f_building like '%{}%'" placeholder="楼栋"/>
173
- </div>
174
- <div class="col-sm-2 form-group">
175
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;单元&nbsp;&nbsp;&nbsp;</label>
176
- <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
177
- condition="f_unit like '%{}%'" placeholder="单元"/>
178
- </div>
179
- <div class="col-sm-2 form-group">
180
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼层&nbsp;&nbsp;</label>
181
- <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
182
- condition="f_floor like '%{}%'" placeholder="楼层"/>
183
- </div>
184
- <div class="col-sm-2 form-group">
185
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;门牌号</label>
186
- <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
187
- condition="f_room like '%{}%'" placeholder="门牌号">
188
- </div>
189
- <div class="col-sm-2 form-group">
190
- <label class="font_normal_body">余额区间</label>
191
- <input type="text" style="width:60%" class="input_search" v-model="model.f_balance"
192
- condition="f_balance >= '{}'" placeholder="最小值">
193
- </div>
194
- <div class="col-sm-2 form-group">
195
- <label class="font_normal_body">&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
196
- <input type="text" style="width:60%" class="input_search" v-model="model.balance2"
197
- condition="f_balance <= '{}'" placeholder="最大值">
198
- </div>
199
- <div class="col-sm-2 form-group">
200
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表员</label>
201
- <v-select :value.sync="model.f_inputtor"
202
- v-model="model.f_inputtor" condition="f_inputtor = '{}'"
203
- :options='$parent.$parent.inputtores' placeholder='请选择'
204
- multiple = "true"
205
- close-on-select></v-select>
206
- </div>
207
- <!-- <div class="col-sm-2" >-->
208
- <!-- <label for="f_balance" class="font_normal_body">账户结余</label>-->
209
- <!-- <div class="form-group">-->
210
- <!-- <v-input id="f_balance" placeholder="账户结余"-->
211
- <!-- :expression.sync = 'model.f_balance'-->
212
- <!-- v-model="model.f_balance"-->
213
- <!-- condition= "f_balance {}"-->
214
- <!-- :show-reset-button="reset"-->
215
- <!-- v-ref:f_balance>-->
216
- <!-- </v-input>-->
217
- <!-- </div>-->
218
- <!-- </div>-->
219
- <div class="col-sm-2 form-group">
220
- <label for="startDate" class="font_normal_body">建档开始日期</label>
221
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
222
- v-model="model.startDate"
223
- :value.sync="model.startDate"
224
- :format="'yyyy-MM-dd'"
225
- :show-reset-button="true"
226
- condition="f_createfile_date >= '{} 00:00:00'">
227
- </datepicker>
228
- </div>
229
- <div class="col-sm-2 form-group">
230
- <label for="endDate" class="font_normal_body">建档结束日期</label>
231
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
232
- v-model="model.endDate"
233
- :value.sync="model.endDate"
234
- :format="'yyyy-MM-dd'"
235
- :show-reset-button="true"
236
- condition="f_createfile_date <= '{} 23:59:59'">
237
- </datepicker>
238
- </div>
239
- <div
240
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
241
- class="form-group">
242
- <label class="font_normal_body">区&nbsp;&nbsp;&nbsp;&nbsp;域</label>
243
- <v-select
244
- v-model="model.f_pcd"
245
- placeholder='选择区域'
246
- :value.sync="model.f_pcd"
247
- :options='$parent.$parent.pcdslist'
248
- condition="f_pcd_id = '{}'"
249
- style="width: 60%"
250
- close-on-select >
251
- </v-select>
252
- </div>
253
- <!--表册片区-->
254
- <!-- <div class="col-sm-2 form-group">-->
255
- <!-- <label class="font_normal_body">表册片区</label>-->
256
- <!-- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"-->
257
- <!-- :options='$parent.$parent.bookSlice' placeholder='片区/表册'-->
258
- <!-- style="width:60%"-->
259
- <!-- close-on-select-->
260
- <!-- condition="f_book_slice_area = '{}'"></v-select>-->
261
- <!-- </div>-->
262
- <div class="col-sm-2 form-group">
263
- <label class="font_normal_body">安全协议</label>
264
- <v-select :value.sync="model.f_safe"
265
- v-model="model.f_safe" condition=" {}"
266
- :options='$parent.$parent.safe' placeholder='请选择'
267
- close-on-select></v-select>
268
- </div>
269
- <!-- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>-->
270
- </div>
271
- </div>
272
- </criteria>
273
-
274
-
275
- <data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
276
- <template partial='head'>
277
- <tr>
278
- <th>
279
- <nobr>客户编号</nobr>
280
- </th>
281
- <th>
282
- <nobr>客户名称</nobr>
283
- </th>
284
- <th>
285
- <nobr>客户电话</nobr>
286
- </th>
287
- <th>
288
- <nobr>身份证号</nobr>
289
- </th>
290
- <th>
291
- <nobr>表册片区</nobr>
292
- </th>
293
- <th>
294
- <nobr>账户余额</nobr>
295
- </th>
296
- <th>
297
- <data-order field="f_address" name="客户地址"
298
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
299
- </th>
300
- <th>
301
- <nobr>小区</nobr>
302
- </th>
303
- <th>
304
- <nobr>楼栋</nobr>
305
- </th>
306
- <th>
307
- <nobr>单元</nobr>
308
- </th>
309
- <th>
310
- <nobr>楼层</nobr>
311
- </th>
312
- <th>
313
- <nobr>门牌号</nobr>
314
- </th>
315
- <th>
316
- <nobr>客户状态</nobr>
317
- </th>
318
- <th>
319
- <nobr>建档日期</nobr>
320
- </th>
321
- <th>
322
- <nobr>建档人</nobr>
323
- </th>
324
- <th>
325
- <nobr>缴费类型</nobr>
326
- </th>
327
- <th>
328
- <nobr>银行户名</nobr>
329
- </th>
330
- <th>
331
- <nobr>银行名称</nobr>
332
- </th>
333
- <th>
334
- <nobr>银行账号</nobr>
335
- </th>
336
- <th>
337
- <nobr>银行身份证号</nobr>
338
- </th>
339
- <th>
340
- <nobr>缴费编号</nobr>
341
- </th>
342
- <th>
343
- <nobr>备注</nobr>
344
- </th>
345
- <!-- <th>-->
346
- <!-- <nobr>部门</nobr>-->
347
- <!-- </th>-->
348
- <!-- <th>-->
349
- <!-- <nobr>公司</nobr>-->
350
- <!-- </th>-->
351
- </tr>
352
- </template>
353
- <template partial='body'>
354
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" ><nobr>
355
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
356
- </nobr> </td>
357
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
358
- <nobr>{{row.f_user_name}}</nobr>
359
- </td>
360
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
361
- <nobr>{{row.f_user_phone}}</nobr>
362
- </td>
363
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
364
- <nobr>{{row.f_idnumber}}</nobr>
365
- </td>
366
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
367
- <nobr>{{row.f_book_slice_area}}</nobr>
368
- </td>
369
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
370
- <nobr>{{row.f_balance}}</nobr>
371
- </td>
372
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
373
- <nobr>{{row.f_address}}</nobr>
374
- </td>
375
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
376
- <nobr>{{row.f_residential_area}}</nobr>
377
- </td>
378
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
379
- <nobr>{{row.f_building}}</nobr>
380
- </td>
381
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
382
- <nobr>{{row.f_unit}}</nobr>
383
- </td>
384
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
385
- <nobr>{{row.f_floor}}</nobr>
386
- </td>
387
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
388
- <nobr>{{row.f_room}}</nobr>
389
- </td>
390
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
391
- <nobr>{{row.f_user_state}}</nobr>
392
- </td>
393
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
394
- <nobr>{{row.f_createfile_date}}</nobr>
395
- </td>
396
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
397
- <nobr>{{row.f_createfile_person}}</nobr>
398
- </td>
399
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
400
- <nobr>{{row.f_cost_type}}</nobr>
401
- </td>
402
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
403
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_accopen}}</span></nobr>
404
- </td>
405
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
406
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_name}}</span></nobr>
407
- </td>
408
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
409
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_account}}</span></nobr>
410
- </td>
411
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
412
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_idnumber}}</span></nobr>
413
- </td>
414
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
415
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_pay_number}}</span></nobr>
416
- </td>
417
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
418
- <nobr>{{row.f_comments}}</nobr>
419
- </td>
420
- <!-- <td style="text-align: center;">-->
421
- <!-- <nobr>{{row.f_depname}}</nobr>-->
422
- <!-- </td>-->
423
- <!-- <td style="text-align: center;">-->
424
- <!-- <nobr>{{row.f_orgname}}</nobr>-->
425
- <!-- </td>-->
426
- </template>
427
- <template partial='foot'>
428
- </template>
429
- </data-grid>
430
- </criteria-paged>
431
-
432
- <table class="table-hover">
433
- <tr style="position: relative" class="table-bordered">
434
- <td
435
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
436
- 汇总信息
437
- </td>
438
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
439
- 结余合计:&emsp;{{sumsmodel.f_balance}}
440
- </td>
441
- </tr>
442
- </table>
443
-
444
- <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
445
- <!--<header slot="modal-header" class="modal-header text-center">-->
446
- <!--<h4 class="modal-title">打印列选择</h4>-->
447
- <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
448
- <!--<label for="f_generations" class="font-size">全选</label>-->
449
- <!--</header>-->
450
- <!--<article slot="modal-body">-->
451
- <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
452
- <!--<div class="col-sm-3" v-for="f in fields">-->
453
- <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
454
- <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
455
- <!--</div>-->
456
- <!--</div>-->
457
- <!--</article>-->
458
- <!--<footer slot="modal-footer" class="modal-footer">-->
459
- <!--<center>-->
460
- <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
461
- <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
462
- <!--<print-table :model='model' v-show="false" v-ref:print-->
463
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
464
- <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
465
- <!--:fields="modelval" :printpage="true">-->
466
- <!--</print-table>-->
467
- <!--</center>-->
468
- <!--</footer>-->
469
- <!--</modal>-->
470
- <!--<user-detail v-if="userdetail.show" :data="userdetail"></user-detail>-->
471
- </div>
472
-
473
- </div>
474
- </div>
475
- <div class="basic-main" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
476
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
477
- </div>
478
- </div>
479
- </template>
480
-
481
- <script>
482
- import {HttpResetClass, PagedList} from 'vue-client'
483
- import defaultPrint from './config/DefaultPrint'
484
- import exportConfig from './config/exportConfig'
485
-
486
- let readySomething = async function (self) {
487
- self.$MagGetSaleParam.initinputtor();
488
- self.getinputtores();
489
- // 获取区县
490
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
491
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
492
- // await self.$refs.paged.$refs.cri.search()
493
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
494
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
495
-
496
- }
497
-
498
- export default {
499
- title: '客户查询',
500
- data() {
501
- return {
502
- other:[],
503
- footer:[],
504
- flag:true,
505
- pcdslist:[],
506
- model: new PagedList('rs/sql/filesQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code desc'`}, {f_balance: 0}),
507
- criteriaShow: false,
508
- orgCondtionStr: '',
509
- modelval: [],
510
- printshow: false,
511
- all: false,
512
- fields: {},
513
- //排序
514
- orderitem:'f_userinfo_code desc',
515
- orderFields: {
516
- f_operate_date: 'no'
517
- },
518
- //默认打印列
519
- defaultfield: [],
520
- config: {
521
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_user_state']
522
- },
523
- balance2:'',
524
- thead: '',
525
- tfoot: '',
526
- area: [],
527
- //合计数据
528
- sumsmodel: {},
529
- initres: {
530
- org:[this.$login.f.orgid],
531
- dep:[],
532
- user:[],
533
- },
534
- userdetail: {
535
- show: false,
536
- f_userinfo_code: '',
537
- f_filialeids: ''
538
- },
539
- safe:[{label:'已签订',value:"(f_security_date is not null and f_security_date !='')"},{label:'未签订',value:"(f_security_date is null or f_security_date='')"}],
540
- userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
541
- show:false,
542
- rowdata:{},
543
- meterInfo:{},
544
- deviceInfo:{},
545
- condition2:'',
546
-
547
-
548
- weixinSign:[{label:"全部",value:""},{label:"已绑定",value:"已绑定"},{label:"未绑定",value:"未绑定"}],
549
- //小区
550
- residentialArea: [],
551
- //表册片区
552
- bookSlice:[{label: '全部',value: ''}],
553
- inputtores:[{label: '全部',value: ''}], //抄表员
554
- allorgid:[],
555
- f_filialeid: this.$login.f.f_orgid,
556
- dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
557
- }
558
- },
559
- ready() {
560
- this.getaddress()
561
-
562
- readySomething(this).then(() => {
563
- this.$emit('ready')
564
- }).catch((error) => {
565
- this.$emit('error', error)
566
- })
567
- this.initAreas(this.$login.f.orgid)
568
- },
569
- methods: {
570
- async getinputtores () {
571
- // 获取抄表员
572
- let rs = []
573
- if (this.$login.f.f_gasman.length > 0) {
574
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
575
- let temp = {
576
- label: this.$login.f.f_gasman[i].name,
577
- value: this.$login.f.f_gasman[i].name
578
- }
579
- rs.push(temp)
580
- }
581
- }
582
- this.inputtores = [{label: '全部', value: ''}, ...rs]
583
- },
584
- async updateParams() {
585
- await this.$MagLoadParams.loadParam(this.f_filialeid)
586
- this.inputtores = [];
587
- this.inputtores.push({label: "全部", value: ""})
588
- this.initSlice(this.f_filialeid)
589
- if(this.allorgid!=null){
590
- this.allorgid.forEach((res)=>{
591
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
592
- })
593
- }
594
- },
595
- getotherfooter () {
596
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
597
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
598
- this.other = [];
599
- this.footer = [];
600
- let exportdata = this.getCondition;
601
- let otherInData = [];
602
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
603
- let footerData = [], exportfield = this.getExportField;
604
- footerData.push("合计");
605
- let self = this;
606
- for (var field in self.sumsmodel) {
607
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
608
- }
609
- this.footer.push(footerData);
610
- this.other.push(otherInData);
611
- },
612
- async getaddress(){
613
- console.log('开始获取小区')
614
- let HttpReset = new HttpResetClass()
615
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
616
- data: {
617
- condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
618
- }
619
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
620
- console.log('小区',data)
621
- let house = []
622
- for (let row of data.data){
623
- console.log('开始保存小区')
624
- house.push({label: row.f_residential_area, value: row.f_residential_area})
625
- }
626
- this.residentialArea = house
627
-
628
- console.log('开始获取区域')
629
- var req = await HttpReset.load('POST','rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
630
- data: {
631
- items: '*',
632
- tablename: 't_pcd',
633
- orderitem: 'id',
634
- condition: `1=1`
635
- }
636
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
637
- let redata = []
638
- console.log('区域是:',req)
639
- req.data.forEach((row, n) => {
640
- redata[n] = {
641
- label: row.f_pcd,
642
- value: row.id,
643
- data: row,
644
- id: row.id
645
- }
646
- })
647
- console.log('获取到的小区',redata)
648
- this.pcdslist = redata
649
- },
650
-
651
- //把数据库查询数据转换为下拉数据
652
- calculate(rows){
653
- let data = []
654
- rows.forEach((row, n) => {
655
- data[n] = {label: row.f_residential_area, value: row.id}
656
- })
657
- return data
658
- },
659
- search(){
660
- this.$refs.paged.$refs.cri.search()
661
- },
662
- cancel(obj) {
663
- this.show = false
664
- },
665
- showmsg(obj){
666
-
667
- this.rowdata=obj
668
- this.show=true
669
- // let http = new HttpResetClass()
670
- // http.load('POST','rs/sql/getUserMeter',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
671
- // {resolveMsg: null, rejectMsg: null}).then((res) => {
672
- // this.meterInfo = res.data})
673
- // let http2 = new HttpResetClass()
674
- // http2.load('POST','rs/sql/deviceQuery',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
675
- // {resolveMsg: null, rejectMsg: null}).then((res) => {
676
- // this.deviceInfo = res.data})
677
-
678
- // this.f_userinfo_id=obj.f_userinfo_id
679
- },
680
- //初始化片区
681
- async initSlice (val) {
682
- if (val) {
683
- let getAllArea = await this.$resetpost('/rs/search', {
684
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
685
- userid: this.$login.f.id
686
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
687
- let arr = getAllArea.data.filter((res) => {
688
- return res.parentid == val
689
- })
690
- this.bookSlice = []
691
- console.log('过滤之后的片区-------------------', arr)
692
- arr.forEach((res) => {
693
- this.bookSlice.push({label: res.name, value: res.name})
694
- })
695
- }
696
- },
697
- async initAreas (val) {
698
-
699
- if (val) {
700
- let getAllArea = await this.$resetpost('/rs/search', {
701
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
702
- userid: this.$login.f.id
703
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
704
-
705
- let arr = getAllArea.data.filter((res) => {
706
- return res.parentid == val
707
- })
708
- console.log('过滤之后的片区', arr)
709
- this.sliceArea = []
710
- arr.forEach((res) => {
711
- this.sliceArea.push({label: res.name, value: res.name})
712
- })
713
- }
714
- },
715
- selfSearch(args) {
716
- //小区查询条件
717
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
718
- console.log("=====小区model绑定====",this.area)
719
- if(this.area.length !== 0){
720
- let str = JSON.stringify(this.area)
721
- str = str.replace(/"/g,`'`)
722
- str = str.replace(/\[/g,``)
723
- str = str.replace(/\]/g,``)
724
- console.log("=====小区model22222222222绑定====",str)
725
- //查询多个小区时条件
726
- args.condition += ` and f_residential_area in ( ${str} )`
727
- }
728
-
729
- if (!this.orgCondtionStr) {
730
- args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
731
- } else {
732
- args.condition = `${args.condition}` + this.orgCondtionStr
733
- }
734
- this.condition2 = args.condition
735
- this.model.search(args.condition, args.model)
736
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
737
- console.log('合计字段', this.sumsmodel)
738
- },
739
- clear() {
740
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
741
- this.$refs.paged.$refs.cri.model[key] = []
742
- })
743
- },
744
- hidden() {
745
- this.criteriaShow = !this.criteriaShow
746
- },
747
- getRes(obj) {
748
- this.orgCondtionStr = obj
749
- },
750
- stamp() {
751
- this.all = false
752
- //默认选择要打印的列
753
- this.modelval = defaultPrint.config
754
- this.fields = this.getfield
755
- console.log('所有打印字段', this.fields)
756
- this.printshow = true
757
- this.put()
758
- },
759
- put() {
760
- // 对Modelval进行排序
761
- this.sortModelval()
762
- this.thead = `<tr><th colspan=${this.modelval.length}>用户查询统计报表</th></tr><tr>`
763
- for (let key of this.modelval) {
764
- this.thead += '<th>' + this.fields[key] + '</th>'
765
- }
766
- this.thead += '</tr>'
767
- },
768
- print() {
769
- this.$refs.print.PrintAsFile()
770
- this.printshow = false
771
- },
772
- close() {
773
- this.printshow = false
774
- },
775
- // 对选择的列进行排序
776
- sortModelval() {
777
- let sortModel = []
778
- Object.keys(this.fields).forEach((key) => {
779
- if (this.modelval.includes(key)) {
780
- sortModel.push(key)
781
- }
782
- })
783
- this.modelval = sortModel
784
- console.log('选择的打印的字段', this.modelval)
785
- },
786
- dblclick(row, index) {
787
- console.log('双击之后数据', row, index)
788
- this.userdetail.show = true
789
- this.userdetail.f_userinfo_code = row.f_userinfo_code
790
- this.userdetail.f_filialeids = row.f_filialeids
791
- },
792
- sort (field, rule) {
793
- // 将所有排序方式设为不排序,实现相互排斥
794
- for (let key in this.orderFields) {
795
- if (key === field) {
796
- this.orderFields[key] = rule
797
- } else {
798
- this.orderFields[key] = 'no'
799
- }
800
- }
801
- // 如果新规则不排序,还原为默认排序
802
- if (rule === 'no') {
803
- this.model.paramSource.orderitem = `'${this.orderitem}'`
804
- } else {
805
- this.model.paramSource.orderitem = `'${field} ${rule}'`
806
- }
807
-
808
- this.search()
809
- }
810
- },
811
-
812
- watch: {
813
- 'all'(val) {
814
- if (val) {
815
- this.modelval = this.bodyData
816
- } else {
817
- this.modelval = defaultPrint.config
818
- this.put()
819
- }
820
- },
821
- 'modelval.length'() {
822
- this.put()
823
- },
824
- sumsmodel:{
825
- handler: function(val) {
826
- this.getotherfooter();
827
- },
828
- deep: true
829
- },
830
- 'orgCondtionStr'(val) {
831
- let res = val.match(/'(.*?)'/)
832
- console.log('正则提取:',res && res[1])
833
- if (res) {
834
- this.f_filialeid = res[1]
835
- if(res.input !=null){
836
- let resorgid = res.input.substring(res.input.indexOf("'"));
837
- if(resorgid!= null && resorgid!=''){
838
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
839
- // resorgid = resorgid.replaceAll("'","");
840
- resorgid = resorgid.replace(/'/g,"");
841
- this.allorgid = resorgid.split(",")
842
- }
843
- }
844
- this.updateParams()
845
- }
846
- },
847
- },
848
- computed: {
849
- // defaultexport() {
850
- // return exportConfig.chargeexportConfig
851
- // },
852
- authArr () {
853
- return this.$login.r ? this.$login.r : []
854
- },
855
-
856
- getCondition() {
857
- return {condition: this.condition2,orderitem:this.orderitem}
858
- },
859
- getfield() {
860
- let data = {}
861
- this.bodyData.forEach((value, index) => {
862
- data[this.bodyData[index]] = this.headData[index]
863
- })
864
- //合计字段打印
865
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
866
- if (this.sumsmodel) {
867
- Object.keys(this.sumsmodel).forEach((key) => {
868
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
869
- })
870
- } else {
871
- this.tfoot += '暂无'
872
- }
873
- this.tfoot += '</th></tr>'
874
- return data
875
- },
876
- getExportField() {
877
- return exportConfig.userConfig
878
- },
879
- inputtor () {
880
- // 获取抄表员
881
- console.log('获取抄表员', this.$login.f)
882
- let rs = []
883
- if (this.$login.f.f_gasman.length > 0) {
884
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
885
- let temp = {
886
- label: this.$login.f.f_gasman[i].name,
887
- value: this.$login.f.f_gasman[i].name
888
- }
889
- rs.push(temp)
890
- }
891
- }
892
-
893
- return [{label: '全部', value: ''}, ...rs]
894
- },
895
- userstates() {
896
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
897
- },
898
- //参数获取 用户类型
899
- usertypes() {
900
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
901
- },
902
- //参数获取 用气性质
903
- gasproperties() {
904
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
905
- },
906
- //参数获取 气表类型
907
- metertypes() {
908
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
909
- }
910
- }
911
- }
912
- </script>
913
- <style>
914
- .back-red{ /* 红色背景 */
915
- background-color: #F6C6CE;
916
- }
917
- .back-blue{ /* 蓝色背景 */
918
-
919
- }
920
- </style>
921
-
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search" v-if="!show">
4
+ <div class="flex">
5
+ <div style="flex:1;" class="flex" >
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label class="font_normal_body">客户编号</label>
12
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
+ </div>
15
+ <div class="col-sm-2 form-group">
16
+ <label class="font_normal_body">客户名称</label>
17
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label class="font_normal_body">客户电话</label>
22
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
23
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
24
+ </div>
25
+ <div class="span" style="float:right;">
26
+ <button class="button_search button_spacing" @click="search()">查询</button>
27
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
28
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
29
+
30
+ <export-excel :data="$parent.$parent.getCondition"
31
+ :field="$parent.$parent.getExportField"
32
+ :footer="$parent.$parent.footer"
33
+ :header="$parent.$parent.other"
34
+ v-if="$parent.$parent.authArr.includes('档案查询导出')"
35
+ sqlurl="rs/logic/exportfile" sql-name="filesQuery" template-name='用户查询导出'
36
+ :choose-col="true"></export-excel>
37
+ <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"
38
+ :defaultfield="$parent.$parent.defaultfield"
39
+ titletable="客户查询"
40
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
41
+
42
+ <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>
43
+ </div>
44
+ </div>
45
+ <div class="row" v-show="$parent.$parent.criteriaShow">
46
+ <div class="col-sm-2 form-group">
47
+ <label class="font_normal_body">身份证号</label>
48
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
49
+ condition="f_idnumber like '%{}%'" placeholder="身份证号">
50
+ </div>
51
+ <div class="col-sm-2 form-group">
52
+ <label class="font_normal_body">客户状态</label>
53
+ <v-select :value.sync="model.f_user_state"
54
+ v-model="model.f_user_state"
55
+ :options='$parent.$parent.userstates' placeholder='请选择'
56
+ condition="f_user_state = '{}'"
57
+ close-on-select></v-select>
58
+ </div>
59
+ <div class="col-sm-2 form-group">
60
+ <label class="font_normal_body">客户类型</label>
61
+ <v-select :value.sync="model.f_user_type"
62
+ :options='$parent.$parent.usertypes'
63
+ placeholder='请选择' v-model="model.f_user_type"
64
+ condition="f_user_type = '{}'"
65
+ close-on-select></v-select>
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">用气性质</label>
69
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
70
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
71
+ condition="f_gasproperties = '{}'"
72
+ close-on-select></v-select>
73
+ </div>
74
+ <div class="col-sm-2 form-group">
75
+ <label class="font_normal_body">气表分类</label>
76
+ <v-select :value.sync="model.f_meter_classify"
77
+ :multiple="true"
78
+ v-model="model.f_meter_classify"
79
+ :options='$parent.$parent.metertypes' placeholder='请选择'
80
+ condition="f_meter_classify in {}"
81
+ close-on-select></v-select>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人数&nbsp;&nbsp;&nbsp;</label>
85
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_people_num"
86
+ condition="f_people_num = '{}'" placeholder="人数">
87
+ </div>
88
+ <!-- <div class="col-sm-2 form-group">-->
89
+ <!-- <label class="font_normal_body">微信绑定</label>-->
90
+ <!-- <v-select-->
91
+ <!-- :value.sync="model.f_wechat"-->
92
+ <!-- v-model="model.f_wechat"-->
93
+ <!-- :options='$parent.$parent.weixinSign'-->
94
+ <!-- placeholder='请选择'-->
95
+ <!-- condition="f_wechat = '{}'"-->
96
+ <!-- close-on-select>-->
97
+ <!-- </v-select>-->
98
+ <!-- </div>-->
99
+ <div class="col-sm-2 form-group">
100
+ <label class="font_normal_body" >缴费类型</label>
101
+ <v-select :value.sync="model.f_payment" multiple
102
+ v-model="model.f_payment"
103
+ :options='$parent.$parent.dypayment' placeholder='请选择'
104
+ condition="f_cost_type in {}"
105
+ close-on-select></v-select>
106
+ </div>
107
+ <div class="col-sm-2 form-group">
108
+ <label class="font_normal_body">客户地址</label>
109
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
110
+ condition="f_address like '%{}%'" placeholder='客户地址'>
111
+ </div>
112
+ <div v-show=this.flag class="col-sm-2 form-group">
113
+ <label for="startDate" class="font_normal_body">建档日期</label>
114
+ <datepicker placeholder="建档日期" style="width:60%"
115
+ v-model="model.f_createfile_date"
116
+ :value.sync="model.f_createfile_date"
117
+ :format="'yyyy-MM-dd'"
118
+ :show-reset-button="true"
119
+ condition="f_createfile_date >= '{} 00:00:00'">
120
+ </datepicker>
121
+ </div>
122
+ <div v-show=this.flag class="col-sm-2 form-group">
123
+ <label class="font_normal_body">建档部门</label>
124
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_depname"
125
+ condition="f_depname like '%{}%'" placeholder='建档部门'>
126
+ </div>
127
+ <div class="col-sm-2 form-group">
128
+ <label class="font_normal_body">报警器编码</label>
129
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_alarm_code"
130
+ condition="f_alarm_code like '%{}%'" placeholder='报警器编码'>
131
+ </div>
132
+ <div class="col-sm-2 form-group">
133
+ <label class="font_normal_body">发票编码</label>
134
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_taxpayer_id"
135
+ condition="f_taxpayer_id like '%{}%'" placeholder='发票编码'>
136
+ </div>
137
+ <div class="col-sm-2 form-group">
138
+ <label class="font_normal_body">燃气表号</label>
139
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
140
+ condition="f_meternumber like '%{}%'" placeholder='燃气表号'>
141
+ </div>
142
+ <!-- <div class="col-sm-2">-->
143
+ <!-- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区名称&nbsp;&nbsp;&nbsp;</label>-->
144
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"-->
145
+ <!-- condition="f_residential_area like '%{}%'" placeholder="小区"/>-->
146
+ <!-- <div class="col-sm-8">&ndash;&gt;-->
147
+ <!-- <input type="text" v-show="false" v-model="model.f_residential_area" class="input_search" style="width: 80%"&ndash;&gt;-->
148
+ <!--; v-validate:f_residential_area='{required: true }'>&ndash;&gt;-->
149
+ <!-- <v-select :value.sync="model.f_residential_area" :value-single="true"&ndash;&gt;-->
150
+ <!-- class="select_list select"&ndash;&gt;-->
151
+ <!-- :options='fresidentialarea' placeholder='请选择'&ndash;&gt;-->
152
+ <!-- close-on-select search="true">&ndash;&gt;-->
153
+ <!-- </v-select>-->
154
+ <!-- </div>-->
155
+
156
+ <div class="col-sm-2 form-group">
157
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
158
+ <v-select :value.sync="model.f_residential_area"
159
+ class="select_list select"
160
+ enter-push
161
+ multiple = "true"
162
+ v-model="model.f_residential_area"
163
+ style="width: 60%"
164
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
165
+ close-on-select>
166
+
167
+ </v-select>
168
+ </div>
169
+ <div class="col-sm-2 form-group">
170
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼栋&nbsp;&nbsp;&nbsp;</label>
171
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
172
+ condition="f_building like '%{}%'" placeholder="楼栋"/>
173
+ </div>
174
+ <div class="col-sm-2 form-group">
175
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;单元&nbsp;&nbsp;&nbsp;</label>
176
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
177
+ condition="f_unit like '%{}%'" placeholder="单元"/>
178
+ </div>
179
+ <div class="col-sm-2 form-group">
180
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼层&nbsp;&nbsp;</label>
181
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
182
+ condition="f_floor like '%{}%'" placeholder="楼层"/>
183
+ </div>
184
+ <div class="col-sm-2 form-group">
185
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;门牌号</label>
186
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
187
+ condition="f_room like '%{}%'" placeholder="门牌号">
188
+ </div>
189
+ <div class="col-sm-2 form-group">
190
+ <label class="font_normal_body">余额区间</label>
191
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_balance"
192
+ condition="f_balance >= '{}'" placeholder="最小值">
193
+ </div>
194
+ <div class="col-sm-2 form-group">
195
+ <label class="font_normal_body">&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
196
+ <input type="text" style="width:60%" class="input_search" v-model="model.balance2"
197
+ condition="f_balance <= '{}'" placeholder="最大值">
198
+ </div>
199
+ <div class="col-sm-2 form-group">
200
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表员</label>
201
+ <v-select :value.sync="model.f_inputtor"
202
+ v-model="model.f_inputtor" condition="f_inputtor = '{}'"
203
+ :options='$parent.$parent.inputtores' placeholder='请选择'
204
+ multiple = "true"
205
+ close-on-select></v-select>
206
+ </div>
207
+ <!-- <div class="col-sm-2" >-->
208
+ <!-- <label for="f_balance" class="font_normal_body">账户结余</label>-->
209
+ <!-- <div class="form-group">-->
210
+ <!-- <v-input id="f_balance" placeholder="账户结余"-->
211
+ <!-- :expression.sync = 'model.f_balance'-->
212
+ <!-- v-model="model.f_balance"-->
213
+ <!-- condition= "f_balance {}"-->
214
+ <!-- :show-reset-button="reset"-->
215
+ <!-- v-ref:f_balance>-->
216
+ <!-- </v-input>-->
217
+ <!-- </div>-->
218
+ <!-- </div>-->
219
+ <div class="col-sm-2 form-group">
220
+ <label for="startDate" class="font_normal_body">建档开始日期</label>
221
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
222
+ v-model="model.startDate"
223
+ :value.sync="model.startDate"
224
+ :format="'yyyy-MM-dd'"
225
+ :show-reset-button="true"
226
+ condition="f_createfile_date >= '{} 00:00:00'">
227
+ </datepicker>
228
+ </div>
229
+ <div class="col-sm-2 form-group">
230
+ <label for="endDate" class="font_normal_body">建档结束日期</label>
231
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
232
+ v-model="model.endDate"
233
+ :value.sync="model.endDate"
234
+ :format="'yyyy-MM-dd'"
235
+ :show-reset-button="true"
236
+ condition="f_createfile_date <= '{} 23:59:59'">
237
+ </datepicker>
238
+ </div>
239
+ <div
240
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
241
+ class="form-group">
242
+ <label class="font_normal_body">区&nbsp;&nbsp;&nbsp;&nbsp;域</label>
243
+ <v-select
244
+ v-model="model.f_pcd"
245
+ placeholder='选择区域'
246
+ :value.sync="model.f_pcd"
247
+ :options='$parent.$parent.pcdslist'
248
+ condition="f_pcd_id = '{}'"
249
+ style="width: 60%"
250
+ close-on-select >
251
+ </v-select>
252
+ </div>
253
+ <!--表册片区-->
254
+ <!-- <div class="col-sm-2 form-group">-->
255
+ <!-- <label class="font_normal_body">表册片区</label>-->
256
+ <!-- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"-->
257
+ <!-- :options='$parent.$parent.bookSlice' placeholder='片区/表册'-->
258
+ <!-- style="width:60%"-->
259
+ <!-- close-on-select-->
260
+ <!-- condition="f_book_slice_area = '{}'"></v-select>-->
261
+ <!-- </div>-->
262
+ <div class="col-sm-2 form-group">
263
+ <label class="font_normal_body">安全协议</label>
264
+ <v-select :value.sync="model.f_safe"
265
+ v-model="model.f_safe" condition=" {}"
266
+ :options='$parent.$parent.safe' placeholder='请选择'
267
+ close-on-select></v-select>
268
+ </div>
269
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
270
+ </div>
271
+ </div>
272
+ </criteria>
273
+
274
+
275
+ <data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
276
+ <template partial='head'>
277
+ <tr>
278
+ <th>
279
+ <nobr>客户编号</nobr>
280
+ </th>
281
+ <th>
282
+ <nobr>客户名称</nobr>
283
+ </th>
284
+ <th>
285
+ <nobr>客户电话</nobr>
286
+ </th>
287
+ <th>
288
+ <nobr>身份证号</nobr>
289
+ </th>
290
+ <th>
291
+ <nobr>表册片区</nobr>
292
+ </th>
293
+ <th>
294
+ <nobr>账户余额</nobr>
295
+ </th>
296
+ <th>
297
+ <data-order field="f_address" name="客户地址"
298
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
299
+ </th>
300
+ <th>
301
+ <nobr>小区</nobr>
302
+ </th>
303
+ <th>
304
+ <nobr>楼栋</nobr>
305
+ </th>
306
+ <th>
307
+ <nobr>单元</nobr>
308
+ </th>
309
+ <th>
310
+ <nobr>楼层</nobr>
311
+ </th>
312
+ <th>
313
+ <nobr>门牌号</nobr>
314
+ </th>
315
+ <th>
316
+ <nobr>客户状态</nobr>
317
+ </th>
318
+ <th>
319
+ <nobr>建档日期</nobr>
320
+ </th>
321
+ <th>
322
+ <nobr>建档人</nobr>
323
+ </th>
324
+ <th>
325
+ <nobr>缴费类型</nobr>
326
+ </th>
327
+ <th>
328
+ <nobr>银行户名</nobr>
329
+ </th>
330
+ <th>
331
+ <nobr>银行名称</nobr>
332
+ </th>
333
+ <th>
334
+ <nobr>银行账号</nobr>
335
+ </th>
336
+ <th>
337
+ <nobr>银行身份证号</nobr>
338
+ </th>
339
+ <th>
340
+ <nobr>缴费编号</nobr>
341
+ </th>
342
+ <th>
343
+ <nobr>备注</nobr>
344
+ </th>
345
+ <!-- <th>-->
346
+ <!-- <nobr>部门</nobr>-->
347
+ <!-- </th>-->
348
+ <!-- <th>-->
349
+ <!-- <nobr>公司</nobr>-->
350
+ <!-- </th>-->
351
+ </tr>
352
+ </template>
353
+ <template partial='body'>
354
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" ><nobr>
355
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
356
+ </nobr> </td>
357
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
358
+ <nobr>{{row.f_user_name}}</nobr>
359
+ </td>
360
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
361
+ <nobr>{{row.f_user_phone}}</nobr>
362
+ </td>
363
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
364
+ <nobr>{{row.f_idnumber}}</nobr>
365
+ </td>
366
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
367
+ <nobr>{{row.f_book_slice_area}}</nobr>
368
+ </td>
369
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
370
+ <nobr>{{row.f_balance}}</nobr>
371
+ </td>
372
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
373
+ <nobr>{{row.f_address}}</nobr>
374
+ </td>
375
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
376
+ <nobr>{{row.f_residential_area}}</nobr>
377
+ </td>
378
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
379
+ <nobr>{{row.f_building}}</nobr>
380
+ </td>
381
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
382
+ <nobr>{{row.f_unit}}</nobr>
383
+ </td>
384
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
385
+ <nobr>{{row.f_floor}}</nobr>
386
+ </td>
387
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
388
+ <nobr>{{row.f_room}}</nobr>
389
+ </td>
390
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
391
+ <nobr>{{row.f_user_state}}</nobr>
392
+ </td>
393
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
394
+ <nobr>{{row.f_createfile_date}}</nobr>
395
+ </td>
396
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
397
+ <nobr>{{row.f_createfile_person}}</nobr>
398
+ </td>
399
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
400
+ <nobr>{{row.f_cost_type}}</nobr>
401
+ </td>
402
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
403
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_accopen}}</span></nobr>
404
+ </td>
405
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
406
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_name}}</span></nobr>
407
+ </td>
408
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
409
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_account}}</span></nobr>
410
+ </td>
411
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
412
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_idnumber}}</span></nobr>
413
+ </td>
414
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
415
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_pay_number}}</span></nobr>
416
+ </td>
417
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
418
+ <nobr>{{row.f_comments}}</nobr>
419
+ </td>
420
+ <!-- <td style="text-align: center;">-->
421
+ <!-- <nobr>{{row.f_depname}}</nobr>-->
422
+ <!-- </td>-->
423
+ <!-- <td style="text-align: center;">-->
424
+ <!-- <nobr>{{row.f_orgname}}</nobr>-->
425
+ <!-- </td>-->
426
+ </template>
427
+ <template partial='foot'>
428
+ </template>
429
+ </data-grid>
430
+ </criteria-paged>
431
+
432
+ <table class="table-hover">
433
+ <tr style="position: relative" class="table-bordered">
434
+ <td
435
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
436
+ 汇总信息
437
+ </td>
438
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
439
+ 结余合计:&emsp;{{sumsmodel.f_balance}}
440
+ </td>
441
+ </tr>
442
+ </table>
443
+
444
+ <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
445
+ <!--<header slot="modal-header" class="modal-header text-center">-->
446
+ <!--<h4 class="modal-title">打印列选择</h4>-->
447
+ <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
448
+ <!--<label for="f_generations" class="font-size">全选</label>-->
449
+ <!--</header>-->
450
+ <!--<article slot="modal-body">-->
451
+ <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
452
+ <!--<div class="col-sm-3" v-for="f in fields">-->
453
+ <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
454
+ <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
455
+ <!--</div>-->
456
+ <!--</div>-->
457
+ <!--</article>-->
458
+ <!--<footer slot="modal-footer" class="modal-footer">-->
459
+ <!--<center>-->
460
+ <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
461
+ <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
462
+ <!--<print-table :model='model' v-show="false" v-ref:print-->
463
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
464
+ <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
465
+ <!--:fields="modelval" :printpage="true">-->
466
+ <!--</print-table>-->
467
+ <!--</center>-->
468
+ <!--</footer>-->
469
+ <!--</modal>-->
470
+ <!--<user-detail v-if="userdetail.show" :data="userdetail"></user-detail>-->
471
+ </div>
472
+
473
+ </div>
474
+ </div>
475
+ <div class="basic-main" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
476
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
477
+ </div>
478
+ </div>
479
+ </template>
480
+
481
+ <script>
482
+ import {HttpResetClass, PagedList} from 'vue-client'
483
+ import defaultPrint from './config/DefaultPrint'
484
+ import exportConfig from './config/exportConfig'
485
+
486
+ let readySomething = async function (self) {
487
+ self.$MagGetSaleParam.initinputtor();
488
+ self.getinputtores();
489
+ // 获取区县
490
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
491
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
492
+ // await self.$refs.paged.$refs.cri.search()
493
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
494
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
495
+
496
+ }
497
+
498
+ export default {
499
+ title: '客户查询',
500
+ data() {
501
+ return {
502
+ other:[],
503
+ footer:[],
504
+ flag:true,
505
+ pcdslist:[],
506
+ model: new PagedList('rs/sql/filesQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code desc'`}, {f_balance: 0}),
507
+ criteriaShow: false,
508
+ orgCondtionStr: '',
509
+ modelval: [],
510
+ printshow: false,
511
+ all: false,
512
+ fields: {},
513
+ //排序
514
+ orderitem:'f_userinfo_code desc',
515
+ orderFields: {
516
+ f_operate_date: 'no'
517
+ },
518
+ //默认打印列
519
+ defaultfield: [],
520
+ config: {
521
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_user_state']
522
+ },
523
+ balance2:'',
524
+ thead: '',
525
+ tfoot: '',
526
+ area: [],
527
+ //合计数据
528
+ sumsmodel: {},
529
+ initres: {
530
+ org:[this.$login.f.orgid],
531
+ dep:[],
532
+ user:[],
533
+ },
534
+ userdetail: {
535
+ show: false,
536
+ f_userinfo_code: '',
537
+ f_filialeids: ''
538
+ },
539
+ safe:[{label:'已签订',value:"(f_security_date is not null and f_security_date !='')"},{label:'未签订',value:"(f_security_date is null or f_security_date='')"}],
540
+ userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
541
+ show:false,
542
+ rowdata:{},
543
+ meterInfo:{},
544
+ deviceInfo:{},
545
+ condition2:'',
546
+
547
+
548
+ weixinSign:[{label:"全部",value:""},{label:"已绑定",value:"已绑定"},{label:"未绑定",value:"未绑定"}],
549
+ //小区
550
+ residentialArea: [],
551
+ //表册片区
552
+ bookSlice:[{label: '全部',value: ''}],
553
+ inputtores:[{label: '全部',value: ''}], //抄表员
554
+ allorgid:[],
555
+ f_filialeid: this.$login.f.f_orgid,
556
+ dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
557
+ }
558
+ },
559
+ ready() {
560
+ this.getaddress()
561
+
562
+ readySomething(this).then(() => {
563
+ this.$emit('ready')
564
+ }).catch((error) => {
565
+ this.$emit('error', error)
566
+ })
567
+ this.initAreas(this.$login.f.orgid)
568
+ },
569
+ methods: {
570
+ async getinputtores () {
571
+ // 获取抄表员
572
+ let rs = []
573
+ if (this.$login.f.f_gasman.length > 0) {
574
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
575
+ let temp = {
576
+ label: this.$login.f.f_gasman[i].name,
577
+ value: this.$login.f.f_gasman[i].name
578
+ }
579
+ rs.push(temp)
580
+ }
581
+ }
582
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
583
+ },
584
+ async updateParams() {
585
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
586
+ this.inputtores = [];
587
+ this.inputtores.push({label: "全部", value: ""})
588
+ this.initSlice(this.f_filialeid)
589
+ if(this.allorgid!=null){
590
+ this.allorgid.forEach((res)=>{
591
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
592
+ })
593
+ }
594
+ },
595
+ getotherfooter () {
596
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
597
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
598
+ this.other = [];
599
+ this.footer = [];
600
+ let exportdata = this.getCondition;
601
+ let otherInData = [];
602
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
603
+ let footerData = [], exportfield = this.getExportField;
604
+ footerData.push("合计");
605
+ let self = this;
606
+ for (var field in self.sumsmodel) {
607
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
608
+ }
609
+ this.footer.push(footerData);
610
+ this.other.push(otherInData);
611
+ },
612
+ async getaddress(){
613
+ console.log('开始获取小区')
614
+ let HttpReset = new HttpResetClass()
615
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
616
+ data: {
617
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
618
+ }
619
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
620
+ console.log('小区',data)
621
+ let house = []
622
+ for (let row of data.data){
623
+ console.log('开始保存小区')
624
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
625
+ }
626
+ this.residentialArea = house
627
+
628
+ console.log('开始获取区域')
629
+ var req = await HttpReset.load('POST','rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
630
+ data: {
631
+ items: '*',
632
+ tablename: 't_pcd',
633
+ orderitem: 'id',
634
+ condition: `1=1`
635
+ }
636
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
637
+ let redata = []
638
+ console.log('区域是:',req)
639
+ req.data.forEach((row, n) => {
640
+ redata[n] = {
641
+ label: row.f_pcd,
642
+ value: row.id,
643
+ data: row,
644
+ id: row.id
645
+ }
646
+ })
647
+ console.log('获取到的小区',redata)
648
+ this.pcdslist = redata
649
+ },
650
+
651
+ //把数据库查询数据转换为下拉数据
652
+ calculate(rows){
653
+ let data = []
654
+ rows.forEach((row, n) => {
655
+ data[n] = {label: row.f_residential_area, value: row.id}
656
+ })
657
+ return data
658
+ },
659
+ search(){
660
+ this.$refs.paged.$refs.cri.search()
661
+ },
662
+ cancel(obj) {
663
+ this.show = false
664
+ },
665
+ showmsg(obj){
666
+
667
+ this.rowdata=obj
668
+ this.show=true
669
+ // let http = new HttpResetClass()
670
+ // http.load('POST','rs/sql/getUserMeter',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
671
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
672
+ // this.meterInfo = res.data})
673
+ // let http2 = new HttpResetClass()
674
+ // http2.load('POST','rs/sql/deviceQuery',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
675
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
676
+ // this.deviceInfo = res.data})
677
+
678
+ // this.f_userinfo_id=obj.f_userinfo_id
679
+ },
680
+ //初始化片区
681
+ async initSlice (val) {
682
+ if (val) {
683
+ let getAllArea = await this.$resetpost('/rs/search', {
684
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
685
+ userid: this.$login.f.id
686
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
687
+ let arr = getAllArea.data.filter((res) => {
688
+ return res.parentid == val
689
+ })
690
+ this.bookSlice = []
691
+ console.log('过滤之后的片区-------------------', arr)
692
+ arr.forEach((res) => {
693
+ this.bookSlice.push({label: res.name, value: res.name})
694
+ })
695
+ }
696
+ },
697
+ async initAreas (val) {
698
+
699
+ if (val) {
700
+ let getAllArea = await this.$resetpost('/rs/search', {
701
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
702
+ userid: this.$login.f.id
703
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
704
+
705
+ let arr = getAllArea.data.filter((res) => {
706
+ return res.parentid == val
707
+ })
708
+ console.log('过滤之后的片区', arr)
709
+ this.sliceArea = []
710
+ arr.forEach((res) => {
711
+ this.sliceArea.push({label: res.name, value: res.name})
712
+ })
713
+ }
714
+ },
715
+ selfSearch(args) {
716
+ //小区查询条件
717
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
718
+ console.log("=====小区model绑定====",this.area)
719
+ if(this.area.length !== 0){
720
+ let str = JSON.stringify(this.area)
721
+ str = str.replace(/"/g,`'`)
722
+ str = str.replace(/\[/g,``)
723
+ str = str.replace(/\]/g,``)
724
+ console.log("=====小区model22222222222绑定====",str)
725
+ //查询多个小区时条件
726
+ args.condition += ` and f_residential_area in ( ${str} )`
727
+ }
728
+
729
+ if (!this.orgCondtionStr) {
730
+ args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
731
+ } else {
732
+ args.condition = `${args.condition}` + this.orgCondtionStr
733
+ }
734
+ this.condition2 = args.condition
735
+ this.model.search(args.condition, args.model)
736
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
737
+ console.log('合计字段', this.sumsmodel)
738
+ },
739
+ clear() {
740
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
741
+ this.$refs.paged.$refs.cri.model[key] = []
742
+ })
743
+ },
744
+ hidden() {
745
+ this.criteriaShow = !this.criteriaShow
746
+ },
747
+ getRes(obj) {
748
+ this.orgCondtionStr = obj
749
+ },
750
+ stamp() {
751
+ this.all = false
752
+ //默认选择要打印的列
753
+ this.modelval = defaultPrint.config
754
+ this.fields = this.getfield
755
+ console.log('所有打印字段', this.fields)
756
+ this.printshow = true
757
+ this.put()
758
+ },
759
+ put() {
760
+ // 对Modelval进行排序
761
+ this.sortModelval()
762
+ this.thead = `<tr><th colspan=${this.modelval.length}>用户查询统计报表</th></tr><tr>`
763
+ for (let key of this.modelval) {
764
+ this.thead += '<th>' + this.fields[key] + '</th>'
765
+ }
766
+ this.thead += '</tr>'
767
+ },
768
+ print() {
769
+ this.$refs.print.PrintAsFile()
770
+ this.printshow = false
771
+ },
772
+ close() {
773
+ this.printshow = false
774
+ },
775
+ // 对选择的列进行排序
776
+ sortModelval() {
777
+ let sortModel = []
778
+ Object.keys(this.fields).forEach((key) => {
779
+ if (this.modelval.includes(key)) {
780
+ sortModel.push(key)
781
+ }
782
+ })
783
+ this.modelval = sortModel
784
+ console.log('选择的打印的字段', this.modelval)
785
+ },
786
+ dblclick(row, index) {
787
+ console.log('双击之后数据', row, index)
788
+ this.userdetail.show = true
789
+ this.userdetail.f_userinfo_code = row.f_userinfo_code
790
+ this.userdetail.f_filialeids = row.f_filialeids
791
+ },
792
+ sort (field, rule) {
793
+ // 将所有排序方式设为不排序,实现相互排斥
794
+ for (let key in this.orderFields) {
795
+ if (key === field) {
796
+ this.orderFields[key] = rule
797
+ } else {
798
+ this.orderFields[key] = 'no'
799
+ }
800
+ }
801
+ // 如果新规则不排序,还原为默认排序
802
+ if (rule === 'no') {
803
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
804
+ } else {
805
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
806
+ }
807
+
808
+ this.search()
809
+ }
810
+ },
811
+
812
+ watch: {
813
+ 'all'(val) {
814
+ if (val) {
815
+ this.modelval = this.bodyData
816
+ } else {
817
+ this.modelval = defaultPrint.config
818
+ this.put()
819
+ }
820
+ },
821
+ 'modelval.length'() {
822
+ this.put()
823
+ },
824
+ sumsmodel:{
825
+ handler: function(val) {
826
+ this.getotherfooter();
827
+ },
828
+ deep: true
829
+ },
830
+ 'orgCondtionStr'(val) {
831
+ let res = val.match(/'(.*?)'/)
832
+ console.log('正则提取:',res && res[1])
833
+ if (res) {
834
+ this.f_filialeid = res[1]
835
+ if(res.input !=null){
836
+ let resorgid = res.input.substring(res.input.indexOf("'"));
837
+ if(resorgid!= null && resorgid!=''){
838
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
839
+ // resorgid = resorgid.replaceAll("'","");
840
+ resorgid = resorgid.replace(/'/g,"");
841
+ this.allorgid = resorgid.split(",")
842
+ }
843
+ }
844
+ this.updateParams()
845
+ }
846
+ },
847
+ },
848
+ computed: {
849
+ // defaultexport() {
850
+ // return exportConfig.chargeexportConfig
851
+ // },
852
+ authArr () {
853
+ return this.$login.r ? this.$login.r : []
854
+ },
855
+
856
+ getCondition() {
857
+ return {condition: this.condition2,orderitem:this.orderitem}
858
+ },
859
+ getfield() {
860
+ let data = {}
861
+ this.bodyData.forEach((value, index) => {
862
+ data[this.bodyData[index]] = this.headData[index]
863
+ })
864
+ //合计字段打印
865
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
866
+ if (this.sumsmodel) {
867
+ Object.keys(this.sumsmodel).forEach((key) => {
868
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
869
+ })
870
+ } else {
871
+ this.tfoot += '暂无'
872
+ }
873
+ this.tfoot += '</th></tr>'
874
+ return data
875
+ },
876
+ getExportField() {
877
+ return exportConfig.userConfig
878
+ },
879
+ inputtor () {
880
+ // 获取抄表员
881
+ console.log('获取抄表员', this.$login.f)
882
+ let rs = []
883
+ if (this.$login.f.f_gasman.length > 0) {
884
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
885
+ let temp = {
886
+ label: this.$login.f.f_gasman[i].name,
887
+ value: this.$login.f.f_gasman[i].name
888
+ }
889
+ rs.push(temp)
890
+ }
891
+ }
892
+
893
+ return [{label: '全部', value: ''}, ...rs]
894
+ },
895
+ userstates() {
896
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
897
+ },
898
+ //参数获取 用户类型
899
+ usertypes() {
900
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
901
+ },
902
+ //参数获取 用气性质
903
+ gasproperties() {
904
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
905
+ },
906
+ //参数获取 气表类型
907
+ metertypes() {
908
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
909
+ }
910
+ }
911
+ }
912
+ </script>
913
+ <style>
914
+ .back-red{ /* 红色背景 */
915
+ background-color: #F6C6CE;
916
+ }
917
+ .back-blue{ /* 蓝色背景 */
918
+
919
+ }
920
+ </style>
921
+