优化套餐编辑逻辑
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<el-card shadow="never" class="step-card">
|
||||
<template #header><span>第 1 步 · 基本信息</span></template>
|
||||
<template #header><span>基本信息</span></template>
|
||||
<el-form ref="formRef" :model="basic" :rules="rules" label-width="120px" class="max-form">
|
||||
<el-form-item label="套餐名称" prop="priceSetName">
|
||||
<el-input v-model="basic.priceSetName" maxlength="50" placeholder="如:金牌电商专属套餐" />
|
||||
@@ -15,7 +15,7 @@
|
||||
</template>
|
||||
|
||||
<script setup name="StepBasicInfo">
|
||||
/** Step1 basic info. setType always FIXED on save; priceBuildMode chosen on Step2. */
|
||||
/** Basic info. setType always FIXED on save; priceBuildMode chosen in details panel. */
|
||||
const basic = defineModel({ type: Object, required: true })
|
||||
|
||||
const formRef = ref()
|
||||
|
||||
@@ -223,7 +223,7 @@ const props = defineProps({
|
||||
effectiveTime: { type: String, default: undefined },
|
||||
versionNo: { type: String, default: '' },
|
||||
refData: { type: Object, required: true },
|
||||
headerTitle: { type: String, default: '第 2 步 · 编辑产品价格' },
|
||||
headerTitle: { type: String, default: '编辑产品价格' },
|
||||
/** true=edit live DB; false=create local draft until finish */
|
||||
livePersist: { type: Boolean, default: true },
|
||||
/** Version status: draft can change build mode; started versions lock it */
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</div>
|
||||
<el-alert type="info" :closable="false" show-icon class="mb12" :title="hint" />
|
||||
<el-empty v-if="!filteredProducts.length" :description="emptyProduct" :image-size="72" />
|
||||
<el-table v-else :data="filteredProducts" border height="calc(100vh - 280px)" @row-click="openProductDetail">
|
||||
<el-table v-else :data="filteredProducts" border height="calc(100vh - 280px)">
|
||||
<el-table-column :label="colCode" min-width="100">
|
||||
<template #default="{ row }"><b>{{ row.productCode }}</b></template>
|
||||
</el-table-column>
|
||||
@@ -151,7 +151,7 @@ const activeProduct = ref(null)
|
||||
|
||||
const phSearch = '产品代码/名称'
|
||||
const phDetailSearch = '搜索国家/分区'
|
||||
const hint = '点击产品行查看国家/重量段明细(仅查看)'
|
||||
const hint = '点击「查看明细」查看国家/重量段明细(仅查看)'
|
||||
const emptyProduct = '暂无产品'
|
||||
const emptyDetail = '暂无明细'
|
||||
const colCode = '产品代码'
|
||||
|
||||
Reference in New Issue
Block a user