/** * 成品服务 * 冯海夫 * 20201008 */ var ServiceProduct = { // 待发货成品 getWatingSendList: function () { return getService.methodGet("/fbsDispatchList/fbsDispatchList/getWatingSendList"); // const productList = []; // productList.push({ // warehouseName: "A仓库", // materialCode: "10001", // materialName: "物料A", // specs: "3*4", // sendSum: "10", // planSendDate: "09月18日" // }); // productList.push({ // warehouseName: "A仓库", // materialCode: "10002", // materialName: "物料B", // specs: "3*4", // sendSum: "20", // planSendDate: "09月18日" // }); // productList.push({ // warehouseName: "A仓库", // materialCode: "10003", // materialName: "物料C", // specs: "3*4", // sendSum: "30", // planSendDate: "09月18日" // }); // productList.push({ // warehouseName: "B仓库", // materialCode: "10004", // materialName: "物料D", // specs: "3*4", // sendSum: "40", // planSendDate: "09月18日" // }); // productList.push({ // warehouseName: "B仓库", // materialCode: "10005", // materialName: "物料E", // specs: "3*4", // sendSum: "50", // planSendDate: "09月18日" // }); // productList.push({ // warehouseName: "B仓库", // materialCode: "10006", // materialName: "物料F", // specs: "3*4", // sendSum: "60", // planSendDate: "09月18日" // }); // return productList; }, // 已入库数量 getSendSum: function () { return getService.methodPost("/fbsDispatchList/fbsDispatchList/getSendSum"); // return 9; }, // 月成品出货统计,根据成品维度 getMonthSend: function () { // return getService.methodGet("/fbsRdrecord32/fbsRdrecords32/getMonthSend"); var map=getService.methodGet("/fbsDispatchLists/fbsDispatchLists/getProjectDelivery") console.log(map) if(map){ var remainingQuantity=5-(Object.keys(map).length%5); if(remainingQuantity!=5){ for(var i=0;i0){ var remainingQuantity=3-(list.length%3); if(remainingQuantity!=3){ for(var i=0;i0){ var remainingQuantity=3-(Object.keys(map).length%3); if(remainingQuantity!=3){ for(var i=0;i { let standardWorkingHoursActualTotal=element.standardWorkingHoursActualTotal;//实际标准工时 let manHoursCompletedTotal=element.manHoursCompletedTotal;//完成工时 if(element.projectName==="统计"){ productivityTotal=((Number(standardWorkingHoursActualTotal)/Number(manHoursCompletedTotal))*100).toFixed(1) } }); return { name: "当月生产效率", value: productivityTotal }; }, // 日生产效率 getDayProduceRate: function () { // const rate = 90; rate=MethodGetService.methodGet("/fbsWorkshopDispatchList/fbsWorkshopDispatchList/getProductionEfficiency?type=1"); return { name: "生产效率", value: rate }; }, // 某日产品良数量 getDayGood: function () { // const list = []; // list.push({ // label: "产品A", // sum1: 48, // sum2: 50 // }); // list.push({ // label: "产品B", // sum1: 80, // sum2: 90 // }); // list.push({ // label: "产品C", // sum1: 47, // sum2: 50 // }); // list.push({ // label: "产品D", // sum1: 40, // sum2: 50 // }); // list.push({ // label: "产品E", // sum1: 42, // sum2: 50 // }); // list.push({ // label: "产品F", // sum1: 44, // sum2: 50 // }); // list.push({ // label: "产品G", // sum1: 45, // sum2: 50 // }); // return list; var list=MethodGetService.methodGet("/fbsAbnormalWorkingHours/fbsAbnormalWorkingHours/getRejectsNumber?type=1") if(list){ var remainingQuantity=3-(list.length%3); if(remainingQuantity!=3){ for(var i=0;i