manage-client 3.2.22 → 3.2.23

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 (114) hide show
  1. package/.gradle/6.1.1/fileContent/fileContent.lock +0 -0
  2. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  7. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/7.1/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  11. package/build/dev-server.js +6 -8
  12. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  13. package/build/tmp/jar/MANIFEST.MF +2 -0
  14. package/package.json +1 -1
  15. package/src/components/BasisEcharts/BarChart.vue +247 -247
  16. package/src/components/SellReport/AmountGas.vue +257 -257
  17. package/src/components/SellReport/BonSummary.vue +178 -178
  18. package/src/components/SellReport/BusinessClassify.vue +268 -317
  19. package/src/components/SellReport/BusinessMoneyReport.vue +268 -268
  20. package/src/components/SellReport/BusinessReport.vue +256 -256
  21. package/src/components/SellReport/ChSellReport.vue +251 -251
  22. package/src/components/SellReport/ChargeBill.vue +244 -244
  23. package/src/components/SellReport/ChargeDayTable.vue +258 -258
  24. package/src/components/SellReport/ChargeMonthTable.vue +257 -257
  25. package/src/components/SellReport/ChargeYearTable.vue +252 -252
  26. package/src/components/SellReport/DepartmentPrick.vue +243 -288
  27. package/src/components/SellReport/DeptHomePage.vue +299 -299
  28. package/src/components/SellReport/FinanceSellType.vue +254 -254
  29. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  30. package/src/components/SellReport/GasMeterBrand.vue +228 -228
  31. package/src/components/SellReport/GasMoneyPublicReport.vue +263 -0
  32. package/src/components/SellReport/GasMoneyReport.vue +252 -254
  33. package/src/components/SellReport/GasPriceGroup.vue +228 -228
  34. package/src/components/SellReport/GasSummary.vue +257 -257
  35. package/src/components/SellReport/Gasc.vue +257 -257
  36. package/src/components/SellReport/GetUserNum.vue +240 -240
  37. package/src/components/SellReport/HandplanBili.vue +241 -241
  38. package/src/components/SellReport/HandplanUserCount.vue +227 -227
  39. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  40. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  41. package/src/components/SellReport/ManageGasSumChange.vue +265 -265
  42. package/src/components/SellReport/ManageGasSumChangeTwo.vue +271 -271
  43. package/src/components/SellReport/ManageGasSumOtherCharge.vue +244 -244
  44. package/src/components/SellReport/MarketMonth.vue +251 -297
  45. package/src/components/SellReport/MeterPrice.vue +244 -244
  46. package/src/components/SellReport/MeterReader.vue +231 -231
  47. package/src/components/SellReport/NonResidentGas.vue +203 -203
  48. package/src/components/SellReport/OperatorCheckoutTwo.vue +263 -263
  49. package/src/components/SellReport/OperatorSellReport.vue +268 -268
  50. package/src/components/SellReport/OtherChargePublicReport.vue +262 -0
  51. package/src/components/SellReport/OutletTable.vue +258 -258
  52. package/src/components/SellReport/PaymentDistribute.vue +228 -228
  53. package/src/components/SellReport/PaymentMethod.vue +274 -274
  54. package/src/components/SellReport/QTXManageBusSummary.vue +236 -236
  55. package/src/components/SellReport/QibiaoShouqi.vue +242 -242
  56. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  57. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  58. package/src/components/SellReport/SellDepReport.vue +264 -266
  59. package/src/components/SellReport/SellingTable.vue +220 -220
  60. package/src/components/SellReport/UserClassify.vue +222 -271
  61. package/src/components/SellReport/UserGasFillCard.vue +441 -441
  62. package/src/components/SellReport/UserSellingGas.vue +228 -228
  63. package/src/components/SellReport/WeiNanYuShou.vue +246 -246
  64. package/src/components/SellReport/YuShouTable.vue +298 -298
  65. package/src/components/SellReport/chargeSchedule.vue +410 -410
  66. package/src/components/SellReport/pengan/ManageBusPeng.vue +280 -280
  67. package/src/components/SellReport/userholds.vue +257 -257
  68. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  69. package/src/components/daping/GMap.vue +636 -636
  70. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  71. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  72. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  73. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  74. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  75. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  76. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  77. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  78. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  79. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  80. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  81. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  82. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  83. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  84. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  85. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  86. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  87. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  88. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  89. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  90. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  91. package/src/components/webmeter/report/ReportList.vue +434 -434
  92. package/src/filiale/WEINAN/BankManager.vue +139 -0
  93. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  94. package/src/filiale/WEINAN/ReportDataQuery.vue +325 -325
  95. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  96. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  97. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  98. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  99. package/src/filiale/WEINAN/config/exportConfig.js +833 -833
  100. package/src/filiale/WEINAN/reportManage.js +1 -0
  101. package/src/filiale/WEINAN/sale.js +36 -36
  102. package/src/filiale/alashan/reportManage.js +10 -10
  103. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  104. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  105. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  106. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  107. package/src/filiale/meihekou/config/exportConfig.js +831 -831
  108. package/src/filiale/meihekou/sale.js +29 -29
  109. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  110. package/src/filiale/rongchuang/reportManage.js +11 -11
  111. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  112. package/src/filiale/tongchuan/reportManage.js +5 -5
  113. package/src/reportManage.js +498 -490
  114. package/static/wuhai.json +1610 -1610
@@ -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>