给供应商和客户的查询增加分页限制的参数

This commit is contained in:
jishenghua
2025-09-27 23:36:33 +08:00
parent e64c16a4cb
commit 732c4b84b4
20 changed files with 61 additions and 61 deletions

View File

@@ -213,7 +213,7 @@
}, },
loadSupplier(organType, organId) { loadSupplier(organType, organId) {
if(organType === '供应商') { if(organType === '供应商') {
findBySelectSup({}).then((res)=>{ findBySelectSup({limit:1}).then((res)=>{
if(res) { if(res) {
this.supplierList = res this.supplierList = res
if(organId) { if(organId) {
@@ -223,7 +223,7 @@
} }
}) })
} else if(organType === '客户') { } else if(organType === '客户') {
findBySelectCus({}).then((res)=>{ findBySelectCus({limit:1}).then((res)=>{
if(res) { if(res) {
this.supplierList = res this.supplierList = res
if(organId) { if(organId) {
@@ -241,7 +241,7 @@
} }
if(this.organLabel === '供应商') { if(this.organLabel === '供应商') {
this.setTimeFlag = setTimeout(() => { this.setTimeFlag = setTimeout(() => {
findBySelectSup({ key: value }).then((res) => { findBySelectSup({ key: value, limit:1 }).then((res) => {
if (res) { if (res) {
that.supplierList = res; that.supplierList = res;
} }
@@ -249,7 +249,7 @@
}, 500) }, 500)
} else if(this.organLabel === '客户') { } else if(this.organLabel === '客户') {
this.setTimeFlag = setTimeout(() => { this.setTimeFlag = setTimeout(() => {
findBySelectCus({ key: value }).then((res) => { findBySelectCus({ key: value, limit:1 }).then((res) => {
if (res) { if (res) {
that.supplierList = res; that.supplierList = res;
} }

View File

@@ -616,7 +616,7 @@ export const BillListMixin = {
}, },
initSupplier() { initSupplier() {
let that = this; let that = this;
findBySelectSup({}).then((res)=>{ findBySelectSup({limit:1}).then((res)=>{
if(res) { if(res) {
that.supList = res; that.supList = res;
} }
@@ -624,7 +624,7 @@ export const BillListMixin = {
}, },
initCustomer() { initCustomer() {
let that = this; let that = this;
findBySelectCus({}).then((res)=>{ findBySelectCus({limit:1}).then((res)=>{
if(res) { if(res) {
that.cusList = res; that.cusList = res;
} }
@@ -632,7 +632,7 @@ export const BillListMixin = {
}, },
initRetail() { initRetail() {
let that = this; let that = this;
findBySelectRetail({}).then((res)=>{ findBySelectRetail({limit:1}).then((res)=>{
if(res) { if(res) {
that.retailList = res; that.retailList = res;
} }
@@ -725,7 +725,7 @@ export const BillListMixin = {
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectSup({key: value}).then((res) => { findBySelectSup({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.supList = res; that.supList = res;
} }
@@ -738,7 +738,7 @@ export const BillListMixin = {
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectCus({key: value}).then((res) => { findBySelectCus({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.cusList = res; that.cusList = res;
} }
@@ -751,7 +751,7 @@ export const BillListMixin = {
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectRetail({key: value}).then((res) => { findBySelectRetail({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.retailList = res; that.retailList = res;
} }

View File

@@ -204,7 +204,7 @@ export const BillModalMixin = {
}, },
initSupplier(isChecked) { initSupplier(isChecked) {
let that = this; let that = this;
findBySelectSup({organId: this.model.organId}).then((res)=>{ findBySelectSup({organId: this.model.organId, limit:1}).then((res)=>{
if(res) { if(res) {
that.supList = res that.supList = res
if(isChecked && res.length>0) { if(isChecked && res.length>0) {
@@ -215,7 +215,7 @@ export const BillModalMixin = {
}, },
initCustomer(isChecked) { initCustomer(isChecked) {
let that = this; let that = this;
findBySelectCus({organId: this.model.organId}).then((res)=>{ findBySelectCus({organId: this.model.organId, limit:1}).then((res)=>{
if(res) { if(res) {
that.cusList = res that.cusList = res
if(isChecked && res.length>0) { if(isChecked && res.length>0) {
@@ -226,7 +226,7 @@ export const BillModalMixin = {
}, },
initRetail(isChecked) { initRetail(isChecked) {
let that = this; let that = this;
findBySelectRetail({organId: this.model.organId}).then((res)=>{ findBySelectRetail({organId: this.model.organId, limit:1}).then((res)=>{
if(res) { if(res) {
that.retailList = res that.retailList = res
if(isChecked && res.length>0) { if(isChecked && res.length>0) {
@@ -290,7 +290,7 @@ export const BillModalMixin = {
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectSup({key: value}).then((res) => { findBySelectSup({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.supList = res; that.supList = res;
} }
@@ -303,7 +303,7 @@ export const BillModalMixin = {
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectCus({key: value}).then((res) => { findBySelectCus({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.cusList = res; that.cusList = res;
} }
@@ -316,7 +316,7 @@ export const BillModalMixin = {
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectRetail({key: value}).then((res) => { findBySelectRetail({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.retailList = res; that.retailList = res;
} }

View File

@@ -451,7 +451,7 @@
'accountId': accountId, 'accountId': accountId,
'remark': remark 'remark': remark
}) })
findBySelectSup({organId: organId}).then((res)=> { findBySelectSup({organId: organId, limit:1}).then((res)=> {
this.supList = res && Array.isArray(res) ? res : []; this.supList = res && Array.isArray(res) ? res : [];
}) })
getCurrentSystemConfig().then((res) => { getCurrentSystemConfig().then((res) => {

View File

@@ -510,7 +510,7 @@
'accountId': accountId, 'accountId': accountId,
'remark': remark 'remark': remark
}) })
findBySelectSup({organId: organId}).then((res)=> { findBySelectSup({organId: organId, limit:1}).then((res)=> {
this.supList = res && Array.isArray(res) ? res : []; this.supList = res && Array.isArray(res) ? res : [];
}) })
getCurrentSystemConfig().then((res) => { getCurrentSystemConfig().then((res) => {

View File

@@ -461,7 +461,7 @@
'accountId': accountId, 'accountId': accountId,
'remark': remark 'remark': remark
}) })
findBySelectCus({organId: organId}).then((res)=> { findBySelectCus({organId: organId, limit:1}).then((res)=> {
this.cusList = res && Array.isArray(res) ? res : []; this.cusList = res && Array.isArray(res) ? res : [];
}) })
getCurrentSystemConfig().then((res) => { getCurrentSystemConfig().then((res) => {

View File

@@ -527,7 +527,7 @@
'accountId': accountId, 'accountId': accountId,
'remark': remark 'remark': remark
}) })
findBySelectCus({organId: organId}).then((res)=> { findBySelectCus({organId: organId, limit:1}).then((res)=> {
this.cusList = res && Array.isArray(res) ? res : []; this.cusList = res && Array.isArray(res) ? res : [];
}) })
getCurrentSystemConfig().then((res) => { getCurrentSystemConfig().then((res) => {

View File

@@ -151,13 +151,13 @@
initSupplier() { initSupplier() {
let that = this let that = this
if(this.organType === '客户') { if(this.organType === '客户') {
findBySelectCus({}).then((res) => { findBySelectCus({limit:1}).then((res) => {
if (res) { if (res) {
that.supList = res that.supList = res
} }
}) })
} else if(this.organType === '供应商') { } else if(this.organType === '供应商') {
findBySelectSup({}).then((res) => { findBySelectSup({limit:1}).then((res) => {
if (res) { if (res) {
that.supList = res; that.supList = res;
} }
@@ -171,7 +171,7 @@
} }
if(this.organType === '客户') { if(this.organType === '客户') {
this.setTimeFlag = setTimeout(() => { this.setTimeFlag = setTimeout(() => {
findBySelectCus({ key: value }).then((res) => { findBySelectCus({ key: value, limit:1 }).then((res) => {
if (res) { if (res) {
that.supList = res that.supList = res
} }
@@ -179,7 +179,7 @@
}, 500) }, 500)
} else if(this.organType === '供应商') { } else if(this.organType === '供应商') {
this.setTimeFlag = setTimeout(() => { this.setTimeFlag = setTimeout(() => {
findBySelectSup({ key: value }).then((res) => { findBySelectSup({ key: value, limit:1 }).then((res) => {
if (res) { if (res) {
that.supList = res; that.supList = res;
} }

View File

@@ -126,7 +126,7 @@ export const FinancialListMixin = {
}, },
initSupplier() { initSupplier() {
let that = this; let that = this;
findBySelectSup({}).then((res)=>{ findBySelectSup({limit:1}).then((res)=>{
if(res) { if(res) {
that.supList = res; that.supList = res;
} }
@@ -134,7 +134,7 @@ export const FinancialListMixin = {
}, },
initCustomer() { initCustomer() {
let that = this; let that = this;
findBySelectCus({}).then((res)=>{ findBySelectCus({limit:1}).then((res)=>{
if(res) { if(res) {
that.cusList = res; that.cusList = res;
} }
@@ -142,7 +142,7 @@ export const FinancialListMixin = {
}, },
initOrgan() { initOrgan() {
let that = this; let that = this;
findBySelectOrgan({}).then((res)=>{ findBySelectOrgan({limit:1}).then((res)=>{
if(res) { if(res) {
that.organList = res; that.organList = res;
} }
@@ -150,7 +150,7 @@ export const FinancialListMixin = {
}, },
initRetail() { initRetail() {
let that = this; let that = this;
findBySelectRetail({}).then((res)=>{ findBySelectRetail({limit:1}).then((res)=>{
if(res) { if(res) {
that.retailList = res; that.retailList = res;
} }
@@ -198,7 +198,7 @@ export const FinancialListMixin = {
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectSup({key: value}).then((res) => { findBySelectSup({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.supList = res; that.supList = res;
} }
@@ -211,7 +211,7 @@ export const FinancialListMixin = {
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectCus({key: value}).then((res) => { findBySelectCus({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.cusList = res; that.cusList = res;
} }
@@ -224,7 +224,7 @@ export const FinancialListMixin = {
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectOrgan({key: value}).then((res) => { findBySelectOrgan({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.organList = res; that.organList = res;
} }
@@ -237,7 +237,7 @@ export const FinancialListMixin = {
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectRetail({key: value}).then((res) => { findBySelectRetail({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.retailList = res; that.retailList = res;
} }

View File

@@ -101,7 +101,7 @@ export const FinancialModalMixin = {
}, },
initSupplier() { initSupplier() {
let that = this; let that = this;
findBySelectSup({organId: this.model.organId}).then((res)=>{ findBySelectSup({organId: this.model.organId, limit:1}).then((res)=>{
if(res) { if(res) {
that.supList = res; that.supList = res;
} }
@@ -109,7 +109,7 @@ export const FinancialModalMixin = {
}, },
initCustomer() { initCustomer() {
let that = this; let that = this;
findBySelectCus({organId: this.model.organId}).then((res)=>{ findBySelectCus({organId: this.model.organId, limit:1}).then((res)=>{
if(res) { if(res) {
that.cusList = res; that.cusList = res;
} }
@@ -117,7 +117,7 @@ export const FinancialModalMixin = {
}, },
initOrgan() { initOrgan() {
let that = this; let that = this;
findBySelectOrgan({organId: this.model.organId}).then((res)=>{ findBySelectOrgan({organId: this.model.organId, limit:1}).then((res)=>{
if(res) { if(res) {
that.organList = res; that.organList = res;
} }
@@ -125,7 +125,7 @@ export const FinancialModalMixin = {
}, },
initRetail() { initRetail() {
let that = this; let that = this;
findBySelectRetail({organId: this.model.organId}).then((res)=>{ findBySelectRetail({organId: this.model.organId, limit:1}).then((res)=>{
if(res) { if(res) {
that.retailList = res; that.retailList = res;
} }
@@ -194,7 +194,7 @@ export const FinancialModalMixin = {
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectSup({key: value}).then((res) => { findBySelectSup({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.supList = res; that.supList = res;
} }
@@ -207,7 +207,7 @@ export const FinancialModalMixin = {
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectCus({key: value}).then((res) => { findBySelectCus({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.cusList = res; that.cusList = res;
} }
@@ -220,7 +220,7 @@ export const FinancialModalMixin = {
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectOrgan({key: value}).then((res) => { findBySelectOrgan({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.organList = res; that.organList = res;
} }
@@ -233,7 +233,7 @@ export const FinancialModalMixin = {
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectRetail({key: value}).then((res) => { findBySelectRetail({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.retailList = res; that.retailList = res;
} }
@@ -291,11 +291,11 @@ export const FinancialModalMixin = {
if(organId) { if(organId) {
this.form.setFieldsValue({'organId': organId}) this.form.setFieldsValue({'organId': organId})
if(organType === '供应商') { if(organType === '供应商') {
findBySelectSup({organId: organId}).then((res)=> { findBySelectSup({organId: organId, limit:1}).then((res)=> {
this.supList = res && Array.isArray(res) ? res : []; this.supList = res && Array.isArray(res) ? res : [];
}) })
} else if(organType === '客户') { } else if(organType === '客户') {
findBySelectCus({organId: organId}).then((res)=> { findBySelectCus({organId: organId, limit:1}).then((res)=> {
this.cusList = res && Array.isArray(res) ? res : []; this.cusList = res && Array.isArray(res) ? res : [];
}) })
} }

View File

@@ -303,7 +303,7 @@
}, },
initSupplier() { initSupplier() {
let that = this; let that = this;
findBySelectSup({}).then((res)=>{ findBySelectSup({limit:1}).then((res)=>{
if(res) { if(res) {
that.supList = res; that.supList = res;
} }

View File

@@ -283,7 +283,7 @@
}, },
initSupplier() { initSupplier() {
let that = this; let that = this;
findBySelectSup({}).then((res)=>{ findBySelectSup({limit:1}).then((res)=>{
if(res) { if(res) {
that.supList = res that.supList = res
} }
@@ -295,7 +295,7 @@
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectSup({key: value}).then((res) => { findBySelectSup({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.supList = res; that.supList = res;
} }

View File

@@ -231,7 +231,7 @@
}, },
initCustomer() { initCustomer() {
let that = this; let that = this;
findBySelectCus({}).then((res)=>{ findBySelectCus({limit:1}).then((res)=>{
if(res) { if(res) {
that.cusList = res; that.cusList = res;
} }
@@ -243,7 +243,7 @@
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectCus({key: value}).then((res) => { findBySelectCus({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.cusList = res; that.cusList = res;
} }

View File

@@ -320,7 +320,7 @@
}, },
initOrgan() { initOrgan() {
let that = this; let that = this;
findBySelectOrgan({}).then((res)=>{ findBySelectOrgan({limit:1}).then((res)=>{
if(res) { if(res) {
that.organList = res; that.organList = res;
} }
@@ -332,7 +332,7 @@
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectOrgan({key: value}).then((res) => { findBySelectOrgan({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.organList = res; that.organList = res;
} }

View File

@@ -276,7 +276,7 @@
}, },
initOrgan() { initOrgan() {
let that = this; let that = this;
findBySelectOrgan({}).then((res)=>{ findBySelectOrgan({limit:1}).then((res)=>{
if(res) { if(res) {
that.organList = res; that.organList = res;
} }
@@ -288,7 +288,7 @@
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectOrgan({key: value}).then((res) => { findBySelectOrgan({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.organList = res; that.organList = res;
} }

View File

@@ -320,7 +320,7 @@
}, },
initOrgan() { initOrgan() {
let that = this; let that = this;
findBySelectOrgan({}).then((res)=>{ findBySelectOrgan({limit:1}).then((res)=>{
if(res) { if(res) {
that.organList = res; that.organList = res;
} }
@@ -332,7 +332,7 @@
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectOrgan({key: value}).then((res) => { findBySelectOrgan({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.organList = res; that.organList = res;
} }

View File

@@ -276,7 +276,7 @@
}, },
initOrgan() { initOrgan() {
let that = this; let that = this;
findBySelectOrgan({}).then((res)=>{ findBySelectOrgan({limit:1}).then((res)=>{
if(res) { if(res) {
that.organList = res; that.organList = res;
} }
@@ -288,7 +288,7 @@
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectOrgan({key: value}).then((res) => { findBySelectOrgan({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.organList = res; that.organList = res;
} }

View File

@@ -285,7 +285,7 @@
}, },
initRetail() { initRetail() {
let that = this; let that = this;
findBySelectRetail({}).then((res)=>{ findBySelectRetail({limit:1}).then((res)=>{
if(res) { if(res) {
that.retailList = res that.retailList = res
} }
@@ -297,7 +297,7 @@
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectRetail({key: value}).then((res) => { findBySelectRetail({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.supList = res; that.supList = res;
} }

View File

@@ -285,7 +285,7 @@
}, },
initCustomer() { initCustomer() {
let that = this; let that = this;
findBySelectCus({}).then((res)=>{ findBySelectCus({limit:1}).then((res)=>{
if(res) { if(res) {
that.cusList = res that.cusList = res
} }
@@ -297,7 +297,7 @@
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectCus({key: value}).then((res) => { findBySelectCus({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.supList = res; that.supList = res;
} }

View File

@@ -231,7 +231,7 @@
}, },
initSupplier() { initSupplier() {
let that = this; let that = this;
findBySelectSup({}).then((res)=>{ findBySelectSup({limit:1}).then((res)=>{
if(res) { if(res) {
that.supList = res; that.supList = res;
} }
@@ -243,7 +243,7 @@
clearTimeout(this.setTimeFlag); clearTimeout(this.setTimeFlag);
} }
this.setTimeFlag = setTimeout(()=>{ this.setTimeFlag = setTimeout(()=>{
findBySelectSup({key: value}).then((res) => { findBySelectSup({key: value, limit:1}).then((res) => {
if(res) { if(res) {
that.supList = res; that.supList = res;
} }