|
@@ -30,15 +30,15 @@
|
|
<view class="checkbox iconfont" :class="[item.isChecked ?'icon-yixuanze':'icon-weixuanze']" @click="checkedSoperv(item)"></view>
|
|
<view class="checkbox iconfont" :class="[item.isChecked ?'icon-yixuanze':'icon-weixuanze']" @click="checkedSoperv(item)"></view>
|
|
</view>
|
|
</view>
|
|
<view class="tui-goods-image">
|
|
<view class="tui-goods-image">
|
|
- <image :src="item.mainImage" class="tui-goods-img"/>
|
|
|
|
|
|
+ <image :src="item.image" class="tui-goods-img"/>
|
|
</view>
|
|
</view>
|
|
<view class="tui-goods-info" :style="{width:isSuperv ? '360rpx' : '420rpx'}">
|
|
<view class="tui-goods-info" :style="{width:isSuperv ? '360rpx' : '420rpx'}">
|
|
<view class="tui-goods-title">{{ item.name }}</view>
|
|
<view class="tui-goods-title">{{ item.name }}</view>
|
|
<view class="tui-price-box">
|
|
<view class="tui-price-box">
|
|
- <view class="tui-goods-price">¥{{item.price1 | NumFormat}}</view>
|
|
|
|
|
|
+ <view class="tui-goods-price">¥{{item.price | NumFormat}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="tui-goods-pip">市场价:¥{{item.normalPrice | NumFormat}}</view>
|
|
<view class="tui-goods-pip">市场价:¥{{item.normalPrice | NumFormat}}</view>
|
|
- <view class="tui-goods-pip">分类:{{ item.typeName }}</view>
|
|
|
|
|
|
+ <view class="tui-goods-pip">分类:{{ item.typeName ? item.typeName : '无' }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="tui-goods-status">
|
|
<view class="tui-goods-status">
|
|
<view class="status-text" :style="{ color: verifyColorFilter(item.validFlag)}">
|
|
<view class="status-text" :style="{ color: verifyColorFilter(item.validFlag)}">
|
|
@@ -82,7 +82,14 @@
|
|
<text class="iconfont icon-xiangyou"></text>
|
|
<text class="iconfont icon-xiangyou"></text>
|
|
</picker>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
- <view class="d-label">分类:</view>
|
|
|
|
|
|
+ <view class="d-label">商品属性:</view>
|
|
|
|
+ <view class="d-input">
|
|
|
|
+ <picker @change="bindPickerChange(0,$event)" :value="index" :range="commodityTypeActons" range-key="name">
|
|
|
|
+ <input class="input" type="text" disabled="false" v-model="commodityTypeText" value="" placeholder="请选择"/>
|
|
|
|
+ <text class="iconfont icon-xiangyou"></text>
|
|
|
|
+ </picker>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="d-label">商品分类:</view>
|
|
<view class="d-input">
|
|
<view class="d-input">
|
|
<picker @change="bindPickerChange(3,$event)" :value="index" :range="classificationFirstList" range-key="name">
|
|
<picker @change="bindPickerChange(3,$event)" :value="index" :range="classificationFirstList" range-key="name">
|
|
<input class="input" type="text" disabled="false" v-model="firstClassificationText" value="" placeholder="请选择一分类"/>
|
|
<input class="input" type="text" disabled="false" v-model="firstClassificationText" value="" placeholder="请选择一分类"/>
|
|
@@ -93,7 +100,7 @@
|
|
<picker @change="bindPickerChange(4,$event)" :value="index" :range="classificationTwoList" range-key="name">
|
|
<picker @change="bindPickerChange(4,$event)" :value="index" :range="classificationTwoList" range-key="name">
|
|
<input class="input" type="text" disabled="false" v-model="twoClassificationText" value="" placeholder="请选择二级分类"/>
|
|
<input class="input" type="text" disabled="false" v-model="twoClassificationText" value="" placeholder="请选择二级分类"/>
|
|
<text class="iconfont icon-xiangyou"></text>
|
|
<text class="iconfont icon-xiangyou"></text>
|
|
- </picker>
|
|
|
|
|
|
+ </picker>
|
|
</view>
|
|
</view>
|
|
<view class="d-input">
|
|
<view class="d-input">
|
|
<picker @change="bindPickerChange(5,$event)" :value="index" :range="classificationThreeList" range-key="name">
|
|
<picker @change="bindPickerChange(5,$event)" :value="index" :range="classificationThreeList" range-key="name">
|
|
@@ -125,16 +132,17 @@
|
|
import modalLayer from "@/components/modal-layer"
|
|
import modalLayer from "@/components/modal-layer"
|
|
import { mapState,mapMutations } from 'vuex'
|
|
import { mapState,mapMutations } from 'vuex'
|
|
const defaultListQuery = {
|
|
const defaultListQuery = {
|
|
- shopID:'',
|
|
|
|
|
|
+ shopId:'',
|
|
pageNum:1,
|
|
pageNum:1,
|
|
pageSize:10,
|
|
pageSize:10,
|
|
productCode:'',//货号
|
|
productCode:'',//货号
|
|
name:'',//商品名称
|
|
name:'',//商品名称
|
|
validFlag:'',//状态
|
|
validFlag:'',//状态
|
|
featuredFlag:'',//是否主推
|
|
featuredFlag:'',//是否主推
|
|
- bigTypeID:0,//一级
|
|
|
|
- smallTypeID:0,//二级
|
|
|
|
- tinyTypeID:0//三级
|
|
|
|
|
|
+ commodityType:'',//商品属性
|
|
|
|
+ bigTypeId:0,//一级
|
|
|
|
+ smallTypeId:0,//二级
|
|
|
|
+ tinyTypeId:0//三级
|
|
};
|
|
};
|
|
export default{
|
|
export default{
|
|
components: {
|
|
components: {
|
|
@@ -143,15 +151,17 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return{
|
|
return{
|
|
- shopID:0,
|
|
|
|
|
|
+ shopId:0,
|
|
isSuperv:false,
|
|
isSuperv:false,
|
|
isProductChecked:false,
|
|
isProductChecked:false,
|
|
validFlagText:'',
|
|
validFlagText:'',
|
|
featuredFlagText:'',
|
|
featuredFlagText:'',
|
|
|
|
+ commodityTypeText:'产品',//预览商品属性
|
|
firstClassificationText:'',
|
|
firstClassificationText:'',
|
|
twoClassificationText:'',
|
|
twoClassificationText:'',
|
|
threeClassificationText:'',
|
|
threeClassificationText:'',
|
|
recommendActions: [{name:'是',value:1},{name: '否',value:0}],
|
|
recommendActions: [{name:'是',value:1},{name: '否',value:0}],
|
|
|
|
+ commodityTypeActons: [{name:'产品',value:1},{name: '仪器',value:2}],
|
|
statusActions: [
|
|
statusActions: [
|
|
{name:'全部',value:''},
|
|
{name:'全部',value:''},
|
|
{name: '未审核',value:1},
|
|
{name: '未审核',value:1},
|
|
@@ -207,9 +217,9 @@
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
this.$api.getComStorage('userInfo').then((resolve) =>{
|
|
this.$api.getComStorage('userInfo').then((resolve) =>{
|
|
- this.listQuery.shopID = this.shopID = resolve.shopId
|
|
|
|
|
|
+ this.listQuery.shopId = this.shopId = resolve.shopId
|
|
this.GetProductListInfo()
|
|
this.GetProductListInfo()
|
|
- this.GetPrimaryClassification()
|
|
|
|
|
|
+ this.GetPrimaryClassification(this.listQuery.commodityType)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
@@ -219,13 +229,14 @@
|
|
verifyStatusFilter: function(state){
|
|
verifyStatusFilter: function(state){
|
|
let stateText = '',
|
|
let stateText = '',
|
|
stateTextObject={
|
|
stateTextObject={
|
|
- '2':'已上架',
|
|
|
|
- '3':'已下架',
|
|
|
|
- '1':'待审核',
|
|
|
|
- '8':'审核未通过',
|
|
|
|
- '9':'已隐身',
|
|
|
|
- '10':'已冻结',
|
|
|
|
- '0':'已删除'
|
|
|
|
|
|
+ 0:'已删除',
|
|
|
|
+ 1:'待审核',
|
|
|
|
+ 2:'已上架',
|
|
|
|
+ 3:'已下架',
|
|
|
|
+ 8:'审核未通过',
|
|
|
|
+ 9:'已隐身',
|
|
|
|
+ 10:'已冻结',
|
|
|
|
+
|
|
};
|
|
};
|
|
Object.keys(stateTextObject).forEach(function(key) {
|
|
Object.keys(stateTextObject).forEach(function(key) {
|
|
if(key == state){
|
|
if(key == state){
|
|
@@ -292,16 +303,16 @@
|
|
},
|
|
},
|
|
handleDataList(){//根据商品状态set不同的tabAction返回新的数据
|
|
handleDataList(){//根据商品状态set不同的tabAction返回新的数据
|
|
this.dataList.forEach(item =>{
|
|
this.dataList.forEach(item =>{
|
|
- if(item.validFlag === '0' || item.validFlag === '3' || item.validFlag === '8' || item.validFlag === '9'){
|
|
|
|
|
|
+ if(item.validFlag === 0 || item.validFlag === 3 || item.validFlag === 8 || item.validFlag === 9){
|
|
item.actions = [
|
|
item.actions = [
|
|
{name: '无操作',color: '#fff',fontsize: 26,width: 50,background: '#e1e1e1'},
|
|
{name: '无操作',color: '#fff',fontsize: 26,width: 50,background: '#e1e1e1'},
|
|
]
|
|
]
|
|
- }else if(item.validFlag === '1' || item.validFlag === '10'){
|
|
|
|
|
|
+ }else if(item.validFlag === 1 || item.validFlag === 10){
|
|
item.actions = [
|
|
item.actions = [
|
|
{name: '查看详情',color: '#fff',fontsize: 26,width: 50,background: '#f9a94b'},
|
|
{name: '查看详情',color: '#fff',fontsize: 26,width: 50,background: '#f9a94b'},
|
|
]
|
|
]
|
|
- }else if(item.validFlag === '2'){
|
|
|
|
- if(item.featuredFlag ==='1'){
|
|
|
|
|
|
+ }else if(item.validFlag === 2){
|
|
|
|
+ if(item.featuredFlag ===1){
|
|
item.actions = [
|
|
item.actions = [
|
|
{name: '查看详情',color: '#fff',fontsize: 26,width: 50,background: '#f9a94b'},
|
|
{name: '查看详情',color: '#fff',fontsize: 26,width: 50,background: '#f9a94b'},
|
|
{name: '删除主页推荐',color: '#fff',fontsize: 26,width: 50,background: '#ff7a51'},
|
|
{name: '删除主页推荐',color: '#fff',fontsize: 26,width: 50,background: '#ff7a51'},
|
|
@@ -316,6 +327,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ console.log(this.dataList)
|
|
},
|
|
},
|
|
handSearchList(){//搜索
|
|
handSearchList(){//搜索
|
|
this.GetProductListInfo()
|
|
this.GetProductListInfo()
|
|
@@ -324,9 +336,10 @@
|
|
},
|
|
},
|
|
handSearchClear(){//重置搜索条件
|
|
handSearchClear(){//重置搜索条件
|
|
this.listQuery = Object.assign({}, defaultListQuery)
|
|
this.listQuery = Object.assign({}, defaultListQuery)
|
|
- this.listQuery.shopID = this.shopID
|
|
|
|
|
|
+ this.listQuery.shopId = this.shopId
|
|
this.validFlagText='';
|
|
this.validFlagText='';
|
|
this.featuredFlagText='';
|
|
this.featuredFlagText='';
|
|
|
|
+ this.commodityTypeText='';
|
|
this.firstClassificationText='';
|
|
this.firstClassificationText='';
|
|
this.twoClassificationText='';
|
|
this.twoClassificationText='';
|
|
this.threeClassificationText='';
|
|
this.threeClassificationText='';
|
|
@@ -334,21 +347,21 @@
|
|
this.classificationThreeList = [];
|
|
this.classificationThreeList = [];
|
|
},
|
|
},
|
|
handlerButton(e,item){//监听侧滑按钮点击事件
|
|
handlerButton(e,item){//监听侧滑按钮点击事件
|
|
- if(item.validFlag === '0' || item.validFlag === '3' || item.validFlag === '8' || item.validFlag === '9'){
|
|
|
|
|
|
+ if(item.validFlag === 0 || item.validFlag === 3 || item.validFlag === 8 || item.validFlag === 9){
|
|
if(e.index == 0){
|
|
if(e.index == 0){
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- }else if(item.validFlag === '1' || item.validFlag === '10'){
|
|
|
|
|
|
+ }else if(item.validFlag === 1 || item.validFlag === 10){
|
|
if(e.index == 0){
|
|
if(e.index == 0){
|
|
- this.$api.navigateTo(`/pages/goods/product?id=${item.productID}`)
|
|
|
|
|
|
+ this.$api.navigateTo(`/pages/goods/product?id=${item.productId}`)
|
|
}
|
|
}
|
|
- }else if(item.validFlag === '2'){
|
|
|
|
|
|
+ }else if(item.validFlag === 2){
|
|
switch(e.index){
|
|
switch(e.index){
|
|
case 0:
|
|
case 0:
|
|
- this.$api.navigateTo(`/pages/goods/product?id=${item.productID}`)
|
|
|
|
|
|
+ this.$api.navigateTo(`/pages/goods/product?id=${item.productId}`)
|
|
break;
|
|
break;
|
|
case 1:
|
|
case 1:
|
|
- if(item.featuredFlag ==='1'){
|
|
|
|
|
|
+ if(item.featuredFlag === 1){
|
|
this.handleDeleteShopRemb(item)
|
|
this.handleDeleteShopRemb(item)
|
|
}else{
|
|
}else{
|
|
this.handleAddShopRemb(item)
|
|
this.handleAddShopRemb(item)
|
|
@@ -360,15 +373,12 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleAddShopRemb(item){//添加主页推荐
|
|
handleAddShopRemb(item){//添加主页推荐
|
|
- console.log(this.featuredNum);
|
|
|
|
let num = 4- this.featuredNum;
|
|
let num = 4- this.featuredNum;
|
|
- console.log(num);
|
|
|
|
this.OperationType = 'add'
|
|
this.OperationType = 'add'
|
|
this.handlerProduct = item
|
|
this.handlerProduct = item
|
|
this.modal = true;
|
|
this.modal = true;
|
|
this.contentModalText = `总共能添加4个主推商品,您还能添加${num}个确定将该商品添加为主推商品吗?`;
|
|
this.contentModalText = `总共能添加4个主推商品,您还能添加${num}个确定将该商品添加为主推商品吗?`;
|
|
},
|
|
},
|
|
-
|
|
|
|
handleDeleteShopRemb(item){//删除主页推荐
|
|
handleDeleteShopRemb(item){//删除主页推荐
|
|
this.OperationType = 'delete'
|
|
this.OperationType = 'delete'
|
|
this.handlerProduct = item
|
|
this.handlerProduct = item
|
|
@@ -382,27 +392,30 @@
|
|
this.contentModalText = '确定下架该商品吗?';
|
|
this.contentModalText = '确定下架该商品吗?';
|
|
},
|
|
},
|
|
handleAllUnder(){//批量下架操作
|
|
handleAllUnder(){//批量下架操作
|
|
- let isValidFlag = false
|
|
|
|
|
|
+ let checkedArray = [];
|
|
|
|
+ let isValidFlag = false;
|
|
|
|
+ this.productIds = '';
|
|
if(this.isProductChecked){
|
|
if(this.isProductChecked){
|
|
this.dataList.forEach(el => {
|
|
this.dataList.forEach(el => {
|
|
if(el.isChecked) {
|
|
if(el.isChecked) {
|
|
- if(el.validFlag != 2){
|
|
|
|
- isValidFlag = true;
|
|
|
|
- }else{
|
|
|
|
- isValidFlag = false
|
|
|
|
- this.productIds += el.productID+','
|
|
|
|
- }
|
|
|
|
|
|
+ checkedArray.push(el)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ checkedArray.forEach(el =>{
|
|
|
|
+ if(el.validFlag == 2){
|
|
|
|
+ this.productIds += el.productId+','
|
|
}
|
|
}
|
|
|
|
+ if(el.validFlag != 2){
|
|
|
|
+ isValidFlag = true;
|
|
|
|
+ }
|
|
})
|
|
})
|
|
if(isValidFlag){
|
|
if(isValidFlag){
|
|
this.$util.modal('','部分选中的商品暂未上架,不能进行下架操作','确定','',false,() =>{})
|
|
this.$util.modal('','部分选中的商品暂未上架,不能进行下架操作','确定','',false,() =>{})
|
|
- }else{
|
|
|
|
- this.OperationType = 'allunder'
|
|
|
|
- this.modal = true;
|
|
|
|
- this.contentModalText = '确定下架选中的商品吗?';
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
- }else{
|
|
|
|
- return;
|
|
|
|
|
|
+ this.OperationType = 'allunder'
|
|
|
|
+ this.modal = true;
|
|
|
|
+ this.contentModalText = '确定下架选中的商品吗?';
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleClick(e) {//弹窗提示用户操作
|
|
handleClick(e) {//弹窗提示用户操作
|
|
@@ -425,7 +438,7 @@
|
|
this.modal = false;
|
|
this.modal = false;
|
|
},
|
|
},
|
|
SupplierDeleteSwitchFeatured(item){//操作删除主页推荐
|
|
SupplierDeleteSwitchFeatured(item){//操作删除主页推荐
|
|
- this.ShopService.SupplierSwitchFeaturedyProduct({productId:item.productID,featuredFlag:0}).then(response =>{
|
|
|
|
|
|
+ this.ShopService.SupplierSwitchFeaturedyProduct({productId:item.productId,featuredFlag:0}).then(response =>{
|
|
this.$util.msg('删除成功',2000,true,'success');
|
|
this.$util.msg('删除成功',2000,true,'success');
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.GetProductListInfo()
|
|
this.GetProductListInfo()
|
|
@@ -435,7 +448,7 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
SupplierAddSwitchFeatured(item){//操作添加主页推荐
|
|
SupplierAddSwitchFeatured(item){//操作添加主页推荐
|
|
- this.ShopService.SupplierSwitchFeaturedyProduct({productId:item.productID,featuredFlag:1}).then(response =>{
|
|
|
|
|
|
+ this.ShopService.SupplierSwitchFeaturedyProduct({productId:item.productId,featuredFlag:1}).then(response =>{
|
|
this.$util.msg('添加成功',2000,true,'success');
|
|
this.$util.msg('添加成功',2000,true,'success');
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.GetProductListInfo()
|
|
this.GetProductListInfo()
|
|
@@ -445,7 +458,7 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
SupplierSoldOutProduct(item){//操作下架商品
|
|
SupplierSoldOutProduct(item){//操作下架商品
|
|
- this.ShopService.SupplierSoldOutProduct({productIds:item.productID}).then(response =>{
|
|
|
|
|
|
+ this.ShopService.SupplierSoldOutProduct({productIds:item.productId}).then(response =>{
|
|
this.$util.msg('下架成功',2000,true,'success');
|
|
this.$util.msg('下架成功',2000,true,'success');
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.GetProductListInfo()
|
|
this.GetProductListInfo()
|
|
@@ -457,6 +470,7 @@
|
|
SupplierAllSoldOutProduct(ids){//操作批量下架商品
|
|
SupplierAllSoldOutProduct(ids){//操作批量下架商品
|
|
this.ShopService.SupplierSoldOutProduct({productIds:ids}).then(response =>{
|
|
this.ShopService.SupplierSoldOutProduct({productIds:ids}).then(response =>{
|
|
this.$util.msg('下架成功',2000,true,'success');
|
|
this.$util.msg('下架成功',2000,true,'success');
|
|
|
|
+ this.productIds = '';
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.GetProductListInfo()
|
|
this.GetProductListInfo()
|
|
},2000)
|
|
},2000)
|
|
@@ -466,6 +480,10 @@
|
|
},
|
|
},
|
|
bindPickerChange: function(type,e) {//选择筛选条件
|
|
bindPickerChange: function(type,e) {//选择筛选条件
|
|
switch(type){
|
|
switch(type){
|
|
|
|
+ case 0:
|
|
|
|
+ this.commodityTypeText = this.statusActions[e.target.value].name
|
|
|
|
+ this.listQuery.commodityType = this.commodityTypeActons[e.target.value].value
|
|
|
|
+ break;
|
|
case 1:
|
|
case 1:
|
|
this.validFlagText = this.statusActions[e.target.value].name
|
|
this.validFlagText = this.statusActions[e.target.value].name
|
|
this.listQuery.validFlag = this.statusActions[e.target.value].value
|
|
this.listQuery.validFlag = this.statusActions[e.target.value].value
|
|
@@ -474,34 +492,34 @@
|
|
this.featuredFlagText = this.recommendActions[e.target.value].name
|
|
this.featuredFlagText = this.recommendActions[e.target.value].name
|
|
this.listQuery.featuredFlag = this.recommendActions[e.target.value].value
|
|
this.listQuery.featuredFlag = this.recommendActions[e.target.value].value
|
|
break;
|
|
break;
|
|
- case 3:
|
|
|
|
|
|
+ case 3:
|
|
this.firstClassificationText = this.classificationFirstList[e.target.value].name
|
|
this.firstClassificationText = this.classificationFirstList[e.target.value].name
|
|
- this.listQuery.bigTypeID = this.classificationFirstList[e.target.value].value
|
|
|
|
- this.GetPrimarySecondaryClassification(this.listQuery.bigTypeID)
|
|
|
|
|
|
+ this.listQuery.bigTypeId = this.classificationFirstList[e.target.value].value
|
|
|
|
+ this.GetPrimarySecondaryClassification(this.listQuery.bigTypeId)
|
|
this.twoClassificationText = ''
|
|
this.twoClassificationText = ''
|
|
this.threeClassificationText=''
|
|
this.threeClassificationText=''
|
|
break;
|
|
break;
|
|
case 4:
|
|
case 4:
|
|
- if(this.listQuery.bigTypeID == 0){
|
|
|
|
|
|
+ if(this.listQuery.bigTypeId == 0){
|
|
this.$util.msg('请先选择一级分类',2000)
|
|
this.$util.msg('请先选择一级分类',2000)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
this.twoClassificationText = this.classificationTwoList[e.target.value].name
|
|
this.twoClassificationText = this.classificationTwoList[e.target.value].name
|
|
- this.listQuery.smallTypeID = this.classificationTwoList[e.target.value].value
|
|
|
|
- this.GetPrimaryThreeLevelClassification(this.listQuery.smallTypeID)
|
|
|
|
|
|
+ this.listQuery.smallTypeId = this.classificationTwoList[e.target.value].value
|
|
|
|
+ this.GetPrimaryThreeLevelClassification(this.listQuery.smallTypeId)
|
|
break;
|
|
break;
|
|
case 5:
|
|
case 5:
|
|
- if(this.listQuery.smallTypeID == 0){
|
|
|
|
|
|
+ if(this.listQuery.smallTypeId == 0){
|
|
this.$util.msg('请先选择二级分类',2000)
|
|
this.$util.msg('请先选择二级分类',2000)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
this.threeClassificationText = this.classificationThreeList[e.target.value].name
|
|
this.threeClassificationText = this.classificationThreeList[e.target.value].name
|
|
- this.listQuery.tinyTypeID = this.classificationThreeList[e.target.value].value
|
|
|
|
|
|
+ this.listQuery.tinyTypeId = this.classificationThreeList[e.target.value].value
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- GetPrimaryClassification(){//获取筛选条件一级分类
|
|
|
|
- this.ShopService.GetPrimaryClassification().then(response =>{
|
|
|
|
|
|
+ GetPrimaryClassification(value){//获取筛选条件一级分类
|
|
|
|
+ this.ShopService.GetPrimaryClassification({typeSort:value}).then(response =>{
|
|
const data = response.data
|
|
const data = response.data
|
|
data.forEach(item =>{
|
|
data.forEach(item =>{
|
|
let _obj = {name:item.name,value:item.bigTypeID}
|
|
let _obj = {name:item.name,value:item.bigTypeID}
|
|
@@ -566,6 +584,7 @@
|
|
},
|
|
},
|
|
checkedSoperv(item){//选择
|
|
checkedSoperv(item){//选择
|
|
item.isChecked = !item.isChecked
|
|
item.isChecked = !item.isChecked
|
|
|
|
+ console.log(item)
|
|
this.updateCheckAllBtn()
|
|
this.updateCheckAllBtn()
|
|
},
|
|
},
|
|
supervClickFn(){//管理全选
|
|
supervClickFn(){//管理全选
|
|
@@ -589,12 +608,12 @@
|
|
verifyColorFilter: function(state){
|
|
verifyColorFilter: function(state){
|
|
let stateColor = '',
|
|
let stateColor = '',
|
|
stateColorObject={
|
|
stateColorObject={
|
|
- '2':'#1890f9',
|
|
|
|
- '1':'#f9a94b',
|
|
|
|
- '0':'#FFB12A',
|
|
|
|
- '3':'#627386',
|
|
|
|
- '8':'#FF2A2A',
|
|
|
|
- '9':'#f94b4b'
|
|
|
|
|
|
+ 0:'#FFB12A',
|
|
|
|
+ 1:'#f9a94b',
|
|
|
|
+ 2:'#1890f9',
|
|
|
|
+ 3:'#627386',
|
|
|
|
+ 8:'#FF2A2A',
|
|
|
|
+ 9:'#f94b4b'
|
|
};
|
|
};
|
|
Object.keys(stateColorObject).forEach(function(key){
|
|
Object.keys(stateColorObject).forEach(function(key){
|
|
if(key == state){
|
|
if(key == state){
|