From b38c6ae91808ca6c8091dd0fe2193aa82ead0de7 Mon Sep 17 00:00:00 2001 From: yin <3313488199@qq.com> Date: Fri, 21 Aug 2026 18:09:54 +0800 Subject: [PATCH] 1 --- src/api/returnunpack/index.ts | 22 ++ .../components/StockPickerDialog.vue | 103 ++++- src/views/express/returnUnpackwork/index.vue | 361 +++++++++++++----- .../log/component/TransactionDetail.vue | 39 ++ .../log/component/TransactionStockItem.vue | 28 ++ src/views/storage/log/index.vue | 45 ++- .../component/ProductflowDetail.vue | 69 ++++ .../component/ProductflowStockItem.vue | 28 ++ src/views/storage/productflow/index.vue | 149 ++++---- .../storage/productflow/productflow-config.ts | 55 +++ .../storeExpressBindingPolicy/index.vue | 5 +- 11 files changed, 712 insertions(+), 192 deletions(-) create mode 100644 src/views/storage/log/component/TransactionDetail.vue create mode 100644 src/views/storage/log/component/TransactionStockItem.vue create mode 100644 src/views/storage/productflow/component/ProductflowDetail.vue create mode 100644 src/views/storage/productflow/component/ProductflowStockItem.vue diff --git a/src/api/returnunpack/index.ts b/src/api/returnunpack/index.ts index 19e6407d..96c71be2 100644 --- a/src/api/returnunpack/index.ts +++ b/src/api/returnunpack/index.ts @@ -72,8 +72,28 @@ export type ReturnUnpackRecord = { [key: string]: any } +/** 原订单商品明细行(order.items 顶层透出) */ +export type ReturnUnpackOrderItem = { + /** 商品编码 */ + item_code?: string + /** 商品名称 */ + item_name?: string + /** 规格属性 */ + sku_property?: string + /** 数量 */ + quantity?: number + /** 计划数量 */ + plan_qty?: number + /** 条码数组 */ + barcodes?: { id?: number; barcode?: string }[] + /** 图片数组 */ + image_url?: string[] + [key: string]: any +} + /** 原订单详情(原单退回时返回,含 items 明细) */ export type ReturnUnpackOriginalOrder = { + items?: ReturnUnpackOrderItem[] [key: string]: any } @@ -113,6 +133,8 @@ export type ReturnUnpackCreateResponse = { store_remark: string /** 原订单详情(仅原单退回时返回,非原单为 null) */ order?: ReturnUnpackOriginalOrder | null + /** 原订单商品明细数组(order.items 顶层透出,仅原单退回时返回;非原单退回或原订单详情缺失时为 null) */ + order_items?: ReturnUnpackOrderItem[] | null /** 是否幂等复用已有拆包单 */ reused?: boolean } diff --git a/src/views/express/returnUnpack/components/StockPickerDialog.vue b/src/views/express/returnUnpack/components/StockPickerDialog.vue index 14e24e4c..cb733ef3 100644 --- a/src/views/express/returnUnpack/components/StockPickerDialog.vue +++ b/src/views/express/returnUnpack/components/StockPickerDialog.vue @@ -10,10 +10,12 @@ >