feat(web-admin): mark arrange-required product fields with asterisk

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-08-30 17:53:47 +08:00
1 parent a4619a0788
commit 810c9aacae
1 file changed
+34 -8
@@ -95,7 +95,9 @@
<span class="pl-stop-product-dual-item__readonly">{{ row.model || '—' }}</span>
</div>
<div class="pl-stop-product-dual-item__field">
<span class="pl-stop-product-dual-item__label">单位</span>
<span class="pl-stop-product-dual-item__label"
>单位<span class="pl-stop-field-required" aria-hidden="true">*</span></span
>
<DictSelect
v-if="sharedEditable"
v-model="row.unit"
@@ -127,7 +129,9 @@
</div>
</div>
<div class="pl-stop-product-dual-item__field">
<span class="pl-stop-product-dual-item__label">计划数量</span>
<span class="pl-stop-product-dual-item__label"
>计划数量<span class="pl-stop-field-required" aria-hidden="true">*</span></span
>
<el-input-number
v-if="editable"
v-model="row.planQty"
@@ -148,7 +152,9 @@
</p>
</div>
<div class="pl-stop-product-dual-item__field">
<span class="pl-stop-product-dual-item__label">包装规格</span>
<span class="pl-stop-product-dual-item__label"
>包装规格<span class="pl-stop-field-required" aria-hidden="true">*</span></span
>
<DictSelect
v-if="sharedEditable"
v-model="row.packageSpec"
@@ -161,7 +167,9 @@
}}</span>
</div>
<div class="pl-stop-product-dual-item__field">
<span class="pl-stop-product-dual-item__label">送货方式</span>
<span class="pl-stop-product-dual-item__label"
>送货方式<span class="pl-stop-field-required" aria-hidden="true">*</span></span
>
<DictSelect
v-if="sharedEditable"
v-model="row.deliveryMethod"
@@ -249,7 +257,10 @@
{{ row.model || '—' }}
</template>
</el-table-column>
<el-table-column label="单位" min-width="100" align="center">
<el-table-column min-width="100" align="center">
<template #header>
<span>单位<span class="pl-stop-field-required" aria-hidden="true">*</span></span>
</template>
<template #default="{ row }">
<DictSelect
v-if="sharedEditable"
@@ -281,7 +292,10 @@
</div>
</template>
</el-table-column>
<el-table-column label="计划数量" min-width="110" align="right">
<el-table-column min-width="110" align="right">
<template #header>
<span>计划数量<span class="pl-stop-field-required" aria-hidden="true">*</span></span>
</template>
<template #default="{ row }">
<el-input-number
v-if="editable"
@@ -328,7 +342,10 @@
{{ formatStopArchiveAmount(row, stopArchiveMode) }}
</template>
</el-table-column>
<el-table-column prop="packageSpec" label="包装规格" min-width="100" align="center">
<el-table-column prop="packageSpec" min-width="100" align="center">
<template #header>
<span>包装规格<span class="pl-stop-field-required" aria-hidden="true">*</span></span>
</template>
<template #default="{ row }">
<DictSelect
v-if="sharedEditable"
@@ -344,7 +361,10 @@
</template>
</template>
</el-table-column>
<el-table-column label="送货方式" min-width="100" align="center">
<el-table-column min-width="100" align="center">
<template #header>
<span>送货方式<span class="pl-stop-field-required" aria-hidden="true">*</span></span>
</template>
<template #default="{ row }">
<DictSelect
v-if="sharedEditable"
@@ -890,6 +910,12 @@
justify-content: flex-end;
}
}
.pl-stop-field-required {
margin-left: 2px;
color: #dc2626;
font-weight: 600;
}
</style>
<style lang="scss">