manage-client 3.2.32 → 3.2.36

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 (59) hide show
  1. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.4.1/gc.properties +0 -0
  4. package/build/dev-server.js +28 -9
  5. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  6. package/package.json +1 -1
  7. package/src/.idea/misc.xml +9 -0
  8. package/src/.idea/modules.xml +8 -0
  9. package/src/.idea/src.iml +9 -0
  10. package/src/.idea/vcs.xml +6 -0
  11. package/src/.idea/workspace.xml +93 -0
  12. package/src/components/sale/businessquery/AreaChargeQuery.vue +380 -0
  13. package/src/components/sale/businessquery/BusinesQuery.vue +358 -358
  14. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -632
  15. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -357
  16. package/src/components/sale/businessquery/ChargeQuery.vue +8 -3
  17. package/src/components/sale/businessquery/CollectManage.vue +3 -0
  18. package/src/components/sale/businessquery/DisableQuery.vue +451 -451
  19. package/src/components/sale/businessquery/EnableQuery.vue +408 -408
  20. package/src/components/sale/businessquery/FillCardQuery.vue +486 -486
  21. package/src/components/sale/businessquery/FillGasQuery.vue +511 -511
  22. package/src/components/sale/businessquery/InspectListUser.vue +412 -433
  23. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -634
  24. package/src/components/sale/businessquery/ReverseQuery.vue +402 -402
  25. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  26. package/src/components/sale/businessquery/TransferQuery.vue +418 -418
  27. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  28. package/src/components/sale/config/exportConfig.js +3 -0
  29. package/src/components/sale/filesquery/ArchivesManage.vue +57 -57
  30. package/src/components/sale/filesquery/DeviceQuery.vue +534 -534
  31. package/src/components/sale/filesquery/FireQuery.vue +477 -477
  32. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1260
  33. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  34. package/src/components/statistical/DendrogramManage.vue +239 -204
  35. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  36. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  37. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  38. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  39. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  40. package/src/filiale/meihekou/DeviceQuery.vue +545 -545
  41. package/src/filiale/meihekou/RecordInfoQuery.vue +1168 -1168
  42. package/src/filiale/meihekou/config/exportConfig.js +831 -831
  43. package/src/filiale/meihekou/sale.js +31 -31
  44. package/src/filiale/pingxiang/sale.js +9 -9
  45. package/src/filiale/qingtongxia/sale.js +13 -13
  46. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  47. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  48. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  49. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  50. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  51. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  52. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  53. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  54. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  55. package/src/filiale/tongchuan/ChargeQuery.vue +1270 -1270
  56. package/src/filiale/tongchuan/FillGasQuery.vue +523 -523
  57. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  58. package/src/main.js +10 -10
  59. package/src/saleManage.js +533 -529
@@ -1,1168 +1,1168 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex">
5
- <div style="flex:1;" class="flex" v-if="!show">
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 = '{}'" placeholder="客户名称">
19
- </div>
20
- <div class="col-sm-2 form-group" >
21
- <label class="font_normal_body" title="参数名称:用户状态">客户状态</label>
22
- <v-select :value.sync="model.f_user_state"
23
- title="参数名称:用户状态"
24
- v-model="model.f_user_state"
25
- :options='$parent.$parent.userstates' placeholder='请选择'
26
- condition="f_user_state = '{}'"
27
- close-on-select></v-select>
28
- </div>
29
-
30
- <div class="span" style = "float:right;">
31
- <button class="button_search button_spacing" v-show="false" @click="$parent.$parent.ReadIDCard()">读取身份证</button>
32
- <read-card :is-single.sync="$parent.$parent.isSingleUser" @read-info="$parent.$parent.cardBtn" v-ref:readcard></read-card>
33
- <button class="button_search button_spacing" @click="search()">查询</button>
34
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
35
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
36
-
37
- <export-excel :data="$parent.$parent.getCondition"
38
- :field="$parent.$parent.getExportField"
39
- :header="$parent.$parent.other"
40
- v-if="$parent.$parent.authArr.includes('档案查询导出')"
41
- sqlurl="rs/logic/exportfile" sql-name="compreQuery" template-name='综合档案查询导出' :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
- <div style="float: right" class="button_spacing"
47
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
48
- @click="$parent.$parent.hidden()"></div>
49
- </div>
50
- </div>
51
-
52
- <div class="row" v-show="$parent.$parent.criteriaShow">
53
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
54
- <div class="col-sm-2 form-group" >
55
- <label for="startDate" class="font_normal_body" title="建档开始日期">开始日期</label>
56
- <datepicker id="startDate" placeholder="建档开始日期" style="width:60%"
57
- v-model="model.startDate"
58
- :value.sync="model.startDate"
59
- :format="'yyyy-MM-dd'"
60
- :show-reset-button="true"
61
- condition="f_createfile_date >= '{} 00:00:00'">
62
- </datepicker>
63
- </div>
64
- <div class="col-sm-2 form-group" >
65
- <label for="endDate" class="font_normal_body" title="建档结束日期">结束日期</label>
66
- <datepicker id="endDate" placeholder="建档结束日期" style="width:60%"
67
- v-model="model.endDate"
68
- :value.sync="model.endDate"
69
- :format="'yyyy-MM-dd'"
70
- :show-reset-button="true"
71
- condition="f_createfile_date <= '{} 23:59:59'">
72
- </datepicker>
73
- </div>
74
-
75
- <div class="col-sm-2 form-group">
76
- <label class="font_normal_body">气表分类</label>
77
- <v-select :value.sync="model.f_meter_classify"
78
- v-model="model.f_meter_classify"
79
- :options='$parent.$parent.metertypes' placeholder='请选择'
80
- condition="f_meter_classify = '{}'"
81
- close-on-select></v-select>
82
- </div>
83
-
84
- <div class="col-sm-2 form-group">
85
- <label class="font_normal_body">气表品牌</label>
86
- <v-select :value.sync="model.f_meter_brand"
87
- v-model="model.f_meter_brand"
88
- :options='$parent.$parent.meterbrands' placeholder='请选择'
89
- condition="f_meter_brand = '{}'"
90
- close-on-select></v-select>
91
- </div>
92
- <div class="col-sm-2 form-group">
93
- <label class="font_normal_body">客户类型</label>
94
- <v-select :value.sync="model.f_user_type"
95
- :options='$parent.$parent.usertypes'
96
- @change="$parent.$parent.userTypeChange()"
97
- placeholder='请选择' v-model="model.f_user_type"
98
- condition="f_user_type = '{}'"
99
- close-on-select></v-select>
100
- </div>
101
- <div class="col-sm-2 form-group" >
102
- <label for="startDate1" class="font_normal_body" title="抄表开始日期">抄表日期</label>
103
- <datepicker id="startDate1" placeholder="开始日期" style="width:60%"
104
- v-model="model.startDate1"
105
- :value.sync="model.startDate1"
106
- :format="'yyyy-MM-dd'"
107
- :show-reset-button="true"
108
- condition="f_hand_date >= '{} 00:00:00'">
109
- </datepicker>
110
- </div>
111
- <div class="col-sm-2 form-group" >
112
- <label for="endDate1" class="font_normal_body" title="抄表结束日期">抄表日期</label>
113
- <datepicker id="endDate1" placeholder="结束日期" style="width:60%"
114
- v-model="model.endDate1"
115
- :value.sync="model.endDate1"
116
- :format="'yyyy-MM-dd'"
117
- :show-reset-button="true"
118
- condition="f_hand_date <= '{} 23:59:59'">
119
- </datepicker>
120
- </div>
121
- <div class="col-sm-2 form-group">
122
- <label class="font_normal_body">小&emsp;&emsp;区</label>
123
- <!-- <v-select :value.sync="model.f_residential_area"-->
124
- <!-- class="select_list select"-->
125
- <!-- enter-push-->
126
- <!-- multiple-->
127
- <!-- condition="f_residential_area in {}"-->
128
- <!-- v-model="model.f_residential_area"-->
129
- <!-- style="width: 60%"-->
130
- <!-- :options='$parent.$parent.residentialArea' placeholder='选择小区'-->
131
- <!-- close-on-select>-->
132
- <!-- </v-select>-->
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>
136
- <div class="col-sm-2 form-group" >
137
- <label class="font_normal_body">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
138
- <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
139
- condition="f_building = '{}'" placeholder='楼号'>
140
- </div>
141
- <div class="col-sm-2 form-group" >
142
- <label class="font_normal_body">单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;元</label>
143
- <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
144
- condition="f_unit = '{}'" placeholder='单元号'>
145
- </div>
146
-
147
- <div class="col-sm-2 form-group" >
148
- <label class="font_normal_body">楼&nbsp;&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">门&ensp;牌&ensp;号</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_address"
160
- condition="f_address like '%{}%'" placeholder='客户地址'>
161
- </div>
162
- <div class="col-sm-2 form-group" >
163
- <label class="font_normal_body">用&ensp;气&ensp;点</label>
164
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userfiles_address"
165
- condition="f_userfiles_address like '%{}%'" placeholder="用气点">
166
- </div>
167
- <div class="col-sm-2 form-group">
168
- <label class="font_normal_body">用气性质</label>
169
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
170
- :options='$parent.$parent.gasproperties' placeholder='请选择'
171
- condition="f_gasproperties = '{}'"
172
- close-on-select></v-select>
173
- </div>
174
- <div class="col-sm-2 form-group">
175
- <label class="font_normal_body">气价类型</label>
176
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
177
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
178
- condition="f_price_type = '{}'"
179
- close-on-select v-ref:type>
180
- </v-select>
181
- </div>
182
- <div class="col-sm-2 form-group">
183
- <label class="font_normal_body">气价名称</label>
184
- <v-select :value.sync="model.f_price_name" v-model="model.f_price_name"
185
- :options="$parent.$parent.pricenames" placeholder='气价名称'
186
- condition="f_price_name = '{}'"
187
- :is-mul="mul"
188
- close-on-select ></v-select>
189
- </div>
190
- <div class="col-sm-2 form-group" >
191
- <label class="font_normal_body">微信绑定</label>
192
- <v-select :value.sync="model.f_isband"
193
- v-model="model.f_isband"
194
- :options='$parent.$parent.bandstates' placeholder='请选择'
195
- condition="f_isband = '{}'"
196
- close-on-select></v-select>
197
- </div>
198
- <div class="col-sm-2 form-group">
199
- <label class="font_normal_body">壁&ensp;挂&ensp;炉</label>
200
- <v-select :value.sync="model.isbgl" v-model="model.isbgl"
201
- :options='$parent.$parent.bgl' placeholder='请选择'
202
- condition="isbgl = '{}'"
203
- close-on-select></v-select>
204
- </div>
205
- <div class="col-sm-2 form-group">
206
- <label class="font_normal_body">灶&ensp;前&ensp;阀</label>
207
- <v-select :value.sync="model.f_zqf" v-model="model.f_zqf"
208
- :options='$parent.$parent.zqf' placeholder='请选择'
209
- condition="f_zqf = '{}'"
210
- close-on-select></v-select>
211
- </div>
212
- <div class="col-sm-2 form-group">
213
- <label class="font_normal_body">发卡状态</label>
214
- <v-select :value.sync="model.whetherhairpin" v-model="model.whetherhairpin"
215
- :options='$parent.$parent.whetherCard' placeholder='请选择'
216
- condition="f_whether_hairpin = '{}'"
217
- close-on-select></v-select>
218
- </div>
219
- <div class="col-sm-2 form-group">
220
- <label class="font_normal_body">安装位置</label>
221
- <v-select :value.sync="model.f_position" v-model="model.f_position"
222
- :options='$parent.$parent.positions' placeholder='请选择'
223
- condition="f_position = '{}'"
224
- close-on-select></v-select>
225
- </div>
226
-
227
- <!--表册片区-->
228
- <div class="col-sm-2 form-group">
229
- <label class="font_normal_body">表册片区</label>
230
- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
231
- @change="$parent.$parent.inputtorchange"
232
- :options='$parent.$parent.bookSlice' placeholder='片区/表册'
233
- style="width:60%"
234
- close-on-select
235
- condition="f_book_slice_area = '{}'"></v-select>
236
- </div>
237
- <div class="col-sm-2 form-group">
238
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
239
- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
240
- :options='$parent.$parent.meterbooks' placeholder='请选择'
241
- style="width:60%"
242
- close-on-select
243
- condition="f_meter_book_num = '{}'"></v-select>
244
- </div>
245
- <div class="col-sm-2 form-group">
246
- <label class="font_normal_body">房屋类型</label>
247
- <v-select :value.sync="model.f_house_type" v-model="model.f_house_type"
248
- :options='$parent.$parent.houseTypes' placeholder='请选择'
249
- style="width:60%"
250
- close-on-select
251
- condition="f_house_type = '{}'"></v-select>
252
- </div>
253
- <div class="col-sm-2 form-group">
254
- <label class="font_normal_body" >缴费类型</label>
255
- <v-select :value.sync="model.f_payment" multiple
256
- v-model="model.f_payment"
257
- :options='$parent.$parent.dypayment' placeholder='请选择'
258
- condition="f_cost_type in {}"
259
- close-on-select></v-select>
260
- </div>
261
- <div class="col-sm-2 form-group" >
262
- <label for="startDate2" class="font_normal_body" title="开户时间">开户时间</label>
263
- <datepicker id="startDate2" placeholder="开始日期" style="width:60%"
264
- v-model="model.startDate2"
265
- :value.sync="model.startDate2"
266
- :format="'yyyy-MM-dd'"
267
- :show-reset-button="true"
268
- condition="f_open_date >= '{} 00:00:00'">
269
- </datepicker>
270
- </div>
271
- <div class="col-sm-2 form-group" >
272
- <label for="endDate2" class="font_normal_body" title="开户时间">开户时间</label>
273
- <datepicker id="endDate2" placeholder="结束日期" style="width:60%"
274
- v-model="model.endDate2"
275
- :value.sync="model.endDate2"
276
- :format="'yyyy-MM-dd'"
277
- :show-reset-button="true"
278
- condition="f_open_date <= '{} 23:59:59'">
279
- </datepicker>
280
- </div>
281
- <div class="col-sm-2 form-group" >
282
- <label for="startDate3" class="font_normal_body" title="安装日期">安装日期</label>
283
- <datepicker id="startDate3" placeholder="开始日期" style="width:60%"
284
- v-model="model.startDate3"
285
- :value.sync="model.startDate3"
286
- :format="'yyyy-MM-dd'"
287
- :show-reset-button="true"
288
- condition="f_install_date >= '{} 00:00:00'">
289
- </datepicker>
290
- </div>
291
- <div class="col-sm-2 form-group" >
292
- <label for="endDate3" class="font_normal_body" title="安装日期">安装日期</label>
293
- <datepicker id="endDate3" placeholder="结束日期" style="width:60%"
294
- v-model="model.endDate3"
295
- :value.sync="model.endDate3"
296
- :format="'yyyy-MM-dd'"
297
- :show-reset-button="true"
298
- condition="f_install_date <= '{} 23:59:59'">
299
- </datepicker>
300
- </div>
301
- <div class="col-sm-2 form-group" >
302
- <label for="endDate4" class="font_normal_body" title="点火时间">点火时间</label>
303
- <datepicker id="endDate4" placeholder="开始日期" style="width:60%"
304
- v-model="model.startDate4"
305
- :value.sync="model.startDate4"
306
- :format="'yyyy-MM-dd'"
307
- :show-reset-button="true"
308
- condition="f_gas_date >= '{} 00:00:00'">
309
- </datepicker>
310
- </div>
311
- <div class="col-sm-2 form-group" >
312
- <label for="endDate4" class="font_normal_body" title="点火时间">点火时间</label>
313
- <datepicker id="endDate4" placeholder="结束日期" style="width:60%"
314
- v-model="model.endDate4"
315
- :value.sync="model.endDate4"
316
- :format="'yyyy-MM-dd'"
317
- :show-reset-button="true"
318
- condition="f_gas_date <= '{} 23:59:59'">
319
- </datepicker>
320
- </div>
321
- <div class="col-sm-2 form-group" >
322
- <label class="font_normal_body">气表表号</label>
323
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
324
- condition="f_meternumber like '%{}%'" placeholder='气表表号'>
325
- </div>
326
- <div class="col-sm-2 form-group">
327
- <label class="font_normal_body">使用类型</label>
328
- <v-select :value.sync="model.f_usetype" v-model="model.f_usetype"
329
- :options='$parent.$parent.useTypes' placeholder='请选择'
330
- style="width:60%"
331
- close-on-select
332
- condition="f_usetype = '{}'"></v-select>
333
- </div>
334
- <div class="col-sm-2 form-group">
335
- <label class="font_normal_body">表具状态</label>
336
- <v-select :value.sync="model.f_table_state" v-model="model.f_table_state"
337
- :options='$parent.$parent.TableStates' placeholder='请选择'
338
- style="width:60%"
339
- close-on-select
340
- condition="f_table_state = '{}'"></v-select>
341
- </div>
342
- <div class="col-sm-2 form-group">
343
- <label class="font_normal_body">档案抄表员</label>
344
- <v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
345
- style="width:60%"
346
- :multiple="true"
347
- :options='$parent.$parent.inputtores' placeholder='档案抄表员'
348
- close-on-select
349
- v-el:cc></v-select>
350
- </div>
351
- <div class="col-sm-2 form-group">
352
- <label class="font_normal_body">表册抄表员</label>
353
- <v-select :value.sync="model.f_book_inputtor" v-model='model.f_book_inputtor'
354
- style="width:60%"
355
- :multiple="true"
356
- :options='$parent.$parent.inputtores' placeholder='表册抄表员'
357
- close-on-select
358
- v-el:cc></v-select>
359
- </div>
360
- <div class="col-sm-2 form-group">
361
- <label class="font_normal_body">安装人</label>
362
- <v-select :value.sync="model.f_install_person" v-model='model.f_install_person'
363
- style="width:60%"
364
- :multiple="true"
365
- :options='$parent.$parent.person' placeholder='安装人'
366
- condition="f_install_person = '{}'"
367
- close-on-select
368
- v-el:cc></v-select>
369
- </div>
370
- </div>
371
- </div>
372
- </criteria>
373
-
374
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
375
- <template partial='head'>
376
- <tr>
377
- <th><nobr>客户状态</nobr></th>
378
- <th><nobr>客户编号</nobr></th>
379
- <th><nobr>是否发卡</nobr></th>
380
- <th><nobr>卡号</nobr></th>
381
- <th><nobr>客户名称</nobr></th>
382
- <th><nobr>小区名称</nobr></th>
383
- <th>
384
- <data-order field="f_userinfo_code" name="客户地址"
385
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
386
- </th>
387
- <th><nobr>客户电话</nobr></th>
388
- <th><nobr>表册片区</nobr></th>
389
- <th><nobr>通气日期</nobr></th>
390
- <!-- 气价类型,单价暂时未处理 -->
391
- <th><nobr>气价类型</nobr></th>
392
- <th><nobr>气价名称</nobr></th>
393
- <th><nobr>单价</nobr></th>
394
-
395
- <th><nobr>安装位置</nobr></th>
396
- <th><nobr>缴费类型</nobr></th>
397
- <th><nobr>气表类型</nobr></th>
398
- <th><nobr>气表品牌</nobr></th>
399
- <th><nobr>表号</nobr></th>
400
- <th><nobr>表封号</nobr></th>
401
- <th><nobr>左右表</nobr></th>
402
- <th><nobr>气表安装日期</nobr></th>
403
- <th><nobr>气表底数</nobr></th>
404
- <th><nobr>账户余额</nobr></th>
405
- <th><nobr>最后抄表日期</nobr></th>
406
- <!--<th><nobr>最后购气日期</nobr></th>-->
407
-
408
- <th><nobr>阀门状态</nobr></th>
409
-
410
- <!-- <th><nobr>旧客户编号</nobr></th> -->
411
- <th><nobr>客户类型</nobr></th>
412
- <th><nobr>用气性质</nobr></th>
413
- <th><nobr>开户时间</nobr></th>
414
- <th><nobr>证件类型</nobr></th>
415
- <th><nobr>证件号码</nobr></th>
416
- <th><nobr>人口数</nobr></th>
417
- <th><nobr>保险结束日期</nobr></th>
418
- <th><nobr>建档日期</nobr></th>
419
- <th><nobr>建档人</nobr></th>
420
- <th><nobr>所属营业厅</nobr></th>
421
- <th><nobr>备注信息</nobr></th>
422
-
423
- <!-- <th><nobr>气价详情</nobr></th>-->
424
- <th><nobr>曾用名</nobr></th>
425
- <th><nobr>备用电话</nobr></th>
426
- <th><nobr>租户姓名</nobr></th>
427
- <th><nobr>租户电话</nobr></th>
428
- <!--<th><nobr>曾用名</nobr></th>-->
429
- <th><nobr>发票编码</nobr></th>
430
- <th><nobr>是否煤改气</nobr></th>
431
- <th><nobr>是否发放天然气使用证</nobr></th>
432
-
433
- <th><nobr>使用类型</nobr></th>
434
-
435
- <!-- <th><nobr>使用状态</nobr></th>-->
436
- <!--<th><nobr>通气时间</nobr></th>-->
437
-
438
- <th><nobr>气表型号</nobr></th>
439
- <th><nobr>表具状态</nobr></th>
440
- <th><nobr>初始气表底数</nobr></th>
441
- <th><nobr>累计用气金额</nobr></th>
442
- <th><nobr>表累购气量</nobr></th>
443
- <th><nobr>表累购金额</nobr></th>
444
-
445
- <th><nobr>抄表员(表册)</nobr></th>
446
- <th><nobr>抄表员(档案)</nobr></th>
447
- <th><nobr>用气点</nobr></th>
448
- <th><nobr>灶前阀</nobr></th>
449
- <th><nobr>安装人</nobr></th>
450
- <th><nobr>通气人</nobr></th>
451
- <!-- <th><nobr>点火状态</nobr></th>-->
452
- <th><nobr>抄表册编号</nobr></th>
453
-
454
- <th><nobr>抄表册顺序</nobr></th>
455
- <th><nobr>表剩余金额</nobr></th>
456
- <!-- <th><nobr>首次购气日期</nobr></th>-->
457
- <th><nobr>写卡次数</nobr></th>
458
- <th><nobr>补卡次数</nobr></th>
459
- <!-- <th><nobr>购气次数</nobr></th>-->
460
-
461
- <th><nobr>表同步状态</nobr></th>
462
- <th><nobr>微信绑定</nobr></th>
463
-
464
- <th>
465
- <nobr>银行户名</nobr>
466
- </th>
467
- <th>
468
- <nobr>银行名称</nobr>
469
- </th>
470
- <th>
471
- <nobr>银行账号</nobr>
472
- </th>
473
- <th>
474
- <nobr>银行身份证号</nobr>
475
- </th>
476
- <th>
477
- <nobr>缴费编号</nobr>
478
- </th>
479
- <th>
480
- <nobr>报警器编号</nobr>
481
- </th>
482
- <th>
483
- <nobr>换表时间</nobr>
484
- </th>
485
- <th>
486
- <nobr>灶具信息</nobr>
487
- </th>
488
- </tr>
489
- </template>
490
- <template partial='body'>
491
- <!--<td style="text-align: center;"><nobr>-->
492
- <!--<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>-->
493
- <!--</nobr> </td>-->
494
- <td style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></td>
495
- <td style="text-align: center;"><nobr>{{row.f_userinfo_code}}</nobr></td>
496
- <td style="text-align: center;"><nobr>{{row.f_whether_hairpin}}</nobr></td>
497
- <td style="text-align: center;"><nobr>{{row.f_card_id}}</nobr></td>
498
- <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
499
- <td style="text-align: center;"><nobr>{{row.f_residential_area}}</nobr></td>
500
- <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
501
- <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
502
- <td style="text-align: center;"><nobr>{{row.f_book_slice_area}}</nobr></td>
503
- <td style="text-align: center;"><nobr>{{row.f_gas_date}}</nobr></td>
504
- <!-- 气价类型,单价暂时未处理 -->
505
- <td style="text-align: center;"><nobr>&nbsp;&nbsp;</nobr></td>
506
- <td style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></td>
507
- <td style="text-align: center;"><nobr>{{row.value}}</nobr></td>
508
-
509
- <td style="text-align: center;"><nobr>{{row.f_position}}</nobr></td>
510
- <td style="text-align: center;"><nobr>{{row.f_cost_type}}</nobr></td>
511
- <td style="text-align: center;"><nobr>{{row.f_meter_type}}</nobr></td>
512
- <td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
513
- <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
514
- <td style="text-align: center;"><nobr>{{row.f_metertitles}}</nobr></td>
515
- <td style="text-align: center;"><nobr>{{row.f_aroundmeter}}</nobr></td>
516
- <td style="text-align: center;"><nobr>{{row.f_install_date}}</nobr></td>
517
- <td style="text-align: center;"><nobr>{{row.f_meter_base}}</nobr></td>
518
- <td style="text-align: center;"><nobr>{{row.f_balance}}</nobr></td>
519
- <td style="text-align: center;"><nobr>{{row.f_hand_date}}</nobr></td>
520
- <!-- <td style="text-align: center;"><nobr>{{row.f_max_operate_date}}</nobr></td>-->
521
- <td style="text-align: center;"><nobr>{{row.f_valve_state}}</nobr></td>
522
-
523
- <!-- <td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>-->
524
- <td style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></td>
525
- <td style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></td>
526
-
527
- <td style="text-align: center;"><nobr>{{row.f_open_date}}</nobr></td>
528
- <td style="text-align: center;"><nobr>{{row.f_credentials}}</nobr></td>
529
- <td style="text-align: center;"><nobr>{{row.f_idnumber}}</nobr></td>
530
- <td style="text-align: center;"><nobr>{{row.f_people_num}}</nobr></td>
531
- <td style="text-align: center;"><nobr>{{row.f_ins_stop_date}}</nobr></td>
532
- <td style="text-align: center;"><nobr>{{row.f_createfile_date}}</nobr></td>
533
- <td style="text-align: center;"><nobr>{{row.f_createfile_person}}</nobr></td>
534
- <td style="text-align: center;"><nobr>{{row.f_depname}}</nobr></td>
535
- <td style="text-align: center;"><nobr>{{row.f_comments}}</nobr></td>
536
-
537
- <!-- <td style="text-align: center;"><nobr>{{row.value}}</nobr></td>-->
538
- <td style="text-align: center;"><nobr>{{row.f_used_name}}</nobr></td>
539
- <td style="text-align: center;"><nobr>{{row.f_rent_phone}}</nobr></td>
540
- <td style="text-align: center;"><nobr>{{row.f_rent_name}}</nobr></td>
541
- <td style="text-align: center;"><nobr>{{row.f_zuhu_phone}}</nobr></td>
542
- <td style="text-align: center;"><nobr>{{row.f_contract_id}}</nobr></td>
543
- <td style="text-align: center;"><nobr>{{row.f_is_mgq}}</nobr></td>
544
- <td style="text-align: center;"><nobr>{{row.f_send_usegas_card}}</nobr></td>
545
-
546
- <td style="text-align: center;"><nobr>{{row.f_usetype}}</nobr></td>
547
- <!-- <td style="text-align: center;"><nobr>{{row.f_usestate}}</nobr></td>-->
548
- <!--<td style="text-align: center;"><nobr>{{row.f_people_num}}</nobr></td>-->
549
-
550
- <td style="text-align: center;"><nobr>{{row.f_meter_style}}</nobr></td>
551
- <td style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></td>
552
- <td style="text-align: center;"><nobr>{{row.f_initial_base}}</nobr></td>
553
- <td style="text-align: center;"><nobr>{{row.f_total_usegas_amount}}</nobr></td>
554
- <td style="text-align: center;"><nobr>{{row.f_total_gas}}</nobr></td>
555
- <td style="text-align: center;"><nobr>{{row.f_total_fee}}</nobr></td>
556
-
557
- <td style="text-align: center;"><nobr>{{row.f_book_inputtor}}</nobr></td>
558
- <td style="text-align: center;"><nobr>{{row.f_inputtor}}</nobr></td>
559
- <td style="text-align: center;"><nobr>{{row.f_userfiles_address}}</nobr></td>
560
- <td style="text-align: center;"><nobr>{{row.f_zqf}}</nobr></td>
561
- <td style="text-align: center;"><nobr>{{row.f_install_person}}</nobr></td>
562
- <td style="text-align: center;"><nobr>{{row.f_gas_person}}</nobr></td>
563
- <!-- <td style="text-align: center;"><nobr>{{row.f_fire_state}}</nobr></td>-->
564
- <td style="text-align: center;"><nobr>{{row.f_meter_book_num}}</nobr></td>
565
-
566
- <td style="text-align: center;"><nobr>{{row.f_meter_book_sort}}</nobr></td>
567
- <td style="text-align: center;"><nobr>{{row.f_balance_amount}}</nobr></td>
568
- <!-- <td style="text-align: center;"><nobr>{{row.f_min_operate_date}}</nobr></td>-->
569
- <td style="text-align: center;"><nobr>{{row.f_times}}</nobr></td>
570
- <td style="text-align: center;"><nobr>{{row.f_fillcard_times}}</nobr></td>
571
- <!-- <td style="text-align: center;"><nobr>{{row.f_sell_number}}</nobr></td>-->
572
- <td style="text-align: center;"><nobr>{{row.f_sendsuccess}}</nobr></td>
573
- <td style="text-align: center;"><nobr>{{row.f_isband}}</nobr></td>
574
-
575
- <td style="text-align: center;">
576
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_accopen}}</span></nobr>
577
- </td>
578
- <td style="text-align: center;">
579
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_name}}</span></nobr>
580
- </td>
581
- <td style="text-align: center;">
582
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_account}}</span></nobr>
583
- </td>
584
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
585
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_idnumber}}</span></nobr>
586
- </td>
587
- <td style="text-align: center;">
588
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_pay_number}}</span></nobr>
589
- </td>
590
- <td style="text-align: center;"><nobr>{{row.f_alarm_code}}</nobr></td>
591
- <td style="text-align: center;"><nobr>{{row.f_maxdate}}</nobr></td>
592
- <td style="text-align: center;"><nobr>{{row.f_devices_type}}</nobr></td>
593
- </template>
594
- <template partial='foot'>
595
-
596
- </template>
597
- </data-grid>
598
- </criteria-paged>
599
-
600
- <table class="table-hover">
601
- <tr style="position: relative" class="table-bordered">
602
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
603
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">暂无合计字段</td>
604
- </tr>
605
- </table>
606
-
607
- <modal :show.sync="printshow" v-ref:modal backdrop="false">
608
- <header slot="modal-header" class="modal-header text-center">
609
- <h4 class="modal-title">打印列选择</h4>
610
- <input type="checkbox" class="" id="f_generations" v-model="all">
611
- <label for="f_generations" class="font-size">全选</label>
612
- </header>
613
- <article slot="modal-body">
614
- <div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
615
- <div class="col-sm-3" v-for="f in fields">
616
- <input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
617
- <label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
618
- </div>
619
- </div>
620
- </article>
621
- <footer slot="modal-footer" class="modal-footer">
622
- <center>
623
-
624
- <button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
625
- <button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
626
- <print-table :model='model' v-show="false" v-ref:print
627
- :top='40' :left='60' :right='40' :bottom='60'
628
- :thead="thead" :tfoot='tfoot' :attach="yangsen"
629
- :fields="modelval" :printpage="true">
630
- </print-table>
631
- </center>
632
- </footer>
633
- </modal>
634
- </div>
635
- <div class="flex" v-if="show">
636
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
637
- </div>
638
- </div></div></div>
639
- <high-meter-idcard :show.sync="false" v-ref:highcard ></high-meter-idcard>
640
- </template>
641
-
642
- <script>
643
- import {HttpResetClass, PagedList} from 'vue-client'
644
- import defaultPrint from './config/DefaultPrint'
645
- import exportConfig from './config/exportConfig'
646
- let cardBtnGen = async function (self, val) {
647
- self.cardInfo = val.data
648
-
649
- // 判断读卡是否需要卡密码
650
- console.log('读卡上的信息', self.cardInfo)
651
-
652
- if (self.cardInfo.NewParam) {
653
- if (self.cardInfo.NewParam.error) {
654
- if (self.cardInfo.NewParam.error === '0001') {
655
- // 需要重新读卡并传卡密码
656
- if (self.model.rows.length == 1 && self.model.rows[0].f_alias === self.cardInfo.Factory) {
657
- self.readCardParam = self.model.rows[0].f_card_password
658
- self.cardInfo = await self.$refs.paged.$refs.cri.$refs.readcard.readCard2(self.model.rows[0].f_card_password)
659
- } else {
660
- self.$showAlert('此卡需要先获取客户信息。请通过条件查询该客户信息之后进行读卡!!', 'warning', 2000)
661
- return
662
- }
663
- }
664
- }
665
- }
666
- self.card=self.cardInfo.CardID
667
- self.search()
668
- }
669
- let readySomething = async function (self) {
670
- await self.$MagLoadParams.loadParam()
671
- // await self.$LoadParams.loadParam(self.f_filialeid)
672
- self.initParams()
673
- self.getPricenames();
674
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
675
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
676
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
677
- // await self.$refs.paged.$refs.cri.search()
678
- }
679
- export default {
680
- title: '综合档案信息查询',
681
- data() {
682
- return {
683
- IdCardInfo:'',
684
- card:'',
685
- isSingleUser: null,
686
- other:[],
687
- footer:[],
688
- model: new PagedList('rs/sql/compreQuery', 20,{items: this.orderitem?'"' + this.orderitem + ' "':`'f_residential_area desc,f_building desc,f_unit desc,f_floor desc,f_room desc'`}),
689
- criteriaShow: false,
690
- orgCondtionStr:'',
691
- // residentialArea: [],
692
- gasproperties:[],
693
- meterbrands: [],
694
- modelval: [],
695
- prices: [],
696
- printshow: false,
697
- all: false,
698
- fields: {},
699
- thead: '',
700
- tfoot: '',
701
- defaultfield: [],
702
- //排序
703
- orderitem: 'f_residential_area',
704
- orderitem1: 'f_unit',
705
- orderitem2: 'f_building',
706
- orderitem3: 'f_floor',
707
- orderitem4: 'f_room',
708
-
709
- orderFields: {
710
- f_operate_date: 'no'
711
- },
712
- config: {
713
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_user_state']
714
- },
715
- area: [],
716
- inputtouPerson: [],
717
- bookinputtorperson:[],
718
- conditon2:'',
719
- show:false,
720
- rowdata:{},
721
- f_filialeid: this.$login.f.orgid,
722
- // 下拉框参数
723
- zqf:this.$appdata.getParam('灶前阀') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('灶前阀')] : [],
724
- userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
725
- bandstates:this.$appdata.getParam('微信绑定') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('微信绑定')] : [],
726
- initres: {
727
- org:[this.$login.f.orgid],
728
- dep:[],
729
- user:[],
730
- },
731
- // 合计数据
732
- sumsmodel: {},
733
- //表册片区
734
- bookSlice:[{label: '全部',value: ''}],
735
- pricenames:[],
736
- dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
737
- }
738
- },
739
- ready(){
740
- // this.getaddress()
741
- readySomething(this).then(() => {
742
- this.$emit('ready')
743
- }).catch((error) => {
744
- this.$emit('error', error)
745
- })
746
- },
747
- methods: {
748
- ReadIDCard(){
749
- this.$refs.highcard.sendMsg(this.$refs.highcard.CLT_MSG.READ_IDCARD, (msg) => {
750
- console.log('======',msg)
751
- if(msg.err !== 0){ return}
752
- this.IdCardInfo=msg.strID
753
- })
754
- if(this.IdCardInfo) {
755
- this.search()
756
- }else{
757
- alert("读取失败,找不到用户信息")
758
- }
759
- },
760
- cardBtn (val) {
761
- // this.clear()
762
- cardBtnGen(this, val)
763
- },
764
- getPricenames () {
765
- let f_filialeid = this.f_filialeid
766
- let result = []
767
- this.$GetSaleParam.prices.forEach((item) => {
768
- if (item.f_state === '有效' && f_filialeid == item.f_filialeid) {
769
- let value = {
770
- label: item.f_price_name,
771
- value: item.f_price_name
772
- }
773
- result.push(value)
774
- }
775
- })
776
- this.pricenames = [{label:'全部',value:''},...result];
777
- },
778
- getotherfooter () {
779
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
780
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
781
- this.other = [];
782
- this.footer = [];
783
- let exportdata = this.getCondition;
784
- let otherInData = [];
785
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
786
- // let footerData = [], exportfield = this.getExportField;
787
- // footerData.push("合计");
788
- // let self = this;
789
- // for (var field in self.sumsmodel) {
790
- // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
791
- // }
792
- // this.footer.push(footerData);
793
- this.other.push(otherInData);
794
- },
795
- initParams() {
796
- // 初始化气表品牌
797
- let brandArr = []
798
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
799
- let temp = {}
800
- temp.label = item.label
801
- temp.value = item.value.f_meter_brand
802
- brandArr.push(temp)
803
- })
804
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
805
- //初始化气表价格
806
- this.prices = this.$MagGetSaleParam.getPrices();
807
- },
808
- search(){
809
- this.$refs.paged.$refs.cri.search()
810
- },
811
- cancel() {
812
- this.show = false
813
- },
814
- showmsg(obj){
815
- this.rowdata=obj
816
- this.show=true
817
- },
818
- selfSearch (args) {
819
- //抄表员查询条件
820
- this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
821
- if(this.inputtouPerson.length !== 0){
822
- let str = JSON.stringify(this.inputtouPerson)
823
- str = str.replace(/"/g,`'`)
824
- str = str.replace(/\[/g,``)
825
- str = str.replace(/\]/g,``)
826
- console.log("=====抄表员model22222222222绑定====",str)
827
- //查询多个抄表员时条件
828
- args.condition += ` and f_inputtor in ( ${str} )`
829
- }
830
- this.bookinputtorperson = this.$refs.paged.$refs.cri.model.f_book_inputtor;
831
- if(this.bookinputtorperson.length !== 0){
832
- let str = JSON.stringify(this.bookinputtorperson)
833
- str = str.replace(/"/g,`'`)
834
- str = str.replace(/\[/g,``)
835
- str = str.replace(/\]/g,``)
836
- console.log("=====抄表员model22222222222绑定====",str)
837
- //查询多个抄表员时条件
838
- args.condition += ` and f_book_inputtor in ( ${str} )`
839
- }
840
- if (!this.orgCondtionStr) {
841
- args.condition = `${args.condition}` + " and uf.f_orgid = " + this.$login.f.orgid
842
- } else {
843
- args.condition = `${args.condition}` + this.orgCondtionStr
844
- }
845
- this.conditon2 = args.condition
846
- console.log("查看条件",this.conditon2)
847
- if(this.card!=''){
848
- args.condition +=` and f_card_id='${this.card}'`
849
- }
850
- if(this.IdCardInfo!=''){
851
- args.condition+=` and f_idnumber='${this.IdCardInfo}'`
852
- }
853
- this.model.search(args.condition, args.model)
854
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
855
- this.card=''
856
- this.IdCardInfo=''
857
- console.log('合计字段',this.sumsmodel)
858
- },
859
- clear(){
860
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
861
- this.$refs.paged.$refs.cri.model[key] = []
862
- })
863
- },
864
- hidden(){
865
- this.criteriaShow = !this.criteriaShow
866
- },
867
- getRes(obj) {
868
- this.orgCondtionStr = obj
869
- },
870
- stamp () {
871
- this.all = false
872
- //默认选择要打印的列
873
- this.modelval = defaultPrint.config
874
- this.fields = this.getfield
875
- console.log('所有打印字段',this.fields)
876
- this.printshow = true
877
- this.put()
878
- },
879
- put () {
880
- // 对Modelval进行排序
881
- this.sortModelval()
882
- this.thead = `<tr><th colspan=${this.modelval.length}>设备查询统计报表</th></tr><tr>`
883
- for (let key of this.modelval) {
884
- this.thead += '<th>' + this.fields[key] + '</th>'
885
- }
886
- this.thead += '</tr>'
887
- },
888
- print () {
889
- this.$refs.print.PrintAsFile()
890
- this.printshow = false
891
- },
892
- close () {
893
- this.printshow = false
894
- this.all = false
895
- },
896
- userTypeChange () {
897
- this.gasproperties=[]
898
- if(this.$refs.paged.$refs.cri.model !==null) {
899
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
900
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
901
- // this.gasproperties.push({label: '全部', value: ''})
902
- }
903
- else{
904
- this.gasproperties =[{label: '全部', value: ''}]
905
- }
906
- },
907
- // 对选择的列进行排序
908
- sortModelval () {
909
- let sortModel = []
910
- Object.keys(this.fields).forEach((key) => {
911
- if (this.modelval.includes(key)) {
912
- sortModel.push(key)
913
- }
914
- })
915
- this.modelval = sortModel
916
- console.log('选择的打印的字段', this.modelval)
917
- },
918
- async updateParams() {
919
- await this.$MagLoadParams.loadParam(this.f_filialeid)
920
- this.inputtores = [];
921
- this.inputtores.push({label: "全部", value: ""})
922
- this.initSlice(this.f_filialeid)
923
- if(this.allorgid!=null){
924
- this.allorgid.forEach((res)=>{
925
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
926
- })
927
- }
928
- },
929
- async initSlice (val) {
930
- if (val) {
931
- let getAllArea = await this.$resetpost('/rs/search', {
932
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
933
- userid: this.$login.f.id
934
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
935
- let arr = getAllArea.data.filter((res) => {
936
- return res.parentid == val
937
- })
938
- this.bookSlice = []
939
- console.log('过滤之后的片区-------------------', arr)
940
- arr.forEach((res) => {
941
- this.bookSlice.push({label: res.name, value: res.name})
942
- })
943
- }
944
- },
945
- //表册片区和抄表册关联
946
- async inputtorchange(){
947
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
948
- /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
949
- let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
950
- if((val2.length>0)){
951
- let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
952
- /*if (val1[0]){
953
- condition = condition+ ` and f_meter_book = '${val1[0]}' `
954
- }*/
955
- if(val2[0]) {
956
- condition = condition + ` and f_book_slice_area = '${val2}' `
957
- }
958
- let param={
959
- items:'*',
960
- tablename:'t_meter_book',
961
- condition:condition,
962
- orderitem:'id'
963
- }
964
- let getMeterBooks = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
965
- if (getMeterBooks.data) {
966
- if(getMeterBooks.data.length >0){
967
- let rs = [];
968
- getMeterBooks.data.forEach((item)=>{
969
- let temp = {
970
- label:item.f_book_name,
971
- value:item.id
972
- };
973
- rs.push(temp);
974
-
975
- })
976
- this.meterbooks = [{label: '全部',value: ''}, ...rs];
977
- }else{
978
- this.meterbooks = [{label: '全部',value: ''}];
979
- }
980
- }
981
- }else{
982
- this.meterbooks = [{label: '全部',value: ''}];
983
- this.initmeterbook();
984
- }
985
- },
986
- sort (field, rule) {
987
- // 将所有排序方式设为不排序,实现相互排斥
988
- // for (let key in this.orderFields) {
989
- // if (key === field) {
990
- // this.orderFields[key] = rule
991
- // } else {
992
- // this.orderFields[key] = 'no'
993
- // }
994
- // }
995
- // 如果新规则不排序,还原为默认排序
996
- if (rule === 'no'|| rule === 'desc') {
997
- this.model.paramSource.items= `'${this.orderitem} desc,${this.orderitem2} desc,${this.orderitem1} desc,${this.orderitem3} desc,${this.orderitem4} desc'`
998
- } else {
999
- this.model.paramSource.items= `'${this.orderitem},${this.orderitem2},${this.orderitem1},${this.orderitem3},${this.orderitem4} ${rule}'`
1000
- }
1001
-
1002
- this.search()
1003
- }
1004
- },
1005
- watch:{
1006
- 'model.rows.length' () {
1007
- this.isSingleUser = this.model.rows
1008
- },
1009
- 'all' (val) {
1010
- if (val) {
1011
- this.modelval = this.bodyData
1012
- } else {
1013
- this.modelval = defaultPrint.config
1014
- this.put()
1015
- }
1016
- },
1017
- 'modelval.length' () {
1018
- this.put()
1019
- },
1020
- sumsmodel:{
1021
- handler: function(val) {
1022
- this.getotherfooter();
1023
- },
1024
- deep: true
1025
- },
1026
- 'orgCondtionStr'(val) {
1027
- let res = val.match(/'(.*?)'/)
1028
- console.log('正则提取:',res && res[1])
1029
- if (res) {
1030
- this.f_filialeid = res[1]
1031
- if(res.input !=null){
1032
- let resorgid = res.input.substring(res.input.indexOf("'"));
1033
- if(resorgid!= null && resorgid!=''){
1034
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
1035
- // resorgid = resorgid.replaceAll("'","");
1036
- resorgid = resorgid.replace(/'/g,"");
1037
- this.allorgid = resorgid.split(",")
1038
- }
1039
- }
1040
- this.updateParams()
1041
- }
1042
- },
1043
- },
1044
- computed:{
1045
- TableStates () {
1046
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
1047
- },
1048
- bgl(){
1049
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('壁挂炉')]
1050
- },
1051
- houseTypes(){
1052
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('房屋类型')]
1053
- },
1054
- gasproperties(){
1055
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
1056
- },
1057
- whetherCard(){
1058
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('发卡状态')]
1059
- },
1060
- usertypes() {
1061
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
1062
- },
1063
- useTypes() {
1064
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
1065
- },
1066
- positions() {
1067
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('安装位置')]
1068
- },
1069
- meterbooks(){
1070
- return [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
1071
- },
1072
- // gasproperties() {
1073
- // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
1074
- // },
1075
-
1076
- metertypes() {
1077
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
1078
- },
1079
- pricetypes() {
1080
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
1081
- },
1082
- person() {
1083
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('安装人')]
1084
- },
1085
- tablestate() {
1086
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('表具状态')]
1087
- },
1088
-
1089
- // getPricenames() {
1090
- // let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
1091
- // let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
1092
- // let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
1093
- // // console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
1094
- // if(this.$refs.paged.$refs.cri.model !==null) {
1095
- // console.log(1111)
1096
- // console.log(11112, this.prices)
1097
- // let rs = []
1098
- // let priceArr = []
1099
- // if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
1100
- // let params = {
1101
- // f_user_type: f_user_type[0],
1102
- // f_gasproperties: f_gasproperties[0],
1103
- // f_price_type: pricetype[0],
1104
- // filter: this.f_filialeid,
1105
- // prices: this.prices
1106
- // }
1107
- // console.log(11113,params,this.$login.f)
1108
- // this.$MagGetSaleParam.getPrice(params).forEach((item) => {
1109
- // let temp = {}
1110
- // temp.label = item.label
1111
- // temp.value = item.value.f_price_name
1112
- // priceArr.push(temp)
1113
- // })
1114
- // rs = [{label: '全部', value: ''}, ...priceArr]
1115
- // }
1116
- // if (rs.length === 0) {
1117
- // console.log('rs读出来是空')
1118
- // this.$refs.paged.$refs.cri.model.f_price_name = ''
1119
- // }
1120
- // return rs
1121
- // }
1122
- // },
1123
- inputtores () {
1124
- // 获取抄表员
1125
- console.log('获取抄表员', this.$login.f)
1126
- let rs = []
1127
- if (this.$login.f.f_gasman.length > 0) {
1128
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
1129
- let temp = {
1130
- label: this.$login.f.f_gasman[i].name,
1131
- value: this.$login.f.f_gasman[i].name
1132
- }
1133
- rs.push(temp)
1134
- }
1135
- }
1136
-
1137
- return [{label: '全部', value: ''}, ...rs]
1138
- },
1139
- authArr () {
1140
- return this.$login.r ? this.$login.r : []
1141
- },
1142
- getCondition(){
1143
-
1144
- return {condition:this.conditon2}
1145
- },
1146
- getfield(){
1147
- let data = {}
1148
- this.bodyData.forEach((value, index)=>{
1149
- data[this.bodyData[index]] = this.headData[index]
1150
- })
1151
- //合计字段打印
1152
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
1153
- if(this.sumsmodel){
1154
- Object.keys(this.sumsmodel).forEach((key) => {
1155
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
1156
- })
1157
- }else{
1158
- this.tfoot += '暂无'
1159
- }
1160
- this.tfoot += '</th></tr>'
1161
- return data
1162
- },
1163
- getExportField() {
1164
- return exportConfig.compreConfig
1165
- }
1166
- }
1167
- }
1168
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex">
5
+ <div style="flex:1;" class="flex" v-if="!show">
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 = '{}'" placeholder="客户名称">
19
+ </div>
20
+ <div class="col-sm-2 form-group" >
21
+ <label class="font_normal_body" title="参数名称:用户状态">客户状态</label>
22
+ <v-select :value.sync="model.f_user_state"
23
+ title="参数名称:用户状态"
24
+ v-model="model.f_user_state"
25
+ :options='$parent.$parent.userstates' placeholder='请选择'
26
+ condition="f_user_state = '{}'"
27
+ close-on-select></v-select>
28
+ </div>
29
+
30
+ <div class="span" style = "float:right;">
31
+ <button class="button_search button_spacing" v-show="false" @click="$parent.$parent.ReadIDCard()">读取身份证</button>
32
+ <read-card :is-single.sync="$parent.$parent.isSingleUser" @read-info="$parent.$parent.cardBtn" v-ref:readcard></read-card>
33
+ <button class="button_search button_spacing" @click="search()">查询</button>
34
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
35
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
36
+
37
+ <export-excel :data="$parent.$parent.getCondition"
38
+ :field="$parent.$parent.getExportField"
39
+ :header="$parent.$parent.other"
40
+ v-if="$parent.$parent.authArr.includes('档案查询导出')"
41
+ sqlurl="rs/logic/exportfile" sql-name="compreQuery" template-name='综合档案查询导出' :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
+ <div style="float: right" class="button_spacing"
47
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
48
+ @click="$parent.$parent.hidden()"></div>
49
+ </div>
50
+ </div>
51
+
52
+ <div class="row" v-show="$parent.$parent.criteriaShow">
53
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
54
+ <div class="col-sm-2 form-group" >
55
+ <label for="startDate" class="font_normal_body" title="建档开始日期">开始日期</label>
56
+ <datepicker id="startDate" placeholder="建档开始日期" style="width:60%"
57
+ v-model="model.startDate"
58
+ :value.sync="model.startDate"
59
+ :format="'yyyy-MM-dd'"
60
+ :show-reset-button="true"
61
+ condition="f_createfile_date >= '{} 00:00:00'">
62
+ </datepicker>
63
+ </div>
64
+ <div class="col-sm-2 form-group" >
65
+ <label for="endDate" class="font_normal_body" title="建档结束日期">结束日期</label>
66
+ <datepicker id="endDate" placeholder="建档结束日期" style="width:60%"
67
+ v-model="model.endDate"
68
+ :value.sync="model.endDate"
69
+ :format="'yyyy-MM-dd'"
70
+ :show-reset-button="true"
71
+ condition="f_createfile_date <= '{} 23:59:59'">
72
+ </datepicker>
73
+ </div>
74
+
75
+ <div class="col-sm-2 form-group">
76
+ <label class="font_normal_body">气表分类</label>
77
+ <v-select :value.sync="model.f_meter_classify"
78
+ v-model="model.f_meter_classify"
79
+ :options='$parent.$parent.metertypes' placeholder='请选择'
80
+ condition="f_meter_classify = '{}'"
81
+ close-on-select></v-select>
82
+ </div>
83
+
84
+ <div class="col-sm-2 form-group">
85
+ <label class="font_normal_body">气表品牌</label>
86
+ <v-select :value.sync="model.f_meter_brand"
87
+ v-model="model.f_meter_brand"
88
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
89
+ condition="f_meter_brand = '{}'"
90
+ close-on-select></v-select>
91
+ </div>
92
+ <div class="col-sm-2 form-group">
93
+ <label class="font_normal_body">客户类型</label>
94
+ <v-select :value.sync="model.f_user_type"
95
+ :options='$parent.$parent.usertypes'
96
+ @change="$parent.$parent.userTypeChange()"
97
+ placeholder='请选择' v-model="model.f_user_type"
98
+ condition="f_user_type = '{}'"
99
+ close-on-select></v-select>
100
+ </div>
101
+ <div class="col-sm-2 form-group" >
102
+ <label for="startDate1" class="font_normal_body" title="抄表开始日期">抄表日期</label>
103
+ <datepicker id="startDate1" placeholder="开始日期" style="width:60%"
104
+ v-model="model.startDate1"
105
+ :value.sync="model.startDate1"
106
+ :format="'yyyy-MM-dd'"
107
+ :show-reset-button="true"
108
+ condition="f_hand_date >= '{} 00:00:00'">
109
+ </datepicker>
110
+ </div>
111
+ <div class="col-sm-2 form-group" >
112
+ <label for="endDate1" class="font_normal_body" title="抄表结束日期">抄表日期</label>
113
+ <datepicker id="endDate1" placeholder="结束日期" style="width:60%"
114
+ v-model="model.endDate1"
115
+ :value.sync="model.endDate1"
116
+ :format="'yyyy-MM-dd'"
117
+ :show-reset-button="true"
118
+ condition="f_hand_date <= '{} 23:59:59'">
119
+ </datepicker>
120
+ </div>
121
+ <div class="col-sm-2 form-group">
122
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
123
+ <!-- <v-select :value.sync="model.f_residential_area"-->
124
+ <!-- class="select_list select"-->
125
+ <!-- enter-push-->
126
+ <!-- multiple-->
127
+ <!-- condition="f_residential_area in {}"-->
128
+ <!-- v-model="model.f_residential_area"-->
129
+ <!-- style="width: 60%"-->
130
+ <!-- :options='$parent.$parent.residentialArea' placeholder='选择小区'-->
131
+ <!-- close-on-select>-->
132
+ <!-- </v-select>-->
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>
136
+ <div class="col-sm-2 form-group" >
137
+ <label class="font_normal_body">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
138
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
139
+ condition="f_building = '{}'" placeholder='楼号'>
140
+ </div>
141
+ <div class="col-sm-2 form-group" >
142
+ <label class="font_normal_body">单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;元</label>
143
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
144
+ condition="f_unit = '{}'" placeholder='单元号'>
145
+ </div>
146
+
147
+ <div class="col-sm-2 form-group" >
148
+ <label class="font_normal_body">楼&nbsp;&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">门&ensp;牌&ensp;号</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_address"
160
+ condition="f_address like '%{}%'" placeholder='客户地址'>
161
+ </div>
162
+ <div class="col-sm-2 form-group" >
163
+ <label class="font_normal_body">用&ensp;气&ensp;点</label>
164
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userfiles_address"
165
+ condition="f_userfiles_address like '%{}%'" placeholder="用气点">
166
+ </div>
167
+ <div class="col-sm-2 form-group">
168
+ <label class="font_normal_body">用气性质</label>
169
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
170
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
171
+ condition="f_gasproperties = '{}'"
172
+ close-on-select></v-select>
173
+ </div>
174
+ <div class="col-sm-2 form-group">
175
+ <label class="font_normal_body">气价类型</label>
176
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
177
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
178
+ condition="f_price_type = '{}'"
179
+ close-on-select v-ref:type>
180
+ </v-select>
181
+ </div>
182
+ <div class="col-sm-2 form-group">
183
+ <label class="font_normal_body">气价名称</label>
184
+ <v-select :value.sync="model.f_price_name" v-model="model.f_price_name"
185
+ :options="$parent.$parent.pricenames" placeholder='气价名称'
186
+ condition="f_price_name = '{}'"
187
+ :is-mul="mul"
188
+ close-on-select ></v-select>
189
+ </div>
190
+ <div class="col-sm-2 form-group" >
191
+ <label class="font_normal_body">微信绑定</label>
192
+ <v-select :value.sync="model.f_isband"
193
+ v-model="model.f_isband"
194
+ :options='$parent.$parent.bandstates' placeholder='请选择'
195
+ condition="f_isband = '{}'"
196
+ close-on-select></v-select>
197
+ </div>
198
+ <div class="col-sm-2 form-group">
199
+ <label class="font_normal_body">壁&ensp;挂&ensp;炉</label>
200
+ <v-select :value.sync="model.isbgl" v-model="model.isbgl"
201
+ :options='$parent.$parent.bgl' placeholder='请选择'
202
+ condition="isbgl = '{}'"
203
+ close-on-select></v-select>
204
+ </div>
205
+ <div class="col-sm-2 form-group">
206
+ <label class="font_normal_body">灶&ensp;前&ensp;阀</label>
207
+ <v-select :value.sync="model.f_zqf" v-model="model.f_zqf"
208
+ :options='$parent.$parent.zqf' placeholder='请选择'
209
+ condition="f_zqf = '{}'"
210
+ close-on-select></v-select>
211
+ </div>
212
+ <div class="col-sm-2 form-group">
213
+ <label class="font_normal_body">发卡状态</label>
214
+ <v-select :value.sync="model.whetherhairpin" v-model="model.whetherhairpin"
215
+ :options='$parent.$parent.whetherCard' placeholder='请选择'
216
+ condition="f_whether_hairpin = '{}'"
217
+ close-on-select></v-select>
218
+ </div>
219
+ <div class="col-sm-2 form-group">
220
+ <label class="font_normal_body">安装位置</label>
221
+ <v-select :value.sync="model.f_position" v-model="model.f_position"
222
+ :options='$parent.$parent.positions' placeholder='请选择'
223
+ condition="f_position = '{}'"
224
+ close-on-select></v-select>
225
+ </div>
226
+
227
+ <!--表册片区-->
228
+ <div class="col-sm-2 form-group">
229
+ <label class="font_normal_body">表册片区</label>
230
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
231
+ @change="$parent.$parent.inputtorchange"
232
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
233
+ style="width:60%"
234
+ close-on-select
235
+ condition="f_book_slice_area = '{}'"></v-select>
236
+ </div>
237
+ <div class="col-sm-2 form-group">
238
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
239
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
240
+ :options='$parent.$parent.meterbooks' placeholder='请选择'
241
+ style="width:60%"
242
+ close-on-select
243
+ condition="f_meter_book_num = '{}'"></v-select>
244
+ </div>
245
+ <div class="col-sm-2 form-group">
246
+ <label class="font_normal_body">房屋类型</label>
247
+ <v-select :value.sync="model.f_house_type" v-model="model.f_house_type"
248
+ :options='$parent.$parent.houseTypes' placeholder='请选择'
249
+ style="width:60%"
250
+ close-on-select
251
+ condition="f_house_type = '{}'"></v-select>
252
+ </div>
253
+ <div class="col-sm-2 form-group">
254
+ <label class="font_normal_body" >缴费类型</label>
255
+ <v-select :value.sync="model.f_payment" multiple
256
+ v-model="model.f_payment"
257
+ :options='$parent.$parent.dypayment' placeholder='请选择'
258
+ condition="f_cost_type in {}"
259
+ close-on-select></v-select>
260
+ </div>
261
+ <div class="col-sm-2 form-group" >
262
+ <label for="startDate2" class="font_normal_body" title="开户时间">开户时间</label>
263
+ <datepicker id="startDate2" placeholder="开始日期" style="width:60%"
264
+ v-model="model.startDate2"
265
+ :value.sync="model.startDate2"
266
+ :format="'yyyy-MM-dd'"
267
+ :show-reset-button="true"
268
+ condition="f_open_date >= '{} 00:00:00'">
269
+ </datepicker>
270
+ </div>
271
+ <div class="col-sm-2 form-group" >
272
+ <label for="endDate2" class="font_normal_body" title="开户时间">开户时间</label>
273
+ <datepicker id="endDate2" placeholder="结束日期" style="width:60%"
274
+ v-model="model.endDate2"
275
+ :value.sync="model.endDate2"
276
+ :format="'yyyy-MM-dd'"
277
+ :show-reset-button="true"
278
+ condition="f_open_date <= '{} 23:59:59'">
279
+ </datepicker>
280
+ </div>
281
+ <div class="col-sm-2 form-group" >
282
+ <label for="startDate3" class="font_normal_body" title="安装日期">安装日期</label>
283
+ <datepicker id="startDate3" placeholder="开始日期" style="width:60%"
284
+ v-model="model.startDate3"
285
+ :value.sync="model.startDate3"
286
+ :format="'yyyy-MM-dd'"
287
+ :show-reset-button="true"
288
+ condition="f_install_date >= '{} 00:00:00'">
289
+ </datepicker>
290
+ </div>
291
+ <div class="col-sm-2 form-group" >
292
+ <label for="endDate3" class="font_normal_body" title="安装日期">安装日期</label>
293
+ <datepicker id="endDate3" placeholder="结束日期" style="width:60%"
294
+ v-model="model.endDate3"
295
+ :value.sync="model.endDate3"
296
+ :format="'yyyy-MM-dd'"
297
+ :show-reset-button="true"
298
+ condition="f_install_date <= '{} 23:59:59'">
299
+ </datepicker>
300
+ </div>
301
+ <div class="col-sm-2 form-group" >
302
+ <label for="endDate4" class="font_normal_body" title="点火时间">点火时间</label>
303
+ <datepicker id="endDate4" placeholder="开始日期" style="width:60%"
304
+ v-model="model.startDate4"
305
+ :value.sync="model.startDate4"
306
+ :format="'yyyy-MM-dd'"
307
+ :show-reset-button="true"
308
+ condition="f_gas_date >= '{} 00:00:00'">
309
+ </datepicker>
310
+ </div>
311
+ <div class="col-sm-2 form-group" >
312
+ <label for="endDate4" class="font_normal_body" title="点火时间">点火时间</label>
313
+ <datepicker id="endDate4" placeholder="结束日期" style="width:60%"
314
+ v-model="model.endDate4"
315
+ :value.sync="model.endDate4"
316
+ :format="'yyyy-MM-dd'"
317
+ :show-reset-button="true"
318
+ condition="f_gas_date <= '{} 23:59:59'">
319
+ </datepicker>
320
+ </div>
321
+ <div class="col-sm-2 form-group" >
322
+ <label class="font_normal_body">气表表号</label>
323
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
324
+ condition="f_meternumber like '%{}%'" placeholder='气表表号'>
325
+ </div>
326
+ <div class="col-sm-2 form-group">
327
+ <label class="font_normal_body">使用类型</label>
328
+ <v-select :value.sync="model.f_usetype" v-model="model.f_usetype"
329
+ :options='$parent.$parent.useTypes' placeholder='请选择'
330
+ style="width:60%"
331
+ close-on-select
332
+ condition="f_usetype = '{}'"></v-select>
333
+ </div>
334
+ <div class="col-sm-2 form-group">
335
+ <label class="font_normal_body">表具状态</label>
336
+ <v-select :value.sync="model.f_table_state" v-model="model.f_table_state"
337
+ :options='$parent.$parent.TableStates' placeholder='请选择'
338
+ style="width:60%"
339
+ close-on-select
340
+ condition="f_table_state = '{}'"></v-select>
341
+ </div>
342
+ <div class="col-sm-2 form-group">
343
+ <label class="font_normal_body">档案抄表员</label>
344
+ <v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
345
+ style="width:60%"
346
+ :multiple="true"
347
+ :options='$parent.$parent.inputtores' placeholder='档案抄表员'
348
+ close-on-select
349
+ v-el:cc></v-select>
350
+ </div>
351
+ <div class="col-sm-2 form-group">
352
+ <label class="font_normal_body">表册抄表员</label>
353
+ <v-select :value.sync="model.f_book_inputtor" v-model='model.f_book_inputtor'
354
+ style="width:60%"
355
+ :multiple="true"
356
+ :options='$parent.$parent.inputtores' placeholder='表册抄表员'
357
+ close-on-select
358
+ v-el:cc></v-select>
359
+ </div>
360
+ <div class="col-sm-2 form-group">
361
+ <label class="font_normal_body">安装人</label>
362
+ <v-select :value.sync="model.f_install_person" v-model='model.f_install_person'
363
+ style="width:60%"
364
+ :multiple="true"
365
+ :options='$parent.$parent.person' placeholder='安装人'
366
+ condition="f_install_person = '{}'"
367
+ close-on-select
368
+ v-el:cc></v-select>
369
+ </div>
370
+ </div>
371
+ </div>
372
+ </criteria>
373
+
374
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
375
+ <template partial='head'>
376
+ <tr>
377
+ <th><nobr>客户状态</nobr></th>
378
+ <th><nobr>客户编号</nobr></th>
379
+ <th><nobr>是否发卡</nobr></th>
380
+ <th><nobr>卡号</nobr></th>
381
+ <th><nobr>客户名称</nobr></th>
382
+ <th><nobr>小区名称</nobr></th>
383
+ <th>
384
+ <data-order field="f_userinfo_code" name="客户地址"
385
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
386
+ </th>
387
+ <th><nobr>客户电话</nobr></th>
388
+ <th><nobr>表册片区</nobr></th>
389
+ <th><nobr>通气日期</nobr></th>
390
+ <!-- 气价类型,单价暂时未处理 -->
391
+ <th><nobr>气价类型</nobr></th>
392
+ <th><nobr>气价名称</nobr></th>
393
+ <th><nobr>单价</nobr></th>
394
+
395
+ <th><nobr>安装位置</nobr></th>
396
+ <th><nobr>缴费类型</nobr></th>
397
+ <th><nobr>气表类型</nobr></th>
398
+ <th><nobr>气表品牌</nobr></th>
399
+ <th><nobr>表号</nobr></th>
400
+ <th><nobr>表封号</nobr></th>
401
+ <th><nobr>左右表</nobr></th>
402
+ <th><nobr>气表安装日期</nobr></th>
403
+ <th><nobr>气表底数</nobr></th>
404
+ <th><nobr>账户余额</nobr></th>
405
+ <th><nobr>最后抄表日期</nobr></th>
406
+ <!--<th><nobr>最后购气日期</nobr></th>-->
407
+
408
+ <th><nobr>阀门状态</nobr></th>
409
+
410
+ <!-- <th><nobr>旧客户编号</nobr></th> -->
411
+ <th><nobr>客户类型</nobr></th>
412
+ <th><nobr>用气性质</nobr></th>
413
+ <th><nobr>开户时间</nobr></th>
414
+ <th><nobr>证件类型</nobr></th>
415
+ <th><nobr>证件号码</nobr></th>
416
+ <th><nobr>人口数</nobr></th>
417
+ <th><nobr>保险结束日期</nobr></th>
418
+ <th><nobr>建档日期</nobr></th>
419
+ <th><nobr>建档人</nobr></th>
420
+ <th><nobr>所属营业厅</nobr></th>
421
+ <th><nobr>备注信息</nobr></th>
422
+
423
+ <!-- <th><nobr>气价详情</nobr></th>-->
424
+ <th><nobr>曾用名</nobr></th>
425
+ <th><nobr>备用电话</nobr></th>
426
+ <th><nobr>租户姓名</nobr></th>
427
+ <th><nobr>租户电话</nobr></th>
428
+ <!--<th><nobr>曾用名</nobr></th>-->
429
+ <th><nobr>发票编码</nobr></th>
430
+ <th><nobr>是否煤改气</nobr></th>
431
+ <th><nobr>是否发放天然气使用证</nobr></th>
432
+
433
+ <th><nobr>使用类型</nobr></th>
434
+
435
+ <!-- <th><nobr>使用状态</nobr></th>-->
436
+ <!--<th><nobr>通气时间</nobr></th>-->
437
+
438
+ <th><nobr>气表型号</nobr></th>
439
+ <th><nobr>表具状态</nobr></th>
440
+ <th><nobr>初始气表底数</nobr></th>
441
+ <th><nobr>累计用气金额</nobr></th>
442
+ <th><nobr>表累购气量</nobr></th>
443
+ <th><nobr>表累购金额</nobr></th>
444
+
445
+ <th><nobr>抄表员(表册)</nobr></th>
446
+ <th><nobr>抄表员(档案)</nobr></th>
447
+ <th><nobr>用气点</nobr></th>
448
+ <th><nobr>灶前阀</nobr></th>
449
+ <th><nobr>安装人</nobr></th>
450
+ <th><nobr>通气人</nobr></th>
451
+ <!-- <th><nobr>点火状态</nobr></th>-->
452
+ <th><nobr>抄表册编号</nobr></th>
453
+
454
+ <th><nobr>抄表册顺序</nobr></th>
455
+ <th><nobr>表剩余金额</nobr></th>
456
+ <!-- <th><nobr>首次购气日期</nobr></th>-->
457
+ <th><nobr>写卡次数</nobr></th>
458
+ <th><nobr>补卡次数</nobr></th>
459
+ <!-- <th><nobr>购气次数</nobr></th>-->
460
+
461
+ <th><nobr>表同步状态</nobr></th>
462
+ <th><nobr>微信绑定</nobr></th>
463
+
464
+ <th>
465
+ <nobr>银行户名</nobr>
466
+ </th>
467
+ <th>
468
+ <nobr>银行名称</nobr>
469
+ </th>
470
+ <th>
471
+ <nobr>银行账号</nobr>
472
+ </th>
473
+ <th>
474
+ <nobr>银行身份证号</nobr>
475
+ </th>
476
+ <th>
477
+ <nobr>缴费编号</nobr>
478
+ </th>
479
+ <th>
480
+ <nobr>报警器编号</nobr>
481
+ </th>
482
+ <th>
483
+ <nobr>换表时间</nobr>
484
+ </th>
485
+ <th>
486
+ <nobr>灶具信息</nobr>
487
+ </th>
488
+ </tr>
489
+ </template>
490
+ <template partial='body'>
491
+ <!--<td style="text-align: center;"><nobr>-->
492
+ <!--<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>-->
493
+ <!--</nobr> </td>-->
494
+ <td style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></td>
495
+ <td style="text-align: center;"><nobr>{{row.f_userinfo_code}}</nobr></td>
496
+ <td style="text-align: center;"><nobr>{{row.f_whether_hairpin}}</nobr></td>
497
+ <td style="text-align: center;"><nobr>{{row.f_card_id}}</nobr></td>
498
+ <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
499
+ <td style="text-align: center;"><nobr>{{row.f_residential_area}}</nobr></td>
500
+ <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
501
+ <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
502
+ <td style="text-align: center;"><nobr>{{row.f_book_slice_area}}</nobr></td>
503
+ <td style="text-align: center;"><nobr>{{row.f_gas_date}}</nobr></td>
504
+ <!-- 气价类型,单价暂时未处理 -->
505
+ <td style="text-align: center;"><nobr>&nbsp;&nbsp;</nobr></td>
506
+ <td style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></td>
507
+ <td style="text-align: center;"><nobr>{{row.value}}</nobr></td>
508
+
509
+ <td style="text-align: center;"><nobr>{{row.f_position}}</nobr></td>
510
+ <td style="text-align: center;"><nobr>{{row.f_cost_type}}</nobr></td>
511
+ <td style="text-align: center;"><nobr>{{row.f_meter_type}}</nobr></td>
512
+ <td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
513
+ <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
514
+ <td style="text-align: center;"><nobr>{{row.f_metertitles}}</nobr></td>
515
+ <td style="text-align: center;"><nobr>{{row.f_aroundmeter}}</nobr></td>
516
+ <td style="text-align: center;"><nobr>{{row.f_install_date}}</nobr></td>
517
+ <td style="text-align: center;"><nobr>{{row.f_meter_base}}</nobr></td>
518
+ <td style="text-align: center;"><nobr>{{row.f_balance}}</nobr></td>
519
+ <td style="text-align: center;"><nobr>{{row.f_hand_date}}</nobr></td>
520
+ <!-- <td style="text-align: center;"><nobr>{{row.f_max_operate_date}}</nobr></td>-->
521
+ <td style="text-align: center;"><nobr>{{row.f_valve_state}}</nobr></td>
522
+
523
+ <!-- <td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>-->
524
+ <td style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></td>
525
+ <td style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></td>
526
+
527
+ <td style="text-align: center;"><nobr>{{row.f_open_date}}</nobr></td>
528
+ <td style="text-align: center;"><nobr>{{row.f_credentials}}</nobr></td>
529
+ <td style="text-align: center;"><nobr>{{row.f_idnumber}}</nobr></td>
530
+ <td style="text-align: center;"><nobr>{{row.f_people_num}}</nobr></td>
531
+ <td style="text-align: center;"><nobr>{{row.f_ins_stop_date}}</nobr></td>
532
+ <td style="text-align: center;"><nobr>{{row.f_createfile_date}}</nobr></td>
533
+ <td style="text-align: center;"><nobr>{{row.f_createfile_person}}</nobr></td>
534
+ <td style="text-align: center;"><nobr>{{row.f_depname}}</nobr></td>
535
+ <td style="text-align: center;"><nobr>{{row.f_comments}}</nobr></td>
536
+
537
+ <!-- <td style="text-align: center;"><nobr>{{row.value}}</nobr></td>-->
538
+ <td style="text-align: center;"><nobr>{{row.f_used_name}}</nobr></td>
539
+ <td style="text-align: center;"><nobr>{{row.f_rent_phone}}</nobr></td>
540
+ <td style="text-align: center;"><nobr>{{row.f_rent_name}}</nobr></td>
541
+ <td style="text-align: center;"><nobr>{{row.f_zuhu_phone}}</nobr></td>
542
+ <td style="text-align: center;"><nobr>{{row.f_contract_id}}</nobr></td>
543
+ <td style="text-align: center;"><nobr>{{row.f_is_mgq}}</nobr></td>
544
+ <td style="text-align: center;"><nobr>{{row.f_send_usegas_card}}</nobr></td>
545
+
546
+ <td style="text-align: center;"><nobr>{{row.f_usetype}}</nobr></td>
547
+ <!-- <td style="text-align: center;"><nobr>{{row.f_usestate}}</nobr></td>-->
548
+ <!--<td style="text-align: center;"><nobr>{{row.f_people_num}}</nobr></td>-->
549
+
550
+ <td style="text-align: center;"><nobr>{{row.f_meter_style}}</nobr></td>
551
+ <td style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></td>
552
+ <td style="text-align: center;"><nobr>{{row.f_initial_base}}</nobr></td>
553
+ <td style="text-align: center;"><nobr>{{row.f_total_usegas_amount}}</nobr></td>
554
+ <td style="text-align: center;"><nobr>{{row.f_total_gas}}</nobr></td>
555
+ <td style="text-align: center;"><nobr>{{row.f_total_fee}}</nobr></td>
556
+
557
+ <td style="text-align: center;"><nobr>{{row.f_book_inputtor}}</nobr></td>
558
+ <td style="text-align: center;"><nobr>{{row.f_inputtor}}</nobr></td>
559
+ <td style="text-align: center;"><nobr>{{row.f_userfiles_address}}</nobr></td>
560
+ <td style="text-align: center;"><nobr>{{row.f_zqf}}</nobr></td>
561
+ <td style="text-align: center;"><nobr>{{row.f_install_person}}</nobr></td>
562
+ <td style="text-align: center;"><nobr>{{row.f_gas_person}}</nobr></td>
563
+ <!-- <td style="text-align: center;"><nobr>{{row.f_fire_state}}</nobr></td>-->
564
+ <td style="text-align: center;"><nobr>{{row.f_meter_book_num}}</nobr></td>
565
+
566
+ <td style="text-align: center;"><nobr>{{row.f_meter_book_sort}}</nobr></td>
567
+ <td style="text-align: center;"><nobr>{{row.f_balance_amount}}</nobr></td>
568
+ <!-- <td style="text-align: center;"><nobr>{{row.f_min_operate_date}}</nobr></td>-->
569
+ <td style="text-align: center;"><nobr>{{row.f_times}}</nobr></td>
570
+ <td style="text-align: center;"><nobr>{{row.f_fillcard_times}}</nobr></td>
571
+ <!-- <td style="text-align: center;"><nobr>{{row.f_sell_number}}</nobr></td>-->
572
+ <td style="text-align: center;"><nobr>{{row.f_sendsuccess}}</nobr></td>
573
+ <td style="text-align: center;"><nobr>{{row.f_isband}}</nobr></td>
574
+
575
+ <td style="text-align: center;">
576
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_accopen}}</span></nobr>
577
+ </td>
578
+ <td style="text-align: center;">
579
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_name}}</span></nobr>
580
+ </td>
581
+ <td style="text-align: center;">
582
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_account}}</span></nobr>
583
+ </td>
584
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
585
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_idnumber}}</span></nobr>
586
+ </td>
587
+ <td style="text-align: center;">
588
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_pay_number}}</span></nobr>
589
+ </td>
590
+ <td style="text-align: center;"><nobr>{{row.f_alarm_code}}</nobr></td>
591
+ <td style="text-align: center;"><nobr>{{row.f_maxdate}}</nobr></td>
592
+ <td style="text-align: center;"><nobr>{{row.f_devices_type}}</nobr></td>
593
+ </template>
594
+ <template partial='foot'>
595
+
596
+ </template>
597
+ </data-grid>
598
+ </criteria-paged>
599
+
600
+ <table class="table-hover">
601
+ <tr style="position: relative" class="table-bordered">
602
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
603
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">暂无合计字段</td>
604
+ </tr>
605
+ </table>
606
+
607
+ <modal :show.sync="printshow" v-ref:modal backdrop="false">
608
+ <header slot="modal-header" class="modal-header text-center">
609
+ <h4 class="modal-title">打印列选择</h4>
610
+ <input type="checkbox" class="" id="f_generations" v-model="all">
611
+ <label for="f_generations" class="font-size">全选</label>
612
+ </header>
613
+ <article slot="modal-body">
614
+ <div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
615
+ <div class="col-sm-3" v-for="f in fields">
616
+ <input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
617
+ <label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
618
+ </div>
619
+ </div>
620
+ </article>
621
+ <footer slot="modal-footer" class="modal-footer">
622
+ <center>
623
+
624
+ <button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
625
+ <button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
626
+ <print-table :model='model' v-show="false" v-ref:print
627
+ :top='40' :left='60' :right='40' :bottom='60'
628
+ :thead="thead" :tfoot='tfoot' :attach="yangsen"
629
+ :fields="modelval" :printpage="true">
630
+ </print-table>
631
+ </center>
632
+ </footer>
633
+ </modal>
634
+ </div>
635
+ <div class="flex" v-if="show">
636
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
637
+ </div>
638
+ </div></div></div>
639
+ <high-meter-idcard :show.sync="false" v-ref:highcard ></high-meter-idcard>
640
+ </template>
641
+
642
+ <script>
643
+ import {HttpResetClass, PagedList} from 'vue-client'
644
+ import defaultPrint from './config/DefaultPrint'
645
+ import exportConfig from './config/exportConfig'
646
+ let cardBtnGen = async function (self, val) {
647
+ self.cardInfo = val.data
648
+
649
+ // 判断读卡是否需要卡密码
650
+ console.log('读卡上的信息', self.cardInfo)
651
+
652
+ if (self.cardInfo.NewParam) {
653
+ if (self.cardInfo.NewParam.error) {
654
+ if (self.cardInfo.NewParam.error === '0001') {
655
+ // 需要重新读卡并传卡密码
656
+ if (self.model.rows.length == 1 && self.model.rows[0].f_alias === self.cardInfo.Factory) {
657
+ self.readCardParam = self.model.rows[0].f_card_password
658
+ self.cardInfo = await self.$refs.paged.$refs.cri.$refs.readcard.readCard2(self.model.rows[0].f_card_password)
659
+ } else {
660
+ self.$showAlert('此卡需要先获取客户信息。请通过条件查询该客户信息之后进行读卡!!', 'warning', 2000)
661
+ return
662
+ }
663
+ }
664
+ }
665
+ }
666
+ self.card=self.cardInfo.CardID
667
+ self.search()
668
+ }
669
+ let readySomething = async function (self) {
670
+ await self.$MagLoadParams.loadParam()
671
+ // await self.$LoadParams.loadParam(self.f_filialeid)
672
+ self.initParams()
673
+ self.getPricenames();
674
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
675
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
676
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
677
+ // await self.$refs.paged.$refs.cri.search()
678
+ }
679
+ export default {
680
+ title: '综合档案信息查询',
681
+ data() {
682
+ return {
683
+ IdCardInfo:'',
684
+ card:'',
685
+ isSingleUser: null,
686
+ other:[],
687
+ footer:[],
688
+ model: new PagedList('rs/sql/compreQuery', 20,{items: this.orderitem?'"' + this.orderitem + ' "':`'f_residential_area desc,f_building desc,f_unit desc,f_floor desc,f_room desc'`}),
689
+ criteriaShow: false,
690
+ orgCondtionStr:'',
691
+ // residentialArea: [],
692
+ gasproperties:[],
693
+ meterbrands: [],
694
+ modelval: [],
695
+ prices: [],
696
+ printshow: false,
697
+ all: false,
698
+ fields: {},
699
+ thead: '',
700
+ tfoot: '',
701
+ defaultfield: [],
702
+ //排序
703
+ orderitem: 'f_residential_area',
704
+ orderitem1: 'f_unit',
705
+ orderitem2: 'f_building',
706
+ orderitem3: 'f_floor',
707
+ orderitem4: 'f_room',
708
+
709
+ orderFields: {
710
+ f_operate_date: 'no'
711
+ },
712
+ config: {
713
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_user_state']
714
+ },
715
+ area: [],
716
+ inputtouPerson: [],
717
+ bookinputtorperson:[],
718
+ conditon2:'',
719
+ show:false,
720
+ rowdata:{},
721
+ f_filialeid: this.$login.f.orgid,
722
+ // 下拉框参数
723
+ zqf:this.$appdata.getParam('灶前阀') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('灶前阀')] : [],
724
+ userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
725
+ bandstates:this.$appdata.getParam('微信绑定') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('微信绑定')] : [],
726
+ initres: {
727
+ org:[this.$login.f.orgid],
728
+ dep:[],
729
+ user:[],
730
+ },
731
+ // 合计数据
732
+ sumsmodel: {},
733
+ //表册片区
734
+ bookSlice:[{label: '全部',value: ''}],
735
+ pricenames:[],
736
+ dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
737
+ }
738
+ },
739
+ ready(){
740
+ // this.getaddress()
741
+ readySomething(this).then(() => {
742
+ this.$emit('ready')
743
+ }).catch((error) => {
744
+ this.$emit('error', error)
745
+ })
746
+ },
747
+ methods: {
748
+ ReadIDCard(){
749
+ this.$refs.highcard.sendMsg(this.$refs.highcard.CLT_MSG.READ_IDCARD, (msg) => {
750
+ console.log('======',msg)
751
+ if(msg.err !== 0){ return}
752
+ this.IdCardInfo=msg.strID
753
+ })
754
+ if(this.IdCardInfo) {
755
+ this.search()
756
+ }else{
757
+ alert("读取失败,找不到用户信息")
758
+ }
759
+ },
760
+ cardBtn (val) {
761
+ // this.clear()
762
+ cardBtnGen(this, val)
763
+ },
764
+ getPricenames () {
765
+ let f_filialeid = this.f_filialeid
766
+ let result = []
767
+ this.$GetSaleParam.prices.forEach((item) => {
768
+ if (item.f_state === '有效' && f_filialeid == item.f_filialeid) {
769
+ let value = {
770
+ label: item.f_price_name,
771
+ value: item.f_price_name
772
+ }
773
+ result.push(value)
774
+ }
775
+ })
776
+ this.pricenames = [{label:'全部',value:''},...result];
777
+ },
778
+ getotherfooter () {
779
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
780
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
781
+ this.other = [];
782
+ this.footer = [];
783
+ let exportdata = this.getCondition;
784
+ let otherInData = [];
785
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
786
+ // let footerData = [], exportfield = this.getExportField;
787
+ // footerData.push("合计");
788
+ // let self = this;
789
+ // for (var field in self.sumsmodel) {
790
+ // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
791
+ // }
792
+ // this.footer.push(footerData);
793
+ this.other.push(otherInData);
794
+ },
795
+ initParams() {
796
+ // 初始化气表品牌
797
+ let brandArr = []
798
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
799
+ let temp = {}
800
+ temp.label = item.label
801
+ temp.value = item.value.f_meter_brand
802
+ brandArr.push(temp)
803
+ })
804
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
805
+ //初始化气表价格
806
+ this.prices = this.$MagGetSaleParam.getPrices();
807
+ },
808
+ search(){
809
+ this.$refs.paged.$refs.cri.search()
810
+ },
811
+ cancel() {
812
+ this.show = false
813
+ },
814
+ showmsg(obj){
815
+ this.rowdata=obj
816
+ this.show=true
817
+ },
818
+ selfSearch (args) {
819
+ //抄表员查询条件
820
+ this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
821
+ if(this.inputtouPerson.length !== 0){
822
+ let str = JSON.stringify(this.inputtouPerson)
823
+ str = str.replace(/"/g,`'`)
824
+ str = str.replace(/\[/g,``)
825
+ str = str.replace(/\]/g,``)
826
+ console.log("=====抄表员model22222222222绑定====",str)
827
+ //查询多个抄表员时条件
828
+ args.condition += ` and f_inputtor in ( ${str} )`
829
+ }
830
+ this.bookinputtorperson = this.$refs.paged.$refs.cri.model.f_book_inputtor;
831
+ if(this.bookinputtorperson.length !== 0){
832
+ let str = JSON.stringify(this.bookinputtorperson)
833
+ str = str.replace(/"/g,`'`)
834
+ str = str.replace(/\[/g,``)
835
+ str = str.replace(/\]/g,``)
836
+ console.log("=====抄表员model22222222222绑定====",str)
837
+ //查询多个抄表员时条件
838
+ args.condition += ` and f_book_inputtor in ( ${str} )`
839
+ }
840
+ if (!this.orgCondtionStr) {
841
+ args.condition = `${args.condition}` + " and uf.f_orgid = " + this.$login.f.orgid
842
+ } else {
843
+ args.condition = `${args.condition}` + this.orgCondtionStr
844
+ }
845
+ this.conditon2 = args.condition
846
+ console.log("查看条件",this.conditon2)
847
+ if(this.card!=''){
848
+ args.condition +=` and f_card_id='${this.card}'`
849
+ }
850
+ if(this.IdCardInfo!=''){
851
+ args.condition+=` and f_idnumber='${this.IdCardInfo}'`
852
+ }
853
+ this.model.search(args.condition, args.model)
854
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
855
+ this.card=''
856
+ this.IdCardInfo=''
857
+ console.log('合计字段',this.sumsmodel)
858
+ },
859
+ clear(){
860
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
861
+ this.$refs.paged.$refs.cri.model[key] = []
862
+ })
863
+ },
864
+ hidden(){
865
+ this.criteriaShow = !this.criteriaShow
866
+ },
867
+ getRes(obj) {
868
+ this.orgCondtionStr = obj
869
+ },
870
+ stamp () {
871
+ this.all = false
872
+ //默认选择要打印的列
873
+ this.modelval = defaultPrint.config
874
+ this.fields = this.getfield
875
+ console.log('所有打印字段',this.fields)
876
+ this.printshow = true
877
+ this.put()
878
+ },
879
+ put () {
880
+ // 对Modelval进行排序
881
+ this.sortModelval()
882
+ this.thead = `<tr><th colspan=${this.modelval.length}>设备查询统计报表</th></tr><tr>`
883
+ for (let key of this.modelval) {
884
+ this.thead += '<th>' + this.fields[key] + '</th>'
885
+ }
886
+ this.thead += '</tr>'
887
+ },
888
+ print () {
889
+ this.$refs.print.PrintAsFile()
890
+ this.printshow = false
891
+ },
892
+ close () {
893
+ this.printshow = false
894
+ this.all = false
895
+ },
896
+ userTypeChange () {
897
+ this.gasproperties=[]
898
+ if(this.$refs.paged.$refs.cri.model !==null) {
899
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
900
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
901
+ // this.gasproperties.push({label: '全部', value: ''})
902
+ }
903
+ else{
904
+ this.gasproperties =[{label: '全部', value: ''}]
905
+ }
906
+ },
907
+ // 对选择的列进行排序
908
+ sortModelval () {
909
+ let sortModel = []
910
+ Object.keys(this.fields).forEach((key) => {
911
+ if (this.modelval.includes(key)) {
912
+ sortModel.push(key)
913
+ }
914
+ })
915
+ this.modelval = sortModel
916
+ console.log('选择的打印的字段', this.modelval)
917
+ },
918
+ async updateParams() {
919
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
920
+ this.inputtores = [];
921
+ this.inputtores.push({label: "全部", value: ""})
922
+ this.initSlice(this.f_filialeid)
923
+ if(this.allorgid!=null){
924
+ this.allorgid.forEach((res)=>{
925
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
926
+ })
927
+ }
928
+ },
929
+ async initSlice (val) {
930
+ if (val) {
931
+ let getAllArea = await this.$resetpost('/rs/search', {
932
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
933
+ userid: this.$login.f.id
934
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
935
+ let arr = getAllArea.data.filter((res) => {
936
+ return res.parentid == val
937
+ })
938
+ this.bookSlice = []
939
+ console.log('过滤之后的片区-------------------', arr)
940
+ arr.forEach((res) => {
941
+ this.bookSlice.push({label: res.name, value: res.name})
942
+ })
943
+ }
944
+ },
945
+ //表册片区和抄表册关联
946
+ async inputtorchange(){
947
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
948
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
949
+ let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
950
+ if((val2.length>0)){
951
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
952
+ /*if (val1[0]){
953
+ condition = condition+ ` and f_meter_book = '${val1[0]}' `
954
+ }*/
955
+ if(val2[0]) {
956
+ condition = condition + ` and f_book_slice_area = '${val2}' `
957
+ }
958
+ let param={
959
+ items:'*',
960
+ tablename:'t_meter_book',
961
+ condition:condition,
962
+ orderitem:'id'
963
+ }
964
+ let getMeterBooks = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
965
+ if (getMeterBooks.data) {
966
+ if(getMeterBooks.data.length >0){
967
+ let rs = [];
968
+ getMeterBooks.data.forEach((item)=>{
969
+ let temp = {
970
+ label:item.f_book_name,
971
+ value:item.id
972
+ };
973
+ rs.push(temp);
974
+
975
+ })
976
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
977
+ }else{
978
+ this.meterbooks = [{label: '全部',value: ''}];
979
+ }
980
+ }
981
+ }else{
982
+ this.meterbooks = [{label: '全部',value: ''}];
983
+ this.initmeterbook();
984
+ }
985
+ },
986
+ sort (field, rule) {
987
+ // 将所有排序方式设为不排序,实现相互排斥
988
+ // for (let key in this.orderFields) {
989
+ // if (key === field) {
990
+ // this.orderFields[key] = rule
991
+ // } else {
992
+ // this.orderFields[key] = 'no'
993
+ // }
994
+ // }
995
+ // 如果新规则不排序,还原为默认排序
996
+ if (rule === 'no'|| rule === 'desc') {
997
+ this.model.paramSource.items= `'${this.orderitem} desc,${this.orderitem2} desc,${this.orderitem1} desc,${this.orderitem3} desc,${this.orderitem4} desc'`
998
+ } else {
999
+ this.model.paramSource.items= `'${this.orderitem},${this.orderitem2},${this.orderitem1},${this.orderitem3},${this.orderitem4} ${rule}'`
1000
+ }
1001
+
1002
+ this.search()
1003
+ }
1004
+ },
1005
+ watch:{
1006
+ 'model.rows.length' () {
1007
+ this.isSingleUser = this.model.rows
1008
+ },
1009
+ 'all' (val) {
1010
+ if (val) {
1011
+ this.modelval = this.bodyData
1012
+ } else {
1013
+ this.modelval = defaultPrint.config
1014
+ this.put()
1015
+ }
1016
+ },
1017
+ 'modelval.length' () {
1018
+ this.put()
1019
+ },
1020
+ sumsmodel:{
1021
+ handler: function(val) {
1022
+ this.getotherfooter();
1023
+ },
1024
+ deep: true
1025
+ },
1026
+ 'orgCondtionStr'(val) {
1027
+ let res = val.match(/'(.*?)'/)
1028
+ console.log('正则提取:',res && res[1])
1029
+ if (res) {
1030
+ this.f_filialeid = res[1]
1031
+ if(res.input !=null){
1032
+ let resorgid = res.input.substring(res.input.indexOf("'"));
1033
+ if(resorgid!= null && resorgid!=''){
1034
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
1035
+ // resorgid = resorgid.replaceAll("'","");
1036
+ resorgid = resorgid.replace(/'/g,"");
1037
+ this.allorgid = resorgid.split(",")
1038
+ }
1039
+ }
1040
+ this.updateParams()
1041
+ }
1042
+ },
1043
+ },
1044
+ computed:{
1045
+ TableStates () {
1046
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
1047
+ },
1048
+ bgl(){
1049
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('壁挂炉')]
1050
+ },
1051
+ houseTypes(){
1052
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('房屋类型')]
1053
+ },
1054
+ gasproperties(){
1055
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
1056
+ },
1057
+ whetherCard(){
1058
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('发卡状态')]
1059
+ },
1060
+ usertypes() {
1061
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
1062
+ },
1063
+ useTypes() {
1064
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
1065
+ },
1066
+ positions() {
1067
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('安装位置')]
1068
+ },
1069
+ meterbooks(){
1070
+ return [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
1071
+ },
1072
+ // gasproperties() {
1073
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
1074
+ // },
1075
+
1076
+ metertypes() {
1077
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
1078
+ },
1079
+ pricetypes() {
1080
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
1081
+ },
1082
+ person() {
1083
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('安装人')]
1084
+ },
1085
+ tablestate() {
1086
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('表具状态')]
1087
+ },
1088
+
1089
+ // getPricenames() {
1090
+ // let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
1091
+ // let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
1092
+ // let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
1093
+ // // console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
1094
+ // if(this.$refs.paged.$refs.cri.model !==null) {
1095
+ // console.log(1111)
1096
+ // console.log(11112, this.prices)
1097
+ // let rs = []
1098
+ // let priceArr = []
1099
+ // if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
1100
+ // let params = {
1101
+ // f_user_type: f_user_type[0],
1102
+ // f_gasproperties: f_gasproperties[0],
1103
+ // f_price_type: pricetype[0],
1104
+ // filter: this.f_filialeid,
1105
+ // prices: this.prices
1106
+ // }
1107
+ // console.log(11113,params,this.$login.f)
1108
+ // this.$MagGetSaleParam.getPrice(params).forEach((item) => {
1109
+ // let temp = {}
1110
+ // temp.label = item.label
1111
+ // temp.value = item.value.f_price_name
1112
+ // priceArr.push(temp)
1113
+ // })
1114
+ // rs = [{label: '全部', value: ''}, ...priceArr]
1115
+ // }
1116
+ // if (rs.length === 0) {
1117
+ // console.log('rs读出来是空')
1118
+ // this.$refs.paged.$refs.cri.model.f_price_name = ''
1119
+ // }
1120
+ // return rs
1121
+ // }
1122
+ // },
1123
+ inputtores () {
1124
+ // 获取抄表员
1125
+ console.log('获取抄表员', this.$login.f)
1126
+ let rs = []
1127
+ if (this.$login.f.f_gasman.length > 0) {
1128
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
1129
+ let temp = {
1130
+ label: this.$login.f.f_gasman[i].name,
1131
+ value: this.$login.f.f_gasman[i].name
1132
+ }
1133
+ rs.push(temp)
1134
+ }
1135
+ }
1136
+
1137
+ return [{label: '全部', value: ''}, ...rs]
1138
+ },
1139
+ authArr () {
1140
+ return this.$login.r ? this.$login.r : []
1141
+ },
1142
+ getCondition(){
1143
+
1144
+ return {condition:this.conditon2}
1145
+ },
1146
+ getfield(){
1147
+ let data = {}
1148
+ this.bodyData.forEach((value, index)=>{
1149
+ data[this.bodyData[index]] = this.headData[index]
1150
+ })
1151
+ //合计字段打印
1152
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
1153
+ if(this.sumsmodel){
1154
+ Object.keys(this.sumsmodel).forEach((key) => {
1155
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
1156
+ })
1157
+ }else{
1158
+ this.tfoot += '暂无'
1159
+ }
1160
+ this.tfoot += '</th></tr>'
1161
+ return data
1162
+ },
1163
+ getExportField() {
1164
+ return exportConfig.compreConfig
1165
+ }
1166
+ }
1167
+ }
1168
+ </script>