feat: add order detail done function

This commit is contained in:
2025-10-10 17:08:20 +08:00
parent 7e64968e42
commit 4c98dbd2b9

View File

@@ -62,6 +62,7 @@
<template #menu="{ row }"> <template #menu="{ row }">
<el-button type="text" <el-button type="text"
icon="el-icon-download" icon="el-icon-download"
v-if="row.status === 1"
@click.stop="handleDownload(row)">Download @click.stop="handleDownload(row)">Download
</el-button> </el-button>
<el-button type="text" <el-button type="text"
@@ -298,7 +299,7 @@ export default {
return doneDetail(row); return doneDetail(row);
}) })
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoadSub(this.pageSub);
this.$message({ this.$message({
type: 'success', type: 'success',
message: 'Success!' message: 'Success!'
@@ -306,7 +307,6 @@ export default {
}); });
}, },
handleDownload(row) { handleDownload(row) {
// 安全访问数组,避免 undefined.map()
const urlData = (row.photos || []).map(url => ({ url })); const urlData = (row.photos || []).map(url => ({ url }));
const u = (row.stickers || []).map(url => ({ url })); const u = (row.stickers || []).map(url => ({ url }));
const t = (row.texts || []).map(t => ({ const t = (row.texts || []).map(t => ({