material.js 23 KB

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