fix:优化预验收入库提前调用往来单位数据量大问题

dev_ksck
chenhc 6 days ago
parent 4a29722074
commit 77155ee977

@ -22,6 +22,7 @@
<el-col :span="8">
<el-form-item label="往来单位:">
<el-select v-model="filterQuery.fromCorp"
:remote-method="findMethod"
filterable
remote
reserve-keyword
@ -325,6 +326,7 @@ import {
orderPDFFromTemplateFile,
} from "@/api/itextpdf/orderPrint";
import {selectCorpList} from "@/api/basic/basicUnitMaintain";
import { getBasicUnitMaintains } from '@/api/basic/basicUnitMaintain'
const formJson = {
site_id: "",
@ -773,13 +775,34 @@ export default {
this.resultQuery.page = 1;
this.getResultDetailList();
},
findFromInvList(val) {
let cQuery = {};
selectCorpList(cQuery)
// findFromInvList(val) {
// let cQuery = {
// corpType: 4,
// };
// selectCorpList(cQuery)
// .then((response) => {
// this.fromInvOptions = response.data || [];
// })
// .catch(() => {
// });
// },
//
findMethod(query) {
this.fromOptions = [];
let cQuery = {
key: query,
corpType: null,
page: 1,
limit: 20,
};
getBasicUnitMaintains(cQuery)
.then((response) => {
this.fromInvOptions = response.data || [];
this.loading = false;
this.fromInvOptions = response.data.list || [];
})
.catch(() => {
this.loading = false;
});
},
getResultDetailList() {
@ -827,7 +850,7 @@ export default {
},
created() {
this.getInvList();
this.findFromInvList();
// this.findFromInvList();
this.getBusType();
this.getList();
},

Loading…
Cancel
Save