manage-client 3.3.232 → 3.3.233

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 (207) hide show
  1. package/.gradle/7.4/checksums/checksums.lock +0 -0
  2. package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  5. package/.gradle/7.4/fileChanges/last-build.bin +0 -0
  6. package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  7. package/.gradle/7.4/gc.properties +0 -0
  8. package/build/dev-server.js +190 -190
  9. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  10. package/gradlew +234 -234
  11. package/gradlew.bat +89 -89
  12. package/hs_err_pid13052.log +206 -206
  13. package/package.json +111 -111
  14. package/src/components/SellReport/BusinessClassify.vue +292 -292
  15. package/src/components/SellReport/ChManageBusSummary.vue +273 -273
  16. package/src/components/SellReport/GasMoneyPublicConReport.vue +231 -231
  17. package/src/components/SellReport/ManageGasGroupSummary.vue +208 -208
  18. package/src/components/SellReport/ManageSellType.vue +267 -267
  19. package/src/components/SellReport/ReportItems.vue +312 -312
  20. package/src/components/SellReport/yangchun/YcBusSummaryes.vue +229 -229
  21. package/src/components/handReport/WebGastypeMonthReport.vue +190 -190
  22. package/src/components/sale/businessquery/AreaChargeQuery.vue +384 -384
  23. package/src/components/sale/businessquery/AreaGeneralQuery.vue +637 -637
  24. package/src/components/sale/businessquery/ArrearsQuery.vue +983 -983
  25. package/src/components/sale/businessquery/BalanceTable.vue +482 -482
  26. package/src/components/sale/businessquery/BusinessManage.vue +212 -212
  27. package/src/components/sale/businessquery/CancellationQuery.vue +428 -428
  28. package/src/components/sale/businessquery/CardHandplanQuery.vue +546 -546
  29. package/src/components/sale/businessquery/ChangeMeterQuery.vue +699 -699
  30. package/src/components/sale/businessquery/ChargeQuery.vue +1435 -1435
  31. package/src/components/sale/businessquery/CollectManage.vue +161 -161
  32. package/src/components/sale/businessquery/CommunityPaymen.vue +307 -307
  33. package/src/components/sale/businessquery/DisableQuery.vue +523 -523
  34. package/src/components/sale/businessquery/EnableQuery.vue +462 -462
  35. package/src/components/sale/businessquery/FMYGasQuery.vue +872 -872
  36. package/src/components/sale/businessquery/FillCardQuery.vue +573 -573
  37. package/src/components/sale/businessquery/FillGasQuery.vue +593 -593
  38. package/src/components/sale/businessquery/GroupChargeQuery.vue +492 -492
  39. package/src/components/sale/businessquery/HandBookQuery.vue +692 -692
  40. package/src/components/sale/businessquery/HandBookTwoQuery.vue +704 -704
  41. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +671 -671
  42. package/src/components/sale/businessquery/HandPeopleQuery.vue +719 -719
  43. package/src/components/sale/businessquery/HandRateQuery.vue +524 -524
  44. package/src/components/sale/businessquery/Handgasquery.vue +477 -477
  45. package/src/components/sale/businessquery/HandplanQuery.vue +1376 -1376
  46. package/src/components/sale/businessquery/MonthGasQuery.vue +482 -482
  47. package/src/components/sale/businessquery/NoBusinessQuery.vue +778 -778
  48. package/src/components/sale/businessquery/PlotSummaryQuery.vue +499 -499
  49. package/src/components/sale/businessquery/ProceedsOper.vue +415 -415
  50. package/src/components/sale/businessquery/ResidentialCardQuery.vue +377 -377
  51. package/src/components/sale/businessquery/ResidentialQuery.vue +415 -415
  52. package/src/components/sale/businessquery/SellOrgnameQuery.vue +680 -680
  53. package/src/components/sale/businessquery/SellPeopleQuery.vue +752 -752
  54. package/src/components/sale/businessquery/SellingHand.vue +421 -421
  55. package/src/components/sale/businessquery/TransferQuery.vue +502 -502
  56. package/src/components/sale/businessquery/UnhandBusiness.vue +328 -328
  57. package/src/components/sale/businessquery/UserSellHeadDetail.vue +579 -579
  58. package/src/components/sale/businessquery/WebHandplanQuery.vue +987 -987
  59. package/src/components/sale/businessquery/WebMeterMonthUserGasQuery.vue +471 -471
  60. package/src/components/sale/businessquery/YingShouMingXi.vue +524 -524
  61. package/src/components/sale/businessquery/YonghuJieyu.vue +358 -358
  62. package/src/components/sale/businessquery/chargeRecordMaintenanceQuery.vue +353 -353
  63. package/src/components/sale/businessquery/usergas.vue +315 -315
  64. package/src/components/sale/config/exportConfig.js +2763 -2762
  65. package/src/components/sale/config/tableConfig.js +59 -59
  66. package/src/components/sale/filesquery/FireQuery.vue +539 -539
  67. package/src/components/sale/filesquery/RecordInfoQuery.vue +1448 -1448
  68. package/src/components/sale/filesquery/UserQuery.vue +1002 -977
  69. package/src/components/webmeter/DrillData/GetNoMetereadData.vue +423 -423
  70. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +739 -739
  71. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +691 -691
  72. package/src/components/webmeter/WebmeterQuery.vue +77 -77
  73. package/src/components/webmeter/gasAnalysis/WebmeterSettlementAnalysis.vue +456 -456
  74. package/src/components/webmeter/gasStatistics/GasStatistics.vue +526 -526
  75. package/src/components/webmeter/gasStatistics/NewGasStatistics.vue +542 -542
  76. package/src/components/webmeter/instruction/NewQueryInstruct.vue +606 -606
  77. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +557 -557
  78. package/src/components/webmeter/newwebmeter/WebhandMonthGas.vue +819 -819
  79. package/src/components/webmeter/recharge/RechargeList.vue +371 -371
  80. package/src/components/webmeter/report/ReportList.vue +453 -453
  81. package/src/components/webmeter/reportdata/ReportDataQuery.vue +339 -339
  82. package/src/filiale/WEINAN/InspectListGas.vue +616 -616
  83. package/src/filiale/WEINAN/ManageCompanyGasSummary.vue +555 -555
  84. package/src/filiale/WEINAN/ManageSummaryReport.vue +712 -712
  85. package/src/filiale/WEINAN/RecordInfoQuery.vue +1328 -1328
  86. package/src/filiale/WEINAN/businessquery/WallHangingFurnaceUserQuery.vue +418 -418
  87. package/src/filiale/ancheng/businessquery/FMYGasQuery.vue +853 -853
  88. package/src/filiale/ancheng/exportConfig.js +1112 -1112
  89. package/src/filiale/bayan/ChargeQuery.vue +1436 -1436
  90. package/src/filiale/bayan/PrintTableManage.vue +242 -242
  91. package/src/filiale/bayan/config/DefaultPrint.js +6 -6
  92. package/src/filiale/bayan/config/exportConfig.js +2642 -2642
  93. package/src/filiale/bayan/config/tableConfig.js +59 -59
  94. package/src/filiale/bayan/sale.js +8 -8
  95. package/src/filiale/bayan/webmeter/GetNoMetereadData.vue +425 -425
  96. package/src/filiale/bayan/webmeter/LostContactAnalysisList.vue +719 -719
  97. package/src/filiale/bayan/webmeter/MeterExceptionList.vue +591 -591
  98. package/src/filiale/bayan/webmeter/NewGasStatistics.vue +665 -665
  99. package/src/filiale/bayan/webmeter/NewQueryInstruct.vue +650 -650
  100. package/src/filiale/bayan/webmeter/NewWebmeterSettlementAnalysis.vue +464 -464
  101. package/src/filiale/bayan/webmeter/RechargeList.vue +430 -430
  102. package/src/filiale/bayan/webmeter/ReportDataQuery.vue +343 -343
  103. package/src/filiale/bayan/webmeter/ReportList.vue +555 -555
  104. package/src/filiale/bayan/webmeter/UserLostContactAnalysis.vue +674 -674
  105. package/src/filiale/bayan/webmeterManage.js +26 -26
  106. package/src/filiale/dingcheng/DefaultPrint.js +6 -6
  107. package/src/filiale/dingcheng/businessquery/ChangeMeterQuery.vue +798 -798
  108. package/src/filiale/dingcheng/exportConfig.js +2765 -2765
  109. package/src/filiale/dingcheng/sale.js +9 -9
  110. package/src/filiale/hantou/ChangeMeterQuery.vue +699 -699
  111. package/src/filiale/hantou/config/DefaultPrint.js +6 -6
  112. package/src/filiale/hantou/config/exportConfig.js +2667 -2667
  113. package/src/filiale/hantou/config/tableConfig.js +54 -54
  114. package/src/filiale/hantou/sale.js +8 -8
  115. package/src/filiale/jingwei/RecordInfoQuery.vue +1210 -1210
  116. package/src/filiale/jingwei/config/exportConfig.js +1106 -1106
  117. package/src/filiale/jingyang/ChargeQuery.vue +1464 -1464
  118. package/src/filiale/jingyang/RechargeList.vue +346 -346
  119. package/src/filiale/jingyang/config/DefaultPrint.js +6 -6
  120. package/src/filiale/jingyang/config/exportConfig.js +2776 -2776
  121. package/src/filiale/jingyang/config/tableConfig.js +58 -58
  122. package/src/filiale/jingyang/sale.js +8 -8
  123. package/src/filiale/kelai/AreaChargeQuery.vue +398 -398
  124. package/src/filiale/kelai/ChargeQuery.vue +1348 -1348
  125. package/src/filiale/kelai/GasStatistics.vue +561 -561
  126. package/src/filiale/kelai/NewAccountQuery.vue +417 -417
  127. package/src/filiale/kelai/NewGasStatistics.vue +556 -556
  128. package/src/filiale/kelai/feimin_style_kl.vue +400 -400
  129. package/src/filiale/kelai/reportManage.js +13 -13
  130. package/src/filiale/kelai/sale.js +17 -17
  131. package/src/filiale/liaoyuan/HandplanQuery.vue +1289 -1289
  132. package/src/filiale/lixianV3/RecordInfoQuery.vue +1474 -1474
  133. package/src/filiale/macheng/ArrearsQuery.vue +831 -831
  134. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  135. package/src/filiale/macheng/config/exportConfig.js +79 -79
  136. package/src/filiale/meihekou/AreaGeneralQuery.vue +206 -206
  137. package/src/filiale/meihekou/CardHandplanQuery.vue +664 -664
  138. package/src/filiale/meihekou/ChargeQuery.vue +1274 -1274
  139. package/src/filiale/meihekou/CollectManage.vue +152 -152
  140. package/src/filiale/meihekou/HandplanQuery.vue +1248 -1248
  141. package/src/filiale/meihekou/OtherChargeQuery.vue +618 -618
  142. package/src/filiale/meihekou/UserSellHeadDetail.vue +516 -516
  143. package/src/filiale/meihekou/YingShouMingXi.vue +556 -556
  144. package/src/filiale/meihekou/config/exportConfig.js +829 -829
  145. package/src/filiale/meihekou/sale.js +39 -39
  146. package/src/filiale/ningjin/MeterExceptionList.vue +616 -616
  147. package/src/filiale/ningjin/UserLostContactAnalysis.vue +623 -623
  148. package/src/filiale/qianneng/RecordInfoQuery.vue +1369 -1369
  149. package/src/filiale/qianneng/WebmeterQuery.vue +70 -70
  150. package/src/filiale/qianneng/exportConfig.js +232 -232
  151. package/src/filiale/qingtongxia/ChargeQuery.vue +1209 -1209
  152. package/src/filiale/qingtongxia/config/exportConfig.js +712 -712
  153. package/src/filiale/rizhao/BusinessManage.vue +212 -212
  154. package/src/filiale/rizhao/sale.js +13 -13
  155. package/src/filiale/shangluo/HandplanQuery.vue +1376 -1376
  156. package/src/filiale/shangluo/sale.js +17 -17
  157. package/src/filiale/shangluo/webmeter/PriceInstructList.vue +303 -303
  158. package/src/filiale/shangluo/webmeter/UserInstructList.vue +304 -304
  159. package/src/filiale/shangluo/webmeter/WebmeterSettlementAnalysis.vue +432 -432
  160. package/src/filiale/shanxian/EchartsBox.vue +134 -134
  161. package/src/filiale/shaoguan/errorHandplanQuery.vue +386 -386
  162. package/src/filiale/shexian/ChangeMeterQuery.vue +797 -797
  163. package/src/filiale/taizhoukesi/ChangeMeterQuery.vue +683 -683
  164. package/src/filiale/taizhoukesi/NewGasStatistics.vue +539 -539
  165. package/src/filiale/taizhoukesi/config/exportConfig.js +2712 -2712
  166. package/src/filiale/taizhoukesi/sale.js +11 -11
  167. package/src/filiale/tongchuan/GasInspection.vue +716 -716
  168. package/src/filiale/tongchuan/InspectListGas.vue +700 -700
  169. package/src/filiale/tongchuan/MeterQuery.vue +1002 -1002
  170. package/src/filiale/tongchuan/ResSelectGroupNew.vue +188 -188
  171. package/src/filiale/tongchuan/config/exportConfig.js +858 -858
  172. package/src/filiale/wenxi/ChangeMeterQuery.vue +721 -721
  173. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  174. package/src/filiale/wenxi/config/exportConfig.js +995 -995
  175. package/src/filiale/xinjiangdexin/ChargeQuery.vue +1435 -1435
  176. package/src/filiale/xinjiangdexin/config/exportConfig.js +2770 -2770
  177. package/src/filiale/xinjiangdexin/sale.js +7 -7
  178. package/src/filiale/yangchun/ChangeMeterQuery.vue +722 -722
  179. package/src/filiale/yangchun/ManageBusSummaryNew.vue +239 -239
  180. package/src/filiale/yangchun/OtherChargeDetailQuery.vue +74 -74
  181. package/src/filiale/yangchun/OtherChargeQuery.vue +755 -755
  182. package/src/filiale/yangchun/RecordInfoQuery.vue +1494 -1494
  183. package/src/filiale/yangchun/UserQuery.vue +980 -980
  184. package/src/filiale/yangchun/config/DefaultPrint.js +6 -6
  185. package/src/filiale/yangchun/config/exportConfig.js +1229 -1229
  186. package/src/filiale/yangchun/config/tableConfig.js +58 -58
  187. package/src/filiale/yangchun/reportManage.js +6 -6
  188. package/src/filiale/yangchun/sale.js +20 -20
  189. package/src/filiale/yangchun/webmeterManage.js +5 -5
  190. package/src/filiale/yuncheng/ChangeMeterQuery.vue +743 -743
  191. package/src/filiale/yuncheng/DeviceQuery.vue +611 -611
  192. package/src/filiale/yuncheng/GasInspection.vue +610 -610
  193. package/src/filiale/yuncheng/LostContactAnalysisList.vue +700 -700
  194. package/src/filiale/yuncheng/MeterQuery.vue +1017 -1017
  195. package/src/filiale/yuncheng/config/exportConfig.js +2681 -2681
  196. package/src/filiale/yuncheng/sale.js +23 -23
  197. package/src/filiale/zhongyi/ChargeQuery.vue +1454 -1454
  198. package/src/filiale/zhongyi/GasStatistics.vue +537 -537
  199. package/src/filiale/zhongyi/NewGasStatistics.vue +558 -558
  200. package/src/filiale/zhongyi/exportConfig.js +2556 -2556
  201. package/src/filiale/zhongyi/sale.js +33 -33
  202. package/src/filiale/zhongyi/webmeterManage.js +15 -15
  203. package/src/main.js +68 -68
  204. package/src/plugins/LodopFuncs.js +159 -159
  205. package/src/reportManage.js +777 -777
  206. package/src/saleManage.js +689 -689
  207. package/src/webmeterManage.js +130 -130
@@ -1,499 +1,499 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div class="col-sm-2 form-group">
10
- <label for="startDate" class="font_normal_body">开始日期</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :format="'yyyy-MM-dd HH:mm:ss'"
15
- :show-reset-button="true"
16
- >
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label for="endDate" class="font_normal_body">结束日期</label>
21
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :format="'yyyy-MM-dd HH:mm:ss'"
25
- :show-reset-button="true"
26
- >
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
31
- <v-select :value.sync="model.f_residential_area"
32
- class="select_list select"
33
- enter-push
34
- multiple = "true"
35
- v-model="model.f_residential_area"
36
- style="width: 60%"
37
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
38
- close-on-select>
39
-
40
- </v-select>
41
- </div>
42
-
43
- <div class="span" style="float:right;">
44
- <button class="button_search button_spacing" @click="search()">查询</button>
45
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
46
-
47
- <export-excel :data="$parent.$parent.getCondition"
48
- :field="$parent.$parent.getfield"
49
- :footer="$parent.$parent.footer"
50
- :header="$parent.$parent.other"
51
- sqlurl="api/af-revenue/logic/openapi/exportfile"
52
- sql-name="plotSummaryQuery"
53
- template-name='小区用户分布统计'
54
- :choose-col="true"></export-excel>
55
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
56
- :defaultfield="$parent.$parent.defaultfield"
57
- titletable="小区用户分布统计"
58
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
59
- <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>
60
- </div>
61
- </div>
62
- <div class="row " v-show="$parent.$parent.criteriaShow">
63
- <res-select-group :style="'col-sm-2 form-group'" :show-component="$parent.$parent.showComponent" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
64
- </div>
65
-
66
- </div>
67
- </criteria>
68
-
69
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
70
- <template partial='head'>
71
- <tr>
72
- <th rowspan="2">
73
- <nobr>序号</nobr>
74
- </th>
75
- <th rowspan="2">
76
- <nobr>小区名称</nobr>
77
- </th>
78
- <th colspan="5">
79
- <nobr>民用</nobr>
80
- </th>
81
- <th colspan="5">
82
- <nobr>非民用</nobr>
83
- </th>
84
- <th rowspan="2">
85
- <nobr>合计</nobr>
86
- </th>
87
- </tr>
88
- <tr>
89
- <th>
90
- <nobr>新增</nobr>
91
- </th>
92
- <th>
93
- <nobr>启用</nobr>
94
- </th>
95
- <th>
96
- <nobr>停用</nobr>
97
- </th>
98
- <th>
99
- <nobr>销户</nobr>
100
- </th>
101
- <th>
102
- <nobr>小计</nobr>
103
- </th>
104
- <th>
105
- <nobr>新增</nobr>
106
- </th>
107
- <th>
108
- <nobr>启用</nobr>
109
- </th>
110
- <th>
111
- <nobr>停用</nobr>
112
- </th>
113
- <th >
114
- <nobr>销户</nobr>
115
- </th>
116
- <th>
117
- <nobr>小计</nobr>
118
- </th>
119
- </tr>
120
- </template>
121
- <template partial='body'>
122
- <td style="text-align:center">
123
- <nobr>{{$index+1}}</nobr>
124
- </td>
125
- <td style="text-align: center;">
126
- <nobr>{{row.f_residential_area}}</nobr>
127
- </td>
128
- <td style="text-align: center;">
129
- <nobr>{{row.m_newadduser}}</nobr>
130
- </td>
131
- <td style="text-align: center;">
132
- <nobr>{{row.m_startuser}}</nobr>
133
- </td>
134
- <td style="text-align: center;">
135
- <nobr>{{row.m_stopuser}}</nobr>
136
- </td>
137
- <td style="text-align: center;">
138
- <nobr>{{row.m_account}}</nobr>
139
- </td>
140
- <td style="text-align: center;">
141
- <nobr>{{row.m_znum}}</nobr>
142
- </td>
143
- <td style="text-align: center;">
144
- <nobr>{{row.fm_newadduser}}</nobr>
145
- </td>
146
- <td style="text-align: center;">
147
- <nobr>{{row.fm_startuser}}</nobr>
148
- </td>
149
- <td style="text-align: center;">
150
- <nobr>{{row.fm_stopuser}}</nobr>
151
- </td>
152
-
153
- <td style="text-align: center;">
154
- <nobr>{{row.fm_account}}</nobr>
155
- </td>
156
- <td style="text-align: center;">
157
- <nobr>{{row.fm_znum}}</nobr>
158
- </td>
159
- <td style="text-align: center;">
160
- <nobr>{{row.f_znum}}</nobr>
161
- </td>
162
- </template>
163
- <template partial='foot'></template>
164
- </data-grid>
165
- </criteria-paged>
166
- <table class="table-hover">
167
- <tr style="position: relative" class="table-bordered">
168
- <td
169
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
170
- 汇总信息
171
- </td>
172
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
173
- 民用新增合计:&emsp;{{sumsmodel.m_newadduser}}
174
- </td>
175
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
176
- 民用启用合计:&emsp;{{sumsmodel.m_startuser}}
177
- </td>
178
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
179
- 民用停用合计:&emsp;{{sumsmodel.m_stopuser}}
180
- </td>
181
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
182
- 民用销户合计:&emsp;{{sumsmodel.m_account}}
183
- </td>
184
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
185
- 民用合计:&emsp;{{sumsmodel.m_znum}}
186
- </td>
187
-
188
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
189
- 非民用新增合计:&emsp;{{sumsmodel.fm_newadduser}}
190
- </td>
191
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
192
- 非民用启用合计:&emsp;{{sumsmodel.fm_startuser}}
193
- </td>
194
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
195
- 非民用停用合计:&emsp;{{sumsmodel.fm_stopuser}}
196
- </td>
197
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
198
- 非民用销户合计:&emsp;{{sumsmodel.fm_account}}
199
- </td>
200
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
201
- 非民用合计:&emsp;{{sumsmodel.fm_znum}}
202
- </td>
203
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
204
- 总合计:&emsp;{{sumsmodel.f_znum}}
205
- </td>
206
- </tr>
207
- </table>
208
- </div>
209
- </div>
210
- </div>
211
- </template>
212
-
213
- <script>
214
- import {HttpResetClass, PagedList} from 'vue-client'
215
- import exportConfig from '../config/exportConfig'
216
- import plugins from "../../../plugins/GetLoginInfoService";
217
-
218
- let readySomething = async function (self) {
219
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
220
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
221
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
222
- // self.$refs.paged.$refs.cri.search()
223
- await self.$MagLoadParams.loadParam()
224
- self.initParams()
225
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
226
- }
227
- export default {
228
- data() {
229
- return {
230
- defaultfield: [],
231
- config: {
232
- defaultPrint: ['m_account','fm_stopuser']
233
- },
234
- other:[],
235
- footer:[],
236
- //f_price_name:[],
237
- gasproperties:[],
238
- showinfo: false,
239
- data: {},
240
- show:false,
241
- rowdata:{},
242
- initres: {
243
- org:[this.$login.f.orgid],
244
- dep:[],
245
- user:[]
246
- },
247
- model: new PagedList('api/af-revenue/sql/plotSummaryQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'},{
248
- m_newadduser:0,
249
- m_account:0,
250
- m_startuser:0,
251
- m_stopuser:0,
252
- m_znum:0,
253
-
254
- fm_newadduser:0,
255
- fm_account:0,
256
- fm_startuser:0,
257
- fm_stopuser:0,
258
- fm_znum:0,
259
- f_znum:0
260
- }),
261
- criteriaShow: false,
262
- showComponent:['company','department','operator'],
263
- // 下拉框
264
- meterbrands: [],
265
- pricenames: [],
266
- prices: [],
267
- area: [],
268
- orgCondtionStr: '(' + this.$login.f.orgid + ')',
269
- //合计数据
270
-
271
- //小区
272
- residentialArea: [],
273
- sumsmodel: {},
274
- f_filialeid: this.$login.f.f_orgid
275
- }
276
- },
277
- ready() {
278
- this.getaddress()
279
-
280
- readySomething(this).then(() => {
281
- this.$emit('ready')
282
- }).catch((error) => {
283
- this.$emit('error', error)
284
- })
285
- },
286
- methods: {
287
- getRes(condition,obj) {
288
- this.orgCondtionStr = condition
289
- this.orgname = obj.orgnames[0]
290
- this.depname = obj.depnames[0]
291
- },
292
- getotherfooter(){
293
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
294
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
295
- this.other=[];
296
- this.footer=[];
297
- let exportdata = this.getCondition;
298
- let otherInData=[];
299
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
300
- let footerData=[],exportfield=this.getfield;
301
- footerData.push("合计");
302
- let self =this;
303
- for(var field in self.sumsmodel){
304
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
305
- }
306
- this.footer.push(footerData);
307
- this.other.push(otherInData);
308
- let date = []
309
- date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
310
- date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
311
- this.other.push(date)
312
- },
313
- async getaddress(){
314
- console.log('开始获取小区')
315
- let HttpReset = new HttpResetClass()
316
- var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
317
- data: {
318
- condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
319
- }
320
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
321
- console.log('小区',data)
322
- let house = [{label: '全部', value: ''}]
323
- for (let row of data.data){
324
- console.log('开始保存小区')
325
- house.push({label: row.f_residential_area, value: row.f_residential_area})
326
- }
327
- this.residentialArea = house
328
- },
329
-
330
-
331
-
332
-
333
- //把数据库查询数据转换为下拉数据
334
- calculate(rows){
335
- let data = []
336
- rows.forEach((row, n) => {
337
- data[n] = {label: row.f_residential_area, value: row.id}
338
- })
339
- return data
340
- },
341
-
342
- search(){
343
- this.$refs.paged.$refs.cri.search()
344
- },
345
- cancel() {
346
- this.show = false
347
- },
348
- showmsg(obj){
349
- this.rowdata=obj
350
- this.show=true
351
- },
352
- userTypeChange () {
353
- this.gasproperties=[]
354
- if(this.$refs.paged.$refs.cri.model !==null) {
355
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
356
-
357
- // console.log("查看客户类型",this.$refs.paged.$refs.cri.model.f_user_type[0])
358
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
359
- // this.gasproperties.push({label: '全部', value: ''})
360
- }
361
- else{
362
- this.gasproperties =[{label: '全部', value: ''}]
363
- }
364
- },
365
- initParams() {
366
- // 初始化气表品牌
367
- let brandArr = []
368
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
369
- let temp = {}
370
- temp.label = item.label
371
- temp.value = item.value.f_meter_brand
372
- brandArr.push(temp)
373
- })
374
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
375
- //初始化气表价格
376
- this.prices = this.$MagGetSaleParam.getPrices();
377
- },
378
- selfSearch(args) {
379
- if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === ''){
380
- this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
381
- } else {
382
- //小区查询条件
383
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
384
- console.log("=====小区model绑定====",this.area)
385
- if(this.area.length !== 0){
386
- let str = JSON.stringify(this.area)
387
- str = str.replace(/"/g,`'`)
388
- str = str.replace(/\[/g,``)
389
- str = str.replace(/\]/g,``)
390
- console.log("=====小区model22222222222绑定====",str)
391
- //查询多个小区时条件
392
- args.condition += ` and f_residential_area in ( ${str} )`
393
- }
394
-
395
- let f_orgstr = this.orgCondtionStr
396
- args.condition = `${args.condition} ` + f_orgstr
397
- this.model.search(args.condition, args.model)
398
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
399
- }
400
- },
401
- clear() {
402
- //清空部门和人员
403
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
404
- //部门和人员变为全选
405
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
406
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
407
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
408
- this.$refs.paged.$refs.cri.model[key] = []
409
- })
410
-
411
- },
412
- dealmsg(val) {
413
- val.model = this.model.model
414
- this.$dispatch('deal-msg', val)
415
- },
416
- show() {
417
- this.criteriaShow = true
418
- },
419
- hidden() {
420
- this.criteriaShow = !this.criteriaShow
421
- },
422
-
423
- async updateParams() {
424
- await this.$MagLoadParams.loadParam(this.f_filialeid)
425
- this.initParams()
426
- }
427
-
428
- },
429
- events:{
430
- 'getidcard'(IdCard){
431
- console.log("IdCard-===")
432
- console.log(IdCard)
433
- // console.log(param)
434
- this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
435
- }
436
- },
437
- watch: {
438
- 'model'(val) {
439
- },
440
- 'orgCondtionStr'(val) {
441
- let res = val.match(/'(.*?)'/)
442
- console.log('正则提取:',res && res[1])
443
- if (res) {
444
- this.f_filialeid = res[1]
445
- this.updateParams()
446
- }
447
- },
448
- sumsmodel:{
449
- handler: function(val) {
450
- this.getotherfooter();
451
- },
452
- deep: true
453
- }
454
- },
455
- computed: {
456
- getPricenames() {
457
- let f_user_type = this.$refs.paged.model.model.f_user_type;
458
- let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
459
- let pricetype = this.$refs.paged.model.model.pricetype;
460
- console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
461
- if(this.$refs.paged.model.model !==null) {
462
- let rs = []
463
- let priceArr = []
464
- if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
465
- let params = {
466
- f_user_type: f_user_type[0],
467
- f_gasproperties: f_gasproperties[0],
468
- f_price_type: pricetype[0],
469
- filter: this.f_filialeid,
470
- prices: this.prices
471
- }
472
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
473
- let temp = {}
474
- temp.label = item.label
475
- temp.value = item.value.f_price_name
476
- priceArr.push(temp)
477
- })
478
- rs = [{label: '全部', value: ''}, ...priceArr]
479
- }
480
- if (rs.length === 0) {
481
- console.log('rs读出来是空')
482
- this.$refs.paged.model.model.f_price_name = ''
483
- }
484
- return rs
485
- }
486
- },
487
- getCondition() {
488
- return {
489
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
490
- startDate: this.$refs.paged.$refs.cri.model.startDate,
491
- endDate: this.$refs.paged.$refs.cri.model.endDate
492
- }
493
- },
494
- getfield() {
495
- return exportConfig.PlotSummaryQuery
496
- }
497
- }
498
- }
499
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ >
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ >
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
31
+ <v-select :value.sync="model.f_residential_area"
32
+ class="select_list select"
33
+ enter-push
34
+ multiple = "true"
35
+ v-model="model.f_residential_area"
36
+ style="width: 60%"
37
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
38
+ close-on-select>
39
+
40
+ </v-select>
41
+ </div>
42
+
43
+ <div class="span" style="float:right;">
44
+ <button class="button_search button_spacing" @click="search()">查询</button>
45
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
46
+
47
+ <export-excel :data="$parent.$parent.getCondition"
48
+ :field="$parent.$parent.getfield"
49
+ :footer="$parent.$parent.footer"
50
+ :header="$parent.$parent.other"
51
+ sqlurl="api/af-revenue/logic/openapi/exportfile"
52
+ sql-name="plotSummaryQuery"
53
+ template-name='小区用户分布统计'
54
+ :choose-col="true"></export-excel>
55
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
56
+ :defaultfield="$parent.$parent.defaultfield"
57
+ titletable="小区用户分布统计"
58
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
59
+ <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>
60
+ </div>
61
+ </div>
62
+ <div class="row " v-show="$parent.$parent.criteriaShow">
63
+ <res-select-group :style="'col-sm-2 form-group'" :show-component="$parent.$parent.showComponent" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
64
+ </div>
65
+
66
+ </div>
67
+ </criteria>
68
+
69
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
70
+ <template partial='head'>
71
+ <tr>
72
+ <th rowspan="2">
73
+ <nobr>序号</nobr>
74
+ </th>
75
+ <th rowspan="2">
76
+ <nobr>小区名称</nobr>
77
+ </th>
78
+ <th colspan="5">
79
+ <nobr>民用</nobr>
80
+ </th>
81
+ <th colspan="5">
82
+ <nobr>非民用</nobr>
83
+ </th>
84
+ <th rowspan="2">
85
+ <nobr>合计</nobr>
86
+ </th>
87
+ </tr>
88
+ <tr>
89
+ <th>
90
+ <nobr>新增</nobr>
91
+ </th>
92
+ <th>
93
+ <nobr>启用</nobr>
94
+ </th>
95
+ <th>
96
+ <nobr>停用</nobr>
97
+ </th>
98
+ <th>
99
+ <nobr>销户</nobr>
100
+ </th>
101
+ <th>
102
+ <nobr>小计</nobr>
103
+ </th>
104
+ <th>
105
+ <nobr>新增</nobr>
106
+ </th>
107
+ <th>
108
+ <nobr>启用</nobr>
109
+ </th>
110
+ <th>
111
+ <nobr>停用</nobr>
112
+ </th>
113
+ <th >
114
+ <nobr>销户</nobr>
115
+ </th>
116
+ <th>
117
+ <nobr>小计</nobr>
118
+ </th>
119
+ </tr>
120
+ </template>
121
+ <template partial='body'>
122
+ <td style="text-align:center">
123
+ <nobr>{{$index+1}}</nobr>
124
+ </td>
125
+ <td style="text-align: center;">
126
+ <nobr>{{row.f_residential_area}}</nobr>
127
+ </td>
128
+ <td style="text-align: center;">
129
+ <nobr>{{row.m_newadduser}}</nobr>
130
+ </td>
131
+ <td style="text-align: center;">
132
+ <nobr>{{row.m_startuser}}</nobr>
133
+ </td>
134
+ <td style="text-align: center;">
135
+ <nobr>{{row.m_stopuser}}</nobr>
136
+ </td>
137
+ <td style="text-align: center;">
138
+ <nobr>{{row.m_account}}</nobr>
139
+ </td>
140
+ <td style="text-align: center;">
141
+ <nobr>{{row.m_znum}}</nobr>
142
+ </td>
143
+ <td style="text-align: center;">
144
+ <nobr>{{row.fm_newadduser}}</nobr>
145
+ </td>
146
+ <td style="text-align: center;">
147
+ <nobr>{{row.fm_startuser}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;">
150
+ <nobr>{{row.fm_stopuser}}</nobr>
151
+ </td>
152
+
153
+ <td style="text-align: center;">
154
+ <nobr>{{row.fm_account}}</nobr>
155
+ </td>
156
+ <td style="text-align: center;">
157
+ <nobr>{{row.fm_znum}}</nobr>
158
+ </td>
159
+ <td style="text-align: center;">
160
+ <nobr>{{row.f_znum}}</nobr>
161
+ </td>
162
+ </template>
163
+ <template partial='foot'></template>
164
+ </data-grid>
165
+ </criteria-paged>
166
+ <table class="table-hover">
167
+ <tr style="position: relative" class="table-bordered">
168
+ <td
169
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
170
+ 汇总信息
171
+ </td>
172
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
173
+ 民用新增合计:&emsp;{{sumsmodel.m_newadduser}}
174
+ </td>
175
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
176
+ 民用启用合计:&emsp;{{sumsmodel.m_startuser}}
177
+ </td>
178
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
179
+ 民用停用合计:&emsp;{{sumsmodel.m_stopuser}}
180
+ </td>
181
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
182
+ 民用销户合计:&emsp;{{sumsmodel.m_account}}
183
+ </td>
184
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
185
+ 民用合计:&emsp;{{sumsmodel.m_znum}}
186
+ </td>
187
+
188
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
189
+ 非民用新增合计:&emsp;{{sumsmodel.fm_newadduser}}
190
+ </td>
191
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
192
+ 非民用启用合计:&emsp;{{sumsmodel.fm_startuser}}
193
+ </td>
194
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
195
+ 非民用停用合计:&emsp;{{sumsmodel.fm_stopuser}}
196
+ </td>
197
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
198
+ 非民用销户合计:&emsp;{{sumsmodel.fm_account}}
199
+ </td>
200
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
201
+ 非民用合计:&emsp;{{sumsmodel.fm_znum}}
202
+ </td>
203
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
204
+ 总合计:&emsp;{{sumsmodel.f_znum}}
205
+ </td>
206
+ </tr>
207
+ </table>
208
+ </div>
209
+ </div>
210
+ </div>
211
+ </template>
212
+
213
+ <script>
214
+ import {HttpResetClass, PagedList} from 'vue-client'
215
+ import exportConfig from '../config/exportConfig'
216
+ import plugins from "../../../plugins/GetLoginInfoService";
217
+
218
+ let readySomething = async function (self) {
219
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
220
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
221
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
222
+ // self.$refs.paged.$refs.cri.search()
223
+ await self.$MagLoadParams.loadParam()
224
+ self.initParams()
225
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
226
+ }
227
+ export default {
228
+ data() {
229
+ return {
230
+ defaultfield: [],
231
+ config: {
232
+ defaultPrint: ['m_account','fm_stopuser']
233
+ },
234
+ other:[],
235
+ footer:[],
236
+ //f_price_name:[],
237
+ gasproperties:[],
238
+ showinfo: false,
239
+ data: {},
240
+ show:false,
241
+ rowdata:{},
242
+ initres: {
243
+ org:[this.$login.f.orgid],
244
+ dep:[],
245
+ user:[]
246
+ },
247
+ model: new PagedList('api/af-revenue/sql/plotSummaryQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'},{
248
+ m_newadduser:0,
249
+ m_account:0,
250
+ m_startuser:0,
251
+ m_stopuser:0,
252
+ m_znum:0,
253
+
254
+ fm_newadduser:0,
255
+ fm_account:0,
256
+ fm_startuser:0,
257
+ fm_stopuser:0,
258
+ fm_znum:0,
259
+ f_znum:0
260
+ }),
261
+ criteriaShow: false,
262
+ showComponent:['company','department','operator'],
263
+ // 下拉框
264
+ meterbrands: [],
265
+ pricenames: [],
266
+ prices: [],
267
+ area: [],
268
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
269
+ //合计数据
270
+
271
+ //小区
272
+ residentialArea: [],
273
+ sumsmodel: {},
274
+ f_filialeid: this.$login.f.f_orgid
275
+ }
276
+ },
277
+ ready() {
278
+ this.getaddress()
279
+
280
+ readySomething(this).then(() => {
281
+ this.$emit('ready')
282
+ }).catch((error) => {
283
+ this.$emit('error', error)
284
+ })
285
+ },
286
+ methods: {
287
+ getRes(condition,obj) {
288
+ this.orgCondtionStr = condition
289
+ this.orgname = obj.orgnames[0]
290
+ this.depname = obj.depnames[0]
291
+ },
292
+ getotherfooter(){
293
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
294
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
295
+ this.other=[];
296
+ this.footer=[];
297
+ let exportdata = this.getCondition;
298
+ let otherInData=[];
299
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
300
+ let footerData=[],exportfield=this.getfield;
301
+ footerData.push("合计");
302
+ let self =this;
303
+ for(var field in self.sumsmodel){
304
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
305
+ }
306
+ this.footer.push(footerData);
307
+ this.other.push(otherInData);
308
+ let date = []
309
+ date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
310
+ date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
311
+ this.other.push(date)
312
+ },
313
+ async getaddress(){
314
+ console.log('开始获取小区')
315
+ let HttpReset = new HttpResetClass()
316
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
317
+ data: {
318
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
319
+ }
320
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
321
+ console.log('小区',data)
322
+ let house = [{label: '全部', value: ''}]
323
+ for (let row of data.data){
324
+ console.log('开始保存小区')
325
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
326
+ }
327
+ this.residentialArea = house
328
+ },
329
+
330
+
331
+
332
+
333
+ //把数据库查询数据转换为下拉数据
334
+ calculate(rows){
335
+ let data = []
336
+ rows.forEach((row, n) => {
337
+ data[n] = {label: row.f_residential_area, value: row.id}
338
+ })
339
+ return data
340
+ },
341
+
342
+ search(){
343
+ this.$refs.paged.$refs.cri.search()
344
+ },
345
+ cancel() {
346
+ this.show = false
347
+ },
348
+ showmsg(obj){
349
+ this.rowdata=obj
350
+ this.show=true
351
+ },
352
+ userTypeChange () {
353
+ this.gasproperties=[]
354
+ if(this.$refs.paged.$refs.cri.model !==null) {
355
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
356
+
357
+ // console.log("查看客户类型",this.$refs.paged.$refs.cri.model.f_user_type[0])
358
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
359
+ // this.gasproperties.push({label: '全部', value: ''})
360
+ }
361
+ else{
362
+ this.gasproperties =[{label: '全部', value: ''}]
363
+ }
364
+ },
365
+ initParams() {
366
+ // 初始化气表品牌
367
+ let brandArr = []
368
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
369
+ let temp = {}
370
+ temp.label = item.label
371
+ temp.value = item.value.f_meter_brand
372
+ brandArr.push(temp)
373
+ })
374
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
375
+ //初始化气表价格
376
+ this.prices = this.$MagGetSaleParam.getPrices();
377
+ },
378
+ selfSearch(args) {
379
+ if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === ''){
380
+ this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
381
+ } else {
382
+ //小区查询条件
383
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
384
+ console.log("=====小区model绑定====",this.area)
385
+ if(this.area.length !== 0){
386
+ let str = JSON.stringify(this.area)
387
+ str = str.replace(/"/g,`'`)
388
+ str = str.replace(/\[/g,``)
389
+ str = str.replace(/\]/g,``)
390
+ console.log("=====小区model22222222222绑定====",str)
391
+ //查询多个小区时条件
392
+ args.condition += ` and f_residential_area in ( ${str} )`
393
+ }
394
+
395
+ let f_orgstr = this.orgCondtionStr
396
+ args.condition = `${args.condition} ` + f_orgstr
397
+ this.model.search(args.condition, args.model)
398
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
399
+ }
400
+ },
401
+ clear() {
402
+ //清空部门和人员
403
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
404
+ //部门和人员变为全选
405
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
406
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
407
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
408
+ this.$refs.paged.$refs.cri.model[key] = []
409
+ })
410
+
411
+ },
412
+ dealmsg(val) {
413
+ val.model = this.model.model
414
+ this.$dispatch('deal-msg', val)
415
+ },
416
+ show() {
417
+ this.criteriaShow = true
418
+ },
419
+ hidden() {
420
+ this.criteriaShow = !this.criteriaShow
421
+ },
422
+
423
+ async updateParams() {
424
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
425
+ this.initParams()
426
+ }
427
+
428
+ },
429
+ events:{
430
+ 'getidcard'(IdCard){
431
+ console.log("IdCard-===")
432
+ console.log(IdCard)
433
+ // console.log(param)
434
+ this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
435
+ }
436
+ },
437
+ watch: {
438
+ 'model'(val) {
439
+ },
440
+ 'orgCondtionStr'(val) {
441
+ let res = val.match(/'(.*?)'/)
442
+ console.log('正则提取:',res && res[1])
443
+ if (res) {
444
+ this.f_filialeid = res[1]
445
+ this.updateParams()
446
+ }
447
+ },
448
+ sumsmodel:{
449
+ handler: function(val) {
450
+ this.getotherfooter();
451
+ },
452
+ deep: true
453
+ }
454
+ },
455
+ computed: {
456
+ getPricenames() {
457
+ let f_user_type = this.$refs.paged.model.model.f_user_type;
458
+ let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
459
+ let pricetype = this.$refs.paged.model.model.pricetype;
460
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
461
+ if(this.$refs.paged.model.model !==null) {
462
+ let rs = []
463
+ let priceArr = []
464
+ if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
465
+ let params = {
466
+ f_user_type: f_user_type[0],
467
+ f_gasproperties: f_gasproperties[0],
468
+ f_price_type: pricetype[0],
469
+ filter: this.f_filialeid,
470
+ prices: this.prices
471
+ }
472
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
473
+ let temp = {}
474
+ temp.label = item.label
475
+ temp.value = item.value.f_price_name
476
+ priceArr.push(temp)
477
+ })
478
+ rs = [{label: '全部', value: ''}, ...priceArr]
479
+ }
480
+ if (rs.length === 0) {
481
+ console.log('rs读出来是空')
482
+ this.$refs.paged.model.model.f_price_name = ''
483
+ }
484
+ return rs
485
+ }
486
+ },
487
+ getCondition() {
488
+ return {
489
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
490
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
491
+ endDate: this.$refs.paged.$refs.cri.model.endDate
492
+ }
493
+ },
494
+ getfield() {
495
+ return exportConfig.PlotSummaryQuery
496
+ }
497
+ }
498
+ }
499
+ </script>