feat(字典组件): 添加DictSelect组件并替换多处muti-select
添加DictSelect组件作为全局组件,并在多个报表模板中替换原有的muti-select组件 优化字典项筛选逻辑,调整样式和提示文本
This commit is contained in:
@@ -153,12 +153,15 @@ const calcTeamSummary = (list) => {
|
||||
}
|
||||
|
||||
const calcMSummary = (list, lossList) => {
|
||||
// 统计,需要二外处理M卷,也就是钢卷的currentCoilNo中带有M的钢卷,在统计产出钢卷的数量和重量时需要忽略并记录,并且在统计消耗钢卷的总重量时也需要移除
|
||||
// 统计,需要二外处理M卷,也就是钢卷的currentCoilNo中带有M, 且M不在前五位的钢卷,在统计产出钢卷的数量和重量时需要忽略并记录,并且在统计消耗钢卷的总重量时也需要移除
|
||||
function isMcoil(coil) {
|
||||
return coil.currentCoilNo && coil.currentCoilNo.includes('M') && coil.currentCoilNo.indexOf('M') > 4
|
||||
}
|
||||
|
||||
// 筛选出 M 卷
|
||||
const mCoils = list.filter(item => item.currentCoilNo && item.currentCoilNo.includes('M'))
|
||||
const mCoils = list.filter(item => isMcoil(item))
|
||||
// 非 M 卷
|
||||
const nonMCoils = list.filter(item => !item.currentCoilNo || !item.currentCoilNo.includes('M'))
|
||||
const nonMCoils = list.filter(item => !item.currentCoilNo || !isMcoil(item))
|
||||
|
||||
// 非 M 卷作为产出统计
|
||||
const outCount = nonMCoils.length
|
||||
|
||||
Reference in New Issue
Block a user