manage-client 3.2.52-aode → 3.2.53-aode

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 (68) hide show
  1. package/build/dev-server.js +6 -6
  2. package/client.iml +14 -14
  3. package/package.json +1 -1
  4. package/src/Util.js +383 -383
  5. package/src/components/MeterManage/MeterList.vue +336 -336
  6. package/src/components/WebReport/UserGasAll.vue +214 -214
  7. package/src/components/sale/businessquery/ChangeMeterQuery.vue +627 -627
  8. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  9. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  10. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  11. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  13. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  14. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  15. package/src/components/sale/businessquery/InspectListGas.vue +453 -453
  16. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  17. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  18. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  19. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  20. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  21. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  22. package/src/components/sale/config/exportConfig.js +1 -1
  23. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  24. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  25. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  26. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  27. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  28. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  29. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  30. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  31. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  32. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  33. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  34. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  35. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  36. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  37. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  38. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  39. package/src/components/sale/report/aode/iot/ReportQuery.vue +344 -344
  40. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  41. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +408 -408
  42. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  43. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  44. package/src/components/valueaddinfo/valueAddUserQuery.vue +392 -392
  45. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  46. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +530 -530
  48. package/src/components/webmeter/DrillData/NewUserGasAll.vue +560 -560
  49. package/src/components/webmeter/DrillData/UserGasAll.vue +515 -507
  50. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +488 -488
  51. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  52. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  53. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  54. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  55. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  56. package/src/components/webmeter/WebmeterHandplanQuery2CK.vue +663 -663
  57. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  58. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  59. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  60. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  61. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  62. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  63. package/src/components/webmeter/newwebmeter/UserGasList.vue +293 -293
  64. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  65. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  66. package/src/components/webmeter/report/ReportList.vue +211 -211
  67. package/src/main.js +56 -56
  68. package/src/saleManage.js +256 -256
@@ -1,627 +1,627 @@
1
- <template>
2
- <div id="unit" class="flex-row" class="foot_tabset" @keyup.enter="search">
3
- <div class="basic-main">
4
- <div class="flex" v-if="!show">
5
-
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
11
-
12
- <div class="span" style="float:right;">
13
- <button class="button_search button_spacing" @click="search()">查询</button>
14
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
15
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
16
-
17
- <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
18
- :field="$parent.$parent.getfield"
19
- :defaultselect="$parent.$parent.selectfields"
20
- sqlurl="rs/logic/exportfile" sql-name="changeMeterQuery" template-name='换表查询导出'
21
- :choose-col="true"></export-excel>
22
-
23
- <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>
24
- </div>
25
- </div>
26
-
27
- <div class="row" v-show="$parent.$parent.criteriaShow">
28
- <div class="col-sm-2 form-group ">
29
- <label class="font_normal_body">客户编号</label>
30
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
31
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
32
- </div>
33
- <div class="col-sm-2 form-group">
34
- <label class="font_normal_body">客户名称</label>
35
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
36
- condition="f_user_name like '%{}%'" placeholder="客户名称">
37
- </div>
38
- <div class="col-sm-2 form-group">
39
- <label class="font_normal_body">开始日期</label>
40
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
41
- v-model="model.startDate"
42
- :value.sync="model.startDate"
43
- :format="'yyyy-MM-dd HH:mm:ss'"
44
- :show-reset-button="true"
45
- condition="f_operate_date >= '{}'">
46
- </datepicker>
47
- </div>
48
- <div class="col-sm-2 form-group">
49
- <label class="font_normal_body">结束日期</label>
50
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
51
- v-model="model.endDate"
52
- :value.sync="model.endDate"
53
- :format="'yyyy-MM-dd HH:mm:ss'"
54
- :show-reset-button="true"
55
- condition="f_operate_date <= '{}'">
56
- </datepicker>
57
- </div>
58
- <div class="col-sm-2 form-group">
59
- <label class="font_normal_body">客户类型</label>
60
- <v-select :value.sync="model.f_user_type"
61
- @change="$parent.$parent.userTypeChange()"
62
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
63
- condition="f_user_type = '{}'"
64
- close-on-select></v-select>
65
- </div>
66
- <div class="col-sm-2 form-group">
67
- <label class="font_normal_body">用气性质</label>
68
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
69
- :options='$parent.$parent.gasproperties' placeholder='请选择'
70
- condition="f_gasproperties = '{}'"
71
- close-on-select></v-select>
72
- </div>
73
- <div class="col-sm-2 form-group">
74
- <label class="font_normal_body">客户电话</label>
75
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
76
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
77
- </div>
78
- <div class="col-sm-2 form-group">
79
- <label class="font_normal_body">客户地址</label>
80
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
81
- condition="f_address like '%{}%'" placeholder='客户地址'>
82
- </div>
83
- <div class="col-sm-2 form-group">
84
- <label class="font_normal_body">新表品牌</label>
85
- <v-select :value.sync="model.f_new_meter_brand"
86
- v-model="model.f_new_meter_brand"
87
- :options='$parent.$parent.meterbrands' placeholder='请选择'
88
- condition="f_new_meter_brand = '{}'"
89
- close-on-select></v-select>
90
- </div>
91
- <div class="col-sm-2 form-group">
92
- <label class="font_normal_body">旧表品牌</label>
93
- <v-select :value.sync="model.f_old_meter_brand"
94
- v-model="model.f_old_meter_brand"
95
- :options='$parent.$parent.meterbrands' placeholder='请选择'
96
- condition="f_old_meter_brand = '{}'"
97
- close-on-select></v-select>
98
- </div>
99
- <div class="col-sm-2 form-group">
100
- <label class="font_normal_body">换表类型</label>
101
- <v-select :value.sync="model.f_type"
102
- v-model="model.f_type"
103
- :options='$parent.$parent.changeTypes' placeholder='请选择'
104
- condition="f_type = '{}'"
105
- close-on-select></v-select>
106
- </div>
107
- <div class="col-sm-2 form-group">
108
- <label class="font_normal_body">换&nbsp;表&nbsp;&nbsp;人</label>
109
- <v-select :value.sync="model.f_change_operator"
110
- v-model="model.f_change_operator"
111
- :options='$parent.$parent.changePerson' placeholder='请选择'
112
- condition="f_change_operator = '{}'"
113
- close-on-select></v-select>
114
- </div>
115
- <div class="col-sm-2 form-group">
116
- <label class="font_normal_body">新表卡号</label>
117
- <input type="text" style="width:60%" class="input_search" v-model="model.f_newcard_id"
118
- condition="f_newcard_id = '{}'" placeholder='新表卡号'>
119
- </div>
120
- <div class="col-sm-2 form-group">
121
- <label class="font_normal_body">旧表卡号</label>
122
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
123
- condition="f_card_id = '{}'" placeholder='旧表卡号'>
124
- </div>
125
- <div class="col-sm-2 form-group">
126
- <label class="font_normal_body">换表状态</label>
127
- <v-select :value.sync="model.f_state"
128
- v-model="model.f_state"
129
- :options='$parent.$parent.charge_state' placeholder='请选择'
130
- condition="f_state = '{}'"
131
- close-on-select></v-select>
132
- </div>
133
- <div class="col-sm-2 form-group">
134
- <label class="font_normal_body">是否煤改气</label>
135
- <v-select :value.sync="model.f_ismgq"
136
- v-model="model.f_ismgq"
137
- :options='$parent.$parent.mgqoptions' placeholder='请选择'
138
- condition="f_ismgq = '{}'"
139
- close-on-select></v-select>
140
- </div>
141
- </div>
142
- </div>
143
- </criteria>
144
-
145
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
146
- <template partial='head'>
147
- <tr>
148
- <th>
149
- <nobr>客户编号</nobr>
150
- </th>
151
- <th>
152
- <nobr>客户名称</nobr>
153
- </th>
154
- <th>
155
- <nobr>客户地址</nobr>
156
- </th>
157
- <th>
158
- <nobr>客户电话</nobr>
159
- </th>
160
- <th>
161
- <nobr>用户类型</nobr>
162
- </th>
163
- <th>
164
- <nobr>用气性质</nobr>
165
- </th>
166
- <th>
167
- <nobr>换表类型</nobr>
168
- </th>
169
- <th>
170
- <nobr>换表费</nobr>
171
- </th>
172
- <th>
173
- <nobr>旧表号</nobr>
174
- </th>
175
- <th>
176
- <nobr>新表号</nobr>
177
- </th>
178
- <th>
179
- <nobr>旧流量计表号</nobr>
180
- </th>
181
- <th>
182
- <nobr>新流量计表号</nobr>
183
- </th>
184
- <th>
185
- <nobr>旧气表品牌</nobr>
186
- </th>
187
- <th>
188
- <nobr>新气表品牌</nobr>
189
- </th>
190
- <th>
191
- <nobr>旧表初始底数</nobr>
192
- </th>
193
- <th>
194
- <nobr>旧表读数</nobr>
195
- </th>
196
- <th>
197
- <nobr>新表初始底数</nobr>
198
- </th>
199
- <th>
200
- <nobr>补气量</nobr>
201
- </th>
202
- <th>
203
- <nobr>补气金额</nobr>
204
- </th>
205
- <th>
206
- <nobr>换表时是否收费</nobr>
207
- </th>
208
- <th>
209
- <nobr>备注</nobr>
210
- </th>
211
- <th>
212
- <nobr>换表人</nobr>
213
- </th>
214
- <th>
215
- <nobr>状态</nobr>
216
- </th>
217
- <th>
218
- <nobr>换表日期</nobr>
219
- </th>
220
- <th>
221
- <nobr>是否煤改气</nobr>
222
- </th>
223
- <th>
224
- <nobr>人员</nobr>
225
- </th>
226
- <th>
227
- <nobr>部门</nobr>
228
- </th>
229
- <th>
230
- <nobr>公司</nobr>
231
- </th>
232
- <th>
233
- <nobr>操作</nobr>
234
- </th>
235
- </tr>
236
- </template>
237
- <template partial='body'>
238
- <td style="text-align: center;"><nobr>
239
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
240
- </nobr> </td>
241
- <td style="text-align: center;">
242
- <nobr>{{row.f_user_name}}</nobr>
243
- </td>
244
- <td style="text-align: center;">
245
- <nobr>{{row.f_address}}</nobr>
246
- </td>
247
- <td style="text-align: center;">
248
- <nobr>{{row.f_user_phone}}</nobr>
249
- </td>
250
- <td style="text-align: center;">
251
- <nobr>{{row.f_user_type}}</nobr>
252
- </td>
253
- <td style="text-align: center;">
254
- <nobr>{{row.f_gasproperties}}</nobr>
255
- </td>
256
- <td style="text-align: center;">
257
- <nobr>{{row.f_type}}</nobr>
258
- </td>
259
- <td style="text-align: center;">
260
- <nobr>{{row.f_changemeter_fee}}</nobr>
261
- </td>
262
- <td style="text-align: center;">
263
- <nobr>{{row.f_meternumber_old}}</nobr>
264
- </td>
265
- <td style="text-align: center;">
266
- <nobr>{{row.f_meternumber}}</nobr>
267
- </td>
268
- <td style="text-align: center;">
269
- <nobr>{{row.f_flowmeternumber_old}}</nobr>
270
- </td>
271
- <td style="text-align: center;">
272
- <nobr>{{row.f_flowmeternumber}}</nobr>
273
- </td>
274
- <td style="text-align: center;">
275
- <nobr>{{row.f_meter_brand_old}}</nobr>
276
- </td>
277
- <td style="text-align: center;">
278
- <nobr>{{row.f_meter_brand}}</nobr>
279
- </td>
280
- <td style="text-align: center;">
281
- <nobr>{{row.f_initial_base_old}}</nobr>
282
- </td>
283
- <td style="text-align: center;">
284
- <nobr>{{row.f_using_base_old}}</nobr>
285
- </td>
286
- <td style="text-align: center;">
287
- <nobr>{{row.f_initial_base_new}}</nobr>
288
- </td>
289
-
290
- <td style="text-align: center;">
291
- <nobr>{{row.f_remanent_gas}}</nobr>
292
- </td>
293
- <td style="text-align: center;">
294
- <nobr>{{row.f_remanent_money}}</nobr>
295
- </td>
296
- <td style="text-align: center;">
297
- <nobr>{{row.f_whether_pay}}</nobr>
298
- </td>
299
- <td style="text-align: center;">
300
- <nobr>{{row.f_comments}}</nobr>
301
- </td>
302
- <td style="text-align: center;">
303
- <nobr>{{row.f_change_operator}}</nobr>
304
- </td>
305
- <td style="text-align: center;">
306
- <nobr>{{row.f_state}}</nobr>
307
- </td>
308
- <td style="text-align: center;">
309
- <nobr>{{row.f_operate_date}}</nobr>
310
- </td>
311
- <td style="text-align: center;">
312
- <nobr>{{row.f_ismgq}}</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
- <button class="btn btn-link" @click.stop="$parent.$parent.$parent.getImg(row)">查看附件</button>
325
- </td>
326
- </template>
327
- <template partial='foot'></template>
328
- </data-grid>
329
-
330
- </criteria-paged>
331
-
332
- <table class="table-hover">
333
- <tr style="position: relative" class="table-bordered">
334
- <td
335
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
336
- 汇总信息
337
- </td>
338
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
339
- 换表费合计:&emsp;{{sumsmodel.f_changemeter_fee}}
340
- </td>
341
- </tr>
342
- </table>
343
- <!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
344
- <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
345
- <!--<header slot="modal-header" class="modal-header text-center">-->
346
- <!--<h4 class="modal-title">打印列选择</h4>-->
347
- <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
348
- <!--<label for="f_generations" class="font-size">全选</label>-->
349
- <!--</header>-->
350
- <!--<article slot="modal-body">-->
351
- <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
352
- <!--<div class="col-sm-3" v-for="f in fields">-->
353
- <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
354
- <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
355
- <!--</div>-->
356
- <!--</div>-->
357
- <!--</article>-->
358
- <!--<footer slot="modal-footer" class="modal-footer">-->
359
- <!--<center>-->
360
- <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
361
- <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
362
- <!--<print-table :model='model' v-show="false" v-ref:print-->
363
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
364
- <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
365
- <!--:fields="modelval" :printpage="true">-->
366
- <!--</print-table>-->
367
- <!--</center>-->
368
- <!--</footer>-->
369
- <!--</modal>-->
370
- </div>
371
- <div v-if="show">
372
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
373
- </div>
374
- </div>
375
- <modal :show.sync="showImg" width="80vw;"
376
- title="查看附件" v-ref:modal large backdrop="false">
377
- <header slot="modal-header" class="modal-header">
378
- <button type="button" class="close" @click="showImg=false"><span>&times;</span></button>
379
- </header>
380
- <article slot="modal-body" class="modal-body" style="height:80vh ;">
381
- <div v-for="file in imgs" class="col-sm-4" style="border: 2px solid #f6f6f6">
382
- <div style="height:180px;">
383
- <img style="height:100%" :src="file.f_downloadURL"/>
384
- </div>
385
- <div class="auto">
386
- <div class="showtext">上传时间:&nbsp;<span>{{file.f_uploaddate}}</span></div>
387
- <div class="showtext">操作员:&nbsp;<span>{{file.f_username}}</span></div>
388
- <div class="showtext">分类:&nbsp;<span>{{file.fusetype}}</span></div>
389
- <div class="showtext">文件说明:&nbsp;{{file.fremarks}}</div>
390
- <div class="flex-row showtext">
391
- <a target="_blank" :href="file.f_downloadURL">预览</a>
392
- </div>
393
- </div>
394
- </div>
395
- </article>
396
- <footer slot="modal-footer" style="display: none">
397
- </footer>
398
- </modal>
399
- </div>
400
- </template>
401
-
402
- <script>
403
- import {PagedList} from 'vue-client'
404
- import defaultPrint from '../config/DefaultPrint'
405
- import exportConfig from '../config/exportConfig'
406
-
407
- let readySomething = async function (self) {
408
-
409
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
410
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
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
- data() {
418
- return {
419
- selectfields:[],
420
- gasproperties:[],
421
- showImg:false,
422
- data: {},
423
- imgs:[],
424
- meterbrands: [],
425
- pricenames: [],
426
- model: new PagedList('rs/sql/changeMeterQuery', 20, {}, {f_changemeter_fee: 0}),
427
- criteriaShow: false,
428
- orgCondtionStr: '',
429
- modelval: [],
430
- printshow: false,
431
- all: false,
432
- fields: {},
433
- initres: {
434
- org:[this.$login.f.orgid],
435
- dep:[],
436
- user:[],
437
- },
438
- show:false,
439
- rowdata:{},
440
- thead: '',
441
- tfoot: '',
442
-
443
- // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
444
-
445
-
446
- //合计数据
447
- sumsmodel: {},
448
- mgqoptions: [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}]
449
- }
450
- },
451
- props:['selectorg'],
452
- ready() {
453
- if(this.selectorg != null && this.selectorg != null != ''){
454
- this.initres.org=[]
455
- this.initres.org.push(this.selectorg);
456
- }
457
-
458
- readySomething(this)
459
- for(var item in exportConfig.changemeterConfig){
460
- this.selectfields.push(item)
461
- }
462
- },
463
- methods: {
464
- getImg(row){
465
- let data= {
466
- condition: `f_blobid= '${row.f_userinfo_id}' and datediff(day,'${row.f_operate_date}',f_uploaddate)=0 and fusetype like '换表&清零' order by f_uploaddate desc `,
467
- tablename: "t_files"
468
- }
469
- this.$resetpost('rs/sql/singleTable',{data:data}).then((res)=> {
470
- this.imgs = []
471
- if(res.data.length>0){
472
- for(let j = 0; j<res.data.length;j++){
473
- let temp = res.data[j].f_downloadpath
474
- let URL = temp.substring(temp.lastIndexOf(":\\") + 2)
475
- res.data[j].f_downloadURL = "http://" + location.host + "/" + URL
476
- this.imgs.push(res.data[j])
477
- }
478
- this.showImg = true
479
- }else {
480
- }
481
- })
482
- },
483
- userTypeChange () {
484
- this.gasproperties=[]
485
- if(this.$refs.paged.$refs.cri.model !==null) {
486
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
487
-
488
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
489
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
490
- // this.gasproperties.push({label: '全部', value: ''})
491
- }
492
- else{
493
- this.gasproperties =[{label: '全部', value: ''}]
494
- }
495
- },
496
- search(){
497
- this.$refs.paged.$refs.cri.search()
498
- },
499
- cancel() {
500
- this.show = false
501
- },
502
- showmsg(obj){
503
- this.rowdata=obj
504
- this.show=true
505
- },
506
- async initParams() {
507
- // 初始化气表品牌
508
- let brandArr = []
509
- await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
510
- let temp = {}
511
- temp.label = item.label
512
- temp.value = item.value.f_meter_brand
513
- brandArr.push(temp)
514
- })
515
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
516
-
517
- },
518
- selfSearch(args) {
519
- args.condition = `${args.condition}` + this.orgCondtionStr
520
- this.model.search(args.condition, args.model)
521
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
522
- },
523
- clear() {
524
- //清空部门和人员
525
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
526
- //部门和人员变为全选
527
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
528
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
529
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
530
- this.$refs.paged.$refs.cri.model[key] = ''
531
- })
532
- },
533
- show() {
534
- this.criteriaShow = true
535
- },
536
- hidden() {
537
- this.criteriaShow = !this.criteriaShow
538
- },
539
- getRes(condition,obj) {
540
- console.log(condition,"========")
541
- this.orgCondtionStr = condition
542
- },
543
- stamp() {
544
- this.all = false
545
- //默认选择要打印的列
546
- this.modelval = defaultPrint.config
547
- this.fields = this.getfield
548
- console.log('所有打印字段', this.fields)
549
- this.printshow = true
550
- this.put()
551
- },
552
- dealmsg(val) {
553
- console.log('---------------dealmsg')
554
- val.model = this.model.model
555
- this.$dispatch('deal-msg', val)
556
- },
557
- put() {
558
- // 对Modelval进行排序
559
- this.sortModelval()
560
- this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
561
- for (let key of this.modelval) {
562
- this.thead += '<th>' + this.fields[key] + '</th>'
563
- }
564
- this.thead += '</tr>'
565
- },
566
- print() {
567
- this.$refs.print.PrintAsFile()
568
- this.printshow = false
569
- },
570
- close() {
571
- this.printshow = false
572
- this.all = false
573
- },
574
- // 对选择的列进行排序
575
- sortModelval() {
576
- let sortModel = []
577
- Object.keys(this.fields).forEach((key) => {
578
- if (this.modelval.includes(key)) {
579
- sortModel.push(key)
580
- }
581
- })
582
- this.modelval = sortModel
583
- console.log('选择的打印的字段', this.modelval)
584
- }
585
- },
586
- watch: {
587
- 'all'(val) {
588
- if (val) {
589
- this.modelval = this.bodyData
590
- } else {
591
- this.modelval = defaultPrint.config
592
- this.put()
593
- }
594
- },
595
- 'modelval.length'() {
596
- this.put()
597
- },
598
- 'orgCondtionStr'(val) {
599
- let res = val.match(/'(.*?)'/)
600
- console.log('正则提取:',res && res[1])
601
- if (res) {
602
- this.selectorg = res[1]
603
- }
604
- }
605
- },
606
- computed: {
607
- usertypes() {
608
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
609
- },
610
- getCondition() {
611
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
612
- },
613
- getfield() {
614
- return exportConfig.changemeterConfig
615
- },
616
- changeTypes() {
617
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
618
- },
619
- changePerson() {
620
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表人')]
621
- },
622
- charge_state() {
623
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
624
- }
625
- }
626
- }
627
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row" class="foot_tabset" @keyup.enter="search">
3
+ <div class="basic-main">
4
+ <div class="flex" v-if="!show">
5
+
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
11
+
12
+ <div class="span" style="float:right;">
13
+ <button class="button_search button_spacing" @click="search()">查询</button>
14
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
15
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
16
+
17
+ <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
18
+ :field="$parent.$parent.getfield"
19
+ :defaultselect="$parent.$parent.selectfields"
20
+ sqlurl="rs/logic/exportfile" sql-name="changeMeterQuery" template-name='换表查询导出'
21
+ :choose-col="true"></export-excel>
22
+
23
+ <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>
24
+ </div>
25
+ </div>
26
+
27
+ <div class="row" v-show="$parent.$parent.criteriaShow">
28
+ <div class="col-sm-2 form-group ">
29
+ <label class="font_normal_body">客户编号</label>
30
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
31
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
32
+ </div>
33
+ <div class="col-sm-2 form-group">
34
+ <label class="font_normal_body">客户名称</label>
35
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
36
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
37
+ </div>
38
+ <div class="col-sm-2 form-group">
39
+ <label class="font_normal_body">开始日期</label>
40
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
41
+ v-model="model.startDate"
42
+ :value.sync="model.startDate"
43
+ :format="'yyyy-MM-dd HH:mm:ss'"
44
+ :show-reset-button="true"
45
+ condition="f_operate_date >= '{}'">
46
+ </datepicker>
47
+ </div>
48
+ <div class="col-sm-2 form-group">
49
+ <label class="font_normal_body">结束日期</label>
50
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
51
+ v-model="model.endDate"
52
+ :value.sync="model.endDate"
53
+ :format="'yyyy-MM-dd HH:mm:ss'"
54
+ :show-reset-button="true"
55
+ condition="f_operate_date <= '{}'">
56
+ </datepicker>
57
+ </div>
58
+ <div class="col-sm-2 form-group">
59
+ <label class="font_normal_body">客户类型</label>
60
+ <v-select :value.sync="model.f_user_type"
61
+ @change="$parent.$parent.userTypeChange()"
62
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
63
+ condition="f_user_type = '{}'"
64
+ close-on-select></v-select>
65
+ </div>
66
+ <div class="col-sm-2 form-group">
67
+ <label class="font_normal_body">用气性质</label>
68
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
69
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
70
+ condition="f_gasproperties = '{}'"
71
+ close-on-select></v-select>
72
+ </div>
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">客户电话</label>
75
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
76
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
77
+ </div>
78
+ <div class="col-sm-2 form-group">
79
+ <label class="font_normal_body">客户地址</label>
80
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
81
+ condition="f_address like '%{}%'" placeholder='客户地址'>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">新表品牌</label>
85
+ <v-select :value.sync="model.f_new_meter_brand"
86
+ v-model="model.f_new_meter_brand"
87
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
88
+ condition="f_new_meter_brand = '{}'"
89
+ close-on-select></v-select>
90
+ </div>
91
+ <div class="col-sm-2 form-group">
92
+ <label class="font_normal_body">旧表品牌</label>
93
+ <v-select :value.sync="model.f_old_meter_brand"
94
+ v-model="model.f_old_meter_brand"
95
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
96
+ condition="f_old_meter_brand = '{}'"
97
+ close-on-select></v-select>
98
+ </div>
99
+ <div class="col-sm-2 form-group">
100
+ <label class="font_normal_body">换表类型</label>
101
+ <v-select :value.sync="model.f_type"
102
+ v-model="model.f_type"
103
+ :options='$parent.$parent.changeTypes' placeholder='请选择'
104
+ condition="f_type = '{}'"
105
+ close-on-select></v-select>
106
+ </div>
107
+ <div class="col-sm-2 form-group">
108
+ <label class="font_normal_body">换&nbsp;表&nbsp;&nbsp;人</label>
109
+ <v-select :value.sync="model.f_change_operator"
110
+ v-model="model.f_change_operator"
111
+ :options='$parent.$parent.changePerson' placeholder='请选择'
112
+ condition="f_change_operator = '{}'"
113
+ close-on-select></v-select>
114
+ </div>
115
+ <div class="col-sm-2 form-group">
116
+ <label class="font_normal_body">新表卡号</label>
117
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_newcard_id"
118
+ condition="f_newcard_id = '{}'" placeholder='新表卡号'>
119
+ </div>
120
+ <div class="col-sm-2 form-group">
121
+ <label class="font_normal_body">旧表卡号</label>
122
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
123
+ condition="f_card_id = '{}'" placeholder='旧表卡号'>
124
+ </div>
125
+ <div class="col-sm-2 form-group">
126
+ <label class="font_normal_body">换表状态</label>
127
+ <v-select :value.sync="model.f_state"
128
+ v-model="model.f_state"
129
+ :options='$parent.$parent.charge_state' placeholder='请选择'
130
+ condition="f_state = '{}'"
131
+ close-on-select></v-select>
132
+ </div>
133
+ <div class="col-sm-2 form-group">
134
+ <label class="font_normal_body">是否煤改气</label>
135
+ <v-select :value.sync="model.f_ismgq"
136
+ v-model="model.f_ismgq"
137
+ :options='$parent.$parent.mgqoptions' placeholder='请选择'
138
+ condition="f_ismgq = '{}'"
139
+ close-on-select></v-select>
140
+ </div>
141
+ </div>
142
+ </div>
143
+ </criteria>
144
+
145
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
146
+ <template partial='head'>
147
+ <tr>
148
+ <th>
149
+ <nobr>客户编号</nobr>
150
+ </th>
151
+ <th>
152
+ <nobr>客户名称</nobr>
153
+ </th>
154
+ <th>
155
+ <nobr>客户地址</nobr>
156
+ </th>
157
+ <th>
158
+ <nobr>客户电话</nobr>
159
+ </th>
160
+ <th>
161
+ <nobr>用户类型</nobr>
162
+ </th>
163
+ <th>
164
+ <nobr>用气性质</nobr>
165
+ </th>
166
+ <th>
167
+ <nobr>换表类型</nobr>
168
+ </th>
169
+ <th>
170
+ <nobr>换表费</nobr>
171
+ </th>
172
+ <th>
173
+ <nobr>旧表号</nobr>
174
+ </th>
175
+ <th>
176
+ <nobr>新表号</nobr>
177
+ </th>
178
+ <th>
179
+ <nobr>旧流量计表号</nobr>
180
+ </th>
181
+ <th>
182
+ <nobr>新流量计表号</nobr>
183
+ </th>
184
+ <th>
185
+ <nobr>旧气表品牌</nobr>
186
+ </th>
187
+ <th>
188
+ <nobr>新气表品牌</nobr>
189
+ </th>
190
+ <th>
191
+ <nobr>旧表初始底数</nobr>
192
+ </th>
193
+ <th>
194
+ <nobr>旧表读数</nobr>
195
+ </th>
196
+ <th>
197
+ <nobr>新表初始底数</nobr>
198
+ </th>
199
+ <th>
200
+ <nobr>补气量</nobr>
201
+ </th>
202
+ <th>
203
+ <nobr>补气金额</nobr>
204
+ </th>
205
+ <th>
206
+ <nobr>换表时是否收费</nobr>
207
+ </th>
208
+ <th>
209
+ <nobr>备注</nobr>
210
+ </th>
211
+ <th>
212
+ <nobr>换表人</nobr>
213
+ </th>
214
+ <th>
215
+ <nobr>状态</nobr>
216
+ </th>
217
+ <th>
218
+ <nobr>换表日期</nobr>
219
+ </th>
220
+ <th>
221
+ <nobr>是否煤改气</nobr>
222
+ </th>
223
+ <th>
224
+ <nobr>人员</nobr>
225
+ </th>
226
+ <th>
227
+ <nobr>部门</nobr>
228
+ </th>
229
+ <th>
230
+ <nobr>公司</nobr>
231
+ </th>
232
+ <th>
233
+ <nobr>操作</nobr>
234
+ </th>
235
+ </tr>
236
+ </template>
237
+ <template partial='body'>
238
+ <td style="text-align: center;"><nobr>
239
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
240
+ </nobr> </td>
241
+ <td style="text-align: center;">
242
+ <nobr>{{row.f_user_name}}</nobr>
243
+ </td>
244
+ <td style="text-align: center;">
245
+ <nobr>{{row.f_address}}</nobr>
246
+ </td>
247
+ <td style="text-align: center;">
248
+ <nobr>{{row.f_user_phone}}</nobr>
249
+ </td>
250
+ <td style="text-align: center;">
251
+ <nobr>{{row.f_user_type}}</nobr>
252
+ </td>
253
+ <td style="text-align: center;">
254
+ <nobr>{{row.f_gasproperties}}</nobr>
255
+ </td>
256
+ <td style="text-align: center;">
257
+ <nobr>{{row.f_type}}</nobr>
258
+ </td>
259
+ <td style="text-align: center;">
260
+ <nobr>{{row.f_changemeter_fee}}</nobr>
261
+ </td>
262
+ <td style="text-align: center;">
263
+ <nobr>{{row.f_meternumber_old}}</nobr>
264
+ </td>
265
+ <td style="text-align: center;">
266
+ <nobr>{{row.f_meternumber}}</nobr>
267
+ </td>
268
+ <td style="text-align: center;">
269
+ <nobr>{{row.f_flowmeternumber_old}}</nobr>
270
+ </td>
271
+ <td style="text-align: center;">
272
+ <nobr>{{row.f_flowmeternumber}}</nobr>
273
+ </td>
274
+ <td style="text-align: center;">
275
+ <nobr>{{row.f_meter_brand_old}}</nobr>
276
+ </td>
277
+ <td style="text-align: center;">
278
+ <nobr>{{row.f_meter_brand}}</nobr>
279
+ </td>
280
+ <td style="text-align: center;">
281
+ <nobr>{{row.f_initial_base_old}}</nobr>
282
+ </td>
283
+ <td style="text-align: center;">
284
+ <nobr>{{row.f_using_base_old}}</nobr>
285
+ </td>
286
+ <td style="text-align: center;">
287
+ <nobr>{{row.f_initial_base_new}}</nobr>
288
+ </td>
289
+
290
+ <td style="text-align: center;">
291
+ <nobr>{{row.f_remanent_gas}}</nobr>
292
+ </td>
293
+ <td style="text-align: center;">
294
+ <nobr>{{row.f_remanent_money}}</nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{row.f_whether_pay}}</nobr>
298
+ </td>
299
+ <td style="text-align: center;">
300
+ <nobr>{{row.f_comments}}</nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr>{{row.f_change_operator}}</nobr>
304
+ </td>
305
+ <td style="text-align: center;">
306
+ <nobr>{{row.f_state}}</nobr>
307
+ </td>
308
+ <td style="text-align: center;">
309
+ <nobr>{{row.f_operate_date}}</nobr>
310
+ </td>
311
+ <td style="text-align: center;">
312
+ <nobr>{{row.f_ismgq}}</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
+ <button class="btn btn-link" @click.stop="$parent.$parent.$parent.getImg(row)">查看附件</button>
325
+ </td>
326
+ </template>
327
+ <template partial='foot'></template>
328
+ </data-grid>
329
+
330
+ </criteria-paged>
331
+
332
+ <table class="table-hover">
333
+ <tr style="position: relative" class="table-bordered">
334
+ <td
335
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
336
+ 汇总信息
337
+ </td>
338
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
339
+ 换表费合计:&emsp;{{sumsmodel.f_changemeter_fee}}
340
+ </td>
341
+ </tr>
342
+ </table>
343
+ <!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
344
+ <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
345
+ <!--<header slot="modal-header" class="modal-header text-center">-->
346
+ <!--<h4 class="modal-title">打印列选择</h4>-->
347
+ <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
348
+ <!--<label for="f_generations" class="font-size">全选</label>-->
349
+ <!--</header>-->
350
+ <!--<article slot="modal-body">-->
351
+ <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
352
+ <!--<div class="col-sm-3" v-for="f in fields">-->
353
+ <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
354
+ <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
355
+ <!--</div>-->
356
+ <!--</div>-->
357
+ <!--</article>-->
358
+ <!--<footer slot="modal-footer" class="modal-footer">-->
359
+ <!--<center>-->
360
+ <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
361
+ <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
362
+ <!--<print-table :model='model' v-show="false" v-ref:print-->
363
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
364
+ <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
365
+ <!--:fields="modelval" :printpage="true">-->
366
+ <!--</print-table>-->
367
+ <!--</center>-->
368
+ <!--</footer>-->
369
+ <!--</modal>-->
370
+ </div>
371
+ <div v-if="show">
372
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
373
+ </div>
374
+ </div>
375
+ <modal :show.sync="showImg" width="80vw;"
376
+ title="查看附件" v-ref:modal large backdrop="false">
377
+ <header slot="modal-header" class="modal-header">
378
+ <button type="button" class="close" @click="showImg=false"><span>&times;</span></button>
379
+ </header>
380
+ <article slot="modal-body" class="modal-body" style="height:80vh ;">
381
+ <div v-for="file in imgs" class="col-sm-4" style="border: 2px solid #f6f6f6">
382
+ <div style="height:180px;">
383
+ <img style="height:100%" :src="file.f_downloadURL"/>
384
+ </div>
385
+ <div class="auto">
386
+ <div class="showtext">上传时间:&nbsp;<span>{{file.f_uploaddate}}</span></div>
387
+ <div class="showtext">操作员:&nbsp;<span>{{file.f_username}}</span></div>
388
+ <div class="showtext">分类:&nbsp;<span>{{file.fusetype}}</span></div>
389
+ <div class="showtext">文件说明:&nbsp;{{file.fremarks}}</div>
390
+ <div class="flex-row showtext">
391
+ <a target="_blank" :href="file.f_downloadURL">预览</a>
392
+ </div>
393
+ </div>
394
+ </div>
395
+ </article>
396
+ <footer slot="modal-footer" style="display: none">
397
+ </footer>
398
+ </modal>
399
+ </div>
400
+ </template>
401
+
402
+ <script>
403
+ import {PagedList} from 'vue-client'
404
+ import defaultPrint from '../config/DefaultPrint'
405
+ import exportConfig from '../config/exportConfig'
406
+
407
+ let readySomething = async function (self) {
408
+
409
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
410
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
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
+ data() {
418
+ return {
419
+ selectfields:[],
420
+ gasproperties:[],
421
+ showImg:false,
422
+ data: {},
423
+ imgs:[],
424
+ meterbrands: [],
425
+ pricenames: [],
426
+ model: new PagedList('rs/sql/changeMeterQuery', 20, {}, {f_changemeter_fee: 0}),
427
+ criteriaShow: false,
428
+ orgCondtionStr: '',
429
+ modelval: [],
430
+ printshow: false,
431
+ all: false,
432
+ fields: {},
433
+ initres: {
434
+ org:[this.$login.f.orgid],
435
+ dep:[],
436
+ user:[],
437
+ },
438
+ show:false,
439
+ rowdata:{},
440
+ thead: '',
441
+ tfoot: '',
442
+
443
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
444
+
445
+
446
+ //合计数据
447
+ sumsmodel: {},
448
+ mgqoptions: [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}]
449
+ }
450
+ },
451
+ props:['selectorg'],
452
+ ready() {
453
+ if(this.selectorg != null && this.selectorg != null != ''){
454
+ this.initres.org=[]
455
+ this.initres.org.push(this.selectorg);
456
+ }
457
+
458
+ readySomething(this)
459
+ for(var item in exportConfig.changemeterConfig){
460
+ this.selectfields.push(item)
461
+ }
462
+ },
463
+ methods: {
464
+ getImg(row){
465
+ let data= {
466
+ condition: `f_blobid= '${row.f_userinfo_id}' and datediff(day,'${row.f_operate_date}',f_uploaddate)=0 and fusetype like '换表&清零' order by f_uploaddate desc `,
467
+ tablename: "t_files"
468
+ }
469
+ this.$resetpost('rs/sql/singleTable',{data:data}).then((res)=> {
470
+ this.imgs = []
471
+ if(res.data.length>0){
472
+ for(let j = 0; j<res.data.length;j++){
473
+ let temp = res.data[j].f_downloadpath
474
+ let URL = temp.substring(temp.lastIndexOf(":\\") + 2)
475
+ res.data[j].f_downloadURL = "http://" + location.host + "/" + URL
476
+ this.imgs.push(res.data[j])
477
+ }
478
+ this.showImg = true
479
+ }else {
480
+ }
481
+ })
482
+ },
483
+ userTypeChange () {
484
+ this.gasproperties=[]
485
+ if(this.$refs.paged.$refs.cri.model !==null) {
486
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
487
+
488
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
489
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
490
+ // this.gasproperties.push({label: '全部', value: ''})
491
+ }
492
+ else{
493
+ this.gasproperties =[{label: '全部', value: ''}]
494
+ }
495
+ },
496
+ search(){
497
+ this.$refs.paged.$refs.cri.search()
498
+ },
499
+ cancel() {
500
+ this.show = false
501
+ },
502
+ showmsg(obj){
503
+ this.rowdata=obj
504
+ this.show=true
505
+ },
506
+ async initParams() {
507
+ // 初始化气表品牌
508
+ let brandArr = []
509
+ await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
510
+ let temp = {}
511
+ temp.label = item.label
512
+ temp.value = item.value.f_meter_brand
513
+ brandArr.push(temp)
514
+ })
515
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
516
+
517
+ },
518
+ selfSearch(args) {
519
+ args.condition = `${args.condition}` + this.orgCondtionStr
520
+ this.model.search(args.condition, args.model)
521
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
522
+ },
523
+ clear() {
524
+ //清空部门和人员
525
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
526
+ //部门和人员变为全选
527
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
528
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
529
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
530
+ this.$refs.paged.$refs.cri.model[key] = ''
531
+ })
532
+ },
533
+ show() {
534
+ this.criteriaShow = true
535
+ },
536
+ hidden() {
537
+ this.criteriaShow = !this.criteriaShow
538
+ },
539
+ getRes(condition,obj) {
540
+ console.log(condition,"========")
541
+ this.orgCondtionStr = condition
542
+ },
543
+ stamp() {
544
+ this.all = false
545
+ //默认选择要打印的列
546
+ this.modelval = defaultPrint.config
547
+ this.fields = this.getfield
548
+ console.log('所有打印字段', this.fields)
549
+ this.printshow = true
550
+ this.put()
551
+ },
552
+ dealmsg(val) {
553
+ console.log('---------------dealmsg')
554
+ val.model = this.model.model
555
+ this.$dispatch('deal-msg', val)
556
+ },
557
+ put() {
558
+ // 对Modelval进行排序
559
+ this.sortModelval()
560
+ this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
561
+ for (let key of this.modelval) {
562
+ this.thead += '<th>' + this.fields[key] + '</th>'
563
+ }
564
+ this.thead += '</tr>'
565
+ },
566
+ print() {
567
+ this.$refs.print.PrintAsFile()
568
+ this.printshow = false
569
+ },
570
+ close() {
571
+ this.printshow = false
572
+ this.all = false
573
+ },
574
+ // 对选择的列进行排序
575
+ sortModelval() {
576
+ let sortModel = []
577
+ Object.keys(this.fields).forEach((key) => {
578
+ if (this.modelval.includes(key)) {
579
+ sortModel.push(key)
580
+ }
581
+ })
582
+ this.modelval = sortModel
583
+ console.log('选择的打印的字段', this.modelval)
584
+ }
585
+ },
586
+ watch: {
587
+ 'all'(val) {
588
+ if (val) {
589
+ this.modelval = this.bodyData
590
+ } else {
591
+ this.modelval = defaultPrint.config
592
+ this.put()
593
+ }
594
+ },
595
+ 'modelval.length'() {
596
+ this.put()
597
+ },
598
+ 'orgCondtionStr'(val) {
599
+ let res = val.match(/'(.*?)'/)
600
+ console.log('正则提取:',res && res[1])
601
+ if (res) {
602
+ this.selectorg = res[1]
603
+ }
604
+ }
605
+ },
606
+ computed: {
607
+ usertypes() {
608
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
609
+ },
610
+ getCondition() {
611
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
612
+ },
613
+ getfield() {
614
+ return exportConfig.changemeterConfig
615
+ },
616
+ changeTypes() {
617
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
618
+ },
619
+ changePerson() {
620
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表人')]
621
+ },
622
+ charge_state() {
623
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
624
+ }
625
+ }
626
+ }
627
+ </script>