重构家庭资产负债详情展示

This commit is contained in:
wkc
2026-03-25 19:28:54 +08:00
parent 17a6c389d1
commit 60f935da27
20 changed files with 691 additions and 565 deletions

View File

@@ -11,8 +11,6 @@ const source = fs.readFileSync(componentPath, "utf8");
[
"formatDetailDateTime(value)",
'return parseTime(value, hasTime ? "{y}-{m}-{d} {h}:{i}:{s}" : "{y}-{m}-{d}") || "-";',
"{{ formatDetailDateTime(scope.row.valuationDate) }}",
"{{ formatDetailDateTime(scope.row.queryDate) }}",
].forEach((token) => {
assert(source.includes(token), `专项核查详情日期展示缺少关键实现: ${token}`);
});
@@ -21,5 +19,6 @@ assert(
source.includes("const hasTime = !formatted.endsWith(\" 00:00:00\");"),
"专项核查详情应隐藏无意义的零点时间"
);
assert(!source.includes("el-table"), "专项核查详情去表格化后不应继续依赖表格日期列");
console.log("special-check-detail-date-display test passed");