|
|
|
@ -152,6 +152,11 @@ public class PurQuotationServiceImpl implements PurQuotationService { |
|
|
|
if(model.getId() == null){ |
|
|
|
return; |
|
|
|
} |
|
|
|
//只有待提交状态才可以删除 |
|
|
|
PurQuotationDetail purDetailData = purQuotationDetailMapper.selectById(model.getId()); |
|
|
|
if(!Objects.equals("待提交", purDetailData.getStatus())){ |
|
|
|
throw new RuntimeException("物料明细只有在待提交状态才可以删除"); |
|
|
|
} |
|
|
|
purQuotationDetailMapper.deleteById(model.getId()); |
|
|
|
} |
|
|
|
|
|
|
|
|