manage-client 3.2.89-aode → 3.2.89-aodeToV4

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 (308) hide show
  1. package/.classpath +6 -6
  2. package/.eslintrc.js +16 -16
  3. package/.project +18 -18
  4. package/CHANGELOG.md +13 -13
  5. package/DOC//345/212/237/350/203/275/350/257/264/346/230/216.md +13 -13
  6. package/DOC//347/211/210/346/234/254/344/277/241/346/201/257.md +8 -8
  7. package/ManageClient.iml +12 -12
  8. package/build/dev-server.js +193 -193
  9. package/build/webpack.base.conf.js +80 -80
  10. package/build.gradle +13 -13
  11. package/config/index.js +38 -38
  12. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  13. package/gradlew +234 -234
  14. package/gradlew.bat +89 -89
  15. package/package.json +101 -101
  16. package/src/App.vue +28 -28
  17. package/src/ManageHome.js +269 -269
  18. package/src/Staff/StaffCompileList.vue +334 -334
  19. package/src/Staff/StaffList.vue +161 -161
  20. package/src/Util.js +383 -383
  21. package/src/components/ManageHome/Drill/DrillList.vue +320 -320
  22. package/src/components/ManageHome/Home/CallCenter.vue +124 -124
  23. package/src/components/ManageHome/Home/Monitor.vue +329 -329
  24. package/src/components/ManageHome/Home/UserModule.vue +367 -367
  25. package/src/components/ManageHome/ImportSupplygas/AddSupply.vue +206 -206
  26. package/src/components/ManageHome/ImportSupplygas/SupplySelect.vue +85 -85
  27. package/src/components/ManageHome/ImportSupplygas/UpdateSupply.vue +187 -187
  28. package/src/components/ManageHome/Monitor/NoContact.vue +232 -232
  29. package/src/components/ManageHome/NetWork/LineInspection.vue +267 -267
  30. package/src/components/ManageHome/NetWork/NetDanger.vue +258 -258
  31. package/src/components/ManageHomeCS/CustomerService/ContentmentStatistics.vue +161 -161
  32. package/src/components/ManageHomeCS/CustomerService/ExcepCollect.vue +201 -201
  33. package/src/components/ManageHomeCS/CustomerService/ReasonComplaint.vue +116 -116
  34. package/src/components/ManageHomeCS/CustomerService/ReasonConsultation.vue +115 -115
  35. package/src/components/ManageHomeCS/CustomerService/ServiceFix.vue +195 -195
  36. package/src/components/ManageHomeCS/CustomerService/ServiceHome.vue +177 -177
  37. package/src/components/ManageHomeCS/CustomerService/ServiceStatistics.vue +173 -173
  38. package/src/components/ManageHomeCS/Drill/DrillData.vue +792 -792
  39. package/src/components/ManageHomeCS/Drill/DrillList.vue +320 -320
  40. package/src/components/ManageHomeCS/Home/CallCenter.vue +191 -191
  41. package/src/components/ManageHomeCS/Home/GasValue.vue +377 -377
  42. package/src/components/ManageHomeCS/Home/Home.vue +55 -55
  43. package/src/components/ManageHomeCS/Home/Monitor.vue +415 -415
  44. package/src/components/ManageHomeCS/Home/NetWork.vue +223 -223
  45. package/src/components/ManageHomeCS/Home/SafeCheck.vue +443 -443
  46. package/src/components/ManageHomeCS/Home/UserModule.vue +527 -527
  47. package/src/components/ManageHomeCS/ImportSupplygas/AddSupply.vue +206 -206
  48. package/src/components/ManageHomeCS/ImportSupplygas/SupplySelect.vue +85 -85
  49. package/src/components/ManageHomeCS/ImportSupplygas/UpdateSupply.vue +187 -187
  50. package/src/components/ManageHomeCS/ManageHome.vue +149 -149
  51. package/src/components/ManageHomeCS/Monitor/Caveat.vue +301 -301
  52. package/src/components/ManageHomeCS/Monitor/ComparedGas.vue +264 -264
  53. package/src/components/ManageHomeCS/Monitor/MeterBrand.vue +221 -221
  54. package/src/components/ManageHomeCS/Monitor/MonitorCenter.vue +136 -136
  55. package/src/components/ManageHomeCS/Monitor/MonitorHome.vue +188 -188
  56. package/src/components/ManageHomeCS/Monitor/NoBuyGas.vue +233 -233
  57. package/src/components/ManageHomeCS/Monitor/NoContact.vue +246 -246
  58. package/src/components/ManageHomeCS/Monitor/NoGas.vue +212 -212
  59. package/src/components/ManageHomeCS/NetWork/LineInspection.vue +268 -268
  60. package/src/components/ManageHomeCS/NetWork/NetDanger.vue +258 -258
  61. package/src/components/ManageHomeCS/NetWork/NetHome.vue +108 -108
  62. package/src/components/ManageHomeCS/NetWork/NetWork.vue +222 -222
  63. package/src/components/ManageHomeCS/NetWork/NetWorkMap.vue +86 -86
  64. package/src/components/ManageHomeCS/NewHome/NewManageHome.vue +64 -64
  65. package/src/components/ManageHomeCS/NewHome/TextBusiness.vue +340 -340
  66. package/src/components/ManageHomeCS/NewHome/TextChildsellgas.vue +206 -206
  67. package/src/components/ManageHomeCS/NewHome/TextProfit.vue +275 -275
  68. package/src/components/ManageHomeCS/NewHome/TextSellgas.vue +79 -79
  69. package/src/components/ManageHomeCS/NewHome/TextShanximap.vue +389 -389
  70. package/src/components/ManageHomeCS/NewHome/TextTotalsellgas.vue +403 -403
  71. package/src/components/ManageHomeCS/NewHome/TextUser.vue +298 -298
  72. package/src/components/ManageHomeCS/NewHome/shanxi.vue +437 -437
  73. package/src/components/ManageHomeCS/SecurityCheck/CustomerType.vue +246 -246
  74. package/src/components/ManageHomeCS/SecurityCheck/LatentDanger.vue +263 -263
  75. package/src/components/ManageHomeCS/SecurityCheck/PlanStatistics.vue +306 -306
  76. package/src/components/ManageHomeCS/User/GasDistri.vue +343 -343
  77. package/src/components/ManageHomeCS/User/InspecDistri.vue +348 -348
  78. package/src/components/ManageHomeCS/User/SaleProportion.vue +336 -336
  79. package/src/components/ManageHomeCS/User/UseHome.vue +154 -154
  80. package/src/components/ManageHomeCS/User/UserGascontrast.vue +224 -224
  81. package/src/components/ManageHomeCS/User/UserNumber.vue +599 -599
  82. package/src/components/ManageHomeCS/User/UsernumIncrease.vue +277 -277
  83. package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
  84. package/src/components/MeterManage/ChargeQuery.vue +79 -79
  85. package/src/components/MeterManage/FillCardQuery.vue +80 -80
  86. package/src/components/MeterManage/FillGasQuery.vue +80 -80
  87. package/src/components/MeterManage/HandQuery.vue +72 -72
  88. package/src/components/MeterManage/MeterList.vue +336 -336
  89. package/src/components/MeterManage/MeterMsg.vue +181 -181
  90. package/src/components/MeterManage/OtherChargeQuery.vue +78 -78
  91. package/src/components/MeterManage/ReversalQuery.vue +77 -77
  92. package/src/components/MeterManage/TransferQuery.vue +72 -72
  93. package/src/components/SellReport/BankManager.vue +146 -146
  94. package/src/components/SellReport/BonSummary.vue +182 -182
  95. package/src/components/SellReport/BusSummary.vue +238 -238
  96. package/src/components/SellReport/ChargeBill.vue +186 -186
  97. package/src/components/SellReport/CollectFee.vue +184 -184
  98. package/src/components/SellReport/Contrast.vue +188 -188
  99. package/src/components/SellReport/FenxiangSell.vue +183 -183
  100. package/src/components/SellReport/GasCollect.vue +174 -174
  101. package/src/components/SellReport/GasPrice.vue +183 -183
  102. package/src/components/SellReport/GaspriceHas.vue +141 -141
  103. package/src/components/SellReport/GetSummary.vue +186 -186
  104. package/src/components/SellReport/GetUserNum.vue +166 -166
  105. package/src/components/SellReport/HandCollect.vue +189 -189
  106. package/src/components/SellReport/HandplanBili.vue +73 -73
  107. package/src/components/SellReport/JinChengBusSummary.vue +182 -182
  108. package/src/components/SellReport/JinChengHandGas.vue +182 -182
  109. package/src/components/SellReport/JinChengOperSummary.vue +182 -182
  110. package/src/components/SellReport/JinChengSliceSumgas.vue +182 -182
  111. package/src/components/SellReport/ManageBusSummary.vue +241 -241
  112. package/src/components/SellReport/ManageGasPrice.vue +183 -183
  113. package/src/components/SellReport/ManageHandInputtor.vue +241 -241
  114. package/src/components/SellReport/ManageMonthGas.vue +181 -181
  115. package/src/components/SellReport/ManageNewGasPrice.vue +240 -240
  116. package/src/components/SellReport/ManageSellType.vue +183 -183
  117. package/src/components/SellReport/ManageUserCollect.vue +177 -177
  118. package/src/components/SellReport/MeterBill.vue +185 -185
  119. package/src/components/SellReport/MeterInput.vue +185 -185
  120. package/src/components/SellReport/MeterReader.vue +203 -203
  121. package/src/components/SellReport/OweAging.vue +174 -174
  122. package/src/components/SellReport/QTXManageBusSummary.vue +234 -234
  123. package/src/components/SellReport/RefundQuery.vue +237 -237
  124. package/src/components/SellReport/ReportHistory.vue +80 -80
  125. package/src/components/SellReport/ReportItems.vue +39 -39
  126. package/src/components/SellReport/ReportPool.vue +40 -40
  127. package/src/components/SellReport/Selling.vue +188 -188
  128. package/src/components/SellReport/SiteManager.vue +151 -151
  129. package/src/components/SellReport/UsertypePie.vue +99 -99
  130. package/src/components/SellReport/VolumeStatistics.vue +226 -226
  131. package/src/components/SellReport/YuShou.vue +185 -185
  132. package/src/components/SellReport/getWebReport.vue +181 -181
  133. package/src/components/SellReport/jingwei/CardCharge.vue +142 -142
  134. package/src/components/SellReport/jingwei/MachineCharge.vue +141 -141
  135. package/src/components/SellReport/jingwei/PaymentNotice.vue +316 -316
  136. package/src/components/SellReport/jingwei/handplanReport.vue +229 -225
  137. package/src/components/TelReport/TrafficAssess.vue +99 -99
  138. package/src/components/TelReport/TrafficBasic.vue +117 -117
  139. package/src/components/TelReport/ZhiHuanservice.vue +147 -147
  140. package/src/components/WebReport/AbnormalInfo.vue +197 -197
  141. package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
  142. package/src/components/WebReport/BatteryLow.vue +148 -148
  143. package/src/components/WebReport/BussinessType.vue +140 -140
  144. package/src/components/WebReport/Communication.vue +131 -131
  145. package/src/components/WebReport/EchartsBox.vue +110 -110
  146. package/src/components/WebReport/ElectroMagnetic.vue +142 -142
  147. package/src/components/WebReport/GaspriceHas.vue +141 -141
  148. package/src/components/WebReport/HandplanPrint.vue +167 -167
  149. package/src/components/WebReport/NotUpload.vue +165 -165
  150. package/src/components/WebReport/OweQuery.vue +169 -169
  151. package/src/components/WebReport/Paymentpie.vue +160 -160
  152. package/src/components/WebReport/ReportWorklist.vue +220 -220
  153. package/src/components/WebReport/SellType.vue +89 -89
  154. package/src/components/WebReport/Telemanlist.vue +221 -221
  155. package/src/components/WebReport/UserGasAll.vue +214 -214
  156. package/src/components/WebReport/UserGasEcharts.vue +107 -107
  157. package/src/components/WebReport/UsertypePie.vue +105 -105
  158. package/src/components/WebReport/ValueEcharts.vue +99 -99
  159. package/src/components/WebReport/ValueInfo.vue +194 -194
  160. package/src/components/safecheck/analysis/SafeHiddenAnaly.vue +932 -932
  161. package/src/components/sale/businessquery/BusinessManage.vue +109 -109
  162. package/src/components/sale/businessquery/CancelChargeQuery.vue +650 -650
  163. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  164. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  165. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  166. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  167. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  168. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  169. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  170. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  171. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  172. package/src/components/sale/businessquery/InspectListUser.vue +366 -366
  173. package/src/components/sale/businessquery/InspectManage.vue +37 -37
  174. package/src/components/sale/businessquery/NewAccountQuery.vue +511 -511
  175. package/src/components/sale/businessquery/OtherChargeDetailQuery.vue +70 -70
  176. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  177. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  178. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  179. package/src/components/sale/businessquery/SellingHand.vue +340 -340
  180. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  181. package/src/components/sale/businessquery/errorHandplanQuery.vue +246 -246
  182. package/src/components/sale/businessquery/ncpushQuery.vue +304 -304
  183. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  184. package/src/components/sale/common/TabButton.vue +149 -149
  185. package/src/components/sale/common/Tabs.vue +67 -67
  186. package/src/components/sale/config/exportConfig.js +271 -271
  187. package/src/components/sale/filesquery/ArchivesManage.vue +35 -35
  188. package/src/components/sale/filesquery/ChangeUserQuery.vue +396 -396
  189. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  190. package/src/components/sale/filesquery/MeterQuery.vue +613 -613
  191. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  192. package/src/components/sale/filesquery/detail/UserBaseInfo.vue +69 -69
  193. package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
  194. package/src/components/sale/filesquery/detail/oper/ExchangeOper.vue +66 -66
  195. package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
  196. package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
  197. package/src/components/sale/filesquery/detail/oper/OtherCharge.vue +54 -54
  198. package/src/components/sale/filesquery/detail/oper/ReplaceCard.vue +51 -51
  199. package/src/components/sale/filesquery/detail/oper/SellOper.vue +56 -56
  200. package/src/components/sale/filesquery/detail/oper/TransferMessage.vue +55 -55
  201. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  202. package/src/components/sale/filesquery/filequerydetail/ChangeMeterQueryDetail.vue +246 -246
  203. package/src/components/sale/filesquery/filequerydetail/ChargeQueryDetail.vue +239 -239
  204. package/src/components/sale/filesquery/filequerydetail/DeviceQueryDetail.vue +126 -126
  205. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  206. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  207. package/src/components/sale/filesquery/filequerydetail/FillCardQueryDetail.vue +80 -80
  208. package/src/components/sale/filesquery/filequerydetail/FillGasQueryDetail.vue +80 -80
  209. package/src/components/sale/filesquery/filequerydetail/HandQueryDetail.vue +302 -302
  210. package/src/components/sale/filesquery/filequerydetail/MeterQueryDetail.vue +158 -158
  211. package/src/components/sale/filesquery/filequerydetail/OtherChargeQueryDetail.vue +198 -198
  212. package/src/components/sale/filesquery/filequerydetail/RecordQueryDetail.vue +125 -125
  213. package/src/components/sale/filesquery/filequerydetail/SellingHandDetail.vue +280 -280
  214. package/src/components/sale/filesquery/filequerydetail/TransferQueryDetail.vue +160 -160
  215. package/src/components/sale/filesquery/filequerydetail/UserQueryDetail.vue +155 -155
  216. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  217. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  218. package/src/components/sale/ncpush/ncpushmanage/NCpushManage.vue +50 -50
  219. package/src/components/sale/ncpush/ncpushmanage/NCpushSummary.vue +110 -110
  220. package/src/components/sale/ncpush/ncrecord/pushRecordQuery.vue +252 -252
  221. package/src/components/sale/ncpush/ncrecord/pushbilldatalist.vue +166 -166
  222. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  223. package/src/components/sale/ncpush/pushconfirmManage.vue +271 -271
  224. package/src/components/sale/ncpush/pushconfirmadd.vue +420 -420
  225. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  226. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  227. package/src/components/sale/report/aode/DayReport.vue +50 -50
  228. package/src/components/sale/report/aode/DayReportList.vue +553 -553
  229. package/src/components/sale/report/aode/DayReportSummary.vue +112 -112
  230. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  231. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  232. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  233. package/src/components/sale/report/aode/YearByUserType.vue +351 -351
  234. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  235. package/src/components/sale/report/aode/iot/ReportQuery.vue +387 -387
  236. package/src/components/sale/report/aode/life/LifeDayReportList.vue +324 -324
  237. package/src/components/sale/report/aode/life/LifeMonthReport.vue +487 -487
  238. package/src/components/sale/report/aode/life/LifeYearReport.vue +216 -216
  239. package/src/components/sale/report/aode/othercharge/OtherDayReport.vue +50 -50
  240. package/src/components/sale/report/aode/othercharge/OtherDayReportList.vue +414 -414
  241. package/src/components/sale/report/aode/othercharge/OtherDayReportListPrint.vue +240 -240
  242. package/src/components/sale/report/aode/othercharge/OtherDayReportSummary.vue +68 -68
  243. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  244. package/src/components/sale/report/aode/widget/DayReportListPrint.vue +310 -310
  245. package/src/components/sale/report/aode/widget/LifeDayReportListPrint.vue +233 -233
  246. package/src/components/sale/report/aode/widget/LifeMonthPrint.vue +170 -170
  247. package/src/components/sale/report/aode/widget/LifeYearPrint.vue +160 -160
  248. package/src/components/sale/report/aode/widget/MonthByChargePrint.vue +246 -246
  249. package/src/components/sale/report/aode/widget/MonthByUserPrint.vue +232 -232
  250. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  251. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  252. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  253. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  254. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  255. package/src/components/webmeter/DrillData/LargeScreenAnalysisEcharts.vue +710 -710
  256. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  257. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -559
  258. package/src/components/webmeter/DrillData/LostContactEcharts.vue +159 -159
  259. package/src/components/webmeter/DrillData/LostContactEform.vue +190 -190
  260. package/src/components/webmeter/DrillData/NewUserGasAll.vue +592 -592
  261. package/src/components/webmeter/DrillData/UserGasAll.vue +538 -538
  262. package/src/components/webmeter/DrillData/UserGasEcharts.vue +209 -209
  263. package/src/components/webmeter/DrillData/UserGasEform.vue +226 -226
  264. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +527 -527
  265. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  266. package/src/components/webmeter/IOTArrears/arrears.vue +325 -325
  267. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +378 -378
  268. package/src/components/webmeter/IOTArrears/valueConfig.js +14 -14
  269. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  270. package/src/components/webmeter/OperatorCount.vue +189 -189
  271. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  272. package/src/components/webmeter/WebmeterHandplanQuery2CK.vue +663 -663
  273. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  274. package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
  275. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  276. package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
  277. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  278. package/src/components/webmeter/indicatorStatisticsEchars.vue +204 -204
  279. package/src/components/webmeter/indicatorStatisticsMain.vue +257 -257
  280. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +712 -712
  281. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
  282. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEformTotal.vue +211 -211
  283. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  284. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +511 -459
  285. package/src/components/webmeter/newwebmeter/NewWebUserHand.vue +324 -324
  286. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  287. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +245 -245
  288. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  289. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +286 -286
  290. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  291. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +258 -258
  292. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  293. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  294. package/src/components/webmeter/report/ReportList.vue +211 -211
  295. package/src/index.js +9 -9
  296. package/src/main.js +56 -56
  297. package/src/newmanage.js +288 -288
  298. package/src/plugins/GetLoginInfoService.js +505 -505
  299. package/src/plugins/LodopFuncs.js +124 -124
  300. package/src/reportManage.js +208 -208
  301. package/src/saleManage.js +263 -263
  302. package/src/stores/DataSql.js +585 -585
  303. package/src/stores/DrillECharts.js +601 -601
  304. package/src/stores/DrillSql.js +675 -675
  305. package/src/stores/MagGetSaleParams.js +138 -138
  306. package/src/stores/MagLoadParams.js +63 -63
  307. package/src/webmeterManage.js +99 -99
  308. package/yarn-error.log +7394 -7394
@@ -1,675 +1,675 @@
1
- // 当前时间
2
- var now = new Date()
3
-
4
-
5
- // 获取当前时间,格式'yyyy-mm-dd hh24-mm-ss'
6
- export function toStandardDateString() {
7
- let dt = new Date()
8
- let month = dt.getMonth() + 1
9
- let date = dt.getDate()
10
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
11
- }
12
-
13
- // 待传入sql中的开始时间
14
- export var startDate = ''
15
- // 待传入sql中的结束时间
16
- export var endDate = ''
17
-
18
- export var param = ''
19
- export var param1 = ''
20
- export var param2 = ''
21
-
22
-
23
- export var listparam = ''
24
- export var listparam1 = ''
25
-
26
-
27
- //获取钻取参数,title=所属钻取分类名,param1=一级钻取字段,param2=二级钻取字段,
28
- export function getDrillParameter(title, idname, param1, param2) {
29
-
30
- console.log(title, idname, param1, param2, this.param, this.param1, '钻取参数获取条件')
31
-
32
-
33
- // sql配置,items=查询列名,tablename=表名,condition=条件,
34
- // label:钻取字段名称,name:拼接sql列名,echartsType:图表类型, barparamif: 钻取点击控制,listif: 列表sql控制拼接一级类型,
35
- // dateif: 时间选择控制,dateparam: 选择时间查询的字段,listparam:列表特殊条件
36
- //inputchildren:输入框默认内容,柱状图特有(yname:柱状图yname,xname:柱状图xname,seriename:单系列时显示数据的名称)
37
- var sql = {
38
- /********************用户*********************/
39
- //用户传递
40
- user: {
41
- usernum: [
42
- //用户类型
43
- {
44
- label: "用户类型",
45
- value: Math.random(),
46
- name: 'f_user_type',
47
- echartsType: 'pie',
48
- barparamif: true,
49
- listif: true,
50
- dateif: false,
51
- dateparam: "f_createfile_date",
52
- sqlcondition: 'usernum',
53
- children: [
54
- //子列表
55
- //按年分类
56
- {
57
- label: "按年分类", value: Math.random(), name: 'year', echartsType: 'bar', dateif: false, namesubif: false,
58
- xname: '年', yname: '数量', seriename: '', dateparam: "f_createfile_date",
59
- sqlcondition:'useryear', listparam: '',
60
- },
61
- //按月分类
62
- {
63
- label: "按月分类", value: Math.random(), name: 'month', echartsType: 'bar', dateif: false, namesubif: false,
64
- xname: '月', yname: '数量', seriename: '', dateparam: "f_createfile_date",
65
- sqlcondition: 'usermonth', listparam: '',
66
- }],
67
- inputchildren: '',
68
- },
69
- //用气类型
70
- {
71
- label: "用气类型",
72
- value: Math.random(),
73
- name: 'f_gasproperties',
74
- echartsType: 'pie',
75
- barparamif: true,
76
- listif: true,
77
- dateif: false,
78
- xname: '',
79
- yname: '',
80
- dateparam: "f_createfile_date",
81
- sqlcondition: 'gasproperties',
82
- children: [
83
- //子列表
84
- //按年分类
85
- {
86
- label: "按年分类", value: Math.random(), name: 'year', echartsType: 'bar', dateif: false, namesubif: false,
87
- xname: '年', yname: '数量', seriename: '', dateparam: "f_createfile_date",
88
- sqlcondition: 'gaspropertiesyear', listparam: '',
89
- }
90
- ],
91
- inputchildren: '',
92
- }
93
- ],
94
- //主要用户
95
- mainuser: [
96
- {
97
- label: "全部",
98
- value: Math.random(),
99
- name: 'A.F_USER_TYPE is not null ',
100
- echartsType: 'bar',
101
- barparamif: true,
102
- listif: false,
103
- dateif: false, namesubif: true,
104
- xname: '', yname: '用气量',
105
- seriename: '用气量',
106
- dateparam: "a.f_delivery_date",
107
- sqlcondition:'mainuser',
108
- children: [],
109
- inputchildren: ''
110
- },
111
- {
112
- label: "民用",
113
- value: Math.random(),
114
- name: 'A.F_USER_TYPE=\'民用\'',
115
- echartsType: 'bar',
116
- barparamif: true,
117
- listif: false,
118
- dateif: false, namesubif: true,
119
- xname: '', yname: '用气量',
120
- seriename: '用气量',
121
- dateparam: "a.f_delivery_date",
122
- sqlcondition: 'mainuser',
123
- children: [],
124
- inputchildren: ''
125
- },
126
- {
127
- label: "非民用",
128
- value: Math.random(),
129
- name: 'A.F_USER_TYPE=\'非民用\'',
130
- echartsType: 'bar',
131
- barparamif: true,
132
- listif: false,
133
- dateif: false, namesubif: true,
134
- xname: '', yname: '用气量', seriename: '用气量',
135
-
136
- dateparam: "a.f_delivery_date",
137
- sqlcondition: 'mainuser',
138
- children: [],
139
- inputchildren: '',
140
- }
141
- // {
142
- // label: "民用锅炉",
143
- // value: Math.random(),
144
- // name: 'A.F_USER_TYPE=\'民用锅炉\'',
145
- // echartsType: 'bar',
146
- // barparamif: true,
147
- // listif: false,
148
- // dateif: false, namesubif: true,
149
- // xname: '', yname: '用气量', seriename: '用气量',
150
- // dateparam: "a.f_delivery_date",
151
- // sqlcondition:'mainuser',
152
- // children: [],
153
- // inputchildren: ''
154
- // }
155
- ]
156
- },
157
-
158
- // /********************监控*********************/
159
- // 监控
160
- monitor: {
161
- // 钻取告警
162
- caveat: [
163
- {
164
- label: "磁干扰",
165
- value: Math.random(),
166
- name: 'tm.f_magneticinterference = \'1\'',
167
- echartsType: 'bar',
168
- barparamif: false,
169
- listif: false,
170
- dateif: true,
171
- namesubif: false,
172
- xname: '月', yname: '客户数', seriename: '磁干扰',
173
- dateparam: "f_hand_date",
174
- sqlcondition: 'caveat',
175
- children: [],
176
- inputchildren: '',
177
- },
178
- {
179
- label: "报警关阀",
180
- value: Math.random(),
181
- name: 'tm.f_alarmshutvalve=\'1\'',
182
- echartsType: 'bar',
183
- barparamif: false,
184
- listif: false,
185
- dateif: true,
186
- namesubif: false,
187
- xname: '月', yname: '客户数', seriename: '报警关阀',
188
- dateparam: "f_hand_date",
189
- sqlcondition: 'caveat',
190
- children: [],
191
- inputchildren: '',
192
- },
193
- {
194
- label: "周期关阀",
195
- value: Math.random(),
196
- name: 'tm.f_cycleshutvalue=\'1\'',
197
- echartsType: 'bar',
198
- barparamif: false,
199
- listif: false,
200
- dateif: true,
201
- namesubif: false,
202
- xname: '月', yname: '客户数', seriename: '周期关阀',
203
- dateparam: "f_hand_date",
204
- sqlcondition: 'caveat',
205
- children: [],
206
- inputchildren: '',
207
- },
208
- {
209
- label: "过流保护关阀",
210
- value: Math.random(),
211
- name: 'tm.f_overcurrentprotection=\'1\'',
212
- echartsType: 'bar',
213
- barparamif: false,
214
- listif: false,
215
- dateif: true,
216
- namesubif: false,
217
- xname: '月', yname: '客户数', seriename: '过流保护关阀',
218
- dateparam: "f_hand_date",
219
- sqlcondition: 'caveat',
220
- children: [],
221
- inputchildren: '',
222
- }, {
223
- label: "关阀走气",
224
- value: Math.random(),
225
- name: 'tm.f_leakageflag=\'1\'',
226
- echartsType: 'bar',
227
- barparamif: false,
228
- listif: false,
229
- dateif: true,
230
- namesubif: false,
231
- xname: '月', yname: '客户数', seriename: '过流保护关阀',
232
- dateparam: "f_hand_date",
233
- sqlcondition: 'caveat',
234
- children: [],
235
- inputchildren: '',
236
- }
237
- ],
238
- // 钻取失联客户统计
239
- lossassociation: [
240
- {
241
- label: "全部",
242
- value: Math.random(),
243
- name: 'ti.f_user_type is not null ',
244
- echartsType: 'bar',
245
- barparamif: false,
246
- listif: false,
247
- dateif: true,
248
- namesubif: false,
249
- xname: '月', yname: '客户数', seriename: '客户数',
250
- dateparam: "al.f_hand_date",
251
- sqlcondition:'lossassociation',
252
- children: [],
253
- inputchildren: '',
254
- },
255
- {
256
- label: "民用",
257
- value: Math.random(),
258
- name: 'ti.f_user_type=\'民用\'',
259
- echartsType: 'bar',
260
- barparamif: false,
261
- listif: false,
262
- dateif: true,
263
- namesubif: false,
264
- xname: '月', yname: '客户数', seriename: '民用',
265
- dateparam: "al.f_hand_date",
266
- sqlcondition: 'lossassociation',
267
- children: [],
268
- inputchildren: '',
269
- },
270
- {
271
- label: "非民用",
272
- value: Math.random(),
273
- name: 'ti.f_user_type=\'非民用\'',
274
- echartsType: 'bar',
275
- barparamif: false,
276
- listif: false,
277
- dateif: true,
278
- namesubif: false,
279
- xname: '月', yname: '客户数', seriename: '民用',
280
- dateparam: "al.f_hand_date",
281
- sqlcondition: 'lossassociation',
282
- children: [],
283
- inputchildren: '',
284
- }
285
- ],
286
- // 钻取长期未用气用户统计
287
- longnotusegas: [
288
- {
289
- label: "全部",
290
- value: Math.random(),
291
- name: 'ti.f_user_type is not null',
292
- echartsType: 'bar',
293
- barparamif: false,
294
- listif: false,
295
- dateif: true,
296
- namesubif: false,
297
- xname: '月', yname: '用户数', seriename: '用户数',
298
- dateparam: "f_hand_date",
299
- sqlcondition: 'longnotusegas',
300
- children: [],
301
- inputchildren: '',
302
- },
303
- {
304
- label: "民用",
305
- value: Math.random(),
306
- name: 'ti.f_user_type=\'民用\'',
307
- echartsType: 'bar',
308
- barparamif: false,
309
- listif: false,
310
- dateif: true,
311
- namesubif: false,
312
- xname: '月', yname: '用户数', seriename: '民用',
313
- dateparam: "f_hand_date",
314
- sqlcondition:'longnotusegas',
315
- children: [],
316
- inputchildren: '',
317
- },
318
- {
319
- label: "非民用",
320
- value: Math.random(),
321
- name: 'ti.f_user_type=\'非民用\'',
322
- echartsType: 'bar',
323
- barparamif: false,
324
- listif: false,
325
- dateif: true,
326
- namesubif: false,
327
- xname: '月', yname: '用户数', seriename: '非民用',
328
- dateparam: "f_delivery_date",
329
- sqlcondition: 'longnotusegas',
330
- children: [],
331
- inputchildren: '',
332
- },
333
- ],
334
- // 钻取长期未购气
335
- longnotbuygas: [
336
- {
337
- label: "全部",
338
- value: Math.random(),
339
- name: 'ti.f_user_type is not null',
340
- echartsType: 'bar',
341
- barparamif: false,
342
- listif: false,
343
- dateif: true,
344
- namesubif: false,
345
- xname: '月', yname: '用户数', seriename: '',
346
- dateparam: "f_delivery_date",
347
- sqlcondition: 'longnotbuygas',
348
- children: [],
349
- inputchildren: '',
350
- },
351
- {
352
- label: "民用",
353
- value: Math.random(),
354
- name: 'ti.f_user_type=\'民用\'',
355
- echartsType: 'bar',
356
- barparamif: false,
357
- listif: false,
358
- dateif: true,
359
- namesubif: false,
360
- xname: '月', yname: '用户数', seriename: '',
361
- dateparam: "f_delivery_date",
362
- sqlcondition: 'longnotbuygas',
363
- children: [],
364
- inputchildren: '',
365
- }, {
366
- label: "非民用",
367
- value: Math.random(),
368
- name: 'ti.f_user_type=\'非民用\'',
369
- echartsType: 'bar',
370
- barparamif: false,
371
- listif: false,
372
- dateif: true,
373
- namesubif: false,
374
- xname: '月', yname: '用户数', seriename: '',
375
- dateparam: "f_delivery_date",
376
- sqlcondition: 'longnotbuygas',
377
- children: [],
378
- inputchildren: '',
379
- },
380
- ],
381
-
382
-
383
- // 钻取往期购气对比
384
- pastscale: [
385
- {
386
- label: "全部",
387
- value: Math.random(),
388
- name: 'ti.f_user_type is not null',
389
- echartsType: 'pie',
390
- barparamif: false,
391
- listif: false,
392
- dateif: true,
393
- dateparam: "f_delivery_date",
394
- sqlcondition:'pastscaleall',
395
- children: [
396
- //子列表
397
- //高于往期购气量
398
- {
399
- label: "高于往期购气量", value: Math.random(), name: 'ti.f_user_type is not null', echartsType: 'bar', dateif: true, namesubif: false,
400
- xname: '月', yname: '用户数', seriename: '用户数',
401
- // sqlcondition: {
402
- // items: '\'民用高于往期' + s1 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
403
- // tablename: '(SELECT (CASE when PASTSCALE>' + this.param + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
404
- // ' from (SELECT AAA.* from A_BUYGASCHANGE aaa,T_USERINFO bbb WHERE bbb.f_user_state=\'正常\' and AAA.F_USERINFO_ID=BBB.F_USERINFO_ID and BBB.F_USER_TYPE=\'民用\' ' +
405
- // ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
406
- // 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
407
- // condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
408
- // orderitem: '1'
409
- // },
410
- sqlcondition:'pastscaledo',
411
- listparam: 'cast(PASTSCALE as NUMERIC) >' + this.param + ' and ',
412
- dateparam: "f_delivery_date",
413
-
414
- },
415
- //低于往期购气量
416
- {
417
- label: "低于往期购气量", value: Math.random(), name: 'ti.f_user_type is not null', echartsType: 'bar', dateif: true, namesubif: false,
418
- xname: '月', yname: '用户数', seriename: '用户数',
419
- // sqlcondition: {
420
- // items: '\'民用低于往期' + s2 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
421
- // tablename: '(SELECT (CASE when PASTSCALE<' + this.param1 + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
422
- // 'from (SELECT AAA.* from A_BUYGASCHANGE aaa,T_USERINFO bbb WHERE bbb.f_user_state=\'正常\' and AAA.F_USERINFO_ID=BBB.F_USERINFO_ID ' +
423
- // ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
424
- // 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
425
- // condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
426
- // orderitem: '1'
427
- // },
428
- sqlcondition:'pastscaleup',
429
- listparam: 'cast(PASTSCALE as NUMERIC) <' + this.param1 + ' and ',
430
- dateparam: "f_delivery_date",
431
- }
432
- ],
433
- inputchildren: '请输入对比比例!',
434
- },
435
- {
436
- label: "民用",
437
- value: Math.random(),
438
- name: 'ti.f_user_type=\'民用\'',
439
- echartsType: 'pie',
440
- barparamif: false,
441
- listif: false,
442
- dateif: true,
443
- dateparam: "f_delivery_date",
444
- sqlcondition:'pastscaleall',
445
- children: [
446
- //子列表
447
- //高于往期购气量
448
- {
449
- label: "高于往期购气量", value: Math.random(), name: 'ti.f_user_type=\'民用\'', echartsType: 'bar', dateif: true, namesubif: false,
450
- xname: '月', yname: '用户数', seriename: '用户数',
451
- // sqlcondition: {
452
- // items: '\'民用高于往期' + s1 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
453
- // tablename: '(SELECT (CASE when PASTSCALE>' + this.param + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
454
- // ' from (SELECT AAA.* from A_BUYGASCHANGE aaa,T_USERINFO bbb WHERE bbb.f_user_state=\'正常\' and AAA.F_USERINFO_ID=BBB.F_USERINFO_ID and BBB.F_USER_TYPE=\'民用\' ' +
455
- // ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
456
- // 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
457
- // condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
458
- // orderitem: '1'
459
- // },
460
- sqlcondition:'pastscaledo',
461
- listparam: 'cast(PASTSCALE as NUMERIC) >' + this.param + ' and ',
462
- dateparam: "f_delivery_date",
463
-
464
- },
465
- //低于往期购气量
466
- {
467
- label: "低于往期购气量", value: Math.random(), name: 'ti.f_user_type=\'民用\'', echartsType: 'bar', dateif: true, namesubif: false,
468
- xname: '月', yname: '用户数', seriename: '用户数',
469
- // sqlcondition: {
470
- // items: '\'民用低于往期' + s2 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
471
- // tablename: '(SELECT (CASE when PASTSCALE<' + this.param1 + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
472
- // 'from (SELECT AAA.* from A_BUYGASCHANGE aaa,T_USERINFO bbb WHERE bbb.f_user_state=\'正常\' and AAA.F_USERINFO_ID=BBB.F_USERINFO_ID and BBB.F_USER_TYPE=\'民用\' ' +
473
- // ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
474
- // 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
475
- // condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
476
- // orderitem: '1'
477
- // },
478
- sqlcondition:'pastscaleup',
479
- listparam: 'cast(PASTSCALE as NUMERIC) <' + this.param1 + ' and ',
480
- dateparam: "f_delivery_date",
481
- }
482
- ],
483
- inputchildren: '请输入对比比例!',
484
- },
485
- {
486
- label: "非民用",
487
- value: Math.random(),
488
- name: 'ti.f_user_type=\'非民用\'',
489
- echartsType: 'pie',
490
- barparamif: false,
491
- listif: false,
492
- dateif: true,
493
- dateparam: "f_delivery_date",
494
- sqlcondition: 'pastscaleall',
495
- children: [
496
- //子列表
497
- //高于往期购气量
498
- {
499
- label: "高于往期购气量", value: Math.random(), name: 'ti.f_user_type=\'非民用\'', echartsType: 'bar', dateif: true, namesubif: false,
500
- xname: '月', yname: '用户数', seriename: '用户数',
501
- // sqlcondition: {
502
- // items: '\'非民用高于往期' + s1 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
503
- // tablename: '(SELECT (CASE when PASTSCALE>' + this.param + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
504
- // ' from (SELECT AAA.* from A_BUYGASCHANGE aaa,T_USERINFO bbb WHERE bbb.f_user_state=\'正常\' and AAA.F_USERINFO_ID=BBB.F_USERINFO_ID and BBB.F_USER_TYPE=\'非民用\'' +
505
- // ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
506
- // 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
507
- // condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
508
- // orderitem: '1'
509
- // },
510
- sqlcondition:'pastscaledo',
511
- listparam: 'cast(PASTSCALE as NUMERIC) >' + this.param + ' and ',
512
- dateparam: "f_delivery_date",
513
- children: '请输入对比比例!',
514
- },
515
- //低于往期购气量
516
- {
517
- label: "低于往期购气量", value: Math.random(), name: 'ti.f_user_type=\'非民用\'', echartsType: 'bar', dateif: true, namesubif: false,
518
- xname: '月', yname: '用户数', seriename: '用户数',
519
- // sqlcondition: {
520
- // items: '\'非民用低于往期' + s2 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
521
- // tablename: '(SELECT (CASE when PASTSCALE<' + this.param1 + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
522
- // 'from (SELECT AAA.* from A_BUYGASCHANGE aaa,T_USERINFO bbb WHERE bbb.f_user_state=\'正常\' and AAA.F_USERINFO_ID=BBB.F_USERINFO_ID and BBB.F_USER_TYPE=\'非民用\'' +
523
- // ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
524
- // 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
525
- // condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
526
- // orderitem: '1'
527
- // },
528
- sqlcondition:'jydpastscaleup',
529
- listparam: 'cast(PASTSCALE as NUMERIC) <' + this.param1 + ' and ',
530
- dateparam: "f_delivery_date",
531
- children: '请输入对比比例!',
532
- }
533
- ],
534
- inputchildren: '请输入对比比例!',
535
- },
536
- ],
537
- }
538
- }
539
-
540
- //无param时,获取title配置列表
541
- if (param1 == '' && param2 == '') {
542
- var reslut = sql[title][idname]
543
- console.log(reslut,'返回钻取条件')
544
- return reslut
545
- } else {
546
- // 有param获取title配置列表的param所在列
547
- var reslut = {}
548
- for (var i = 0; i < sql[title][idname].length; i++) {
549
- if (sql[title][idname][i].label == param1 && param2 == '') {
550
- reslut = sql[title][idname][i]
551
- break
552
- }
553
- // 遍历子列表
554
- if (JSON.stringify(sql[title][idname][i].children) != '[]' && sql[title][idname][i].label == param1) {
555
- for (var j = 0; j < sql[title][idname][i].children.length; j++) {
556
- if (sql[title][idname][i].children[j].label == param2) {
557
- reslut = sql[title][idname][i].children[j]
558
- break
559
- }
560
- }
561
- }
562
- }
563
- console.log(reslut,'返回钻取条件')
564
- return reslut
565
- }
566
- }
567
-
568
-
569
- //获取列表参数,title=所属钻取分类名,param1=一级钻取字段,param2=二级钻取字段,
570
- export function getDrillList(title, idname, param1, param2) {
571
- // listsql配置,items=查询列名,tablename=表名,condition=条件,dateparam=时间字段名,
572
- // (PageList进行查询,items,tablename,condition,前后增加\' ,负责报错)
573
- var List = {
574
- /********************用户*********************/
575
- //用户列表sql
576
- user: {
577
- //用户数量
578
- usernum: [
579
- 'usernum',
580
- {headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "收费类型", "公司"]},
581
- {bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_cost_type', 'f_filiale']},
582
- {dateparam: "f_createfile_date"}
583
- ],
584
- //主要用户
585
- mainuser: [
586
- 'mainuser',
587
- {headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气量"]},
588
- {bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_pregas']},
589
- {dateparam: "a.f_delivery_date"}
590
- ]
591
- },
592
- /********************监控*********************/
593
- //监控列表sql
594
- monitor: {
595
- //警告
596
- caveat: [
597
- // {
598
- // items: "\'*\'",
599
- // tablename: "\"(select tm.f_magneticInterference,tm.f_alarmShutValve,tm.f_cycleShutValue,tm.f_overCurrentProtection," +
600
- // "tm.f_leakageFlag,ti.f_userinfo_id,ti.f_user_name,ti.f_address,ti.f_user_type,ti.f_gasproperties from T_METEREAD tm,t_userinfo ti where " +
601
- // this.listparam + this.listparam1 + " tm.f_userinfo_id=ti.f_userinfo_id)\"",
602
- // condition: "\'1=1\'",
603
- // orderitem: "\'f_userinfo_id desc\'"
604
- // },
605
- 'caveat',
606
- {headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "磁干扰", "报警关阀", "周期关阀", "过流保护关阀", "关阀走气"]},
607
- {bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_magneticinterference', 'f_alarmshutvalve', 'f_cycleshutvalue', 'f_overcurrentprotection', 'f_leakageflag']},
608
- {dateparam: "tm.f_hand_date"}
609
- ],
610
- //长期未用气
611
- longnotusegas: [
612
- // {
613
- // items: "\'*\'",
614
- // tablename: "\"(select al.f_userinfo_id,al.f_user_id,al.f_hand_date,ti.f_user_name,ti.f_user_type,ti.f_gasproperties,ti.f_address," +
615
- // "ROUND(TO_NUMBER (SYSDATE - 1 - al.f_hand_date)) duration from a_longnotusegas al,t_userinfo ti where " +
616
- // this.listparam + this.listparam1 + " al.f_userinfo_id=ti.f_userinfo_id)\"",
617
- // condition: "\'1=1\'",
618
- // orderitem: "\'duration desc\'"
619
- // },
620
- 'longnotusegas',
621
- {headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "表具编号", "最近抄表时间", "未用气时长(天)"]},
622
- {bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_user_id', 'f_hand_date', 'duration']},
623
- {dateparam: "al.f_hand_date"}
624
- ],
625
- //失联
626
- lossassociation: [
627
- // {
628
- // items: "\'*\'",
629
- // tablename: "\"(select al.f_userinfo_id,al.f_user_id,al.f_hand_date,ti.f_user_name,ti.f_user_type,ti.f_gasproperties,ti.f_address," +
630
- // "ROUND(TO_NUMBER (SYSDATE - 1 - al.f_hand_date)) duration from a_lossassociation al,t_userinfo ti where " +
631
- // this.listparam + this.listparam1 + " al.f_userinfo_id=ti.f_userinfo_id)\"",
632
- // condition: "\'1=1\'",
633
- // orderitem: "\'duration desc\'"
634
- // },
635
- 'lossassociation',
636
- {headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "表具编号", "最近抄表时间", "失联时长(天)"]},
637
- {bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_user_id', 'f_hand_date', 'duration']},
638
- {dateparam: "al.f_hand_date"}
639
- ],
640
- //往期对比
641
- pastscale: [
642
- // {
643
- // items: "\'*\'",
644
- // tablename: "\"(select ti.f_userinfo_id,ti.f_user_name,ti.f_address,ti.f_user_type,ti.f_gasproperties,ab.f_pregas,ab.f_last_pregas," +
645
- // "ab.f_delivery_date,pastscale from t_userinfo ti,A_BUYGASCHANGE ab where " +
646
- // this.listparam + this.listparam1 + " ti.f_user_state=\'正常\' and ab.f_last_pregas!=0 and ti.f_userinfo_id=ab.f_userinfo_id) \"",
647
- // condition: "\'1=1\'",
648
- // orderitem: "\'pastscale desc\'"
649
- // },
650
- 'pastscale',
651
- {headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "最近购气量", "往期购气均值", "最近购气时间", "往期购气比例"]},
652
- {bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_pregas', 'f_last_pregas', 'f_delivery_date', 'pastscale']},
653
- {dateparam: "ab.f_delivery_date"}
654
- ],
655
- //长期未购气
656
- longnotbuygas: [
657
- {
658
- items: "\' * \'",
659
- tablename: "\"(select distinct(tu.f_userinfo_id),tu.f_user_name,tu.f_address,tu.f_user_type,tu.f_gasproperties, " +
660
- " al.f_delivery_date,ROUND(TO_NUMBER (SYSDATE \- 1 \- al.F_DELIVERY_DATE)) duration from t_userinfo tu,a_longnotbuygas al where " +
661
- this.listparam + this.listparam1 + " tu.f_user_state=\'正常\' and tu.f_userinfo_id=al.f_userinfo_id)\"",
662
- condition: "\'1=1\'",
663
- orderitem: "\'duration desc\'"
664
- },
665
- {headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "最近购气时间", "未购气时长(天)"]},
666
- {bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_delivery_date', 'duration']},
667
- {dateparam: "al.f_delivery_date"}
668
- ],
669
- },
670
- }
671
-
672
-
673
- //返回PageList查询条件
674
- return [ List[title][idname][1], List[title][idname][2], List[title][idname][3]]
675
- }
1
+ // 当前时间
2
+ var now = new Date()
3
+
4
+
5
+ // 获取当前时间,格式'yyyy-mm-dd hh24-mm-ss'
6
+ export function toStandardDateString() {
7
+ let dt = new Date()
8
+ let month = dt.getMonth() + 1
9
+ let date = dt.getDate()
10
+ return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
11
+ }
12
+
13
+ // 待传入sql中的开始时间
14
+ export var startDate = ''
15
+ // 待传入sql中的结束时间
16
+ export var endDate = ''
17
+
18
+ export var param = ''
19
+ export var param1 = ''
20
+ export var param2 = ''
21
+
22
+
23
+ export var listparam = ''
24
+ export var listparam1 = ''
25
+
26
+
27
+ //获取钻取参数,title=所属钻取分类名,param1=一级钻取字段,param2=二级钻取字段,
28
+ export function getDrillParameter(title, idname, param1, param2) {
29
+
30
+ console.log(title, idname, param1, param2, this.param, this.param1, '钻取参数获取条件')
31
+
32
+
33
+ // sql配置,items=查询列名,tablename=表名,condition=条件,
34
+ // label:钻取字段名称,name:拼接sql列名,echartsType:图表类型, barparamif: 钻取点击控制,listif: 列表sql控制拼接一级类型,
35
+ // dateif: 时间选择控制,dateparam: 选择时间查询的字段,listparam:列表特殊条件
36
+ //inputchildren:输入框默认内容,柱状图特有(yname:柱状图yname,xname:柱状图xname,seriename:单系列时显示数据的名称)
37
+ var sql = {
38
+ /********************用户*********************/
39
+ //用户传递
40
+ user: {
41
+ usernum: [
42
+ //用户类型
43
+ {
44
+ label: "用户类型",
45
+ value: Math.random(),
46
+ name: 'f_user_type',
47
+ echartsType: 'pie',
48
+ barparamif: true,
49
+ listif: true,
50
+ dateif: false,
51
+ dateparam: "f_createfile_date",
52
+ sqlcondition: 'usernum',
53
+ children: [
54
+ //子列表
55
+ //按年分类
56
+ {
57
+ label: "按年分类", value: Math.random(), name: 'year', echartsType: 'bar', dateif: false, namesubif: false,
58
+ xname: '年', yname: '数量', seriename: '', dateparam: "f_createfile_date",
59
+ sqlcondition:'useryear', listparam: '',
60
+ },
61
+ //按月分类
62
+ {
63
+ label: "按月分类", value: Math.random(), name: 'month', echartsType: 'bar', dateif: false, namesubif: false,
64
+ xname: '月', yname: '数量', seriename: '', dateparam: "f_createfile_date",
65
+ sqlcondition: 'usermonth', listparam: '',
66
+ }],
67
+ inputchildren: '',
68
+ },
69
+ //用气类型
70
+ {
71
+ label: "用气类型",
72
+ value: Math.random(),
73
+ name: 'f_gasproperties',
74
+ echartsType: 'pie',
75
+ barparamif: true,
76
+ listif: true,
77
+ dateif: false,
78
+ xname: '',
79
+ yname: '',
80
+ dateparam: "f_createfile_date",
81
+ sqlcondition: 'gasproperties',
82
+ children: [
83
+ //子列表
84
+ //按年分类
85
+ {
86
+ label: "按年分类", value: Math.random(), name: 'year', echartsType: 'bar', dateif: false, namesubif: false,
87
+ xname: '年', yname: '数量', seriename: '', dateparam: "f_createfile_date",
88
+ sqlcondition: 'gaspropertiesyear', listparam: '',
89
+ }
90
+ ],
91
+ inputchildren: '',
92
+ }
93
+ ],
94
+ //主要用户
95
+ mainuser: [
96
+ {
97
+ label: "全部",
98
+ value: Math.random(),
99
+ name: 'A.F_USER_TYPE is not null ',
100
+ echartsType: 'bar',
101
+ barparamif: true,
102
+ listif: false,
103
+ dateif: false, namesubif: true,
104
+ xname: '', yname: '用气量',
105
+ seriename: '用气量',
106
+ dateparam: "a.f_delivery_date",
107
+ sqlcondition:'mainuser',
108
+ children: [],
109
+ inputchildren: ''
110
+ },
111
+ {
112
+ label: "民用",
113
+ value: Math.random(),
114
+ name: 'A.F_USER_TYPE=\'民用\'',
115
+ echartsType: 'bar',
116
+ barparamif: true,
117
+ listif: false,
118
+ dateif: false, namesubif: true,
119
+ xname: '', yname: '用气量',
120
+ seriename: '用气量',
121
+ dateparam: "a.f_delivery_date",
122
+ sqlcondition: 'mainuser',
123
+ children: [],
124
+ inputchildren: ''
125
+ },
126
+ {
127
+ label: "非民用",
128
+ value: Math.random(),
129
+ name: 'A.F_USER_TYPE=\'非民用\'',
130
+ echartsType: 'bar',
131
+ barparamif: true,
132
+ listif: false,
133
+ dateif: false, namesubif: true,
134
+ xname: '', yname: '用气量', seriename: '用气量',
135
+
136
+ dateparam: "a.f_delivery_date",
137
+ sqlcondition: 'mainuser',
138
+ children: [],
139
+ inputchildren: '',
140
+ }
141
+ // {
142
+ // label: "民用锅炉",
143
+ // value: Math.random(),
144
+ // name: 'A.F_USER_TYPE=\'民用锅炉\'',
145
+ // echartsType: 'bar',
146
+ // barparamif: true,
147
+ // listif: false,
148
+ // dateif: false, namesubif: true,
149
+ // xname: '', yname: '用气量', seriename: '用气量',
150
+ // dateparam: "a.f_delivery_date",
151
+ // sqlcondition:'mainuser',
152
+ // children: [],
153
+ // inputchildren: ''
154
+ // }
155
+ ]
156
+ },
157
+
158
+ // /********************监控*********************/
159
+ // 监控
160
+ monitor: {
161
+ // 钻取告警
162
+ caveat: [
163
+ {
164
+ label: "磁干扰",
165
+ value: Math.random(),
166
+ name: 'tm.f_magneticinterference = \'1\'',
167
+ echartsType: 'bar',
168
+ barparamif: false,
169
+ listif: false,
170
+ dateif: true,
171
+ namesubif: false,
172
+ xname: '月', yname: '客户数', seriename: '磁干扰',
173
+ dateparam: "f_hand_date",
174
+ sqlcondition: 'caveat',
175
+ children: [],
176
+ inputchildren: '',
177
+ },
178
+ {
179
+ label: "报警关阀",
180
+ value: Math.random(),
181
+ name: 'tm.f_alarmshutvalve=\'1\'',
182
+ echartsType: 'bar',
183
+ barparamif: false,
184
+ listif: false,
185
+ dateif: true,
186
+ namesubif: false,
187
+ xname: '月', yname: '客户数', seriename: '报警关阀',
188
+ dateparam: "f_hand_date",
189
+ sqlcondition: 'caveat',
190
+ children: [],
191
+ inputchildren: '',
192
+ },
193
+ {
194
+ label: "周期关阀",
195
+ value: Math.random(),
196
+ name: 'tm.f_cycleshutvalue=\'1\'',
197
+ echartsType: 'bar',
198
+ barparamif: false,
199
+ listif: false,
200
+ dateif: true,
201
+ namesubif: false,
202
+ xname: '月', yname: '客户数', seriename: '周期关阀',
203
+ dateparam: "f_hand_date",
204
+ sqlcondition: 'caveat',
205
+ children: [],
206
+ inputchildren: '',
207
+ },
208
+ {
209
+ label: "过流保护关阀",
210
+ value: Math.random(),
211
+ name: 'tm.f_overcurrentprotection=\'1\'',
212
+ echartsType: 'bar',
213
+ barparamif: false,
214
+ listif: false,
215
+ dateif: true,
216
+ namesubif: false,
217
+ xname: '月', yname: '客户数', seriename: '过流保护关阀',
218
+ dateparam: "f_hand_date",
219
+ sqlcondition: 'caveat',
220
+ children: [],
221
+ inputchildren: '',
222
+ }, {
223
+ label: "关阀走气",
224
+ value: Math.random(),
225
+ name: 'tm.f_leakageflag=\'1\'',
226
+ echartsType: 'bar',
227
+ barparamif: false,
228
+ listif: false,
229
+ dateif: true,
230
+ namesubif: false,
231
+ xname: '月', yname: '客户数', seriename: '过流保护关阀',
232
+ dateparam: "f_hand_date",
233
+ sqlcondition: 'caveat',
234
+ children: [],
235
+ inputchildren: '',
236
+ }
237
+ ],
238
+ // 钻取失联客户统计
239
+ lossassociation: [
240
+ {
241
+ label: "全部",
242
+ value: Math.random(),
243
+ name: 'ti.f_user_type is not null ',
244
+ echartsType: 'bar',
245
+ barparamif: false,
246
+ listif: false,
247
+ dateif: true,
248
+ namesubif: false,
249
+ xname: '月', yname: '客户数', seriename: '客户数',
250
+ dateparam: "al.f_hand_date",
251
+ sqlcondition:'lossassociation',
252
+ children: [],
253
+ inputchildren: '',
254
+ },
255
+ {
256
+ label: "民用",
257
+ value: Math.random(),
258
+ name: 'ti.f_user_type=\'民用\'',
259
+ echartsType: 'bar',
260
+ barparamif: false,
261
+ listif: false,
262
+ dateif: true,
263
+ namesubif: false,
264
+ xname: '月', yname: '客户数', seriename: '民用',
265
+ dateparam: "al.f_hand_date",
266
+ sqlcondition: 'lossassociation',
267
+ children: [],
268
+ inputchildren: '',
269
+ },
270
+ {
271
+ label: "非民用",
272
+ value: Math.random(),
273
+ name: 'ti.f_user_type=\'非民用\'',
274
+ echartsType: 'bar',
275
+ barparamif: false,
276
+ listif: false,
277
+ dateif: true,
278
+ namesubif: false,
279
+ xname: '月', yname: '客户数', seriename: '民用',
280
+ dateparam: "al.f_hand_date",
281
+ sqlcondition: 'lossassociation',
282
+ children: [],
283
+ inputchildren: '',
284
+ }
285
+ ],
286
+ // 钻取长期未用气用户统计
287
+ longnotusegas: [
288
+ {
289
+ label: "全部",
290
+ value: Math.random(),
291
+ name: 'ti.f_user_type is not null',
292
+ echartsType: 'bar',
293
+ barparamif: false,
294
+ listif: false,
295
+ dateif: true,
296
+ namesubif: false,
297
+ xname: '月', yname: '用户数', seriename: '用户数',
298
+ dateparam: "f_hand_date",
299
+ sqlcondition: 'longnotusegas',
300
+ children: [],
301
+ inputchildren: '',
302
+ },
303
+ {
304
+ label: "民用",
305
+ value: Math.random(),
306
+ name: 'ti.f_user_type=\'民用\'',
307
+ echartsType: 'bar',
308
+ barparamif: false,
309
+ listif: false,
310
+ dateif: true,
311
+ namesubif: false,
312
+ xname: '月', yname: '用户数', seriename: '民用',
313
+ dateparam: "f_hand_date",
314
+ sqlcondition:'longnotusegas',
315
+ children: [],
316
+ inputchildren: '',
317
+ },
318
+ {
319
+ label: "非民用",
320
+ value: Math.random(),
321
+ name: 'ti.f_user_type=\'非民用\'',
322
+ echartsType: 'bar',
323
+ barparamif: false,
324
+ listif: false,
325
+ dateif: true,
326
+ namesubif: false,
327
+ xname: '月', yname: '用户数', seriename: '非民用',
328
+ dateparam: "f_delivery_date",
329
+ sqlcondition: 'longnotusegas',
330
+ children: [],
331
+ inputchildren: '',
332
+ },
333
+ ],
334
+ // 钻取长期未购气
335
+ longnotbuygas: [
336
+ {
337
+ label: "全部",
338
+ value: Math.random(),
339
+ name: 'ti.f_user_type is not null',
340
+ echartsType: 'bar',
341
+ barparamif: false,
342
+ listif: false,
343
+ dateif: true,
344
+ namesubif: false,
345
+ xname: '月', yname: '用户数', seriename: '',
346
+ dateparam: "f_delivery_date",
347
+ sqlcondition: 'longnotbuygas',
348
+ children: [],
349
+ inputchildren: '',
350
+ },
351
+ {
352
+ label: "民用",
353
+ value: Math.random(),
354
+ name: 'ti.f_user_type=\'民用\'',
355
+ echartsType: 'bar',
356
+ barparamif: false,
357
+ listif: false,
358
+ dateif: true,
359
+ namesubif: false,
360
+ xname: '月', yname: '用户数', seriename: '',
361
+ dateparam: "f_delivery_date",
362
+ sqlcondition: 'longnotbuygas',
363
+ children: [],
364
+ inputchildren: '',
365
+ }, {
366
+ label: "非民用",
367
+ value: Math.random(),
368
+ name: 'ti.f_user_type=\'非民用\'',
369
+ echartsType: 'bar',
370
+ barparamif: false,
371
+ listif: false,
372
+ dateif: true,
373
+ namesubif: false,
374
+ xname: '月', yname: '用户数', seriename: '',
375
+ dateparam: "f_delivery_date",
376
+ sqlcondition: 'longnotbuygas',
377
+ children: [],
378
+ inputchildren: '',
379
+ },
380
+ ],
381
+
382
+
383
+ // 钻取往期购气对比
384
+ pastscale: [
385
+ {
386
+ label: "全部",
387
+ value: Math.random(),
388
+ name: 'ti.f_user_type is not null',
389
+ echartsType: 'pie',
390
+ barparamif: false,
391
+ listif: false,
392
+ dateif: true,
393
+ dateparam: "f_delivery_date",
394
+ sqlcondition:'pastscaleall',
395
+ children: [
396
+ //子列表
397
+ //高于往期购气量
398
+ {
399
+ label: "高于往期购气量", value: Math.random(), name: 'ti.f_user_type is not null', echartsType: 'bar', dateif: true, namesubif: false,
400
+ xname: '月', yname: '用户数', seriename: '用户数',
401
+ // sqlcondition: {
402
+ // items: '\'民用高于往期' + s1 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
403
+ // tablename: '(SELECT (CASE when PASTSCALE>' + this.param + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
404
+ // ' from (SELECT AAA.* from A_BUYGASCHANGE aaa,T_USERINFO bbb WHERE bbb.f_user_state=\'正常\' and AAA.F_USERINFO_ID=BBB.F_USERINFO_ID and BBB.F_USER_TYPE=\'民用\' ' +
405
+ // ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
406
+ // 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
407
+ // condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
408
+ // orderitem: '1'
409
+ // },
410
+ sqlcondition:'pastscaledo',
411
+ listparam: 'cast(PASTSCALE as NUMERIC) >' + this.param + ' and ',
412
+ dateparam: "f_delivery_date",
413
+
414
+ },
415
+ //低于往期购气量
416
+ {
417
+ label: "低于往期购气量", value: Math.random(), name: 'ti.f_user_type is not null', echartsType: 'bar', dateif: true, namesubif: false,
418
+ xname: '月', yname: '用户数', seriename: '用户数',
419
+ // sqlcondition: {
420
+ // items: '\'民用低于往期' + s2 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
421
+ // tablename: '(SELECT (CASE when PASTSCALE<' + this.param1 + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
422
+ // 'from (SELECT AAA.* from A_BUYGASCHANGE aaa,T_USERINFO bbb WHERE bbb.f_user_state=\'正常\' and AAA.F_USERINFO_ID=BBB.F_USERINFO_ID ' +
423
+ // ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
424
+ // 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
425
+ // condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
426
+ // orderitem: '1'
427
+ // },
428
+ sqlcondition:'pastscaleup',
429
+ listparam: 'cast(PASTSCALE as NUMERIC) <' + this.param1 + ' and ',
430
+ dateparam: "f_delivery_date",
431
+ }
432
+ ],
433
+ inputchildren: '请输入对比比例!',
434
+ },
435
+ {
436
+ label: "民用",
437
+ value: Math.random(),
438
+ name: 'ti.f_user_type=\'民用\'',
439
+ echartsType: 'pie',
440
+ barparamif: false,
441
+ listif: false,
442
+ dateif: true,
443
+ dateparam: "f_delivery_date",
444
+ sqlcondition:'pastscaleall',
445
+ children: [
446
+ //子列表
447
+ //高于往期购气量
448
+ {
449
+ label: "高于往期购气量", value: Math.random(), name: 'ti.f_user_type=\'民用\'', echartsType: 'bar', dateif: true, namesubif: false,
450
+ xname: '月', yname: '用户数', seriename: '用户数',
451
+ // sqlcondition: {
452
+ // items: '\'民用高于往期' + s1 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
453
+ // tablename: '(SELECT (CASE when PASTSCALE>' + this.param + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
454
+ // ' from (SELECT AAA.* from A_BUYGASCHANGE aaa,T_USERINFO bbb WHERE bbb.f_user_state=\'正常\' and AAA.F_USERINFO_ID=BBB.F_USERINFO_ID and BBB.F_USER_TYPE=\'民用\' ' +
455
+ // ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
456
+ // 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
457
+ // condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
458
+ // orderitem: '1'
459
+ // },
460
+ sqlcondition:'pastscaledo',
461
+ listparam: 'cast(PASTSCALE as NUMERIC) >' + this.param + ' and ',
462
+ dateparam: "f_delivery_date",
463
+
464
+ },
465
+ //低于往期购气量
466
+ {
467
+ label: "低于往期购气量", value: Math.random(), name: 'ti.f_user_type=\'民用\'', echartsType: 'bar', dateif: true, namesubif: false,
468
+ xname: '月', yname: '用户数', seriename: '用户数',
469
+ // sqlcondition: {
470
+ // items: '\'民用低于往期' + s2 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
471
+ // tablename: '(SELECT (CASE when PASTSCALE<' + this.param1 + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
472
+ // 'from (SELECT AAA.* from A_BUYGASCHANGE aaa,T_USERINFO bbb WHERE bbb.f_user_state=\'正常\' and AAA.F_USERINFO_ID=BBB.F_USERINFO_ID and BBB.F_USER_TYPE=\'民用\' ' +
473
+ // ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
474
+ // 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
475
+ // condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
476
+ // orderitem: '1'
477
+ // },
478
+ sqlcondition:'pastscaleup',
479
+ listparam: 'cast(PASTSCALE as NUMERIC) <' + this.param1 + ' and ',
480
+ dateparam: "f_delivery_date",
481
+ }
482
+ ],
483
+ inputchildren: '请输入对比比例!',
484
+ },
485
+ {
486
+ label: "非民用",
487
+ value: Math.random(),
488
+ name: 'ti.f_user_type=\'非民用\'',
489
+ echartsType: 'pie',
490
+ barparamif: false,
491
+ listif: false,
492
+ dateif: true,
493
+ dateparam: "f_delivery_date",
494
+ sqlcondition: 'pastscaleall',
495
+ children: [
496
+ //子列表
497
+ //高于往期购气量
498
+ {
499
+ label: "高于往期购气量", value: Math.random(), name: 'ti.f_user_type=\'非民用\'', echartsType: 'bar', dateif: true, namesubif: false,
500
+ xname: '月', yname: '用户数', seriename: '用户数',
501
+ // sqlcondition: {
502
+ // items: '\'非民用高于往期' + s1 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
503
+ // tablename: '(SELECT (CASE when PASTSCALE>' + this.param + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
504
+ // ' from (SELECT AAA.* from A_BUYGASCHANGE aaa,T_USERINFO bbb WHERE bbb.f_user_state=\'正常\' and AAA.F_USERINFO_ID=BBB.F_USERINFO_ID and BBB.F_USER_TYPE=\'非民用\'' +
505
+ // ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
506
+ // 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
507
+ // condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
508
+ // orderitem: '1'
509
+ // },
510
+ sqlcondition:'pastscaledo',
511
+ listparam: 'cast(PASTSCALE as NUMERIC) >' + this.param + ' and ',
512
+ dateparam: "f_delivery_date",
513
+ children: '请输入对比比例!',
514
+ },
515
+ //低于往期购气量
516
+ {
517
+ label: "低于往期购气量", value: Math.random(), name: 'ti.f_user_type=\'非民用\'', echartsType: 'bar', dateif: true, namesubif: false,
518
+ xname: '月', yname: '用户数', seriename: '用户数',
519
+ // sqlcondition: {
520
+ // items: '\'非民用低于往期' + s2 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
521
+ // tablename: '(SELECT (CASE when PASTSCALE<' + this.param1 + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
522
+ // 'from (SELECT AAA.* from A_BUYGASCHANGE aaa,T_USERINFO bbb WHERE bbb.f_user_state=\'正常\' and AAA.F_USERINFO_ID=BBB.F_USERINFO_ID and BBB.F_USER_TYPE=\'非民用\'' +
523
+ // ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
524
+ // 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
525
+ // condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
526
+ // orderitem: '1'
527
+ // },
528
+ sqlcondition:'jydpastscaleup',
529
+ listparam: 'cast(PASTSCALE as NUMERIC) <' + this.param1 + ' and ',
530
+ dateparam: "f_delivery_date",
531
+ children: '请输入对比比例!',
532
+ }
533
+ ],
534
+ inputchildren: '请输入对比比例!',
535
+ },
536
+ ],
537
+ }
538
+ }
539
+
540
+ //无param时,获取title配置列表
541
+ if (param1 == '' && param2 == '') {
542
+ var reslut = sql[title][idname]
543
+ console.log(reslut,'返回钻取条件')
544
+ return reslut
545
+ } else {
546
+ // 有param获取title配置列表的param所在列
547
+ var reslut = {}
548
+ for (var i = 0; i < sql[title][idname].length; i++) {
549
+ if (sql[title][idname][i].label == param1 && param2 == '') {
550
+ reslut = sql[title][idname][i]
551
+ break
552
+ }
553
+ // 遍历子列表
554
+ if (JSON.stringify(sql[title][idname][i].children) != '[]' && sql[title][idname][i].label == param1) {
555
+ for (var j = 0; j < sql[title][idname][i].children.length; j++) {
556
+ if (sql[title][idname][i].children[j].label == param2) {
557
+ reslut = sql[title][idname][i].children[j]
558
+ break
559
+ }
560
+ }
561
+ }
562
+ }
563
+ console.log(reslut,'返回钻取条件')
564
+ return reslut
565
+ }
566
+ }
567
+
568
+
569
+ //获取列表参数,title=所属钻取分类名,param1=一级钻取字段,param2=二级钻取字段,
570
+ export function getDrillList(title, idname, param1, param2) {
571
+ // listsql配置,items=查询列名,tablename=表名,condition=条件,dateparam=时间字段名,
572
+ // (PageList进行查询,items,tablename,condition,前后增加\' ,负责报错)
573
+ var List = {
574
+ /********************用户*********************/
575
+ //用户列表sql
576
+ user: {
577
+ //用户数量
578
+ usernum: [
579
+ 'usernum',
580
+ {headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "收费类型", "公司"]},
581
+ {bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_cost_type', 'f_filiale']},
582
+ {dateparam: "f_createfile_date"}
583
+ ],
584
+ //主要用户
585
+ mainuser: [
586
+ 'mainuser',
587
+ {headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气量"]},
588
+ {bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_pregas']},
589
+ {dateparam: "a.f_delivery_date"}
590
+ ]
591
+ },
592
+ /********************监控*********************/
593
+ //监控列表sql
594
+ monitor: {
595
+ //警告
596
+ caveat: [
597
+ // {
598
+ // items: "\'*\'",
599
+ // tablename: "\"(select tm.f_magneticInterference,tm.f_alarmShutValve,tm.f_cycleShutValue,tm.f_overCurrentProtection," +
600
+ // "tm.f_leakageFlag,ti.f_userinfo_id,ti.f_user_name,ti.f_address,ti.f_user_type,ti.f_gasproperties from T_METEREAD tm,t_userinfo ti where " +
601
+ // this.listparam + this.listparam1 + " tm.f_userinfo_id=ti.f_userinfo_id)\"",
602
+ // condition: "\'1=1\'",
603
+ // orderitem: "\'f_userinfo_id desc\'"
604
+ // },
605
+ 'caveat',
606
+ {headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "磁干扰", "报警关阀", "周期关阀", "过流保护关阀", "关阀走气"]},
607
+ {bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_magneticinterference', 'f_alarmshutvalve', 'f_cycleshutvalue', 'f_overcurrentprotection', 'f_leakageflag']},
608
+ {dateparam: "tm.f_hand_date"}
609
+ ],
610
+ //长期未用气
611
+ longnotusegas: [
612
+ // {
613
+ // items: "\'*\'",
614
+ // tablename: "\"(select al.f_userinfo_id,al.f_user_id,al.f_hand_date,ti.f_user_name,ti.f_user_type,ti.f_gasproperties,ti.f_address," +
615
+ // "ROUND(TO_NUMBER (SYSDATE - 1 - al.f_hand_date)) duration from a_longnotusegas al,t_userinfo ti where " +
616
+ // this.listparam + this.listparam1 + " al.f_userinfo_id=ti.f_userinfo_id)\"",
617
+ // condition: "\'1=1\'",
618
+ // orderitem: "\'duration desc\'"
619
+ // },
620
+ 'longnotusegas',
621
+ {headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "表具编号", "最近抄表时间", "未用气时长(天)"]},
622
+ {bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_user_id', 'f_hand_date', 'duration']},
623
+ {dateparam: "al.f_hand_date"}
624
+ ],
625
+ //失联
626
+ lossassociation: [
627
+ // {
628
+ // items: "\'*\'",
629
+ // tablename: "\"(select al.f_userinfo_id,al.f_user_id,al.f_hand_date,ti.f_user_name,ti.f_user_type,ti.f_gasproperties,ti.f_address," +
630
+ // "ROUND(TO_NUMBER (SYSDATE - 1 - al.f_hand_date)) duration from a_lossassociation al,t_userinfo ti where " +
631
+ // this.listparam + this.listparam1 + " al.f_userinfo_id=ti.f_userinfo_id)\"",
632
+ // condition: "\'1=1\'",
633
+ // orderitem: "\'duration desc\'"
634
+ // },
635
+ 'lossassociation',
636
+ {headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "表具编号", "最近抄表时间", "失联时长(天)"]},
637
+ {bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_user_id', 'f_hand_date', 'duration']},
638
+ {dateparam: "al.f_hand_date"}
639
+ ],
640
+ //往期对比
641
+ pastscale: [
642
+ // {
643
+ // items: "\'*\'",
644
+ // tablename: "\"(select ti.f_userinfo_id,ti.f_user_name,ti.f_address,ti.f_user_type,ti.f_gasproperties,ab.f_pregas,ab.f_last_pregas," +
645
+ // "ab.f_delivery_date,pastscale from t_userinfo ti,A_BUYGASCHANGE ab where " +
646
+ // this.listparam + this.listparam1 + " ti.f_user_state=\'正常\' and ab.f_last_pregas!=0 and ti.f_userinfo_id=ab.f_userinfo_id) \"",
647
+ // condition: "\'1=1\'",
648
+ // orderitem: "\'pastscale desc\'"
649
+ // },
650
+ 'pastscale',
651
+ {headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "最近购气量", "往期购气均值", "最近购气时间", "往期购气比例"]},
652
+ {bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_pregas', 'f_last_pregas', 'f_delivery_date', 'pastscale']},
653
+ {dateparam: "ab.f_delivery_date"}
654
+ ],
655
+ //长期未购气
656
+ longnotbuygas: [
657
+ {
658
+ items: "\' * \'",
659
+ tablename: "\"(select distinct(tu.f_userinfo_id),tu.f_user_name,tu.f_address,tu.f_user_type,tu.f_gasproperties, " +
660
+ " al.f_delivery_date,ROUND(TO_NUMBER (SYSDATE \- 1 \- al.F_DELIVERY_DATE)) duration from t_userinfo tu,a_longnotbuygas al where " +
661
+ this.listparam + this.listparam1 + " tu.f_user_state=\'正常\' and tu.f_userinfo_id=al.f_userinfo_id)\"",
662
+ condition: "\'1=1\'",
663
+ orderitem: "\'duration desc\'"
664
+ },
665
+ {headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "最近购气时间", "未购气时长(天)"]},
666
+ {bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_delivery_date', 'duration']},
667
+ {dateparam: "al.f_delivery_date"}
668
+ ],
669
+ },
670
+ }
671
+
672
+
673
+ //返回PageList查询条件
674
+ return [ List[title][idname][1], List[title][idname][2], List[title][idname][3]]
675
+ }