monthly.js 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. import request from '@/utils/request'
  2. // 修改Shoudown Hour
  3. export function updateShoudownHour(data) {
  4. return request({
  5. url: '/production/monthly/shoudownHour',
  6. method: 'put',
  7. data: data
  8. })
  9. }
  10. // 修改Aromatics Utility Consumption
  11. export function updateAromaticsUtilityConsumption(data) {
  12. return request({
  13. url: '/production/monthly/aromaticsUtilityConsumption',
  14. method: 'put',
  15. data: data
  16. })
  17. }
  18. // 修改Cracker Utility Consumption
  19. export function updateCrackerUtilityConsumption(data) {
  20. return request({
  21. url: '/production/monthly/crackerUtilityConsumption',
  22. method: 'put',
  23. data: data
  24. })
  25. }
  26. // 修改Eligible Product Rate
  27. export function updateEligibleProductRate(data) {
  28. return request({
  29. url: '/production/monthly/eligibleProductRate',
  30. method: 'put',
  31. data: data
  32. })
  33. }
  34. // 按年份查询Summary
  35. export function getSummary(year) {
  36. return request({
  37. url: '/production/monthly/summary/' + year,
  38. method: 'get'
  39. })
  40. }
  41. // 按年份查询KBI
  42. export function getKbi(year) {
  43. return request({
  44. url: '/production/monthly/kbi/' + year,
  45. method: 'get'
  46. })
  47. }
  48. // 按年份查询SCTF Utility Consumption
  49. export function getSCTFUtilityConsumption(year) {
  50. return request({
  51. url: '/production/monthly/SCTFUtilityConsumption/' + year,
  52. method: 'get'
  53. })
  54. }
  55. // 按年份查询SUB Utility Consumption
  56. export function getSUBUtilityConsumption(year) {
  57. return request({
  58. url: '/production/monthly/SUBUtilityConsumption/' + year,
  59. method: 'get'
  60. })
  61. }
  62. // 按年份查询SCTU Utility Consumption
  63. export function getSCTUUtilityConsumption(year) {
  64. return request({
  65. url: '/production/monthly/SCTUUtilityConsumption/' + year,
  66. method: 'get'
  67. })
  68. }
  69. // 按年份查询Chemical Consume
  70. export function getChemicalConsume(year) {
  71. return request({
  72. url: '/production/monthly/chemicalConsume/' + year,
  73. method: 'get'
  74. })
  75. }
  76. // 按年份查询Otherside
  77. export function getOtherside(year) {
  78. return request({
  79. url: '/production/monthly/otherside/' + year,
  80. method: 'get'
  81. })
  82. }
  83. // 按年份查询Shoudown Hour
  84. export function getShoudownHour(year) {
  85. return request({
  86. url: '/production/monthly/shoudownHour/' + year,
  87. method: 'get'
  88. })
  89. }
  90. // 按年份查询Runing Rate
  91. export function getRuningRate(year) {
  92. return request({
  93. url: '/production/monthly/runingRate/' + year,
  94. method: 'get'
  95. })
  96. }
  97. // 按年份查询Cost Fr Ethylene
  98. export function getCostFrEthylene(year) {
  99. return request({
  100. url: '/production/monthly/costFrEthylene/' + year,
  101. method: 'get'
  102. })
  103. }
  104. // 按年份查询Plant Load
  105. export function getPlantLoad(year) {
  106. return request({
  107. url: '/production/monthly/plantLoad/' + year,
  108. method: 'get'
  109. })
  110. }
  111. // 按年份查询Aromatics Energy Consumption
  112. export function getAromaticsEnergyConsumption(year) {
  113. return request({
  114. url: '/production/monthly/aromaticsEnergyConsumption/' + year,
  115. method: 'get'
  116. })
  117. }
  118. // 按年份查询Aromatics Utility Consumption
  119. export function getAromaticsUtilityConsumption(year) {
  120. return request({
  121. url: '/production/monthly/aromaticsUtilityConsumption/' + year,
  122. method: 'get'
  123. })
  124. }
  125. // 按年份查询Cracker Energy Consumption
  126. export function getCrackerEnergyConsumption(year) {
  127. return request({
  128. url: '/production/monthly/crackerEnergyConsumption/' + year,
  129. method: 'get'
  130. })
  131. }
  132. // 按年份查询Cracker Utility Consumption
  133. export function getCrackerUtilityConsumption(year) {
  134. return request({
  135. url: '/production/monthly/crackerUtilityConsumption/' + year,
  136. method: 'get'
  137. })
  138. }
  139. // 按年份查询Product Yield
  140. export function getProductYield(year) {
  141. return request({
  142. url: '/production/monthly/productYield/' + year,
  143. method: 'get'
  144. })
  145. }
  146. // 按年份查询Eligible Product Rate
  147. export function getEligibleProductRate(year) {
  148. return request({
  149. url: '/production/monthly/eligibleProductRate/' + year,
  150. method: 'get'
  151. })
  152. }
  153. // 按年份查询Aromatics Output Product
  154. export function getAromaticsOutputProduct(year) {
  155. return request({
  156. url: '/production/monthly/aromaticsOutputProduct/' + year,
  157. method: 'get'
  158. })
  159. }
  160. // 按年份查询Aromatics Raw Material
  161. export function getAromaticsRawMaterial(year) {
  162. return request({
  163. url: '/production/monthly/aromaticsRawMaterial/' + year,
  164. method: 'get'
  165. })
  166. }
  167. // 按年份查询Cracker Output Product
  168. export function getCrackerOutputProduct(year) {
  169. return request({
  170. url: '/production/monthly/crackerOutputProduct/' + year,
  171. method: 'get'
  172. })
  173. }
  174. // 按年份查询Cracker Raw Material
  175. export function getCrackerRawMaterial(year) {
  176. return request({
  177. url: '/production/monthly/crackerRawMaterial/' + year,
  178. method: 'get'
  179. })
  180. }
  181. // 查询趋势分析数据
  182. export function getAnalysisData(query) {
  183. return request({
  184. url: '/production/monthly/analysis',
  185. method: 'get',
  186. params: query
  187. })
  188. }
  189. // 查询每月生产报告列表
  190. export function listReport(query) {
  191. return request({
  192. url: '/production/monthly/list',
  193. method: 'get',
  194. params: query
  195. })
  196. }
  197. // 查询每月生产报告详细
  198. export function getReport(id) {
  199. return request({
  200. url: '/production/monthly/' + id,
  201. method: 'get'
  202. })
  203. }
  204. // 新增每月生产报告
  205. export function addReport(data) {
  206. return request({
  207. url: '/production/monthly',
  208. method: 'post',
  209. data: data
  210. })
  211. }
  212. // 修改每月生产报告
  213. export function updateReport(data) {
  214. return request({
  215. url: '/production/monthly',
  216. method: 'put',
  217. data: data
  218. })
  219. }
  220. // 删除每月生产报告
  221. export function delReport(id) {
  222. return request({
  223. url: '/production/monthly/' + id,
  224. method: 'delete'
  225. })
  226. }
  227. // 导出每月生产报告
  228. export function exportReport(query) {
  229. return request({
  230. url: '/production/monthly/export',
  231. method: 'get',
  232. params: query
  233. })
  234. }