material.js 23 KB

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