1.导入时默认所有物料为启用状态

This commit is contained in:
hehaibing-1996
2025-03-10 19:10:30 +08:00
parent 67cb906d84
commit 03a06f173d
3 changed files with 4 additions and 1 deletions

View File

@ -305,6 +305,7 @@
if (typeIndex + 1 < this.shelfTypeOptions.length) {
this.selectedShelfTypeIndex = typeIndex;
}
this.shelfAreaOptions = res.data.data.locationArea;
var index = getConfig("bindSelectedShelfAreaIndex", 0);

View File

@ -164,7 +164,7 @@ namespace WCS.BLL.Services.Service
MatUnit = mat.,
MatCustomer = mat.,
ModifyUser = userName,
IsEnable = mat. == "启用" ? true : false,
IsEnable = true,//导入的数据默认启用
};
matBaseInfos.Add(matBaseInfo);
}

View File

@ -84,6 +84,8 @@ namespace WCS.WebApi.Controllers
var list = MiniExcelLibs.MiniExcel.Query<MatBaseInfoImportModel>(stream, "物料管理", ExcelType.XLSX).ToList();
//去除空白行
list.RemoveAll(x => string.IsNullOrWhiteSpace(x.));
//去掉重复项
list = list.Distinct().ToList();
return await _matBaseInfoService.importMatBaseInfo(list, userName, deviceType);
}