20261008-ide1.0发布 #1

Merged
zzh merged 24 commits from test into master 2026-10-08 09:19:21 +08:00
Showing only changes of commit 4a8a4eddca - Show all commits

View File

@ -1224,14 +1224,12 @@
priceTableData.value = rows;
priceTabLoadedProductId = productId;
void refreshSalesProductPriceEffectiveInfo(productId);
const sig = `${productId}|${rows
.map((r) => `${r.id}:${r.modifyTime}:${r.status ? 1 : 0}`)
.join(',')}`;
if (sig === pricePublishCheckedSig) return;
// 立刻拉预览/线上快照(网络与表格并行);重 CPU 对比在请求返回后 yield 再跑
// 发布同步态必须每次刷新:不能跟价格行 modifyTime 签名绑死,否则刚发布后签名不变会跳过刷新、徽章一直「待发布」
void refreshPricePublishSyncStatus(productId).then(() => {
if (seq === priceTabLoadSeq && selectedProduct.value === productId) {
pricePublishCheckedSig = sig;
pricePublishCheckedSig = `${productId}|${rows
.map((r) => `${r.id}:${r.modifyTime}:${r.status ? 1 : 0}`)
.join(',')}`;
}
});
} catch (e) {
@ -2274,7 +2272,10 @@
publishModalMethods.closeModal();
await loadRecordsTabData(pid, true);
if (operatorType === 'price') {
pricePublishCheckedSig = '';
pricePublishPending.value = false;
await loadPriceTabData(pid);
await refreshPricePublishSyncStatus(pid);
}
} catch (e: any) {
Message.error(e?.message || t('channel.salesProducts.publish.fail'));