|
|
|
@ -43,10 +43,10 @@
|
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
|
|
<Table :columns="columns1" :data="data1" style="margin-top: 20px;">
|
|
|
|
|
<template slot-scope="row" slot="qrCodeAction">
|
|
|
|
|
<img :src="require('../../../static/img/qrCode-init.png')" @click="show(row)" @mouseover="show(row)" style="margin-left: 5px;margin-top: 5px;width:30px;height:30px;"/>
|
|
|
|
|
<template slot-scope="{row}" slot="qrCodeAction">
|
|
|
|
|
<img :src="require('../../../static/img/qrCode-init.png')" @click="show(row)" style="margin-left: 5px;margin-top: 5px;width:30px;height:30px;"/>
|
|
|
|
|
</template>
|
|
|
|
|
<router-link slot-scope="row" slot="action" :to="{path:'/shop/increase/manager/staff',query:{storeId:row.id}}">
|
|
|
|
|
<router-link slot-scope="{row}" slot="action" :to="{path:'/shop/increase/manager/staff',query:{storeId:row.id}}">
|
|
|
|
|
<Button ghost style="border:0px;color: #2074E2;"> 门店导购管理</Button>
|
|
|
|
|
</router-link>
|
|
|
|
|
</Table>
|
|
|
|
@ -319,7 +319,7 @@
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.setMenuName("门店推广","推广管理");
|
|
|
|
|
// this.listOfStore();
|
|
|
|
|
this.listOfStore();
|
|
|
|
|
this.getSelectList();
|
|
|
|
|
// this.downBigRegionData();
|
|
|
|
|
// this.downRegionData();
|
|
|
|
@ -333,7 +333,8 @@
|
|
|
|
|
let that = this;
|
|
|
|
|
let request = {
|
|
|
|
|
userId: that.userId,
|
|
|
|
|
companyId: that.changeData(that.selectedRegion),
|
|
|
|
|
regionId: that.changeData(that.regionId),
|
|
|
|
|
companyId: that.changeData(that.companyId),
|
|
|
|
|
storeId: that.changeData(that.selectedStore),
|
|
|
|
|
pageNum: that.pageNum,
|
|
|
|
|
pageSize: that.pageSize,
|
|
|
|
@ -381,6 +382,9 @@
|
|
|
|
|
if(this.companyList.length === 0 || this.companyList[0].id !== 0){
|
|
|
|
|
this.companyList.splice(0, 0, {"id":0, "name":"全部"});
|
|
|
|
|
}
|
|
|
|
|
if(this.shopList.length === 0 || this.shopList[0].id !== 0){
|
|
|
|
|
this.shopList.splice(0, 0, {"id":0, "name":"全部"});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/**基础数据:区域list、零售公司list、客户list*/
|
|
|
|
|
getSelectList:function(){
|
|
|
|
@ -412,14 +416,15 @@
|
|
|
|
|
}
|
|
|
|
|
this.insertAllOption();
|
|
|
|
|
this.companyId = 0;
|
|
|
|
|
this.selectedStore = 0;
|
|
|
|
|
//加载店铺
|
|
|
|
|
this.downShopData();
|
|
|
|
|
},
|
|
|
|
|
//零售公司选择
|
|
|
|
|
companySelect: function(value){
|
|
|
|
|
companySelect: function(){
|
|
|
|
|
//加载店铺
|
|
|
|
|
this.selectedRegion = value;
|
|
|
|
|
this.downShopData(value);
|
|
|
|
|
this.downShopData(this.companyId);
|
|
|
|
|
this.selectedStore = 0;
|
|
|
|
|
},
|
|
|
|
|
downCompanyChange: function (formValidate) {
|
|
|
|
|
this.downShopData(formValidate.departIds);
|
|
|
|
@ -432,17 +437,20 @@
|
|
|
|
|
}
|
|
|
|
|
let regionId = that.regionId;
|
|
|
|
|
let customerIds = [];
|
|
|
|
|
this.customerList = [];
|
|
|
|
|
if(regionId === 0){
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
this.companyList = this.organizationalList.filter(item => item.parentId === regionId && item.level === 2);
|
|
|
|
|
let companyIds = this.companyList.map(item => item.id);
|
|
|
|
|
this.customerList = this.organizationalList.filter(item => companyIds.indexOf(item.parentId) !== -1 && item.level === 3);
|
|
|
|
|
this.insertAllOption();
|
|
|
|
|
}
|
|
|
|
|
if(companyId === 0){
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
this.customerList = this.organizationalList.filter(item => item.parentId === companyId && item.level === 3);
|
|
|
|
|
this.insertAllOption();
|
|
|
|
|
}
|
|
|
|
|
customerIds = this.customerList.map(item => item.id);
|
|
|
|
|
|
|
|
|
@ -466,6 +474,7 @@
|
|
|
|
|
return value;
|
|
|
|
|
},
|
|
|
|
|
show: function (index) {
|
|
|
|
|
debugger
|
|
|
|
|
this.isShow = true;
|
|
|
|
|
this.showStoreName = index.name;
|
|
|
|
|
this.qrCodeImage = index.qrCodeAction;
|
|
|
|
|