manage-client 3.1.13 → 3.1.15

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