fix: 增加供应商报价必填校验

This commit is contained in:
fuzhongyun 2025-12-22 15:01:21 +08:00
parent cd13e1dbfa
commit adda03e5d8
1 changed files with 3 additions and 0 deletions

View File

@ -139,6 +139,9 @@ func (o *productUpload) buildWorkflow(ctx context.Context) (compose.Runnable[*Pr
if ingestData.TaxRate == "" { if ingestData.TaxRate == "" {
return nil, errors.New("税率不能为空") return nil, errors.New("税率不能为空")
} }
if ingestData.SupplierPrice == "" {
return nil, errors.New("供应商报价不能为空")
}
state.IngestData = &ingestData state.IngestData = &ingestData
state.SupplierName = ingestData.SupplierName state.SupplierName = ingestData.SupplierName