|
|
|
@ -21,33 +21,32 @@ |
|
|
|
|
<el-option v-for="item in productStatusList" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="推荐级别:" prop="star"> |
|
|
|
|
<el-select v-model="tableFrom.star" placeholder="请选择" class="filter-item selWidth" clearable @change="getList(1)"> |
|
|
|
|
<el-option v-for="item in recommendedLevelStatus" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="标签:" prop="sys_labels"> |
|
|
|
|
<el-select v-model="tableFrom.sys_labels" placeholder="请选择" class="filter-item selWidth" clearable filterable @change="getList(1)"> |
|
|
|
|
<el-option v-for="item in labelList" :key="item.id" :label="item.name" :value="item.id" /> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="会员价:" prop="svip_price_type"> |
|
|
|
|
<el-select v-model="tableFrom.svip_price_type" placeholder="请选择" class="selWidth" clearable @change="getList(1)"> |
|
|
|
|
<el-option label="未设置" value="0" /> |
|
|
|
|
<el-option label="默认设置" value="1" /> |
|
|
|
|
<el-option label="自定义设置" value="2" /> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="商品推荐:" prop="hot_type"> |
|
|
|
|
<el-select v-model="tableFrom.hot_type" placeholder="请选择" class="filter-item selWidth" clearable filterable @change="getList(1)"> |
|
|
|
|
<el-option v-for="item in recommendList" :key="item.value" :label="item.name" :value="item.value" /> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="商品类型:" prop="is_ficti"> |
|
|
|
|
<el-select v-model="tableFrom.is_ficti" placeholder="请选择" class="filter-item selWidth" clearable @change="getList(1)"> |
|
|
|
|
<el-option v-for="item in productTypeList" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
|
<!-- <el-form-item label="推荐级别:" prop="star">--> |
|
|
|
|
<!-- <el-select v-model="tableFrom.star" placeholder="请选择" class="filter-item selWidth" clearable @change="getList(1)">--> |
|
|
|
|
<!-- <el-option v-for="item in recommendedLevelStatus" :key="item.value" :label="item.label" :value="item.value" />--> |
|
|
|
|
<!-- </el-select> --> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- <el-form-item label="标签:" prop="sys_labels">--> |
|
|
|
|
<!-- <el-select v-model="tableFrom.sys_labels" placeholder="请选择" class="filter-item selWidth" clearable filterable @change="getList(1)">--> |
|
|
|
|
<!-- <el-option v-for="item in labelList" :key="item.id" :label="item.name" :value="item.id" />--> |
|
|
|
|
<!-- </el-select> --> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<el-form-item label="商品类型:" prop="is_hot"> |
|
|
|
|
<el-select v-model="tableFrom.is_hot" placeholder="请选择" class="selWidth" clearable @change="getList(1)"> |
|
|
|
|
<el-option label="普通商品" value="0" /> |
|
|
|
|
<el-option label="爆单商品" value="1" /> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<!-- <el-form-item label="商品推荐:" prop="hot_type">--> |
|
|
|
|
<!-- <el-select v-model="tableFrom.hot_type" placeholder="请选择" class="filter-item selWidth" clearable filterable @change="getList(1)">--> |
|
|
|
|
<!-- <el-option v-for="item in recommendList" :key="item.value" :label="item.name" :value="item.value" />--> |
|
|
|
|
<!-- </el-select> --> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- <el-form-item label="商品类型:" prop="is_ficti">--> |
|
|
|
|
<!-- <el-select v-model="tableFrom.is_ficti" placeholder="请选择" class="filter-item selWidth" clearable @change="getList(1)">--> |
|
|
|
|
<!-- <el-option v-for="item in productTypeList" :key="item.value" :label="item.label" :value="item.value" />--> |
|
|
|
|
<!-- </el-select>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<el-form-item label="商品搜索:" prop="keyword"> |
|
|
|
|
<el-input v-model="tableFrom.keyword" @keyup.enter.native="getList(1)" placeholder="请输入商品名称,关键字,产品编号" class="selWidth" /> |
|
|
|
|
</el-form-item> |
|
|
|
@ -61,14 +60,14 @@ |
|
|
|
|
<el-tabs v-model="tableFrom.type" @tab-click="getList(1),getLstFilterApi()"> |
|
|
|
|
<el-tab-pane v-for="(item,index) in headeNum" :key="index" :name="item.type.toString()" :label="item.name +'('+item.count +')' " /> |
|
|
|
|
</el-tabs> |
|
|
|
|
<div class="mt5 mb20"> |
|
|
|
|
<el-button v-show="tableFrom.type === '6'" size="small" :disabled="multipleSelection.length==0" @click="batch">批量审核</el-button> |
|
|
|
|
<el-button size="small" :disabled="multipleSelection.length==0 " @click="batchOff">批量强制下架</el-button> |
|
|
|
|
<el-button size="small" :disabled="multipleSelection.length==0 " @click="batchShow(0)">批量不显示</el-button> |
|
|
|
|
<el-button size="small" :disabled="multipleSelection.length==0 " @click="batchShow(1)">批量显示</el-button> |
|
|
|
|
<el-button :disabled="multipleSelection.length==0" size="small" @click="batchLabel">批量设置标签</el-button> |
|
|
|
|
<el-button :disabled="multipleSelection.length==0" size="small" @click="batchRecommend">批量设置推荐</el-button> |
|
|
|
|
</div> |
|
|
|
|
<!-- <div class="mt5 mb20">--> |
|
|
|
|
<!-- <el-button v-show="tableFrom.type === '6'" size="small" :disabled="multipleSelection.length==0" @click="batch">批量审核</el-button>--> |
|
|
|
|
<!-- <el-button size="small" :disabled="multipleSelection.length==0 " @click="batchOff">批量强制下架</el-button>--> |
|
|
|
|
<!-- <el-button size="small" :disabled="multipleSelection.length==0 " @click="batchShow(0)">批量不显示</el-button>--> |
|
|
|
|
<!-- <el-button size="small" :disabled="multipleSelection.length==0 " @click="batchShow(1)">批量显示</el-button>--> |
|
|
|
|
<!-- <el-button :disabled="multipleSelection.length==0" size="small" @click="batchLabel">批量设置标签</el-button>--> |
|
|
|
|
<!-- <el-button :disabled="multipleSelection.length==0" size="small" @click="batchRecommend">批量设置推荐</el-button>--> |
|
|
|
|
<!-- </div>--> |
|
|
|
|
<el-table v-loading="listLoading" :data="tableData.data" size="small" @selection-change="handleSelectionChange"> |
|
|
|
|
<el-table-column v-if="Number(tableFrom.type)<7" key="2" type="selection" width="55" /> |
|
|
|
|
<el-table-column type="expand"> |
|
|
|
@ -119,6 +118,11 @@ |
|
|
|
|
<span>{{ scope.row.merchant ? scope.row.merchant.mer_name : '' }}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="商品类型" min-width="80" > |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<span>{{ scope.row.is_hot ? '爆单商品' : '普通商品' }}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="price" label="商品售价" min-width="80" /> |
|
|
|
|
<el-table-column prop="sales" label="销量" min-width="70" /> |
|
|
|
|
<el-table-column prop="stock" label="库存" min-width="70" /> |
|
|
|
@ -143,7 +147,7 @@ |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button type="text" size="small" @click="onDetails(scope.row.product_id)">详情</el-button> |
|
|
|
|
<el-button v-if="tableFrom.type === '6'" type="text" size="small" @click.native="toExamine(scope.row.product_id)">审核</el-button> |
|
|
|
|
<el-button type="text" size="small" class="mr10" @click="handlePreview(scope.row.product_id)">预览</el-button> |
|
|
|
|
<!-- <el-button type="text" size="small" class="mr10" @click="handlePreview(scope.row.product_id)">预览</el-button>--> |
|
|
|
|
<el-dropdown> |
|
|
|
|
<span class="el-dropdown-link"> |
|
|
|
|
更多<i class="el-icon-arrow-down el-icon--right" /> |
|
|
|
@ -392,6 +396,7 @@ export default { |
|
|
|
|
hot_type: '', |
|
|
|
|
star: '', |
|
|
|
|
svip_price_type: '', |
|
|
|
|
is_hot: '', |
|
|
|
|
product_id: this.$route.query.id ? this.$route.query.id : "" |
|
|
|
|
}, |
|
|
|
|
categoryList: [], |
|
|
|
|