manage-client 3.2.37 → 3.2.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 (419) 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/5.2.1/executionHistory/executionHistory.bin +0 -0
  6. package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
  7. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  8. package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
  9. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  10. package/.gradle/5.2.1/gc.properties +0 -0
  11. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  12. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  13. package/.project +18 -18
  14. package/CHANGELOG.md +15 -15
  15. package/DOC//345/212/237/350/203/275/350/257/264/346/230/216.md +13 -13
  16. package/DOC//347/211/210/346/234/254/344/277/241/346/201/257.md +8 -8
  17. package/ManageClient.iml +13 -13
  18. package/README.md +38 -38
  19. package/build/dev-server.js +174 -174
  20. package/build/webpack.base.conf.js +82 -82
  21. package/build.gradle +13 -13
  22. package/config/dev.env.js +6 -6
  23. package/config/index.js +40 -40
  24. package/config/prod.env.js +3 -3
  25. package/config/test.env.js +6 -6
  26. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  27. package/gradlew.bat +100 -100
  28. package/index.html +28 -28
  29. package/package.json +1 -1
  30. package/release.bat +5 -5
  31. package/src/ManageHome.js +269 -269
  32. package/src/Staff/StaffCompileList.vue +334 -334
  33. package/src/Staff/StaffList.vue +161 -161
  34. package/src/Staff/StaffListManage.vue +49 -49
  35. package/src/Util.js +367 -367
  36. package/src/components/BasisEcharts/BarChart.vue +247 -247
  37. package/src/components/BasisEcharts/LineChart.vue +243 -243
  38. package/src/components/ManageHome/CustomerService/ContentmentStatistics.vue +135 -135
  39. package/src/components/ManageHome/CustomerService/ExcepCollect.vue +174 -174
  40. package/src/components/ManageHome/CustomerService/ReasonComplaint.vue +116 -116
  41. package/src/components/ManageHome/CustomerService/ReasonConsultation.vue +115 -115
  42. package/src/components/ManageHome/CustomerService/ServiceFix.vue +155 -155
  43. package/src/components/ManageHome/CustomerService/ServiceHome.vue +179 -179
  44. package/src/components/ManageHome/CustomerService/ServiceStatistics.vue +147 -147
  45. package/src/components/ManageHome/CustomerService/TrafficStatistics.vue +160 -160
  46. package/src/components/ManageHome/Drill/DrillData.vue +791 -791
  47. package/src/components/ManageHome/Drill/DrillList.vue +320 -320
  48. package/src/components/ManageHome/Drill/DrillPool.vue +129 -129
  49. package/src/components/ManageHome/Home/CallCenter.vue +124 -124
  50. package/src/components/ManageHome/Home/CallFix.vue +172 -172
  51. package/src/components/ManageHome/Home/CallStatistics.vue +147 -147
  52. package/src/components/ManageHome/Home/GasValue.vue +233 -233
  53. package/src/components/ManageHome/Home/Home.vue +138 -138
  54. package/src/components/ManageHome/Home/Monitor.vue +329 -329
  55. package/src/components/ManageHome/Home/NetWork.vue +202 -202
  56. package/src/components/ManageHome/Home/SafeCheck.vue +249 -249
  57. package/src/components/ManageHome/Home/UserModule.vue +367 -367
  58. package/src/components/ManageHome/ImportSupplygas/AddSupply.vue +206 -206
  59. package/src/components/ManageHome/ImportSupplygas/SuppleManagement.vue +43 -43
  60. package/src/components/ManageHome/ImportSupplygas/SupplySelect.vue +85 -85
  61. package/src/components/ManageHome/ImportSupplygas/UpdateSupply.vue +187 -187
  62. package/src/components/ManageHome/ManageHome.vue +292 -292
  63. package/src/components/ManageHome/Monitor/BuySub.vue +311 -311
  64. package/src/components/ManageHome/Monitor/Caveat.vue +300 -300
  65. package/src/components/ManageHome/Monitor/ComparedGas.vue +264 -264
  66. package/src/components/ManageHome/Monitor/MeterBrand.vue +211 -211
  67. package/src/components/ManageHome/Monitor/MonitorCenter.vue +132 -132
  68. package/src/components/ManageHome/Monitor/MonitorHome.vue +188 -188
  69. package/src/components/ManageHome/Monitor/NoBuyGas.vue +223 -223
  70. package/src/components/ManageHome/Monitor/NoContact.vue +233 -233
  71. package/src/components/ManageHome/Monitor/NoGas.vue +202 -202
  72. package/src/components/ManageHome/NetWork/LineInspection.vue +267 -267
  73. package/src/components/ManageHome/NetWork/NetDanger.vue +258 -258
  74. package/src/components/ManageHome/NetWork/NetHome.vue +84 -84
  75. package/src/components/ManageHome/NetWork/SupplyGas.vue +204 -204
  76. package/src/components/ManageHome/SecurityCheck/CheckHome.vue +94 -94
  77. package/src/components/ManageHome/SecurityCheck/CustomerType.vue +244 -244
  78. package/src/components/ManageHome/SecurityCheck/LatentDanger.vue +218 -218
  79. package/src/components/ManageHome/SecurityCheck/PlanStatistics.vue +231 -231
  80. package/src/components/ManageHome/SecurityCheck/StateStatistics.vue +237 -237
  81. package/src/components/ManageHome/SecurityCheck/TaskStatistics.vue +303 -303
  82. package/src/components/ManageHome/User/GasDistri.vue +271 -271
  83. package/src/components/ManageHome/User/InspecDistri.vue +272 -272
  84. package/src/components/ManageHome/User/SaleProportion.vue +309 -309
  85. package/src/components/ManageHome/User/UseHome.vue +155 -155
  86. package/src/components/ManageHome/User/UserGascontrast.vue +223 -223
  87. package/src/components/ManageHome/User/UserNumber.vue +519 -519
  88. package/src/components/ManageHome/User/UsernumIncrease.vue +243 -243
  89. package/src/components/ManageHome/loading.vue +23 -23
  90. package/src/components/ManageHomeCS/Cockpit.vue +43 -43
  91. package/src/components/ManageHomeCS/CustomerService/ContentmentStatistics.vue +161 -161
  92. package/src/components/ManageHomeCS/CustomerService/ExcepCollect.vue +201 -201
  93. package/src/components/ManageHomeCS/CustomerService/ReasonComplaint.vue +146 -146
  94. package/src/components/ManageHomeCS/CustomerService/ReasonConsultation.vue +148 -148
  95. package/src/components/ManageHomeCS/CustomerService/ServiceFix.vue +242 -242
  96. package/src/components/ManageHomeCS/CustomerService/ServiceHome.vue +176 -176
  97. package/src/components/ManageHomeCS/CustomerService/ServiceStatistics.vue +277 -277
  98. package/src/components/ManageHomeCS/CustomerService/TrafficStatistics.vue +226 -226
  99. package/src/components/ManageHomeCS/Drill/DrillData.vue +918 -918
  100. package/src/components/ManageHomeCS/Drill/DrillList.vue +320 -320
  101. package/src/components/ManageHomeCS/Drill/DrillPool.vue +129 -129
  102. package/src/components/ManageHomeCS/Home/CallCenter.vue +206 -206
  103. package/src/components/ManageHomeCS/Home/CallFix.vue +172 -172
  104. package/src/components/ManageHomeCS/Home/CallStatistics.vue +147 -147
  105. package/src/components/ManageHomeCS/Home/GasValue.vue +466 -466
  106. package/src/components/ManageHomeCS/Home/Home.vue +57 -57
  107. package/src/components/ManageHomeCS/Home/Monitor.vue +423 -423
  108. package/src/components/ManageHomeCS/Home/NetWork.vue +223 -223
  109. package/src/components/ManageHomeCS/Home/SafeCheck.vue +446 -446
  110. package/src/components/ManageHomeCS/Home/ShanxiMap.vue +432 -432
  111. package/src/components/ManageHomeCS/Home/UserModule.vue +511 -511
  112. package/src/components/ManageHomeCS/Home/YulinMap.vue +424 -424
  113. package/src/components/ManageHomeCS/ImportSupplygas/AddSupply.vue +206 -206
  114. package/src/components/ManageHomeCS/ImportSupplygas/SuppleManagement.vue +43 -43
  115. package/src/components/ManageHomeCS/ImportSupplygas/SupplySelect.vue +85 -85
  116. package/src/components/ManageHomeCS/ImportSupplygas/UpdateSupply.vue +187 -187
  117. package/src/components/ManageHomeCS/Monitor/BuySub.vue +339 -339
  118. package/src/components/ManageHomeCS/Monitor/Caveat.vue +301 -301
  119. package/src/components/ManageHomeCS/Monitor/ComparedGas.vue +276 -276
  120. package/src/components/ManageHomeCS/Monitor/MeterBrand.vue +220 -220
  121. package/src/components/ManageHomeCS/Monitor/MonitorCenter.vue +139 -139
  122. package/src/components/ManageHomeCS/Monitor/MonitorHome.vue +188 -188
  123. package/src/components/ManageHomeCS/Monitor/NoBuyGas.vue +218 -218
  124. package/src/components/ManageHomeCS/Monitor/NoContact.vue +217 -217
  125. package/src/components/ManageHomeCS/Monitor/NoGas.vue +214 -214
  126. package/src/components/ManageHomeCS/NetWork/LineInspection.vue +268 -268
  127. package/src/components/ManageHomeCS/NetWork/NetDanger.vue +258 -258
  128. package/src/components/ManageHomeCS/NetWork/NetHome.vue +106 -106
  129. package/src/components/ManageHomeCS/NetWork/NetWork.vue +222 -222
  130. package/src/components/ManageHomeCS/NetWork/NetWorkMap.vue +86 -86
  131. package/src/components/ManageHomeCS/NetWork/SupplyGas.vue +291 -291
  132. package/src/components/ManageHomeCS/NewHome/GasProperties.vue +314 -314
  133. package/src/components/ManageHomeCS/NewHome/NewManageHome.vue +182 -182
  134. package/src/components/ManageHomeCS/NewHome/TextBusiness.vue +267 -267
  135. package/src/components/ManageHomeCS/NewHome/TextChildsellgas.vue +209 -209
  136. package/src/components/ManageHomeCS/NewHome/TextProfit.vue +298 -298
  137. package/src/components/ManageHomeCS/NewHome/TextSellgas.vue +82 -82
  138. package/src/components/ManageHomeCS/NewHome/TextShanximap.vue +389 -389
  139. package/src/components/ManageHomeCS/NewHome/TextTotalsellgas.vue +406 -406
  140. package/src/components/ManageHomeCS/NewHome/TextUser.vue +378 -378
  141. package/src/components/ManageHomeCS/NewHome/yulin.vue +425 -425
  142. package/src/components/ManageHomeCS/Poor/PoorHome.vue +176 -176
  143. package/src/components/ManageHomeCS/SecurityCheck/CheckHome.vue +94 -94
  144. package/src/components/ManageHomeCS/SecurityCheck/CustomerType.vue +246 -246
  145. package/src/components/ManageHomeCS/SecurityCheck/LatentDanger.vue +220 -220
  146. package/src/components/ManageHomeCS/SecurityCheck/PlanStatistics.vue +306 -306
  147. package/src/components/ManageHomeCS/SecurityCheck/StateStatistics.vue +239 -239
  148. package/src/components/ManageHomeCS/SecurityCheck/TaskStatistics.vue +311 -311
  149. package/src/components/ManageHomeCS/User/FMYInspecDistri.vue +269 -269
  150. package/src/components/ManageHomeCS/User/GasDistri.vue +220 -220
  151. package/src/components/ManageHomeCS/User/MYInspecDistri.vue +269 -269
  152. package/src/components/ManageHomeCS/User/SaleProportion.vue +384 -384
  153. package/src/components/ManageHomeCS/User/UseHome.vue +162 -162
  154. package/src/components/ManageHomeCS/User/UserGascontrast.vue +221 -221
  155. package/src/components/ManageHomeCS/User/UserNumber.vue +600 -600
  156. package/src/components/ManageHomeCS/User/UsernumIncrease.vue +277 -277
  157. package/src/components/ManageHomeCS/loading.vue +39 -39
  158. package/src/components/ManageHomeCS/test.vue +88 -88
  159. package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
  160. package/src/components/MeterManage/ChargeQuery.vue +79 -79
  161. package/src/components/MeterManage/FillCardQuery.vue +80 -80
  162. package/src/components/MeterManage/FillGasQuery.vue +80 -80
  163. package/src/components/MeterManage/HandQuery.vue +72 -72
  164. package/src/components/MeterManage/MeterInfoManage.vue +107 -107
  165. package/src/components/MeterManage/MeterList.vue +336 -336
  166. package/src/components/MeterManage/MeterMsg.vue +181 -181
  167. package/src/components/MeterManage/OtherChargeQuery.vue +78 -78
  168. package/src/components/MeterManage/ReversalQuery.vue +77 -77
  169. package/src/components/MeterManage/TransferQuery.vue +72 -72
  170. package/src/components/SellReport/BankManager.vue +146 -146
  171. package/src/components/SellReport/CaiManageDayGas.vue +280 -280
  172. package/src/components/SellReport/ChManageBusSummary.vue +273 -273
  173. package/src/components/SellReport/ChManageHandSellMoney.vue +274 -274
  174. package/src/components/SellReport/ChManageMonthGas.vue +285 -285
  175. package/src/components/SellReport/ChOtherfee.vue +251 -251
  176. package/src/components/SellReport/CollectFee.vue +184 -184
  177. package/src/components/SellReport/Contrast.vue +188 -188
  178. package/src/components/SellReport/DayStairMoney.vue +256 -256
  179. package/src/components/SellReport/FenxiangSell.vue +183 -183
  180. package/src/components/SellReport/FxGasTable.vue +220 -220
  181. package/src/components/SellReport/GasCollect.vue +174 -174
  182. package/src/components/SellReport/GaspriceHas.vue +141 -141
  183. package/src/components/SellReport/HandCollect.vue +189 -189
  184. package/src/components/SellReport/JinChengBusSummary.vue +182 -182
  185. package/src/components/SellReport/JinChengHandGas.vue +182 -182
  186. package/src/components/SellReport/JinChengOperSummary.vue +182 -182
  187. package/src/components/SellReport/JinChengSliceSumgas.vue +182 -182
  188. package/src/components/SellReport/ManageBusTable.vue +207 -207
  189. package/src/components/SellReport/ManageGasFee.vue +247 -247
  190. package/src/components/SellReport/ManageGasFeeOperator.vue +236 -236
  191. package/src/components/SellReport/ManageHandSellInputtor.vue +241 -241
  192. package/src/components/SellReport/ManageMonthGas.vue +249 -249
  193. package/src/components/SellReport/ManageNewGasPrice.vue +245 -245
  194. package/src/components/SellReport/ManageReceivable.vue +254 -254
  195. package/src/components/SellReport/ManageUserCollect.vue +183 -183
  196. package/src/components/SellReport/MeterBill.vue +185 -185
  197. package/src/components/SellReport/MeterGasMoney.vue +226 -226
  198. package/src/components/SellReport/MeterInput.vue +250 -250
  199. package/src/components/SellReport/MonthStairMoney.vue +256 -256
  200. package/src/components/SellReport/OweAging.vue +174 -174
  201. package/src/components/SellReport/ReportHistory.vue +80 -80
  202. package/src/components/SellReport/ReportPool.vue +60 -60
  203. package/src/components/SellReport/Selling.vue +188 -188
  204. package/src/components/SellReport/SiteManager.vue +147 -147
  205. package/src/components/SellReport/UserStateStatistics.vue +188 -188
  206. package/src/components/SellReport/UsertypePie.vue +101 -101
  207. package/src/components/SellReport/XianYangDate.vue +227 -227
  208. package/src/components/SellReport/XianYangOperator.vue +228 -228
  209. package/src/components/SellReport/XyDateCharge.vue +227 -227
  210. package/src/components/SellReport/XyOperatorCharge.vue +256 -256
  211. package/src/components/SellReport/YuShouTableTwo.vue +309 -309
  212. package/src/components/SellReport/jingwei/CardCharge.vue +142 -142
  213. package/src/components/SellReport/jingwei/MachineCharge.vue +141 -141
  214. package/src/components/SellReport/jingwei/PaymentNotice.vue +479 -479
  215. package/src/components/SellReport/jingwei/handplanReport.vue +280 -280
  216. package/src/components/SellReport/jingwei/widegt/PaymentNoticePrint.vue +198 -198
  217. package/src/components/SellReport/jingwei/widegt/handplanPrint.vue +143 -143
  218. package/src/components/SellReport/pengan/ManageBusSummaryPeng.vue +241 -241
  219. package/src/components/WebReport/AbnormalInfo.vue +197 -197
  220. package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
  221. package/src/components/WebReport/BatteryLow.vue +148 -148
  222. package/src/components/WebReport/BusinessHall.vue +85 -85
  223. package/src/components/WebReport/BussinessType.vue +137 -137
  224. package/src/components/WebReport/Communication.vue +131 -131
  225. package/src/components/WebReport/CompanyUser.vue +79 -79
  226. package/src/components/WebReport/EchartsBox.vue +110 -110
  227. package/src/components/WebReport/ElectroMagnetic.vue +142 -142
  228. package/src/components/WebReport/GaspriceHas.vue +141 -141
  229. package/src/components/WebReport/HandplanPrint.vue +167 -167
  230. package/src/components/WebReport/NotUpload.vue +165 -165
  231. package/src/components/WebReport/OweQuery.vue +169 -169
  232. package/src/components/WebReport/PaymentDistributed.vue +176 -176
  233. package/src/components/WebReport/Paymentpie.vue +157 -157
  234. package/src/components/WebReport/ReportWorklist.vue +220 -220
  235. package/src/components/WebReport/SellType.vue +89 -89
  236. package/src/components/WebReport/Telemanlist.vue +221 -221
  237. package/src/components/WebReport/UserGasAll.vue +214 -214
  238. package/src/components/WebReport/UserGasEcharts.vue +107 -107
  239. package/src/components/WebReport/UsertypePie.vue +105 -105
  240. package/src/components/WebReport/ValueEcharts.vue +99 -99
  241. package/src/components/WebReport/ValueInfo.vue +194 -194
  242. package/src/components/qinhua/BarChartLine.vue +288 -288
  243. package/src/components/qinhua/ManageMain.vue +162 -162
  244. package/src/components/qinhua/Ring.vue +165 -165
  245. package/src/components/qinhua/SafeCheckRing.vue +149 -149
  246. package/src/components/qinhua/SafecheckBarChart.vue +209 -209
  247. package/src/components/qinhua/Scada.vue +93 -93
  248. package/src/components/safecheck/analysis/SafeHiddenAnaly.vue +932 -932
  249. package/src/components/safecheck/planCheck/chanceSituation.vue +149 -149
  250. package/src/components/safecheck/planCheck/checkFamily.vue +217 -217
  251. package/src/components/safecheck/planCheck/hidderDanger.vue +179 -179
  252. package/src/components/safecheck/planCheck/inFamily.vue +185 -185
  253. package/src/components/sale/businessquery/AccountQuery/TransactionSummary.vue +373 -373
  254. package/src/components/sale/businessquery/BalanceQuery.vue +456 -456
  255. package/src/components/sale/businessquery/ChargeQuery.vue +1254 -1254
  256. package/src/components/sale/businessquery/InspectManage.vue +47 -47
  257. package/src/components/sale/businessquery/NewAccountQuery.vue +409 -409
  258. package/src/components/sale/businessquery/OtherChargeDetailQuery.vue +74 -74
  259. package/src/components/sale/businessquery/ResourceOperatingQuery.vue +317 -317
  260. package/src/components/sale/businessquery/TongjiManage.vue +74 -74
  261. package/src/components/sale/businessquery/UserTongjiQuery.vue +358 -358
  262. package/src/components/sale/businessquery/YearGasQuery.vue +422 -422
  263. package/src/components/sale/businessquery/analysisquery/AnalysisManage.vue +65 -65
  264. package/src/components/sale/businessquery/weChatBind.vue +361 -361
  265. package/src/components/sale/common/PrintData.vue +171 -171
  266. package/src/components/sale/common/PrintDataSelf.vue +225 -225
  267. package/src/components/sale/common/PrintTable.vue +228 -228
  268. package/src/components/sale/common/PrintTableSelf.vue +251 -251
  269. package/src/components/sale/common/TabButton.vue +155 -155
  270. package/src/components/sale/common/Tabs.vue +67 -67
  271. package/src/components/sale/common/handplanUser.vue +112 -112
  272. package/src/components/sale/config/DefaultPrint.js +6 -6
  273. package/src/components/sale/filesquery/detail/UserBaseInfo.vue +69 -69
  274. package/src/components/sale/filesquery/detail/UserDetail.vue +41 -41
  275. package/src/components/sale/filesquery/detail/UserOperInfo.vue +76 -76
  276. package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
  277. package/src/components/sale/filesquery/detail/oper/ExchangeOper.vue +66 -66
  278. package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
  279. package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
  280. package/src/components/sale/filesquery/detail/oper/OtherCharge.vue +54 -54
  281. package/src/components/sale/filesquery/detail/oper/ReplaceCard.vue +51 -51
  282. package/src/components/sale/filesquery/detail/oper/SellOper.vue +56 -56
  283. package/src/components/sale/filesquery/detail/oper/TransferMessage.vue +55 -55
  284. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  285. package/src/components/sale/filesquery/filequerydetail/ChangeMeterQueryDetail.vue +246 -246
  286. package/src/components/sale/filesquery/filequerydetail/ChargeQueryDetail.vue +239 -239
  287. package/src/components/sale/filesquery/filequerydetail/DeviceQueryDetail.vue +126 -126
  288. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  289. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  290. package/src/components/sale/filesquery/filequerydetail/FillCardQueryDetail.vue +80 -80
  291. package/src/components/sale/filesquery/filequerydetail/FillGasQueryDetail.vue +80 -80
  292. package/src/components/sale/filesquery/filequerydetail/HandQueryDetail.vue +302 -302
  293. package/src/components/sale/filesquery/filequerydetail/MeterQueryDetail.vue +158 -158
  294. package/src/components/sale/filesquery/filequerydetail/OtherChargeQueryDetail.vue +198 -198
  295. package/src/components/sale/filesquery/filequerydetail/RecordQueryDetail.vue +125 -125
  296. package/src/components/sale/filesquery/filequerydetail/SellingHandDetail.vue +280 -280
  297. package/src/components/sale/filesquery/filequerydetail/TransferQueryDetail.vue +160 -160
  298. package/src/components/sale/filesquery/filequerydetail/UserQueryDetail.vue +155 -155
  299. package/src/components/sale/report/aode/DayReport.vue +50 -50
  300. package/src/components/sale/report/aode/DayReportSummary.vue +75 -75
  301. package/src/components/sale/report/aode/MonthByChargeType.vue +446 -446
  302. package/src/components/sale/report/aode/MonthByUserType.vue +413 -413
  303. package/src/components/sale/report/aode/YearByChargeTpye.vue +215 -215
  304. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  305. package/src/components/sale/report/aode/life/LifeDayReport.vue +50 -50
  306. package/src/components/sale/report/aode/life/LifeDayReportList.vue +241 -241
  307. package/src/components/sale/report/aode/life/LifeDayReportSummary.vue +49 -49
  308. package/src/components/sale/report/aode/life/LifeMonthReport.vue +303 -303
  309. package/src/components/sale/report/aode/life/LifeYearReport.vue +175 -175
  310. package/src/components/sale/report/aode/widget/LifeDayReportListPrint.vue +189 -189
  311. package/src/components/sale/report/aode/widget/LifeMonthPrint.vue +153 -153
  312. package/src/components/sale/report/aode/widget/LifeYearPrint.vue +143 -143
  313. package/src/components/sale/report/aode/widget/MonthByChargePrint.vue +236 -236
  314. package/src/components/sale/report/aode/widget/MonthByUserPrint.vue +232 -232
  315. package/src/components/sale/report/aode/widget/YearByChargePrint.vue +203 -203
  316. package/src/components/sale/report/aode/widget/YearByUserPrint.vue +225 -225
  317. package/src/components/scada/CaculateGasConsumputionByDay/CaculateGasConsumputionByDay.vue +290 -290
  318. package/src/components/scada/ChartDisplay/ChartDisplayManage.vue +55 -55
  319. package/src/components/scada/ChartDisplay/ChartThreeDayContrast.vue +164 -164
  320. package/src/components/scada/CumulativeFlow/CumulativeFlowHeatPlant.vue +400 -400
  321. package/src/components/scada/CumulativeFlow/CumulativeFlowManage.vue +59 -59
  322. package/src/components/scada/CumulativeFlow/CumulativeFlowRegulatorStation.vue +504 -504
  323. package/src/components/scada/CumulativeFlow/CumulativeFlowStation.vue +248 -248
  324. package/src/components/scada/GasSupplyRunning/GasSupplyRunningByDay.vue +297 -297
  325. package/src/components/scada/InstantaneousFlow/InstantaneousFlowHeatPlant.vue +389 -389
  326. package/src/components/scada/InstantaneousFlow/InstantaneousFlowManage.vue +57 -57
  327. package/src/components/scada/InstantaneousFlow/InstantaneousFlowRegulatorStation.vue +503 -503
  328. package/src/components/scada/InstantaneousFlow/InstantaneousFlowStation.vue +244 -244
  329. package/src/components/scada/OnTimePressure/OnTimePressureHeatPlant.vue +356 -356
  330. package/src/components/scada/OnTimePressure/OnTimePressureManage.vue +51 -51
  331. package/src/components/scada/OnTimePressure/OnTimePressureRegulatorStation.vue +526 -526
  332. package/src/components/scada/ThreeDayContrast/ThreeDayContrastManage.vue +282 -282
  333. package/src/components/webmeter/DrillData/LargeScreenAnalysisEcharts.vue +710 -710
  334. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  335. package/src/components/webmeter/DrillData/LostContactAnalysisManage.vue +30 -30
  336. package/src/components/webmeter/DrillData/LostContactEform.vue +190 -190
  337. package/src/components/webmeter/dataCollection/DataCollection.vue +676 -676
  338. package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
  339. package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
  340. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  341. package/src/components/webmeter/handplan/NewWebmeterHandPlanMain.vue +59 -59
  342. package/src/components/webmeter/indicatorStatisticsEchars.vue +204 -204
  343. package/src/components/webmeter/indicatorStatisticsMain.vue +257 -257
  344. package/src/components/webmeter/meterinfo/NewMeterList.vue +414 -414
  345. package/src/components/webmeter/meterinfo/NewMeterListMain.vue +53 -53
  346. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
  347. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEformTotal.vue +211 -211
  348. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  349. package/src/components/yulin/GuanWang.vue +24 -24
  350. package/src/components/yulin/SingleBarLine.vue +352 -352
  351. package/src/components/yulin/Weather.vue +157 -157
  352. package/src/expandcss.less +26 -26
  353. package/src/filiale/WEINAN/InspectListUser.vue +492 -492
  354. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  355. package/src/filiale/aode/ArchivesManage.vue +38 -38
  356. package/src/filiale/aode/BusinessManage.vue +94 -94
  357. package/src/filiale/aode/DefaultPrint.js +6 -6
  358. package/src/filiale/aode/HandplanQuery.vue +632 -632
  359. package/src/filiale/aode/Tabs.vue +67 -67
  360. package/src/filiale/aode/UserQuery.vue +599 -599
  361. package/src/filiale/aode/sale.js +17 -17
  362. package/src/filiale/ceshi/ArrearsQuery.vue +642 -642
  363. package/src/filiale/ceshi/ChManageBusSummary.vue +293 -293
  364. package/src/filiale/ceshi/CollectManage.vue +94 -94
  365. package/src/filiale/ceshi/MeterRateQuery.vue +633 -633
  366. package/src/filiale/ceshi/TabButton.vue +149 -149
  367. package/src/filiale/ceshi/Tabs.vue +69 -69
  368. package/src/filiale/ceshi/reportManage.js +5 -5
  369. package/src/filiale/ceshi/sale.js +11 -11
  370. package/src/filiale/gaomi/config/DefaultPrint.js +6 -6
  371. package/src/filiale/gaomi/config/tableConfig.js +47 -47
  372. package/src/filiale/gongyi/sale/businessquery/exportConfig.js +17 -17
  373. package/src/filiale/gongyi/sale/filesquery/MeterQuery.vue +718 -718
  374. package/src/filiale/liaoyuan/sale.js +11 -11
  375. package/src/filiale/macheng/MeterQuery.vue +921 -921
  376. package/src/filiale/macheng/config/DefaultPrint.js +12 -12
  377. package/src/filiale/qingtongxia/config/DefaultPrint.js +6 -6
  378. package/src/filiale/qingtongxia/sale.js +13 -13
  379. package/src/filiale/shaoguan/OtherChargeDetailQuery.vue +74 -74
  380. package/src/filiale/shaoguan/config/DefaultPrint.js +6 -6
  381. package/src/filiale/shennongjia/config/DefaultPrint.js +6 -6
  382. package/src/filiale/shennongjia/config/tableConfig.js +47 -47
  383. package/src/filiale/shennongjia/sale.js +10 -10
  384. package/src/filiale/tongchuan/ChargeQuery.vue +1277 -1270
  385. package/src/filiale/tongchuan/ReportList.vue +472 -472
  386. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  387. package/src/filiale/tongchuan/sale.js +16 -16
  388. package/src/main.js +66 -66
  389. package/src/plugins/GetLoginInfoService.js +505 -505
  390. package/src/plugins/LodopFuncs.js +124 -124
  391. package/src/plugins/getAllInputtor.js +29 -29
  392. package/src/safeCheck.js +63 -63
  393. package/src/stores/AppData.js +62 -62
  394. package/src/stores/DataSql.js +585 -585
  395. package/src/stores/DrillECharts.js +602 -602
  396. package/src/stores/DrillSql.js +888 -888
  397. package/src/stores/GetParames.js +15 -15
  398. package/src/stores/MagGetSaleParams.js +156 -156
  399. package/src/stores/MagLoadParams.js +63 -63
  400. package/src/stores/Util.js +132 -132
  401. package/src/stores/shanxi1.js +26 -26
  402. package/src/stores/yulin.js +27 -27
  403. package/static/china.json +1 -1
  404. package/static/qh.json +2410 -2410
  405. package/static/res.json +58411 -58411
  406. package/static/shanxi1.json +1 -1
  407. package/static/yulin.json +1 -1
  408. package/static//345/261/261/344/270/234/347/234/201.json +1 -1
  409. package/test/unit/.eslintrc +5 -5
  410. package/test/unit/TestUtil.js +35 -35
  411. package/test/unit/context.html +20 -20
  412. package/test/unit/index.js +13 -13
  413. package/test/unit/init.js +11 -11
  414. package/test/unit/karma.conf.js +45 -45
  415. package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
  416. package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
  417. package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
  418. package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
  419. package/webstorm.config.js +13 -13
package/src/Util.js CHANGED
@@ -1,367 +1,367 @@
1
- import Vue from 'vue'
2
- // 登录后获取的所有数据,需要自行获取
3
- export var f
4
-
5
- export function getAttendanceState (item, timeToWork, timeToGo) {
6
- item.f_state = ''
7
- if (!item.f_signin_time || !item.f_knockoff_time) {
8
- item.f_state = '缺勤'
9
- } else {
10
- let signin_time = item.f_signin_time.substring(11, 16)
11
- let knockoff_time = item.f_knockoff_time.substring(11, 16)
12
- if (signin_time > timeToWork) {
13
- item.f_state = '迟到'
14
- }
15
- if (knockoff_time < timeToGo) {
16
- item.f_state = item.f_state + '早退'
17
- }
18
- }
19
- if (!item.f_state) {
20
- item.f_state = '正常'
21
- }
22
- }
23
-
24
- export function toStandardYearMonth () {
25
- let dt = new Date()
26
- let month = dt.getMonth() + 1
27
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month)
28
- }
29
- export function toStandardYearMonth1 () {
30
- let dt = new Date()
31
- let month = dt.getMonth() + 1
32
- return dt.getFullYear() + (month < 10 ? '0' + month : month)
33
- }
34
-
35
- export function toStandardDateString () {
36
- let dt = new Date()
37
- let month = dt.getMonth() + 1
38
- let date = dt.getDate()
39
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
40
- }
41
-
42
- export function toStartAndEndDateString () {
43
- let dt = new Date()
44
- let month = dt.getMonth() + 1
45
- // let date = dt.getDate()
46
- return [dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-01',
47
- dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (new Date(dt.getFullYear(), month, 0).getDate())]
48
- // return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
49
- }
50
-
51
- export function toStandardTimeString () {
52
- let dt = new Date()
53
- let month = dt.getMonth() + 1
54
- let date = dt.getDate()
55
- let hour = dt.getHours()
56
- let min = dt.getMinutes()
57
- let sec = dt.getSeconds()
58
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date) +
59
- ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
60
- }
61
-
62
- export function to3339TimeString () {
63
- let dt = new Date()
64
- let month = dt.getMonth() + 1
65
- let date = dt.getDate()
66
- let hour = dt.getHours()
67
- let min = dt.getMinutes()
68
- let sec = dt.getSeconds()
69
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date) +
70
- 'T' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
71
- }
72
-
73
- export function parse3339String (strDate) {
74
- return new Date(
75
- strDate.substr(0, 4), strDate.substr(5, 2) - 1, strDate.substr(8, 2),
76
- strDate.substr(11, 2), strDate.substr(14, 2), strDate.substr(17, 2)
77
- )
78
- }
79
-
80
- export function format3339TimeString (dt) {
81
- let month = dt.getMonth() + 1
82
- let date = dt.getDate()
83
- let hour = dt.getHours()
84
- let min = dt.getMinutes()
85
- let sec = dt.getSeconds()
86
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
87
- + 'T' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
88
- }
89
-
90
- export function guid () {
91
- let buf = new Uint16Array(8)
92
- window.crypto.getRandomValues(buf)
93
- let S4 = function (num) {
94
- let ret = num.toString(16)
95
- while (ret.length < 4) {
96
- ret = '0' + ret
97
- }
98
- return ret
99
- }
100
- return (S4(buf[0]) + S4(buf[1]) + S4(buf[2]) + S4(buf[3]) + S4(buf[4]) + S4(buf[5]) + S4(buf[6]) + S4(buf[7]))
101
- }
102
-
103
- export function choices (role, param, hasBlank = false, blankHint = '请选择') {
104
- if (role == 'view') {
105
- Vue.getParams(param, [null])
106
- } else {
107
- let result = []
108
- if (hasBlank)
109
- result.push({label: blankHint, value: null})
110
- if (!Vue.param || !Vue.param[param])
111
- result.push({label: '请在系统设置里更新参数', value: '请在系统设置里更新参数'})
112
- else {
113
- let p = Vue.param[param]
114
- p.forEach(function (item) {
115
- result.push({label: item.name, value: item.name})
116
- })
117
- }
118
- return result
119
- }
120
- }
121
-
122
- export function required (param) {
123
- if (typeof param === 'number' && param == 0)
124
- return false
125
- if (!param)
126
- return true
127
- param = param + ''
128
- param = param.trim()
129
- if (!param)
130
- return true
131
- return false
132
- }
133
-
134
- export function isInt (n) {
135
- return !window.isNaN(n) && n % 1 === 0
136
- }
137
-
138
- export function isFloat (n) {
139
- return !window.isNaN(n)
140
- }
141
-
142
- // this will convert all true/false to boolean
143
- export function booleanFilter (paper) {
144
- for (let key in paper) {
145
- if (!paper.hasOwnProperty(key))
146
- continue
147
- if (typeof paper[key] == 'object' && paper[key] != null) {
148
- booleanFilter(paper[key])
149
- } else {
150
- if (paper[key] === 'true' || paper[key] == 'false')
151
- paper[key] = (paper[key] === 'true')
152
- }
153
- }
154
- }
155
- // recursively traverse through each path
156
- export function ratifyPics (paper) {
157
- for (let key in paper) {
158
- if (key.endsWith('_path')) {
159
- if (!paper[key]) {
160
- paper[key] = 'rs/db/file/nopic.png'
161
- } else {
162
- paper[key] = 'rs/db/file/' + paper[key]
163
- }
164
- } else if (paper[key] !== null && typeof (paper[key]) == 'object') {
165
- ratifyPics(paper[key])
166
- }
167
- }
168
- }
169
-
170
- // load script and other stuff
171
- export function loadscript (type, fileName) {
172
- return new Promise((resolve, reject) => {
173
- let element
174
- if (type == 'css') {
175
- element = document.createElement('link')
176
- element.setAttribute('rel', 'stylesheet')
177
- element.setAttribute('type', 'text/css')
178
- element.setAttribute('href', fileName)
179
- } else if (type == 'js') {
180
- element = document.createElement('script')
181
- element.setAttribute('type', 'text/javascript')
182
- element.setAttribute('src', fileName)
183
- }
184
- if (element) {
185
- element.setAttribute('async', '')
186
- element.setAttribute('defer', '')
187
- element.addEventListener('load', function () {
188
- resolve(element)
189
- }, false)
190
- element.addEventListener('error', function () {
191
- reject(element)
192
- }, false)
193
- document.body.appendChild(element)
194
- }
195
- })
196
- }
197
- // 不能选择器中截取掉多余的字符
198
- export function orgName (name) {
199
- return name.substring(10)
200
- }
201
-
202
- export function getNowDate (name) {
203
- // 求取当前时间的工具
204
- let myweekday = ''
205
- let year = ''
206
- let mydate = new Date()
207
- myweekday = mydate.getDay()
208
- let mymonth = mydate.getMonth() + 1
209
- let myday = mydate.getDate()
210
- let myyear = mydate.getYear()
211
- year = (myyear > 200) ? myyear : 1900 + myyear
212
- let week = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期日', '星期六']
213
- // document.write("<font color=#ffffff>今天是 "+year+"年"+mymonth+"月"+myday+"日 "+weekday+"</font>");
214
- return year + '年' + mymonth + '月' + myday + '日 ' + week[myweekday]
215
- }
216
-
217
- export function addDate (date, days) {
218
- // 求取当前时间的工具
219
- let endDate = new Date(date)
220
- endDate = endDate.valueOf()
221
- endDate = endDate + days * 24 * 60 * 60 * 1000
222
- endDate = new Date(endDate)
223
- let month = endDate.getMonth() + 1
224
- let day = endDate.getDate()
225
- let hour = endDate.getHours()
226
- let min = endDate.getMinutes()
227
- let sec = endDate.getSeconds()
228
- return endDate.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (day < 10 ? '0' + day : day) +
229
- ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
230
- // return a
231
- }
232
-
233
- // 通过地址栏的参数获取参数内容
234
- export function getUrlParames (param) {
235
- var query = window.location.search
236
- var iLen = param.length
237
- var iStart = query.indexOf(param)
238
- if (iStart === -1) {
239
- return ''
240
- }
241
- iStart += iLen + 1
242
- var iEnd = query.indexOf('&', iStart)
243
- if (iEnd === -1) {
244
- return query.substring(iStart)
245
- }
246
- return query.substring(iStart, iEnd)
247
- }
248
-
249
- // 从地址栏获取加密的参数
250
- export function getUrlCompileParames (param) {
251
- var query = uncompileStr(window.location.search.slice(1, window.location.search.length))
252
- var iLen = param.length
253
- var iStart = query.indexOf(param)
254
- if (iStart === -1) {
255
- return ''
256
- }
257
- iStart += iLen + 1
258
- var iEnd = query.indexOf('&', iStart)
259
- if (iEnd === -1) {
260
- return query.substring(iStart)
261
- }
262
- return query.substring(iStart, iEnd)
263
- }
264
-
265
- // 对字符串进行加密
266
- export function compileStr (code) {
267
- let c = String.fromCharCode(code.charCodeAt(0) + code.length)
268
- for (let i = 1; i < code.length; i++) {
269
- c += String.fromCharCode(code.charCodeAt(i) + code.charCodeAt(i - 1))
270
- }
271
- return escape(c)
272
- }
273
- // 字符串进行解密
274
- export function uncompileStr (code) {
275
- code = unescape(code)
276
- let c = String.fromCharCode(code.charCodeAt(0) - code.length)
277
- for (var i = 1; i < code.length; i++) {
278
- c += String.fromCharCode(code.charCodeAt(i) - c.charCodeAt(i - 1))
279
- }
280
- return c
281
- }
282
-
283
- export function dateDescripte (date) {
284
- let nowTime = new Date().getTime()
285
- let oldTime = new Date(date).getTime()
286
- let timeDiff = nowTime - oldTime
287
- // 规则说明
288
- // 小于等于2分钟为刚刚
289
- // 大于2分钟小于等于1小时为取整的分钟前(例如:35分钟前)
290
- // 大于1小时小于等于24小时为取整的小时前(例如:15小时前)
291
- // 大于24小时小于等于30天为取整的天前(例如:12天前)
292
- // 大于30天小于等于12月为取整的月前,月份统一为30天一月,不做额外处理(例如:3个月前)
293
- // 大于365取整的年前,(例如:2年前)
294
- let minute = 1000 * 60
295
- let hour = minute * 60
296
- let day = hour * 24
297
- let month = day * 30
298
- let year = month * 12
299
- let des = ''
300
- if (timeDiff <= minute * 2) {
301
- des = '刚刚'
302
- } else if (minute * 2 < timeDiff && timeDiff < hour) {
303
- des = `${Math.floor(timeDiff / minute)}分钟前`
304
- } else if (hour < timeDiff && timeDiff <= day) {
305
- des = `${Math.floor(timeDiff / hour)}小时前`
306
- } else if (day < timeDiff && timeDiff <= month) {
307
- des = `${Math.floor(timeDiff / day)}天前`
308
- } else if (month < timeDiff && timeDiff <= year) {
309
- des = `${Math.floor(timeDiff / month)}个月前`
310
- } else if (year < timeDiff) {
311
- des = `${Math.floor(timeDiff / year)}年前`
312
- }
313
- return des
314
- }
315
-
316
- export function nextMonth20 (date) {
317
- let ds = date.split('-')
318
- let nextMonth = ds[1] - 0 + 1
319
- return ds[0] + '-' + (nextMonth < 10 ? '0' + nextMonth : nextMonth) + '-20 00:00:00'
320
- }
321
- //
322
- export function dateSwitch(fmt,dateStr,times){
323
- let date=new Date(dateStr).getTime()+times
324
- return this.dateFormat(fmt,new Date(date))
325
- }
326
- // 时间格式化
327
- export function dateFormat(fmt, date) {
328
- let ret;
329
- const opt = {
330
- "y+": date.getFullYear().toString(), // 年
331
- "M+": (date.getMonth() + 1).toString(), // 月
332
- "d+": date.getDate().toString(), // 日
333
- "h+": date.getHours().toString(), // 时
334
- "m+": date.getMinutes().toString(), // 分
335
- "s+": date.getSeconds().toString() // 秒
336
- // 有其他格式化字符需求可以继续添加,必须转化成字符串
337
- }
338
- for (let k in opt) {
339
- ret = new RegExp("(" + k + ")").exec(fmt);
340
- if (ret) {
341
- fmt = fmt.replace(ret[1], (ret[1].length == 1) ? (opt[k]) : (opt[k].padStart(ret[1].length, "0")))
342
- }
343
- }
344
- return fmt
345
- }
346
- // export function getNowDate () {
347
- // // 求取当前时间的工具
348
- // let myweekday = ''
349
- // let year = ''
350
- // let mydate = new Date()
351
- // myweekday = mydate.getDay()
352
- // let mymonth = mydate.getMonth() + 1
353
- // let myday = mydate.getDate()
354
- // let myyear = mydate.getYear()
355
- // year = (myyear > 200) ? myyear : 1900 + myyear
356
- // let week = ['星期日','星期一','星期二','星期三','星期四','星期五','星期日','星期六']
357
- // let weekday = week[myweekday]
358
- //
359
- // // document.write("<font color=#ffffff>今天是 "+year+"年"+mymonth+"月"+myday+"日 "+weekday+"</font>");
360
- // return year + '年' + mymonth + '月' + myday + '日 ' + weekday
361
- // }
362
- //
363
- // export function getImgsrc (name) {
364
- // return "http://127.0.0.1:8081/images/"+name+".gif"
365
- // }
366
- //
367
- // export var f;
1
+ import Vue from 'vue'
2
+ // 登录后获取的所有数据,需要自行获取
3
+ export var f
4
+
5
+ export function getAttendanceState (item, timeToWork, timeToGo) {
6
+ item.f_state = ''
7
+ if (!item.f_signin_time || !item.f_knockoff_time) {
8
+ item.f_state = '缺勤'
9
+ } else {
10
+ let signin_time = item.f_signin_time.substring(11, 16)
11
+ let knockoff_time = item.f_knockoff_time.substring(11, 16)
12
+ if (signin_time > timeToWork) {
13
+ item.f_state = '迟到'
14
+ }
15
+ if (knockoff_time < timeToGo) {
16
+ item.f_state = item.f_state + '早退'
17
+ }
18
+ }
19
+ if (!item.f_state) {
20
+ item.f_state = '正常'
21
+ }
22
+ }
23
+
24
+ export function toStandardYearMonth () {
25
+ let dt = new Date()
26
+ let month = dt.getMonth() + 1
27
+ return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month)
28
+ }
29
+ export function toStandardYearMonth1 () {
30
+ let dt = new Date()
31
+ let month = dt.getMonth() + 1
32
+ return dt.getFullYear() + (month < 10 ? '0' + month : month)
33
+ }
34
+
35
+ export function toStandardDateString () {
36
+ let dt = new Date()
37
+ let month = dt.getMonth() + 1
38
+ let date = dt.getDate()
39
+ return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
40
+ }
41
+
42
+ export function toStartAndEndDateString () {
43
+ let dt = new Date()
44
+ let month = dt.getMonth() + 1
45
+ // let date = dt.getDate()
46
+ return [dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-01',
47
+ dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (new Date(dt.getFullYear(), month, 0).getDate())]
48
+ // return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
49
+ }
50
+
51
+ export function toStandardTimeString () {
52
+ let dt = new Date()
53
+ let month = dt.getMonth() + 1
54
+ let date = dt.getDate()
55
+ let hour = dt.getHours()
56
+ let min = dt.getMinutes()
57
+ let sec = dt.getSeconds()
58
+ return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date) +
59
+ ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
60
+ }
61
+
62
+ export function to3339TimeString () {
63
+ let dt = new Date()
64
+ let month = dt.getMonth() + 1
65
+ let date = dt.getDate()
66
+ let hour = dt.getHours()
67
+ let min = dt.getMinutes()
68
+ let sec = dt.getSeconds()
69
+ return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date) +
70
+ 'T' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
71
+ }
72
+
73
+ export function parse3339String (strDate) {
74
+ return new Date(
75
+ strDate.substr(0, 4), strDate.substr(5, 2) - 1, strDate.substr(8, 2),
76
+ strDate.substr(11, 2), strDate.substr(14, 2), strDate.substr(17, 2)
77
+ )
78
+ }
79
+
80
+ export function format3339TimeString (dt) {
81
+ let month = dt.getMonth() + 1
82
+ let date = dt.getDate()
83
+ let hour = dt.getHours()
84
+ let min = dt.getMinutes()
85
+ let sec = dt.getSeconds()
86
+ return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
87
+ + 'T' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
88
+ }
89
+
90
+ export function guid () {
91
+ let buf = new Uint16Array(8)
92
+ window.crypto.getRandomValues(buf)
93
+ let S4 = function (num) {
94
+ let ret = num.toString(16)
95
+ while (ret.length < 4) {
96
+ ret = '0' + ret
97
+ }
98
+ return ret
99
+ }
100
+ return (S4(buf[0]) + S4(buf[1]) + S4(buf[2]) + S4(buf[3]) + S4(buf[4]) + S4(buf[5]) + S4(buf[6]) + S4(buf[7]))
101
+ }
102
+
103
+ export function choices (role, param, hasBlank = false, blankHint = '请选择') {
104
+ if (role == 'view') {
105
+ Vue.getParams(param, [null])
106
+ } else {
107
+ let result = []
108
+ if (hasBlank)
109
+ result.push({label: blankHint, value: null})
110
+ if (!Vue.param || !Vue.param[param])
111
+ result.push({label: '请在系统设置里更新参数', value: '请在系统设置里更新参数'})
112
+ else {
113
+ let p = Vue.param[param]
114
+ p.forEach(function (item) {
115
+ result.push({label: item.name, value: item.name})
116
+ })
117
+ }
118
+ return result
119
+ }
120
+ }
121
+
122
+ export function required (param) {
123
+ if (typeof param === 'number' && param == 0)
124
+ return false
125
+ if (!param)
126
+ return true
127
+ param = param + ''
128
+ param = param.trim()
129
+ if (!param)
130
+ return true
131
+ return false
132
+ }
133
+
134
+ export function isInt (n) {
135
+ return !window.isNaN(n) && n % 1 === 0
136
+ }
137
+
138
+ export function isFloat (n) {
139
+ return !window.isNaN(n)
140
+ }
141
+
142
+ // this will convert all true/false to boolean
143
+ export function booleanFilter (paper) {
144
+ for (let key in paper) {
145
+ if (!paper.hasOwnProperty(key))
146
+ continue
147
+ if (typeof paper[key] == 'object' && paper[key] != null) {
148
+ booleanFilter(paper[key])
149
+ } else {
150
+ if (paper[key] === 'true' || paper[key] == 'false')
151
+ paper[key] = (paper[key] === 'true')
152
+ }
153
+ }
154
+ }
155
+ // recursively traverse through each path
156
+ export function ratifyPics (paper) {
157
+ for (let key in paper) {
158
+ if (key.endsWith('_path')) {
159
+ if (!paper[key]) {
160
+ paper[key] = 'rs/db/file/nopic.png'
161
+ } else {
162
+ paper[key] = 'rs/db/file/' + paper[key]
163
+ }
164
+ } else if (paper[key] !== null && typeof (paper[key]) == 'object') {
165
+ ratifyPics(paper[key])
166
+ }
167
+ }
168
+ }
169
+
170
+ // load script and other stuff
171
+ export function loadscript (type, fileName) {
172
+ return new Promise((resolve, reject) => {
173
+ let element
174
+ if (type == 'css') {
175
+ element = document.createElement('link')
176
+ element.setAttribute('rel', 'stylesheet')
177
+ element.setAttribute('type', 'text/css')
178
+ element.setAttribute('href', fileName)
179
+ } else if (type == 'js') {
180
+ element = document.createElement('script')
181
+ element.setAttribute('type', 'text/javascript')
182
+ element.setAttribute('src', fileName)
183
+ }
184
+ if (element) {
185
+ element.setAttribute('async', '')
186
+ element.setAttribute('defer', '')
187
+ element.addEventListener('load', function () {
188
+ resolve(element)
189
+ }, false)
190
+ element.addEventListener('error', function () {
191
+ reject(element)
192
+ }, false)
193
+ document.body.appendChild(element)
194
+ }
195
+ })
196
+ }
197
+ // 不能选择器中截取掉多余的字符
198
+ export function orgName (name) {
199
+ return name.substring(10)
200
+ }
201
+
202
+ export function getNowDate (name) {
203
+ // 求取当前时间的工具
204
+ let myweekday = ''
205
+ let year = ''
206
+ let mydate = new Date()
207
+ myweekday = mydate.getDay()
208
+ let mymonth = mydate.getMonth() + 1
209
+ let myday = mydate.getDate()
210
+ let myyear = mydate.getYear()
211
+ year = (myyear > 200) ? myyear : 1900 + myyear
212
+ let week = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期日', '星期六']
213
+ // document.write("<font color=#ffffff>今天是 "+year+"年"+mymonth+"月"+myday+"日 "+weekday+"</font>");
214
+ return year + '年' + mymonth + '月' + myday + '日 ' + week[myweekday]
215
+ }
216
+
217
+ export function addDate (date, days) {
218
+ // 求取当前时间的工具
219
+ let endDate = new Date(date)
220
+ endDate = endDate.valueOf()
221
+ endDate = endDate + days * 24 * 60 * 60 * 1000
222
+ endDate = new Date(endDate)
223
+ let month = endDate.getMonth() + 1
224
+ let day = endDate.getDate()
225
+ let hour = endDate.getHours()
226
+ let min = endDate.getMinutes()
227
+ let sec = endDate.getSeconds()
228
+ return endDate.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (day < 10 ? '0' + day : day) +
229
+ ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
230
+ // return a
231
+ }
232
+
233
+ // 通过地址栏的参数获取参数内容
234
+ export function getUrlParames (param) {
235
+ var query = window.location.search
236
+ var iLen = param.length
237
+ var iStart = query.indexOf(param)
238
+ if (iStart === -1) {
239
+ return ''
240
+ }
241
+ iStart += iLen + 1
242
+ var iEnd = query.indexOf('&', iStart)
243
+ if (iEnd === -1) {
244
+ return query.substring(iStart)
245
+ }
246
+ return query.substring(iStart, iEnd)
247
+ }
248
+
249
+ // 从地址栏获取加密的参数
250
+ export function getUrlCompileParames (param) {
251
+ var query = uncompileStr(window.location.search.slice(1, window.location.search.length))
252
+ var iLen = param.length
253
+ var iStart = query.indexOf(param)
254
+ if (iStart === -1) {
255
+ return ''
256
+ }
257
+ iStart += iLen + 1
258
+ var iEnd = query.indexOf('&', iStart)
259
+ if (iEnd === -1) {
260
+ return query.substring(iStart)
261
+ }
262
+ return query.substring(iStart, iEnd)
263
+ }
264
+
265
+ // 对字符串进行加密
266
+ export function compileStr (code) {
267
+ let c = String.fromCharCode(code.charCodeAt(0) + code.length)
268
+ for (let i = 1; i < code.length; i++) {
269
+ c += String.fromCharCode(code.charCodeAt(i) + code.charCodeAt(i - 1))
270
+ }
271
+ return escape(c)
272
+ }
273
+ // 字符串进行解密
274
+ export function uncompileStr (code) {
275
+ code = unescape(code)
276
+ let c = String.fromCharCode(code.charCodeAt(0) - code.length)
277
+ for (var i = 1; i < code.length; i++) {
278
+ c += String.fromCharCode(code.charCodeAt(i) - c.charCodeAt(i - 1))
279
+ }
280
+ return c
281
+ }
282
+
283
+ export function dateDescripte (date) {
284
+ let nowTime = new Date().getTime()
285
+ let oldTime = new Date(date).getTime()
286
+ let timeDiff = nowTime - oldTime
287
+ // 规则说明
288
+ // 小于等于2分钟为刚刚
289
+ // 大于2分钟小于等于1小时为取整的分钟前(例如:35分钟前)
290
+ // 大于1小时小于等于24小时为取整的小时前(例如:15小时前)
291
+ // 大于24小时小于等于30天为取整的天前(例如:12天前)
292
+ // 大于30天小于等于12月为取整的月前,月份统一为30天一月,不做额外处理(例如:3个月前)
293
+ // 大于365取整的年前,(例如:2年前)
294
+ let minute = 1000 * 60
295
+ let hour = minute * 60
296
+ let day = hour * 24
297
+ let month = day * 30
298
+ let year = month * 12
299
+ let des = ''
300
+ if (timeDiff <= minute * 2) {
301
+ des = '刚刚'
302
+ } else if (minute * 2 < timeDiff && timeDiff < hour) {
303
+ des = `${Math.floor(timeDiff / minute)}分钟前`
304
+ } else if (hour < timeDiff && timeDiff <= day) {
305
+ des = `${Math.floor(timeDiff / hour)}小时前`
306
+ } else if (day < timeDiff && timeDiff <= month) {
307
+ des = `${Math.floor(timeDiff / day)}天前`
308
+ } else if (month < timeDiff && timeDiff <= year) {
309
+ des = `${Math.floor(timeDiff / month)}个月前`
310
+ } else if (year < timeDiff) {
311
+ des = `${Math.floor(timeDiff / year)}年前`
312
+ }
313
+ return des
314
+ }
315
+
316
+ export function nextMonth20 (date) {
317
+ let ds = date.split('-')
318
+ let nextMonth = ds[1] - 0 + 1
319
+ return ds[0] + '-' + (nextMonth < 10 ? '0' + nextMonth : nextMonth) + '-20 00:00:00'
320
+ }
321
+ //
322
+ export function dateSwitch(fmt,dateStr,times){
323
+ let date=new Date(dateStr).getTime()+times
324
+ return this.dateFormat(fmt,new Date(date))
325
+ }
326
+ // 时间格式化
327
+ export function dateFormat(fmt, date) {
328
+ let ret;
329
+ const opt = {
330
+ "y+": date.getFullYear().toString(), // 年
331
+ "M+": (date.getMonth() + 1).toString(), // 月
332
+ "d+": date.getDate().toString(), // 日
333
+ "h+": date.getHours().toString(), // 时
334
+ "m+": date.getMinutes().toString(), // 分
335
+ "s+": date.getSeconds().toString() // 秒
336
+ // 有其他格式化字符需求可以继续添加,必须转化成字符串
337
+ }
338
+ for (let k in opt) {
339
+ ret = new RegExp("(" + k + ")").exec(fmt);
340
+ if (ret) {
341
+ fmt = fmt.replace(ret[1], (ret[1].length == 1) ? (opt[k]) : (opt[k].padStart(ret[1].length, "0")))
342
+ }
343
+ }
344
+ return fmt
345
+ }
346
+ // export function getNowDate () {
347
+ // // 求取当前时间的工具
348
+ // let myweekday = ''
349
+ // let year = ''
350
+ // let mydate = new Date()
351
+ // myweekday = mydate.getDay()
352
+ // let mymonth = mydate.getMonth() + 1
353
+ // let myday = mydate.getDate()
354
+ // let myyear = mydate.getYear()
355
+ // year = (myyear > 200) ? myyear : 1900 + myyear
356
+ // let week = ['星期日','星期一','星期二','星期三','星期四','星期五','星期日','星期六']
357
+ // let weekday = week[myweekday]
358
+ //
359
+ // // document.write("<font color=#ffffff>今天是 "+year+"年"+mymonth+"月"+myday+"日 "+weekday+"</font>");
360
+ // return year + '年' + mymonth + '月' + myday + '日 ' + weekday
361
+ // }
362
+ //
363
+ // export function getImgsrc (name) {
364
+ // return "http://127.0.0.1:8081/images/"+name+".gif"
365
+ // }
366
+ //
367
+ // export var f;