给供应商和客户的查询增加分页限制的参数
This commit is contained in:
@@ -213,7 +213,7 @@
|
||||
},
|
||||
loadSupplier(organType, organId) {
|
||||
if(organType === '供应商') {
|
||||
findBySelectSup({}).then((res)=>{
|
||||
findBySelectSup({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
this.supplierList = res
|
||||
if(organId) {
|
||||
@@ -223,7 +223,7 @@
|
||||
}
|
||||
})
|
||||
} else if(organType === '客户') {
|
||||
findBySelectCus({}).then((res)=>{
|
||||
findBySelectCus({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
this.supplierList = res
|
||||
if(organId) {
|
||||
@@ -241,7 +241,7 @@
|
||||
}
|
||||
if(this.organLabel === '供应商') {
|
||||
this.setTimeFlag = setTimeout(() => {
|
||||
findBySelectSup({ key: value }).then((res) => {
|
||||
findBySelectSup({ key: value, limit:1 }).then((res) => {
|
||||
if (res) {
|
||||
that.supplierList = res;
|
||||
}
|
||||
@@ -249,7 +249,7 @@
|
||||
}, 500)
|
||||
} else if(this.organLabel === '客户') {
|
||||
this.setTimeFlag = setTimeout(() => {
|
||||
findBySelectCus({ key: value }).then((res) => {
|
||||
findBySelectCus({ key: value, limit:1 }).then((res) => {
|
||||
if (res) {
|
||||
that.supplierList = res;
|
||||
}
|
||||
|
||||
@@ -616,7 +616,7 @@ export const BillListMixin = {
|
||||
},
|
||||
initSupplier() {
|
||||
let that = this;
|
||||
findBySelectSup({}).then((res)=>{
|
||||
findBySelectSup({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
@@ -624,7 +624,7 @@ export const BillListMixin = {
|
||||
},
|
||||
initCustomer() {
|
||||
let that = this;
|
||||
findBySelectCus({}).then((res)=>{
|
||||
findBySelectCus({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.cusList = res;
|
||||
}
|
||||
@@ -632,7 +632,7 @@ export const BillListMixin = {
|
||||
},
|
||||
initRetail() {
|
||||
let that = this;
|
||||
findBySelectRetail({}).then((res)=>{
|
||||
findBySelectRetail({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.retailList = res;
|
||||
}
|
||||
@@ -725,7 +725,7 @@ export const BillListMixin = {
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectSup({key: value}).then((res) => {
|
||||
findBySelectSup({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
@@ -738,7 +738,7 @@ export const BillListMixin = {
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectCus({key: value}).then((res) => {
|
||||
findBySelectCus({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.cusList = res;
|
||||
}
|
||||
@@ -751,7 +751,7 @@ export const BillListMixin = {
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectRetail({key: value}).then((res) => {
|
||||
findBySelectRetail({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.retailList = res;
|
||||
}
|
||||
|
||||
@@ -204,7 +204,7 @@ export const BillModalMixin = {
|
||||
},
|
||||
initSupplier(isChecked) {
|
||||
let that = this;
|
||||
findBySelectSup({organId: this.model.organId}).then((res)=>{
|
||||
findBySelectSup({organId: this.model.organId, limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.supList = res
|
||||
if(isChecked && res.length>0) {
|
||||
@@ -215,7 +215,7 @@ export const BillModalMixin = {
|
||||
},
|
||||
initCustomer(isChecked) {
|
||||
let that = this;
|
||||
findBySelectCus({organId: this.model.organId}).then((res)=>{
|
||||
findBySelectCus({organId: this.model.organId, limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.cusList = res
|
||||
if(isChecked && res.length>0) {
|
||||
@@ -226,7 +226,7 @@ export const BillModalMixin = {
|
||||
},
|
||||
initRetail(isChecked) {
|
||||
let that = this;
|
||||
findBySelectRetail({organId: this.model.organId}).then((res)=>{
|
||||
findBySelectRetail({organId: this.model.organId, limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.retailList = res
|
||||
if(isChecked && res.length>0) {
|
||||
@@ -290,7 +290,7 @@ export const BillModalMixin = {
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectSup({key: value}).then((res) => {
|
||||
findBySelectSup({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
@@ -303,7 +303,7 @@ export const BillModalMixin = {
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectCus({key: value}).then((res) => {
|
||||
findBySelectCus({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.cusList = res;
|
||||
}
|
||||
@@ -316,7 +316,7 @@ export const BillModalMixin = {
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectRetail({key: value}).then((res) => {
|
||||
findBySelectRetail({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.retailList = res;
|
||||
}
|
||||
|
||||
@@ -451,7 +451,7 @@
|
||||
'accountId': accountId,
|
||||
'remark': remark
|
||||
})
|
||||
findBySelectSup({organId: organId}).then((res)=> {
|
||||
findBySelectSup({organId: organId, limit:1}).then((res)=> {
|
||||
this.supList = res && Array.isArray(res) ? res : [];
|
||||
})
|
||||
getCurrentSystemConfig().then((res) => {
|
||||
|
||||
@@ -510,7 +510,7 @@
|
||||
'accountId': accountId,
|
||||
'remark': remark
|
||||
})
|
||||
findBySelectSup({organId: organId}).then((res)=> {
|
||||
findBySelectSup({organId: organId, limit:1}).then((res)=> {
|
||||
this.supList = res && Array.isArray(res) ? res : [];
|
||||
})
|
||||
getCurrentSystemConfig().then((res) => {
|
||||
|
||||
@@ -461,7 +461,7 @@
|
||||
'accountId': accountId,
|
||||
'remark': remark
|
||||
})
|
||||
findBySelectCus({organId: organId}).then((res)=> {
|
||||
findBySelectCus({organId: organId, limit:1}).then((res)=> {
|
||||
this.cusList = res && Array.isArray(res) ? res : [];
|
||||
})
|
||||
getCurrentSystemConfig().then((res) => {
|
||||
|
||||
@@ -527,7 +527,7 @@
|
||||
'accountId': accountId,
|
||||
'remark': remark
|
||||
})
|
||||
findBySelectCus({organId: organId}).then((res)=> {
|
||||
findBySelectCus({organId: organId, limit:1}).then((res)=> {
|
||||
this.cusList = res && Array.isArray(res) ? res : [];
|
||||
})
|
||||
getCurrentSystemConfig().then((res) => {
|
||||
|
||||
@@ -151,13 +151,13 @@
|
||||
initSupplier() {
|
||||
let that = this
|
||||
if(this.organType === '客户') {
|
||||
findBySelectCus({}).then((res) => {
|
||||
findBySelectCus({limit:1}).then((res) => {
|
||||
if (res) {
|
||||
that.supList = res
|
||||
}
|
||||
})
|
||||
} else if(this.organType === '供应商') {
|
||||
findBySelectSup({}).then((res) => {
|
||||
findBySelectSup({limit:1}).then((res) => {
|
||||
if (res) {
|
||||
that.supList = res;
|
||||
}
|
||||
@@ -171,7 +171,7 @@
|
||||
}
|
||||
if(this.organType === '客户') {
|
||||
this.setTimeFlag = setTimeout(() => {
|
||||
findBySelectCus({ key: value }).then((res) => {
|
||||
findBySelectCus({ key: value, limit:1 }).then((res) => {
|
||||
if (res) {
|
||||
that.supList = res
|
||||
}
|
||||
@@ -179,7 +179,7 @@
|
||||
}, 500)
|
||||
} else if(this.organType === '供应商') {
|
||||
this.setTimeFlag = setTimeout(() => {
|
||||
findBySelectSup({ key: value }).then((res) => {
|
||||
findBySelectSup({ key: value, limit:1 }).then((res) => {
|
||||
if (res) {
|
||||
that.supList = res;
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ export const FinancialListMixin = {
|
||||
},
|
||||
initSupplier() {
|
||||
let that = this;
|
||||
findBySelectSup({}).then((res)=>{
|
||||
findBySelectSup({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
@@ -134,7 +134,7 @@ export const FinancialListMixin = {
|
||||
},
|
||||
initCustomer() {
|
||||
let that = this;
|
||||
findBySelectCus({}).then((res)=>{
|
||||
findBySelectCus({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.cusList = res;
|
||||
}
|
||||
@@ -142,7 +142,7 @@ export const FinancialListMixin = {
|
||||
},
|
||||
initOrgan() {
|
||||
let that = this;
|
||||
findBySelectOrgan({}).then((res)=>{
|
||||
findBySelectOrgan({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.organList = res;
|
||||
}
|
||||
@@ -150,7 +150,7 @@ export const FinancialListMixin = {
|
||||
},
|
||||
initRetail() {
|
||||
let that = this;
|
||||
findBySelectRetail({}).then((res)=>{
|
||||
findBySelectRetail({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.retailList = res;
|
||||
}
|
||||
@@ -198,7 +198,7 @@ export const FinancialListMixin = {
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectSup({key: value}).then((res) => {
|
||||
findBySelectSup({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
@@ -211,7 +211,7 @@ export const FinancialListMixin = {
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectCus({key: value}).then((res) => {
|
||||
findBySelectCus({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.cusList = res;
|
||||
}
|
||||
@@ -224,7 +224,7 @@ export const FinancialListMixin = {
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectOrgan({key: value}).then((res) => {
|
||||
findBySelectOrgan({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.organList = res;
|
||||
}
|
||||
@@ -237,7 +237,7 @@ export const FinancialListMixin = {
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectRetail({key: value}).then((res) => {
|
||||
findBySelectRetail({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.retailList = res;
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ export const FinancialModalMixin = {
|
||||
},
|
||||
initSupplier() {
|
||||
let that = this;
|
||||
findBySelectSup({organId: this.model.organId}).then((res)=>{
|
||||
findBySelectSup({organId: this.model.organId, limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
@@ -109,7 +109,7 @@ export const FinancialModalMixin = {
|
||||
},
|
||||
initCustomer() {
|
||||
let that = this;
|
||||
findBySelectCus({organId: this.model.organId}).then((res)=>{
|
||||
findBySelectCus({organId: this.model.organId, limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.cusList = res;
|
||||
}
|
||||
@@ -117,7 +117,7 @@ export const FinancialModalMixin = {
|
||||
},
|
||||
initOrgan() {
|
||||
let that = this;
|
||||
findBySelectOrgan({organId: this.model.organId}).then((res)=>{
|
||||
findBySelectOrgan({organId: this.model.organId, limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.organList = res;
|
||||
}
|
||||
@@ -125,7 +125,7 @@ export const FinancialModalMixin = {
|
||||
},
|
||||
initRetail() {
|
||||
let that = this;
|
||||
findBySelectRetail({organId: this.model.organId}).then((res)=>{
|
||||
findBySelectRetail({organId: this.model.organId, limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.retailList = res;
|
||||
}
|
||||
@@ -194,7 +194,7 @@ export const FinancialModalMixin = {
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectSup({key: value}).then((res) => {
|
||||
findBySelectSup({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
@@ -207,7 +207,7 @@ export const FinancialModalMixin = {
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectCus({key: value}).then((res) => {
|
||||
findBySelectCus({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.cusList = res;
|
||||
}
|
||||
@@ -220,7 +220,7 @@ export const FinancialModalMixin = {
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectOrgan({key: value}).then((res) => {
|
||||
findBySelectOrgan({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.organList = res;
|
||||
}
|
||||
@@ -233,7 +233,7 @@ export const FinancialModalMixin = {
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectRetail({key: value}).then((res) => {
|
||||
findBySelectRetail({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.retailList = res;
|
||||
}
|
||||
@@ -291,11 +291,11 @@ export const FinancialModalMixin = {
|
||||
if(organId) {
|
||||
this.form.setFieldsValue({'organId': organId})
|
||||
if(organType === '供应商') {
|
||||
findBySelectSup({organId: organId}).then((res)=> {
|
||||
findBySelectSup({organId: organId, limit:1}).then((res)=> {
|
||||
this.supList = res && Array.isArray(res) ? res : [];
|
||||
})
|
||||
} else if(organType === '客户') {
|
||||
findBySelectCus({organId: organId}).then((res)=> {
|
||||
findBySelectCus({organId: organId, limit:1}).then((res)=> {
|
||||
this.cusList = res && Array.isArray(res) ? res : [];
|
||||
})
|
||||
}
|
||||
|
||||
@@ -303,7 +303,7 @@
|
||||
},
|
||||
initSupplier() {
|
||||
let that = this;
|
||||
findBySelectSup({}).then((res)=>{
|
||||
findBySelectSup({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
|
||||
@@ -283,7 +283,7 @@
|
||||
},
|
||||
initSupplier() {
|
||||
let that = this;
|
||||
findBySelectSup({}).then((res)=>{
|
||||
findBySelectSup({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.supList = res
|
||||
}
|
||||
@@ -295,7 +295,7 @@
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectSup({key: value}).then((res) => {
|
||||
findBySelectSup({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
|
||||
@@ -231,7 +231,7 @@
|
||||
},
|
||||
initCustomer() {
|
||||
let that = this;
|
||||
findBySelectCus({}).then((res)=>{
|
||||
findBySelectCus({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.cusList = res;
|
||||
}
|
||||
@@ -243,7 +243,7 @@
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectCus({key: value}).then((res) => {
|
||||
findBySelectCus({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.cusList = res;
|
||||
}
|
||||
|
||||
@@ -320,7 +320,7 @@
|
||||
},
|
||||
initOrgan() {
|
||||
let that = this;
|
||||
findBySelectOrgan({}).then((res)=>{
|
||||
findBySelectOrgan({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.organList = res;
|
||||
}
|
||||
@@ -332,7 +332,7 @@
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectOrgan({key: value}).then((res) => {
|
||||
findBySelectOrgan({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.organList = res;
|
||||
}
|
||||
|
||||
@@ -276,7 +276,7 @@
|
||||
},
|
||||
initOrgan() {
|
||||
let that = this;
|
||||
findBySelectOrgan({}).then((res)=>{
|
||||
findBySelectOrgan({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.organList = res;
|
||||
}
|
||||
@@ -288,7 +288,7 @@
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectOrgan({key: value}).then((res) => {
|
||||
findBySelectOrgan({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.organList = res;
|
||||
}
|
||||
|
||||
@@ -320,7 +320,7 @@
|
||||
},
|
||||
initOrgan() {
|
||||
let that = this;
|
||||
findBySelectOrgan({}).then((res)=>{
|
||||
findBySelectOrgan({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.organList = res;
|
||||
}
|
||||
@@ -332,7 +332,7 @@
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectOrgan({key: value}).then((res) => {
|
||||
findBySelectOrgan({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.organList = res;
|
||||
}
|
||||
|
||||
@@ -276,7 +276,7 @@
|
||||
},
|
||||
initOrgan() {
|
||||
let that = this;
|
||||
findBySelectOrgan({}).then((res)=>{
|
||||
findBySelectOrgan({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.organList = res;
|
||||
}
|
||||
@@ -288,7 +288,7 @@
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectOrgan({key: value}).then((res) => {
|
||||
findBySelectOrgan({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.organList = res;
|
||||
}
|
||||
|
||||
@@ -285,7 +285,7 @@
|
||||
},
|
||||
initRetail() {
|
||||
let that = this;
|
||||
findBySelectRetail({}).then((res)=>{
|
||||
findBySelectRetail({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.retailList = res
|
||||
}
|
||||
@@ -297,7 +297,7 @@
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectRetail({key: value}).then((res) => {
|
||||
findBySelectRetail({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
|
||||
@@ -285,7 +285,7 @@
|
||||
},
|
||||
initCustomer() {
|
||||
let that = this;
|
||||
findBySelectCus({}).then((res)=>{
|
||||
findBySelectCus({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.cusList = res
|
||||
}
|
||||
@@ -297,7 +297,7 @@
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectCus({key: value}).then((res) => {
|
||||
findBySelectCus({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
|
||||
@@ -231,7 +231,7 @@
|
||||
},
|
||||
initSupplier() {
|
||||
let that = this;
|
||||
findBySelectSup({}).then((res)=>{
|
||||
findBySelectSup({limit:1}).then((res)=>{
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
@@ -243,7 +243,7 @@
|
||||
clearTimeout(this.setTimeFlag);
|
||||
}
|
||||
this.setTimeFlag = setTimeout(()=>{
|
||||
findBySelectSup({key: value}).then((res) => {
|
||||
findBySelectSup({key: value, limit:1}).then((res) => {
|
||||
if(res) {
|
||||
that.supList = res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user