refactor(views): 更新searchFormParams的类型为CabinetCellQuery

为了确保searchFormParams的类型与API定义一致,将其类型显式声明为CabinetCellQuery,提高代码的可维护性和类型安全性。
This commit is contained in:
dzq 2025-04-27 10:49:15 +08:00
parent 8c2265ccf1
commit 5643cbc145
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import { ref, onMounted } from "vue";
import { PureTableBar } from "@/components/RePureTableBar";
import { onBeforeRouteUpdate, useRoute } from "vue-router";
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
import { getCabinetCellList, deleteCabinetCell, CabinetCellDTO, changeGoodsCellsStock, clearGoodsCells } from "@/api/cabinet/cabinet-cell";
import { getCabinetCellList, deleteCabinetCell, CabinetCellDTO, changeGoodsCellsStock, clearGoodsCells, CabinetCellQuery } from "@/api/cabinet/cabinet-cell";
import { allCabinets, SmartCabinetDTO } from "@/api/cabinet/smart-cabinet";
import EditPen from "@iconify-icons/ep/edit-pen";
import Delete from "@iconify-icons/ep/delete";
@ -24,7 +24,7 @@ const router = useRouter();
const formRef = ref();
const tableRef = ref();
const searchFormParams = ref({
const searchFormParams = ref<CabinetCellQuery>({
cabinetId: null,
cellNo: null,
cellType: null