1;admin账户的店铺页面 查询条件 归属人换为代理账户
This commit is contained in:
parent
d570bb92fa
commit
b97396dd6d
|
@ -28,6 +28,11 @@ public class ReqBusStoreInfo extends BaseEntity {
|
||||||
@ApiModelProperty(name = "店铺名称")
|
@ApiModelProperty(name = "店铺名称")
|
||||||
private String storeName;
|
private String storeName;
|
||||||
|
|
||||||
|
/** 店铺归属 */
|
||||||
|
@ApiModelProperty(name = "绑定代理id")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||||
|
private Long bindId;
|
||||||
|
|
||||||
/** 店铺归属 */
|
/** 店铺归属 */
|
||||||
@ApiModelProperty(name = "店铺归属人id")
|
@ApiModelProperty(name = "店铺归属人id")
|
||||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||||
|
|
|
@ -9,6 +9,15 @@ export function listInfo(query) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询代理人列表
|
||||||
|
export function listA(query) {
|
||||||
|
return request({
|
||||||
|
url: '/system/info/listA',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 查询代理管理详细
|
// 查询代理管理详细
|
||||||
export function getInfo(id) {
|
export function getInfo(id) {
|
||||||
return request({
|
return request({
|
||||||
|
@ -50,4 +59,4 @@ export function deptList() {
|
||||||
url: '/system/info/deptList',
|
url: '/system/info/deptList',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item label="店铺归属" prop="saleBindId">
|
<el-form-item label="店铺归属" prop="saleBindId" v-if="userAccount !='admin' ">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.saleBindId"
|
v-model="queryParams.saleBindId"
|
||||||
placeholder="店铺归属"
|
placeholder="店铺归属"
|
||||||
|
@ -58,6 +58,22 @@
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="店铺代理" prop="bindId" v-if="userAccount =='admin' ">
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.bindId"
|
||||||
|
placeholder="店铺代理"
|
||||||
|
filterable
|
||||||
|
clearable
|
||||||
|
style="width: 240px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in agentList"
|
||||||
|
:key="dict.id"
|
||||||
|
:label="dict.agentAccount+' :'+dict.agentName"
|
||||||
|
:value="dict.id"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2"><el-form-item label="门店数量" ><span>{{map.storeCount}}</span></el-form-item></el-col>
|
<el-col :span="2"><el-form-item label="门店数量" ><span>{{map.storeCount}}</span></el-form-item></el-col>
|
||||||
<el-col :span="2"><el-form-item label="掉线数量" ><span>{{map.noGrantCount}}</span></el-form-item></el-col>
|
<el-col :span="2"><el-form-item label="掉线数量" ><span>{{map.noGrantCount}}</span></el-form-item></el-col>
|
||||||
|
@ -398,6 +414,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { listStore, changeReturnVisitStatus, getMtUrl, changeSelfDeliveryStatus, getStoreConfig, updateStoreConfig, nowIntegral, getStoreStatistics } from "@/api/business/store";
|
import { listStore, changeReturnVisitStatus, getMtUrl, changeSelfDeliveryStatus, getStoreConfig, updateStoreConfig, nowIntegral, getStoreStatistics } from "@/api/business/store";
|
||||||
import { listSaleA} from "@/api/business/sale";
|
import { listSaleA} from "@/api/business/sale";
|
||||||
|
import { listA} from "@/api/agent/info";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Role",
|
name: "Role",
|
||||||
|
@ -478,6 +495,7 @@ export default {
|
||||||
this.userAccount = this.$store.state.user.name;
|
this.userAccount = this.$store.state.user.name;
|
||||||
if(this.$store.state.user.name == 'admin'){
|
if(this.$store.state.user.name == 'admin'){
|
||||||
this.isDisabled = true;
|
this.isDisabled = true;
|
||||||
|
this.getListAgent();
|
||||||
}
|
}
|
||||||
this.getListSale();
|
this.getListSale();
|
||||||
this.getList();
|
this.getList();
|
||||||
|
@ -523,6 +541,12 @@ export default {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
getListAgent(){
|
||||||
|
listA(this.queryParams).then(response => {
|
||||||
|
this.agentList = response.data;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
getListSale() {
|
getListSale() {
|
||||||
listSaleA(this.queryParams).then(response => {
|
listSaleA(this.queryParams).then(response => {
|
||||||
this.saleList = response.data;
|
this.saleList = response.data;
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item label="店铺归属" prop="saleBindId">
|
<el-form-item label="店铺归属" prop="saleBindId" v-if="userAccount !='admin' ">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.saleBindId"
|
v-model="queryParams.saleBindId"
|
||||||
placeholder="店铺归属"
|
placeholder="店铺归属"
|
||||||
|
@ -58,6 +58,22 @@
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="店铺代理" prop="bindId" v-if="userAccount =='admin' ">
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.bindId"
|
||||||
|
placeholder="店铺代理"
|
||||||
|
filterable
|
||||||
|
clearable
|
||||||
|
style="width: 240px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in agentList"
|
||||||
|
:key="dict.id"
|
||||||
|
:label="dict.agentAccount+' :'+dict.agentName"
|
||||||
|
:value="dict.id"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2"><el-form-item label="门店数量:"><span>{{map.storeCount}}</span></el-form-item></el-col>
|
<el-col :span="2"><el-form-item label="门店数量:"><span>{{map.storeCount}}</span></el-form-item></el-col>
|
||||||
<el-col :span="2"><el-form-item label="掉线数量:"><span>{{map.noGrantCount}}</span></el-form-item></el-col>
|
<el-col :span="2"><el-form-item label="掉线数量:"><span>{{map.noGrantCount}}</span></el-form-item></el-col>
|
||||||
|
@ -464,6 +480,7 @@
|
||||||
|
|
||||||
import { listStore, changeReturnVisitStatus, getMtUrl, changeSelfDeliveryStatus, getStoreConfig, updateStoreConfig, refresh,getComment, getStoreStatistics,nowIntegral,updateProjectsConfig } from "@/api/business/store";
|
import { listStore, changeReturnVisitStatus, getMtUrl, changeSelfDeliveryStatus, getStoreConfig, updateStoreConfig, refresh,getComment, getStoreStatistics,nowIntegral,updateProjectsConfig } from "@/api/business/store";
|
||||||
import { listSaleA} from "@/api/business/sale";
|
import { listSaleA} from "@/api/business/sale";
|
||||||
|
import { listA} from "@/api/agent/info";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Role",
|
name: "Role",
|
||||||
|
@ -521,6 +538,7 @@ export default {
|
||||||
content: undefined
|
content: undefined
|
||||||
},
|
},
|
||||||
saleList: [],
|
saleList: [],
|
||||||
|
agentList:[],
|
||||||
timeRange: ['00:00:00','23:59:59'],
|
timeRange: ['00:00:00','23:59:59'],
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {quotaStatus:'1'},
|
form: {quotaStatus:'1'},
|
||||||
|
@ -550,6 +568,7 @@ export default {
|
||||||
this.userAccount = this.$store.state.user.name;
|
this.userAccount = this.$store.state.user.name;
|
||||||
if(this.$store.state.user.name == 'admin'){
|
if(this.$store.state.user.name == 'admin'){
|
||||||
this.isDisabled = true;
|
this.isDisabled = true;
|
||||||
|
this.getListAgent();
|
||||||
}
|
}
|
||||||
this.getListSale();
|
this.getListSale();
|
||||||
this.getList();
|
this.getList();
|
||||||
|
@ -595,6 +614,12 @@ export default {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
getListAgent(){
|
||||||
|
listA(this.queryParams).then(response => {
|
||||||
|
this.agentList = response.data;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
storeStatistics() {
|
storeStatistics() {
|
||||||
getStoreStatistics().then(response => {
|
getStoreStatistics().then(response => {
|
||||||
this.map.storeCount = response.data.storeCount;
|
this.map.storeCount = response.data.storeCount;
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item label="店铺归属" prop="saleBindId">
|
<el-form-item label="店铺归属" prop="saleBindId" v-if="userAccount !='admin' ">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.saleBindId"
|
v-model="queryParams.saleBindId"
|
||||||
placeholder="店铺归属"
|
placeholder="店铺归属"
|
||||||
|
@ -58,6 +58,22 @@
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="店铺代理" prop="bindId" v-if="userAccount =='admin' ">
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.bindId"
|
||||||
|
placeholder="店铺代理"
|
||||||
|
filterable
|
||||||
|
clearable
|
||||||
|
style="width: 240px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in agentList"
|
||||||
|
:key="dict.id"
|
||||||
|
:label="dict.agentAccount+' :'+dict.agentName"
|
||||||
|
:value="dict.id"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2"><el-form-item label="门店数量:" ><span>{{map.storeCount}}</span></el-form-item></el-col>
|
<el-col :span="2"><el-form-item label="门店数量:" ><span>{{map.storeCount}}</span></el-form-item></el-col>
|
||||||
<el-col :span="2"><el-form-item label="掉线数量:" ><span>{{map.noGrantCount}}</span></el-form-item></el-col>
|
<el-col :span="2"><el-form-item label="掉线数量:" ><span>{{map.noGrantCount}}</span></el-form-item></el-col>
|
||||||
|
@ -372,6 +388,7 @@
|
||||||
|
|
||||||
import { listStore, changeReturnVisitStatus, getMtUrl, changeSelfDeliveryStatus, getStoreConfig, updateStoreConfig, getStoreStatistics, generateWord, nowIntegral, setUpPrize } from "@/api/business/store";
|
import { listStore, changeReturnVisitStatus, getMtUrl, changeSelfDeliveryStatus, getStoreConfig, updateStoreConfig, getStoreStatistics, generateWord, nowIntegral, setUpPrize } from "@/api/business/store";
|
||||||
import { listSaleA} from "@/api/business/sale";
|
import { listSaleA} from "@/api/business/sale";
|
||||||
|
import { listA} from "@/api/agent/info";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Role",
|
name: "Role",
|
||||||
|
@ -459,6 +476,10 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.userAccount = this.$store.state.user.name;
|
||||||
|
if(this.$store.state.user.name == 'admin'){
|
||||||
|
this.getListAgent();
|
||||||
|
}
|
||||||
this.getListSale();
|
this.getListSale();
|
||||||
this.getList();
|
this.getList();
|
||||||
this.storeStatistics();
|
this.storeStatistics();
|
||||||
|
@ -504,6 +525,12 @@ export default {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
getListAgent(){
|
||||||
|
listA(this.queryParams).then(response => {
|
||||||
|
this.agentList = response.data;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
getListSale() {
|
getListSale() {
|
||||||
listSaleA(this.queryParams).then(response => {
|
listSaleA(this.queryParams).then(response => {
|
||||||
this.saleList = response.data;
|
this.saleList = response.data;
|
||||||
|
|
Loading…
Reference in New Issue