From 8d4c058114a3887c459bd8fc50704db4ebbb970b Mon Sep 17 00:00:00 2001 From: Amjacks <1932302177@qq.com> Date: Wed, 2 Apr 2025 13:36:52 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=B4=A7=E4=BD=8D=E7=A7=BB=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/stockIn/NChargeStockIn/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/stockIn/NChargeStockIn/index.vue b/src/views/stockIn/NChargeStockIn/index.vue index 81f93dc..81b2f1b 100644 --- a/src/views/stockIn/NChargeStockIn/index.vue +++ b/src/views/stockIn/NChargeStockIn/index.vue @@ -335,9 +335,12 @@ function handleAdd() { state.boxDrawer = true; } async function handleQuery() { - if (state.queryForm.params.DateValue.length > 0) { + if (state.queryForm.params.DateValue && state.queryForm.params.DateValue.length > 0) { state.queryForm.params.FROMDATE = state.queryForm.params.DateValue[0] state.queryForm.params.TODATE = state.queryForm.params.DateValue[1] + } else { + state.queryForm.params.FROMDATE = '' + state.queryForm.params.TODATE = '' } await getQueryPageList(state.queryForm) .then((res: any) => {