优化财务单据,增加查询条件

This commit is contained in:
季圣华
2021-07-15 23:13:00 +08:00
parent 9fadc1e063
commit 56e8fed07f
24 changed files with 347 additions and 68 deletions

View File

@@ -1,4 +1,15 @@
import {findBySelectSup, findBySelectCus, findBySelectRetail, getUserList, getPersonByType } from '@/api/api'
export const FinancialListMixin = {
data () {
return {
supList: [],
cusList: [],
retailList: [],
userList: [],
personList: []
}
},
computed: {
importExcelUrl: function(){
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
@@ -37,6 +48,45 @@ export const FinancialListMixin = {
}
this.loadData(1);
},
initSupplier() {
let that = this;
findBySelectSup({}).then((res)=>{
if(res) {
that.supList = res;
}
});
},
initCustomer() {
let that = this;
findBySelectCus({}).then((res)=>{
if(res) {
that.cusList = res;
}
});
},
initRetail() {
let that = this;
findBySelectRetail({}).then((res)=>{
if(res) {
that.retailList = res;
}
});
},
initUser() {
getUserList({}).then((res)=>{
if(res) {
this.userList = res;
}
});
},
initPerson() {
let that = this;
getPersonByType({type:'财务员'}).then((res)=>{
if(res && res.code === 200) {
that.personList = res.data.personList;
}
})
},
onDateChange: function (value, dateString) {
this.queryParam.beginTime=dateString[0];
this.queryParam.endTime=dateString[1];