manage-client 3.2.100 → 3.2.103

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