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