manage-client 3.2.52-aode → 3.2.53-aode

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/build/dev-server.js +6 -6
  2. package/client.iml +14 -14
  3. package/package.json +1 -1
  4. package/src/Util.js +383 -383
  5. package/src/components/MeterManage/MeterList.vue +336 -336
  6. package/src/components/WebReport/UserGasAll.vue +214 -214
  7. package/src/components/sale/businessquery/ChangeMeterQuery.vue +627 -627
  8. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  9. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  10. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  11. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  13. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  14. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  15. package/src/components/sale/businessquery/InspectListGas.vue +453 -453
  16. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  17. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  18. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  19. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  20. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  21. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  22. package/src/components/sale/config/exportConfig.js +1 -1
  23. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  24. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  25. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  26. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  27. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  28. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  29. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  30. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  31. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  32. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  33. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  34. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  35. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  36. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  37. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  38. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  39. package/src/components/sale/report/aode/iot/ReportQuery.vue +344 -344
  40. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  41. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +408 -408
  42. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  43. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  44. package/src/components/valueaddinfo/valueAddUserQuery.vue +392 -392
  45. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  46. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +530 -530
  48. package/src/components/webmeter/DrillData/NewUserGasAll.vue +560 -560
  49. package/src/components/webmeter/DrillData/UserGasAll.vue +515 -507
  50. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +488 -488
  51. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  52. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  53. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  54. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  55. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  56. package/src/components/webmeter/WebmeterHandplanQuery2CK.vue +663 -663
  57. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  58. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  59. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  60. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  61. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  62. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  63. package/src/components/webmeter/newwebmeter/UserGasList.vue +293 -293
  64. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  65. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  66. package/src/components/webmeter/report/ReportList.vue +211 -211
  67. package/src/main.js +56 -56
  68. package/src/saleManage.js +256 -256
@@ -1,560 +1,560 @@
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
- </tr>
263
-
264
-
265
- </template>
266
- <template partial='body'>
267
- <td>{{row.f_userinfo_code}}</td>
268
- <td style="text-align:center">{{row.f_user_type}}</td>
269
- <td style="text-align:center">{{row.f_gasproperties}}</td>
270
- <td style="text-align:center">{{row.f_has_stove}}</td>
271
- <td style="text-align:center">{{row.f_has_heater}}</td>
272
- <td style="text-align:center">
273
- <nobr>{{row.f_user_name}}</nobr>
274
- </td>
275
- <td>
276
- <nobr>{{row.f_address}}</nobr>
277
- </td>
278
- <td>
279
- <nobr>{{row.f_meter_brand}}</nobr>
280
- </td>
281
- <td>
282
- <nobr>{{row.f_hand_date}}</nobr>
283
- </td>
284
- <td style="text-align:center">
285
- <nobr>{{row.datadiff}}</nobr>
286
- </td>
287
- <!-- <td>-->
288
- <!-- <nobr>{{row.f_end_hand_date}}</nobr>-->
289
- <!-- </td>-->
290
- <td style="text-align:center">{{row.f_meternumber}}</td>
291
- <td style="text-align:center">{{row.f_balance}}</td>
292
- <td style="text-align:center">{{row.f_curbalance}}</td>
293
- <td style="text-align:center">{{row.f_last_tablebase}}</td>
294
- <td style="text-align:center">{{row.f_tablebase}}</td>
295
- <!--<td style="text-align:center">{{row.f_avg_price}}</td>-->
296
- <td style="text-align:center">{{row.f_oughtamount}}</td>
297
- <td style="text-align:center">{{row.oughtamount}}</td>
298
- <td style="text-align:center">{{row.f_oughtfee}}</td>
299
- <td style="text-align:center">{{row.oughtfee}}</td>
300
- <td style="text-align:center">{{row.f_pregas}}</td>
301
- <td style="text-align:center">{{row.f_preamount}}</td>
302
-
303
- <td style="text-align:center">{{row.f_remanent_gas}}</td>
304
- <td style="text-align:center">{{row.f_deduction_gas}}</td>
305
- <td style="text-align:center">{{row.f_organization_name}}</td>
306
- </template>
307
- <template partial='foot'>
308
- <td style="text-align: center;background-color: mistyrose"><nobr>合计:</nobr></td>
309
- <td style="text-align: center;background-color: mistyrose"><nobr>总户数:</nobr></td>
310
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.usernum}}</nobr></td>
311
- <td style="text-align: center;background-color: mistyrose"><nobr>结算户数:</nobr></td>
312
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.count}}</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.count*100/model.sums.usernum).toFixed(2)}}%</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.sums.oughtamount}}</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.sums.oughtfee}}</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.f_preamount}}</nobr></td>
321
- </template>
322
- </data-grid>
323
- </criteria-paged>
324
- </div>
325
- </div>
326
- </div>
327
- </div>
328
- <div v-show="echarts">
329
- <user-gas-echarts :condition="condition" :echarts="echarts" :enddate="endDate"
330
- :groupname="groupname[0]" :startdate="startDate"></user-gas-echarts>
331
- </div>
332
- <!--汇总表显示模板-->
333
- <!-- <div v-show="isActiveTotalForm" style="height:100%">-->
334
- <!-- <user-gas-eform :condition="condition"></user-gas-eform>-->
335
- <!-- </div>-->
336
- </template>
337
-
338
- <script>
339
- import {PagedList} from 'vue-client'
340
- import UserGasEcharts from './UserGasEcharts'
341
- import * as Util from '../../../Util'
342
- import getLodop from '../../../plugins/LodopFuncs'
343
- import plugins from '../../../plugins/GetLoginInfoService'
344
- import exportConfig from "../../sale/config/exportConfig";
345
- let readySomething = async function (self) {
346
- await self.$MagLoadParams.loadParam()
347
- self.initParams()
348
- }
349
- export default {
350
- title: '用气月报',
351
- props: ['data'],
352
- components: {UserGasEcharts},
353
- data() {
354
- return {
355
- other:[],
356
- footer:[],
357
- sumName: [],
358
- model: new PagedList('rs/sql/getNewUserGasAll', 20,{startDate: 'this.model.inputStartDate', endDate: 'this.model.inputEndDate'},{oughtfee:0,oughtamount:0,usernum:1,f_preamount:0}),
359
- getGroupNameByDate: [
360
- {label: '年份', value: 'year'},
361
- {label: '月份', value: 'month'},
362
- {label: '周', value: 'week'}
363
- ],
364
- meterbrands: [],
365
- criteriaShow: false,
366
- reportStr: null,
367
- show: false,
368
- outlets: [],
369
- operator: [],
370
- filename: '',
371
- searchshow: true,
372
- startDate: '',
373
- endDate: '',
374
- echarts: false,
375
- isActiveTotalForm: false,
376
- condition: '1=1',
377
- groupname: ['year'],
378
- getgroupname: [
379
- {label: '年份', value: 'year'},
380
- {label: '月份', value: 'month'},
381
- {label: '周', value: 'week'},
382
- {label: '日', value: 'day'}
383
- ],
384
- orgCondtionStr: '(' + this.$login.f.orgid + ')',
385
- orgid:[this.$login.f.orgid],
386
- selectfields:[],
387
- }
388
- },
389
- ready() {
390
- this.$refs.paged.$refs.cri.model.inputStartDate = Util.GetPreMonthDay(Util.toStandardDateString(),1) + '-25 00:00:00'
391
- this.$refs.paged.$refs.cri.model.inputEndDate = Util.toStandardYearMonth() + '-24 23:59:59'
392
- for(var item in exportConfig.webmeterusergasConfig){
393
- this.selectfields.push(item)
394
- }
395
- readySomething(this);
396
- },
397
- methods: {
398
- getotherfooter(){
399
- this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
400
- this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
401
- this.other=[];
402
- this.footer=[];
403
- let exportdata = this.getCondition;
404
- let otherInData=[];
405
- otherInData.push(`导出时间: ${this.$login.toStandardDateString()}`);
406
- otherInData.push(`导出人:${this.$login.f.name}`)
407
- let footerData=[],exportfield=this.getfield;
408
- footerData.push("合计");
409
- let self = this;
410
- for(var field in self.sumsmodel){
411
- footerData.push(`${self.sumsmodel[field]}`);
412
- }
413
- this.footer.push(footerData);
414
- this.other.push(otherInData);
415
- },
416
- // 查询开关
417
- hidden() {
418
- this.criteriaShow = !this.criteriaShow
419
- },
420
- SaveAsFile(str) {
421
- this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
422
- if (res === 'confirm') {
423
- let style = '<style>' +
424
- 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
425
- let strHtml = style + document.getElementById(str).innerHTML;
426
- console.log(strHtml);
427
- let LODOP = getLodop();
428
- LODOP.PRINT_INIT('');
429
- LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
430
- LODOP.SAVE_TO_FILE('用气分析.xls')
431
- }
432
- })
433
- },
434
- clearmsg() {
435
- this.$refs.paged.$refs.cri.model = {}
436
- },
437
- initParams() {
438
- // 初始化气表品牌
439
- let brandArr = []
440
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
441
- let temp = {}
442
- temp.label = item.label
443
- temp.value = item.value.f_meter_brand
444
- brandArr.push(temp)
445
- })
446
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
447
-
448
- },
449
- search(args) {
450
- this.startDate = this.$refs.paged.$refs.cri.model.inputStartDate
451
- this.endDate = this.$refs.paged.$refs.cri.model.inputStartDate
452
- if (this.endDate == '' || this.startDate == '') {
453
- return this.$showMessage("结算时间区间的开始和结束时间不能为空!")
454
- }
455
- if (!this.orgCondtionStr){
456
- return this.$showMessage("请选择分公司!")
457
- }
458
- if (this.orgCondtionStr)
459
- this.condition = this.$refs.paged.$refs.cri.condition + `and f_orgid in ${this.orgCondtionStr}`
460
- else
461
- this.condition = this.$refs.paged.$refs.cri.condition
462
- this.model.params.f_orgid = this.orgCondtionStr
463
- 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}'`
464
- args.condition = this.condition
465
- this.model.search(args.condition, args.model)
466
- },
467
- // 显示柱状图
468
- showEcharts() {
469
- this.echarts = true
470
- this.isActiveTotalForm = false
471
- },
472
- notShowTotalForm() {
473
- this.echarts = false
474
- this.isActiveTotalForm = false
475
- },
476
- // 不显示柱状图
477
- notShowEcharts() {
478
- this.echarts = false
479
- this.isActiveTotalForm = false
480
- },
481
- // 显示汇总数据表格
482
- showTotalForm() {
483
- this.echarts = false
484
- this.isActiveTotalForm = true
485
- },
486
- close() {
487
- this.show = false
488
- },
489
- getRes(obj) {
490
- this.orgCondtionStr = plugins.convertToIn(obj)
491
- },
492
- },
493
- watch: {
494
- 'data'(val) {
495
- if (val.f_files_path) {
496
- this.getFileContent(val.f_files_path)
497
- } else {
498
- this.reportStr = null
499
- }
500
- },
501
- 'model.rows' () {
502
- this.model.sums.usernum = this.model.rows.length>0 ? this.model.rows[0].num:0
503
- },
504
- sumsmodel: {
505
- handler: function(val) {
506
- this.getotherfooter();
507
- },
508
- deep: true
509
- }
510
- },
511
- computed: {
512
- getCondition() {
513
- 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}'`
514
- 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}
515
- },
516
- getfield() {
517
- return exportConfig.newwebmeterusergasConfig
518
- },
519
- getBean(){
520
- return '用气月报导出'+ Util.guid()
521
- },
522
- Gasusertype() {
523
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
524
- },
525
- valveStatus() {
526
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
527
- },
528
- Gasproperties() {
529
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
530
- }
531
- }
532
- }
533
- </script>
534
- <style>
535
- .mystyle {
536
- float: right;
537
- padding-right: 10%;
538
- }
539
-
540
- .mystyle1 {
541
- padding-top: 10px;
542
-
543
- }
544
-
545
- .mystyle2 {
546
- width: 100%;
547
- height: 35px;
548
- /*background: #00A3F0;*/
549
- padding-left: 15px;
550
- float: left;
551
- }
552
-
553
- .datapanel {
554
- color: #333;
555
- background-color: white;
556
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
557
- padding: 10px 10px 10px 10px;
558
- border-radius: 15px;
559
- }
560
- </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
+ </tr>
263
+
264
+
265
+ </template>
266
+ <template partial='body'>
267
+ <td>{{row.f_userinfo_code}}</td>
268
+ <td style="text-align:center">{{row.f_user_type}}</td>
269
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
270
+ <td style="text-align:center">{{row.f_has_stove}}</td>
271
+ <td style="text-align:center">{{row.f_has_heater}}</td>
272
+ <td style="text-align:center">
273
+ <nobr>{{row.f_user_name}}</nobr>
274
+ </td>
275
+ <td>
276
+ <nobr>{{row.f_address}}</nobr>
277
+ </td>
278
+ <td>
279
+ <nobr>{{row.f_meter_brand}}</nobr>
280
+ </td>
281
+ <td>
282
+ <nobr>{{row.f_hand_date}}</nobr>
283
+ </td>
284
+ <td style="text-align:center">
285
+ <nobr>{{row.datadiff}}</nobr>
286
+ </td>
287
+ <!-- <td>-->
288
+ <!-- <nobr>{{row.f_end_hand_date}}</nobr>-->
289
+ <!-- </td>-->
290
+ <td style="text-align:center">{{row.f_meternumber}}</td>
291
+ <td style="text-align:center">{{row.f_balance}}</td>
292
+ <td style="text-align:center">{{row.f_curbalance}}</td>
293
+ <td style="text-align:center">{{row.f_last_tablebase}}</td>
294
+ <td style="text-align:center">{{row.f_tablebase}}</td>
295
+ <!--<td style="text-align:center">{{row.f_avg_price}}</td>-->
296
+ <td style="text-align:center">{{row.f_oughtamount}}</td>
297
+ <td style="text-align:center">{{row.oughtamount}}</td>
298
+ <td style="text-align:center">{{row.f_oughtfee}}</td>
299
+ <td style="text-align:center">{{row.oughtfee}}</td>
300
+ <td style="text-align:center">{{row.f_pregas}}</td>
301
+ <td style="text-align:center">{{row.f_preamount}}</td>
302
+
303
+ <td style="text-align:center">{{row.f_remanent_gas}}</td>
304
+ <td style="text-align:center">{{row.f_deduction_gas}}</td>
305
+ <td style="text-align:center">{{row.f_organization_name}}</td>
306
+ </template>
307
+ <template partial='foot'>
308
+ <td style="text-align: center;background-color: mistyrose"><nobr>合计:</nobr></td>
309
+ <td style="text-align: center;background-color: mistyrose"><nobr>总户数:</nobr></td>
310
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.usernum}}</nobr></td>
311
+ <td style="text-align: center;background-color: mistyrose"><nobr>结算户数:</nobr></td>
312
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.count}}</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.count*100/model.sums.usernum).toFixed(2)}}%</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.sums.oughtamount}}</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.sums.oughtfee}}</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.f_preamount}}</nobr></td>
321
+ </template>
322
+ </data-grid>
323
+ </criteria-paged>
324
+ </div>
325
+ </div>
326
+ </div>
327
+ </div>
328
+ <div v-show="echarts">
329
+ <user-gas-echarts :condition="condition" :echarts="echarts" :enddate="endDate"
330
+ :groupname="groupname[0]" :startdate="startDate"></user-gas-echarts>
331
+ </div>
332
+ <!--汇总表显示模板-->
333
+ <!-- <div v-show="isActiveTotalForm" style="height:100%">-->
334
+ <!-- <user-gas-eform :condition="condition"></user-gas-eform>-->
335
+ <!-- </div>-->
336
+ </template>
337
+
338
+ <script>
339
+ import {PagedList} from 'vue-client'
340
+ import UserGasEcharts from './UserGasEcharts'
341
+ import * as Util from '../../../Util'
342
+ import getLodop from '../../../plugins/LodopFuncs'
343
+ import plugins from '../../../plugins/GetLoginInfoService'
344
+ import exportConfig from "../../sale/config/exportConfig";
345
+ let readySomething = async function (self) {
346
+ await self.$MagLoadParams.loadParam()
347
+ self.initParams()
348
+ }
349
+ export default {
350
+ title: '用气月报',
351
+ props: ['data'],
352
+ components: {UserGasEcharts},
353
+ data() {
354
+ return {
355
+ other:[],
356
+ footer:[],
357
+ sumName: [],
358
+ model: new PagedList('rs/sql/getNewUserGasAll', 20,{startDate: 'this.model.inputStartDate', endDate: 'this.model.inputEndDate'},{oughtfee:0,oughtamount:0,usernum:1,f_preamount:0}),
359
+ getGroupNameByDate: [
360
+ {label: '年份', value: 'year'},
361
+ {label: '月份', value: 'month'},
362
+ {label: '周', value: 'week'}
363
+ ],
364
+ meterbrands: [],
365
+ criteriaShow: false,
366
+ reportStr: null,
367
+ show: false,
368
+ outlets: [],
369
+ operator: [],
370
+ filename: '',
371
+ searchshow: true,
372
+ startDate: '',
373
+ endDate: '',
374
+ echarts: false,
375
+ isActiveTotalForm: false,
376
+ condition: '1=1',
377
+ groupname: ['year'],
378
+ getgroupname: [
379
+ {label: '年份', value: 'year'},
380
+ {label: '月份', value: 'month'},
381
+ {label: '周', value: 'week'},
382
+ {label: '日', value: 'day'}
383
+ ],
384
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
385
+ orgid:[this.$login.f.orgid],
386
+ selectfields:[],
387
+ }
388
+ },
389
+ ready() {
390
+ this.$refs.paged.$refs.cri.model.inputStartDate = Util.GetPreMonthDay(Util.toStandardDateString(),1) + '-25 00:00:00'
391
+ this.$refs.paged.$refs.cri.model.inputEndDate = Util.toStandardYearMonth() + '-24 23:59:59'
392
+ for(var item in exportConfig.webmeterusergasConfig){
393
+ this.selectfields.push(item)
394
+ }
395
+ readySomething(this);
396
+ },
397
+ methods: {
398
+ getotherfooter(){
399
+ this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
400
+ this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
401
+ this.other=[];
402
+ this.footer=[];
403
+ let exportdata = this.getCondition;
404
+ let otherInData=[];
405
+ otherInData.push(`导出时间: ${this.$login.toStandardDateString()}`);
406
+ otherInData.push(`导出人:${this.$login.f.name}`)
407
+ let footerData=[],exportfield=this.getfield;
408
+ footerData.push("合计");
409
+ let self = this;
410
+ for(var field in self.sumsmodel){
411
+ footerData.push(`${self.sumsmodel[field]}`);
412
+ }
413
+ this.footer.push(footerData);
414
+ this.other.push(otherInData);
415
+ },
416
+ // 查询开关
417
+ hidden() {
418
+ this.criteriaShow = !this.criteriaShow
419
+ },
420
+ SaveAsFile(str) {
421
+ this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
422
+ if (res === 'confirm') {
423
+ let style = '<style>' +
424
+ 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
425
+ let strHtml = style + document.getElementById(str).innerHTML;
426
+ console.log(strHtml);
427
+ let LODOP = getLodop();
428
+ LODOP.PRINT_INIT('');
429
+ LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
430
+ LODOP.SAVE_TO_FILE('用气分析.xls')
431
+ }
432
+ })
433
+ },
434
+ clearmsg() {
435
+ this.$refs.paged.$refs.cri.model = {}
436
+ },
437
+ initParams() {
438
+ // 初始化气表品牌
439
+ let brandArr = []
440
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
441
+ let temp = {}
442
+ temp.label = item.label
443
+ temp.value = item.value.f_meter_brand
444
+ brandArr.push(temp)
445
+ })
446
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
447
+
448
+ },
449
+ search(args) {
450
+ this.startDate = this.$refs.paged.$refs.cri.model.inputStartDate
451
+ this.endDate = this.$refs.paged.$refs.cri.model.inputStartDate
452
+ if (this.endDate == '' || this.startDate == '') {
453
+ return this.$showMessage("结算时间区间的开始和结束时间不能为空!")
454
+ }
455
+ if (!this.orgCondtionStr){
456
+ return this.$showMessage("请选择分公司!")
457
+ }
458
+ if (this.orgCondtionStr)
459
+ this.condition = this.$refs.paged.$refs.cri.condition + `and f_orgid in ${this.orgCondtionStr}`
460
+ else
461
+ this.condition = this.$refs.paged.$refs.cri.condition
462
+ this.model.params.f_orgid = this.orgCondtionStr
463
+ 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}'`
464
+ args.condition = this.condition
465
+ this.model.search(args.condition, args.model)
466
+ },
467
+ // 显示柱状图
468
+ showEcharts() {
469
+ this.echarts = true
470
+ this.isActiveTotalForm = false
471
+ },
472
+ notShowTotalForm() {
473
+ this.echarts = false
474
+ this.isActiveTotalForm = false
475
+ },
476
+ // 不显示柱状图
477
+ notShowEcharts() {
478
+ this.echarts = false
479
+ this.isActiveTotalForm = false
480
+ },
481
+ // 显示汇总数据表格
482
+ showTotalForm() {
483
+ this.echarts = false
484
+ this.isActiveTotalForm = true
485
+ },
486
+ close() {
487
+ this.show = false
488
+ },
489
+ getRes(obj) {
490
+ this.orgCondtionStr = plugins.convertToIn(obj)
491
+ },
492
+ },
493
+ watch: {
494
+ 'data'(val) {
495
+ if (val.f_files_path) {
496
+ this.getFileContent(val.f_files_path)
497
+ } else {
498
+ this.reportStr = null
499
+ }
500
+ },
501
+ 'model.rows' () {
502
+ this.model.sums.usernum = this.model.rows.length>0 ? this.model.rows[0].num:0
503
+ },
504
+ sumsmodel: {
505
+ handler: function(val) {
506
+ this.getotherfooter();
507
+ },
508
+ deep: true
509
+ }
510
+ },
511
+ computed: {
512
+ getCondition() {
513
+ 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}'`
514
+ 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}
515
+ },
516
+ getfield() {
517
+ return exportConfig.newwebmeterusergasConfig
518
+ },
519
+ getBean(){
520
+ return '用气月报导出'+ Util.guid()
521
+ },
522
+ Gasusertype() {
523
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
524
+ },
525
+ valveStatus() {
526
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
527
+ },
528
+ Gasproperties() {
529
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
530
+ }
531
+ }
532
+ }
533
+ </script>
534
+ <style>
535
+ .mystyle {
536
+ float: right;
537
+ padding-right: 10%;
538
+ }
539
+
540
+ .mystyle1 {
541
+ padding-top: 10px;
542
+
543
+ }
544
+
545
+ .mystyle2 {
546
+ width: 100%;
547
+ height: 35px;
548
+ /*background: #00A3F0;*/
549
+ padding-left: 15px;
550
+ float: left;
551
+ }
552
+
553
+ .datapanel {
554
+ color: #333;
555
+ background-color: white;
556
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
557
+ padding: 10px 10px 10px 10px;
558
+ border-radius: 15px;
559
+ }
560
+ </style>