修复商品库存与网络摘要并校验订购编号

This commit is contained in:
cieanyau committed 2026-11-06 04:48:38 +08:00
1 parent 28894e0813
commit d8224ec5b7
15 files changed
+529 -68

No files matched your search

+14 -11
View File
@@ -51,6 +51,7 @@ import { n as ProductConfigurationSummary_n } from "~/components/ProductConfigur
import ProductConfigurationSummary from "~/components/ProductConfigurationSummary.vue";
import ProductDescription from "~/components/ProductDescription.vue";
import ProductGroupLabel from "~/components/ProductGroupLabel.vue";
import { productId } from "~/lib/product-id.js";
var j = rolldown_runtime_i(getCrypto(), 1),
M = 2592e6,
N = 100,
@@ -613,17 +614,19 @@ var me = {
a || ((T.value = []), (E.value = 0), (A.value = !1));
let s = await t.get(`/product`, r);
if (n !== W) return;
((T.value = (s.list ?? []).map((t) => ({
...t,
startingPrice: q(t)
? (o.get(t.id)?.startingPrice ?? null)
: void 0,
configurationSummary: product_name_t(t.name)
? e
? o.get(t.id)?.configurationSummary
: y.peek(t)
: [],
}))),
((T.value = (s.list ?? [])
.filter((t) => productId(t.id) !== null)
.map((t) => ({
...t,
startingPrice: q(t)
? (o.get(t.id)?.startingPrice ?? null)
: void 0,
configurationSummary: product_name_t(t.name)
? e
? o.get(t.id)?.configurationSummary
: y.peek(t)
: [],
}))),
(E.value = Number(s.count) || 0),
(K = i),
(A.value = !0));