manage-client-xy 3.2.29 → 3.2.30

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 (23) hide show
  1. package/build/dev-server.js +2 -2
  2. package/package.json +1 -1
  3. package/src/components/sale/businessquery/AreaGeneralQuery.vue +715 -715
  4. package/src/components/sale/businessquery/CMHGasQuery.vue +441 -441
  5. package/src/components/sale/businessquery/ChangeMeterQuery.vue +659 -659
  6. package/src/components/sale/businessquery/ChangeUserQuery.vue +403 -403
  7. package/src/components/sale/businessquery/ChargeQuery.vue +1027 -1027
  8. package/src/components/sale/businessquery/DisableQuery.vue +433 -433
  9. package/src/components/sale/businessquery/EnableQuery.vue +422 -422
  10. package/src/components/sale/businessquery/FMYGasQuery.vue +440 -440
  11. package/src/components/sale/businessquery/FillCardQuery.vue +522 -522
  12. package/src/components/sale/businessquery/FillGasQuery.vue +506 -506
  13. package/src/components/sale/businessquery/HandplanQuery.vue +728 -728
  14. package/src/components/sale/businessquery/LogQuery.vue +301 -301
  15. package/src/components/sale/businessquery/NewAccountQuery.vue +518 -518
  16. package/src/components/sale/businessquery/OtherChargeQuery.vue +432 -432
  17. package/src/components/sale/businessquery/RecordQuery.vue +399 -399
  18. package/src/components/sale/businessquery/ResidentialQuery.vue +417 -417
  19. package/src/components/sale/businessquery/ReverseQuery.vue +459 -459
  20. package/src/components/sale/businessquery/SellingHand.vue +408 -408
  21. package/src/components/sale/businessquery/TransferQuery.vue +589 -589
  22. package/src/components/sale/businessquery/cancelAccountQuery.vue +518 -518
  23. package/src/components/sale/filesquery/UserQuery.vue +796 -796
@@ -1,715 +1,715 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div class="col-sm-2 form-group">
10
- <label for="startDate" class="font_normal_body">开始日期</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :format="'yyyy-MM-dd HH:mm:ss'"
15
- :show-reset-button="true"
16
- >
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label for="endDate" class="font_normal_body">结束日期</label>
21
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :format="'yyyy-MM-dd HH:mm:ss'"
25
- :show-reset-button="true"
26
- >
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label for="area" class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
31
- <v-select :value.sync="model.f_residential_area"
32
- id="area"
33
- class="select_list select"
34
- enter-push
35
- multiple="true"
36
- v-model="model.f_residential_area"
37
- style="width: 60%"
38
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
39
- close-on-select>
40
- </v-select>
41
- </div>
42
- <!-- <div class="col-sm-2 form-group">-->
43
- <!-- <label for="f_area_id" class="font_normal_body">小区编码</label>-->
44
- <!-- <input id="f_area_id" type="text" style="width:60%" class="input_search" v-model="model.f_area_id"-->
45
- <!-- condition="f_area_id = '{}'" placeholder='小区编码'>-->
46
- <!-- </div>-->
47
- <!--<div class="col-sm-2 form-group">-->
48
- <!--<label class="font_normal_body">客户编号</label>-->
49
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"-->
50
- <!--condition="f_userinfo_code = '{}' " placeholder="客户编号">-->
51
- <!--</div>-->
52
- <!--<div class="col-sm-2 form-group">-->
53
- <!--<label class="font_normal_body">客户名称</label>-->
54
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"-->
55
- <!--condition="f_user_name like '%{}%'" placeholder="客户名称">-->
56
- <!--</div>-->
57
-
58
- <div class="span" style="float:right;">
59
- <!--<read-idcard></read-idcard>-->
60
- <button class="button_search button_spacing" @click="search()">查询</button>
61
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
62
-
63
- <!-- <export-excel :data="$parent.$parent.getCondition"-->
64
- <!-- :field="$parent.$parent.getfield"-->
65
- <!-- :footer="$parent.$parent.footer"-->
66
- <!-- :header="$parent.$parent.other"-->
67
- <!-- sqlurl="rs/logic/exportfile"-->
68
- <!-- sql-name="areaGeneralQuery"-->
69
- <!-- template-name='小区综合查询导出'-->
70
- <!-- :choose-col="true"></export-excel>-->
71
-
72
- <!--<print-data :model="$parent.model" :field="$parent.$parent.getfield"-->
73
- <!--:defaultfield="$parent.$parent.defaultfield" print-name="收费查询"-->
74
- <!--:sumsmodel="$parent.$parent.sumsmodel"></print-data>-->
75
- <div style="float: right" class="button_spacing"
76
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
77
- @click="$parent.$parent.hidden()"></div>
78
-
79
- </div>
80
- </div>
81
- <div class="row" v-show="$parent.$parent.criteriaShow">
82
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"
83
- v-ref:sel></res-select-group>
84
-
85
- <!--<div class="col-sm-2 form-group">-->
86
- <!--<label class="font_normal_body">客户电话</label>-->
87
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"-->
88
- <!--condition="f_user_phone like '%{}%'" placeholder="客户电话">-->
89
- <!--</div>-->
90
- <!--<div class="col-sm-2 form-group">-->
91
- <!--<label class="font_normal_body">身份证号</label>-->
92
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"-->
93
- <!--condition="f_idnumber like '%{}%'" placeholder="身份证号">-->
94
- <!--</div>-->
95
- <!--<div class="col-sm-2 form-group">-->
96
- <!--<label class="font_normal_body">客户地址</label>-->
97
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_address"-->
98
- <!--condition="f_address like '%{}%'" placeholder='客户地址'>-->
99
- <!--</div>-->
100
- <div class="col-sm-2 form-group">
101
- <label class="font_normal_body">用户分类</label>
102
- <v-select :value.sync="model.f_user_type"
103
- @change="$parent.$parent.userTypeChange"
104
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
105
- condition="f_user_type = '{}'"
106
- close-on-select></v-select>
107
- </div>
108
- <div class="col-sm-2 form-group">
109
- <label class="font_normal_body">用户类型</label>
110
- <v-select :value.sync="model.f_user_mold"
111
- @change="$parent.$parent.userMoldChange"
112
- :options='$parent.$parent.usermold' placeholder='请选择' v-model="model.f_user_mold"
113
- condition="f_user_mold = '{}'"
114
- close-on-select></v-select>
115
- </div>
116
- <div class="col-sm-2 form-group">
117
- <label class="font_normal_body">用气性质</label>
118
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
119
- :options='$parent.$parent.gasproperties' placeholder='请选择'
120
- condition="f_gasproperties = '{}'"
121
- close-on-select></v-select>
122
- </div>
123
- <div class="col-sm-2 form-group">
124
- <label class="font_normal_body">房产地址</label>
125
- <input class="input_search" condition="f_house_address = '{}'"
126
- placeholder='房产地址'
127
- style="width:60%" type="text" v-model="model.f_house_address">
128
- </div>
129
- <div class="col-sm-2 form-group">
130
- <label class="font_normal_body">用途</label>
131
- <input class="input_search" condition="f_property_usage = '{}'"
132
- placeholder='用途'
133
- style="width:60%" type="text" v-model="model.f_property_usage">
134
- </div>
135
- <div class="col-sm-2 form-group">
136
- <label class="font_normal_body">房型</label>
137
- <input class="input_search" condition="f_house_type = '{}'"
138
- placeholder='房型'
139
- style="width:60%" type="text" v-model="model.f_house_type">
140
- </div>
141
- <div class="col-sm-2 form-group">
142
- <label class="font_normal_body">是否一户多表</label>
143
- <input class="input_search" condition="f_is_multi_meter = '{}'"
144
- placeholder='是否一户多表'
145
- style="width:60%" type="text" v-model="model.f_is_multi_meter">
146
- </div>
147
- <div class="col-sm-2 form-group">
148
- <label class="font_normal_body">关联ID</label>
149
- <input class="input_search" condition="f_house_id = '{}'"
150
- placeholder='关联ID'
151
- style="width:60%" type="text" v-model="model.f_house_id">
152
- </div>
153
-
154
-
155
- </div>
156
- </div>
157
- </criteria>
158
-
159
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
160
- <template partial='head'>
161
- <tr>
162
- <th rowspan="2">
163
- <nobr>序号</nobr>
164
- </th>
165
- <th rowspan="2">
166
- <nobr>小区名称</nobr>
167
- </th>
168
- <th colspan="6">
169
- <nobr>用户数(档案户数)</nobr>
170
- </th>
171
- <th colspan="4">
172
- <nobr>机表(抄表情况)</nobr>
173
- </th>
174
- <th colspan="4">
175
- <nobr>卡表(售气情况)</nobr>
176
- </th>
177
- <th colspan="4">
178
- <nobr>物联网表(用气情况)</nobr>
179
- </th>
180
- <th rowspan="2">
181
- <nobr>期间实收金额</nobr>
182
- </th>
183
- </tr>
184
- <tr>
185
- <th>
186
- <nobr>正常</nobr>
187
- </th>
188
- <th>
189
- <nobr>停用</nobr>
190
- </th>
191
- <th>
192
- <nobr>销户</nobr>
193
- </th>
194
- <th>
195
- <nobr>未开户</nobr>
196
- </th>
197
- <th>
198
- <nobr>壁挂锅炉</nobr>
199
- </th>
200
- <th>
201
- <nobr>楼栋</nobr>
202
- </th>
203
-
204
- <th>
205
- <nobr>户数</nobr>
206
- </th>
207
- <th>
208
- <nobr>气量</nobr>
209
- </th>
210
- <th>
211
- <nobr>金额</nobr>
212
- </th>
213
- <th>
214
- <nobr>实收</nobr>
215
- </th>
216
- <th>
217
- <nobr>户数</nobr>
218
- </th>
219
- <th>
220
- <nobr>气量</nobr>
221
- </th>
222
- <th>
223
- <nobr>金额</nobr>
224
- </th>
225
- <th>
226
- <nobr>实收</nobr>
227
- </th>
228
- <th title="用气户数">
229
- <nobr>户数</nobr>
230
- </th>
231
- <th>
232
- <nobr>气量</nobr>
233
- </th>
234
- <th>
235
- <nobr>金额</nobr>
236
- </th>
237
- <th>
238
- <nobr>实收</nobr>
239
- </th>
240
- </tr>
241
- </template>
242
- <template partial='body'>
243
- <td style="text-align:center">
244
- <nobr>{{ $index + 1 }}</nobr>
245
- </td>
246
- <td style="text-align: center;">
247
- <nobr>{{ row.f_residential_area }}</nobr>
248
- </td>
249
- <td style="text-align: center;">
250
- <nobr>{{ row.f_zhengchang }}</nobr>
251
- </td>
252
- <td style="text-align: center;">
253
- <nobr>{{ row.f_tingyong }}</nobr>
254
- </td>
255
- <td style="text-align: center;">
256
- <nobr>{{ row.f_xiaohu }}</nobr>
257
- </td>
258
- <td style="text-align: center;">
259
- <nobr>{{ row.f_weikaihu }}</nobr>
260
- </td>
261
- <td style="text-align: center;">
262
- <nobr>{{ row.bgl }}</nobr>
263
- </td>
264
- <td style="text-align: center;">
265
- <nobr>{{ row.f_building }}</nobr>
266
- </td>
267
- <td style="text-align: center;">
268
- <nobr>{{ row.f_jibiao }}</nobr>
269
- </td>
270
- <td style="text-align: center;">
271
- <nobr>{{ row.f_oughtamount }}</nobr>
272
- </td>
273
- <td style="text-align: center;">
274
- <nobr>{{ row.f_oughtfee }}</nobr>
275
- </td>
276
- <td style="text-align: center;">
277
- <nobr>{{ row.f_collection_hand }}</nobr>
278
- </td>
279
-
280
- <td style="text-align: center;">
281
- <nobr>{{ row.f_kabiao }}</nobr>
282
- </td>
283
- <td style="text-align: center;">
284
- <nobr>{{ row.f_pregas }}</nobr>
285
- </td>
286
- <td style="text-align: center;">
287
- <nobr>{{ row.f_preamount }}</nobr>
288
- </td>
289
- <td style="text-align: center;">
290
- <nobr>{{ row.f_collection_card }}</nobr>
291
- </td>
292
-
293
- <td style="text-align: center;">
294
- <nobr>{{ row.f_wulian }}</nobr>
295
- </td>
296
- <td style="text-align: center;">
297
- <nobr>{{ row.f_oughtamount_web }}</nobr>
298
- </td>
299
- <td style="text-align: center;">
300
- <nobr>{{ row.f_oughtfee_web }}</nobr>
301
- </td>
302
- <td style="text-align: center;">
303
- <nobr>{{ row.f_collection_web }}</nobr>
304
- </td>
305
- <td style="text-align: center;">
306
- <nobr>{{ row.f_collection }}</nobr>
307
- </td>
308
- </template>
309
- <template partial='foot'></template>
310
- </data-grid>
311
- </criteria-paged>
312
- <table class="table-hover">
313
- <tr style="position: relative" class="table-bordered">
314
- <td
315
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
316
- 汇总信息
317
- </td>
318
- <td
319
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
320
- 正常合计:&emsp;{{ sumsmodel.f_zhengchang }}
321
- </td>
322
- <td
323
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
324
- 停用合计:&emsp;{{ sumsmodel.f_tingyong }}
325
- </td>
326
- <td
327
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
328
- 未开户合计:&emsp;{{ sumsmodel.f_weikaihu }}
329
- </td>
330
- <td
331
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
332
- 销户合计:&emsp;{{ sumsmodel.f_xiaohu }}
333
- </td>
334
- <td
335
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
336
- 壁挂炉合计:&emsp;{{ sumsmodel.bgl }}
337
- </td>
338
- <td
339
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
340
- 楼栋合计:&emsp;{{ sumsmodel.f_building }}
341
- </td>
342
- <td
343
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
344
- 机表抄表户数合计:&emsp;{{ sumsmodel.f_jibiao }}
345
- </td>
346
- <td
347
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
348
- 机表抄表气量合计:&emsp;{{ sumsmodel.f_oughtamount }}
349
- </td>
350
- <td
351
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
352
- 机表抄表金额合计:&emsp;{{ sumsmodel.f_oughtfee }}
353
- </td>
354
- <td
355
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
356
- 机表实收金额合计:&emsp;{{ sumsmodel.f_collection_hand }}
357
- </td>
358
- <td
359
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
360
- 物联用气户数合计:&emsp;{{ sumsmodel.f_wulian }}
361
- </td>
362
- <td
363
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
364
- 物联用气量合计:&emsp;{{ sumsmodel.f_oughtamount_web }}
365
- </td>
366
- <td
367
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
368
- 物联用气金额合计:&emsp;{{ sumsmodel.f_oughtfee_web }}
369
- </td>
370
- <td
371
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
372
- 物联实收金额合计:&emsp;{{ sumsmodel.f_collection_web }}
373
- </td>
374
- <td
375
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
376
- 卡表售气户数合计:&emsp;{{ sumsmodel.f_kabiao }}
377
- </td>
378
- <td
379
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
380
- 卡表售气量合计:&emsp;{{ sumsmodel.f_pregas }}
381
- </td>
382
- <td
383
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
384
- 卡表售气金额合计:&emsp;{{ sumsmodel.f_preamount }}
385
- </td>
386
- <td
387
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
388
- 卡表实收金额合计:&emsp;{{ sumsmodel.f_collection_card }}
389
- </td>
390
- <td
391
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
392
- 总实收金额合计:&emsp;{{ sumsmodel.f_collection }}
393
- </td>
394
- </tr>
395
- </table>
396
- </div>
397
- <!--<div v-if="show">-->
398
- <!--<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>-->
399
- <!--</div>-->
400
- </div>
401
- </div>
402
- </template>
403
-
404
- <script>
405
- import {HttpResetClass, PagedList} from 'vue-client'
406
- import exportConfig from '../config/exportConfig'
407
- import plugins from "../../../plugins/GetLoginInfoService";
408
-
409
- let readySomething = async function (self) {
410
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
411
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
412
- // self.$refs.paged.$refs.cri.search()
413
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
414
- await self.$MagLoadParams.loadParam()
415
- self.initParams()
416
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
417
- }
418
- export default {
419
- data() {
420
- return {
421
-
422
- config: {
423
- defaultPrint: []
424
- },
425
- other: [],
426
- footer: [],
427
- //f_price_name:[],
428
- gasproperties:[],
429
- usermold:[],
430
- showinfo: false,
431
- data: {},
432
- show: false,
433
- rowdata: {},
434
- initres: {
435
- org: [this.$login.f.orgid],
436
- dep: [],
437
- user: []
438
- },
439
- model: new PagedList('rs/sql/areaGeneralQuery', 20, {
440
- startDate: 'this.model.startDate',
441
- endDate: 'this.model.endDate'
442
- }, {
443
- f_zhengchang: 0,
444
- bgl:0,
445
- f_building:0,
446
- f_tingyong: 0,
447
- f_weikaihu: 0,
448
- f_xiaohu: 0,
449
- f_jibiao: 0,
450
- f_oughtamount: 0,
451
- f_oughtfee: 0,
452
- f_collection_hand: 0,
453
- f_wulian: 0,
454
- f_oughtamount_web: 0,
455
- f_oughtfee_web: 0,
456
- f_collection_web: 0,
457
- f_kabiao: 0,
458
- f_pregas: 0,
459
- f_preamount: 0,
460
- f_collection_card: 0,
461
- f_collection: 0
462
- }),
463
- criteriaShow: false,
464
- // 下拉框
465
- meterbrands: [],
466
- pricenames: [],
467
- prices: [],
468
- area: [],
469
- orgCondtionStr: '(' + this.$login.f.orgid + ')',
470
- //合计数据
471
- defaultfield: [],
472
- //小区
473
- residentialArea: [],
474
- sumsmodel: {},
475
- f_filialeid: this.$login.f.f_orgid
476
- }
477
- },
478
- ready() {
479
- this.getaddress()
480
-
481
- readySomething(this).then(() => {
482
- this.$emit('ready')
483
- }).catch((error) => {
484
- this.$emit('error', error)
485
- })
486
- },
487
- methods: {
488
- getRes(obj) {
489
- this.orgCondtionStr = obj
490
- console.log('this.orgCondtionStr===>',this.orgCondtionStr)
491
- },
492
- getotherfooter() {
493
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
494
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
495
- this.other = [];
496
- this.footer = [];
497
- let exportdata = this.getCondition;
498
- let otherInData = [];
499
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
500
- let footerData = [], exportfield = this.getfield;
501
- footerData.push("合计");
502
- let self = this;
503
- for (var field in self.sumsmodel) {
504
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
505
- }
506
- this.footer.push(footerData);
507
- this.other.push(otherInData);
508
- },
509
- async getaddress(){
510
- console.log('开始获取小区')
511
- let HttpReset = new HttpResetClass()
512
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist?pageNo=1&pageSize=5000', {
513
- data: {
514
- condition: '1=1'
515
- }
516
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
517
- console.log('小区',data)
518
- let house = []
519
- for (let row of data.data){
520
- console.log('开始保存小区')
521
- house.push({label: row.f_residential_area, value: row.f_residential_area})
522
- }
523
- this.residentialArea = house
524
- },
525
-
526
-
527
- //把数据库查询数据转换为下拉数据
528
- calculate(rows) {
529
- let data = []
530
- rows.forEach((row, n) => {
531
- data[n] = {label: row.f_residential_area, value: row.id}
532
- })
533
- return data
534
- },
535
-
536
- search() {
537
- this.$refs.paged.$refs.cri.search()
538
- },
539
- cancel() {
540
- this.show = false
541
- },
542
- showmsg(obj) {
543
- this.rowdata = obj
544
- this.show = true
545
- },
546
- userTypeChange () {
547
- this.usermold=[]
548
- this.f_gasproperties=[]
549
- if(this.$refs.paged.$refs.cri.model !== null) {
550
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
551
- this.$refs.paged.$refs.cri.model.f_user_mold=''
552
- this.usermold = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
553
- }
554
- else{
555
- this.usermold =[{label: '全部', value: ''}]
556
- }
557
- },
558
- userMoldChange () {
559
- this.gasproperties=[]
560
- if(this.$refs.paged.$refs.cri.model !==null) {
561
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
562
- if (this.$refs.paged.$refs.cri.model.f_user_mold[0] ==='居民'){
563
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0] + this.$refs.paged.$refs.cri.model.f_user_mold[0])
564
- return
565
- }
566
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_mold[0])
567
- }
568
- else{
569
- this.gasproperties =[{label: '全部', value: ''}]
570
- }
571
- },
572
- initParams() {
573
- // 初始化气表品牌
574
- let brandArr = []
575
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
576
- let temp = {}
577
- temp.label = item.label
578
- temp.value = item.value.f_meter_brand
579
- brandArr.push(temp)
580
- })
581
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
582
- //初始化气表价格
583
- this.prices = this.$MagGetSaleParam.getPrices();
584
- },
585
- selfSearch(args) {
586
- if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === '') {
587
- this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
588
- } else {
589
- //小区查询条件
590
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
591
- console.log("=====小区model绑定====", this.area)
592
- if (this.area.length !== 0) {
593
- let str = JSON.stringify(this.area)
594
- str = str.replace(/"/g, `'`)
595
- str = str.replace(/\[/g, ``)
596
- str = str.replace(/\]/g, ``)
597
- console.log("=====小区model22222222222绑定====", str)
598
- //查询多个小区时条件
599
- args.condition += ` and f_residential_area in ( ${str} )`
600
- }
601
-
602
- let f_orgstr = this.orgCondtionStr
603
- args.condition = `${args.condition} ` + f_orgstr
604
- this.model.search(args.condition, args.model)
605
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
606
- }
607
- },
608
- clear() {
609
- //清空部门和人员
610
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
611
- //部门和人员变为全选
612
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
613
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
614
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
615
- this.$refs.paged.$refs.cri.model[key] = []
616
- })
617
-
618
- },
619
- dealmsg(val) {
620
- val.model = this.model.model
621
- this.$dispatch('deal-msg', val)
622
- },
623
- show() {
624
- this.criteriaShow = true
625
- },
626
- hidden() {
627
- this.criteriaShow = !this.criteriaShow
628
- },
629
-
630
- async updateParams() {
631
- await this.$MagLoadParams.loadParam(this.f_filialeid)
632
- this.initParams()
633
- }
634
-
635
- },
636
- events: {
637
- 'getidcard'(IdCard) {
638
- console.log("IdCard-===")
639
- console.log(IdCard)
640
- // console.log(param)
641
- this.$refs.paged.$refs.cri.model.f_info_idnumber = IdCard.strID
642
- }
643
- },
644
- watch: {
645
- 'model'(val) {
646
- },
647
- 'orgCondtionStr'(val) {
648
- let res = val.match(/'(.*?)'/)
649
- console.log('正则提取:', res && res[1])
650
- if (res) {
651
- this.f_filialeid = res[1]
652
- this.updateParams()
653
- }
654
- },
655
- sumsmodel: {
656
- handler: function (val) {
657
- this.getotherfooter();
658
- },
659
- deep: true
660
- }
661
- },
662
- computed: {
663
- getPricenames() {
664
- let f_user_type = this.$refs.paged.model.model.f_user_type;
665
- let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
666
- let pricetype = this.$refs.paged.model.model.pricetype;
667
- console.log("打印一下:", f_user_type, f_gasproperties, pricetype, this.f_filialeid, this.prices)
668
- if (this.$refs.paged.model.model !== null) {
669
- let rs = []
670
- let priceArr = []
671
- if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length > 0) {
672
- let params = {
673
- f_user_type: f_user_type[0],
674
- f_gasproperties: f_gasproperties[0],
675
- f_price_type: pricetype[0],
676
- filter: this.f_filialeid,
677
- prices: this.prices
678
- }
679
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
680
- let temp = {}
681
- temp.label = item.label
682
- temp.value = item.value.f_price_name
683
- priceArr.push(temp)
684
- })
685
- rs = [{label: '全部', value: ''}, ...priceArr]
686
- }
687
- if (rs.length === 0) {
688
- console.log('rs读出来是空')
689
- this.$refs.paged.model.model.f_price_name = ''
690
- }
691
- return rs
692
- }
693
- },
694
- getCondition() {
695
- return {
696
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
697
- startDate: this.$refs.paged.$refs.cri.model.startDate,
698
- endDate: this.$refs.paged.$refs.cri.model.endDate
699
- }
700
- },
701
- getfield() {
702
- return exportConfig.AreaGeneralQuery
703
- },
704
- usertypes() {
705
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
706
- },
707
- metertypes() {
708
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
709
- },
710
- tablestate() {
711
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表状态')]
712
- }
713
- }
714
- }
715
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ >
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ >
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label for="area" class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
31
+ <v-select :value.sync="model.f_residential_area"
32
+ id="area"
33
+ class="select_list select"
34
+ enter-push
35
+ multiple="true"
36
+ v-model="model.f_residential_area"
37
+ style="width: 60%"
38
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
39
+ close-on-select>
40
+ </v-select>
41
+ </div>
42
+ <!-- <div class="col-sm-2 form-group">-->
43
+ <!-- <label for="f_area_id" class="font_normal_body">小区编码</label>-->
44
+ <!-- <input id="f_area_id" type="text" style="width:60%" class="input_search" v-model="model.f_area_id"-->
45
+ <!-- condition="f_area_id = '{}'" placeholder='小区编码'>-->
46
+ <!-- </div>-->
47
+ <!--<div class="col-sm-2 form-group">-->
48
+ <!--<label class="font_normal_body">客户编号</label>-->
49
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"-->
50
+ <!--condition="f_userinfo_code = '{}' " placeholder="客户编号">-->
51
+ <!--</div>-->
52
+ <!--<div class="col-sm-2 form-group">-->
53
+ <!--<label class="font_normal_body">客户名称</label>-->
54
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"-->
55
+ <!--condition="f_user_name like '%{}%'" placeholder="客户名称">-->
56
+ <!--</div>-->
57
+
58
+ <div class="span" style="float:right;">
59
+ <!--<read-idcard></read-idcard>-->
60
+ <button class="button_search button_spacing" @click="search()">查询</button>
61
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
62
+
63
+ <!-- <export-excel :data="$parent.$parent.getCondition"-->
64
+ <!-- :field="$parent.$parent.getfield"-->
65
+ <!-- :footer="$parent.$parent.footer"-->
66
+ <!-- :header="$parent.$parent.other"-->
67
+ <!-- sqlurl="rs/logic/exportfile"-->
68
+ <!-- sql-name="areaGeneralQuery"-->
69
+ <!-- template-name='小区综合查询导出'-->
70
+ <!-- :choose-col="true"></export-excel>-->
71
+
72
+ <!--<print-data :model="$parent.model" :field="$parent.$parent.getfield"-->
73
+ <!--:defaultfield="$parent.$parent.defaultfield" print-name="收费查询"-->
74
+ <!--:sumsmodel="$parent.$parent.sumsmodel"></print-data>-->
75
+ <div style="float: right" class="button_spacing"
76
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
77
+ @click="$parent.$parent.hidden()"></div>
78
+
79
+ </div>
80
+ </div>
81
+ <div class="row" v-show="$parent.$parent.criteriaShow">
82
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"
83
+ v-ref:sel></res-select-group>
84
+
85
+ <!--<div class="col-sm-2 form-group">-->
86
+ <!--<label class="font_normal_body">客户电话</label>-->
87
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"-->
88
+ <!--condition="f_user_phone like '%{}%'" placeholder="客户电话">-->
89
+ <!--</div>-->
90
+ <!--<div class="col-sm-2 form-group">-->
91
+ <!--<label class="font_normal_body">身份证号</label>-->
92
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"-->
93
+ <!--condition="f_idnumber like '%{}%'" placeholder="身份证号">-->
94
+ <!--</div>-->
95
+ <!--<div class="col-sm-2 form-group">-->
96
+ <!--<label class="font_normal_body">客户地址</label>-->
97
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_address"-->
98
+ <!--condition="f_address like '%{}%'" placeholder='客户地址'>-->
99
+ <!--</div>-->
100
+ <div class="col-sm-2 form-group">
101
+ <label class="font_normal_body">用户分类</label>
102
+ <v-select :value.sync="model.f_user_type"
103
+ @change="$parent.$parent.userTypeChange"
104
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
105
+ condition="f_user_type = '{}'"
106
+ close-on-select></v-select>
107
+ </div>
108
+ <div class="col-sm-2 form-group">
109
+ <label class="font_normal_body">用户类型</label>
110
+ <v-select :value.sync="model.f_user_mold"
111
+ @change="$parent.$parent.userMoldChange"
112
+ :options='$parent.$parent.usermold' placeholder='请选择' v-model="model.f_user_mold"
113
+ condition="f_user_mold = '{}'"
114
+ close-on-select></v-select>
115
+ </div>
116
+ <div class="col-sm-2 form-group">
117
+ <label class="font_normal_body">用气性质</label>
118
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
119
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
120
+ condition="f_gasproperties = '{}'"
121
+ close-on-select></v-select>
122
+ </div>
123
+ <div class="col-sm-2 form-group">
124
+ <label class="font_normal_body">房产地址</label>
125
+ <input class="input_search" condition="f_house_address = '{}'"
126
+ placeholder='房产地址'
127
+ style="width:60%" type="text" v-model="model.f_house_address">
128
+ </div>
129
+ <div class="col-sm-2 form-group">
130
+ <label class="font_normal_body">用途</label>
131
+ <input class="input_search" condition="f_property_usage = '{}'"
132
+ placeholder='用途'
133
+ style="width:60%" type="text" v-model="model.f_property_usage">
134
+ </div>
135
+ <div class="col-sm-2 form-group">
136
+ <label class="font_normal_body">房型</label>
137
+ <input class="input_search" condition="f_house_type = '{}'"
138
+ placeholder='房型'
139
+ style="width:60%" type="text" v-model="model.f_house_type">
140
+ </div>
141
+ <div class="col-sm-2 form-group">
142
+ <label class="font_normal_body">是否一户多表</label>
143
+ <input class="input_search" condition="f_is_multi_meter = '{}'"
144
+ placeholder='是否一户多表'
145
+ style="width:60%" type="text" v-model="model.f_is_multi_meter">
146
+ </div>
147
+ <div class="col-sm-2 form-group">
148
+ <label class="font_normal_body">关联ID</label>
149
+ <input class="input_search" condition="f_house_id = '{}'"
150
+ placeholder='关联ID'
151
+ style="width:60%" type="text" v-model="model.f_house_id">
152
+ </div>
153
+
154
+
155
+ </div>
156
+ </div>
157
+ </criteria>
158
+
159
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
160
+ <template partial='head'>
161
+ <tr>
162
+ <th rowspan="2">
163
+ <nobr>序号</nobr>
164
+ </th>
165
+ <th rowspan="2">
166
+ <nobr>小区名称</nobr>
167
+ </th>
168
+ <th colspan="6">
169
+ <nobr>用户数(档案户数)</nobr>
170
+ </th>
171
+ <th colspan="4">
172
+ <nobr>机表(抄表情况)</nobr>
173
+ </th>
174
+ <th colspan="4">
175
+ <nobr>卡表(售气情况)</nobr>
176
+ </th>
177
+ <th colspan="4">
178
+ <nobr>物联网表(用气情况)</nobr>
179
+ </th>
180
+ <th rowspan="2">
181
+ <nobr>期间实收金额</nobr>
182
+ </th>
183
+ </tr>
184
+ <tr>
185
+ <th>
186
+ <nobr>正常</nobr>
187
+ </th>
188
+ <th>
189
+ <nobr>停用</nobr>
190
+ </th>
191
+ <th>
192
+ <nobr>销户</nobr>
193
+ </th>
194
+ <th>
195
+ <nobr>未开户</nobr>
196
+ </th>
197
+ <th>
198
+ <nobr>壁挂锅炉</nobr>
199
+ </th>
200
+ <th>
201
+ <nobr>楼栋</nobr>
202
+ </th>
203
+
204
+ <th>
205
+ <nobr>户数</nobr>
206
+ </th>
207
+ <th>
208
+ <nobr>气量</nobr>
209
+ </th>
210
+ <th>
211
+ <nobr>金额</nobr>
212
+ </th>
213
+ <th>
214
+ <nobr>实收</nobr>
215
+ </th>
216
+ <th>
217
+ <nobr>户数</nobr>
218
+ </th>
219
+ <th>
220
+ <nobr>气量</nobr>
221
+ </th>
222
+ <th>
223
+ <nobr>金额</nobr>
224
+ </th>
225
+ <th>
226
+ <nobr>实收</nobr>
227
+ </th>
228
+ <th title="用气户数">
229
+ <nobr>户数</nobr>
230
+ </th>
231
+ <th>
232
+ <nobr>气量</nobr>
233
+ </th>
234
+ <th>
235
+ <nobr>金额</nobr>
236
+ </th>
237
+ <th>
238
+ <nobr>实收</nobr>
239
+ </th>
240
+ </tr>
241
+ </template>
242
+ <template partial='body'>
243
+ <td style="text-align:center">
244
+ <nobr>{{ $index + 1 }}</nobr>
245
+ </td>
246
+ <td style="text-align: center;">
247
+ <nobr>{{ row.f_residential_area }}</nobr>
248
+ </td>
249
+ <td style="text-align: center;">
250
+ <nobr>{{ row.f_zhengchang }}</nobr>
251
+ </td>
252
+ <td style="text-align: center;">
253
+ <nobr>{{ row.f_tingyong }}</nobr>
254
+ </td>
255
+ <td style="text-align: center;">
256
+ <nobr>{{ row.f_xiaohu }}</nobr>
257
+ </td>
258
+ <td style="text-align: center;">
259
+ <nobr>{{ row.f_weikaihu }}</nobr>
260
+ </td>
261
+ <td style="text-align: center;">
262
+ <nobr>{{ row.bgl }}</nobr>
263
+ </td>
264
+ <td style="text-align: center;">
265
+ <nobr>{{ row.f_building }}</nobr>
266
+ </td>
267
+ <td style="text-align: center;">
268
+ <nobr>{{ row.f_jibiao }}</nobr>
269
+ </td>
270
+ <td style="text-align: center;">
271
+ <nobr>{{ row.f_oughtamount }}</nobr>
272
+ </td>
273
+ <td style="text-align: center;">
274
+ <nobr>{{ row.f_oughtfee }}</nobr>
275
+ </td>
276
+ <td style="text-align: center;">
277
+ <nobr>{{ row.f_collection_hand }}</nobr>
278
+ </td>
279
+
280
+ <td style="text-align: center;">
281
+ <nobr>{{ row.f_kabiao }}</nobr>
282
+ </td>
283
+ <td style="text-align: center;">
284
+ <nobr>{{ row.f_pregas }}</nobr>
285
+ </td>
286
+ <td style="text-align: center;">
287
+ <nobr>{{ row.f_preamount }}</nobr>
288
+ </td>
289
+ <td style="text-align: center;">
290
+ <nobr>{{ row.f_collection_card }}</nobr>
291
+ </td>
292
+
293
+ <td style="text-align: center;">
294
+ <nobr>{{ row.f_wulian }}</nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{ row.f_oughtamount_web }}</nobr>
298
+ </td>
299
+ <td style="text-align: center;">
300
+ <nobr>{{ row.f_oughtfee_web }}</nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr>{{ row.f_collection_web }}</nobr>
304
+ </td>
305
+ <td style="text-align: center;">
306
+ <nobr>{{ row.f_collection }}</nobr>
307
+ </td>
308
+ </template>
309
+ <template partial='foot'></template>
310
+ </data-grid>
311
+ </criteria-paged>
312
+ <table class="table-hover">
313
+ <tr style="position: relative" class="table-bordered">
314
+ <td
315
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
316
+ 汇总信息
317
+ </td>
318
+ <td
319
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
320
+ 正常合计:&emsp;{{ sumsmodel.f_zhengchang }}
321
+ </td>
322
+ <td
323
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
324
+ 停用合计:&emsp;{{ sumsmodel.f_tingyong }}
325
+ </td>
326
+ <td
327
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
328
+ 未开户合计:&emsp;{{ sumsmodel.f_weikaihu }}
329
+ </td>
330
+ <td
331
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
332
+ 销户合计:&emsp;{{ sumsmodel.f_xiaohu }}
333
+ </td>
334
+ <td
335
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
336
+ 壁挂炉合计:&emsp;{{ sumsmodel.bgl }}
337
+ </td>
338
+ <td
339
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
340
+ 楼栋合计:&emsp;{{ sumsmodel.f_building }}
341
+ </td>
342
+ <td
343
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
344
+ 机表抄表户数合计:&emsp;{{ sumsmodel.f_jibiao }}
345
+ </td>
346
+ <td
347
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
348
+ 机表抄表气量合计:&emsp;{{ sumsmodel.f_oughtamount }}
349
+ </td>
350
+ <td
351
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
352
+ 机表抄表金额合计:&emsp;{{ sumsmodel.f_oughtfee }}
353
+ </td>
354
+ <td
355
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
356
+ 机表实收金额合计:&emsp;{{ sumsmodel.f_collection_hand }}
357
+ </td>
358
+ <td
359
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
360
+ 物联用气户数合计:&emsp;{{ sumsmodel.f_wulian }}
361
+ </td>
362
+ <td
363
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
364
+ 物联用气量合计:&emsp;{{ sumsmodel.f_oughtamount_web }}
365
+ </td>
366
+ <td
367
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
368
+ 物联用气金额合计:&emsp;{{ sumsmodel.f_oughtfee_web }}
369
+ </td>
370
+ <td
371
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
372
+ 物联实收金额合计:&emsp;{{ sumsmodel.f_collection_web }}
373
+ </td>
374
+ <td
375
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
376
+ 卡表售气户数合计:&emsp;{{ sumsmodel.f_kabiao }}
377
+ </td>
378
+ <td
379
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
380
+ 卡表售气量合计:&emsp;{{ sumsmodel.f_pregas }}
381
+ </td>
382
+ <td
383
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
384
+ 卡表售气金额合计:&emsp;{{ sumsmodel.f_preamount }}
385
+ </td>
386
+ <td
387
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
388
+ 卡表实收金额合计:&emsp;{{ sumsmodel.f_collection_card }}
389
+ </td>
390
+ <td
391
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
392
+ 总实收金额合计:&emsp;{{ sumsmodel.f_collection }}
393
+ </td>
394
+ </tr>
395
+ </table>
396
+ </div>
397
+ <!--<div v-if="show">-->
398
+ <!--<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>-->
399
+ <!--</div>-->
400
+ </div>
401
+ </div>
402
+ </template>
403
+
404
+ <script>
405
+ import {HttpResetClass, PagedList} from 'vue-client'
406
+ import exportConfig from '../config/exportConfig'
407
+ import plugins from "../../../plugins/GetLoginInfoService";
408
+
409
+ let readySomething = async function (self) {
410
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
411
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
412
+ // self.$refs.paged.$refs.cri.search()
413
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
414
+ await self.$MagLoadParams.loadParam()
415
+ self.initParams()
416
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
417
+ }
418
+ export default {
419
+ data() {
420
+ return {
421
+
422
+ config: {
423
+ defaultPrint: []
424
+ },
425
+ other: [],
426
+ footer: [],
427
+ //f_price_name:[],
428
+ gasproperties:[],
429
+ usermold:[],
430
+ showinfo: false,
431
+ data: {},
432
+ show: false,
433
+ rowdata: {},
434
+ initres: {
435
+ org: [this.$login.f.orgid],
436
+ dep: [],
437
+ user: []
438
+ },
439
+ model: new PagedList('rs/sql/areaGeneralQuery', 20, {
440
+ startDate: 'this.model.startDate',
441
+ endDate: 'this.model.endDate'
442
+ }, {
443
+ f_zhengchang: 0,
444
+ bgl:0,
445
+ f_building:0,
446
+ f_tingyong: 0,
447
+ f_weikaihu: 0,
448
+ f_xiaohu: 0,
449
+ f_jibiao: 0,
450
+ f_oughtamount: 0,
451
+ f_oughtfee: 0,
452
+ f_collection_hand: 0,
453
+ f_wulian: 0,
454
+ f_oughtamount_web: 0,
455
+ f_oughtfee_web: 0,
456
+ f_collection_web: 0,
457
+ f_kabiao: 0,
458
+ f_pregas: 0,
459
+ f_preamount: 0,
460
+ f_collection_card: 0,
461
+ f_collection: 0
462
+ }),
463
+ criteriaShow: false,
464
+ // 下拉框
465
+ meterbrands: [],
466
+ pricenames: [],
467
+ prices: [],
468
+ area: [],
469
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
470
+ //合计数据
471
+ defaultfield: [],
472
+ //小区
473
+ residentialArea: [],
474
+ sumsmodel: {},
475
+ f_filialeid: this.$login.f.f_orgid
476
+ }
477
+ },
478
+ ready() {
479
+ this.getaddress()
480
+
481
+ readySomething(this).then(() => {
482
+ this.$emit('ready')
483
+ }).catch((error) => {
484
+ this.$emit('error', error)
485
+ })
486
+ },
487
+ methods: {
488
+ getRes(obj) {
489
+ this.orgCondtionStr = obj
490
+ console.log('this.orgCondtionStr===>',this.orgCondtionStr)
491
+ },
492
+ getotherfooter() {
493
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
494
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
495
+ this.other = [];
496
+ this.footer = [];
497
+ let exportdata = this.getCondition;
498
+ let otherInData = [];
499
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
500
+ let footerData = [], exportfield = this.getfield;
501
+ footerData.push("合计");
502
+ let self = this;
503
+ for (var field in self.sumsmodel) {
504
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
505
+ }
506
+ this.footer.push(footerData);
507
+ this.other.push(otherInData);
508
+ },
509
+ async getaddress(){
510
+ console.log('开始获取小区')
511
+ let HttpReset = new HttpResetClass()
512
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist?pageNo=1&pageSize=5000', {
513
+ data: {
514
+ condition: '1=1'
515
+ }
516
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
517
+ console.log('小区',data)
518
+ let house = []
519
+ for (let row of data.data){
520
+ console.log('开始保存小区')
521
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
522
+ }
523
+ this.residentialArea = house
524
+ },
525
+
526
+
527
+ //把数据库查询数据转换为下拉数据
528
+ calculate(rows) {
529
+ let data = []
530
+ rows.forEach((row, n) => {
531
+ data[n] = {label: row.f_residential_area, value: row.id}
532
+ })
533
+ return data
534
+ },
535
+
536
+ search() {
537
+ this.$refs.paged.$refs.cri.search()
538
+ },
539
+ cancel() {
540
+ this.show = false
541
+ },
542
+ showmsg(obj) {
543
+ this.rowdata = obj
544
+ this.show = true
545
+ },
546
+ userTypeChange () {
547
+ this.usermold=[]
548
+ this.f_gasproperties=[]
549
+ if(this.$refs.paged.$refs.cri.model !== null) {
550
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
551
+ this.$refs.paged.$refs.cri.model.f_user_mold=''
552
+ this.usermold = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
553
+ }
554
+ else{
555
+ this.usermold =[{label: '全部', value: ''}]
556
+ }
557
+ },
558
+ userMoldChange () {
559
+ this.gasproperties=[]
560
+ if(this.$refs.paged.$refs.cri.model !==null) {
561
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
562
+ if (this.$refs.paged.$refs.cri.model.f_user_mold[0] ==='居民'){
563
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0] + this.$refs.paged.$refs.cri.model.f_user_mold[0])
564
+ return
565
+ }
566
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_mold[0])
567
+ }
568
+ else{
569
+ this.gasproperties =[{label: '全部', value: ''}]
570
+ }
571
+ },
572
+ initParams() {
573
+ // 初始化气表品牌
574
+ let brandArr = []
575
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
576
+ let temp = {}
577
+ temp.label = item.label
578
+ temp.value = item.value.f_meter_brand
579
+ brandArr.push(temp)
580
+ })
581
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
582
+ //初始化气表价格
583
+ this.prices = this.$MagGetSaleParam.getPrices();
584
+ },
585
+ selfSearch(args) {
586
+ if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === '') {
587
+ this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
588
+ } else {
589
+ //小区查询条件
590
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
591
+ console.log("=====小区model绑定====", this.area)
592
+ if (this.area.length !== 0) {
593
+ let str = JSON.stringify(this.area)
594
+ str = str.replace(/"/g, `'`)
595
+ str = str.replace(/\[/g, ``)
596
+ str = str.replace(/\]/g, ``)
597
+ console.log("=====小区model22222222222绑定====", str)
598
+ //查询多个小区时条件
599
+ args.condition += ` and f_residential_area in ( ${str} )`
600
+ }
601
+
602
+ let f_orgstr = this.orgCondtionStr
603
+ args.condition = `${args.condition} ` + f_orgstr
604
+ this.model.search(args.condition, args.model)
605
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
606
+ }
607
+ },
608
+ clear() {
609
+ //清空部门和人员
610
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
611
+ //部门和人员变为全选
612
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
613
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
614
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
615
+ this.$refs.paged.$refs.cri.model[key] = []
616
+ })
617
+
618
+ },
619
+ dealmsg(val) {
620
+ val.model = this.model.model
621
+ this.$dispatch('deal-msg', val)
622
+ },
623
+ show() {
624
+ this.criteriaShow = true
625
+ },
626
+ hidden() {
627
+ this.criteriaShow = !this.criteriaShow
628
+ },
629
+
630
+ async updateParams() {
631
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
632
+ this.initParams()
633
+ }
634
+
635
+ },
636
+ events: {
637
+ 'getidcard'(IdCard) {
638
+ console.log("IdCard-===")
639
+ console.log(IdCard)
640
+ // console.log(param)
641
+ this.$refs.paged.$refs.cri.model.f_info_idnumber = IdCard.strID
642
+ }
643
+ },
644
+ watch: {
645
+ 'model'(val) {
646
+ },
647
+ 'orgCondtionStr'(val) {
648
+ let res = val.match(/'(.*?)'/)
649
+ console.log('正则提取:', res && res[1])
650
+ if (res) {
651
+ this.f_filialeid = res[1]
652
+ this.updateParams()
653
+ }
654
+ },
655
+ sumsmodel: {
656
+ handler: function (val) {
657
+ this.getotherfooter();
658
+ },
659
+ deep: true
660
+ }
661
+ },
662
+ computed: {
663
+ getPricenames() {
664
+ let f_user_type = this.$refs.paged.model.model.f_user_type;
665
+ let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
666
+ let pricetype = this.$refs.paged.model.model.pricetype;
667
+ console.log("打印一下:", f_user_type, f_gasproperties, pricetype, this.f_filialeid, this.prices)
668
+ if (this.$refs.paged.model.model !== null) {
669
+ let rs = []
670
+ let priceArr = []
671
+ if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length > 0) {
672
+ let params = {
673
+ f_user_type: f_user_type[0],
674
+ f_gasproperties: f_gasproperties[0],
675
+ f_price_type: pricetype[0],
676
+ filter: this.f_filialeid,
677
+ prices: this.prices
678
+ }
679
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
680
+ let temp = {}
681
+ temp.label = item.label
682
+ temp.value = item.value.f_price_name
683
+ priceArr.push(temp)
684
+ })
685
+ rs = [{label: '全部', value: ''}, ...priceArr]
686
+ }
687
+ if (rs.length === 0) {
688
+ console.log('rs读出来是空')
689
+ this.$refs.paged.model.model.f_price_name = ''
690
+ }
691
+ return rs
692
+ }
693
+ },
694
+ getCondition() {
695
+ return {
696
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
697
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
698
+ endDate: this.$refs.paged.$refs.cri.model.endDate
699
+ }
700
+ },
701
+ getfield() {
702
+ return exportConfig.AreaGeneralQuery
703
+ },
704
+ usertypes() {
705
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
706
+ },
707
+ metertypes() {
708
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
709
+ },
710
+ tablestate() {
711
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表状态')]
712
+ }
713
+ }
714
+ }
715
+ </script>