docs: annotate instance controls and legacy upgrades

This commit is contained in:
cieanyau committed 2026-11-06 00:39:01 +08:00
1 parent f50693a674
commit 5ba081550c
6 files changed
+20 -2

No files matched your search

@@ -1,4 +1,5 @@
<script>
// 旧财务模块跨商品升级:读取目标商品与周期,再使用当前选择的同步报价创建订单。
import "~/assets/styles/LegacyProductUpgrade.dzWGwGgY.css";
import { toDisplayString } from "vue";
import { onMounted } from "vue";
@@ -71,6 +72,7 @@ var C = {
function W() {
(B++, (L.value = ``), (U = ``), (P.value = !1), (I.value = ``));
}
// 仅保留有合法商品 ID 和周期数组的升级目标,禁止升级时不加载选项。
async function G() {
if (D.upgradeAllowed === !1 || H) return;
let e = ++V;
@@ -94,6 +96,7 @@ var C = {
e === V && (N.value = !1);
}
}
// 报价绑定实例、模块、目标商品与周期,切换任一条件都会使旧报价失效。
async function K() {
if (
D.upgradeAllowed === !1 ||
@@ -129,6 +132,7 @@ var C = {
e === B && (P.value = !1);
}
}
// 必须持有与当前选择一致的报价才能下单,返回订单编号有效后再发出 pay 事件。
async function q() {
if (
D.upgradeAllowed === !1 ||