This commit is contained in:
2026-08-25 18:39:51 +08:00
parent d6b6be0e9b
commit 4340c9fc59
4 changed files with 81 additions and 40 deletions
@@ -10125,10 +10125,14 @@ export default {
downloadFileByUrl(url, this.attachmentName(row));
},
handleBatchDownload() {
const rows = this.selectedAttachmentRows.length
? this.selectedAttachmentRows
: this.attachmentRows;
rows.forEach(row => this.downloadAttachment(row));
const rows = this.isShippingTemplatePage
? this.attachmentRows
: this.selectedAttachmentRows.length
? this.selectedAttachmentRows
: this.attachmentRows;
rows.forEach((row, index) => {
window.setTimeout(() => this.downloadAttachment(row), index * 200);
});
},
handleDispatchItemAttachmentChange(list) {
const userName = this.userInfo?.realName || this.userInfo?.userName || '';