优化套餐新建版本的逻辑

This commit is contained in:
wuweihua
2026-10-28 22:09:30 +08:00
parent 786feec859
commit 56340d0ea0
7 changed files with 177 additions and 47 deletions
@@ -58,6 +58,7 @@
<div class="build-card__desc">按产品库基础价生成套餐产品列表,可再导入 Excel 修改价格</div>
</button>
<button
v-if="showImportInherit"
type="button"
class="build-card build-card--import"
:class="{ selected: isImportBuildMode(priceBuildMode) }"
@@ -247,7 +248,12 @@ const props = defineProps({
/** True when build mode changed locally and not saved yet */
buildModeDirty: { type: Boolean, default: false },
/** False while parent still loading package data — avoid first click being wiped by applySetData */
buildModeReady: { type: Boolean, default: true }
buildModeReady: { type: Boolean, default: true },
/**
* Show「按上一版 Excel 建价」(IMPORT). Hidden for brand-new package create
* (no prior version); keep for newVersion / copy / edit.
*/
showImportInherit: { type: Boolean, default: true }
})
const emit = defineEmits(['update:psvId', 'update:priceBuildMode', 'update:pefId'])