优化套餐新建版本的逻辑
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user