manage-client-xy 3.2.28 → 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 (31) hide show
  1. package/build/dev-server.js +2 -2
  2. package/package.json +1 -1
  3. package/src/components/SellReport/FinancialStatement.vue +30 -0
  4. package/src/components/SellReport/ManageBusSummary.vue +241 -241
  5. package/src/components/SellReport/SmartKitchenSummary.vue +275 -275
  6. package/src/components/SellReport/UserNumber.vue +30 -0
  7. package/src/components/SellReport/XianYangNewCharge.vue +355 -355
  8. package/src/components/sale/businessquery/AreaGeneralQuery.vue +715 -700
  9. package/src/components/sale/businessquery/CMHGasQuery.vue +441 -411
  10. package/src/components/sale/businessquery/ChangeMeterQuery.vue +659 -630
  11. package/src/components/sale/businessquery/ChangeUserQuery.vue +403 -373
  12. package/src/components/sale/businessquery/ChargeQuery.vue +1027 -997
  13. package/src/components/sale/businessquery/DisableQuery.vue +433 -403
  14. package/src/components/sale/businessquery/EnableQuery.vue +422 -392
  15. package/src/components/sale/businessquery/FMYGasQuery.vue +440 -410
  16. package/src/components/sale/businessquery/FillCardQuery.vue +522 -492
  17. package/src/components/sale/businessquery/FillGasQuery.vue +506 -476
  18. package/src/components/sale/businessquery/HandplanQuery.vue +728 -698
  19. package/src/components/sale/businessquery/LogQuery.vue +301 -269
  20. package/src/components/sale/businessquery/NewAccountQuery.vue +518 -488
  21. package/src/components/sale/businessquery/OtherChargeQuery.vue +432 -402
  22. package/src/components/sale/businessquery/RecordQuery.vue +399 -369
  23. package/src/components/sale/businessquery/ResidentialQuery.vue +417 -387
  24. package/src/components/sale/businessquery/ReverseQuery.vue +459 -429
  25. package/src/components/sale/businessquery/SellingHand.vue +408 -378
  26. package/src/components/sale/businessquery/TransferQuery.vue +589 -559
  27. package/src/components/sale/businessquery/cancelAccountQuery.vue +518 -488
  28. package/src/components/sale/filesquery/DeviceQuery.vue +30 -0
  29. package/src/components/sale/filesquery/MeterQuery.vue +30 -0
  30. package/src/components/sale/filesquery/UserQuery.vue +796 -764
  31. package/src/components/webmeter/DrillData/UserGasAll.vue +30 -1
@@ -1,630 +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
-
167
- </div>
168
- </div>
169
- </criteria>
170
-
171
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid
172
- @dblclick="$parent.$parent.toBusiness">
173
- <template partial='head'>
174
- <tr>
175
- <th>
176
- <nobr>客户编号</nobr>
177
- </th>
178
- <th>
179
- <nobr>客户名称</nobr>
180
- </th>
181
- <th>
182
- <nobr>客户地址</nobr>
183
- </th>
184
- <th>
185
- <nobr>换表日期</nobr>
186
- </th>
187
- <th>
188
- <nobr>换表类型</nobr>
189
- </th>
190
- <th>
191
- <nobr>换表费</nobr>
192
- </th>
193
- <th>
194
- <nobr>旧表号</nobr>
195
- </th>
196
- <th>
197
- <nobr>新表号</nobr>
198
- </th>
199
- <th>
200
- <nobr>旧气表品牌</nobr>
201
- </th>
202
- <th>
203
- <nobr>新气表品牌</nobr>
204
- </th>
205
- <th>
206
- <nobr>新表识别码</nobr>
207
- </th>
208
- <th>
209
- <nobr>旧表识别码</nobr>
210
- </th>
211
- <th>
212
- <nobr>旧表累购气量</nobr>
213
- </th>
214
- <th>
215
- <nobr>旧表累购金额</nobr>
216
- </th>
217
- <th>
218
- <nobr>旧表底数</nobr>
219
- </th>
220
- <th>
221
- <nobr>新表初始底数</nobr>
222
- </th>
223
- <th>
224
- <nobr>余气</nobr>
225
- </th>
226
- <th>
227
- <nobr>补气量</nobr>
228
- </th>
229
- <th>
230
- <nobr>补气金额</nobr>
231
- </th>
232
- <th>
233
- <nobr>票号</nobr>
234
- </th>
235
- <th>
236
- <nobr>备注</nobr>
237
- </th>
238
- <th>
239
- <nobr>换表人</nobr>
240
- </th>
241
- <th>
242
- <nobr>审批人</nobr>
243
- </th>
244
- <th>
245
- <nobr>状态</nobr>
246
- </th>
247
- <th>
248
- <nobr>人员</nobr>
249
- </th>
250
- <th>
251
- <nobr>部门</nobr>
252
- </th>
253
- <th>
254
- <nobr>网点</nobr>
255
- </th>
256
- <th>
257
- <nobr>公司</nobr>
258
- </th>
259
- </tr>
260
- </template>
261
- <template partial='body'>
262
- <td style="text-align: center;">
263
- <nobr>
264
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{ row.f_userinfo_code }}</a></span>
265
- </nobr>
266
- </td>
267
- <td style="text-align: center;">
268
- <nobr>{{ row.f_user_name }}</nobr>
269
- </td>
270
- <td style="text-align: center;">
271
- <nobr>{{ row.f_address }}</nobr>
272
- </td>
273
- <td style="text-align: center;">
274
- <nobr>{{ row.f_operate_date }}</nobr>
275
- </td>
276
- <td style="text-align: center;">
277
- <nobr>{{ row.f_type }}</nobr>
278
- </td>
279
- <td style="text-align: center;">
280
- <nobr>{{ row.f_changemeter_fee }}</nobr>
281
- </td>
282
- <td style="text-align: center;">
283
- <nobr>{{ row.f_meternumber_old }}</nobr>
284
- </td>
285
- <td style="text-align: center;">
286
- <nobr>{{ row.f_meternumber }}</nobr>
287
- </td>
288
- <td style="text-align: center;">
289
- <nobr>{{ row.f_meter_brand_old }}</nobr>
290
- </td>
291
- <td style="text-align: center;">
292
- <nobr>{{ row.f_meter_brand }}</nobr>
293
- </td>
294
- <td style="text-align: center;">
295
- <nobr>{{ row.f_imei }}</nobr>
296
- </td>
297
- <td style="text-align: center;">
298
- <nobr>{{ row.f_old_imei }}</nobr>
299
- </td>
300
- <td style="text-align: center;">
301
- <nobr>{{ row.f_old_total_gas }}</nobr>
302
- </td>
303
- <td style="text-align: center;">
304
- <nobr>{{ row.f_old_total_fee }}</nobr>
305
- </td>
306
- <td style="text-align: center;">
307
- <nobr>{{ row.f_using_base_old }}</nobr>
308
- </td>
309
- <td style="text-align: center;">
310
- <nobr>{{ row.f_initial_base_new }}</nobr>
311
- </td>
312
- <td style="text-align: center;">
313
- <nobr>{{ row.f_oldodd_gas }}</nobr>
314
- </td>
315
- <td style="text-align: center;">
316
- <nobr>{{ row.f_remanent_gas }}</nobr>
317
- </td>
318
- <td style="text-align: center;">
319
- <nobr>{{ row.f_remanent_money }}</nobr>
320
- </td>
321
- <td style="text-align: center;">
322
- <nobr>{{ row.f_voucher_number }}</nobr>
323
- </td>
324
- <td style="text-align: center;">
325
- <nobr>{{ row.f_comments }}</nobr>
326
- </td>
327
- <td style="text-align: center;">
328
- <nobr>{{ row.f_change_operator }}</nobr>
329
- </td>
330
- <td style="text-align: center;">
331
- <nobr>{{ row.f_approve_operator }}</nobr>
332
- </td>
333
- <td style="text-align: center;">
334
- <nobr>{{ row.f_state }}</nobr>
335
- </td>
336
- <td style="text-align: center;">
337
- <nobr>{{ row.f_operator }}</nobr>
338
- </td>
339
- <td style="text-align: center;">
340
- <nobr>{{ row.f_depname }}</nobr>
341
- </td>
342
- <td style="text-align: center;">
343
- <nobr>{{ row.f_outlets }}</nobr>
344
- </td>
345
- <td style="text-align: center;">
346
- <nobr>{{ row.f_orgname }}</nobr>
347
- </td>
348
- </template>
349
- <template partial='foot'></template>
350
- </data-grid>
351
-
352
- </criteria-paged>
353
-
354
- <table class="table-hover">
355
- <tr style="position: relative" class="table-bordered">
356
- <td
357
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
358
- 汇总信息
359
- </td>
360
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
361
- 换表费合计:&emsp;{{ sumsmodel.f_changemeter_fee }}
362
- </td>
363
- </tr>
364
- </table>
365
- <!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
366
- <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
367
- <!--<header slot="modal-header" class="modal-header text-center">-->
368
- <!--<h4 class="modal-title">打印列选择</h4>-->
369
- <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
370
- <!--<label for="f_generations" class="font-size">全选</label>-->
371
- <!--</header>-->
372
- <!--<article slot="modal-body">-->
373
- <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
374
- <!--<div class="col-sm-3" v-for="f in fields">-->
375
- <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
376
- <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
377
- <!--</div>-->
378
- <!--</div>-->
379
- <!--</article>-->
380
- <!--<footer slot="modal-footer" class="modal-footer">-->
381
- <!--<center>-->
382
- <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
383
- <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
384
- <!--<print-table :model='model' v-show="false" v-ref:print-->
385
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
386
- <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
387
- <!--:fields="modelval" :printpage="true">-->
388
- <!--</print-table>-->
389
- <!--</center>-->
390
- <!--</footer>-->
391
- <!--</modal>-->
392
- </div>
393
- <div v-if="show">
394
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
395
- </div>
396
- <div v-if="showAttachment">
397
- <attachment-viewer :business-id="currentRow && currentRow.id" table-name="t_changetables" @close="closeAttachment"></attachment-viewer>
398
- </div>
399
- </div>
400
- </div>
401
- </template>
402
-
403
- <script>
404
- import {HttpResetClass, PagedList} from 'vue-client'
405
- import defaultPrint from '../config/DefaultPrint'
406
- import exportConfig from '../config/exportConfig'
407
- import AttachmentViewer from './AttachmentViewer.vue'
408
-
409
- let readySomething = async function (self) {
410
-
411
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
412
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
413
- // self.$refs.paged.$refs.cri.search()
414
- await self.$MagLoadParams.loadParam()
415
- self.initParams()
416
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
417
- }
418
- export default {
419
- components: {
420
- AttachmentViewer
421
- },
422
- data () {
423
- return {
424
- data: {},
425
- meterbrands: [],
426
- pricenames: [],
427
- model: new PagedList('rs/sql/changeMeterQuery', 20, {}, {f_changemeter_fee: 0}),
428
- criteriaShow: false,
429
- orgCondtionStr: '',
430
- modelval: [],
431
- jurisdiction:this.$login.r,
432
- printshow: false,
433
- all: false,
434
- fields: {},
435
- initres: {
436
- org: [this.$login.f.orgid],
437
- dep: [],
438
- user: []
439
- },
440
- //小区
441
- residentialArea: [],
442
- area: [],
443
- f_outlets: [],
444
- isPos: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}],
445
- show: false,
446
- showAttachment: false,
447
- currentRow: null,
448
- rowdata: {},
449
- thead: '',
450
- tfoot: '',
451
-
452
- // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
453
-
454
- //合计数据
455
- sumsmodel: {}
456
- }
457
- },
458
- ready () {
459
- this.getaddress()
460
- readySomething(this)
461
- },
462
- methods: {
463
- view(row) {
464
- this.currentRow = row;
465
- this.showAttachment = true;
466
- },
467
- closeAttachment() {
468
- this.showAttachment = false;
469
- },
470
- async getaddress () {
471
- console.log('开始获取小区')
472
- let HttpReset = new HttpResetClass()
473
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
474
- data: {
475
- condition: '1=1'
476
- }
477
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
478
- console.log('小区', data)
479
- let house = []
480
- for (let row of data.data) {
481
- console.log('开始保存小区')
482
- house.push({label: row.f_residential_area, value: row.f_residential_area})
483
- }
484
- this.residentialArea = house
485
- },
486
- search () {
487
- this.$refs.paged.$refs.cri.search()
488
- },
489
- cancel () {
490
- this.show = false
491
- },
492
- showmsg (obj) {
493
- this.rowdata = obj
494
- this.show = true
495
- },
496
- async initParams () {
497
- // 初始化气表品牌
498
- let brandArr = []
499
- await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
500
- let temp = {}
501
- temp.label = item.label
502
- temp.value = item.value.f_meter_brand
503
- brandArr.push(temp)
504
- })
505
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
506
-
507
- },
508
- selfSearch (args) {
509
- //小区查询条件
510
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
511
- console.log('=====小区model绑定====', this.area)
512
- if (this.area.length !== 0) {
513
- let str = JSON.stringify(this.area)
514
- str = str.replace(/"/g, `'`)
515
- str = str.replace(/\[/g, ``)
516
- str = str.replace(/\]/g, ``)
517
- console.log('=====小区model22222222222绑定====', str)
518
- //查询多个小区时条件
519
- args.condition += ` and f_residential_area in ( ${str} )`
520
- }
521
-
522
- // 手持设备查询条件
523
- if(this.f_outlets[0] === '是'){
524
- args.condition+= ` and f_outlets = '手持设备'`
525
- } else if (this.f_outlets[0] === '否'){
526
- args.condition+= ` and f_outlets is null`
527
- }
528
-
529
- args.condition = `${args.condition}` + this.orgCondtionStr
530
- this.model.search(args.condition, args.model)
531
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
532
- },
533
- clear () {
534
- //清空部门和人员
535
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
536
- //部门和人员变为全选
537
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
538
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
539
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
540
- this.$refs.paged.$refs.cri.model[key] = ''
541
- })
542
- },
543
- show () {
544
- this.criteriaShow = true
545
- },
546
- hidden () {
547
- this.criteriaShow = !this.criteriaShow
548
- },
549
- getRes (obj) {
550
- console.log(obj, '========')
551
- this.orgCondtionStr = obj
552
- },
553
- stamp () {
554
- this.all = false
555
- //默认选择要打印的列
556
- this.modelval = defaultPrint.config
557
- this.fields = this.getfield
558
- console.log('所有打印字段', this.fields)
559
- this.printshow = true
560
- this.put()
561
- },
562
- dealmsg (val) {
563
- console.log('---------------dealmsg')
564
- val.model = this.model.model
565
- this.$dispatch('deal-msg', val)
566
- },
567
- put () {
568
- // 对Modelval进行排序
569
- this.sortModelval()
570
- this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
571
- for (let key of this.modelval) {
572
- this.thead += '<th>' + this.fields[key] + '</th>'
573
- }
574
- this.thead += '</tr>'
575
- },
576
- print () {
577
- this.$refs.print.PrintAsFile()
578
- this.printshow = false
579
- },
580
- close () {
581
- this.printshow = false
582
- this.all = false
583
- },
584
- // 对选择的列进行排序
585
- sortModelval () {
586
- let sortModel = []
587
- Object.keys(this.fields).forEach((key) => {
588
- if (this.modelval.includes(key)) {
589
- sortModel.push(key)
590
- }
591
- })
592
- this.modelval = sortModel
593
- console.log('选择的打印的字段', this.modelval)
594
- }
595
- },
596
- watch: {
597
- 'all' (val) {
598
- if (val) {
599
- this.modelval = this.bodyData
600
- } else {
601
- this.modelval = defaultPrint.config
602
- this.put()
603
- }
604
- },
605
- 'modelval.length' () {
606
- this.put()
607
- }
608
- },
609
- computed: {
610
- getCondition () {
611
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
612
- },
613
- getfield () {
614
- return exportConfig.changemeterConfig
615
- },
616
- changeTypes () {
617
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
618
- },
619
- changePerson () {
620
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表人')]
621
- },
622
- charge_state () {
623
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
624
- },
625
- old_table_type () {
626
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('旧表类型')]
627
- }
628
- }
629
- }
630
- </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>