| | |
| | | // @Security ApiKeyAuth |
| | | // @accept application/json |
| | | // @Produce application/json |
| | | // @Param data body purchaserequest.GetQualityInspectionInfo true "参数" |
| | | // @Param data body purchaserequest.SaveQualityInspectionInfo true "参数" |
| | | // @Success 200 {object} response.Response{data=[]purchase.PurchaseProductConfirm} "获取确认信息" |
| | | // @Router /purchase/savePurchaseQualityInspectionInfo [post] |
| | | func (e *PurchaseApi) SavePurchaseQualityInspectionInfo(c *gin.Context) { |
| | |
| | | return |
| | | } |
| | | } |
| | | |
| | | err = server.UpdatePurchaseStatus(params.PurchaseId, purchase.WaitInspection) |
| | | if err != nil { |
| | | global.GVA_LOG.Error("状态更新失败!", zap.Error(err)) |
| | | response.FailWithMessage("状态更新失败", c) |
| | | return |
| | | } |
| | | response.OkWithMessage("质检成功", c) |
| | | } |