review:【erp 系统】相关代码

This commit is contained in:
YunaiV
2025-09-02 23:16:28 +08:00
parent 744eef46f4
commit 41583c5e41
38 changed files with 70 additions and 85 deletions

View File

@@ -71,10 +71,7 @@ const handleUpdateTotalPrice = (totalPrice: number) => {
}
};
// TODO @nehc这里的注释使用 /** */ 和别的模块一致哈;
/**
* 创建或更新采购订单
*/
/** 创建或更新采购订单 */
const [Modal, modalApi] = useVbenModal({
async onConfirm() {
const { valid } = await formApi.validate();

View File

@@ -72,8 +72,7 @@ watch(
await nextTick();
tableData.value = [...items];
await nextTick();
// TODO @nehc这里是不是直接 await 下?
gridApi.grid.reloadData(tableData.value);
await gridApi.grid.reloadData(tableData.value);
},
{
immediate: true,
@@ -249,6 +248,7 @@ const init = (
return newItem;
})
: [];
// TODO @XuZhiqiang: await 风格;
nextTick(() => {
gridApi.grid.reloadData(tableData.value);
});