|
|
@ -161,6 +161,9 @@ export default { |
|
|
|
let item = {} |
|
|
|
for (let j = 0; j < that.tableHeader.length; j++) { |
|
|
|
let headerItem = that.tableHeader[j]; |
|
|
|
if (headerItem.prop === "kehupinming") { |
|
|
|
item['kehupinming'] = element["客户品名"] || element["品名"] |
|
|
|
} |
|
|
|
if (element[headerItem.label]) { |
|
|
|
if (headerItem.type === "text") { |
|
|
|
item[headerItem.prop] = element[headerItem.label] |
|
|
@ -509,7 +512,7 @@ export default { |
|
|
|
["sheet1"]: jsonWorkSheet, |
|
|
|
} |
|
|
|
}; |
|
|
|
return this.$XLSX.writeFile(workBook, `销售订单${dayjs().format("YYYY-MM-DD_HH-mm-ss")}.xlsx`); |
|
|
|
return this.$XLSX.writeFile(workBook, `销售订单${dayjs().format("YYYY-MM-DD_HH-mm-ss")}.xls`); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
ElMessage({ |
|
|
@ -582,7 +585,7 @@ export default { |
|
|
|
["sheet1"]: jsonWorkSheet, |
|
|
|
} |
|
|
|
}; |
|
|
|
return this.$XLSX.writeFile(workBook, `S6订单${dayjs().format("YYYY-MM-DD_HH-mm-ss")}.xlsx`); |
|
|
|
return this.$XLSX.writeFile(workBook, `S6订单${dayjs().format("YYYY-MM-DD_HH-mm-ss")}.xls`); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
ElMessage({ |
|
|
|