| | |
| | | }) |
| | | } |
| | | // 产品列表解构 |
| | | let arr=[] |
| | | if(this.workType===1){ |
| | | params.details.map((item)=>{ |
| | | arr.push({ |
| | | operationId:item.operationId, |
| | | amount:item.amount, |
| | | productId:item.productId |
| | | if(this.editConfig.title === "编辑"){ |
| | | let arr=[] |
| | | if(this.workType===1){ |
| | | params.details.map((item)=>{ |
| | | arr.push({ |
| | | operationId:item.operationId, |
| | | amount:item.amount, |
| | | productId:item.productId |
| | | }) |
| | | }) |
| | | }) |
| | | params.details=arr |
| | | }else if(this.workType===2){ |
| | | params.details.map((item)=>{ |
| | | arr.push({ |
| | | operationId:item.operationId, |
| | | amount:item.amount, |
| | | fromLocationId:item.fromLocation.id, |
| | | productId:item.productId, |
| | | params.details=arr |
| | | }else if(this.workType===2){ |
| | | params.details.map((item)=>{ |
| | | arr.push({ |
| | | operationId:item.operationId, |
| | | amount:item.amount, |
| | | fromLocationId:item.fromLocation.id, |
| | | productId:item.productId, |
| | | }) |
| | | }) |
| | | }) |
| | | params.details=arr |
| | | }else if(this.workType===3){ |
| | | params.details.map((item)=>{ |
| | | arr.push({ |
| | | operationId:item.operationId, |
| | | amount:item.amount, |
| | | fromLocationId:item.fromLocation.id, |
| | | toLocationId:item.toLocation.id, |
| | | productId:item.productId, |
| | | params.details=arr |
| | | }else if(this.workType===3){ |
| | | params.details.map((item)=>{ |
| | | arr.push({ |
| | | operationId:item.operationId, |
| | | amount:item.amount, |
| | | fromLocationId:item.fromLocation.id, |
| | | toLocationId:item.toLocation.id, |
| | | productId:item.productId, |
| | | }) |
| | | }) |
| | | }) |
| | | params.details=arr |
| | | params.details=arr |
| | | } |
| | | } |
| | | let requestUrl = this.editConfig.title === "新建" ? addOperation : updateOperation |
| | | // let params = this.saveParams() |