feat(store): 修改商品编辑页面毛利率输入方式,添加毛利率列显示

This commit is contained in:
mkm 2024-07-25 09:35:49 +08:00
parent 9d51d3691c
commit af84ba0317
3 changed files with 22 additions and 7 deletions

View File

@ -142,11 +142,18 @@
:readonly="false" :readonly="false"
/> />
</el-form-item> </el-form-item>
<!-- <el-form-item label="上浮比例" prop="rose"> <el-form-item label="毛利率" prop="rose">
<el-input v-model="formData.rose" type="number" class="w-[500px]" clearable placeholder="请输入上浮比例" :readonly="false" > <el-input-number
<template #suffix>%</template> v-model="formData.rose"
</el-input> type="number"
</el-form-item> --> class="w-[500px]"
clearable
placeholder="请输入毛利率"
:readonly="false"
>
<template #suffix>%</template>
</el-input-number>
</el-form-item>
<el-form-item label="退货" prop="is_return"> <el-form-item label="退货" prop="is_return">
<el-radio-group v-model="formData.is_return"> <el-radio-group v-model="formData.is_return">
<el-radio :label="1">支持</el-radio> <el-radio :label="1">支持</el-radio>

View File

@ -117,6 +117,12 @@
min-width="100" min-width="100"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column
label="毛利率"
prop="rose"
min-width="100"
show-overflow-tooltip
/>
<el-table-column <el-table-column
label="售卖库存" label="售卖库存"
prop="stock" prop="stock"

View File

@ -64,11 +64,11 @@
<el-table :data="pager.lists" @selection-change="handleSelectionChange"> <el-table :data="pager.lists" @selection-change="handleSelectionChange">
<!-- <el-table-column type="selection" width="55" /> --> <!-- <el-table-column type="selection" width="55" /> -->
<el-table-column label="ID" prop="id" min-width="55" /> <el-table-column label="ID" prop="id" min-width="55" />
<el-table-column label="头像" prop="avatar" show-overflow-tooltip> <!-- <el-table-column label="头像" prop="avatar" show-overflow-tooltip>
<template #default="{ row }"> <template #default="{ row }">
<el-avatar :src="row.avatar" /> <el-avatar :src="row.avatar" />
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="真实姓名" prop="real_name" /> <el-table-column label="真实姓名" prop="real_name" />
<el-table-column label="用户昵称" prop="nickname" min-width="100" /> <el-table-column label="用户昵称" prop="nickname" min-width="100" />
<el-table-column label="用户账号" prop="account" min-width="100" /> <el-table-column label="用户账号" prop="account" min-width="100" />
@ -81,6 +81,8 @@
</el-table-column> </el-table-column>
<el-table-column label="注册渠道" prop="channel" /> --> <el-table-column label="注册渠道" prop="channel" /> -->
<el-table-column label="用户类型" prop="vip_name" /> <el-table-column label="用户类型" prop="vip_name" />
<el-table-column label="会员开通时间" prop="vip_time" />
<!-- <el-table-column label="用户标签" prop="label_name" /> --> <!-- <el-table-column label="用户标签" prop="label_name" /> -->
<el-table-column label="礼品券" prop="integral" /> <el-table-column label="礼品券" prop="integral" />
<el-table-column label="返还金" prop="return_money"> <el-table-column label="返还金" prop="return_money">