manage-client 3.2.26 → 3.2.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.4.1/gc.properties +0 -0
  4. package/build/dev-server.js +28 -9
  5. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  6. package/package.json +1 -1
  7. package/src/.idea/misc.xml +9 -0
  8. package/src/.idea/modules.xml +8 -0
  9. package/src/.idea/src.iml +9 -0
  10. package/src/.idea/vcs.xml +6 -0
  11. package/src/.idea/workspace.xml +93 -0
  12. package/src/components/SellReport/ChargePrick.vue +43 -122
  13. package/src/components/sale/businessquery/BusinesQuery.vue +358 -348
  14. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -627
  15. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -348
  16. package/src/components/sale/businessquery/ChargeQuery.vue +1245 -1235
  17. package/src/components/sale/businessquery/DisableQuery.vue +451 -441
  18. package/src/components/sale/businessquery/EnableQuery.vue +408 -398
  19. package/src/components/sale/businessquery/FillCardQuery.vue +486 -477
  20. package/src/components/sale/businessquery/FillGasQuery.vue +511 -491
  21. package/src/components/sale/businessquery/InspectListUser.vue +433 -433
  22. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -619
  23. package/src/components/sale/businessquery/ReverseQuery.vue +402 -392
  24. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  25. package/src/components/sale/businessquery/TransferQuery.vue +418 -404
  26. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  27. package/src/components/sale/filesquery/ArchivesManage.vue +3 -0
  28. package/src/components/sale/filesquery/DeviceQuery.vue +534 -524
  29. package/src/components/sale/filesquery/FireQuery.vue +477 -0
  30. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1250
  31. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  32. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  33. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  34. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  35. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  36. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  37. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -612
  38. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  39. package/src/filiale/pingxiang/sale.js +9 -9
  40. package/src/filiale/qingtongxia/sale.js +13 -13
  41. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  42. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  43. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  44. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  45. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  46. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  47. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  48. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  49. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  50. package/src/filiale/tongchuan/ChargeQuery.vue +1270 -1252
  51. package/src/filiale/tongchuan/FillGasQuery.vue +523 -508
  52. package/src/filiale/tongchuan/config/exportConfig.js +1 -1
  53. package/src/main.js +10 -11
  54. package/src/saleManage.js +5 -0
@@ -1,627 +1,632 @@
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>
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 = '{}' " placeholder="客户编号">
33
- </div>
34
- <div class="col-sm-2 form-group">
35
- <label class="font_normal_body">客户名称</label>
36
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
37
- condition="f_user_name like '%{}%'" placeholder="客户名称">
38
- </div>
39
-
40
- <!--
41
- -->
42
-
43
-
44
- <div class="span" style="float:right;">
45
- <button class="button_search button_spacing" @click="search()">查询</button>
46
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
47
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
48
-
49
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
50
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
51
- sqlurl="rs/logic/exportfile" sql-name="changeMeterQuery" template-name='换表查询导出'
52
- :choose-col="true">
53
- </export-excel>
54
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
55
- :defaultfield="$parent.$parent.defaultfield"
56
- titletable="换表记录"
57
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
58
- <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>
59
- </div>
60
- </div>
61
- <div class="row" v-show="$parent.$parent.criteriaShow">
62
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
63
- <div class="col-sm-2 form-group">
64
- <label class="font_normal_body">客户电话</label>
65
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
66
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
67
- </div>
68
- <div class="col-sm-2 form-group">
69
- <label class="font_normal_body">客户地址</label>
70
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
71
- condition="f_address like '%{}%'" placeholder='客户地址'>
72
- </div>
73
- <div class="col-sm-2 form-group">
74
- <label class="font_normal_body">用户类型</label>
75
- <v-select :value.sync="model.f_user_type"
76
- v-model="model.f_user_type"
77
- :options='$parent.$parent.userTypes' placeholder='请选择'
78
- condition="f_user_type = '{}'"
79
- close-on-select></v-select>
80
- </div>
81
- <div class="col-sm-2 form-group">
82
- <label class="font_normal_body">新表品牌</label>
83
- <v-select :value.sync="model.f_meter_brand"
84
- v-model="model.f_meter_brand"
85
- :options='$parent.$parent.meterbrands' placeholder='请选择'
86
- condition="f_meter_brand = '{}'"
87
- close-on-select></v-select>
88
- </div>
89
- <div class="col-sm-2 form-group">
90
- <label class="font_normal_body">旧表品牌</label>
91
- <v-select :value.sync="model.f_meter_brand_old"
92
- v-model="model.f_meter_brand_old"
93
- :options='$parent.$parent.meterbrands' placeholder='请选择'
94
- condition="f_meter_brand_old = '{}'"
95
- close-on-select></v-select>
96
- </div>
97
- <div class="col-sm-2 form-group">
98
- <label class="font_normal_body">换表类型</label>
99
- <v-select :value.sync="model.f_type"
100
- v-model="model.f_type"
101
- :options='$parent.$parent.changeTypes' placeholder='请选择'
102
- condition="f_type = '{}'"
103
- close-on-select></v-select>
104
- </div>
105
- <div class="col-sm-2 form-group">
106
- <label class="font_normal_body">换&nbsp;表&nbsp;&nbsp;人</label>
107
- <v-select :value.sync="model.f_change_operator"
108
- v-model="model.f_change_operator"
109
- :options='$parent.$parent.changePerson' placeholder='请选择'
110
- condition="f_change_operator = '{}'"
111
- close-on-select></v-select>
112
- </div>
113
- <div class="col-sm-2 form-group">
114
- <label class="font_normal_body">新表卡号</label>
115
- <input type="text" style="width:60%" class="input_search" v-model="model.f_newcard_id"
116
- condition="f_newcard_id = '{}'" placeholder='新表卡号'>
117
- </div>
118
- <div class="col-sm-2 form-group">
119
- <label class="font_normal_body">旧表卡号</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">表&ensp;封&ensp;号</label>
168
- <input type="text" style="width:60%" class="input_search" v-model="model.f_metertitles"
169
- condition="f_metertitles = '{}'" placeholder='表封号'>
170
- </div>
171
- </div>
172
- </div>
173
- </criteria>
174
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
175
- <template partial='head'>
176
- <tr>
177
- <th>
178
- <nobr>客户编号</nobr>
179
- </th>
180
- <th>
181
- <nobr>客户名称</nobr>
182
- </th>
183
- <th>
184
- <nobr>付款方式</nobr>
185
- </th>
186
- <th>
187
- <nobr>客户地址</nobr>
188
- </th>
189
- <th>
190
- <nobr>换表类型</nobr>
191
- </th>
192
- <th>
193
- <nobr>换表费</nobr>
194
- </th>
195
- <th>
196
- <nobr>旧表号</nobr>
197
- </th>
198
- <th>
199
- <nobr>新表号</nobr>
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
- </th>
225
- <th>
226
- <nobr>状态</nobr>
227
- </th>
228
- <th>
229
- <nobr>换表日期</nobr>
230
- </th>
231
- <th>
232
- <nobr>人员</nobr>
233
- </th>
234
- <th>
235
- <nobr>部门</nobr>
236
- </th>
237
- <th>
238
- <nobr>公司</nobr>
239
- </th>
240
- <th><nobr>旧表类型</nobr></th>
241
- <th><nobr>新表类型</nobr></th>
242
- <th><nobr>用户类型</nobr></th>
243
- <th><nobr>附件</nobr></th>
244
- </tr>
245
- </template>
246
- <template partial='body'>
247
- <td style="text-align: center;"><nobr>
248
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
249
- </nobr> </td>
250
- <td style="text-align: center;">
251
- <nobr>{{row.f_user_name}}</nobr>
252
- </td>
253
- <td style="text-align: center;">
254
- <nobr>{{row.f_payment}}</nobr>
255
- </td>
256
- <td style="text-align: center;">
257
- <nobr>{{row.f_address}}</nobr>
258
- </td>
259
-
260
- <td style="text-align: center;">
261
- <nobr>{{row.f_type}}</nobr>
262
- </td>
263
- <td style="text-align: center;">
264
- <nobr>{{row.f_changemeter_fee}}</nobr>
265
- </td>
266
- <td style="text-align: center;">
267
- <nobr>{{row.f_meternumber_old}}</nobr>
268
- </td>
269
- <td style="text-align: center;">
270
- <nobr>{{row.f_meternumber}}</nobr>
271
- </td>
272
- <td style="text-align: center;">
273
- <nobr>{{row.f_metertitles}}</nobr>
274
- </td>
275
- <td style="text-align: center;">
276
- <nobr>{{row.f_meter_brand_old}}</nobr>
277
- </td>
278
- <td style="text-align: center;">
279
- <nobr>{{row.f_meter_brand}}</nobr>
280
- </td>
281
- <td style="text-align: center;">
282
- <nobr>{{row.f_remanent_gas}}</nobr>
283
- </td>
284
- <td style="text-align: center;">
285
- <nobr>{{row.f_remanent_money}}</nobr>
286
- </td>
287
- <td style="text-align: center;">
288
- <nobr>{{row.f_serial_number}}</nobr>
289
- </td>
290
- <td style="text-align: center;">
291
- <nobr>{{row.f_comments}}</nobr>
292
- </td>
293
- <td style="text-align: center;">
294
- <nobr>{{row.f_change_operator}}</nobr>
295
- </td>
296
- <td style="text-align: center;">
297
- <nobr>{{row.f_state}}</nobr>
298
- </td>
299
- <td style="text-align: center;">
300
- <nobr>{{row.f_operate_date}}</nobr>
301
- </td>
302
- <td style="text-align: center;">
303
- <nobr>{{row.f_operator}}</nobr>
304
- </td>
305
- <td style="text-align: center;">
306
- <nobr>{{row.f_depname}}</nobr>
307
- </td>
308
- <td style="text-align: center;">
309
- <nobr>{{row.f_orgname}}</nobr>
310
- </td>
311
- <td style="text-align: center;">
312
- <nobr>{{row.f_meter_type_old}}</nobr>
313
- </td>
314
- <td style="text-align: center;">
315
- <nobr>{{row.f_meter_type}}</nobr>
316
- </td>
317
- <td style="text-align: center;">
318
- <nobr>{{row.f_user_type}}</nobr>
319
- </td>
320
- <td style="text-align: center;"><nobr>
321
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
322
- </nobr></td>
323
- </template>
324
- <template partial='foot'></template>
325
- </data-grid>
326
- </criteria-paged>
327
- <table class="table-hover">
328
- <tr style="position: relative" class="table-bordered">
329
- <td
330
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
331
- 汇总信息
332
- </td>
333
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
334
- 换表费合计:&emsp;{{sumsmodel.f_changemeter_fee}}
335
- </td>
336
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
337
- 补气量合计:&emsp;{{sumsmodel.f_remanent_gas}}
338
- </td>
339
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
340
- 补气金额合计:&emsp;{{sumsmodel.f_remanent_money}}
341
- </td>
342
- </tr>
343
- </table>
344
- <!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
345
- <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
346
- <!--<header slot="modal-header" class="modal-header text-center">-->
347
- <!--<h4 class="modal-title">打印列选择</h4>-->
348
- <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
349
- <!--<label for="f_generations" class="font-size">全选</label>-->
350
- <!--</header>-->
351
- <!--<article slot="modal-body">-->
352
- <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
353
- <!--<div class="col-sm-3" v-for="f in fields">-->
354
- <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
355
- <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
356
- <!--</div>-->
357
- <!--</div>-->
358
- <!--</article>-->
359
- <!--<footer slot="modal-footer" class="modal-footer">-->
360
- <!--<center>-->
361
- <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
362
- <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
363
- <!--<print-table :model='model' v-show="false" v-ref:print-->
364
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
365
- <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
366
- <!--:fields="modelval" :printpage="true">-->
367
- <!--</print-table>-->
368
- <!--</center>-->
369
- <!--</footer>-->
370
- <!--</modal>-->
371
- </div>
372
- <div class="flex" v-if="show">
373
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
374
- </div>
375
- </div>
376
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
377
- <article slot="modal-body">
378
- <upload :blodid="selected.id" v-ref:upload isremark="false" fusetype="换表&清零"></upload>
379
- </article>
380
- <footer slot="modal-footer" class="modal-footer">
381
- </footer>
382
- </modal>
383
- </div>
384
- </template>
385
- <script>
386
- import {PagedList} from 'vue-client'
387
- import defaultPrint from '../config/DefaultPrint'
388
- import exportConfig from '../config/exportConfig'
389
-
390
- let readySomething = async function (self) {
391
-
392
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
393
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
394
-
395
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
396
- // self.$refs.paged.$refs.cri.search()
397
- await self.$MagLoadParams.loadParam()
398
- self.initParams()
399
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
400
- }
401
- export default {
402
-
403
- props:['data'],
404
- title: '换表查询',
405
- data() {
406
- return {
407
- data: {},
408
- other:[],
409
- footer:[],
410
- meterbrands: [],
411
- pricenames: [],
412
- model: new PagedList('rs/sql/changeMeterQuery', 20, {}, {f_changemeter_fee: 0,f_remanent_money:0,f_remanent_gas:0}),
413
- criteriaShow: false,
414
- orgCondtionStr: '',
415
- modelval: [],
416
- printshow: false,
417
- all: false,
418
- fields: {},
419
- initres: {
420
- org:[this.$login.f.orgid],
421
- dep:[],
422
- user:[],
423
- },
424
- config: {
425
- 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']
426
- },
427
- show:false,
428
- rowdata:{},
429
- showupload:false,
430
- selected:{},
431
- thead: '',
432
- tfoot: '',
433
- defaultfield: [],
434
- // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
435
-
436
- //合计数据
437
- sumsmodel: {},
438
- changemeter_fee:[
439
- {label: '全部', value: ''},
440
- {label: '销售', value: '> 0'},
441
- {label: '免费', value: '= 0'}
442
- ]
443
- }
444
-
445
- },
446
- ready() {
447
- debugger
448
- console.log(this.$parent.startDate)
449
- console.log(this.$parent.$parent.startDate)
450
- console.log(this.$parent.$parent.$parent.startDate)
451
- this.startDate=this.$parent.startDate
452
- this.endDate=this.$parent.endDate
453
- console.log("this",this)
454
- readySomething(this)
455
- },
456
- methods: {
457
- view(row){
458
- this.showupload = true
459
- this.selected= row
460
- console.log("11",row)
461
- },
462
- search(){
463
- this.$refs.paged.$refs.cri.search()
464
- },
465
- cancel() {
466
- this.show = false
467
- },
468
- showmsg(obj){
469
- this.rowdata=obj
470
- this.show=true
471
- },
472
- getotherfooter () {
473
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
474
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
475
- this.other = [];
476
- this.footer = [];
477
- let exportdata = this.getCondition;
478
- let otherInData = [];
479
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
480
- let footerData = [], exportfield = this.getfield;
481
- footerData.push("合计");
482
- let self = this;
483
- for (var field in self.sumsmodel) {
484
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
485
- }
486
- this.footer.push(footerData);
487
- this.other.push(otherInData);
488
- },
489
- async initParams() {
490
- // 初始化气表品牌
491
- let brandArr = []
492
- await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
493
- let temp = {}
494
- temp.label = item.label
495
- temp.value = item.value.f_meter_brand
496
- brandArr.push(temp)
497
- })
498
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
499
-
500
- },
501
- selfSearch(args) {
502
- if (this.data) {
503
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
504
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
505
- }
506
- args.condition = `${args.condition}` + this.orgCondtionStr
507
- this.model.search(args.condition, args.model)
508
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
509
- },
510
- clear() {
511
- //清空部门和人员
512
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
513
- //部门和人员变为全选
514
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
515
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
516
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
517
- this.$refs.paged.$refs.cri.model[key] = []
518
- })
519
- },
520
- show() {
521
- this.criteriaShow = true
522
- },
523
- hidden() {
524
- this.criteriaShow = !this.criteriaShow
525
- },
526
- getRes(obj) {
527
- console.log(obj,"========")
528
- this.orgCondtionStr = obj
529
- },
530
- stamp() {
531
- this.all = false
532
- //默认选择要打印的列
533
- this.modelval = defaultPrint.config
534
- this.fields = this.getfield
535
- console.log('所有打印字段', this.fields)
536
- this.printshow = true
537
- this.put()
538
- },
539
- dealmsg(val) {
540
- console.log('---------------dealmsg')
541
- val.model = this.model.model
542
- this.$dispatch('deal-msg', val)
543
- },
544
- put() {
545
- // 对Modelval进行排序
546
- this.sortModelval()
547
- this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
548
- for (let key of this.modelval) {
549
- this.thead += '<th>' + this.fields[key] + '</th>'
550
- }
551
- this.thead += '</tr>'
552
- },
553
- print() {
554
- this.$refs.print.PrintAsFile()
555
- this.printshow = false
556
- },
557
- close() {
558
- this.printshow = false
559
- this.all = false
560
- },
561
- // 对选择的列进行排序
562
- sortModelval() {
563
- let sortModel = []
564
- Object.keys(this.fields).forEach((key) => {
565
- if (this.modelval.includes(key)) {
566
- sortModel.push(key)
567
- }
568
- })
569
- this.modelval = sortModel
570
- console.log('选择的打印的字段', this.modelval)
571
- }
572
- },
573
- watch: {
574
- 'all'(val) {
575
- if (val) {
576
- this.modelval = this.bodyData
577
- } else {
578
- this.modelval = defaultPrint.config
579
- this.put()
580
- }
581
- },
582
- 'modelval.length'() {
583
- this.put()
584
- },
585
- sumsmodel:{
586
- handler: function(val) {
587
- this.getotherfooter();
588
- },
589
- deep: true
590
- }
591
- },
592
- computed: {
593
- // getstart(){
594
- // return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
595
- // },
596
- getCondition() {
597
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
598
- },
599
- getfield() {
600
- return exportConfig.changemeterConfig
601
- },
602
- changeTypes() {
603
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
604
- },
605
- userTypes() {
606
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
607
- },
608
- meterClassify() {
609
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
610
- },
611
- changePerson() {
612
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表人')]
613
- },
614
- charge_state() {
615
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
616
- },
617
- payments() {
618
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
619
- }
620
- }
621
- }
622
- </script>
623
- <style scoped>
624
- .showbottom{
625
- height:95%
626
- }
627
- </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>
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 = '{}' " placeholder="客户编号">
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body">客户名称</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
37
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
38
+ </div>
39
+
40
+ <!--
41
+ -->
42
+
43
+
44
+ <div class="span" style="float:right;">
45
+ <button class="button_search button_spacing" @click="search()">查询</button>
46
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
47
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
48
+
49
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
50
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
51
+ sqlurl="rs/logic/exportfile" sql-name="changeMeterQuery" template-name='换表查询导出'
52
+ :choose-col="true">
53
+ </export-excel>
54
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
55
+ :defaultfield="$parent.$parent.defaultfield"
56
+ titletable="换表记录"
57
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
58
+ <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>
59
+ </div>
60
+ </div>
61
+ <div class="row" v-show="$parent.$parent.criteriaShow">
62
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
63
+ <div class="col-sm-2 form-group">
64
+ <label class="font_normal_body">客户电话</label>
65
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
66
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
67
+ </div>
68
+ <div class="col-sm-2 form-group">
69
+ <label class="font_normal_body">客户地址</label>
70
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
71
+ condition="f_address like '%{}%'" placeholder='客户地址'>
72
+ </div>
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">用户类型</label>
75
+ <v-select :value.sync="model.f_user_type"
76
+ v-model="model.f_user_type"
77
+ :options='$parent.$parent.userTypes' placeholder='请选择'
78
+ condition="f_user_type = '{}'"
79
+ close-on-select></v-select>
80
+ </div>
81
+ <div class="col-sm-2 form-group">
82
+ <label class="font_normal_body">新表品牌</label>
83
+ <v-select :value.sync="model.f_meter_brand"
84
+ v-model="model.f_meter_brand"
85
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
86
+ condition="f_meter_brand = '{}'"
87
+ close-on-select></v-select>
88
+ </div>
89
+ <div class="col-sm-2 form-group">
90
+ <label class="font_normal_body">旧表品牌</label>
91
+ <v-select :value.sync="model.f_meter_brand_old"
92
+ v-model="model.f_meter_brand_old"
93
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
94
+ condition="f_meter_brand_old = '{}'"
95
+ close-on-select></v-select>
96
+ </div>
97
+ <div class="col-sm-2 form-group">
98
+ <label class="font_normal_body">换表类型</label>
99
+ <v-select :value.sync="model.f_type"
100
+ v-model="model.f_type"
101
+ :options='$parent.$parent.changeTypes' placeholder='请选择'
102
+ condition="f_type = '{}'"
103
+ close-on-select></v-select>
104
+ </div>
105
+ <div class="col-sm-2 form-group">
106
+ <label class="font_normal_body">换&nbsp;表&nbsp;&nbsp;人</label>
107
+ <v-select :value.sync="model.f_change_operator"
108
+ v-model="model.f_change_operator"
109
+ :options='$parent.$parent.changePerson' placeholder='请选择'
110
+ condition="f_change_operator = '{}'"
111
+ close-on-select></v-select>
112
+ </div>
113
+ <div class="col-sm-2 form-group">
114
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
115
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
116
+ condition="f_card_id = '{}'" placeholder='卡号'>
117
+ </div>
118
+ <div class="col-sm-2 form-group">
119
+ <label class="font_normal_body">换表状态</label>
120
+ <v-select :value.sync="model.f_state"
121
+ v-model="model.f_state"
122
+ :options='$parent.$parent.charge_state' placeholder='请选择'
123
+ condition="f_state = '{}'"
124
+ close-on-select></v-select>
125
+ </div>
126
+ <div class="col-sm-2 form-group">
127
+ <label class="font_normal_body">旧表类型</label>
128
+ <v-select :value.sync="model.f_meter_type_old"
129
+ v-model="model.f_meter_type_old"
130
+ :options='$parent.$parent.meterClassify' placeholder='请选择'
131
+ condition="f_meter_type_old = '{}'"
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"
137
+ v-model="model.f_meter_type"
138
+ :options='$parent.$parent.meterClassify' placeholder='请选择'
139
+ condition="f_meter_type = '{}'"
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_changemeter_fee"
145
+ v-model="model.f_changemeter_fee"
146
+ :options='$parent.$parent.changemeter_fee' placeholder='请选择'
147
+ condition="f_changemeter_fee {}"
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 id="f_payment"
153
+ v-model="model.f_payment"
154
+ placeholder='请选择'
155
+ condition="f_payment ='{}'"
156
+ :value.sync="model.f_payment"
157
+ :options='$parent.$parent.payments'
158
+ close-on-select clear-button>
159
+ </v-select>
160
+ </div>
161
+ <div class="col-sm-2 form-group">
162
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
163
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
164
+ condition="f_meternumber = '{}'" placeholder='表号'>
165
+ </div>
166
+ <div class="col-sm-2 form-group">
167
+ <label class="font_normal_body">表&ensp;封&ensp;号</label>
168
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_metertitles"
169
+ condition="f_metertitles = '{}'" placeholder='表封号'>
170
+ </div>
171
+ </div>
172
+ </div>
173
+ </criteria>
174
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
175
+ <template partial='head'>
176
+ <tr>
177
+ <th>
178
+ <nobr>客户编号</nobr>
179
+ </th>
180
+ <th>
181
+ <nobr>客户名称</nobr>
182
+ </th>
183
+ <th>
184
+ <nobr>付款方式</nobr>
185
+ </th>
186
+ <th>
187
+ <nobr>客户地址</nobr>
188
+ </th>
189
+ <th>
190
+ <nobr>换表类型</nobr>
191
+ </th>
192
+ <th>
193
+ <nobr>换表费</nobr>
194
+ </th>
195
+ <th>
196
+ <nobr>旧表号</nobr>
197
+ </th>
198
+ <th>
199
+ <nobr>新表号</nobr>
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
+ </th>
225
+ <th>
226
+ <nobr>状态</nobr>
227
+ </th>
228
+ <th>
229
+ <nobr>换表日期</nobr>
230
+ </th>
231
+ <th>
232
+ <nobr>人员</nobr>
233
+ </th>
234
+ <th>
235
+ <nobr>部门</nobr>
236
+ </th>
237
+ <th>
238
+ <nobr>公司</nobr>
239
+ </th>
240
+ <th><nobr>旧表类型</nobr></th>
241
+ <th><nobr>新表类型</nobr></th>
242
+ <th><nobr>用户类型</nobr></th>
243
+ <th><nobr>附件</nobr></th>
244
+ </tr>
245
+ </template>
246
+ <template partial='body'>
247
+ <td style="text-align: center;"><nobr>
248
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
249
+ </nobr> </td>
250
+ <td style="text-align: center;">
251
+ <nobr>{{row.f_user_name}}</nobr>
252
+ </td>
253
+ <td style="text-align: center;">
254
+ <nobr>{{row.f_payment}}</nobr>
255
+ </td>
256
+ <td style="text-align: center;">
257
+ <nobr>{{row.f_address}}</nobr>
258
+ </td>
259
+
260
+ <td style="text-align: center;">
261
+ <nobr>{{row.f_type}}</nobr>
262
+ </td>
263
+ <td style="text-align: center;">
264
+ <nobr>{{row.f_changemeter_fee}}</nobr>
265
+ </td>
266
+ <td style="text-align: center;">
267
+ <nobr>{{row.f_meternumber_old}}</nobr>
268
+ </td>
269
+ <td style="text-align: center;">
270
+ <nobr>{{row.f_meternumber}}</nobr>
271
+ </td>
272
+ <td style="text-align: center;">
273
+ <nobr>{{row.f_metertitles}}</nobr>
274
+ </td>
275
+ <td style="text-align: center;">
276
+ <nobr>{{row.f_meter_brand_old}}</nobr>
277
+ </td>
278
+ <td style="text-align: center;">
279
+ <nobr>{{row.f_meter_brand}}</nobr>
280
+ </td>
281
+ <td style="text-align: center;">
282
+ <nobr>{{row.f_remanent_gas}}</nobr>
283
+ </td>
284
+ <td style="text-align: center;">
285
+ <nobr>{{row.f_remanent_money}}</nobr>
286
+ </td>
287
+ <td style="text-align: center;">
288
+ <nobr>{{row.f_serial_number}}</nobr>
289
+ </td>
290
+ <td style="text-align: center;">
291
+ <nobr>{{row.f_comments}}</nobr>
292
+ </td>
293
+ <td style="text-align: center;">
294
+ <nobr>{{row.f_change_operator}}</nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{row.f_state}}</nobr>
298
+ </td>
299
+ <td style="text-align: center;">
300
+ <nobr>{{row.f_operate_date}}</nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr>{{row.f_operator}}</nobr>
304
+ </td>
305
+ <td style="text-align: center;">
306
+ <nobr>{{row.f_depname}}</nobr>
307
+ </td>
308
+ <td style="text-align: center;">
309
+ <nobr>{{row.f_orgname}}</nobr>
310
+ </td>
311
+ <td style="text-align: center;">
312
+ <nobr>{{row.f_meter_type_old}}</nobr>
313
+ </td>
314
+ <td style="text-align: center;">
315
+ <nobr>{{row.f_meter_type}}</nobr>
316
+ </td>
317
+ <td style="text-align: center;">
318
+ <nobr>{{row.f_user_type}}</nobr>
319
+ </td>
320
+ <td style="text-align: center;"><nobr>
321
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
322
+ </nobr></td>
323
+ </template>
324
+ <template partial='foot'></template>
325
+ </data-grid>
326
+ </criteria-paged>
327
+ <table class="table-hover">
328
+ <tr style="position: relative" class="table-bordered">
329
+ <td
330
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
331
+ 汇总信息
332
+ </td>
333
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
334
+ 换表费合计:&emsp;{{sumsmodel.f_changemeter_fee}}
335
+ </td>
336
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
337
+ 补气量合计:&emsp;{{sumsmodel.f_remanent_gas}}
338
+ </td>
339
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
340
+ 补气金额合计:&emsp;{{sumsmodel.f_remanent_money}}
341
+ </td>
342
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
343
+ 户数合计:&emsp;{{sumsmodel.hushu}}
344
+ </td>
345
+ </tr>
346
+ </table>
347
+ <!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
348
+ <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
349
+ <!--<header slot="modal-header" class="modal-header text-center">-->
350
+ <!--<h4 class="modal-title">打印列选择</h4>-->
351
+ <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
352
+ <!--<label for="f_generations" class="font-size">全选</label>-->
353
+ <!--</header>-->
354
+ <!--<article slot="modal-body">-->
355
+ <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
356
+ <!--<div class="col-sm-3" v-for="f in fields">-->
357
+ <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
358
+ <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
359
+ <!--</div>-->
360
+ <!--</div>-->
361
+ <!--</article>-->
362
+ <!--<footer slot="modal-footer" class="modal-footer">-->
363
+ <!--<center>-->
364
+ <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
365
+ <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
366
+ <!--<print-table :model='model' v-show="false" v-ref:print-->
367
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
368
+ <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
369
+ <!--:fields="modelval" :printpage="true">-->
370
+ <!--</print-table>-->
371
+ <!--</center>-->
372
+ <!--</footer>-->
373
+ <!--</modal>-->
374
+ </div>
375
+ <div class="flex" v-if="show">
376
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
377
+ </div>
378
+ </div>
379
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
380
+ <article slot="modal-body">
381
+ <upload :blodid="selected.id" v-ref:upload isremark="false" fusetype="换表&清零"></upload>
382
+ </article>
383
+ <footer slot="modal-footer" class="modal-footer">
384
+ </footer>
385
+ </modal>
386
+ </div>
387
+ </template>
388
+ <script>
389
+ import {PagedList} from 'vue-client'
390
+ import defaultPrint from '../config/DefaultPrint'
391
+ import exportConfig from '../config/exportConfig'
392
+
393
+ let readySomething = async function (self) {
394
+
395
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
396
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
397
+
398
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
399
+ // self.$refs.paged.$refs.cri.search()
400
+ await self.$MagLoadParams.loadParam()
401
+ self.initParams()
402
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
403
+ }
404
+ export default {
405
+
406
+ props:['data'],
407
+ title: '换表查询',
408
+ data() {
409
+ return {
410
+ data: {},
411
+ other:[],
412
+ footer:[],
413
+ meterbrands: [],
414
+ pricenames: [],
415
+ model: new PagedList('rs/sql/changeMeterQuery', 20, {}, {f_changemeter_fee: 0,f_remanent_money:0,f_remanent_gas:0,hushu:0}),
416
+ criteriaShow: false,
417
+ orgCondtionStr: '',
418
+ modelval: [],
419
+ printshow: false,
420
+ all: false,
421
+ fields: {},
422
+ initres: {
423
+ org:[this.$login.f.orgid],
424
+ dep:[],
425
+ user:[],
426
+ },
427
+ config: {
428
+ 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']
429
+ },
430
+ show:false,
431
+ rowdata:{},
432
+ showupload:false,
433
+ selected:{},
434
+ thead: '',
435
+ tfoot: '',
436
+ defaultfield: [],
437
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
438
+
439
+ //合计数据
440
+ sumsmodel: {},
441
+ changemeter_fee:[
442
+ {label: '全部', value: ''},
443
+ {label: '销售', value: '> 0'},
444
+ {label: '免费', value: '= 0'}
445
+ ]
446
+ }
447
+
448
+ },
449
+ ready() {
450
+ debugger
451
+ console.log(this.$parent.startDate)
452
+ console.log(this.$parent.$parent.startDate)
453
+ console.log(this.$parent.$parent.$parent.startDate)
454
+ this.startDate=this.$parent.startDate
455
+ this.endDate=this.$parent.endDate
456
+ console.log("this",this)
457
+ readySomething(this)
458
+ },
459
+ methods: {
460
+ view(row){
461
+ this.showupload = true
462
+ this.selected= row
463
+ console.log("11",row)
464
+ },
465
+ search(){
466
+ this.$refs.paged.$refs.cri.search()
467
+ },
468
+ cancel() {
469
+ this.show = false
470
+ },
471
+ showmsg(obj){
472
+ this.rowdata=obj
473
+ this.show=true
474
+ },
475
+ getotherfooter () {
476
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
477
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
478
+ this.other = [];
479
+ this.footer = [];
480
+ let exportdata = this.getCondition;
481
+ let otherInData = [];
482
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
483
+ let footerData = [], exportfield = this.getfield;
484
+ footerData.push("合计");
485
+ let self = this;
486
+ for (var field in self.sumsmodel) {
487
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
488
+ }
489
+ this.footer.push(footerData);
490
+ this.other.push(otherInData);
491
+ },
492
+ async initParams() {
493
+ // 初始化气表品牌
494
+ let brandArr = []
495
+ await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
496
+ let temp = {}
497
+ temp.label = item.label
498
+ temp.value = item.value.f_meter_brand
499
+ brandArr.push(temp)
500
+ })
501
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
502
+
503
+ },
504
+ async selfSearch(args) {
505
+ if (this.data) {
506
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
507
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
508
+ }
509
+ args.condition = `${args.condition}` + this.orgCondtionStr
510
+ await this.model.search(args.condition, args.model)
511
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
512
+ this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
513
+
514
+ },
515
+ clear() {
516
+ //清空部门和人员
517
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
518
+ //部门和人员变为全选
519
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
520
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
521
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
522
+ this.$refs.paged.$refs.cri.model[key] = []
523
+ })
524
+ },
525
+ show() {
526
+ this.criteriaShow = true
527
+ },
528
+ hidden() {
529
+ this.criteriaShow = !this.criteriaShow
530
+ },
531
+ getRes(obj) {
532
+ console.log(obj,"========")
533
+ this.orgCondtionStr = obj
534
+ },
535
+ stamp() {
536
+ this.all = false
537
+ //默认选择要打印的列
538
+ this.modelval = defaultPrint.config
539
+ this.fields = this.getfield
540
+ console.log('所有打印字段', this.fields)
541
+ this.printshow = true
542
+ this.put()
543
+ },
544
+ dealmsg(val) {
545
+ console.log('---------------dealmsg')
546
+ val.model = this.model.model
547
+ this.$dispatch('deal-msg', val)
548
+ },
549
+ put() {
550
+ // 对Modelval进行排序
551
+ this.sortModelval()
552
+ this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
553
+ for (let key of this.modelval) {
554
+ this.thead += '<th>' + this.fields[key] + '</th>'
555
+ }
556
+ this.thead += '</tr>'
557
+ },
558
+ print() {
559
+ this.$refs.print.PrintAsFile()
560
+ this.printshow = false
561
+ },
562
+ close() {
563
+ this.printshow = false
564
+ this.all = false
565
+ },
566
+ // 对选择的列进行排序
567
+ sortModelval() {
568
+ let sortModel = []
569
+ Object.keys(this.fields).forEach((key) => {
570
+ if (this.modelval.includes(key)) {
571
+ sortModel.push(key)
572
+ }
573
+ })
574
+ this.modelval = sortModel
575
+ console.log('选择的打印的字段', this.modelval)
576
+ }
577
+ },
578
+ watch: {
579
+ 'all'(val) {
580
+ if (val) {
581
+ this.modelval = this.bodyData
582
+ } else {
583
+ this.modelval = defaultPrint.config
584
+ this.put()
585
+ }
586
+ },
587
+ 'modelval.length'() {
588
+ this.put()
589
+ },
590
+ sumsmodel:{
591
+ handler: function(val) {
592
+ this.getotherfooter();
593
+ },
594
+ deep: true
595
+ }
596
+ },
597
+ computed: {
598
+ // getstart(){
599
+ // return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
600
+ // },
601
+ getCondition() {
602
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
603
+ },
604
+ getfield() {
605
+ return exportConfig.changemeterConfig
606
+ },
607
+ changeTypes() {
608
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
609
+ },
610
+ userTypes() {
611
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
612
+ },
613
+ meterClassify() {
614
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
615
+ },
616
+ changePerson() {
617
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表人')]
618
+ },
619
+ charge_state() {
620
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
621
+ },
622
+ payments() {
623
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
624
+ }
625
+ }
626
+ }
627
+ </script>
628
+ <style scoped>
629
+ .showbottom{
630
+ height:95%
631
+ }
632
+ </style>