material.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  1. /**
  2. * 材料服务
  3. * 冯海夫
  4. * 20201008
  5. */
  6. var ServiceMaterial={
  7. // 待入库材料
  8. getWatingInList:function(){
  9. const materialList = [];
  10. materialList.push({
  11. vendorName:"A公司",
  12. materialCode:"10001",
  13. materialName:"物料A",
  14. specs:"3*4",
  15. arriveSum:"10",
  16. arriveDate:"09月18日",
  17. memo:""
  18. });
  19. materialList.push({
  20. vendorName:"B公司",
  21. materialCode:"10002",
  22. materialName:"物料B",
  23. specs:"3*4",
  24. arriveSum:"20",
  25. arriveDate:"09月18日",
  26. memo:""
  27. });
  28. materialList.push({
  29. vendorName:"C公司",
  30. materialCode:"10003",
  31. materialName:"物料C",
  32. specs:"3*4",
  33. arriveSum:"30",
  34. arriveDate:"09月18日",
  35. memo:""
  36. });
  37. materialList.push({
  38. vendorName:"D公司",
  39. materialCode:"10004",
  40. materialName:"物料D",
  41. specs:"3*4",
  42. arriveSum:"40",
  43. arriveDate:"09月18日",
  44. memo:""
  45. });
  46. materialList.push({
  47. vendorName:"E公司",
  48. materialCode:"10005",
  49. materialName:"物料E",
  50. specs:"3*4",
  51. arriveSum:"50",
  52. arriveDate:"09月18日",
  53. memo:""
  54. });
  55. materialList.push({
  56. vendorName:"F公司",
  57. materialCode:"10006",
  58. materialName:"物料F",
  59. specs:"3*4",
  60. arriveSum:"60",
  61. arriveDate:"09月18日",
  62. memo:""
  63. });
  64. var i = 1;
  65. $.each(materialList, function(index,item){
  66. item.index = i++;
  67. })
  68. return materialList;
  69. },
  70. // 已入库数量
  71. getInSum:function(){
  72. return 8;
  73. },
  74. // 待检材料
  75. getWatingCheckList:function(){
  76. const materialList = [];
  77. materialList.push({
  78. vendorName:"A公司",
  79. materialCode:"10001",
  80. materialName:"物料A",
  81. specs:"3*4",
  82. arriveSum:"10",
  83. arriveDate:"09月18日"
  84. });
  85. materialList.push({
  86. vendorName:"B公司",
  87. materialCode:"10002",
  88. materialName:"物料B",
  89. specs:"3*4",
  90. arriveSum:"20",
  91. arriveDate:"09月18日"
  92. });
  93. materialList.push({
  94. vendorName:"C公司",
  95. materialCode:"10003",
  96. materialName:"物料C",
  97. specs:"3*4",
  98. arriveSum:"30",
  99. arriveDate:"09月18日"
  100. });
  101. materialList.push({
  102. vendorName:"D公司",
  103. materialCode:"10004",
  104. materialName:"物料D",
  105. specs:"3*4",
  106. arriveSum:"40",
  107. arriveDate:"09月18日"
  108. });
  109. materialList.push({
  110. vendorName:"E公司",
  111. materialCode:"10005",
  112. materialName:"物料E",
  113. specs:"3*4",
  114. arriveSum:"50",
  115. arriveDate:"09月18日"
  116. });
  117. materialList.push({
  118. vendorName:"F公司",
  119. materialCode:"10006",
  120. materialName:"物料F",
  121. specs:"3*4",
  122. arriveSum:"60",
  123. arriveDate:"09月18日"
  124. });
  125. return materialList;
  126. },
  127. // 已检数量
  128. getCheckSum:function(){
  129. return 10;
  130. },
  131. // 安全库存
  132. getStockList:function(){
  133. const materialList = [];
  134. materialList.push({
  135. materialCode:"10001",
  136. materialName:"物料A",
  137. specs:"3*4",
  138. realStockSum:"10",
  139. safeStockSum:"20"
  140. });
  141. materialList.push({
  142. materialCode:"10002",
  143. materialName:"物料B",
  144. specs:"3*4",
  145. realStockSum:"100",
  146. safeStockSum:"80"
  147. });
  148. materialList.push({
  149. materialCode:"10001",
  150. materialName:"物料A",
  151. specs:"3*4",
  152. realStockSum:"10",
  153. safeStockSum:"20"
  154. });
  155. materialList.push({
  156. materialCode:"10002",
  157. materialName:"物料B",
  158. specs:"3*4",
  159. realStockSum:"100",
  160. safeStockSum:"80"
  161. });materialList.push({
  162. materialCode:"10001",
  163. materialName:"物料A",
  164. specs:"3*4",
  165. realStockSum:"10",
  166. safeStockSum:"20"
  167. });
  168. materialList.push({
  169. materialCode:"10002",
  170. materialName:"物料B",
  171. specs:"3*4",
  172. realStockSum:"100",
  173. safeStockSum:"80"
  174. });materialList.push({
  175. materialCode:"10001",
  176. materialName:"物料A",
  177. specs:"3*4",
  178. realStockSum:"10",
  179. safeStockSum:"20"
  180. });
  181. materialList.push({
  182. materialCode:"10002",
  183. materialName:"物料B",
  184. specs:"3*4",
  185. realStockSum:"100",
  186. safeStockSum:"80"
  187. });materialList.push({
  188. materialCode:"10001",
  189. materialName:"物料A",
  190. specs:"3*4",
  191. realStockSum:"10",
  192. safeStockSum:"20"
  193. });
  194. materialList.push({
  195. materialCode:"10002",
  196. materialName:"物料B",
  197. specs:"3*4",
  198. realStockSum:"100",
  199. safeStockSum:"80"
  200. });materialList.push({
  201. materialCode:"10001",
  202. materialName:"物料A",
  203. specs:"3*4",
  204. realStockSum:"10",
  205. safeStockSum:"20"
  206. });
  207. materialList.push({
  208. materialCode:"10002",
  209. materialName:"物料B",
  210. specs:"3*4",
  211. realStockSum:"100",
  212. safeStockSum:"80"
  213. });materialList.push({
  214. materialCode:"10001",
  215. materialName:"物料A",
  216. specs:"3*4",
  217. realStockSum:"10",
  218. safeStockSum:"20"
  219. });
  220. materialList.push({
  221. materialCode:"10002",
  222. materialName:"物料B",
  223. specs:"3*4",
  224. realStockSum:"100",
  225. safeStockSum:"80"
  226. });
  227. materialList.push({
  228. materialCode:"10001",
  229. materialName:"物料A",
  230. specs:"3*4",
  231. realStockSum:"10",
  232. safeStockSum:"20"
  233. });
  234. return materialList;
  235. },
  236. // 工单备料
  237. getListByOrderSheet:function(){
  238. const materialList = [];
  239. materialList.push({
  240. orderSheetCode:"G10001",
  241. materialCode:"10001",
  242. materialName:"物料A",
  243. specs:"3*4",
  244. needSum:"20",
  245. stockSum:"20"
  246. });
  247. materialList.push({
  248. orderSheetCode:"G10001",
  249. materialCode:"10002",
  250. materialName:"物料B",
  251. specs:"3*4",
  252. needSum:"10",
  253. stockSum:"30"
  254. });
  255. materialList.push({
  256. orderSheetCode:"G10002",
  257. materialCode:"10003",
  258. materialName:"物料C",
  259. specs:"3*4",
  260. needSum:"40",
  261. stockSum:"20"
  262. });
  263. materialList.push({
  264. orderSheetCode:"G10003",
  265. materialCode:"10004",
  266. materialName:"物料D",
  267. specs:"3*4",
  268. needSum:"30",
  269. stockSum:"30"
  270. });
  271. materialList.push({
  272. orderSheetCode:"G10004",
  273. materialCode:"10005",
  274. materialName:"物料E",
  275. specs:"3*4",
  276. needSum:"20",
  277. stockSum:"20"
  278. });
  279. materialList.push({
  280. orderSheetCode:"G10001",
  281. materialCode:"10001",
  282. materialName:"物料A",
  283. specs:"3*4",
  284. needSum:"20",
  285. stockSum:"20"
  286. });
  287. materialList.push({
  288. orderSheetCode:"G10004",
  289. materialCode:"10005",
  290. materialName:"物料E",
  291. specs:"3*4",
  292. needSum:"20",
  293. stockSum:"20"
  294. });
  295. return materialList;
  296. },
  297. // 工单缺料
  298. getListByOrderSheetNotEnough:function(){
  299. const materialList = [];
  300. materialList.push({
  301. orderSheetCode:"G10001",
  302. materialCode:"10001",
  303. materialName:"物料A",
  304. specs:"3*4",
  305. needSum:"30",
  306. stockSum:"20"
  307. });
  308. materialList.push({
  309. orderSheetCode:"G10001",
  310. materialCode:"10002",
  311. materialName:"物料B",
  312. specs:"3*4",
  313. needSum:"55",
  314. stockSum:"30"
  315. });
  316. materialList.push({
  317. orderSheetCode:"G10002",
  318. materialCode:"10003",
  319. materialName:"物料C",
  320. specs:"3*4",
  321. needSum:"40",
  322. stockSum:"20"
  323. });
  324. materialList.push({
  325. orderSheetCode:"G10003",
  326. materialCode:"10004",
  327. materialName:"物料D",
  328. specs:"3*4",
  329. needSum:"40",
  330. stockSum:"30"
  331. });
  332. materialList.push({
  333. orderSheetCode:"G10004",
  334. materialCode:"10005",
  335. materialName:"物料E",
  336. specs:"3*4",
  337. needSum:"25",
  338. stockSum:"20"
  339. });
  340. return materialList;
  341. },
  342. // 工单齐套
  343. getListByOrderSheetEnough:function(){
  344. const materialList = [];
  345. materialList.push({
  346. orderSheetCode:"G10001",
  347. materialCode:"10001",
  348. materialName:"物料A",
  349. specs:"3*4",
  350. needSum:"10",
  351. stockSum:"20"
  352. });
  353. materialList.push({
  354. orderSheetCode:"G10001",
  355. materialCode:"10002",
  356. materialName:"物料B",
  357. specs:"3*4",
  358. needSum:"15",
  359. stockSum:"30"
  360. });
  361. materialList.push({
  362. orderSheetCode:"G10002",
  363. materialCode:"10003",
  364. materialName:"物料C",
  365. specs:"3*4",
  366. needSum:"20",
  367. stockSum:"20"
  368. });
  369. materialList.push({
  370. orderSheetCode:"G10003",
  371. materialCode:"10004",
  372. materialName:"物料D",
  373. specs:"3*4",
  374. needSum:"30",
  375. stockSum:"30"
  376. });
  377. materialList.push({
  378. orderSheetCode:"G10003",
  379. materialCode:"10004",
  380. materialName:"物料D",
  381. specs:"3*4",
  382. needSum:"30",
  383. stockSum:"30"
  384. });
  385. materialList.push({
  386. orderSheetCode:"G10003",
  387. materialCode:"10004",
  388. materialName:"物料D",
  389. specs:"3*4",
  390. needSum:"30",
  391. stockSum:"30"
  392. });
  393. materialList.push({
  394. orderSheetCode:"G10003",
  395. materialCode:"10004",
  396. materialName:"物料D",
  397. specs:"3*4",
  398. needSum:"30",
  399. stockSum:"30"
  400. });
  401. materialList.push({
  402. orderSheetCode:"G10003",
  403. materialCode:"10004",
  404. materialName:"物料D",
  405. specs:"3*4",
  406. needSum:"30",
  407. stockSum:"30"
  408. });
  409. materialList.push({
  410. orderSheetCode:"G10003",
  411. materialCode:"10004",
  412. materialName:"物料D",
  413. specs:"3*4",
  414. needSum:"30",
  415. stockSum:"30"
  416. });
  417. materialList.push({
  418. orderSheetCode:"G10004",
  419. materialCode:"10005",
  420. materialName:"物料E",
  421. specs:"3*4",
  422. needSum:"15",
  423. stockSum:"20"
  424. });
  425. return materialList;
  426. },
  427. // 领料申请通知
  428. getApplyList:function(){
  429. const materialList = [];
  430. materialList.push({
  431. orderSheetCode:"G10001",
  432. materialCode:"10001",
  433. materialName:"物料A",
  434. specs:"3*4",
  435. applyPerson:"张三",
  436. applysum:"20"
  437. });
  438. materialList.push({
  439. orderSheetCode:"G10001",
  440. materialCode:"10002",
  441. materialName:"物料B",
  442. specs:"3*4",
  443. applyPerson:"张三",
  444. applysum:"20"
  445. });
  446. materialList.push({
  447. orderSheetCode:"G10002",
  448. materialCode:"10003",
  449. materialName:"物料C",
  450. specs:"3*4",
  451. applyPerson:"张三",
  452. applysum:"20"
  453. });
  454. materialList.push({
  455. orderSheetCode:"G10003",
  456. materialCode:"10004",
  457. materialName:"物料D",
  458. specs:"3*4",
  459. applyPerson:"张三",
  460. applysum:"20"
  461. });
  462. materialList.push({
  463. orderSheetCode:"G10004",
  464. materialCode:"10005",
  465. materialName:"物料E",
  466. specs:"3*4",
  467. applyPerson:"张三",
  468. applysum:"20"
  469. });
  470. return materialList;
  471. },
  472. // 领料申请完成数量
  473. getApplyCompleteSum:function(){
  474. return 10;
  475. },
  476. // 未来几天内到货计划
  477. getWillArriveList:function(days){
  478. const materialList = [];
  479. materialList.push({
  480. vendorName:"A公司",
  481. materialCode:"10001",
  482. materialName:"物料A",
  483. specs:"3*4",
  484. arriveSum:"10",
  485. arriveDate:"09月18日",
  486. memo:""
  487. });
  488. materialList.push({
  489. vendorName:"B公司",
  490. materialCode:"10002",
  491. materialName:"物料B",
  492. specs:"3*4",
  493. arriveSum:"20",
  494. arriveDate:"09月18日",
  495. memo:""
  496. });
  497. materialList.push({
  498. vendorName:"C公司",
  499. materialCode:"10003",
  500. materialName:"物料C",
  501. specs:"3*4",
  502. arriveSum:"30",
  503. arriveDate:"09月18日",
  504. memo:""
  505. });
  506. materialList.push({
  507. vendorName:"D公司",
  508. materialCode:"10004",
  509. materialName:"物料D",
  510. specs:"3*4",
  511. arriveSum:"40",
  512. arriveDate:"09月18日",
  513. memo:""
  514. });
  515. materialList.push({
  516. vendorName:"E公司",
  517. materialCode:"10005",
  518. materialName:"物料E",
  519. specs:"3*4",
  520. arriveSum:"50",
  521. arriveDate:"09月18日",
  522. memo:""
  523. });
  524. materialList.push({
  525. vendorName:"F公司",
  526. materialCode:"10006",
  527. materialName:"物料F",
  528. specs:"3*4",
  529. arriveSum:"60",
  530. arriveDate:"09月18日",
  531. memo:""
  532. });
  533. var i = 1;
  534. $.each(materialList, function(index,item){
  535. item.index = i++;
  536. })
  537. return materialList;
  538. },
  539. // 当天到货批数
  540. getTodayArriveSum:function(){
  541. return 100;
  542. },
  543. // 未来几天到货批数
  544. getWillArriveSum:function(days){
  545. return 300;
  546. },
  547. // 当月到货批数
  548. getThisMonthArriveSum:function(){
  549. return 7882;
  550. },
  551. // 未入库总批数
  552. getNotInSum:function(){
  553. return 90;
  554. },
  555. // 近6个月质量目标合格率比较
  556. getLastSixMonthQualityTargetCompare: function () {
  557. const list = [];
  558. list.push({
  559. month: "04",
  560. target: 98,
  561. real: 97
  562. });
  563. list.push({
  564. month: "05",
  565. target: 98,
  566. real: 96
  567. });
  568. list.push({
  569. month: "06",
  570. target: 98,
  571. real: 95
  572. });
  573. list.push({
  574. month: "07",
  575. target: 98,
  576. real: 99
  577. });
  578. list.push({
  579. month: "08",
  580. target: 98,
  581. real: 100
  582. });
  583. list.push({
  584. month: "09",
  585. target: 98,
  586. real: 98
  587. });
  588. $.each(list, function (index, item) {
  589. item.label = item.month;
  590. item.label1 = "质量目标";
  591. item.sum1 = item.target;
  592. item.label2 = "合格率";
  593. item.sum2 = item.real;
  594. });
  595. return list;
  596. },
  597. // 当月供应商合格率
  598. getPassRateByVendor: function () {
  599. return {
  600. "供应商A":98,
  601. "供应商B":95,
  602. "供应商C":94,
  603. "供应商D":93,
  604. "供应商E":99,
  605. "供应商F":97
  606. }
  607. },
  608. // 当月检验合格率
  609. getCheckRateByBatchno: function () {
  610. return {
  611. "07001":98,
  612. "07002":95,
  613. "07003":94,
  614. "07004":93,
  615. "07005":99,
  616. "07006":97
  617. }
  618. },
  619. // 未来几天内到货计划
  620. getQualityUnpassList:function(days){
  621. const materialList = [];
  622. materialList.push({
  623. vendorName:"A公司",
  624. materialCode:"10001",
  625. materialName:"物料A",
  626. specs:"3*4",
  627. arriveSum:"100",
  628. checkSum:"10",
  629. unpassSum:"1",
  630. checkDate:"09月18日",
  631. images:[
  632. "/images/quality/11.png",
  633. "/images/quality/12.png"
  634. ]
  635. });
  636. materialList.push({
  637. vendorName:"B公司",
  638. materialCode:"10002",
  639. materialName:"物料B",
  640. specs:"3*4",
  641. arriveSum:"200",
  642. checkSum:"10",
  643. unpassSum:"1",
  644. checkDate:"09月18日",
  645. images:[
  646. "/images/quality/13.png",
  647. "/images/quality/21.png"
  648. ]
  649. });
  650. materialList.push({
  651. vendorName:"C公司",
  652. materialCode:"10003",
  653. materialName:"物料C",
  654. specs:"3*4",
  655. arriveSum:"300",
  656. checkSum:"10",
  657. unpassSum:"1",
  658. checkDate:"09月18日",
  659. images:[
  660. "/images/quality/22.png",
  661. "/images/quality/23.png"
  662. ]
  663. });
  664. materialList.push({
  665. vendorName:"D公司",
  666. materialCode:"10004",
  667. materialName:"物料D",
  668. specs:"3*4",
  669. arriveSum:"400",
  670. checkSum:"10",
  671. unpassSum:"1",
  672. checkDate:"09月18日",
  673. images:[
  674. "/images/quality/11.png",
  675. "/images/quality/12.png",
  676. "/images/quality/13.png"
  677. ]
  678. });
  679. materialList.push({
  680. vendorName:"E公司",
  681. materialCode:"10005",
  682. materialName:"物料E",
  683. specs:"3*4",
  684. arriveSum:"500",
  685. checkSum:"10",
  686. unpassSum:"1",
  687. checkDate:"09月18日",
  688. images:[
  689. "/images/quality/21.png",
  690. "/images/quality/22.png",
  691. "/images/quality/23.png"
  692. ]
  693. });
  694. materialList.push({
  695. vendorName:"F公司",
  696. materialCode:"10006",
  697. materialName:"物料F",
  698. specs:"3*4",
  699. arriveSum:"600",
  700. checkSum:"10",
  701. unpassSum:"1",
  702. checkDate:"09月18日",
  703. images:[
  704. "/images/quality/11.png",
  705. "/images/quality/12.png",
  706. "/images/quality/13.png",
  707. "/images/quality/21.png"
  708. ]
  709. });
  710. materialList.push({
  711. vendorName:"A公司",
  712. materialCode:"10001",
  713. materialName:"物料A",
  714. specs:"3*4",
  715. arriveSum:"100",
  716. checkSum:"10",
  717. unpassSum:"1",
  718. checkDate:"09月18日",
  719. images:[
  720. "/images/quality/12.png",
  721. "/images/quality/13.png",
  722. "/images/quality/21.png",
  723. "/images/quality/22.png"
  724. ]
  725. });
  726. materialList.push({
  727. vendorName:"B公司",
  728. materialCode:"10002",
  729. materialName:"物料B",
  730. specs:"3*4",
  731. arriveSum:"200",
  732. checkSum:"10",
  733. unpassSum:"1",
  734. checkDate:"09月18日",
  735. images:[
  736. "/images/quality/21.png",
  737. "/images/quality/22.png",
  738. "/images/quality/13.png",
  739. "/images/quality/23.png"
  740. ]
  741. });
  742. materialList.push({
  743. vendorName:"C公司",
  744. materialCode:"10003",
  745. materialName:"物料C",
  746. specs:"3*4",
  747. arriveSum:"300",
  748. checkSum:"10",
  749. unpassSum:"1",
  750. checkDate:"09月18日",
  751. images:[
  752. "/images/quality/22.png",
  753. "/images/quality/13.png",
  754. "/images/quality/23.png"
  755. ]
  756. });
  757. materialList.push({
  758. vendorName:"D公司",
  759. materialCode:"10004",
  760. materialName:"物料D",
  761. specs:"3*4",
  762. arriveSum:"400",
  763. checkSum:"10",
  764. unpassSum:"1",
  765. checkDate:"09月18日",
  766. images:[
  767. "/images/quality/21.png",
  768. "/images/quality/22.png",
  769. "/images/quality/13.png",
  770. "/images/quality/23.png",
  771. "/images/quality/11.png",
  772. "/images/quality/12.png"
  773. ]
  774. });
  775. materialList.push({
  776. vendorName:"E公司",
  777. materialCode:"10005",
  778. materialName:"物料E",
  779. specs:"3*4",
  780. arriveSum:"500",
  781. checkSum:"10",
  782. unpassSum:"1",
  783. checkDate:"09月18日",
  784. images:[
  785. "/images/quality/23.png",
  786. "/images/quality/21.png",
  787. "/images/quality/11.png",
  788. "/images/quality/22.png",
  789. "/images/quality/13.png",
  790. "/images/quality/12.png"
  791. ]
  792. });
  793. materialList.push({
  794. vendorName:"F公司",
  795. materialCode:"10006",
  796. materialName:"物料F",
  797. specs:"3*4",
  798. arriveSum:"600",
  799. checkSum:"10",
  800. unpassSum:"1",
  801. checkDate:"09月18日",
  802. images:[
  803. "/images/quality/13.png",
  804. "/images/quality/12.png",
  805. "/images/quality/23.png",
  806. "/images/quality/22.png",
  807. "/images/quality/11.png",
  808. "/images/quality/21.png"
  809. ]
  810. });
  811. var i = 1;
  812. $.each(materialList, function(index,item){
  813. if (i == 1){
  814. item.bg = "selectrow";
  815. }else{
  816. item.bg = "";
  817. }
  818. item.index = i++;
  819. item.passRate = ((item.checkSum-item.unpassSum)/item.checkSum*100).toFixed(0)+"%";
  820. })
  821. return materialList;
  822. },
  823. }