| | |
| | | <el-table-column prop="labels" label="商品标签集合,多个用英文逗号隔开" min-width="100px"></el-table-column> --> |
| | | <!-- v-if="containPermissions(['business:goods:update', 'business:goods:delete'])" --> |
| | | <el-table-column |
| | | |
| | | |
| | | label="操作" |
| | | min-width="120" |
| | | fixed="right" |
| | |
| | | <template v-if="row.status==1"> |
| | | <el-button type="text" @click="$refs.operaGoodsWindow.open('编辑商品', row, 1)" v-permissions="['business:goods:update']">编辑</el-button> |
| | | <el-button type="text" @click="$refs.operaPlatformGoodsSkuWindow.open('平台SKU', row)">SKU</el-button> |
| | | <el-button type="text" @click="deleteById(row)" v-permissions="['business:goods:delete']">删除</el-button> |
| | | <el-button type="text" style="color: red;" @click="deleteById(row)" v-permissions="['business:goods:delete']">删除</el-button> |
| | | </template> |
| | | <template v-else> |
| | | <el-button type="text" @click="$refs.operaGoodsDetailWindow.open('商品详情', row, 0)">查看详情</el-button> |
| | |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | |
| | | |
| | | labelList({ |
| | | capacity: 999, |
| | | model: { |
| | |
| | | |
| | | }, |
| | | /** |
| | | * |
| | | * |
| | | * @param {上下状态} status 0上架 1下架 |
| | | */ |
| | | issued(status) { |
| | |
| | | |
| | | }) |
| | | }, |
| | | |
| | | |
| | | statusChange(row) { |
| | | updateById(row) |
| | | .then(() => { |