manage-client 4.1.85-tcls → 4.1.85

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 (27) hide show
  1. package/build/dev-server.js +99 -181
  2. package/package.json +1 -1
  3. package/src/filiale/jinbin/exportConfig.js +1110 -0
  4. package/src/filiale/jinbin/sale/businessquery/ChargeQuery.vue +1372 -0
  5. package/src/filiale/jinbin/sale.js +7 -0
  6. package/src/filiale/tongchuan/ChangeMeterQuery.vue +702 -730
  7. package/src/filiale/tongchuan/ChargeQuery.vue +1487 -1514
  8. package/src/filiale/tongchuan/DisableQuery.vue +523 -550
  9. package/src/filiale/tongchuan/FillCardQuery.vue +573 -598
  10. package/src/filiale/tongchuan/FillGasQuery.vue +533 -560
  11. package/src/filiale/tongchuan/HandplanQuery.vue +1332 -1358
  12. package/src/filiale/tongchuan/RecordInfoQuery.vue +1493 -1493
  13. package/src/filiale/tongchuan/ReverseQuery.vue +450 -477
  14. package/src/filiale/tongchuan/config/exportConfig.js +918 -1102
  15. package/src/filiale/tongchuan/sale.js +0 -36
  16. package/src/filiale/tongchuan/sellingChargePrice.vue +714 -754
  17. package/src/main.js +1 -1
  18. package/src/filiale/tongchuan/CancellationQuery.vue +0 -455
  19. package/src/filiale/tongchuan/EnableQuery.vue +0 -489
  20. package/src/filiale/tongchuan/OtherChargeDetailQuery.vue +0 -74
  21. package/src/filiale/tongchuan/OtherChargeQuery.vue +0 -751
  22. package/src/filiale/tongchuan/PrivilegeQuery.vue +0 -420
  23. package/src/filiale/tongchuan/ResSelectUserGroup.vue +0 -384
  24. package/src/filiale/tongchuan/TransferQuery.vue +0 -528
  25. package/src/filiale/tongchuan/TransferRecordQuery.vue +0 -202
  26. package/src/filiale/tongchuan/overDueQuery.vue +0 -497
  27. package/src/filiale/tongchuan/priceadjustQuery.vue +0 -560
@@ -1,730 +1,702 @@
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-user-group
64
- :operator-initres="$parent.$parent.initres"
65
- :user-initres="$parent.$parent.userInitres"
66
- :show-component="['company','department','operator','slicearea','user_company']"
67
- @re-res="$parent.$parent.getRes"
68
- @re-us-res="$parent.$parent.getUserRes"
69
- v-ref:usersel>
70
- </res-select-user-group>
71
- <div class="col-sm-2 form-group">
72
- <label class="font_normal_body">客户名称</label>
73
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
74
- condition="f_user_name like '%{}%'" placeholder="客户名称">
75
- </div>
76
- <div class="col-sm-2 form-group">
77
- <label class="font_normal_body">客户电话</label>
78
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
79
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
80
- </div>
81
- <div class="col-sm-2 form-group">
82
- <label class="font_normal_body">客户地址</label>
83
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
84
- condition="f_address like '%{}%'" placeholder='客户地址'>
85
- </div>
86
- <div class="col-sm-2 form-group">
87
- <label class="font_normal_body">用户类型</label>
88
- <v-select :value.sync="model.f_user_type"
89
- v-model="model.f_user_type"
90
- :options='$parent.$parent.userTypes' placeholder='请选择'
91
- condition="f_user_type = '{}'"
92
- close-on-select></v-select>
93
- </div>
94
- <div class="col-sm-2 form-group">
95
- <label class="font_normal_body">新表品牌</label>
96
- <v-select :value.sync="model.f_meter_brand"
97
- :multiple="true"
98
- v-model="model.f_meter_brand"
99
- :options='$parent.$parent.meterbrands' placeholder='请选择'
100
- condition="f_meter_brand in {}"
101
- ></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_meter_brand_old"
106
- :multiple="true"
107
- v-model="model.f_meter_brand_old"
108
- :options='$parent.$parent.meterbrands' placeholder='请选择'
109
- condition="f_meter_brand_old in {}"
110
- ></v-select>
111
- </div>
112
- <div class="col-sm-2 form-group">
113
- <label class="font_normal_body">换表类型</label>
114
- <v-select :value.sync="model.f_type"
115
- v-model="model.f_type"
116
- :options='$parent.$parent.changeTypes' placeholder='请选择'
117
- condition="f_type = '{}'"
118
- close-on-select></v-select>
119
- </div>
120
- <div class="col-sm-2 form-group">
121
- <label class="font_normal_body">换&nbsp;表&nbsp;&nbsp;人</label>
122
- <v-select :value.sync="model.f_change_operator"
123
- v-model="model.f_change_operator"
124
- :options='$parent.$parent.changePerson' placeholder='请选择'
125
- condition="f_change_operator = {}"
126
- ></v-select>
127
- </div>
128
- <div class="col-sm-2 form-group">
129
- <label class="font_normal_body">卡&emsp;&emsp;号</label>
130
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
131
- condition="f_card_id = '{}'" placeholder='卡号'>
132
- </div>
133
- <div class="col-sm-2 form-group">
134
- <label class="font_normal_body">换表状态</label>
135
- <v-select :value.sync="model.f_state"
136
- v-model="model.f_state"
137
- :options='$parent.$parent.charge_state' placeholder='请选择'
138
- condition="f_state = '{}'"
139
- close-on-select></v-select>
140
- </div>
141
- <div class="col-sm-2 form-group">
142
- <label class="font_normal_body">旧表类型</label>
143
- <v-select :value.sync="model.f_meter_type_old"
144
- v-model="model.f_meter_type_old"
145
- :options='$parent.$parent.meterClassify' placeholder='请选择'
146
- condition="f_meter_type_old = '{}'"
147
- close-on-select></v-select>
148
- </div>
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.meterClassify' 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">是否免费</label>
159
- <v-select :value.sync="model.f_changemeter_fee"
160
- v-model="model.f_changemeter_fee"
161
- :options='$parent.$parent.changemeter_fee' placeholder='请选择'
162
- condition="f_changemeter_fee {}"
163
- close-on-select></v-select>
164
- </div>
165
- <div class="col-sm-2 form-group">
166
- <label class="font_normal_body">付款方式</label>
167
- <v-select id="f_payment"
168
- v-model="model.f_payment"
169
- :multiple="true"
170
- placeholder='请选择'
171
- condition="f_payment in {}"
172
- :value.sync="model.f_payment"
173
- :options='$parent.$parent.payments'
174
- close-on-select clear-button>
175
- </v-select>
176
- </div>
177
- <div class="col-sm-2 form-group">
178
- <label class="font_normal_body">表&emsp;&emsp;号</label>
179
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
180
- condition="f_meternumber = '{}'" placeholder='表号'>
181
- </div>
182
- <div class="col-sm-2 form-group">
183
- <label class="font_normal_body">表&ensp;封&ensp;号</label>
184
- <input type="text" style="width:60%" class="input_search" v-model="model.f_metertitles"
185
- condition="f_metertitles = '{}'" placeholder='表封号'>
186
- </div>
187
- <div class="col-sm-2 form-group">
188
- <label class="font_normal_body">旧&emsp;表&emsp;号</label>
189
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber_old"
190
- condition="f_meternumber_old = '{}'" placeholder='旧表号'>
191
- </div>
192
- <div class="col-sm-2 form-group">
193
- <label class="font_normal_body">旧&emsp;卡&emsp;号</label>
194
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_old"
195
- condition="f_card_old = '{}'" placeholder='旧卡号'>
196
- </div>
197
- </div>
198
- </div>
199
- </criteria>
200
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
201
- <template partial='head'>
202
- <tr>
203
- <th>
204
- <!--<nobr>客户编号</nobr>-->
205
- <data-order field="f_userinfo_code" name="客户编号"
206
- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
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
- <data-order field="f_address" name="客户地址"
232
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
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
- <data-order field="f_operate_date" name="换表日期"
276
- :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
277
- </th>
278
- <th>
279
- <nobr>操作员人员</nobr>
280
- </th>
281
- <th>
282
- <nobr>操作员部门</nobr>
283
- </th>
284
- <th>
285
- <nobr>操作员公司</nobr>
286
- </th>
287
- <th>
288
- <nobr>用户公司</nobr>
289
- </th>
290
- <th><nobr>旧表类型</nobr></th>
291
- <th><nobr>新表类型</nobr></th>
292
- <th><nobr>用户类型</nobr></th>
293
- <th><nobr>附件</nobr></th>
294
- </tr>
295
- </template>
296
- <template partial='body'>
297
- <td style="text-align: center;"><nobr>
298
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
299
- </nobr> </td>
300
- <td style="text-align: center;">
301
- <nobr>{{row.f_user_name}}</nobr>
302
- </td>
303
- <td style="text-align: center;">
304
- <nobr>{{row.f_olduserinfo_code}}</nobr>
305
- </td>
306
- <td style="text-align: center;">
307
- <nobr>{{row.f_payment}}</nobr>
308
- </td>
309
- <td style="text-align: center;">
310
- <nobr>{{row.f_meter_base}}</nobr>
311
- </td>
312
- <td style="text-align: center;">
313
- <nobr>{{row.f_balance_amount}}</nobr>
314
- </td>
315
- <td style="text-align: center;">
316
- <nobr>{{row.leigougas}}</nobr>
317
- </td>
318
- <td style="text-align: center;">
319
- <nobr>{{row.leigoumoney}}</nobr>
320
- </td>
321
- <td style="text-align: center;">
322
- <nobr>{{row.f_address}}</nobr>
323
- </td>
324
-
325
- <td style="text-align: center;">
326
- <nobr>{{row.f_type}}</nobr>
327
- </td>
328
- <td style="text-align: center;">
329
- <nobr>{{row.f_changemeter_fee}}</nobr>
330
- </td>
331
- <td style="text-align: center;">
332
- <nobr>{{row.f_meternumber_old}}</nobr>
333
- </td>
334
- <td style="text-align: center;">
335
- <nobr>{{row.f_meternumber}}</nobr>
336
- </td>
337
- <td style="text-align: center;">
338
- <nobr>{{row.f_metertitles}}</nobr>
339
- </td>
340
- <td style="text-align: center;">
341
- <nobr>{{row.f_meter_brand_old}}</nobr>
342
- </td>
343
- <td style="text-align: center;">
344
- <nobr>{{row.f_meter_brand}}</nobr>
345
- </td>
346
- <td style="text-align: center;">
347
- <nobr>{{row.f_remanent_gas}}</nobr>
348
- </td>
349
- <td style="text-align: center;">
350
- <nobr>{{row.f_remanent_money}}</nobr>
351
- </td>
352
- <td style="text-align: center;">
353
- <nobr>{{row.f_serial_number}}</nobr>
354
- </td>
355
- <td style="text-align: center;">
356
- <nobr>{{row.f_comments}}</nobr>
357
- </td>
358
- <td style="text-align: center;">
359
- <nobr>{{row.f_change_operator}}</nobr>
360
- </td>
361
- <td style="text-align: center;">
362
- <nobr>{{row.f_state}}</nobr>
363
- </td>
364
- <td style="text-align: center;">
365
- <nobr>{{row.f_operate_date}}</nobr>
366
- </td>
367
- <td style="text-align: center;">
368
- <nobr>{{row.f_operator}}</nobr>
369
- </td>
370
- <td style="text-align: center;">
371
- <nobr>{{row.f_depname}}</nobr>
372
- </td>
373
- <td style="text-align: center;">
374
- <nobr>{{row.f_orgname}}</nobr>
375
- </td>
376
- <td style="text-align: center;">
377
- <nobr>{{row.f_us_orgname}}</nobr>
378
- </td>
379
- <td style="text-align: center;">
380
- <nobr>{{row.f_meter_type_old}}</nobr>
381
- </td>
382
- <td style="text-align: center;">
383
- <nobr>{{row.f_meter_type}}</nobr>
384
- </td>
385
- <td style="text-align: center;">
386
- <nobr>{{row.f_user_type}}</nobr>
387
- </td>
388
- <td style="text-align: center;"><nobr>
389
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
390
- </nobr></td>
391
- </template>
392
- <template partial='foot'></template>
393
- </data-grid>
394
- </criteria-paged>
395
- <table class="table-hover">
396
- <tr style="position: relative" class="table-bordered">
397
- <td
398
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
399
- 汇总信息
400
- </td>
401
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
402
- 表上余额合计:&emsp;{{sumsmodel.f_balance_amount}}
403
- </td>
404
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
405
- 换表费合计:&emsp;{{sumsmodel.f_changemeter_fee}}
406
- </td>
407
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
408
- 补气量合计:&emsp;{{sumsmodel.f_remanent_gas}}
409
- </td>
410
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
411
- 补气金额合计:&emsp;{{sumsmodel.f_remanent_money}}
412
- </td>
413
- </tr>
414
- </table>
415
- <!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
416
- <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
417
- <!--<header slot="modal-header" class="modal-header text-center">-->
418
- <!--<h4 class="modal-title">打印列选择</h4>-->
419
- <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
420
- <!--<label for="f_generations" class="font-size">全选</label>-->
421
- <!--</header>-->
422
- <!--<article slot="modal-body">-->
423
- <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
424
- <!--<div class="col-sm-3" v-for="f in fields">-->
425
- <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
426
- <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
427
- <!--</div>-->
428
- <!--</div>-->
429
- <!--</article>-->
430
- <!--<footer slot="modal-footer" class="modal-footer">-->
431
- <!--<center>-->
432
- <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
433
- <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
434
- <!--<print-table :model='model' v-show="false" v-ref:print-->
435
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
436
- <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
437
- <!--:fields="modelval" :printpage="true">-->
438
- <!--</print-table>-->
439
- <!--</center>-->
440
- <!--</footer>-->
441
- <!--</modal>-->
442
- </div>
443
- <div class="flex" v-if="show">
444
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
445
- </div>
446
- </div>
447
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
448
- <article slot="modal-body">
449
- <upload :blodid="selected.f_userinfo_id" v-ref:upload :isremark="false" fusetype="换表&清零" ></upload>
450
- </article>
451
- <footer slot="modal-footer" class="modal-footer">
452
- </footer>
453
- </modal>
454
- </div>
455
- </template>
456
- <script>
457
- import {PagedList} from 'vue-client'
458
- import defaultPrint from './config/DefaultPrint'
459
- import exportConfig from './config/exportConfig'
460
- import ResSelectUserGroup from './ResSelectUserGroup.vue'
461
- let readySomething = async function (self) {
462
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
463
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
464
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
465
- // self.$refs.paged.$refs.cri.search()
466
- await self.$MagLoadParams.loadParam()
467
- self.initParams()
468
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
469
- }
470
- export default {
471
- components: {
472
- 'res-select-user-group': ResSelectUserGroup
473
- },
474
- props:['data'],
475
- title: '换表查询',
476
- data() {
477
- return {
478
- data: {},
479
- other:[],
480
- footer:[],
481
- meterbrands: [],
482
- pricenames: [],
483
- 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}),
484
- criteriaShow: false,
485
- orgCondtionStr: '',
486
- userOrgConditionStr: '',
487
- modelval: [],
488
- printshow: false,
489
- all: false,
490
- fields: {},
491
- initres: {
492
- org:[this.$login.f.orgid],
493
- dep:[],
494
- user:[],
495
- },
496
- userInitres: {
497
- org: [],
498
- dep: [],
499
- user: []
500
- },
501
- config: {
502
- 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']
503
- },
504
- //排序
505
- orderitem:'f_operate_date desc',
506
- orderFields: {
507
- f_operate_date: 'no'
508
- },
509
- show:false,
510
- rowdata:{},
511
- showupload:false,
512
- selected:{},
513
- thead: '',
514
- tfoot: '',
515
- defaultfield: [],
516
- // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
517
- //合计数据
518
- sumsmodel: {},
519
- changemeter_fee:[
520
- {label: '全部', value: ''},
521
- {label: '销售', value: '> 0'},
522
- {label: '免费', value: '= 0'}
523
- ]
524
- }
525
-
526
- },
527
- ready() {
528
- this.startDate=this.$parent.startDate
529
- this.endDate=this.$parent.endDate
530
- readySomething(this)
531
- },
532
- methods: {
533
- view(row){
534
- this.showupload = true
535
- this.selected= row
536
- console.log("11",row)
537
- },
538
- getUserRes (condition) {
539
- this.userOrgConditionStr = condition
540
- },
541
- search(){
542
- this.$refs.paged.$refs.cri.search()
543
- },
544
- cancel() {
545
- this.show = false
546
- },
547
- showmsg(obj){
548
- this.rowdata=obj
549
- this.show=true
550
- },
551
- getotherfooter () {
552
- this.other = [];
553
- this.footer = [];
554
- let exportdata = this.getCondition;
555
- let otherInData = [];
556
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
557
- let footerData = [], exportfield = this.getfield;
558
- footerData.push("合计");
559
- let self = this;
560
- for (var field in self.sumsmodel) {
561
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
562
- }
563
- this.footer.push(footerData);
564
- this.other.push(otherInData);
565
- let date = []
566
- date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
567
- date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
568
- this.other.push(date)
569
- },
570
- async initParams() {
571
- // 初始化气表品牌
572
- let brandArr = []
573
- await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
574
- let temp = {}
575
- temp.label = item.label
576
- temp.value = item.value.f_meter_brand
577
- brandArr.push(temp)
578
- })
579
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
580
- },
581
- async selfSearch(args) {
582
- if (this.data) {
583
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
584
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
585
- }
586
- args.condition = `${args.condition}` + this.orgCondtionStr + this.userOrgConditionStr
587
- args.condition = args.condition.replace(/f_zones/, "f_slice_area")
588
- await this.model.search(args.condition, args.model)
589
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
590
-
591
- this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
592
-
593
- },
594
- clear() {
595
- // 清空操作员/用户选择
596
- if (this.$refs.paged.$refs.cri.$refs.usersel && this.$refs.paged.$refs.cri.$refs.usersel.resetAll) {
597
- this.$refs.paged.$refs.cri.$refs.usersel.resetAll()
598
- }
599
- this.orgCondtionStr = ''
600
- this.userOrgConditionStr = ''
601
- // 清空表单
602
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
603
- this.$refs.paged.$refs.cri.model[key] = []
604
- })
605
- },
606
- show() {
607
- this.criteriaShow = true
608
- },
609
- hidden() {
610
- this.criteriaShow = !this.criteriaShow
611
- },
612
- getRes(obj) {
613
- this.orgCondtionStr = obj
614
- },
615
- stamp() {
616
- this.all = false
617
- //默认选择要打印的列
618
- this.modelval = defaultPrint.config
619
- this.fields = this.getfield
620
- this.printshow = true
621
- this.put()
622
- },
623
- dealmsg(val) {
624
- val.model = this.model.model
625
- this.$dispatch('deal-msg', val)
626
- },
627
- put() {
628
- // 对Modelval进行排序
629
- this.sortModelval()
630
- this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
631
- for (let key of this.modelval) {
632
- this.thead += '<th>' + this.fields[key] + '</th>'
633
- }
634
- this.thead += '</tr>'
635
- },
636
- print() {
637
- this.$refs.print.PrintAsFile()
638
- this.printshow = false
639
- },
640
- close() {
641
- this.printshow = false
642
- this.all = false
643
- },
644
- // 对选择的列进行排序
645
- sortModelval() {
646
- let sortModel = []
647
- Object.keys(this.fields).forEach((key) => {
648
- if (this.modelval.includes(key)) {
649
- sortModel.push(key)
650
- }
651
- })
652
- this.modelval = sortModel
653
- console.log('选择的打印的字段', this.modelval)
654
- },
655
- sort (field, rule) {
656
- // 将所有排序方式设为不排序,实现相互排斥
657
- for (let key in this.orderFields) {
658
- if (key === field) {
659
- this.orderFields[key] = rule
660
- } else {
661
- this.orderFields[key] = 'no'
662
- }
663
- }
664
- // 如果新规则不排序,还原为默认排序
665
- if (rule === 'no') {
666
- this.model.paramSource.orderitem = `'${this.orderitem}'`
667
- } else {
668
- this.model.paramSource.orderitem = `'${field} ${rule}'`
669
- }
670
-
671
- this.search()
672
- },
673
- },
674
- watch: {
675
- 'all'(val) {
676
- if (val) {
677
- this.modelval = this.bodyData
678
- } else {
679
- this.modelval = defaultPrint.config
680
- this.put()
681
- }
682
- },
683
- 'modelval.length'() {
684
- this.put()
685
- },
686
- sumsmodel:{
687
- handler: function(val) {
688
- this.getotherfooter();
689
- },
690
- deep: true
691
- }
692
- },
693
- computed: {
694
- // getstart(){
695
- // return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
696
- // },
697
- getCondition() {
698
- return {
699
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr + this.userOrgConditionStr,
700
- orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
701
- },
702
- getfield() {
703
- return exportConfig.changemeterConfig
704
- },
705
- changeTypes() {
706
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
707
- },
708
- userTypes() {
709
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
710
- },
711
- meterClassify() {
712
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
713
- },
714
- changePerson() {
715
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表人')]
716
- },
717
- charge_state() {
718
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
719
- },
720
- payments() {
721
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
722
- }
723
- }
724
- }
725
- </script>
726
- <style scoped>
727
- .showbottom{
728
- height:95%
729
- }
730
- </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
+ :multiple="true"
91
+ v-model="model.f_meter_brand"
92
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
93
+ condition="f_meter_brand in {}"
94
+ ></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_meter_brand_old"
99
+ :multiple="true"
100
+ v-model="model.f_meter_brand_old"
101
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
102
+ condition="f_meter_brand_old in {}"
103
+ ></v-select>
104
+ </div>
105
+ <div class="col-sm-2 form-group">
106
+ <label class="font_normal_body">换表类型</label>
107
+ <v-select :value.sync="model.f_type"
108
+ v-model="model.f_type"
109
+ :options='$parent.$parent.changeTypes' placeholder='请选择'
110
+ condition="f_type = '{}'"
111
+ close-on-select></v-select>
112
+ </div>
113
+ <div class="col-sm-2 form-group">
114
+ <label class="font_normal_body">换&nbsp;表&nbsp;&nbsp;人</label>
115
+ <v-select :value.sync="model.f_change_operator"
116
+ v-model="model.f_change_operator"
117
+ :options='$parent.$parent.changePerson' placeholder='请选择'
118
+ condition="f_change_operator = {}"
119
+ ></v-select>
120
+ </div>
121
+ <div class="col-sm-2 form-group">
122
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
123
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
124
+ condition="f_card_id = '{}'" placeholder='卡号'>
125
+ </div>
126
+ <div class="col-sm-2 form-group">
127
+ <label class="font_normal_body">换表状态</label>
128
+ <v-select :value.sync="model.f_state"
129
+ v-model="model.f_state"
130
+ :options='$parent.$parent.charge_state' placeholder='请选择'
131
+ condition="f_state = '{}'"
132
+ close-on-select></v-select>
133
+ </div>
134
+ <div class="col-sm-2 form-group">
135
+ <label class="font_normal_body">旧表类型</label>
136
+ <v-select :value.sync="model.f_meter_type_old"
137
+ v-model="model.f_meter_type_old"
138
+ :options='$parent.$parent.meterClassify' placeholder='请选择'
139
+ condition="f_meter_type_old = '{}'"
140
+ close-on-select></v-select>
141
+ </div>
142
+ <div class="col-sm-2 form-group">
143
+ <label class="font_normal_body">新表类型</label>
144
+ <v-select :value.sync="model.f_meter_type"
145
+ v-model="model.f_meter_type"
146
+ :options='$parent.$parent.meterClassify' placeholder='请选择'
147
+ condition="f_meter_type = '{}'"
148
+ close-on-select></v-select>
149
+ </div>
150
+ <div class="col-sm-2 form-group">
151
+ <label class="font_normal_body">是否免费</label>
152
+ <v-select :value.sync="model.f_changemeter_fee"
153
+ v-model="model.f_changemeter_fee"
154
+ :options='$parent.$parent.changemeter_fee' placeholder='请选择'
155
+ condition="f_changemeter_fee {}"
156
+ close-on-select></v-select>
157
+ </div>
158
+ <div class="col-sm-2 form-group">
159
+ <label class="font_normal_body">付款方式</label>
160
+ <v-select id="f_payment"
161
+ v-model="model.f_payment"
162
+ :multiple="true"
163
+ placeholder='请选择'
164
+ condition="f_payment in {}"
165
+ :value.sync="model.f_payment"
166
+ :options='$parent.$parent.payments'
167
+ close-on-select clear-button>
168
+ </v-select>
169
+ </div>
170
+ <div class="col-sm-2 form-group">
171
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
172
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
173
+ condition="f_meternumber = '{}'" placeholder='表号'>
174
+ </div>
175
+ <div class="col-sm-2 form-group">
176
+ <label class="font_normal_body">表&ensp;封&ensp;号</label>
177
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_metertitles"
178
+ condition="f_metertitles = '{}'" placeholder='表封号'>
179
+ </div>
180
+ <div class="col-sm-2 form-group">
181
+ <label class="font_normal_body">旧&emsp;表&emsp;号</label>
182
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber_old"
183
+ condition="f_meternumber_old = '{}'" placeholder='旧表号'>
184
+ </div>
185
+ <div class="col-sm-2 form-group">
186
+ <label class="font_normal_body">旧&emsp;卡&emsp;号</label>
187
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_old"
188
+ condition="f_card_old = '{}'" placeholder='旧卡号'>
189
+ </div>
190
+ </div>
191
+ </div>
192
+ </criteria>
193
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
194
+ <template partial='head'>
195
+ <tr>
196
+ <th>
197
+ <!--<nobr>客户编号</nobr>-->
198
+ <data-order field="f_userinfo_code" name="客户编号"
199
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
200
+ </th>
201
+ <th>
202
+ <nobr>客户名称</nobr>
203
+ </th>
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
+ <data-order field="f_address" name="客户地址"
225
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
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
+ </th>
239
+ <th>
240
+ <nobr>表封号</nobr>
241
+ </th>
242
+ <th>
243
+ <nobr>旧气表品牌</nobr>
244
+ </th>
245
+ <th>
246
+ <nobr>新气表品牌</nobr>
247
+ </th>
248
+ <th>
249
+ <nobr>补气量</nobr>
250
+ </th>
251
+ <th>
252
+ <nobr>补气金额</nobr>
253
+ </th>
254
+ <th>
255
+ <nobr>订单编号</nobr>
256
+ </th>
257
+ <th>
258
+ <nobr>备注</nobr>
259
+ </th>
260
+ <th>
261
+ <nobr>换表人</nobr>
262
+ </th>
263
+ <th>
264
+ <nobr>状态</nobr>
265
+ </th>
266
+ <th>
267
+ <!-- <nobr>换表日期</nobr>-->
268
+ <data-order field="f_operate_date" name="换表日期"
269
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
270
+ </th>
271
+ <th>
272
+ <nobr>人员</nobr>
273
+ </th>
274
+ <th>
275
+ <nobr>部门</nobr>
276
+ </th>
277
+ <th>
278
+ <nobr>公司</nobr>
279
+ </th>
280
+ <th><nobr>旧表类型</nobr></th>
281
+ <th><nobr>新表类型</nobr></th>
282
+ <th><nobr>用户类型</nobr></th>
283
+ <th><nobr>附件</nobr></th>
284
+ </tr>
285
+ </template>
286
+ <template partial='body'>
287
+ <td style="text-align: center;"><nobr>
288
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
289
+ </nobr> </td>
290
+ <td style="text-align: center;">
291
+ <nobr>{{row.f_user_name}}</nobr>
292
+ </td>
293
+ <td style="text-align: center;">
294
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{row.f_payment}}</nobr>
298
+ </td>
299
+ <td style="text-align: center;">
300
+ <nobr>{{row.f_meter_base}}</nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr>{{row.f_balance_amount}}</nobr>
304
+ </td>
305
+ <td style="text-align: center;">
306
+ <nobr>{{row.leigougas}}</nobr>
307
+ </td>
308
+ <td style="text-align: center;">
309
+ <nobr>{{row.leigoumoney}}</nobr>
310
+ </td>
311
+ <td style="text-align: center;">
312
+ <nobr>{{row.f_address}}</nobr>
313
+ </td>
314
+
315
+ <td style="text-align: center;">
316
+ <nobr>{{row.f_type}}</nobr>
317
+ </td>
318
+ <td style="text-align: center;">
319
+ <nobr>{{row.f_changemeter_fee}}</nobr>
320
+ </td>
321
+ <td style="text-align: center;">
322
+ <nobr>{{row.f_meternumber_old}}</nobr>
323
+ </td>
324
+ <td style="text-align: center;">
325
+ <nobr>{{row.f_meternumber}}</nobr>
326
+ </td>
327
+ <td style="text-align: center;">
328
+ <nobr>{{row.f_metertitles}}</nobr>
329
+ </td>
330
+ <td style="text-align: center;">
331
+ <nobr>{{row.f_meter_brand_old}}</nobr>
332
+ </td>
333
+ <td style="text-align: center;">
334
+ <nobr>{{row.f_meter_brand}}</nobr>
335
+ </td>
336
+ <td style="text-align: center;">
337
+ <nobr>{{row.f_remanent_gas}}</nobr>
338
+ </td>
339
+ <td style="text-align: center;">
340
+ <nobr>{{row.f_remanent_money}}</nobr>
341
+ </td>
342
+ <td style="text-align: center;">
343
+ <nobr>{{row.f_serial_number}}</nobr>
344
+ </td>
345
+ <td style="text-align: center;">
346
+ <nobr>{{row.f_comments}}</nobr>
347
+ </td>
348
+ <td style="text-align: center;">
349
+ <nobr>{{row.f_change_operator}}</nobr>
350
+ </td>
351
+ <td style="text-align: center;">
352
+ <nobr>{{row.f_state}}</nobr>
353
+ </td>
354
+ <td style="text-align: center;">
355
+ <nobr>{{row.f_operate_date}}</nobr>
356
+ </td>
357
+ <td style="text-align: center;">
358
+ <nobr>{{row.f_operator}}</nobr>
359
+ </td>
360
+ <td style="text-align: center;">
361
+ <nobr>{{row.f_depname}}</nobr>
362
+ </td>
363
+ <td style="text-align: center;">
364
+ <nobr>{{row.f_orgname}}</nobr>
365
+ </td>
366
+ <td style="text-align: center;">
367
+ <nobr>{{row.f_meter_type_old}}</nobr>
368
+ </td>
369
+ <td style="text-align: center;">
370
+ <nobr>{{row.f_meter_type}}</nobr>
371
+ </td>
372
+ <td style="text-align: center;">
373
+ <nobr>{{row.f_user_type}}</nobr>
374
+ </td>
375
+ <td style="text-align: center;"><nobr>
376
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
377
+ </nobr></td>
378
+ </template>
379
+ <template partial='foot'></template>
380
+ </data-grid>
381
+ </criteria-paged>
382
+ <table class="table-hover">
383
+ <tr style="position: relative" class="table-bordered">
384
+ <td
385
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
386
+ 汇总信息
387
+ </td>
388
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
389
+ 表上余额合计:&emsp;{{sumsmodel.f_balance_amount}}
390
+ </td>
391
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
392
+ 换表费合计:&emsp;{{sumsmodel.f_changemeter_fee}}
393
+ </td>
394
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
395
+ 补气量合计:&emsp;{{sumsmodel.f_remanent_gas}}
396
+ </td>
397
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
398
+ 补气金额合计:&emsp;{{sumsmodel.f_remanent_money}}
399
+ </td>
400
+ </tr>
401
+ </table>
402
+ <!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
403
+ <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
404
+ <!--<header slot="modal-header" class="modal-header text-center">-->
405
+ <!--<h4 class="modal-title">打印列选择</h4>-->
406
+ <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
407
+ <!--<label for="f_generations" class="font-size">全选</label>-->
408
+ <!--</header>-->
409
+ <!--<article slot="modal-body">-->
410
+ <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
411
+ <!--<div class="col-sm-3" v-for="f in fields">-->
412
+ <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
413
+ <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
414
+ <!--</div>-->
415
+ <!--</div>-->
416
+ <!--</article>-->
417
+ <!--<footer slot="modal-footer" class="modal-footer">-->
418
+ <!--<center>-->
419
+ <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
420
+ <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
421
+ <!--<print-table :model='model' v-show="false" v-ref:print-->
422
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
423
+ <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
424
+ <!--:fields="modelval" :printpage="true">-->
425
+ <!--</print-table>-->
426
+ <!--</center>-->
427
+ <!--</footer>-->
428
+ <!--</modal>-->
429
+ </div>
430
+ <div class="flex" v-if="show">
431
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
432
+ </div>
433
+ </div>
434
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
435
+ <article slot="modal-body">
436
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload :isremark="false" fusetype="换表&清零" ></upload>
437
+ </article>
438
+ <footer slot="modal-footer" class="modal-footer">
439
+ </footer>
440
+ </modal>
441
+ </div>
442
+ </template>
443
+ <script>
444
+ import {PagedList} from 'vue-client'
445
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
446
+ import exportConfig from '../../components/sale/config/exportConfig'
447
+ let readySomething = async function (self) {
448
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
449
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
450
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
451
+ // self.$refs.paged.$refs.cri.search()
452
+ await self.$MagLoadParams.loadParam()
453
+ self.initParams()
454
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
455
+ }
456
+ export default {
457
+ props:['data'],
458
+ title: '换表查询',
459
+ data() {
460
+ return {
461
+ data: {},
462
+ other:[],
463
+ footer:[],
464
+ meterbrands: [],
465
+ pricenames: [],
466
+ 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}),
467
+ criteriaShow: false,
468
+ orgCondtionStr: '',
469
+ modelval: [],
470
+ printshow: false,
471
+ all: false,
472
+ fields: {},
473
+ initres: {
474
+ org:[this.$login.f.orgid],
475
+ dep:[],
476
+ user:[],
477
+ },
478
+ config: {
479
+ 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']
480
+ },
481
+ //排序
482
+ orderitem:'f_operate_date desc',
483
+ orderFields: {
484
+ f_operate_date: 'no'
485
+ },
486
+ show:false,
487
+ rowdata:{},
488
+ showupload:false,
489
+ selected:{},
490
+ thead: '',
491
+ tfoot: '',
492
+ defaultfield: [],
493
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
494
+ //合计数据
495
+ sumsmodel: {},
496
+ changemeter_fee:[
497
+ {label: '全部', value: ''},
498
+ {label: '销售', value: '> 0'},
499
+ {label: '免费', value: '= 0'}
500
+ ]
501
+ }
502
+
503
+ },
504
+ ready() {
505
+ this.startDate=this.$parent.startDate
506
+ this.endDate=this.$parent.endDate
507
+ readySomething(this)
508
+ },
509
+ methods: {
510
+ view(row){
511
+ this.showupload = true
512
+ this.selected= row
513
+ console.log("11",row)
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
+ getotherfooter () {
526
+ this.other = [];
527
+ this.footer = [];
528
+ let exportdata = this.getCondition;
529
+ let otherInData = [];
530
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
531
+ let footerData = [], exportfield = this.getfield;
532
+ footerData.push("合计");
533
+ let self = this;
534
+ for (var field in self.sumsmodel) {
535
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
536
+ }
537
+ this.footer.push(footerData);
538
+ this.other.push(otherInData);
539
+ let date = []
540
+ date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
541
+ date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
542
+ this.other.push(date)
543
+ },
544
+ async initParams() {
545
+ // 初始化气表品牌
546
+ let brandArr = []
547
+ await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
548
+ let temp = {}
549
+ temp.label = item.label
550
+ temp.value = item.value.f_meter_brand
551
+ brandArr.push(temp)
552
+ })
553
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
554
+ },
555
+ async selfSearch(args) {
556
+ if (this.data) {
557
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
558
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
559
+ }
560
+ args.condition = `${args.condition}` + this.orgCondtionStr
561
+ args.condition = args.condition.replace(/f_zones/, "f_slice_area")
562
+ await this.model.search(args.condition, args.model)
563
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
564
+
565
+ this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
566
+
567
+ },
568
+ clear() {
569
+ //清空部门和人员
570
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
571
+ //部门和人员变为全选
572
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
573
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
574
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
575
+ this.$refs.paged.$refs.cri.model[key] = []
576
+ })
577
+ },
578
+ show() {
579
+ this.criteriaShow = true
580
+ },
581
+ hidden() {
582
+ this.criteriaShow = !this.criteriaShow
583
+ },
584
+ getRes(obj) {
585
+ this.orgCondtionStr = obj
586
+ },
587
+ stamp() {
588
+ this.all = false
589
+ //默认选择要打印的列
590
+ this.modelval = defaultPrint.config
591
+ this.fields = this.getfield
592
+ this.printshow = true
593
+ this.put()
594
+ },
595
+ dealmsg(val) {
596
+ val.model = this.model.model
597
+ this.$dispatch('deal-msg', val)
598
+ },
599
+ put() {
600
+ // 对Modelval进行排序
601
+ this.sortModelval()
602
+ this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
603
+ for (let key of this.modelval) {
604
+ this.thead += '<th>' + this.fields[key] + '</th>'
605
+ }
606
+ this.thead += '</tr>'
607
+ },
608
+ print() {
609
+ this.$refs.print.PrintAsFile()
610
+ this.printshow = false
611
+ },
612
+ close() {
613
+ this.printshow = false
614
+ this.all = false
615
+ },
616
+ // 对选择的列进行排序
617
+ sortModelval() {
618
+ let sortModel = []
619
+ Object.keys(this.fields).forEach((key) => {
620
+ if (this.modelval.includes(key)) {
621
+ sortModel.push(key)
622
+ }
623
+ })
624
+ this.modelval = sortModel
625
+ console.log('选择的打印的字段', this.modelval)
626
+ },
627
+ sort (field, rule) {
628
+ // 将所有排序方式设为不排序,实现相互排斥
629
+ for (let key in this.orderFields) {
630
+ if (key === field) {
631
+ this.orderFields[key] = rule
632
+ } else {
633
+ this.orderFields[key] = 'no'
634
+ }
635
+ }
636
+ // 如果新规则不排序,还原为默认排序
637
+ if (rule === 'no') {
638
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
639
+ } else {
640
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
641
+ }
642
+
643
+ this.search()
644
+ },
645
+ },
646
+ watch: {
647
+ 'all'(val) {
648
+ if (val) {
649
+ this.modelval = this.bodyData
650
+ } else {
651
+ this.modelval = defaultPrint.config
652
+ this.put()
653
+ }
654
+ },
655
+ 'modelval.length'() {
656
+ this.put()
657
+ },
658
+ sumsmodel:{
659
+ handler: function(val) {
660
+ this.getotherfooter();
661
+ },
662
+ deep: true
663
+ }
664
+ },
665
+ computed: {
666
+ // getstart(){
667
+ // return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
668
+ // },
669
+ getCondition() {
670
+ return {
671
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
672
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
673
+ },
674
+ getfield() {
675
+ return exportConfig.changemeterConfig
676
+ },
677
+ changeTypes() {
678
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
679
+ },
680
+ userTypes() {
681
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
682
+ },
683
+ meterClassify() {
684
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
685
+ },
686
+ changePerson() {
687
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表人')]
688
+ },
689
+ charge_state() {
690
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
691
+ },
692
+ payments() {
693
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
694
+ }
695
+ }
696
+ }
697
+ </script>
698
+ <style scoped>
699
+ .showbottom{
700
+ height:95%
701
+ }
702
+ </style>