style(frontend): 修复 prettier 格式门禁
三个本分支改动的文件未过 prettier --check,导致 npm run check 与部署门禁红灯。 按项目风格重新排版后台分销站点页、移动端发布页与定价计算 composable,不改动任何逻辑。 验证:npx prettier --check . 通过;npm run check(format + eslint --max-warnings=0 + vue-tsc)通过;vitest 7 文件 / 32 用例通过。
This commit is contained in:
@@ -348,7 +348,10 @@ onMounted(() => {
|
||||
</el-table-column>
|
||||
<el-table-column label="收号下调" width="110">
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="Number(row.receive_ratio_delta || 0) > 0 ? 'warning' : 'info'" size="small">
|
||||
<el-tag
|
||||
:type="Number(row.receive_ratio_delta || 0) > 0 ? 'warning' : 'info'"
|
||||
size="small"
|
||||
>
|
||||
{{
|
||||
Number(row.receive_ratio_delta || 0) > 0
|
||||
? `-${Number(row.receive_ratio_delta).toFixed(1)} 点`
|
||||
@@ -599,7 +602,11 @@ onMounted(() => {
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button @click="receiveRatioDialogVisible = false">取消</el-button>
|
||||
<el-button type="primary" :loading="receiveRatioSubmitting" @click="handleReceiveRatioSubmit">
|
||||
<el-button
|
||||
type="primary"
|
||||
:loading="receiveRatioSubmitting"
|
||||
@click="handleReceiveRatioSubmit"
|
||||
>
|
||||
保存设置
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
@@ -702,7 +702,8 @@ const screenshotGuides: Record<string, string> = {
|
||||
本站可下调收号比例换取更高利润,但不能高于主站比例。当前按站点配置计算。
|
||||
</p>
|
||||
<p class="ratio-range">
|
||||
{{ saleRatioRangeText }}{{ isDistribution ? '。' : ',比例越高出租速度越快,自行选择。' }}
|
||||
{{ saleRatioRangeText
|
||||
}}{{ isDistribution ? '。' : ',比例越高出租速度越快,自行选择。' }}
|
||||
</p>
|
||||
<div v-if="!isDistribution" class="ratio-mode-grid">
|
||||
<button
|
||||
|
||||
@@ -94,7 +94,10 @@ export function usePricingCalculator(options: {
|
||||
const calculatedRatio = computed(() => {
|
||||
if (calculatedDefaultSaleRatio.value <= 0) return 0
|
||||
if (options.isDistribution?.value) {
|
||||
return applySiteReceiveRatioDelta(calculatedDefaultSaleRatio.value, siteReceiveRatioDelta.value)
|
||||
return applySiteReceiveRatioDelta(
|
||||
calculatedDefaultSaleRatio.value,
|
||||
siteReceiveRatioDelta.value
|
||||
)
|
||||
}
|
||||
return readFinalSaleRatio(
|
||||
calculatedDefaultSaleRatio.value,
|
||||
|
||||
Reference in New Issue
Block a user