商户后台优化

main
fengxinyhyl 8 months ago
parent d0289e533b
commit e07e9be3eb
  1. 2
      app/common/dao/store/product/ProductDao.php
  2. 6
      app/common/repositories/store/product/ProductRepository.php
  3. 2
      app/controller/merchant/store/product/Product.php
  4. 11
      app/controller/merchant/user/UserMerchant.php
  5. 2
      public/mer.html
  6. 2
      public/system.html
  7. 2
      view/admin/.env.development
  8. 2
      view/admin/.env.production
  9. 2
      view/mer/.env.development
  10. 2
      view/mer/.env.production
  11. 233
      view/mer/src/views/product/addProduct/index.vue
  12. 128
      view/mer/src/views/product/productList/index.vue
  13. 1171
      view/mer/src/views/user/list/index.vue
  14. 2
      view/mer/src/views/user/list/userDetails.vue

@ -136,6 +136,8 @@ class ProductDao extends BaseDao
else if ($where['hot_type'] == 'best')
$query->where('is_best', 1);
else if ($where['hot_type'] == 'good')
$query->where('is_good', 1);
else if ($where['hot_type'] == 'benefit')
$query->where('is_benefit', 1);
})
->when(isset($where['us_status']) && $where['us_status'] !== '', function ($query) use ($where) {

@ -60,7 +60,7 @@ class ProductRepository extends BaseRepository
protected $dao;
const CREATE_PARAMS = [
"image", "slider_image", "store_name", "store_info", "keyword", "bar_code", "guarantee_template_id", "cate_id", "mer_cate_id", "unit_name", "sort" , "is_show", "is_good", 'is_gift_bag', 'integral_rate', "video_link", "temp_id", "content", "spec_type", "extension_type", "attr", 'mer_labels', 'delivery_way', 'delivery_free','param_temp_id','extend',
"image", "slider_image", "store_name", "store_info", "keyword", "bar_code", "guarantee_template_id", "cate_id", "mer_cate_id", "unit_name", "sort" , "is_show", "is_good","is_hot","is_benefit","is_best","is_new", 'is_gift_bag', 'integral_rate', "video_link", "temp_id", "content", "spec_type", "extension_type", "attr", 'mer_labels', 'delivery_way', 'delivery_free','param_temp_id','extend',
["brand_id",0],
['once_max_count',0],
['once_min_count',0],
@ -454,6 +454,10 @@ class ProductRepository extends BaseRepository
'is_show' => $data['is_show'] ?? 0,
'is_used' => (isset($data['status']) && $data['status'] == 1) ? 1 : 0,
'is_good' => $data['is_good'] ?? 0,
'is_hot' => $data['is_hot'] ?? 0,
'is_benefit' => $data['is_benefit'] ?? 0,
'is_best' => $data['is_best'] ?? 0,
'is_new' => $data['is_new'] ?? 0,
'video_link' => $data['video_link']??'',
'temp_id' => $data['delivery_free'] ? 0 : ($data['temp_id'] ?? 0),
'extension_type' => $data['extension_type']??0,

@ -47,7 +47,7 @@ class Product extends BaseController
public function lst()
{
[$page, $limit] = $this->getPage();
$where = $this->request->params(['temp_id','cate_id','keyword',['type',1],'mer_cate_id','is_gift_bag','status','us_status','product_id','mer_labels',['order','sort'],'is_ficti','svip_price_type']);
$where = $this->request->params(['temp_id','cate_id','keyword',['type',1],'mer_cate_id','is_gift_bag','status','us_status','product_id','mer_labels',['order','sort'],'is_ficti','hot_type']);
$where = array_merge($where,$this->repository->switchType($where['type'],$this->request->merId(),0));
return app('json')->success($this->repository->getList($this->request->merId(),$where, $page, $limit));
}

@ -18,6 +18,7 @@ use app\common\repositories\store\coupon\StoreCouponUserRepository;
use app\common\repositories\store\order\StoreOrderRepository;
use app\common\repositories\user\UserLabelRepository;
use app\common\repositories\user\UserMerchantRepository;
use app\common\repositories\user\UserRepository;
use crmeb\basic\BaseController;
use FormBuilder\Exception\FormBuilderException;
use think\App;
@ -56,9 +57,17 @@ class UserMerchant extends BaseController
*/
public function getList()
{
$where = $this->request->params(['nickname', 'sex', 'is_promoter', 'user_time_type', 'user_time', 'pay_count', 'label_id', 'user_type']);
$where = $this->request->params(['nickname', 'sex', 'is_promoter', 'user_time_type', 'user_time', 'pay_count', 'label_id', 'user_type', 'phone']);
[$page, $limit] = $this->getPage();
$where['mer_id'] = $this->request->merId();
/**
* @var UserRepository $userRepository
*/
$userRepository = \app()->make(UserRepository::class);
$user = $userRepository->getUserByPhone($where['phone'] ?? '');
if($where['phone'])$where['uids'] = $user ? [$user->uid] : array();
return app('json')->success($this->repository->getList($where, $page, $limit));
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -8,7 +8,7 @@ VUE_APP_BASE_API = 'https://b2.njrenzhou.com'
# socket 连接地址
#VUE_APP_WS_URL = 'ws://0.0.0.0:8324'
VUE_APP_WS_URL = 'ws://mer1.crmeb.net'
VUE_APP_WS_URL = 'wss://b2.njrenzhou.com'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
# to control whether the babel-plugin-dynamic-import-node plugin is enabled.

@ -4,4 +4,4 @@ ENV = 'production'
# base api
VUE_APP_BASE_API ='https://b2.njrenzhou.com'
# socket 连接地址
VUE_APP_WS_URL ='ws://mer1.crmeb.net'
VUE_APP_WS_URL ='wss://b2.njrenzhou.com'

@ -6,7 +6,7 @@ ENV = 'development'
VUE_APP_BASE_API = 'https://b2.njrenzhou.com'
# socket 连接地址
#VUE_APP_WS_URL = 'ws://192.168.3.20:8324'
VUE_APP_WS_URL = 'ws://mer1.crmeb.net'
VUE_APP_WS_URL = 'wss://b2.njrenzhou.com'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
# to control whether the babel-plugin-dynamic-import-node plugin is enabled.

@ -4,5 +4,5 @@ ENV = 'production'
# base api
VUE_APP_BASE_API ='https://b2.njrenzhou.com'
# socket 连接地址
VUE_APP_WS_URL ='ws://mer1.crmeb.net'
VUE_APP_WS_URL ='wss://b2.njrenzhou.com'

@ -85,6 +85,13 @@
/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="惠通分类:">
<el-checkbox-group v-model="checkboxGroup" size="small" @change="onChangeGroup">
<el-checkbox v-for="(item, index) in recommend" :key="index" :label="item.value">{{ item.name }}</el-checkbox>
</el-checkbox-group>
</el-form-item>
</el-col>
<el-col v-if="labelList.length" :span="24">
<el-form-item label="商品标签:">
<el-select
@ -243,26 +250,26 @@
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="优惠券(赠送券):" class="proCoupon">
<div class="acea-row">
<el-tag
v-for="(tag, index) in formValidate.couponData"
:key="index"
class="mr10"
closable
:disable-transitions="false"
@close="handleCloseCoupon(tag)"
>{{ tag.title }}
</el-tag>
<el-button
class="mr15"
size="mini"
@click="addCoupon"
>选择优惠券</el-button>
</div>
</el-form-item>
</el-col>
<!-- <el-col :span="24">-->
<!-- <el-form-item label="优惠券(赠送券):" class="proCoupon">-->
<!-- <div class="acea-row">-->
<!-- <el-tag-->
<!-- v-for="(tag, index) in formValidate.couponData"-->
<!-- :key="index"-->
<!-- class="mr10"-->
<!-- closable-->
<!-- :disable-transitions="false"-->
<!-- @close="handleCloseCoupon(tag)"-->
<!-- >{{ tag.title }}-->
<!-- </el-tag>-->
<!-- <el-button-->
<!-- class="mr15"-->
<!-- size="mini"-->
<!-- @click="addCoupon"-->
<!-- >选择优惠券</el-button>-->
<!-- </div>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
</el-row>
<!-- 规格设置 -->
<el-row v-if="currentTab == '2'">
@ -451,7 +458,7 @@
<el-input
v-if="formThead[iii].title === '付费会员价'"
v-model="scope.row[iii]"
:disabled="formValidate.svip_price_type == 1"
class="priceBox"
controls-position="right"
@ -799,71 +806,71 @@
</el-col>
</el-row>
<!-- 营销设置-->
<el-row v-if="currentTab == '4'">
<el-col :span="24">
<el-form-item label="商品推荐:">
<el-checkbox-group
v-model="checkboxGroup"
size="small"
@change="onChangeGroup"
>
<el-checkbox
v-for="(item, index) in recommend"
:key="index"
:label="item.value"
>
{{ item.name }}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item v-if="deductionStatus > 0" label="积分抵扣比例:">
<el-radio-group
v-model="deduction_set"
@change="changeIntergral(deduction_set)"
>
<el-radio :label="1" class="radio">单独设置</el-radio>
<el-radio :label="-1">默认设置</el-radio>
</el-radio-group>
<div v-if="deduction_set == 1">
<el-input-number
v-model="formValidate.integral_rate"
:min="0"
controls-position="right"
placeholder="请输入抵扣比例"
/>
%
</div>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="是否开启礼包:">
<el-radio-group
v-model="formValidate.is_gift_bag"
:disabled="$route.params.id ? true : false"
>
<el-radio :label="0" class="radio"></el-radio>
<el-radio :label="1"></el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="备注:">
<div>1. 选择开启礼包后不可修改</div>
<div>
2.
用户购买该分销礼包商品后可自动成为分销员即已成为分销员的用户在移动端看不到该分销礼包商品
</div>
<div>
3.
该商品设置为分销礼包后会展示在平台后台的分销-分销礼包即不会展示在平台后台-商品列表
</div>
</el-form-item>
</el-col>
</el-row>
<!-- <el-row v-if="currentTab == '4'">-->
<!--&lt;!&ndash; <el-col :span="24">&ndash;&gt;-->
<!--&lt;!&ndash; <el-form-item label="商品推荐:">&ndash;&gt;-->
<!--&lt;!&ndash; <el-checkbox-group&ndash;&gt;-->
<!--&lt;!&ndash; v-model="checkboxGroup"&ndash;&gt;-->
<!--&lt;!&ndash; size="small"&ndash;&gt;-->
<!--&lt;!&ndash; @change="onChangeGroup"&ndash;&gt;-->
<!--&lt;!&ndash; >&ndash;&gt;-->
<!--&lt;!&ndash; <el-checkbox&ndash;&gt;-->
<!--&lt;!&ndash; v-for="(item, index) in recommend"&ndash;&gt;-->
<!--&lt;!&ndash; :key="index"&ndash;&gt;-->
<!--&lt;!&ndash; :label="item.value"&ndash;&gt;-->
<!--&lt;!&ndash; >&ndash;&gt;-->
<!--&lt;!&ndash; {{ item.name }}&ndash;&gt;-->
<!--&lt;!&ndash; </el-checkbox>&ndash;&gt;-->
<!--&lt;!&ndash; </el-checkbox-group>&ndash;&gt;-->
<!--&lt;!&ndash; </el-form-item>&ndash;&gt;-->
<!--&lt;!&ndash; </el-col>&ndash;&gt;-->
<!-- <el-col :span="24">-->
<!-- <el-form-item v-if="deductionStatus > 0" label="积分抵扣比例:">-->
<!-- <el-radio-group-->
<!-- v-model="deduction_set"-->
<!-- @change="changeIntergral(deduction_set)"-->
<!-- >-->
<!-- <el-radio :label="1" class="radio">单独设置</el-radio>-->
<!-- <el-radio :label="-1">默认设置</el-radio>-->
<!-- </el-radio-group>-->
<!-- <div v-if="deduction_set == 1">-->
<!-- <el-input-number-->
<!-- v-model="formValidate.integral_rate"-->
<!-- :min="0"-->
<!-- controls-position="right"-->
<!-- placeholder="请输入抵扣比例"-->
<!-- />-->
<!-- %-->
<!-- </div>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="24">-->
<!-- <el-form-item label="是否开启礼包:">-->
<!-- <el-radio-group-->
<!-- v-model="formValidate.is_gift_bag"-->
<!-- :disabled="$route.params.id ? true : false"-->
<!-- >-->
<!-- <el-radio :label="0" class="radio"></el-radio>-->
<!-- <el-radio :label="1"></el-radio>-->
<!-- </el-radio-group>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="24">-->
<!-- <el-form-item label="备注:">-->
<!-- <div>1. 选择开启礼包后不可修改</div>-->
<!-- <div>-->
<!-- 2.-->
<!-- 用户购买该分销礼包商品后可自动成为分销员即已成为分销员的用户在移动端看不到该分销礼包商品-->
<!-- </div>-->
<!-- <div>-->
<!-- 3.-->
<!-- 该商品设置为分销礼包后会展示在平台后台的分销-分销礼包即不会展示在平台后台-商品列表-->
<!-- </div>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- 其它设置 -->
<el-row v-if="currentTab == '5'">
<el-row v-if="currentTab == '4'">
<el-col v-if="deliveryList.length > 0" :span="24">
<el-form-item label="送货方式:" prop="delivery_way">
<div class="acea-row">
@ -1083,7 +1090,7 @@
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
@ -1156,7 +1163,7 @@
>上一步
</el-button>
<el-button
v-show="currentTab < 5"
v-show="currentTab < 4"
type="primary"
class="submission"
size="small"
@ -1164,7 +1171,7 @@
>下一步
</el-button>
<el-button
v-show="currentTab == '5' || $route.params.id"
v-show="currentTab == '4' || $route.params.id"
:loading="loading"
type="primary"
class="submission"
@ -1284,6 +1291,19 @@ const defaultObj = {
extend: [], //
type: 0
}
const proOptions = [{
name: '惠通甄选',
value: 'is_hot'
}, {
name: '惠通优选',
value: 'is_benefit'
}, {
name: '惠通云店',
value: 'is_best'
}, {
name: '惠通特供',
value: 'is_new'
}]
const objTitle = {
price: {
title: '售价'
@ -1310,7 +1330,7 @@ const objTitle = {
title: '体积(m³)'
}
}
const proOptions = [{ name: '店铺推荐', value: 'is_good' }]
// const proOptions = [{ name: '', value: 'is_good' }]
export default {
name: 'ProductProductAdd',
components: {
@ -1462,7 +1482,7 @@ export default {
deliveryType: [],
virtual: [
{ tit: '普通商品', id: 0, tit2: '物流发货' },
{ tit: '虚拟商品', id: 1, tit2: '虚拟发货' }
// { tit: '', id: 1, tit2: '' }
],
customBtn: 0, //
//
@ -1507,8 +1527,7 @@ export default {
{ title: '商品信息', name: '1' },
{ title: '规格设置', name: '2' },
{ title: '商品详情', name: '3' },
{ title: '营销设置', name: '4' },
{ title: '其他设置', name: '5' }
{ title: '其他设置', name: '4' }
],
type: 0,
modals: false,
@ -1549,7 +1568,7 @@ export default {
deep: true
},
currentTab(newVal) {
if (newVal == 5) {
if (newVal == 4) {
this.$nextTick(e=>{
this.setSort()
})
@ -1735,6 +1754,18 @@ export default {
this.checkboxGroup.includes('is_good')
? (this.formValidate.is_good = 1)
: (this.formValidate.is_good = 0)
this.checkboxGroup.includes('is_hot')
? (this.formValidate.is_hot = 1)
: (this.formValidate.is_hot = 0)
this.checkboxGroup.includes('is_benefit')
? (this.formValidate.is_benefit = 1)
: (this.formValidate.is_benefit = 0)
this.checkboxGroup.includes('is_best')
? (this.formValidate.is_best = 1)
: (this.formValidate.is_best = 0)
this.checkboxGroup.includes('is_new')
? (this.formValidate.is_new = 1)
: (this.formValidate.is_new = 0)
},
watCh(val) {
const tmp = {}
@ -2201,6 +2232,10 @@ export default {
once_max_count: info.once_max_count || 1,
once_min_count: info.once_min_count || 0,
is_good: info.is_good,
is_hot: info.is_hot,
is_benefit: info.is_benefit,
is_best: info.is_best,
is_new: info.is_new,
temp_id: info.temp_id,
guarantee_template_id: info.guarantee_template_id
? info.guarantee_template_id
@ -2259,6 +2294,18 @@ export default {
if (this.formValidate.is_good === 1) {
this.checkboxGroup.push("is_good");
}
if (this.formValidate.is_hot === 1) {
this.checkboxGroup.push("is_hot");
}
if (this.formValidate.is_benefit === 1) {
this.checkboxGroup.push("is_benefit");
}
if (this.formValidate.is_best === 1) {
this.checkboxGroup.push("is_best");
}
if (this.formValidate.is_new === 1) {
this.checkboxGroup.push("is_new");
}
this.fullscreenLoading = false;
},
//

@ -15,57 +15,58 @@
<el-option v-for="item in merCateList" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</el-form-item>
<el-form-item label="是否为礼包:">
<el-select v-model="tableFrom.is_gift_bag" placeholder="请选择" class="selWidth" clearable @change="getList(1)">
<el-option label="是" value="1" />
<el-option label="否" value="0" />
</el-select>
</el-form-item>
<el-form-item label="会员价设置:">
<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-form-item label="是否为礼包:">-->
<!-- <el-select v-model="tableFrom.is_gift_bag" placeholder="请选择" class="selWidth" clearable @change="getList(1)">-->
<!-- <el-option label="是" value="1" />-->
<!-- <el-option label="否" value="0" />-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<el-form-item label="惠通分类:">
<el-select v-model="tableFrom.hot_type" placeholder="请选择" class="selWidth" clearable @change="getList(1)">
<el-option label="惠通甄选" value="hot" />
<el-option label="惠通优选" value="benefit" />
<el-option label="惠通云店" value="best" />
<el-option label="惠通特供" value="new" />
</el-select>
</el-form-item>
<el-form-item label="商品状态:">
<el-select v-model="tableFrom.us_status" placeholder="请选择" class="filter-item selWidth" clearable @change="getList">
<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="标签:">
<el-select
v-model="tableFrom.mer_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="运费模板:">
<el-select
v-model="tableFrom.temp_id"
placeholder="请选择"
class="filter-item selWidth"
clearable
filterable
@change="getList(1)"
>
<el-option
v-for="item in tempList"
:key="item.shipping_template_id"
:label="item.name"
:value="item.shipping_template_id"
/>
</el-select>
<!-- </el-form-item>-->
<!-- <el-form-item label="标签:">-->
<!-- <el-select-->
<!-- v-model="tableFrom.mer_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="运费模板:">-->
<!-- <el-select-->
<!-- v-model="tableFrom.temp_id"-->
<!-- placeholder="请选择"-->
<!-- class="filter-item selWidth"-->
<!-- clearable-->
<!-- filterable-->
<!-- @change="getList(1)"-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="item in tempList"-->
<!-- :key="item.shipping_template_id"-->
<!-- :label="item.name"-->
<!-- :value="item.shipping_template_id"-->
<!-- />-->
<!-- </el-select>-->
</el-form-item>
<el-form-item label="关键字搜索:">
<el-input v-model="tableFrom.keyword" placeholder="请输入商品名称,关键字" class="selWidth" @keyup.enter.native="getList(1)">
@ -77,20 +78,20 @@
<router-link :to="{ path:`${roterPre}` + '/product/list/addProduct' }">
<el-button size="small" type="primary">添加商品</el-button>
</router-link>
<el-button size="small" type="success" @click="onCopy">商品采集</el-button>
<!-- <el-button size="small" type="success" @click="onCopy">商品采集</el-button>-->
<el-button size="mini" :disabled="tableFrom.type != 1 || multipleSelection.length == 0" @click="batchOff">批量下架</el-button>
<el-button size="mini" :disabled="tableFrom.type != 2 || multipleSelection.length == 0" @click="batchShelf">批量上架</el-button>
<el-button size="mini" :disabled="multipleSelection.length == 0" @click="batchLabel">批量设置标签</el-button>
<el-button size="mini" :disabled="multipleSelection.length == 0" @click="batchFreight">批量设置运费</el-button>
<el-button size="mini" :disabled="multipleSelection.length == 0" @click="batchCommision">批量设置佣金</el-button>
<el-button v-if="open_svip == 1" size="mini" :disabled="multipleSelection.length == 0" @click="batchSvip">批量设置会员价</el-button>
<!-- <el-button size="mini" :disabled="multipleSelection.length == 0" @click="batchLabel">批量设置标签</el-button>-->
<!-- <el-button size="mini" :disabled="multipleSelection.length == 0" @click="batchFreight">批量设置运费</el-button>-->
<!-- <el-button size="mini" :disabled="multipleSelection.length == 0" @click="batchCommision">批量设置佣金</el-button>-->
<!-- <el-button v-if="open_svip == 1" size="mini" :disabled="multipleSelection.length == 0" @click="batchSvip">批量设置会员价</el-button>-->
</div>
<el-table
v-loading="listLoading"
:data="tableData.data"
style="width: 100%"
size="mini"
:row-class-name="tableRowClassName"
<el-table
v-loading="listLoading"
:data="tableData.data"
style="width: 100%"
size="mini"
:row-class-name="tableRowClassName"
:row-key="(row) => { return row.product_id }"
@selection-change="handleSelectionChange"
@rowclick.stop="closeEdit">
@ -173,20 +174,20 @@
</el-table-column>
<el-table-column prop="create_time" label="创建时间" min-width="150" />
<el-table-column label="操作" min-width="150" fixed="right">
<template slot-scope="scope">
<template slot-scope="scope">
<router-link v-if="tableFrom.type != 5" :to="{path: roterPre + '/product/list/addProduct/' + scope.row.product_id}">
<el-button type="text" size="small" class="mr10">编辑</el-button>
</router-link>
<router-link v-if="tableFrom.type != 5" :to="{path: roterPre + '/product/list/addProduct/' + scope.row.product_id+'?type=copy'}">
<el-button type="text" size="small" class="mr10">复制</el-button>
</router-link>
<!-- <router-link v-if="tableFrom.type != 5" :to="{path: roterPre + '/product/list/addProduct/' + scope.row.product_id+'?type=copy'}">-->
<!-- <el-button type="text" size="small" class="mr10">复制</el-button>-->
<!-- </router-link>-->
<el-button v-if="tableFrom.type !== '5'" type="text" size="small" @click="handlePreview(scope.row.product_id)">预览</el-button>
<router-link v-if="tableFrom.type != 5" :to="{path: roterPre + '/product/reviews/?product_id=' + scope.row.product_id}">
<el-button type="text" size="small" class="mr10">查看评价</el-button>
</router-link>
<el-button v-if="tableFrom.type !== '5' && is_audit == '1' " type="text" size="small" @click="onAuditFree(scope.row)">免审编辑</el-button>
<el-button v-if="tableFrom.type !== '5'" type="text" size="small" @click="onEditLabel(scope.row)">编辑标签</el-button>
<el-button v-if="tableFrom.type === '5'" type="text" size="small" @click="handleRestore(scope.row.product_id)">恢复商品</el-button>
<!-- <el-button v-if="tableFrom.type !== '5' && is_audit == '1' " type="text" size="small" @click="onAuditFree(scope.row)">免审编辑</el-button>-->
<!-- <el-button v-if="tableFrom.type !== '5'" type="text" size="small" @click="onEditLabel(scope.row)">编辑标签</el-button>-->
<!-- <el-button v-if="tableFrom.type === '5'" type="text" size="small" @click="handleRestore(scope.row.product_id)">恢复商品</el-button>-->
<el-button v-if="tableFrom.type !== '1' && tableFrom.type!== '3' && tableFrom.type !=='4' " type="text" size="small" @click="handleDelete(scope.row.product_id, scope.$index)">{{ tableFrom.type === '5' ? '删除' : '加入回收站' }}</el-button>
</template>
</el-table-column>
@ -363,6 +364,7 @@ export default {
us_status: '',
mer_labels: '',
svip_price_type: '',
hot_type: '',
product_id: this.$route.query.id ? this.$route.query.id : ''
},
categoryList: [], //

File diff suppressed because it is too large Load Diff

@ -85,7 +85,7 @@ export default {
Visible: false,
list: [
{ val: '0', label: '消费记录' },
{ val: '3', label: '持有优惠券' }
// { val: '3', label: '' }
],
tableData: {
data: [],

Loading…
Cancel
Save