From b2476872c014565964630a5ef407bea87afeb1e8 Mon Sep 17 00:00:00 2001 From: Amjacks <1932302177@qq.com> Date: Wed, 2 Apr 2025 09:41:35 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E4=BB=93=E5=BA=93=E4=BF=A1=E6=81=AF-?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basics/flatWarehouse/wareHouse/index.vue | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/src/views/basics/flatWarehouse/wareHouse/index.vue b/src/views/basics/flatWarehouse/wareHouse/index.vue index 87c1ce1..bc691b2 100644 --- a/src/views/basics/flatWarehouse/wareHouse/index.vue +++ b/src/views/basics/flatWarehouse/wareHouse/index.vue @@ -270,21 +270,14 @@ const handleQuery = () => { state.disableds = true; state.loadings = true; state.wareHouseList = []; + materialTableConfig.value.loading = true getQueryPageList(state.queryParams) .then((res: any) => { - console.log(res.data); - if(res.data.list.length == 0){ - ElMessageBox.alert('查无此数据', '提醒框', { - confirmButtonText: 'OK', - }) - state.disableds = false; - state.loadings = false; - } else { - state.wareHouseList = res.data.list; - state.total = res.data.total; - state.disableds = false; - state.loadings = false; - } + state.wareHouseList = res.data.list; + state.total = res.data.total; + state.disableds = false; + state.loadings = false; + materialTableConfig.value.loading = false }) .catch(() => { }); } @@ -292,9 +285,11 @@ const handleQuery = () => { const resetQuery = () => { queryFormRef.value.resetFields(); state.queryParams.params.ERPLOCATIONNAME = ''; + state.queryParams.params.DESCRIPTION = ''; state.queryParams.params.USE_LOCATION = ''; state.queryParams.params.CONST_TEMP = ''; state.queryParams.params.USE_MRP = ''; + state.queryParams.params.ZDBHFLAG = ''; } const updateList = (col: any) => { materialTableConfig.value.column = col