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