zuozhengqing
2024-01-03 2e99f3e099c8541808312eae125c7af5a498e122
src/views/overview/AddOverviewDialog.vue
@@ -767,37 +767,39 @@
              })
            }
            // 产品列表解构
            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()