fix: 小程序审批详情页成本核算单价显示与Web管理后台对齐
成本单价列改为优先使用 base_unit_price(定价规则基础单价),并追加 pricing_unit 计价单位后缀,与 Web 管理后台 OrdersPage.vue 显示逻辑保持一致。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
73f91509ee
commit
829e6fcbd7
@ -170,6 +170,8 @@ Page({
|
||||
computedTotalDemand: computeTotalDemand(ci),
|
||||
qty: ci.quantity || 0,
|
||||
unit: ci.unit || "",
|
||||
baseUnitPrice: fmt(ci.base_unit_price || ci.cost_price),
|
||||
pricingUnit: ci.pricing_unit || "",
|
||||
costPrice: fmt(ci.cost_price),
|
||||
costFormula: computeCostFormula(ci),
|
||||
costAmount: fmt(Number(ci.quantity || 0) * Number(ci.cost_price || 0)),
|
||||
|
||||
@ -95,7 +95,7 @@
|
||||
<text class="product-spec" wx:if="{{item.formulaDetail}}">计价过程: {{item.formulaDetail}}</text>
|
||||
</view>
|
||||
<view class="product-prices">
|
||||
<text class="product-price">单价: ¥{{item.costPrice}}</text>
|
||||
<text class="product-price">单价: ¥{{item.baseUnitPrice}}{{item.pricingUnit ? '/' + item.pricingUnit : ''}}</text>
|
||||
<text class="product-spec cost-formula" wx:if="{{item.costFormula}}">{{item.costFormula}}</text>
|
||||
<text class="product-cost">成本: ¥{{item.costAmount}}</text>
|
||||
</view>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user