新增物料类型处理逻辑,确保在保存和编辑称重记录时自动设置默认物料类型。更新前端表单以支持密炼物料的选择和显示,优化用户体验。添加分类字典和数据字典的事件广播功能,增强系统的实时数据同步能力。
This commit is contained in:
@@ -4,6 +4,8 @@ namespace YY.Admin.Core.Services;
|
||||
|
||||
public record MixerMaterialPageResult(List<MesMixerMaterial> Records, long Total, int Current, int Size);
|
||||
|
||||
public record MaterialCategoryNode(string Id, string? Name, string? Code, List<MaterialCategoryNode> Children);
|
||||
|
||||
public interface IMixerMaterialService
|
||||
{
|
||||
Task<MixerMaterialPageResult> PageAsync(
|
||||
@@ -21,7 +23,10 @@ public interface IMixerMaterialService
|
||||
Task<bool> EditAsync(MesMixerMaterial material, CancellationToken ct = default);
|
||||
Task<bool> DeleteAsync(string id, CancellationToken ct = default);
|
||||
Task<bool> DeleteBatchAsync(string ids, CancellationToken ct = default);
|
||||
|
||||
Task<List<KeyValuePair<string, string>>> GetMajorCategoryOptionsAsync(CancellationToken ct = default);
|
||||
Task<List<KeyValuePair<string, string>>> GetMinorCategoryOptionsAsync(string majorCategoryId, CancellationToken ct = default);
|
||||
}
|
||||
|
||||
Task<List<MaterialCategoryNode>> GetMaterialCategoryTreeAsync(CancellationToken ct = default);
|
||||
Task SyncFromRemoteAsync(CancellationToken ct = default);
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ public interface IWeightRecordService
|
||||
string? filterBillNo = null,
|
||||
string? filterPlateNumber = null,
|
||||
string? filterInoutDirection = null,
|
||||
string? filterGoodsName = null,
|
||||
string? filterDriverName = null,
|
||||
string? filterMixerMaterialName = null,
|
||||
CancellationToken ct = default);
|
||||
|
||||
Task<MesXslWeightRecord?> GetByIdAsync(string id, CancellationToken ct = default);
|
||||
|
||||
Reference in New Issue
Block a user