manage-client 3.2.49 → 3.2.50
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.
- package/.babelrc +5 -5
- package/.classpath +6 -6
- package/.editorconfig +9 -9
- package/.eslintrc.js +20 -20
- package/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/.project +18 -18
- package/CHANGELOG.md +15 -15
- package/DOC//345/212/237/350/203/275/350/257/264/346/230/216.md +13 -13
- package/DOC//347/211/210/346/234/254/344/277/241/346/201/257.md +8 -8
- package/ManageClient.iml +13 -13
- package/README.md +38 -38
- package/build/dev-server.js +175 -174
- package/build/webpack.base.conf.js +82 -82
- package/build.gradle +13 -13
- package/config/dev.env.js +6 -6
- package/config/index.js +40 -40
- package/config/prod.env.js +3 -3
- package/config/test.env.js +6 -6
- package/gradle/wrapper/gradle-wrapper.properties +5 -5
- package/gradlew.bat +100 -100
- package/index.html +28 -28
- package/package.json +1 -1
- package/release.bat +5 -5
- package/src/ManageHome.js +269 -269
- package/src/Staff/StaffCompileList.vue +334 -334
- package/src/Staff/StaffList.vue +161 -161
- package/src/Staff/StaffListManage.vue +49 -49
- package/src/Util.js +367 -367
- package/src/components/BasisEcharts/BarChart.vue +247 -247
- package/src/components/BasisEcharts/LineChart.vue +243 -243
- package/src/components/ManageHome/CustomerService/ContentmentStatistics.vue +135 -135
- package/src/components/ManageHome/CustomerService/ExcepCollect.vue +174 -174
- package/src/components/ManageHome/CustomerService/ReasonComplaint.vue +116 -116
- package/src/components/ManageHome/CustomerService/ReasonConsultation.vue +115 -115
- package/src/components/ManageHome/CustomerService/ServiceFix.vue +155 -155
- package/src/components/ManageHome/CustomerService/ServiceHome.vue +179 -179
- package/src/components/ManageHome/CustomerService/ServiceStatistics.vue +147 -147
- package/src/components/ManageHome/CustomerService/TrafficStatistics.vue +160 -160
- package/src/components/ManageHome/Drill/DrillData.vue +791 -791
- package/src/components/ManageHome/Drill/DrillList.vue +320 -320
- package/src/components/ManageHome/Drill/DrillPool.vue +129 -129
- package/src/components/ManageHome/Home/CallCenter.vue +124 -124
- package/src/components/ManageHome/Home/CallFix.vue +172 -172
- package/src/components/ManageHome/Home/CallStatistics.vue +147 -147
- package/src/components/ManageHome/Home/GasValue.vue +233 -233
- package/src/components/ManageHome/Home/Home.vue +138 -138
- package/src/components/ManageHome/Home/Monitor.vue +329 -329
- package/src/components/ManageHome/Home/NetWork.vue +202 -202
- package/src/components/ManageHome/Home/SafeCheck.vue +249 -249
- package/src/components/ManageHome/Home/UserModule.vue +367 -367
- package/src/components/ManageHome/ImportSupplygas/AddSupply.vue +206 -206
- package/src/components/ManageHome/ImportSupplygas/SuppleManagement.vue +43 -43
- package/src/components/ManageHome/ImportSupplygas/SupplySelect.vue +85 -85
- package/src/components/ManageHome/ImportSupplygas/UpdateSupply.vue +187 -187
- package/src/components/ManageHome/ManageHome.vue +292 -292
- package/src/components/ManageHome/Monitor/BuySub.vue +311 -311
- package/src/components/ManageHome/Monitor/Caveat.vue +300 -300
- package/src/components/ManageHome/Monitor/ComparedGas.vue +264 -264
- package/src/components/ManageHome/Monitor/MeterBrand.vue +211 -211
- package/src/components/ManageHome/Monitor/MonitorCenter.vue +132 -132
- package/src/components/ManageHome/Monitor/MonitorHome.vue +188 -188
- package/src/components/ManageHome/Monitor/NoBuyGas.vue +223 -223
- package/src/components/ManageHome/Monitor/NoContact.vue +233 -233
- package/src/components/ManageHome/Monitor/NoGas.vue +202 -202
- package/src/components/ManageHome/NetWork/LineInspection.vue +267 -267
- package/src/components/ManageHome/NetWork/NetDanger.vue +258 -258
- package/src/components/ManageHome/NetWork/NetHome.vue +84 -84
- package/src/components/ManageHome/NetWork/SupplyGas.vue +204 -204
- package/src/components/ManageHome/SecurityCheck/CheckHome.vue +94 -94
- package/src/components/ManageHome/SecurityCheck/CustomerType.vue +244 -244
- package/src/components/ManageHome/SecurityCheck/LatentDanger.vue +218 -218
- package/src/components/ManageHome/SecurityCheck/PlanStatistics.vue +231 -231
- package/src/components/ManageHome/SecurityCheck/StateStatistics.vue +237 -237
- package/src/components/ManageHome/SecurityCheck/TaskStatistics.vue +303 -303
- package/src/components/ManageHome/User/GasDistri.vue +271 -271
- package/src/components/ManageHome/User/InspecDistri.vue +272 -272
- package/src/components/ManageHome/User/SaleProportion.vue +309 -309
- package/src/components/ManageHome/User/UseHome.vue +155 -155
- package/src/components/ManageHome/User/UserGascontrast.vue +223 -223
- package/src/components/ManageHome/User/UserNumber.vue +519 -519
- package/src/components/ManageHome/User/UsernumIncrease.vue +243 -243
- package/src/components/ManageHome/loading.vue +23 -23
- package/src/components/ManageHomeCS/Cockpit.vue +43 -43
- package/src/components/ManageHomeCS/CustomerService/ContentmentStatistics.vue +161 -161
- package/src/components/ManageHomeCS/CustomerService/ExcepCollect.vue +201 -201
- package/src/components/ManageHomeCS/CustomerService/ReasonComplaint.vue +146 -146
- package/src/components/ManageHomeCS/CustomerService/ReasonConsultation.vue +148 -148
- package/src/components/ManageHomeCS/CustomerService/ServiceFix.vue +242 -242
- package/src/components/ManageHomeCS/CustomerService/ServiceHome.vue +176 -176
- package/src/components/ManageHomeCS/CustomerService/ServiceStatistics.vue +277 -277
- package/src/components/ManageHomeCS/CustomerService/TrafficStatistics.vue +226 -226
- package/src/components/ManageHomeCS/Drill/DrillData.vue +918 -918
- package/src/components/ManageHomeCS/Drill/DrillList.vue +320 -320
- package/src/components/ManageHomeCS/Drill/DrillPool.vue +129 -129
- package/src/components/ManageHomeCS/Home/CallCenter.vue +206 -206
- package/src/components/ManageHomeCS/Home/CallFix.vue +172 -172
- package/src/components/ManageHomeCS/Home/CallStatistics.vue +147 -147
- package/src/components/ManageHomeCS/Home/GasValue.vue +466 -466
- package/src/components/ManageHomeCS/Home/Home.vue +57 -57
- package/src/components/ManageHomeCS/Home/Monitor.vue +423 -423
- package/src/components/ManageHomeCS/Home/NetWork.vue +223 -223
- package/src/components/ManageHomeCS/Home/SafeCheck.vue +446 -446
- package/src/components/ManageHomeCS/Home/ShanxiMap.vue +432 -432
- package/src/components/ManageHomeCS/Home/UserModule.vue +511 -511
- package/src/components/ManageHomeCS/Home/YulinMap.vue +424 -424
- package/src/components/ManageHomeCS/ImportSupplygas/AddSupply.vue +206 -206
- package/src/components/ManageHomeCS/ImportSupplygas/SuppleManagement.vue +43 -43
- package/src/components/ManageHomeCS/ImportSupplygas/SupplySelect.vue +85 -85
- package/src/components/ManageHomeCS/ImportSupplygas/UpdateSupply.vue +187 -187
- package/src/components/ManageHomeCS/Monitor/BuySub.vue +339 -339
- package/src/components/ManageHomeCS/Monitor/Caveat.vue +301 -301
- package/src/components/ManageHomeCS/Monitor/ComparedGas.vue +276 -276
- package/src/components/ManageHomeCS/Monitor/MeterBrand.vue +220 -220
- package/src/components/ManageHomeCS/Monitor/MonitorCenter.vue +139 -139
- package/src/components/ManageHomeCS/Monitor/MonitorHome.vue +188 -188
- package/src/components/ManageHomeCS/Monitor/NoBuyGas.vue +218 -218
- package/src/components/ManageHomeCS/Monitor/NoContact.vue +217 -217
- package/src/components/ManageHomeCS/Monitor/NoGas.vue +214 -214
- package/src/components/ManageHomeCS/NetWork/LineInspection.vue +268 -268
- package/src/components/ManageHomeCS/NetWork/NetDanger.vue +258 -258
- package/src/components/ManageHomeCS/NetWork/NetHome.vue +106 -106
- package/src/components/ManageHomeCS/NetWork/NetWork.vue +222 -222
- package/src/components/ManageHomeCS/NetWork/NetWorkMap.vue +86 -86
- package/src/components/ManageHomeCS/NetWork/SupplyGas.vue +291 -291
- package/src/components/ManageHomeCS/NewHome/GasProperties.vue +314 -314
- package/src/components/ManageHomeCS/NewHome/NewManageHome.vue +182 -182
- package/src/components/ManageHomeCS/NewHome/TextBusiness.vue +267 -267
- package/src/components/ManageHomeCS/NewHome/TextChildsellgas.vue +209 -209
- package/src/components/ManageHomeCS/NewHome/TextProfit.vue +298 -298
- package/src/components/ManageHomeCS/NewHome/TextSellgas.vue +82 -82
- package/src/components/ManageHomeCS/NewHome/TextShanximap.vue +389 -389
- package/src/components/ManageHomeCS/NewHome/TextTotalsellgas.vue +406 -406
- package/src/components/ManageHomeCS/NewHome/TextUser.vue +378 -378
- package/src/components/ManageHomeCS/NewHome/yulin.vue +425 -425
- package/src/components/ManageHomeCS/Poor/PoorHome.vue +176 -176
- package/src/components/ManageHomeCS/SecurityCheck/CheckHome.vue +94 -94
- package/src/components/ManageHomeCS/SecurityCheck/CustomerType.vue +246 -246
- package/src/components/ManageHomeCS/SecurityCheck/LatentDanger.vue +220 -220
- package/src/components/ManageHomeCS/SecurityCheck/PlanStatistics.vue +306 -306
- package/src/components/ManageHomeCS/SecurityCheck/StateStatistics.vue +239 -239
- package/src/components/ManageHomeCS/SecurityCheck/TaskStatistics.vue +311 -311
- package/src/components/ManageHomeCS/User/FMYInspecDistri.vue +269 -269
- package/src/components/ManageHomeCS/User/GasDistri.vue +220 -220
- package/src/components/ManageHomeCS/User/MYInspecDistri.vue +269 -269
- package/src/components/ManageHomeCS/User/SaleProportion.vue +384 -384
- package/src/components/ManageHomeCS/User/UseHome.vue +162 -162
- package/src/components/ManageHomeCS/User/UserGascontrast.vue +221 -221
- package/src/components/ManageHomeCS/User/UserNumber.vue +600 -600
- package/src/components/ManageHomeCS/User/UsernumIncrease.vue +277 -277
- package/src/components/ManageHomeCS/loading.vue +39 -39
- package/src/components/ManageHomeCS/test.vue +88 -88
- package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
- package/src/components/MeterManage/ChargeQuery.vue +79 -79
- package/src/components/MeterManage/FillCardQuery.vue +80 -80
- package/src/components/MeterManage/FillGasQuery.vue +80 -80
- package/src/components/MeterManage/HandQuery.vue +72 -72
- package/src/components/MeterManage/MeterInfoManage.vue +107 -107
- package/src/components/MeterManage/MeterList.vue +336 -336
- package/src/components/MeterManage/MeterMsg.vue +181 -181
- package/src/components/MeterManage/OtherChargeQuery.vue +78 -78
- package/src/components/MeterManage/ReversalQuery.vue +77 -77
- package/src/components/MeterManage/TransferQuery.vue +72 -72
- package/src/components/SellReport/BankManager.vue +146 -146
- package/src/components/SellReport/CaiManageDayGas.vue +280 -280
- package/src/components/SellReport/ChManageBusSummary.vue +273 -273
- package/src/components/SellReport/ChManageHandSellMoney.vue +274 -274
- package/src/components/SellReport/ChManageMonthGas.vue +285 -285
- package/src/components/SellReport/ChOtherfee.vue +251 -251
- package/src/components/SellReport/CollectFee.vue +184 -184
- package/src/components/SellReport/Contrast.vue +188 -188
- package/src/components/SellReport/DayStairMoney.vue +256 -256
- package/src/components/SellReport/FenxiangSell.vue +183 -183
- package/src/components/SellReport/FxGasTable.vue +220 -220
- package/src/components/SellReport/GasCollect.vue +174 -174
- package/src/components/SellReport/GaspriceHas.vue +141 -141
- package/src/components/SellReport/HandCollect.vue +189 -189
- package/src/components/SellReport/JinChengBusSummary.vue +182 -182
- package/src/components/SellReport/JinChengHandGas.vue +182 -182
- package/src/components/SellReport/JinChengOperSummary.vue +182 -182
- package/src/components/SellReport/JinChengSliceSumgas.vue +182 -182
- package/src/components/SellReport/ManageBusTable.vue +207 -207
- package/src/components/SellReport/ManageGasFee.vue +247 -247
- package/src/components/SellReport/ManageGasFeeOperator.vue +236 -236
- package/src/components/SellReport/ManageHandSellInputtor.vue +241 -241
- package/src/components/SellReport/ManageMonthGas.vue +249 -249
- package/src/components/SellReport/ManageNewGasPrice.vue +245 -245
- package/src/components/SellReport/ManageReceivable.vue +254 -254
- package/src/components/SellReport/ManageUserCollect.vue +183 -183
- package/src/components/SellReport/MeterBill.vue +185 -185
- package/src/components/SellReport/MeterGasMoney.vue +226 -226
- package/src/components/SellReport/MeterInput.vue +250 -250
- package/src/components/SellReport/MonthStairMoney.vue +256 -256
- package/src/components/SellReport/OweAging.vue +174 -174
- package/src/components/SellReport/ReportHistory.vue +80 -80
- package/src/components/SellReport/ReportPool.vue +60 -60
- package/src/components/SellReport/Selling.vue +188 -188
- package/src/components/SellReport/SiteManager.vue +147 -147
- package/src/components/SellReport/UserStateStatistics.vue +188 -188
- package/src/components/SellReport/UsertypePie.vue +101 -101
- package/src/components/SellReport/XianYangDate.vue +227 -227
- package/src/components/SellReport/XianYangOperator.vue +228 -228
- package/src/components/SellReport/XyDateCharge.vue +227 -227
- package/src/components/SellReport/XyOperatorCharge.vue +256 -256
- package/src/components/SellReport/YuShouTableTwo.vue +309 -309
- package/src/components/SellReport/jingwei/CardCharge.vue +142 -142
- package/src/components/SellReport/jingwei/MachineCharge.vue +141 -141
- package/src/components/SellReport/jingwei/PaymentNotice.vue +479 -479
- package/src/components/SellReport/jingwei/handplanReport.vue +280 -280
- package/src/components/SellReport/jingwei/widegt/PaymentNoticePrint.vue +198 -198
- package/src/components/SellReport/jingwei/widegt/handplanPrint.vue +143 -143
- package/src/components/SellReport/pengan/ManageBusSummaryPeng.vue +241 -241
- package/src/components/WebReport/AbnormalInfo.vue +197 -197
- package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
- package/src/components/WebReport/BatteryLow.vue +148 -148
- package/src/components/WebReport/BusinessHall.vue +85 -85
- package/src/components/WebReport/BussinessType.vue +137 -137
- package/src/components/WebReport/Communication.vue +131 -131
- package/src/components/WebReport/CompanyUser.vue +79 -79
- package/src/components/WebReport/EchartsBox.vue +110 -110
- package/src/components/WebReport/ElectroMagnetic.vue +142 -142
- package/src/components/WebReport/GaspriceHas.vue +141 -141
- package/src/components/WebReport/HandplanPrint.vue +167 -167
- package/src/components/WebReport/NotUpload.vue +165 -165
- package/src/components/WebReport/OweQuery.vue +169 -169
- package/src/components/WebReport/PaymentDistributed.vue +176 -176
- package/src/components/WebReport/Paymentpie.vue +157 -157
- package/src/components/WebReport/ReportWorklist.vue +220 -220
- package/src/components/WebReport/SellType.vue +89 -89
- package/src/components/WebReport/Telemanlist.vue +221 -221
- package/src/components/WebReport/UserGasAll.vue +214 -214
- package/src/components/WebReport/UserGasEcharts.vue +107 -107
- package/src/components/WebReport/UsertypePie.vue +105 -105
- package/src/components/WebReport/ValueEcharts.vue +99 -99
- package/src/components/WebReport/ValueInfo.vue +194 -194
- package/src/components/qinhua/BarChartLine.vue +288 -288
- package/src/components/qinhua/ManageMain.vue +162 -162
- package/src/components/qinhua/Ring.vue +165 -165
- package/src/components/qinhua/SafeCheckRing.vue +149 -149
- package/src/components/qinhua/SafecheckBarChart.vue +209 -209
- package/src/components/qinhua/Scada.vue +93 -93
- package/src/components/safecheck/analysis/SafeHiddenAnaly.vue +932 -932
- package/src/components/safecheck/planCheck/chanceSituation.vue +149 -149
- package/src/components/safecheck/planCheck/checkFamily.vue +217 -217
- package/src/components/safecheck/planCheck/hidderDanger.vue +179 -179
- package/src/components/safecheck/planCheck/inFamily.vue +185 -185
- package/src/components/sale/businessquery/AccountQuery/TransactionSummary.vue +373 -373
- package/src/components/sale/businessquery/BalanceQuery.vue +456 -456
- package/src/components/sale/businessquery/BusinessManage.vue +171 -171
- package/src/components/sale/businessquery/ChangeMeterQuery.vue +645 -644
- package/src/components/sale/businessquery/FillCardQuery.vue +497 -497
- package/src/components/sale/businessquery/InspectManage.vue +47 -47
- package/src/components/sale/businessquery/NewAccountQuery.vue +409 -409
- package/src/components/sale/businessquery/OtherChargeDetailQuery.vue +74 -74
- package/src/components/sale/businessquery/ResourceOperatingQuery.vue +317 -317
- package/src/components/sale/businessquery/TongjiManage.vue +74 -74
- package/src/components/sale/businessquery/UserTongjiQuery.vue +358 -358
- package/src/components/sale/businessquery/YearGasQuery.vue +422 -422
- package/src/components/sale/businessquery/analysisquery/AnalysisManage.vue +65 -65
- package/src/components/sale/businessquery/weChatBind.vue +361 -361
- package/src/components/sale/common/PrintData.vue +171 -171
- package/src/components/sale/common/PrintDataSelf.vue +225 -225
- package/src/components/sale/common/PrintTable.vue +228 -228
- package/src/components/sale/common/PrintTableSelf.vue +251 -251
- package/src/components/sale/common/TabButton.vue +155 -155
- package/src/components/sale/common/Tabs.vue +67 -67
- package/src/components/sale/common/handplanUser.vue +112 -112
- package/src/components/sale/config/DefaultPrint.js +6 -6
- package/src/components/sale/filesquery/detail/UserBaseInfo.vue +69 -69
- package/src/components/sale/filesquery/detail/UserDetail.vue +41 -41
- package/src/components/sale/filesquery/detail/UserOperInfo.vue +76 -76
- package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
- package/src/components/sale/filesquery/detail/oper/ExchangeOper.vue +66 -66
- package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
- package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
- package/src/components/sale/filesquery/detail/oper/OtherCharge.vue +54 -54
- package/src/components/sale/filesquery/detail/oper/ReplaceCard.vue +51 -51
- package/src/components/sale/filesquery/detail/oper/SellOper.vue +56 -56
- package/src/components/sale/filesquery/detail/oper/TransferMessage.vue +55 -55
- package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
- package/src/components/sale/filesquery/filequerydetail/ChangeMeterQueryDetail.vue +246 -246
- package/src/components/sale/filesquery/filequerydetail/ChargeQueryDetail.vue +239 -239
- package/src/components/sale/filesquery/filequerydetail/DeviceQueryDetail.vue +126 -126
- package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
- package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
- package/src/components/sale/filesquery/filequerydetail/FillCardQueryDetail.vue +80 -80
- package/src/components/sale/filesquery/filequerydetail/FillGasQueryDetail.vue +80 -80
- package/src/components/sale/filesquery/filequerydetail/HandQueryDetail.vue +302 -302
- package/src/components/sale/filesquery/filequerydetail/MeterQueryDetail.vue +158 -158
- package/src/components/sale/filesquery/filequerydetail/OtherChargeQueryDetail.vue +198 -198
- package/src/components/sale/filesquery/filequerydetail/RecordQueryDetail.vue +125 -125
- package/src/components/sale/filesquery/filequerydetail/SellingHandDetail.vue +280 -280
- package/src/components/sale/filesquery/filequerydetail/TransferQueryDetail.vue +160 -160
- package/src/components/sale/filesquery/filequerydetail/UserQueryDetail.vue +155 -155
- package/src/components/sale/report/aode/DayReport.vue +50 -50
- package/src/components/sale/report/aode/DayReportSummary.vue +75 -75
- package/src/components/sale/report/aode/MonthByChargeType.vue +446 -446
- package/src/components/sale/report/aode/MonthByUserType.vue +413 -413
- package/src/components/sale/report/aode/YearByChargeTpye.vue +215 -215
- package/src/components/sale/report/aode/YearByUserType.vue +272 -272
- package/src/components/sale/report/aode/life/LifeDayReport.vue +50 -50
- package/src/components/sale/report/aode/life/LifeDayReportList.vue +241 -241
- package/src/components/sale/report/aode/life/LifeDayReportSummary.vue +49 -49
- package/src/components/sale/report/aode/life/LifeMonthReport.vue +303 -303
- package/src/components/sale/report/aode/life/LifeYearReport.vue +175 -175
- package/src/components/sale/report/aode/widget/LifeDayReportListPrint.vue +189 -189
- package/src/components/sale/report/aode/widget/LifeMonthPrint.vue +153 -153
- package/src/components/sale/report/aode/widget/LifeYearPrint.vue +143 -143
- package/src/components/sale/report/aode/widget/MonthByChargePrint.vue +236 -236
- package/src/components/sale/report/aode/widget/MonthByUserPrint.vue +232 -232
- package/src/components/sale/report/aode/widget/YearByChargePrint.vue +203 -203
- package/src/components/sale/report/aode/widget/YearByUserPrint.vue +225 -225
- package/src/components/scada/CaculateGasConsumputionByDay/CaculateGasConsumputionByDay.vue +290 -290
- package/src/components/scada/ChartDisplay/ChartDisplayManage.vue +55 -55
- package/src/components/scada/ChartDisplay/ChartThreeDayContrast.vue +164 -164
- package/src/components/scada/CumulativeFlow/CumulativeFlowHeatPlant.vue +400 -400
- package/src/components/scada/CumulativeFlow/CumulativeFlowManage.vue +59 -59
- package/src/components/scada/CumulativeFlow/CumulativeFlowRegulatorStation.vue +504 -504
- package/src/components/scada/CumulativeFlow/CumulativeFlowStation.vue +248 -248
- package/src/components/scada/GasSupplyRunning/GasSupplyRunningByDay.vue +297 -297
- package/src/components/scada/InstantaneousFlow/InstantaneousFlowHeatPlant.vue +389 -389
- package/src/components/scada/InstantaneousFlow/InstantaneousFlowManage.vue +57 -57
- package/src/components/scada/InstantaneousFlow/InstantaneousFlowRegulatorStation.vue +503 -503
- package/src/components/scada/InstantaneousFlow/InstantaneousFlowStation.vue +244 -244
- package/src/components/scada/OnTimePressure/OnTimePressureHeatPlant.vue +356 -356
- package/src/components/scada/OnTimePressure/OnTimePressureManage.vue +51 -51
- package/src/components/scada/OnTimePressure/OnTimePressureRegulatorStation.vue +526 -526
- package/src/components/scada/ThreeDayContrast/ThreeDayContrastManage.vue +282 -282
- package/src/components/webmeter/DrillData/LargeScreenAnalysisEcharts.vue +710 -710
- package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
- package/src/components/webmeter/DrillData/LostContactAnalysisManage.vue +30 -30
- package/src/components/webmeter/DrillData/LostContactEform.vue +190 -190
- package/src/components/webmeter/dataCollection/DataCollection.vue +676 -676
- package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
- package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
- package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
- package/src/components/webmeter/handplan/NewWebmeterHandPlanMain.vue +59 -59
- package/src/components/webmeter/indicatorStatisticsEchars.vue +204 -204
- package/src/components/webmeter/indicatorStatisticsMain.vue +257 -257
- package/src/components/webmeter/meterinfo/NewMeterList.vue +414 -414
- package/src/components/webmeter/meterinfo/NewMeterListMain.vue +53 -53
- package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
- package/src/components/webmeter/newwebmeter/NewException/NewExceptionEformTotal.vue +211 -211
- package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
- package/src/components/yulin/GuanWang.vue +24 -24
- package/src/components/yulin/SingleBarLine.vue +352 -352
- package/src/components/yulin/Weather.vue +157 -157
- package/src/expandcss.less +26 -26
- package/src/filiale/WEINAN/InspectListUser.vue +492 -492
- package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
- package/src/filiale/aode/ArchivesManage.vue +38 -38
- package/src/filiale/aode/BusinessManage.vue +94 -94
- package/src/filiale/aode/DefaultPrint.js +6 -6
- package/src/filiale/aode/HandplanQuery.vue +632 -632
- package/src/filiale/aode/Tabs.vue +67 -67
- package/src/filiale/aode/UserQuery.vue +599 -599
- package/src/filiale/aode/sale.js +17 -17
- package/src/filiale/ceshi/ArrearsQuery.vue +642 -642
- package/src/filiale/ceshi/ChManageBusSummary.vue +293 -293
- package/src/filiale/ceshi/CollectManage.vue +94 -94
- package/src/filiale/ceshi/MeterRateQuery.vue +633 -633
- package/src/filiale/ceshi/TabButton.vue +149 -149
- package/src/filiale/ceshi/Tabs.vue +69 -69
- package/src/filiale/ceshi/reportManage.js +5 -5
- package/src/filiale/ceshi/sale.js +11 -11
- package/src/filiale/gaomi/config/DefaultPrint.js +6 -6
- package/src/filiale/gaomi/config/tableConfig.js +47 -47
- package/src/filiale/gongyi/sale/businessquery/exportConfig.js +17 -17
- package/src/filiale/gongyi/sale/filesquery/MeterQuery.vue +718 -718
- package/src/filiale/liaoyuan/sale.js +11 -11
- package/src/filiale/macheng/config/DefaultPrint.js +12 -12
- package/src/filiale/qingtongxia/config/DefaultPrint.js +6 -6
- package/src/filiale/qingtongxia/sale.js +13 -13
- package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
- package/src/filiale/shaoguan/OtherChargeDetailQuery.vue +74 -74
- package/src/filiale/shaoguan/config/DefaultPrint.js +6 -6
- package/src/filiale/shennongjia/config/DefaultPrint.js +6 -6
- package/src/filiale/shennongjia/config/tableConfig.js +47 -47
- package/src/filiale/shennongjia/sale.js +10 -10
- package/src/plugins/GetLoginInfoService.js +505 -505
- package/src/plugins/LodopFuncs.js +124 -124
- package/src/plugins/getAllInputtor.js +29 -29
- package/src/safeCheck.js +63 -63
- package/src/stores/AppData.js +62 -62
- package/src/stores/DataSql.js +585 -585
- package/src/stores/DrillECharts.js +602 -602
- package/src/stores/DrillSql.js +888 -888
- package/src/stores/GetParames.js +15 -15
- package/src/stores/MagGetSaleParams.js +156 -156
- package/src/stores/MagLoadParams.js +63 -63
- package/src/stores/Util.js +132 -132
- package/src/stores/shanxi1.js +26 -26
- package/src/stores/yulin.js +27 -27
- package/static/china.json +1 -1
- package/static/qh.json +2410 -2410
- package/static/res.json +58411 -58411
- package/static/shanxi1.json +1 -1
- package/static/yulin.json +1 -1
- package/static//345/261/261/344/270/234/347/234/201.json +1 -1
- package/test/unit/.eslintrc +5 -5
- package/test/unit/TestUtil.js +35 -35
- package/test/unit/context.html +20 -20
- package/test/unit/index.js +13 -13
- package/test/unit/init.js +11 -11
- package/test/unit/karma.conf.js +45 -45
- package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
- package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
- package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
- package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
- package/webstorm.config.js +13 -13
package/src/stores/DrillSql.js
CHANGED
|
@@ -1,888 +1,888 @@
|
|
|
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: "全部",
|
|
243
|
-
name: '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: "slday",
|
|
251
|
-
sqlcondition: 'lossassociation',
|
|
252
|
-
children: [],
|
|
253
|
-
inputchildren: '',
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
label: "民用",
|
|
257
|
-
value: "民用",
|
|
258
|
-
name: 'f_user_type=\'民用\'',
|
|
259
|
-
echartsType: 'bar',
|
|
260
|
-
barparamif: false,
|
|
261
|
-
listif: false,
|
|
262
|
-
dateif: true,
|
|
263
|
-
namesubif: false,
|
|
264
|
-
xname: '天', yname: '客户数', seriename: '民用',
|
|
265
|
-
dateparam: "slday",
|
|
266
|
-
sqlcondition: 'lossassociation',
|
|
267
|
-
children: [
|
|
268
|
-
//子列表
|
|
269
|
-
{
|
|
270
|
-
label: "居民用气",
|
|
271
|
-
value: "居民用气",
|
|
272
|
-
echartsType: 'bar',
|
|
273
|
-
barparamif: false,
|
|
274
|
-
listif: false,
|
|
275
|
-
dateif: true,
|
|
276
|
-
namesubif: false,
|
|
277
|
-
xname: '天', yname: '客户数', seriename: '客户数',
|
|
278
|
-
name: 'f_gasproperties =\'居民用气\'',
|
|
279
|
-
sqlcondition: 'lossassociation',
|
|
280
|
-
dateparam: "f_gasproperties"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
label: "居民地暖",
|
|
284
|
-
value: "居民地暖",
|
|
285
|
-
echartsType: 'bar',
|
|
286
|
-
barparamif: false,
|
|
287
|
-
listif: false,
|
|
288
|
-
dateif: true,
|
|
289
|
-
namesubif: false,
|
|
290
|
-
xname: '天', yname: '客户数', seriename: '客户数',
|
|
291
|
-
name: 'f_gasproperties =\'居民地暖\'',
|
|
292
|
-
sqlcondition: 'lossassociation',
|
|
293
|
-
dateparam: "f_gasproperties"
|
|
294
|
-
|
|
295
|
-
}],
|
|
296
|
-
inputchildren: '',
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
label: "非民用",
|
|
300
|
-
value: "非民用",
|
|
301
|
-
name: 'f_user_type=\'非民用\'',
|
|
302
|
-
echartsType: 'bar',
|
|
303
|
-
barparamif: false,
|
|
304
|
-
listif: false,
|
|
305
|
-
dateif: true,
|
|
306
|
-
namesubif: false,
|
|
307
|
-
xname: '天', yname: '客户数', seriename: '民用',
|
|
308
|
-
dateparam: "slday",
|
|
309
|
-
sqlcondition: 'lossassociation',
|
|
310
|
-
children: [
|
|
311
|
-
//子列表
|
|
312
|
-
{
|
|
313
|
-
label: "商业用气",
|
|
314
|
-
value: "商业用气",
|
|
315
|
-
echartsType: 'bar',
|
|
316
|
-
barparamif: false,
|
|
317
|
-
listif: false,
|
|
318
|
-
dateif: true,
|
|
319
|
-
xname: '天', yname: '客户数', seriename: '客户数',
|
|
320
|
-
namesubif: false,
|
|
321
|
-
name: 'f_gasproperties =\'商业用气\'',
|
|
322
|
-
sqlcondition: 'lossassociation',
|
|
323
|
-
dateparam: "f_gasproperties"
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
label: "工业用气",
|
|
327
|
-
value: "工业用气",
|
|
328
|
-
echartsType: 'bar',
|
|
329
|
-
barparamif: false,
|
|
330
|
-
xname: '天', yname: '客户数', seriename: '客户数',
|
|
331
|
-
listif: false,
|
|
332
|
-
dateif: true,
|
|
333
|
-
namesubif: false,
|
|
334
|
-
name: 'f_gasproperties =\'工业用气\'',
|
|
335
|
-
sqlcondition: 'lossassociation',
|
|
336
|
-
dateparam: "f_gasproperties"
|
|
337
|
-
|
|
338
|
-
}],
|
|
339
|
-
inputchildren: '',
|
|
340
|
-
}
|
|
341
|
-
],
|
|
342
|
-
// 钻取长期未用气用户统计
|
|
343
|
-
longnotusegas: [
|
|
344
|
-
{
|
|
345
|
-
label: "全部",
|
|
346
|
-
value: "全部",
|
|
347
|
-
name: 'a.f_user_type is not null',
|
|
348
|
-
echartsType: 'bar',
|
|
349
|
-
barparamif: false,
|
|
350
|
-
listif: false,
|
|
351
|
-
dateif: true,
|
|
352
|
-
namesubif: false,
|
|
353
|
-
xname: '日', yname: '用户数', seriename: '用户数',
|
|
354
|
-
dateparam: "f_hand_date",
|
|
355
|
-
sqlcondition: 'longnotusegas',
|
|
356
|
-
children: [],
|
|
357
|
-
inputchildren: '',
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
label: "民用",
|
|
361
|
-
value: "民用",
|
|
362
|
-
name: 'a.f_user_type=\'民用\'',
|
|
363
|
-
echartsType: 'bar',
|
|
364
|
-
barparamif: false,
|
|
365
|
-
listif: false,
|
|
366
|
-
dateif: true,
|
|
367
|
-
namesubif: false,
|
|
368
|
-
xname: '日', yname: '用户数', seriename: '民用',
|
|
369
|
-
dateparam: "f_hand_date",
|
|
370
|
-
sqlcondition: 'longnotusegas',
|
|
371
|
-
children: [
|
|
372
|
-
//子列表
|
|
373
|
-
{
|
|
374
|
-
label: "居民用气",
|
|
375
|
-
value: "居民用气",
|
|
376
|
-
echartsType: 'bar',
|
|
377
|
-
barparamif: false,
|
|
378
|
-
listif: false,
|
|
379
|
-
dateif: true,
|
|
380
|
-
namesubif: false,
|
|
381
|
-
xname: '天', yname: '客户数', seriename: '客户数',
|
|
382
|
-
name: 'a.f_gasproperties =\'居民用气\'',
|
|
383
|
-
sqlcondition: 'longnotusegas',
|
|
384
|
-
dateparam: "f_gasproperties"
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
label: "居民地暖",
|
|
388
|
-
value: "居民地暖",
|
|
389
|
-
echartsType: 'bar',
|
|
390
|
-
barparamif: false,
|
|
391
|
-
listif: false,
|
|
392
|
-
dateif: true,
|
|
393
|
-
namesubif: false,
|
|
394
|
-
xname: '天', yname: '客户数', seriename: '客户数',
|
|
395
|
-
name: 'a.f_gasproperties =\'居民地暖\'',
|
|
396
|
-
sqlcondition: 'longnotusegas',
|
|
397
|
-
dateparam: "f_gasproperties"
|
|
398
|
-
|
|
399
|
-
}],
|
|
400
|
-
inputchildren: '',
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
label: "非民用",
|
|
404
|
-
value: "非民用",
|
|
405
|
-
name: 'a.f_user_type=\'非民用\'',
|
|
406
|
-
echartsType: 'bar',
|
|
407
|
-
barparamif: false,
|
|
408
|
-
listif: false,
|
|
409
|
-
dateif: true,
|
|
410
|
-
namesubif: false,
|
|
411
|
-
xname: '月', yname: '用户数', seriename: '非民用',
|
|
412
|
-
dateparam: "f_hand_date",
|
|
413
|
-
sqlcondition: 'longnotusegas',
|
|
414
|
-
children: [
|
|
415
|
-
//子列表
|
|
416
|
-
{
|
|
417
|
-
label: "商业用气",
|
|
418
|
-
value: "商业用气",
|
|
419
|
-
echartsType: 'bar',
|
|
420
|
-
barparamif: false,
|
|
421
|
-
listif: false,
|
|
422
|
-
dateif: true,
|
|
423
|
-
namesubif: false,
|
|
424
|
-
name: 'a.f_gasproperties =\'商业用气\'',
|
|
425
|
-
xname: '天', yname: '客户数', seriename: '客户数',
|
|
426
|
-
sqlcondition: 'longnotbuygas',
|
|
427
|
-
dateparam: "f_gasproperties"
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
label: "工业用气",
|
|
431
|
-
value: "工业用气",
|
|
432
|
-
echartsType: 'bar',
|
|
433
|
-
barparamif: false,
|
|
434
|
-
listif: false,
|
|
435
|
-
dateif: true,
|
|
436
|
-
namesubif: false,
|
|
437
|
-
name: 'a.f_gasproperties =\'工业用气\'',
|
|
438
|
-
xname: '天', yname: '客户数', seriename: '客户数',
|
|
439
|
-
sqlcondition: 'longnotbuygas',
|
|
440
|
-
dateparam: "f_gasproperties"
|
|
441
|
-
|
|
442
|
-
}],
|
|
443
|
-
inputchildren: '',
|
|
444
|
-
},
|
|
445
|
-
],
|
|
446
|
-
// 钻取长期未购气
|
|
447
|
-
longnotbuygas: [
|
|
448
|
-
{
|
|
449
|
-
label: "全部",
|
|
450
|
-
value: "全部",
|
|
451
|
-
name: 'a.f_user_type is not null',
|
|
452
|
-
echartsType: 'bar',
|
|
453
|
-
barparamif: false,
|
|
454
|
-
listif: false,
|
|
455
|
-
dateif: true,
|
|
456
|
-
namesubif: false,
|
|
457
|
-
xname: '日', yname: '用户数', seriename: '',
|
|
458
|
-
dateparam: "f_delivery_date",
|
|
459
|
-
sqlcondition: 'longnotbuygas',
|
|
460
|
-
children: [],
|
|
461
|
-
inputchildren: '',
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
label: "民用",
|
|
465
|
-
value: "民用",
|
|
466
|
-
name: 'a.f_user_type=\'民用\'',
|
|
467
|
-
echartsType: 'bar',
|
|
468
|
-
barparamif: false,
|
|
469
|
-
listif: false,
|
|
470
|
-
dateif: true,
|
|
471
|
-
namesubif: false,
|
|
472
|
-
xname: '日', yname: '用户数', seriename: '',
|
|
473
|
-
dateparam: "f_delivery_date",
|
|
474
|
-
sqlcondition: 'longnotbuygas',
|
|
475
|
-
children: [
|
|
476
|
-
//子列表
|
|
477
|
-
{
|
|
478
|
-
label: "居民用气",
|
|
479
|
-
value: "居民用气",
|
|
480
|
-
echartsType: 'bar',
|
|
481
|
-
barparamif: false,
|
|
482
|
-
listif: false,
|
|
483
|
-
dateif: true,
|
|
484
|
-
namesubif: false,
|
|
485
|
-
xname: '天', yname: '客户数', seriename: '客户数',
|
|
486
|
-
name: 'a.f_gasproperties =\'居民用气\'',
|
|
487
|
-
sqlcondition: 'longnotbuygas',
|
|
488
|
-
dateparam: "f_gasproperties"
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
label: "居民地暖",
|
|
492
|
-
value: "居民地暖",
|
|
493
|
-
echartsType: 'bar',
|
|
494
|
-
barparamif: false,
|
|
495
|
-
listif: false,
|
|
496
|
-
dateif: true,
|
|
497
|
-
namesubif: false,
|
|
498
|
-
xname: '天', yname: '客户数', seriename: '客户数',
|
|
499
|
-
name: 'a.f_gasproperties =\'居民地暖\'',
|
|
500
|
-
sqlcondition: 'longnotbuygas',
|
|
501
|
-
dateparam: "f_gasproperties"
|
|
502
|
-
|
|
503
|
-
}],
|
|
504
|
-
inputchildren: '',
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
label: "非民用",
|
|
508
|
-
value: "非民用",
|
|
509
|
-
name: 'a.f_user_type=\'非民用\'',
|
|
510
|
-
echartsType: 'bar',
|
|
511
|
-
barparamif: false,
|
|
512
|
-
listif: false,
|
|
513
|
-
dateif: true,
|
|
514
|
-
namesubif: false,
|
|
515
|
-
xname: '日', yname: '用户数', seriename: '',
|
|
516
|
-
dateparam: "f_delivery_date",
|
|
517
|
-
sqlcondition: 'longnotbuygas',
|
|
518
|
-
children: [
|
|
519
|
-
//子列表
|
|
520
|
-
{
|
|
521
|
-
label: "商业用气",
|
|
522
|
-
value: "商业用气",
|
|
523
|
-
echartsType: 'bar',
|
|
524
|
-
barparamif: false,
|
|
525
|
-
listif: false,
|
|
526
|
-
dateif: true,
|
|
527
|
-
namesubif: false,
|
|
528
|
-
xname: '天', yname: '客户数', seriename: '客户数',
|
|
529
|
-
name: 'a.f_gasproperties =\'商业用气\'',
|
|
530
|
-
sqlcondition: 'longnotbuygas',
|
|
531
|
-
dateparam: "f_gasproperties"
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
label: "工业用气",
|
|
535
|
-
value: "工业用气",
|
|
536
|
-
echartsType: 'bar',
|
|
537
|
-
barparamif: false,
|
|
538
|
-
listif: false,
|
|
539
|
-
dateif: true,
|
|
540
|
-
namesubif: false,
|
|
541
|
-
xname: '天', yname: '客户数', seriename: '客户数',
|
|
542
|
-
name: 'a.f_gasproperties =\'工业用气\'',
|
|
543
|
-
sqlcondition: 'longnotbuygas',
|
|
544
|
-
dateparam: "f_gasproperties"
|
|
545
|
-
|
|
546
|
-
}],
|
|
547
|
-
inputchildren: '',
|
|
548
|
-
},
|
|
549
|
-
],
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
// 钻取往期购气对比
|
|
553
|
-
pastscale: [
|
|
554
|
-
{
|
|
555
|
-
label: "全部",
|
|
556
|
-
value: Math.random(),
|
|
557
|
-
name: 'ti.f_user_type is not null',
|
|
558
|
-
echartsType: 'pie',
|
|
559
|
-
barparamif: false,
|
|
560
|
-
listif: false,
|
|
561
|
-
dateif: true,
|
|
562
|
-
dateparam: "f_delivery_date",
|
|
563
|
-
sqlcondition: 'pastscaleall',
|
|
564
|
-
children: [
|
|
565
|
-
//子列表
|
|
566
|
-
//高于往期购气量
|
|
567
|
-
{
|
|
568
|
-
label: "高于往期购气量",
|
|
569
|
-
value: Math.random(),
|
|
570
|
-
name: 'ti.f_user_type is not null',
|
|
571
|
-
echartsType: 'bar',
|
|
572
|
-
dateif: true,
|
|
573
|
-
namesubif: false,
|
|
574
|
-
xname: '月',
|
|
575
|
-
yname: '用户数',
|
|
576
|
-
seriename: '用户数',
|
|
577
|
-
// sqlcondition: {
|
|
578
|
-
// items: '\'民用高于往期' + s1 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
|
|
579
|
-
// tablename: '(SELECT (CASE when PASTSCALE>' + this.param + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
|
|
580
|
-
// ' 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=\'民用\' ' +
|
|
581
|
-
// ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
|
|
582
|
-
// 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
|
|
583
|
-
// condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
|
|
584
|
-
// orderitem: '1'
|
|
585
|
-
// },
|
|
586
|
-
sqlcondition: 'pastscaledo',
|
|
587
|
-
listparam: 'cast(PASTSCALE as NUMERIC) >' + this.param + ' and ',
|
|
588
|
-
dateparam: "f_delivery_date",
|
|
589
|
-
|
|
590
|
-
},
|
|
591
|
-
//低于往期购气量
|
|
592
|
-
{
|
|
593
|
-
label: "低于往期购气量",
|
|
594
|
-
value: Math.random(),
|
|
595
|
-
name: 'ti.f_user_type is not null',
|
|
596
|
-
echartsType: 'bar',
|
|
597
|
-
dateif: true,
|
|
598
|
-
namesubif: false,
|
|
599
|
-
xname: '月',
|
|
600
|
-
yname: '用户数',
|
|
601
|
-
seriename: '用户数',
|
|
602
|
-
// sqlcondition: {
|
|
603
|
-
// items: '\'民用低于往期' + s2 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
|
|
604
|
-
// tablename: '(SELECT (CASE when PASTSCALE<' + this.param1 + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
|
|
605
|
-
// 'from (SELECT AAA.* from A_BUYGASCHANGE aaa,T_USERINFO bbb WHERE bbb.f_user_state=\'正常\' and AAA.F_USERINFO_ID=BBB.F_USERINFO_ID ' +
|
|
606
|
-
// ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
|
|
607
|
-
// 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
|
|
608
|
-
// condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
|
|
609
|
-
// orderitem: '1'
|
|
610
|
-
// },
|
|
611
|
-
sqlcondition: 'pastscaleup',
|
|
612
|
-
listparam: 'cast(PASTSCALE as NUMERIC) <' + this.param1 + ' and ',
|
|
613
|
-
dateparam: "f_delivery_date",
|
|
614
|
-
}
|
|
615
|
-
],
|
|
616
|
-
inputchildren: '请输入对比比例!',
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
label: "民用",
|
|
620
|
-
value: Math.random(),
|
|
621
|
-
name: 'ti.f_user_type=\'民用\'',
|
|
622
|
-
echartsType: 'pie',
|
|
623
|
-
barparamif: false,
|
|
624
|
-
listif: false,
|
|
625
|
-
dateif: true,
|
|
626
|
-
dateparam: "f_delivery_date",
|
|
627
|
-
sqlcondition: 'pastscaleall',
|
|
628
|
-
children: [
|
|
629
|
-
//子列表
|
|
630
|
-
//高于往期购气量
|
|
631
|
-
{
|
|
632
|
-
label: "高于往期购气量",
|
|
633
|
-
value: Math.random(),
|
|
634
|
-
name: 'ti.f_user_type=\'民用\'',
|
|
635
|
-
echartsType: 'bar',
|
|
636
|
-
dateif: true,
|
|
637
|
-
namesubif: false,
|
|
638
|
-
xname: '月',
|
|
639
|
-
yname: '用户数',
|
|
640
|
-
seriename: '用户数',
|
|
641
|
-
// sqlcondition: {
|
|
642
|
-
// items: '\'民用高于往期' + s1 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
|
|
643
|
-
// tablename: '(SELECT (CASE when PASTSCALE>' + this.param + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
|
|
644
|
-
// ' 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=\'民用\' ' +
|
|
645
|
-
// ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
|
|
646
|
-
// 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
|
|
647
|
-
// condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
|
|
648
|
-
// orderitem: '1'
|
|
649
|
-
// },
|
|
650
|
-
sqlcondition: 'pastscaledo',
|
|
651
|
-
listparam: 'cast(PASTSCALE as NUMERIC) >' + this.param + ' and ',
|
|
652
|
-
dateparam: "f_delivery_date",
|
|
653
|
-
|
|
654
|
-
},
|
|
655
|
-
//低于往期购气量
|
|
656
|
-
{
|
|
657
|
-
label: "低于往期购气量",
|
|
658
|
-
value: Math.random(),
|
|
659
|
-
name: 'ti.f_user_type=\'民用\'',
|
|
660
|
-
echartsType: 'bar',
|
|
661
|
-
dateif: true,
|
|
662
|
-
namesubif: false,
|
|
663
|
-
xname: '月',
|
|
664
|
-
yname: '用户数',
|
|
665
|
-
seriename: '用户数',
|
|
666
|
-
// sqlcondition: {
|
|
667
|
-
// items: '\'民用低于往期' + s2 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
|
|
668
|
-
// tablename: '(SELECT (CASE when PASTSCALE<' + this.param1 + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
|
|
669
|
-
// '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=\'民用\' ' +
|
|
670
|
-
// ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
|
|
671
|
-
// 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
|
|
672
|
-
// condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
|
|
673
|
-
// orderitem: '1'
|
|
674
|
-
// },
|
|
675
|
-
sqlcondition: 'pastscaleup',
|
|
676
|
-
listparam: 'cast(PASTSCALE as NUMERIC) <' + this.param1 + ' and ',
|
|
677
|
-
dateparam: "f_delivery_date",
|
|
678
|
-
}
|
|
679
|
-
],
|
|
680
|
-
inputchildren: '请输入对比比例!',
|
|
681
|
-
},
|
|
682
|
-
{
|
|
683
|
-
label: "非民用",
|
|
684
|
-
value: Math.random(),
|
|
685
|
-
name: 'ti.f_user_type=\'非民用\'',
|
|
686
|
-
echartsType: 'pie',
|
|
687
|
-
barparamif: false,
|
|
688
|
-
listif: false,
|
|
689
|
-
dateif: true,
|
|
690
|
-
dateparam: "f_delivery_date",
|
|
691
|
-
sqlcondition: 'pastscaleall',
|
|
692
|
-
children: [
|
|
693
|
-
//子列表
|
|
694
|
-
//高于往期购气量
|
|
695
|
-
{
|
|
696
|
-
label: "高于往期购气量",
|
|
697
|
-
value: Math.random(),
|
|
698
|
-
name: 'ti.f_user_type=\'非民用\'',
|
|
699
|
-
echartsType: 'bar',
|
|
700
|
-
dateif: true,
|
|
701
|
-
namesubif: false,
|
|
702
|
-
xname: '月',
|
|
703
|
-
yname: '用户数',
|
|
704
|
-
seriename: '用户数',
|
|
705
|
-
// sqlcondition: {
|
|
706
|
-
// items: '\'非民用高于往期' + s1 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
|
|
707
|
-
// tablename: '(SELECT (CASE when PASTSCALE>' + this.param + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
|
|
708
|
-
// ' 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=\'非民用\'' +
|
|
709
|
-
// ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
|
|
710
|
-
// 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
|
|
711
|
-
// condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
|
|
712
|
-
// orderitem: '1'
|
|
713
|
-
// },
|
|
714
|
-
sqlcondition: 'pastscaledo',
|
|
715
|
-
listparam: 'cast(PASTSCALE as NUMERIC) >' + this.param + ' and ',
|
|
716
|
-
dateparam: "f_delivery_date",
|
|
717
|
-
children: '请输入对比比例!',
|
|
718
|
-
},
|
|
719
|
-
//低于往期购气量
|
|
720
|
-
{
|
|
721
|
-
label: "低于往期购气量",
|
|
722
|
-
value: Math.random(),
|
|
723
|
-
name: 'ti.f_user_type=\'非民用\'',
|
|
724
|
-
echartsType: 'bar',
|
|
725
|
-
dateif: true,
|
|
726
|
-
namesubif: false,
|
|
727
|
-
xname: '月',
|
|
728
|
-
yname: '用户数',
|
|
729
|
-
seriename: '用户数',
|
|
730
|
-
// sqlcondition: {
|
|
731
|
-
// items: '\'非民用低于往期' + s2 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
|
|
732
|
-
// tablename: '(SELECT (CASE when PASTSCALE<' + this.param1 + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
|
|
733
|
-
// '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=\'非民用\'' +
|
|
734
|
-
// ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
|
|
735
|
-
// 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
|
|
736
|
-
// condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
|
|
737
|
-
// orderitem: '1'
|
|
738
|
-
// },
|
|
739
|
-
sqlcondition: 'jydpastscaleup',
|
|
740
|
-
listparam: 'cast(PASTSCALE as NUMERIC) <' + this.param1 + ' and ',
|
|
741
|
-
dateparam: "f_delivery_date",
|
|
742
|
-
children: '请输入对比比例!',
|
|
743
|
-
}
|
|
744
|
-
],
|
|
745
|
-
inputchildren: '请输入对比比例!',
|
|
746
|
-
},
|
|
747
|
-
],
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
//无param时,获取title配置列表
|
|
752
|
-
if (param1 == '' && param2 == '') {
|
|
753
|
-
var reslut = sql[title][idname]
|
|
754
|
-
console.log(reslut, '返回钻取条件')
|
|
755
|
-
return reslut
|
|
756
|
-
} else {
|
|
757
|
-
// 有param获取title配置列表的param所在列
|
|
758
|
-
var reslut = {}
|
|
759
|
-
for (var i = 0; i < sql[title][idname].length; i++) {
|
|
760
|
-
if (sql[title][idname][i].label == param1 && param2 == '') {
|
|
761
|
-
reslut = sql[title][idname][i]
|
|
762
|
-
break
|
|
763
|
-
}
|
|
764
|
-
// 遍历子列表
|
|
765
|
-
if (JSON.stringify(sql[title][idname][i].children) != '[]' && sql[title][idname][i].label == param1) {
|
|
766
|
-
for (var j = 0; j < sql[title][idname][i].children.length; j++) {
|
|
767
|
-
if (sql[title][idname][i].children[j].label == param2) {
|
|
768
|
-
reslut = sql[title][idname][i].children[j]
|
|
769
|
-
break
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
console.log(reslut, '返回钻取条件')
|
|
775
|
-
return reslut
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
//获取列表参数,title=所属钻取分类名,param1=一级钻取字段,param2=二级钻取字段,
|
|
781
|
-
export function getDrillList(title, idname, param1, param2) {
|
|
782
|
-
// listsql配置,items=查询列名,tablename=表名,condition=条件,dateparam=时间字段名,
|
|
783
|
-
// (PageList进行查询,items,tablename,condition,前后增加\' ,负责报错)
|
|
784
|
-
var List = {
|
|
785
|
-
/********************用户*********************/
|
|
786
|
-
//用户列表sql
|
|
787
|
-
user: {
|
|
788
|
-
//用户数量
|
|
789
|
-
usernum: [
|
|
790
|
-
'usernum',
|
|
791
|
-
{headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "收费类型", "公司"]},
|
|
792
|
-
{bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_cost_type', 'f_filiale']},
|
|
793
|
-
{dateparam: "f_createfile_date"}
|
|
794
|
-
],
|
|
795
|
-
//主要用户
|
|
796
|
-
mainuser: [
|
|
797
|
-
'mainuser',
|
|
798
|
-
{headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气量"]},
|
|
799
|
-
{bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_pregas']},
|
|
800
|
-
{dateparam: "a.f_delivery_date"}
|
|
801
|
-
]
|
|
802
|
-
},
|
|
803
|
-
/********************监控*********************/
|
|
804
|
-
//监控列表sql
|
|
805
|
-
monitor: {
|
|
806
|
-
//警告
|
|
807
|
-
caveat: [
|
|
808
|
-
// {
|
|
809
|
-
// items: "\'*\'",
|
|
810
|
-
// tablename: "\"(select tm.f_magneticInterference,tm.f_alarmShutValve,tm.f_cycleShutValue,tm.f_overCurrentProtection," +
|
|
811
|
-
// "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 " +
|
|
812
|
-
// this.listparam + this.listparam1 + " tm.f_userinfo_id=ti.f_userinfo_id)\"",
|
|
813
|
-
// condition: "\'1=1\'",
|
|
814
|
-
// orderitem: "\'f_userinfo_id desc\'"
|
|
815
|
-
// },
|
|
816
|
-
'caveat',
|
|
817
|
-
{headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "磁干扰", "报警关阀", "周期关阀", "过流保护关阀", "关阀走气"]},
|
|
818
|
-
{bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_magneticinterference', 'f_alarmshutvalve', 'f_cycleshutvalue', 'f_overcurrentprotection', 'f_leakageflag']},
|
|
819
|
-
{dateparam: "tm.f_hand_date"}
|
|
820
|
-
],
|
|
821
|
-
//长期未用气
|
|
822
|
-
longnotusegas: [
|
|
823
|
-
// {
|
|
824
|
-
// items: "\'*\'",
|
|
825
|
-
// 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," +
|
|
826
|
-
// "ROUND(TO_NUMBER (SYSDATE - 1 - al.f_hand_date)) duration from a_longnotusegas al,t_userinfo ti where " +
|
|
827
|
-
// this.listparam + this.listparam1 + " al.f_userinfo_id=ti.f_userinfo_id)\"",
|
|
828
|
-
// condition: "\'1=1\'",
|
|
829
|
-
// orderitem: "\'duration desc\'"
|
|
830
|
-
// },
|
|
831
|
-
'longnotusegas',
|
|
832
|
-
{headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "表具编号", "最近抄表时间", "未用气时长(天)"]},
|
|
833
|
-
{bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_user_id', 'f_handplan_max_handdate', 'diffday']},
|
|
834
|
-
{dateparam: "CAST(trunc(SYSDATE)- trunc(F_HANDPLAN_MAX_HANDDATE) as int)"}
|
|
835
|
-
],
|
|
836
|
-
//失联
|
|
837
|
-
lossassociation: [
|
|
838
|
-
// {
|
|
839
|
-
// items: "\'*\'",
|
|
840
|
-
// 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," +
|
|
841
|
-
// "ROUND(TO_NUMBER (SYSDATE - 1 - al.f_hand_date)) duration from a_lossassociation al,t_userinfo ti where " +
|
|
842
|
-
// this.listparam + this.listparam1 + " al.f_userinfo_id=ti.f_userinfo_id)\"",
|
|
843
|
-
// condition: "\'1=1\'",
|
|
844
|
-
// orderitem: "\'duration desc\'"
|
|
845
|
-
// },
|
|
846
|
-
'lossassociation',
|
|
847
|
-
{headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "表具编号", "最后上报时间", "最后表读数", "失联时长(天)"]},
|
|
848
|
-
{bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_user_id', 'f_meteread_max_ininsertdate', 'f_meter_base', 'slday']},
|
|
849
|
-
{
|
|
850
|
-
dateparam: "slday"
|
|
851
|
-
}
|
|
852
|
-
],
|
|
853
|
-
//往期对比
|
|
854
|
-
pastscale: [
|
|
855
|
-
// {
|
|
856
|
-
// items: "\'*\'",
|
|
857
|
-
// 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," +
|
|
858
|
-
// "ab.f_delivery_date,pastscale from t_userinfo ti,A_BUYGASCHANGE ab where " +
|
|
859
|
-
// this.listparam + this.listparam1 + " ti.f_user_state=\'正常\' and ab.f_last_pregas!=0 and ti.f_userinfo_id=ab.f_userinfo_id) \"",
|
|
860
|
-
// condition: "\'1=1\'",
|
|
861
|
-
// orderitem: "\'pastscale desc\'"
|
|
862
|
-
// },
|
|
863
|
-
'pastscale',
|
|
864
|
-
{headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "最近购气量", "往期购气均值", "最近购气时间", "往期购气比例"]},
|
|
865
|
-
{bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_pregas', 'f_last_pregas', 'f_delivery_date', 'pastscale']},
|
|
866
|
-
{dateparam: "ab.f_delivery_date"}
|
|
867
|
-
],
|
|
868
|
-
//长期未购气
|
|
869
|
-
longnotbuygas: [
|
|
870
|
-
{
|
|
871
|
-
items: "\' * \'",
|
|
872
|
-
tablename: "\"(select distinct(tu.f_userinfo_id),tu.f_user_name,tu.f_address,tu.f_user_type,tu.f_gasproperties, " +
|
|
873
|
-
" al.f_delivery_date,ROUND(TO_NUMBER (SYSDATE \- 1 \- al.F_DELIVERY_DATE)) duration from t_userinfo tu,a_longnotbuygas al where " +
|
|
874
|
-
this.listparam + this.listparam1 + " tu.f_user_state=\'正常\' and tu.f_userinfo_id=al.f_userinfo_id)\"",
|
|
875
|
-
condition: "\'1=1\'",
|
|
876
|
-
orderitem: "\'duration desc\'"
|
|
877
|
-
},
|
|
878
|
-
{headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "最近购气时间", "未购气时长(天)"]},
|
|
879
|
-
{bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_sellinggas_max_date', 'diffday']},
|
|
880
|
-
{dateparam: "CAST(trunc(SYSDATE)- NVL(F_HANDPLAN_MAX_HANDDATE,a.f_input_date) as int)"}
|
|
881
|
-
],
|
|
882
|
-
},
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
//返回PageList查询条件
|
|
887
|
-
return [List[title][idname][1], List[title][idname][2], List[title][idname][3]]
|
|
888
|
-
}
|
|
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: "全部",
|
|
243
|
+
name: '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: "slday",
|
|
251
|
+
sqlcondition: 'lossassociation',
|
|
252
|
+
children: [],
|
|
253
|
+
inputchildren: '',
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
label: "民用",
|
|
257
|
+
value: "民用",
|
|
258
|
+
name: 'f_user_type=\'民用\'',
|
|
259
|
+
echartsType: 'bar',
|
|
260
|
+
barparamif: false,
|
|
261
|
+
listif: false,
|
|
262
|
+
dateif: true,
|
|
263
|
+
namesubif: false,
|
|
264
|
+
xname: '天', yname: '客户数', seriename: '民用',
|
|
265
|
+
dateparam: "slday",
|
|
266
|
+
sqlcondition: 'lossassociation',
|
|
267
|
+
children: [
|
|
268
|
+
//子列表
|
|
269
|
+
{
|
|
270
|
+
label: "居民用气",
|
|
271
|
+
value: "居民用气",
|
|
272
|
+
echartsType: 'bar',
|
|
273
|
+
barparamif: false,
|
|
274
|
+
listif: false,
|
|
275
|
+
dateif: true,
|
|
276
|
+
namesubif: false,
|
|
277
|
+
xname: '天', yname: '客户数', seriename: '客户数',
|
|
278
|
+
name: 'f_gasproperties =\'居民用气\'',
|
|
279
|
+
sqlcondition: 'lossassociation',
|
|
280
|
+
dateparam: "f_gasproperties"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
label: "居民地暖",
|
|
284
|
+
value: "居民地暖",
|
|
285
|
+
echartsType: 'bar',
|
|
286
|
+
barparamif: false,
|
|
287
|
+
listif: false,
|
|
288
|
+
dateif: true,
|
|
289
|
+
namesubif: false,
|
|
290
|
+
xname: '天', yname: '客户数', seriename: '客户数',
|
|
291
|
+
name: 'f_gasproperties =\'居民地暖\'',
|
|
292
|
+
sqlcondition: 'lossassociation',
|
|
293
|
+
dateparam: "f_gasproperties"
|
|
294
|
+
|
|
295
|
+
}],
|
|
296
|
+
inputchildren: '',
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
label: "非民用",
|
|
300
|
+
value: "非民用",
|
|
301
|
+
name: 'f_user_type=\'非民用\'',
|
|
302
|
+
echartsType: 'bar',
|
|
303
|
+
barparamif: false,
|
|
304
|
+
listif: false,
|
|
305
|
+
dateif: true,
|
|
306
|
+
namesubif: false,
|
|
307
|
+
xname: '天', yname: '客户数', seriename: '民用',
|
|
308
|
+
dateparam: "slday",
|
|
309
|
+
sqlcondition: 'lossassociation',
|
|
310
|
+
children: [
|
|
311
|
+
//子列表
|
|
312
|
+
{
|
|
313
|
+
label: "商业用气",
|
|
314
|
+
value: "商业用气",
|
|
315
|
+
echartsType: 'bar',
|
|
316
|
+
barparamif: false,
|
|
317
|
+
listif: false,
|
|
318
|
+
dateif: true,
|
|
319
|
+
xname: '天', yname: '客户数', seriename: '客户数',
|
|
320
|
+
namesubif: false,
|
|
321
|
+
name: 'f_gasproperties =\'商业用气\'',
|
|
322
|
+
sqlcondition: 'lossassociation',
|
|
323
|
+
dateparam: "f_gasproperties"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
label: "工业用气",
|
|
327
|
+
value: "工业用气",
|
|
328
|
+
echartsType: 'bar',
|
|
329
|
+
barparamif: false,
|
|
330
|
+
xname: '天', yname: '客户数', seriename: '客户数',
|
|
331
|
+
listif: false,
|
|
332
|
+
dateif: true,
|
|
333
|
+
namesubif: false,
|
|
334
|
+
name: 'f_gasproperties =\'工业用气\'',
|
|
335
|
+
sqlcondition: 'lossassociation',
|
|
336
|
+
dateparam: "f_gasproperties"
|
|
337
|
+
|
|
338
|
+
}],
|
|
339
|
+
inputchildren: '',
|
|
340
|
+
}
|
|
341
|
+
],
|
|
342
|
+
// 钻取长期未用气用户统计
|
|
343
|
+
longnotusegas: [
|
|
344
|
+
{
|
|
345
|
+
label: "全部",
|
|
346
|
+
value: "全部",
|
|
347
|
+
name: 'a.f_user_type is not null',
|
|
348
|
+
echartsType: 'bar',
|
|
349
|
+
barparamif: false,
|
|
350
|
+
listif: false,
|
|
351
|
+
dateif: true,
|
|
352
|
+
namesubif: false,
|
|
353
|
+
xname: '日', yname: '用户数', seriename: '用户数',
|
|
354
|
+
dateparam: "f_hand_date",
|
|
355
|
+
sqlcondition: 'longnotusegas',
|
|
356
|
+
children: [],
|
|
357
|
+
inputchildren: '',
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
label: "民用",
|
|
361
|
+
value: "民用",
|
|
362
|
+
name: 'a.f_user_type=\'民用\'',
|
|
363
|
+
echartsType: 'bar',
|
|
364
|
+
barparamif: false,
|
|
365
|
+
listif: false,
|
|
366
|
+
dateif: true,
|
|
367
|
+
namesubif: false,
|
|
368
|
+
xname: '日', yname: '用户数', seriename: '民用',
|
|
369
|
+
dateparam: "f_hand_date",
|
|
370
|
+
sqlcondition: 'longnotusegas',
|
|
371
|
+
children: [
|
|
372
|
+
//子列表
|
|
373
|
+
{
|
|
374
|
+
label: "居民用气",
|
|
375
|
+
value: "居民用气",
|
|
376
|
+
echartsType: 'bar',
|
|
377
|
+
barparamif: false,
|
|
378
|
+
listif: false,
|
|
379
|
+
dateif: true,
|
|
380
|
+
namesubif: false,
|
|
381
|
+
xname: '天', yname: '客户数', seriename: '客户数',
|
|
382
|
+
name: 'a.f_gasproperties =\'居民用气\'',
|
|
383
|
+
sqlcondition: 'longnotusegas',
|
|
384
|
+
dateparam: "f_gasproperties"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
label: "居民地暖",
|
|
388
|
+
value: "居民地暖",
|
|
389
|
+
echartsType: 'bar',
|
|
390
|
+
barparamif: false,
|
|
391
|
+
listif: false,
|
|
392
|
+
dateif: true,
|
|
393
|
+
namesubif: false,
|
|
394
|
+
xname: '天', yname: '客户数', seriename: '客户数',
|
|
395
|
+
name: 'a.f_gasproperties =\'居民地暖\'',
|
|
396
|
+
sqlcondition: 'longnotusegas',
|
|
397
|
+
dateparam: "f_gasproperties"
|
|
398
|
+
|
|
399
|
+
}],
|
|
400
|
+
inputchildren: '',
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
label: "非民用",
|
|
404
|
+
value: "非民用",
|
|
405
|
+
name: 'a.f_user_type=\'非民用\'',
|
|
406
|
+
echartsType: 'bar',
|
|
407
|
+
barparamif: false,
|
|
408
|
+
listif: false,
|
|
409
|
+
dateif: true,
|
|
410
|
+
namesubif: false,
|
|
411
|
+
xname: '月', yname: '用户数', seriename: '非民用',
|
|
412
|
+
dateparam: "f_hand_date",
|
|
413
|
+
sqlcondition: 'longnotusegas',
|
|
414
|
+
children: [
|
|
415
|
+
//子列表
|
|
416
|
+
{
|
|
417
|
+
label: "商业用气",
|
|
418
|
+
value: "商业用气",
|
|
419
|
+
echartsType: 'bar',
|
|
420
|
+
barparamif: false,
|
|
421
|
+
listif: false,
|
|
422
|
+
dateif: true,
|
|
423
|
+
namesubif: false,
|
|
424
|
+
name: 'a.f_gasproperties =\'商业用气\'',
|
|
425
|
+
xname: '天', yname: '客户数', seriename: '客户数',
|
|
426
|
+
sqlcondition: 'longnotbuygas',
|
|
427
|
+
dateparam: "f_gasproperties"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
label: "工业用气",
|
|
431
|
+
value: "工业用气",
|
|
432
|
+
echartsType: 'bar',
|
|
433
|
+
barparamif: false,
|
|
434
|
+
listif: false,
|
|
435
|
+
dateif: true,
|
|
436
|
+
namesubif: false,
|
|
437
|
+
name: 'a.f_gasproperties =\'工业用气\'',
|
|
438
|
+
xname: '天', yname: '客户数', seriename: '客户数',
|
|
439
|
+
sqlcondition: 'longnotbuygas',
|
|
440
|
+
dateparam: "f_gasproperties"
|
|
441
|
+
|
|
442
|
+
}],
|
|
443
|
+
inputchildren: '',
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
// 钻取长期未购气
|
|
447
|
+
longnotbuygas: [
|
|
448
|
+
{
|
|
449
|
+
label: "全部",
|
|
450
|
+
value: "全部",
|
|
451
|
+
name: 'a.f_user_type is not null',
|
|
452
|
+
echartsType: 'bar',
|
|
453
|
+
barparamif: false,
|
|
454
|
+
listif: false,
|
|
455
|
+
dateif: true,
|
|
456
|
+
namesubif: false,
|
|
457
|
+
xname: '日', yname: '用户数', seriename: '',
|
|
458
|
+
dateparam: "f_delivery_date",
|
|
459
|
+
sqlcondition: 'longnotbuygas',
|
|
460
|
+
children: [],
|
|
461
|
+
inputchildren: '',
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
label: "民用",
|
|
465
|
+
value: "民用",
|
|
466
|
+
name: 'a.f_user_type=\'民用\'',
|
|
467
|
+
echartsType: 'bar',
|
|
468
|
+
barparamif: false,
|
|
469
|
+
listif: false,
|
|
470
|
+
dateif: true,
|
|
471
|
+
namesubif: false,
|
|
472
|
+
xname: '日', yname: '用户数', seriename: '',
|
|
473
|
+
dateparam: "f_delivery_date",
|
|
474
|
+
sqlcondition: 'longnotbuygas',
|
|
475
|
+
children: [
|
|
476
|
+
//子列表
|
|
477
|
+
{
|
|
478
|
+
label: "居民用气",
|
|
479
|
+
value: "居民用气",
|
|
480
|
+
echartsType: 'bar',
|
|
481
|
+
barparamif: false,
|
|
482
|
+
listif: false,
|
|
483
|
+
dateif: true,
|
|
484
|
+
namesubif: false,
|
|
485
|
+
xname: '天', yname: '客户数', seriename: '客户数',
|
|
486
|
+
name: 'a.f_gasproperties =\'居民用气\'',
|
|
487
|
+
sqlcondition: 'longnotbuygas',
|
|
488
|
+
dateparam: "f_gasproperties"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
label: "居民地暖",
|
|
492
|
+
value: "居民地暖",
|
|
493
|
+
echartsType: 'bar',
|
|
494
|
+
barparamif: false,
|
|
495
|
+
listif: false,
|
|
496
|
+
dateif: true,
|
|
497
|
+
namesubif: false,
|
|
498
|
+
xname: '天', yname: '客户数', seriename: '客户数',
|
|
499
|
+
name: 'a.f_gasproperties =\'居民地暖\'',
|
|
500
|
+
sqlcondition: 'longnotbuygas',
|
|
501
|
+
dateparam: "f_gasproperties"
|
|
502
|
+
|
|
503
|
+
}],
|
|
504
|
+
inputchildren: '',
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
label: "非民用",
|
|
508
|
+
value: "非民用",
|
|
509
|
+
name: 'a.f_user_type=\'非民用\'',
|
|
510
|
+
echartsType: 'bar',
|
|
511
|
+
barparamif: false,
|
|
512
|
+
listif: false,
|
|
513
|
+
dateif: true,
|
|
514
|
+
namesubif: false,
|
|
515
|
+
xname: '日', yname: '用户数', seriename: '',
|
|
516
|
+
dateparam: "f_delivery_date",
|
|
517
|
+
sqlcondition: 'longnotbuygas',
|
|
518
|
+
children: [
|
|
519
|
+
//子列表
|
|
520
|
+
{
|
|
521
|
+
label: "商业用气",
|
|
522
|
+
value: "商业用气",
|
|
523
|
+
echartsType: 'bar',
|
|
524
|
+
barparamif: false,
|
|
525
|
+
listif: false,
|
|
526
|
+
dateif: true,
|
|
527
|
+
namesubif: false,
|
|
528
|
+
xname: '天', yname: '客户数', seriename: '客户数',
|
|
529
|
+
name: 'a.f_gasproperties =\'商业用气\'',
|
|
530
|
+
sqlcondition: 'longnotbuygas',
|
|
531
|
+
dateparam: "f_gasproperties"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
label: "工业用气",
|
|
535
|
+
value: "工业用气",
|
|
536
|
+
echartsType: 'bar',
|
|
537
|
+
barparamif: false,
|
|
538
|
+
listif: false,
|
|
539
|
+
dateif: true,
|
|
540
|
+
namesubif: false,
|
|
541
|
+
xname: '天', yname: '客户数', seriename: '客户数',
|
|
542
|
+
name: 'a.f_gasproperties =\'工业用气\'',
|
|
543
|
+
sqlcondition: 'longnotbuygas',
|
|
544
|
+
dateparam: "f_gasproperties"
|
|
545
|
+
|
|
546
|
+
}],
|
|
547
|
+
inputchildren: '',
|
|
548
|
+
},
|
|
549
|
+
],
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
// 钻取往期购气对比
|
|
553
|
+
pastscale: [
|
|
554
|
+
{
|
|
555
|
+
label: "全部",
|
|
556
|
+
value: Math.random(),
|
|
557
|
+
name: 'ti.f_user_type is not null',
|
|
558
|
+
echartsType: 'pie',
|
|
559
|
+
barparamif: false,
|
|
560
|
+
listif: false,
|
|
561
|
+
dateif: true,
|
|
562
|
+
dateparam: "f_delivery_date",
|
|
563
|
+
sqlcondition: 'pastscaleall',
|
|
564
|
+
children: [
|
|
565
|
+
//子列表
|
|
566
|
+
//高于往期购气量
|
|
567
|
+
{
|
|
568
|
+
label: "高于往期购气量",
|
|
569
|
+
value: Math.random(),
|
|
570
|
+
name: 'ti.f_user_type is not null',
|
|
571
|
+
echartsType: 'bar',
|
|
572
|
+
dateif: true,
|
|
573
|
+
namesubif: false,
|
|
574
|
+
xname: '月',
|
|
575
|
+
yname: '用户数',
|
|
576
|
+
seriename: '用户数',
|
|
577
|
+
// sqlcondition: {
|
|
578
|
+
// items: '\'民用高于往期' + s1 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
|
|
579
|
+
// tablename: '(SELECT (CASE when PASTSCALE>' + this.param + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
|
|
580
|
+
// ' 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=\'民用\' ' +
|
|
581
|
+
// ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
|
|
582
|
+
// 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
|
|
583
|
+
// condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
|
|
584
|
+
// orderitem: '1'
|
|
585
|
+
// },
|
|
586
|
+
sqlcondition: 'pastscaledo',
|
|
587
|
+
listparam: 'cast(PASTSCALE as NUMERIC) >' + this.param + ' and ',
|
|
588
|
+
dateparam: "f_delivery_date",
|
|
589
|
+
|
|
590
|
+
},
|
|
591
|
+
//低于往期购气量
|
|
592
|
+
{
|
|
593
|
+
label: "低于往期购气量",
|
|
594
|
+
value: Math.random(),
|
|
595
|
+
name: 'ti.f_user_type is not null',
|
|
596
|
+
echartsType: 'bar',
|
|
597
|
+
dateif: true,
|
|
598
|
+
namesubif: false,
|
|
599
|
+
xname: '月',
|
|
600
|
+
yname: '用户数',
|
|
601
|
+
seriename: '用户数',
|
|
602
|
+
// sqlcondition: {
|
|
603
|
+
// items: '\'民用低于往期' + s2 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
|
|
604
|
+
// tablename: '(SELECT (CASE when PASTSCALE<' + this.param1 + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
|
|
605
|
+
// 'from (SELECT AAA.* from A_BUYGASCHANGE aaa,T_USERINFO bbb WHERE bbb.f_user_state=\'正常\' and AAA.F_USERINFO_ID=BBB.F_USERINFO_ID ' +
|
|
606
|
+
// ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
|
|
607
|
+
// 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
|
|
608
|
+
// condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
|
|
609
|
+
// orderitem: '1'
|
|
610
|
+
// },
|
|
611
|
+
sqlcondition: 'pastscaleup',
|
|
612
|
+
listparam: 'cast(PASTSCALE as NUMERIC) <' + this.param1 + ' and ',
|
|
613
|
+
dateparam: "f_delivery_date",
|
|
614
|
+
}
|
|
615
|
+
],
|
|
616
|
+
inputchildren: '请输入对比比例!',
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
label: "民用",
|
|
620
|
+
value: Math.random(),
|
|
621
|
+
name: 'ti.f_user_type=\'民用\'',
|
|
622
|
+
echartsType: 'pie',
|
|
623
|
+
barparamif: false,
|
|
624
|
+
listif: false,
|
|
625
|
+
dateif: true,
|
|
626
|
+
dateparam: "f_delivery_date",
|
|
627
|
+
sqlcondition: 'pastscaleall',
|
|
628
|
+
children: [
|
|
629
|
+
//子列表
|
|
630
|
+
//高于往期购气量
|
|
631
|
+
{
|
|
632
|
+
label: "高于往期购气量",
|
|
633
|
+
value: Math.random(),
|
|
634
|
+
name: 'ti.f_user_type=\'民用\'',
|
|
635
|
+
echartsType: 'bar',
|
|
636
|
+
dateif: true,
|
|
637
|
+
namesubif: false,
|
|
638
|
+
xname: '月',
|
|
639
|
+
yname: '用户数',
|
|
640
|
+
seriename: '用户数',
|
|
641
|
+
// sqlcondition: {
|
|
642
|
+
// items: '\'民用高于往期' + s1 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
|
|
643
|
+
// tablename: '(SELECT (CASE when PASTSCALE>' + this.param + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
|
|
644
|
+
// ' 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=\'民用\' ' +
|
|
645
|
+
// ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
|
|
646
|
+
// 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
|
|
647
|
+
// condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
|
|
648
|
+
// orderitem: '1'
|
|
649
|
+
// },
|
|
650
|
+
sqlcondition: 'pastscaledo',
|
|
651
|
+
listparam: 'cast(PASTSCALE as NUMERIC) >' + this.param + ' and ',
|
|
652
|
+
dateparam: "f_delivery_date",
|
|
653
|
+
|
|
654
|
+
},
|
|
655
|
+
//低于往期购气量
|
|
656
|
+
{
|
|
657
|
+
label: "低于往期购气量",
|
|
658
|
+
value: Math.random(),
|
|
659
|
+
name: 'ti.f_user_type=\'民用\'',
|
|
660
|
+
echartsType: 'bar',
|
|
661
|
+
dateif: true,
|
|
662
|
+
namesubif: false,
|
|
663
|
+
xname: '月',
|
|
664
|
+
yname: '用户数',
|
|
665
|
+
seriename: '用户数',
|
|
666
|
+
// sqlcondition: {
|
|
667
|
+
// items: '\'民用低于往期' + s2 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
|
|
668
|
+
// tablename: '(SELECT (CASE when PASTSCALE<' + this.param1 + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
|
|
669
|
+
// '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=\'民用\' ' +
|
|
670
|
+
// ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
|
|
671
|
+
// 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
|
|
672
|
+
// condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
|
|
673
|
+
// orderitem: '1'
|
|
674
|
+
// },
|
|
675
|
+
sqlcondition: 'pastscaleup',
|
|
676
|
+
listparam: 'cast(PASTSCALE as NUMERIC) <' + this.param1 + ' and ',
|
|
677
|
+
dateparam: "f_delivery_date",
|
|
678
|
+
}
|
|
679
|
+
],
|
|
680
|
+
inputchildren: '请输入对比比例!',
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
label: "非民用",
|
|
684
|
+
value: Math.random(),
|
|
685
|
+
name: 'ti.f_user_type=\'非民用\'',
|
|
686
|
+
echartsType: 'pie',
|
|
687
|
+
barparamif: false,
|
|
688
|
+
listif: false,
|
|
689
|
+
dateif: true,
|
|
690
|
+
dateparam: "f_delivery_date",
|
|
691
|
+
sqlcondition: 'pastscaleall',
|
|
692
|
+
children: [
|
|
693
|
+
//子列表
|
|
694
|
+
//高于往期购气量
|
|
695
|
+
{
|
|
696
|
+
label: "高于往期购气量",
|
|
697
|
+
value: Math.random(),
|
|
698
|
+
name: 'ti.f_user_type=\'非民用\'',
|
|
699
|
+
echartsType: 'bar',
|
|
700
|
+
dateif: true,
|
|
701
|
+
namesubif: false,
|
|
702
|
+
xname: '月',
|
|
703
|
+
yname: '用户数',
|
|
704
|
+
seriename: '用户数',
|
|
705
|
+
// sqlcondition: {
|
|
706
|
+
// items: '\'非民用高于往期' + s1 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
|
|
707
|
+
// tablename: '(SELECT (CASE when PASTSCALE>' + this.param + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
|
|
708
|
+
// ' 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=\'非民用\'' +
|
|
709
|
+
// ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
|
|
710
|
+
// 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
|
|
711
|
+
// condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
|
|
712
|
+
// orderitem: '1'
|
|
713
|
+
// },
|
|
714
|
+
sqlcondition: 'pastscaledo',
|
|
715
|
+
listparam: 'cast(PASTSCALE as NUMERIC) >' + this.param + ' and ',
|
|
716
|
+
dateparam: "f_delivery_date",
|
|
717
|
+
children: '请输入对比比例!',
|
|
718
|
+
},
|
|
719
|
+
//低于往期购气量
|
|
720
|
+
{
|
|
721
|
+
label: "低于往期购气量",
|
|
722
|
+
value: Math.random(),
|
|
723
|
+
name: 'ti.f_user_type=\'非民用\'',
|
|
724
|
+
echartsType: 'bar',
|
|
725
|
+
dateif: true,
|
|
726
|
+
namesubif: false,
|
|
727
|
+
xname: '月',
|
|
728
|
+
yname: '用户数',
|
|
729
|
+
seriename: '用户数',
|
|
730
|
+
// sqlcondition: {
|
|
731
|
+
// items: '\'非民用低于往期' + s2 + '%\' type,count(r) value,to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,\'notparam\' drilltype',
|
|
732
|
+
// tablename: '(SELECT (CASE when PASTSCALE<' + this.param1 + ' then F_USERINFO_ID end) r,F_DELIVERY_DATE ' +
|
|
733
|
+
// '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=\'非民用\'' +
|
|
734
|
+
// ' and aaa.f_last_pregas!=0) WHERE F_DELIVERY_DATE>=to_date(\'' + this.startDate + '\',\'yyyy-mm-dd hh24:mi;ss\') and ' +
|
|
735
|
+
// 'F_DELIVERY_DATE<=to_date(\'' + this.endDate + '\',\'yyyy-mm-dd hh24:mi;ss\') )qq',
|
|
736
|
+
// condition: 'qq.r is not null GROUP BY to_char(F_DELIVERY_DATE,\'yyyy-mm\')',
|
|
737
|
+
// orderitem: '1'
|
|
738
|
+
// },
|
|
739
|
+
sqlcondition: 'jydpastscaleup',
|
|
740
|
+
listparam: 'cast(PASTSCALE as NUMERIC) <' + this.param1 + ' and ',
|
|
741
|
+
dateparam: "f_delivery_date",
|
|
742
|
+
children: '请输入对比比例!',
|
|
743
|
+
}
|
|
744
|
+
],
|
|
745
|
+
inputchildren: '请输入对比比例!',
|
|
746
|
+
},
|
|
747
|
+
],
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
//无param时,获取title配置列表
|
|
752
|
+
if (param1 == '' && param2 == '') {
|
|
753
|
+
var reslut = sql[title][idname]
|
|
754
|
+
console.log(reslut, '返回钻取条件')
|
|
755
|
+
return reslut
|
|
756
|
+
} else {
|
|
757
|
+
// 有param获取title配置列表的param所在列
|
|
758
|
+
var reslut = {}
|
|
759
|
+
for (var i = 0; i < sql[title][idname].length; i++) {
|
|
760
|
+
if (sql[title][idname][i].label == param1 && param2 == '') {
|
|
761
|
+
reslut = sql[title][idname][i]
|
|
762
|
+
break
|
|
763
|
+
}
|
|
764
|
+
// 遍历子列表
|
|
765
|
+
if (JSON.stringify(sql[title][idname][i].children) != '[]' && sql[title][idname][i].label == param1) {
|
|
766
|
+
for (var j = 0; j < sql[title][idname][i].children.length; j++) {
|
|
767
|
+
if (sql[title][idname][i].children[j].label == param2) {
|
|
768
|
+
reslut = sql[title][idname][i].children[j]
|
|
769
|
+
break
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
console.log(reslut, '返回钻取条件')
|
|
775
|
+
return reslut
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
//获取列表参数,title=所属钻取分类名,param1=一级钻取字段,param2=二级钻取字段,
|
|
781
|
+
export function getDrillList(title, idname, param1, param2) {
|
|
782
|
+
// listsql配置,items=查询列名,tablename=表名,condition=条件,dateparam=时间字段名,
|
|
783
|
+
// (PageList进行查询,items,tablename,condition,前后增加\' ,负责报错)
|
|
784
|
+
var List = {
|
|
785
|
+
/********************用户*********************/
|
|
786
|
+
//用户列表sql
|
|
787
|
+
user: {
|
|
788
|
+
//用户数量
|
|
789
|
+
usernum: [
|
|
790
|
+
'usernum',
|
|
791
|
+
{headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "收费类型", "公司"]},
|
|
792
|
+
{bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_cost_type', 'f_filiale']},
|
|
793
|
+
{dateparam: "f_createfile_date"}
|
|
794
|
+
],
|
|
795
|
+
//主要用户
|
|
796
|
+
mainuser: [
|
|
797
|
+
'mainuser',
|
|
798
|
+
{headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气量"]},
|
|
799
|
+
{bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_pregas']},
|
|
800
|
+
{dateparam: "a.f_delivery_date"}
|
|
801
|
+
]
|
|
802
|
+
},
|
|
803
|
+
/********************监控*********************/
|
|
804
|
+
//监控列表sql
|
|
805
|
+
monitor: {
|
|
806
|
+
//警告
|
|
807
|
+
caveat: [
|
|
808
|
+
// {
|
|
809
|
+
// items: "\'*\'",
|
|
810
|
+
// tablename: "\"(select tm.f_magneticInterference,tm.f_alarmShutValve,tm.f_cycleShutValue,tm.f_overCurrentProtection," +
|
|
811
|
+
// "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 " +
|
|
812
|
+
// this.listparam + this.listparam1 + " tm.f_userinfo_id=ti.f_userinfo_id)\"",
|
|
813
|
+
// condition: "\'1=1\'",
|
|
814
|
+
// orderitem: "\'f_userinfo_id desc\'"
|
|
815
|
+
// },
|
|
816
|
+
'caveat',
|
|
817
|
+
{headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "磁干扰", "报警关阀", "周期关阀", "过流保护关阀", "关阀走气"]},
|
|
818
|
+
{bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_magneticinterference', 'f_alarmshutvalve', 'f_cycleshutvalue', 'f_overcurrentprotection', 'f_leakageflag']},
|
|
819
|
+
{dateparam: "tm.f_hand_date"}
|
|
820
|
+
],
|
|
821
|
+
//长期未用气
|
|
822
|
+
longnotusegas: [
|
|
823
|
+
// {
|
|
824
|
+
// items: "\'*\'",
|
|
825
|
+
// 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," +
|
|
826
|
+
// "ROUND(TO_NUMBER (SYSDATE - 1 - al.f_hand_date)) duration from a_longnotusegas al,t_userinfo ti where " +
|
|
827
|
+
// this.listparam + this.listparam1 + " al.f_userinfo_id=ti.f_userinfo_id)\"",
|
|
828
|
+
// condition: "\'1=1\'",
|
|
829
|
+
// orderitem: "\'duration desc\'"
|
|
830
|
+
// },
|
|
831
|
+
'longnotusegas',
|
|
832
|
+
{headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "表具编号", "最近抄表时间", "未用气时长(天)"]},
|
|
833
|
+
{bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_user_id', 'f_handplan_max_handdate', 'diffday']},
|
|
834
|
+
{dateparam: "CAST(trunc(SYSDATE)- trunc(F_HANDPLAN_MAX_HANDDATE) as int)"}
|
|
835
|
+
],
|
|
836
|
+
//失联
|
|
837
|
+
lossassociation: [
|
|
838
|
+
// {
|
|
839
|
+
// items: "\'*\'",
|
|
840
|
+
// 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," +
|
|
841
|
+
// "ROUND(TO_NUMBER (SYSDATE - 1 - al.f_hand_date)) duration from a_lossassociation al,t_userinfo ti where " +
|
|
842
|
+
// this.listparam + this.listparam1 + " al.f_userinfo_id=ti.f_userinfo_id)\"",
|
|
843
|
+
// condition: "\'1=1\'",
|
|
844
|
+
// orderitem: "\'duration desc\'"
|
|
845
|
+
// },
|
|
846
|
+
'lossassociation',
|
|
847
|
+
{headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "表具编号", "最后上报时间", "最后表读数", "失联时长(天)"]},
|
|
848
|
+
{bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_user_id', 'f_meteread_max_ininsertdate', 'f_meter_base', 'slday']},
|
|
849
|
+
{
|
|
850
|
+
dateparam: "slday"
|
|
851
|
+
}
|
|
852
|
+
],
|
|
853
|
+
//往期对比
|
|
854
|
+
pastscale: [
|
|
855
|
+
// {
|
|
856
|
+
// items: "\'*\'",
|
|
857
|
+
// 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," +
|
|
858
|
+
// "ab.f_delivery_date,pastscale from t_userinfo ti,A_BUYGASCHANGE ab where " +
|
|
859
|
+
// this.listparam + this.listparam1 + " ti.f_user_state=\'正常\' and ab.f_last_pregas!=0 and ti.f_userinfo_id=ab.f_userinfo_id) \"",
|
|
860
|
+
// condition: "\'1=1\'",
|
|
861
|
+
// orderitem: "\'pastscale desc\'"
|
|
862
|
+
// },
|
|
863
|
+
'pastscale',
|
|
864
|
+
{headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "最近购气量", "往期购气均值", "最近购气时间", "往期购气比例"]},
|
|
865
|
+
{bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_pregas', 'f_last_pregas', 'f_delivery_date', 'pastscale']},
|
|
866
|
+
{dateparam: "ab.f_delivery_date"}
|
|
867
|
+
],
|
|
868
|
+
//长期未购气
|
|
869
|
+
longnotbuygas: [
|
|
870
|
+
{
|
|
871
|
+
items: "\' * \'",
|
|
872
|
+
tablename: "\"(select distinct(tu.f_userinfo_id),tu.f_user_name,tu.f_address,tu.f_user_type,tu.f_gasproperties, " +
|
|
873
|
+
" al.f_delivery_date,ROUND(TO_NUMBER (SYSDATE \- 1 \- al.F_DELIVERY_DATE)) duration from t_userinfo tu,a_longnotbuygas al where " +
|
|
874
|
+
this.listparam + this.listparam1 + " tu.f_user_state=\'正常\' and tu.f_userinfo_id=al.f_userinfo_id)\"",
|
|
875
|
+
condition: "\'1=1\'",
|
|
876
|
+
orderitem: "\'duration desc\'"
|
|
877
|
+
},
|
|
878
|
+
{headData: ["客户编号", "客户名称", "客户地址", "用户类型", "用气类型", "最近购气时间", "未购气时长(天)"]},
|
|
879
|
+
{bodyData: ['f_userinfo_id', 'f_user_name', 'f_address', 'f_user_type', 'f_gasproperties', 'f_sellinggas_max_date', 'diffday']},
|
|
880
|
+
{dateparam: "CAST(trunc(SYSDATE)- NVL(F_HANDPLAN_MAX_HANDDATE,a.f_input_date) as int)"}
|
|
881
|
+
],
|
|
882
|
+
},
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
//返回PageList查询条件
|
|
887
|
+
return [List[title][idname][1], List[title][idname][2], List[title][idname][3]]
|
|
888
|
+
}
|