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,471 +1,471 @@
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-inline auto" partial>
8
- <div class="row">
9
- <div class="col-sm-2 form-group">
10
- <label class="font_normal_body">客户编号</label>
11
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
12
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
13
- </div>
14
- <div class="col-sm-2 form-group">
15
- <label class="font_normal_body">客户名称</label>
16
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
17
- condition="f_user_name like '%{}%'" placeholder="客户名称">
18
- </div>
19
- <div class="span" style="float:right;">
20
- <button class="button_search button_spacing" @click="search()">查询</button>
21
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
22
- <button :class="!$parent.$parent.isCurrentMonth ? 'button_new' : 'button_search button_spacing'"
23
- @click="$parent.$parent.currentMonth()">
24
- 查询当月
25
- </button>
26
- <button :class="$parent.$parent.isCurrentMonth ? 'button_new' : 'button_search button_spacing'"
27
- @click="$parent.$parent.historyMonth()">
28
- 历史查询
29
- </button>
30
- <export-excel :data="$parent.$parent.getCondition"
31
- :field="$parent.$parent.getfield"
32
- sqlurl="api/af-revenue/logic/openapi/exportfile"
33
- :sql-name="$parent.$parent.sqlName"
34
- template-name='物联网表月日用气报表'
35
- :choose-col="true">
36
- </export-excel>
37
- <div style="float: right" class="button_spacing"
38
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
39
- @click="$parent.$parent.hidden()"></div>
40
- </div>
41
- </div>
42
- <div class="row" v-show="$parent.$parent.criteriaShow">
43
- <res-select-group :show-component="$parent.$parent.resshow"
44
- :selectin="true"
45
- :initres="$parent.$parent.initres"
46
- @re-res="$parent.$parent.getRes"
47
- v-ref:sel>
48
- </res-select-group>
49
- <div class="col-sm-2 form-group">
50
- <label class="font_normal_body">客户地址</label>
51
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
52
- condition="f_address like '%{}%'" placeholder='客户地址'>
53
- </div>
54
- <div class="col-sm-2 form-group">
55
- <label class="font_normal_body">用气性质</label>
56
- <v-select :options='$parent.$parent.gasproperties'
57
- :value.sync="model.f_gasproperties"
58
- close-on-select
59
- condition="f_gasproperties = '{}'"
60
- placeholder='用气性质'
61
- style="width:60%"
62
- v-model="model.f_gasproperties"
63
- value-single="true">
64
- </v-select>
65
- </div>
66
- <div class="col-sm-2 form-group">
67
- <label class="font_normal_body">气表品牌</label>
68
- <v-select :value.sync="model.f_meter_brand"
69
- v-model="model.f_meter_brand"
70
- :options='$parent.$parent.meterbrands'
71
- placeholder='请选择'
72
- condition="f_meter_brand = '{}'"
73
- close-on-select></v-select>
74
- </div>
75
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
76
- <label class="font_normal_body">累计用气量</label>
77
- <div class="row">
78
- <input type="text" style="width:27%" class="input_search" v-model="model.f_total_gas1"
79
- condition="f_total_gas >= {} " placeholder="">
80
- <label class="font_normal_body"> ≤ x ≤ </label>
81
- <input type="text" style="width:27%" class="input_search" v-model="model.f_total_gas2"
82
- condition="f_total_gas <= {} " placeholder="">
83
- </div>
84
- </div>
85
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
86
- <label class="font_normal_body">日均用气量</label>
87
- <div class="row">
88
- <input type="text" style="width:27%" class="input_search" v-model="model.f_day_gas1"
89
- condition="f_day_gas >= {} " placeholder="">
90
- <label class="font_normal_body"> ≤ x ≤ </label>
91
- <input type="text" style="width:27%" class="input_search" v-model="model.f_day_gas2"
92
- condition="f_day_gas <= {} " placeholder="">
93
- </div>
94
- </div>
95
- <div class="col-sm-2 form-group" v-show="!$parent.$parent.isCurrentMonth">
96
- <label for="startDate" class="font_normal_body">开始月份</label>
97
- <datepicker id="startDate"
98
- placeholder="开始月份"
99
- style="width:60%"
100
- v-model="model.startMonth"
101
- :value.sync="model.startMonth"
102
- :format="'yyyy-MM'"
103
- :show-reset-button="true"
104
- >
105
- </datepicker>
106
- </div>
107
- <div class="col-sm-2 form-group" v-show="!$parent.$parent.isCurrentMonth">
108
- <label for="endDate" class="font_normal_body">结束月份</label>
109
- <datepicker id="endDate"
110
- placeholder="结束月份"
111
- style="width:60%"
112
- v-model="model.endMonth"
113
- :value.sync="model.endMonth"
114
- :format="'yyyy-MM'"
115
- :show-reset-button="true"
116
- >
117
- </datepicker>
118
- </div>
119
- <div class="col-sm-2 form-group" v-show="$parent.$parent.isCurrentMonth">
120
- <label for="startDate" class="font_normal_body">开始日期</label>
121
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
122
- v-model="model.startDate"
123
- :value.sync="model.startDate"
124
- :format="'yyyy-MM-dd'"
125
- :disabled="true"
126
- :show-reset-button="true"
127
- >
128
- </datepicker>
129
- </div>
130
- <div class="col-sm-2 form-group" v-show="$parent.$parent.isCurrentMonth">
131
- <label for="endDate" class="font_normal_body">结束日期</label>
132
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
133
- v-model="model.endDate"
134
- :value.sync="model.endDate"
135
- :format="'yyyy-MM-dd'"
136
- :disabled="true"
137
- :show-reset-button="true"
138
- >
139
- </datepicker>
140
- </div>
141
- </div>
142
- </div>
143
- </criteria>
144
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
145
- <template partial='head'>
146
- <tr>
147
- <th>
148
- <nobr>月份</nobr>
149
- </th>
150
- <th>
151
- <nobr>用户编号</nobr>
152
- </th>
153
- <th>
154
- <nobr>用户姓名</nobr>
155
- </th>
156
- <th>
157
- <nobr>用户电话</nobr>
158
- </th>
159
- <th>
160
- <nobr>用户地址</nobr>
161
- </th>
162
- <th>
163
- <nobr>用气性质</nobr>
164
- </th>
165
- <th>
166
- <nobr>计费类型</nobr>
167
- </th>
168
- <th>
169
- <nobr>表具品牌</nobr>
170
- </th>
171
- <th>
172
- <nobr>累计用气量(方)</nobr>
173
- </th>
174
- <th>
175
- <nobr>本月用气量(方)</nobr>
176
- </th>
177
- <th>
178
- <nobr>日均用气量(方)</nobr>
179
- </th>
180
- </tr>
181
- </template>
182
- <template partial='body'>
183
- <td style="text-align: center;">
184
- <nobr>{{ row.f_month }}</nobr>
185
- </td>
186
- <td style="text-align: center;">
187
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
188
- </td>
189
- <td style="text-align: center;">
190
- <nobr>{{ row.f_user_name }}</nobr>
191
- </td>
192
- <td style="text-align: center;">
193
- <nobr>{{ row.f_user_phone }}</nobr>
194
- </td>
195
- <td style="text-align: center;">
196
- <nobr>{{ row.f_address }}</nobr>
197
- </td>
198
- <td style="text-align: center;">
199
- <nobr>{{ row.f_gasproperties }}</nobr>
200
- </td>
201
- <td style="text-align: center;">
202
- <nobr>{{ row.f_calculation }}</nobr>
203
- </td>
204
- <td style="text-align: center;">
205
- <nobr>{{ row.f_meter_brand }}</nobr>
206
- </td>
207
- <td style="text-align: center;">
208
- <nobr>{{ row.f_total_gas }}</nobr>
209
- </td>
210
- <td style="text-align: center;">
211
- <nobr>{{ row.f_month_gas }}</nobr>
212
- </td>
213
- <td style="text-align: center;">
214
- <nobr>{{ row.f_day_gas }}</nobr>
215
- </td>
216
- </template>
217
- <template partial='foot'></template>
218
- </data-grid>
219
- </criteria-paged>
220
- </div>
221
- <div v-if="show">
222
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id"
223
- @cancel-main="cancel">
224
- </user-info-detail-manage-new>
225
- </div>
226
- </div>
227
- </div>
228
- </template>
229
- <script>
230
- import {PagedList} from 'vue-client'
231
- import exportConfig from '../../../components/sale/config/exportConfig'
232
- import plugins from "../../../plugins/GetLoginInfoService";
233
-
234
-
235
- let readySomething = async function (self) {
236
- self.initDate()
237
- await self.$MagLoadParams.loadParam()
238
- self.initParams()
239
- }
240
- export default {
241
- title: '物联网表月用气查询',
242
- name: 'WebMeterMonthUserGasQuery',
243
- data() {
244
- return {
245
- model: new PagedList('api/af-revenue/sql/manage_webMeterUserGasQueryCurrMonth', 20),
246
- initres: {
247
- org: [this.$login.f.orgid]
248
- },
249
- sqlName: 'manage_webMeterUserGasQueryCurrMonth',
250
- resshow: ['company'],
251
- isCurrentMonth: true,
252
- other: [],
253
- footer: [],
254
- rowdata: {},
255
- gasproperties: [],
256
- show: false,
257
- criteriaShow: false,
258
- orgCondtionStr: '',
259
- modelval: [],
260
- condition: '',
261
- printshow: false,
262
- all: false,
263
- fields: {},
264
- thead: '',
265
- tfoot: '',
266
- defaultfield: [],
267
- f_filialeid: this.$login.f.f_orgid,
268
- f_orgid: this.$login.f.orgid,
269
- f_depid: this.$login.f.depids,
270
- f_operatorid: this.$login.f.id,
271
- }
272
- },
273
- ready() {
274
- readySomething(this)
275
- },
276
- methods: {
277
- initDate () {
278
- this.$refs.paged.$refs.cri.model.startDate = this.$login.toStartAndEndDateString()[0]
279
- this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
280
- },
281
- initParams() {
282
- // 初始化气表品牌
283
- let brandArr = []
284
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
285
- if (item.value.f_meter_type === '物联网表') {
286
- let temp = {}
287
- temp.label = item.label
288
- temp.value = item.value.f_meter_brand
289
- brandArr.push(temp)
290
- }
291
- })
292
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
293
- },
294
- currentMonth() {
295
- this.isCurrentMonth = true
296
- },
297
- historyMonth() {
298
- this.isCurrentMonth = false
299
- },
300
- // 加载抄表册
301
- loadMeterBooks() {
302
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
303
- },
304
- getotherfooter() {
305
- this.other = [];
306
- this.footer = [];
307
- let otherInData = [];
308
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
309
- let footerData = [], exportfield = this.getfield;
310
- footerData.push("合计");
311
- let self = this;
312
- for (var field in self.sumsmodel) {
313
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
314
- }
315
- this.footer.push(footerData);
316
- this.other.push(otherInData);
317
- },
318
- search() {
319
- this.$refs.paged.$refs.cri.search()
320
- },
321
- cancel() {
322
- this.show = false
323
- },
324
- areBothMonthsBeforeCurrent(dateStr1, dateStr2) {
325
- let now = new Date();
326
- let currentMonthStart = new Date(now.getFullYear(), now.getMonth(), 1)
327
- // 将字符串转换为标准日期对象,这里采用'yyyy-MM'格式避免潜在的解析问题
328
- let date1 = new Date(dateStr1.replace(/-/g, '/'))
329
- let date2 = new Date(dateStr2.replace(/-/g, '/'))
330
- // 比较两个日期是否都在当前月份之前
331
- return date1 < currentMonthStart && date2 < currentMonthStart
332
- },
333
- getLastDayOfMonth(dateString) {
334
- // 分割字符串获取年和月
335
- let [year, month] = dateString.split('-')
336
- // 创建一个新日期对象,注意月份需要减1
337
- let date = new Date(parseInt(year), parseInt(month) - 1, 1)
338
- // 获取下一个月的第一天,然后回退一天得到本月最后一天
339
- date.setMonth(date.getMonth() + 1)
340
- date.setDate(date.getDate() - 1)
341
- // 格式化为 "yyyy-mm-dd"
342
- return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date.getDate().toString().padStart(2, '0')}`
343
- },
344
- selfSearch(args) {
345
- if (!this.orgCondtionStr) {
346
- args.condition = `${args.condition} and f_orgid = '${this.$login.f.orgid}'`
347
- } else {
348
- args.condition = args.condition + this.orgCondtionStr
349
- }
350
- if (this.isCurrentMonth ) {
351
- this.model.params.startDate = this.$refs.paged.$refs.cri.model.startDate
352
- this.model.params.endDate = this.$refs.paged.$refs.cri.model.endDate
353
- } else {
354
- if (this.$refs.paged.$refs.cri.model.startMonth && this.$refs.paged.$refs.cri.model.endMonth) {
355
- // 需要判断是选择月份
356
- if (this.areBothMonthsBeforeCurrent(this.$refs.paged.$refs.cri.model.startMonth,this.$refs.paged.$refs.cri.model.endMonth)) {
357
- this.model.params.startDate = this.$refs.paged.$refs.cri.model.startMonth + '-01'
358
- this.model.params.endDate = this.getLastDayOfMonth(this.$refs.paged.$refs.cri.model.endMonth)
359
- }else {
360
- this.$showMessage('请选择小于当前月份的开始月份和结束月份来查询历史数据!')
361
- return
362
- }
363
- } else {
364
- this.$showMessage('请选择开始月份和结束月份后再进行查询')
365
- return
366
- }
367
- }
368
- this.condition = args.condition
369
- this.model.search(args.condition, args.model)
370
- },
371
- clear() {
372
- //清空部门和人员
373
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
374
- //部门和人员变为全选
375
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
376
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
377
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
378
- this.$refs.paged.$refs.cri.model[key] = []
379
- })
380
- },
381
- show() {
382
- this.criteriaShow = true
383
- },
384
- hidden() {
385
- this.criteriaShow = !this.criteriaShow
386
- },
387
- showmsg(obj) {
388
- this.rowdata = obj
389
- this.show = true
390
- },
391
- getRes(condition, obj) {
392
- this.orgCondtionStr = condition
393
- },
394
- put() {
395
- // 对Modelval进行排序
396
- this.sortModelval()
397
- this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
398
- for (let key of this.modelval) {
399
- this.thead += '<th>' + this.fields[key] + '</th>'
400
- }
401
- this.thead += '</tr>'
402
- },
403
- print() {
404
- this.$refs.print.PrintAsFile()
405
- this.printshow = false
406
- },
407
- dealmsg(val) {
408
- this.rowdata = val
409
- this.show = true
410
- val.model = this.model.model
411
- this.$dispatch('deal-msg', val)
412
- },
413
- close() {
414
- this.printshow = false
415
- this.all = false
416
- },
417
- // 对选择的列进行排序
418
- sortModelval() {
419
- let sortModel = []
420
- Object.keys(this.fields).forEach((key) => {
421
- if (this.modelval.includes(key)) {
422
- sortModel.push(key)
423
- }
424
- })
425
- this.modelval = sortModel
426
- console.log('选择的打印的字段', this.modelval)
427
- }
428
- },
429
- computed: {
430
- metertype() {
431
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
432
- },
433
- gasproperties() {
434
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
435
- },
436
- getCondition() {
437
- return {
438
- condition: this.condition,
439
- startDate: this.$refs.paged.$refs.cri.model.startDate,
440
- endDate: this.$refs.paged.$refs.cri.model.endDate
441
- }
442
- },
443
- getfield() {
444
- return exportConfig.webMeterMonthUserGasConfig
445
- },
446
- usertypes() {
447
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
448
- },
449
- },
450
- events: {},
451
- watch: {
452
- 'isCurrentMonth' () {
453
- if (this.isCurrentMonth) {
454
- this.model.url = this.url = 'api/af-revenue/sql/manage_webMeterUserGasQueryCurrMonth'
455
- this.sqlName = 'manage_webMeterUserGasQueryCurrMonth'
456
- } else {
457
- this.model.url = this.url = 'api/af-revenue/sql/manage_webMeterUserGasQueryHisMonth'
458
- this.sqlName = 'manage_webMeterUserGasQueryHisMonth'
459
- }
460
- }
461
- }
462
- }
463
- </script>
464
- <style>
465
- .datapanel {
466
- color: #333;
467
- background-color: white;
468
- padding: 10px 20px;
469
- border-radius: 15px;
470
- }
471
- </style>
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-inline auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label class="font_normal_body">客户编号</label>
11
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
12
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
13
+ </div>
14
+ <div class="col-sm-2 form-group">
15
+ <label class="font_normal_body">客户名称</label>
16
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
17
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
18
+ </div>
19
+ <div class="span" style="float:right;">
20
+ <button class="button_search button_spacing" @click="search()">查询</button>
21
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
22
+ <button :class="!$parent.$parent.isCurrentMonth ? 'button_new' : 'button_search button_spacing'"
23
+ @click="$parent.$parent.currentMonth()">
24
+ 查询当月
25
+ </button>
26
+ <button :class="$parent.$parent.isCurrentMonth ? 'button_new' : 'button_search button_spacing'"
27
+ @click="$parent.$parent.historyMonth()">
28
+ 历史查询
29
+ </button>
30
+ <export-excel :data="$parent.$parent.getCondition"
31
+ :field="$parent.$parent.getfield"
32
+ sqlurl="api/af-revenue/logic/openapi/exportfile"
33
+ :sql-name="$parent.$parent.sqlName"
34
+ template-name='物联网表月日用气报表'
35
+ :choose-col="true">
36
+ </export-excel>
37
+ <div style="float: right" class="button_spacing"
38
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
39
+ @click="$parent.$parent.hidden()"></div>
40
+ </div>
41
+ </div>
42
+ <div class="row" v-show="$parent.$parent.criteriaShow">
43
+ <res-select-group :show-component="$parent.$parent.resshow"
44
+ :selectin="true"
45
+ :initres="$parent.$parent.initres"
46
+ @re-res="$parent.$parent.getRes"
47
+ v-ref:sel>
48
+ </res-select-group>
49
+ <div class="col-sm-2 form-group">
50
+ <label class="font_normal_body">客户地址</label>
51
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
52
+ condition="f_address like '%{}%'" placeholder='客户地址'>
53
+ </div>
54
+ <div class="col-sm-2 form-group">
55
+ <label class="font_normal_body">用气性质</label>
56
+ <v-select :options='$parent.$parent.gasproperties'
57
+ :value.sync="model.f_gasproperties"
58
+ close-on-select
59
+ condition="f_gasproperties = '{}'"
60
+ placeholder='用气性质'
61
+ style="width:60%"
62
+ v-model="model.f_gasproperties"
63
+ value-single="true">
64
+ </v-select>
65
+ </div>
66
+ <div class="col-sm-2 form-group">
67
+ <label class="font_normal_body">气表品牌</label>
68
+ <v-select :value.sync="model.f_meter_brand"
69
+ v-model="model.f_meter_brand"
70
+ :options='$parent.$parent.meterbrands'
71
+ placeholder='请选择'
72
+ condition="f_meter_brand = '{}'"
73
+ close-on-select></v-select>
74
+ </div>
75
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
76
+ <label class="font_normal_body">累计用气量</label>
77
+ <div class="row">
78
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_total_gas1"
79
+ condition="f_total_gas >= {} " placeholder="">
80
+ <label class="font_normal_body"> ≤ x ≤ </label>
81
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_total_gas2"
82
+ condition="f_total_gas <= {} " placeholder="">
83
+ </div>
84
+ </div>
85
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
86
+ <label class="font_normal_body">日均用气量</label>
87
+ <div class="row">
88
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_day_gas1"
89
+ condition="f_day_gas >= {} " placeholder="">
90
+ <label class="font_normal_body"> ≤ x ≤ </label>
91
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_day_gas2"
92
+ condition="f_day_gas <= {} " placeholder="">
93
+ </div>
94
+ </div>
95
+ <div class="col-sm-2 form-group" v-show="!$parent.$parent.isCurrentMonth">
96
+ <label for="startDate" class="font_normal_body">开始月份</label>
97
+ <datepicker id="startDate"
98
+ placeholder="开始月份"
99
+ style="width:60%"
100
+ v-model="model.startMonth"
101
+ :value.sync="model.startMonth"
102
+ :format="'yyyy-MM'"
103
+ :show-reset-button="true"
104
+ >
105
+ </datepicker>
106
+ </div>
107
+ <div class="col-sm-2 form-group" v-show="!$parent.$parent.isCurrentMonth">
108
+ <label for="endDate" class="font_normal_body">结束月份</label>
109
+ <datepicker id="endDate"
110
+ placeholder="结束月份"
111
+ style="width:60%"
112
+ v-model="model.endMonth"
113
+ :value.sync="model.endMonth"
114
+ :format="'yyyy-MM'"
115
+ :show-reset-button="true"
116
+ >
117
+ </datepicker>
118
+ </div>
119
+ <div class="col-sm-2 form-group" v-show="$parent.$parent.isCurrentMonth">
120
+ <label for="startDate" class="font_normal_body">开始日期</label>
121
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
122
+ v-model="model.startDate"
123
+ :value.sync="model.startDate"
124
+ :format="'yyyy-MM-dd'"
125
+ :disabled="true"
126
+ :show-reset-button="true"
127
+ >
128
+ </datepicker>
129
+ </div>
130
+ <div class="col-sm-2 form-group" v-show="$parent.$parent.isCurrentMonth">
131
+ <label for="endDate" class="font_normal_body">结束日期</label>
132
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
133
+ v-model="model.endDate"
134
+ :value.sync="model.endDate"
135
+ :format="'yyyy-MM-dd'"
136
+ :disabled="true"
137
+ :show-reset-button="true"
138
+ >
139
+ </datepicker>
140
+ </div>
141
+ </div>
142
+ </div>
143
+ </criteria>
144
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
145
+ <template partial='head'>
146
+ <tr>
147
+ <th>
148
+ <nobr>月份</nobr>
149
+ </th>
150
+ <th>
151
+ <nobr>用户编号</nobr>
152
+ </th>
153
+ <th>
154
+ <nobr>用户姓名</nobr>
155
+ </th>
156
+ <th>
157
+ <nobr>用户电话</nobr>
158
+ </th>
159
+ <th>
160
+ <nobr>用户地址</nobr>
161
+ </th>
162
+ <th>
163
+ <nobr>用气性质</nobr>
164
+ </th>
165
+ <th>
166
+ <nobr>计费类型</nobr>
167
+ </th>
168
+ <th>
169
+ <nobr>表具品牌</nobr>
170
+ </th>
171
+ <th>
172
+ <nobr>累计用气量(方)</nobr>
173
+ </th>
174
+ <th>
175
+ <nobr>本月用气量(方)</nobr>
176
+ </th>
177
+ <th>
178
+ <nobr>日均用气量(方)</nobr>
179
+ </th>
180
+ </tr>
181
+ </template>
182
+ <template partial='body'>
183
+ <td style="text-align: center;">
184
+ <nobr>{{ row.f_month }}</nobr>
185
+ </td>
186
+ <td style="text-align: center;">
187
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
188
+ </td>
189
+ <td style="text-align: center;">
190
+ <nobr>{{ row.f_user_name }}</nobr>
191
+ </td>
192
+ <td style="text-align: center;">
193
+ <nobr>{{ row.f_user_phone }}</nobr>
194
+ </td>
195
+ <td style="text-align: center;">
196
+ <nobr>{{ row.f_address }}</nobr>
197
+ </td>
198
+ <td style="text-align: center;">
199
+ <nobr>{{ row.f_gasproperties }}</nobr>
200
+ </td>
201
+ <td style="text-align: center;">
202
+ <nobr>{{ row.f_calculation }}</nobr>
203
+ </td>
204
+ <td style="text-align: center;">
205
+ <nobr>{{ row.f_meter_brand }}</nobr>
206
+ </td>
207
+ <td style="text-align: center;">
208
+ <nobr>{{ row.f_total_gas }}</nobr>
209
+ </td>
210
+ <td style="text-align: center;">
211
+ <nobr>{{ row.f_month_gas }}</nobr>
212
+ </td>
213
+ <td style="text-align: center;">
214
+ <nobr>{{ row.f_day_gas }}</nobr>
215
+ </td>
216
+ </template>
217
+ <template partial='foot'></template>
218
+ </data-grid>
219
+ </criteria-paged>
220
+ </div>
221
+ <div v-if="show">
222
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id"
223
+ @cancel-main="cancel">
224
+ </user-info-detail-manage-new>
225
+ </div>
226
+ </div>
227
+ </div>
228
+ </template>
229
+ <script>
230
+ import {PagedList} from 'vue-client'
231
+ import exportConfig from '../../../components/sale/config/exportConfig'
232
+ import plugins from "../../../plugins/GetLoginInfoService";
233
+
234
+
235
+ let readySomething = async function (self) {
236
+ self.initDate()
237
+ await self.$MagLoadParams.loadParam()
238
+ self.initParams()
239
+ }
240
+ export default {
241
+ title: '物联网表月用气查询',
242
+ name: 'WebMeterMonthUserGasQuery',
243
+ data() {
244
+ return {
245
+ model: new PagedList('api/af-revenue/sql/manage_webMeterUserGasQueryCurrMonth', 20),
246
+ initres: {
247
+ org: [this.$login.f.orgid]
248
+ },
249
+ sqlName: 'manage_webMeterUserGasQueryCurrMonth',
250
+ resshow: ['company'],
251
+ isCurrentMonth: true,
252
+ other: [],
253
+ footer: [],
254
+ rowdata: {},
255
+ gasproperties: [],
256
+ show: false,
257
+ criteriaShow: false,
258
+ orgCondtionStr: '',
259
+ modelval: [],
260
+ condition: '',
261
+ printshow: false,
262
+ all: false,
263
+ fields: {},
264
+ thead: '',
265
+ tfoot: '',
266
+ defaultfield: [],
267
+ f_filialeid: this.$login.f.f_orgid,
268
+ f_orgid: this.$login.f.orgid,
269
+ f_depid: this.$login.f.depids,
270
+ f_operatorid: this.$login.f.id,
271
+ }
272
+ },
273
+ ready() {
274
+ readySomething(this)
275
+ },
276
+ methods: {
277
+ initDate () {
278
+ this.$refs.paged.$refs.cri.model.startDate = this.$login.toStartAndEndDateString()[0]
279
+ this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
280
+ },
281
+ initParams() {
282
+ // 初始化气表品牌
283
+ let brandArr = []
284
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
285
+ if (item.value.f_meter_type === '物联网表') {
286
+ let temp = {}
287
+ temp.label = item.label
288
+ temp.value = item.value.f_meter_brand
289
+ brandArr.push(temp)
290
+ }
291
+ })
292
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
293
+ },
294
+ currentMonth() {
295
+ this.isCurrentMonth = true
296
+ },
297
+ historyMonth() {
298
+ this.isCurrentMonth = false
299
+ },
300
+ // 加载抄表册
301
+ loadMeterBooks() {
302
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
303
+ },
304
+ getotherfooter() {
305
+ this.other = [];
306
+ this.footer = [];
307
+ let otherInData = [];
308
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
309
+ let footerData = [], exportfield = this.getfield;
310
+ footerData.push("合计");
311
+ let self = this;
312
+ for (var field in self.sumsmodel) {
313
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
314
+ }
315
+ this.footer.push(footerData);
316
+ this.other.push(otherInData);
317
+ },
318
+ search() {
319
+ this.$refs.paged.$refs.cri.search()
320
+ },
321
+ cancel() {
322
+ this.show = false
323
+ },
324
+ areBothMonthsBeforeCurrent(dateStr1, dateStr2) {
325
+ let now = new Date();
326
+ let currentMonthStart = new Date(now.getFullYear(), now.getMonth(), 1)
327
+ // 将字符串转换为标准日期对象,这里采用'yyyy-MM'格式避免潜在的解析问题
328
+ let date1 = new Date(dateStr1.replace(/-/g, '/'))
329
+ let date2 = new Date(dateStr2.replace(/-/g, '/'))
330
+ // 比较两个日期是否都在当前月份之前
331
+ return date1 < currentMonthStart && date2 < currentMonthStart
332
+ },
333
+ getLastDayOfMonth(dateString) {
334
+ // 分割字符串获取年和月
335
+ let [year, month] = dateString.split('-')
336
+ // 创建一个新日期对象,注意月份需要减1
337
+ let date = new Date(parseInt(year), parseInt(month) - 1, 1)
338
+ // 获取下一个月的第一天,然后回退一天得到本月最后一天
339
+ date.setMonth(date.getMonth() + 1)
340
+ date.setDate(date.getDate() - 1)
341
+ // 格式化为 "yyyy-mm-dd"
342
+ return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date.getDate().toString().padStart(2, '0')}`
343
+ },
344
+ selfSearch(args) {
345
+ if (!this.orgCondtionStr) {
346
+ args.condition = `${args.condition} and f_orgid = '${this.$login.f.orgid}'`
347
+ } else {
348
+ args.condition = args.condition + this.orgCondtionStr
349
+ }
350
+ if (this.isCurrentMonth ) {
351
+ this.model.params.startDate = this.$refs.paged.$refs.cri.model.startDate
352
+ this.model.params.endDate = this.$refs.paged.$refs.cri.model.endDate
353
+ } else {
354
+ if (this.$refs.paged.$refs.cri.model.startMonth && this.$refs.paged.$refs.cri.model.endMonth) {
355
+ // 需要判断是选择月份
356
+ if (this.areBothMonthsBeforeCurrent(this.$refs.paged.$refs.cri.model.startMonth,this.$refs.paged.$refs.cri.model.endMonth)) {
357
+ this.model.params.startDate = this.$refs.paged.$refs.cri.model.startMonth + '-01'
358
+ this.model.params.endDate = this.getLastDayOfMonth(this.$refs.paged.$refs.cri.model.endMonth)
359
+ }else {
360
+ this.$showMessage('请选择小于当前月份的开始月份和结束月份来查询历史数据!')
361
+ return
362
+ }
363
+ } else {
364
+ this.$showMessage('请选择开始月份和结束月份后再进行查询')
365
+ return
366
+ }
367
+ }
368
+ this.condition = args.condition
369
+ this.model.search(args.condition, args.model)
370
+ },
371
+ clear() {
372
+ //清空部门和人员
373
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
374
+ //部门和人员变为全选
375
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
376
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
377
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
378
+ this.$refs.paged.$refs.cri.model[key] = []
379
+ })
380
+ },
381
+ show() {
382
+ this.criteriaShow = true
383
+ },
384
+ hidden() {
385
+ this.criteriaShow = !this.criteriaShow
386
+ },
387
+ showmsg(obj) {
388
+ this.rowdata = obj
389
+ this.show = true
390
+ },
391
+ getRes(condition, obj) {
392
+ this.orgCondtionStr = condition
393
+ },
394
+ put() {
395
+ // 对Modelval进行排序
396
+ this.sortModelval()
397
+ this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
398
+ for (let key of this.modelval) {
399
+ this.thead += '<th>' + this.fields[key] + '</th>'
400
+ }
401
+ this.thead += '</tr>'
402
+ },
403
+ print() {
404
+ this.$refs.print.PrintAsFile()
405
+ this.printshow = false
406
+ },
407
+ dealmsg(val) {
408
+ this.rowdata = val
409
+ this.show = true
410
+ val.model = this.model.model
411
+ this.$dispatch('deal-msg', val)
412
+ },
413
+ close() {
414
+ this.printshow = false
415
+ this.all = false
416
+ },
417
+ // 对选择的列进行排序
418
+ sortModelval() {
419
+ let sortModel = []
420
+ Object.keys(this.fields).forEach((key) => {
421
+ if (this.modelval.includes(key)) {
422
+ sortModel.push(key)
423
+ }
424
+ })
425
+ this.modelval = sortModel
426
+ console.log('选择的打印的字段', this.modelval)
427
+ }
428
+ },
429
+ computed: {
430
+ metertype() {
431
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
432
+ },
433
+ gasproperties() {
434
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
435
+ },
436
+ getCondition() {
437
+ return {
438
+ condition: this.condition,
439
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
440
+ endDate: this.$refs.paged.$refs.cri.model.endDate
441
+ }
442
+ },
443
+ getfield() {
444
+ return exportConfig.webMeterMonthUserGasConfig
445
+ },
446
+ usertypes() {
447
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
448
+ },
449
+ },
450
+ events: {},
451
+ watch: {
452
+ 'isCurrentMonth' () {
453
+ if (this.isCurrentMonth) {
454
+ this.model.url = this.url = 'api/af-revenue/sql/manage_webMeterUserGasQueryCurrMonth'
455
+ this.sqlName = 'manage_webMeterUserGasQueryCurrMonth'
456
+ } else {
457
+ this.model.url = this.url = 'api/af-revenue/sql/manage_webMeterUserGasQueryHisMonth'
458
+ this.sqlName = 'manage_webMeterUserGasQueryHisMonth'
459
+ }
460
+ }
461
+ }
462
+ }
463
+ </script>
464
+ <style>
465
+ .datapanel {
466
+ color: #333;
467
+ background-color: white;
468
+ padding: 10px 20px;
469
+ border-radius: 15px;
470
+ }
471
+ </style>