|
@@ -12,17 +12,12 @@
|
|
<el-input v-model="listQuery.form.id" placeholder="商品ID" style="width: 120px;" class="filter-item" @keyup.enter.native="handleFilter" />
|
|
<el-input v-model="listQuery.form.id" placeholder="商品ID" style="width: 120px;" class="filter-item" @keyup.enter.native="handleFilter" />
|
|
<el-input v-model="listQuery.form.productName" placeholder="商品名称" style="width: 120px;" class="filter-item" @keyup.enter.native="handleFilter" />
|
|
<el-input v-model="listQuery.form.productName" placeholder="商品名称" style="width: 120px;" class="filter-item" @keyup.enter.native="handleFilter" />
|
|
<el-input v-model="listQuery.form.shopName" placeholder="供应商名称" style="width: 120px;" class="filter-item" @keyup.enter.native="handleFilter" />
|
|
<el-input v-model="listQuery.form.shopName" placeholder="供应商名称" style="width: 120px;" class="filter-item" @keyup.enter.native="handleFilter" />
|
|
- <el-select v-model="listQuery.form.validFlag" placeholder="商品状态" clearable style="width: 110px" class="filter-item" value="" @change="handleFilter">
|
|
|
|
- <el-option label="已上架" value="1" />
|
|
|
|
- <el-option label="已下架" value="2" />
|
|
|
|
- </el-select>
|
|
|
|
<el-select v-model="listQuery.form.classifyID" placeholder="商品分类" clearable style="width: 110px" class="filter-item" value="" @change="handleFilter">
|
|
<el-select v-model="listQuery.form.classifyID" placeholder="商品分类" clearable style="width: 110px" class="filter-item" value="" @change="handleFilter">
|
|
<!-- <el-option v-for="item in productsClassifyList" :key="item.id" :label="item.classifyName" :value="item.id" /> -->
|
|
<!-- <el-option v-for="item in productsClassifyList" :key="item.id" :label="item.classifyName" :value="item.id" /> -->
|
|
</el-select>
|
|
</el-select>
|
|
- <el-button class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">
|
|
|
|
- 搜索
|
|
|
|
- </el-button>
|
|
|
|
- <el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit">
|
|
|
|
|
|
+ <el-button class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">搜索</el-button>
|
|
|
|
+ <el-button class="filter-item" type="primary" icon="el-icon-sort">批量更新排序</el-button>
|
|
|
|
+ <el-button class="filter-item" type="primary" icon="el-icon-circle-plus-outline">
|
|
<router-link to="/goods/list/select">添加商品</router-link>
|
|
<router-link to="/goods/list/select">添加商品</router-link>
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
@@ -42,9 +37,9 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="商品ID" align="center" prop="id" />
|
|
<el-table-column label="商品ID" align="center" prop="id" />
|
|
- <el-table-column label="商品图片" align="center" prop="classifyImage">
|
|
|
|
|
|
+ <el-table-column label="商品图片" align="center" prop="mainImage">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
- <img :src="row.mainImage" alt="">
|
|
|
|
|
|
+ <img :src="row.mainImage" alt="" width="50">
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="商品名称" align="center" prop="productName" />
|
|
<el-table-column label="商品名称" align="center" prop="productName" />
|
|
@@ -53,26 +48,6 @@
|
|
<el-table-column label="成本价" align="center" prop="costPrice" />
|
|
<el-table-column label="成本价" align="center" prop="costPrice" />
|
|
<el-table-column label="售价" align="center" prop="retailPrice" />
|
|
<el-table-column label="售价" align="center" prop="retailPrice" />
|
|
<el-table-column label="起订量" align="center" prop="minBuyNumber" />
|
|
<el-table-column label="起订量" align="center" prop="minBuyNumber" />
|
|
- <el-table-column label="星范优选" align="center" prop="preferredProduct">
|
|
|
|
- <template slot-scope="{row}">
|
|
|
|
- <el-tag :type="row.preferredProduct | statusFilter">{{ row.preferredProduct*1 === 1 ? '启用' : '停用' }}</el-tag>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="星范精品" align="center" prop="preferentialProduct">
|
|
|
|
- <template slot-scope="{row}">
|
|
|
|
- <el-tag :type="row.preferentialProduct | statusFilter">{{ row.preferentialProduct*1 === 1 ? '启用' : '停用' }}</el-tag>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="常用商品" align="center" prop="commonlyProduct">
|
|
|
|
- <template slot-scope="{row}">
|
|
|
|
- <el-tag :type="row.commonlyProduct | statusFilter">{{ row.commonlyProduct*1 === 1 ? '启用' : '停用' }}</el-tag>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column class-name="status-col" label="商品状态" align="center" prop="validFlag">
|
|
|
|
- <template slot-scope="{row}">
|
|
|
|
- <el-tag :type="row.validFlag | statusFilter">{{ row.validFlag*1 === 1 ? '已上架' : '已下架' }}</el-tag>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
<el-table-column label="商品分类" align="center" prop="productClassifyName" />
|
|
<el-table-column label="商品分类" align="center" prop="productClassifyName" />
|
|
<el-table-column align="center" label="添加时间" prop="addTime">
|
|
<el-table-column align="center" label="添加时间" prop="addTime">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
@@ -80,9 +55,14 @@
|
|
<span>{{ row.addTime }}</span>
|
|
<span>{{ row.addTime }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="排序值" align="center" prop="sort">
|
|
|
|
+ <template slot-scope="{row}">
|
|
|
|
+ <el-input v-model="row.sort" style="width:60px;" size="small" />
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
- <el-button type="primary" size="small">取消</el-button>
|
|
|
|
|
|
+ <el-button :vid="row.id" type="primary" size="small">取消</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -117,7 +97,7 @@ export default {
|
|
limit: 10,
|
|
limit: 10,
|
|
form: {
|
|
form: {
|
|
id: '',
|
|
id: '',
|
|
- classifyImage: '',
|
|
|
|
|
|
+ mainImage: '',
|
|
productName: '',
|
|
productName: '',
|
|
shopName: '',
|
|
shopName: '',
|
|
normalPrice: '', // 市场价',
|
|
normalPrice: '', // 市场价',
|
|
@@ -154,24 +134,24 @@ export default {
|
|
this.list = [
|
|
this.list = [
|
|
{
|
|
{
|
|
id: 0,
|
|
id: 0,
|
|
- classifyImage: '',
|
|
|
|
- productName: 'hahaah',
|
|
|
|
- shopName: '',
|
|
|
|
- normalPrice: '',
|
|
|
|
- costPrice: '',
|
|
|
|
- retailPrice: '',
|
|
|
|
- minBuyNumber: '',
|
|
|
|
- preferredProduct: '',
|
|
|
|
- commonlyProduct: '',
|
|
|
|
- preferentialProduct: '',
|
|
|
|
- validFlag: '',
|
|
|
|
|
|
+ mainImage: 'https://img.caimei365.com/group1/M00/00/C3/Cmis21ogFTuATpnrAAIh4ixubXM38.JPEG',
|
|
|
|
+ productName: '韩国恩盛进口 素提亚 BeautyHeart 电穿孔技术 打造V脸 紧致提升',
|
|
|
|
+ shopName: '北京恩盛众成国际贸易有限公司',
|
|
|
|
+ normalPrice: '10000.00',
|
|
|
|
+ costPrice: '6666.00',
|
|
|
|
+ retailPrice: '6600.00',
|
|
|
|
+ minBuyNumber: '1',
|
|
|
|
+ preferredProduct: '1',
|
|
|
|
+ commonlyProduct: '1',
|
|
|
|
+ preferentialProduct: '1',
|
|
|
|
+ validFlag: '1',
|
|
productClassifyName: 0,
|
|
productClassifyName: 0,
|
|
- addTime: '',
|
|
|
|
|
|
+ addTime: new Date(),
|
|
organizeID: this.organizeID
|
|
organizeID: this.organizeID
|
|
},
|
|
},
|
|
{
|
|
{
|
|
id: 0,
|
|
id: 0,
|
|
- classifyImage: '',
|
|
|
|
|
|
+ mainImage: '',
|
|
productName: 'hahaah',
|
|
productName: 'hahaah',
|
|
shopName: '',
|
|
shopName: '',
|
|
normalPrice: '',
|
|
normalPrice: '',
|