From 0eb500fd5e82146ec8fa04708f5c98526b7409d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Sat, 24 Jan 2026 19:51:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E7=A9=BA=E5=80=BC=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/yuthon_report/receivable_report.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/yuthon_report/static/src/components/yuthon_report/receivable_report.js b/yuthon_report/static/src/components/yuthon_report/receivable_report.js index ce6ebecbf..54d4651f8 100644 --- a/yuthon_report/static/src/components/yuthon_report/receivable_report.js +++ b/yuthon_report/static/src/components/yuthon_report/receivable_report.js @@ -158,6 +158,14 @@ class ReceivableReport extends Component { async onUpdateCompany(v) { console.log(v) + // 检查v是否为空或v[0]不存在 + if (!v || !v[0]) { + this.state.selectCompany = {}; + this.state.selectPartner = {}; + this.state.domainUsers = []; + await this.onSearch(); + return; + } // 执行一次 查询 // 通过 read 重新查询一次, 更多只返回了 id let values = await this.serviceOrm.call(