manage-client 3.3.155-mx → 3.3.156

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.
@@ -1,760 +1,760 @@
1
- <template>
2
- <div id="unit" class="flex-row" >
3
- <div class="basic-main" @keyup.enter="search" >
4
- <div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged @sort="sort">
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 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
- condition="f_operate_date >= '{}'">
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label 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
- condition="f_operate_date <= '{}'">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group ">
30
- <label class="font_normal_body">客户编号</label>
31
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
- condition="f_userinfo_code like '%{}%' " placeholder="客户编号">
33
- </div>
34
- <div class="col-sm-2 form-group">
35
- <label class="font_normal_body" title="旧客户编号">档案编号</label>
36
- <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
37
- condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
38
- </div>
39
-
40
-
41
- <!--
42
- -->
43
-
44
-
45
- <div class="span" style="float:right;">
46
- <button class="button_search button_spacing" @click="search()">查询</button>
47
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
48
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
49
-
50
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
51
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
52
- sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="changeMeterQuery" template-name='换表查询导出'
53
- :choose-col="true">
54
- </export-excel>
55
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
56
- :defaultfield="$parent.$parent.defaultfield"
57
- titletable="换表记录"
58
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
59
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
60
- </div>
61
- </div>
62
- <div class="row" v-show="$parent.$parent.criteriaShow">
63
- <res-select-group :initres="$parent.$parent.initres" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
64
- <div class="col-sm-2 form-group">
65
- <label class="font_normal_body">客户名称</label>
66
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
67
- condition="f_user_name like '%{}%'" placeholder="客户名称">
68
- </div>
69
- <div class="col-sm-2 form-group">
70
- <label class="font_normal_body">客户电话</label>
71
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
72
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
73
- </div>
74
- <div class="col-sm-2 form-group">
75
- <label class="font_normal_body">客户地址</label>
76
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
77
- condition="f_address like '%{}%'" placeholder='客户地址'>
78
- </div>
79
- <div class="col-sm-2 form-group">
80
- <label class="font_normal_body">用户类型</label>
81
- <v-select :value.sync="model.f_user_type"
82
- v-model="model.f_user_type"
83
- :options='$parent.$parent.userTypes' placeholder='请选择'
84
- condition="f_user_type = '{}'"
85
- close-on-select></v-select>
86
- </div>
87
- <div class="col-sm-2 form-group">
88
- <label class="font_normal_body">新表品牌</label>
89
- <v-select :value.sync="model.f_meter_brand"
90
- v-model="model.f_meter_brand"
91
- :options='$parent.$parent.meterbrands' placeholder='请选择'
92
- condition="f_meter_brand in {}"
93
- multiple></v-select>
94
- </div>
95
- <div class="col-sm-2 form-group">
96
- <label class="font_normal_body">旧表品牌</label>
97
- <v-select :value.sync="model.f_meter_brand_old"
98
- v-model="model.f_meter_brand_old"
99
- :options='$parent.$parent.meterbrands' placeholder='请选择'
100
- condition="f_meter_brand_old in {}"
101
- multiple></v-select>
102
- </div>
103
- <div class="col-sm-2 form-group">
104
- <label class="font_normal_body">换表类型</label>
105
- <v-select :value.sync="model.f_type"
106
- v-model="model.f_type"
107
- :options='$parent.$parent.changeTypes' placeholder='请选择'
108
- condition="f_type = '{}'"></v-select>
109
- </div>
110
- <div class="col-sm-2 form-group">
111
- <label class="font_normal_body">换&nbsp;表&nbsp;&nbsp;人</label>
112
- <v-select :value.sync="model.f_change_operator"
113
- v-model="model.f_change_operator"
114
- :options='$parent.$parent.changePerson' placeholder='请选择'
115
- condition="f_change_operator in {}"
116
- multiple></v-select>
117
- </div>
118
- <div class="col-sm-2 form-group">
119
- <label class="font_normal_body">卡&emsp;&emsp;号</label>
120
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
121
- condition="f_card_id = '{}'" placeholder='卡号'>
122
- </div>
123
- <div class="col-sm-2 form-group">
124
- <label class="font_normal_body">换表状态</label>
125
- <v-select :value.sync="model.f_state"
126
- v-model="model.f_state"
127
- :options='$parent.$parent.charge_state' placeholder='请选择'
128
- condition="f_state = '{}'"
129
- close-on-select></v-select>
130
- </div>
131
- <div class="col-sm-2 form-group">
132
- <label class="font_normal_body">旧表类型</label>
133
- <v-select :value.sync="model.f_meter_type_old"
134
- v-model="model.f_meter_type_old"
135
- :options='$parent.$parent.meterClassify' placeholder='请选择'
136
- condition="f_meter_type_old = '{}'"
137
- close-on-select></v-select>
138
- </div>
139
- <div class="col-sm-2 form-group">
140
- <label class="font_normal_body">新表类型</label>
141
- <v-select :value.sync="model.f_meter_type"
142
- v-model="model.f_meter_type"
143
- :options='$parent.$parent.meterClassify' placeholder='请选择'
144
- condition="f_meter_type = '{}'"
145
- close-on-select></v-select>
146
- </div>
147
- <div class="col-sm-2 form-group">
148
- <label class="font_normal_body">是否免费</label>
149
- <v-select :value.sync="model.f_changemeter_fee"
150
- v-model="model.f_changemeter_fee"
151
- :options='$parent.$parent.changemeter_fee' placeholder='请选择'
152
- condition="f_changemeter_fee {}"
153
- close-on-select></v-select>
154
- </div>
155
- <div class="col-sm-2 form-group">
156
- <label class="font_normal_body">付款方式</label>
157
- <v-select id="f_payment"
158
- v-model="model.f_payment"
159
- placeholder='请选择'
160
- condition="f_payment ='{}'"
161
- :value.sync="model.f_payment"
162
- :options='$parent.$parent.payments'
163
- close-on-select clear-button>
164
- </v-select>
165
- </div>
166
- <div class="col-sm-2 form-group">
167
- <label class="font_normal_body">表&emsp;&emsp;号</label>
168
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
169
- condition="f_meternumber = '{}'" placeholder='表号'>
170
- </div>
171
- <div class="col-sm-2 form-group">
172
- <label class="font_normal_body">表&ensp;封&ensp;号</label>
173
- <input type="text" style="width:60%" class="input_search" v-model="model.f_metertitles"
174
- condition="f_metertitles = '{}'" placeholder='表封号'>
175
- </div>
176
- <div class="col-sm-2 form-group">
177
- <label class="font_normal_body">旧&emsp;表&emsp;号</label>
178
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber_old"
179
- condition="f_meternumber_old = '{}'" placeholder='旧表号'>
180
- </div>
181
- <div class="col-sm-2 form-group">
182
- <label class="font_normal_body">旧&emsp;卡&emsp;号</label>
183
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_old"
184
- condition="f_card_old = '{}'" placeholder='旧卡号'>
185
- </div>
186
- <div class="col-sm-2 form-group">
187
- <label class="font_normal_body" >旧抄表员</label>
188
- <v-select :value.sync="model.f_inputtor"
189
- v-model="model.f_inputtor"
190
- :options='$parent.$parent.inputtores' placeholder='请选择'
191
- condition="f_inputtor_old = '{}'"
192
- close-on-select :search="false">
193
- </v-select>
194
- </div>
195
- <div class="col-sm-2 form-group">
196
- <label class="font_normal_body">换表原因</label>
197
- <v-select id="f_changetables_reason"
198
- v-model="model.f_changetables_reason"
199
- placeholder='请选择'
200
- multiple="true"
201
- condition="f_changetables_reason in {}"
202
- :value.sync="model.f_changetables_reason"
203
- :options='$parent.$parent.changetablesreasons'
204
- clear-button>
205
- </v-select>
206
- </div>
207
- </div>
208
- </div>
209
- </criteria>
210
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
211
- <template partial='head'>
212
- <tr>
213
- <th>
214
- <!--<nobr>客户编号</nobr>-->
215
- <data-order field="f_userinfo_code" name="客户编号"
216
- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
217
- </th>
218
- <th>
219
- <nobr>客户名称</nobr>
220
- </th>
221
- <th>
222
- <nobr>换表原因</nobr>
223
- </th>
224
- <th>
225
- <nobr>旧气表品牌</nobr>
226
- </th>
227
- <th>
228
- <nobr>旧表号</nobr>
229
- </th>
230
- <th>
231
- <nobr>旧表底数</nobr>
232
- </th>
233
- <th>
234
- <nobr>补气量</nobr>
235
- </th>
236
- <th>
237
- <!--<nobr>客户地址</nobr>-->
238
- <data-order field="f_address" name="客户地址"
239
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
240
- </th>
241
- <th>
242
- <!-- <nobr>换表日期</nobr>-->
243
- <data-order field="f_operate_date" name="换表日期"
244
- :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
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
- <th>
289
- <nobr>累购金额</nobr>
290
- </th>
291
- <th>
292
- <nobr>表封号</nobr>
293
- </th>
294
- <th>
295
- <nobr>订单编号</nobr>
296
- </th>
297
- <th><nobr>旧表类型</nobr></th>
298
- <th><nobr>新表类型</nobr></th>
299
- <th><nobr>旧抄表员</nobr></th>
300
- <th><nobr>用户类型</nobr></th>
301
- <th>
302
- <nobr>人员</nobr>
303
- </th>
304
- <th>
305
- <nobr>部门</nobr>
306
- </th>
307
- <th>
308
- <nobr>公司</nobr>
309
- </th>
310
- <th><nobr>附件</nobr></th>
311
- </tr>
312
- </template>
313
- <template partial='body'>
314
- <td style="text-align: center;"><nobr>
315
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
316
- </nobr> </td>
317
- <td style="text-align: center;">
318
- <nobr>{{row.f_user_name}}</nobr>
319
- </td>
320
- <td style="text-align: center;">
321
- <nobr>{{row.f_changetables_reason}}</nobr>
322
- </td>
323
- <td style="text-align: center;">
324
- <nobr>{{row.f_meter_brand_old}}</nobr>
325
- </td>
326
- <td style="text-align: center;">
327
- <nobr>{{row.f_meternumber_old}}</nobr>
328
- </td>
329
- <td style="text-align: center;">
330
- <nobr>{{row.f_using_base_old}}</nobr>
331
- </td>
332
- <td style="text-align: center;">
333
- <nobr>{{row.f_remanent_gas}}</nobr>
334
- </td>
335
- <td style="text-align: center;">
336
- <nobr>{{row.f_address}}</nobr>
337
- </td>
338
- <td style="text-align: center;">
339
- <nobr>{{row.f_operate_date}}</nobr>
340
- </td>
341
- <td style="text-align: center;">
342
- <nobr>{{row.f_payment}}</nobr>
343
- </td>
344
- <td style="text-align: center;">
345
- <nobr>{{row.f_aroundmeter}}</nobr>
346
- </td>
347
- <td style="text-align: center;">
348
- <nobr>{{row.f_meter_brand}}</nobr>
349
- </td>
350
- <td style="text-align: center;">
351
- <nobr>{{row.f_meternumber}}</nobr>
352
- </td>
353
- <td style="text-align: center;">
354
- <nobr>{{row.f_initial_base_new}}</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_comments}}</nobr>
361
- </td>
362
- <td style="text-align: center;">
363
- <nobr>{{row.f_type}}</nobr>
364
- </td>
365
- <td style="text-align: center;">
366
- <nobr>{{row.f_state}}</nobr>
367
- </td>
368
- <td style="text-align: center;">
369
- <nobr>{{row.f_remanent_money}}</nobr>
370
- </td>
371
- <td style="text-align: center;">
372
- <nobr>{{row.f_changemeter_fee}}</nobr>
373
- </td>
374
- <td style="text-align: center;">
375
- <nobr>{{row.f_olduserinfo_code}}</nobr>
376
- </td>
377
- <td style="text-align: center;">
378
- <nobr>{{row.f_balance_amount}}</nobr>
379
- </td>
380
- <td style="text-align: center;">
381
- <nobr>{{row.leigougas}}</nobr>
382
- </td>
383
- <td style="text-align: center;">
384
- <nobr>{{row.leigoumoney}}</nobr>
385
- </td>
386
- <td style="text-align: center;">
387
- <nobr>{{row.f_metertitles}}</nobr>
388
- </td>
389
- <td style="text-align: center;">
390
- <nobr>{{row.f_serial_number}}</nobr>
391
- </td>
392
- <td style="text-align: center;">
393
- <nobr>{{row.f_meter_type_old}}</nobr>
394
- </td>
395
- <td style="text-align: center;">
396
- <nobr>{{row.f_meter_type}}</nobr>
397
- </td>
398
- <td style="text-align: center;">
399
- <nobr>{{row.f_inputtor_old}}</nobr>
400
- </td>
401
- <td style="text-align: center;">
402
- <nobr>{{row.f_user_type}}</nobr>
403
- </td>
404
- <td style="text-align: center;">
405
- <nobr>{{row.f_operator}}</nobr>
406
- </td>
407
- <td style="text-align: center;">
408
- <nobr>{{row.f_depname}}</nobr>
409
- </td>
410
- <td style="text-align: center;">
411
- <nobr>{{row.f_orgname}}</nobr>
412
- </td>
413
- <td style="text-align: center;"><nobr>
414
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
415
- </nobr></td>
416
- </template>
417
- <template partial='foot'></template>
418
- </data-grid>
419
- </criteria-paged>
420
- <table class="table-hover">
421
- <tr style="position: relative" class="table-bordered">
422
- <td
423
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
424
- 汇总信息
425
- </td>
426
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
427
- 表上余额合计:&emsp;{{sumsmodel.f_balance_amount}}
428
- </td>
429
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
430
- 换表费合计:&emsp;{{sumsmodel.f_changemeter_fee}}
431
- </td>
432
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
433
- 补气量合计:&emsp;{{sumsmodel.f_remanent_gas}}
434
- </td>
435
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
436
- 补气金额合计:&emsp;{{sumsmodel.f_remanent_money}}
437
- </td>
438
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
439
- 户数合计:&emsp;{{sumsmodel.hushu}}
440
- </td>
441
- </tr>
442
- </table>
443
- <!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
444
- <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
445
- <!--<header slot="modal-header" class="modal-header text-center">-->
446
- <!--<h4 class="modal-title">打印列选择</h4>-->
447
- <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
448
- <!--<label for="f_generations" class="font-size">全选</label>-->
449
- <!--</header>-->
450
- <!--<article slot="modal-body">-->
451
- <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
452
- <!--<div class="col-sm-3" v-for="f in fields">-->
453
- <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
454
- <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
455
- <!--</div>-->
456
- <!--</div>-->
457
- <!--</article>-->
458
- <!--<footer slot="modal-footer" class="modal-footer">-->
459
- <!--<center>-->
460
- <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
461
- <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
462
- <!--<print-table :model='model' v-show="false" v-ref:print-->
463
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
464
- <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
465
- <!--:fields="modelval" :printpage="true">-->
466
- <!--</print-table>-->
467
- <!--</center>-->
468
- <!--</footer>-->
469
- <!--</modal>-->
470
- </div>
471
- <div class="flex" v-if="show">
472
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
473
- </div>
474
- </div>
475
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
476
- <article slot="modal-body">
477
- <upload :blodid="selected.f_userinfo_id" v-ref:upload :isremark="false" fusetype="换表&清零" ></upload>
478
- </article>
479
- <footer slot="modal-footer" class="modal-footer">
480
- </footer>
481
- </modal>
482
- </div>
483
- </template>
484
- <script>
485
- import {PagedList} from 'vue-client'
486
- import defaultPrint from './config/DefaultPrint'
487
- import exportConfig from './config/exportConfig'
488
- let readySomething = async function (self) {
489
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
490
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
491
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
492
- // self.$refs.paged.$refs.cri.search()
493
- self.getinputtores()
494
- await self.$MagLoadParams.loadParam()
495
- self.initParams()
496
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
497
-
498
- }
499
- export default {
500
- props:['data'],
501
- title: '换表查询',
502
- data() {
503
- return {
504
- data: {},
505
- other:[],
506
- footer:[],
507
- meterbrands: [],
508
- pricenames: [],
509
- model: new PagedList('api/af-revenue/sql/changeMeterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_balance_amount: 0,f_changemeter_fee: 0,f_remanent_money:0,f_remanent_gas:0,hushu:0}),
510
- criteriaShow: false,
511
- orgCondtionStr: '',
512
- modelval: [],
513
- printshow: false,
514
- all: false,
515
- fields: {},
516
- inputtores:[],
517
- initres: {
518
- org:[this.$login.f.orgid],
519
- dep:[],
520
- user:[],
521
- },
522
- config: {
523
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_type', 'f_changemeter_fee', 'f_meternumber_old', 'f_meternumber', 'f_change_operator', 'f_state', 'f_operate_date']
524
- },
525
- //排序
526
- orderitem:'f_operate_date desc',
527
- orderFields: {
528
- f_operate_date: 'no'
529
- },
530
- show:false,
531
- rowdata:{},
532
- showupload:false,
533
- selected:{},
534
- thead: '',
535
- tfoot: '',
536
- defaultfield: [],
537
- // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
538
- //合计数据
539
- sumsmodel: {},
540
- changemeter_fee:[
541
- {label: '全部', value: ''},
542
- {label: '销售', value: '> 0'},
543
- {label: '免费', value: '= 0'}
544
- ]
545
- }
546
-
547
- },
548
- ready() {
549
- this.startDate=this.$parent.startDate
550
- this.endDate=this.$parent.endDate
551
- readySomething(this)
552
- },
553
- methods: {
554
- async getinputtores () {
555
- // 获取抄表员
556
- let rs = []
557
- if (this.$login.f.f_gasman.length > 0) {
558
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
559
- let temp = {
560
- label: this.$login.f.f_gasman[i].name,
561
- value: this.$login.f.f_gasman[i].name
562
- }
563
- rs.push(temp)
564
- }
565
- }
566
- this.inputtores = [{label: '全部', value: ''}, ...rs]
567
- this.inputtores.push({label: "微信公众号", value: "微信公众号"})
568
- },
569
- view(row){
570
- this.showupload = true
571
- this.selected= row
572
- console.log("11",row)
573
- },
574
- search(){
575
- this.$refs.paged.$refs.cri.search()
576
- },
577
- cancel() {
578
- this.show = false
579
- },
580
- showmsg(obj){
581
- this.rowdata=obj
582
- this.show=true
583
- },
584
- getotherfooter () {
585
- this.other = [];
586
- this.footer = [];
587
- let exportdata = this.getCondition;
588
- let otherInData = [];
589
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
590
- let footerData = [], exportfield = this.getfield;
591
- footerData.push("合计");
592
- let self = this;
593
- for (var field in self.sumsmodel) {
594
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
595
- }
596
- this.footer.push(footerData);
597
- this.other.push(otherInData);
598
- },
599
- async initParams() {
600
- // 初始化气表品牌
601
- let brandArr = []
602
- await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
603
- let temp = {}
604
- temp.label = item.label
605
- temp.value = item.value.f_meter_brand
606
- brandArr.push(temp)
607
- })
608
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
609
- },
610
- async selfSearch(args) {
611
- if (this.data) {
612
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
613
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
614
- }
615
- args.condition = `${args.condition}` + this.orgCondtionStr
616
- args.condition = args.condition.replace(/f_zones/, "f_slice_area")
617
- await this.model.search(args.condition, args.model)
618
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
619
-
620
- this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
621
-
622
- },
623
- clear() {
624
- //清空部门和人员
625
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
626
- //部门和人员变为全选
627
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
628
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
629
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
630
- this.$refs.paged.$refs.cri.model[key] = []
631
- })
632
- },
633
- show() {
634
- this.criteriaShow = true
635
- },
636
- hidden() {
637
- this.criteriaShow = !this.criteriaShow
638
- },
639
- getRes(obj) {
640
- this.orgCondtionStr = obj
641
- },
642
- stamp() {
643
- this.all = false
644
- //默认选择要打印的列
645
- this.modelval = defaultPrint.config
646
- this.fields = this.getfield
647
- this.printshow = true
648
- this.put()
649
- },
650
- dealmsg(val) {
651
- val.model = this.model.model
652
- this.$dispatch('deal-msg', val)
653
- },
654
- put() {
655
- // 对Modelval进行排序
656
- this.sortModelval()
657
- this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
658
- for (let key of this.modelval) {
659
- this.thead += '<th>' + this.fields[key] + '</th>'
660
- }
661
- this.thead += '</tr>'
662
- },
663
- print() {
664
- this.$refs.print.PrintAsFile()
665
- this.printshow = false
666
- },
667
- close() {
668
- this.printshow = false
669
- this.all = false
670
- },
671
- // 对选择的列进行排序
672
- sortModelval() {
673
- let sortModel = []
674
- Object.keys(this.fields).forEach((key) => {
675
- if (this.modelval.includes(key)) {
676
- sortModel.push(key)
677
- }
678
- })
679
- this.modelval = sortModel
680
- console.log('选择的打印的字段', this.modelval)
681
- },
682
- sort (field, rule) {
683
- // 将所有排序方式设为不排序,实现相互排斥
684
- for (let key in this.orderFields) {
685
- if (key === field) {
686
- this.orderFields[key] = rule
687
- } else {
688
- this.orderFields[key] = 'no'
689
- }
690
- }
691
- // 如果新规则不排序,还原为默认排序
692
- if (rule === 'no') {
693
- this.model.paramSource.orderitem = `'${this.orderitem}'`
694
- } else {
695
- this.model.paramSource.orderitem = `'${field} ${rule}'`
696
- }
697
-
698
- this.search()
699
- },
700
- },
701
- watch: {
702
- 'all'(val) {
703
- if (val) {
704
- this.modelval = this.bodyData
705
- } else {
706
- this.modelval = defaultPrint.config
707
- this.put()
708
- }
709
- },
710
- 'modelval.length'() {
711
- this.put()
712
- },
713
- sumsmodel:{
714
- handler: function(val) {
715
- this.getotherfooter();
716
- },
717
- deep: true
718
- }
719
- },
720
- computed: {
721
- // getstart(){
722
- // return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
723
- // },
724
- getCondition() {
725
- return {
726
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
727
- orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
728
- },
729
- getfield() {
730
- return exportConfig.changemeterConfig
731
- },
732
- changeTypes() {
733
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
734
- },
735
- userTypes() {
736
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
737
- },
738
- meterClassify() {
739
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
740
- },
741
- changePerson() {
742
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表人')]
743
- },
744
- charge_state() {
745
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
746
- },
747
- changetablesreasons() {
748
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表原因')]
749
- },
750
- payments() {
751
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
752
- }
753
- }
754
- }
755
- </script>
756
- <style scoped>
757
- .showbottom{
758
- height:95%
759
- }
760
- </style>
1
+ <template>
2
+ <div id="unit" class="flex-row" >
3
+ <div class="basic-main" @keyup.enter="search" >
4
+ <div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
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 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
+ condition="f_operate_date >= '{}'">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label 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
+ condition="f_operate_date <= '{}'">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group ">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code like '%{}%' " placeholder="客户编号">
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
37
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
38
+ </div>
39
+
40
+
41
+ <!--
42
+ -->
43
+
44
+
45
+ <div class="span" style="float:right;">
46
+ <button class="button_search button_spacing" @click="search()">查询</button>
47
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
48
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
49
+
50
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
51
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
52
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="changeMeterQuery" template-name='换表查询导出'
53
+ :choose-col="true">
54
+ </export-excel>
55
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
56
+ :defaultfield="$parent.$parent.defaultfield"
57
+ titletable="换表记录"
58
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
59
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
60
+ </div>
61
+ </div>
62
+ <div class="row" v-show="$parent.$parent.criteriaShow">
63
+ <res-select-group :initres="$parent.$parent.initres" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
64
+ <div class="col-sm-2 form-group">
65
+ <label class="font_normal_body">客户名称</label>
66
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
67
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
68
+ </div>
69
+ <div class="col-sm-2 form-group">
70
+ <label class="font_normal_body">客户电话</label>
71
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
72
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
73
+ </div>
74
+ <div class="col-sm-2 form-group">
75
+ <label class="font_normal_body">客户地址</label>
76
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
77
+ condition="f_address like '%{}%'" placeholder='客户地址'>
78
+ </div>
79
+ <div class="col-sm-2 form-group">
80
+ <label class="font_normal_body">用户类型</label>
81
+ <v-select :value.sync="model.f_user_type"
82
+ v-model="model.f_user_type"
83
+ :options='$parent.$parent.userTypes' placeholder='请选择'
84
+ condition="f_user_type = '{}'"
85
+ close-on-select></v-select>
86
+ </div>
87
+ <div class="col-sm-2 form-group">
88
+ <label class="font_normal_body">新表品牌</label>
89
+ <v-select :value.sync="model.f_meter_brand"
90
+ v-model="model.f_meter_brand"
91
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
92
+ condition="f_meter_brand in {}"
93
+ multiple></v-select>
94
+ </div>
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body">旧表品牌</label>
97
+ <v-select :value.sync="model.f_meter_brand_old"
98
+ v-model="model.f_meter_brand_old"
99
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
100
+ condition="f_meter_brand_old in {}"
101
+ multiple></v-select>
102
+ </div>
103
+ <div class="col-sm-2 form-group">
104
+ <label class="font_normal_body">换表类型</label>
105
+ <v-select :value.sync="model.f_type"
106
+ v-model="model.f_type"
107
+ :options='$parent.$parent.changeTypes' placeholder='请选择'
108
+ condition="f_type = '{}'"></v-select>
109
+ </div>
110
+ <div class="col-sm-2 form-group">
111
+ <label class="font_normal_body">换&nbsp;表&nbsp;&nbsp;人</label>
112
+ <v-select :value.sync="model.f_change_operator"
113
+ v-model="model.f_change_operator"
114
+ :options='$parent.$parent.changePerson' placeholder='请选择'
115
+ condition="f_change_operator in {}"
116
+ multiple></v-select>
117
+ </div>
118
+ <div class="col-sm-2 form-group">
119
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
120
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
121
+ condition="f_card_id = '{}'" placeholder='卡号'>
122
+ </div>
123
+ <div class="col-sm-2 form-group">
124
+ <label class="font_normal_body">换表状态</label>
125
+ <v-select :value.sync="model.f_state"
126
+ v-model="model.f_state"
127
+ :options='$parent.$parent.charge_state' placeholder='请选择'
128
+ condition="f_state = '{}'"
129
+ close-on-select></v-select>
130
+ </div>
131
+ <div class="col-sm-2 form-group">
132
+ <label class="font_normal_body">旧表类型</label>
133
+ <v-select :value.sync="model.f_meter_type_old"
134
+ v-model="model.f_meter_type_old"
135
+ :options='$parent.$parent.meterClassify' placeholder='请选择'
136
+ condition="f_meter_type_old = '{}'"
137
+ close-on-select></v-select>
138
+ </div>
139
+ <div class="col-sm-2 form-group">
140
+ <label class="font_normal_body">新表类型</label>
141
+ <v-select :value.sync="model.f_meter_type"
142
+ v-model="model.f_meter_type"
143
+ :options='$parent.$parent.meterClassify' placeholder='请选择'
144
+ condition="f_meter_type = '{}'"
145
+ close-on-select></v-select>
146
+ </div>
147
+ <div class="col-sm-2 form-group">
148
+ <label class="font_normal_body">是否免费</label>
149
+ <v-select :value.sync="model.f_changemeter_fee"
150
+ v-model="model.f_changemeter_fee"
151
+ :options='$parent.$parent.changemeter_fee' placeholder='请选择'
152
+ condition="f_changemeter_fee {}"
153
+ close-on-select></v-select>
154
+ </div>
155
+ <div class="col-sm-2 form-group">
156
+ <label class="font_normal_body">付款方式</label>
157
+ <v-select id="f_payment"
158
+ v-model="model.f_payment"
159
+ placeholder='请选择'
160
+ condition="f_payment ='{}'"
161
+ :value.sync="model.f_payment"
162
+ :options='$parent.$parent.payments'
163
+ close-on-select clear-button>
164
+ </v-select>
165
+ </div>
166
+ <div class="col-sm-2 form-group">
167
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
168
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
169
+ condition="f_meternumber = '{}'" placeholder='表号'>
170
+ </div>
171
+ <div class="col-sm-2 form-group">
172
+ <label class="font_normal_body">表&ensp;封&ensp;号</label>
173
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_metertitles"
174
+ condition="f_metertitles = '{}'" placeholder='表封号'>
175
+ </div>
176
+ <div class="col-sm-2 form-group">
177
+ <label class="font_normal_body">旧&emsp;表&emsp;号</label>
178
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber_old"
179
+ condition="f_meternumber_old = '{}'" placeholder='旧表号'>
180
+ </div>
181
+ <div class="col-sm-2 form-group">
182
+ <label class="font_normal_body">旧&emsp;卡&emsp;号</label>
183
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_old"
184
+ condition="f_card_old = '{}'" placeholder='旧卡号'>
185
+ </div>
186
+ <div class="col-sm-2 form-group">
187
+ <label class="font_normal_body" >旧抄表员</label>
188
+ <v-select :value.sync="model.f_inputtor"
189
+ v-model="model.f_inputtor"
190
+ :options='$parent.$parent.inputtores' placeholder='请选择'
191
+ condition="f_inputtor_old = '{}'"
192
+ close-on-select :search="false">
193
+ </v-select>
194
+ </div>
195
+ <div class="col-sm-2 form-group">
196
+ <label class="font_normal_body">换表原因</label>
197
+ <v-select id="f_changetables_reason"
198
+ v-model="model.f_changetables_reason"
199
+ placeholder='请选择'
200
+ multiple="true"
201
+ condition="f_changetables_reason in {}"
202
+ :value.sync="model.f_changetables_reason"
203
+ :options='$parent.$parent.changetablesreasons'
204
+ clear-button>
205
+ </v-select>
206
+ </div>
207
+ </div>
208
+ </div>
209
+ </criteria>
210
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
211
+ <template partial='head'>
212
+ <tr>
213
+ <th>
214
+ <!--<nobr>客户编号</nobr>-->
215
+ <data-order field="f_userinfo_code" name="客户编号"
216
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
217
+ </th>
218
+ <th>
219
+ <nobr>客户名称</nobr>
220
+ </th>
221
+ <th>
222
+ <nobr>换表原因</nobr>
223
+ </th>
224
+ <th>
225
+ <nobr>旧气表品牌</nobr>
226
+ </th>
227
+ <th>
228
+ <nobr>旧表号</nobr>
229
+ </th>
230
+ <th>
231
+ <nobr>旧表底数</nobr>
232
+ </th>
233
+ <th>
234
+ <nobr>补气量</nobr>
235
+ </th>
236
+ <th>
237
+ <!--<nobr>客户地址</nobr>-->
238
+ <data-order field="f_address" name="客户地址"
239
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
240
+ </th>
241
+ <th>
242
+ <!-- <nobr>换表日期</nobr>-->
243
+ <data-order field="f_operate_date" name="换表日期"
244
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
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
+ <th>
289
+ <nobr>累购金额</nobr>
290
+ </th>
291
+ <th>
292
+ <nobr>表封号</nobr>
293
+ </th>
294
+ <th>
295
+ <nobr>订单编号</nobr>
296
+ </th>
297
+ <th><nobr>旧表类型</nobr></th>
298
+ <th><nobr>新表类型</nobr></th>
299
+ <th><nobr>旧抄表员</nobr></th>
300
+ <th><nobr>用户类型</nobr></th>
301
+ <th>
302
+ <nobr>人员</nobr>
303
+ </th>
304
+ <th>
305
+ <nobr>部门</nobr>
306
+ </th>
307
+ <th>
308
+ <nobr>公司</nobr>
309
+ </th>
310
+ <th><nobr>附件</nobr></th>
311
+ </tr>
312
+ </template>
313
+ <template partial='body'>
314
+ <td style="text-align: center;"><nobr>
315
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
316
+ </nobr> </td>
317
+ <td style="text-align: center;">
318
+ <nobr>{{row.f_user_name}}</nobr>
319
+ </td>
320
+ <td style="text-align: center;">
321
+ <nobr>{{row.f_changetables_reason}}</nobr>
322
+ </td>
323
+ <td style="text-align: center;">
324
+ <nobr>{{row.f_meter_brand_old}}</nobr>
325
+ </td>
326
+ <td style="text-align: center;">
327
+ <nobr>{{row.f_meternumber_old}}</nobr>
328
+ </td>
329
+ <td style="text-align: center;">
330
+ <nobr>{{row.f_using_base_old}}</nobr>
331
+ </td>
332
+ <td style="text-align: center;">
333
+ <nobr>{{row.f_remanent_gas}}</nobr>
334
+ </td>
335
+ <td style="text-align: center;">
336
+ <nobr>{{row.f_address}}</nobr>
337
+ </td>
338
+ <td style="text-align: center;">
339
+ <nobr>{{row.f_operate_date}}</nobr>
340
+ </td>
341
+ <td style="text-align: center;">
342
+ <nobr>{{row.f_payment}}</nobr>
343
+ </td>
344
+ <td style="text-align: center;">
345
+ <nobr>{{row.f_aroundmeter}}</nobr>
346
+ </td>
347
+ <td style="text-align: center;">
348
+ <nobr>{{row.f_meter_brand}}</nobr>
349
+ </td>
350
+ <td style="text-align: center;">
351
+ <nobr>{{row.f_meternumber}}</nobr>
352
+ </td>
353
+ <td style="text-align: center;">
354
+ <nobr>{{row.f_initial_base_new}}</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_comments}}</nobr>
361
+ </td>
362
+ <td style="text-align: center;">
363
+ <nobr>{{row.f_type}}</nobr>
364
+ </td>
365
+ <td style="text-align: center;">
366
+ <nobr>{{row.f_state}}</nobr>
367
+ </td>
368
+ <td style="text-align: center;">
369
+ <nobr>{{row.f_remanent_money}}</nobr>
370
+ </td>
371
+ <td style="text-align: center;">
372
+ <nobr>{{row.f_changemeter_fee}}</nobr>
373
+ </td>
374
+ <td style="text-align: center;">
375
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
376
+ </td>
377
+ <td style="text-align: center;">
378
+ <nobr>{{row.f_balance_amount}}</nobr>
379
+ </td>
380
+ <td style="text-align: center;">
381
+ <nobr>{{row.leigougas}}</nobr>
382
+ </td>
383
+ <td style="text-align: center;">
384
+ <nobr>{{row.leigoumoney}}</nobr>
385
+ </td>
386
+ <td style="text-align: center;">
387
+ <nobr>{{row.f_metertitles}}</nobr>
388
+ </td>
389
+ <td style="text-align: center;">
390
+ <nobr>{{row.f_serial_number}}</nobr>
391
+ </td>
392
+ <td style="text-align: center;">
393
+ <nobr>{{row.f_meter_type_old}}</nobr>
394
+ </td>
395
+ <td style="text-align: center;">
396
+ <nobr>{{row.f_meter_type}}</nobr>
397
+ </td>
398
+ <td style="text-align: center;">
399
+ <nobr>{{row.f_inputtor_old}}</nobr>
400
+ </td>
401
+ <td style="text-align: center;">
402
+ <nobr>{{row.f_user_type}}</nobr>
403
+ </td>
404
+ <td style="text-align: center;">
405
+ <nobr>{{row.f_operator}}</nobr>
406
+ </td>
407
+ <td style="text-align: center;">
408
+ <nobr>{{row.f_depname}}</nobr>
409
+ </td>
410
+ <td style="text-align: center;">
411
+ <nobr>{{row.f_orgname}}</nobr>
412
+ </td>
413
+ <td style="text-align: center;"><nobr>
414
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
415
+ </nobr></td>
416
+ </template>
417
+ <template partial='foot'></template>
418
+ </data-grid>
419
+ </criteria-paged>
420
+ <table class="table-hover">
421
+ <tr style="position: relative" class="table-bordered">
422
+ <td
423
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
424
+ 汇总信息
425
+ </td>
426
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
427
+ 表上余额合计:&emsp;{{sumsmodel.f_balance_amount}}
428
+ </td>
429
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
430
+ 换表费合计:&emsp;{{sumsmodel.f_changemeter_fee}}
431
+ </td>
432
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
433
+ 补气量合计:&emsp;{{sumsmodel.f_remanent_gas}}
434
+ </td>
435
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
436
+ 补气金额合计:&emsp;{{sumsmodel.f_remanent_money}}
437
+ </td>
438
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
439
+ 户数合计:&emsp;{{sumsmodel.hushu}}
440
+ </td>
441
+ </tr>
442
+ </table>
443
+ <!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
444
+ <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
445
+ <!--<header slot="modal-header" class="modal-header text-center">-->
446
+ <!--<h4 class="modal-title">打印列选择</h4>-->
447
+ <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
448
+ <!--<label for="f_generations" class="font-size">全选</label>-->
449
+ <!--</header>-->
450
+ <!--<article slot="modal-body">-->
451
+ <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
452
+ <!--<div class="col-sm-3" v-for="f in fields">-->
453
+ <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
454
+ <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
455
+ <!--</div>-->
456
+ <!--</div>-->
457
+ <!--</article>-->
458
+ <!--<footer slot="modal-footer" class="modal-footer">-->
459
+ <!--<center>-->
460
+ <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
461
+ <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
462
+ <!--<print-table :model='model' v-show="false" v-ref:print-->
463
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
464
+ <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
465
+ <!--:fields="modelval" :printpage="true">-->
466
+ <!--</print-table>-->
467
+ <!--</center>-->
468
+ <!--</footer>-->
469
+ <!--</modal>-->
470
+ </div>
471
+ <div class="flex" v-if="show">
472
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
473
+ </div>
474
+ </div>
475
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
476
+ <article slot="modal-body">
477
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload :isremark="false" fusetype="换表&清零" ></upload>
478
+ </article>
479
+ <footer slot="modal-footer" class="modal-footer">
480
+ </footer>
481
+ </modal>
482
+ </div>
483
+ </template>
484
+ <script>
485
+ import {PagedList} from 'vue-client'
486
+ import defaultPrint from './config/DefaultPrint'
487
+ import exportConfig from './config/exportConfig'
488
+ let readySomething = async function (self) {
489
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
490
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
491
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
492
+ // self.$refs.paged.$refs.cri.search()
493
+ self.getinputtores()
494
+ await self.$MagLoadParams.loadParam()
495
+ self.initParams()
496
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
497
+
498
+ }
499
+ export default {
500
+ props:['data'],
501
+ title: '换表查询',
502
+ data() {
503
+ return {
504
+ data: {},
505
+ other:[],
506
+ footer:[],
507
+ meterbrands: [],
508
+ pricenames: [],
509
+ model: new PagedList('api/af-revenue/sql/changeMeterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_balance_amount: 0,f_changemeter_fee: 0,f_remanent_money:0,f_remanent_gas:0,hushu:0}),
510
+ criteriaShow: false,
511
+ orgCondtionStr: '',
512
+ modelval: [],
513
+ printshow: false,
514
+ all: false,
515
+ fields: {},
516
+ inputtores:[],
517
+ initres: {
518
+ org:[this.$login.f.orgid],
519
+ dep:[],
520
+ user:[],
521
+ },
522
+ config: {
523
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_type', 'f_changemeter_fee', 'f_meternumber_old', 'f_meternumber', 'f_change_operator', 'f_state', 'f_operate_date']
524
+ },
525
+ //排序
526
+ orderitem:'f_operate_date desc',
527
+ orderFields: {
528
+ f_operate_date: 'no'
529
+ },
530
+ show:false,
531
+ rowdata:{},
532
+ showupload:false,
533
+ selected:{},
534
+ thead: '',
535
+ tfoot: '',
536
+ defaultfield: [],
537
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
538
+ //合计数据
539
+ sumsmodel: {},
540
+ changemeter_fee:[
541
+ {label: '全部', value: ''},
542
+ {label: '销售', value: '> 0'},
543
+ {label: '免费', value: '= 0'}
544
+ ]
545
+ }
546
+
547
+ },
548
+ ready() {
549
+ this.startDate=this.$parent.startDate
550
+ this.endDate=this.$parent.endDate
551
+ readySomething(this)
552
+ },
553
+ methods: {
554
+ async getinputtores () {
555
+ // 获取抄表员
556
+ let rs = []
557
+ if (this.$login.f.f_gasman.length > 0) {
558
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
559
+ let temp = {
560
+ label: this.$login.f.f_gasman[i].name,
561
+ value: this.$login.f.f_gasman[i].name
562
+ }
563
+ rs.push(temp)
564
+ }
565
+ }
566
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
567
+ this.inputtores.push({label: "微信公众号", value: "微信公众号"})
568
+ },
569
+ view(row){
570
+ this.showupload = true
571
+ this.selected= row
572
+ console.log("11",row)
573
+ },
574
+ search(){
575
+ this.$refs.paged.$refs.cri.search()
576
+ },
577
+ cancel() {
578
+ this.show = false
579
+ },
580
+ showmsg(obj){
581
+ this.rowdata=obj
582
+ this.show=true
583
+ },
584
+ getotherfooter () {
585
+ this.other = [];
586
+ this.footer = [];
587
+ let exportdata = this.getCondition;
588
+ let otherInData = [];
589
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
590
+ let footerData = [], exportfield = this.getfield;
591
+ footerData.push("合计");
592
+ let self = this;
593
+ for (var field in self.sumsmodel) {
594
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
595
+ }
596
+ this.footer.push(footerData);
597
+ this.other.push(otherInData);
598
+ },
599
+ async initParams() {
600
+ // 初始化气表品牌
601
+ let brandArr = []
602
+ await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
603
+ let temp = {}
604
+ temp.label = item.label
605
+ temp.value = item.value.f_meter_brand
606
+ brandArr.push(temp)
607
+ })
608
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
609
+ },
610
+ async selfSearch(args) {
611
+ if (this.data) {
612
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
613
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
614
+ }
615
+ args.condition = `${args.condition}` + this.orgCondtionStr
616
+ args.condition = args.condition.replace(/f_zones/, "f_slice_area")
617
+ await this.model.search(args.condition, args.model)
618
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
619
+
620
+ this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
621
+
622
+ },
623
+ clear() {
624
+ //清空部门和人员
625
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
626
+ //部门和人员变为全选
627
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
628
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
629
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
630
+ this.$refs.paged.$refs.cri.model[key] = []
631
+ })
632
+ },
633
+ show() {
634
+ this.criteriaShow = true
635
+ },
636
+ hidden() {
637
+ this.criteriaShow = !this.criteriaShow
638
+ },
639
+ getRes(obj) {
640
+ this.orgCondtionStr = obj
641
+ },
642
+ stamp() {
643
+ this.all = false
644
+ //默认选择要打印的列
645
+ this.modelval = defaultPrint.config
646
+ this.fields = this.getfield
647
+ this.printshow = true
648
+ this.put()
649
+ },
650
+ dealmsg(val) {
651
+ val.model = this.model.model
652
+ this.$dispatch('deal-msg', val)
653
+ },
654
+ put() {
655
+ // 对Modelval进行排序
656
+ this.sortModelval()
657
+ this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
658
+ for (let key of this.modelval) {
659
+ this.thead += '<th>' + this.fields[key] + '</th>'
660
+ }
661
+ this.thead += '</tr>'
662
+ },
663
+ print() {
664
+ this.$refs.print.PrintAsFile()
665
+ this.printshow = false
666
+ },
667
+ close() {
668
+ this.printshow = false
669
+ this.all = false
670
+ },
671
+ // 对选择的列进行排序
672
+ sortModelval() {
673
+ let sortModel = []
674
+ Object.keys(this.fields).forEach((key) => {
675
+ if (this.modelval.includes(key)) {
676
+ sortModel.push(key)
677
+ }
678
+ })
679
+ this.modelval = sortModel
680
+ console.log('选择的打印的字段', this.modelval)
681
+ },
682
+ sort (field, rule) {
683
+ // 将所有排序方式设为不排序,实现相互排斥
684
+ for (let key in this.orderFields) {
685
+ if (key === field) {
686
+ this.orderFields[key] = rule
687
+ } else {
688
+ this.orderFields[key] = 'no'
689
+ }
690
+ }
691
+ // 如果新规则不排序,还原为默认排序
692
+ if (rule === 'no') {
693
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
694
+ } else {
695
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
696
+ }
697
+
698
+ this.search()
699
+ },
700
+ },
701
+ watch: {
702
+ 'all'(val) {
703
+ if (val) {
704
+ this.modelval = this.bodyData
705
+ } else {
706
+ this.modelval = defaultPrint.config
707
+ this.put()
708
+ }
709
+ },
710
+ 'modelval.length'() {
711
+ this.put()
712
+ },
713
+ sumsmodel:{
714
+ handler: function(val) {
715
+ this.getotherfooter();
716
+ },
717
+ deep: true
718
+ }
719
+ },
720
+ computed: {
721
+ // getstart(){
722
+ // return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
723
+ // },
724
+ getCondition() {
725
+ return {
726
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
727
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
728
+ },
729
+ getfield() {
730
+ return exportConfig.changemeterConfig
731
+ },
732
+ changeTypes() {
733
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
734
+ },
735
+ userTypes() {
736
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
737
+ },
738
+ meterClassify() {
739
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
740
+ },
741
+ changePerson() {
742
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表人')]
743
+ },
744
+ charge_state() {
745
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
746
+ },
747
+ changetablesreasons() {
748
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表原因')]
749
+ },
750
+ payments() {
751
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
752
+ }
753
+ }
754
+ }
755
+ </script>
756
+ <style scoped>
757
+ .showbottom{
758
+ height:95%
759
+ }
760
+ </style>