material.js 32 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064
  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. var materialList=MethodGetService.methodGet("/fbsMomOrder/fbsMomOrderdetail/getListByOrderSheet?type=1");
  301. materialList.forEach(element => {
  302. element.orderSheetCode=element.mocode
  303. element.materialCode=element.cinvcode
  304. element.materialName=""//element.cinvname
  305. element.specs=""//element.cinvstd
  306. element.needSum=element.materialPreparationTotal
  307. element.stockSum=element.materialPreparationNumber
  308. });
  309. return materialList;
  310. },
  311. // 工单缺料
  312. getListByOrderSheetNotEnough:function(){
  313. // const materialList = [];
  314. // materialList.push({
  315. // orderSheetCode:"G10001",
  316. // materialCode:"10001",
  317. // materialName:"物料A",
  318. // specs:"3*4",
  319. // needSum:"30",
  320. // stockSum:"20"
  321. // });
  322. // materialList.push({
  323. // orderSheetCode:"G10001",
  324. // materialCode:"10002",
  325. // materialName:"物料B",
  326. // specs:"3*4",
  327. // needSum:"55",
  328. // stockSum:"30"
  329. // });
  330. // materialList.push({
  331. // orderSheetCode:"G10002",
  332. // materialCode:"10003",
  333. // materialName:"物料C",
  334. // specs:"3*4",
  335. // needSum:"40",
  336. // stockSum:"20"
  337. // });
  338. // materialList.push({
  339. // orderSheetCode:"G10003",
  340. // materialCode:"10004",
  341. // materialName:"物料D",
  342. // specs:"3*4",
  343. // needSum:"40",
  344. // stockSum:"30"
  345. // });
  346. // materialList.push({
  347. // orderSheetCode:"G10004",
  348. // materialCode:"10005",
  349. // materialName:"物料E",
  350. // specs:"3*4",
  351. // needSum:"25",
  352. // stockSum:"20"
  353. // });
  354. var materialList=MethodGetService.methodGet("/fbsMomOrder/fbsMomOrderdetail/getListByOrderSheet?type=2");
  355. materialList.forEach(element => {
  356. element.orderSheetCode=element.mocode
  357. element.materialCode=element.cinvcode
  358. element.materialName=""//element.cinvname
  359. element.specs=""//element.cinvstd
  360. element.needSum=element.materialPreparationTotal
  361. element.stockSum=element.materialPreparationNumber
  362. });
  363. return materialList;
  364. },
  365. // 工单齐套
  366. getListByOrderSheetEnough:function(){
  367. const materialList = [];
  368. materialList.push({
  369. orderSheetCode:"G10001",
  370. materialCode:"10001",
  371. materialName:"物料A",
  372. specs:"3*4",
  373. needSum:"10",
  374. stockSum:"20"
  375. });
  376. materialList.push({
  377. orderSheetCode:"G10001",
  378. materialCode:"10002",
  379. materialName:"物料B",
  380. specs:"3*4",
  381. needSum:"15",
  382. stockSum:"30"
  383. });
  384. materialList.push({
  385. orderSheetCode:"G10002",
  386. materialCode:"10003",
  387. materialName:"物料C",
  388. specs:"3*4",
  389. needSum:"20",
  390. stockSum:"20"
  391. });
  392. materialList.push({
  393. orderSheetCode:"G10003",
  394. materialCode:"10004",
  395. materialName:"物料D",
  396. specs:"3*4",
  397. needSum:"30",
  398. stockSum:"30"
  399. });
  400. materialList.push({
  401. orderSheetCode:"G10003",
  402. materialCode:"10004",
  403. materialName:"物料D",
  404. specs:"3*4",
  405. needSum:"30",
  406. stockSum:"30"
  407. });
  408. materialList.push({
  409. orderSheetCode:"G10003",
  410. materialCode:"10004",
  411. materialName:"物料D",
  412. specs:"3*4",
  413. needSum:"30",
  414. stockSum:"30"
  415. });
  416. materialList.push({
  417. orderSheetCode:"G10003",
  418. materialCode:"10004",
  419. materialName:"物料D",
  420. specs:"3*4",
  421. needSum:"30",
  422. stockSum:"30"
  423. });
  424. materialList.push({
  425. orderSheetCode:"G10003",
  426. materialCode:"10004",
  427. materialName:"物料D",
  428. specs:"3*4",
  429. needSum:"30",
  430. stockSum:"30"
  431. });
  432. materialList.push({
  433. orderSheetCode:"G10003",
  434. materialCode:"10004",
  435. materialName:"物料D",
  436. specs:"3*4",
  437. needSum:"30",
  438. stockSum:"30"
  439. });
  440. materialList.push({
  441. orderSheetCode:"G10004",
  442. materialCode:"10005",
  443. materialName:"物料E",
  444. specs:"3*4",
  445. needSum:"15",
  446. stockSum:"20"
  447. });
  448. return materialList;
  449. },
  450. // 领料申请通知
  451. getApplyList:function(){
  452. // const materialList = [];
  453. // materialList.push({
  454. // orderSheetCode:"G10001",
  455. // materialCode:"10001",
  456. // materialName:"物料A",
  457. // specs:"3*4",
  458. // applyPerson:"张三",
  459. // applysum:"20"
  460. // });
  461. // materialList.push({
  462. // orderSheetCode:"G10001",
  463. // materialCode:"10002",
  464. // materialName:"物料B",
  465. // specs:"3*4",
  466. // applyPerson:"张三",
  467. // applysum:"20"
  468. // });
  469. // materialList.push({
  470. // orderSheetCode:"G10002",
  471. // materialCode:"10003",
  472. // materialName:"物料C",
  473. // specs:"3*4",
  474. // applyPerson:"张三",
  475. // applysum:"20"
  476. // });
  477. // materialList.push({
  478. // orderSheetCode:"G10003",
  479. // materialCode:"10004",
  480. // materialName:"物料D",
  481. // specs:"3*4",
  482. // applyPerson:"张三",
  483. // applysum:"20"
  484. // });
  485. // materialList.push({
  486. // orderSheetCode:"G10004",
  487. // materialCode:"10005",
  488. // materialName:"物料E",
  489. // specs:"3*4",
  490. // applyPerson:"张三",
  491. // applysum:"20"
  492. // });
  493. var materialList=MethodGetService.methodGet("/fbsMomOrder/fbsMomOrderdetail/getApplyList?type=2");
  494. materialList.forEach(element => {
  495. element.orderSheetCode=element.mocode
  496. element.materialCode=element.cinvcode
  497. element.materialName=""//element.cinvname
  498. element.specs=""//element.cinvstd
  499. element.applyPerson=""
  500. element.applysum=element.unfinishedQuantity
  501. });
  502. return materialList;
  503. },
  504. // 领料申请完成数量
  505. getApplyCompleteSum:function(){
  506. return 10;
  507. },
  508. // 未来几天内到货计划
  509. getWillArriveList:function(days){
  510. return getService.methodGet("/fbsPuArrivalvouch/fbsArrivalVouchs/getWillArriveList");
  511. // const materialList = [];
  512. // materialList.push({
  513. // vendorName:"A公司",
  514. // materialCode:"10001",
  515. // materialName:"物料A",
  516. // specs:"3*4",
  517. // arriveSum:"10",
  518. // arriveDate:"09月18日",
  519. // memo:""
  520. // });
  521. // materialList.push({
  522. // vendorName:"B公司",
  523. // materialCode:"10002",
  524. // materialName:"物料B",
  525. // specs:"3*4",
  526. // arriveSum:"20",
  527. // arriveDate:"09月18日",
  528. // memo:""
  529. // });
  530. // materialList.push({
  531. // vendorName:"C公司",
  532. // materialCode:"10003",
  533. // materialName:"物料C",
  534. // specs:"3*4",
  535. // arriveSum:"30",
  536. // arriveDate:"09月18日",
  537. // memo:""
  538. // });
  539. // materialList.push({
  540. // vendorName:"D公司",
  541. // materialCode:"10004",
  542. // materialName:"物料D",
  543. // specs:"3*4",
  544. // arriveSum:"40",
  545. // arriveDate:"09月18日",
  546. // memo:""
  547. // });
  548. // materialList.push({
  549. // vendorName:"E公司",
  550. // materialCode:"10005",
  551. // materialName:"物料E",
  552. // specs:"3*4",
  553. // arriveSum:"50",
  554. // arriveDate:"09月18日",
  555. // memo:""
  556. // });
  557. // materialList.push({
  558. // vendorName:"F公司",
  559. // materialCode:"10006",
  560. // materialName:"物料F",
  561. // specs:"3*4",
  562. // arriveSum:"60",
  563. // arriveDate:"09月18日",
  564. // memo:""
  565. // });
  566. // var i = 1;
  567. // $.each(materialList, function(index,item){
  568. // item.index = i++;
  569. // })
  570. // return materialList;
  571. },
  572. // 当天到货批数
  573. getTodayArriveSum:function(){
  574. // return 100;
  575. return MethodGetService.methodGet("/fbsPuArrivalvouch/fbsPuArrivalvouch/getTodayArriveSum");
  576. },
  577. // 未来几天到货批数
  578. getWillArriveSum:function(days){
  579. // return 300;
  580. return MethodGetService.methodGet("/fbsPuArrivalvouch/fbsPuArrivalvouch/getWillArriveSum");
  581. },
  582. // 当月到货批数
  583. getThisMonthArriveSum:function(){
  584. // return 7882;
  585. return MethodGetService.methodGet("/fbsPuArrivalvouch/fbsPuArrivalvouch/getThisMonthArriveSum");
  586. },
  587. // 未入库总批数
  588. getNotInSum:function(){
  589. // return 90;
  590. return MethodGetService.methodGet("/fbsPuArrivalvouch/fbsPuArrivalvouch/getNotInSum");
  591. },
  592. // 近6个月质量目标合格率比较(品质管理看板)
  593. getLastSixMonthQualityTargetCompare: function () {
  594. return getService.methodGet("/fbsPuArrivalvouch/fbsArrivalVouchs/getLastSixMonthQualityTargetCompare");
  595. // const list = [];
  596. // list.push({
  597. // month: "04",
  598. // target: 98,
  599. // real: 33
  600. // });
  601. // list.push({
  602. // month: "05",
  603. // target: 98,
  604. // real: 96
  605. // });
  606. // list.push({
  607. // month: "06",
  608. // target: 98,
  609. // real: 95
  610. // });
  611. // list.push({
  612. // month: "07",
  613. // target: 98,
  614. // real: 99
  615. // });
  616. // list.push({
  617. // month: "08",
  618. // target: 98,
  619. // real: 100
  620. // });
  621. // list.push({
  622. // month: "09",
  623. // target: 98,
  624. // real: 98
  625. // });
  626. // $.each(list, function (index, item) {
  627. // item.label = item.month;
  628. // item.label1 = "质量目标";
  629. // item.sum1 = item.target;
  630. // item.label2 = "合格率";
  631. // item.sum2 = item.real;
  632. // });
  633. // return list;
  634. },
  635. // 当月供应商合格率
  636. getPassRateByVendor: function () {
  637. // return {
  638. // "供应商A":98,
  639. // "供应商B":95,
  640. // "供应商C":94,
  641. // "供应商D":93,
  642. // "供应商E":99,
  643. // "供应商F":97
  644. // }
  645. return MethodGetService.methodGet("/fbsPuArrivalvouch/fbsPuArrivalvouch/getPassRateByVendor");
  646. },
  647. // 当月检验合格率
  648. getCheckRateByBatchno: function () {
  649. // return {
  650. // "07001":98,
  651. // "07002":95,
  652. // "07003":94,
  653. // "07004":93,
  654. // "07005":99,
  655. // "07006":97
  656. // }
  657. return MethodGetService.methodGet("/fbsPuArrivalvouch/fbsPuArrivalvouch/getCheckRateByBatchno");
  658. },
  659. // 未来几天内到货计划
  660. getQualityUnpassList:function(days){
  661. const materialList = [];
  662. materialList.push({
  663. vendorName:"A公司",
  664. materialCode:"10001",
  665. materialName:"物料A",
  666. specs:"3*4",
  667. arriveSum:"100",
  668. checkSum:"10",
  669. unpassSum:"1",
  670. checkDate:"09月18日",
  671. images:[
  672. "/images/quality/11.png",
  673. "/images/quality/12.png"
  674. ]
  675. });
  676. materialList.push({
  677. vendorName:"B公司",
  678. materialCode:"10002",
  679. materialName:"物料B",
  680. specs:"3*4",
  681. arriveSum:"200",
  682. checkSum:"10",
  683. unpassSum:"1",
  684. checkDate:"09月18日",
  685. images:[
  686. "/images/quality/13.png",
  687. "/images/quality/21.png"
  688. ]
  689. });
  690. materialList.push({
  691. vendorName:"C公司",
  692. materialCode:"10003",
  693. materialName:"物料C",
  694. specs:"3*4",
  695. arriveSum:"300",
  696. checkSum:"10",
  697. unpassSum:"1",
  698. checkDate:"09月18日",
  699. images:[
  700. "/images/quality/22.png",
  701. "/images/quality/23.png"
  702. ]
  703. });
  704. materialList.push({
  705. vendorName:"D公司",
  706. materialCode:"10004",
  707. materialName:"物料D",
  708. specs:"3*4",
  709. arriveSum:"400",
  710. checkSum:"10",
  711. unpassSum:"1",
  712. checkDate:"09月18日",
  713. images:[
  714. "/images/quality/11.png",
  715. "/images/quality/12.png",
  716. "/images/quality/13.png"
  717. ]
  718. });
  719. materialList.push({
  720. vendorName:"E公司",
  721. materialCode:"10005",
  722. materialName:"物料E",
  723. specs:"3*4",
  724. arriveSum:"500",
  725. checkSum:"10",
  726. unpassSum:"1",
  727. checkDate:"09月18日",
  728. images:[
  729. "/images/quality/21.png",
  730. "/images/quality/22.png",
  731. "/images/quality/23.png"
  732. ]
  733. });
  734. materialList.push({
  735. vendorName:"F公司",
  736. materialCode:"10006",
  737. materialName:"物料F",
  738. specs:"3*4",
  739. arriveSum:"600",
  740. checkSum:"10",
  741. unpassSum:"1",
  742. checkDate:"09月18日",
  743. images:[
  744. "/images/quality/11.png",
  745. "/images/quality/12.png",
  746. "/images/quality/13.png",
  747. "/images/quality/21.png"
  748. ]
  749. });
  750. materialList.push({
  751. vendorName:"A公司",
  752. materialCode:"10001",
  753. materialName:"物料A",
  754. specs:"3*4",
  755. arriveSum:"100",
  756. checkSum:"10",
  757. unpassSum:"1",
  758. checkDate:"09月18日",
  759. images:[
  760. "/images/quality/12.png",
  761. "/images/quality/13.png",
  762. "/images/quality/21.png",
  763. "/images/quality/22.png"
  764. ]
  765. });
  766. materialList.push({
  767. vendorName:"B公司",
  768. materialCode:"10002",
  769. materialName:"物料B",
  770. specs:"3*4",
  771. arriveSum:"200",
  772. checkSum:"10",
  773. unpassSum:"1",
  774. checkDate:"09月18日",
  775. images:[
  776. "/images/quality/21.png",
  777. "/images/quality/22.png",
  778. "/images/quality/13.png",
  779. "/images/quality/23.png"
  780. ]
  781. });
  782. materialList.push({
  783. vendorName:"C公司",
  784. materialCode:"10003",
  785. materialName:"物料C",
  786. specs:"3*4",
  787. arriveSum:"300",
  788. checkSum:"10",
  789. unpassSum:"1",
  790. checkDate:"09月18日",
  791. images:[
  792. "/images/quality/22.png",
  793. "/images/quality/13.png",
  794. "/images/quality/23.png"
  795. ]
  796. });
  797. materialList.push({
  798. vendorName:"D公司",
  799. materialCode:"10004",
  800. materialName:"物料D",
  801. specs:"3*4",
  802. arriveSum:"400",
  803. checkSum:"10",
  804. unpassSum:"1",
  805. checkDate:"09月18日",
  806. images:[
  807. "/images/quality/21.png",
  808. "/images/quality/22.png",
  809. "/images/quality/13.png",
  810. "/images/quality/23.png",
  811. "/images/quality/11.png",
  812. "/images/quality/12.png"
  813. ]
  814. });
  815. materialList.push({
  816. vendorName:"E公司",
  817. materialCode:"10005",
  818. materialName:"物料E",
  819. specs:"3*4",
  820. arriveSum:"500",
  821. checkSum:"10",
  822. unpassSum:"1",
  823. checkDate:"09月18日",
  824. images:[
  825. "/images/quality/23.png",
  826. "/images/quality/21.png",
  827. "/images/quality/11.png",
  828. "/images/quality/22.png",
  829. "/images/quality/13.png",
  830. "/images/quality/12.png"
  831. ]
  832. });
  833. materialList.push({
  834. vendorName:"F公司",
  835. materialCode:"10006",
  836. materialName:"物料F",
  837. specs:"3*4",
  838. arriveSum:"600",
  839. checkSum:"10",
  840. unpassSum:"1",
  841. checkDate:"09月18日",
  842. images:[
  843. "/images/quality/13.png",
  844. "/images/quality/12.png",
  845. "/images/quality/23.png",
  846. "/images/quality/22.png",
  847. "/images/quality/11.png",
  848. "/images/quality/21.png"
  849. ]
  850. });
  851. materialList.push({
  852. vendorName:"B公司",
  853. materialCode:"10002",
  854. materialName:"物料B",
  855. specs:"3*4",
  856. arriveSum:"200",
  857. checkSum:"10",
  858. unpassSum:"1",
  859. checkDate:"09月18日",
  860. images:[
  861. "/images/quality/13.png",
  862. "/images/quality/21.png"
  863. ]
  864. });
  865. materialList.push({
  866. vendorName:"C公司",
  867. materialCode:"10003",
  868. materialName:"物料C",
  869. specs:"3*4",
  870. arriveSum:"300",
  871. checkSum:"10",
  872. unpassSum:"1",
  873. checkDate:"09月18日",
  874. images:[
  875. "/images/quality/22.png",
  876. "/images/quality/23.png"
  877. ]
  878. });
  879. materialList.push({
  880. vendorName:"D公司",
  881. materialCode:"10004",
  882. materialName:"物料D",
  883. specs:"3*4",
  884. arriveSum:"400",
  885. checkSum:"10",
  886. unpassSum:"1",
  887. checkDate:"09月18日",
  888. images:[
  889. "/images/quality/11.png",
  890. "/images/quality/12.png",
  891. "/images/quality/13.png"
  892. ]
  893. });
  894. materialList.push({
  895. vendorName:"E公司",
  896. materialCode:"10005",
  897. materialName:"物料E",
  898. specs:"3*4",
  899. arriveSum:"500",
  900. checkSum:"10",
  901. unpassSum:"1",
  902. checkDate:"09月18日",
  903. images:[
  904. "/images/quality/21.png",
  905. "/images/quality/22.png",
  906. "/images/quality/23.png"
  907. ]
  908. });
  909. materialList.push({
  910. vendorName:"F公司",
  911. materialCode:"10006",
  912. materialName:"物料F",
  913. specs:"3*4",
  914. arriveSum:"600",
  915. checkSum:"10",
  916. unpassSum:"1",
  917. checkDate:"09月18日",
  918. images:[
  919. "/images/quality/11.png",
  920. "/images/quality/12.png",
  921. "/images/quality/13.png",
  922. "/images/quality/21.png"
  923. ]
  924. });
  925. materialList.push({
  926. vendorName:"A公司",
  927. materialCode:"10001",
  928. materialName:"物料A",
  929. specs:"3*4",
  930. arriveSum:"100",
  931. checkSum:"10",
  932. unpassSum:"1",
  933. checkDate:"09月18日",
  934. images:[
  935. "/images/quality/12.png",
  936. "/images/quality/13.png",
  937. "/images/quality/21.png",
  938. "/images/quality/22.png"
  939. ]
  940. });
  941. materialList.push({
  942. vendorName:"B公司",
  943. materialCode:"10002",
  944. materialName:"物料B",
  945. specs:"3*4",
  946. arriveSum:"200",
  947. checkSum:"10",
  948. unpassSum:"1",
  949. checkDate:"09月18日",
  950. images:[
  951. "/images/quality/21.png",
  952. "/images/quality/22.png",
  953. "/images/quality/13.png",
  954. "/images/quality/23.png"
  955. ]
  956. });
  957. materialList.push({
  958. vendorName:"C公司",
  959. materialCode:"10003",
  960. materialName:"物料C",
  961. specs:"3*4",
  962. arriveSum:"300",
  963. checkSum:"10",
  964. unpassSum:"1",
  965. checkDate:"09月18日",
  966. images:[
  967. "/images/quality/22.png",
  968. "/images/quality/13.png",
  969. "/images/quality/23.png"
  970. ]
  971. });
  972. materialList.push({
  973. vendorName:"D公司",
  974. materialCode:"10004",
  975. materialName:"物料D",
  976. specs:"3*4",
  977. arriveSum:"400",
  978. checkSum:"10",
  979. unpassSum:"1",
  980. checkDate:"09月18日",
  981. images:[
  982. "/images/quality/21.png",
  983. "/images/quality/22.png",
  984. "/images/quality/13.png",
  985. "/images/quality/23.png",
  986. "/images/quality/11.png",
  987. "/images/quality/12.png"
  988. ]
  989. });
  990. materialList.push({
  991. vendorName:"E公司",
  992. materialCode:"10005",
  993. materialName:"物料E",
  994. specs:"3*4",
  995. arriveSum:"500",
  996. checkSum:"10",
  997. unpassSum:"1",
  998. checkDate:"09月18日",
  999. images:[
  1000. "/images/quality/23.png",
  1001. "/images/quality/21.png",
  1002. "/images/quality/11.png",
  1003. "/images/quality/22.png",
  1004. "/images/quality/13.png",
  1005. "/images/quality/12.png"
  1006. ]
  1007. });
  1008. materialList.push({
  1009. vendorName:"F公司",
  1010. materialCode:"10006",
  1011. materialName:"物料F",
  1012. specs:"3*4",
  1013. arriveSum:"600",
  1014. checkSum:"10",
  1015. unpassSum:"1",
  1016. checkDate:"09月18日",
  1017. images:[
  1018. "/images/quality/13.png",
  1019. "/images/quality/12.png",
  1020. "/images/quality/23.png",
  1021. "/images/quality/22.png",
  1022. "/images/quality/11.png",
  1023. "/images/quality/21.png"
  1024. ]
  1025. });
  1026. var i = 1;
  1027. $.each(materialList, function(index,item){
  1028. item.index = i++;
  1029. item.passRate = ((item.checkSum-item.unpassSum)/item.checkSum*100).toFixed(0)+"%";
  1030. })
  1031. return materialList;
  1032. },
  1033. }