| | |
| | | return err |
| | | } |
| | | } |
| | | if operation.Source != "" { |
| | | go UpdatePurchaseStatus(operation.Source, operation.SourceNumber) |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | return errors.New("当前仓库没有该产品,请先入库") |
| | | } |
| | | } |
| | | if operation.Source != "" { |
| | | go UpdateOutStatus(operation.Source, operation.SourceNumber, 4) |
| | | } |
| | | } |
| | | |
| | | if operation.BaseOperationType == constvar.BaseOperationTypeInternal { |
| | |
| | | util.ResponseFormat(c, code.RequestError, err.Error()) |
| | | return |
| | | } |
| | | //修改其他系统订单状态 |
| | | if operation.BaseOperationType == constvar.BaseOperationTypeIncoming { |
| | | if operation.Source != "" { |
| | | go UpdatePurchaseStatus(operation.Source, operation.SourceNumber) |
| | | } |
| | | } else if operation.BaseOperationType == constvar.BaseOperationTypeOutgoing { |
| | | if operation.Source != "" { |
| | | go UpdateOutStatus(operation.Source, operation.SourceNumber, 4) |
| | | } |
| | | } |
| | | |
| | | util.ResponseFormat(c, code.Success, "操作成功") |
| | | } |