|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
<DatePicker @on-change="onChangeDateLister" :value="selectDate" type="daterange" split-panels placeholder="请选择日期" style="width: 200px"></DatePicker>
|
|
|
|
|
</i-col>
|
|
|
|
|
<i-col span="2" style="text-align: right;">
|
|
|
|
|
<span class="region">零售公司选择</span>
|
|
|
|
|
<span class="region">零售公司</span>
|
|
|
|
|
</i-col>
|
|
|
|
|
<i-col span="4" style="padding-left: 10px;">
|
|
|
|
|
<Select v-model="selectedCompany" @on-change="storeOfCompany" filterable style="width: 200px;">
|
|
|
|
@ -18,7 +18,7 @@
|
|
|
|
|
</Select>
|
|
|
|
|
</i-col>
|
|
|
|
|
<i-col span="1" style="text-align: right;">
|
|
|
|
|
<span class="region">店铺选择</span>
|
|
|
|
|
<span class="region">店铺</span>
|
|
|
|
|
</i-col>
|
|
|
|
|
<i-col span="4" style="padding-left: 10px;">
|
|
|
|
|
<Select v-model="selectedStore" filterable style="width: 200px;" @on-change="sellerOfStore">
|
|
|
|
@ -27,7 +27,7 @@
|
|
|
|
|
</i-col>
|
|
|
|
|
|
|
|
|
|
<i-col span="1" style="text-align: right;">
|
|
|
|
|
<span class="region">导购选择</span>
|
|
|
|
|
<span class="region">导购</span>
|
|
|
|
|
</i-col>
|
|
|
|
|
<i-col span="4" style="padding-left: 10px;">
|
|
|
|
|
<Select v-model="selectedStaff" filterable style="width: 200px;">
|
|
|
|
@ -146,7 +146,10 @@
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (data.code === '0000') {
|
|
|
|
|
that.companyList = data.results;
|
|
|
|
|
that.companyList.push({id:'-1',name:"全部"});
|
|
|
|
|
data.results.forEach(da => {
|
|
|
|
|
that.companyList.push(da);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
@ -163,7 +166,13 @@
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (data.code === '0000') {
|
|
|
|
|
that.storeList = data.results;
|
|
|
|
|
that.storeList.push({
|
|
|
|
|
id:'-1',
|
|
|
|
|
name:"全部"
|
|
|
|
|
})
|
|
|
|
|
data.results.forEach(da => {
|
|
|
|
|
that.storeList.push(da);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
@ -180,15 +189,25 @@
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (data.code === '0000') {
|
|
|
|
|
that.staffList = data.results;
|
|
|
|
|
that.staffList.push({
|
|
|
|
|
id:'-1',
|
|
|
|
|
name:"全部"
|
|
|
|
|
})
|
|
|
|
|
data.results.forEach(da => {
|
|
|
|
|
that.staffList.push(da);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
storeOfCompany(){
|
|
|
|
|
let that = this;
|
|
|
|
|
this.selectedStore = "";
|
|
|
|
|
let orgId = this.selectedCompany;
|
|
|
|
|
if(this.selectedCompany === "-1"){
|
|
|
|
|
orgId = null;
|
|
|
|
|
}
|
|
|
|
|
let request = {
|
|
|
|
|
orgId:this.selectedCompany
|
|
|
|
|
orgId:orgId
|
|
|
|
|
};
|
|
|
|
|
this.storeList = [];
|
|
|
|
|
IncreaseData.listOfStoreByCompany(request,function (data) {
|
|
|
|
@ -198,15 +217,25 @@
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (data.code === '0000') {
|
|
|
|
|
that.storeList = data.results;
|
|
|
|
|
that.storeList.push({
|
|
|
|
|
id:'-1',
|
|
|
|
|
name:"全部"
|
|
|
|
|
})
|
|
|
|
|
data.results.forEach(da => {
|
|
|
|
|
that.storeList.push(da);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
sellerOfStore(){
|
|
|
|
|
let that = this;
|
|
|
|
|
this.selectedStaff = "";
|
|
|
|
|
let shopId = this.selectedStore;
|
|
|
|
|
if(this.selectedStore === '-1'){
|
|
|
|
|
shopId = null;
|
|
|
|
|
}
|
|
|
|
|
let request = {
|
|
|
|
|
shopId:this.selectedStore
|
|
|
|
|
shopId:shopId
|
|
|
|
|
};
|
|
|
|
|
this.staffList = [];
|
|
|
|
|
IncreaseData.listOfSellerByStore(request,function (data) {
|
|
|
|
@ -216,7 +245,13 @@
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (data.code === '0000') {
|
|
|
|
|
that.staffList = data.results;
|
|
|
|
|
that.staffList.push({
|
|
|
|
|
id:'-1',
|
|
|
|
|
name:"全部"
|
|
|
|
|
})
|
|
|
|
|
data.results.forEach(da => {
|
|
|
|
|
that.staffList.push(da);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|