feat: 商品规格功能调整
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user