feat: 商品规格功能调整

This commit is contained in:
duan
2025-02-21 14:41:43 +08:00
parent dc5f664143
commit 43ae9f371d
17 changed files with 954 additions and 140 deletions

View File

@@ -16,6 +16,9 @@
{{ scope.row[scope.prop] == 1 ? "启用" : "禁用" }}
</el-tag>
</template>
<template #type="scope">
{{ typeFilter(scope.row[scope.prop]) }}
</template>
<template #gender="scope">
<DictLabel v-model="scope.row[scope.prop]" code="gender" />
</template>
@@ -125,6 +128,14 @@ function handleToolbarClick(name: string) {
function confirm() {
console.log(form, 'debug')
}
// 商品规格
function typeFilter(item: any) {
if (item == 'single') { return '单规格' }
else if (item == 'sku') { return '多规格' }
else if (item == 'package') { return '套餐商品' }
else if (item == 'weight') { return '称重商品' }
else if (item == 'coupon') { return '团购券' }
}
// 其他操作列
async function handleOperatClick(data: IOperatData) {
console.log(data);