manage-client 3.1.34 → 3.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (523) hide show
  1. package/.babelrc +5 -5
  2. package/.classpath +6 -6
  3. package/.editorconfig +9 -9
  4. package/.eslintrc.js +20 -20
  5. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  6. package/.project +18 -18
  7. package/CHANGELOG.md +15 -15
  8. package/DOC//345/212/237/350/203/275/350/257/264/346/230/216.md +13 -13
  9. package/DOC//347/211/210/346/234/254/344/277/241/346/201/257.md +8 -8
  10. package/ManageClient.iml +13 -13
  11. package/README.md +38 -38
  12. package/build/dev-server.js +174 -181
  13. package/build/webpack.base.conf.js +82 -82
  14. package/build.gradle +13 -13
  15. package/config/dev.env.js +6 -6
  16. package/config/index.js +40 -40
  17. package/config/prod.env.js +3 -3
  18. package/config/test.env.js +6 -6
  19. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  20. package/gradlew.bat +100 -100
  21. package/index.html +28 -28
  22. package/package.json +1 -1
  23. package/release.bat +5 -5
  24. package/src/App.vue +28 -29
  25. package/src/ManageHome.js +269 -269
  26. package/src/Staff/StaffCompileList.vue +334 -334
  27. package/src/Staff/StaffList.vue +161 -161
  28. package/src/Staff/StaffListManage.vue +49 -49
  29. package/src/Util.js +367 -367
  30. package/src/components/BasisEcharts/LineChart.vue +243 -243
  31. package/src/components/BasisEcharts/RingChart.vue +196 -196
  32. package/src/components/ManageHome/CustomerService/ContentmentStatistics.vue +135 -135
  33. package/src/components/ManageHome/CustomerService/ExcepCollect.vue +174 -174
  34. package/src/components/ManageHome/CustomerService/ReasonComplaint.vue +116 -116
  35. package/src/components/ManageHome/CustomerService/ReasonConsultation.vue +115 -115
  36. package/src/components/ManageHome/CustomerService/ServiceFix.vue +155 -155
  37. package/src/components/ManageHome/CustomerService/ServiceHome.vue +179 -179
  38. package/src/components/ManageHome/CustomerService/ServiceStatistics.vue +147 -147
  39. package/src/components/ManageHome/CustomerService/TrafficStatistics.vue +160 -160
  40. package/src/components/ManageHome/Drill/DrillData.vue +791 -791
  41. package/src/components/ManageHome/Drill/DrillList.vue +320 -320
  42. package/src/components/ManageHome/Drill/DrillPool.vue +129 -129
  43. package/src/components/ManageHome/Home/CallCenter.vue +124 -124
  44. package/src/components/ManageHome/Home/CallFix.vue +172 -172
  45. package/src/components/ManageHome/Home/CallStatistics.vue +147 -147
  46. package/src/components/ManageHome/Home/GasValue.vue +233 -233
  47. package/src/components/ManageHome/Home/Home.vue +138 -138
  48. package/src/components/ManageHome/Home/Monitor.vue +329 -329
  49. package/src/components/ManageHome/Home/NetWork.vue +202 -202
  50. package/src/components/ManageHome/Home/SafeCheck.vue +249 -249
  51. package/src/components/ManageHome/Home/UserModule.vue +367 -367
  52. package/src/components/ManageHome/ImportSupplygas/AddSupply.vue +206 -206
  53. package/src/components/ManageHome/ImportSupplygas/SuppleManagement.vue +43 -43
  54. package/src/components/ManageHome/ImportSupplygas/SupplySelect.vue +85 -85
  55. package/src/components/ManageHome/ImportSupplygas/UpdateSupply.vue +187 -187
  56. package/src/components/ManageHome/ManageHome.vue +292 -292
  57. package/src/components/ManageHome/Monitor/BuySub.vue +311 -311
  58. package/src/components/ManageHome/Monitor/Caveat.vue +300 -300
  59. package/src/components/ManageHome/Monitor/ComparedGas.vue +264 -264
  60. package/src/components/ManageHome/Monitor/MeterBrand.vue +211 -211
  61. package/src/components/ManageHome/Monitor/MonitorCenter.vue +132 -132
  62. package/src/components/ManageHome/Monitor/MonitorHome.vue +188 -188
  63. package/src/components/ManageHome/Monitor/NoBuyGas.vue +223 -223
  64. package/src/components/ManageHome/Monitor/NoContact.vue +233 -233
  65. package/src/components/ManageHome/Monitor/NoGas.vue +202 -202
  66. package/src/components/ManageHome/NetWork/LineInspection.vue +267 -267
  67. package/src/components/ManageHome/NetWork/NetDanger.vue +258 -258
  68. package/src/components/ManageHome/NetWork/NetHome.vue +84 -84
  69. package/src/components/ManageHome/NetWork/SupplyGas.vue +204 -204
  70. package/src/components/ManageHome/SecurityCheck/CheckHome.vue +94 -94
  71. package/src/components/ManageHome/SecurityCheck/CustomerType.vue +244 -244
  72. package/src/components/ManageHome/SecurityCheck/LatentDanger.vue +218 -218
  73. package/src/components/ManageHome/SecurityCheck/PlanStatistics.vue +231 -231
  74. package/src/components/ManageHome/SecurityCheck/StateStatistics.vue +237 -237
  75. package/src/components/ManageHome/SecurityCheck/TaskStatistics.vue +303 -303
  76. package/src/components/ManageHome/User/GasDistri.vue +271 -271
  77. package/src/components/ManageHome/User/InspecDistri.vue +272 -272
  78. package/src/components/ManageHome/User/SaleProportion.vue +309 -309
  79. package/src/components/ManageHome/User/UseHome.vue +155 -155
  80. package/src/components/ManageHome/User/UserGascontrast.vue +223 -223
  81. package/src/components/ManageHome/User/UserNumber.vue +519 -519
  82. package/src/components/ManageHome/User/UsernumIncrease.vue +243 -243
  83. package/src/components/ManageHome/loading.vue +23 -23
  84. package/src/components/ManageHomeCS/Cockpit.vue +43 -43
  85. package/src/components/ManageHomeCS/CustomerService/ContentmentStatistics.vue +161 -161
  86. package/src/components/ManageHomeCS/CustomerService/ExcepCollect.vue +201 -201
  87. package/src/components/ManageHomeCS/CustomerService/ReasonComplaint.vue +146 -146
  88. package/src/components/ManageHomeCS/CustomerService/ReasonConsultation.vue +148 -148
  89. package/src/components/ManageHomeCS/CustomerService/ServiceFix.vue +242 -242
  90. package/src/components/ManageHomeCS/CustomerService/ServiceHome.vue +176 -176
  91. package/src/components/ManageHomeCS/CustomerService/ServiceStatistics.vue +277 -277
  92. package/src/components/ManageHomeCS/CustomerService/TrafficStatistics.vue +226 -226
  93. package/src/components/ManageHomeCS/Drill/DrillData.vue +918 -918
  94. package/src/components/ManageHomeCS/Drill/DrillList.vue +320 -320
  95. package/src/components/ManageHomeCS/Drill/DrillPool.vue +129 -129
  96. package/src/components/ManageHomeCS/Home/CallCenter.vue +206 -206
  97. package/src/components/ManageHomeCS/Home/CallFix.vue +172 -172
  98. package/src/components/ManageHomeCS/Home/CallStatistics.vue +147 -147
  99. package/src/components/ManageHomeCS/Home/GasValue.vue +466 -466
  100. package/src/components/ManageHomeCS/Home/Home.vue +57 -57
  101. package/src/components/ManageHomeCS/Home/Monitor.vue +423 -423
  102. package/src/components/ManageHomeCS/Home/NetWork.vue +223 -223
  103. package/src/components/ManageHomeCS/Home/SafeCheck.vue +446 -446
  104. package/src/components/ManageHomeCS/Home/ShanxiMap.vue +432 -432
  105. package/src/components/ManageHomeCS/Home/UserModule.vue +511 -511
  106. package/src/components/ManageHomeCS/Home/YulinMap.vue +424 -424
  107. package/src/components/ManageHomeCS/ImportSupplygas/AddSupply.vue +206 -206
  108. package/src/components/ManageHomeCS/ImportSupplygas/SuppleManagement.vue +43 -43
  109. package/src/components/ManageHomeCS/ImportSupplygas/SupplySelect.vue +85 -85
  110. package/src/components/ManageHomeCS/ImportSupplygas/UpdateSupply.vue +187 -187
  111. package/src/components/ManageHomeCS/Monitor/BuySub.vue +339 -339
  112. package/src/components/ManageHomeCS/Monitor/Caveat.vue +301 -301
  113. package/src/components/ManageHomeCS/Monitor/ComparedGas.vue +276 -276
  114. package/src/components/ManageHomeCS/Monitor/MeterBrand.vue +220 -220
  115. package/src/components/ManageHomeCS/Monitor/MonitorCenter.vue +139 -139
  116. package/src/components/ManageHomeCS/Monitor/MonitorHome.vue +188 -188
  117. package/src/components/ManageHomeCS/Monitor/NoBuyGas.vue +218 -218
  118. package/src/components/ManageHomeCS/Monitor/NoContact.vue +217 -217
  119. package/src/components/ManageHomeCS/Monitor/NoGas.vue +214 -214
  120. package/src/components/ManageHomeCS/NetWork/LineInspection.vue +268 -268
  121. package/src/components/ManageHomeCS/NetWork/NetDanger.vue +258 -258
  122. package/src/components/ManageHomeCS/NetWork/NetHome.vue +106 -106
  123. package/src/components/ManageHomeCS/NetWork/NetWork.vue +222 -222
  124. package/src/components/ManageHomeCS/NetWork/NetWorkMap.vue +86 -86
  125. package/src/components/ManageHomeCS/NetWork/SupplyGas.vue +291 -291
  126. package/src/components/ManageHomeCS/NewHome/GasProperties.vue +314 -314
  127. package/src/components/ManageHomeCS/NewHome/NewManageHome.vue +182 -182
  128. package/src/components/ManageHomeCS/NewHome/TextBusiness.vue +267 -267
  129. package/src/components/ManageHomeCS/NewHome/TextChildsellgas.vue +209 -209
  130. package/src/components/ManageHomeCS/NewHome/TextProfit.vue +298 -298
  131. package/src/components/ManageHomeCS/NewHome/TextSellgas.vue +82 -82
  132. package/src/components/ManageHomeCS/NewHome/TextShanximap.vue +389 -389
  133. package/src/components/ManageHomeCS/NewHome/TextTotalsellgas.vue +406 -406
  134. package/src/components/ManageHomeCS/NewHome/TextUser.vue +378 -378
  135. package/src/components/ManageHomeCS/NewHome/yulin.vue +425 -425
  136. package/src/components/ManageHomeCS/Poor/PoorHome.vue +176 -176
  137. package/src/components/ManageHomeCS/SecurityCheck/CheckHome.vue +94 -94
  138. package/src/components/ManageHomeCS/SecurityCheck/CustomerType.vue +246 -246
  139. package/src/components/ManageHomeCS/SecurityCheck/LatentDanger.vue +220 -220
  140. package/src/components/ManageHomeCS/SecurityCheck/PlanStatistics.vue +306 -306
  141. package/src/components/ManageHomeCS/SecurityCheck/StateStatistics.vue +239 -239
  142. package/src/components/ManageHomeCS/SecurityCheck/TaskStatistics.vue +311 -311
  143. package/src/components/ManageHomeCS/User/FMYInspecDistri.vue +269 -269
  144. package/src/components/ManageHomeCS/User/GasDistri.vue +220 -220
  145. package/src/components/ManageHomeCS/User/MYInspecDistri.vue +269 -269
  146. package/src/components/ManageHomeCS/User/SaleProportion.vue +384 -384
  147. package/src/components/ManageHomeCS/User/UseHome.vue +162 -162
  148. package/src/components/ManageHomeCS/User/UserGascontrast.vue +221 -221
  149. package/src/components/ManageHomeCS/User/UserNumber.vue +600 -600
  150. package/src/components/ManageHomeCS/User/UsernumIncrease.vue +277 -277
  151. package/src/components/ManageHomeCS/loading.vue +39 -39
  152. package/src/components/ManageHomeCS/test.vue +88 -88
  153. package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
  154. package/src/components/MeterManage/ChargeQuery.vue +79 -79
  155. package/src/components/MeterManage/FillCardQuery.vue +80 -80
  156. package/src/components/MeterManage/FillGasQuery.vue +80 -80
  157. package/src/components/MeterManage/HandQuery.vue +72 -72
  158. package/src/components/MeterManage/MeterInfoManage.vue +107 -107
  159. package/src/components/MeterManage/MeterList.vue +336 -336
  160. package/src/components/MeterManage/MeterMsg.vue +181 -181
  161. package/src/components/MeterManage/OtherChargeQuery.vue +78 -78
  162. package/src/components/MeterManage/ReversalQuery.vue +77 -77
  163. package/src/components/MeterManage/TransferQuery.vue +72 -72
  164. package/src/components/SellReport/AmountGas.vue +257 -257
  165. package/src/components/SellReport/BankManager.vue +146 -146
  166. package/src/components/SellReport/BonSummary.vue +244 -244
  167. package/src/components/SellReport/BusinessClassify.vue +267 -251
  168. package/src/components/SellReport/BusinessMoneyReport.vue +268 -268
  169. package/src/components/SellReport/BusinessReport.vue +256 -256
  170. package/src/components/SellReport/CaiManageDayGas.vue +280 -280
  171. package/src/components/SellReport/ChManageBusSummary.vue +273 -273
  172. package/src/components/SellReport/ChManageHandSellMoney.vue +274 -274
  173. package/src/components/SellReport/ChManageMonthGas.vue +285 -285
  174. package/src/components/SellReport/ChOtherfee.vue +251 -251
  175. package/src/components/SellReport/ChSellReport.vue +251 -251
  176. package/src/components/SellReport/ChargeDayTable.vue +258 -258
  177. package/src/components/SellReport/ChargeMonthTable.vue +257 -257
  178. package/src/components/SellReport/ChargePrick.vue +279 -279
  179. package/src/components/SellReport/ChargeYearTable.vue +252 -252
  180. package/src/components/SellReport/CollectFee.vue +184 -184
  181. package/src/components/SellReport/Contrast.vue +188 -188
  182. package/src/components/SellReport/DayStairMoney.vue +256 -256
  183. package/src/components/SellReport/DepartmentPrick.vue +261 -261
  184. package/src/components/SellReport/DeptHomePage.vue +299 -299
  185. package/src/components/SellReport/FenxiangSell.vue +183 -183
  186. package/src/components/SellReport/FinanceSellType.vue +254 -254
  187. package/src/components/SellReport/FxGasTable.vue +220 -220
  188. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  189. package/src/components/SellReport/GasCollect.vue +174 -174
  190. package/src/components/SellReport/GasMeterBrand.vue +228 -228
  191. package/src/components/SellReport/GasPrice.vue +244 -244
  192. package/src/components/SellReport/GasPriceGroup.vue +228 -228
  193. package/src/components/SellReport/GasSummary.vue +257 -257
  194. package/src/components/SellReport/Gasc.vue +257 -257
  195. package/src/components/SellReport/GaspriceHas.vue +141 -141
  196. package/src/components/SellReport/GetUserNum.vue +240 -240
  197. package/src/components/SellReport/HandCollect.vue +189 -189
  198. package/src/components/SellReport/HandplanBili.vue +241 -241
  199. package/src/components/SellReport/HandplanUserCount.vue +227 -227
  200. package/src/components/SellReport/JinChengBusSummary.vue +182 -182
  201. package/src/components/SellReport/JinChengHandGas.vue +182 -182
  202. package/src/components/SellReport/JinChengOperSummary.vue +182 -182
  203. package/src/components/SellReport/JinChengSliceSumgas.vue +182 -182
  204. package/src/components/SellReport/ManageBusSummary.vue +242 -242
  205. package/src/components/SellReport/ManageBusTable.vue +207 -207
  206. package/src/components/SellReport/ManageGasFee.vue +247 -247
  207. package/src/components/SellReport/ManageGasFeeOperator.vue +236 -236
  208. package/src/components/SellReport/ManageGasPrice.vue +241 -241
  209. package/src/components/SellReport/ManageGasSumChangeTwo.vue +271 -271
  210. package/src/components/SellReport/ManageGasSumOtherCharge.vue +244 -244
  211. package/src/components/SellReport/ManageHandInputtor.vue +281 -281
  212. package/src/components/SellReport/ManageHandSellInputtor.vue +241 -241
  213. package/src/components/SellReport/ManageMonthGas.vue +249 -249
  214. package/src/components/SellReport/ManageNewGasPrice.vue +245 -245
  215. package/src/components/SellReport/ManageOtherCharge.vue +250 -250
  216. package/src/components/SellReport/ManageReceivable.vue +254 -254
  217. package/src/components/SellReport/ManageSellType.vue +284 -284
  218. package/src/components/SellReport/ManageUserCollect.vue +183 -183
  219. package/src/components/SellReport/ManageUserCount.vue +347 -347
  220. package/src/components/SellReport/MarketMonth.vue +251 -251
  221. package/src/components/SellReport/MeterBill.vue +185 -185
  222. package/src/components/SellReport/MeterGasMoney.vue +226 -226
  223. package/src/components/SellReport/MeterInput.vue +250 -250
  224. package/src/components/SellReport/MeterPrice.vue +244 -244
  225. package/src/components/SellReport/MeterReader.vue +231 -231
  226. package/src/components/SellReport/MonthStairMoney.vue +256 -256
  227. package/src/components/SellReport/OperatorSellReport.vue +268 -268
  228. package/src/components/SellReport/OutletTable.vue +258 -258
  229. package/src/components/SellReport/OweAging.vue +174 -174
  230. package/src/components/SellReport/PaymentDistribute.vue +228 -228
  231. package/src/components/SellReport/PaymentMethod.vue +274 -274
  232. package/src/components/SellReport/QibiaoShouqi.vue +282 -282
  233. package/src/components/SellReport/ReportHistory.vue +80 -80
  234. package/src/components/SellReport/ReportPool.vue +60 -60
  235. package/src/components/SellReport/SaleMonthReport.vue +227 -227
  236. package/src/components/SellReport/Selling.vue +188 -188
  237. package/src/components/SellReport/SellingTable.vue +220 -220
  238. package/src/components/SellReport/SiteManager.vue +147 -147
  239. package/src/components/SellReport/UserClassify.vue +251 -251
  240. package/src/components/SellReport/UserSellingGas.vue +251 -251
  241. package/src/components/SellReport/UserStateStatistics.vue +188 -188
  242. package/src/components/SellReport/UsertypePie.vue +101 -101
  243. package/src/components/SellReport/WeiNanYuShou.vue +246 -246
  244. package/src/components/SellReport/XianYangDate.vue +227 -227
  245. package/src/components/SellReport/XianYangOperator.vue +228 -228
  246. package/src/components/SellReport/XyDateCharge.vue +227 -227
  247. package/src/components/SellReport/XyOperatorCharge.vue +256 -256
  248. package/src/components/SellReport/YuShouTable.vue +298 -298
  249. package/src/components/SellReport/YuShouTableTwo.vue +309 -309
  250. package/src/components/SellReport/chargeSchedule.vue +410 -410
  251. package/src/components/SellReport/jingwei/CardCharge.vue +142 -142
  252. package/src/components/SellReport/jingwei/MachineCharge.vue +141 -141
  253. package/src/components/SellReport/jingwei/PaymentNotice.vue +479 -479
  254. package/src/components/SellReport/jingwei/handplanReport.vue +280 -280
  255. package/src/components/SellReport/jingwei/widegt/PaymentNoticePrint.vue +198 -198
  256. package/src/components/SellReport/jingwei/widegt/handplanPrint.vue +143 -143
  257. package/src/components/SellReport/pengan/ManageBusPeng.vue +280 -280
  258. package/src/components/SellReport/pengan/ManageBusSummaryPeng.vue +241 -241
  259. package/src/components/SellReport/userholds.vue +257 -257
  260. package/src/components/WebReport/AbnormalInfo.vue +197 -197
  261. package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
  262. package/src/components/WebReport/BatteryLow.vue +148 -148
  263. package/src/components/WebReport/BusinessHall.vue +85 -85
  264. package/src/components/WebReport/BussinessType.vue +137 -137
  265. package/src/components/WebReport/Communication.vue +131 -131
  266. package/src/components/WebReport/CompanyUser.vue +79 -79
  267. package/src/components/WebReport/EchartsBox.vue +110 -110
  268. package/src/components/WebReport/ElectroMagnetic.vue +142 -142
  269. package/src/components/WebReport/GaspriceHas.vue +141 -141
  270. package/src/components/WebReport/HandplanPrint.vue +167 -167
  271. package/src/components/WebReport/NotUpload.vue +165 -165
  272. package/src/components/WebReport/OweQuery.vue +169 -169
  273. package/src/components/WebReport/PaymentDistributed.vue +176 -176
  274. package/src/components/WebReport/Paymentpie.vue +157 -157
  275. package/src/components/WebReport/ReportWorklist.vue +220 -220
  276. package/src/components/WebReport/SellType.vue +89 -89
  277. package/src/components/WebReport/Telemanlist.vue +221 -221
  278. package/src/components/WebReport/UserGasAll.vue +214 -214
  279. package/src/components/WebReport/UserGasEcharts.vue +107 -107
  280. package/src/components/WebReport/UsertypePie.vue +105 -105
  281. package/src/components/WebReport/ValueEcharts.vue +99 -99
  282. package/src/components/WebReport/ValueInfo.vue +194 -194
  283. package/src/components/daping/CallCenter.vue +366 -366
  284. package/src/components/daping/DataManagement.vue +537 -537
  285. package/src/components/daping/GMap.vue +636 -636
  286. package/src/components/daping/ManageMain.vue +270 -270
  287. package/src/components/daping/NetWork.vue +238 -238
  288. package/src/components/daping/RedactDaPing.vue +468 -468
  289. package/src/components/daping/Ring.vue +212 -212
  290. package/src/components/daping/SafeCheck.vue +446 -446
  291. package/src/components/daping/SafeCheckRing.vue +166 -166
  292. package/src/components/daping/SafecheckBarChart.vue +233 -233
  293. package/src/components/daping/WuHaiMap.vue +418 -418
  294. package/src/components/qinhua/BarChart.vue +256 -256
  295. package/src/components/qinhua/BarChartLine.vue +288 -288
  296. package/src/components/qinhua/ManageMain.vue +162 -162
  297. package/src/components/qinhua/Pie.vue +132 -132
  298. package/src/components/qinhua/Ring.vue +165 -165
  299. package/src/components/qinhua/SafeCheckRing.vue +149 -149
  300. package/src/components/qinhua/SafecheckBarChart.vue +209 -209
  301. package/src/components/qinhua/Scada.vue +93 -93
  302. package/src/components/qinhua/SellEcharts.vue +115 -115
  303. package/src/components/qinhua/qinHuaMap.vue +414 -414
  304. package/src/components/safecheck/analysis/SafeHiddenAnaly.vue +932 -932
  305. package/src/components/safecheck/planCheck/chanceSituation.vue +149 -149
  306. package/src/components/safecheck/planCheck/checkFamily.vue +217 -217
  307. package/src/components/safecheck/planCheck/hidderDanger.vue +179 -179
  308. package/src/components/safecheck/planCheck/inFamily.vue +185 -185
  309. package/src/components/sale/businessquery/AccountQuery/TransactionSummary.vue +373 -373
  310. package/src/components/sale/businessquery/BalanceQuery.vue +456 -456
  311. package/src/components/sale/businessquery/BusinessManage.vue +3 -0
  312. package/src/components/sale/businessquery/ChangeMeterQuery.vue +15 -5
  313. package/src/components/sale/businessquery/CollectManage.vue +135 -135
  314. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  315. package/src/components/sale/businessquery/InfoOperateRecord.vue +291 -0
  316. package/src/components/sale/businessquery/InspectManage.vue +47 -47
  317. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  318. package/src/components/sale/businessquery/NewAccountQuery.vue +409 -409
  319. package/src/components/sale/businessquery/OtherChargeDetailQuery.vue +74 -74
  320. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  321. package/src/components/sale/businessquery/ProceedsOper.vue +377 -377
  322. package/src/components/sale/businessquery/ResourceOperatingQuery.vue +317 -317
  323. package/src/components/sale/businessquery/TongjiManage.vue +74 -74
  324. package/src/components/sale/businessquery/UserTongjiQuery.vue +358 -358
  325. package/src/components/sale/businessquery/YearGasQuery.vue +422 -422
  326. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  327. package/src/components/sale/businessquery/analysisquery/AnalysisManage.vue +65 -65
  328. package/src/components/sale/businessquery/weChatBind.vue +361 -361
  329. package/src/components/sale/common/PrintData.vue +171 -171
  330. package/src/components/sale/common/PrintDataSelf.vue +225 -225
  331. package/src/components/sale/common/PrintTable.vue +228 -228
  332. package/src/components/sale/common/PrintTableSelf.vue +251 -251
  333. package/src/components/sale/common/TabButton.vue +155 -155
  334. package/src/components/sale/common/Tabs.vue +67 -67
  335. package/src/components/sale/common/handplanUser.vue +112 -112
  336. package/src/components/sale/config/DefaultPrint.js +6 -6
  337. package/src/components/sale/config/tableConfig.js +48 -48
  338. package/src/components/sale/filesquery/detail/UserBaseInfo.vue +69 -69
  339. package/src/components/sale/filesquery/detail/UserDetail.vue +41 -41
  340. package/src/components/sale/filesquery/detail/UserOperInfo.vue +76 -76
  341. package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
  342. package/src/components/sale/filesquery/detail/oper/ExchangeOper.vue +66 -66
  343. package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
  344. package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
  345. package/src/components/sale/filesquery/detail/oper/OtherCharge.vue +54 -54
  346. package/src/components/sale/filesquery/detail/oper/ReplaceCard.vue +51 -51
  347. package/src/components/sale/filesquery/detail/oper/SellOper.vue +56 -56
  348. package/src/components/sale/filesquery/detail/oper/TransferMessage.vue +55 -55
  349. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  350. package/src/components/sale/filesquery/filequerydetail/ChangeMeterQueryDetail.vue +246 -246
  351. package/src/components/sale/filesquery/filequerydetail/ChargeQueryDetail.vue +239 -239
  352. package/src/components/sale/filesquery/filequerydetail/DeviceQueryDetail.vue +126 -126
  353. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  354. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  355. package/src/components/sale/filesquery/filequerydetail/FillCardQueryDetail.vue +80 -80
  356. package/src/components/sale/filesquery/filequerydetail/FillGasQueryDetail.vue +80 -80
  357. package/src/components/sale/filesquery/filequerydetail/HandQueryDetail.vue +302 -302
  358. package/src/components/sale/filesquery/filequerydetail/MeterQueryDetail.vue +158 -158
  359. package/src/components/sale/filesquery/filequerydetail/OtherChargeQueryDetail.vue +198 -198
  360. package/src/components/sale/filesquery/filequerydetail/RecordQueryDetail.vue +125 -125
  361. package/src/components/sale/filesquery/filequerydetail/SellingHandDetail.vue +280 -280
  362. package/src/components/sale/filesquery/filequerydetail/TransferQueryDetail.vue +160 -160
  363. package/src/components/sale/filesquery/filequerydetail/UserQueryDetail.vue +155 -155
  364. package/src/components/sale/report/aode/DayReport.vue +50 -50
  365. package/src/components/sale/report/aode/DayReportSummary.vue +75 -75
  366. package/src/components/sale/report/aode/MonthByChargeType.vue +446 -446
  367. package/src/components/sale/report/aode/MonthByUserType.vue +413 -413
  368. package/src/components/sale/report/aode/YearByChargeTpye.vue +215 -215
  369. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  370. package/src/components/sale/report/aode/life/LifeDayReport.vue +50 -50
  371. package/src/components/sale/report/aode/life/LifeDayReportList.vue +241 -241
  372. package/src/components/sale/report/aode/life/LifeDayReportSummary.vue +49 -49
  373. package/src/components/sale/report/aode/life/LifeMonthReport.vue +303 -303
  374. package/src/components/sale/report/aode/life/LifeYearReport.vue +175 -175
  375. package/src/components/sale/report/aode/widget/LifeDayReportListPrint.vue +189 -189
  376. package/src/components/sale/report/aode/widget/LifeMonthPrint.vue +153 -153
  377. package/src/components/sale/report/aode/widget/LifeYearPrint.vue +143 -143
  378. package/src/components/sale/report/aode/widget/MonthByChargePrint.vue +236 -236
  379. package/src/components/sale/report/aode/widget/MonthByUserPrint.vue +232 -232
  380. package/src/components/sale/report/aode/widget/YearByChargePrint.vue +203 -203
  381. package/src/components/sale/report/aode/widget/YearByUserPrint.vue +225 -225
  382. package/src/components/scada/CaculateGasConsumputionByDay/CaculateGasConsumputionByDay.vue +290 -290
  383. package/src/components/scada/ChartDisplay/ChartDisplayManage.vue +55 -55
  384. package/src/components/scada/ChartDisplay/ChartThreeDayContrast.vue +164 -164
  385. package/src/components/scada/CumulativeFlow/CumulativeFlowHeatPlant.vue +400 -400
  386. package/src/components/scada/CumulativeFlow/CumulativeFlowManage.vue +59 -59
  387. package/src/components/scada/CumulativeFlow/CumulativeFlowRegulatorStation.vue +504 -504
  388. package/src/components/scada/CumulativeFlow/CumulativeFlowStation.vue +248 -248
  389. package/src/components/scada/GasSupplyRunning/GasSupplyRunningByDay.vue +297 -297
  390. package/src/components/scada/InstantaneousFlow/InstantaneousFlowHeatPlant.vue +389 -389
  391. package/src/components/scada/InstantaneousFlow/InstantaneousFlowManage.vue +57 -57
  392. package/src/components/scada/InstantaneousFlow/InstantaneousFlowRegulatorStation.vue +503 -503
  393. package/src/components/scada/InstantaneousFlow/InstantaneousFlowStation.vue +244 -244
  394. package/src/components/scada/OnTimePressure/OnTimePressureHeatPlant.vue +356 -356
  395. package/src/components/scada/OnTimePressure/OnTimePressureManage.vue +51 -51
  396. package/src/components/scada/OnTimePressure/OnTimePressureRegulatorStation.vue +526 -526
  397. package/src/components/scada/ThreeDayContrast/ThreeDayContrastManage.vue +282 -282
  398. package/src/components/statistical/StatisticalAnalysis.vue +247 -247
  399. package/src/components/webmeter/DrillData/LargeScreenAnalysisEcharts.vue +710 -710
  400. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  401. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  402. package/src/components/webmeter/DrillData/LostContactAnalysisManage.vue +30 -30
  403. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  404. package/src/components/webmeter/DrillData/LostContactEform.vue +190 -190
  405. package/src/components/webmeter/DrillData/UserGasAll.vue +597 -596
  406. package/src/components/webmeter/DrillData/UserGasEcharts.vue +210 -210
  407. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  408. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  409. package/src/components/webmeter/dataCollection/DataCollection.vue +676 -676
  410. package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
  411. package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
  412. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  413. package/src/components/webmeter/handplan/NewWebmeterHandPlanMain.vue +59 -59
  414. package/src/components/webmeter/indicatorStatisticsEchars.vue +204 -204
  415. package/src/components/webmeter/indicatorStatisticsMain.vue +257 -257
  416. package/src/components/webmeter/meterinfo/NewMeterList.vue +414 -414
  417. package/src/components/webmeter/meterinfo/NewMeterListMain.vue +53 -53
  418. package/src/components/webmeter/newwebmeter/NewException/NewContactEcharts.vue +170 -170
  419. package/src/components/webmeter/newwebmeter/NewException/NewEchartsAll.vue +111 -111
  420. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +903 -899
  421. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
  422. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEformTotal.vue +211 -211
  423. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +209 -209
  424. package/src/components/webmeter/newwebmeter/NewException/NewHandplanEcharts.vue +238 -238
  425. package/src/components/webmeter/newwebmeter/NewException/NewInstructEcharts.vue +266 -266
  426. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  427. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -606
  428. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +218 -252
  429. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -440
  430. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +286 -286
  431. package/src/components/webmeter/newwebmeter/UserInstructList.vue +332 -332
  432. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  433. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  434. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  435. package/src/components/yulin/GuanWang.vue +24 -24
  436. package/src/components/yulin/SingleBarLine.vue +352 -352
  437. package/src/components/yulin/Weather.vue +157 -157
  438. package/src/expandcss.less +26 -26
  439. package/src/filiale/WEINAN/InspectListUser.vue +492 -492
  440. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  441. package/src/filiale/alashan/SellingTable.vue +234 -231
  442. package/src/filiale/alashan/reportManage.js +10 -10
  443. package/src/filiale/aode/ArchivesManage.vue +38 -38
  444. package/src/filiale/aode/BusinessManage.vue +94 -94
  445. package/src/filiale/aode/DefaultPrint.js +6 -6
  446. package/src/filiale/aode/HandplanQuery.vue +632 -632
  447. package/src/filiale/aode/Tabs.vue +67 -67
  448. package/src/filiale/aode/UserQuery.vue +599 -599
  449. package/src/filiale/aode/sale.js +17 -17
  450. package/src/filiale/ceshi/ArrearsQuery.vue +642 -642
  451. package/src/filiale/ceshi/ChManageBusSummary.vue +293 -293
  452. package/src/filiale/ceshi/CollectManage.vue +94 -94
  453. package/src/filiale/ceshi/MeterRateQuery.vue +633 -633
  454. package/src/filiale/ceshi/TabButton.vue +149 -149
  455. package/src/filiale/ceshi/Tabs.vue +69 -69
  456. package/src/filiale/ceshi/reportManage.js +5 -5
  457. package/src/filiale/ceshi/sale.js +11 -11
  458. package/src/filiale/gaomi/config/DefaultPrint.js +6 -6
  459. package/src/filiale/gaomi/config/tableConfig.js +47 -47
  460. package/src/filiale/gongyi/sale/businessquery/exportConfig.js +17 -17
  461. package/src/filiale/gongyi/sale/filesquery/MeterQuery.vue +718 -718
  462. package/src/filiale/jingwei/ChargeQuery.vue +1235 -0
  463. package/src/filiale/jingwei/sale.js +2 -0
  464. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  465. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  466. package/src/filiale/liaoyuan/sale.js +11 -11
  467. package/src/filiale/macheng/config/DefaultPrint.js +12 -12
  468. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  469. package/src/filiale/meihekou/sale.js +26 -26
  470. package/src/filiale/qingtongxia/config/DefaultPrint.js +6 -6
  471. package/src/filiale/qingtongxia/sale.js +13 -13
  472. package/src/filiale/rongcheng/exportConfig.js +257 -257
  473. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  474. package/src/filiale/rongchuang/reportManage.js +11 -11
  475. package/src/filiale/shaoguan/OtherChargeDetailQuery.vue +74 -74
  476. package/src/filiale/shaoguan/config/DefaultPrint.js +6 -6
  477. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  478. package/src/filiale/shennongjia/config/DefaultPrint.js +6 -6
  479. package/src/filiale/shennongjia/config/tableConfig.js +47 -47
  480. package/src/filiale/shennongjia/sale.js +10 -10
  481. package/src/filiale/tongchuan/FillGasQuery.vue +508 -0
  482. package/src/filiale/tongchuan/ResSelectGroupNew.vue +176 -176
  483. package/src/filiale/tongchuan/ResSelectNew.vue +144 -144
  484. package/src/filiale/tongchuan/sale.js +13 -12
  485. package/src/main.js +66 -66
  486. package/src/newmanage.js +525 -525
  487. package/src/plugins/GetLoginInfoService.js +505 -505
  488. package/src/plugins/LodopFuncs.js +124 -124
  489. package/src/plugins/getAllInputtor.js +29 -29
  490. package/src/reportManage.js +462 -462
  491. package/src/safeCheck.js +63 -63
  492. package/src/saleManage.js +2 -0
  493. package/src/stores/AppData.js +62 -62
  494. package/src/stores/DataSql.js +585 -585
  495. package/src/stores/DrillECharts.js +602 -602
  496. package/src/stores/DrillSql.js +888 -888
  497. package/src/stores/GetParames.js +15 -15
  498. package/src/stores/MagGetSaleParams.js +156 -156
  499. package/src/stores/MagLoadParams.js +63 -63
  500. package/src/stores/Util.js +132 -132
  501. package/src/stores/shanxi1.js +26 -26
  502. package/src/stores/yulin.js +27 -27
  503. package/src/webmeterManage.js +105 -105
  504. package/static/china.json +1 -1
  505. package/static/qh.json +2410 -2410
  506. package/static/res.json +58411 -58411
  507. package/static/shanxi1.json +1 -1
  508. package/static/wuhai.json +1610 -1610
  509. package/static/yulin.json +1 -1
  510. package/static//345/261/261/344/270/234/347/234/201.json +1 -1
  511. package/test/unit/.eslintrc +5 -5
  512. package/test/unit/TestUtil.js +35 -35
  513. package/test/unit/context.html +20 -20
  514. package/test/unit/index.js +13 -13
  515. package/test/unit/init.js +11 -11
  516. package/test/unit/karma.conf.js +45 -45
  517. package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
  518. package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
  519. package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
  520. package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
  521. package/webstorm.config.js +13 -13
  522. package/src/components/SellReport/SellCollect.vue +0 -183
  523. package/src/components/sale/businessquery/NewHandplanQuery.vue +0 -995
@@ -1,585 +1,585 @@
1
- import {HttpResetClass} from "vue-client";
2
-
3
- // 待传入sql的参数
4
- export var param = ''
5
- export var param1 = ''
6
- export var param2 = ''
7
-
8
- //请求后台数据,self=this,conditon=查询条件,singleTableParam内容为 select {items} from {tablename} where {condition}
9
- export function getData(self,sqlname, condition, resultname) {
10
- var ss=''
11
- console.log(self.$parent.$parent.$parent.typemodel,self.$parent.$parent.$parent.typemodel,'dsds')
12
- if(self.$parent.$parent.typemodel!=undefined){
13
- ss=self.$parent.$parent.typemodel
14
- }
15
- let load = new HttpResetClass();
16
- load.load("POST", 'rs/sql/' + ss + 'jy' + sqlname,
17
- {data: condition},
18
- {resolveMsg: null, rejectMsg: null})
19
- .then((res) => {
20
- console.log(sqlname, res.data, '返回数据')
21
- // 返回数据给resdata
22
- self[resultname] = res.data
23
- })
24
- }
25
-
26
- export function getData1(self, sqlname, condition, resultname) {
27
-
28
- let load = new HttpResetClass();
29
- load.load("POST", 'rs/sql/' + sqlname,
30
- {data: condition},
31
- {resolveMsg: null, rejectMsg: null})
32
- .then((res) => {
33
- console.log(sqlname, res.data, '返回数据')
34
- // 返回数据给resdata
35
- self[resultname] = res.data
36
- })
37
- }
38
-
39
-
40
- // 获取sql,titlt=所属分类页面name,param=当前页面中所属的模块名,返回结果=所需的sql条件
41
- // export function getSql(title, param) {
42
- // //Sql配置,items=查询列名,tablename=表名,condition=条件
43
- // var Sql = {
44
- // //====================================主页=============================================
45
- // // 主页
46
- // Manage: {
47
- // //获取安全服务时间
48
- // home: {
49
- // items: 'f_createfile_date stardate',
50
- // tablename: "(select f_createfile_date from t_userinfo where f_user_state='正常' order by f_createfile_date asc)",
51
- // condition: "rownum=1",
52
- // orderitem: "1"
53
- // },
54
- // //用户数据
55
- // user: {
56
- // items: '(aa.qq-cc.ee) 民用, bb.ww 非民用, cc.ee 民用锅炉',
57
- // tablename: '(select count(f_userinfo_id) qq from t_userinfo where f_user_type=\'民用\' and f_user_state=\'正常\') aa,' +
58
- // '(select count(f_user_type) ww from t_userinfo where f_user_type=\'非民用\' and f_user_state=\'正常\') bb,' +
59
- // '(select count(b.f_userinfo_id) ee from t_userinfo a, t_devices b where a.f_userinfo_id=b.f_userinfo_id and f_devices_type=\'壁挂炉\' and a.f_user_type=\'民用\' and f_user_state=\'正常\') cc',
60
- // condition: "1=1",
61
- // orderitem: "1"
62
- // },
63
- // // 潜在用户
64
- // useri: {
65
- // items: 'a.ss year,a.totalnum',
66
- // tablename: '(SELECT ss,count(ss) totalnum from (SELECT to_char(f_createfile_date,\'yyyy\') ss from T_USERINFO ' +
67
- // 'where f_user_state=\'正常\') GROUP BY ss )a ',
68
- // condition: "1=1",
69
- // orderitem: "ss desc"
70
- // },
71
- // // 报建用户
72
- // userapply: {
73
- // items: 'count(1) totalnum',
74
- // tablename: 't_applyback',
75
- // condition: "1=1",
76
- // orderitem: "1"
77
- // },
78
- // //总售气量
79
- // pregas: {
80
- // items: 'sum(f_pregas) as value',
81
- // tablename: 'A_GASCOMPARISON',
82
- // condition: 'f_delivery_date>=TO_DATE(\'' + this.param + '-01-01 00:00:00\',\'yyyy-mm-dd hh24:mi:ss\')',
83
- // orderitem: '1'
84
- // },
85
- // //物联网监控
86
- // monitor: {
87
- // items: 'a1.aa 磁干扰,b1.bb 报警关阀,c1.cc 周期关阀,d1.dd 过流保护关阀,e1.ee 关阀走气',
88
- // tablename: '(SELECT count(f_userinfo_id) aa from T_METEREAD WHERE f_magneticInterference=1 ) a1,' +
89
- // '(SELECT count(f_userinfo_id) bb from T_METEREAD WHERE f_alarmShutValve=1 ) b1,' +
90
- // '(SELECT count(f_userinfo_id) cc from T_METEREAD WHERE f_cycleShutValue=1 ) c1,' +
91
- // '(SELECT count(f_userinfo_id) dd from T_METEREAD WHERE f_overCurrentProtection=1 ) d1,' +
92
- // '(SELECT count(f_userinfo_id) ee from T_METEREAD WHERE f_leakageFlag=1 ) e1',
93
- // condition: "1=1",
94
- // orderitem: "1"
95
- // },
96
- // //警告用户数量统计
97
- // warningcount: {
98
- // items: '*',
99
- // tablename: 'V_WARNCOUNT',
100
- // condition: '1=1',
101
- // orderitem: '1'
102
- // }
103
- // },
104
- //
105
- // //===================================用户=========================================
106
- // //用户
107
- // User:
108
- // {
109
- // //用户数据
110
- // usernum: {
111
- // items: '(aa.qq-cc.ee) 民用, bb.ww 非民用, cc.ee 民用锅炉',
112
- // tablename:
113
- // '(select count(f_userinfo_id) qq from t_userinfo where f_user_type=\'民用\' and f_user_state=\'正常\') aa,' +
114
- // '(select count(f_user_type) ww from t_userinfo where f_user_type=\'非民用\' and f_user_state=\'正常\') bb,' +
115
- // '(select count(b.f_userinfo_id) ee from t_userinfo a, t_devices b where a.f_userinfo_id=b.f_userinfo_id and f_devices_type=\'壁挂炉\' and a.f_user_type=\'民用\' and f_user_state=\'正常\') cc',
116
- // condition:
117
- // "1=1",
118
- // orderitem: "1"
119
- // },
120
- // //用户增长
121
- // userincrease: {
122
- // items: 'a.ss year,a.totalnum,b.civiluse,c.nociviluse',
123
- // tablename:
124
- // '(select ss,count(ss) totalnum from (select to_char(f_createfile_date,\'yyyy\') ss from t_userinfo ' +
125
- // 'where f_user_state=\'正常\') group by ss)a,' +
126
- // '(select ss,count(ss) civiluse from (select to_char(f_createfile_date,\'yyyy\') ss from t_userinfo' +
127
- // ' where f_user_state=\'正常\' and f_user_type=\'民用\')group by ss)b,' +
128
- // '(select ss,count(ss) nociviluse from (select to_char(f_createfile_date,\'yyyy\') ss from t_userinfo ' +
129
- // 'where f_user_state=\'正常\' and f_user_type=\'非民用\')group by ss)c',
130
- // condition:
131
- // "a.ss=b.ss and b.ss=c.ss ",
132
- // orderitem: "year desc"
133
- // },
134
- // // 主要用户
135
- // usergas: {
136
- // items: '* FROM (SELECT F_USER_NAME name,SUM(F_PREGAS) value',
137
- // tablename:
138
- // 'A_MAINUSER',
139
- // condition:
140
- // "F_DELIVERY_DATE >= TO_DATE (\'" + this.param + "-01-01 00:00:00\',\'yyyy-mm-dd hh24:mi:ss\') GROUP BY F_USER_NAME ORDER BY value DESC) WHERE ROWNUM <= 5",
141
- // orderitem: "value desc"
142
- // },
143
- // // 售气同比
144
- // salegas: {
145
- // items: 'to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,sum(F_COLLECTION) value',
146
- // tablename: 'A_GASCOMPARISON',
147
- // condition:
148
- // "F_DELIVERY_DATE >= TO_DATE (\'" + this.param + "-01-01 00:00:00\',\'yyyy-mm-dd hh24:mi:ss\') GROUP BY to_char(F_DELIVERY_DATE,'yyyy-mm')",
149
- // orderitem: "name"
150
- // },
151
- // //报建
152
- // apply: {
153
- // items: 'count(1) value,f_gasprope name',
154
- // tablename: 't_applyback',
155
- // condition: "1=1 group by f_gasprope",
156
- // orderitem: "1"
157
- // },
158
- // //用气性质
159
- // gasdistri: {
160
- // items: this.param + 'a.f_gasproperties,count(a.f_userinfo_id) as num',
161
- // tablename:
162
- // 't_userinfo a,t_userfiles b,t_stairprice c',
163
- // condition:
164
- // "a.f_user_state='正常' and b.f_table_state='正常' and c.f_state='有效' and a.f_userinfo_id=b.f_userinfo_id and b.f_price_id=c.f_price_id" +
165
- // " group by " + this.param + "a.f_gasproperties",
166
- // orderitem: "a.f_gasproperties desc"
167
- // }
168
- // ,
169
- // }
170
- // ,
171
- //
172
- // //=====================================安检=====================================
173
- // //安检
174
- // Check: {
175
- // //安检计划
176
- // noplancheck: {
177
- // items: 'userinfo.num as totalsafe,checks.num as complete,nvl(userinfo.num-checks.num,0) as undone',
178
- // tablename:
179
- // '(select count(f_userinfo_id) num from t_userinfo where f_user_state=\'正常\') userinfo,' +
180
- // '(select count(f_userinfo_id) num from t_check_plan where f_userstate=\'正常\') checks',
181
- // condition:
182
- // '1=1',
183
- // orderitem: "1"
184
- // },
185
- //
186
- // // 安检状态
187
- // safestatus: {
188
- // items: 'f_last_check_state name,count(*) value',
189
- // tablename:
190
- // 'T_CHECK_PLAN',
191
- // condition:
192
- // '1=1 GROUP BY f_last_check_state',
193
- // orderitem: "1"
194
- // },
195
- // //安检用户类型
196
- // safeusertype: {
197
- // items: 'f_user_type name,count(*) value',
198
- // tablename:
199
- // 'T_CHECK_PLAN',
200
- // condition:
201
- // '1=1 GROUP BY f_user_type',
202
- // orderitem: "1"
203
- // },
204
- // //安检员任务统计
205
- // checkertask: {
206
- // items: 'f_checker name,count(*) value',
207
- // tablename:
208
- // 'T_CHECK_PLAN',
209
- // condition:
210
- // '1=1 GROUP BY f_checker',
211
- // orderitem: "value desc"
212
- // },
213
- // // 隐患分布
214
- // danger: {
215
- // items: 'name,value',
216
- // tablename:'(select \'擅自改动燃气管道及设施\' name,sum(plumbing) VALUE ' +
217
- // 'from T_HINVESTIGATION b ' +
218
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
219
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
220
- // 'union all ' +
221
- // 'select \'用户改变用气环境\' name,sum(environment) VALUE ' +
222
- // 'from T_HINVESTIGATION b ' +
223
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
224
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
225
- // 'union all ' +
226
- // 'select \'燃气设施房间内住人\' name,sum(accommodate) VALUE ' +
227
- // 'from T_HINVESTIGATION b ' +
228
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
229
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
230
- // 'union all ' +
231
- // 'select \'告诉用户应该定期清除厨油污\' name,sum(cookingoil) VALUE ' +
232
- // 'from T_HINVESTIGATION b ' +
233
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
234
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
235
- // 'union all ' +
236
- // 'select \'未安装燃气泄露报警器\' name,sum(annunciator) VALUE ' +
237
- // 'from T_HINVESTIGATION b ' +
238
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
239
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
240
- // 'union all ' +
241
- // 'select \'未安装防爆照明灯\' name,sum(floodlight) VALUE ' +
242
- // 'from T_HINVESTIGATION b ' +
243
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
244
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
245
- // 'union all ' +
246
- // 'select \'管道作为其他电器设备的地接线\' name,sum(groundconnection) VALUE ' +
247
- // 'from T_HINVESTIGATION b ' +
248
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
249
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\')union all ' +
250
- // 'select \'管道及其气表上有物体搭挂\' name,sum(hitched) VALUE ' +
251
- // 'from T_HINVESTIGATION b ' +
252
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
253
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
254
- // 'union all ' +
255
- // 'select \'连接灶具软管不牢固\' name,sum(flexiblehose) VALUE ' +
256
- // 'from T_HINVESTIGATION b ' +
257
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
258
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
259
- // 'union all ' +
260
- // 'select \'软管长度超过两米\' name,sum(piplong) VALUE ' +
261
- // 'from T_HINVESTIGATION b ' +
262
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
263
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
264
- // 'union all ' +
265
- // 'select \'软管使用超过两年\' name,sum(yearlong) VALUE ' +
266
- // 'from T_HINVESTIGATION b ' +
267
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
268
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
269
- // 'union all ' +
270
- // 'select \'告知用户更换软管\' name,sum(changeflexi) VALUE ' +
271
- // 'from T_HINVESTIGATION b ' +
272
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
273
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
274
- // 'union all ' +
275
- // 'select \'管道生锈\' name,sum(pipelinecorrosion) VALUE ' +
276
- // 'from T_HINVESTIGATION b ' +
277
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
278
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
279
- // 'union all ' +
280
- // 'select \'告知用户定期更换点火棒胶管\' name,sum(boosterhose) VALUE ' +
281
- // 'from T_HINVESTIGATION b ' +
282
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
283
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
284
- // 'union all ' +
285
- // 'select \'连接不牢固\' name,sum(strongconnection) VALUE ' +
286
- // 'from T_HINVESTIGATION b ' +
287
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
288
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
289
- // 'union all ' +
290
- // 'select \'存在其他安全隐患\' name,sum(hiddendanger) VALUE ' +
291
- // 'from T_HINVESTIGATION b ' +
292
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
293
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
294
- // 'union all ' +
295
- // 'select \'私拉乱接\' name,sum(diepullrandomaccess) VALUE ' +
296
- // 'from T_HINVESTIGATION b ' +
297
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
298
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
299
- // 'union all ' +
300
- // 'select \'厨房住人\' name,sum(livekitchen) VALUE ' +
301
- // 'from T_HINVESTIGATION b ' +
302
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
303
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
304
- // 'union all ' +
305
- // 'select \'厨房无隔断\' name,sum(nopartition) VALUE ' +
306
- // 'from T_HINVESTIGATION b ' +
307
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
308
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
309
- // 'union all ' +
310
- // 'select \'软管过长\' name,sum(hosetoolong) VALUE ' +
311
- // 'from T_HINVESTIGATION b ' +
312
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
313
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
314
- // 'union all ' +
315
- // 'select \'气表包裹\' name,sum(gmeterpackage) VALUE ' +
316
- // 'from T_HINVESTIGATION b ' +
317
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
318
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
319
- // 'union all ' +
320
- // 'select \'通风不良\' name,sum(ventilation) VALUE ' +
321
- // 'from T_HINVESTIGATION b ' +
322
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
323
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
324
- // 'union all ' +
325
- // 'select \'两种火源\' name,sum(twofire) VALUE ' +
326
- // 'from T_HINVESTIGATION b ' +
327
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
328
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
329
- // 'union all ' +
330
- // 'select \'私接三通\' name,sum(connectthree) VALUE ' +
331
- // 'from T_HINVESTIGATION b ' +
332
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
333
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
334
- // 'union all ' +
335
- // 'select \'燃气设备安装在浴室,卫生间\' name,sum(gasappliance) VALUE ' +
336
- // 'from T_HINVESTIGATION b ' +
337
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
338
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
339
- // 'union all ' +
340
- // 'select \'改变用气性质\' name,sum(changeproperties) VALUE ' +
341
- // 'from T_HINVESTIGATION b ' +
342
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
343
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
344
- // 'union all ' +
345
- // 'select \'其他隐患\' name,sum(otherrisks) VALUE ' +
346
- // 'from T_HINVESTIGATION b ' +
347
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
348
- // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
349
- // ') hiddendanger ',
350
- // condition:
351
- // 'value>0',
352
- // orderitem: "1"
353
- // },
354
- // //隐患统计
355
- // hiddennum: {
356
- // items: 'name,value',
357
- // tablename: '(select \'隐患数\' name, ' +
358
- // 'count(*) value ' +
359
- // 'from( ' +
360
- // 'select count(*) ' +
361
- // 'from T_HINVESTIGATION b ' +
362
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" ' +
363
- // 'where ' +
364
- // 'plumbing = 1 OR ' +
365
- // 'environment = 1 OR ' +
366
- // 'accommodate = 1 OR ' +
367
- // 'cookingoil = 1 OR ' +
368
- // 'annunciator = 1 OR ' +
369
- // 'floodlight = 1 OR ' +
370
- // 'groundconnection = 1 OR ' +
371
- // 'hitched = 1 OR ' +
372
- // 'flexiblehose = 1 OR ' +
373
- // 'piplong = 1 OR ' +
374
- // 'yearlong = 1 OR ' +
375
- // 'changeflexi = 1 OR ' +
376
- // 'pipelinecorrosion = 1 OR ' +
377
- // 'boosterhose = 1 OR ' +
378
- // 'strongconnection = 1 OR ' +
379
- // 'hiddendanger = 1 OR ' +
380
- // 'diepullrandomaccess = 1 OR ' +
381
- // 'livekitchen = 1 OR ' +
382
- // 'nopartition = 1 OR ' +
383
- // 'hosetoolong = 1 OR ' +
384
- // 'gmeterpackage = 1 OR ' +
385
- // 'ventilation = 1 OR ' +
386
- // 'twofire = 1 OR ' +
387
- // 'connectthree = 1 OR ' +
388
- // 'gasappliance = 1 OR ' +
389
- // 'changeproperties = 1 OR ' +
390
- // 'otherrisks = 1 ' +
391
- // 'group by a.F_USERINFO_ID) ' +
392
- // 'union all ' +
393
- // 'select \'已修隐患\' name, ' +
394
- // 'count(*) value ' +
395
- // 'from( ' +
396
- // 'select count(*) ' +
397
- // 'from T_HINVESTIGATION b ' +
398
- // 'join T_CHECK_PLAN a on a."ID" = b."ID" ' +
399
- // 'where ' +
400
- // '(plumbing = 0 or plumbing is null) and ' +
401
- // '(environment = 0 or environment is null) and ' +
402
- // '(accommodate = 0 or accommodate is null) and ' +
403
- // '(cookingoil = 0 or cookingoil is null) and ' +
404
- // '(annunciator = 0 or annunciator is null) and ' +
405
- // '(floodlight = 0 or floodlight is null) and ' +
406
- // '(groundconnection = 0 or groundconnection is null) and ' +
407
- // '(hitched = 0 or hitched is null) and ' +
408
- // '(flexiblehose = 0 or flexiblehose is null) and ' +
409
- // '(piplong =0 or piplong is null) and ' +
410
- // '(yearlong = 0 or yearlong is null) and ' +
411
- // '(changeflexi = 0 or changeflexi is null) and ' +
412
- // '(pipelinecorrosion = 0 or pipelinecorrosion is null) and ' +
413
- // '(boosterhose = 0 or boosterhose is null) and ' +
414
- // '(strongconnection = 0 or strongconnection is null) and ' +
415
- // '(hiddendanger = 0 or hiddendanger is null) and ' +
416
- // '(diepullrandomaccess =0 or diepullrandomaccess is null) and ' +
417
- // '(livekitchen =0 or livekitchen is null) and ' +
418
- // '(nopartition =0 or nopartition is null) and ' +
419
- // '(hosetoolong =0 or hosetoolong is null) and ' +
420
- // '(gmeterpackage =0 or gmeterpackage is null) and ' +
421
- // '(ventilation =0 or ventilation is null) and ' +
422
- // '(twofire =0 or twofire is null) and ' +
423
- // '(connectthree =0 or connectthree is null) and ' +
424
- // '(gasappliance =0 or gasappliance is null) and ' +
425
- // '(changeproperties =0 or changeproperties is null) and ' +
426
- // '(otherrisks =0 or otherrisks is null) ' +
427
- // 'group by a.F_USERINFO_ID) ' +
428
- // ') hiddendanger ',
429
- // condition: ' value>0',
430
- // orderitem: "1"
431
- // },
432
- // },
433
- //
434
- //
435
- // //监控
436
- // Monitor: {
437
- // // 表品牌分布
438
- // meterbrand: {
439
- // items: '* FROM (SELECT t.F_METER_BRAND as name,u.count as value from T_GASBRAND t,(SELECT F_GASBRAND_ID as Id,COUNT(F_GASBRAND_ID) as count',
440
- // tablename: 'T_USERFILES TF,T_USERINFO TI WHERE TF.F_USERINFO_ID = TI.F_USERINFO_ID GROUP BY F_GASBRAND_ID) u',
441
- // condition: 'u.id = t.ID ORDER BY count DESC) WHERE ROWNUM <=5',
442
- // orderitem: "value desc"
443
- // },
444
- // //监控中心
445
- // monitorcenter: {
446
- // items: 'aa.num-bb.num name1,bb.num name2',
447
- // tablename: '(SELECT count(f_userinfo_id) num from T_USERINFO where F_USER_STATE=\'正常\' )aa,' +
448
- // '(SELECT count(ti.f_userinfo_id) num from T_USERINFO ti,T_USERFILES tf where ti.f_userinfo_id=tf.f_userinfo_id ' +
449
- // 'and ti.F_USER_STATE=\'正常\' and TF.f_meter_classify= \'物联网表\')bb',
450
- // condition: '1=1',
451
- // orderitem: '1'
452
- // },
453
- // //售差比
454
- // buysub: {
455
- // items: "YEAR,NVL (minyong * buysub, 0) AS mingyong,NVL (gongye * buysub, 0) AS gongye, NVL (bigua * buysub, 0) AS bigua," +
456
- // "NVL (minyong * buysub, 0) + NVL (gongye * buysub, 0) + NVL (bigua * buysub, 0) AS SUM,NVL (menzhan, 0) AS menzhan,buysub",
457
- // tablename:
458
- // "(SELECT A .*, b.gongye,c.bigua,l.menzhan,bs.buysub FROM (SELECT TO_NUMBER (TO_CHAR (ts.F_DELIVERY_DATE, 'yyyy')) AS YEAR," +
459
- // "SUM (ts.F_PREAMOUNT) AS minyong FROM t_sellinggas ts,t_devices td WHERE ts.f_user_id = td.F_USERINFO_ID AND ts.F_USER_TYPE = '民用' " +
460
- // "AND ts.F_DELIVERY_DATE >= TO_DATE (\'" + this.param + "\','yyyy-MM-dd hh24:mi:ss') AND ts.F_DELIVERY_DATE <= " +
461
- // "TO_DATE (\'" + this.param1 + "\','yyyy-MM-dd hh24:mi:ss') GROUP BY TO_NUMBER (TO_CHAR (ts.F_DELIVERY_DATE, 'yyyy'))) A LEFT JOIN " +
462
- // "(SELECT TO_NUMBER (TO_CHAR (ts.F_DELIVERY_DATE, 'yyyy')) AS YEAR,SUM (ts.F_PREAMOUNT) AS gongye FROM t_sellinggas ts,t_devices " +
463
- // "td WHERE ts.f_user_id = td.F_USERINFO_ID AND ts.F_USER_TYPE = '非民用'AND ts.F_DELIVERY_DATE >= TO_DATE (\'" + this.param + "\','yyyy-MM-dd hh24:mi:ss') " +
464
- // "AND ts.F_DELIVERY_DATE <= TO_DATE (\'" + this.param1 + "\','yyyy-MM-dd hh24:mi:ss') GROUP BY TO_NUMBER (TO_CHAR (ts.F_DELIVERY_DATE, 'yyyy'))) " +
465
- // "b ON A . YEAR = b. YEAR LEFT JOIN (SELECT TO_NUMBER (TO_CHAR (ts.F_DELIVERY_DATE, 'yyyy')) AS YEAR,SUM (ts.F_PREAMOUNT) AS bigua FROM t_sellinggas ts,t_devices " +
466
- // "td WHERE ts.f_user_id = td.F_USERINFO_ID AND td.f_devices_type = '壁挂炉' AND ts.F_USER_TYPE = '民用' AND ts.F_DELIVERY_DATE >= TO_DATE (\'" + this.param + "\', 'yyyy-MM-dd hh24:mi:ss')" +
467
- // " AND ts.F_DELIVERY_DATE <= TO_DATE (\'" + this.param1 + "\', 'yyyy-MM-dd hh24:mi:ss') GROUP BY TO_NUMBER (TO_CHAR (ts.F_DELIVERY_DATE, 'yyyy'))) c ON b. YEAR = c. YEAR LEFT JOIN " +
468
- // " (SELECT TO_NUMBER (SUBSTR(f_gasdate, 1, 4)) AS YEAR, NVL (SUM(f_gasmun), 0) AS menzhan FROM t_supplygas WHERE TO_DATE (f_gasdate, 'yyyy-MM-dd hh24:mi:ss') >= " +
469
- // "TO_DATE (\'" + this.param + "\', 'yyyy-MM-dd hh24:mi:ss') AND TO_DATE (f_gasdate, 'yyyy-MM-dd hh24:mi:ss') <= TO_DATE (\'" + this.param1 + "\', 'yyyy-MM-dd hh24:mi:ss') " +
470
- // "GROUP BY TO_NUMBER (SUBSTR(f_gasdate, 1, 4))) l ON b. YEAR = l. YEAR LEFT JOIN (SELECT SUBSTR (f_startdate, 0, 4) AS YEAR, NVL (AVG(f_gasmun), 0) AS buysub FROM t_buysub " +
471
- // "WHERE f_startdate >= \'" + this.param + "\' AND f_enddate <= \'" + this.param1 + "\' GROUP BY SUBSTR (f_startdate, 0, 4)) bs ON b. YEAR = bs. YEAR) M",
472
- // condition:
473
- // "1=1",
474
- // orderitem: 'year asc'
475
- // },
476
- // // 长期未购气
477
- // longnotbuygas: {
478
- // items: 'count(f_userinfo_id) num,to_char(f_delivery_date,\'yyyy-mm\') dates',
479
- // tablename: 'A_LONGNOTBUYGAS',
480
- // condition:
481
- // ' f_delivery_date>= TO_DATE (\'' + this.param + '\', \'yyyy-mm-dd hh24:mi:ss\') GROUP BY to_char(f_delivery_date,\'yyyy-mm\')',
482
- // orderitem: 'dates'
483
- // },
484
- // //往期购气对比
485
- // pastscale: {
486
- // items: 'count(qq.r1) above,count(qq.r2) below',
487
- // tablename:
488
- // '(SELECT (case when pastscale>' + this.param1 + ' then f_userinfo_id end) r1,(case when pastscale<' + this.param2 + ' then f_userinfo_id end) r2 ' +
489
- // ' FROM (A_BUYGASCHANGE) where F_DELIVERY_DATE>=to_date(\'' + this.param + '\',\'yyyy-mm-dd hh24:mi:ss\') and f_last_pregas!=0 ' +
490
- // ')qq',
491
- // condition:
492
- // 'qq.r1 is not null or qq.r2 is not null',
493
- // orderitem: '1'
494
- // },
495
- // //失联用户
496
- // lossassociation: {
497
- // items: 'count(f_userinfo_id) num,to_char(f_hand_date,\'yyyy-mm\') dates',
498
- // tablename: 'a_lossassociation',
499
- // condition: '1=1 group by to_char(f_hand_date,\'yyyy-mm\')',
500
- // orderitem: 'dates'
501
- // },
502
- // //长期未用气
503
- // longnotusegas: {
504
- // items: 'count(distinct(f_userinfo_id)) num,to_char(f_hand_date,\'yyyy-mm\') dates',
505
- // tablename: 'a_longnotusegas',
506
- // condition: '1=1 group by to_char(f_hand_date,\'yyyy-mm\')',
507
- // orderitem: 'dates'
508
- // }
509
- // }
510
- // ,
511
- // }
512
- // // 返回sql条件
513
- // return Sql[title][param]
514
- // }
515
-
516
-
517
- // 数据增加单位,data=待单位化的数据,函数返回为单位化的数据字符串
518
- export function dataunit(data) {
519
- var value = data
520
-
521
- //去掉小数点
522
- var index0 = value.toString().indexOf('.')
523
- if (index0 != -1) {
524
- value = value.toString().substring(0, index0)
525
- }
526
- // 对整数部分进行位数判定,因数据原因,暂取‘万’为单位
527
- var result = ''
528
- var index = value.toString().length
529
- var t, s, l
530
- var unit = ''
531
-
532
- if (index > 4 && index < 9) {
533
- t = value.toString().substring(0, index - 4)
534
- s = value.toString().substring(index - 4, index - 3)
535
- l = value.toString().substring(index - 3, index - 2)
536
- unit = '万'
537
- }
538
- if (index > 8) {
539
- t = value.toString().substring(0, index - 8)
540
- s = value.toString().substring(index - 8, index - 7)
541
- l = value.toString().substring(index - 7, index - 6)
542
- unit = '亿'
543
- }
544
-
545
- if (index <= 4) {
546
- return value
547
- }
548
- // 四舍五入
549
- if (l > 4) {
550
- s = eval(s + '+1')
551
- }
552
- // 产生进位
553
- if (s > 9) {
554
- s = 0
555
- t = eval(t + '+1')
556
- }
557
- result = t + '.' + s + unit
558
-
559
- return result
560
- }
561
-
562
- //数组进行单位化,self=this,param=待单位化数组数据的变量名,param1=接受单位化数组数据的变量名
563
- export function dataunitarray(self, param, param1) {
564
- let result = []
565
- // 遍历数组
566
- for (var i = 0; i < self[param].length; i++) {
567
- var name = self[param][i].name
568
- let res = {}
569
- res.name = name
570
- // 单位化数据
571
- res.value = this.dataunit(self[param][i].value)
572
- result.push(res)
573
- }
574
- self[param1] = result
575
- }
576
-
577
- //获取前day的时间
578
- export function toBeforeDate(day) {
579
- var dd = new Date();
580
- dd.setDate(dd.getDate() - day);//获取前day天的日期
581
- var y = dd.getFullYear();
582
- var m = (dd.getMonth() + 1) < 10 ? "0" + (dd.getMonth() + 1) : (dd.getMonth() + 1);//获取当前月份的日期,不足10补0
583
- var d = dd.getDate() < 10 ? "0" + dd.getDate() : dd.getDate();//获取当前几号,不足10补0
584
- return y + "-" + m + "-" + d;
585
- }
1
+ import {HttpResetClass} from "vue-client";
2
+
3
+ // 待传入sql的参数
4
+ export var param = ''
5
+ export var param1 = ''
6
+ export var param2 = ''
7
+
8
+ //请求后台数据,self=this,conditon=查询条件,singleTableParam内容为 select {items} from {tablename} where {condition}
9
+ export function getData(self,sqlname, condition, resultname) {
10
+ var ss=''
11
+ console.log(self.$parent.$parent.$parent.typemodel,self.$parent.$parent.$parent.typemodel,'dsds')
12
+ if(self.$parent.$parent.typemodel!=undefined){
13
+ ss=self.$parent.$parent.typemodel
14
+ }
15
+ let load = new HttpResetClass();
16
+ load.load("POST", 'rs/sql/' + ss + 'jy' + sqlname,
17
+ {data: condition},
18
+ {resolveMsg: null, rejectMsg: null})
19
+ .then((res) => {
20
+ console.log(sqlname, res.data, '返回数据')
21
+ // 返回数据给resdata
22
+ self[resultname] = res.data
23
+ })
24
+ }
25
+
26
+ export function getData1(self, sqlname, condition, resultname) {
27
+
28
+ let load = new HttpResetClass();
29
+ load.load("POST", 'rs/sql/' + sqlname,
30
+ {data: condition},
31
+ {resolveMsg: null, rejectMsg: null})
32
+ .then((res) => {
33
+ console.log(sqlname, res.data, '返回数据')
34
+ // 返回数据给resdata
35
+ self[resultname] = res.data
36
+ })
37
+ }
38
+
39
+
40
+ // 获取sql,titlt=所属分类页面name,param=当前页面中所属的模块名,返回结果=所需的sql条件
41
+ // export function getSql(title, param) {
42
+ // //Sql配置,items=查询列名,tablename=表名,condition=条件
43
+ // var Sql = {
44
+ // //====================================主页=============================================
45
+ // // 主页
46
+ // Manage: {
47
+ // //获取安全服务时间
48
+ // home: {
49
+ // items: 'f_createfile_date stardate',
50
+ // tablename: "(select f_createfile_date from t_userinfo where f_user_state='正常' order by f_createfile_date asc)",
51
+ // condition: "rownum=1",
52
+ // orderitem: "1"
53
+ // },
54
+ // //用户数据
55
+ // user: {
56
+ // items: '(aa.qq-cc.ee) 民用, bb.ww 非民用, cc.ee 民用锅炉',
57
+ // tablename: '(select count(f_userinfo_id) qq from t_userinfo where f_user_type=\'民用\' and f_user_state=\'正常\') aa,' +
58
+ // '(select count(f_user_type) ww from t_userinfo where f_user_type=\'非民用\' and f_user_state=\'正常\') bb,' +
59
+ // '(select count(b.f_userinfo_id) ee from t_userinfo a, t_devices b where a.f_userinfo_id=b.f_userinfo_id and f_devices_type=\'壁挂炉\' and a.f_user_type=\'民用\' and f_user_state=\'正常\') cc',
60
+ // condition: "1=1",
61
+ // orderitem: "1"
62
+ // },
63
+ // // 潜在用户
64
+ // useri: {
65
+ // items: 'a.ss year,a.totalnum',
66
+ // tablename: '(SELECT ss,count(ss) totalnum from (SELECT to_char(f_createfile_date,\'yyyy\') ss from T_USERINFO ' +
67
+ // 'where f_user_state=\'正常\') GROUP BY ss )a ',
68
+ // condition: "1=1",
69
+ // orderitem: "ss desc"
70
+ // },
71
+ // // 报建用户
72
+ // userapply: {
73
+ // items: 'count(1) totalnum',
74
+ // tablename: 't_applyback',
75
+ // condition: "1=1",
76
+ // orderitem: "1"
77
+ // },
78
+ // //总售气量
79
+ // pregas: {
80
+ // items: 'sum(f_pregas) as value',
81
+ // tablename: 'A_GASCOMPARISON',
82
+ // condition: 'f_delivery_date>=TO_DATE(\'' + this.param + '-01-01 00:00:00\',\'yyyy-mm-dd hh24:mi:ss\')',
83
+ // orderitem: '1'
84
+ // },
85
+ // //物联网监控
86
+ // monitor: {
87
+ // items: 'a1.aa 磁干扰,b1.bb 报警关阀,c1.cc 周期关阀,d1.dd 过流保护关阀,e1.ee 关阀走气',
88
+ // tablename: '(SELECT count(f_userinfo_id) aa from T_METEREAD WHERE f_magneticInterference=1 ) a1,' +
89
+ // '(SELECT count(f_userinfo_id) bb from T_METEREAD WHERE f_alarmShutValve=1 ) b1,' +
90
+ // '(SELECT count(f_userinfo_id) cc from T_METEREAD WHERE f_cycleShutValue=1 ) c1,' +
91
+ // '(SELECT count(f_userinfo_id) dd from T_METEREAD WHERE f_overCurrentProtection=1 ) d1,' +
92
+ // '(SELECT count(f_userinfo_id) ee from T_METEREAD WHERE f_leakageFlag=1 ) e1',
93
+ // condition: "1=1",
94
+ // orderitem: "1"
95
+ // },
96
+ // //警告用户数量统计
97
+ // warningcount: {
98
+ // items: '*',
99
+ // tablename: 'V_WARNCOUNT',
100
+ // condition: '1=1',
101
+ // orderitem: '1'
102
+ // }
103
+ // },
104
+ //
105
+ // //===================================用户=========================================
106
+ // //用户
107
+ // User:
108
+ // {
109
+ // //用户数据
110
+ // usernum: {
111
+ // items: '(aa.qq-cc.ee) 民用, bb.ww 非民用, cc.ee 民用锅炉',
112
+ // tablename:
113
+ // '(select count(f_userinfo_id) qq from t_userinfo where f_user_type=\'民用\' and f_user_state=\'正常\') aa,' +
114
+ // '(select count(f_user_type) ww from t_userinfo where f_user_type=\'非民用\' and f_user_state=\'正常\') bb,' +
115
+ // '(select count(b.f_userinfo_id) ee from t_userinfo a, t_devices b where a.f_userinfo_id=b.f_userinfo_id and f_devices_type=\'壁挂炉\' and a.f_user_type=\'民用\' and f_user_state=\'正常\') cc',
116
+ // condition:
117
+ // "1=1",
118
+ // orderitem: "1"
119
+ // },
120
+ // //用户增长
121
+ // userincrease: {
122
+ // items: 'a.ss year,a.totalnum,b.civiluse,c.nociviluse',
123
+ // tablename:
124
+ // '(select ss,count(ss) totalnum from (select to_char(f_createfile_date,\'yyyy\') ss from t_userinfo ' +
125
+ // 'where f_user_state=\'正常\') group by ss)a,' +
126
+ // '(select ss,count(ss) civiluse from (select to_char(f_createfile_date,\'yyyy\') ss from t_userinfo' +
127
+ // ' where f_user_state=\'正常\' and f_user_type=\'民用\')group by ss)b,' +
128
+ // '(select ss,count(ss) nociviluse from (select to_char(f_createfile_date,\'yyyy\') ss from t_userinfo ' +
129
+ // 'where f_user_state=\'正常\' and f_user_type=\'非民用\')group by ss)c',
130
+ // condition:
131
+ // "a.ss=b.ss and b.ss=c.ss ",
132
+ // orderitem: "year desc"
133
+ // },
134
+ // // 主要用户
135
+ // usergas: {
136
+ // items: '* FROM (SELECT F_USER_NAME name,SUM(F_PREGAS) value',
137
+ // tablename:
138
+ // 'A_MAINUSER',
139
+ // condition:
140
+ // "F_DELIVERY_DATE >= TO_DATE (\'" + this.param + "-01-01 00:00:00\',\'yyyy-mm-dd hh24:mi:ss\') GROUP BY F_USER_NAME ORDER BY value DESC) WHERE ROWNUM <= 5",
141
+ // orderitem: "value desc"
142
+ // },
143
+ // // 售气同比
144
+ // salegas: {
145
+ // items: 'to_char(F_DELIVERY_DATE,\'yyyy-mm\') name,sum(F_COLLECTION) value',
146
+ // tablename: 'A_GASCOMPARISON',
147
+ // condition:
148
+ // "F_DELIVERY_DATE >= TO_DATE (\'" + this.param + "-01-01 00:00:00\',\'yyyy-mm-dd hh24:mi:ss\') GROUP BY to_char(F_DELIVERY_DATE,'yyyy-mm')",
149
+ // orderitem: "name"
150
+ // },
151
+ // //报建
152
+ // apply: {
153
+ // items: 'count(1) value,f_gasprope name',
154
+ // tablename: 't_applyback',
155
+ // condition: "1=1 group by f_gasprope",
156
+ // orderitem: "1"
157
+ // },
158
+ // //用气性质
159
+ // gasdistri: {
160
+ // items: this.param + 'a.f_gasproperties,count(a.f_userinfo_id) as num',
161
+ // tablename:
162
+ // 't_userinfo a,t_userfiles b,t_stairprice c',
163
+ // condition:
164
+ // "a.f_user_state='正常' and b.f_table_state='正常' and c.f_state='有效' and a.f_userinfo_id=b.f_userinfo_id and b.f_price_id=c.f_price_id" +
165
+ // " group by " + this.param + "a.f_gasproperties",
166
+ // orderitem: "a.f_gasproperties desc"
167
+ // }
168
+ // ,
169
+ // }
170
+ // ,
171
+ //
172
+ // //=====================================安检=====================================
173
+ // //安检
174
+ // Check: {
175
+ // //安检计划
176
+ // noplancheck: {
177
+ // items: 'userinfo.num as totalsafe,checks.num as complete,nvl(userinfo.num-checks.num,0) as undone',
178
+ // tablename:
179
+ // '(select count(f_userinfo_id) num from t_userinfo where f_user_state=\'正常\') userinfo,' +
180
+ // '(select count(f_userinfo_id) num from t_check_plan where f_userstate=\'正常\') checks',
181
+ // condition:
182
+ // '1=1',
183
+ // orderitem: "1"
184
+ // },
185
+ //
186
+ // // 安检状态
187
+ // safestatus: {
188
+ // items: 'f_last_check_state name,count(*) value',
189
+ // tablename:
190
+ // 'T_CHECK_PLAN',
191
+ // condition:
192
+ // '1=1 GROUP BY f_last_check_state',
193
+ // orderitem: "1"
194
+ // },
195
+ // //安检用户类型
196
+ // safeusertype: {
197
+ // items: 'f_user_type name,count(*) value',
198
+ // tablename:
199
+ // 'T_CHECK_PLAN',
200
+ // condition:
201
+ // '1=1 GROUP BY f_user_type',
202
+ // orderitem: "1"
203
+ // },
204
+ // //安检员任务统计
205
+ // checkertask: {
206
+ // items: 'f_checker name,count(*) value',
207
+ // tablename:
208
+ // 'T_CHECK_PLAN',
209
+ // condition:
210
+ // '1=1 GROUP BY f_checker',
211
+ // orderitem: "value desc"
212
+ // },
213
+ // // 隐患分布
214
+ // danger: {
215
+ // items: 'name,value',
216
+ // tablename:'(select \'擅自改动燃气管道及设施\' name,sum(plumbing) VALUE ' +
217
+ // 'from T_HINVESTIGATION b ' +
218
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
219
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
220
+ // 'union all ' +
221
+ // 'select \'用户改变用气环境\' name,sum(environment) VALUE ' +
222
+ // 'from T_HINVESTIGATION b ' +
223
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
224
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
225
+ // 'union all ' +
226
+ // 'select \'燃气设施房间内住人\' name,sum(accommodate) VALUE ' +
227
+ // 'from T_HINVESTIGATION b ' +
228
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
229
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
230
+ // 'union all ' +
231
+ // 'select \'告诉用户应该定期清除厨油污\' name,sum(cookingoil) VALUE ' +
232
+ // 'from T_HINVESTIGATION b ' +
233
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
234
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
235
+ // 'union all ' +
236
+ // 'select \'未安装燃气泄露报警器\' name,sum(annunciator) VALUE ' +
237
+ // 'from T_HINVESTIGATION b ' +
238
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
239
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
240
+ // 'union all ' +
241
+ // 'select \'未安装防爆照明灯\' name,sum(floodlight) VALUE ' +
242
+ // 'from T_HINVESTIGATION b ' +
243
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
244
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
245
+ // 'union all ' +
246
+ // 'select \'管道作为其他电器设备的地接线\' name,sum(groundconnection) VALUE ' +
247
+ // 'from T_HINVESTIGATION b ' +
248
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
249
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\')union all ' +
250
+ // 'select \'管道及其气表上有物体搭挂\' name,sum(hitched) VALUE ' +
251
+ // 'from T_HINVESTIGATION b ' +
252
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
253
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
254
+ // 'union all ' +
255
+ // 'select \'连接灶具软管不牢固\' name,sum(flexiblehose) VALUE ' +
256
+ // 'from T_HINVESTIGATION b ' +
257
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
258
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
259
+ // 'union all ' +
260
+ // 'select \'软管长度超过两米\' name,sum(piplong) VALUE ' +
261
+ // 'from T_HINVESTIGATION b ' +
262
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
263
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
264
+ // 'union all ' +
265
+ // 'select \'软管使用超过两年\' name,sum(yearlong) VALUE ' +
266
+ // 'from T_HINVESTIGATION b ' +
267
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
268
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
269
+ // 'union all ' +
270
+ // 'select \'告知用户更换软管\' name,sum(changeflexi) VALUE ' +
271
+ // 'from T_HINVESTIGATION b ' +
272
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
273
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
274
+ // 'union all ' +
275
+ // 'select \'管道生锈\' name,sum(pipelinecorrosion) VALUE ' +
276
+ // 'from T_HINVESTIGATION b ' +
277
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
278
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
279
+ // 'union all ' +
280
+ // 'select \'告知用户定期更换点火棒胶管\' name,sum(boosterhose) VALUE ' +
281
+ // 'from T_HINVESTIGATION b ' +
282
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
283
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
284
+ // 'union all ' +
285
+ // 'select \'连接不牢固\' name,sum(strongconnection) VALUE ' +
286
+ // 'from T_HINVESTIGATION b ' +
287
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
288
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
289
+ // 'union all ' +
290
+ // 'select \'存在其他安全隐患\' name,sum(hiddendanger) VALUE ' +
291
+ // 'from T_HINVESTIGATION b ' +
292
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
293
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
294
+ // 'union all ' +
295
+ // 'select \'私拉乱接\' name,sum(diepullrandomaccess) VALUE ' +
296
+ // 'from T_HINVESTIGATION b ' +
297
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
298
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
299
+ // 'union all ' +
300
+ // 'select \'厨房住人\' name,sum(livekitchen) VALUE ' +
301
+ // 'from T_HINVESTIGATION b ' +
302
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
303
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
304
+ // 'union all ' +
305
+ // 'select \'厨房无隔断\' name,sum(nopartition) VALUE ' +
306
+ // 'from T_HINVESTIGATION b ' +
307
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
308
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
309
+ // 'union all ' +
310
+ // 'select \'软管过长\' name,sum(hosetoolong) VALUE ' +
311
+ // 'from T_HINVESTIGATION b ' +
312
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
313
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
314
+ // 'union all ' +
315
+ // 'select \'气表包裹\' name,sum(gmeterpackage) VALUE ' +
316
+ // 'from T_HINVESTIGATION b ' +
317
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
318
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
319
+ // 'union all ' +
320
+ // 'select \'通风不良\' name,sum(ventilation) VALUE ' +
321
+ // 'from T_HINVESTIGATION b ' +
322
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
323
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
324
+ // 'union all ' +
325
+ // 'select \'两种火源\' name,sum(twofire) VALUE ' +
326
+ // 'from T_HINVESTIGATION b ' +
327
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
328
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
329
+ // 'union all ' +
330
+ // 'select \'私接三通\' name,sum(connectthree) VALUE ' +
331
+ // 'from T_HINVESTIGATION b ' +
332
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
333
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
334
+ // 'union all ' +
335
+ // 'select \'燃气设备安装在浴室,卫生间\' name,sum(gasappliance) VALUE ' +
336
+ // 'from T_HINVESTIGATION b ' +
337
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
338
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
339
+ // 'union all ' +
340
+ // 'select \'改变用气性质\' name,sum(changeproperties) VALUE ' +
341
+ // 'from T_HINVESTIGATION b ' +
342
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
343
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
344
+ // 'union all ' +
345
+ // 'select \'其他隐患\' name,sum(otherrisks) VALUE ' +
346
+ // 'from T_HINVESTIGATION b ' +
347
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" and f_check_date>=to_date(\''+this.param+' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and ' +
348
+ // 'f_check_date<=to_date(\''+this.param1+' 23:59:59\',\'yyyy-MM-dd hh24:mi:ss\') ' +
349
+ // ') hiddendanger ',
350
+ // condition:
351
+ // 'value>0',
352
+ // orderitem: "1"
353
+ // },
354
+ // //隐患统计
355
+ // hiddennum: {
356
+ // items: 'name,value',
357
+ // tablename: '(select \'隐患数\' name, ' +
358
+ // 'count(*) value ' +
359
+ // 'from( ' +
360
+ // 'select count(*) ' +
361
+ // 'from T_HINVESTIGATION b ' +
362
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" ' +
363
+ // 'where ' +
364
+ // 'plumbing = 1 OR ' +
365
+ // 'environment = 1 OR ' +
366
+ // 'accommodate = 1 OR ' +
367
+ // 'cookingoil = 1 OR ' +
368
+ // 'annunciator = 1 OR ' +
369
+ // 'floodlight = 1 OR ' +
370
+ // 'groundconnection = 1 OR ' +
371
+ // 'hitched = 1 OR ' +
372
+ // 'flexiblehose = 1 OR ' +
373
+ // 'piplong = 1 OR ' +
374
+ // 'yearlong = 1 OR ' +
375
+ // 'changeflexi = 1 OR ' +
376
+ // 'pipelinecorrosion = 1 OR ' +
377
+ // 'boosterhose = 1 OR ' +
378
+ // 'strongconnection = 1 OR ' +
379
+ // 'hiddendanger = 1 OR ' +
380
+ // 'diepullrandomaccess = 1 OR ' +
381
+ // 'livekitchen = 1 OR ' +
382
+ // 'nopartition = 1 OR ' +
383
+ // 'hosetoolong = 1 OR ' +
384
+ // 'gmeterpackage = 1 OR ' +
385
+ // 'ventilation = 1 OR ' +
386
+ // 'twofire = 1 OR ' +
387
+ // 'connectthree = 1 OR ' +
388
+ // 'gasappliance = 1 OR ' +
389
+ // 'changeproperties = 1 OR ' +
390
+ // 'otherrisks = 1 ' +
391
+ // 'group by a.F_USERINFO_ID) ' +
392
+ // 'union all ' +
393
+ // 'select \'已修隐患\' name, ' +
394
+ // 'count(*) value ' +
395
+ // 'from( ' +
396
+ // 'select count(*) ' +
397
+ // 'from T_HINVESTIGATION b ' +
398
+ // 'join T_CHECK_PLAN a on a."ID" = b."ID" ' +
399
+ // 'where ' +
400
+ // '(plumbing = 0 or plumbing is null) and ' +
401
+ // '(environment = 0 or environment is null) and ' +
402
+ // '(accommodate = 0 or accommodate is null) and ' +
403
+ // '(cookingoil = 0 or cookingoil is null) and ' +
404
+ // '(annunciator = 0 or annunciator is null) and ' +
405
+ // '(floodlight = 0 or floodlight is null) and ' +
406
+ // '(groundconnection = 0 or groundconnection is null) and ' +
407
+ // '(hitched = 0 or hitched is null) and ' +
408
+ // '(flexiblehose = 0 or flexiblehose is null) and ' +
409
+ // '(piplong =0 or piplong is null) and ' +
410
+ // '(yearlong = 0 or yearlong is null) and ' +
411
+ // '(changeflexi = 0 or changeflexi is null) and ' +
412
+ // '(pipelinecorrosion = 0 or pipelinecorrosion is null) and ' +
413
+ // '(boosterhose = 0 or boosterhose is null) and ' +
414
+ // '(strongconnection = 0 or strongconnection is null) and ' +
415
+ // '(hiddendanger = 0 or hiddendanger is null) and ' +
416
+ // '(diepullrandomaccess =0 or diepullrandomaccess is null) and ' +
417
+ // '(livekitchen =0 or livekitchen is null) and ' +
418
+ // '(nopartition =0 or nopartition is null) and ' +
419
+ // '(hosetoolong =0 or hosetoolong is null) and ' +
420
+ // '(gmeterpackage =0 or gmeterpackage is null) and ' +
421
+ // '(ventilation =0 or ventilation is null) and ' +
422
+ // '(twofire =0 or twofire is null) and ' +
423
+ // '(connectthree =0 or connectthree is null) and ' +
424
+ // '(gasappliance =0 or gasappliance is null) and ' +
425
+ // '(changeproperties =0 or changeproperties is null) and ' +
426
+ // '(otherrisks =0 or otherrisks is null) ' +
427
+ // 'group by a.F_USERINFO_ID) ' +
428
+ // ') hiddendanger ',
429
+ // condition: ' value>0',
430
+ // orderitem: "1"
431
+ // },
432
+ // },
433
+ //
434
+ //
435
+ // //监控
436
+ // Monitor: {
437
+ // // 表品牌分布
438
+ // meterbrand: {
439
+ // items: '* FROM (SELECT t.F_METER_BRAND as name,u.count as value from T_GASBRAND t,(SELECT F_GASBRAND_ID as Id,COUNT(F_GASBRAND_ID) as count',
440
+ // tablename: 'T_USERFILES TF,T_USERINFO TI WHERE TF.F_USERINFO_ID = TI.F_USERINFO_ID GROUP BY F_GASBRAND_ID) u',
441
+ // condition: 'u.id = t.ID ORDER BY count DESC) WHERE ROWNUM <=5',
442
+ // orderitem: "value desc"
443
+ // },
444
+ // //监控中心
445
+ // monitorcenter: {
446
+ // items: 'aa.num-bb.num name1,bb.num name2',
447
+ // tablename: '(SELECT count(f_userinfo_id) num from T_USERINFO where F_USER_STATE=\'正常\' )aa,' +
448
+ // '(SELECT count(ti.f_userinfo_id) num from T_USERINFO ti,T_USERFILES tf where ti.f_userinfo_id=tf.f_userinfo_id ' +
449
+ // 'and ti.F_USER_STATE=\'正常\' and TF.f_meter_classify= \'物联网表\')bb',
450
+ // condition: '1=1',
451
+ // orderitem: '1'
452
+ // },
453
+ // //售差比
454
+ // buysub: {
455
+ // items: "YEAR,NVL (minyong * buysub, 0) AS mingyong,NVL (gongye * buysub, 0) AS gongye, NVL (bigua * buysub, 0) AS bigua," +
456
+ // "NVL (minyong * buysub, 0) + NVL (gongye * buysub, 0) + NVL (bigua * buysub, 0) AS SUM,NVL (menzhan, 0) AS menzhan,buysub",
457
+ // tablename:
458
+ // "(SELECT A .*, b.gongye,c.bigua,l.menzhan,bs.buysub FROM (SELECT TO_NUMBER (TO_CHAR (ts.F_DELIVERY_DATE, 'yyyy')) AS YEAR," +
459
+ // "SUM (ts.F_PREAMOUNT) AS minyong FROM t_sellinggas ts,t_devices td WHERE ts.f_user_id = td.F_USERINFO_ID AND ts.F_USER_TYPE = '民用' " +
460
+ // "AND ts.F_DELIVERY_DATE >= TO_DATE (\'" + this.param + "\','yyyy-MM-dd hh24:mi:ss') AND ts.F_DELIVERY_DATE <= " +
461
+ // "TO_DATE (\'" + this.param1 + "\','yyyy-MM-dd hh24:mi:ss') GROUP BY TO_NUMBER (TO_CHAR (ts.F_DELIVERY_DATE, 'yyyy'))) A LEFT JOIN " +
462
+ // "(SELECT TO_NUMBER (TO_CHAR (ts.F_DELIVERY_DATE, 'yyyy')) AS YEAR,SUM (ts.F_PREAMOUNT) AS gongye FROM t_sellinggas ts,t_devices " +
463
+ // "td WHERE ts.f_user_id = td.F_USERINFO_ID AND ts.F_USER_TYPE = '非民用'AND ts.F_DELIVERY_DATE >= TO_DATE (\'" + this.param + "\','yyyy-MM-dd hh24:mi:ss') " +
464
+ // "AND ts.F_DELIVERY_DATE <= TO_DATE (\'" + this.param1 + "\','yyyy-MM-dd hh24:mi:ss') GROUP BY TO_NUMBER (TO_CHAR (ts.F_DELIVERY_DATE, 'yyyy'))) " +
465
+ // "b ON A . YEAR = b. YEAR LEFT JOIN (SELECT TO_NUMBER (TO_CHAR (ts.F_DELIVERY_DATE, 'yyyy')) AS YEAR,SUM (ts.F_PREAMOUNT) AS bigua FROM t_sellinggas ts,t_devices " +
466
+ // "td WHERE ts.f_user_id = td.F_USERINFO_ID AND td.f_devices_type = '壁挂炉' AND ts.F_USER_TYPE = '民用' AND ts.F_DELIVERY_DATE >= TO_DATE (\'" + this.param + "\', 'yyyy-MM-dd hh24:mi:ss')" +
467
+ // " AND ts.F_DELIVERY_DATE <= TO_DATE (\'" + this.param1 + "\', 'yyyy-MM-dd hh24:mi:ss') GROUP BY TO_NUMBER (TO_CHAR (ts.F_DELIVERY_DATE, 'yyyy'))) c ON b. YEAR = c. YEAR LEFT JOIN " +
468
+ // " (SELECT TO_NUMBER (SUBSTR(f_gasdate, 1, 4)) AS YEAR, NVL (SUM(f_gasmun), 0) AS menzhan FROM t_supplygas WHERE TO_DATE (f_gasdate, 'yyyy-MM-dd hh24:mi:ss') >= " +
469
+ // "TO_DATE (\'" + this.param + "\', 'yyyy-MM-dd hh24:mi:ss') AND TO_DATE (f_gasdate, 'yyyy-MM-dd hh24:mi:ss') <= TO_DATE (\'" + this.param1 + "\', 'yyyy-MM-dd hh24:mi:ss') " +
470
+ // "GROUP BY TO_NUMBER (SUBSTR(f_gasdate, 1, 4))) l ON b. YEAR = l. YEAR LEFT JOIN (SELECT SUBSTR (f_startdate, 0, 4) AS YEAR, NVL (AVG(f_gasmun), 0) AS buysub FROM t_buysub " +
471
+ // "WHERE f_startdate >= \'" + this.param + "\' AND f_enddate <= \'" + this.param1 + "\' GROUP BY SUBSTR (f_startdate, 0, 4)) bs ON b. YEAR = bs. YEAR) M",
472
+ // condition:
473
+ // "1=1",
474
+ // orderitem: 'year asc'
475
+ // },
476
+ // // 长期未购气
477
+ // longnotbuygas: {
478
+ // items: 'count(f_userinfo_id) num,to_char(f_delivery_date,\'yyyy-mm\') dates',
479
+ // tablename: 'A_LONGNOTBUYGAS',
480
+ // condition:
481
+ // ' f_delivery_date>= TO_DATE (\'' + this.param + '\', \'yyyy-mm-dd hh24:mi:ss\') GROUP BY to_char(f_delivery_date,\'yyyy-mm\')',
482
+ // orderitem: 'dates'
483
+ // },
484
+ // //往期购气对比
485
+ // pastscale: {
486
+ // items: 'count(qq.r1) above,count(qq.r2) below',
487
+ // tablename:
488
+ // '(SELECT (case when pastscale>' + this.param1 + ' then f_userinfo_id end) r1,(case when pastscale<' + this.param2 + ' then f_userinfo_id end) r2 ' +
489
+ // ' FROM (A_BUYGASCHANGE) where F_DELIVERY_DATE>=to_date(\'' + this.param + '\',\'yyyy-mm-dd hh24:mi:ss\') and f_last_pregas!=0 ' +
490
+ // ')qq',
491
+ // condition:
492
+ // 'qq.r1 is not null or qq.r2 is not null',
493
+ // orderitem: '1'
494
+ // },
495
+ // //失联用户
496
+ // lossassociation: {
497
+ // items: 'count(f_userinfo_id) num,to_char(f_hand_date,\'yyyy-mm\') dates',
498
+ // tablename: 'a_lossassociation',
499
+ // condition: '1=1 group by to_char(f_hand_date,\'yyyy-mm\')',
500
+ // orderitem: 'dates'
501
+ // },
502
+ // //长期未用气
503
+ // longnotusegas: {
504
+ // items: 'count(distinct(f_userinfo_id)) num,to_char(f_hand_date,\'yyyy-mm\') dates',
505
+ // tablename: 'a_longnotusegas',
506
+ // condition: '1=1 group by to_char(f_hand_date,\'yyyy-mm\')',
507
+ // orderitem: 'dates'
508
+ // }
509
+ // }
510
+ // ,
511
+ // }
512
+ // // 返回sql条件
513
+ // return Sql[title][param]
514
+ // }
515
+
516
+
517
+ // 数据增加单位,data=待单位化的数据,函数返回为单位化的数据字符串
518
+ export function dataunit(data) {
519
+ var value = data
520
+
521
+ //去掉小数点
522
+ var index0 = value.toString().indexOf('.')
523
+ if (index0 != -1) {
524
+ value = value.toString().substring(0, index0)
525
+ }
526
+ // 对整数部分进行位数判定,因数据原因,暂取‘万’为单位
527
+ var result = ''
528
+ var index = value.toString().length
529
+ var t, s, l
530
+ var unit = ''
531
+
532
+ if (index > 4 && index < 9) {
533
+ t = value.toString().substring(0, index - 4)
534
+ s = value.toString().substring(index - 4, index - 3)
535
+ l = value.toString().substring(index - 3, index - 2)
536
+ unit = '万'
537
+ }
538
+ if (index > 8) {
539
+ t = value.toString().substring(0, index - 8)
540
+ s = value.toString().substring(index - 8, index - 7)
541
+ l = value.toString().substring(index - 7, index - 6)
542
+ unit = '亿'
543
+ }
544
+
545
+ if (index <= 4) {
546
+ return value
547
+ }
548
+ // 四舍五入
549
+ if (l > 4) {
550
+ s = eval(s + '+1')
551
+ }
552
+ // 产生进位
553
+ if (s > 9) {
554
+ s = 0
555
+ t = eval(t + '+1')
556
+ }
557
+ result = t + '.' + s + unit
558
+
559
+ return result
560
+ }
561
+
562
+ //数组进行单位化,self=this,param=待单位化数组数据的变量名,param1=接受单位化数组数据的变量名
563
+ export function dataunitarray(self, param, param1) {
564
+ let result = []
565
+ // 遍历数组
566
+ for (var i = 0; i < self[param].length; i++) {
567
+ var name = self[param][i].name
568
+ let res = {}
569
+ res.name = name
570
+ // 单位化数据
571
+ res.value = this.dataunit(self[param][i].value)
572
+ result.push(res)
573
+ }
574
+ self[param1] = result
575
+ }
576
+
577
+ //获取前day的时间
578
+ export function toBeforeDate(day) {
579
+ var dd = new Date();
580
+ dd.setDate(dd.getDate() - day);//获取前day天的日期
581
+ var y = dd.getFullYear();
582
+ var m = (dd.getMonth() + 1) < 10 ? "0" + (dd.getMonth() + 1) : (dd.getMonth() + 1);//获取当前月份的日期,不足10补0
583
+ var d = dd.getDate() < 10 ? "0" + dd.getDate() : dd.getDate();//获取当前几号,不足10补0
584
+ return y + "-" + m + "-" + d;
585
+ }