master
Caps 6 years ago
parent 475d543b7d
commit 0c826cfd1e

@ -53,7 +53,7 @@
return { return {
isCollapsed: false, isCollapsed: false,
mHeight: 600, mHeight: 600,
selectedItemName: 0, selectedItemName: null,
openName: [], openName: [],
selectedMenu: '', selectedMenu: '',
selectedSubMenu: '', selectedSubMenu: '',
@ -244,6 +244,7 @@
}, },
// //
callBack() { callBack() {
debugger
let that = this; let that = this;
this.selectedMenu = "设置管理"; this.selectedMenu = "设置管理";
this.selectedSubMenu = "账户管理"; this.selectedSubMenu = "账户管理";

@ -11,7 +11,7 @@
style="width: 200px"></DatePicker> style="width: 200px"></DatePicker>
</i-col> </i-col>
<i-col span="2" style="text-align: right;"> <i-col span="2" style="text-align: right;">
<span class="region">零售公司选择</span> <span class="region">零售公司</span>
</i-col> </i-col>
<i-col span="4" style="padding-left: 10px;"> <i-col span="4" style="padding-left: 10px;">
<Select v-model="selectedCompany" filterable style="width: 200px;"> <Select v-model="selectedCompany" filterable style="width: 200px;">

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

@ -10,7 +10,7 @@
<DatePicker @on-change="onChangeDateLister" :value="selectDate" type="daterange" split-panels placeholder="请选择日期" style="width: 200px"></DatePicker> <DatePicker @on-change="onChangeDateLister" :value="selectDate" type="daterange" split-panels placeholder="请选择日期" style="width: 200px"></DatePicker>
</i-col> </i-col>
<i-col span="2" style="text-align: right;"> <i-col span="2" style="text-align: right;">
<span class="region">零售公司选择</span> <span class="region">零售公司</span>
</i-col> </i-col>
<i-col span="4" style="padding-left: 10px;"> <i-col span="4" style="padding-left: 10px;">
<Select v-model="selectedCompany" filterable style="width: 200px;" @on-change="storeOfCompany"> <Select v-model="selectedCompany" filterable style="width: 200px;" @on-change="storeOfCompany">
@ -18,7 +18,7 @@
</Select> </Select>
</i-col> </i-col>
<i-col span="1" style="text-align: right;"> <i-col span="1" style="text-align: right;">
<span class="region">店铺选择</span> <span class="region">店铺</span>
</i-col> </i-col>
<i-col span="4" style="padding-left: 10px;"> <i-col span="4" style="padding-left: 10px;">
<Select v-model="selectedStore" filterable style="width: 200px;"> <Select v-model="selectedStore" filterable style="width: 200px;">
@ -130,7 +130,10 @@
return; return;
} }
if (data.code === '0000') { if (data.code === '0000') {
that.companyList = data.results; that.companyList.push({id:'-1',name:"全部"});
data.results.forEach(da => {
that.companyList.push(da);
})
} }
}) })
}, },
@ -147,15 +150,26 @@
return; return;
} }
if (data.code === '0000') { if (data.code === '0000') {
that.storeList = data.results; that.storeList.push({
id:'-1',
name:"全部"
})
data.results.forEach(da => {
that.storeList.push(da);
})
} }
}) })
}, },
storeOfCompany(){ storeOfCompany(){
this.selectedStore = null; this.selectedStore = null;
debugger
let that = this; let that = this;
let orgId = this.selectedCompany;
if(this.selectedCompany === "-1"){
orgId = null;
}
let request = { let request = {
orgId:this.selectedCompany orgId:orgId
}; };
this.storeList = []; this.storeList = [];
IncreaseData.listOfStoreByCompany(request,function (data) { IncreaseData.listOfStoreByCompany(request,function (data) {
@ -165,7 +179,13 @@
return; return;
} }
if (data.code === '0000') { if (data.code === '0000') {
that.storeList = data.results; that.storeList.push({
id:'-1',
name:"全部"
})
data.results.forEach(da => {
that.storeList.push(da);
})
} }
}) })
}, },
@ -174,11 +194,19 @@
this.$Message.info("请选择日期"); this.$Message.info("请选择日期");
return return
} }
let orgId = this.selectedCompany;
if(this.selectedCompany === "-1"){
orgId = null;
}
let shopId = this.selectedStore;
if(this.selectedStore === "-1"){
shopId = null;
}
let request = { let request = {
startTime:this.selectDate[0], startTime:this.selectDate[0],
endTime:this.selectDate[1], endTime:this.selectDate[1],
orgId:this.selectedCompany, orgId:orgId,
shopId:this.selectedStore, shopId:shopId,
pageNum:this.pageNum, pageNum:this.pageNum,
pageSize:this.pageSize, pageSize:this.pageSize,
}; };

@ -16,7 +16,7 @@
</Select> </Select>
</i-col> </i-col>
<i-col span="1" style="text-align: right;"> <i-col span="1" style="text-align: right;">
<span class="region">店铺选择</span> <span class="region">店铺</span>
</i-col> </i-col>
<i-col span="4" style="padding-left: 10px;"> <i-col span="4" style="padding-left: 10px;">
<Select v-model="selectedStore" filterable style="width: 200px;"> <Select v-model="selectedStore" filterable style="width: 200px;">

@ -47,6 +47,10 @@
return { return {
modal13: false, modal13: false,
roleList: [ roleList: [
{
id: '0',
name: '全部',
},
{ {
id: '1', id: '1',
name: '系统管理员', name: '系统管理员',
@ -188,6 +192,8 @@
this.bus.$emit('callBack'); this.bus.$emit('callBack');
} }
this.listAccountInfoFunction(); this.listAccountInfoFunction();
// enter
this.enterKeyup();
}, },
methods: { methods: {
// //
@ -217,6 +223,10 @@
} }
if (data.code === '0000') { if (data.code === '0000') {
data = data.results; data = data.results;
that.roleList.push({
id:0,
name:"全部"
});
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
let row = data[i]; let row = data[i];
that.roleList.push(row); that.roleList.push(row);
@ -250,11 +260,15 @@
listAccountInfoFunction: function () { listAccountInfoFunction: function () {
let that = this; let that = this;
that.data1 = []; that.data1 = [];
let roleId = that.changeRoleId;
if(that.changeRoleId === 0){
roleId = null;
}
let request = { let request = {
searchContent: that.searchContent, searchContent: that.searchContent,
pageNum: that.pageNum, pageNum: that.pageNum,
pageSize: that.pageSize, pageSize: that.pageSize,
roleId: that.changeRoleId, roleId: roleId,
shopId: that.changeShopId shopId: that.changeShopId
}; };
accountManagement.listAccountInfoApi(request, function (data) { accountManagement.listAccountInfoApi(request, function (data) {
@ -320,8 +334,25 @@
ok() { ok() {
this.modal13 = false; this.modal13 = false;
this.remove(); this.remove();
},
enterKeyup() {
document.addEventListener("keyup", this.buttonOperation);
},
buttonOperation() {
const code = event.keyCode
? event.keyCode
: event.which
? event.which
: event.charCode;
if (code === 13) {
this.pageNum = 1;
this.listAccountInfoFunction();
}else if (code !== 13 && code === 1) {
this.pageNum = 1;
this.listAccountInfoFunction();
} }
}, },
},
} }
</script> </script>

Loading…
Cancel
Save