|
@@ -27,14 +27,12 @@
|
|
|
<el-table-column label="规格图片" width="80">
|
|
<el-table-column label="规格图片" width="80">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
<img v-if="row.image" :src="row.image" style="width:40px;height:40px;object-fit:cover;border-radius:4px;" />
|
|
<img v-if="row.image" :src="row.image" style="width:40px;height:40px;object-fit:cover;border-radius:4px;" />
|
|
|
- <span v-else style="color:#999">-</span>
|
|
|
|
|
|
|
+ <span v-else style="color:var(--adm-text-45)">-</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="启用" width="70">
|
|
<el-table-column label="启用" width="70">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
- <el-tag :type="row.enabled ? 'success' : 'info'" size="mini">
|
|
|
|
|
- {{ row.enabled ? '是' : '否' }}
|
|
|
|
|
- </el-tag>
|
|
|
|
|
|
|
+ <StatusTag :type="row.enabled ? 'success' : 'info'" :text="row.enabled ? '是' : '否'" size="mini" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="120" fixed="right">
|
|
<el-table-column label="操作" width="120" fixed="right">
|
|
@@ -60,11 +58,11 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="关联商品">
|
|
<el-form-item label="关联商品">
|
|
|
<el-button size="small" @click="openProductPicker">选择商品</el-button>
|
|
<el-button size="small" @click="openProductPicker">选择商品</el-button>
|
|
|
- <div v-if="skuForm.linkedProductId" style="margin-top:8px;display:flex;align-items:center;gap:10px;padding:8px;background:#f5f7fa;border-radius:4px;">
|
|
|
|
|
|
|
+ <div v-if="skuForm.linkedProductId" style="margin-top:8px;display:flex;align-items:center;gap:10px;padding:8px;background:var(--adm-bg-header);border-radius:4px;">
|
|
|
<img v-if="skuForm.linkedProductImage" :src="skuForm.linkedProductImage" style="width:50px;height:50px;object-fit:cover;border-radius:4px;" />
|
|
<img v-if="skuForm.linkedProductImage" :src="skuForm.linkedProductImage" style="width:50px;height:50px;object-fit:cover;border-radius:4px;" />
|
|
|
<div>
|
|
<div>
|
|
|
<div>{{ skuForm.linkedProductName }}</div>
|
|
<div>{{ skuForm.linkedProductName }}</div>
|
|
|
- <div style="font-size:12px;color:#999;">¥{{ skuForm.linkedProductPrice ? (skuForm.linkedProductPrice/100).toFixed(2) : '0.00' }} | 库存 {{ skuForm.linkedProductStock }}</div>
|
|
|
|
|
|
|
+ <div style="font-size:12px;color:var(--adm-text-45);">¥{{ skuForm.linkedProductPrice ? (skuForm.linkedProductPrice/100).toFixed(2) : '0.00' }} | 库存 {{ skuForm.linkedProductStock }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<el-button size="mini" type="text" @click="openProductPicker">更换</el-button>
|
|
<el-button size="mini" type="text" @click="openProductPicker">更换</el-button>
|
|
|
</div>
|
|
</div>
|
|
@@ -509,7 +507,7 @@ const baseURL = process.env.VUE_APP_BASE_API || ''
|
|
|
.sku-title {
|
|
.sku-title {
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
|
- color: #303133;
|
|
|
|
|
|
|
+ color: var(--adm-text-88);
|
|
|
}
|
|
}
|
|
|
.sku-image-row {
|
|
.sku-image-row {
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -521,6 +519,6 @@ const baseURL = process.env.VUE_APP_BASE_API || ''
|
|
|
height: 60px;
|
|
height: 60px;
|
|
|
object-fit: cover;
|
|
object-fit: cover;
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
|
- border: 1px solid #ddd;
|
|
|
|
|
|
|
+ border: 1px solid var(--adm-border-base);
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|