UNPKG

sf-apple-sdk

Version:

Apple SF SDK for SF WMS

186 lines (185 loc) 5.81 kB
export declare enum Scene { /** 采购入库 */ purchase_in = "purchase_in", /** 2C退货入库 */ sales_2c_return_in = "sales_2c_return_in", /** 2B退货入库 */ sales_2b_return_in = "sales_2b_return_in", /** 2经销商办公室退货入库 */ sales_2ro_return_in = "sales_2ro_return_in", /** 串货回购入库 串货回购 不涉及 SF */ /** 借机还货入库 */ borrow_in = "borrow_in", /** Seed还货入库 不涉及 SF */ /** 采购退货出库,退回工厂 自提 */ return_factory_out = "return_factory_out", /** 2C销售出库 */ /** 企业 销售出库 不需要向 Apple 报数 */ sales_2b_out = "sales_2b_out", /** 企业员工 销售出库 */ sales_2b_e_out = "sales_2b_e_out", /** 2经销商办公室销售出库 */ sales_2ro_out = "sales_2ro_out", /** 礼品出库 */ gift_out = "gift_out", /** 借机出库 */ borrow_out = "borrow_out", /** Seed出库 */ seed_out = "seed_out", /** 增值服务调拨出库 */ value_added_service_transfer_out = "value_added_service_transfer_out", /** 增值服务发货 */ value_added_service_out = "value_added_service_out", /** 质量变更入库 良品 -> 残次品 */ quality_change_in = "quality_change_in", /** 残次品入库 残次品退货 */ defective_in = "defective_in", /** 差异入库 */ difference_in = "difference_in", /** 仓间调拨入库 */ transfer_in = "transfer_in", /** 搬仓调拨入库 */ transfer_good_sku_ro_to_warehouse_in = "transfer_good_sku_ro_to_warehouse_in", /** 盘点入库 */ cycle_in = "cycle_in", /** 增值服务调拨入库 */ value_added_service_transfer_in = "value_added_service_transfer_in", /** 增值服务退货入库 */ value_added_service_in = "value_added_service_in", /** 质量变更出库 良品 -> 残次品 */ quality_change_out = "quality_change_out", /** 残次品出库 残次品出售 */ defective_out = "defective_out", /** 差异出库 */ difference_out = "difference_out", /** 仓间调拨出库 */ transfer_out = "transfer_out", /** 盘点出库 */ cycle_out = "cycle_out" } export interface SceneInData { scene: Scene; bill_code: string; /** 采购入库单 - 运单号 */ purchase_dn_code?: string; /** 退货入库单/调拨入库单 - 原出库单号 */ origin_out_code?: string; /** 退货入库单 - 运单号 */ return_dn_code?: string; /** * EC 平台退货入库场景 * 所有退货暂时走经销商办公室 */ sender: { company_name?: string; province?: string; city?: string; area?: string; address?: string; }; receiver?: { company_name: string; }; transfer?: { from_location_code: string; from_location_name: string; to_location_code: string; to_location_name: string; /** 调拨出入库的原参考 erp 单号,用于 Apple 供数 */ origin_bill_code: string; }; cycle?: { from_location_code: string; from_location_name: string; to_location_code: string; to_location_name: string; }; /** 入库明细列表 */ skus: { sku_code: string; sn_list: string[]; mpn: string; qty: number; /** * 库存状态 * 10:良品 * 20:残次品 */ stock_status: "10" | "20"; }[]; } export interface SceneOutData { outbound_orders: { bill_code: string; scene: Scene; /** 是否需要电子回单 */ need_electronic_receipt: "Y" | "N"; /**极校前置 */ jxqz?: "Y" | "N"; /** 极校前置放行时间 格式:YYYY-MM-DD HH24:MI:SS */ jxqz_time?: string; /** * 承运商产品 * S2: 顺丰标快 ✅ * SE0129:极效前置 ✅ * SE0141:顺丰卡航 ✅ * ZT: 自提 ✅ * */ carrier_product_code: "ZT" | "S2" | "SE0129" | "SE0141"; /** EC 平台 销售出库 订单号 */ ec_platform?: { ec_order_number: string; }; sender: { company_name?: string; /** 寄件人姓名 */ person_name?: string; /** 寄件人电话 */ person_phone?: string; /** 销售员姓名 */ sales_name?: string; /** 销售员电话 */ sales_phone?: string; }; receiver: { /** 客户公司名称 */ company_name: string; province: string; city: string; area: string; address: string; zip_code?: string; person_name: string; person_phone: string; person_id_card?: string; }; transfer?: { from_location_code: string; from_location_name: string; to_location_code: string; to_location_name: string; /** 调拨出入库的原参考 erp 单号,用于 Apple 供数 */ origin_bill_code: string; }; cycle?: { from_location_code: string; from_location_name: string; to_location_code: string; to_location_name: string; }; /** 出库明细列表 */ skus: { sku_code: string; mpn: string; qty: number; unit?: string; sn_list?: string[]; /** * 库存类型 * 10:良品 * 20:残次品 */ inventory_status: "10" | "20"; }[]; }[]; }