manage-client 3.2.70-aode → 3.2.71-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 +193 -193
  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/MonthByChargeType.vue +526 -526
  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 +387 -387
  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,568 +1,568 @@
1
- <template>
2
- <div class="flex-row" id="unit" v-show="(!echarts)&&(!isActiveTotalForm)">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex">
5
- <div class="flex" style="flex:1;">
6
- <criteria-paged :model="model" :pager='true' v-ref:paged>
7
- <criteria @condition-changed='$parent.search' partial='criteria' v-ref:cri>
8
- <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
9
- <div class="row" width="100%">
10
- <div class="col-sm-2 form-group">
11
- <label class="font_normal_body">组织机构</label>
12
- <res-select :initresid="$parent.$parent.orgid"
13
- style="width:60%"
14
- @res-select="$parent.$parent.getRes"
15
- restype='organization'>
16
- </res-select>
17
- </div>
18
- <div class="col-sm-2 form-group">
19
- <label class="font_normal_body">客户编号</label>
20
- <input style="width:60%" class="input_search" condition="f_userinfo_code like '{}%'" placeholder='客户编号' type="text"
21
- v-el:meternumber v-model="model.f_userinfo_code" v-next-el='f_userinfo_code'
22
- >
23
- </div>
24
- <div class="col-sm-2 form-group">
25
- <label class="font_normal_body">客户名称</label>
26
- <input style="width:60%" class="input_search" condition="f_user_name like '%{}%'" placeholder='客户名称' type="text"
27
- v-el:username v-model="model.f_username" v-next-el='userid'>
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label class="font_normal_body">表&emsp;&emsp;号</label>
31
- <input style="width:60%" class="input_search" condition="f_meternumber = '{}'" placeholder='表号' type="text"
32
- v-el:meternumber v-model="model.f_meternumber" v-next-el='meternumber'
33
- >
34
- </div>
35
-
36
- <div class="col-sm-4 form-group button-range">
37
- <button @click="search()" class="button_search button_spacing">查询</button>
38
- <button @click="$parent.$parent.clearmsg" class="button_clear button_spacing">清空</button>
39
- <!--<button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()" >显示汇总</button>-->
40
- <!-- <button class="btn btn-success" @click="$parent.$parent.showEcharts()">显示图表</button>-->
41
- <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>
42
- <!-- <export-excel-plus :data="$parent.$parent.getCondition"-->
43
- <!-- :defaultselect="$parent.$parent.selectfields"-->
44
- <!-- :field="$parent.$parent.getfield"-->
45
- <!-- :exportprogress="true" v-ref:exports-->
46
- <!-- sqlurl="rs/logic/exportfileplus" sql-name="getNewUserGasAll" :template-name='$parent.$parent.getBean'-->
47
- <!-- :choose-col="true"></export-excel-plus>-->
48
-
49
- <easy-excel-export :data="$parent.$parent.getCondition"
50
- :defaultselect="$parent.$parent.selectfields"
51
- :field="$parent.$parent.getfield"
52
- :exportprogress="true" v-ref:exports
53
- sqlurl="rs/easyexcel/export" sql-name="getNewUserGasAll" :template-name="$parent.$parent.getBean"
54
- :choose-col="true">
55
- </easy-excel-export>
56
- </div>
57
- </div>
58
- <div class="row" v-show="$parent.$parent.criteriaShow">
59
-
60
- <!--<div class="col-sm-2 form-group" >
61
- <label class="font_normal_body">用气属性</label>
62
- <v-select
63
- placeholder='用气属性'
64
- value-single="true"
65
- :value.sync="model.f_gasproperties2"
66
- v-model="model.f_gasproperties2"
67
- :options='$parent.$parent.Gasproperties2'
68
- close-on-select condition="uf.f_gasproperties2 {}">
69
- </v-select>
70
- </div>-->
71
- <div class="col-sm-2 form-group">
72
- <label class="font_normal_body">用气地址</label>
73
- <input style="width:60%" class="input_search" condition="f_address like '%{}%'" placeholder='用气地址' type="text"
74
- v-el:area v-el:xq v-model="model.f_address" v-next-el='address'
75
- >
76
- </div>
77
- <div class="col-sm-2 form-group">
78
- <label class="font_normal_body">小区名称</label>
79
- <input style="width:60%" class="input_search" placeholder='小区名称' type="text"
80
- condition="f_residential_area like '%{}%'" v-el:area v-el:xq v-model="model.f_residential_area" v-next-el='f_residential_area'
81
- >
82
- </div>
83
- <div class="col-sm-2 form-group">
84
- <label class="font_normal_body">客户类型</label>
85
- <v-select :options='$parent.$parent.Gasusertype'
86
- :value.sync="model.f_user_type"
87
- close-on-select
88
- style="width:60%"
89
- condition="f_user_type = '{}'"
90
- id="f_user_type"
91
- placeholder='客户类型'
92
- v-model="model.f_user_type"
93
- :value-single="true">
94
- </v-select>
95
- </div>
96
- <div class="col-sm-2 form-group">
97
- <label class="font_normal_body">用气性质</label>
98
- <v-select :options='$parent.$parent.Gasproperties'
99
- :value.sync="model.f_gasproperties"
100
- close-on-select
101
- condition="f_gasproperties = '{}'"
102
- id="f_gasproperties"
103
- placeholder='用气性质'
104
- style="width:60%"
105
- v-model="model.f_gasproperties"
106
- :value-single="true">
107
- </v-select>
108
- </div>
109
- <div class="col-sm-2 form-group">
110
- <label class="font_normal_body">气表品牌</label>
111
- <v-select :value.sync="model.f_meter_brand"
112
- v-model="model.f_meter_brand"
113
- :options='$parent.$parent.meterbrands' placeholder='请选择'
114
- condition="f_meter_brand = '{}'"
115
- close-on-select></v-select>
116
- </div>
117
- <!-- <div class="col-sm-2 form-group">
118
- <label class="font_normal_body">时间区间</label>
119
- <datepicker :disabled-days-of-Week="[]" :format="'yyyy-MM-dd HH:mm:ss'"
120
- :show-reset-button="reset"
121
- :value.sync="model.startDate"
122
- condition="f_hand_date >= '{}'"
123
- id="startDate"
124
- style="width:60%"
125
- placeholder="开始时间"
126
- v-model="model.startDate">
127
- </datepicker>
128
- </div>
129
- <div class="col-sm-2 form-group">
130
- <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
131
- <datepicker :disabled-days-of-Week="[]" :format="'yyyy-MM-dd HH:mm:ss'"
132
- :show-reset-button="reset"
133
- :value.sync="model.endDate"
134
- style="width:60%"
135
- condition="f_hand_date >= '{}'"
136
- id="endDate"
137
- style="width:60%"
138
- placeholder="结束日期"
139
- v-model="model.endDate">
140
- </datepicker>
141
- </div> -->
142
- <div class="col-sm-2 form-group">
143
- <label for="inputStartDate" class="font_normal_body">上报日期</label>
144
- <datepicker id="inputStartDate" placeholder="上报日期" style="width:60%"
145
- v-model="model.inputStartDate"
146
- :value.sync="model.inputStartDate"
147
- :format="'yyyy-MM-dd HH:mm:ss'"
148
- :show-reset-button="true"
149
- >
150
- </datepicker>
151
- </div>
152
- <div class="col-sm-2 form-group">
153
- <label for="inputEndDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&ensp;</label>
154
- <datepicker id="inputEndDate" placeholder="终止上报日期" style="width:60%"
155
- v-model="model.inputEndDate"
156
- :value.sync="model.inputEndDate"
157
- :format="'yyyy-MM-dd HH:mm:ss'"
158
- :show-reset-button="true"
159
- >
160
- </datepicker>
161
- </div>
162
-
163
- <!--<div class="col-sm-2 form-group">
164
- <label class="font_normal_body">用&nbsp;气&nbsp;量&nbsp;</label>
165
- <input type="text" style="width:60%" class="input_search"
166
- v-model="model.f_start_oughtamount" placeholder='起始气量'
167
- >
168
- </div>
169
- <div class="col-sm-2 form-group">
170
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
171
- <input type="text" style="width:60%" class="input_search"
172
- v-model="model.f_end_oughtamount" placeholder='结束气量'
173
- >
174
- </div>-->
175
- </div>
176
- </div>
177
- </criteria>
178
- <data-grid :model="model" id="usergasall" partial='list' class="list_area table_sy" v-ref:grid>
179
- <template partial='head'>
180
- <tr>
181
- <th style="text-align:center">
182
- <nobr>客户编号</nobr>
183
- </th>
184
- <th style="text-align:center">
185
- <nobr>客户类型</nobr>
186
- </th>
187
- <th style="text-align:center">
188
- <nobr>用气性质</nobr>
189
- </th>
190
- <th style="text-align:center">
191
- <nobr>壁挂炉</nobr>
192
- </th>
193
- <th style="text-align:center">
194
- <nobr>热水器</nobr>
195
- </th>
196
- <!--<th style="text-align:center"><nobr>用气属性</nobr></th>-->
197
- <th style="text-align:center">
198
- <nobr>客户名称</nobr>
199
- </th>
200
- <th style="text-align:center">
201
- <nobr>用气地址</nobr>
202
- </th>
203
- <th style="text-align:center">
204
- <nobr>气表品牌</nobr>
205
- </th>
206
- <th style="text-align:center">
207
- <nobr>起始时间~终止时间</nobr>
208
- </th>
209
- <th style="text-align:center">
210
- <nobr>用气天数</nobr>
211
- </th>
212
- <!-- <th style="text-align:center">-->
213
- <!-- <nobr>终止时间</nobr>-->
214
- <!-- </th>-->
215
- <th style="text-align:center">
216
- <nobr>表号</nobr>
217
- </th>
218
- <th style="text-align:center">
219
- <nobr>期初余额(元)</nobr>
220
- </th>
221
- <th style="text-align:center">
222
- <nobr>期末结余(元)</nobr>
223
- </th>
224
- <th style="text-align:center">
225
- <nobr>上期底数</nobr>
226
- </th>
227
- <th style="text-align:center">
228
- <nobr>本期底数</nobr>
229
- </th>
230
- <!-- <th style="text-align:center"><nobr>气价(元/m³)</nobr></th>-->
231
- <th style="text-align:center">
232
- <nobr>用气量(m³)</nobr>
233
- </th>
234
- <th style="text-align:center">
235
- <nobr>用气量(上传)</nobr>
236
- </th>
237
- <th style="text-align:center">
238
- <nobr>用气金额(元)</nobr>
239
- </th>
240
- <th style="text-align:center">
241
- <nobr>用气金额(上传)</nobr>
242
- </th>
243
- <th style="text-align:center">
244
- <nobr>期间购气量</nobr>
245
- </th>
246
- <th style="text-align:center">
247
- <nobr>期间购气金额(元)</nobr>
248
- </th>
249
- <!-- <th style="text-align:center">-->
250
- <!-- <nobr>充值金额(元)</nobr>-->
251
- <!-- </th>-->
252
-
253
- <th style="text-align:center">
254
- <nobr>总抵扣气量</nobr>
255
- </th>
256
- <th style="text-align:center">
257
- <nobr>剩余抵扣气量</nobr>
258
- </th>
259
- <th style="text-align:center">
260
- <nobr>换表补气金额</nobr>
261
- </th>
262
- <th style="text-align:center">
263
- <nobr>组织</nobr>
264
- </th>
265
- </tr>
266
-
267
-
268
- </template>
269
- <template partial='body'>
270
- <td>{{row.f_userinfo_code}}</td>
271
- <td style="text-align:center">{{row.f_user_type}}</td>
272
- <td style="text-align:center">{{row.f_gasproperties}}</td>
273
- <td style="text-align:center">{{row.f_has_stove}}</td>
274
- <td style="text-align:center">{{row.f_has_heater}}</td>
275
- <td style="text-align:center">
276
- <nobr>{{row.f_user_name}}</nobr>
277
- </td>
278
- <td>
279
- <nobr>{{row.f_address}}</nobr>
280
- </td>
281
- <td>
282
- <nobr>{{row.f_meter_brand}}</nobr>
283
- </td>
284
- <td>
285
- <nobr>{{row.f_hand_date}}</nobr>
286
- </td>
287
- <td style="text-align:center">
288
- <nobr>{{row.datadiff}}</nobr>
289
- </td>
290
- <!-- <td>-->
291
- <!-- <nobr>{{row.f_end_hand_date}}</nobr>-->
292
- <!-- </td>-->
293
- <td style="text-align:center">{{row.f_meternumber}}</td>
294
- <td style="text-align:center">{{row.f_balance}}</td>
295
- <td style="text-align:center">{{row.f_curbalance}}</td>
296
- <td style="text-align:center">{{row.f_last_tablebase}}</td>
297
- <td style="text-align:center">{{row.f_tablebase}}</td>
298
- <!--<td style="text-align:center">{{row.f_avg_price}}</td>-->
299
- <td style="text-align:center">{{row.f_oughtamount}}</td>
300
- <td style="text-align:center">{{row.oughtamount}}</td>
301
- <td style="text-align:center">{{row.f_oughtfee}}</td>
302
- <td style="text-align:center">{{row.oughtfee}}</td>
303
- <td style="text-align:center">{{row.f_pregas}}</td>
304
- <td style="text-align:center">{{row.f_preamount}}</td>
305
-
306
- <td style="text-align:center">{{row.f_remanent_gas}}</td>
307
- <td style="text-align:center">{{row.f_deduction_gas}}</td>
308
- <td style="text-align:center">{{row.f_remanent_money}}</td>
309
- <td style="text-align:center">{{row.f_organization_name}}</td>
310
- </template>
311
- <template partial='foot'>
312
- <td style="text-align: center;background-color: mistyrose"><nobr>合计:</nobr></td>
313
- <td style="text-align: center;background-color: mistyrose"><nobr>总户数:</nobr></td>
314
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.usernum}}</nobr></td>
315
- <td style="text-align: center;background-color: mistyrose"><nobr>结算户数:</nobr></td>
316
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.count}}</nobr></td>
317
- <td style="text-align: center;background-color: mistyrose"><nobr>上报率:</nobr></td>
318
- <td style="text-align: center;background-color: mistyrose"><nobr>{{(model.count*100/model.sums.usernum).toFixed(2)}}%</nobr></td>
319
- <td style="text-align: center;background-color: mistyrose"><nobr>总用气量:</nobr></td>
320
- <td style="text-align: center;background-color: mistyrose"><nobr> {{model.sums.oughtamount}}</nobr></td>
321
- <td style="text-align: center;background-color: mistyrose"><nobr>总用气金额</nobr></td>
322
- <td style="text-align: center;background-color: mistyrose"><nobr> {{model.sums.oughtfee}}</nobr></td>
323
- <td style="text-align: center;background-color: mistyrose"><nobr>期间充值金额</nobr></td>
324
- <td style="text-align: center;background-color: mistyrose"><nobr> {{model.sums.f_preamount}}</nobr></td>
325
- </template>
326
- </data-grid>
327
- </criteria-paged>
328
- </div>
329
- </div>
330
- </div>
331
- </div>
332
- <div v-show="echarts">
333
- <user-gas-echarts :condition="condition" :echarts="echarts" :enddate="endDate"
334
- :groupname="groupname[0]" :startdate="startDate"></user-gas-echarts>
335
- </div>
336
- <!--汇总表显示模板-->
337
- <!-- <div v-show="isActiveTotalForm" style="height:100%">-->
338
- <!-- <user-gas-eform :condition="condition"></user-gas-eform>-->
339
- <!-- </div>-->
340
- </template>
341
-
342
- <script>
343
- import {PagedList} from 'vue-client'
344
- import UserGasEcharts from './UserGasEcharts'
345
- import * as Util from '../../../Util'
346
- import getLodop from '../../../plugins/LodopFuncs'
347
- import plugins from '../../../plugins/GetLoginInfoService'
348
- import exportConfig from "../../sale/config/exportConfig";
349
- let readySomething = async function (self) {
350
- await self.$MagLoadParams.loadParam()
351
- self.initParams()
352
- }
353
- export default {
354
- title: '用气月报',
355
- props: ['data'],
356
- components: {UserGasEcharts},
357
- data() {
358
- return {
359
- other:[],
360
- footer:[],
361
- sumName: [],
362
- model: new PagedList('rs/sql/getNewUserGasAll', 20,{startDate: 'this.model.inputStartDate', endDate: 'this.model.inputEndDate'},{oughtfee:0,oughtamount:0,usernum:1,f_preamount:0}),
363
- getGroupNameByDate: [
364
- {label: '年份', value: 'year'},
365
- {label: '月份', value: 'month'},
366
- {label: '周', value: 'week'}
367
- ],
368
- meterbrands: [],
369
- criteriaShow: false,
370
- reportStr: null,
371
- show: false,
372
- outlets: [],
373
- operator: [],
374
- filename: '',
375
- searchshow: true,
376
- startDate: '',
377
- endDate: '',
378
- echarts: false,
379
- isActiveTotalForm: false,
380
- condition: '1=1',
381
- groupname: ['year'],
382
- getgroupname: [
383
- {label: '年份', value: 'year'},
384
- {label: '月份', value: 'month'},
385
- {label: '周', value: 'week'},
386
- {label: '日', value: 'day'}
387
- ],
388
- orgCondtionStr: '(' + this.$login.f.orgid + ')',
389
- orgid:[this.$login.f.orgid],
390
- selectfields:[],
391
- }
392
- },
393
- ready() {
394
- this.$refs.paged.$refs.cri.model.inputStartDate = Util.GetPreMonthDay(Util.toStandardDateString(),1) + '-25 00:00:00'
395
- this.$refs.paged.$refs.cri.model.inputEndDate = Util.toStandardYearMonth() + '-24 23:59:59'
396
- for(var item in exportConfig.webmeterusergasConfig){
397
- this.selectfields.push(item)
398
- }
399
- readySomething(this);
400
- },
401
- methods: {
402
- getotherfooter(){
403
- this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
404
- this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
405
- this.other=[];
406
- this.footer=[];
407
- let exportdata = this.getCondition;
408
- let otherInData=[];
409
- otherInData.push(`导出时间: ${this.$login.toStandardDateString()}`);
410
- otherInData.push(`导出人:${this.$login.f.name}`)
411
- let footerData=[],exportfield=this.getfield;
412
- footerData.push("合计");
413
- let self = this;
414
- for(var field in self.sumsmodel){
415
- footerData.push(`${self.sumsmodel[field]}`);
416
- }
417
- this.footer.push(footerData);
418
- this.other.push(otherInData);
419
- },
420
- // 查询开关
421
- hidden() {
422
- this.criteriaShow = !this.criteriaShow
423
- },
424
- SaveAsFile(str) {
425
- this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
426
- if (res === 'confirm') {
427
- let style = '<style>' +
428
- 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
429
- let strHtml = style + document.getElementById(str).innerHTML;
430
- console.log(strHtml);
431
- let LODOP = getLodop();
432
- LODOP.PRINT_INIT('');
433
- LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
434
- LODOP.SAVE_TO_FILE('用气分析.xls')
435
- }
436
- })
437
- },
438
- clearmsg() {
439
- this.$refs.paged.$refs.cri.model = {}
440
- },
441
- initParams() {
442
- // 初始化气表品牌
443
- let brandArr = []
444
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
445
- let temp = {}
446
- temp.label = item.label
447
- temp.value = item.value.f_meter_brand
448
- brandArr.push(temp)
449
- })
450
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
451
-
452
- },
453
- search(args) {
454
- this.startDate = this.$refs.paged.$refs.cri.model.inputStartDate
455
- this.endDate = this.$refs.paged.$refs.cri.model.inputStartDate
456
- if (this.endDate == '' || this.startDate == '') {
457
- return this.$showMessage("结算时间区间的开始和结束时间不能为空!")
458
- }
459
- if (!this.orgCondtionStr){
460
- return this.$showMessage("请选择分公司!")
461
- }
462
- if (this.orgCondtionStr)
463
- this.condition = this.$refs.paged.$refs.cri.condition + `and f_orgid in ${this.orgCondtionStr}`
464
- else
465
- this.condition = this.$refs.paged.$refs.cri.condition
466
- this.model.params.f_orgid = this.orgCondtionStr
467
- this.model.params.f_user_type = this.$refs.paged.$refs.cri.model.f_user_type && this.$refs.paged.$refs.cri.model.f_user_type!==''? ` and f_user_type = '${this.$refs.paged.$refs.cri.model.f_user_type}'` :''
468
- this.model.params.f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties && this.$refs.paged.$refs.cri.model.f_gasproperties!==''? ` and f_gasproperties = '${this.$refs.paged.$refs.cri.model.f_gasproperties}'` :''
469
- this.model.params.f_residential_area = this.$refs.paged.$refs.cri.model.f_residential_area ==null|| this.$refs.paged.$refs.cri.model.f_residential_area==''?'':` and f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}'`
470
- args.condition = this.condition
471
- this.model.search(args.condition, args.model)
472
- },
473
- // 显示柱状图
474
- showEcharts() {
475
- this.echarts = true
476
- this.isActiveTotalForm = false
477
- },
478
- notShowTotalForm() {
479
- this.echarts = false
480
- this.isActiveTotalForm = false
481
- },
482
- // 不显示柱状图
483
- notShowEcharts() {
484
- this.echarts = false
485
- this.isActiveTotalForm = false
486
- },
487
- // 显示汇总数据表格
488
- showTotalForm() {
489
- this.echarts = false
490
- this.isActiveTotalForm = true
491
- },
492
- close() {
493
- this.show = false
494
- },
495
- getRes(obj) {
496
- this.orgCondtionStr = plugins.convertToIn(obj)
497
- },
498
- },
499
- watch: {
500
- 'data'(val) {
501
- if (val.f_files_path) {
502
- this.getFileContent(val.f_files_path)
503
- } else {
504
- this.reportStr = null
505
- }
506
- },
507
- 'model.rows' () {
508
- this.model.sums.usernum = this.model.rows.length>0 ? this.model.rows[0].num:0
509
- },
510
- sumsmodel: {
511
- handler: function(val) {
512
- this.getotherfooter();
513
- },
514
- deep: true
515
- }
516
- },
517
- computed: {
518
- getCondition() {
519
- let f_residential_area = this.$refs.paged.$refs.cri.model.f_residential_area ==null|| this.$refs.paged.$refs.cri.model.f_residential_area==''?'':` and a.f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}'`
520
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type && this.$refs.paged.$refs.cri.model.f_user_type!==''? ` and f_user_type = '${this.$refs.paged.$refs.cri.model.f_user_type}'` :''
521
- let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties && this.$refs.paged.$refs.cri.model.f_gasproperties!==''? ` and f_gasproperties = '${this.$refs.paged.$refs.cri.model.f_gasproperties}'` :''
522
- return {condition: `${this.$refs.paged.$refs.cri.condition} and f_orgid in ` + this.orgCondtionStr, f_residential_area:f_residential_area,startDate: this.$refs.paged.$refs.cri.model.inputStartDate,endDate:this.$refs.paged.$refs.cri.model.inputEndDate,f_orgid:this.orgCondtionStr,f_user_type:f_user_type,f_gasproperties:f_gasproperties}
523
- },
524
- getfield() {
525
- return exportConfig.newwebmeterusergasConfig
526
- },
527
- getBean(){
528
- return '用气月报导出'+ Util.guid()
529
- },
530
- Gasusertype() {
531
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
532
- },
533
- valveStatus() {
534
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
535
- },
536
- Gasproperties() {
537
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
538
- }
539
- }
540
- }
541
- </script>
542
- <style>
543
- .mystyle {
544
- float: right;
545
- padding-right: 10%;
546
- }
547
-
548
- .mystyle1 {
549
- padding-top: 10px;
550
-
551
- }
552
-
553
- .mystyle2 {
554
- width: 100%;
555
- height: 35px;
556
- /*background: #00A3F0;*/
557
- padding-left: 15px;
558
- float: left;
559
- }
560
-
561
- .datapanel {
562
- color: #333;
563
- background-color: white;
564
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
565
- padding: 10px 10px 10px 10px;
566
- border-radius: 15px;
567
- }
568
- </style>
1
+ <template>
2
+ <div class="flex-row" id="unit" v-show="(!echarts)&&(!isActiveTotalForm)">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex">
5
+ <div class="flex" style="flex:1;">
6
+ <criteria-paged :model="model" :pager='true' v-ref:paged>
7
+ <criteria @condition-changed='$parent.search' partial='criteria' v-ref:cri>
8
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
9
+ <div class="row" width="100%">
10
+ <div class="col-sm-2 form-group">
11
+ <label class="font_normal_body">组织机构</label>
12
+ <res-select :initresid="$parent.$parent.orgid"
13
+ style="width:60%"
14
+ @res-select="$parent.$parent.getRes"
15
+ restype='organization'>
16
+ </res-select>
17
+ </div>
18
+ <div class="col-sm-2 form-group">
19
+ <label class="font_normal_body">客户编号</label>
20
+ <input style="width:60%" class="input_search" condition="f_userinfo_code like '{}%'" placeholder='客户编号' type="text"
21
+ v-el:meternumber v-model="model.f_userinfo_code" v-next-el='f_userinfo_code'
22
+ >
23
+ </div>
24
+ <div class="col-sm-2 form-group">
25
+ <label class="font_normal_body">客户名称</label>
26
+ <input style="width:60%" class="input_search" condition="f_user_name like '%{}%'" placeholder='客户名称' type="text"
27
+ v-el:username v-model="model.f_username" v-next-el='userid'>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
31
+ <input style="width:60%" class="input_search" condition="f_meternumber = '{}'" placeholder='表号' type="text"
32
+ v-el:meternumber v-model="model.f_meternumber" v-next-el='meternumber'
33
+ >
34
+ </div>
35
+
36
+ <div class="col-sm-4 form-group button-range">
37
+ <button @click="search()" class="button_search button_spacing">查询</button>
38
+ <button @click="$parent.$parent.clearmsg" class="button_clear button_spacing">清空</button>
39
+ <!--<button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()" >显示汇总</button>-->
40
+ <!-- <button class="btn btn-success" @click="$parent.$parent.showEcharts()">显示图表</button>-->
41
+ <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>
42
+ <!-- <export-excel-plus :data="$parent.$parent.getCondition"-->
43
+ <!-- :defaultselect="$parent.$parent.selectfields"-->
44
+ <!-- :field="$parent.$parent.getfield"-->
45
+ <!-- :exportprogress="true" v-ref:exports-->
46
+ <!-- sqlurl="rs/logic/exportfileplus" sql-name="getNewUserGasAll" :template-name='$parent.$parent.getBean'-->
47
+ <!-- :choose-col="true"></export-excel-plus>-->
48
+
49
+ <easy-excel-export :data="$parent.$parent.getCondition"
50
+ :defaultselect="$parent.$parent.selectfields"
51
+ :field="$parent.$parent.getfield"
52
+ :exportprogress="true" v-ref:exports
53
+ sqlurl="rs/easyexcel/export" sql-name="getNewUserGasAll" :template-name="$parent.$parent.getBean"
54
+ :choose-col="true">
55
+ </easy-excel-export>
56
+ </div>
57
+ </div>
58
+ <div class="row" v-show="$parent.$parent.criteriaShow">
59
+
60
+ <!--<div class="col-sm-2 form-group" >
61
+ <label class="font_normal_body">用气属性</label>
62
+ <v-select
63
+ placeholder='用气属性'
64
+ value-single="true"
65
+ :value.sync="model.f_gasproperties2"
66
+ v-model="model.f_gasproperties2"
67
+ :options='$parent.$parent.Gasproperties2'
68
+ close-on-select condition="uf.f_gasproperties2 {}">
69
+ </v-select>
70
+ </div>-->
71
+ <div class="col-sm-2 form-group">
72
+ <label class="font_normal_body">用气地址</label>
73
+ <input style="width:60%" class="input_search" condition="f_address like '%{}%'" placeholder='用气地址' type="text"
74
+ v-el:area v-el:xq v-model="model.f_address" v-next-el='address'
75
+ >
76
+ </div>
77
+ <div class="col-sm-2 form-group">
78
+ <label class="font_normal_body">小区名称</label>
79
+ <input style="width:60%" class="input_search" placeholder='小区名称' type="text"
80
+ condition="f_residential_area like '%{}%'" v-el:area v-el:xq v-model="model.f_residential_area" v-next-el='f_residential_area'
81
+ >
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">客户类型</label>
85
+ <v-select :options='$parent.$parent.Gasusertype'
86
+ :value.sync="model.f_user_type"
87
+ close-on-select
88
+ style="width:60%"
89
+ condition="f_user_type = '{}'"
90
+ id="f_user_type"
91
+ placeholder='客户类型'
92
+ v-model="model.f_user_type"
93
+ :value-single="true">
94
+ </v-select>
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body">用气性质</label>
98
+ <v-select :options='$parent.$parent.Gasproperties'
99
+ :value.sync="model.f_gasproperties"
100
+ close-on-select
101
+ condition="f_gasproperties = '{}'"
102
+ id="f_gasproperties"
103
+ placeholder='用气性质'
104
+ style="width:60%"
105
+ v-model="model.f_gasproperties"
106
+ :value-single="true">
107
+ </v-select>
108
+ </div>
109
+ <div class="col-sm-2 form-group">
110
+ <label class="font_normal_body">气表品牌</label>
111
+ <v-select :value.sync="model.f_meter_brand"
112
+ v-model="model.f_meter_brand"
113
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
114
+ condition="f_meter_brand = '{}'"
115
+ close-on-select></v-select>
116
+ </div>
117
+ <!-- <div class="col-sm-2 form-group">
118
+ <label class="font_normal_body">时间区间</label>
119
+ <datepicker :disabled-days-of-Week="[]" :format="'yyyy-MM-dd HH:mm:ss'"
120
+ :show-reset-button="reset"
121
+ :value.sync="model.startDate"
122
+ condition="f_hand_date >= '{}'"
123
+ id="startDate"
124
+ style="width:60%"
125
+ placeholder="开始时间"
126
+ v-model="model.startDate">
127
+ </datepicker>
128
+ </div>
129
+ <div class="col-sm-2 form-group">
130
+ <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
131
+ <datepicker :disabled-days-of-Week="[]" :format="'yyyy-MM-dd HH:mm:ss'"
132
+ :show-reset-button="reset"
133
+ :value.sync="model.endDate"
134
+ style="width:60%"
135
+ condition="f_hand_date >= '{}'"
136
+ id="endDate"
137
+ style="width:60%"
138
+ placeholder="结束日期"
139
+ v-model="model.endDate">
140
+ </datepicker>
141
+ </div> -->
142
+ <div class="col-sm-2 form-group">
143
+ <label for="inputStartDate" class="font_normal_body">上报日期</label>
144
+ <datepicker id="inputStartDate" placeholder="上报日期" style="width:60%"
145
+ v-model="model.inputStartDate"
146
+ :value.sync="model.inputStartDate"
147
+ :format="'yyyy-MM-dd HH:mm:ss'"
148
+ :show-reset-button="true"
149
+ >
150
+ </datepicker>
151
+ </div>
152
+ <div class="col-sm-2 form-group">
153
+ <label for="inputEndDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&ensp;</label>
154
+ <datepicker id="inputEndDate" placeholder="终止上报日期" style="width:60%"
155
+ v-model="model.inputEndDate"
156
+ :value.sync="model.inputEndDate"
157
+ :format="'yyyy-MM-dd HH:mm:ss'"
158
+ :show-reset-button="true"
159
+ >
160
+ </datepicker>
161
+ </div>
162
+
163
+ <!--<div class="col-sm-2 form-group">
164
+ <label class="font_normal_body">用&nbsp;气&nbsp;量&nbsp;</label>
165
+ <input type="text" style="width:60%" class="input_search"
166
+ v-model="model.f_start_oughtamount" placeholder='起始气量'
167
+ >
168
+ </div>
169
+ <div class="col-sm-2 form-group">
170
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
171
+ <input type="text" style="width:60%" class="input_search"
172
+ v-model="model.f_end_oughtamount" placeholder='结束气量'
173
+ >
174
+ </div>-->
175
+ </div>
176
+ </div>
177
+ </criteria>
178
+ <data-grid :model="model" id="usergasall" partial='list' class="list_area table_sy" v-ref:grid>
179
+ <template partial='head'>
180
+ <tr>
181
+ <th style="text-align:center">
182
+ <nobr>客户编号</nobr>
183
+ </th>
184
+ <th style="text-align:center">
185
+ <nobr>客户类型</nobr>
186
+ </th>
187
+ <th style="text-align:center">
188
+ <nobr>用气性质</nobr>
189
+ </th>
190
+ <th style="text-align:center">
191
+ <nobr>壁挂炉</nobr>
192
+ </th>
193
+ <th style="text-align:center">
194
+ <nobr>热水器</nobr>
195
+ </th>
196
+ <!--<th style="text-align:center"><nobr>用气属性</nobr></th>-->
197
+ <th style="text-align:center">
198
+ <nobr>客户名称</nobr>
199
+ </th>
200
+ <th style="text-align:center">
201
+ <nobr>用气地址</nobr>
202
+ </th>
203
+ <th style="text-align:center">
204
+ <nobr>气表品牌</nobr>
205
+ </th>
206
+ <th style="text-align:center">
207
+ <nobr>起始时间~终止时间</nobr>
208
+ </th>
209
+ <th style="text-align:center">
210
+ <nobr>用气天数</nobr>
211
+ </th>
212
+ <!-- <th style="text-align:center">-->
213
+ <!-- <nobr>终止时间</nobr>-->
214
+ <!-- </th>-->
215
+ <th style="text-align:center">
216
+ <nobr>表号</nobr>
217
+ </th>
218
+ <th style="text-align:center">
219
+ <nobr>期初余额(元)</nobr>
220
+ </th>
221
+ <th style="text-align:center">
222
+ <nobr>期末结余(元)</nobr>
223
+ </th>
224
+ <th style="text-align:center">
225
+ <nobr>上期底数</nobr>
226
+ </th>
227
+ <th style="text-align:center">
228
+ <nobr>本期底数</nobr>
229
+ </th>
230
+ <!-- <th style="text-align:center"><nobr>气价(元/m³)</nobr></th>-->
231
+ <th style="text-align:center">
232
+ <nobr>用气量(m³)</nobr>
233
+ </th>
234
+ <th style="text-align:center">
235
+ <nobr>用气量(上传)</nobr>
236
+ </th>
237
+ <th style="text-align:center">
238
+ <nobr>用气金额(元)</nobr>
239
+ </th>
240
+ <th style="text-align:center">
241
+ <nobr>用气金额(上传)</nobr>
242
+ </th>
243
+ <th style="text-align:center">
244
+ <nobr>期间购气量</nobr>
245
+ </th>
246
+ <th style="text-align:center">
247
+ <nobr>期间购气金额(元)</nobr>
248
+ </th>
249
+ <!-- <th style="text-align:center">-->
250
+ <!-- <nobr>充值金额(元)</nobr>-->
251
+ <!-- </th>-->
252
+
253
+ <th style="text-align:center">
254
+ <nobr>总抵扣气量</nobr>
255
+ </th>
256
+ <th style="text-align:center">
257
+ <nobr>剩余抵扣气量</nobr>
258
+ </th>
259
+ <th style="text-align:center">
260
+ <nobr>换表补气金额</nobr>
261
+ </th>
262
+ <th style="text-align:center">
263
+ <nobr>组织</nobr>
264
+ </th>
265
+ </tr>
266
+
267
+
268
+ </template>
269
+ <template partial='body'>
270
+ <td>{{row.f_userinfo_code}}</td>
271
+ <td style="text-align:center">{{row.f_user_type}}</td>
272
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
273
+ <td style="text-align:center">{{row.f_has_stove}}</td>
274
+ <td style="text-align:center">{{row.f_has_heater}}</td>
275
+ <td style="text-align:center">
276
+ <nobr>{{row.f_user_name}}</nobr>
277
+ </td>
278
+ <td>
279
+ <nobr>{{row.f_address}}</nobr>
280
+ </td>
281
+ <td>
282
+ <nobr>{{row.f_meter_brand}}</nobr>
283
+ </td>
284
+ <td>
285
+ <nobr>{{row.f_hand_date}}</nobr>
286
+ </td>
287
+ <td style="text-align:center">
288
+ <nobr>{{row.datadiff}}</nobr>
289
+ </td>
290
+ <!-- <td>-->
291
+ <!-- <nobr>{{row.f_end_hand_date}}</nobr>-->
292
+ <!-- </td>-->
293
+ <td style="text-align:center">{{row.f_meternumber}}</td>
294
+ <td style="text-align:center">{{row.f_balance}}</td>
295
+ <td style="text-align:center">{{row.f_curbalance}}</td>
296
+ <td style="text-align:center">{{row.f_last_tablebase}}</td>
297
+ <td style="text-align:center">{{row.f_tablebase}}</td>
298
+ <!--<td style="text-align:center">{{row.f_avg_price}}</td>-->
299
+ <td style="text-align:center">{{row.f_oughtamount}}</td>
300
+ <td style="text-align:center">{{row.oughtamount}}</td>
301
+ <td style="text-align:center">{{row.f_oughtfee}}</td>
302
+ <td style="text-align:center">{{row.oughtfee}}</td>
303
+ <td style="text-align:center">{{row.f_pregas}}</td>
304
+ <td style="text-align:center">{{row.f_preamount}}</td>
305
+
306
+ <td style="text-align:center">{{row.f_remanent_gas}}</td>
307
+ <td style="text-align:center">{{row.f_deduction_gas}}</td>
308
+ <td style="text-align:center">{{row.f_remanent_money}}</td>
309
+ <td style="text-align:center">{{row.f_organization_name}}</td>
310
+ </template>
311
+ <template partial='foot'>
312
+ <td style="text-align: center;background-color: mistyrose"><nobr>合计:</nobr></td>
313
+ <td style="text-align: center;background-color: mistyrose"><nobr>总户数:</nobr></td>
314
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.usernum}}</nobr></td>
315
+ <td style="text-align: center;background-color: mistyrose"><nobr>结算户数:</nobr></td>
316
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.count}}</nobr></td>
317
+ <td style="text-align: center;background-color: mistyrose"><nobr>上报率:</nobr></td>
318
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{(model.count*100/model.sums.usernum).toFixed(2)}}%</nobr></td>
319
+ <td style="text-align: center;background-color: mistyrose"><nobr>总用气量:</nobr></td>
320
+ <td style="text-align: center;background-color: mistyrose"><nobr> {{model.sums.oughtamount}}</nobr></td>
321
+ <td style="text-align: center;background-color: mistyrose"><nobr>总用气金额</nobr></td>
322
+ <td style="text-align: center;background-color: mistyrose"><nobr> {{model.sums.oughtfee}}</nobr></td>
323
+ <td style="text-align: center;background-color: mistyrose"><nobr>期间充值金额</nobr></td>
324
+ <td style="text-align: center;background-color: mistyrose"><nobr> {{model.sums.f_preamount}}</nobr></td>
325
+ </template>
326
+ </data-grid>
327
+ </criteria-paged>
328
+ </div>
329
+ </div>
330
+ </div>
331
+ </div>
332
+ <div v-show="echarts">
333
+ <user-gas-echarts :condition="condition" :echarts="echarts" :enddate="endDate"
334
+ :groupname="groupname[0]" :startdate="startDate"></user-gas-echarts>
335
+ </div>
336
+ <!--汇总表显示模板-->
337
+ <!-- <div v-show="isActiveTotalForm" style="height:100%">-->
338
+ <!-- <user-gas-eform :condition="condition"></user-gas-eform>-->
339
+ <!-- </div>-->
340
+ </template>
341
+
342
+ <script>
343
+ import {PagedList} from 'vue-client'
344
+ import UserGasEcharts from './UserGasEcharts'
345
+ import * as Util from '../../../Util'
346
+ import getLodop from '../../../plugins/LodopFuncs'
347
+ import plugins from '../../../plugins/GetLoginInfoService'
348
+ import exportConfig from "../../sale/config/exportConfig";
349
+ let readySomething = async function (self) {
350
+ await self.$MagLoadParams.loadParam()
351
+ self.initParams()
352
+ }
353
+ export default {
354
+ title: '用气月报',
355
+ props: ['data'],
356
+ components: {UserGasEcharts},
357
+ data() {
358
+ return {
359
+ other:[],
360
+ footer:[],
361
+ sumName: [],
362
+ model: new PagedList('rs/sql/getNewUserGasAll', 20,{startDate: 'this.model.inputStartDate', endDate: 'this.model.inputEndDate'},{oughtfee:0,oughtamount:0,usernum:1,f_preamount:0}),
363
+ getGroupNameByDate: [
364
+ {label: '年份', value: 'year'},
365
+ {label: '月份', value: 'month'},
366
+ {label: '周', value: 'week'}
367
+ ],
368
+ meterbrands: [],
369
+ criteriaShow: false,
370
+ reportStr: null,
371
+ show: false,
372
+ outlets: [],
373
+ operator: [],
374
+ filename: '',
375
+ searchshow: true,
376
+ startDate: '',
377
+ endDate: '',
378
+ echarts: false,
379
+ isActiveTotalForm: false,
380
+ condition: '1=1',
381
+ groupname: ['year'],
382
+ getgroupname: [
383
+ {label: '年份', value: 'year'},
384
+ {label: '月份', value: 'month'},
385
+ {label: '周', value: 'week'},
386
+ {label: '日', value: 'day'}
387
+ ],
388
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
389
+ orgid:[this.$login.f.orgid],
390
+ selectfields:[],
391
+ }
392
+ },
393
+ ready() {
394
+ this.$refs.paged.$refs.cri.model.inputStartDate = Util.GetPreMonthDay(Util.toStandardDateString(),1) + '-26 00:00:00'
395
+ this.$refs.paged.$refs.cri.model.inputEndDate = Util.toStandardYearMonth() + '-25 23:59:59'
396
+ for(var item in exportConfig.webmeterusergasConfig){
397
+ this.selectfields.push(item)
398
+ }
399
+ readySomething(this);
400
+ },
401
+ methods: {
402
+ getotherfooter(){
403
+ this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
404
+ this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
405
+ this.other=[];
406
+ this.footer=[];
407
+ let exportdata = this.getCondition;
408
+ let otherInData=[];
409
+ otherInData.push(`导出时间: ${this.$login.toStandardDateString()}`);
410
+ otherInData.push(`导出人:${this.$login.f.name}`)
411
+ let footerData=[],exportfield=this.getfield;
412
+ footerData.push("合计");
413
+ let self = this;
414
+ for(var field in self.sumsmodel){
415
+ footerData.push(`${self.sumsmodel[field]}`);
416
+ }
417
+ this.footer.push(footerData);
418
+ this.other.push(otherInData);
419
+ },
420
+ // 查询开关
421
+ hidden() {
422
+ this.criteriaShow = !this.criteriaShow
423
+ },
424
+ SaveAsFile(str) {
425
+ this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
426
+ if (res === 'confirm') {
427
+ let style = '<style>' +
428
+ 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
429
+ let strHtml = style + document.getElementById(str).innerHTML;
430
+ console.log(strHtml);
431
+ let LODOP = getLodop();
432
+ LODOP.PRINT_INIT('');
433
+ LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
434
+ LODOP.SAVE_TO_FILE('用气分析.xls')
435
+ }
436
+ })
437
+ },
438
+ clearmsg() {
439
+ this.$refs.paged.$refs.cri.model = {}
440
+ },
441
+ initParams() {
442
+ // 初始化气表品牌
443
+ let brandArr = []
444
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
445
+ let temp = {}
446
+ temp.label = item.label
447
+ temp.value = item.value.f_meter_brand
448
+ brandArr.push(temp)
449
+ })
450
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
451
+
452
+ },
453
+ search(args) {
454
+ this.startDate = this.$refs.paged.$refs.cri.model.inputStartDate
455
+ this.endDate = this.$refs.paged.$refs.cri.model.inputStartDate
456
+ if (this.endDate == '' || this.startDate == '') {
457
+ return this.$showMessage("结算时间区间的开始和结束时间不能为空!")
458
+ }
459
+ if (!this.orgCondtionStr){
460
+ return this.$showMessage("请选择分公司!")
461
+ }
462
+ if (this.orgCondtionStr)
463
+ this.condition = this.$refs.paged.$refs.cri.condition + `and f_orgid in ${this.orgCondtionStr}`
464
+ else
465
+ this.condition = this.$refs.paged.$refs.cri.condition
466
+ this.model.params.f_orgid = this.orgCondtionStr
467
+ this.model.params.f_user_type = this.$refs.paged.$refs.cri.model.f_user_type && this.$refs.paged.$refs.cri.model.f_user_type!==''? ` and f_user_type = '${this.$refs.paged.$refs.cri.model.f_user_type}'` :''
468
+ this.model.params.f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties && this.$refs.paged.$refs.cri.model.f_gasproperties!==''? ` and f_gasproperties = '${this.$refs.paged.$refs.cri.model.f_gasproperties}'` :''
469
+ this.model.params.f_residential_area = this.$refs.paged.$refs.cri.model.f_residential_area ==null|| this.$refs.paged.$refs.cri.model.f_residential_area==''?'':` and f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}'`
470
+ args.condition = this.condition
471
+ this.model.search(args.condition, args.model)
472
+ },
473
+ // 显示柱状图
474
+ showEcharts() {
475
+ this.echarts = true
476
+ this.isActiveTotalForm = false
477
+ },
478
+ notShowTotalForm() {
479
+ this.echarts = false
480
+ this.isActiveTotalForm = false
481
+ },
482
+ // 不显示柱状图
483
+ notShowEcharts() {
484
+ this.echarts = false
485
+ this.isActiveTotalForm = false
486
+ },
487
+ // 显示汇总数据表格
488
+ showTotalForm() {
489
+ this.echarts = false
490
+ this.isActiveTotalForm = true
491
+ },
492
+ close() {
493
+ this.show = false
494
+ },
495
+ getRes(obj) {
496
+ this.orgCondtionStr = plugins.convertToIn(obj)
497
+ },
498
+ },
499
+ watch: {
500
+ 'data'(val) {
501
+ if (val.f_files_path) {
502
+ this.getFileContent(val.f_files_path)
503
+ } else {
504
+ this.reportStr = null
505
+ }
506
+ },
507
+ 'model.rows' () {
508
+ this.model.sums.usernum = this.model.rows.length>0 ? this.model.rows[0].num:0
509
+ },
510
+ sumsmodel: {
511
+ handler: function(val) {
512
+ this.getotherfooter();
513
+ },
514
+ deep: true
515
+ }
516
+ },
517
+ computed: {
518
+ getCondition() {
519
+ let f_residential_area = this.$refs.paged.$refs.cri.model.f_residential_area ==null|| this.$refs.paged.$refs.cri.model.f_residential_area==''?'':` and a.f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}'`
520
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type && this.$refs.paged.$refs.cri.model.f_user_type!==''? ` and f_user_type = '${this.$refs.paged.$refs.cri.model.f_user_type}'` :''
521
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties && this.$refs.paged.$refs.cri.model.f_gasproperties!==''? ` and f_gasproperties = '${this.$refs.paged.$refs.cri.model.f_gasproperties}'` :''
522
+ return {condition: `${this.$refs.paged.$refs.cri.condition} and f_orgid in ` + this.orgCondtionStr, f_residential_area:f_residential_area,startDate: this.$refs.paged.$refs.cri.model.inputStartDate,endDate:this.$refs.paged.$refs.cri.model.inputEndDate,f_orgid:this.orgCondtionStr,f_user_type:f_user_type,f_gasproperties:f_gasproperties}
523
+ },
524
+ getfield() {
525
+ return exportConfig.newwebmeterusergasConfig
526
+ },
527
+ getBean(){
528
+ return '用气月报导出'+ Util.guid()
529
+ },
530
+ Gasusertype() {
531
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
532
+ },
533
+ valveStatus() {
534
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
535
+ },
536
+ Gasproperties() {
537
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
538
+ }
539
+ }
540
+ }
541
+ </script>
542
+ <style>
543
+ .mystyle {
544
+ float: right;
545
+ padding-right: 10%;
546
+ }
547
+
548
+ .mystyle1 {
549
+ padding-top: 10px;
550
+
551
+ }
552
+
553
+ .mystyle2 {
554
+ width: 100%;
555
+ height: 35px;
556
+ /*background: #00A3F0;*/
557
+ padding-left: 15px;
558
+ float: left;
559
+ }
560
+
561
+ .datapanel {
562
+ color: #333;
563
+ background-color: white;
564
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
565
+ padding: 10px 10px 10px 10px;
566
+ border-radius: 15px;
567
+ }
568
+ </style>