From 61de71bb6209dd021473c714ea99846ede664f36 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Wed, 2 Sep 2026 10:16:03 +0800 Subject: [PATCH 1/2] =?UTF-8?q?site=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/warehouse/labelQuery.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/modules/warehouse/labelQuery.vue b/src/views/modules/warehouse/labelQuery.vue index 0bad252..44da1bd 100644 --- a/src/views/modules/warehouse/labelQuery.vue +++ b/src/views/modules/warehouse/labelQuery.vue @@ -348,6 +348,16 @@ export default { showOverflowTooltip: true, fixed: "" }, + { + columnProp: "site", + headerAlign: "center", + align: "center", + columnLabel: this.$t('warehouse.pallet.factory'), + columnWidth: 110, + columnSortable: false, + showOverflowTooltip: true, + fixed: "" + }, { columnProp: "partNo", headerAlign: "center", From 2b56fbecce63f3ebacf47b6ccfef61a36d31d3de Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Wed, 2 Sep 2026 10:54:19 +0800 Subject: [PATCH 2/2] table loading --- src/views/modules/purchase/cancelReceipt.vue | 27 ++++++++++++++++---- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/src/views/modules/purchase/cancelReceipt.vue b/src/views/modules/purchase/cancelReceipt.vue index b872323..f5466ec 100644 --- a/src/views/modules/purchase/cancelReceipt.vue +++ b/src/views/modules/purchase/cancelReceipt.vue @@ -17,7 +17,7 @@ { + const cancelRecords = [...this.currentCancelRecords] + this.cancelingRecordKeys = cancelRecords.map(record => this.getCancelRecordKey(record)) + const promises = cancelRecords.map(record => { return cancelReceipt({ receiptSequence: record.receiptSequence, site: record.contract, @@ -298,7 +314,7 @@ export default { if (result.data && result.data.code === 0) { successCount++ } else { - const record = this.currentCancelRecords[index] + const record = cancelRecords[index] errorMessages.push(this.$t('purchase.cancelReceipt.cancelItemFailed', { receiptNo: record.receiptNo || record.sourceRef1 || '', reason: result.data.msg || this.$t('purchase.cancelReceipt.cancelFailed') @@ -316,10 +332,11 @@ export default { } this.cancelDialogVisible = false - this.cancelLoading = false }).catch(() => { this.$message.error(this.$t('purchase.cancelReceipt.cancelOperationFailed')) + }).finally(() => { this.cancelLoading = false + this.cancelingRecordKeys = [] }) }, // 重置查询