fixed bug

This commit is contained in:
chenjianan
2019-06-21 11:05:59 +08:00
parent 5e18bfcc3a
commit d768f952d1
4 changed files with 177 additions and 3 deletions

View File

@@ -128,7 +128,7 @@ export function groupBy(datas, keys) {
group.data1 = group.data1 || 0
group.key.数量 = group.data1 += v.数量
group.data2 = group.data2 || ''
group.key.机床图号_组号 = group.data2 += (v.机床图号 || '') + '-' + (v.组号 ? v.组号.split('组')[0] : '') + ';'
group.key.机床图号_组号 = group.data2 += (v.机床图号 || '') + '-' + (v.组号 ? v.组号.split('组')[0] : '') + ' '
group.data3 = group.data3 || 0
group.key.合计 = group.data3 += v.合计
})