fix: 补齐店铺月度环比比较月份 (#1046)
This commit is contained in:
parent
0b3e05af8f
commit
190f9b0a72
@ -487,6 +487,10 @@ export default {
|
||||
available_platform_count: 0,
|
||||
complete: false,
|
||||
},
|
||||
comparison: {
|
||||
current: '2026-10',
|
||||
previous: '2026-09',
|
||||
},
|
||||
total: null,
|
||||
platforms: [],
|
||||
},
|
||||
@ -848,6 +852,11 @@ export default {
|
||||
complete: false,
|
||||
...(body.summary || {}),
|
||||
},
|
||||
comparison: {
|
||||
current: '2026-10',
|
||||
previous: '2026-09',
|
||||
...(body.comparison || {}),
|
||||
},
|
||||
total: body.total || null,
|
||||
platforms: Array.isArray(body.platforms) ? body.platforms : [],
|
||||
};
|
||||
|
||||
@ -90,6 +90,7 @@ class StoreReceivingBalanceOverviewTest extends TestCase
|
||||
$this->assertStringContainsString('fetchMonthlyClosingStores', $source);
|
||||
$this->assertStringContainsString('monthlyStoreRows', $source);
|
||||
$this->assertStringContainsString('monthly-closing-store-table', $source);
|
||||
$this->assertStringContainsString('...(body.comparison || {})', $source);
|
||||
$this->assertStringContainsString('店铺期末余额 = 期初余额 + 收入 - 支出', $source);
|
||||
$this->assertStringContainsString('缺少期初时显示“—”', $source);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user