product.js 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. /**
  2. * 成品服务
  3. * 冯海夫
  4. * 20201008
  5. */
  6. var ServiceProduct = {
  7. // 待发货成品
  8. getWatingSendList: function () {
  9. const productList = [];
  10. productList.push({
  11. warehouseName: "A仓库",
  12. materialCode: "10001",
  13. materialName: "物料A",
  14. specs: "3*4",
  15. sendSum: "10",
  16. planSendDate: "09月18日"
  17. });
  18. productList.push({
  19. warehouseName: "A仓库",
  20. materialCode: "10002",
  21. materialName: "物料B",
  22. specs: "3*4",
  23. sendSum: "20",
  24. planSendDate: "09月18日"
  25. });
  26. productList.push({
  27. warehouseName: "A仓库",
  28. materialCode: "10003",
  29. materialName: "物料C",
  30. specs: "3*4",
  31. sendSum: "30",
  32. planSendDate: "09月18日"
  33. });
  34. productList.push({
  35. warehouseName: "B仓库",
  36. materialCode: "10004",
  37. materialName: "物料D",
  38. specs: "3*4",
  39. sendSum: "40",
  40. planSendDate: "09月18日"
  41. });
  42. productList.push({
  43. warehouseName: "B仓库",
  44. materialCode: "10005",
  45. materialName: "物料E",
  46. specs: "3*4",
  47. sendSum: "50",
  48. planSendDate: "09月18日"
  49. });
  50. productList.push({
  51. warehouseName: "B仓库",
  52. materialCode: "10006",
  53. materialName: "物料F",
  54. specs: "3*4",
  55. sendSum: "60",
  56. planSendDate: "09月18日"
  57. });
  58. return productList;
  59. },
  60. // 已入库数量
  61. getSendSum: function () {
  62. return 9;
  63. },
  64. // 月成品出货统计,根据成品维度
  65. getMonthSend: function () {
  66. return {
  67. "成品A": 20,
  68. "成品B": 100,
  69. "成品C": 80,
  70. "成品D": 150,
  71. "成品E": 200,
  72. };
  73. },
  74. // 月项目发货统计,根据项目维度
  75. getMonthSendByProject: function () {
  76. return {
  77. "项目A": 20,
  78. "项目B": 100,
  79. "项目C": 80,
  80. "项目D": 150,
  81. "项目E": 200,
  82. };
  83. },
  84. // 成品库存,物料维度
  85. getStockList: function () {
  86. return {
  87. "成品A": 800,
  88. "成品B": 900,
  89. "成品C": 1000,
  90. "成品D": 700,
  91. "成品E": 600,
  92. "成品F": 1100,
  93. "成品G": 500
  94. };
  95. },
  96. // 根据产品分类获取质量异常数量
  97. getQualityExceptionByCategory: function () {
  98. return MethodGetService.methodGet("/fbsWorkshopDispatchList/fbsWorkshopDispatchList/getAbnormalHoursMonthReport");
  99. // return {
  100. // "分类A": 800,
  101. // "分类B": 900,
  102. // "分类C": 1000,
  103. // "分类D": 700,
  104. // "分类E": 600,
  105. // "分类F": 1100,
  106. // "分类G": 500
  107. // };
  108. },
  109. // 某月产品良数量
  110. getMonthGood: function () {
  111. const list = [];
  112. list.push({
  113. label: "产品A",
  114. sum1: 48,
  115. sum2: 50
  116. });
  117. list.push({
  118. label: "产品B",
  119. sum1: 80,
  120. sum2: 90
  121. });
  122. list.push({
  123. label: "产品C",
  124. sum1: 47,
  125. sum2: 50
  126. });
  127. list.push({
  128. label: "产品D",
  129. sum1: 40,
  130. sum2: 50
  131. });
  132. list.push({
  133. label: "产品E",
  134. sum1: 42,
  135. sum2: 50
  136. });
  137. list.push({
  138. label: "产品F",
  139. sum1: 44,
  140. sum2: 50
  141. });
  142. list.push({
  143. label: "产品G",
  144. sum1: 45,
  145. sum2: 50
  146. });
  147. // return list;
  148. return MethodGetService.methodGet("/fbsAbnormalWorkingHours/fbsAbnormalWorkingHours/getRejectsNumber");
  149. },
  150. // 月制程异常,根据分类
  151. getMonthExceptionByCategory: function () {
  152. // return {
  153. // "分类A": 600,
  154. // "分类B": 500,
  155. // "分类C": 300,
  156. // "分类D": 200,
  157. // "分类E": 100,
  158. // "分类F": 200,
  159. // "分类G": 400
  160. // };
  161. return MethodGetService.methodGet("/fbsAbnormalWorkingHours/fbsAbnormalWorkingHours/getQualityType");
  162. },
  163. // 周成品入库数量,根据分类
  164. getWeekInByCategory: function () {
  165. // return {
  166. // "分类A": 500,
  167. // "分类B": 600,
  168. // "分类C": 800,
  169. // "分类D": 700,
  170. // "分类E": 600,
  171. // "分类F": 400,
  172. // "分类G": 500
  173. // };
  174. return MethodGetService.methodGet("/fbsMomOrder/fbsMomOrderdetail/getQualifiedInQtyWeek");
  175. },
  176. // 生产效率
  177. getProduceRate: function () {
  178. const rate = 95;
  179. return {
  180. name: "生产效率",
  181. value: rate
  182. };
  183. },
  184. // 日生产效率
  185. getDayProduceRate: function () {
  186. const rate = 90;
  187. return {
  188. name: "生产效率",
  189. value: rate
  190. };
  191. },
  192. // 某日产品良数量
  193. getDayGood: function () {
  194. const list = [];
  195. list.push({
  196. label: "产品A",
  197. sum1: 48,
  198. sum2: 50
  199. });
  200. list.push({
  201. label: "产品B",
  202. sum1: 80,
  203. sum2: 90
  204. });
  205. list.push({
  206. label: "产品C",
  207. sum1: 47,
  208. sum2: 50
  209. });
  210. list.push({
  211. label: "产品D",
  212. sum1: 40,
  213. sum2: 50
  214. });
  215. list.push({
  216. label: "产品E",
  217. sum1: 42,
  218. sum2: 50
  219. });
  220. list.push({
  221. label: "产品F",
  222. sum1: 44,
  223. sum2: 50
  224. });
  225. list.push({
  226. label: "产品G",
  227. sum1: 45,
  228. sum2: 50
  229. });
  230. return list;
  231. },
  232. // 日质量异常,根据分类
  233. getDayExceptionByCategory: function () {
  234. return {
  235. "分类A": 600,
  236. "分类B": 500,
  237. "分类C": 300,
  238. "分类D": 200,
  239. "分类E": 100,
  240. "分类F": 200,
  241. "分类G": 400
  242. };
  243. },
  244. }