给单据增加查询条件

This commit is contained in:
季圣华
2021-07-15 01:20:37 +08:00
parent cdca300d4c
commit 9b1312bf90
14 changed files with 571 additions and 49 deletions

View File

@@ -1,6 +1,16 @@
import Vue from 'vue'
import {getAction } from '@/api/manage'
import {findBySelectSup, findBySelectCus, findBySelectRetail, getUserList } from '@/api/api'
export const BillListMixin = {
data () {
return {
supList: [],
cusList: [],
retailList: [],
userList: []
}
},
computed: {
importExcelUrl: function(){
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
@@ -52,6 +62,46 @@ export const BillListMixin = {
if(this.btnEnableList.indexOf(2)===-1) {
this.columns.splice(7,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;
}
});
},
getDepotData() {
getAction('/depot/findDepotByCurrentUser').then((res)=>{
if(res.code === 200){
this.depotList = res.data;
}else{
this.$message.info(res.data);
}
})
},
initUser() {
getUserList({}).then((res)=>{
if(res) {
this.userList = res;
}
});
}
}
}