Browse Source

收件确认

develop
娄文智 1 year ago
parent
commit
be8e1a9b0d
2 changed files with 5 additions and 2 deletions
  1. +2
    -2
      dao/om/SerialOrderInspectionItem.dao.go
  2. +3
    -0
      services/qm/implments/DefectRecord.service.impl.go

+ 2
- 2
dao/om/SerialOrderInspectionItem.dao.go View File

@ -146,7 +146,7 @@ type SerialOrderInspectionItemDAO interface {
*
******************************************************************************/
DeleteWhere([]grmi.Predicate) error
/******************************************************************************
/*`*****************************************************************************
*
* @Function Name : Select
*-----------------------------------------------------------------------------
@ -165,7 +165,7 @@ type SerialOrderInspectionItemDAO interface {
*
* @Date : 2023-04-03 14:40:36
*
******************************************************************************/
*****************************************************************************`*/
Select([]grmi.Predicate, []grmi.Field) ([]model.SerialOrderInspectionItem, error)
/******************************************************************************
*


+ 3
- 0
services/qm/implments/DefectRecord.service.impl.go View File

@ -282,6 +282,9 @@ func (impl *DefectRecordServiceImplement) Insert(user *global.User, entities mod
if info == nil {
return grmi.NewBusinessError("该记录不存在!")
}
if info.Status == common.WO_STATUS_UNCHECKED {
return grmi.NewBusinessError("该工单是首件,请确认!")
}
if info.Status != common.WO_STATUS_FINISHED && count <= 0 {
return grmi.NewBusinessError("该工单状态未完成或已取消!")
}


Loading…
Cancel
Save