material.js 29 KB

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