manage-client 3.2.49 → 3.2.53

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 (412) 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 +178 -174
  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/ManageHome.js +269 -269
  25. package/src/Staff/StaffCompileList.vue +334 -334
  26. package/src/Staff/StaffList.vue +161 -161
  27. package/src/Staff/StaffListManage.vue +49 -49
  28. package/src/Util.js +367 -367
  29. package/src/components/BasisEcharts/BarChart.vue +247 -247
  30. package/src/components/BasisEcharts/LineChart.vue +243 -243
  31. package/src/components/ManageHome/CustomerService/ContentmentStatistics.vue +135 -135
  32. package/src/components/ManageHome/CustomerService/ExcepCollect.vue +174 -174
  33. package/src/components/ManageHome/CustomerService/ReasonComplaint.vue +116 -116
  34. package/src/components/ManageHome/CustomerService/ReasonConsultation.vue +115 -115
  35. package/src/components/ManageHome/CustomerService/ServiceFix.vue +155 -155
  36. package/src/components/ManageHome/CustomerService/ServiceHome.vue +179 -179
  37. package/src/components/ManageHome/CustomerService/ServiceStatistics.vue +147 -147
  38. package/src/components/ManageHome/CustomerService/TrafficStatistics.vue +160 -160
  39. package/src/components/ManageHome/Drill/DrillData.vue +791 -791
  40. package/src/components/ManageHome/Drill/DrillList.vue +320 -320
  41. package/src/components/ManageHome/Drill/DrillPool.vue +129 -129
  42. package/src/components/ManageHome/Home/CallCenter.vue +124 -124
  43. package/src/components/ManageHome/Home/CallFix.vue +172 -172
  44. package/src/components/ManageHome/Home/CallStatistics.vue +147 -147
  45. package/src/components/ManageHome/Home/GasValue.vue +233 -233
  46. package/src/components/ManageHome/Home/Home.vue +138 -138
  47. package/src/components/ManageHome/Home/Monitor.vue +329 -329
  48. package/src/components/ManageHome/Home/NetWork.vue +202 -202
  49. package/src/components/ManageHome/Home/SafeCheck.vue +249 -249
  50. package/src/components/ManageHome/Home/UserModule.vue +367 -367
  51. package/src/components/ManageHome/ImportSupplygas/AddSupply.vue +206 -206
  52. package/src/components/ManageHome/ImportSupplygas/SuppleManagement.vue +43 -43
  53. package/src/components/ManageHome/ImportSupplygas/SupplySelect.vue +85 -85
  54. package/src/components/ManageHome/ImportSupplygas/UpdateSupply.vue +187 -187
  55. package/src/components/ManageHome/ManageHome.vue +292 -292
  56. package/src/components/ManageHome/Monitor/BuySub.vue +311 -311
  57. package/src/components/ManageHome/Monitor/Caveat.vue +300 -300
  58. package/src/components/ManageHome/Monitor/ComparedGas.vue +264 -264
  59. package/src/components/ManageHome/Monitor/MeterBrand.vue +211 -211
  60. package/src/components/ManageHome/Monitor/MonitorCenter.vue +132 -132
  61. package/src/components/ManageHome/Monitor/MonitorHome.vue +188 -188
  62. package/src/components/ManageHome/Monitor/NoBuyGas.vue +223 -223
  63. package/src/components/ManageHome/Monitor/NoContact.vue +233 -233
  64. package/src/components/ManageHome/Monitor/NoGas.vue +202 -202
  65. package/src/components/ManageHome/NetWork/LineInspection.vue +267 -267
  66. package/src/components/ManageHome/NetWork/NetDanger.vue +258 -258
  67. package/src/components/ManageHome/NetWork/NetHome.vue +84 -84
  68. package/src/components/ManageHome/NetWork/SupplyGas.vue +204 -204
  69. package/src/components/ManageHome/SecurityCheck/CheckHome.vue +94 -94
  70. package/src/components/ManageHome/SecurityCheck/CustomerType.vue +244 -244
  71. package/src/components/ManageHome/SecurityCheck/LatentDanger.vue +218 -218
  72. package/src/components/ManageHome/SecurityCheck/PlanStatistics.vue +231 -231
  73. package/src/components/ManageHome/SecurityCheck/StateStatistics.vue +237 -237
  74. package/src/components/ManageHome/SecurityCheck/TaskStatistics.vue +303 -303
  75. package/src/components/ManageHome/User/GasDistri.vue +271 -271
  76. package/src/components/ManageHome/User/InspecDistri.vue +272 -272
  77. package/src/components/ManageHome/User/SaleProportion.vue +309 -309
  78. package/src/components/ManageHome/User/UseHome.vue +155 -155
  79. package/src/components/ManageHome/User/UserGascontrast.vue +223 -223
  80. package/src/components/ManageHome/User/UserNumber.vue +519 -519
  81. package/src/components/ManageHome/User/UsernumIncrease.vue +243 -243
  82. package/src/components/ManageHome/loading.vue +23 -23
  83. package/src/components/ManageHomeCS/Cockpit.vue +43 -43
  84. package/src/components/ManageHomeCS/CustomerService/ContentmentStatistics.vue +161 -161
  85. package/src/components/ManageHomeCS/CustomerService/ExcepCollect.vue +201 -201
  86. package/src/components/ManageHomeCS/CustomerService/ReasonComplaint.vue +146 -146
  87. package/src/components/ManageHomeCS/CustomerService/ReasonConsultation.vue +148 -148
  88. package/src/components/ManageHomeCS/CustomerService/ServiceFix.vue +242 -242
  89. package/src/components/ManageHomeCS/CustomerService/ServiceHome.vue +176 -176
  90. package/src/components/ManageHomeCS/CustomerService/ServiceStatistics.vue +277 -277
  91. package/src/components/ManageHomeCS/CustomerService/TrafficStatistics.vue +226 -226
  92. package/src/components/ManageHomeCS/Drill/DrillData.vue +918 -918
  93. package/src/components/ManageHomeCS/Drill/DrillList.vue +320 -320
  94. package/src/components/ManageHomeCS/Drill/DrillPool.vue +129 -129
  95. package/src/components/ManageHomeCS/Home/CallCenter.vue +206 -206
  96. package/src/components/ManageHomeCS/Home/CallFix.vue +172 -172
  97. package/src/components/ManageHomeCS/Home/CallStatistics.vue +147 -147
  98. package/src/components/ManageHomeCS/Home/GasValue.vue +466 -466
  99. package/src/components/ManageHomeCS/Home/Home.vue +57 -57
  100. package/src/components/ManageHomeCS/Home/Monitor.vue +423 -423
  101. package/src/components/ManageHomeCS/Home/NetWork.vue +223 -223
  102. package/src/components/ManageHomeCS/Home/SafeCheck.vue +446 -446
  103. package/src/components/ManageHomeCS/Home/ShanxiMap.vue +432 -432
  104. package/src/components/ManageHomeCS/Home/UserModule.vue +511 -511
  105. package/src/components/ManageHomeCS/Home/YulinMap.vue +424 -424
  106. package/src/components/ManageHomeCS/ImportSupplygas/AddSupply.vue +206 -206
  107. package/src/components/ManageHomeCS/ImportSupplygas/SuppleManagement.vue +43 -43
  108. package/src/components/ManageHomeCS/ImportSupplygas/SupplySelect.vue +85 -85
  109. package/src/components/ManageHomeCS/ImportSupplygas/UpdateSupply.vue +187 -187
  110. package/src/components/ManageHomeCS/Monitor/BuySub.vue +339 -339
  111. package/src/components/ManageHomeCS/Monitor/Caveat.vue +301 -301
  112. package/src/components/ManageHomeCS/Monitor/ComparedGas.vue +276 -276
  113. package/src/components/ManageHomeCS/Monitor/MeterBrand.vue +220 -220
  114. package/src/components/ManageHomeCS/Monitor/MonitorCenter.vue +139 -139
  115. package/src/components/ManageHomeCS/Monitor/MonitorHome.vue +188 -188
  116. package/src/components/ManageHomeCS/Monitor/NoBuyGas.vue +218 -218
  117. package/src/components/ManageHomeCS/Monitor/NoContact.vue +217 -217
  118. package/src/components/ManageHomeCS/Monitor/NoGas.vue +214 -214
  119. package/src/components/ManageHomeCS/NetWork/LineInspection.vue +268 -268
  120. package/src/components/ManageHomeCS/NetWork/NetDanger.vue +258 -258
  121. package/src/components/ManageHomeCS/NetWork/NetHome.vue +106 -106
  122. package/src/components/ManageHomeCS/NetWork/NetWork.vue +222 -222
  123. package/src/components/ManageHomeCS/NetWork/NetWorkMap.vue +86 -86
  124. package/src/components/ManageHomeCS/NetWork/SupplyGas.vue +291 -291
  125. package/src/components/ManageHomeCS/NewHome/GasProperties.vue +314 -314
  126. package/src/components/ManageHomeCS/NewHome/NewManageHome.vue +182 -182
  127. package/src/components/ManageHomeCS/NewHome/TextBusiness.vue +267 -267
  128. package/src/components/ManageHomeCS/NewHome/TextChildsellgas.vue +209 -209
  129. package/src/components/ManageHomeCS/NewHome/TextProfit.vue +298 -298
  130. package/src/components/ManageHomeCS/NewHome/TextSellgas.vue +82 -82
  131. package/src/components/ManageHomeCS/NewHome/TextShanximap.vue +389 -389
  132. package/src/components/ManageHomeCS/NewHome/TextTotalsellgas.vue +406 -406
  133. package/src/components/ManageHomeCS/NewHome/TextUser.vue +378 -378
  134. package/src/components/ManageHomeCS/NewHome/yulin.vue +425 -425
  135. package/src/components/ManageHomeCS/Poor/PoorHome.vue +176 -176
  136. package/src/components/ManageHomeCS/SecurityCheck/CheckHome.vue +94 -94
  137. package/src/components/ManageHomeCS/SecurityCheck/CustomerType.vue +246 -246
  138. package/src/components/ManageHomeCS/SecurityCheck/LatentDanger.vue +220 -220
  139. package/src/components/ManageHomeCS/SecurityCheck/PlanStatistics.vue +306 -306
  140. package/src/components/ManageHomeCS/SecurityCheck/StateStatistics.vue +239 -239
  141. package/src/components/ManageHomeCS/SecurityCheck/TaskStatistics.vue +311 -311
  142. package/src/components/ManageHomeCS/User/FMYInspecDistri.vue +269 -269
  143. package/src/components/ManageHomeCS/User/GasDistri.vue +220 -220
  144. package/src/components/ManageHomeCS/User/MYInspecDistri.vue +269 -269
  145. package/src/components/ManageHomeCS/User/SaleProportion.vue +384 -384
  146. package/src/components/ManageHomeCS/User/UseHome.vue +162 -162
  147. package/src/components/ManageHomeCS/User/UserGascontrast.vue +221 -221
  148. package/src/components/ManageHomeCS/User/UserNumber.vue +600 -600
  149. package/src/components/ManageHomeCS/User/UsernumIncrease.vue +277 -277
  150. package/src/components/ManageHomeCS/loading.vue +39 -39
  151. package/src/components/ManageHomeCS/test.vue +88 -88
  152. package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
  153. package/src/components/MeterManage/ChargeQuery.vue +79 -79
  154. package/src/components/MeterManage/FillCardQuery.vue +80 -80
  155. package/src/components/MeterManage/FillGasQuery.vue +80 -80
  156. package/src/components/MeterManage/HandQuery.vue +72 -72
  157. package/src/components/MeterManage/MeterInfoManage.vue +107 -107
  158. package/src/components/MeterManage/MeterList.vue +336 -336
  159. package/src/components/MeterManage/MeterMsg.vue +181 -181
  160. package/src/components/MeterManage/OtherChargeQuery.vue +78 -78
  161. package/src/components/MeterManage/ReversalQuery.vue +77 -77
  162. package/src/components/MeterManage/TransferQuery.vue +72 -72
  163. package/src/components/SellReport/BankManager.vue +146 -146
  164. package/src/components/SellReport/CaiManageDayGas.vue +280 -280
  165. package/src/components/SellReport/ChManageBusSummary.vue +273 -273
  166. package/src/components/SellReport/ChManageHandSellMoney.vue +274 -274
  167. package/src/components/SellReport/ChManageMonthGas.vue +285 -285
  168. package/src/components/SellReport/ChOtherfee.vue +251 -251
  169. package/src/components/SellReport/CollectFee.vue +184 -184
  170. package/src/components/SellReport/Contrast.vue +188 -188
  171. package/src/components/SellReport/DayStairMoney.vue +256 -256
  172. package/src/components/SellReport/FenxiangSell.vue +183 -183
  173. package/src/components/SellReport/FxGasTable.vue +220 -220
  174. package/src/components/SellReport/GasCollect.vue +174 -174
  175. package/src/components/SellReport/GaspriceHas.vue +141 -141
  176. package/src/components/SellReport/HandCollect.vue +189 -189
  177. package/src/components/SellReport/JinChengBusSummary.vue +182 -182
  178. package/src/components/SellReport/JinChengHandGas.vue +182 -182
  179. package/src/components/SellReport/JinChengOperSummary.vue +182 -182
  180. package/src/components/SellReport/JinChengSliceSumgas.vue +182 -182
  181. package/src/components/SellReport/ManageBusTable.vue +207 -207
  182. package/src/components/SellReport/ManageGasFee.vue +247 -247
  183. package/src/components/SellReport/ManageGasFeeOperator.vue +236 -236
  184. package/src/components/SellReport/ManageHandSellInputtor.vue +241 -241
  185. package/src/components/SellReport/ManageMonthGas.vue +249 -249
  186. package/src/components/SellReport/ManageNewGasPrice.vue +245 -245
  187. package/src/components/SellReport/ManageReceivable.vue +254 -254
  188. package/src/components/SellReport/ManageUserCollect.vue +183 -183
  189. package/src/components/SellReport/MeterBill.vue +185 -185
  190. package/src/components/SellReport/MeterGasMoney.vue +226 -226
  191. package/src/components/SellReport/MeterInput.vue +250 -250
  192. package/src/components/SellReport/MonthStairMoney.vue +256 -256
  193. package/src/components/SellReport/OweAging.vue +174 -174
  194. package/src/components/SellReport/ReportHistory.vue +80 -80
  195. package/src/components/SellReport/ReportPool.vue +60 -60
  196. package/src/components/SellReport/Selling.vue +188 -188
  197. package/src/components/SellReport/SiteManager.vue +147 -147
  198. package/src/components/SellReport/UserStateStatistics.vue +188 -188
  199. package/src/components/SellReport/UsertypePie.vue +101 -101
  200. package/src/components/SellReport/XianYangDate.vue +227 -227
  201. package/src/components/SellReport/XianYangOperator.vue +228 -228
  202. package/src/components/SellReport/XyDateCharge.vue +227 -227
  203. package/src/components/SellReport/XyOperatorCharge.vue +256 -256
  204. package/src/components/SellReport/YuShouTableTwo.vue +309 -309
  205. package/src/components/SellReport/jingwei/CardCharge.vue +142 -142
  206. package/src/components/SellReport/jingwei/MachineCharge.vue +141 -141
  207. package/src/components/SellReport/jingwei/PaymentNotice.vue +479 -479
  208. package/src/components/SellReport/jingwei/handplanReport.vue +280 -280
  209. package/src/components/SellReport/jingwei/widegt/PaymentNoticePrint.vue +198 -198
  210. package/src/components/SellReport/jingwei/widegt/handplanPrint.vue +143 -143
  211. package/src/components/SellReport/pengan/ManageBusSummaryPeng.vue +241 -241
  212. package/src/components/WebReport/AbnormalInfo.vue +197 -197
  213. package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
  214. package/src/components/WebReport/BatteryLow.vue +148 -148
  215. package/src/components/WebReport/BusinessHall.vue +85 -85
  216. package/src/components/WebReport/BussinessType.vue +137 -137
  217. package/src/components/WebReport/Communication.vue +131 -131
  218. package/src/components/WebReport/CompanyUser.vue +79 -79
  219. package/src/components/WebReport/EchartsBox.vue +110 -110
  220. package/src/components/WebReport/ElectroMagnetic.vue +142 -142
  221. package/src/components/WebReport/GaspriceHas.vue +141 -141
  222. package/src/components/WebReport/HandplanPrint.vue +167 -167
  223. package/src/components/WebReport/NotUpload.vue +165 -165
  224. package/src/components/WebReport/OweQuery.vue +169 -169
  225. package/src/components/WebReport/PaymentDistributed.vue +176 -176
  226. package/src/components/WebReport/Paymentpie.vue +157 -157
  227. package/src/components/WebReport/ReportWorklist.vue +220 -220
  228. package/src/components/WebReport/SellType.vue +89 -89
  229. package/src/components/WebReport/Telemanlist.vue +221 -221
  230. package/src/components/WebReport/UserGasAll.vue +214 -214
  231. package/src/components/WebReport/UserGasEcharts.vue +107 -107
  232. package/src/components/WebReport/UsertypePie.vue +105 -105
  233. package/src/components/WebReport/ValueEcharts.vue +99 -99
  234. package/src/components/WebReport/ValueInfo.vue +194 -194
  235. package/src/components/qinhua/BarChartLine.vue +288 -288
  236. package/src/components/qinhua/ManageMain.vue +162 -162
  237. package/src/components/qinhua/Ring.vue +165 -165
  238. package/src/components/qinhua/SafeCheckRing.vue +149 -149
  239. package/src/components/qinhua/SafecheckBarChart.vue +209 -209
  240. package/src/components/qinhua/Scada.vue +93 -93
  241. package/src/components/safecheck/analysis/SafeHiddenAnaly.vue +932 -932
  242. package/src/components/safecheck/planCheck/chanceSituation.vue +149 -149
  243. package/src/components/safecheck/planCheck/checkFamily.vue +217 -217
  244. package/src/components/safecheck/planCheck/hidderDanger.vue +179 -179
  245. package/src/components/safecheck/planCheck/inFamily.vue +185 -185
  246. package/src/components/sale/businessquery/AccountQuery/TransactionSummary.vue +373 -373
  247. package/src/components/sale/businessquery/BalanceQuery.vue +456 -456
  248. package/src/components/sale/businessquery/ChangeMeterQuery.vue +645 -644
  249. package/src/components/sale/businessquery/InspectManage.vue +47 -47
  250. package/src/components/sale/businessquery/NewAccountQuery.vue +409 -409
  251. package/src/components/sale/businessquery/OtherChargeDetailQuery.vue +74 -74
  252. package/src/components/sale/businessquery/ResourceOperatingQuery.vue +317 -317
  253. package/src/components/sale/businessquery/TongjiManage.vue +74 -74
  254. package/src/components/sale/businessquery/UserTongjiQuery.vue +358 -358
  255. package/src/components/sale/businessquery/YearGasQuery.vue +422 -422
  256. package/src/components/sale/businessquery/analysisquery/AnalysisManage.vue +65 -65
  257. package/src/components/sale/businessquery/gasPriceQuery.vue +340 -372
  258. package/src/components/sale/businessquery/weChatBind.vue +361 -361
  259. package/src/components/sale/common/PrintData.vue +171 -171
  260. package/src/components/sale/common/PrintDataSelf.vue +225 -225
  261. package/src/components/sale/common/PrintTable.vue +228 -228
  262. package/src/components/sale/common/PrintTableSelf.vue +251 -251
  263. package/src/components/sale/common/TabButton.vue +155 -155
  264. package/src/components/sale/common/Tabs.vue +67 -67
  265. package/src/components/sale/common/handplanUser.vue +112 -112
  266. package/src/components/sale/config/DefaultPrint.js +6 -6
  267. package/src/components/sale/filesquery/detail/UserBaseInfo.vue +69 -69
  268. package/src/components/sale/filesquery/detail/UserDetail.vue +41 -41
  269. package/src/components/sale/filesquery/detail/UserOperInfo.vue +76 -76
  270. package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
  271. package/src/components/sale/filesquery/detail/oper/ExchangeOper.vue +66 -66
  272. package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
  273. package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
  274. package/src/components/sale/filesquery/detail/oper/OtherCharge.vue +54 -54
  275. package/src/components/sale/filesquery/detail/oper/ReplaceCard.vue +51 -51
  276. package/src/components/sale/filesquery/detail/oper/SellOper.vue +56 -56
  277. package/src/components/sale/filesquery/detail/oper/TransferMessage.vue +55 -55
  278. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  279. package/src/components/sale/filesquery/filequerydetail/ChangeMeterQueryDetail.vue +246 -246
  280. package/src/components/sale/filesquery/filequerydetail/ChargeQueryDetail.vue +239 -239
  281. package/src/components/sale/filesquery/filequerydetail/DeviceQueryDetail.vue +126 -126
  282. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  283. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  284. package/src/components/sale/filesquery/filequerydetail/FillCardQueryDetail.vue +80 -80
  285. package/src/components/sale/filesquery/filequerydetail/FillGasQueryDetail.vue +80 -80
  286. package/src/components/sale/filesquery/filequerydetail/HandQueryDetail.vue +302 -302
  287. package/src/components/sale/filesquery/filequerydetail/MeterQueryDetail.vue +158 -158
  288. package/src/components/sale/filesquery/filequerydetail/OtherChargeQueryDetail.vue +198 -198
  289. package/src/components/sale/filesquery/filequerydetail/RecordQueryDetail.vue +125 -125
  290. package/src/components/sale/filesquery/filequerydetail/SellingHandDetail.vue +280 -280
  291. package/src/components/sale/filesquery/filequerydetail/TransferQueryDetail.vue +160 -160
  292. package/src/components/sale/filesquery/filequerydetail/UserQueryDetail.vue +155 -155
  293. package/src/components/sale/report/aode/DayReport.vue +50 -50
  294. package/src/components/sale/report/aode/DayReportSummary.vue +75 -75
  295. package/src/components/sale/report/aode/MonthByChargeType.vue +446 -446
  296. package/src/components/sale/report/aode/MonthByUserType.vue +413 -413
  297. package/src/components/sale/report/aode/YearByChargeTpye.vue +215 -215
  298. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  299. package/src/components/sale/report/aode/life/LifeDayReport.vue +50 -50
  300. package/src/components/sale/report/aode/life/LifeDayReportList.vue +241 -241
  301. package/src/components/sale/report/aode/life/LifeDayReportSummary.vue +49 -49
  302. package/src/components/sale/report/aode/life/LifeMonthReport.vue +303 -303
  303. package/src/components/sale/report/aode/life/LifeYearReport.vue +175 -175
  304. package/src/components/sale/report/aode/widget/LifeDayReportListPrint.vue +189 -189
  305. package/src/components/sale/report/aode/widget/LifeMonthPrint.vue +153 -153
  306. package/src/components/sale/report/aode/widget/LifeYearPrint.vue +143 -143
  307. package/src/components/sale/report/aode/widget/MonthByChargePrint.vue +236 -236
  308. package/src/components/sale/report/aode/widget/MonthByUserPrint.vue +232 -232
  309. package/src/components/sale/report/aode/widget/YearByChargePrint.vue +203 -203
  310. package/src/components/sale/report/aode/widget/YearByUserPrint.vue +225 -225
  311. package/src/components/scada/CaculateGasConsumputionByDay/CaculateGasConsumputionByDay.vue +290 -290
  312. package/src/components/scada/ChartDisplay/ChartDisplayManage.vue +55 -55
  313. package/src/components/scada/ChartDisplay/ChartThreeDayContrast.vue +164 -164
  314. package/src/components/scada/CumulativeFlow/CumulativeFlowHeatPlant.vue +400 -400
  315. package/src/components/scada/CumulativeFlow/CumulativeFlowManage.vue +59 -59
  316. package/src/components/scada/CumulativeFlow/CumulativeFlowRegulatorStation.vue +504 -504
  317. package/src/components/scada/CumulativeFlow/CumulativeFlowStation.vue +248 -248
  318. package/src/components/scada/GasSupplyRunning/GasSupplyRunningByDay.vue +297 -297
  319. package/src/components/scada/InstantaneousFlow/InstantaneousFlowHeatPlant.vue +389 -389
  320. package/src/components/scada/InstantaneousFlow/InstantaneousFlowManage.vue +57 -57
  321. package/src/components/scada/InstantaneousFlow/InstantaneousFlowRegulatorStation.vue +503 -503
  322. package/src/components/scada/InstantaneousFlow/InstantaneousFlowStation.vue +244 -244
  323. package/src/components/scada/OnTimePressure/OnTimePressureHeatPlant.vue +356 -356
  324. package/src/components/scada/OnTimePressure/OnTimePressureManage.vue +51 -51
  325. package/src/components/scada/OnTimePressure/OnTimePressureRegulatorStation.vue +526 -526
  326. package/src/components/scada/ThreeDayContrast/ThreeDayContrastManage.vue +282 -282
  327. package/src/components/webmeter/DrillData/LargeScreenAnalysisEcharts.vue +710 -710
  328. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  329. package/src/components/webmeter/DrillData/LostContactAnalysisManage.vue +30 -30
  330. package/src/components/webmeter/DrillData/LostContactEform.vue +190 -190
  331. package/src/components/webmeter/dataCollection/DataCollection.vue +676 -676
  332. package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
  333. package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
  334. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  335. package/src/components/webmeter/handplan/NewWebmeterHandPlanMain.vue +59 -59
  336. package/src/components/webmeter/indicatorStatisticsEchars.vue +204 -204
  337. package/src/components/webmeter/indicatorStatisticsMain.vue +257 -257
  338. package/src/components/webmeter/instruction/NewQueryInstruct.vue +440 -443
  339. package/src/components/webmeter/meterinfo/NewMeterList.vue +414 -414
  340. package/src/components/webmeter/meterinfo/NewMeterListMain.vue +53 -53
  341. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
  342. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEformTotal.vue +211 -211
  343. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  344. package/src/components/yulin/GuanWang.vue +24 -24
  345. package/src/components/yulin/SingleBarLine.vue +352 -352
  346. package/src/components/yulin/Weather.vue +157 -157
  347. package/src/expandcss.less +26 -26
  348. package/src/filiale/WEINAN/InspectListUser.vue +492 -492
  349. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  350. package/src/filiale/aode/ArchivesManage.vue +38 -38
  351. package/src/filiale/aode/BusinessManage.vue +94 -94
  352. package/src/filiale/aode/DefaultPrint.js +6 -6
  353. package/src/filiale/aode/HandplanQuery.vue +632 -632
  354. package/src/filiale/aode/Tabs.vue +67 -67
  355. package/src/filiale/aode/UserQuery.vue +599 -599
  356. package/src/filiale/aode/sale.js +17 -17
  357. package/src/filiale/ceshi/ArrearsQuery.vue +642 -642
  358. package/src/filiale/ceshi/ChManageBusSummary.vue +293 -293
  359. package/src/filiale/ceshi/CollectManage.vue +94 -94
  360. package/src/filiale/ceshi/MeterRateQuery.vue +633 -633
  361. package/src/filiale/ceshi/TabButton.vue +149 -149
  362. package/src/filiale/ceshi/Tabs.vue +69 -69
  363. package/src/filiale/ceshi/reportManage.js +5 -5
  364. package/src/filiale/ceshi/sale.js +11 -11
  365. package/src/filiale/gaomi/config/DefaultPrint.js +6 -6
  366. package/src/filiale/gaomi/config/tableConfig.js +47 -47
  367. package/src/filiale/gongyi/sale/businessquery/exportConfig.js +17 -17
  368. package/src/filiale/gongyi/sale/filesquery/MeterQuery.vue +718 -718
  369. package/src/filiale/liaoyuan/sale.js +11 -11
  370. package/src/filiale/macheng/config/DefaultPrint.js +12 -12
  371. package/src/filiale/qingtongxia/config/DefaultPrint.js +6 -6
  372. package/src/filiale/qingtongxia/sale.js +13 -13
  373. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  374. package/src/filiale/shaoguan/OtherChargeDetailQuery.vue +74 -74
  375. package/src/filiale/shaoguan/config/DefaultPrint.js +6 -6
  376. package/src/filiale/shaoguan/config/exportConfig.js +11 -0
  377. package/src/filiale/shaoguan/errorHandplanQuery.vue +385 -366
  378. package/src/filiale/shennongjia/config/DefaultPrint.js +6 -6
  379. package/src/filiale/shennongjia/config/tableConfig.js +47 -47
  380. package/src/filiale/shennongjia/sale.js +10 -10
  381. package/src/main.js +66 -66
  382. package/src/plugins/GetLoginInfoService.js +505 -505
  383. package/src/plugins/LodopFuncs.js +124 -124
  384. package/src/plugins/getAllInputtor.js +29 -29
  385. package/src/safeCheck.js +63 -63
  386. package/src/stores/AppData.js +62 -62
  387. package/src/stores/DataSql.js +585 -585
  388. package/src/stores/DrillECharts.js +602 -602
  389. package/src/stores/DrillSql.js +888 -888
  390. package/src/stores/GetParames.js +15 -15
  391. package/src/stores/MagGetSaleParams.js +156 -156
  392. package/src/stores/MagLoadParams.js +63 -63
  393. package/src/stores/Util.js +132 -132
  394. package/src/stores/shanxi1.js +26 -26
  395. package/src/stores/yulin.js +27 -27
  396. package/static/china.json +1 -1
  397. package/static/qh.json +2410 -2410
  398. package/static/res.json +58411 -58411
  399. package/static/shanxi1.json +1 -1
  400. package/static/yulin.json +1 -1
  401. package/static//345/261/261/344/270/234/347/234/201.json +1 -1
  402. package/test/unit/.eslintrc +5 -5
  403. package/test/unit/TestUtil.js +35 -35
  404. package/test/unit/context.html +20 -20
  405. package/test/unit/index.js +13 -13
  406. package/test/unit/init.js +11 -11
  407. package/test/unit/karma.conf.js +45 -45
  408. package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
  409. package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
  410. package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
  411. package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
  412. package/webstorm.config.js +13 -13
@@ -1,406 +1,406 @@
1
- <template>
2
- <div>
3
- <span class="title-1" >总公司销售趋势</span>
4
- <div class="text-1">
5
- <div id="texttotalsellgas" style="text-align: left"></div>
6
- </div>
7
- <img class="img-bottom" src="/static/NewManageHome/1.gif" />
8
- </div>
9
- </template>
10
-
11
- <script>
12
- import * as Util from '../../../Util'
13
- import * as DataSql from '../../../stores/DataSql'
14
- import co from 'co'
15
-
16
- export default {
17
- name: "TextTotalsellgas",
18
- props: {
19
- listenheight: String,
20
- },
21
- data() {
22
- return {
23
- xc: '',
24
- newyeardata: [],
25
- oldyeardata: [],
26
- year: '',
27
- usertag3: false,
28
- resdata: [],
29
- resdataold: [],
30
- timer:'',
31
- }
32
- },
33
- beforeDestroy() {
34
- //清除定时器
35
- clearInterval(this.timer);
36
- },
37
- methods: {
38
- setBar() {
39
-
40
- this.xc = this.$echarts.init(document.getElementById('texttotalsellgas'))
41
- var scale=this.$parent.$parent.scale
42
- var xAxisData = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12',''];
43
-
44
- var legendData = ["" + eval(this.year + '-0'), "" + eval(this.year + '-1')];
45
- var serieData = [];
46
- var metaDate = [];
47
- let data0 = []
48
- let data1 = []
49
- // for(var i=this.newyeardata.length-1;i>-1;i--){
50
- // data0.push(this.newyeardata[i].value)
51
- // data1.push(this.oldyeardata[i].value)
52
- // }
53
- for (var i = 0; i < 12; i++) {
54
- var l = false
55
- for (var j = 0; j < this.newyeardata.length; j++) {
56
- if (xAxisData[i] == this.newyeardata[j].name) {
57
- l = true
58
- data0.push(this.newyeardata[j].value)
59
- break
60
- }
61
- }
62
- if (!l) {
63
- data0.push(1)
64
- }
65
- }
66
- for (var i = 0; i < 12; i++) {
67
- var l = false
68
- for (var j = 0; j < this.oldyeardata.length; j++) {
69
- if (xAxisData[i] == this.oldyeardata[j].name) {
70
- l = true
71
- data1.push(this.oldyeardata[j].value)
72
- break
73
- }
74
- }
75
- if (!l) {
76
- data1.push(0)
77
- }
78
- }
79
- // data0.push(this.newyeardata)
80
- // data1.push(this.oldyeardata)
81
- let datascale=[]
82
- var i=0
83
- data0.forEach(function (s) {
84
- if(s!=0&&data1[i]!=0){
85
- var v=(s/data1[i]).toFixed(3)*100
86
- datascale.push(v)
87
- }else {
88
- datascale.push(0)
89
- }
90
- i++
91
- })
92
-
93
- metaDate.push(data0)
94
- metaDate.push(data1)
95
- var colors=['#6fd9d0','#f29961']
96
- for (var v = 0; v < legendData.length; v++) {
97
- var serie = {
98
- name: legendData[v],
99
- type: 'bar',
100
- barWidth: '30%',
101
- itemStyle: {
102
- barBorderRadius: [16,16,0,0],
103
- color:colors[v],
104
- },
105
- // emphasis:{
106
- // itemStyle:{
107
- // color:'#ffff2c'
108
- // }
109
- // },
110
- z:2,
111
- data: metaDate[v]
112
- }
113
- serieData.push(serie)
114
- }
115
- var serie1 = {
116
- name: '占比',
117
- type: 'line',
118
- symbol: "circle",
119
- yAxisIndex: 1,
120
- symbolSize: 5 ,
121
- itemStyle: {
122
- normal: {
123
- lineStyle: {
124
- width: 1,
125
- shadowBlur: 10 ,
126
- shadowOffsetY: 15 ,
127
- }
128
- }
129
- },
130
- data: datascale
131
- }
132
-
133
- serieData.push(serie1)
134
- legendData.push('占比')
135
- var colors = ["#f7cb32", "#6fd9d0"];
136
- var xname = ' 月份\n(' + eval(this.year + '-1') + '-' + eval(this.year + '-0') + ')'
137
- this.xc.setOption({
138
- title: {
139
- text: '',
140
- textAlign: 'left',
141
- textStyle: {color: "#FFFFFF", fontSize: 12 , fontWeight: "normal"}
142
- },
143
- legend: {
144
- itemGap: 20,
145
- width: '90%',
146
- show: true,
147
- // left: "right",
148
- right:'4%',
149
- data: legendData,
150
- y: '0',
151
- // padding: [0, 25, 0, 0],
152
- // padding: [0, 25*scale, 0, 0],
153
- itemWidth: 20 ,
154
- itemHeight: 10 ,
155
- textStyle: {
156
- padding:[0,10,0,0],
157
- fontSize: 14 ,
158
- color: '#95bad7' // 图例文字颜色
159
- },
160
- formatter: function (params) {
161
- if(params=='占比'){
162
- return params
163
- }
164
- return params + "年"
165
- }
166
- },
167
- color: colors,
168
- grid: {left: '5%', top: "24%", right: "5%", width: '88%', height: '70%', containLabel: true},
169
- tooltip: {
170
- textStyle:{
171
- fontSize:16
172
- },
173
- alwaysShowContent:true,
174
- position: function(point, params, dom, rect, size) {
175
- //其中point为当前鼠标的位置,size中有两个属性:viewSize和contentSize,分别为外层div和tooltip提示框的大小
176
- var x = point[0]; //
177
- var y = point[1];
178
- var viewWidth = size.viewSize[0];
179
- var viewHeight = size.viewSize[1];
180
- var boxWidth = size.contentSize[0];
181
- var boxHeight = size.contentSize[1];
182
- var posX = 0; //x坐标位置
183
- var posY = 0; //y坐标位置
184
- if (x < boxWidth) { //左边放不开
185
- posX = 5;
186
- } else { //左边放的下
187
- posX = x - boxWidth;
188
- }
189
-
190
- if (y < boxHeight) { //上边放不开
191
- posY = 5;
192
- } else { //上边放得下
193
- posY = y - boxHeight;
194
- }
195
- return [posX, posY];
196
- },
197
- formatter: function (params) {
198
- if (params[0].axisValue == '') {
199
- return ''
200
- }
201
- var result = ''
202
- params.forEach(function (item) {
203
- var s = item.value
204
- // console.log('valueresult---------------------------------')
205
-
206
- var sary = s.toString().split('.')
207
- // console.log(sary)
208
- var l = 3
209
- for (var i = sary[0].toString().length - 1; i > -1; i--) {
210
- if (sary[0].toString().length - i == l) {
211
- if (i == 0) {
212
- continue
213
- }
214
- sary[0] = sary[0].slice(0, i) + ',' + sary[0].slice(i, sary[0].toString().length)
215
- l = l + 4
216
- }
217
- }
218
- var valueresult = ''
219
- if (sary.length > 1) {
220
- valueresult = sary[0] + '.' + sary[1].substring(0,2)
221
- } else {
222
- valueresult = sary[0]
223
- }
224
- if(item.seriesName=='占比'){
225
- result +="<span style='font-weight: normal'>"+ item.marker + " 占&nbsp;&nbsp;&nbsp;&nbsp;比 &nbsp;&nbsp;&nbsp;<span style=\"color:#e1e52a;font-weight: bolder\">" + Math.floor(valueresult * 100) / 100 + "</span></span></br>";
226
- }else {
227
- result +="<span style=\"text-align: left;font-weight: normal\">"+ item.marker + " " + item.seriesName + "年 &nbsp;&nbsp; <span style=\"color:#e1e52a;font-weight: bolder\">" + valueresult.toString() + "</span></span></br>";
228
- }
229
- });
230
- return "<div style='text-align: center;height: 1px;font-weight: normal'>"+params[0].axisValue + '月份</div><br/>' + result
231
- },
232
- backgroundColor:'#01396d',
233
- // borderColor :'rgba(13, 109, 180)',
234
- borderWidth:0,
235
- hideDelay:100,
236
- triggerOn:'mousemove',
237
- enterable:true,
238
- padding:10,
239
- trigger: 'axis',
240
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
241
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
242
- },
243
- extraCssText: 'width: auto;height: auto;',
244
- },
245
- xAxis: [
246
- {
247
- name: '月份',
248
- type: 'category',
249
- boundaryGap: true,
250
- nameTextStyle: {
251
- fontSize: 12 ,
252
- color: '#15dce2',
253
- padding: [38, 0, 0, -20],
254
- },
255
- axisLine: {show: true, lineStyle: {color: '#04669e', width: 1}},
256
- axisLabel: {interval: 0, textStyle: {color: '#95bad7', fontSize: 14 }},
257
- axisTick: {show: false},
258
- data: xAxisData,
259
- },
260
- ],
261
- yAxis: [
262
- {
263
- name: '金额/元',
264
- nameTextStyle: {
265
- color:'#15dce2',
266
- fontSize: 14 ,
267
- padding: [0, 35 , 0, 0],
268
- },
269
- axisTick: {show: false},
270
- axisLine: {show: true, lineStyle: {color: '#08738e', fontSize: 14 }},
271
- splitLine: {show: true, lineStyle: {type: 'dashed', color: '#004371'}},
272
- axisLabel: {
273
- textStyle: {color: '#95bad7', fontSize: 14 * scale}, formatter: function (params) {
274
- if (params > 9999) {
275
- return params / 10000 + "万"
276
- }
277
- // else if(params>999){
278
- // return params/10000+"万"
279
- // }
280
- else
281
- return params
282
- }
283
- },
284
- },
285
- {
286
- name: '%',
287
- position: 'right',
288
- nameTextStyle: {
289
- color:'#15dce2',
290
- fontSize: 14 ,
291
- padding: [0, 0, 0, 0],
292
- },
293
- axisTick: {show: false},
294
- splitLine: {show: false, lineStyle: {type: 'dashed', color: '#004371'}},
295
- axisLine: {show: true, lineStyle: {color: '#08738e', fontSize: 14 }},
296
- axisLabel:{show:true,color:'#95bad7'}
297
- },
298
- ],
299
- series: serieData
300
- })
301
- let idx = -1;
302
- var dataLen=data1.length
303
- var oroptionmapjsonr_charts1=this.xc
304
- this.timer= setInterval(()=>{
305
- idx = (idx+ 1) % 12;
306
- oroptionmapjsonr_charts1.dispatchAction({
307
- type: 'showTip',
308
- seriesIndex: 1,
309
- dataIndex: idx
310
- });
311
-
312
- }, 3000)
313
- },
314
- linesql(year, resultname) {
315
- // 拼接sql,请求后台
316
- let sqldata = DataSql.getData(this, 'salegas',{startDate:year}, resultname)
317
- co(sqldata)
318
- },
319
- datapress(data, parm) {
320
- console.log(data, parm, '销售同比数据')
321
- var year = ''
322
- if (parm == 'newyeardata') {
323
- year = this.year
324
- }
325
- if (parm == 'oldyeardata') {
326
- year = eval(this.year + '-1')
327
- }
328
- var month = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']
329
- for (var i = 0; i < 12; i++) {
330
- let item = {}
331
- var l = 0
332
- for (var j = 0; j < data.length; j++) {
333
- if (year + '-' + month[i] == data[j].name) {
334
- l++
335
- item.name = month[i]
336
- item.value = data[j].value
337
- this[parm].push(item)
338
- }
339
- }
340
- if (l == 0) {
341
- item.name = month[i]
342
- item.value = 0
343
- this[parm].push(item)
344
- }
345
- }
346
- },
347
- resize() {
348
- // this.$parent.$parent.changeresize(this.xc)
349
- }
350
- },
351
- watch: {
352
- 'resdataold': {
353
- deep: true,
354
- handler(val) {
355
- this.datapress(this.resdataold, "oldyeardata")
356
- }
357
- },
358
- 'resdata': {
359
- deep: true,
360
- handler(val) {
361
- this.datapress(this.resdata, "newyeardata")
362
- }
363
- },
364
- // 监听用户数据并进行绘图
365
- 'newyeardata': {
366
- deep: true,
367
- handler(val) {
368
- if (this.newyeardata.length > 0 && this.oldyeardata.length > 0) {
369
- this.setBar()
370
- this.$parent.loaddata++
371
- }
372
- }
373
- },
374
- // 监听用户数据并进行绘图
375
- 'oldyeardata': {
376
- deep: true,
377
- handler(val) {
378
- if (this.newyeardata.length > 0 && this.oldyeardata.length > 0) {
379
- this.setBar()
380
- this.$parent.loaddata++
381
- }
382
- },
383
- immediate: true
384
- },
385
- //监听浏览器大小变化
386
- 'listenheight': {
387
- deep: true,
388
- handler(val) {
389
- if (this.listenheight !== '') {
390
- // this.$parent.$parent.changeresize(this.xc)
391
- }
392
- },
393
- }
394
- },
395
- ready() {
396
- // this.setBar()
397
- this.year = Util.toStandardDateString()
398
- this.year = this.year.toString().substring(0, 4)
399
- this.linesql(this.year, "resdata")
400
- this.linesql(eval(this.year + '-1'), "resdataold")
401
- }
402
- }
403
- </script>
404
-
405
- <style scoped>
406
- </style>
1
+ <template>
2
+ <div>
3
+ <span class="title-1" >总公司销售趋势</span>
4
+ <div class="text-1">
5
+ <div id="texttotalsellgas" style="text-align: left"></div>
6
+ </div>
7
+ <img class="img-bottom" src="/static/NewManageHome/1.gif" />
8
+ </div>
9
+ </template>
10
+
11
+ <script>
12
+ import * as Util from '../../../Util'
13
+ import * as DataSql from '../../../stores/DataSql'
14
+ import co from 'co'
15
+
16
+ export default {
17
+ name: "TextTotalsellgas",
18
+ props: {
19
+ listenheight: String,
20
+ },
21
+ data() {
22
+ return {
23
+ xc: '',
24
+ newyeardata: [],
25
+ oldyeardata: [],
26
+ year: '',
27
+ usertag3: false,
28
+ resdata: [],
29
+ resdataold: [],
30
+ timer:'',
31
+ }
32
+ },
33
+ beforeDestroy() {
34
+ //清除定时器
35
+ clearInterval(this.timer);
36
+ },
37
+ methods: {
38
+ setBar() {
39
+
40
+ this.xc = this.$echarts.init(document.getElementById('texttotalsellgas'))
41
+ var scale=this.$parent.$parent.scale
42
+ var xAxisData = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12',''];
43
+
44
+ var legendData = ["" + eval(this.year + '-0'), "" + eval(this.year + '-1')];
45
+ var serieData = [];
46
+ var metaDate = [];
47
+ let data0 = []
48
+ let data1 = []
49
+ // for(var i=this.newyeardata.length-1;i>-1;i--){
50
+ // data0.push(this.newyeardata[i].value)
51
+ // data1.push(this.oldyeardata[i].value)
52
+ // }
53
+ for (var i = 0; i < 12; i++) {
54
+ var l = false
55
+ for (var j = 0; j < this.newyeardata.length; j++) {
56
+ if (xAxisData[i] == this.newyeardata[j].name) {
57
+ l = true
58
+ data0.push(this.newyeardata[j].value)
59
+ break
60
+ }
61
+ }
62
+ if (!l) {
63
+ data0.push(1)
64
+ }
65
+ }
66
+ for (var i = 0; i < 12; i++) {
67
+ var l = false
68
+ for (var j = 0; j < this.oldyeardata.length; j++) {
69
+ if (xAxisData[i] == this.oldyeardata[j].name) {
70
+ l = true
71
+ data1.push(this.oldyeardata[j].value)
72
+ break
73
+ }
74
+ }
75
+ if (!l) {
76
+ data1.push(0)
77
+ }
78
+ }
79
+ // data0.push(this.newyeardata)
80
+ // data1.push(this.oldyeardata)
81
+ let datascale=[]
82
+ var i=0
83
+ data0.forEach(function (s) {
84
+ if(s!=0&&data1[i]!=0){
85
+ var v=(s/data1[i]).toFixed(3)*100
86
+ datascale.push(v)
87
+ }else {
88
+ datascale.push(0)
89
+ }
90
+ i++
91
+ })
92
+
93
+ metaDate.push(data0)
94
+ metaDate.push(data1)
95
+ var colors=['#6fd9d0','#f29961']
96
+ for (var v = 0; v < legendData.length; v++) {
97
+ var serie = {
98
+ name: legendData[v],
99
+ type: 'bar',
100
+ barWidth: '30%',
101
+ itemStyle: {
102
+ barBorderRadius: [16,16,0,0],
103
+ color:colors[v],
104
+ },
105
+ // emphasis:{
106
+ // itemStyle:{
107
+ // color:'#ffff2c'
108
+ // }
109
+ // },
110
+ z:2,
111
+ data: metaDate[v]
112
+ }
113
+ serieData.push(serie)
114
+ }
115
+ var serie1 = {
116
+ name: '占比',
117
+ type: 'line',
118
+ symbol: "circle",
119
+ yAxisIndex: 1,
120
+ symbolSize: 5 ,
121
+ itemStyle: {
122
+ normal: {
123
+ lineStyle: {
124
+ width: 1,
125
+ shadowBlur: 10 ,
126
+ shadowOffsetY: 15 ,
127
+ }
128
+ }
129
+ },
130
+ data: datascale
131
+ }
132
+
133
+ serieData.push(serie1)
134
+ legendData.push('占比')
135
+ var colors = ["#f7cb32", "#6fd9d0"];
136
+ var xname = ' 月份\n(' + eval(this.year + '-1') + '-' + eval(this.year + '-0') + ')'
137
+ this.xc.setOption({
138
+ title: {
139
+ text: '',
140
+ textAlign: 'left',
141
+ textStyle: {color: "#FFFFFF", fontSize: 12 , fontWeight: "normal"}
142
+ },
143
+ legend: {
144
+ itemGap: 20,
145
+ width: '90%',
146
+ show: true,
147
+ // left: "right",
148
+ right:'4%',
149
+ data: legendData,
150
+ y: '0',
151
+ // padding: [0, 25, 0, 0],
152
+ // padding: [0, 25*scale, 0, 0],
153
+ itemWidth: 20 ,
154
+ itemHeight: 10 ,
155
+ textStyle: {
156
+ padding:[0,10,0,0],
157
+ fontSize: 14 ,
158
+ color: '#95bad7' // 图例文字颜色
159
+ },
160
+ formatter: function (params) {
161
+ if(params=='占比'){
162
+ return params
163
+ }
164
+ return params + "年"
165
+ }
166
+ },
167
+ color: colors,
168
+ grid: {left: '5%', top: "24%", right: "5%", width: '88%', height: '70%', containLabel: true},
169
+ tooltip: {
170
+ textStyle:{
171
+ fontSize:16
172
+ },
173
+ alwaysShowContent:true,
174
+ position: function(point, params, dom, rect, size) {
175
+ //其中point为当前鼠标的位置,size中有两个属性:viewSize和contentSize,分别为外层div和tooltip提示框的大小
176
+ var x = point[0]; //
177
+ var y = point[1];
178
+ var viewWidth = size.viewSize[0];
179
+ var viewHeight = size.viewSize[1];
180
+ var boxWidth = size.contentSize[0];
181
+ var boxHeight = size.contentSize[1];
182
+ var posX = 0; //x坐标位置
183
+ var posY = 0; //y坐标位置
184
+ if (x < boxWidth) { //左边放不开
185
+ posX = 5;
186
+ } else { //左边放的下
187
+ posX = x - boxWidth;
188
+ }
189
+
190
+ if (y < boxHeight) { //上边放不开
191
+ posY = 5;
192
+ } else { //上边放得下
193
+ posY = y - boxHeight;
194
+ }
195
+ return [posX, posY];
196
+ },
197
+ formatter: function (params) {
198
+ if (params[0].axisValue == '') {
199
+ return ''
200
+ }
201
+ var result = ''
202
+ params.forEach(function (item) {
203
+ var s = item.value
204
+ // console.log('valueresult---------------------------------')
205
+
206
+ var sary = s.toString().split('.')
207
+ // console.log(sary)
208
+ var l = 3
209
+ for (var i = sary[0].toString().length - 1; i > -1; i--) {
210
+ if (sary[0].toString().length - i == l) {
211
+ if (i == 0) {
212
+ continue
213
+ }
214
+ sary[0] = sary[0].slice(0, i) + ',' + sary[0].slice(i, sary[0].toString().length)
215
+ l = l + 4
216
+ }
217
+ }
218
+ var valueresult = ''
219
+ if (sary.length > 1) {
220
+ valueresult = sary[0] + '.' + sary[1].substring(0,2)
221
+ } else {
222
+ valueresult = sary[0]
223
+ }
224
+ if(item.seriesName=='占比'){
225
+ result +="<span style='font-weight: normal'>"+ item.marker + " 占&nbsp;&nbsp;&nbsp;&nbsp;比 &nbsp;&nbsp;&nbsp;<span style=\"color:#e1e52a;font-weight: bolder\">" + Math.floor(valueresult * 100) / 100 + "</span></span></br>";
226
+ }else {
227
+ result +="<span style=\"text-align: left;font-weight: normal\">"+ item.marker + " " + item.seriesName + "年 &nbsp;&nbsp; <span style=\"color:#e1e52a;font-weight: bolder\">" + valueresult.toString() + "</span></span></br>";
228
+ }
229
+ });
230
+ return "<div style='text-align: center;height: 1px;font-weight: normal'>"+params[0].axisValue + '月份</div><br/>' + result
231
+ },
232
+ backgroundColor:'#01396d',
233
+ // borderColor :'rgba(13, 109, 180)',
234
+ borderWidth:0,
235
+ hideDelay:100,
236
+ triggerOn:'mousemove',
237
+ enterable:true,
238
+ padding:10,
239
+ trigger: 'axis',
240
+ axisPointer: { // 坐标轴指示器,坐标轴触发有效
241
+ type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
242
+ },
243
+ extraCssText: 'width: auto;height: auto;',
244
+ },
245
+ xAxis: [
246
+ {
247
+ name: '月份',
248
+ type: 'category',
249
+ boundaryGap: true,
250
+ nameTextStyle: {
251
+ fontSize: 12 ,
252
+ color: '#15dce2',
253
+ padding: [38, 0, 0, -20],
254
+ },
255
+ axisLine: {show: true, lineStyle: {color: '#04669e', width: 1}},
256
+ axisLabel: {interval: 0, textStyle: {color: '#95bad7', fontSize: 14 }},
257
+ axisTick: {show: false},
258
+ data: xAxisData,
259
+ },
260
+ ],
261
+ yAxis: [
262
+ {
263
+ name: '金额/元',
264
+ nameTextStyle: {
265
+ color:'#15dce2',
266
+ fontSize: 14 ,
267
+ padding: [0, 35 , 0, 0],
268
+ },
269
+ axisTick: {show: false},
270
+ axisLine: {show: true, lineStyle: {color: '#08738e', fontSize: 14 }},
271
+ splitLine: {show: true, lineStyle: {type: 'dashed', color: '#004371'}},
272
+ axisLabel: {
273
+ textStyle: {color: '#95bad7', fontSize: 14 * scale}, formatter: function (params) {
274
+ if (params > 9999) {
275
+ return params / 10000 + "万"
276
+ }
277
+ // else if(params>999){
278
+ // return params/10000+"万"
279
+ // }
280
+ else
281
+ return params
282
+ }
283
+ },
284
+ },
285
+ {
286
+ name: '%',
287
+ position: 'right',
288
+ nameTextStyle: {
289
+ color:'#15dce2',
290
+ fontSize: 14 ,
291
+ padding: [0, 0, 0, 0],
292
+ },
293
+ axisTick: {show: false},
294
+ splitLine: {show: false, lineStyle: {type: 'dashed', color: '#004371'}},
295
+ axisLine: {show: true, lineStyle: {color: '#08738e', fontSize: 14 }},
296
+ axisLabel:{show:true,color:'#95bad7'}
297
+ },
298
+ ],
299
+ series: serieData
300
+ })
301
+ let idx = -1;
302
+ var dataLen=data1.length
303
+ var oroptionmapjsonr_charts1=this.xc
304
+ this.timer= setInterval(()=>{
305
+ idx = (idx+ 1) % 12;
306
+ oroptionmapjsonr_charts1.dispatchAction({
307
+ type: 'showTip',
308
+ seriesIndex: 1,
309
+ dataIndex: idx
310
+ });
311
+
312
+ }, 3000)
313
+ },
314
+ linesql(year, resultname) {
315
+ // 拼接sql,请求后台
316
+ let sqldata = DataSql.getData(this, 'salegas',{startDate:year}, resultname)
317
+ co(sqldata)
318
+ },
319
+ datapress(data, parm) {
320
+ console.log(data, parm, '销售同比数据')
321
+ var year = ''
322
+ if (parm == 'newyeardata') {
323
+ year = this.year
324
+ }
325
+ if (parm == 'oldyeardata') {
326
+ year = eval(this.year + '-1')
327
+ }
328
+ var month = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']
329
+ for (var i = 0; i < 12; i++) {
330
+ let item = {}
331
+ var l = 0
332
+ for (var j = 0; j < data.length; j++) {
333
+ if (year + '-' + month[i] == data[j].name) {
334
+ l++
335
+ item.name = month[i]
336
+ item.value = data[j].value
337
+ this[parm].push(item)
338
+ }
339
+ }
340
+ if (l == 0) {
341
+ item.name = month[i]
342
+ item.value = 0
343
+ this[parm].push(item)
344
+ }
345
+ }
346
+ },
347
+ resize() {
348
+ // this.$parent.$parent.changeresize(this.xc)
349
+ }
350
+ },
351
+ watch: {
352
+ 'resdataold': {
353
+ deep: true,
354
+ handler(val) {
355
+ this.datapress(this.resdataold, "oldyeardata")
356
+ }
357
+ },
358
+ 'resdata': {
359
+ deep: true,
360
+ handler(val) {
361
+ this.datapress(this.resdata, "newyeardata")
362
+ }
363
+ },
364
+ // 监听用户数据并进行绘图
365
+ 'newyeardata': {
366
+ deep: true,
367
+ handler(val) {
368
+ if (this.newyeardata.length > 0 && this.oldyeardata.length > 0) {
369
+ this.setBar()
370
+ this.$parent.loaddata++
371
+ }
372
+ }
373
+ },
374
+ // 监听用户数据并进行绘图
375
+ 'oldyeardata': {
376
+ deep: true,
377
+ handler(val) {
378
+ if (this.newyeardata.length > 0 && this.oldyeardata.length > 0) {
379
+ this.setBar()
380
+ this.$parent.loaddata++
381
+ }
382
+ },
383
+ immediate: true
384
+ },
385
+ //监听浏览器大小变化
386
+ 'listenheight': {
387
+ deep: true,
388
+ handler(val) {
389
+ if (this.listenheight !== '') {
390
+ // this.$parent.$parent.changeresize(this.xc)
391
+ }
392
+ },
393
+ }
394
+ },
395
+ ready() {
396
+ // this.setBar()
397
+ this.year = Util.toStandardDateString()
398
+ this.year = this.year.toString().substring(0, 4)
399
+ this.linesql(this.year, "resdata")
400
+ this.linesql(eval(this.year + '-1'), "resdataold")
401
+ }
402
+ }
403
+ </script>
404
+
405
+ <style scoped>
406
+ </style>