feat: small fix
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m12s

This commit is contained in:
luo
2026-07-29 11:36:34 +08:00
parent 827de02f2b
commit 4394ae0f78
10 changed files with 58 additions and 64 deletions

View File

@@ -131,15 +131,19 @@
<div class="package-config-name" :title="pkg.package_name || ''">
{{ pkg.package_name || '套餐名称不可用' }}
</div>
<ElInputNumber
v-model="pkg.cost_price_yuan"
:min="pkg.original_cost_price || 0"
:max="getPackageCostPriceMax(pkg)"
:precision="2"
:step="0.01"
:controls="false"
placeholder="成本价(元)"
/>
<div class="package-config-cost">
<span class="package-config-field-label">套餐成本价</span>
<ElInputNumber
v-model="pkg.cost_price_yuan"
:min="pkg.original_cost_price || 0"
:max="getPackageCostPriceMax(pkg)"
:precision="2"
:step="0.01"
:controls="false"
placeholder="请输入成本价"
style="width: 150px"
/>
</div>
</div>
</div>
</ElFormItem>
@@ -759,7 +763,10 @@
remove: true
}
]
await ShopSeriesGrantService.manageGrantPackages(grantId.value, { packages })
await ShopSeriesGrantService.manageGrantPackages(grantId.value, {
expiry_base_override: row.expiry_base_override ?? null,
packages
})
await fetchPackageList()
} catch (error) {
console.error(error)
@@ -858,6 +865,19 @@
flex: 1;
}
.package-config-cost {
display: flex;
flex-shrink: 0;
gap: 8px;
align-items: center;
}
.package-config-field-label {
color: var(--el-text-color-secondary);
font-size: 13px;
white-space: nowrap;
}
.ellipsis-value {
display: block;
width: 260px;