修改了旧规格型号
This commit is contained in:
@@ -3825,6 +3825,11 @@
|
||||
操作(序列号)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:BarCode.Web.Core.Dto.SerialNumbers.specifications">
|
||||
<summary>
|
||||
specifications
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:BarCode.Web.Core.Dto.SingleData.IdRequest">
|
||||
<summary>
|
||||
ID请求对象
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using BarCode.Web.Core.Dto.Box;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
@@ -22,11 +23,29 @@ namespace BarCode.Web.Core.Dto.SerialNumbers
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "物料编码不能为空")]
|
||||
public string MaterialNumber { get; set; } = string.Empty;
|
||||
public string specifications { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 物料规格
|
||||
/// </summary>
|
||||
public List<Specifications> specifications { get; set; } = new List<Specifications>();
|
||||
|
||||
/// <summary>
|
||||
/// 操作(序列号)
|
||||
/// </summary>
|
||||
public List<string> SerialNumbers { get; set; } = new List<string>();
|
||||
}
|
||||
/// <summary>
|
||||
/// specifications
|
||||
/// </summary>
|
||||
public class Specifications
|
||||
{
|
||||
/// <summary>
|
||||
/// serialNumber
|
||||
/// </summary>
|
||||
public string serialNumber { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// old_Specification
|
||||
/// </summary>
|
||||
public string old_Specification { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -854,7 +854,7 @@ namespace BarCode.Web.Domain.Services
|
||||
//修改物料
|
||||
foreach (var s in serialNumbers)
|
||||
{
|
||||
var res = s.UpdateMaterial(dto.MaterialNumber,dto.specifications);// _erpBasicDataExtendService.GetMaterialSpecifications(materials, dto.MaterialNumber));
|
||||
var res = s.UpdateMaterial(dto.MaterialNumber, _erpBasicDataExtendService.GetMaterialSpecifications(materials, s.MaterialNumber));// _erpBasicDataExtendService.GetMaterialSpecifications(materials, dto.MaterialNumber));
|
||||
if (!res.IsSuccess) return res;
|
||||
}
|
||||
generateRecord.UpdateMaterial();
|
||||
|
||||
Reference in New Issue
Block a user