This commit is contained in:
zjf committed 2025-09-08 16:20:08 +08:00
1 parent 20dc9d7f91
commit c046422fb9
2 files changed
+11 -11

No files matched your search

+7 -7
View File
@@ -56,8 +56,8 @@
<el-col :span="12" class="mb20"> <el-col :span="12" class="mb20">
<el-form-item label="状态" prop="status"> <el-form-item label="状态" prop="status">
<el-radio-group v-model="form.status"> <el-radio-group v-model="form.status">
<el-radio label="1">上架</el-radio> <el-radio label="0">上架</el-radio>
<el-radio label="0">下架</el-radio> <el-radio label="1">下架</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
@@ -223,8 +223,8 @@
<template #default="scope"> <template #default="scope">
<div class="sku-cell"> <div class="sku-cell">
<el-radio-group v-model="scope.row.status" size="small"> <el-radio-group v-model="scope.row.status" size="small">
<el-radio label="1">启用</el-radio> <el-radio label="0">启用</el-radio>
<el-radio label="0">停用</el-radio> <el-radio label="1">停用</el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
</template> </template>
@@ -317,7 +317,7 @@ const form = reactive({
spuPrice: 0, spuPrice: 0,
originalPrice: 0, originalPrice: 0,
unit: '', unit: '',
status: '1', // 默认上架 status: '0', // 默认上架
saleStartTime: '', saleStartTime: '',
saleEndTime: '', saleEndTime: '',
description: '', description: '',
@@ -363,7 +363,7 @@ const addSku = () => {
stock: 0, stock: 0,
barcode: '', barcode: '',
weightG: 0, weightG: 0,
status: '1' status: '0'
}); });
}; };
@@ -421,7 +421,7 @@ const openDialog = (id: string) => {
spuPrice: 0, spuPrice: 0,
originalPrice: 0, originalPrice: 0,
unit: '', unit: '',
status: '1', status: '0',
saleStartTime: '', saleStartTime: '',
saleEndTime: '', saleEndTime: '',
description: '', description: '',
+4 -4
View File
@@ -99,8 +99,8 @@
<el-table-column prop="status" label="状态" width="100" align="center"> <el-table-column prop="status" label="状态" width="100" align="center">
<template #default="scope"> <template #default="scope">
<el-tag :type="scope.row.status === '1' ? 'success' : 'danger'"> <el-tag :type="scope.row.status === '0' ? 'success' : 'danger'">
{{ scope.row.status === '1' ? '上架' : '下架' }} {{ scope.row.status === '0' ? '上架' : '下架' }}
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
@@ -158,8 +158,8 @@
<el-table-column prop="weightG" label="重量(克)" width="120" align="center"/> <el-table-column prop="weightG" label="重量(克)" width="120" align="center"/>
<el-table-column prop="status" label="状态" width="100" align="center"> <el-table-column prop="status" label="状态" width="100" align="center">
<template #default="scope"> <template #default="scope">
<el-tag :type="scope.row.status === '1' ? 'success' : 'danger'"> <el-tag :type="scope.row.status === '0' ? 'success' : 'danger'">
{{ scope.row.status === '1' ? '启用' : '停用' }} {{ scope.row.status === '0' ? '启用' : '停用' }}
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>