|
|
@ -476,11 +476,24 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
// 需要统计一下信息 |
|
|
|
list.push({ |
|
|
|
let listTemp = _.sortBy(list, "尺码代码") |
|
|
|
let listObj = _.groupBy(list, "尺码代码") |
|
|
|
listTemp.push({ |
|
|
|
唯一码: "尺码", |
|
|
|
防伪码: "行数", |
|
|
|
}) |
|
|
|
let jsonWorkSheet = XLSX.utils.json_to_sheet(list) |
|
|
|
let pre = 1 |
|
|
|
let next = 1 |
|
|
|
for (let chimaKey in listObj) { |
|
|
|
let chimaValue = listObj[chimaKey] |
|
|
|
pre = next |
|
|
|
next += chimaValue.length |
|
|
|
listTemp.push({ |
|
|
|
唯一码: chimaKey, |
|
|
|
防伪码: `${pre} - ${next}`, |
|
|
|
}) |
|
|
|
} |
|
|
|
let jsonWorkSheet = XLSX.utils.json_to_sheet(listTemp) |
|
|
|
workBook.SheetNames.push(key) |
|
|
|
workBook.Sheets[key] = jsonWorkSheet |
|
|
|
} |
|
|
|