diff --git a/src/api/index/index.ts b/src/api/index/index.ts index 6054b1e9..953e4b9a 100644 --- a/src/api/index/index.ts +++ b/src/api/index/index.ts @@ -308,8 +308,65 @@ export function getShopList(data?: { } as any) } -/** 获取指定店铺可用快递列表 */ -export function getShopExpressList(data?: { shop_id?: string | number; shopId?: string | number }) { +/** 快递产品类型(非 PDD 平台由服务端按 sys_express_code 匹配 wms_express_product_type 补充;PDD 平台不返回) */ +export type ShopExpressProductType = { + code?: string + name?: string + [key: string]: unknown +} + +/** 店铺可用快递列表项(各平台字段有差异:前端按需取值 + 索引签名兜底) */ +export type ShopExpressListItem = { + /** 电子面单快递编码(淘宝系 wp_code;其次 express_code / code) */ + wp_code?: string + wp_name?: string + express_code?: string + express_name?: string + code?: string + name?: string + label?: string + /** 系统快递编码(与本系统 wms_express.express_code 对齐) */ + sys_express_code?: string + /** 快递公司编号(部分平台用 providerid / provider_id / providerId) */ + providerid?: string | number + provider_id?: string | number + providerId?: string | number + /** 产品类型列表:**非 PDD 平台**服务端会补充;PDD 平台不返回该字段 */ + product_types?: ShopExpressProductType[] + /** 签约网点/账号(含面单余量、地址、增值服务;字段随平台差异) */ + accounts?: Record[] + [key: string]: unknown +} + +/** + * index.getShopExpressList 响应 + * + * ⚠️ 该接口响应形如 `{ code, message, data }`(**无 flag / timestamp**),业务数据在 `data` 内。 + */ +export type ShopExpressListResponse = { + /** 业务状态码,成功 200 */ + code?: number + /** 业务提示信息,成功 ok */ + message?: string + data?: { + /** 当前店铺ID */ + shop_id?: number + /** 店铺所属平台编码(服务端已转大写) */ + platform_code?: string + /** 服务端按平台收敛后的可用快递列表;未接入的平台返回空数组 */ + list?: ShopExpressListItem[] + } +} + +/** + * 获取指定店铺可用快递列表 + * + * 入参 `shop_id` / `shopId` 二选一至少传一个(服务端按 shop_id、shopId 顺序读首个非空值)。 + */ +export function getShopExpressList(data?: { + shop_id?: string | number + shopId?: string | number +}): Promise { return request({ url: '/system', method: 'post', diff --git a/src/api/stock.check/stock.check.ts b/src/api/stock.check/stock.check.ts index 28e26513..2b840feb 100644 --- a/src/api/stock.check/stock.check.ts +++ b/src/api/stock.check/stock.check.ts @@ -79,12 +79,16 @@ export type StockCheckDetailStatus = 'none_checked' | 'partial_checked' | 'all_c * 盘点范围类型 * * 明细行形态由 type 决定: - * all / location → 明细为「库位行」(scope_type=location,一行=一个库位,行内按商品聚合 stocks[]) - * store / goods → 明细为「商品行」(scope_type=goods,一行=一个库存商品) + * location → 明细为「库位行」(scope_type=location,一行=一个库位,行内按商品聚合 stocks[]) + * store / goods → 明细为「商品行」(scope_type=goods,一行=一个库存商品) + * + * ⚠️ **`all` 已下线**(2026-10-27 文档,与 location 语义重复):create / addDetail 传 `all` 均报 400; + * 原「全盘」语义已并入 `location`——按库位盘点添加明细时未传库位/库位ID, + * 由后端自动拉取全仓库启用且有效的库位生成盘点范围。 + * 历史 type=all 的任务仅能查看,**不能再添加明细**。 */ export type StockCheckType = - | 'all' // 按库位盘点(缺省):添加明细未传库位时由后端自动拉取全仓库启用库位生成盘点范围 - | 'location' // 按库位盘点(指定库位) + | 'location' // 按库位盘点(**缺省**;未传库位时后端自动拉取全仓库启用库位 → 原 all 全盘语义) | 'store' // 按货主按商品盘点(商品行) | 'goods' // 按商品盘点(商品行) @@ -351,15 +355,20 @@ export type StockCheckResultRow = StockCheckDetailRow & { * 文档最新入参:title / type / mode / store_id / remark(**已无 check_date**,主表也不再返回该字段); * 盘点时间改由作业流程回填(start_time=首个盘点明细写入时间、end_time=完成盘点时间)。 * - * mode 口径:按库位盘点(type=all/location)一律盲盘 blind(前端传值被忽略); + * mode 口径:按库位盘点(type=location)一律盲盘 blind(前端传值被忽略); * 按商品盘点(type=store/goods)按传入值(默认明盘 open)。 */ export type StockCheckCreateParams = { /** 盘点名称/主题 */ title?: string - /** 盘点范围类型,缺省 all */ + /** + * 盘点范围类型,**缺省 `location`**(2026-10-27 文档) + * + * ⚠️ `all` 已下线(与 location 语义重复),**传入返回 400**; + * 原「全盘」语义用 `location`:不传库位即由后端拉取全仓库启用库位生成盘点范围。 + */ type?: StockCheckType - /** 盘点方式:open=明盘 / blind=盲盘;库位类(all/location)一律 blind */ + /** 盘点方式:open=明盘 / blind=盲盘;库位类(type=location)一律 blind */ mode?: StockCheckMode /** 货主ID(type=store 时必填;添加商品明细时商品货主必须与该货主一致) */ store_id?: number @@ -543,7 +552,10 @@ export type StockCheckListWhere = { status?: StockCheckWhereCondition /** 货主筛选:`{ operator: 'eq', value: 100000, type: 'number' }` */ store_id?: StockCheckWhereCondition - /** 盘点范围筛选(all/location/store/goods):`{ operator: 'eq', value: 'goods', type: 'text' }` */ + /** + * 盘点范围筛选(location/store/goods;已下线的 `all` 不在筛选枚举内,仅历史行可能存在该值): + * `{ operator: 'eq', value: 'goods', type: 'text' }` + */ type?: StockCheckWhereCondition /** 盘点方式筛选(open/blind):`{ operator: 'eq', value: 'blind', type: 'text' }` */ mode?: StockCheckWhereCondition @@ -599,14 +611,15 @@ export function stockCheckList( * → 前端语义:传 N 个 stock_ids 可能得到 >N 条明细,响应 `added` 是**明细行数**而非商品数。 * * 维度校验(传错维度后端报 400): - * - 按库位盘点(type=all/location)传 stock_ids → 「当前盘点类型按库位盘点,请传 locations 或 + * - 按库位盘点(type=location)传 stock_ids → 「当前盘点类型按库位盘点,请传 locations 或 * location_ids(如需按商品盘点请创建 type=goods 任务)」 * - 按商品盘点(type=store/goods)传 locations → 「当前盘点类型按商品盘点,请传 stock_ids」 * - 按商品盘点传 location_ids → 「当前盘点类型按商品盘点,不能添加库位明细」 * * 商品判定:商品必须属于本仓库;任务 store_id 非空时商品货主必须与任务货主一致 * (不一致的商品计入 invalid_stock_ids)。 - * 兼容:type=all 且已存在商品明细行(改造前创建的旧任务)时,继续按商品模式接受 stock_ids。 + * ⚠️ `all` 已下线(2026-10-27):**历史 type=all 的任务添加明细直接返回 400**, + * 需新建 type=location 的任务;库位也必须有效(未删除且所属分区 zone 存在,剔除无头库位)。 * 幂等:已存在同盘点项(商品行 stock_id / 库位行 location_code)自动跳过(计入 skipped)。 */ export type StockCheckAddDetailParams = { @@ -621,15 +634,15 @@ export type StockCheckAddDetailParams = { */ stock_ids?: number[] /** - * 库位编码列表(wms_location_space.space_code):type=all/location 按库位盘点时使用, + * 库位编码列表(wms_location_space.space_code):type=location 按库位盘点时使用, * 与 stock_ids 按任务类型二选一;**与 location_ids 同时传入时被忽略(location_ids 优先)**; - * **type=all 未传库位且未传 location_ids 时由后端自动拉取全仓库启用库位生成盘点范围** + * **type=location 未传库位且未传 location_ids 时由后端自动拉取全仓库启用库位生成盘点范围** */ locations?: string[] /** 库位编码列表(兼容别名;locations 优先,两者都传时以 locations 为准) */ location_codes?: string[] /** - * 库位ID列表(wms_location_space.id):type=all/location 按库位盘点时使用, + * 库位ID列表(wms_location_space.id):type=location 按库位盘点时使用, * 直接按 id + warehouse_id 查库校验(**不再按编码二次解析**),查不到的 ID 记入 * `invalid_location_ids`(不报错);与 locations 同时传入时 **location_ids 优先、locations 忽略** */ @@ -879,7 +892,7 @@ export function stockCheckResult( * * ⚠️ 这**不是入参**:`view` 入参已废弃(传了也被忽略)。实际返回哪种结构由 * **任务范围类型 + `is_goods`** 解析: - * - 任务范围是库位(`type=location/all`)→ **一律 `location`**(库位结构) + * - 任务范围是库位(`type=location`;历史 `all` 任务同属库位结构)→ **一律 `location`**(库位结构) * - 任务范围是商品(`type=goods/store`)→ 默认 **`space`**(聚合库位); * 仅 `is_goods=true` → **`goods`**(商品结构) */ @@ -1101,7 +1114,7 @@ export type StockCheckWorkDataParams = { /** * 商品任务是否按商品视图返回(**仅商品任务生效**): * true → `goods`(商品结构);缺省 false → `space`(聚合库位,按拣货路径) - * 库位任务(type=location/all)**无视该参数**,一律返回 `location`(库位结构) + * 库位任务(type=location,含历史 all 任务)**无视该参数**,一律返回 `location`(库位结构) */ is_goods?: boolean /** 商品视图开关(驼峰别名,兼容写法;is_goods 优先) */ diff --git a/src/components/task-progress/TaskProgressPanel.vue b/src/components/task-progress/TaskProgressPanel.vue index b53bf80f..82887fb9 100644 --- a/src/components/task-progress/TaskProgressPanel.vue +++ b/src/components/task-progress/TaskProgressPanel.vue @@ -480,10 +480,17 @@ const etaLabel = computed( background: #fafafa; } + /* 标签列固定宽度(含必填星号占位):对齐「手工录入运单号」表单,保证各行标签/值对齐 */ &__field-label { + flex: none; + width: 88px; + padding-left: 10px; + box-sizing: border-box; font-size: 12px; line-height: 20px; color: #606266; + text-align: left; + white-space: nowrap; } &__field-value { diff --git a/src/components/task-progress/UnifiedTaskProgressDialog.vue b/src/components/task-progress/UnifiedTaskProgressDialog.vue index d16e9d7e..90b6765c 100644 --- a/src/components/task-progress/UnifiedTaskProgressDialog.vue +++ b/src/components/task-progress/UnifiedTaskProgressDialog.vue @@ -157,7 +157,15 @@ function close() { .utp-actions { display: flex; - gap: 8px; + align-items: center; + /* 与工具栏按钮组(OrderToolbarButtonGroup)保持一致:gap 6px */ + gap: 6px; + + /* 清掉 el-button 默认 `+ .el-button { margin-left: 12px }`,避免与 gap 叠加成 18px */ + :deep(.el-button) { + margin-left: 0; + margin-right: 0; + } } diff --git a/src/styles/element-ui.scss b/src/styles/element-ui.scss index 00624119..2f606c40 100644 --- a/src/styles/element-ui.scss +++ b/src/styles/element-ui.scss @@ -47,3 +47,14 @@ .el-range-separator { box-sizing: content-box; } + +// ElMessageBox(确认/提示弹窗)底部按钮间距:对齐工具栏按钮组 +// (OrderToolbarButtonGroup gap 6px),覆盖 Element Plus 默认的 +// .el-button + .el-button { margin-left: 12px } +.el-message-box__btns { + gap: 6px; + + .el-button + .el-button { + margin-left: 0; + } +} diff --git a/src/views/afterSale/detail/ClaimDialog.vue b/src/views/afterSale/detail/ClaimDialog.vue index e97ca116..0eb40e04 100644 --- a/src/views/afterSale/detail/ClaimDialog.vue +++ b/src/views/afterSale/detail/ClaimDialog.vue @@ -1,34 +1,139 @@ - @@ -202,6 +204,18 @@ async function handleSubmit() { diff --git a/src/views/order/orderManagement/component/SelectProductDialog.vue b/src/views/order/orderManagement/component/SelectProductDialog.vue index 09594e1d..f4e1d6f4 100644 --- a/src/views/order/orderManagement/component/SelectProductDialog.vue +++ b/src/views/order/orderManagement/component/SelectProductDialog.vue @@ -106,8 +106,10 @@ @@ -517,6 +519,18 @@ function handleConfirm() { diff --git a/src/views/order/orderManagement/form/AllocateSubOrderNumberForm.vue b/src/views/order/orderManagement/form/AllocateSubOrderNumberForm.vue index dd875fb7..c504ebc4 100644 --- a/src/views/order/orderManagement/form/AllocateSubOrderNumberForm.vue +++ b/src/views/order/orderManagement/form/AllocateSubOrderNumberForm.vue @@ -58,9 +58,10 @@ - +

子单号数量需为不小于 1 的整数,提交后按填写的数量为该订单分配子单号。 -

--> +