manage-client 3.2.16 → 3.2.17

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 (84) hide show
  1. package/build/dev-server.js +8 -24
  2. package/package.json +1 -1
  3. package/src/components/BasisEcharts/BarChart.vue +247 -247
  4. package/src/components/SellReport/BonSummary.vue +178 -178
  5. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  6. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  7. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  8. package/src/components/SellReport/NonResidentGas.vue +203 -203
  9. package/src/components/SellReport/OutletTable.vue +258 -258
  10. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  11. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  12. package/src/components/SellReport/SellingTable.vue +220 -220
  13. package/src/components/SellReport/UserSellingGas.vue +177 -177
  14. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  15. package/src/components/daping/GMap.vue +636 -636
  16. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  17. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  18. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  19. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  20. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  21. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  22. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  23. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  24. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  25. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  26. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  27. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  28. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  29. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  30. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  31. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  32. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  33. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  34. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  35. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  36. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  37. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  38. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  39. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  40. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  41. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  42. package/src/filiale/WEINAN/ReportDataQuery.vue +249 -249
  43. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  44. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  45. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  46. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  47. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  48. package/src/filiale/WEINAN/reportManage.js +12 -12
  49. package/src/filiale/WEINAN/sale.js +36 -36
  50. package/src/filiale/alashan/reportManage.js +10 -10
  51. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  52. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  53. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  54. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -612
  55. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  56. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  57. package/src/filiale/meihekou/config/exportConfig.js +804 -804
  58. package/src/filiale/meihekou/sale.js +26 -26
  59. package/src/filiale/pingxiang/sale.js +9 -9
  60. package/src/filiale/qingtongxia/sale.js +13 -13
  61. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  62. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  63. package/src/filiale/rongchuang/reportManage.js +11 -11
  64. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  65. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  66. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  67. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  68. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  69. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  70. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  71. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  72. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -302
  73. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  74. package/src/filiale/tongchuan/reportManage.js +5 -6
  75. package/src/main.js +4 -4
  76. package/static/wuhai.json +1610 -1610
  77. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  78. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  79. package/.gradle/5.4.1/gc.properties +0 -0
  80. package/src/.idea/misc.xml +0 -9
  81. package/src/.idea/modules.xml +0 -8
  82. package/src/.idea/src.iml +0 -9
  83. package/src/.idea/vcs.xml +0 -6
  84. package/src/.idea/workspace.xml +0 -93
@@ -1,577 +1,577 @@
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
- <input style="width:60%" class="input_search" condition="f_userinfo_code like '%{}%'" placeholder='客户编号' type="text"
13
- v-el:meternumber v-model="model.f_userinfo_code" v-next-el='f_userinfo_code'
14
- >
15
- </div>
16
- <div class="col-sm-2 form-group">
17
- <label class="font_normal_body">客户名称</label>
18
- <input style="width:60%" class="input_search" condition="f_user_name like '%{}%'" placeholder='客户名称' type="text"
19
- v-el:username v-model="model.f_username" v-next-el='userid'>
20
- </div>
21
- <div class="col-sm-2 form-group">
22
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
23
- <v-select :value.sync="model.f_residential_area"
24
- class="select_list select"
25
- v-model="model.f_residential_area"
26
- style="width: 60%"
27
- multiple
28
- condition="f_residential_area in {}"
29
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
30
- close-on-select>
31
-
32
- </v-select>
33
- </div>
34
- <div class="col-sm-2 form-group">
35
- <label class="font_normal_body">用气地址</label>
36
- <input style="width:60%" class="input_search" condition="f_address like '%{}%'" placeholder='用气地址' type="text"
37
- v-el:area v-el:xq v-model="model.f_address" v-next-el='address'
38
- >
39
- </div>
40
- <div class="col-sm-4 form-group button-range">
41
- <button @click="search()" class="button_search button_spacing">查询</button>
42
- <button @click="$parent.$parent.clearmsg" class="button_clear button_spacing">清空</button>
43
- <export-excel :data="$parent.$parent.getCondition()"
44
- :field="$parent.$parent.getfield"
45
- sqlurl="rs/logic/exportfile" sql-name="webmeter_getUserGasList" template-name='用气分析'
46
- v-ref:exports
47
- :choose-col="true"></export-excel>
48
- <button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()" >显示汇总</button>
49
- <button class="button_export button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>
50
- <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>
51
- </div>
52
- </div>
53
- <div class="row" v-show="$parent.$parent.criteriaShow">
54
-
55
- <!--<div class="col-sm-2 form-group" >
56
- <label class="font_normal_body">用气属性</label>
57
- <v-select
58
- placeholder='用气属性'
59
- value-single="true"
60
- :value.sync="model.f_gasproperties2"
61
- v-model="model.f_gasproperties2"
62
- :options='$parent.$parent.Gasproperties2'
63
- close-on-select condition="uf.f_gasproperties2 {}">
64
- </v-select>
65
- </div>-->
66
- <!-- <res-select-group :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>-->
67
- <div class="col-sm-2 form-group">
68
- <label class="font_normal_body">表&emsp;&emsp;号</label>
69
- <input style="width:60%" class="input_search" condition="f_meternumber = '{}'" placeholder='表号' type="text"
70
- v-el:meternumber v-model="model.f_meternumber" v-next-el='meternumber'
71
- >
72
- </div>
73
- <div class="col-sm-2">
74
- <label class="font_normal_body">公&emsp;&emsp;司</label>
75
- <right-tree @re-res="$parent.$parent.getorg"
76
- :initresid='$parent.$parent.orgid'></right-tree>
77
- </div>
78
- <!-- <div class="col-sm-2 form-group">-->
79
- <!-- <label class="font_normal_body">组织机构</label>-->
80
- <!-- <res-select :initresid="$parent.$parent.orgid"-->
81
- <!-- style="width:60%"-->
82
- <!-- @res-select="$parent.$parent.getRes"-->
83
- <!-- restype='organization'>-->
84
- <!-- </res-select>-->
85
- <!-- </div>-->
86
-
87
- <div class="col-sm-2 form-group">
88
- <label class="font_normal_body">客户类型</label>
89
- <v-select :options='$parent.$parent.Gasusertype'
90
- :value.sync="model.f_user_type"
91
- close-on-select
92
- style="width:60%"
93
- condition="f_user_type = '{}'"
94
- id="f_user_type"
95
- placeholder='客户类型'
96
- v-model="model.f_user_type"
97
- value-single="true">
98
- </v-select>
99
- </div>
100
- <div class="col-sm-2 form-group">
101
- <label class="font_normal_body">用气性质</label>
102
- <v-select :options='$parent.$parent.Gasproperties'
103
- :value.sync="model.f_gasproperties"
104
- close-on-select
105
- condition="f_gasproperties = '{}'"
106
- id="f_gasproperties"
107
- placeholder='用气性质'
108
- style="width:60%"
109
- v-model="model.f_gasproperties"
110
- value-single="true">
111
- </v-select>
112
- </div>
113
- <div class="col-sm-2 form-group">
114
- <label class="font_normal_body">气表品牌</label>
115
- <v-select :value.sync="model.f_meter_brand"
116
- v-model="model.f_meter_brand"
117
- :options='$parent.$parent.meterbrands' placeholder='请选择'
118
- condition="f_meter_brand = '{}'"
119
- close-on-select></v-select>
120
- </div>
121
- <div class="col-sm-2 form-group">
122
- <label class="font_normal_body">时间区间</label>
123
- <datepicker :disabled-days-of-Week="[]" :format="'yyyy-MM-dd HH:mm:ss'"
124
- :show-reset-button="reset"
125
- :value.sync="model.startDate"
126
- id="startDate"
127
- style="width:60%"
128
- placeholder="开始时间"
129
- v-model="model.startDate">
130
- </datepicker>
131
- </div>
132
- <div class="col-sm-2 form-group">
133
- <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
134
- <datepicker :disabled-days-of-Week="[]" :format="'yyyy-MM-dd HH:mm:ss'"
135
- :show-reset-button="reset"
136
- :value.sync="model.endDate"
137
- style="width:60%"
138
- id="endDate"
139
- style="width:60%"
140
- placeholder="结束日期"
141
- v-model="model.endDate">
142
- </datepicker>
143
- </div>
144
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
145
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;用气量&nbsp;</label>
146
- <div class="row">
147
- <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount1"
148
- condition="f_oughtamount >= {} " placeholder="">
149
- <label class="font_normal_body"> ≤ x ≤ </label>
150
- <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount2"
151
- condition="f_oughtamount <= {} " placeholder="">
152
- </div>
153
- </div>
154
- <!--<div class="col-sm-2 form-group">
155
- <label class="font_normal_body">用&nbsp;气&nbsp;量&nbsp;</label>
156
- <input type="text" style="width:60%" class="input_search"
157
- v-model="model.f_start_oughtamount" placeholder='起始气量'
158
- >
159
- </div>
160
- <div class="col-sm-2 form-group">
161
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
162
- <input type="text" style="width:60%" class="input_search"
163
- v-model="model.f_end_oughtamount" placeholder='结束气量'
164
- >
165
- </div>-->
166
- <div class="col-sm-2 form-group">
167
- <label class="font_normal_body">壁&ensp;挂&ensp;炉</label>
168
- <v-select id="f_meter_brand"
169
- v-model="model.f_usetype"
170
- placeholder=''
171
- :value.sync="model.f_usetype"
172
- :options='$parent.$parent.usetypes'
173
- condition="f_usetype {}" :search="false"
174
- close-on-select style="width: 60%">
175
- </v-select>
176
- </div>
177
- <div class="col-sm-2 form-group">
178
- <label class="font_normal_body">房屋类型</label>
179
- <v-select :value.sync="model.f_house_type" v-model="model.f_house_type"
180
- :options='$parent.$parent.houseTypes' placeholder='请选择'
181
- close-on-select
182
- condition="f_house_type = '{}'"></v-select>
183
- </div>
184
- <div class="col-sm-2 form-group">
185
- <label class="font_normal_body">安装位置</label>
186
- <v-select :value.sync="model.f_position" v-model="model.f_position"
187
- :options='$parent.$parent.positions' placeholder='请选择'
188
- condition="f_position = '{}'"
189
- close-on-select></v-select>
190
- </div>
191
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
192
- <label class="font_normal_body">期末结余</label>
193
- <div class="row">
194
- <input type="text" style="width:27%" class="input_search" v-model="model.f_curbalance1"
195
- condition="f_curbalance >= {} " placeholder="">
196
- <label class="font_normal_body"> ≤ x ≤ </label>
197
- <input type="text" style="width:27%" class="input_search" v-model="model.f_curbalance2"
198
- condition="f_curbalance <= {} " placeholder="">
199
- </div>
200
- </div>
201
- </div>
202
- </div>
203
- </criteria>
204
- <data-grid :model="model" id="usergasall" partial='list' class="list_area table_sy" v-ref:grid>
205
- <template partial='head'>
206
- <tr>
207
- <th style="text-align:center">
208
- <nobr>客户编号</nobr>
209
- </th>
210
- <th style="text-align:center">
211
- <nobr>表号</nobr>
212
- </th>
213
- <th style="text-align:center">
214
- <nobr>用气性质</nobr>
215
- </th>
216
- <th style="text-align:center">
217
- <nobr>用户电话</nobr>
218
- </th>
219
- <!--<th style="text-align:center"><nobr>用气属性</nobr></th>-->
220
- <th style="text-align:center">
221
- <nobr>客户名称</nobr>
222
- </th>
223
- <th style="text-align:center">
224
- <nobr>用气单价</nobr>
225
- </th>
226
- <th style="text-align:center">
227
- <nobr>累购气量</nobr>
228
- </th>
229
- <th style="text-align:center">
230
- <nobr>累购金额</nobr>
231
- </th>
232
- <th style="text-align:center">
233
- <nobr>账号结余</nobr>
234
- </th>
235
- <th style="text-align:center">
236
- <nobr>气表名称</nobr>
237
- </th>
238
- <th style="text-align:center">
239
- <nobr>期初余额(元)</nobr>
240
- </th>
241
- <th style="text-align:center">
242
- <nobr>上期底数</nobr>
243
- </th>
244
- <th style="text-align:center">
245
- <nobr>本期底数</nobr>
246
- </th>
247
- <!-- <th style="text-align:center"><nobr>气价(元/m³)</nobr></th>-->
248
- <th style="text-align:center">
249
- <nobr>用气量(m³)</nobr>
250
- </th>
251
- <th style="text-align:center">
252
- <nobr>用气金额(元)</nobr>
253
- </th>
254
- <!-- <th style="text-align:center">-->
255
- <!-- <nobr>充值金额(元)</nobr>-->
256
- <!-- </th>-->
257
- <th style="text-align:center">
258
- <nobr>期末结余(元)</nobr>
259
- </th>
260
- </tr>
261
-
262
-
263
- </template>
264
- <template partial='body'>
265
- <td>{{row.f_userinfo_code}}</td>
266
- <td style="text-align:center">{{row.f_meternumber}}</td>
267
- <td style="text-align:center">{{row.f_gasproperties}}</td>
268
- <td style="text-align:center">{{row.f_user_phone}}</td>
269
- <!--<td style="text-align:center">{{row.f_gasproperties2}}</td>-->
270
- <td>
271
- <nobr>{{row.f_user_name}}</nobr>
272
- </td>
273
- <td style="text-align:center">
274
- <nobr>{{row.f_price}}</nobr>
275
- </td>
276
- <td style="text-align:center">{{row.f_total_gas}}</td>
277
- <td style="text-align:center">{{row.f_total_fee}}</td>
278
- <td style="text-align:center">{{row.f_balance_amount}}</td>
279
- <td style="text-align:center">{{row.f_meter_brand}}</td>
280
- <td style="text-align:center">{{row.f_balance}}</td>
281
- <td style="text-align:center">{{row.f_last_tablebase}}</td>
282
- <td style="text-align:center">{{row.f_tablebase}}</td>
283
- <!--<td style="text-align:center">{{row.f_avg_price}}</td>-->
284
- <td style="text-align:center">{{row.f_oughtamount}}</td>
285
- <td style="text-align:center">{{row.f_oughtfee}}</td>
286
- <!-- <td style="text-align:center">{{row.f_collection}}</td>-->
287
- <td style="text-align:center">{{row.f_curbalance}}</td>
288
- </template>
289
- </data-grid>
290
- </criteria-paged>
291
- <table class="table-hover">
292
- <tr style="position: relative" class="table-bordered">
293
- <td
294
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
295
- 汇总信息
296
- </td>
297
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
298
- 总累购气量:&emsp;{{model.sums.f_total_gas}}
299
- </td>
300
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
301
- 总累购金额:&emsp;{{model.sums.f_total_fee}}
302
- </td>
303
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
304
- 总账户结余:&emsp;{{model.sums.f_balance_amount}}
305
- </td>
306
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
307
- 本期用气量合计:&emsp;{{model.sums.f_oughtamount}}
308
- </td>
309
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
310
- 本期用气金额合计:&emsp;{{model.sums.f_oughtfee}}
311
- </td>
312
- </tr>
313
- </table>
314
- </div>
315
- </div>
316
- </div>
317
- </div>
318
- <div class="flex-row" v-if="echarts">
319
- <user-gas-echarts :condition="condition" :echarts="echarts" :enddate="endDate"
320
- :groupname="groupname[0]" :startdate="startDate"></user-gas-echarts>
321
- </div>
322
- <!--汇总表显示模板-->
323
- <div class="flex-row" v-if="isActiveTotalForm">
324
- <user-gas-eform :condition="condition" :enddate="endDate" :startdate="startDate"></user-gas-eform>
325
- </div>
326
- </template>
327
-
328
- <script>
329
- import {HttpResetClass, PagedList} from 'vue-client'
330
- //import UserGasEcharts from './UserGasEcharts'
331
- import * as Util from '../../Util'
332
- import getLodop from '../../plugins/LodopFuncs'
333
- import plugins from '../../plugins/GetLoginInfoService'
334
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
335
- let readyGen = async function (self) {
336
- await self.$MagLoadParams.loadParam()
337
- self.initParams()
338
- self.getaddress()
339
- }
340
-
341
- export default {
342
- title: '用气分析',
343
- props: ['data'],
344
- data() {
345
- return {
346
- model: new PagedList('rs/sql/webmeter_getUserGasList', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
347
- f_oughtamount: 0,
348
- f_oughtfee: 0,
349
- f_total_gas: 0,
350
- f_total_fee: 0,
351
- f_balance_amount: 0
352
- }),
353
- getGroupNameByDate: [
354
- {label: '年份', value: 'year'},
355
- {label: '月份', value: 'month'},
356
- {label: '周', value: 'week'}
357
- ],
358
- meterbrands: [],
359
- residentialArea: [],
360
- criteriaShow: false,
361
- reportStr: null,
362
- show: false,
363
- initres: {
364
- org:[this.$login.f.orgid],
365
- dep:[],
366
- user:[]
367
- },
368
- outlets: [],
369
- operator: [],
370
- filename: '',
371
- searchshow: true,
372
- startDate: '',
373
- endDate: '',
374
- echarts: false,
375
- isActiveTotalForm: false,
376
- condition: '1=1',
377
- getfield: {},
378
- config: {
379
- excelHeaders: {
380
- 'f_userinfo_code':'客户编号',
381
- 'f_user_type':'客户类型',
382
- 'f_gasproperties': '用气性质',
383
- 'f_user_name': '客户名称',
384
- 'f_user_phone':'客户电话',
385
- 'f_residential_area': '小区',
386
- 'f_price':'用气单价',
387
- 'f_address':'用气地址',
388
- 'f_meternumber': '表号',
389
- 'f_meter_brand':'气表品牌',
390
- 'f_balance':'期初余额(元)',
391
- 'f_last_tablebase': '上期底数',
392
- 'f_tablebase':'本期底数',
393
- 'f_oughtamount':'用气量(m³)',
394
- 'f_oughtfee':'用气金额(元)',
395
- 'f_curbalance':'期末结余(元)'
396
-
397
- }
398
- },
399
- groupname: ['day'],
400
- getgroupname: [
401
- {label: '年份', value: 'year'},
402
- {label: '月份', value: 'month'},
403
- {label: '周', value: 'week'},
404
- {label: '日', value: 'day'}
405
- ],
406
- // orgCondtionStr: ' and h.f_orgid in (' + this.$login.f.orgid + ')',
407
- orgCondtionStr: '(' + this.$login.f.orgid + ')',
408
- orgid:[this.$login.f.orgid],
409
- usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}]
410
- }
411
- },
412
- ready() {
413
- readyGen(this)
414
- console.log('444444444', Util.addDate(new Date(),-6).substring(0,10))
415
- this.$refs.paged.$refs.cri.model.startDate = Util.addDate(new Date(),-4).substring(0,10) + ' 00:00:00'
416
- this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
417
- this.$refs.paged.$refs.cri.search()
418
- this.getfield = this.config.excelHeaders
419
- },
420
- methods: {
421
- // 查询开关
422
- hidden() {
423
- this.criteriaShow = !this.criteriaShow
424
- },
425
- async getaddress(){
426
- let HttpReset = new HttpResetClass()
427
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
428
- data: {
429
- condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
430
- }
431
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
432
- console.log('小区',data)
433
- let house = [{label: '全部', value: ''}]
434
- for (let row of data.data){
435
- house.push({label: row.f_residential_area, value: row.f_residential_area})
436
- }
437
- this.residentialArea = house
438
- },
439
- SaveAsFile(str) {
440
- this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
441
- if (res === 'confirm') {
442
- let style = '<style>' +
443
- 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
444
- let strHtml = style + document.getElementById(str).innerHTML;
445
- console.log(strHtml);
446
- let LODOP = getLodop();
447
- LODOP.PRINT_INIT('');
448
- LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
449
- LODOP.SAVE_TO_FILE('用气分析.xls')
450
- }
451
- })
452
- },
453
- clearmsg() {
454
- this.$refs.paged.$refs.cri.model = {}
455
- },
456
- initParams() {
457
- // 初始化气表品牌
458
- let brandArr = []
459
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
460
- let temp = {}
461
- temp.label = item.label
462
- temp.value = item.value.f_meter_brand
463
- brandArr.push(temp)
464
- })
465
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
466
-
467
- },
468
- search(args) {
469
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
470
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
471
- if (this.endDate == '' || this.startDate == '') {
472
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
473
- }
474
- // this.condition = this.$refs.paged.$refs.cri.condition + ` ${this.orgCondtionStr}`
475
- if (this.orgCondtionStr)
476
- this.condition = this.$refs.paged.$refs.cri.condition + ` and f_orgid in ${this.orgCondtionStr}`
477
- else
478
- this.condition = this.$refs.paged.$refs.cri.condition + ` and f_orgid = ${this.$login.f.orgid}`
479
- args.condition = this.condition
480
- this.model.search(args.condition, args.model)
481
- },
482
- // 显示柱状图
483
- showEcharts() {
484
- this.echarts = true
485
- this.isActiveTotalForm = false
486
- },
487
- notShowTotalForm() {
488
- this.echarts = false
489
- this.isActiveTotalForm = false
490
- },
491
- // 不显示柱状图
492
- notShowEcharts() {
493
- this.echarts = false
494
- this.isActiveTotalForm = false
495
- },
496
- // 显示汇总数据表格
497
- showTotalForm() {
498
- this.echarts = false
499
- this.isActiveTotalForm = true
500
- },
501
- close() {
502
- this.show = false
503
- },
504
- getRes(obj) {
505
- this.orgCondtionStr = plugins.convertToIn(obj)
506
- },
507
- getorg(obj) {
508
- this.orgCondtionStr = plugin.convertToIn(obj.resids)?plugin.convertToIn(obj.resids):'(' + this.$login.f.orgid + ')'
509
- },
510
- getCondition () {
511
- return {
512
- condition: this.condition,
513
- startDate: this.startDate,
514
- endDate: this.endDate
515
- }
516
- }
517
- // getRes(condition,obj) {
518
- // this.orgCondtionStr = condition
519
- // this.orgname = obj.orgnames[0]
520
- // this.depname = obj.depnames[0]
521
- // }
522
- },
523
- watch: {
524
- 'data'(val) {
525
- if (val.f_files_path) {
526
- this.getFileContent(val.f_files_path)
527
- } else {
528
- this.reportStr = null
529
- }
530
- }
531
- },
532
- computed: {
533
- houseTypes() {
534
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('房屋类型')]
535
- },
536
- positions() {
537
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('安装位置')]
538
- },
539
- Gasusertype() {
540
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
541
- },
542
- valveStatus() {
543
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
544
- },
545
- Gasproperties() {
546
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
547
- }
548
- }
549
- }
550
- </script>
551
- <style>
552
- .mystyle {
553
- float: right;
554
- padding-right: 10%;
555
- }
556
-
557
- .mystyle1 {
558
- padding-top: 10px;
559
-
560
- }
561
-
562
- .mystyle2 {
563
- width: 100%;
564
- height: 35px;
565
- /*background: #00A3F0;*/
566
- padding-left: 15px;
567
- float: left;
568
- }
569
-
570
- .datapanel {
571
- color: #333;
572
- background-color: white;
573
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
574
- padding: 10px 10px 10px 10px;
575
- border-radius: 15px;
576
- }
577
- </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
+ <input style="width:60%" class="input_search" condition="f_userinfo_code like '%{}%'" placeholder='客户编号' type="text"
13
+ v-el:meternumber v-model="model.f_userinfo_code" v-next-el='f_userinfo_code'
14
+ >
15
+ </div>
16
+ <div class="col-sm-2 form-group">
17
+ <label class="font_normal_body">客户名称</label>
18
+ <input style="width:60%" class="input_search" condition="f_user_name like '%{}%'" placeholder='客户名称' type="text"
19
+ v-el:username v-model="model.f_username" v-next-el='userid'>
20
+ </div>
21
+ <div class="col-sm-2 form-group">
22
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
23
+ <v-select :value.sync="model.f_residential_area"
24
+ class="select_list select"
25
+ v-model="model.f_residential_area"
26
+ style="width: 60%"
27
+ multiple
28
+ condition="f_residential_area in {}"
29
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
30
+ close-on-select>
31
+
32
+ </v-select>
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body">用气地址</label>
36
+ <input style="width:60%" class="input_search" condition="f_address like '%{}%'" placeholder='用气地址' type="text"
37
+ v-el:area v-el:xq v-model="model.f_address" v-next-el='address'
38
+ >
39
+ </div>
40
+ <div class="col-sm-4 form-group button-range">
41
+ <button @click="search()" class="button_search button_spacing">查询</button>
42
+ <button @click="$parent.$parent.clearmsg" class="button_clear button_spacing">清空</button>
43
+ <export-excel :data="$parent.$parent.getCondition()"
44
+ :field="$parent.$parent.getfield"
45
+ sqlurl="rs/logic/exportfile" sql-name="webmeter_getUserGasList" template-name='用气分析'
46
+ v-ref:exports
47
+ :choose-col="true"></export-excel>
48
+ <button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()" >显示汇总</button>
49
+ <button class="button_export button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>
50
+ <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>
51
+ </div>
52
+ </div>
53
+ <div class="row" v-show="$parent.$parent.criteriaShow">
54
+
55
+ <!--<div class="col-sm-2 form-group" >
56
+ <label class="font_normal_body">用气属性</label>
57
+ <v-select
58
+ placeholder='用气属性'
59
+ value-single="true"
60
+ :value.sync="model.f_gasproperties2"
61
+ v-model="model.f_gasproperties2"
62
+ :options='$parent.$parent.Gasproperties2'
63
+ close-on-select condition="uf.f_gasproperties2 {}">
64
+ </v-select>
65
+ </div>-->
66
+ <!-- <res-select-group :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>-->
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
69
+ <input style="width:60%" class="input_search" condition="f_meternumber = '{}'" placeholder='表号' type="text"
70
+ v-el:meternumber v-model="model.f_meternumber" v-next-el='meternumber'
71
+ >
72
+ </div>
73
+ <div class="col-sm-2">
74
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
75
+ <right-tree @re-res="$parent.$parent.getorg"
76
+ :initresid='$parent.$parent.orgid'></right-tree>
77
+ </div>
78
+ <!-- <div class="col-sm-2 form-group">-->
79
+ <!-- <label class="font_normal_body">组织机构</label>-->
80
+ <!-- <res-select :initresid="$parent.$parent.orgid"-->
81
+ <!-- style="width:60%"-->
82
+ <!-- @res-select="$parent.$parent.getRes"-->
83
+ <!-- restype='organization'>-->
84
+ <!-- </res-select>-->
85
+ <!-- </div>-->
86
+
87
+ <div class="col-sm-2 form-group">
88
+ <label class="font_normal_body">客户类型</label>
89
+ <v-select :options='$parent.$parent.Gasusertype'
90
+ :value.sync="model.f_user_type"
91
+ close-on-select
92
+ style="width:60%"
93
+ condition="f_user_type = '{}'"
94
+ id="f_user_type"
95
+ placeholder='客户类型'
96
+ v-model="model.f_user_type"
97
+ value-single="true">
98
+ </v-select>
99
+ </div>
100
+ <div class="col-sm-2 form-group">
101
+ <label class="font_normal_body">用气性质</label>
102
+ <v-select :options='$parent.$parent.Gasproperties'
103
+ :value.sync="model.f_gasproperties"
104
+ close-on-select
105
+ condition="f_gasproperties = '{}'"
106
+ id="f_gasproperties"
107
+ placeholder='用气性质'
108
+ style="width:60%"
109
+ v-model="model.f_gasproperties"
110
+ value-single="true">
111
+ </v-select>
112
+ </div>
113
+ <div class="col-sm-2 form-group">
114
+ <label class="font_normal_body">气表品牌</label>
115
+ <v-select :value.sync="model.f_meter_brand"
116
+ v-model="model.f_meter_brand"
117
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
118
+ condition="f_meter_brand = '{}'"
119
+ close-on-select></v-select>
120
+ </div>
121
+ <div class="col-sm-2 form-group">
122
+ <label class="font_normal_body">时间区间</label>
123
+ <datepicker :disabled-days-of-Week="[]" :format="'yyyy-MM-dd HH:mm:ss'"
124
+ :show-reset-button="reset"
125
+ :value.sync="model.startDate"
126
+ id="startDate"
127
+ style="width:60%"
128
+ placeholder="开始时间"
129
+ v-model="model.startDate">
130
+ </datepicker>
131
+ </div>
132
+ <div class="col-sm-2 form-group">
133
+ <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
134
+ <datepicker :disabled-days-of-Week="[]" :format="'yyyy-MM-dd HH:mm:ss'"
135
+ :show-reset-button="reset"
136
+ :value.sync="model.endDate"
137
+ style="width:60%"
138
+ id="endDate"
139
+ style="width:60%"
140
+ placeholder="结束日期"
141
+ v-model="model.endDate">
142
+ </datepicker>
143
+ </div>
144
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
145
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;用气量&nbsp;</label>
146
+ <div class="row">
147
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount1"
148
+ condition="f_oughtamount >= {} " placeholder="">
149
+ <label class="font_normal_body"> ≤ x ≤ </label>
150
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount2"
151
+ condition="f_oughtamount <= {} " placeholder="">
152
+ </div>
153
+ </div>
154
+ <!--<div class="col-sm-2 form-group">
155
+ <label class="font_normal_body">用&nbsp;气&nbsp;量&nbsp;</label>
156
+ <input type="text" style="width:60%" class="input_search"
157
+ v-model="model.f_start_oughtamount" placeholder='起始气量'
158
+ >
159
+ </div>
160
+ <div class="col-sm-2 form-group">
161
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
162
+ <input type="text" style="width:60%" class="input_search"
163
+ v-model="model.f_end_oughtamount" placeholder='结束气量'
164
+ >
165
+ </div>-->
166
+ <div class="col-sm-2 form-group">
167
+ <label class="font_normal_body">壁&ensp;挂&ensp;炉</label>
168
+ <v-select id="f_meter_brand"
169
+ v-model="model.f_usetype"
170
+ placeholder=''
171
+ :value.sync="model.f_usetype"
172
+ :options='$parent.$parent.usetypes'
173
+ condition="f_usetype {}" :search="false"
174
+ close-on-select style="width: 60%">
175
+ </v-select>
176
+ </div>
177
+ <div class="col-sm-2 form-group">
178
+ <label class="font_normal_body">房屋类型</label>
179
+ <v-select :value.sync="model.f_house_type" v-model="model.f_house_type"
180
+ :options='$parent.$parent.houseTypes' placeholder='请选择'
181
+ close-on-select
182
+ condition="f_house_type = '{}'"></v-select>
183
+ </div>
184
+ <div class="col-sm-2 form-group">
185
+ <label class="font_normal_body">安装位置</label>
186
+ <v-select :value.sync="model.f_position" v-model="model.f_position"
187
+ :options='$parent.$parent.positions' placeholder='请选择'
188
+ condition="f_position = '{}'"
189
+ close-on-select></v-select>
190
+ </div>
191
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
192
+ <label class="font_normal_body">期末结余</label>
193
+ <div class="row">
194
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_curbalance1"
195
+ condition="f_curbalance >= {} " placeholder="">
196
+ <label class="font_normal_body"> ≤ x ≤ </label>
197
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_curbalance2"
198
+ condition="f_curbalance <= {} " placeholder="">
199
+ </div>
200
+ </div>
201
+ </div>
202
+ </div>
203
+ </criteria>
204
+ <data-grid :model="model" id="usergasall" partial='list' class="list_area table_sy" v-ref:grid>
205
+ <template partial='head'>
206
+ <tr>
207
+ <th style="text-align:center">
208
+ <nobr>客户编号</nobr>
209
+ </th>
210
+ <th style="text-align:center">
211
+ <nobr>表号</nobr>
212
+ </th>
213
+ <th style="text-align:center">
214
+ <nobr>用气性质</nobr>
215
+ </th>
216
+ <th style="text-align:center">
217
+ <nobr>用户电话</nobr>
218
+ </th>
219
+ <!--<th style="text-align:center"><nobr>用气属性</nobr></th>-->
220
+ <th style="text-align:center">
221
+ <nobr>客户名称</nobr>
222
+ </th>
223
+ <th style="text-align:center">
224
+ <nobr>用气单价</nobr>
225
+ </th>
226
+ <th style="text-align:center">
227
+ <nobr>累购气量</nobr>
228
+ </th>
229
+ <th style="text-align:center">
230
+ <nobr>累购金额</nobr>
231
+ </th>
232
+ <th style="text-align:center">
233
+ <nobr>账号结余</nobr>
234
+ </th>
235
+ <th style="text-align:center">
236
+ <nobr>气表名称</nobr>
237
+ </th>
238
+ <th style="text-align:center">
239
+ <nobr>期初余额(元)</nobr>
240
+ </th>
241
+ <th style="text-align:center">
242
+ <nobr>上期底数</nobr>
243
+ </th>
244
+ <th style="text-align:center">
245
+ <nobr>本期底数</nobr>
246
+ </th>
247
+ <!-- <th style="text-align:center"><nobr>气价(元/m³)</nobr></th>-->
248
+ <th style="text-align:center">
249
+ <nobr>用气量(m³)</nobr>
250
+ </th>
251
+ <th style="text-align:center">
252
+ <nobr>用气金额(元)</nobr>
253
+ </th>
254
+ <!-- <th style="text-align:center">-->
255
+ <!-- <nobr>充值金额(元)</nobr>-->
256
+ <!-- </th>-->
257
+ <th style="text-align:center">
258
+ <nobr>期末结余(元)</nobr>
259
+ </th>
260
+ </tr>
261
+
262
+
263
+ </template>
264
+ <template partial='body'>
265
+ <td>{{row.f_userinfo_code}}</td>
266
+ <td style="text-align:center">{{row.f_meternumber}}</td>
267
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
268
+ <td style="text-align:center">{{row.f_user_phone}}</td>
269
+ <!--<td style="text-align:center">{{row.f_gasproperties2}}</td>-->
270
+ <td>
271
+ <nobr>{{row.f_user_name}}</nobr>
272
+ </td>
273
+ <td style="text-align:center">
274
+ <nobr>{{row.f_price}}</nobr>
275
+ </td>
276
+ <td style="text-align:center">{{row.f_total_gas}}</td>
277
+ <td style="text-align:center">{{row.f_total_fee}}</td>
278
+ <td style="text-align:center">{{row.f_balance_amount}}</td>
279
+ <td style="text-align:center">{{row.f_meter_brand}}</td>
280
+ <td style="text-align:center">{{row.f_balance}}</td>
281
+ <td style="text-align:center">{{row.f_last_tablebase}}</td>
282
+ <td style="text-align:center">{{row.f_tablebase}}</td>
283
+ <!--<td style="text-align:center">{{row.f_avg_price}}</td>-->
284
+ <td style="text-align:center">{{row.f_oughtamount}}</td>
285
+ <td style="text-align:center">{{row.f_oughtfee}}</td>
286
+ <!-- <td style="text-align:center">{{row.f_collection}}</td>-->
287
+ <td style="text-align:center">{{row.f_curbalance}}</td>
288
+ </template>
289
+ </data-grid>
290
+ </criteria-paged>
291
+ <table class="table-hover">
292
+ <tr style="position: relative" class="table-bordered">
293
+ <td
294
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
295
+ 汇总信息
296
+ </td>
297
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
298
+ 总累购气量:&emsp;{{model.sums.f_total_gas}}
299
+ </td>
300
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
301
+ 总累购金额:&emsp;{{model.sums.f_total_fee}}
302
+ </td>
303
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
304
+ 总账户结余:&emsp;{{model.sums.f_balance_amount}}
305
+ </td>
306
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
307
+ 本期用气量合计:&emsp;{{model.sums.f_oughtamount}}
308
+ </td>
309
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
310
+ 本期用气金额合计:&emsp;{{model.sums.f_oughtfee}}
311
+ </td>
312
+ </tr>
313
+ </table>
314
+ </div>
315
+ </div>
316
+ </div>
317
+ </div>
318
+ <div class="flex-row" v-if="echarts">
319
+ <user-gas-echarts :condition="condition" :echarts="echarts" :enddate="endDate"
320
+ :groupname="groupname[0]" :startdate="startDate"></user-gas-echarts>
321
+ </div>
322
+ <!--汇总表显示模板-->
323
+ <div class="flex-row" v-if="isActiveTotalForm">
324
+ <user-gas-eform :condition="condition" :enddate="endDate" :startdate="startDate"></user-gas-eform>
325
+ </div>
326
+ </template>
327
+
328
+ <script>
329
+ import {HttpResetClass, PagedList} from 'vue-client'
330
+ //import UserGasEcharts from './UserGasEcharts'
331
+ import * as Util from '../../Util'
332
+ import getLodop from '../../plugins/LodopFuncs'
333
+ import plugins from '../../plugins/GetLoginInfoService'
334
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
335
+ let readyGen = async function (self) {
336
+ await self.$MagLoadParams.loadParam()
337
+ self.initParams()
338
+ self.getaddress()
339
+ }
340
+
341
+ export default {
342
+ title: '用气分析',
343
+ props: ['data'],
344
+ data() {
345
+ return {
346
+ model: new PagedList('rs/sql/webmeter_getUserGasList', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
347
+ f_oughtamount: 0,
348
+ f_oughtfee: 0,
349
+ f_total_gas: 0,
350
+ f_total_fee: 0,
351
+ f_balance_amount: 0
352
+ }),
353
+ getGroupNameByDate: [
354
+ {label: '年份', value: 'year'},
355
+ {label: '月份', value: 'month'},
356
+ {label: '周', value: 'week'}
357
+ ],
358
+ meterbrands: [],
359
+ residentialArea: [],
360
+ criteriaShow: false,
361
+ reportStr: null,
362
+ show: false,
363
+ initres: {
364
+ org:[this.$login.f.orgid],
365
+ dep:[],
366
+ user:[]
367
+ },
368
+ outlets: [],
369
+ operator: [],
370
+ filename: '',
371
+ searchshow: true,
372
+ startDate: '',
373
+ endDate: '',
374
+ echarts: false,
375
+ isActiveTotalForm: false,
376
+ condition: '1=1',
377
+ getfield: {},
378
+ config: {
379
+ excelHeaders: {
380
+ 'f_userinfo_code':'客户编号',
381
+ 'f_user_type':'客户类型',
382
+ 'f_gasproperties': '用气性质',
383
+ 'f_user_name': '客户名称',
384
+ 'f_user_phone':'客户电话',
385
+ 'f_residential_area': '小区',
386
+ 'f_price':'用气单价',
387
+ 'f_address':'用气地址',
388
+ 'f_meternumber': '表号',
389
+ 'f_meter_brand':'气表品牌',
390
+ 'f_balance':'期初余额(元)',
391
+ 'f_last_tablebase': '上期底数',
392
+ 'f_tablebase':'本期底数',
393
+ 'f_oughtamount':'用气量(m³)',
394
+ 'f_oughtfee':'用气金额(元)',
395
+ 'f_curbalance':'期末结余(元)'
396
+
397
+ }
398
+ },
399
+ groupname: ['day'],
400
+ getgroupname: [
401
+ {label: '年份', value: 'year'},
402
+ {label: '月份', value: 'month'},
403
+ {label: '周', value: 'week'},
404
+ {label: '日', value: 'day'}
405
+ ],
406
+ // orgCondtionStr: ' and h.f_orgid in (' + this.$login.f.orgid + ')',
407
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
408
+ orgid:[this.$login.f.orgid],
409
+ usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}]
410
+ }
411
+ },
412
+ ready() {
413
+ readyGen(this)
414
+ console.log('444444444', Util.addDate(new Date(),-6).substring(0,10))
415
+ this.$refs.paged.$refs.cri.model.startDate = Util.addDate(new Date(),-4).substring(0,10) + ' 00:00:00'
416
+ this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
417
+ this.$refs.paged.$refs.cri.search()
418
+ this.getfield = this.config.excelHeaders
419
+ },
420
+ methods: {
421
+ // 查询开关
422
+ hidden() {
423
+ this.criteriaShow = !this.criteriaShow
424
+ },
425
+ async getaddress(){
426
+ let HttpReset = new HttpResetClass()
427
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
428
+ data: {
429
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
430
+ }
431
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
432
+ console.log('小区',data)
433
+ let house = [{label: '全部', value: ''}]
434
+ for (let row of data.data){
435
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
436
+ }
437
+ this.residentialArea = house
438
+ },
439
+ SaveAsFile(str) {
440
+ this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
441
+ if (res === 'confirm') {
442
+ let style = '<style>' +
443
+ 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
444
+ let strHtml = style + document.getElementById(str).innerHTML;
445
+ console.log(strHtml);
446
+ let LODOP = getLodop();
447
+ LODOP.PRINT_INIT('');
448
+ LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
449
+ LODOP.SAVE_TO_FILE('用气分析.xls')
450
+ }
451
+ })
452
+ },
453
+ clearmsg() {
454
+ this.$refs.paged.$refs.cri.model = {}
455
+ },
456
+ initParams() {
457
+ // 初始化气表品牌
458
+ let brandArr = []
459
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
460
+ let temp = {}
461
+ temp.label = item.label
462
+ temp.value = item.value.f_meter_brand
463
+ brandArr.push(temp)
464
+ })
465
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
466
+
467
+ },
468
+ search(args) {
469
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
470
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
471
+ if (this.endDate == '' || this.startDate == '') {
472
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
473
+ }
474
+ // this.condition = this.$refs.paged.$refs.cri.condition + ` ${this.orgCondtionStr}`
475
+ if (this.orgCondtionStr)
476
+ this.condition = this.$refs.paged.$refs.cri.condition + ` and f_orgid in ${this.orgCondtionStr}`
477
+ else
478
+ this.condition = this.$refs.paged.$refs.cri.condition + ` and f_orgid = ${this.$login.f.orgid}`
479
+ args.condition = this.condition
480
+ this.model.search(args.condition, args.model)
481
+ },
482
+ // 显示柱状图
483
+ showEcharts() {
484
+ this.echarts = true
485
+ this.isActiveTotalForm = false
486
+ },
487
+ notShowTotalForm() {
488
+ this.echarts = false
489
+ this.isActiveTotalForm = false
490
+ },
491
+ // 不显示柱状图
492
+ notShowEcharts() {
493
+ this.echarts = false
494
+ this.isActiveTotalForm = false
495
+ },
496
+ // 显示汇总数据表格
497
+ showTotalForm() {
498
+ this.echarts = false
499
+ this.isActiveTotalForm = true
500
+ },
501
+ close() {
502
+ this.show = false
503
+ },
504
+ getRes(obj) {
505
+ this.orgCondtionStr = plugins.convertToIn(obj)
506
+ },
507
+ getorg(obj) {
508
+ this.orgCondtionStr = plugin.convertToIn(obj.resids)?plugin.convertToIn(obj.resids):'(' + this.$login.f.orgid + ')'
509
+ },
510
+ getCondition () {
511
+ return {
512
+ condition: this.condition,
513
+ startDate: this.startDate,
514
+ endDate: this.endDate
515
+ }
516
+ }
517
+ // getRes(condition,obj) {
518
+ // this.orgCondtionStr = condition
519
+ // this.orgname = obj.orgnames[0]
520
+ // this.depname = obj.depnames[0]
521
+ // }
522
+ },
523
+ watch: {
524
+ 'data'(val) {
525
+ if (val.f_files_path) {
526
+ this.getFileContent(val.f_files_path)
527
+ } else {
528
+ this.reportStr = null
529
+ }
530
+ }
531
+ },
532
+ computed: {
533
+ houseTypes() {
534
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('房屋类型')]
535
+ },
536
+ positions() {
537
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('安装位置')]
538
+ },
539
+ Gasusertype() {
540
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
541
+ },
542
+ valveStatus() {
543
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
544
+ },
545
+ Gasproperties() {
546
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
547
+ }
548
+ }
549
+ }
550
+ </script>
551
+ <style>
552
+ .mystyle {
553
+ float: right;
554
+ padding-right: 10%;
555
+ }
556
+
557
+ .mystyle1 {
558
+ padding-top: 10px;
559
+
560
+ }
561
+
562
+ .mystyle2 {
563
+ width: 100%;
564
+ height: 35px;
565
+ /*background: #00A3F0;*/
566
+ padding-left: 15px;
567
+ float: left;
568
+ }
569
+
570
+ .datapanel {
571
+ color: #333;
572
+ background-color: white;
573
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
574
+ padding: 10px 10px 10px 10px;
575
+ border-radius: 15px;
576
+ }
577
+ </style>