manage-client 3.2.29 → 3.2.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) 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/sale/businessquery/BusinesQuery.vue +358 -348
  13. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -632
  14. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -348
  15. package/src/components/sale/businessquery/ChargeQuery.vue +1245 -1235
  16. package/src/components/sale/businessquery/DisableQuery.vue +451 -441
  17. package/src/components/sale/businessquery/EnableQuery.vue +408 -398
  18. package/src/components/sale/businessquery/FillCardQuery.vue +486 -481
  19. package/src/components/sale/businessquery/FillGasQuery.vue +511 -506
  20. package/src/components/sale/businessquery/InspectListUser.vue +433 -433
  21. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -624
  22. package/src/components/sale/businessquery/ReverseQuery.vue +402 -392
  23. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  24. package/src/components/sale/businessquery/TransferQuery.vue +418 -408
  25. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  26. package/src/components/sale/filesquery/ArchivesManage.vue +57 -57
  27. package/src/components/sale/filesquery/DeviceQuery.vue +534 -524
  28. package/src/components/sale/filesquery/FireQuery.vue +477 -477
  29. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1250
  30. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  31. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  32. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  33. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  34. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  35. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  36. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -612
  37. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  38. package/src/filiale/pingxiang/sale.js +9 -9
  39. package/src/filiale/qingtongxia/sale.js +13 -13
  40. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  41. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  42. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  43. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  44. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  45. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  46. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  47. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  48. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  49. package/src/filiale/tongchuan/ChargeQuery.vue +1270 -1270
  50. package/src/filiale/tongchuan/FillGasQuery.vue +523 -523
  51. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  52. package/src/main.js +11 -11
  53. package/src/saleManage.js +529 -529
@@ -1,632 +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
- <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>
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>