|
@@ -131,7 +131,7 @@ export class FbsWorkshopDispatchListListComponent implements OnInit {
|
|
|
if (dataList) {
|
|
|
dataList.forEach(element => {
|
|
|
element.standardWorkingHours=Number(element.standardWorkingHours).toFixed(1)
|
|
|
- this.totalList.plannedQuantity = this.totalList.plannedQuantity + Number(element.plannedQuantity);
|
|
|
+ // this.totalList.plannedQuantity = this.totalList.plannedQuantity + Number(element.plannedQuantity);
|
|
|
this.totalList.numberOfTasks = this.totalList.numberOfTasks + Number(element.numberOfTasks);
|
|
|
this.totalList.standardWorkingHours =
|
|
|
this.totalList.standardWorkingHours + Number(element.standardWorkingHours);
|
|
@@ -147,9 +147,33 @@ export class FbsWorkshopDispatchListListComponent implements OnInit {
|
|
|
this.totalList.manHoursCompleted = this.totalList.manHoursCompleted.toFixed(1);
|
|
|
this.totalList.numberEfficiency=((this.totalList.latestCompletedQuantity/this.totalList.numberOfTasks)*100).toFixed(1);
|
|
|
this.totalList.workingHoursEfficiency=((completeStandardWorkingHours/manHoursCompletedHide)*100).toFixed(1);
|
|
|
+ this.totalList.plannedQuantity = this.getPlannedQuantityTotal(dataList);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ getPlannedQuantityTotal(dataList){
|
|
|
+ let list:any=[];
|
|
|
+ dataList.forEach(element => {
|
|
|
+ let isC=false;
|
|
|
+ list.forEach(element2 => {
|
|
|
+ if(element.productionOrderNumberName===element2.productionOrderNumberName){
|
|
|
+ isC=true;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if(isC===false){
|
|
|
+ list=[
|
|
|
+ ...list,
|
|
|
+ element
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ });
|
|
|
+ let plannedQuantity=0;
|
|
|
+ list.forEach(element => {
|
|
|
+ plannedQuantity=plannedQuantity + Number(element.plannedQuantity);
|
|
|
+ });
|
|
|
+ return plannedQuantity;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 更改是否可扫码
|
|
|
*/
|