fix(expressTemplate): 修正运费模板计费方式类型及删除报错

- 将运费模板和详情模型中的计费方式 type 从 string 改为 boolean 类型
- 修改相关页面中计费方式显示及选择控件为布尔值 true/false 表示按件/按重量
- 统一删除操作使用后端返回的主键 id 替代废弃的 shopExpressTemplateId
- 修复删除运费模板时报错“参数格式错误: id 的值 'undefined' 无法转换为 Integer”
- ele-modal 关闭按钮定位修复,兼容最大化按钮时的偏移问题
- 小程序端 checkout 运费模板接入,支持动态计算显示运费费用
- 优化编辑表单中首件/续件数量或重量的动态标签和占位提示逻辑
This commit is contained in:
2026-07-07 15:03:06 +08:00
parent 08685d5ef1
commit 6118e2be01
9 changed files with 98 additions and 30 deletions

View File

@@ -8,8 +8,8 @@ export interface ShopExpressTemplate {
shopExpressTemplateId?: number;
/** 旧字段ID兼容 */
id?: number;
/** 计费方式: 0=按件, 1=按重量 */
type?: string;
/** 计费方式: true=按件, false=按重量 */
type?: boolean;
/** 模板名称 */
title?: string;
/** 首件价格 */

View File

@@ -10,8 +10,8 @@ export interface ShopExpressTemplateDetail {
id?: number;
/** 所属运费模板ID */
templateId?: number;
/** 计费方式: 0=按件, 1=按重量 */
type?: string;
/** 计费方式: true=按件, false=按重量 */
type?: boolean;
/** 省份ID */
provinceId?: number;
/** 城市ID */
@@ -46,7 +46,7 @@ export interface ShopExpressTemplateDetailParam extends PageParam {
/** 所属运费模板ID */
templateId?: number;
/** 计费方式 */
type?: string;
type?: boolean;
/** 状态 */
status?: number;
keywords?: string;