feat 仓库信息-条件无效

This commit is contained in:
Amjacks 2025-04-02 09:41:35 +08:00
parent 26850276d2
commit b2476872c0

View File

@ -270,21 +270,14 @@ const handleQuery = () => {
state.disableds = true; state.disableds = true;
state.loadings = true; state.loadings = true;
state.wareHouseList = []; state.wareHouseList = [];
materialTableConfig.value.loading = true
getQueryPageList(state.queryParams) getQueryPageList(state.queryParams)
.then((res: any) => { .then((res: any) => {
console.log(res.data); state.wareHouseList = res.data.list;
if(res.data.list.length == 0){ state.total = res.data.total;
ElMessageBox.alert('查无此数据', '提醒框', { state.disableds = false;
confirmButtonText: 'OK', state.loadings = false;
}) materialTableConfig.value.loading = false
state.disableds = false;
state.loadings = false;
} else {
state.wareHouseList = res.data.list;
state.total = res.data.total;
state.disableds = false;
state.loadings = false;
}
}) })
.catch(() => { }); .catch(() => { });
} }
@ -292,9 +285,11 @@ const handleQuery = () => {
const resetQuery = () => { const resetQuery = () => {
queryFormRef.value.resetFields(); queryFormRef.value.resetFields();
state.queryParams.params.ERPLOCATIONNAME = ''; state.queryParams.params.ERPLOCATIONNAME = '';
state.queryParams.params.DESCRIPTION = '';
state.queryParams.params.USE_LOCATION = ''; state.queryParams.params.USE_LOCATION = '';
state.queryParams.params.CONST_TEMP = ''; state.queryParams.params.CONST_TEMP = '';
state.queryParams.params.USE_MRP = ''; state.queryParams.params.USE_MRP = '';
state.queryParams.params.ZDBHFLAG = '';
} }
const updateList = (col: any) => { const updateList = (col: any) => {
materialTableConfig.value.column = col materialTableConfig.value.column = col