manage-client 3.2.97-1 → 3.2.99

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 (44) hide show
  1. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  2. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  3. package/.gradle/buildOutputCleanup/built.bin +0 -0
  4. package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
  5. package/build/dev-server.js +177 -176
  6. package/package.json +1 -1
  7. package/src/components/SellReport/GasMoneyPublicMoney.vue +251 -251
  8. package/src/components/SellReport/NonResidentGas.vue +216 -216
  9. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +507 -507
  10. package/src/components/SellReport/ReportItems.vue +246 -246
  11. package/src/components/sale/businessquery/ArrearsQuery.vue +934 -934
  12. package/src/components/sale/businessquery/ChangeMeterQuery.vue +676 -676
  13. package/src/components/sale/businessquery/HandplanQuery.vue +1370 -1369
  14. package/src/components/sale/businessquery/InspectListGas.vue +552 -552
  15. package/src/components/sale/businessquery/InspectListUser.vue +449 -449
  16. package/src/components/webmeter/instruction/NewQueryInstruct.vue +446 -446
  17. package/src/filiale/liaoyuan/MeterQuery.vue +905 -905
  18. package/src/filiale/liaoyuan/RecordInfoQuery.vue +1163 -1163
  19. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  20. package/src/filiale/liaoyuan/sale.js +10 -13
  21. package/src/filiale/macheng/FxGasTable.vue +236 -236
  22. package/src/filiale/macheng/ManageDayGas.vue +248 -248
  23. package/src/filiale/macheng/ManageHandSellMoney.vue +249 -249
  24. package/src/filiale/macheng/ManageMonthGas.vue +250 -250
  25. package/src/filiale/macheng/ManageOtherCharge.vue +251 -251
  26. package/src/filiale/macheng/ManageSellType.vue +287 -287
  27. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  28. package/src/filiale/macheng/SellingTable.vue +219 -219
  29. package/src/filiale/macheng/UserBalanceReport.vue +178 -178
  30. package/src/filiale/macheng/config/exportConfig.js +67 -67
  31. package/src/filiale/macheng/reportManage.js +19 -19
  32. package/src/filiale/macheng/sale.js +11 -11
  33. package/src/filiale/meihekou/HandplanQuery.vue +1234 -1234
  34. package/src/filiale/meihekou/UserQuery.vue +773 -773
  35. package/src/filiale/qianneng/OtherChargeQuery.vue +646 -646
  36. package/src/filiale/qianneng/sale.js +12 -12
  37. package/src/main.js +66 -65
  38. package/.gradle/4.4/fileContent/fileContent.lock +0 -0
  39. package/.gradle/4.4/taskHistory/taskHistory.bin +0 -0
  40. package/.gradle/4.4/taskHistory/taskHistory.lock +0 -0
  41. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  42. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  43. package/build/tmp/jar/MANIFEST.MF +0 -2
  44. package/src/filiale/liaoyuan/HandplanQuery.vue +0 -1288
@@ -1,773 +1,773 @@
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
- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
135
- condition="f_residential_area like '%{}%'" placeholder="小区"/>
136
- </div>
137
- <div class="col-sm-2 form-group">
138
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼栋&nbsp;&nbsp;&nbsp;</label>
139
- <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
140
- condition="f_building = '{}'" placeholder="楼栋"/>
141
- </div>
142
- <div class="col-sm-2 form-group">
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_unit"
145
- condition="f_unit = '{}'" placeholder="单元"/>
146
- </div>
147
- <div class="col-sm-2 form-group">
148
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼层&nbsp;&nbsp;</label>
149
- <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
150
- condition="f_floor = '{}'" placeholder="楼层"/>
151
- </div>
152
- <div class="col-sm-2 form-group">
153
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;门牌号</label>
154
- <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
155
- condition="f_room = '{}'" placeholder="门牌号">
156
- </div>
157
- <div class="col-sm-2 form-group">
158
- <label class="font_normal_body">余额区间</label>
159
- <input type="text" style="width:60%" class="input_search" v-model="model.f_balance"
160
- condition="f_balance >= '{}'" placeholder="最小值">
161
- </div>
162
- <div class="col-sm-2 form-group">
163
- <label class="font_normal_body">&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
164
- <input type="text" style="width:60%" class="input_search" v-model="model.balance2"
165
- condition="f_balance <= '{}'" placeholder="最大值">
166
- </div>
167
- <div class="col-sm-2 form-group">
168
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表员</label>
169
- <v-select :value.sync="model.f_inputtor"
170
- v-model="model.f_inputtor" condition="f_inputtor = '{}'"
171
- :options='$parent.$parent.inputtores' placeholder='请选择'
172
- multiple = "true"
173
- close-on-select></v-select>
174
- </div>
175
- <!-- <div class="col-sm-2" >-->
176
- <!-- <label for="f_balance" class="font_normal_body">账户结余</label>-->
177
- <!-- <div class="form-group">-->
178
- <!-- <v-input id="f_balance" placeholder="账户结余"-->
179
- <!-- :expression.sync = 'model.f_balance'-->
180
- <!-- v-model="model.f_balance"-->
181
- <!-- condition= "f_balance {}"-->
182
- <!-- :show-reset-button="reset"-->
183
- <!-- v-ref:f_balance>-->
184
- <!-- </v-input>-->
185
- <!-- </div>-->
186
- <!-- </div>-->
187
- <div class="col-sm-2 form-group">
188
- <label for="startDate" class="font_normal_body">开始日期</label>
189
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
190
- v-model="model.startDate"
191
- :value.sync="model.startDate"
192
- :format="'yyyy-MM-dd'"
193
- :show-reset-button="true"
194
- condition="f_createfile_date >= '{} 00:00:00'">
195
- </datepicker>
196
- </div>
197
- <div class="col-sm-2 form-group">
198
- <label for="endDate" class="font_normal_body">结束日期</label>
199
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
200
- v-model="model.endDate"
201
- :value.sync="model.endDate"
202
- :format="'yyyy-MM-dd'"
203
- :show-reset-button="true"
204
- condition="f_createfile_date <= '{} 23:59:59'">
205
- </datepicker>
206
- </div>
207
- <!--表册片区-->
208
- <div class="col-sm-2 form-group">
209
- <label class="font_normal_body">表册片区</label>
210
- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
211
- :options='$parent.$parent.bookSlice' placeholder='片区/表册'
212
- style="width:60%"
213
- close-on-select
214
- condition="f_book_slice_area = '{}'"></v-select>
215
- </div>
216
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
217
- </div>
218
- </div>
219
- </criteria>
220
-
221
-
222
- <data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
223
- <template partial='head'>
224
- <tr>
225
- <th>
226
- <nobr>客户编号</nobr>
227
- </th>
228
- <th>
229
- <nobr>客户名称</nobr>
230
- </th>
231
- <th>
232
- <nobr>客户电话</nobr>
233
- </th>
234
- <th>
235
- <nobr>身份证号</nobr>
236
- </th>
237
- <th>
238
- <nobr>表册片区</nobr>
239
- </th>
240
- <th>
241
- <nobr>账户余额</nobr>
242
- </th>
243
- <th>
244
- <data-order field="f_address" name="客户地址"
245
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
246
- </th>
247
- <th>
248
- <nobr>小区</nobr>
249
- </th>
250
- <th>
251
- <nobr>楼栋</nobr>
252
- </th>
253
- <th>
254
- <nobr>单元</nobr>
255
- </th>
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
- <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
- </tr>
299
- </template>
300
- <template partial='body'>
301
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" ><nobr>
302
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
303
- </nobr> </td>
304
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
305
- <nobr>{{row.f_user_name}}</nobr>
306
- </td>
307
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
308
- <nobr>{{row.f_user_phone}}</nobr>
309
- </td>
310
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
311
- <nobr>{{row.f_idnumber}}</nobr>
312
- </td>
313
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
314
- <nobr>{{row.f_book_slice_area}}</nobr>
315
- </td>
316
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
317
- <nobr>{{row.f_balance}}</nobr>
318
- </td>
319
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
320
- <nobr>{{row.f_address}}</nobr>
321
- </td>
322
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
323
- <nobr>{{row.f_residential_area}}</nobr>
324
- </td>
325
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
326
- <nobr>{{row.f_building}}</nobr>
327
- </td>
328
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
329
- <nobr>{{row.f_unit}}</nobr>
330
- </td>
331
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
332
- <nobr>{{row.f_floor}}</nobr>
333
- </td>
334
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
335
- <nobr>{{row.f_room}}</nobr>
336
- </td>
337
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
338
- <nobr>{{row.f_user_state}}</nobr>
339
- </td>
340
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
341
- <nobr>{{row.f_createfile_date}}</nobr>
342
- </td>
343
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
344
- <nobr>{{row.f_createfile_person}}</nobr>
345
- </td>
346
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
347
- <nobr>{{row.f_cost_type}}</nobr>
348
- </td>
349
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
350
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_accopen}}</span></nobr>
351
- </td>
352
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
353
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_name}}</span></nobr>
354
- </td>
355
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
356
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_account}}</span></nobr>
357
- </td>
358
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
359
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_idnumber}}</span></nobr>
360
- </td>
361
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
362
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_pay_number}}</span></nobr>
363
- </td>
364
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
365
- <nobr>{{row.f_comments}}</nobr>
366
- </td>
367
- <!-- <td style="text-align: center;">-->
368
- <!-- <nobr>{{row.f_depname}}</nobr>-->
369
- <!-- </td>-->
370
- <!-- <td style="text-align: center;">-->
371
- <!-- <nobr>{{row.f_orgname}}</nobr>-->
372
- <!-- </td>-->
373
- </template>
374
- <template partial='foot'>
375
- </template>
376
- </data-grid>
377
- </criteria-paged>
378
-
379
- <table class="table-hover">
380
- <tr style="position: relative" class="table-bordered">
381
- <td
382
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
383
- 汇总信息
384
- </td>
385
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
386
- 结余合计:&emsp;{{sumsmodel.f_balance}}
387
- </td>
388
- </tr>
389
- </table>
390
- </div>
391
-
392
- </div>
393
- </div>
394
- <div class="basic-main" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
395
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
396
- </div>
397
- </div>
398
- </template>
399
-
400
- <script>
401
- import {HttpResetClass, PagedList} from 'vue-client'
402
- import defaultPrint from './config/DefaultPrint'
403
- import exportConfig from './config/exportConfig'
404
-
405
- let readySomething = async function (self) {
406
- self.$MagGetSaleParam.initinputtor();
407
- self.getinputtores();
408
- // 获取区县
409
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
410
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
411
- // await self.$refs.paged.$refs.cri.search()
412
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
413
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
414
- }
415
-
416
- export default {
417
- title: '客户查询',
418
- data() {
419
- return {
420
- other:[],
421
- footer:[],
422
- model: new PagedList('rs/sql/filesQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code desc'`}, {f_balance: 0}),
423
- criteriaShow: false,
424
- orgCondtionStr: '',
425
- modelval: [],
426
- printshow: false,
427
- all: false,
428
- fields: {},
429
- //排序
430
- orderitem:'f_userinfo_code desc',
431
- orderFields: {
432
- f_operate_date: 'no'
433
- },
434
- //默认打印列
435
- defaultfield: [],
436
- config: {
437
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_user_state']
438
- },
439
- balance2:'',
440
- thead: '',
441
- tfoot: '',
442
- area: [],
443
- //合计数据
444
- sumsmodel: {},
445
- initres: {
446
- org:[this.$login.f.orgid],
447
- dep:[],
448
- user:[],
449
- },
450
- userdetail: {
451
- show: false,
452
- f_userinfo_code: '',
453
- f_filialeids: ''
454
- },
455
- userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
456
- show:false,
457
- rowdata:{},
458
- meterInfo:{},
459
- deviceInfo:{},
460
- condition2:'',
461
-
462
-
463
- weixinSign:[{label:"全部",value:""},{label:"已绑定",value:"已绑定"},{label:"未绑定",value:"未绑定"}],
464
- //小区
465
- // residentialArea: [],
466
- //表册片区
467
- bookSlice:[{label: '全部',value: ''}],
468
- inputtores:[{label: '全部',value: ''}], //抄表员
469
- allorgid:[],
470
- f_filialeid: this.$login.f.f_orgid,
471
- dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
472
- }
473
- },
474
- ready() {
475
- // this.getaddress()
476
-
477
- readySomething(this).then(() => {
478
- this.$emit('ready')
479
- }).catch((error) => {
480
- this.$emit('error', error)
481
- })
482
- this.initAreas(this.$login.f.orgid)
483
- },
484
- methods: {
485
- async getinputtores () {
486
- // 获取抄表员
487
- let rs = []
488
- if (this.$login.f.f_gasman.length > 0) {
489
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
490
- let temp = {
491
- label: this.$login.f.f_gasman[i].name,
492
- value: this.$login.f.f_gasman[i].name
493
- }
494
- rs.push(temp)
495
- }
496
- }
497
- this.inputtores = [{label: '全部', value: ''}, ...rs]
498
- },
499
- async updateParams() {
500
- await this.$MagLoadParams.loadParam(this.f_filialeid)
501
- this.inputtores = [];
502
- this.inputtores.push({label: "全部", value: ""})
503
- this.initSlice(this.f_filialeid)
504
- if(this.allorgid!=null){
505
- this.allorgid.forEach((res)=>{
506
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
507
- })
508
- }
509
- },
510
- getotherfooter () {
511
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
512
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
513
- this.other = [];
514
- this.footer = [];
515
- let exportdata = this.getCondition;
516
- let otherInData = [];
517
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
518
- let footerData = [], exportfield = this.getExportField;
519
- footerData.push("合计");
520
- let self = this;
521
- for (var field in self.sumsmodel) {
522
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
523
- }
524
- this.footer.push(footerData);
525
- this.other.push(otherInData);
526
- },
527
-
528
- //把数据库查询数据转换为下拉数据
529
- calculate(rows){
530
- let data = []
531
- rows.forEach((row, n) => {
532
- data[n] = {label: row.f_residential_area, value: row.id}
533
- })
534
- return data
535
- },
536
- search(){
537
- this.$refs.paged.$refs.cri.search()
538
- },
539
- cancel(obj) {
540
- this.show = false
541
- },
542
- showmsg(obj){
543
-
544
- this.rowdata=obj
545
- this.show=true
546
- // let http = new HttpResetClass()
547
- // http.load('POST','rs/sql/getUserMeter',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
548
- // {resolveMsg: null, rejectMsg: null}).then((res) => {
549
- // this.meterInfo = res.data})
550
- // let http2 = new HttpResetClass()
551
- // http2.load('POST','rs/sql/deviceQuery',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
552
- // {resolveMsg: null, rejectMsg: null}).then((res) => {
553
- // this.deviceInfo = res.data})
554
-
555
- // this.f_userinfo_id=obj.f_userinfo_id
556
- },
557
- //初始化片区
558
- async initSlice (val) {
559
- if (val) {
560
- let getAllArea = await this.$resetpost('/rs/search', {
561
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
562
- userid: this.$login.f.id
563
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
564
- let arr = getAllArea.data.filter((res) => {
565
- return res.parentid == val
566
- })
567
- this.bookSlice = []
568
- console.log('过滤之后的片区-------------------', arr)
569
- arr.forEach((res) => {
570
- this.bookSlice.push({label: res.name, value: res.name})
571
- })
572
- }
573
- },
574
- async initAreas (val) {
575
-
576
- if (val) {
577
- let getAllArea = await this.$resetpost('/rs/search', {
578
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
579
- userid: this.$login.f.id
580
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
581
-
582
- let arr = getAllArea.data.filter((res) => {
583
- return res.parentid == val
584
- })
585
- console.log('过滤之后的片区', arr)
586
- this.sliceArea = []
587
- arr.forEach((res) => {
588
- this.sliceArea.push({label: res.name, value: res.name})
589
- })
590
- }
591
- },
592
- selfSearch(args) {
593
-
594
- if (!this.orgCondtionStr) {
595
- args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
596
- } else {
597
- args.condition = `${args.condition}` + this.orgCondtionStr
598
- }
599
- this.condition2 = args.condition
600
- this.model.search(args.condition, args.model)
601
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
602
- console.log('合计字段', this.sumsmodel)
603
- },
604
- clear() {
605
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
606
- this.$refs.paged.$refs.cri.model[key] = []
607
- })
608
- },
609
- hidden() {
610
- this.criteriaShow = !this.criteriaShow
611
- },
612
- getRes(obj) {
613
- this.orgCondtionStr = obj
614
- },
615
- stamp() {
616
- this.all = false
617
- //默认选择要打印的列
618
- this.modelval = defaultPrint.config
619
- this.fields = this.getfield
620
- console.log('所有打印字段', this.fields)
621
- this.printshow = true
622
- this.put()
623
- },
624
- put() {
625
- // 对Modelval进行排序
626
- this.sortModelval()
627
- this.thead = `<tr><th colspan=${this.modelval.length}>用户查询统计报表</th></tr><tr>`
628
- for (let key of this.modelval) {
629
- this.thead += '<th>' + this.fields[key] + '</th>'
630
- }
631
- this.thead += '</tr>'
632
- },
633
- print() {
634
- this.$refs.print.PrintAsFile()
635
- this.printshow = false
636
- },
637
- close() {
638
- this.printshow = false
639
- },
640
- // 对选择的列进行排序
641
- sortModelval() {
642
- let sortModel = []
643
- Object.keys(this.fields).forEach((key) => {
644
- if (this.modelval.includes(key)) {
645
- sortModel.push(key)
646
- }
647
- })
648
- this.modelval = sortModel
649
- console.log('选择的打印的字段', this.modelval)
650
- },
651
- dblclick(row, index) {
652
- console.log('双击之后数据', row, index)
653
- this.userdetail.show = true
654
- this.userdetail.f_userinfo_code = row.f_userinfo_code
655
- this.userdetail.f_filialeids = row.f_filialeids
656
- },
657
- sort (field, rule) {
658
- // 将所有排序方式设为不排序,实现相互排斥
659
- for (let key in this.orderFields) {
660
- if (key === field) {
661
- this.orderFields[key] = rule
662
- } else {
663
- this.orderFields[key] = 'no'
664
- }
665
- }
666
- // 如果新规则不排序,还原为默认排序
667
- if (rule === 'no') {
668
- this.model.paramSource.orderitem = `'${this.orderitem}'`
669
- } else {
670
- this.model.paramSource.orderitem = `'${field} ${rule}'`
671
- }
672
-
673
- this.search()
674
- }
675
- },
676
-
677
- watch: {
678
- 'all'(val) {
679
- if (val) {
680
- this.modelval = this.bodyData
681
- } else {
682
- this.modelval = defaultPrint.config
683
- this.put()
684
- }
685
- },
686
- 'modelval.length'() {
687
- this.put()
688
- },
689
- sumsmodel:{
690
- handler: function(val) {
691
- this.getotherfooter();
692
- },
693
- deep: true
694
- },
695
- 'orgCondtionStr'(val) {
696
- let res = val.match(/'(.*?)'/)
697
- console.log('正则提取:',res && res[1])
698
- if (res) {
699
- this.f_filialeid = res[1]
700
- if(res.input !=null){
701
- let resorgid = res.input.substring(res.input.indexOf("'"));
702
- if(resorgid!= null && resorgid!=''){
703
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
704
- // resorgid = resorgid.replaceAll("'","");
705
- resorgid = resorgid.replace(/'/g,"");
706
- this.allorgid = resorgid.split(",")
707
- }
708
- }
709
- this.updateParams()
710
- }
711
- },
712
- },
713
- computed: {
714
- // defaultexport() {
715
- // return exportConfig.chargeexportConfig
716
- // },
717
- authArr () {
718
- return this.$login.r ? this.$login.r : []
719
- },
720
-
721
- getCondition() {
722
- return {condition: this.condition2,orderitem:this.orderitem}
723
- },
724
- getfield() {
725
- let data = {}
726
- this.bodyData.forEach((value, index) => {
727
- data[this.bodyData[index]] = this.headData[index]
728
- })
729
- //合计字段打印
730
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
731
- if (this.sumsmodel) {
732
- Object.keys(this.sumsmodel).forEach((key) => {
733
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
734
- })
735
- } else {
736
- this.tfoot += '暂无'
737
- }
738
- this.tfoot += '</th></tr>'
739
- return data
740
- },
741
- getExportField() {
742
- return exportConfig.userConfig
743
- },
744
- inputtor () {
745
- // 获取抄表员
746
- console.log('获取抄表员', this.$login.f)
747
- let rs = []
748
- if (this.$login.f.f_gasman.length > 0) {
749
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
750
- let temp = {
751
- label: this.$login.f.f_gasman[i].name,
752
- value: this.$login.f.f_gasman[i].name
753
- }
754
- rs.push(temp)
755
- }
756
- }
757
- return [{label: '全部', value: ''}, ...rs]
758
- },
759
- userstates() {
760
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
761
- }
762
- }
763
- }
764
- </script>
765
- <style>
766
- .back-red{ /* 红色背景 */
767
- background-color: #F6C6CE;
768
- }
769
- .back-blue{ /* 蓝色背景 */
770
-
771
- }
772
- </style>
773
-
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
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
135
+ condition="f_residential_area like '%{}%'" placeholder="小区"/>
136
+ </div>
137
+ <div class="col-sm-2 form-group">
138
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼栋&nbsp;&nbsp;&nbsp;</label>
139
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
140
+ condition="f_building = '{}'" placeholder="楼栋"/>
141
+ </div>
142
+ <div class="col-sm-2 form-group">
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_unit"
145
+ condition="f_unit = '{}'" placeholder="单元"/>
146
+ </div>
147
+ <div class="col-sm-2 form-group">
148
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼层&nbsp;&nbsp;</label>
149
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
150
+ condition="f_floor = '{}'" placeholder="楼层"/>
151
+ </div>
152
+ <div class="col-sm-2 form-group">
153
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;门牌号</label>
154
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
155
+ condition="f_room = '{}'" placeholder="门牌号">
156
+ </div>
157
+ <div class="col-sm-2 form-group">
158
+ <label class="font_normal_body">余额区间</label>
159
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_balance"
160
+ condition="f_balance >= '{}'" placeholder="最小值">
161
+ </div>
162
+ <div class="col-sm-2 form-group">
163
+ <label class="font_normal_body">&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
164
+ <input type="text" style="width:60%" class="input_search" v-model="model.balance2"
165
+ condition="f_balance <= '{}'" placeholder="最大值">
166
+ </div>
167
+ <div class="col-sm-2 form-group">
168
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表员</label>
169
+ <v-select :value.sync="model.f_inputtor"
170
+ v-model="model.f_inputtor" condition="f_inputtor = '{}'"
171
+ :options='$parent.$parent.inputtores' placeholder='请选择'
172
+ multiple = "true"
173
+ close-on-select></v-select>
174
+ </div>
175
+ <!-- <div class="col-sm-2" >-->
176
+ <!-- <label for="f_balance" class="font_normal_body">账户结余</label>-->
177
+ <!-- <div class="form-group">-->
178
+ <!-- <v-input id="f_balance" placeholder="账户结余"-->
179
+ <!-- :expression.sync = 'model.f_balance'-->
180
+ <!-- v-model="model.f_balance"-->
181
+ <!-- condition= "f_balance {}"-->
182
+ <!-- :show-reset-button="reset"-->
183
+ <!-- v-ref:f_balance>-->
184
+ <!-- </v-input>-->
185
+ <!-- </div>-->
186
+ <!-- </div>-->
187
+ <div class="col-sm-2 form-group">
188
+ <label for="startDate" class="font_normal_body">开始日期</label>
189
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
190
+ v-model="model.startDate"
191
+ :value.sync="model.startDate"
192
+ :format="'yyyy-MM-dd'"
193
+ :show-reset-button="true"
194
+ condition="f_createfile_date >= '{} 00:00:00'">
195
+ </datepicker>
196
+ </div>
197
+ <div class="col-sm-2 form-group">
198
+ <label for="endDate" class="font_normal_body">结束日期</label>
199
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
200
+ v-model="model.endDate"
201
+ :value.sync="model.endDate"
202
+ :format="'yyyy-MM-dd'"
203
+ :show-reset-button="true"
204
+ condition="f_createfile_date <= '{} 23:59:59'">
205
+ </datepicker>
206
+ </div>
207
+ <!--表册片区-->
208
+ <div class="col-sm-2 form-group">
209
+ <label class="font_normal_body">表册片区</label>
210
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
211
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
212
+ style="width:60%"
213
+ close-on-select
214
+ condition="f_book_slice_area = '{}'"></v-select>
215
+ </div>
216
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
217
+ </div>
218
+ </div>
219
+ </criteria>
220
+
221
+
222
+ <data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
223
+ <template partial='head'>
224
+ <tr>
225
+ <th>
226
+ <nobr>客户编号</nobr>
227
+ </th>
228
+ <th>
229
+ <nobr>客户名称</nobr>
230
+ </th>
231
+ <th>
232
+ <nobr>客户电话</nobr>
233
+ </th>
234
+ <th>
235
+ <nobr>身份证号</nobr>
236
+ </th>
237
+ <th>
238
+ <nobr>表册片区</nobr>
239
+ </th>
240
+ <th>
241
+ <nobr>账户余额</nobr>
242
+ </th>
243
+ <th>
244
+ <data-order field="f_address" name="客户地址"
245
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
246
+ </th>
247
+ <th>
248
+ <nobr>小区</nobr>
249
+ </th>
250
+ <th>
251
+ <nobr>楼栋</nobr>
252
+ </th>
253
+ <th>
254
+ <nobr>单元</nobr>
255
+ </th>
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
+ <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
+ </tr>
299
+ </template>
300
+ <template partial='body'>
301
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" ><nobr>
302
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
303
+ </nobr> </td>
304
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
305
+ <nobr>{{row.f_user_name}}</nobr>
306
+ </td>
307
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
308
+ <nobr>{{row.f_user_phone}}</nobr>
309
+ </td>
310
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
311
+ <nobr>{{row.f_idnumber}}</nobr>
312
+ </td>
313
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
314
+ <nobr>{{row.f_book_slice_area}}</nobr>
315
+ </td>
316
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
317
+ <nobr>{{row.f_balance}}</nobr>
318
+ </td>
319
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
320
+ <nobr>{{row.f_address}}</nobr>
321
+ </td>
322
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
323
+ <nobr>{{row.f_residential_area}}</nobr>
324
+ </td>
325
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
326
+ <nobr>{{row.f_building}}</nobr>
327
+ </td>
328
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
329
+ <nobr>{{row.f_unit}}</nobr>
330
+ </td>
331
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
332
+ <nobr>{{row.f_floor}}</nobr>
333
+ </td>
334
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
335
+ <nobr>{{row.f_room}}</nobr>
336
+ </td>
337
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
338
+ <nobr>{{row.f_user_state}}</nobr>
339
+ </td>
340
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
341
+ <nobr>{{row.f_createfile_date}}</nobr>
342
+ </td>
343
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
344
+ <nobr>{{row.f_createfile_person}}</nobr>
345
+ </td>
346
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
347
+ <nobr>{{row.f_cost_type}}</nobr>
348
+ </td>
349
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
350
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_accopen}}</span></nobr>
351
+ </td>
352
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
353
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_name}}</span></nobr>
354
+ </td>
355
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
356
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_account}}</span></nobr>
357
+ </td>
358
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
359
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_idnumber}}</span></nobr>
360
+ </td>
361
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
362
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_pay_number}}</span></nobr>
363
+ </td>
364
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
365
+ <nobr>{{row.f_comments}}</nobr>
366
+ </td>
367
+ <!-- <td style="text-align: center;">-->
368
+ <!-- <nobr>{{row.f_depname}}</nobr>-->
369
+ <!-- </td>-->
370
+ <!-- <td style="text-align: center;">-->
371
+ <!-- <nobr>{{row.f_orgname}}</nobr>-->
372
+ <!-- </td>-->
373
+ </template>
374
+ <template partial='foot'>
375
+ </template>
376
+ </data-grid>
377
+ </criteria-paged>
378
+
379
+ <table class="table-hover">
380
+ <tr style="position: relative" class="table-bordered">
381
+ <td
382
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
383
+ 汇总信息
384
+ </td>
385
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
386
+ 结余合计:&emsp;{{sumsmodel.f_balance}}
387
+ </td>
388
+ </tr>
389
+ </table>
390
+ </div>
391
+
392
+ </div>
393
+ </div>
394
+ <div class="basic-main" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
395
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
396
+ </div>
397
+ </div>
398
+ </template>
399
+
400
+ <script>
401
+ import {HttpResetClass, PagedList} from 'vue-client'
402
+ import defaultPrint from './config/DefaultPrint'
403
+ import exportConfig from './config/exportConfig'
404
+
405
+ let readySomething = async function (self) {
406
+ self.$MagGetSaleParam.initinputtor();
407
+ self.getinputtores();
408
+ // 获取区县
409
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
410
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
411
+ // await self.$refs.paged.$refs.cri.search()
412
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
413
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
414
+ }
415
+
416
+ export default {
417
+ title: '客户查询',
418
+ data() {
419
+ return {
420
+ other:[],
421
+ footer:[],
422
+ model: new PagedList('rs/sql/filesQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code desc'`}, {f_balance: 0}),
423
+ criteriaShow: false,
424
+ orgCondtionStr: '',
425
+ modelval: [],
426
+ printshow: false,
427
+ all: false,
428
+ fields: {},
429
+ //排序
430
+ orderitem:'f_userinfo_code desc',
431
+ orderFields: {
432
+ f_operate_date: 'no'
433
+ },
434
+ //默认打印列
435
+ defaultfield: [],
436
+ config: {
437
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_user_state']
438
+ },
439
+ balance2:'',
440
+ thead: '',
441
+ tfoot: '',
442
+ area: [],
443
+ //合计数据
444
+ sumsmodel: {},
445
+ initres: {
446
+ org:[this.$login.f.orgid],
447
+ dep:[],
448
+ user:[],
449
+ },
450
+ userdetail: {
451
+ show: false,
452
+ f_userinfo_code: '',
453
+ f_filialeids: ''
454
+ },
455
+ userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
456
+ show:false,
457
+ rowdata:{},
458
+ meterInfo:{},
459
+ deviceInfo:{},
460
+ condition2:'',
461
+
462
+
463
+ weixinSign:[{label:"全部",value:""},{label:"已绑定",value:"已绑定"},{label:"未绑定",value:"未绑定"}],
464
+ //小区
465
+ // residentialArea: [],
466
+ //表册片区
467
+ bookSlice:[{label: '全部',value: ''}],
468
+ inputtores:[{label: '全部',value: ''}], //抄表员
469
+ allorgid:[],
470
+ f_filialeid: this.$login.f.f_orgid,
471
+ dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
472
+ }
473
+ },
474
+ ready() {
475
+ // this.getaddress()
476
+
477
+ readySomething(this).then(() => {
478
+ this.$emit('ready')
479
+ }).catch((error) => {
480
+ this.$emit('error', error)
481
+ })
482
+ this.initAreas(this.$login.f.orgid)
483
+ },
484
+ methods: {
485
+ async getinputtores () {
486
+ // 获取抄表员
487
+ let rs = []
488
+ if (this.$login.f.f_gasman.length > 0) {
489
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
490
+ let temp = {
491
+ label: this.$login.f.f_gasman[i].name,
492
+ value: this.$login.f.f_gasman[i].name
493
+ }
494
+ rs.push(temp)
495
+ }
496
+ }
497
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
498
+ },
499
+ async updateParams() {
500
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
501
+ this.inputtores = [];
502
+ this.inputtores.push({label: "全部", value: ""})
503
+ this.initSlice(this.f_filialeid)
504
+ if(this.allorgid!=null){
505
+ this.allorgid.forEach((res)=>{
506
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
507
+ })
508
+ }
509
+ },
510
+ getotherfooter () {
511
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
512
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
513
+ this.other = [];
514
+ this.footer = [];
515
+ let exportdata = this.getCondition;
516
+ let otherInData = [];
517
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
518
+ let footerData = [], exportfield = this.getExportField;
519
+ footerData.push("合计");
520
+ let self = this;
521
+ for (var field in self.sumsmodel) {
522
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
523
+ }
524
+ this.footer.push(footerData);
525
+ this.other.push(otherInData);
526
+ },
527
+
528
+ //把数据库查询数据转换为下拉数据
529
+ calculate(rows){
530
+ let data = []
531
+ rows.forEach((row, n) => {
532
+ data[n] = {label: row.f_residential_area, value: row.id}
533
+ })
534
+ return data
535
+ },
536
+ search(){
537
+ this.$refs.paged.$refs.cri.search()
538
+ },
539
+ cancel(obj) {
540
+ this.show = false
541
+ },
542
+ showmsg(obj){
543
+
544
+ this.rowdata=obj
545
+ this.show=true
546
+ // let http = new HttpResetClass()
547
+ // http.load('POST','rs/sql/getUserMeter',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
548
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
549
+ // this.meterInfo = res.data})
550
+ // let http2 = new HttpResetClass()
551
+ // http2.load('POST','rs/sql/deviceQuery',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
552
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
553
+ // this.deviceInfo = res.data})
554
+
555
+ // this.f_userinfo_id=obj.f_userinfo_id
556
+ },
557
+ //初始化片区
558
+ async initSlice (val) {
559
+ if (val) {
560
+ let getAllArea = await this.$resetpost('/rs/search', {
561
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
562
+ userid: this.$login.f.id
563
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
564
+ let arr = getAllArea.data.filter((res) => {
565
+ return res.parentid == val
566
+ })
567
+ this.bookSlice = []
568
+ console.log('过滤之后的片区-------------------', arr)
569
+ arr.forEach((res) => {
570
+ this.bookSlice.push({label: res.name, value: res.name})
571
+ })
572
+ }
573
+ },
574
+ async initAreas (val) {
575
+
576
+ if (val) {
577
+ let getAllArea = await this.$resetpost('/rs/search', {
578
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
579
+ userid: this.$login.f.id
580
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
581
+
582
+ let arr = getAllArea.data.filter((res) => {
583
+ return res.parentid == val
584
+ })
585
+ console.log('过滤之后的片区', arr)
586
+ this.sliceArea = []
587
+ arr.forEach((res) => {
588
+ this.sliceArea.push({label: res.name, value: res.name})
589
+ })
590
+ }
591
+ },
592
+ selfSearch(args) {
593
+
594
+ if (!this.orgCondtionStr) {
595
+ args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
596
+ } else {
597
+ args.condition = `${args.condition}` + this.orgCondtionStr
598
+ }
599
+ this.condition2 = args.condition
600
+ this.model.search(args.condition, args.model)
601
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
602
+ console.log('合计字段', this.sumsmodel)
603
+ },
604
+ clear() {
605
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
606
+ this.$refs.paged.$refs.cri.model[key] = []
607
+ })
608
+ },
609
+ hidden() {
610
+ this.criteriaShow = !this.criteriaShow
611
+ },
612
+ getRes(obj) {
613
+ this.orgCondtionStr = obj
614
+ },
615
+ stamp() {
616
+ this.all = false
617
+ //默认选择要打印的列
618
+ this.modelval = defaultPrint.config
619
+ this.fields = this.getfield
620
+ console.log('所有打印字段', this.fields)
621
+ this.printshow = true
622
+ this.put()
623
+ },
624
+ put() {
625
+ // 对Modelval进行排序
626
+ this.sortModelval()
627
+ this.thead = `<tr><th colspan=${this.modelval.length}>用户查询统计报表</th></tr><tr>`
628
+ for (let key of this.modelval) {
629
+ this.thead += '<th>' + this.fields[key] + '</th>'
630
+ }
631
+ this.thead += '</tr>'
632
+ },
633
+ print() {
634
+ this.$refs.print.PrintAsFile()
635
+ this.printshow = false
636
+ },
637
+ close() {
638
+ this.printshow = false
639
+ },
640
+ // 对选择的列进行排序
641
+ sortModelval() {
642
+ let sortModel = []
643
+ Object.keys(this.fields).forEach((key) => {
644
+ if (this.modelval.includes(key)) {
645
+ sortModel.push(key)
646
+ }
647
+ })
648
+ this.modelval = sortModel
649
+ console.log('选择的打印的字段', this.modelval)
650
+ },
651
+ dblclick(row, index) {
652
+ console.log('双击之后数据', row, index)
653
+ this.userdetail.show = true
654
+ this.userdetail.f_userinfo_code = row.f_userinfo_code
655
+ this.userdetail.f_filialeids = row.f_filialeids
656
+ },
657
+ sort (field, rule) {
658
+ // 将所有排序方式设为不排序,实现相互排斥
659
+ for (let key in this.orderFields) {
660
+ if (key === field) {
661
+ this.orderFields[key] = rule
662
+ } else {
663
+ this.orderFields[key] = 'no'
664
+ }
665
+ }
666
+ // 如果新规则不排序,还原为默认排序
667
+ if (rule === 'no') {
668
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
669
+ } else {
670
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
671
+ }
672
+
673
+ this.search()
674
+ }
675
+ },
676
+
677
+ watch: {
678
+ 'all'(val) {
679
+ if (val) {
680
+ this.modelval = this.bodyData
681
+ } else {
682
+ this.modelval = defaultPrint.config
683
+ this.put()
684
+ }
685
+ },
686
+ 'modelval.length'() {
687
+ this.put()
688
+ },
689
+ sumsmodel:{
690
+ handler: function(val) {
691
+ this.getotherfooter();
692
+ },
693
+ deep: true
694
+ },
695
+ 'orgCondtionStr'(val) {
696
+ let res = val.match(/'(.*?)'/)
697
+ console.log('正则提取:',res && res[1])
698
+ if (res) {
699
+ this.f_filialeid = res[1]
700
+ if(res.input !=null){
701
+ let resorgid = res.input.substring(res.input.indexOf("'"));
702
+ if(resorgid!= null && resorgid!=''){
703
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
704
+ // resorgid = resorgid.replaceAll("'","");
705
+ resorgid = resorgid.replace(/'/g,"");
706
+ this.allorgid = resorgid.split(",")
707
+ }
708
+ }
709
+ this.updateParams()
710
+ }
711
+ },
712
+ },
713
+ computed: {
714
+ // defaultexport() {
715
+ // return exportConfig.chargeexportConfig
716
+ // },
717
+ authArr () {
718
+ return this.$login.r ? this.$login.r : []
719
+ },
720
+
721
+ getCondition() {
722
+ return {condition: this.condition2,orderitem:this.orderitem}
723
+ },
724
+ getfield() {
725
+ let data = {}
726
+ this.bodyData.forEach((value, index) => {
727
+ data[this.bodyData[index]] = this.headData[index]
728
+ })
729
+ //合计字段打印
730
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
731
+ if (this.sumsmodel) {
732
+ Object.keys(this.sumsmodel).forEach((key) => {
733
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
734
+ })
735
+ } else {
736
+ this.tfoot += '暂无'
737
+ }
738
+ this.tfoot += '</th></tr>'
739
+ return data
740
+ },
741
+ getExportField() {
742
+ return exportConfig.userConfig
743
+ },
744
+ inputtor () {
745
+ // 获取抄表员
746
+ console.log('获取抄表员', this.$login.f)
747
+ let rs = []
748
+ if (this.$login.f.f_gasman.length > 0) {
749
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
750
+ let temp = {
751
+ label: this.$login.f.f_gasman[i].name,
752
+ value: this.$login.f.f_gasman[i].name
753
+ }
754
+ rs.push(temp)
755
+ }
756
+ }
757
+ return [{label: '全部', value: ''}, ...rs]
758
+ },
759
+ userstates() {
760
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
761
+ }
762
+ }
763
+ }
764
+ </script>
765
+ <style>
766
+ .back-red{ /* 红色背景 */
767
+ background-color: #F6C6CE;
768
+ }
769
+ .back-blue{ /* 蓝色背景 */
770
+
771
+ }
772
+ </style>
773
+