完善供应商、客户、会员查询,支持模糊查询,支持1万数量级的快速查询
This commit is contained in:
@@ -27,6 +27,7 @@ export const FinancialModalMixin = {
|
||||
},
|
||||
/* 原始审核是否开启 */
|
||||
checkFlag: true,
|
||||
setTimeFlag: null,
|
||||
spans: {
|
||||
labelCol1: {span: 2},
|
||||
wrapperCol1: {span: 22},
|
||||
@@ -100,7 +101,7 @@ export const FinancialModalMixin = {
|
||||
},
|
||||
initSupplier() {
|
||||
let that = this;
|
||||
findBySelectSup({}).then((res)=>{
|
||||
findBySelectSup({organId: this.model.organId}).then((res)=>{
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
@@ -108,7 +109,7 @@ export const FinancialModalMixin = {
|
||||
},
|
||||
initCustomer() {
|
||||
let that = this;
|
||||
findBySelectCus({}).then((res)=>{
|
||||
findBySelectCus({organId: this.model.organId}).then((res)=>{
|
||||
if(res) {
|
||||
that.cusList = res;
|
||||
}
|
||||
@@ -116,7 +117,7 @@ export const FinancialModalMixin = {
|
||||
},
|
||||
initOrgan() {
|
||||
let that = this;
|
||||
findBySelectOrgan({}).then((res)=>{
|
||||
findBySelectOrgan({organId: this.model.organId}).then((res)=>{
|
||||
if(res) {
|
||||
that.organList = res;
|
||||
}
|
||||
@@ -124,7 +125,7 @@ export const FinancialModalMixin = {
|
||||
},
|
||||
initRetail() {
|
||||
let that = this;
|
||||
findBySelectRetail({}).then((res)=>{
|
||||
findBySelectRetail({organId: this.model.organId}).then((res)=>{
|
||||
if(res) {
|
||||
that.retailList = res;
|
||||
}
|
||||
@@ -187,6 +188,58 @@ export const FinancialModalMixin = {
|
||||
}
|
||||
})
|
||||
},
|
||||
handleSearchSupplier(value) {
|
||||
let that = this
|
||||
if(this.setTimeFlag != null){
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectSup({key: value}).then((res) => {
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
})
|
||||
},500)
|
||||
},
|
||||
handleSearchCustomer(value) {
|
||||
let that = this
|
||||
if(this.setTimeFlag != null){
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectCus({key: value}).then((res) => {
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
})
|
||||
},500)
|
||||
},
|
||||
handleSearchOrgan(value) {
|
||||
let that = this
|
||||
if(this.setTimeFlag != null){
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectOrgan({key: value}).then((res) => {
|
||||
if(res) {
|
||||
that.organList = res;
|
||||
}
|
||||
})
|
||||
},500)
|
||||
},
|
||||
handleSearchRetail(value) {
|
||||
let that = this
|
||||
if(this.setTimeFlag != null){
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectRetail({key: value}).then((res) => {
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
})
|
||||
},500)
|
||||
},
|
||||
//选择供应商或客户的触发事件
|
||||
onChangeOrgan(value) {
|
||||
this.accountTable.dataSource = []
|
||||
|
||||
Reference in New Issue
Block a user