定价状态统一:原本输出的“预估价”改为“未定价”(输入仍按预估价判断分支)

This commit is contained in:
chenxi 2026-10-04 14:02:36 +08:00
parent 2b06595331
commit 790df169b5

View File

@ -215,10 +215,11 @@ class ComputeProductMonthlyWeightedAverage extends Command
$status = $previousStatus !== '' ? $previousStatus : '已定价';
} elseif ($changePrice !== null) {
$adjusted = $changePrice;
$status = $newPricePending ? '预估价' : '已定价';
$status = $newPricePending ? '未定价' : '已定价';
} else {
$adjusted = $openingUnitPrice;
$status = '预估价';
// 未匹配到工作平台价格 → 用原始价格,状态统一记为「未定价」(原「预估价」)。
$status = '未定价';
}
} elseif ($changePrice !== null) {
$adjusted = $changePrice;