fix(energy): 无车牌或未关联羚牛车辆的订单不再计入待核对

待核对原先只看「未核对 + 期初之后」,会把没有核对对象的流水也算进
待核对笔数与金额,虚高 KPI 并污染下钻列表。

在 unverified 过滤条件里补两条限定:
- NULLIF(TRIM(license_plate), '') IS NOT NULL:无车牌无核对对象
- COALESCE(vehicle_id, 0) <> 0:vehicle_id 为 NULL/0 即未关联羚牛车辆库

条件加在 buildFilterClauses 的 unverified 分支,汇总 KPI 与下钻共用,
因此两处口径自动一致;all / verified 不受影响。下钻弹窗提示同步说明口径。
This commit is contained in:
shishengliang
2026-09-11 11:26:55 +08:00
parent c4e2c03348
commit 7c8e886663
3 changed files with 19 additions and 3 deletions
@@ -1237,7 +1237,7 @@ export function PrototypeDrillModal({
</div>
) : null}
<DrillSummaryCards kind={kind} label={cleanLabel} data={live.data} />
{cleanLabel === "待核对订单" ? <div className="ehb-modal-hint-text">线{HYDROGEN_VERIFY_START_DATE}线</div> : null}
{cleanLabel === "待核对订单" ? <div className="ehb-modal-hint-text">线{HYDROGEN_VERIFY_START_DATE}线线</div> : null}
{cleanLabel === "加氢利润" && customerBearingScope ? (
<div className="ehb-modal-hint-text" style={{ marginBottom: 10 }}>
¥