manage-client 3.2.51 → 3.2.56

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