manage-client 3.3.76 → 3.3.77

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