修改套餐功能

This commit is contained in:
wuweihua
2026-09-20 10:31:12 +08:00
parent 72d23a0e23
commit 8d1abf0eb1
3 changed files with 9 additions and 20 deletions
@@ -666,9 +666,9 @@
<el-tag size="small" :type="selectedPriceSet.setType === 'DISCOUNT' ? 'warning' : 'primary'">
{{ setTypeMap[selectedPriceSet.setType] || selectedPriceSet.setType }}
</el-tag>
<span class="ps-readonly__range">
套餐有效期:{{ selectedPriceSet.effectiveDate || '-' }} 至 {{ selectedPriceSet.expireDate || '长期' }}
</span>
<el-tag size="small" :type="priceSetStatusTagType[selectedPriceSet.status] || 'info'" class="ps-readonly__status">
{{ priceSetStatusMap[selectedPriceSet.status] || selectedPriceSet.status || '-' }}
</el-tag>
</div>
</el-form-item>
<el-form-item label="优先级" prop="bindPriority">
@@ -855,12 +855,10 @@ function openPriceSetDialog(row) {
nextTick(() => proxy.$refs['priceSetRef'] && proxy.$refs['priceSetRef'].clearValidate())
}
/** 选择套餐后,生效日期未填时默认带出套餐生效日期 */
/** 选择套餐后,生效日期未填时默认今天 */
function onPriceSetChange(priceSetId) {
const opt = priceSetOptions.value.find(o => o.priceSetId === priceSetId)
if (opt && !priceSetForm.value.prBegindate) {
priceSetForm.value.prBegindate = opt.effectiveDate || null
}
if (!priceSetId || priceSetForm.value.prBegindate) return
priceSetForm.value.prBegindate = proxy.parseTime(new Date(), '{y}-{m}-{d}')
}
function submitPriceSetForm() {