|
@@ -26,7 +26,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #table-column-status="{scope}">
|
|
<template #table-column-status="{scope}">
|
|
|
- <i class="el-icon-success" v-if="scope.row.status == 1" style="color:#67C23A;font-size:19px;"></i>
|
|
|
|
|
|
|
+ <span v-if="scope.row.status == 1">上架</span>
|
|
|
<span v-else>-</span>
|
|
<span v-else>-</span>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -36,14 +36,9 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #table-column-price="{scope}">
|
|
<template #table-column-price="{scope}">
|
|
|
- <span v-if="!priceInput" style="color:blue;"><span>{{ scope.row.price}}</span></span>
|
|
|
|
|
|
|
+ <span v-if="!priceInput"><span>{{ scope.row.price}}</span></span>
|
|
|
<el-input style="width:80%;" ref="sort-input" focus size="mini" v-else placeholder="" v-model="scope.row.price" @blur="changeInputValue(scope.row, 'price')" ></el-input>
|
|
<el-input style="width:80%;" ref="sort-input" focus size="mini" v-else placeholder="" v-model="scope.row.price" @blur="changeInputValue(scope.row, 'price')" ></el-input>
|
|
|
</template>
|
|
</template>
|
|
|
- <template #table-header-price>
|
|
|
|
|
- <div class="set-sort">
|
|
|
|
|
- <span style="color:blue;">批发价</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
|
|
|
<template #table-column-stockWarning="{scope}">
|
|
<template #table-column-stockWarning="{scope}">
|
|
|
<span v-if="!stockWarningInput"><span>{{ scope.row.stockWarning}}</span></span>
|
|
<span v-if="!stockWarningInput"><span>{{ scope.row.stockWarning}}</span></span>
|
|
@@ -68,6 +63,8 @@
|
|
|
|
|
|
|
|
<template #slot-modify="{ scope }">
|
|
<template #slot-modify="{ scope }">
|
|
|
|
|
|
|
|
|
|
+ <el-button type="text" @click.native.stop="getStockList(scope.row)" >库存明细</el-button>
|
|
|
|
|
+
|
|
|
<el-button type="text" @click.native.stop="replaceBtnFn(scope.row.id)" >修改</el-button>
|
|
<el-button type="text" @click.native.stop="replaceBtnFn(scope.row.id)" >修改</el-button>
|
|
|
|
|
|
|
|
<el-popover style="margin-left:10px;margin-right:10px;" placement="top" width="160" :ref="'popover-' + scope.row.id">
|
|
<el-popover style="margin-left:10px;margin-right:10px;" placement="top" width="160" :ref="'popover-' + scope.row.id">
|
|
@@ -82,8 +79,6 @@
|
|
|
<el-button type="text" v-if="scope.row.delStatus==0" @click.native.stop="setDelStatusFun(scope.row.id,1)" >停用</el-button>
|
|
<el-button type="text" v-if="scope.row.delStatus==0" @click.native.stop="setDelStatusFun(scope.row.id,1)" >停用</el-button>
|
|
|
<el-button type="text" v-if="scope.row.delStatus==1" @click.native.stop="setDelStatusFun(scope.row.id,0)" >恢复</el-button>
|
|
<el-button type="text" v-if="scope.row.delStatus==1" @click.native.stop="setDelStatusFun(scope.row.id,0)" >恢复</el-button>
|
|
|
|
|
|
|
|
- <el-button type="text" @click.native.stop="getStockList(scope.row)" >库存明细</el-button>
|
|
|
|
|
-
|
|
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #table-column-cost="{scope}">
|
|
<template #table-column-cost="{scope}">
|
|
@@ -599,18 +594,22 @@ export default {
|
|
|
ctx.service(this.$service.product)
|
|
ctx.service(this.$service.product)
|
|
|
.set('table', {
|
|
.set('table', {
|
|
|
columns: [
|
|
columns: [
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'id',
|
|
|
|
|
+ label: 'ID',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ 'min-width': 50
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
prop: 'name',
|
|
prop: 'name',
|
|
|
label: '名称',
|
|
label: '名称',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- fixed: 'left',
|
|
|
|
|
'min-width': 140
|
|
'min-width': 140
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: 'cover',
|
|
prop: 'cover',
|
|
|
label: '图片',
|
|
label: '图片',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- fixed: 'left',
|
|
|
|
|
'min-width': 60,
|
|
'min-width': 60,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -672,19 +671,13 @@ export default {
|
|
|
label: '单位比',
|
|
label: '单位比',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
'min-width': 70
|
|
'min-width': 70
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- prop: 'id',
|
|
|
|
|
- label: 'ID',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- 'min-width': 50
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: 'status',
|
|
prop: 'status',
|
|
|
- label: '上架',
|
|
|
|
|
|
|
+ label: '状态',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
minWidth: 60
|
|
minWidth: 60
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
],
|
|
],
|
|
|
op: {
|
|
op: {
|
|
|
visible: true,
|
|
visible: true,
|