|
@@ -114,7 +114,7 @@ export class FbsWorkshopDispatchListUpdateComponent implements OnInit {
|
|
|
this.productList=response.result;
|
|
|
if(this.productList){
|
|
|
this.fbsWorkshopDispatchList.productId=this.productList[0].cinvcode;
|
|
|
- this.productChange(this.fbsWorkshopDispatchList.productId);
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -141,6 +141,7 @@ export class FbsWorkshopDispatchListUpdateComponent implements OnInit {
|
|
|
|
|
|
* 计算总单据剩余派工数量
|
|
|
*/
|
|
|
+
|
|
|
getDispatchNumberByOrderIdProductId(data){
|
|
|
let fbsWorkshopDispatchList=new FbsWorkshopDispatchList();
|
|
|
fbsWorkshopDispatchList.productionOrderNumberId=data.productionOrderNumberId;
|
|
@@ -156,7 +157,7 @@ export class FbsWorkshopDispatchListUpdateComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
- * 派工数量改变触发事件
|
|
|
+ * 派工数量改变
|
|
|
*/
|
|
|
numberOfTasksChange(event,data){
|
|
|
if(data){
|
|
@@ -171,11 +172,13 @@ export class FbsWorkshopDispatchListUpdateComponent implements OnInit {
|
|
|
|
|
|
* 根据id查询车间派工单
|
|
|
*/
|
|
|
+ remainingQuantity=0;
|
|
|
getById(){
|
|
|
this.saveLoading=true;
|
|
|
this.fbsWorkshopDispatchListService.getById(this.id).then((response)=>{
|
|
|
if(response.success){
|
|
|
this.fbsWorkshopDispatchList=response.result;
|
|
|
+ this.remainingQuantity=this.fbsWorkshopDispatchList.remainingQuantity;
|
|
|
this.productionOrderNumberChange(this.fbsWorkshopDispatchList.productionOrderNumberId);
|
|
|
this.saveLoading=false;
|
|
|
}else{
|
|
@@ -201,7 +204,7 @@ export class FbsWorkshopDispatchListUpdateComponent implements OnInit {
|
|
|
this.fbsWorkshopDispatchList.state="3";
|
|
|
|
|
|
}
|
|
|
- this.fbsWorkshopDispatchListService.edit(this.fbsWorkshopDispatchList).then((response)=>{
|
|
|
+ this.fbsWorkshopDispatchListService.editR(this.fbsWorkshopDispatchList).then((response)=>{
|
|
|
if(response.success){
|
|
|
this.nzNotificationService.success("保存成功","");
|
|
|
this.saveLoading=false;
|