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,659 +1,659 @@
1
- <template>
2
- <div id="unit" class="flex-row foot_tabset" @keyup.enter="search">
3
- <div class="basic-main">
4
- <div class="flex" v-if="!show">
5
-
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
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
23
- v-model="model.startDate"
24
- :value.sync="model.startDate"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="true"
27
- condition="f_operate_date >= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
28
- </datepicker>
29
- </div>
30
- <div class="col-sm-2 form-group">
31
- <label class="font_normal_body">结束日期</label>
32
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
33
- v-model="model.endDate"
34
- :value.sync="model.endDate"
35
- :format="'yyyy-MM-dd HH:mm:ss'"
36
- :show-reset-button="true"
37
- condition="f_operate_date <= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
38
- </datepicker>
39
- </div>
40
- <div class="span" style="float:right;">
41
- <button class="button_search button_spacing" @click="search()">查询</button>
42
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
44
-
45
- <export-excel :data="$parent.$parent.getCondition"
46
- :field="$parent.$parent.getfield"
47
- sqlurl="rs/logic/exportfile" sql-name="changeMeterQuery" template-name='换表查询导出'
48
- v-if ="$parent.$parent.jurisdiction.includes('excel导出')"
49
- :choose-col="true"></export-excel>
50
-
51
- <div style="float: right" class="button_spacing"
52
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
53
- @click="$parent.$parent.hidden()"></div>
54
- </div>
55
- </div>
56
- <div class="row">
57
- <res-select-group style="col-sm-2 form-group" :initres="$parent.$parent.initres"
58
- @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
59
- <div class="col-sm-2 form-group">
60
- <label for="f_area_id" class="font_normal_body">小区编码</label>
61
- <input id="f_area_id" type="text" style="width:60%" class="input_search" v-model="model.f_area_id"
62
- condition="f_area_id = '{}'" placeholder='小区编码'>
63
- </div>
64
- <div class="col-sm-2 form-group">
65
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
66
- <v-select :value.sync="model.f_residential_area"
67
- class="select_list select"
68
- enter-push
69
- multiple="true"
70
- v-model="model.f_residential_area"
71
- style="width: 60%"
72
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
73
- close-on-select>
74
- </v-select>
75
- </div>
76
- </div>
77
- <div class="row" v-show="$parent.$parent.criteriaShow">
78
- <div class="col-sm-2 form-group">
79
- <label class="font_normal_body">客户电话</label>
80
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
81
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
82
- </div>
83
- <div class="col-sm-2 form-group">
84
- <label class="font_normal_body">客户地址</label>
85
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
86
- condition="f_address like '%{}%'" placeholder='客户地址'>
87
- </div>
88
- <div class="col-sm-2 form-group">
89
- <label class="font_normal_body">新表品牌</label>
90
- <v-select :value.sync="model.f_new_meter_brand"
91
- v-model="model.f_new_meter_brand"
92
- :options='$parent.$parent.meterbrands' placeholder='请选择'
93
- condition="f_new_meter_brand = '{}'"
94
- close-on-select></v-select>
95
- </div>
96
- <div class="col-sm-2 form-group">
97
- <label class="font_normal_body">旧表品牌</label>
98
- <v-select :value.sync="model.f_old_meter_brand"
99
- v-model="model.f_old_meter_brand"
100
- :options='$parent.$parent.meterbrands' placeholder='请选择'
101
- condition="f_old_meter_brand = '{}'"
102
- close-on-select></v-select>
103
- </div>
104
- <div class="col-sm-2 form-group">
105
- <label class="font_normal_body">换表类型</label>
106
- <v-select :value.sync="model.f_type"
107
- v-model="model.f_type"
108
- :options='$parent.$parent.changeTypes' placeholder='请选择'
109
- condition="f_type = '{}'"
110
- close-on-select></v-select>
111
- </div>
112
- <div class="col-sm-2 form-group">
113
- <label class="font_normal_body">换&nbsp;表&nbsp;人&nbsp;</label>
114
- <v-select :value.sync="model.f_change_operator"
115
- v-model="model.f_change_operator"
116
- :options='$parent.$parent.changePerson' placeholder='请选择'
117
- condition="f_change_operator = '{}'"
118
- close-on-select></v-select>
119
- </div>
120
- <div class="col-sm-2 form-group">
121
- <label class="font_normal_body">新表卡号</label>
122
- <input type="text" style="width:60%" class="input_search" v-model="model.f_newcard_id"
123
- condition="f_newcard_id = '{}'" placeholder='新表卡号'>
124
- </div>
125
- <div class="col-sm-2 form-group">
126
- <label class="font_normal_body">旧表卡号</label>
127
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
128
- condition="f_card_id = '{}'" placeholder='旧表卡号'>
129
- </div>
130
- <div class="col-sm-2 form-group">
131
- <label class="font_normal_body">换表状态</label>
132
- <v-select :value.sync="model.f_state"
133
- v-model="model.f_state"
134
- :options='$parent.$parent.charge_state' placeholder='请选择'
135
- condition="f_state = '{}'"
136
- close-on-select></v-select>
137
- </div>
138
- <div class="col-sm-2 form-group">
139
- <label class="font_normal_body">审&nbsp;批&nbsp;人&nbsp;</label>
140
- <input type="text" style="width:60%" class="input_search" v-model="model.f_approve_operator"
141
- condition="f_approve_operator = '{}'" placeholder='审批人'/>
142
- </div>
143
- <div class="col-sm-2 form-group">
144
- <label class="font_normal_body">票&emsp;&emsp;号</label>
145
- <input type="text" style="width:60%" class="input_search" v-model="model.f_voucher_number"
146
- condition="f_voucher_number = '{}'" placeholder='审批人'/>
147
- </div>
148
-
149
- <div class="col-sm-2 form-group">
150
- <label class="font_normal_body">旧表类型</label>
151
- <v-select :value.sync="model.f_meter_type"
152
- v-model="model.f_meter_type"
153
- :options='$parent.$parent.old_table_type' placeholder='请选择'
154
- condition="f_meter_type = '{}'"
155
- close-on-select></v-select>
156
- </div>
157
- <div class="col-sm-2 form-group">
158
- <label class="font_normal_body">是否<br/>手持设备</label>
159
- <v-select :value.sync="$parent.$parent.f_outlets"
160
- :options="$parent.$parent.isPos"
161
- :search="false"
162
- placeholder='请选择'
163
- condition="{}"
164
- close-on-select></v-select>
165
- </div>
166
- <div class="col-sm-2 form-group">
167
- <label class="font_normal_body">房产地址</label>
168
- <input class="input_search" condition="f_house_address = '{}'"
169
- placeholder='房产地址'
170
- style="width:60%" type="text" v-model="model.f_house_address">
171
- </div>
172
- <div class="col-sm-2 form-group">
173
- <label class="font_normal_body">用途</label>
174
- <input class="input_search" condition="f_property_usage = '{}'"
175
- placeholder='用途'
176
- style="width:60%" type="text" v-model="model.f_property_usage">
177
- </div>
178
- <div class="col-sm-2 form-group">
179
- <label class="font_normal_body">房型</label>
180
- <input class="input_search" condition="f_house_type = '{}'"
181
- placeholder='房型'
182
- style="width:60%" type="text" v-model="model.f_house_type">
183
- </div>
184
- <div class="col-sm-2 form-group">
185
- <label class="font_normal_body">是否一户多表</label>
186
- <input class="input_search" condition="f_is_multi_meter = '{}'"
187
- placeholder='是否一户多表'
188
- style="width:60%" type="text" v-model="model.f_is_multi_meter">
189
- </div>
190
- <div class="col-sm-2 form-group">
191
- <label class="font_normal_body">关联ID</label>
192
- <input class="input_search" condition="f_house_id = '{}'"
193
- placeholder='关联ID'
194
- style="width:60%" type="text" v-model="model.f_house_id">
195
- </div>
196
- </div>
197
- </div>
198
- </criteria>
199
-
200
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid
201
- @dblclick="$parent.$parent.toBusiness">
202
- <template partial='head'>
203
- <tr>
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>
229
- <nobr>旧气表品牌</nobr>
230
- </th>
231
- <th>
232
- <nobr>新气表品牌</nobr>
233
- </th>
234
- <th>
235
- <nobr>新表识别码</nobr>
236
- </th>
237
- <th>
238
- <nobr>旧表识别码</nobr>
239
- </th>
240
- <th>
241
- <nobr>旧表累购气量</nobr>
242
- </th>
243
- <th>
244
- <nobr>旧表累购金额</nobr>
245
- </th>
246
- <th>
247
- <nobr>旧表底数</nobr>
248
- </th>
249
- <th>
250
- <nobr>新表初始底数</nobr>
251
- </th>
252
- <th>
253
- <nobr>余气</nobr>
254
- </th>
255
- <th>
256
- <nobr>补气量</nobr>
257
- </th>
258
- <th>
259
- <nobr>补气金额</nobr>
260
- </th>
261
- <th>
262
- <nobr>票号</nobr>
263
- </th>
264
- <th>
265
- <nobr>备注</nobr>
266
- </th>
267
- <th>
268
- <nobr>换表人</nobr>
269
- </th>
270
- <th>
271
- <nobr>审批人</nobr>
272
- </th>
273
- <th>
274
- <nobr>状态</nobr>
275
- </th>
276
- <th>
277
- <nobr>人员</nobr>
278
- </th>
279
- <th>
280
- <nobr>部门</nobr>
281
- </th>
282
- <th>
283
- <nobr>网点</nobr>
284
- </th>
285
- <th>
286
- <nobr>公司</nobr>
287
- </th>
288
- </tr>
289
- </template>
290
- <template partial='body'>
291
- <td style="text-align: center;">
292
- <nobr>
293
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{ row.f_userinfo_code }}</a></span>
294
- </nobr>
295
- </td>
296
- <td style="text-align: center;">
297
- <nobr>{{ row.f_user_name }}</nobr>
298
- </td>
299
- <td style="text-align: center;">
300
- <nobr>{{ row.f_address }}</nobr>
301
- </td>
302
- <td style="text-align: center;">
303
- <nobr>{{ row.f_operate_date }}</nobr>
304
- </td>
305
- <td style="text-align: center;">
306
- <nobr>{{ row.f_type }}</nobr>
307
- </td>
308
- <td style="text-align: center;">
309
- <nobr>{{ row.f_changemeter_fee }}</nobr>
310
- </td>
311
- <td style="text-align: center;">
312
- <nobr>{{ row.f_meternumber_old }}</nobr>
313
- </td>
314
- <td style="text-align: center;">
315
- <nobr>{{ row.f_meternumber }}</nobr>
316
- </td>
317
- <td style="text-align: center;">
318
- <nobr>{{ row.f_meter_brand_old }}</nobr>
319
- </td>
320
- <td style="text-align: center;">
321
- <nobr>{{ row.f_meter_brand }}</nobr>
322
- </td>
323
- <td style="text-align: center;">
324
- <nobr>{{ row.f_imei }}</nobr>
325
- </td>
326
- <td style="text-align: center;">
327
- <nobr>{{ row.f_old_imei }}</nobr>
328
- </td>
329
- <td style="text-align: center;">
330
- <nobr>{{ row.f_old_total_gas }}</nobr>
331
- </td>
332
- <td style="text-align: center;">
333
- <nobr>{{ row.f_old_total_fee }}</nobr>
334
- </td>
335
- <td style="text-align: center;">
336
- <nobr>{{ row.f_using_base_old }}</nobr>
337
- </td>
338
- <td style="text-align: center;">
339
- <nobr>{{ row.f_initial_base_new }}</nobr>
340
- </td>
341
- <td style="text-align: center;">
342
- <nobr>{{ row.f_oldodd_gas }}</nobr>
343
- </td>
344
- <td style="text-align: center;">
345
- <nobr>{{ row.f_remanent_gas }}</nobr>
346
- </td>
347
- <td style="text-align: center;">
348
- <nobr>{{ row.f_remanent_money }}</nobr>
349
- </td>
350
- <td style="text-align: center;">
351
- <nobr>{{ row.f_voucher_number }}</nobr>
352
- </td>
353
- <td style="text-align: center;">
354
- <nobr>{{ row.f_comments }}</nobr>
355
- </td>
356
- <td style="text-align: center;">
357
- <nobr>{{ row.f_change_operator }}</nobr>
358
- </td>
359
- <td style="text-align: center;">
360
- <nobr>{{ row.f_approve_operator }}</nobr>
361
- </td>
362
- <td style="text-align: center;">
363
- <nobr>{{ row.f_state }}</nobr>
364
- </td>
365
- <td style="text-align: center;">
366
- <nobr>{{ row.f_operator }}</nobr>
367
- </td>
368
- <td style="text-align: center;">
369
- <nobr>{{ row.f_depname }}</nobr>
370
- </td>
371
- <td style="text-align: center;">
372
- <nobr>{{ row.f_outlets }}</nobr>
373
- </td>
374
- <td style="text-align: center;">
375
- <nobr>{{ row.f_orgname }}</nobr>
376
- </td>
377
- </template>
378
- <template partial='foot'></template>
379
- </data-grid>
380
-
381
- </criteria-paged>
382
-
383
- <table class="table-hover">
384
- <tr style="position: relative" class="table-bordered">
385
- <td
386
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
387
- 汇总信息
388
- </td>
389
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
390
- 换表费合计:&emsp;{{ sumsmodel.f_changemeter_fee }}
391
- </td>
392
- </tr>
393
- </table>
394
- <!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
395
- <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
396
- <!--<header slot="modal-header" class="modal-header text-center">-->
397
- <!--<h4 class="modal-title">打印列选择</h4>-->
398
- <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
399
- <!--<label for="f_generations" class="font-size">全选</label>-->
400
- <!--</header>-->
401
- <!--<article slot="modal-body">-->
402
- <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
403
- <!--<div class="col-sm-3" v-for="f in fields">-->
404
- <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
405
- <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
406
- <!--</div>-->
407
- <!--</div>-->
408
- <!--</article>-->
409
- <!--<footer slot="modal-footer" class="modal-footer">-->
410
- <!--<center>-->
411
- <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
412
- <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
413
- <!--<print-table :model='model' v-show="false" v-ref:print-->
414
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
415
- <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
416
- <!--:fields="modelval" :printpage="true">-->
417
- <!--</print-table>-->
418
- <!--</center>-->
419
- <!--</footer>-->
420
- <!--</modal>-->
421
- </div>
422
- <div v-if="show">
423
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
424
- </div>
425
- <div v-if="showAttachment">
426
- <attachment-viewer :business-id="currentRow && currentRow.id" table-name="t_changetables" @close="closeAttachment"></attachment-viewer>
427
- </div>
428
- </div>
429
- </div>
430
- </template>
431
-
432
- <script>
433
- import {HttpResetClass, PagedList} from 'vue-client'
434
- import defaultPrint from '../config/DefaultPrint'
435
- import exportConfig from '../config/exportConfig'
436
- import AttachmentViewer from './AttachmentViewer.vue'
437
-
438
- let readySomething = async function (self) {
439
-
440
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
441
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
442
- // self.$refs.paged.$refs.cri.search()
443
- await self.$MagLoadParams.loadParam()
444
- self.initParams()
445
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
446
- }
447
- export default {
448
- components: {
449
- AttachmentViewer
450
- },
451
- data () {
452
- return {
453
- data: {},
454
- meterbrands: [],
455
- pricenames: [],
456
- model: new PagedList('rs/sql/changeMeterQuery', 20, {}, {f_changemeter_fee: 0}),
457
- criteriaShow: false,
458
- orgCondtionStr: '',
459
- modelval: [],
460
- jurisdiction:this.$login.r,
461
- printshow: false,
462
- all: false,
463
- fields: {},
464
- initres: {
465
- org: [this.$login.f.orgid],
466
- dep: [],
467
- user: []
468
- },
469
- //小区
470
- residentialArea: [],
471
- area: [],
472
- f_outlets: [],
473
- isPos: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}],
474
- show: false,
475
- showAttachment: false,
476
- currentRow: null,
477
- rowdata: {},
478
- thead: '',
479
- tfoot: '',
480
-
481
- // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
482
-
483
- //合计数据
484
- sumsmodel: {}
485
- }
486
- },
487
- ready () {
488
- this.getaddress()
489
- readySomething(this)
490
- },
491
- methods: {
492
- view(row) {
493
- this.currentRow = row;
494
- this.showAttachment = true;
495
- },
496
- closeAttachment() {
497
- this.showAttachment = false;
498
- },
499
- async getaddress () {
500
- console.log('开始获取小区')
501
- let HttpReset = new HttpResetClass()
502
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
503
- data: {
504
- condition: '1=1'
505
- }
506
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
507
- console.log('小区', data)
508
- let house = []
509
- for (let row of data.data) {
510
- console.log('开始保存小区')
511
- house.push({label: row.f_residential_area, value: row.f_residential_area})
512
- }
513
- this.residentialArea = house
514
- },
515
- search () {
516
- this.$refs.paged.$refs.cri.search()
517
- },
518
- cancel () {
519
- this.show = false
520
- },
521
- showmsg (obj) {
522
- this.rowdata = obj
523
- this.show = true
524
- },
525
- async initParams () {
526
- // 初始化气表品牌
527
- let brandArr = []
528
- await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
529
- let temp = {}
530
- temp.label = item.label
531
- temp.value = item.value.f_meter_brand
532
- brandArr.push(temp)
533
- })
534
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
535
-
536
- },
537
- selfSearch (args) {
538
- //小区查询条件
539
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
540
- console.log('=====小区model绑定====', this.area)
541
- if (this.area.length !== 0) {
542
- let str = JSON.stringify(this.area)
543
- str = str.replace(/"/g, `'`)
544
- str = str.replace(/\[/g, ``)
545
- str = str.replace(/\]/g, ``)
546
- console.log('=====小区model22222222222绑定====', str)
547
- //查询多个小区时条件
548
- args.condition += ` and f_residential_area in ( ${str} )`
549
- }
550
-
551
- // 手持设备查询条件
552
- if(this.f_outlets[0] === '是'){
553
- args.condition+= ` and f_outlets = '手持设备'`
554
- } else if (this.f_outlets[0] === '否'){
555
- args.condition+= ` and f_outlets is null`
556
- }
557
-
558
- args.condition = `${args.condition}` + this.orgCondtionStr
559
- this.model.search(args.condition, args.model)
560
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
561
- },
562
- clear () {
563
- //清空部门和人员
564
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
565
- //部门和人员变为全选
566
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
567
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
568
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
569
- this.$refs.paged.$refs.cri.model[key] = ''
570
- })
571
- },
572
- show () {
573
- this.criteriaShow = true
574
- },
575
- hidden () {
576
- this.criteriaShow = !this.criteriaShow
577
- },
578
- getRes (obj) {
579
- console.log(obj, '========')
580
- this.orgCondtionStr = obj
581
- },
582
- stamp () {
583
- this.all = false
584
- //默认选择要打印的列
585
- this.modelval = defaultPrint.config
586
- this.fields = this.getfield
587
- console.log('所有打印字段', this.fields)
588
- this.printshow = true
589
- this.put()
590
- },
591
- dealmsg (val) {
592
- console.log('---------------dealmsg')
593
- val.model = this.model.model
594
- this.$dispatch('deal-msg', val)
595
- },
596
- put () {
597
- // 对Modelval进行排序
598
- this.sortModelval()
599
- this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
600
- for (let key of this.modelval) {
601
- this.thead += '<th>' + this.fields[key] + '</th>'
602
- }
603
- this.thead += '</tr>'
604
- },
605
- print () {
606
- this.$refs.print.PrintAsFile()
607
- this.printshow = false
608
- },
609
- close () {
610
- this.printshow = false
611
- this.all = false
612
- },
613
- // 对选择的列进行排序
614
- sortModelval () {
615
- let sortModel = []
616
- Object.keys(this.fields).forEach((key) => {
617
- if (this.modelval.includes(key)) {
618
- sortModel.push(key)
619
- }
620
- })
621
- this.modelval = sortModel
622
- console.log('选择的打印的字段', this.modelval)
623
- }
624
- },
625
- watch: {
626
- 'all' (val) {
627
- if (val) {
628
- this.modelval = this.bodyData
629
- } else {
630
- this.modelval = defaultPrint.config
631
- this.put()
632
- }
633
- },
634
- 'modelval.length' () {
635
- this.put()
636
- }
637
- },
638
- computed: {
639
- getCondition () {
640
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
641
- },
642
- getfield () {
643
- return exportConfig.changemeterConfig
644
- },
645
- changeTypes () {
646
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
647
- },
648
- changePerson () {
649
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表人')]
650
- },
651
- charge_state () {
652
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
653
- },
654
- old_table_type () {
655
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('旧表类型')]
656
- }
657
- }
658
- }
659
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row foot_tabset" @keyup.enter="search">
3
+ <div class="basic-main">
4
+ <div class="flex" v-if="!show">
5
+
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
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
23
+ v-model="model.startDate"
24
+ :value.sync="model.startDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ condition="f_operate_date >= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label class="font_normal_body">结束日期</label>
32
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
33
+ v-model="model.endDate"
34
+ :value.sync="model.endDate"
35
+ :format="'yyyy-MM-dd HH:mm:ss'"
36
+ :show-reset-button="true"
37
+ condition="f_operate_date <= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
38
+ </datepicker>
39
+ </div>
40
+ <div class="span" style="float:right;">
41
+ <button class="button_search button_spacing" @click="search()">查询</button>
42
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
44
+
45
+ <export-excel :data="$parent.$parent.getCondition"
46
+ :field="$parent.$parent.getfield"
47
+ sqlurl="rs/logic/exportfile" sql-name="changeMeterQuery" template-name='换表查询导出'
48
+ v-if ="$parent.$parent.jurisdiction.includes('excel导出')"
49
+ :choose-col="true"></export-excel>
50
+
51
+ <div style="float: right" class="button_spacing"
52
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
53
+ @click="$parent.$parent.hidden()"></div>
54
+ </div>
55
+ </div>
56
+ <div class="row">
57
+ <res-select-group style="col-sm-2 form-group" :initres="$parent.$parent.initres"
58
+ @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
59
+ <div class="col-sm-2 form-group">
60
+ <label for="f_area_id" class="font_normal_body">小区编码</label>
61
+ <input id="f_area_id" type="text" style="width:60%" class="input_search" v-model="model.f_area_id"
62
+ condition="f_area_id = '{}'" placeholder='小区编码'>
63
+ </div>
64
+ <div class="col-sm-2 form-group">
65
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
66
+ <v-select :value.sync="model.f_residential_area"
67
+ class="select_list select"
68
+ enter-push
69
+ multiple="true"
70
+ v-model="model.f_residential_area"
71
+ style="width: 60%"
72
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
73
+ close-on-select>
74
+ </v-select>
75
+ </div>
76
+ </div>
77
+ <div class="row" v-show="$parent.$parent.criteriaShow">
78
+ <div class="col-sm-2 form-group">
79
+ <label class="font_normal_body">客户电话</label>
80
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
81
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">客户地址</label>
85
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
86
+ condition="f_address like '%{}%'" placeholder='客户地址'>
87
+ </div>
88
+ <div class="col-sm-2 form-group">
89
+ <label class="font_normal_body">新表品牌</label>
90
+ <v-select :value.sync="model.f_new_meter_brand"
91
+ v-model="model.f_new_meter_brand"
92
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
93
+ condition="f_new_meter_brand = '{}'"
94
+ close-on-select></v-select>
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body">旧表品牌</label>
98
+ <v-select :value.sync="model.f_old_meter_brand"
99
+ v-model="model.f_old_meter_brand"
100
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
101
+ condition="f_old_meter_brand = '{}'"
102
+ close-on-select></v-select>
103
+ </div>
104
+ <div class="col-sm-2 form-group">
105
+ <label class="font_normal_body">换表类型</label>
106
+ <v-select :value.sync="model.f_type"
107
+ v-model="model.f_type"
108
+ :options='$parent.$parent.changeTypes' placeholder='请选择'
109
+ condition="f_type = '{}'"
110
+ close-on-select></v-select>
111
+ </div>
112
+ <div class="col-sm-2 form-group">
113
+ <label class="font_normal_body">换&nbsp;表&nbsp;人&nbsp;</label>
114
+ <v-select :value.sync="model.f_change_operator"
115
+ v-model="model.f_change_operator"
116
+ :options='$parent.$parent.changePerson' placeholder='请选择'
117
+ condition="f_change_operator = '{}'"
118
+ close-on-select></v-select>
119
+ </div>
120
+ <div class="col-sm-2 form-group">
121
+ <label class="font_normal_body">新表卡号</label>
122
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_newcard_id"
123
+ condition="f_newcard_id = '{}'" placeholder='新表卡号'>
124
+ </div>
125
+ <div class="col-sm-2 form-group">
126
+ <label class="font_normal_body">旧表卡号</label>
127
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
128
+ condition="f_card_id = '{}'" placeholder='旧表卡号'>
129
+ </div>
130
+ <div class="col-sm-2 form-group">
131
+ <label class="font_normal_body">换表状态</label>
132
+ <v-select :value.sync="model.f_state"
133
+ v-model="model.f_state"
134
+ :options='$parent.$parent.charge_state' placeholder='请选择'
135
+ condition="f_state = '{}'"
136
+ close-on-select></v-select>
137
+ </div>
138
+ <div class="col-sm-2 form-group">
139
+ <label class="font_normal_body">审&nbsp;批&nbsp;人&nbsp;</label>
140
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_approve_operator"
141
+ condition="f_approve_operator = '{}'" placeholder='审批人'/>
142
+ </div>
143
+ <div class="col-sm-2 form-group">
144
+ <label class="font_normal_body">票&emsp;&emsp;号</label>
145
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_voucher_number"
146
+ condition="f_voucher_number = '{}'" placeholder='审批人'/>
147
+ </div>
148
+
149
+ <div class="col-sm-2 form-group">
150
+ <label class="font_normal_body">旧表类型</label>
151
+ <v-select :value.sync="model.f_meter_type"
152
+ v-model="model.f_meter_type"
153
+ :options='$parent.$parent.old_table_type' placeholder='请选择'
154
+ condition="f_meter_type = '{}'"
155
+ close-on-select></v-select>
156
+ </div>
157
+ <div class="col-sm-2 form-group">
158
+ <label class="font_normal_body">是否<br/>手持设备</label>
159
+ <v-select :value.sync="$parent.$parent.f_outlets"
160
+ :options="$parent.$parent.isPos"
161
+ :search="false"
162
+ placeholder='请选择'
163
+ condition="{}"
164
+ close-on-select></v-select>
165
+ </div>
166
+ <div class="col-sm-2 form-group">
167
+ <label class="font_normal_body">房产地址</label>
168
+ <input class="input_search" condition="f_house_address = '{}'"
169
+ placeholder='房产地址'
170
+ style="width:60%" type="text" v-model="model.f_house_address">
171
+ </div>
172
+ <div class="col-sm-2 form-group">
173
+ <label class="font_normal_body">用途</label>
174
+ <input class="input_search" condition="f_property_usage = '{}'"
175
+ placeholder='用途'
176
+ style="width:60%" type="text" v-model="model.f_property_usage">
177
+ </div>
178
+ <div class="col-sm-2 form-group">
179
+ <label class="font_normal_body">房型</label>
180
+ <input class="input_search" condition="f_house_type = '{}'"
181
+ placeholder='房型'
182
+ style="width:60%" type="text" v-model="model.f_house_type">
183
+ </div>
184
+ <div class="col-sm-2 form-group">
185
+ <label class="font_normal_body">是否一户多表</label>
186
+ <input class="input_search" condition="f_is_multi_meter = '{}'"
187
+ placeholder='是否一户多表'
188
+ style="width:60%" type="text" v-model="model.f_is_multi_meter">
189
+ </div>
190
+ <div class="col-sm-2 form-group">
191
+ <label class="font_normal_body">关联ID</label>
192
+ <input class="input_search" condition="f_house_id = '{}'"
193
+ placeholder='关联ID'
194
+ style="width:60%" type="text" v-model="model.f_house_id">
195
+ </div>
196
+ </div>
197
+ </div>
198
+ </criteria>
199
+
200
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid
201
+ @dblclick="$parent.$parent.toBusiness">
202
+ <template partial='head'>
203
+ <tr>
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>
229
+ <nobr>旧气表品牌</nobr>
230
+ </th>
231
+ <th>
232
+ <nobr>新气表品牌</nobr>
233
+ </th>
234
+ <th>
235
+ <nobr>新表识别码</nobr>
236
+ </th>
237
+ <th>
238
+ <nobr>旧表识别码</nobr>
239
+ </th>
240
+ <th>
241
+ <nobr>旧表累购气量</nobr>
242
+ </th>
243
+ <th>
244
+ <nobr>旧表累购金额</nobr>
245
+ </th>
246
+ <th>
247
+ <nobr>旧表底数</nobr>
248
+ </th>
249
+ <th>
250
+ <nobr>新表初始底数</nobr>
251
+ </th>
252
+ <th>
253
+ <nobr>余气</nobr>
254
+ </th>
255
+ <th>
256
+ <nobr>补气量</nobr>
257
+ </th>
258
+ <th>
259
+ <nobr>补气金额</nobr>
260
+ </th>
261
+ <th>
262
+ <nobr>票号</nobr>
263
+ </th>
264
+ <th>
265
+ <nobr>备注</nobr>
266
+ </th>
267
+ <th>
268
+ <nobr>换表人</nobr>
269
+ </th>
270
+ <th>
271
+ <nobr>审批人</nobr>
272
+ </th>
273
+ <th>
274
+ <nobr>状态</nobr>
275
+ </th>
276
+ <th>
277
+ <nobr>人员</nobr>
278
+ </th>
279
+ <th>
280
+ <nobr>部门</nobr>
281
+ </th>
282
+ <th>
283
+ <nobr>网点</nobr>
284
+ </th>
285
+ <th>
286
+ <nobr>公司</nobr>
287
+ </th>
288
+ </tr>
289
+ </template>
290
+ <template partial='body'>
291
+ <td style="text-align: center;">
292
+ <nobr>
293
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{ row.f_userinfo_code }}</a></span>
294
+ </nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{ row.f_user_name }}</nobr>
298
+ </td>
299
+ <td style="text-align: center;">
300
+ <nobr>{{ row.f_address }}</nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr>{{ row.f_operate_date }}</nobr>
304
+ </td>
305
+ <td style="text-align: center;">
306
+ <nobr>{{ row.f_type }}</nobr>
307
+ </td>
308
+ <td style="text-align: center;">
309
+ <nobr>{{ row.f_changemeter_fee }}</nobr>
310
+ </td>
311
+ <td style="text-align: center;">
312
+ <nobr>{{ row.f_meternumber_old }}</nobr>
313
+ </td>
314
+ <td style="text-align: center;">
315
+ <nobr>{{ row.f_meternumber }}</nobr>
316
+ </td>
317
+ <td style="text-align: center;">
318
+ <nobr>{{ row.f_meter_brand_old }}</nobr>
319
+ </td>
320
+ <td style="text-align: center;">
321
+ <nobr>{{ row.f_meter_brand }}</nobr>
322
+ </td>
323
+ <td style="text-align: center;">
324
+ <nobr>{{ row.f_imei }}</nobr>
325
+ </td>
326
+ <td style="text-align: center;">
327
+ <nobr>{{ row.f_old_imei }}</nobr>
328
+ </td>
329
+ <td style="text-align: center;">
330
+ <nobr>{{ row.f_old_total_gas }}</nobr>
331
+ </td>
332
+ <td style="text-align: center;">
333
+ <nobr>{{ row.f_old_total_fee }}</nobr>
334
+ </td>
335
+ <td style="text-align: center;">
336
+ <nobr>{{ row.f_using_base_old }}</nobr>
337
+ </td>
338
+ <td style="text-align: center;">
339
+ <nobr>{{ row.f_initial_base_new }}</nobr>
340
+ </td>
341
+ <td style="text-align: center;">
342
+ <nobr>{{ row.f_oldodd_gas }}</nobr>
343
+ </td>
344
+ <td style="text-align: center;">
345
+ <nobr>{{ row.f_remanent_gas }}</nobr>
346
+ </td>
347
+ <td style="text-align: center;">
348
+ <nobr>{{ row.f_remanent_money }}</nobr>
349
+ </td>
350
+ <td style="text-align: center;">
351
+ <nobr>{{ row.f_voucher_number }}</nobr>
352
+ </td>
353
+ <td style="text-align: center;">
354
+ <nobr>{{ row.f_comments }}</nobr>
355
+ </td>
356
+ <td style="text-align: center;">
357
+ <nobr>{{ row.f_change_operator }}</nobr>
358
+ </td>
359
+ <td style="text-align: center;">
360
+ <nobr>{{ row.f_approve_operator }}</nobr>
361
+ </td>
362
+ <td style="text-align: center;">
363
+ <nobr>{{ row.f_state }}</nobr>
364
+ </td>
365
+ <td style="text-align: center;">
366
+ <nobr>{{ row.f_operator }}</nobr>
367
+ </td>
368
+ <td style="text-align: center;">
369
+ <nobr>{{ row.f_depname }}</nobr>
370
+ </td>
371
+ <td style="text-align: center;">
372
+ <nobr>{{ row.f_outlets }}</nobr>
373
+ </td>
374
+ <td style="text-align: center;">
375
+ <nobr>{{ row.f_orgname }}</nobr>
376
+ </td>
377
+ </template>
378
+ <template partial='foot'></template>
379
+ </data-grid>
380
+
381
+ </criteria-paged>
382
+
383
+ <table class="table-hover">
384
+ <tr style="position: relative" class="table-bordered">
385
+ <td
386
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
387
+ 汇总信息
388
+ </td>
389
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
390
+ 换表费合计:&emsp;{{ sumsmodel.f_changemeter_fee }}
391
+ </td>
392
+ </tr>
393
+ </table>
394
+ <!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
395
+ <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
396
+ <!--<header slot="modal-header" class="modal-header text-center">-->
397
+ <!--<h4 class="modal-title">打印列选择</h4>-->
398
+ <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
399
+ <!--<label for="f_generations" class="font-size">全选</label>-->
400
+ <!--</header>-->
401
+ <!--<article slot="modal-body">-->
402
+ <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
403
+ <!--<div class="col-sm-3" v-for="f in fields">-->
404
+ <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
405
+ <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
406
+ <!--</div>-->
407
+ <!--</div>-->
408
+ <!--</article>-->
409
+ <!--<footer slot="modal-footer" class="modal-footer">-->
410
+ <!--<center>-->
411
+ <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
412
+ <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
413
+ <!--<print-table :model='model' v-show="false" v-ref:print-->
414
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
415
+ <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
416
+ <!--:fields="modelval" :printpage="true">-->
417
+ <!--</print-table>-->
418
+ <!--</center>-->
419
+ <!--</footer>-->
420
+ <!--</modal>-->
421
+ </div>
422
+ <div v-if="show">
423
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
424
+ </div>
425
+ <div v-if="showAttachment">
426
+ <attachment-viewer :business-id="currentRow && currentRow.id" table-name="t_changetables" @close="closeAttachment"></attachment-viewer>
427
+ </div>
428
+ </div>
429
+ </div>
430
+ </template>
431
+
432
+ <script>
433
+ import {HttpResetClass, PagedList} from 'vue-client'
434
+ import defaultPrint from '../config/DefaultPrint'
435
+ import exportConfig from '../config/exportConfig'
436
+ import AttachmentViewer from './AttachmentViewer.vue'
437
+
438
+ let readySomething = async function (self) {
439
+
440
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
441
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
442
+ // self.$refs.paged.$refs.cri.search()
443
+ await self.$MagLoadParams.loadParam()
444
+ self.initParams()
445
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
446
+ }
447
+ export default {
448
+ components: {
449
+ AttachmentViewer
450
+ },
451
+ data () {
452
+ return {
453
+ data: {},
454
+ meterbrands: [],
455
+ pricenames: [],
456
+ model: new PagedList('rs/sql/changeMeterQuery', 20, {}, {f_changemeter_fee: 0}),
457
+ criteriaShow: false,
458
+ orgCondtionStr: '',
459
+ modelval: [],
460
+ jurisdiction:this.$login.r,
461
+ printshow: false,
462
+ all: false,
463
+ fields: {},
464
+ initres: {
465
+ org: [this.$login.f.orgid],
466
+ dep: [],
467
+ user: []
468
+ },
469
+ //小区
470
+ residentialArea: [],
471
+ area: [],
472
+ f_outlets: [],
473
+ isPos: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}],
474
+ show: false,
475
+ showAttachment: false,
476
+ currentRow: null,
477
+ rowdata: {},
478
+ thead: '',
479
+ tfoot: '',
480
+
481
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
482
+
483
+ //合计数据
484
+ sumsmodel: {}
485
+ }
486
+ },
487
+ ready () {
488
+ this.getaddress()
489
+ readySomething(this)
490
+ },
491
+ methods: {
492
+ view(row) {
493
+ this.currentRow = row;
494
+ this.showAttachment = true;
495
+ },
496
+ closeAttachment() {
497
+ this.showAttachment = false;
498
+ },
499
+ async getaddress () {
500
+ console.log('开始获取小区')
501
+ let HttpReset = new HttpResetClass()
502
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
503
+ data: {
504
+ condition: '1=1'
505
+ }
506
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
507
+ console.log('小区', data)
508
+ let house = []
509
+ for (let row of data.data) {
510
+ console.log('开始保存小区')
511
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
512
+ }
513
+ this.residentialArea = house
514
+ },
515
+ search () {
516
+ this.$refs.paged.$refs.cri.search()
517
+ },
518
+ cancel () {
519
+ this.show = false
520
+ },
521
+ showmsg (obj) {
522
+ this.rowdata = obj
523
+ this.show = true
524
+ },
525
+ async initParams () {
526
+ // 初始化气表品牌
527
+ let brandArr = []
528
+ await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
529
+ let temp = {}
530
+ temp.label = item.label
531
+ temp.value = item.value.f_meter_brand
532
+ brandArr.push(temp)
533
+ })
534
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
535
+
536
+ },
537
+ selfSearch (args) {
538
+ //小区查询条件
539
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
540
+ console.log('=====小区model绑定====', this.area)
541
+ if (this.area.length !== 0) {
542
+ let str = JSON.stringify(this.area)
543
+ str = str.replace(/"/g, `'`)
544
+ str = str.replace(/\[/g, ``)
545
+ str = str.replace(/\]/g, ``)
546
+ console.log('=====小区model22222222222绑定====', str)
547
+ //查询多个小区时条件
548
+ args.condition += ` and f_residential_area in ( ${str} )`
549
+ }
550
+
551
+ // 手持设备查询条件
552
+ if(this.f_outlets[0] === '是'){
553
+ args.condition+= ` and f_outlets = '手持设备'`
554
+ } else if (this.f_outlets[0] === '否'){
555
+ args.condition+= ` and f_outlets is null`
556
+ }
557
+
558
+ args.condition = `${args.condition}` + this.orgCondtionStr
559
+ this.model.search(args.condition, args.model)
560
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
561
+ },
562
+ clear () {
563
+ //清空部门和人员
564
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
565
+ //部门和人员变为全选
566
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
567
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
568
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
569
+ this.$refs.paged.$refs.cri.model[key] = ''
570
+ })
571
+ },
572
+ show () {
573
+ this.criteriaShow = true
574
+ },
575
+ hidden () {
576
+ this.criteriaShow = !this.criteriaShow
577
+ },
578
+ getRes (obj) {
579
+ console.log(obj, '========')
580
+ this.orgCondtionStr = obj
581
+ },
582
+ stamp () {
583
+ this.all = false
584
+ //默认选择要打印的列
585
+ this.modelval = defaultPrint.config
586
+ this.fields = this.getfield
587
+ console.log('所有打印字段', this.fields)
588
+ this.printshow = true
589
+ this.put()
590
+ },
591
+ dealmsg (val) {
592
+ console.log('---------------dealmsg')
593
+ val.model = this.model.model
594
+ this.$dispatch('deal-msg', val)
595
+ },
596
+ put () {
597
+ // 对Modelval进行排序
598
+ this.sortModelval()
599
+ this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
600
+ for (let key of this.modelval) {
601
+ this.thead += '<th>' + this.fields[key] + '</th>'
602
+ }
603
+ this.thead += '</tr>'
604
+ },
605
+ print () {
606
+ this.$refs.print.PrintAsFile()
607
+ this.printshow = false
608
+ },
609
+ close () {
610
+ this.printshow = false
611
+ this.all = false
612
+ },
613
+ // 对选择的列进行排序
614
+ sortModelval () {
615
+ let sortModel = []
616
+ Object.keys(this.fields).forEach((key) => {
617
+ if (this.modelval.includes(key)) {
618
+ sortModel.push(key)
619
+ }
620
+ })
621
+ this.modelval = sortModel
622
+ console.log('选择的打印的字段', this.modelval)
623
+ }
624
+ },
625
+ watch: {
626
+ 'all' (val) {
627
+ if (val) {
628
+ this.modelval = this.bodyData
629
+ } else {
630
+ this.modelval = defaultPrint.config
631
+ this.put()
632
+ }
633
+ },
634
+ 'modelval.length' () {
635
+ this.put()
636
+ }
637
+ },
638
+ computed: {
639
+ getCondition () {
640
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
641
+ },
642
+ getfield () {
643
+ return exportConfig.changemeterConfig
644
+ },
645
+ changeTypes () {
646
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
647
+ },
648
+ changePerson () {
649
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表人')]
650
+ },
651
+ charge_state () {
652
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
653
+ },
654
+ old_table_type () {
655
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('旧表类型')]
656
+ }
657
+ }
658
+ }
659
+ </script>