|
@@ -124,6 +124,11 @@ export class FbsWorkshopDispatchListAddComponent implements OnInit {
|
|
|
this.fbsWorkshopDispatchListService.getInventoryGetByOrderId(moId).then((response)=>{
|
|
|
// this.productList=response.result;
|
|
|
data.productList=response.result;
|
|
|
+ if(data.productList){//自动带出产品选择
|
|
|
+ data.productId=data.productList[0].cinvcode;
|
|
|
+ this.productChange(data.productList[0].cinvcode,data);
|
|
|
+ }
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -135,7 +140,6 @@ export class FbsWorkshopDispatchListAddComponent implements OnInit {
|
|
|
data.productList.forEach(element => {
|
|
|
if(element.cinvcode===event){
|
|
|
data.product=element.cinvname;
|
|
|
-
|
|
|
data.rowNumber=element.sortSeq;
|
|
|
data.plannedQuantity=element.qty;
|
|
|
data.standardWorkingHoursZ=element.cinvdefine13;
|