api.js 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. import request from "@utils/request";
  2. /**登录*/
  3. export function checkToken(params) {
  4. return request({
  5. url: `/api/yonghong/checkToken?token=${params}`,
  6. method: "GEt",
  7. });
  8. }
  9. /**碳排放 */
  10. export function dataengineCenterOneservice(params) {
  11. return request({
  12. url: "/dataengine-center-oneservice/list/1356250396177503367",
  13. method: "POST",
  14. data: {
  15. "apiId": "1356250396177503367",
  16. "appKey": "200000134",
  17. "env": "PROD",
  18. "reqProtocol": 1,
  19. "returnFields": [
  20. "byear",
  21. "missionsIntensity",
  22. "missionsTotal",
  23. "biz_id"
  24. ],
  25. "pageNum": 1,
  26. "pageSize": 10,
  27. "useResultCache": false
  28. },
  29. headers: {
  30. sign: '19c3cdb58b80e44f2490b8eba3b7f938',
  31. account: 'yunxi_fuxue',
  32. 'Cache-Control': 'no-cache',
  33. apiId: '1356250396177503367',
  34. appKey: '200000134',
  35. execType: '3',
  36. env: 'PROD',
  37. }
  38. });
  39. }
  40. /**库存金额 */
  41. export function momeyService(params) {
  42. return request({
  43. url: "/dataengine-center-oneservice/list/1431063632208685082",
  44. method: "POST",
  45. data: {
  46. "apiId": "1431063632208685082",
  47. "appKey": "200000134",
  48. "env": "PROD",
  49. "reqProtocol": 1,
  50. "returnFields": [
  51. "indexName",
  52. "prodCatgory",
  53. "indexValue"
  54. ],
  55. "pageNum": 1,
  56. "pageSize": 10,
  57. "useResultCache": false
  58. },
  59. headers: {
  60. sign: '6203b66920c569f8228c3cb921f3ffb8',
  61. account: 'yunxi_fuxue',
  62. 'Cache-Control': 'no-cache',
  63. apiId: '1431063632208685082',
  64. appKey: '200000134',
  65. execType: '3',
  66. env: 'PROD',
  67. }
  68. });
  69. }
  70. /**百万工时损工率 产量计划完成率*/
  71. export function timeService(params) {
  72. return request({
  73. url: "/dataengine-center-oneservice/list/1431063077222574093",
  74. method: "POST",
  75. data: {
  76. "apiId": "1431063077222574093",
  77. "appKey": "200000134",
  78. "env": "PROD",
  79. "reqProtocol": 1,
  80. "returnFields": [
  81. "indexName",
  82. "factoryName",
  83. "indexValue"
  84. ],
  85. "pageNum": 1,
  86. "pageSize": 10,
  87. "useResultCache": false
  88. },
  89. headers: {
  90. sign: '9ab2d57a785c513f84cd0c5fb4fad7da',
  91. account: 'yunxi_fuxue',
  92. 'Cache-Control': 'no-cache',
  93. apiId: '1431063077222574093',
  94. appKey: '200000134',
  95. execType: '3',
  96. env: 'PROD',
  97. }
  98. });
  99. }
  100. /**产值+发货量+产量+库存*/
  101. export function numberService(params) {
  102. return request({
  103. url: "/dataengine-center-oneservice/list/1431049820141217793",
  104. method: "POST",
  105. data: {
  106. "apiId": "1431049820141217793",
  107. "appKey": "200000134",
  108. "env": "PROD",
  109. "reqProtocol": 1,
  110. "returnFields": [
  111. "indexName",
  112. "indexValue"
  113. ],
  114. "pageNum": 1,
  115. "pageSize": 10,
  116. "useResultCache": false
  117. },
  118. headers: {
  119. sign: '915848290d3e70a7b8e7fbe911e12725',
  120. account: 'yunxi_fuxue',
  121. 'Cache-Control': 'no-cache',
  122. apiId: '1431049820141217793',
  123. appKey: '200000134',
  124. execType: '3',
  125. env: 'PROD',
  126. }
  127. });
  128. }
  129. /**近30天产量*/
  130. export function mondService(params) {
  131. return request({
  132. url: "/dataengine-center-oneservice/list/1431065871110334506",
  133. method: "POST",
  134. data: {
  135. "apiId": "1431065871110334506",
  136. "appKey": "200000134",
  137. "env": "PROD",
  138. "reqProtocol": 1,
  139. "returnFields": [
  140. "indexName",
  141. "indexDate",
  142. "indexValue",
  143. "factoryProdcution"
  144. ],
  145. "pageNum": 1,
  146. "pageSize": 30,
  147. "useResultCache": false
  148. },
  149. headers: {
  150. sign: 'f84acfc47847e71c67be5569b9289291',
  151. account: 'yunxi_fuxue',
  152. 'Cache-Control': 'no-cache',
  153. apiId: '1431065871110334506',
  154. appKey: '200000134',
  155. execType: '3',
  156. env: 'PROD',
  157. }
  158. });
  159. }
  160. /**月度产量/发货量+一次合格率*/
  161. export function twoService(params) {
  162. return request({
  163. url: "/dataengine-center-oneservice/list/1431065780441016356",
  164. method: "POST",
  165. data: {
  166. "apiId": "1431065780441016356",
  167. "appKey": "200000134",
  168. "env": "PROD",
  169. "reqProtocol": 1,
  170. "returnFields": [
  171. "bMonth",
  172. "proQty",
  173. "deliveryQty",
  174. "qcRate",
  175. "targeRate",
  176. ],
  177. "pageNum": 1,
  178. "pageSize": 10,
  179. "useResultCache": false
  180. },
  181. headers: {
  182. sign: '178ae23014a9fecad15ffa9a88ed84f1',
  183. account: 'yunxi_fuxue',
  184. 'Cache-Control': 'no-cache',
  185. apiId: '1431065780441016356',
  186. appKey: '200000134',
  187. execType: '3',
  188. env: 'PROD',
  189. }
  190. });
  191. }
  192. /**更新日期*/
  193. export function updateTimeService(params) {
  194. return request({
  195. url: "/dataengine-center-oneservice/list/1356778817327502618",
  196. method: "POST",
  197. data: {
  198. "apiId": "1356778817327502618",
  199. "appKey": "200000134",
  200. "env": "PROD",
  201. "reqProtocol": 1,
  202. "returnFields": [
  203. "etlTime"
  204. ],
  205. "pageNum": 1,
  206. "pageSize": 10,
  207. "useResultCache": false
  208. },
  209. headers: {
  210. sign: '4365b6564b25c852fcf0228188f48114',
  211. account: 'yunxi_fuxue',
  212. 'Cache-Control': 'no-cache',
  213. apiId: '1356778817327502618',
  214. appKey: '200000134',
  215. execType: '3',
  216. env: 'PROD',
  217. }
  218. });
  219. }