feat: 重构商品定价系统,新增步梯搬运费配置与支付台账统计

- 新增商品服务定价配置表,支持多规格服务价格体系
- 新增步梯搬运费配置功能,可按楼层阶梯收费
- 重构支付订单台账,新增核心数据统计卡片
- 优化下单流程,支持定价配置校验与增项计算
- 整合财务配置,移除独立充值配置菜单
这个提交包含在:
2026-11-18 08:52:12 +08:00
父节点 0370cb9bd6
当前提交 19651c0899
共有 38 个文件被更改,包括 6435 次插入 和 2440 次删除

查看文件

@@ -93,29 +93,7 @@
</div>
</div>
</div>
<div class="col-xs-12 col-sm-6">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-4">步梯搬运楼层费:</label>
<div class="col-xs-12 col-sm-8">
<div class="row">
<div class="col-xs-6">
<div class="input-group">
<span class="input-group-addon">¥</span>
<input id="c-floor_fee" data-rule="required" class="form-control" step="0.01" name="row[floor_fee]" type="number" value="10.00">
<span class="input-group-addon">/层</span>
</div>
</div>
<div class="col-xs-6">
<div class="input-group">
<span class="input-group-addon">免</span>
<input id="c-free_floor" data-rule="required" class="form-control" name="row[free_floor]" type="number" value="2">
<span class="input-group-addon">层</span>
</div>
</div>
</div>
</div>
</div>
</div>
{include file="service/floor_fee" /}
</div>
<div class="form-group">
@@ -148,8 +126,8 @@
<label class="control-label col-xs-12 col-sm-4">上架状态:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio">
<label><input name="row[status]" type="radio" value="normal" checked /> 上架</label>
<label><input name="row[status]" type="radio" value="hidden" /> 下架</label>
<span class="text-muted">商品新增后先以下架状态保存</span>
</div>
</div>
</div>
@@ -181,23 +159,9 @@
<tbody id="specs-simple-tbody">
</tbody>
</table>
<p class="help-block" style="margin:10px 0 0;font-size:12px;color:#64748b;"><i class="fa fa-info-circle"></i> 添加商品后,可在列表点击【主服务定价】与【增值服务】按钮单独弹窗配置价格体系。</p>
<p class="help-block" style="margin:10px 0 0;font-size:12px;color:#64748b;"><i class="fa fa-info-circle"></i> 添加商品后,可在列表点击「服务与价格配置」设置商品服务和价格,再上架商品。</p>
</div>
<!-- 默认初始工项 -->
<?php
$defaultTypes = [
['code' => 'install', 'name' => '安装', 'price' => 80, 'is_default' => 1, 'support_fixed' => 1],
['code' => 'repair', 'name' => '维修', 'price' => 65, 'is_default' => 0, 'support_fixed' => 1],
['code' => 'remove', 'name' => '拆旧', 'price' => 50, 'is_default' => 0, 'support_fixed' => 1]
];
$defaultAddons = [
['id' => 1, 'code' => 'remove', 'name' => '拆旧', 'unit' => '台', 'price' => 30]
];
?>
<input type="hidden" name="row[service_types_raw]" value="{:htmlspecialchars(json_encode($defaultTypes, JSON_UNESCAPED_UNICODE))}">
<input type="hidden" name="row[addons_raw]" value="{:htmlspecialchars(json_encode($defaultAddons, JSON_UNESCAPED_UNICODE))}">
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">