reactor:优化批量删除的代码,从 as number 变成 !

This commit is contained in:
YunaiV
2025-09-02 09:28:19 +08:00
parent 67da079606
commit c25ea731fd
73 changed files with 102 additions and 97 deletions

View File

@@ -34,6 +34,7 @@ function onRefresh() {
gridApi.query();
}
// TODO @Xuzhiqiang批量删除待实现
const checkedIds = ref<number[]>([]);
/** 详情 */

View File

@@ -35,16 +35,6 @@ function onRefresh() {
gridApi.query();
}
// TODO @nehc handleRowCheckboxChange 放的位置;
const checkedIds = ref<number[]>([]);
function handleRowCheckboxChange({
records,
}: {
records: ErpPurchaseOrderApi.PurchaseOrder[];
}) {
checkedIds.value = records.map((item) => item.id);
}
/** 详情 */
function handleDetail(row: ErpPurchaseOrderApi.PurchaseOrder) {
formModalApi.setData({ type: 'detail', id: row.id }).open();
@@ -104,6 +94,16 @@ async function handleBatchDelete() {
}
}
// TODO @Xuzhiqiang批量删除待实现
const checkedIds = ref<number[]>([]);
function handleRowCheckboxChange({
records,
}: {
records: ErpPurchaseOrderApi.PurchaseOrder[];
}) {
checkedIds.value = records.map((item) => item.id!);
}
/** 审批/反审批操作 */
function handleUpdateStatus(
row: ErpPurchaseOrderApi.PurchaseOrder,

View File

@@ -34,6 +34,7 @@ function onRefresh() {
gridApi.query();
}
// TODO @Xuzhiqiang批量删除待实现
const checkedIds = ref<number[]>([]);
/** 详情 */

View File

@@ -34,6 +34,7 @@ function onRefresh() {
gridApi.query();
}
// TODO @Xuzhiqiang批量删除待实现
const checkedIds = ref<number[]>([]);
function handleRowCheckboxChange({
records,

View File

@@ -34,6 +34,7 @@ function onRefresh() {
gridApi.query();
}
// TODO @Xuzhiqiang批量删除待实现
const checkedIds = ref<number[]>([]);
function handleRowCheckboxChange({
records,