diff --git a/src/views/inout/DialogCreateOrderSelect.vue b/src/views/inout/DialogCreateOrderSelect.vue index 1b321fc9..40e8c03d 100644 --- a/src/views/inout/DialogCreateOrderSelect.vue +++ b/src/views/inout/DialogCreateOrderSelect.vue @@ -22,6 +22,7 @@ { + // 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(); },