/* global React */
// Mock data + field definitions for 新商品建立
// ----------------------------------------------------------------------

// ===== Sidebar navigation — aligned to wireframe Menu item 列表 (43 項) =====
const SIDEBAR = [
  {
    id: "product", icon: "box", label: "商品資料", defaultOpen: true,
    children: [
      { id: "master",       label: "商品主檔" },
      { id: "new",          label: "新商品建立單",      approvable: true },
      { id: "oracleExport", label: "新商品 Oracle 表", roleOnly: "johnny" },
      { id: "priceHist",    label: "進價歷史總表" },
    ],
  },
  { id: "adjust", icon: "sliders", label: "商品調整", children: [
    { id: "adj-vendor", label: "商品轉廠",                 approvable: true },
    { id: "adj-price",  label: "商品價格調整",             approvable: true },
    { id: "adj-status", label: "商品主檔調整",             approvable: true },
    { id: "adj-oracle", label: "商品主檔調整 Oracle 表",   roleOnly: "johnny" },
    { id: "adj-image",  label: "商品圖片調整",             approvable: true },
  ]},
  { id: "promo", icon: "tag", label: "優惠與活動", children: [
    { id: "p-eats",      label: "商品優惠總表 Eatsoffer",    approvable: true },
    { id: "p-crm",       label: "商品活動總表 CRM",          approvable: true },
    { id: "p-clear",     label: "清倉折扣表" },
    { id: "p-coll",      label: "專區滿額／滿件折 Collection Offer", approvable: true },
    { id: "p-page",      label: "專案頁 Collection Page",    approvable: true },
    { id: "p-mg",        label: "商品組合表",                approvable: true },
    { id: "p-crm-promo", label: "CRM 促銷品項總表" },
    { id: "p-timeslot",  label: "時段特殊價格表" },
  ]},
  { id: "stock", icon: "mapPin", label: "商品庫存", children: [
    { id: "st-query", label: "庫存" },
    { id: "st-zone",  label: "門店區分區表" },
    { id: "st-grade", label: "店級表" },
    { id: "st-hours", label: "販售時間表" },
  ]},
  { id: "vendor", icon: "truck", label: "供應商管理", children: [
    { id: "v-base",  label: "廠商基礎資料" },
    { id: "v-deliv", label: "廠商配送資訊" },
  ]},
  { id: "display", icon: "grid", label: "陳列管理", children: [
    { id: "d-cat",   label: "重複陳列類別" },
    { id: "d-item",  label: "重複陳列單品" },
    { id: "d-merge", label: "陳列合併" },
  ]},
  { id: "menu", icon: "menu", label: "菜單", children: [
    { id: "m-prev",  label: "歷史菜單及預覽" },
    { id: "m-delta", label: "Delta file 商家價格、庫存檔案 INCA" },
    { id: "m-cat",   label: "Catalog file 商品資訊更新檔案 INCA" },
    { id: "m-promo", label: "Promotion file 商家折扣檔案 INCA" },
  ]},
  { id: "auth", icon: "shield", label: "帳號與權限", roleOnly: "samantha", children: [
    { id: "a-user",     label: "使用者列表" },
    { id: "a-auth-list", label: "權限列表" },
    { id: "a-perm",     label: "角色列表（權限群組）" },
    { id: "a-line",     label: "採購線別對應表" },
    { id: "a-dept",     label: "部門設定" },
    { id: "a-pos",      label: "職位設定" },
    { id: "a-flow",     label: "審核流程與條件設定" },
  ]},
  {
    id: "basedata", icon: "layers", label: "基礎主檔", roleOnly: "samantha",
    children: [
      { id: "bd-region", label: "銷售地區" },
      { id: "bd-store",  label: "門店" },
      { id: "bd-tier",   label: "品項分級（T分級）" },
      { id: "bd-temp",   label: "溫層" },
    ],
  },
  { id: "sys", icon: "cog", label: "系統設定", roleOnly: "samantha", children: [
    { id: "sys-inca",      label: "INCA生成與上傳時間設定" },
    { id: "sys-effective", label: "新品生效日計算規則" },
  ]},
];

// ===== Roles =============================================================
const ROLES = {
  purchase: { id: "purchase", name: "Neilson",  initials: "NE", label: "採購",       hint: "可建立／編輯／送出自己的建立單" },
  samantha: { id: "samantha", name: "Samantha", initials: "SA", label: "圖檔處理",   hint: "下載已送出的 Excel、上傳圖檔到商品主檔" },
  johnny:   { id: "johnny",   name: "Johnny",   initials: "JO", label: "Oracle 匯出", hint: "多選同梯次建立單，匯出 Oracle 檔" },
  joanna:   { id: "joanna",  name: "Joanna",   initials: "JA", label: "採購主管",   hint: "審核轉廠商調整申請" },
};

const PURCHASERS = ["NEILSON", "DANNY", "JOY", "AMY", "WAYNE"];

// ===== Category taxonomy (mirrors raw data) ==============================
// Used for cascader (主類別 → 次類別) AND for conditional field rules.
const CATEGORY_TREE = {
  "冷藏乳飲":       ["鮮乳", "優格", "豆奶"],
  "蔬菜":           ["葉菜類", "根莖類", "菇菌類", "豆芽/豆類"],
  "冷凍食品":       ["冰品", "水餃", "微波餐"],
  "飲料":           ["茶飲", "咖啡", "果汁", "碳酸飲料"],
  "糖果零食":       ["洋芋片", "餅乾", "糖果類", "巧克力"],
  "肉品":           ["豬肉/羊肉", "牛肉", "雞肉"],
  "水果":           ["熱帶水果", "溫帶水果", "莓果類", "柑橘類"],
  "米油雜糧":       ["拌麵", "麵類", "米", "食用油"],
  "蛋品":           ["雞蛋", "皮蛋/鹹蛋", "蛋製品"],
  "罐頭調味":       ["罐頭食品", "醬料/沙拉醬", "調味料", "香料/粉類"],
  "紙棉製品":       ["衛生棉", "衛生紙", "尿布"],
  "冷藏食品":       ["豆腐/豆製品", "熟食/涼拌", "配菜/小菜"],
  "海鮮":           ["魚類", "蝦貝類", "水產加工品"],
  "家用清潔":       ["洗碗用品", "浴廁清潔", "地板清潔", "洗衣用品"],
  "烘焙與名店禮盒": ["麵包/吐司", "蛋糕/甜點", "禮盒", "餅乾/點心"],
  "個人清潔":       ["洗髮/護髮", "沐浴用品", "口腔清潔", "身體乳液"],
  "美妝保養":       ["護膚/面膜", "彩妝", "防曬/隔離", "香水/護手"],
  "生活百貨":       ["廚房用品", "收納整理", "文具/辦公", "電池/燈具"],
  "成人保健":       ["成人用品", "保健食品", "醫療器材"],
};
const MAIN_CATS = Object.keys(CATEGORY_TREE);

// Conditional rules — which fields appear by 主類別
const CAT_FOOD    = ["冷藏乳飲", "冷凍食品", "糖果零食", "米油雜糧", "飲料"];
const CAT_MEAT    = ["肉品"];
const CAT_MEDICAL = ["成人保健"]; // medical-device fields

// ===== 品項層表格共用前兩欄 =============================================
// 規則：所有 row = 一個 SKU 的表格，前兩欄固定為 # 和 品號，且 品號 sticky。
// 用法：const MY_COLS = [...ITEM_LEADING_COLS(myColFn), myColFn("name", ...)]
// 傳入各模組自己的 col factory，確保 opts shape 一致。
const ITEM_LEADING_COLS = (colFn) => [
  colFn("#",       "#",    48, "A", { stickyNum: true }),
  colFn("barcode", "品號", 150, "A", { mono: true, sticky2nd: true }),
];

// ===== Field dictionary ==================================================
// Drives both the table (13 key fields, incl. 毛利率) and the full-field column groups (all 71).
// group: A=Identity B=Supply C=Classification D=Commerce E=Workflow F=Logistics G=Compliance H=Images I=Johnny J=System
const FIELDS = [
  // === A. 基本識別 ===
  { key: "barcode",     label: "品號",         group: "A", w: 130, type: "text",  required: true,  helper: "EAN-13 / EAN-8", inline: true },
  { key: "name",        label: "品名",         group: "A", w: 280, type: "text",  required: true,  helper: "繁體中文，含規格、容量", inline: true },
  // === B. 供應 ===
  { key: "supplierNo",  label: "廠商編號",   group: "B", w: 100, type: "text",  required: true,  formula: false },
  { key: "supplierName",label: "廠商名稱",   group: "B", w: 140, type: "select",required: true,  inline: true, source: "supplier" },
  // === C. 分類 ===
  { key: "mainCat",     label: "主類別",         group: "C", w: 120, type: "select", required: true, inline: true, source: "mainCat" },
  { key: "subCat",      label: "次類別",         group: "C", w: 120, type: "select", required: true, inline: true, source: "subCat", parentKey: "mainCat" },
  { key: "segment1",   label: "大分類(分析用)", group: "C", w: 140, type: "select", source: "seg1" },
  { key: "segment2",   label: "次分類(分析用)", group: "C", w: 140, type: "select", source: "seg2" },
  { key: "segment3",   label: "子分類(分析用)", group: "C", w: 140, type: "select", source: "seg3" },
  { key: "brand",       label: "品牌",         group: "C", w: 120, type: "text",  required: true,  inline: true },
  { key: "series",      label: "系列",         group: "C", w: 120, type: "text" },
  // === D. 商務 ===
  { key: "cost",        label: "進價（未稅）", group: "D", w: 100, type: "num",   required: true,  inline: true, unit: "NT$" },
  { key: "listPrice",   label: "牌價",         group: "D", w: 90,  type: "num",   required: true,  inline: true, unit: "NT$" },
  { key: "suggestPrice",label: "建議售價",     group: "D", w: 90,  type: "num",   unit: "NT$" },
  { key: "marginPct",   label: "毛利率 M%",    group: "D", w: 90,  type: "num",   formula: true, inline: true, formulaDesc: "(牌價-進價)/牌價" },
  { key: "altSku",      label: "替代品項",     group: "D", w: 160, type: "text",
    helper: "一上一下的對應品項名稱" },
  { key: "compUeChannel",  label: "UE 通路",     group: "D", subBand: "競對價格", w: 120, type: "text" },
  { key: "compUePrice",    label: "UE 競對價",   group: "D", subBand: "競對價格", w: 90,  type: "num", unit: "NT$" },
  { key: "compExtChannel", label: "非 UE 通路",  group: "D", subBand: "競對價格", w: 120, type: "text" },
  { key: "compExtPrice",   label: "非 UE 競對價",group: "D", subBand: "競對價格", w: 90,  type: "num", unit: "NT$" },
  { key: "promoLongType",  label: "長促案型",    group: "D", subBand: "促銷案型", w: 90,  type: "select", source: "promoType" },
  { key: "promoLongPrice", label: "長促金額",    group: "D", subBand: "促銷案型", w: 90,  type: "num", unit: "NT$" },
  { key: "promoLongM",     label: "長促 M%",     group: "D", subBand: "促銷案型", w: 70,  type: "num" },
  { key: "promoDeepType",  label: "深促案型",    group: "D", subBand: "促銷案型", w: 90,  type: "select", source: "promoType" },
  { key: "promoDeepPrice", label: "深促金額",    group: "D", subBand: "促銷案型", w: 90,  type: "num", unit: "NT$" },
  { key: "promoDeepM",     label: "深促 M%",     group: "D", subBand: "促銷案型", w: 70,  type: "num" },
  // === E. 銷售設定 ===
  { key: "tier",        label: "品項分級",     group: "E", w: 80,  type: "select", source: "tier", required: true },
  { key: "region",      label: "銷售地區",     group: "E", w: 100, type: "select", source: "region", required: true },
  { key: "stores",      label: "自訂販售門店", group: "E", w: 140, type: "text",   helper: "若 = 全部則留空" },
  { key: "taxRate",     label: "商品稅率",     group: "E", w: 80,  type: "select", source: "tax", required: true },
  { key: "minOrder",    label: "最低訂購量",   group: "E", w: 80,  type: "num",    required: true, inline: true },
  { key: "shelfDays",   label: "保存期限（天）", group: "E", w: 110, type: "num",  required: true, inline: true },
  { key: "expType",     label: "效期類型",     group: "E", w: 130, type: "select", source: "expType", required: true },
  { key: "origin",      label: "產地",         group: "E", w: 90,  type: "text",   required: true, helper: "國家／地區" },
  { key: "imported",    label: "進口/台灣",    group: "E", w: 130, type: "radio",  source: "imported" },
  { key: "returnDays",  label: "可退換天數",   group: "E", w: 90,  type: "text", helper: "可退/天數 或留空" },
  // === F. 規格與配送 ===
  { key: "deliv",       label: "配貨方式",     group: "F", w: 90,  type: "select", source: "deliv", required: true, inline: true },
  { key: "temp",        label: "溫層",         group: "F", w: 80,  type: "select", source: "temp", required: true, inline: true },
  { key: "lengthCm",    label: "長 (cm)",      group: "F", w: 70,  type: "num" },
  { key: "widthCm",     label: "寬 (cm)",      group: "F", w: 70,  type: "num" },
  { key: "heightCm",    label: "高 (cm)",      group: "F", w: 70,  type: "num" },
  { key: "weightG",     label: "毛重 (g)",     group: "F", w: 80,  type: "num", helper: "單品實際銷售重量" },
  { key: "unit",        label: "單位",         group: "F", w: 70,  type: "select", source: "unit", required: true },
  { key: "specNum",     label: "規格數字",     group: "F", w: 80,  type: "num", required: true, helper: "組合為加總後數值" },
  { key: "specUnit",    label: "規格單位",     group: "F", w: 80,  type: "select", source: "specUnit", required: true },
  { key: "saleCount",   label: "銷售入數",     group: "F", w: 80,  type: "num", required: true, helper: "消費者看到的第一層有幾個" },
  { key: "packCount",   label: "單包入數",     group: "F", w: 80,  type: "num", helper: "打開第二層包裝內" },
  { key: "specSummary", label: "規格摘要",     group: "F", w: 200, type: "text", formula: true,
    formulaDesc: "稅別 + 最低訂量 + 效期" },
  { key: "hold",        label: "暫緩上架",     group: "F", w: 80,  type: "bool" },
  // === G. 法規 / 合規（條件顯示） ===
  { key: "meatSource",  label: "肉類來源",     group: "G", w: 120, type: "text", showWhen: { mainCat: CAT_MEAT },
    helper: "肉品、含肉類商品填寫" },
  { key: "vegType",     label: "素食別",       group: "G", w: 100, type: "select", source: "vegType", showWhen: { mainCat: CAT_FOOD },
    helper: "如純素、蛋奶素" },
  { key: "foodLicense", label: "食品業者登錄字號", group: "G", w: 180, type: "text", showWhen: { mainCat: CAT_FOOD } },
  { key: "foodInsure",  label: "產品責任險",   group: "G", w: 180, type: "text", showWhen: { mainCat: CAT_FOOD } },
  { key: "medLicense",  label: "醫材許可證字號", group: "G", w: 200, type: "text", showWhen: { mainCat: CAT_MEDICAL, subCat: ["成人用品", "醫療器材"] } },
  { key: "medHolder",   label: "許可證所有人／地址", group: "G", w: 240, type: "text", showWhen: { mainCat: CAT_MEDICAL } },
  { key: "medManufact", label: "製造業者名稱／地址", group: "G", w: 240, type: "text", showWhen: { mainCat: CAT_MEDICAL } },
  { key: "desc",        label: "商品描述（含使用方式）", group: "G", w: 280, type: "text" },
  // === H. 圖片（建立階段不上傳，僅標記欄位） ===
  { key: "imgMain",     label: "商品主圖",     group: "H", w: 90,  type: "imgPlaceholder", helper: "由 Samantha 後續上傳" },
  { key: "imgActivity", label: "活動圖檔",     group: "H", w: 90,  type: "imgPlaceholder", helper: "由 Samantha 後續上傳" },
  { key: "imgNutrition",label: "包裝熱量照",   group: "H", w: 90,  type: "imgPlaceholder", helper: "由 Samantha 後續上傳" },
  { key: "imgScene1",   label: "情境圖 1",     group: "H", w: 90,  type: "imgPlaceholder", helper: "由 Samantha 後續上傳" },
  { key: "imgScene2",   label: "情境圖 2",     group: "H", w: 90,  type: "imgPlaceholder", helper: "由 Samantha 後續上傳" },
  { key: "imgScene3",   label: "情境圖 3",     group: "H", w: 90,  type: "imgPlaceholder", helper: "由 Samantha 後續上傳" },
  { key: "imgScene4",   label: "情境圖 4",     group: "H", w: 90,  type: "imgPlaceholder", helper: "由 Samantha 後續上傳" },
  // === I. FOR Johnny ===
  { key: "estSales",    label: "預估業績 / 月", group: "I", w: 110, type: "num", unit: "NT$" },
  { key: "origCost",    label: "原進價",       group: "I", w: 100, type: "num" },
  { key: "promoCost",   label: "促進進價",     group: "I", w: 100, type: "num" },
  { key: "promoStart",  label: "促進開始",     group: "I", w: 110, type: "date" },
  { key: "promoEnd",    label: "促進結束",     group: "I", w: 110, type: "date" },
  // === J. 系統檢核 (formula) ===
  { key: "checkSku",    label: "品號是否存在", group: "J", w: 120, type: "bool", formula: true, formulaDesc: "比對商品主檔 SKU 唯一性" },
  { key: "checkCat",    label: "次類別屬於主類別", group: "J", w: 150, type: "bool", formula: true, formulaDesc: "比對類別主檔" },
];

// ===== 廠商基礎資料 =====================================================
const VENDOR_UID = () => "v" + Math.random().toString(36).slice(2, 9);
const VD_UID     = () => "vd" + Math.random().toString(36).slice(2, 9);

// ── 廠商配送資料欄定義（共用：廠商基礎資料 L2 子表 + 廠商配送資料獨立模組）─────
// field：給 CellDisplay / CellEditor / Drawer 用的欄位描述（select 從 SOURCES[source] 取選項）。
const VD_COLS = [
  { key: "delivMoa",         label: "最低訂購金額", w: 130, group: "A", field: { type: "num", key: "delivMoa",       label: "最低訂購金額", mono: true } },
  { key: "delivMoq",         label: "最低訂購量",   w: 115, group: "A", field: { type: "num", key: "delivMoq",       label: "最低訂購量",   mono: true } },
  { key: "delivMoqUnit",     label: "訂購量單位",   w: 90,  group: "A", field: { type: "str", key: "delivMoqUnit",   label: "訂購量單位" } },
  { key: "delivMoqGroup",    label: "合併計算說明",w: 150, group: "A", field: { type: "str", key: "delivMoqGroup",   label: "合併計算說明" } },
  { key: "applicableGoods",  label: "適用商品",    w: 120, group: "B", field: { type: "select", key: "applicableGoods", label: "適用商品", source: "applicableGoods" } },
  { key: "applicableSkus",   label: "適用貨號",    w: 120, group: "B", field: { type: "str", key: "applicableSkus",   label: "適用貨號" } },
  { key: "defectiveHandling",label: "瑕疵品處理",  w: 110, group: "C", field: { type: "select", key: "defectiveHandling", label: "瑕疵品處理", source: "defectiveHandling" } },
  { key: "delivCycle",       label: "配送週期",    w: 110, group: "C", field: { type: "select", key: "delivCycle",   label: "配送週期", source: "delivCycle" } },
  { key: "delivStores",      label: "配送門店",    w: 160, group: "C", field: { type: "str", key: "delivStores",     label: "配送門店" } },
  { key: "delivDays",        label: "配送日",      w: 120, group: "C", field: { type: "str", key: "delivDays",       label: "配送日" } },
  { key: "delivDaysCode",    label: "配送日代碼 🔒",w: 90, group: "C", field: { type: "str", key: "delivDaysCode",    label: "配送日代碼", formula: true, mono: true } },
  { key: "note",             label: "備註",        w: 180, group: "C", field: { type: "text", key: "note",           label: "備註", placeholder: "選填備註…" } },
];
const VD_GROUP_LABELS = { A: "訂購門檻", B: "適用範圍", C: "配送與退貨" };

const emptyVendor = (over = {}) => ({
  uid: VENDOR_UID(),
  vendorNo: "", vendorShort: "", vendorName: "",
  vendorStatus: "active", formStatus: "draft",
  oracleReady: "empty",
  oracleVendorNo: "", oracleVendorName: "", oracleAddressTable: "", outputType: "",
  districtGroup: [], districtStore: [],
  taxId: "", tel1: "", emailNorth: "", emailCentral: "",
  owner: "", contact1: "",
  address1: "", address2: "", billAddress1: "", billAddress2: "",
  moq: "", moa: "", returnable: null, taxRate: "", exchangeable: null, defectiveHandling: "",
  invoiceBeforeMonthEnd: null, reconUnit: "", paymentTerms: "",
  confirmEmailTo: "", accountingEmail: "", accountingTel: "",
  ...over,
});

const SEED_VENDORS = [
  emptyVendor({ uid: "v001", vendorNo: "110010", vendorShort: "維力", vendorName: "維力食品有限公司", vendorStatus: "suspended", formStatus: "active", oracleReady: "synced", oracleVendorNo: "1055976", oracleVendorName: "SONYI MARKETING CO LTD", oracleAddressTable: "3073-TAIPEI CIT", taxId: "53197609", tel1: "02-86018686", emailNorth: "songyi3@weilih.com.tw", emailCentral: "songyi3@weilih.com.tw", owner: "張玴毓", contact1: "林琪盛", address1: "臺北市士林區通河西街1段112號1樓", billAddress1: "臺北市士林區通河西街1段112號1樓", moq: 2000, moa: 2000, returnable: true, taxRate: 5, exchangeable: true, defectiveHandling: "退貨", invoiceBeforeMonthEnd: false, reconUnit: "Ops對", paymentTerms: "每月26號～隔月25號", confirmEmailTo: "mcc9200_adm@foodsmart.com.tw", accountingEmail: "mcc9200_adm@foodsmart.com.tw", accountingTel: "02-2295-1555 ext.201" }),
  emptyVendor({ uid: "v002", vendorNo: "110020", vendorShort: "瀚暘企業社", vendorName: "瀚暘企業社", vendorStatus: "active", formStatus: "active", oracleReady: "not_found", taxId: "87302426", tel1: "0939-068-098", emailNorth: "hanyang87302426@gmail.com", emailCentral: "hanyang87302426@gmail.com", owner: "陳子瀚", contact1: "陳子瀚", address1: "新北市深坑區埔新街92之6號6樓", billAddress1: "新北市深坑區埔新街92之6號6樓", moq: 3500, moa: 5000, defectiveHandling: "退貨" }),
  emptyVendor({ uid: "v003", vendorNo: "110054", vendorShort: "統一低溫", vendorName: "統一企業股份有限公司（低溫）", vendorStatus: "active", formStatus: "active", oracleReady: "synced", oracleVendorNo: "1012345", oracleVendorName: "PRESIDENT CHAIN STORE CORP", oracleAddressTable: "3001-TAINAN", taxId: "11147310", tel1: "06-2531001", emailNorth: "buyer@president.com.tw", emailCentral: "buyer@president.com.tw", owner: "林大明", contact1: "林大明", address1: "臺南市東區中山路2號", billAddress1: "臺南市東區中山路2號", moa: 3000, returnable: true, taxRate: 5, defectiveHandling: "換貨", invoiceBeforeMonthEnd: false, paymentTerms: "月結30天", confirmEmailTo: "logistics@president.com.tw", accountingEmail: "accounting@president.com.tw" }),
  emptyVendor({ uid: "v004", vendorNo: "110490", vendorShort: "大恆", vendorName: "大恆食品有限公司", vendorStatus: "active", formStatus: "active", oracleReady: "pending", oracleVendorNo: "1099888", taxId: "22334455", tel1: "02-27001234", emailNorth: "daheng@daheng.com.tw", emailCentral: "daheng@daheng.com.tw", owner: "王大明", contact1: "王大明", address1: "臺北市內湖區瑞光路100號", billAddress1: "臺北市內湖區瑞光路100號", moa: 5000, returnable: true, taxRate: 5, defectiveHandling: "退貨", paymentTerms: "月結45天" }),
  emptyVendor({ uid: "v005", vendorNo: "110620", vendorShort: "友暉", vendorName: "友暉食品有限公司", vendorStatus: "active", formStatus: "active", oracleReady: "synced", oracleVendorNo: "1066123", oracleVendorName: "YOUHUI FOODS CO LTD", oracleAddressTable: "3073-TAIPEI CIT", taxId: "33445566", tel1: "02-25001111", emailNorth: "info@youhui.com.tw", emailCentral: "info@youhui.com.tw", owner: "陳美玲", contact1: "陳美玲", address1: "臺北市中山區建國北路1段1號", billAddress1: "臺北市中山區建國北路1段1號", moq: 12, moa: 2000, returnable: true, taxRate: 5, defectiveHandling: "退貨", paymentTerms: "月結30天" }),
  emptyVendor({ uid: "v006", vendorNo: "110831", vendorShort: "智護食品", vendorName: "智護食品有限公司", vendorStatus: "active", formStatus: "active" }),
];

const SEED_VENDOR_DELIVERIES = [
  // 維力（110010）
  { uid: VD_UID(), vendorNo: "110010", delivMoa: 2000, delivMoq: null, delivMoqUnit: "", delivMoqGroup: "", applicableGoods: "全部商品", applicableSkus: "", defectiveHandling: "退貨", delivCycle: "D+2", delivStores: "全店", delivDays: "", delivDaysCode: "", note: "" },
  // 大恆（110490）
  { uid: VD_UID(), vendorNo: "110490", delivMoa: 5000, delivMoq: null, delivMoqUnit: "", delivMoqGroup: "", applicableGoods: "全部商品", applicableSkus: "", defectiveHandling: "退貨", delivCycle: "D+3", delivStores: "中山店", delivDays: "星期六", delivDaysCode: "6", note: "" },
  { uid: VD_UID(), vendorNo: "110490", delivMoa: 5000, delivMoq: null, delivMoqUnit: "", delivMoqGroup: "", applicableGoods: "全部商品", applicableSkus: "", defectiveHandling: "退貨", delivCycle: "D+3", delivStores: "中和店, 三重店, 新店店", delivDays: "星期二, 星期五", delivDaysCode: "2, 5", note: "" },
  { uid: VD_UID(), vendorNo: "110490", delivMoa: 5000, delivMoq: null, delivMoqUnit: "", delivMoqGroup: "", applicableGoods: "全部商品", applicableSkus: "", defectiveHandling: "退貨", delivCycle: "D+3", delivStores: "內湖店, 大安店", delivDays: "星期一, 星期五", delivDaysCode: "1, 5", note: "" },
  // 統一低溫（110054）
  { uid: VD_UID(), vendorNo: "110054", delivMoa: 3000, delivMoq: null, delivMoqUnit: "", delivMoqGroup: "", applicableGoods: "全部商品", applicableSkus: "", defectiveHandling: "換貨", delivCycle: "D+2", delivStores: "全店", delivDays: "", delivDaysCode: "", note: "" },
];

// Source dicts for select fields
const SOURCES = {
  vendorStatus: ["合作中", "停止合作"],
  applicableGoods: ["全部商品", "指定品項"],
  defectiveHandling: ["退貨", "換貨"],
  delivCycle: ["D+1", "D+2", "D+3", "D+5", "D+7", "週五結單", "月結"],
  districtGroup: ["雙北", "桃竹", "中部", "南部", "全台"],
  districtStore: ["中山店", "中和店", "內湖店", "三重店", "新店店", "大安店", "北投店", "精武店", "南屯店", "桃園店", "新竹店"],
  supplier:   ["欣新網", "通用磨坊-哈根達斯", "味全冷藏-免稅", "湯瑪仕肉舖-免稅", "豐晨", "友暉", "森森", "智護健康", "河洛"],
  mainCat:    MAIN_CATS,
  subCat:     [], // dynamic
  tier:       ["T0", "T1", "T2", "T3"],
  region:     ["全", "北部", "雙北", "北北桃", "中部", "桃竹", "雙北+中部", "中山店"],
  tax:        ["應稅", "免稅", "零稅率"],
  expType:    ["日/月/年", "月/日/年", "年/月/日", "月/年.(到期日為該月月底)", "年/月.(到期日為該月月底)"],
  imported:   ["台灣", "進口"],
  deliv:      ["統配", "日配", "週配", "直送"],
  temp:       ["常溫", "冷藏", "冷凍"],
  unit:       ["個", "包", "組", "盒", "瓶", "罐", "杯", "支"],
  specUnit:   ["g", "公克", "kg", "ml", "L", "片", "個", "支"],
  vegType:    ["純素", "蛋奶素", "五辛素", "植物五辛素", "非素"],
  promoType:  ["EO", "BOGO", "DCT", "M%"],
  seg1:       ["UberEATS"],
  seg2:       ["DarkGrocery"],
  seg3:       ["Milk & Dairy", "Frozen Foods", "Snacks & Candies", "Meat & Seafood", "Dry Goods & Staples", "Paper & Cotton Products", "Health & Adult Care", "Beverages"],
};

// 13 inline columns for the L2 compact table (subset of FIELDS marked inline: true)
const INLINE_KEYS = FIELDS.filter(f => f.inline).map(f => f.key);

// ===== Seed batches =====================================================
const BATCH_LIBRARY = [
  "Phase_111新品05_09",
  "Phase_111新品05_08",
  "Phase_111新品04_25",
  "Phase_111新品04_18",
  "Phase_110特殊上架",
];

// ===== Seed SKU rows ====================================================
const baseSku = (over = {}) => {
  const merged = {
    uid: Math.random().toString(36).slice(2, 9),
    barcode: "", name: "", supplierNo: "", supplierName: "",
    mainCat: "", subCat: "", brand: "", series: "",
    cost: "", listPrice: "", suggestPrice: "", marginPct: "", altSku: "",
    compUeChannel: "", compUePrice: "", compExtChannel: "", compExtPrice: "",
    promoLongType: "", promoLongPrice: "", promoLongM: "", promoDeepType: "", promoDeepPrice: "", promoDeepM: "",
    tier: "T1", region: "全", stores: "", taxRate: "應稅", minOrder: "", shelfDays: "", expType: "日/月/年", origin: "", imported: "台灣", returnDays: "",
    deliv: "統配", temp: "常溫", lengthCm: "", widthCm: "", heightCm: "", weightG: "", unit: "個", specNum: "", specUnit: "g", saleCount: 1, packCount: "",
    specSummary: "", hold: false, saleStatus: "normal",
    meatSource: "", vegType: "", foodLicense: "", foodInsure: "", medLicense: "", medHolder: "", medManufact: "", desc: "",
    imgMain: null, imgActivity: null, imgNutrition: null, imgScene1: null, imgScene2: null, imgScene3: null, imgScene4: null,
    segment1: "UberEATS", segment2: "DarkGrocery", segment3: "",
    secSupplierName: "", secSupplierPartNo: "", weightUom: "", volumeUom: "", volume: "", dimensionUom: "",
    supplierEccn: "", unNumber: "", msdsUrl: "", htsCode: "", mfgPartNo: "", dangerousGoods: "",
    boxCount: "", cartonWeight: "", manufacturer: "", infoNote: "",
    estSales: "", origCost: "", promoCost: "", promoStart: "", promoEnd: "",
    checkSku: true, checkCat: true,
    ...over,
  };
  // Formula 🔒 specSummary — always derive from source fields on init
  if (merged.taxRate && merged.minOrder && merged.shelfDays) {
    merged.specSummary = `${merged.taxRate} 最低訂量${merged.minOrder} 效期${merged.shelfDays}`;
  }
  return merged;
};

const seedItems = (n, sample = "milk") => {
  // sample buckets
  const samples = {
    milk: [
      { barcode:"4710063312168", name:"林鳳營全脂鮮乳 期間限定超值組(1857ml+630ml)", supplierNo:"110071", supplierName:"味全冷藏-免稅",
        mainCat:"冷藏乳飲", subCat:"鮮乳", brand:"林鳳營", cost:191.30, listPrice:274, suggestPrice:274, marginPct:"26.69%",
        deliv:"日配", temp:"冷藏", unit:"組", specNum:2487, specUnit:"ml", minOrder:1, shelfDays:13, expType:"年/月/日", origin:"臺灣",
        taxRate:"免稅", series:"", volumeUom:"ml", dangerousGoods:"否" },
      { barcode:"9310653105696", name:"Chobani希臘式優格 香草160g", supplierNo:"110540", supplierName:"河洛",
        mainCat:"冷藏乳飲", subCat:"優格", brand:"Chobani", cost:126, listPrice:189, suggestPrice:189, marginPct:"30.00%",
        deliv:"統配", temp:"冷藏", unit:"杯", specNum:160, specUnit:"g", minOrder:8, shelfDays:60, expType:"日/月/年", origin:"澳大利亞", imported:"進口",
        taxRate:"應稅", series:"希臘式" },
      { barcode:"9310653105641", name:"Chobani希臘式優格-草莓160g", supplierNo:"110540", supplierName:"河洛",
        mainCat:"冷藏乳飲", subCat:"優格", brand:"Chobani", cost:126, listPrice:189, suggestPrice:189, marginPct:"30.00%",
        deliv:"統配", temp:"冷藏", unit:"杯", specNum:160, specUnit:"g", minOrder:8, shelfDays:60, expType:"日/月/年", origin:"澳大利亞", imported:"進口",
        taxRate:"應稅", series:"希臘式" },
    ],
    snack: [
      { barcode:"0072600062290", name:"賀氏烘培起司條墨西哥香辣170G", supplierNo:"110620", supplierName:"友暉",
        mainCat:"糖果零食", subCat:"洋芋片", brand:"賀氏", cost:116.67, listPrice:175, suggestPrice:175, marginPct:"30.00%",
        deliv:"統配", temp:"常溫", unit:"包", specNum:170, specUnit:"公克", minOrder:12, shelfDays:365, expType:"日/月/年", origin:"美國", imported:"進口",
        taxRate:"應稅", series:"起司條", volumeUom:"g", dangerousGoods:"否", secSupplierPartNo:"HSY-CHZ-170", mfgPartNo:"062290" },
      { barcode:"0072600062306", name:"賀氏烘焙起司條香濃起司170G", supplierNo:"110620", supplierName:"友暉",
        mainCat:"糖果零食", subCat:"洋芋片", brand:"賀氏", cost:116.67, listPrice:175, suggestPrice:175, marginPct:"30.00%",
        deliv:"日配", temp:"常溫", unit:"包", specNum:170, specUnit:"公克", minOrder:12, shelfDays:365, expType:"日/月/年", origin:"美國", imported:"進口",
        taxRate:"應稅", series:"起司條" },
      { barcode:"4711017455405", name:"派對熊-酸爆可樂風味軟糖 50g", supplierNo:"110770", supplierName:"森森",
        mainCat:"糖果零食", subCat:"糖果類", brand:"派對熊", cost:66, listPrice:99, suggestPrice:99, marginPct:"30.00%",
        deliv:"統配", temp:"常溫", unit:"包", specNum:50, specUnit:"g", minOrder:12, shelfDays:395, expType:"年/月/日", origin:"德國", imported:"進口",
        taxRate:"應稅", returnDays:"可退/60" },
    ],
    meat: [
      { barcode:"8806050000005", name:"湯瑪仕肉舖 冷凍西班牙伊比利黑豬梅花肉排薄片170g±5%", supplierNo:"110460", supplierName:"湯瑪仕肉舖-免稅",
        mainCat:"肉品", subCat:"豬肉/羊肉", brand:"湯瑪仕肉舖", cost:190, listPrice:299, suggestPrice:289, marginPct:"30.97%",
        deliv:"統配", temp:"冷凍", unit:"個", specNum:170, specUnit:"g", minOrder:30, shelfDays:300, expType:"年/月.(到期日為該月月底)", origin:"臺灣", imported:"進口",
        taxRate:"免稅", meatSource:"西班牙", tier:"T2",
        compUeChannel:"湯瑪仕", compUePrice:289, compExtChannel:"湯瑪仕官網", compExtPrice:289,
        promoLongType:"EO", promoLongPrice:289, promoLongM:31, promoDeepType:"BOGO", promoDeepPrice:499, promoDeepM:25 },
    ],
    adult: [
      { barcode:"4710332290852", name:"杜蕾斯AIR輕薄幻隱裝衛生套 3入", supplierNo:"110710", supplierName:"豐晨",
        mainCat:"成人保健", subCat:"成人用品", brand:"杜蕾斯", cost:151.43, listPrice:249, suggestPrice:229, marginPct:"30.57%",
        deliv:"統配", temp:"常溫", unit:"個", specNum:3, specUnit:"個", minOrder:6, shelfDays:1825, expType:"月/年.(到期日為該月月底)", origin:"中國",
        taxRate:"應稅",
        medLicense:"衛部醫器陸輸字第000833號",
        medHolder:"香港商港利潔時有限公司台灣分公司 台北市大安區仁愛路三段136號6樓",
        medManufact:"Qingdao London Durex Co., Ltd. No. 1-13 Shangma Park, Aodong Road, Qingdao city, China" },
    ],
  };
  const bucket = samples[sample];
  return Array.from({ length: n }).map((_, i) => baseSku(bucket[i % bucket.length]));
};

// 4 batches × applicants — matches the wireframe screenshot
const SEED_FORMS = [
  {
    // Submitted, Samantha hasn't uploaded images yet → her work queue
    id: "CF-001", applicant: "NEILSON", batch: "Phase_111新品05_09",
    status: "submitted", imgStatus: "no", syncStatus: "no",
    updated: "20260519 15:36", created: "20260518 11:20",
    items: seedItems(6, "snack"),
  },
  {
    id: "CF-002", applicant: "NEILSON", batch: "Phase_111新品05_08",
    status: "editing", imgStatus: "no", syncStatus: "no",
    updated: "20260518 15:36", created: "20260516 09:00",
    items: seedItems(11, "milk"),
  },
  {
    id: "CF-003", applicant: "DANNY", batch: "Phase_111新品05_08",
    status: "editing", imgStatus: "no", syncStatus: "no",
    updated: "20260518 15:26", created: "20260517 14:00",
    items: seedItems(3, "meat"),
  },
  {
    // Fully done: images uploaded + synced to master
    id: "CF-004", applicant: "JOY", batch: "Phase_111新品05_08",
    status: "submitted", imgStatus: "yes", syncStatus: "yes",
    updated: "20260518 15:16", created: "20260516 16:30",
    items: seedItems(10, "snack").concat(seedItems(2, "adult")).slice(0, 10),
  },
  {
    // Samantha done, Johnny hasn't synced → Johnny's queue
    id: "CF-005", applicant: "AMY", batch: "Phase_111新品04_25",
    status: "submitted", imgStatus: "yes", syncStatus: "no",
    updated: "20260512 10:15", created: "20260510 09:00",
    items: seedItems(8, "milk"),
  },
  {
    id: "CF-006", applicant: "NEILSON", batch: "Phase_111新品04_25",
    status: "submitted", imgStatus: "yes", syncStatus: "yes",
    updated: "20260511 17:20", created: "20260510 10:30",
    items: seedItems(4, "meat"),
  },
  {
    id: "CF-007", applicant: "WAYNE", batch: "Phase_111新品04_18",
    status: "editing", imgStatus: "no", syncStatus: "no",
    updated: "20260505 11:45", created: "20260504 09:00",
    items: seedItems(2, "adult"),
  },
];

const PAGE_SIZES = [50, 100, 200];

const IMG_KEYS = ["imgMain", "imgActivity", "imgNutrition", "imgScene1", "imgScene2", "imgScene3", "imgScene4"];

const SYNTH_IMG_MARKER = { key: "_imgMarker", label: "圖片標記", group: "H", w: 90, synthetic: true };

// ===== 商品主檔 — BATCH_NAMES (for 批次名稱 ChipFilter) =================
const BATCH_NAMES = [
  "Phase_111新品05_09",
  "Phase_112新品05_16",
  "Phase_113美國週商品",
  "Phase_114新品06_01",
];

// ===== 商品主檔 — PRODUCT_MASTER mock data ================================
// 從已送出建立單的品項衍生，補上群組資訊與批次來源。
const PRODUCT_MASTER = [
  {
    batch:"Phase_111新品05_09", groupId:"G-001", groupName:"蘇菲衛生棉系列",
    barcode:"4710054160235", name:"蘇菲瞬吸加長超薄護墊天然無香(15.5CM/32片 x 2包/組)",
    saleStatus:"discontinued",
    supplierNo:"110550", supplierName:"欣新網",
    mainCat:"紙棉製品", subCat:"衛生棉", brand:"蘇菲", series:"瞬吸加長超薄",
    imageUrl:"", imgMain:"", imgActivity:"", imgNutrition:"", imgScene1:"", imgScene2:"", imgScene3:"", imgScene4:"", deliv:"統配", competitorPrice:"", promoType:"",  altItem:"",
    cost:57.3, listPrice:88, suggestPrice:88, marginPct:"31.63%",
    tier:"T1", region:"全", stores:"", temp:"常溫",
    lengthCm:16, widthCm:11, heightCm:6, weightG:"", unit:"組",
    specNum:32, specUnit:"片", saleCount:2, packCount:32,
    desc:"本產品之製造日期、有效期限、商品成分與適用注意事項皆標示於包裝或產品中，圖片及產品文案僅供參考，若有變動敬請以實際商品為準。",
    origin:"臺灣", meatOrigin:"", vegType:"", foodBizNo:"", prodLiability:"", medLicense:"", licenseOwner:"", manufacturer:"",
    specSummary:"應稅 · 最低訂量18 · 效期1080天", taxRate:"應稅", minOrder:18, shelfDays:1080,
    hold:false, expType:"日/月/年", imported:"台灣", returnDays:"5",
    monthRevenue:"", origCost:"", promoCost:"", promoStart:"", promoEnd:"",
    checkSku:true, checkCat:true, reviewComment:"", infoNote:"",
  },
  {
    batch:"Phase_111新品05_09", groupId:"G-002", groupName:"林鳳營鮮乳",
    barcode:"4710063312168", name:"林鳳營全脂鮮乳 期間限定超值組(1857ml+630ml)",
    saleStatus:"normal",
    supplierNo:"110071", supplierName:"味全冷藏-免稅",
    mainCat:"冷藏乳飲", subCat:"鮮乳", brand:"林鳳營", series:"",
    imageUrl:"", imgMain:"", imgActivity:"", imgNutrition:"", imgScene1:"", imgScene2:"", imgScene3:"", imgScene4:"", deliv:"日配", competitorPrice:"", promoType:"",  altItem:"",
    cost:191.3, listPrice:274, suggestPrice:274, marginPct:"26.69%",
    tier:"T1", region:"全", stores:"", temp:"冷藏",
    lengthCm:18, widthCm:9, heightCm:26, weightG:"", unit:"組",
    specNum:2487, specUnit:"ml", saleCount:1, packCount:"",
    desc:"本產品之製造日期、有效期限、商品成分與適用注意事項皆標示於包裝或產品中，圖片及產品文案僅供參考，若有變動敬請以實際商品為準。",
    origin:"臺灣", meatOrigin:"", vegType:"", foodBizNo:"", prodLiability:"", medLicense:"", licenseOwner:"", manufacturer:"",
    specSummary:"免稅 · 最低訂量1 · 效期13天", taxRate:"免稅", minOrder:1, shelfDays:13,
    hold:false, expType:"年/月/日", imported:"台灣", returnDays:"",
    monthRevenue:"", origCost:"", promoCost:"", promoStart:"", promoEnd:"",
    checkSku:true, checkCat:true, reviewComment:"", infoNote:"",
  },
  {
    batch:"Phase_112新品05_16", groupId:"G-003", groupName:"Häagen-Dazs 冰淇淋",
    barcode:"074570334117", name:"Häagen-Dazs 草莓冰淇淋 品脫 473ml",
    saleStatus:"normal",
    supplierNo:"110910", supplierName:"通用磨坊-哈根達斯",
    mainCat:"冷凍食品", subCat:"冰品", brand:"Häagen-Dazs", series:"品脫",
    imageUrl:"", imgMain:"", imgActivity:"", imgNutrition:"", imgScene1:"", imgScene2:"", imgScene3:"", imgScene4:"", deliv:"統配", competitorPrice:"", promoType:"",  altItem:"",
    cost:238.1, listPrice:369, suggestPrice:369, marginPct:"32.25%",
    tier:"T1", region:"全", stores:"", temp:"冷凍",
    lengthCm:10, widthCm:10, heightCm:10, weightG:"", unit:"個",
    specNum:473, specUnit:"ml", saleCount:1, packCount:"",
    desc:"本產品之製造日期、有效期限、商品成分與適用注意事項皆標示於包裝或產品中，圖片及產品文案僅供參考，若有變動敬請以實際商品為準。",
    origin:"法國", meatOrigin:"", vegType:"", foodBizNo:"", prodLiability:"", medLicense:"", licenseOwner:"", manufacturer:"",
    specSummary:"應稅 · 最低訂量8 · 效期420天", taxRate:"應稅", minOrder:8, shelfDays:420,
    hold:false, expType:"月/日/年", imported:"進口", returnDays:"",
    monthRevenue:"", origCost:"", promoCost:"", promoStart:"", promoEnd:"",
    checkSku:true, checkCat:true, reviewComment:"", infoNote:"",
  },
  {
    batch:"Phase_112新品05_16", groupId:"G-004", groupName:"Chobani 希臘優格",
    barcode:"9310653105696", name:"Chobani希臘式優格 香草160g",
    saleStatus:"normal",
    supplierNo:"110540", supplierName:"河洛",
    mainCat:"冷藏乳飲", subCat:"優格", brand:"Chobani", series:"",
    imageUrl:"", imgMain:"", imgActivity:"", imgNutrition:"", imgScene1:"", imgScene2:"", imgScene3:"", imgScene4:"", deliv:"統配", competitorPrice:"非UE: 官網促$160 長促$159(17.5%)", promoType:"長促 $159 (17.5%)", altItem:"",
    cost:126, listPrice:189, suggestPrice:189, marginPct:"30.00%",
    tier:"T0", region:"全", stores:"", temp:"冷藏",
    lengthCm:"", widthCm:"", heightCm:"", weightG:"", unit:"杯",
    specNum:160, specUnit:"g", saleCount:1, packCount:"",
    desc:"◆空運來台，100% 澳洲在地鮮乳製作◆ 奶香醇厚，質地濃厚順滑◆ 不含防腐劑、人工香料等",
    origin:"澳大利亞", meatOrigin:"", vegType:"", foodBizNo:"", prodLiability:"", medLicense:"", licenseOwner:"", manufacturer:"",
    specSummary:"應稅 · 最低訂量8 · 效期60天", taxRate:"應稅", minOrder:8, shelfDays:60,
    hold:false, expType:"日/月/年", imported:"進口", returnDays:"",
    monthRevenue:15000, origCost:"", promoCost:"", promoStart:"", promoEnd:"",
    checkSku:true, checkCat:true, reviewComment:"", infoNote:"",
  },
  {
    batch:"Phase_112新品05_16", groupId:"G-004", groupName:"Chobani 希臘優格",
    barcode:"9310653105641", name:"Chobani希臘式優格-草莓160g",
    saleStatus:"normal",
    supplierNo:"110540", supplierName:"河洛",
    mainCat:"冷藏乳飲", subCat:"優格", brand:"Chobani", series:"",
    imageUrl:"", imgMain:"", imgActivity:"", imgNutrition:"", imgScene1:"", imgScene2:"", imgScene3:"", imgScene4:"", deliv:"統配", competitorPrice:"", promoType:"", altItem:"",
    cost:126, listPrice:189, suggestPrice:189, marginPct:"30.00%",
    tier:"T0", region:"全", stores:"", temp:"冷藏",
    lengthCm:"", widthCm:"", heightCm:"", weightG:"", unit:"杯",
    specNum:160, specUnit:"g", saleCount:1, packCount:"",
    desc:"◆空運來台，100% 澳洲在地鮮乳製作◆ 奶香醇厚，質地濃厚順滑◆ 不含防腐劑、人工香料等",
    origin:"澳大利亞", meatOrigin:"", vegType:"", foodBizNo:"", prodLiability:"", medLicense:"", licenseOwner:"", manufacturer:"",
    specSummary:"應稅 · 最低訂量8 · 效期60天", taxRate:"應稅", minOrder:8, shelfDays:60,
    hold:false, expType:"日/月/年", imported:"進口", returnDays:"",
    monthRevenue:12000, origCost:"", promoCost:"", promoStart:"", promoEnd:"",
    checkSku:true, checkCat:true, reviewComment:"", infoNote:"",
  },
  {
    batch:"Phase_113美國週商品", groupId:"G-005", groupName:"賀氏起司條系列",
    barcode:"0072600062290", name:"賀氏烘培起司條墨西哥香辣170G",
    saleStatus:"outOfStock",
    supplierNo:"110620", supplierName:"友暉",
    mainCat:"糖果零食", subCat:"洋芋片", brand:"賀氏", series:"起司條",
    imageUrl:"", imgMain:"", imgActivity:"", imgNutrition:"", imgScene1:"", imgScene2:"", imgScene3:"", imgScene4:"", deliv:"統配", competitorPrice:"", promoType:"美國週商品", altItem:"",
    cost:116.67, listPrice:175, suggestPrice:175, marginPct:"30.00%",
    tier:"T2", region:"雙北", stores:"", temp:"常溫",
    lengthCm:"", widthCm:"", heightCm:"", weightG:"", unit:"包",
    specNum:170, specUnit:"g", saleCount:1, packCount:12,
    desc:"本產品之製造日期、有效期限、商品成分與適用注意事項皆標示於包裝或產品中，圖片及產品文案僅供參考，若有變動敬請以實際商品為準。",
    origin:"美國", meatOrigin:"", vegType:"", foodBizNo:"", prodLiability:"", medLicense:"", licenseOwner:"", manufacturer:"",
    specSummary:"應稅 · 最低訂量12 · 效期365天", taxRate:"應稅", minOrder:12, shelfDays:365,
    hold:false, expType:"日/月/年", imported:"進口", returnDays:"5",
    monthRevenue:"", origCost:"", promoCost:"", promoStart:"", promoEnd:"",
    checkSku:false, checkCat:true, reviewComment:"品號待確認",
  },
  {
    batch:"Phase_113美國週商品", groupId:"G-005", groupName:"賀氏起司條系列",
    barcode:"0072600062306", name:"賀氏烘焙起司條香濃起司170G",
    saleStatus:"outOfStock",
    supplierNo:"110620", supplierName:"友暉",
    mainCat:"糖果零食", subCat:"洋芋片", brand:"賀氏", series:"起司條",
    imageUrl:"", imgMain:"", imgActivity:"", imgNutrition:"", imgScene1:"", imgScene2:"", imgScene3:"", imgScene4:"", deliv:"統配", competitorPrice:"", promoType:"美國週商品", altItem:"",
    cost:116.67, listPrice:175, suggestPrice:175, marginPct:"30.00%",
    tier:"T2", region:"雙北", stores:"新竹店", temp:"常溫",
    lengthCm:"", widthCm:"", heightCm:"", weightG:"", unit:"包",
    specNum:170, specUnit:"g", saleCount:1, packCount:12,
    desc:"本產品之製造日期、有效期限、商品成分與適用注意事項皆標示於包裝或產品中，圖片及產品文案僅供參考，若有變動敬請以實際商品為準。",
    origin:"美國", meatOrigin:"", vegType:"", foodBizNo:"", prodLiability:"", medLicense:"", licenseOwner:"", manufacturer:"",
    specSummary:"應稅 · 最低訂量12 · 效期365天", taxRate:"應稅", minOrder:12, shelfDays:365,
    hold:false, expType:"日/月/年", imported:"進口", returnDays:"5",
    monthRevenue:"", origCost:"", promoCost:"", promoStart:"", promoEnd:"",
    checkSku:false, checkCat:true, reviewComment:"品號待確認",
  },
  {
    batch:"Phase_113美國週商品", groupId:"G-006", groupName:"賀氏玉米棒系列",
    barcode:"0072600054028", name:"賀氏香脆起司玉米棒原味227G",
    saleStatus:"normal",
    supplierNo:"110620", supplierName:"友暉",
    mainCat:"糖果零食", subCat:"洋芋片", brand:"賀氏", series:"玉米棒",
    imageUrl:"", imgMain:"", imgActivity:"", imgNutrition:"", imgScene1:"", imgScene2:"", imgScene3:"", imgScene4:"", deliv:"統配", competitorPrice:"", promoType:"美國週商品", altItem:"",
    cost:123.34, listPrice:185, suggestPrice:185, marginPct:"30.00%",
    tier:"T2", region:"雙北", stores:"", temp:"常溫",
    lengthCm:"", widthCm:"", heightCm:"", weightG:"", unit:"包",
    specNum:227, specUnit:"g", saleCount:1, packCount:8,
    desc:"本產品之製造日期、有效期限、商品成分與適用注意事項皆標示於包裝或產品中，圖片及產品文案僅供參考，若有變動敬請以實際商品為準。",
    origin:"美國", meatOrigin:"", vegType:"", foodBizNo:"", prodLiability:"", medLicense:"", licenseOwner:"", manufacturer:"",
    specSummary:"應稅 · 最低訂量12 · 效期365天", taxRate:"應稅", minOrder:12, shelfDays:365,
    hold:false, expType:"日/月/年", imported:"進口", returnDays:"",
    monthRevenue:"", origCost:"", promoCost:"", promoStart:"", promoEnd:"",
    checkSku:false, checkCat:true, reviewComment:"",
  },
  {
    batch:"Phase_114新品06_01", groupId:"G-007", groupName:"賈以食日拌麵",
    barcode:"4711676950013", name:"賈以食日-麻花麵381g",
    saleStatus:"normal",
    supplierNo:"110830", supplierName:"智護健康",
    mainCat:"米油雜糧", subCat:"拌麵", brand:"賈以食日", series:"嚴選手摺細麵",
    imageUrl:"", imgMain:"", imgActivity:"", imgNutrition:"", imgScene1:"", imgScene2:"", imgScene3:"", imgScene4:"", deliv:"統配",
    competitorPrice:"UE: Mia $254 非UE: MOMO/PC $209、官網原價 $249 長促 $239 (27%)",
    promoType:"長促 $239 (27%)", altItem:"",
    cost:166, listPrice:249, suggestPrice:249, marginPct:"30.00%",
    tier:"T2", region:"全", stores:"", temp:"常溫",
    lengthCm:16, widthCm:16, heightCm:11, weightG:"", unit:"包",
    specNum:"", specUnit:"", saleCount:1, packCount:"",
    desc:"嚴選手摺細麵 蛋白質含量高 香醇白芝麻醬大紅袍花椒油",
    origin:"臺灣", meatOrigin:"", vegType:"", foodBizNo:"", prodLiability:"", medLicense:"", licenseOwner:"", manufacturer:"",
    specSummary:"應稅 · 最低訂量12 · 效期365天", taxRate:"應稅", minOrder:12, shelfDays:365,
    hold:false, expType:"年/月/日", imported:"台灣", returnDays:"可退",
    monthRevenue:"", origCost:"", promoCost:"", promoStart:"", promoEnd:"",
    checkSku:false, checkCat:true, reviewComment:"",
  },
  {
    batch:"Phase_114新品06_01", groupId:"G-008", groupName:"湯瑪仕肉舖伊比利豬",
    barcode:"8806050000005", name:"湯瑪仕肉舖 冷凍西班牙伊比利黑豬梅花肉排薄片170g±5%",
    saleStatus:"onHold",
    supplierNo:"110460", supplierName:"湯瑪仕肉舖-免稅",
    mainCat:"肉品", subCat:"豬肉/羊肉", brand:"湯瑪仕肉舖", series:"",
    imageUrl:"", imgMain:"", imgActivity:"", imgNutrition:"", imgScene1:"", imgScene2:"", imgScene3:"", imgScene4:"", deliv:"統配",
    competitorPrice:"UE(湯瑪仕):$289 非UE(湯瑪仕官網):$289",
    promoType:"長促:EO/$289(M%:31%) 深促:BOGO/$499(M%:25%)", altItem:"冷凍日本A5和牛紐約克肉片 200g",
    cost:190, listPrice:299, suggestPrice:289, marginPct:"30.97%",
    tier:"T2", region:"全", stores:"", temp:"冷凍",
    lengthCm:23, widthCm:17.5, heightCm:3, weightG:"", unit:"個",
    specNum:170, specUnit:"g", saleCount:1, packCount:"",
    desc:"來自西班牙伊比利豬，是珍貴的豬種。使其油脂雖豐潤卻不膩口，細緻的肉質中散發出淡淡的榛果香。擁有豬肉界愛瑪仕、勞斯萊斯的美名，與松露、鵝肝、魚子醬並列「歐洲夢幻傳奇食材」！",
    origin:"西班牙", meatOrigin:"西班牙", vegType:"", foodBizNo:"A-116299435-00001-8", prodLiability:"國泰產險156字第07PD03923號", medLicense:"", licenseOwner:"", manufacturer:"",
    specSummary:"免稅 · 最低訂量30 · 效期300天", taxRate:"免稅", minOrder:30, shelfDays:300,
    hold:false, expType:"年/月.(到期日為該月月底)", imported:"進口", returnDays:"",
    monthRevenue:"", origCost:190, promoCost:289, promoStart:"2026-05-01", promoEnd:"2026-07-31",
    checkSku:true, checkCat:true, reviewComment:"", infoNote:"",
  },
  // ── Collection Offer 用品號（promoPrice / pacing / externalId 為 CO 專用欄位）──
  { barcode:"4710088001001", name:"統一 純萃喝 礦泉水 1500ml",    cost:18,  listPrice:38,  suggestPrice:35,  promoPrice:32,  pacing:18.42, externalId:"ext-001" },
  { barcode:"4710088002002", name:"光泉 低脂鮮乳 936ml",           cost:55,  listPrice:92,  suggestPrice:89,  promoPrice:79,  pacing:6.73,  externalId:"ext-002" },
  { barcode:"4710088003003", name:"義美 小泡芙 牛奶口味 57g",      cost:22,  listPrice:42,  suggestPrice:39,  promoPrice:35,  pacing:24.10, externalId:"ext-003" },
  { barcode:"4710088004004", name:"舒跑 運動飲料 590ml",            cost:20,  listPrice:38,  suggestPrice:35,  promoPrice:32,  pacing:null,  externalId:"ext-004" },
  { barcode:"4710088005005", name:"可口可樂 寶特瓶 600ml",          cost:18,  listPrice:35,  suggestPrice:32,  promoPrice:28,  pacing:null,  externalId:"ext-005" },
  { barcode:"4710088006006", name:"桂格 即食燕麥片 800g",           cost:85,  listPrice:155, suggestPrice:149, promoPrice:139, pacing:11.28, externalId:"ext-006" },
  { barcode:"4710088007007", name:"泰山 八寶粥 375g",               cost:28,  listPrice:52,  suggestPrice:49,  promoPrice:45,  pacing:8.95,  externalId:"ext-007" },
  { barcode:"4710088008008", name:"聯華 波的多 薯條 120g",          cost:32,  listPrice:58,  suggestPrice:55,  promoPrice:48,  pacing:14.63, externalId:"ext-008" },
  { barcode:"4710088009009", name:"統一 蜂蜜檸檬水 500ml",          cost:15,  listPrice:30,  suggestPrice:28,  promoPrice:25,  pacing:3.21,  externalId:"ext-009" },
  { barcode:"4710088010010", name:"雪印 高鈣低脂鮮奶 936ml",        cost:62,  listPrice:105, suggestPrice:98,  promoPrice:89,  pacing:22.07, externalId:"ext-010" },
  { barcode:"4710088011011", name:"維力 炸醬麵 85g",                cost:12,  listPrice:25,  suggestPrice:22,  promoPrice:19,  pacing:31.44, externalId:"ext-011" },
  { barcode:"4710088012012", name:"義美 生乳捲 160g",               cost:55,  listPrice:92,  suggestPrice:88,  promoPrice:79,  pacing:9.36,  externalId:"ext-012" },
  { barcode:"4710088013013", name:"可果美 蕃茄汁 900ml",            cost:30,  listPrice:58,  suggestPrice:55,  promoPrice:48,  pacing:16.82, externalId:"ext-013" },
  { barcode:"4710088014014", name:"光泉 茉莉清茶 1500ml",           cost:25,  listPrice:48,  suggestPrice:45,  promoPrice:39,  pacing:12.55, externalId:"ext-014" },
];

// 商品主檔 → Figma 歷史菜單表 wireframe 99 欄（供 L1 全欄位顯示）
const pmParseMargin = (v) => {
  if (v == null || v === "") return null;
  if (typeof v === "number") return v;
  const n = parseFloat(String(v).replace("%", ""));
  return Number.isNaN(n) ? String(v) : n / 100;
};

const pmWireframeRow = (p) => {
  const externalData = p.externalData ?? p.externalId ?? p.barcode ?? null;
  const numOrNull = (v) => (v === "" || v == null ? null : +v);
  return {
    externalData,
    menu: p.menu ?? p.mainCat ?? null,
    category: p.category ?? p.subCat ?? null,
    analysisMainCat: p.analysisMainCat ?? p.segment1 ?? p.mainCat ?? null,
    analysisSubCat: p.analysisSubCat ?? p.segment2 ?? p.subCat ?? null,
    analysisChildCat: p.analysisChildCat ?? p.segment3 ?? null,
    groupSkuNo: p.groupSkuNo ?? p.groupId ?? null,
    groupSkuName: p.groupSkuName ?? p.groupName ?? null,
    skuNo: p.skuNo ?? p.barcode ?? null,
    itemName: p.itemName ?? p.name ?? null,
    isDescProduct: p.isDescProduct ?? false,
    title: p.title ?? p.name ?? null,
    newProductBatch: p.newProductBatch ?? p.batch ?? null,
    originalCost: numOrNull(p.originalCost ?? p.origCost),
    regularCost: numOrNull(p.regularCost ?? p.cost),
    costExTax: numOrNull(p.costExTax ?? p.cost),
    costIncTax: numOrNull(p.costIncTax),
    margin: pmParseMargin(p.margin ?? p.marginPct),
    listPrice: numOrNull(p.listPrice),
    regularPrice: numOrNull(p.regularPrice ?? p.suggestPrice),
    u1PromoPrice: numOrNull(p.u1PromoPrice),
    promoPrice: numOrNull(p.promoPrice),
    salesPrice: numOrNull(p.salesPrice),
    bundlePrice: numOrNull(p.bundlePrice),
    postSaleSubsidy: numOrNull(p.postSaleSubsidy),
    purchaseQty: numOrNull(p.purchaseQty),
    discountedQty: numOrNull(p.discountedQty),
    promoType: p.promoType ?? null,
    productMaster: p.productMaster ?? p.saleStatus ?? null,
    saleRegion: p.saleRegion ?? p.region ?? null,
    customStores: p.customStores ?? p.stores ?? null,
    grade: p.grade ?? p.tier ?? null,
    tempLayer: p.tempLayer ?? p.temp ?? null,
    saleStart: p.saleStart ?? p.promoStart ?? null,
    saleEnd: p.saleEnd ?? p.promoEnd ?? null,
    exitDate: p.exitDate ?? null,
    description: p.description ?? p.desc ?? null,
    specNum: numOrNull(p.specNum),
    specUnit: p.specUnit ?? null,
    saleQty: numOrNull(p.saleQty ?? p.saleCount),
    packQty: numOrNull(p.packQty ?? p.packCount),
    unit: p.unit ?? null,
    dimL: numOrNull(p.dimL ?? p.lengthCm),
    dimW: numOrNull(p.dimW ?? p.widthCm),
    dimH: numOrNull(p.dimH ?? p.heightCm),
    weight: p.weight ?? p.weightG ?? null,
    brand: p.brand ?? null,
    series: p.series ?? null,
    generalDesc: p.generalDesc ?? null,
    productDesc: p.productDesc ?? null,
    origin: p.origin ?? null,
    originFull: p.originFull ?? p.imported ?? null,
    meatOrigin: p.meatOrigin ?? null,
    vegetarian: p.vegetarian ?? p.vegType ?? null,
    foodBizNo: p.foodBizNo ?? null,
    productLiabIns: p.productLiabIns ?? p.prodLiability ?? null,
    medDeviceNo: p.medDeviceNo ?? p.medLicense ?? null,
    medDeviceOwner: p.medDeviceOwner ?? p.licenseOwner ?? null,
    manufacturer: p.manufacturer ?? null,
    imageUrl: p.imageUrl || p.imgMain || null,
    imagePromo: p.imagePromo ?? p.imgActivity ?? null,
    imageCalorie: p.imageCalorie ?? p.imgNutrition ?? null,
    imageScene1: p.imageScene1 ?? p.imgScene1 ?? null,
    imageScene2: p.imageScene2 ?? p.imgScene2 ?? null,
    imageScene3: p.imageScene3 ?? p.imgScene3 ?? null,
    imageScene4: p.imageScene4 ?? p.imgScene4 ?? null,
    expiry: numOrNull(p.expiry ?? p.shelfDays),
    expiryDisplay: p.expiryDisplay ?? p.expType ?? null,
    barcodeA: p.barcodeA ?? externalData,
    barcodeB: p.barcodeB ?? null,
    barcodeC: p.barcodeC ?? null,
    barcodeD: p.barcodeD ?? null,
    oracleItemNo: p.oracleItemNo ?? null,
    vat: numOrNull(p.vat),
    clearanceDays: numOrNull(p.clearanceDays),
    taxType: p.taxType ?? p.taxRate ?? null,
    moq: numOrNull(p.moq ?? p.minOrder),
    moa: numOrNull(p.moa),
    returnDays: p.returnDays ?? null,
    returnOrExchange: p.returnOrExchange ?? null,
    deliveryMethod: p.deliveryMethod ?? p.deliv ?? null,
    logisticsInfo: p.logisticsInfo ?? null,
    supplierNo: p.supplierNo ?? null,
    supplierName: p.supplierName ?? null,
    buyer: p.buyer ?? null,
    oracleReady: p.oracleReady ?? null,
    totalStock: numOrNull(p.totalStock),
    stock_zhongshan: numOrNull(p.stock_zhongshan),
    stock_zhonghe: numOrNull(p.stock_zhonghe),
    stock_neihu: numOrNull(p.stock_neihu),
    stock_sanchong: numOrNull(p.stock_sanchong),
    stock_xindian: numOrNull(p.stock_xindian),
    stock_daan: numOrNull(p.stock_daan),
    stock_beitou: numOrNull(p.stock_beitou),
    stock_shulin: numOrNull(p.stock_shulin),
    stock_jingwu: numOrNull(p.stock_jingwu),
    stock_taoyuan: numOrNull(p.stock_taoyuan),
    stock_nantun: numOrNull(p.stock_nantun),
    stock_hsinchu: numOrNull(p.stock_hsinchu),
  };
};

// ===== 進價歷史總表 — constants ============================================
const RECORD_SOURCES = ["新商品建立", "價格調整", "人工建立"];
const CURRENCIES     = ["TWD", "USD"];

// ===== 進價歷史總表 — PRICE_HISTORY mock data ==============================
// Log 性質：同品號可有多筆（不同日期區間的進價紀錄）
const PRICE_HISTORY = [
  // ── 三養火辣雞肉風味鐵板炒麵（4 筆，同品號）──
  {
    barcode:"8801073143722", name:"三養火辣雞肉風味鐵板炒麵-粉紅醬風味 140g*5入",
    supplierNo:"220431", supplierShort:"河洛", supplierName:"河洛貿易有限公司",
    vendorSku:"SAMYANG-PNK-140-5", recordSource:"新商品建立", stockCategory:"商品存貨",
    mainCat:"泡麵", subCat:"乾麵", specSummary:"140g×5入", currency:"TWD",
    costExTax:196.43, costIncTax:196.43, taxRatePct:0, taxable:false,
    pricedDate:"2026-04-22", effectiveDate:"2026-04-24", expiryDate:"2026-05-28",
    effectiveStatus:"active",
    unitPerCase:8, caseWeightKg:5.6, packUnit:"組", warehouse:"A1", approvedBy:"Samantha",
    createdDate:"2026-04-22", adjNote:"",
  },
  {
    barcode:"8801073143722", name:"三養火辣雞肉風味鐵板炒麵-粉紅醬風味 140g*5入",
    supplierNo:"220431", supplierShort:"河洛", supplierName:"河洛貿易有限公司",
    vendorSku:"SAMYANG-PNK-140-5", recordSource:"價格調整", stockCategory:"商品存貨",
    mainCat:"泡麵", subCat:"乾麵", specSummary:"140g×5入", currency:"TWD",
    costExTax:192.14, costIncTax:201.75, taxRatePct:5, taxable:true,
    pricedDate:"2026-04-01", effectiveDate:"2026-04-03", expiryDate:"2026-04-30",
    effectiveStatus:"expired",
    unitPerCase:8, caseWeightKg:5.6, packUnit:"組", warehouse:"A1", approvedBy:"Samantha",
    createdDate:"2026-04-01", adjNote:"",
  },
  {
    barcode:"8801073143722", name:"三養火辣雞肉風味鐵板炒麵-粉紅醬風味 140g*5入",
    supplierNo:"220431", supplierShort:"河洛", supplierName:"河洛貿易有限公司",
    vendorSku:"SAMYANG-PNK-140-5", recordSource:"價格調整", stockCategory:"商品存貨",
    mainCat:"泡麵", subCat:"乾麵", specSummary:"140g×5入", currency:"TWD",
    costExTax:192.14, costIncTax:201.75, taxRatePct:5, taxable:true,
    pricedDate:"2026-03-04", effectiveDate:"2026-03-06", expiryDate:"2026-04-09",
    effectiveStatus:"expired",
    unitPerCase:8, caseWeightKg:5.6, packUnit:"組", warehouse:"A1", approvedBy:"Samantha",
    createdDate:"2026-03-04", adjNote:"",
  },
  {
    barcode:"8801073143722", name:"三養火辣雞肉風味鐵板炒麵-粉紅醬風味 140g*5入",
    supplierNo:"220431", supplierShort:"河洛", supplierName:"河洛貿易有限公司",
    vendorSku:"SAMYANG-PNK-140-5", recordSource:"新商品建立", stockCategory:"商品存貨",
    mainCat:"泡麵", subCat:"乾麵", specSummary:"140g×5入", currency:"TWD",
    costExTax:210.00, costIncTax:220.50, taxRatePct:5, taxable:true,
    pricedDate:"2025-09-09", effectiveDate:"2025-09-11", expiryDate:"2025-09-11",
    effectiveStatus:"expired",
    unitPerCase:8, caseWeightKg:5.6, packUnit:"組", warehouse:"A1", approvedBy:"Samantha",
    createdDate:"2025-09-09", adjNote:"初次建檔",
  },
  // ── 蘇菲衛生棉（2 筆）──
  {
    barcode:"4710054160235", name:"蘇菲瞬吸加長超薄護墊天然無香(15.5CM/32片 x 2包/組)",
    supplierNo:"110550", supplierShort:"欣新網", supplierName:"欣新網股份有限公司",
    vendorSku:"SOFY-LL-32-2P", recordSource:"新商品建立", stockCategory:"商品存貨",
    mainCat:"紙棉製品", subCat:"衛生棉", specSummary:"32片×2包", currency:"TWD",
    costExTax:57.30, costIncTax:57.30, taxRatePct:0, taxable:false,
    pricedDate:"2026-03-10", effectiveDate:"2026-03-12", expiryDate:"2026-12-31",
    effectiveStatus:"active",
    unitPerCase:12, caseWeightKg:4.2, packUnit:"組", warehouse:"B2", approvedBy:"Johnny",
    createdDate:"2026-03-10", adjNote:"",
  },
  {
    barcode:"4710054160235", name:"蘇菲瞬吸加長超薄護墊天然無香(15.5CM/32片 x 2包/組)",
    supplierNo:"110550", supplierShort:"欣新網", supplierName:"欣新網股份有限公司",
    vendorSku:"SOFY-LL-32-2P", recordSource:"新商品建立", stockCategory:"商品存貨",
    mainCat:"紙棉製品", subCat:"衛生棉", specSummary:"32片×2包", currency:"TWD",
    costExTax:55.00, costIncTax:55.00, taxRatePct:0, taxable:false,
    pricedDate:"2025-09-01", effectiveDate:"2025-09-03", expiryDate:"2026-03-11",
    effectiveStatus:"expired",
    unitPerCase:12, caseWeightKg:4.2, packUnit:"組", warehouse:"B2", approvedBy:"Johnny",
    createdDate:"2025-09-01", adjNote:"",
  },
  // ── Chobani 優格（2 筆）──
  {
    barcode:"818290012235", name:"Chobani 希臘優格 原味 907g",
    supplierNo:"220431", supplierShort:"河洛", supplierName:"河洛貿易有限公司",
    vendorSku:"CHOB-PLN-907", recordSource:"新商品建立", stockCategory:"商品存貨",
    mainCat:"冷藏乳品", subCat:"優格", specSummary:"907g", currency:"USD",
    costExTax:4.80, costIncTax:5.04, taxRatePct:5, taxable:true,
    pricedDate:"2026-04-20", effectiveDate:"2026-04-22", expiryDate:"2026-07-31",
    effectiveStatus:"active",
    unitPerCase:6, caseWeightKg:6.0, packUnit:"瓶", warehouse:"C1", approvedBy:"Samantha",
    createdDate:"2026-04-20", adjNote:"美金計價，匯率 32.5",
  },
  {
    barcode:"818290012235", name:"Chobani 希臘優格 原味 907g",
    supplierNo:"220431", supplierShort:"河洛", supplierName:"河洛貿易有限公司",
    vendorSku:"CHOB-PLN-907", recordSource:"價格調整", stockCategory:"商品存貨",
    mainCat:"冷藏乳品", subCat:"優格", specSummary:"907g", currency:"USD",
    costExTax:4.60, costIncTax:4.83, taxRatePct:5, taxable:true,
    pricedDate:"2025-10-01", effectiveDate:"2025-10-03", expiryDate:"2026-04-21",
    effectiveStatus:"expired",
    unitPerCase:6, caseWeightKg:6.0, packUnit:"瓶", warehouse:"C1", approvedBy:"Samantha",
    createdDate:"2025-10-01", adjNote:"",
  },
  // ── Häagen-Dazs（1 筆）──
  {
    barcode:"8887290000123", name:"Häagen-Dazs 草莓冰淇淋 457ml",
    supplierNo:"330210", supplierShort:"聯華", supplierName:"聯華食品工業股份有限公司",
    vendorSku:"HD-STR-457", recordSource:"人工建立", stockCategory:"商品存貨",
    mainCat:"冷凍甜品", subCat:"冰淇淋", specSummary:"457ml", currency:"TWD",
    costExTax:198.00, costIncTax:207.90, taxRatePct:5, taxable:true,
    pricedDate:"2026-02-14", effectiveDate:"2026-02-16", expiryDate:"2026-08-31",
    effectiveStatus:"active",
    unitPerCase:4, caseWeightKg:2.8, packUnit:"盒", warehouse:"D3", approvedBy:"Samantha",
    createdDate:"2026-02-14", adjNote:"",
  },
  // ── 林鳳營鮮乳（1 筆）──
  {
    barcode:"4714812000001", name:"林鳳營特級鮮乳 936ml",
    supplierNo:"110880", supplierShort:"味全", supplierName:"味全食品工業股份有限公司",
    vendorSku:"LFY-936", recordSource:"新商品建立", stockCategory:"商品存貨",
    mainCat:"冷藏乳品", subCat:"鮮乳", specSummary:"936ml", currency:"TWD",
    costExTax:72.00, costIncTax:72.00, taxRatePct:0, taxable:false,
    pricedDate:"2026-01-08", effectiveDate:"2026-01-10", expiryDate:"2026-12-31",
    effectiveStatus:"active",
    unitPerCase:12, caseWeightKg:13.0, packUnit:"瓶", warehouse:"C1", approvedBy:"Johnny",
    createdDate:"2026-01-08", adjNote:"免稅農產品",
  },
];

// ===== 轉廠商調整（ADJ-A）— constants & mock data =========================
const ADJ_BATCH_LIBRARY = [
  "Phase_111週次05_09廠商調整",
  "Phase_111週次05_16廠商調整",
  "Phase_112新品廠商調整",
  "Phase_113美國週廠商調整",
  "Phase_114新品廠商調整",
];

const SALE_STATUS_LABELS = {
  normal:       "正常販售",
  onHold:       "暫緩上架",
  outOfStock:   "缺貨",
  discontinued: "下架",
};

const adjRow = (over = {}) => {
  const uid = "adj-r" + Math.random().toString(36).slice(2, 9);
  const now = "20260525 09:00";
  return {
    uid,
    barcode: "", name: "", mainCat: "", subCat: "", segment3: "",
    saleStatus: "normal", taxType: "應稅",
    oldSupplierNo: "", oldSupplierName: "", oldCost: 0, oldSuggestPrice: 0,
    newSupplierNo: "", newSupplierName: "", newCost: 0, newSuggestPrice: 0,
    effectiveDate: "", adjNote: "",
    rowStatus: "",   // "": editing | "adjPending" | "adjApproved" | "adjRejected"
    reviewPass: "", rejectReason: "",
    erpUpdated: false, oracleUpdated: false, menuUpdated: false,
    createdAt: now, updatedAt: now,
    ...over,
  };
};

const ADJ_BATCHES = [
  // ── ADJ-001：全數審核通過 ─────────────────────────────────────────────
  {
    id: "ADJ-001", batchName: "Phase_111週次05_09廠商調整",
    applicant: "NEILSON", submitted: true,
    createdAt: "20260519 09:00", updatedAt: "20260524 16:30",
    rows: [
      adjRow({
        uid: "adj-r001",
        barcode: "4710063312168", name: "林鳳營全脂鮮乳 期間限定超值組(1857ml+630ml)",
        mainCat: "冷藏乳飲", subCat: "鮮乳", segment3: "Milk & Dairy",
        saleStatus: "normal", taxType: "免稅",
        oldSupplierNo: "110071", oldSupplierName: "味全冷藏-免稅",
        oldCost: 191.3, oldSuggestPrice: 274,
        newSupplierNo: "110072", newSupplierName: "味全乳業",
        newCost: 185, newSuggestPrice: 270,
        effectiveDate: "2026-06-01", adjNote: "廠商升級合約",
        rowStatus: "adjApproved", reviewPass: "yes", rejectReason: "",
        erpUpdated: true, oracleUpdated: true, menuUpdated: true,
        createdAt: "20260519 09:00", updatedAt: "20260524 10:00",
      }),
      adjRow({
        uid: "adj-r002",
        barcode: "9310653105696", name: "Chobani希臘式優格 香草160g",
        mainCat: "冷藏乳飲", subCat: "優格", segment3: "Milk & Dairy",
        saleStatus: "normal", taxType: "應稅",
        oldSupplierNo: "110540", oldSupplierName: "河洛",
        oldCost: 126, oldSuggestPrice: 189,
        newSupplierNo: "110541", newSupplierName: "河洛貿易",
        newCost: 122, newSuggestPrice: 185,
        effectiveDate: "2026-06-01", adjNote: "",
        rowStatus: "adjApproved", reviewPass: "yes", rejectReason: "",
        erpUpdated: true, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260519 09:00", updatedAt: "20260524 10:05",
      }),
      adjRow({
        uid: "adj-r003",
        barcode: "8806050000005", name: "湯瑪仕肉舖 冷凍西班牙伊比利黑豬梅花肉排薄片170g±5%",
        mainCat: "肉品", subCat: "豬肉/羊肉", segment3: "Meat & Seafood",
        saleStatus: "onHold", taxType: "免稅",
        oldSupplierNo: "110460", oldSupplierName: "湯瑪仕肉舖-免稅",
        oldCost: 190, oldSuggestPrice: 289,
        newSupplierNo: "110461", newSupplierName: "湯瑪仕肉舖",
        newCost: 185, newSuggestPrice: 285,
        effectiveDate: "2026-06-01", adjNote: "廠商統一，移除免稅後綴",
        rowStatus: "adjApproved", reviewPass: "yes", rejectReason: "",
        erpUpdated: false, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260519 09:00", updatedAt: "20260524 10:10",
      }),
    ],
  },
  // ── ADJ-002：混合審核狀態（通過 + 拒絕 + 重新送出）──────────────────
  {
    id: "ADJ-002", batchName: "Phase_111週次05_16廠商調整",
    applicant: "DANNY", submitted: true,
    createdAt: "20260521 14:00", updatedAt: "20260524 11:20",
    rows: [
      adjRow({
        uid: "adj-r004",
        barcode: "0072600062290", name: "賀氏烘培起司條墨西哥香辣170G",
        mainCat: "糖果零食", subCat: "洋芋片", segment3: "Snacks & Candies",
        saleStatus: "normal", taxType: "應稅",
        oldSupplierNo: "110620", oldSupplierName: "友暉",
        oldCost: 116.67, oldSuggestPrice: 175,
        newSupplierNo: "110621", newSupplierName: "友暉食品",
        newCost: 110, newSuggestPrice: 169,
        effectiveDate: "2026-06-15", adjNote: "",
        rowStatus: "adjApproved", reviewPass: "yes", rejectReason: "",
        erpUpdated: false, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260521 14:00", updatedAt: "20260524 11:00",
      }),
      adjRow({
        uid: "adj-r005",
        barcode: "0072600062306", name: "賀氏烘焙起司條香濃起司170G",
        mainCat: "糖果零食", subCat: "洋芋片", segment3: "Snacks & Candies",
        saleStatus: "outOfStock", taxType: "應稅",
        oldSupplierNo: "110620", oldSupplierName: "友暉",
        oldCost: 116.67, oldSuggestPrice: 175,
        newSupplierNo: "110621", newSupplierName: "友暉食品",
        newCost: 110, newSuggestPrice: 169,
        effectiveDate: "2026-06-15", adjNote: "",
        rowStatus: "adjRejected", reviewPass: "no",
        rejectReason: "此品項販售狀態為缺貨，請確認缺貨原因後再重新送出",
        erpUpdated: false, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260521 14:00", updatedAt: "20260524 11:05",
      }),
      adjRow({
        uid: "adj-r006",
        barcode: "4711676950013", name: "賈以食日-麻花麵381g",
        mainCat: "米油雜糧", subCat: "拌麵", segment3: "Dry Goods & Staples",
        saleStatus: "normal", taxType: "應稅",
        oldSupplierNo: "110830", oldSupplierName: "智護健康",
        oldCost: 166, oldSuggestPrice: 249,
        newSupplierNo: "110831", newSupplierName: "智護食品",
        newCost: 160, newSuggestPrice: 245,
        effectiveDate: "2026-06-15", adjNote: "更新公司登記名稱",
        rowStatus: "adjPending", reviewPass: "", rejectReason: "",
        erpUpdated: false, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260521 14:00", updatedAt: "20260524 11:20",
      }),
    ],
  },
  // ── ADJ-003：已送審（全數待審核）──────────────────────────────────────
  {
    id: "ADJ-003", batchName: "Phase_112新品廠商調整",
    applicant: "NEILSON", submitted: true,
    createdAt: "20260523 10:00", updatedAt: "20260524 09:30",
    rows: [
      adjRow({
        uid: "adj-r007",
        barcode: "074570334117", name: "Häagen-Dazs 草莓冰淇淋 品脫 473ml",
        mainCat: "冷凍食品", subCat: "冰品", segment3: "Frozen Foods",
        saleStatus: "normal", taxType: "應稅",
        oldSupplierNo: "110910", oldSupplierName: "通用磨坊-哈根達斯",
        oldCost: 238.1, oldSuggestPrice: 369,
        newSupplierNo: "110911", newSupplierName: "通用磨坊",
        newCost: 230, newSuggestPrice: 360,
        effectiveDate: "2026-07-01", adjNote: "",
        rowStatus: "adjPending", reviewPass: "", rejectReason: "",
        createdAt: "20260523 10:00", updatedAt: "20260524 09:00",
      }),
      adjRow({
        uid: "adj-r008",
        barcode: "9310653105641", name: "Chobani希臘式優格-草莓160g",
        mainCat: "冷藏乳飲", subCat: "優格", segment3: "Milk & Dairy",
        saleStatus: "normal", taxType: "應稅",
        oldSupplierNo: "110540", oldSupplierName: "河洛",
        oldCost: 126, oldSuggestPrice: 189,
        newSupplierNo: "110541", newSupplierName: "河洛貿易",
        newCost: 120, newSuggestPrice: 182,
        effectiveDate: "2026-07-01", adjNote: "",
        rowStatus: "adjPending", reviewPass: "", rejectReason: "",
        createdAt: "20260523 10:00", updatedAt: "20260524 09:00",
      }),
    ],
  },
  // ── ADJ-004：編輯中（NEILSON 的草稿，未送審）4 筆＝2 乾淨 + 2 需修改（下架/缺貨）─
  // demo：送審 → 2 筆需修改擋送出 → 刪掉那 2 筆 → 剩 2 筆乾淨可直接送出成功。
  {
    id: "ADJ-004", batchName: "Phase_113美國週廠商調整",
    applicant: "NEILSON", submitted: false,
    createdAt: "20260524 15:00", updatedAt: "20260524 17:00",
    rows: [
      // 乾淨 1（normal、欄位齊全 → sysCheck 通過）
      adjRow({
        uid: "adj-r009",
        barcode: "0072600054028", name: "賀氏香脆起司玉米棒原味227G",
        mainCat: "糖果零食", subCat: "洋芋片", segment3: "Snacks & Candies",
        saleStatus: "normal", taxType: "應稅",
        oldSupplierNo: "110620", oldSupplierName: "友暉",
        oldCost: 123.34, oldSuggestPrice: 185,
        newSupplierNo: "110621", newSupplierName: "友暉食品",
        newCost: 118, newSuggestPrice: 179,
        effectiveDate: "2026-07-15", adjNote: "因應廠商更名",
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260524 17:00",
      }),
      // 乾淨 2（normal、欄位齊全 → sysCheck 通過）
      adjRow({
        uid: "adj-r009b",
        barcode: "0072600062283", name: "賀氏烘培起司條原味170G",
        mainCat: "糖果零食", subCat: "洋芋片", segment3: "Snacks & Candies",
        saleStatus: "normal", taxType: "應稅",
        oldSupplierNo: "110620", oldSupplierName: "友暉",
        oldCost: 116.67, oldSuggestPrice: 175,
        newSupplierNo: "110621", newSupplierName: "友暉食品",
        newCost: 110, newSuggestPrice: 169,
        effectiveDate: "2026-07-15", adjNote: "因應廠商更名",
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260524 17:00",
      }),
      // 需修改 1（販售狀態：下架 → sysCheck 不通過，欄位仍齊全，唯一問題是狀態）
      adjRow({
        uid: "adj-r010",
        barcode: "4710054160235", name: "蘇菲瞬吸加長超薄護墊天然無香(15.5CM/32片 x 2包/組)",
        mainCat: "紙棉製品", subCat: "衛生棉", segment3: "Paper & Cotton Products",
        saleStatus: "discontinued", taxType: "應稅",
        oldSupplierNo: "110550", oldSupplierName: "欣新網",
        oldCost: 57.3, oldSuggestPrice: 88,
        newSupplierNo: "110551", newSupplierName: "欣新",
        newCost: 55, newSuggestPrice: 85,
        effectiveDate: "2026-07-15", adjNote: "",
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260524 17:00",
      }),
      // 需修改 2（販售狀態：缺貨 → sysCheck 不通過，欄位仍齊全，唯一問題是狀態）
      adjRow({
        uid: "adj-r010b",
        barcode: "0072600054035", name: "賀氏香脆起司玉米棒墨西哥辣味227G",
        mainCat: "糖果零食", subCat: "洋芋片", segment3: "Snacks & Candies",
        saleStatus: "outOfStock", taxType: "應稅",
        oldSupplierNo: "110620", oldSupplierName: "友暉",
        oldCost: 123.34, oldSuggestPrice: 185,
        newSupplierNo: "110621", newSupplierName: "友暉食品",
        newCost: 118, newSuggestPrice: 179,
        effectiveDate: "2026-07-15", adjNote: "",
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260524 17:00",
      }),
    ],
  },
  // ── ADJ-005：四種狀態混合（最長 AggStatusDisplay 用例）──────────────
  {
    id: "ADJ-005", batchName: "Phase_114歐洲週廠商調整",
    applicant: "AMY", submitted: true,
    createdAt: "20260525 10:00", updatedAt: "20260526 09:00",
    rows: [
      adjRow({
        uid: "adj-r011",
        barcode: "0072600062290", name: "賀氏烘培起司條墨西哥香辣170G",
        mainCat: "糖果零食", subCat: "洋芋片", segment3: "Snacks & Candies",
        saleStatus: "normal", taxType: "應稅",
        oldSupplierNo: "110620", oldSupplierName: "友暉",
        oldCost: 116.67, oldSuggestPrice: 175,
        newSupplierNo: "110621", newSupplierName: "友暉食品",
        newCost: 110, newSuggestPrice: 169,
        effectiveDate: "2026-07-01", adjNote: "",
        rowStatus: "adjRejected", reviewPass: "no",
        rejectReason: "廠商編號尚未在 ERP 建檔，請確認後重新送出",
        erpUpdated: false, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260525 10:00", updatedAt: "20260526 09:00",
      }),
      adjRow({
        uid: "adj-r012",
        barcode: "9310653105696", name: "Chobani希臘式優格 香草160g",
        mainCat: "冷藏乳飲", subCat: "優格", segment3: "Milk & Dairy",
        saleStatus: "normal", taxType: "應稅",
        oldSupplierNo: "110540", oldSupplierName: "河洛",
        oldCost: 126, oldSuggestPrice: 189,
        newSupplierNo: "110541", newSupplierName: "河洛貿易",
        newCost: 122, newSuggestPrice: 185,
        effectiveDate: "2026-07-01", adjNote: "更新登記名稱",
        rowStatus: "adjPending", reviewPass: "", rejectReason: "",
        erpUpdated: false, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260525 10:00", updatedAt: "20260526 09:00",
      }),
      adjRow({
        uid: "adj-r013",
        barcode: "4711676950013", name: "賈以食日-麻花麵381g",
        mainCat: "米油雜糧", subCat: "拌麵", segment3: "Dry Goods & Staples",
        saleStatus: "normal", taxType: "應稅",
        oldSupplierNo: "110830", oldSupplierName: "智護健康",
        oldCost: 166, oldSuggestPrice: 249,
        newSupplierNo: "110831", newSupplierName: "智護食品",
        newCost: 160, newSuggestPrice: 245,
        effectiveDate: "2026-07-01", adjNote: "",
        rowStatus: "adjPending", reviewPass: "", rejectReason: "",
        erpUpdated: false, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260525 10:00", updatedAt: "20260526 09:00",
      }),
      adjRow({
        uid: "adj-r014",
        barcode: "8806050000005", name: "湯瑪仕肉舖 冷凍西班牙伊比利黑豬梅花肉排薄片170g±5%",
        mainCat: "肉品", subCat: "豬肉/羊肉", segment3: "Meat & Seafood",
        saleStatus: "normal", taxType: "免稅",
        oldSupplierNo: "110460", oldSupplierName: "湯瑪仕肉舖-免稅",
        oldCost: 190, oldSuggestPrice: 289,
        newSupplierNo: "110461", newSupplierName: "湯瑪仕肉舖",
        newCost: 185, newSuggestPrice: 285,
        effectiveDate: "2026-07-01", adjNote: "廠商統一，移除免稅後綴",
        rowStatus: "adjApproved", reviewPass: "yes", rejectReason: "",
        erpUpdated: false, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260525 10:00", updatedAt: "20260526 09:00",
      }),
    ],
  },
  // ── ADJ-006：NEILSON 四種狀態混合（最長 AggStatusDisplay 用例）─────────
  {
    id: "ADJ-006", batchName: "Phase_114歐洲週廠商調整",
    applicant: "NEILSON", submitted: true,
    createdAt: "20260525 11:00", updatedAt: "20260526 10:00",
    rows: [
      adjRow({
        uid: "adj-r015",
        barcode: "0072600062290", name: "賀氏烘培起司條墨西哥香辣170G",
        mainCat: "糖果零食", subCat: "洋芋片", segment3: "Snacks & Candies",
        saleStatus: "normal", taxType: "應稅",
        oldSupplierNo: "110620", oldSupplierName: "友暉",
        oldCost: 116.67, oldSuggestPrice: 175,
        newSupplierNo: "110621", newSupplierName: "友暉食品",
        newCost: 110, newSuggestPrice: 169,
        effectiveDate: "2026-07-01", adjNote: "",
        rowStatus: "adjRejected", reviewPass: "no",
        rejectReason: "廠商編號尚未在 ERP 建檔，請確認後重新送出",
        erpUpdated: false, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260525 11:00", updatedAt: "20260526 10:00",
      }),
      adjRow({
        uid: "adj-r016",
        barcode: "9310653105696", name: "Chobani希臘式優格 香草160g",
        mainCat: "冷藏乳飲", subCat: "優格", segment3: "Milk & Dairy",
        saleStatus: "normal", taxType: "應稅",
        oldSupplierNo: "110540", oldSupplierName: "河洛",
        oldCost: 126, oldSuggestPrice: 189,
        newSupplierNo: "110541", newSupplierName: "河洛貿易",
        newCost: 122, newSuggestPrice: 185,
        effectiveDate: "2026-07-01", adjNote: "更新登記名稱",
        rowStatus: "adjPending", reviewPass: "", rejectReason: "",
        erpUpdated: false, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260525 11:00", updatedAt: "20260526 10:00",
      }),
      adjRow({
        uid: "adj-r017",
        barcode: "4711676950013", name: "賈以食日-麻花麵381g",
        mainCat: "米油雜糧", subCat: "拌麵", segment3: "Dry Goods & Staples",
        saleStatus: "normal", taxType: "應稅",
        oldSupplierNo: "110830", oldSupplierName: "智護健康",
        oldCost: 166, oldSuggestPrice: 249,
        newSupplierNo: "110831", newSupplierName: "智護食品",
        newCost: 160, newSuggestPrice: 245,
        effectiveDate: "2026-07-01", adjNote: "",
        rowStatus: "adjPending", reviewPass: "", rejectReason: "",
        erpUpdated: false, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260525 11:00", updatedAt: "20260526 10:00",
      }),
      adjRow({
        uid: "adj-r018",
        barcode: "8806050000005", name: "湯瑪仕肉舖 冷凍西班牙伊比利黑豬梅花肉排薄片170g±5%",
        mainCat: "肉品", subCat: "豬肉/羊肉", segment3: "Meat & Seafood",
        saleStatus: "normal", taxType: "免稅",
        oldSupplierNo: "110460", oldSupplierName: "湯瑪仕肉舖-免稅",
        oldCost: 190, oldSuggestPrice: 289,
        newSupplierNo: "110461", newSupplierName: "湯瑪仕肉舖",
        newCost: 185, newSuggestPrice: 285,
        effectiveDate: "2026-07-01", adjNote: "廠商統一，移除免稅後綴",
        rowStatus: "adjApproved", reviewPass: "yes", rejectReason: "",
        erpUpdated: false, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260525 11:00", updatedAt: "20260526 10:00",
      }),
    ],
  },
];

// ===== 價格調整（ADJ-B）— constants & mock data ===========================
const PRICE_ADJ_BATCH_LIBRARY = [
  "Phase_111週次05_09價格調整",
  "Phase_111週次05_16價格調整",
  "Phase_112新品價格調整",
  "Phase_113美國週價格調整",
  "Phase_114新品價格調整",
];

const priceAdjRow = (over = {}) => {
  const uid = "pa-r" + Math.random().toString(36).slice(2, 9);
  const now = "20260525 09:00";
  return {
    uid,
    barcode: "", name: "", productStatus: "normal", productImage: "",
    mainCat: "", subCat: "", segment3: "", taxType: "",
    origCostExTax: 0, origCostInTax: 0,
    newCostExTax: 0, newCostInTax: 0,
    newCostEffectiveDate: "", newCostPromoEndDate: "",
    origPrice: 0, newPrice: 0, newPriceEffectiveDate: "",
    activityName: "", activityStartDate: "", activityEndDate: "",
    adjNote: "",
    rowStatus: "", reviewPass: "", rejectReason: "",
    erpUpdated: false, oracleUpdated: false, menuUpdated: false,
    createdAt: now, updatedAt: now,
    ...over,
  };
};

const PRICE_ADJ_BATCHES = [
  // ── PADJ-001：全數審核通過 ────────────────────────────────────────────
  {
    id: "PADJ-001", batchName: "Phase_111週次05_09價格調整",
    applicant: "NEILSON", submitted: true,
    createdAt: "20260519 09:00", updatedAt: "20260524 16:30",
    rows: [
      priceAdjRow({
        uid: "pa-r001",
        barcode: "4710063312168", name: "林鳳營全脂鮮乳 期間限定超值組(1857ml+630ml)",
        productStatus: "normal", productImage: "",
        mainCat: "冷藏乳飲", subCat: "鮮乳", segment3: "Milk & Dairy", taxType: "免稅",
        origCostExTax: 191.3, origCostInTax: 191.3,
        newCostExTax: 185, newCostInTax: 185,
        newCostEffectiveDate: "2026-06-01",
        origPrice: 274, newPrice: 268, newPriceEffectiveDate: "2026-06-01",
        adjNote: "廠商季度調價",
        rowStatus: "adjApproved", reviewPass: "yes", rejectReason: "",
        erpUpdated: true, oracleUpdated: true, menuUpdated: true,
        createdAt: "20260519 09:00", updatedAt: "20260524 10:00",
      }),
      priceAdjRow({
        uid: "pa-r002",
        barcode: "9310653105696", name: "Chobani希臘式優格 香草160g",
        productStatus: "normal", productImage: "",
        mainCat: "冷藏乳飲", subCat: "優格", segment3: "Milk & Dairy", taxType: "應稅",
        origCostExTax: 126, origCostInTax: 132.3,
        newCostExTax: 120, newCostInTax: 126,
        newCostEffectiveDate: "2026-06-01",
        origPrice: 189, newPrice: 185, newPriceEffectiveDate: "2026-06-01",
        rowStatus: "adjApproved", reviewPass: "yes", rejectReason: "",
        erpUpdated: true, oracleUpdated: true, menuUpdated: true,
        createdAt: "20260519 09:00", updatedAt: "20260524 10:05",
      }),
    ],
  },
  // ── PADJ-002：混合審核狀態 ────────────────────────────────────────────
  {
    id: "PADJ-002", batchName: "Phase_111週次05_16價格調整",
    applicant: "DANNY", submitted: true,
    createdAt: "20260521 14:00", updatedAt: "20260524 11:20",
    rows: [
      priceAdjRow({
        uid: "pa-r003",
        barcode: "0072600062290", name: "賀氏烘培起司條墨西哥香辣170G",
        productStatus: "normal", productImage: "",
        mainCat: "零食", subCat: "起司棒", segment3: "Cheese & Snacks", taxType: "應稅",
        origCostExTax: 116.67, origCostInTax: 122.5,
        newCostExTax: 108, newCostInTax: 113.4,
        newCostEffectiveDate: "2026-06-15",
        origPrice: 175, newPrice: 165, newPriceEffectiveDate: "2026-06-15",
        activityName: "美國週", activityStartDate: "2026-06-01", activityEndDate: "2026-06-30",
        rowStatus: "adjApproved", reviewPass: "yes", rejectReason: "",
        erpUpdated: false, createdAt: "20260521 14:00", updatedAt: "20260524 11:00",
      }),
      priceAdjRow({
        uid: "pa-r004",
        barcode: "074570334117", name: "Häagen-Dazs 草莓冰淇淋 品脫 473ml",
        productStatus: "normal", productImage: "",
        mainCat: "冰品", subCat: "冰淇淋", segment3: "Ice Cream & Dessert", taxType: "應稅",
        origCostExTax: 238.1, origCostInTax: 250,
        newCostExTax: 250, newCostInTax: 262.5,
        newCostEffectiveDate: "2026-06-15",
        origPrice: 369, newPrice: 0, newPriceEffectiveDate: "",
        rowStatus: "adjRejected", reviewPass: "no",
        rejectReason: "新進價漲幅超過 10%，請提供廠商報價單並說明漲價原因",
        erpUpdated: false, createdAt: "20260521 14:00", updatedAt: "20260524 11:10",
      }),
      priceAdjRow({
        uid: "pa-r005",
        barcode: "0072600062306", name: "賀氏烘焙起司條香濃起司170G",
        productStatus: "outOfStock", productImage: "",
        mainCat: "零食", subCat: "起司棒", segment3: "Cheese & Snacks", taxType: "應稅",
        origCostExTax: 116.67, origCostInTax: 122.5,
        newCostExTax: 108, newCostInTax: 113.4,
        newCostEffectiveDate: "2026-06-15",
        origPrice: 175, newPrice: 165, newPriceEffectiveDate: "2026-06-15",
        activityName: "美國週", activityStartDate: "2026-06-01", activityEndDate: "2026-06-30",
        rowStatus: "adjPending", reviewPass: "", rejectReason: "",
        erpUpdated: false, createdAt: "20260521 14:00", updatedAt: "20260524 11:20",
      }),
    ],
  },
  // ── PADJ-003：全數待審核 ──────────────────────────────────────────────
  {
    id: "PADJ-003", batchName: "Phase_112新品價格調整",
    applicant: "NEILSON", submitted: true,
    createdAt: "20260523 10:00", updatedAt: "20260524 09:30",
    rows: [
      priceAdjRow({
        uid: "pa-r006",
        barcode: "8806050000005", name: "湯瑪仕肉舖 冷凍西班牙伊比利黑豬梅花肉排薄片170g±5%",
        productStatus: "onHold", productImage: "",
        mainCat: "肉品", subCat: "豬肉/羊肉", segment3: "Meat & Seafood", taxType: "免稅",
        origCostExTax: 190, origCostInTax: 190,
        newCostExTax: 182, newCostInTax: 182,
        newCostEffectiveDate: "2026-07-01",
        origPrice: 299, newPrice: 0, newPriceEffectiveDate: "",
        adjNote: "廠商合約到期重新議價",
        rowStatus: "adjPending", reviewPass: "", rejectReason: "",
        createdAt: "20260523 10:00", updatedAt: "20260524 09:00",
      }),
      priceAdjRow({
        uid: "pa-r007",
        barcode: "9310653105641", name: "Chobani希臘式優格-草莓160g",
        productStatus: "normal", productImage: "",
        mainCat: "冷藏乳飲", subCat: "優格", segment3: "Milk & Dairy", taxType: "應稅",
        origCostExTax: 126, origCostInTax: 132.3,
        newCostExTax: 120, newCostInTax: 126,
        newCostEffectiveDate: "2026-07-01",
        origPrice: 189, newPrice: 185, newPriceEffectiveDate: "2026-07-01",
        rowStatus: "adjPending", reviewPass: "", rejectReason: "",
        createdAt: "20260523 10:00", updatedAt: "20260524 09:00",
      }),
    ],
  },
  // ── PADJ-004：編輯中草稿（含多筆，用於測試 sysCheck 滾動行為）────────────
  {
    id: "PADJ-004", batchName: "Phase_113美國週價格調整",
    applicant: "NEILSON", submitted: false,
    createdAt: "20260524 15:00", updatedAt: "20260524 17:00",
    rows: [
      // 第 1 筆：❌ newPrice = -1（新售價必須大於 0）
      priceAdjRow({
        uid: "pa-r008",
        barcode: "4710063312168", name: "林鳳營全脂鮮乳 期間限定超值組(1857ml+630ml)",
        productStatus: "normal", productImage: "",
        origCostExTax: 191.3, origCostInTax: 191.3,
        newCostExTax: 195, newCostInTax: 195,
        newCostEffectiveDate: "2026-07-15",
        newPrice: -1, origPrice: 274,
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260524 17:00",
      }),
      // 第 2 筆：✅ 正常
      priceAdjRow({
        uid: "pa-r009",
        barcode: "074570334117", name: "Häagen-Dazs 草莓冰淇淋 品脫 473ml",
        productStatus: "normal", productImage: "",
        origCostExTax: 238.1, origCostInTax: 250,
        newCostExTax: 245, newCostInTax: 257.25,
        newCostEffectiveDate: "2026-07-15",
        origPrice: 369, newPrice: 389, newPriceEffectiveDate: "2026-07-15",
        adjNote: "配合廠商漲價調整售價",
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260524 17:00",
      }),
      // 第 3 筆：✅ 正常
      priceAdjRow({
        uid: "pa-r010",
        barcode: "4710088188886", name: "統一陽光無糖豆漿 946ml×6",
        productStatus: "normal", productImage: "",
        origCostExTax: 155, origCostInTax: 155,
        newCostExTax: 162, newCostInTax: 162,
        newCostEffectiveDate: "2026-07-15",
        origPrice: 229, newPrice: 239, newPriceEffectiveDate: "2026-07-15",
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260524 17:00",
      }),
      // 第 4 筆：✅ 正常
      priceAdjRow({
        uid: "pa-r011",
        barcode: "8710398519160", name: "Lipton 立頓紅茶茶包 25入×2盒",
        productStatus: "normal", productImage: "",
        origCostExTax: 89, origCostInTax: 89,
        newCostExTax: 95, newCostInTax: 95,
        newCostEffectiveDate: "2026-07-15",
        origPrice: 139, newPrice: 149, newPriceEffectiveDate: "2026-07-15",
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260524 17:00",
      }),
      // 第 5 筆：✅ 正常
      priceAdjRow({
        uid: "pa-r012",
        barcode: "4710176162023", name: "光泉保久乳 200ml×24",
        productStatus: "normal", productImage: "",
        origCostExTax: 210, origCostInTax: 210,
        newCostExTax: 218, newCostInTax: 218,
        newCostEffectiveDate: "2026-07-15",
        origPrice: 299, newPrice: 319, newPriceEffectiveDate: "2026-07-15",
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260524 17:00",
      }),
      // 第 6 筆：✅ 正常
      priceAdjRow({
        uid: "pa-r013",
        barcode: "4714221000067", name: "義美小泡芙 花生口味 250g",
        productStatus: "normal", productImage: "",
        origCostExTax: 58, origCostInTax: 58,
        newCostExTax: 63, newCostInTax: 63,
        newCostEffectiveDate: "2026-07-15",
        origPrice: 89, newPrice: 95, newPriceEffectiveDate: "2026-07-15",
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260524 17:00",
      }),
      // 第 7 筆：✅ 正常
      priceAdjRow({
        uid: "pa-r014",
        barcode: "4710176093984", name: "光泉鮮乳 全脂 936ml",
        productStatus: "normal", productImage: "",
        origCostExTax: 72, origCostInTax: 72,
        newCostExTax: 76, newCostInTax: 76,
        newCostEffectiveDate: "2026-07-15",
        origPrice: 109, newPrice: 115, newPriceEffectiveDate: "2026-07-15",
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260524 17:00",
      }),
      // 第 8 筆：✅ 正常
      priceAdjRow({
        uid: "pa-r015",
        barcode: "0049000000443", name: "可口可樂 600ml×24瓶",
        productStatus: "normal", productImage: "",
        origCostExTax: 380, origCostInTax: 380,
        newCostExTax: 395, newCostInTax: 395,
        newCostEffectiveDate: "2026-07-15",
        origPrice: 539, newPrice: 569, newPriceEffectiveDate: "2026-07-15",
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260524 17:00",
      }),
      // 第 9 筆：✅ 正常
      priceAdjRow({
        uid: "pa-r016",
        barcode: "4710085019996", name: "味全鮮乳 低脂 936ml",
        productStatus: "normal", productImage: "",
        origCostExTax: 68, origCostInTax: 68,
        newCostExTax: 72, newCostInTax: 72,
        newCostEffectiveDate: "2026-07-15",
        origPrice: 99, newPrice: 105, newPriceEffectiveDate: "2026-07-15",
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260524 17:00",
      }),
      // 第 10 筆：❌ newPrice = -1（欄位合法但 sysCheck 判新售價必須大於 0）
      priceAdjRow({
        uid: "pa-r017",
        barcode: "4711271001682", name: "統一 7-SELECT 麥香紅茶 600ml×24",
        productStatus: "normal", productImage: "",
        origCostExTax: 315, origCostInTax: 315,
        newCostExTax: 320, newCostInTax: 320,
        newCostEffectiveDate: "2026-07-15",
        origPrice: 459, newPrice: -1,
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260524 17:00",
      }),
    ],
  },
];

// ===== 商品狀態調整（ADJ-C/D）— constants & mock data =======================
const ADJ_STATUS_BATCH_LIBRARY = [
  "Phase_111週次05_09商品狀態調整",
  "Phase_111週次05_16商品狀態調整",
  "Phase_112商品暫停供貨",
  "Phase_113商品資訊調整",
  "Phase_114美國週商品狀態調整",
];

const adjStatusRow = (over = {}) => {
  const uid = "as-r" + Math.random().toString(36).slice(2, 9);
  const now = "20260526 09:00";
  return {
    uid,
    // A: 商品識別
    barcode: "", productName: "", supplierNo: "", supplierName: "",
    // B: 主次類別
    mainCat: "", subCat: "",
    // C: 目前狀態
    saleStatus: "normal", taxType: "應稅", tier: "", region: "",
    specSummary: "", expType: "", origin: "",
    // D: 調整申請（adjType = string[] always）
    adjType: [], adjNote: "",
    // D 條件欄
    newBarcode: "", newMainCat: "", newSubCat: "", newName: "",
    newDescription: "", newListPrice: 0, newSuggestPrice: 0,
    newTier: "", newRegion: "", newTemp: "", newSpec: "", newReturnDays: "",
    newTaxRate: "",
    // E: 系統驗證（formula，mock 用空值）
    approved: "", fillCheck: "", promoCheck: "", dupStatusCheck: "",
    eatOffersCheck: "", fillDateCheck: "", requiredFieldsCheck: "",
    rowId: uid, fillFieldIndex: "", fillData: "", formatCheck: "", sameDayConflict: "",
    // F: 生效追蹤
    effectiveDate: "", orderToolEffectDate: "", regionChange: "",
    // G: 後續處理
    erpUpdated: false, oracleUpdated: false, menuUpdated: false,
    // H: 審核
    rowStatus: "", reviewPass: "", rejectReason: "",
    createdAt: now, updatedAt: now,
    ...over,
  };
};

const ADJ_STATUS_BATCHES = [
  // ── AS-001：全數審核通過（狀態類：商品停售@）──────────────────────────────
  {
    id: "AS-001", batchName: "Phase_111週次05_09商品狀態調整",
    applicant: "NEILSON", submitted: true,
    createdAt: "20260519 09:00", updatedAt: "20260524 16:30",
    rows: [
      adjStatusRow({
        uid: "as-r001",
        barcode: "4710063312168", productName: "林鳳營全脂鮮乳 期間限定超值組(1857ml+630ml)",
        supplierNo: "110071", supplierName: "味全冷藏-免稅",
        mainCat: "冷藏乳飲", subCat: "鮮乳",
        saleStatus: "normal", taxType: "免稅", tier: "T1", region: "全",
        specSummary: "免稅 · 最低訂量1 · 效期13天", expType: "年/月/日", origin: "臺灣",
        adjType: ["statusStopAt"], adjNote: "廠商停止供應，需永久下架",
        rowStatus: "adjApproved", reviewPass: "yes", rejectReason: "",
        erpUpdated: true, oracleUpdated: true, menuUpdated: true,
        createdAt: "20260519 09:00", updatedAt: "20260524 10:00",
      }),
      adjStatusRow({
        uid: "as-r002",
        barcode: "9310653105696", productName: "Chobani希臘式優格 香草160g",
        supplierNo: "110540", supplierName: "河洛",
        mainCat: "冷藏乳飲", subCat: "優格",
        saleStatus: "normal", taxType: "應稅", tier: "T1", region: "全",
        specSummary: "應稅 · 最低訂量12 · 效期30天", expType: "年/月/日", origin: "美國",
        adjType: ["statusStopAt"], adjNote: "",
        rowStatus: "adjApproved", reviewPass: "yes", rejectReason: "",
        erpUpdated: true, oracleUpdated: true, menuUpdated: true,
        createdAt: "20260519 09:00", updatedAt: "20260524 10:05",
      }),
      adjStatusRow({
        uid: "as-r003",
        barcode: "074570334117", productName: "Häagen-Dazs 草莓冰淇淋 品脫 473ml",
        supplierNo: "110910", supplierName: "通用磨坊-哈根達斯",
        mainCat: "冷凍食品", subCat: "冰品",
        saleStatus: "normal", taxType: "應稅", tier: "T1", region: "全",
        specSummary: "應稅 · 最低訂量8 · 效期420天", expType: "月/日/年", origin: "法國",
        adjType: ["statusStopAt"], adjNote: "季節性商品，本季結束後停售",
        rowStatus: "adjApproved", reviewPass: "yes", rejectReason: "",
        erpUpdated: false, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260519 09:00", updatedAt: "20260524 10:10",
      }),
    ],
  },
  // ── AS-002：混合審核狀態（狀態類 + 資訊類，通過/待審/拒絕）──────────────
  {
    id: "AS-002", batchName: "Phase_111週次05_16商品狀態調整",
    applicant: "DANNY", submitted: true,
    createdAt: "20260521 14:00", updatedAt: "20260524 11:20",
    rows: [
      adjStatusRow({
        uid: "as-r004",
        barcode: "0072600062290", productName: "賀氏烘培起司條墨西哥香辣170G",
        supplierNo: "110620", supplierName: "友暉",
        mainCat: "糖果零食", subCat: "洋芋片",
        saleStatus: "normal", taxType: "應稅", tier: "T2", region: "全",
        specSummary: "應稅 · 最低訂量6 · 效期180天", expType: "年/月/日", origin: "美國",
        adjType: ["statusStopHash"], adjNote: "庫存消化完畢後停售",
        rowStatus: "adjApproved", reviewPass: "yes", rejectReason: "",
        erpUpdated: true, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260521 14:00", updatedAt: "20260524 11:00",
      }),
      adjStatusRow({
        uid: "as-r005",
        barcode: "074570334117", productName: "Häagen-Dazs 草莓冰淇淋 品脫 473ml",
        supplierNo: "110910", supplierName: "通用磨坊-哈根達斯",
        mainCat: "冷凍食品", subCat: "冰品",
        saleStatus: "normal", taxType: "應稅", tier: "T1", region: "全",
        specSummary: "應稅 · 最低訂量8 · 效期420天", expType: "月/日/年", origin: "法國",
        adjType: ["infoName"], newName: "Häagen-Dazs 草莓冰淇淋 品脫(473ml)",
        adjNote: "修正品名格式（加括號）",
        rowStatus: "adjPending", reviewPass: "", rejectReason: "",
        erpUpdated: false, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260521 14:00", updatedAt: "20260524 11:05",
      }),
      adjStatusRow({
        uid: "as-r006",
        barcode: "9310653105641", productName: "Chobani希臘式優格-草莓160g",
        supplierNo: "110540", supplierName: "河洛",
        mainCat: "冷藏乳飲", subCat: "優格",
        saleStatus: "normal", taxType: "應稅", tier: "T1", region: "全",
        specSummary: "應稅 · 最低訂量12 · 效期30天", expType: "年/月/日", origin: "美國",
        adjType: ["infoName"], newName: "Chobani 希臘式優格 草莓 160g",
        adjNote: "品名統一格式（去掉連字號）",
        rowStatus: "adjApproved", reviewPass: "yes", rejectReason: "",
        erpUpdated: false, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260521 14:00", updatedAt: "20260524 11:10",
      }),
      adjStatusRow({
        uid: "as-r007",
        barcode: "4710054160235", productName: "蘇菲瞬吸加長超薄護墊天然無香(15.5CM/32片 x 2包/組)",
        supplierNo: "110550", supplierName: "欣新網",
        mainCat: "紙棉製品", subCat: "衛生棉",
        saleStatus: "outOfStock", taxType: "應稅", tier: "T2", region: "全",
        specSummary: "應稅 · 最低訂量18 · 效期1080天", expType: "日/月/年", origin: "臺灣",
        adjType: ["statusStopHash"], adjNote: "",
        rowStatus: "adjRejected", reviewPass: "no",
        rejectReason: "此品項販售狀態為缺貨，請確認缺貨原因及預計恢復時間後再重新送出",
        erpUpdated: false, oracleUpdated: false, menuUpdated: false,
        createdAt: "20260521 14:00", updatedAt: "20260524 11:20",
      }),
    ],
  },
  // ── AS-003：全數待審核（暫停供貨）───────────────────────────────────────
  {
    id: "AS-003", batchName: "Phase_112商品暫停供貨",
    applicant: "NEILSON", submitted: true,
    createdAt: "20260523 10:00", updatedAt: "20260524 09:30",
    rows: [
      adjStatusRow({
        uid: "as-r008",
        barcode: "4711676950013", productName: "賈以食日-麻花麵381g",
        supplierNo: "110830", supplierName: "智護健康",
        mainCat: "米油雜糧", subCat: "拌麵",
        saleStatus: "normal", taxType: "應稅", tier: "T2", region: "全",
        specSummary: "應稅 · 最低訂量6 · 效期365天", expType: "年/月/日", origin: "臺灣",
        adjType: ["statusSuspend"], adjNote: "廠商原料缺貨，預計 6 週後恢復",
        rowStatus: "adjPending", reviewPass: "", rejectReason: "",
        createdAt: "20260523 10:00", updatedAt: "20260524 09:00",
      }),
      adjStatusRow({
        uid: "as-r009",
        barcode: "8806050000005", productName: "湯瑪仕肉舖 冷凍西班牙伊比利黑豬梅花肉排薄片170g±5%",
        supplierNo: "110460", supplierName: "湯瑪仕肉舖-免稅",
        mainCat: "肉品", subCat: "豬肉/羊肉",
        saleStatus: "onHold", taxType: "免稅", tier: "T1", region: "全",
        specSummary: "免稅 · 最低訂量6 · 效期180天", expType: "年/月/日", origin: "西班牙",
        adjType: ["statusSuspend"], adjNote: "品質重新認證中，暫緩販售",
        rowStatus: "adjPending", reviewPass: "", rejectReason: "",
        createdAt: "20260523 10:00", updatedAt: "20260524 09:05",
      }),
    ],
  },
  // ── AS-004：草稿（多 adjType 聯集，demo D 條件欄動態組合）─────────────────
  {
    id: "AS-004", batchName: "Phase_113商品資訊調整",
    applicant: "NEILSON", submitted: false,
    createdAt: "20260524 15:00", updatedAt: "20260526 09:00",
    rows: [
      adjStatusRow({
        uid: "as-r010",
        barcode: "9310653105696", productName: "Chobani希臘式優格 香草160g",
        supplierNo: "110540", supplierName: "河洛",
        mainCat: "冷藏乳飲", subCat: "優格",
        saleStatus: "normal", taxType: "應稅", tier: "T1", region: "全",
        specSummary: "應稅 · 最低訂量12 · 效期30天", expType: "年/月/日", origin: "美國",
        adjType: ["infoName"],
        newName: "Chobani 希臘式優格 香草 160g",
        adjNote: "更名，移除簡稱格式",
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260526 09:00",
      }),
      adjStatusRow({
        uid: "as-r011",
        barcode: "074570334117", productName: "Häagen-Dazs 草莓冰淇淋 品脫 473ml",
        supplierNo: "110910", supplierName: "通用磨坊-哈根達斯",
        mainCat: "冷凍食品", subCat: "冰品",
        saleStatus: "normal", taxType: "應稅", tier: "T1", region: "全",
        specSummary: "應稅 · 最低訂量8 · 效期420天", expType: "月/日/年", origin: "法國",
        adjType: ["infoCategory"],
        newMainCat: "冷凍食品", newSubCat: "冰淇淋",
        adjNote: "調整分類至更精確的子類別",
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260526 09:00",
      }),
      adjStatusRow({
        uid: "as-r012",
        barcode: "4710063312168", productName: "林鳳營全脂鮮乳 期間限定超值組(1857ml+630ml)",
        supplierNo: "110071", supplierName: "味全冷藏-免稅",
        mainCat: "冷藏乳飲", subCat: "鮮乳",
        saleStatus: "discontinued", taxType: "免稅", tier: "T1", region: "全",
        specSummary: "免稅 · 最低訂量1 · 效期13天", expType: "年/月/日", origin: "臺灣",
        adjType: ["infoListPrice"],
        newListPrice: 128, newSuggestPrice: 148,
        adjNote: "調整牌價及建議售價",
        rowStatus: "", reviewPass: "", rejectReason: "",
        createdAt: "20260524 15:00", updatedAt: "20260526 09:00",
      }),
    ],
  },
];

// ===== 圖片調整模組 — IMG_SLOTS & IMG_SKUS ================================

const IMG_SLOTS = [
  { key: "imgMain",      label: "商品主圖",   en: "main",      required: true,  hint: "200×200 方形 hero" },
  { key: "imgActivity",  label: "活動圖檔",   en: "activity",  required: false, hint: "促銷檔期 banner（320×180）" },
  { key: "imgNutrition", label: "包裝熱量照", en: "nutrition", required: false, hint: "後標／營養標示（180×240）" },
  { key: "imgScene1",    label: "情境圖 1",   en: "scene_1",   required: false, hint: "240×160 lifestyle" },
  { key: "imgScene2",    label: "情境圖 2",   en: "scene_2",   required: false, hint: "240×160 lifestyle" },
  { key: "imgScene3",    label: "情境圖 3",   en: "scene_3",   required: false, hint: "240×160 lifestyle" },
  { key: "imgScene4",    label: "情境圖 4",   en: "scene_4",   required: false, hint: "240×160 lifestyle" },
];

// ── 圖片 mock 產生器（inline SVG，不需網路）──────────────────────────────
// imgMain 200×200：深色底，品牌 + 品名大字
const _imgMain = (brand, name, bg, fg) => {
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><rect width="200" height="200" fill="#${bg}"/><text x="100" y="84" font-family="sans-serif" font-size="14" fill="#${fg}" text-anchor="middle" opacity="0.7">${brand}</text><text x="100" y="120" font-family="sans-serif" font-size="26" font-weight="600" fill="#${fg}" text-anchor="middle">${name}</text></svg>`;
  return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`;
};
// imgActivity 320×180：漸層底，促銷主文 + Phase 標識
const _imgActivity = (line1, line2, c1, c2) => {
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="320" height="180"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0%" stop-color="#${c1}"/><stop offset="100%" stop-color="#${c2}"/></linearGradient></defs><rect width="320" height="180" fill="url(#g)"/><text x="160" y="76" font-family="sans-serif" font-size="44" font-weight="700" fill="#fff" text-anchor="middle">${line1}</text><text x="160" y="120" font-family="sans-serif" font-size="17" fill="#fff" text-anchor="middle" opacity="0.8">${line2}</text></svg>`;
  return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`;
};
// imgNutrition 180×240：漸層底，熱量大字 + 數值
const _imgNutrition = (label, value, c1, c2) => {
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="180" height="240"><defs><linearGradient id="g" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#${c1}"/><stop offset="100%" stop-color="#${c2}"/></linearGradient></defs><rect width="180" height="240" fill="url(#g)"/><text x="90" y="102" font-family="sans-serif" font-size="38" font-weight="700" fill="#fff" text-anchor="middle">${label}</text><text x="90" y="146" font-family="sans-serif" font-size="19" fill="#fff" text-anchor="middle" opacity="0.85">${value}</text></svg>`;
  return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`;
};
// imgScene 240×160：彩色底，場景標籤大字
const _imgScene = (label, bg, fg) => {
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="240" height="160"><rect width="240" height="160" fill="#${bg}"/><text x="120" y="88" font-family="sans-serif" font-size="30" font-weight="600" fill="#${fg}" text-anchor="middle">${label}</text></svg>`;
  return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`;
};

const IMG_SKUS = [
  {
    skuId: "1000451", barcode: "8801073143722",
    name: "三養火辣雞肉風味鐵板炒麵-粉紅醬風味 140g*5入",
    brand: "三養", mainCat: "乾麵/冬粉/河粉", promoType: "EO",
    imgMain:      _imgMain("三養", "火辣炒麵", "1A0800", "FF6D00"),
    imgActivity:  _imgActivity("超辣登場", "Phase_111_04_EO", "BF360C", "E65100"),
    imgNutrition: _imgNutrition("熱量", "每份 465kcal", "3E2723", "5D4037"),
    imgScene1:    _imgScene("夜宵", "1A237E", "E3F2FD"),
    imgScene2:    _imgScene("辣挑戰", "4A148C", "EDE7F6"),
    imgScene3:    _imgScene("Party", "004D40", "E0F7FA"),
    imgScene4:    _imgScene("野餐", "E65100", "FFF8E1"),
    lastUpdated: "20260521 14:30", updatedBy: "SAMANTHA",
  },
  {
    skuId: "1000452", barcode: "4710063312168",
    name: "林鳳營全脂鮮乳 期間限定超值組(1857ml+630ml)",
    brand: "林鳳營", mainCat: "冷藏乳飲", promoType: "BOGO",
    imgMain:      _imgMain("林鳳營", "全脂鮮乳", "1B5E20", "FFFFFF"),
    imgActivity:  _imgActivity("鮮乳 8 折", "Phase_111_05_09", "2E7D32", "81C784"),
    imgNutrition: _imgNutrition("熱量", "200ml 130kcal", "8D6E00", "5D4A00"),
    imgScene1:    _imgScene("早餐桌", "0D47A1", "E3F2FD"),
    imgScene2:    _imgScene("下午茶", "6A1B9A", "F3E5F5"),
    imgScene3:    "",
    imgScene4:    "",
    lastUpdated: "20260520 10:15", updatedBy: "SAMANTHA",
  },
  {
    skuId: "1000453", barcode: "074570334117",
    name: "Häagen-Dazs 草莓冰淇淋 品脫 473ml",
    brand: "Häagen-Dazs", mainCat: "冷凍食品", promoType: "DCT",
    imgMain:      _imgMain("Häagen-Dazs", "草莓冰淇淋", "880E4F", "FCE4EC"),
    imgActivity:  _imgActivity("限時折扣", "Phase_111_05_12", "AD1457", "F06292"),
    imgNutrition: "",
    imgScene1:    _imgScene("Party桌", "1A237E", "E8EAF6"),
    imgScene2:    "",
    imgScene3:    "",
    imgScene4:    "",
    lastUpdated: "20260519 16:45", updatedBy: "SAMANTHA",
  },
  {
    skuId: "1000454", barcode: "4710146051068",
    name: "蘇菲超薄棉柔感衛生棉 日用 32片×2包",
    brand: "蘇菲", mainCat: "紙棉製品", promoType: "",
    imgMain:      _imgMain("蘇菲", "超薄棉柔", "00574B", "FFFFFF"),
    imgActivity:  "",
    imgNutrition: _imgNutrition("規格", "32片 × 2包", "00695C", "004D40"),
    imgScene1:    "",
    imgScene2:    "",
    imgScene3:    "",
    imgScene4:    "",
    lastUpdated: "20260518 09:00", updatedBy: "SAMANTHA",
  },
  {
    skuId: "1000455", barcode: "8714100877753",
    name: "Oral-B 歐樂B 電動牙刷替換刷頭 精準清潔型 4入",
    brand: "Oral-B", mainCat: "口腔清潔", promoType: "M%",
    imgMain:      _imgMain("Oral-B", "替換刷頭", "0D47A1", "FFFFFF"),
    imgActivity:  _imgActivity("越買越省", "Phase_111_06_M%", "1565C0", "42A5F5"),
    imgNutrition: "",
    imgScene1:    _imgScene("刷牙步驟", "33691E", "F1F8E9"),
    imgScene2:    _imgScene("使用示範", "BF360C", "FBE9E7"),
    imgScene3:    _imgScene("潔白效果", "4527A0", "EDE7F6"),
    imgScene4:    "",
    lastUpdated: "20260517 11:20", updatedBy: "SAMANTHA",
  },
  {
    skuId: "1000456", barcode: "5900951254093",
    name: "波蘭春天 Primavera 天然礦泉水 1.5L×6入",
    brand: "Primavera", mainCat: "飲料", promoType: "",
    imgMain:      _imgMain("Primavera", "天然礦泉水", "01579B", "E1F5FE"),
    imgActivity:  "",
    imgNutrition: "",
    imgScene1:    "",
    imgScene2:    "",
    imgScene3:    "",
    imgScene4:    "",
    lastUpdated: "20260516 14:00", updatedBy: "SAMANTHA",
  },
  {
    skuId: "1000457", barcode: "8437008459023",
    name: "西班牙伊比利豬 梅花肉片 170g",
    brand: "湯瑪仕肉舖", mainCat: "肉品", promoType: "EO",
    imgMain:      "",
    imgActivity:  "",
    imgNutrition: "",
    imgScene1:    "",
    imgScene2:    "",
    imgScene3:    "",
    imgScene4:    "",
    lastUpdated: "20260515 09:30", updatedBy: "SAMANTHA",
  },
  {
    skuId: "1000458", barcode: "4901201137976",
    name: "日清杯麵 合味道 海鮮風味 75g",
    brand: "日清", mainCat: "乾麵/冬粉/河粉", promoType: "BOGO",
    imgMain:      "",
    imgActivity:  "",
    imgNutrition: "",
    imgScene1:    "",
    imgScene2:    "",
    imgScene3:    "",
    imgScene4:    "",
    lastUpdated: "20260514 16:00", updatedBy: "SAMANTHA",
  },
  {
    skuId: "1000459", barcode: "4711234567890",
    name: "光泉 LP33 機能優酪乳 原味 200ml×24入",
    brand: "光泉", mainCat: "冷藏乳飲", promoType: "",
    imgMain:      _imgMain("光泉", "LP33優酪乳", "1B5E20", "FFFFFF"),
    imgActivity:  _imgActivity("健康補給", "Phase_111_03_LP33", "1B5E20", "66BB6A"),
    imgNutrition: _imgNutrition("熱量", "每份 80kcal", "F9A825", "E65100"),
    imgScene1:    _imgScene("早餐時光", "1565C0", "E3F2FD"),
    imgScene2:    _imgScene("健身後", "880E4F", "FCE4EC"),
    imgScene3:    _imgScene("下午茶", "E65100", "FFF3E0"),
    imgScene4:    _imgScene("睡前補給", "512DA8", "EDE7F6"),
    lastUpdated: "20260513 10:00", updatedBy: "SAMANTHA",
  },
  {
    skuId: "1000460", barcode: "4718009123456",
    name: "桂格 燕麥片 即食大燕麥片 800g",
    brand: "桂格", mainCat: "早餐穀麥", promoType: "DCT",
    imgMain:      _imgMain("桂格", "大燕麥片", "4E2D00", "FFE0B2"),
    imgActivity:  "",
    imgNutrition: _imgNutrition("熱量", "每份 370kcal", "558B2F", "33691E"),
    imgScene1:    "",
    imgScene2:    "",
    imgScene3:    "",
    imgScene4:    "",
    lastUpdated: "20260512 15:30", updatedBy: "SAMANTHA",
  },
];

// 批次調整圖片工作表的固定預設品項（skuId 對照 IMG_SKUS）。
// 用途：全新瀏覽器 / 無痕 / localStorage 為空時，工作表預載這 7 筆，確保每台瀏覽器初次進來畫面一致。
// 順序對齊設計截圖；保留 localStorage 草稿還原（編輯後各瀏覽器仍保留自己的草稿）。
const SEED_IMG_WORKSHEET = ["1000456", "1000458", "1000451", "1000452", "1000453", "1000454", "1000455"];

// ── Collection Offer module config ────────────────────────────────────────
const CO_MODULE_CONFIG = {
  hasApproval: true,  // 本模組有審核流程（對齊 spec 11）；實際系統由 SEED_FLOWS 動態判斷。UI 實際讀 Tweaks 的「顯示審核流程」(coHasApproval) 以便展示有/無審核兩種模式
  editUsers:   ["NEILSON"], // 申請人（purchase）。prototype 近似：實際系統從後端 permission table 查；此欄不進 spec
  reviewUsers: ["JOANNA"],  // 審核者（joanna 採購主管）。與 EO_MODULE_CONFIG 一致，缺此欄會導致 joanna 審核者視角不可達
};

// ── Collection Offer mock data ─────────────────────────────────────────────
const SEED_COLLECTION_OFFERS = [
  {
    id: "CO-001",
    name: "春季飲品任選2件$58",
    type: "BxFy",
    buy: 2, forPrice: 58, scheme: "2 件 $58", unitPrice: 29,
    campaignStart: "2026-05-23", campaignEnd: "2026-06-05",
    createdAt: "2026-05-10",
    budget: 200000,
    collectionUuid: "260523-tw-dg-spring-bxfy",
    status: "coApproved",
    applicant: "NEILSON",
    updatedAt: "20260523 14:30",
    items: [
      { barcode: "4710088001001", name: "統一 純萃喝 礦泉水 1500ml",   cost: 18, suggestPrice: 35, listPrice: 38, promoPrice: 32, discountedPrice: 29,    isNegativeMargin: false, pacing: 18.42, externalId: "ext-001", redeemQty: 320, itemSpend: 9280 },
      { barcode: "4710088002002", name: "光泉 低脂鮮乳 936ml",          cost: 55, suggestPrice: 89, listPrice: 92, promoPrice: 79, discountedPrice: 29,    isNegativeMargin: true,  pacing: 6.73,  externalId: "ext-002", redeemQty: 180, itemSpend: 5220 },
      { barcode: "4710088003003", name: "義美 小泡芙 牛奶口味 57g",     cost: 22, suggestPrice: 39, listPrice: 42, promoPrice: 35, discountedPrice: 29,    isNegativeMargin: false, pacing: 24.10, externalId: "ext-003", redeemQty: 450, itemSpend: 13050 },
    ],
  },
  {
    id: "CO-002",
    name: "夏季清涼滿$399折$30",
    type: "SxSy",
    spend: 399, save: 30, scheme: "$399 折 $30", discount: 0.9248,
    campaignStart: "2026-06-06", campaignEnd: "2026-06-19",
    createdAt: "2026-05-25",
    budget: 150000,
    collectionUuid: "260606-tw-dg-summer-sxsy",
    status: "coUnderReview",
    applicant: "NEILSON",
    updatedAt: "20260525 09:15",
    items: [
      { barcode: "4710088004004", name: "舒跑 運動飲料 590ml",          cost: 20, suggestPrice: 35, listPrice: 38, promoPrice: 32, discountedPrice: null, isNegativeMargin: false, pacing: null, externalId: "ext-004", redeemQty: null, itemSpend: null },
      { barcode: "4710088005005", name: "可口可樂 寶特瓶 600ml",        cost: 18, suggestPrice: 32, listPrice: 35, promoPrice: 28, discountedPrice: null, isNegativeMargin: false, pacing: null, externalId: "ext-005", redeemQty: null, itemSpend: null },
    ],
  },
  {
    id: "CO-003",
    name: "端午節任選3件$88",
    type: "BxFy",
    buy: 3, forPrice: 88, scheme: "3 件 $88", unitPrice: 29.33,
    campaignStart: "2026-05-28", campaignEnd: "2026-06-01",
    createdAt: "2026-05-15",
    budget: 300000,
    collectionUuid: "260528-tw-dg-dragonboat-bxfy",
    status: "coUnderReview",
    applicant: "AMY",
    updatedAt: "20260527 16:45",
    items: [
      { barcode: "4710088006006", name: "桂格 即食燕麥片 800g",         cost: 85, suggestPrice: 149, listPrice: 155, promoPrice: 139, discountedPrice: 29.33, isNegativeMargin: false, pacing: 11.28, externalId: "ext-006", redeemQty: 0, itemSpend: 0 },
      { barcode: "4710088007007", name: "泰山 八寶粥 375g",              cost: 28, suggestPrice: 49,  listPrice: 52,  promoPrice: 45,  discountedPrice: 29.33, isNegativeMargin: false, pacing: 8.95,  externalId: "ext-007", redeemQty: 0, itemSpend: 0 },
      { barcode: "4710088008008", name: "聯華 波的多 薯條 120g",        cost: 32, suggestPrice: 55,  listPrice: 58,  promoPrice: 48,  discountedPrice: 29.33, isNegativeMargin: false, pacing: 14.63, externalId: "ext-008", redeemQty: 0, itemSpend: 0 },
      { barcode: "4710088009009", name: "統一 蜂蜜檸檬水 500ml",        cost: 15, suggestPrice: 28,  listPrice: 30,  promoPrice: 25,  discountedPrice: 29.33, isNegativeMargin: true,  pacing: 3.21,  externalId: "ext-009", redeemQty: 0, itemSpend: 0 },
    ],
  },
  {
    id: "CO-004",
    name: "健康輕食滿$299折$20",
    type: "SxSy",
    spend: 299, save: 20, scheme: "$299 折 $20", discount: 0.9331,
    campaignStart: "2026-04-25", campaignEnd: "2026-05-08",
    createdAt: "2026-04-15",
    budget: 100000,
    collectionUuid: "260425-tw-dg-healthy-sxsy",
    status: "coDraft",
    applicant: "NEILSON",
    updatedAt: "20260508 11:00",
    items: [
      { barcode: "4710088010010", name: "雪印 高鈣低脂鮮奶 936ml",      cost: 62, suggestPrice: 98, listPrice: 105, promoPrice: 89, discountedPrice: 91.51, isNegativeMargin: false, pacing: 22.07, externalId: "ext-010", redeemQty: 520, itemSpend: 47580 },
      { barcode: "4710088011011", name: "維力 炸醬麵 85g",               cost: 12, suggestPrice: 22, listPrice: 25,  promoPrice: 19, discountedPrice: 20.53, isNegativeMargin: false, pacing: 31.44, externalId: "ext-011", redeemQty: 890, itemSpend: 19338 },
    ],
  },
  {
    // 測試用：Neilson 草稿，含 1 個負毛利品項（光泉低脂鮮乳，折扣後 48.95 < 進價 55）。
    // 送出後 requiresReview = true → 觸發送審（coUnderReview）。折扣係數深（0.55）以製造負毛利。
    id: "CO-006",
    name: "週年慶嚴選滿$200折$90",
    type: "SxSy",
    spend: 200, save: 90, scheme: "$200 折 $90", discount: 0.55,
    campaignStart: "2026-06-10", campaignEnd: "2026-06-23",
    createdAt: "2026-05-30",
    budget: 80000,
    collectionUuid: "260610-tw-dg-anniv-sxsy",
    status: "coDraft",
    applicant: "NEILSON",
    updatedAt: "20260530 10:00",
    items: [
      { barcode: "4710088001001", name: "統一 純萃喝 礦泉水 1500ml",   cost: 18, suggestPrice: 35, listPrice: 38, promoPrice: 32, discountedPrice: 19.25, isNegativeMargin: false, pacing: 18.42, externalId: "ext-001", redeemQty: 410, itemSpend: 7892 },
      { barcode: "4710088002002", name: "光泉 低脂鮮乳 936ml",          cost: 55, suggestPrice: 89, listPrice: 92, promoPrice: 79, discountedPrice: 48.95, isNegativeMargin: true,  pacing: 6.73,  externalId: "ext-002", redeemQty: 260, itemSpend: 12727 },
    ],
  },
  {
    id: "CO-005",
    name: "嚴選品飲任選2件$79",
    type: "BxFy",
    buy: 2, forPrice: 79, scheme: "2 件 $79", unitPrice: 39.5,
    campaignStart: "2026-05-30", campaignEnd: "2026-06-12",
    createdAt: "2026-05-20",
    budget: 250000,
    collectionUuid: "260530-tw-dg-drinks-bxfy",
    status: "coApproved",
    applicant: "DANNY",
    updatedAt: "20260528 08:20",
    items: [
      { barcode: "4710088012012", name: "義美 生乳捲 160g",              cost: 55, suggestPrice: 88, listPrice: 92, promoPrice: 79, discountedPrice: 39.5, isNegativeMargin: true,  pacing: 9.36,  externalId: "ext-012", redeemQty: 220, itemSpend: 8690 },
      { barcode: "4710088013013", name: "可果美 蕃茄汁 900ml",           cost: 30, suggestPrice: 55, listPrice: 58, promoPrice: 48, discountedPrice: 39.5, isNegativeMargin: false, pacing: 16.82, externalId: "ext-013", redeemQty: 310, itemSpend: 12245 },
      { barcode: "4710088014014", name: "光泉 茉莉清茶 1500ml",          cost: 25, suggestPrice: 45, listPrice: 48, promoPrice: 39, discountedPrice: 39.5, isNegativeMargin: false, pacing: 12.55, externalId: "ext-014", redeemQty: 185, itemSpend: 7307 },
    ],
  },
  {
    // 測試用：Neilson 自己的「已退回」活動（看得到紅色退回 banner + 重新送出）
    id: "CO-007",
    name: "畢業季飲品滿$350折$40",
    type: "SxSy",
    spend: 350, save: 40, scheme: "$350 折 $40", discount: 0.8857,
    campaignStart: "2026-06-15", campaignEnd: "2026-06-28",
    createdAt: "2026-05-29",
    budget: 120000,
    collectionUuid: "260615-tw-dg-grad-sxsy",
    status: "coRejected",
    applicant: "NEILSON",
    updatedAt: "20260601 09:30",
    rejectReason: "活動期間與既有『夏季清涼滿$399折$30』檔期重疊，請調整活動期間後重新送出。",
    items: [
      { barcode: "4710088001001", name: "統一 純萃喝 礦泉水 1500ml",   cost: 18, suggestPrice: 35, listPrice: 38, promoPrice: 32, discountedPrice: 31.00, isNegativeMargin: false, pacing: 18.42, externalId: "ext-001", redeemQty: 0, itemSpend: 0 },
      { barcode: "4710088003003", name: "義美 小泡芙 牛奶口味 57g",     cost: 22, suggestPrice: 39, listPrice: 42, promoPrice: 35, discountedPrice: 34.54, isNegativeMargin: false, pacing: 24.10, externalId: "ext-003", redeemQty: 0, itemSpend: 0 },
    ],
  },
  {
    // 測試用：其他採購（AMY）的「已退回」活動（co-2 全採購可見 → Neilson 看得到，唯讀檢視）
    id: "CO-008",
    name: "夏日冰品任選3件$100",
    type: "BxFy",
    buy: 3, forPrice: 100, scheme: "3 件 $100", unitPrice: 33.33,
    campaignStart: "2026-06-05", campaignEnd: "2026-06-18",
    createdAt: "2026-05-26",
    budget: 90000,
    collectionUuid: "260605-tw-dg-summer-bxfy",
    status: "coRejected",
    applicant: "AMY",
    updatedAt: "20260531 14:00",
    rejectReason: "折扣後價格低於進價的品項過多（如桂格即食燕麥片），整體毛利為負，請重新核算促銷組合。",
    items: [
      { barcode: "4710088006006", name: "桂格 即食燕麥片 800g",         cost: 85, suggestPrice: 149, listPrice: 155, promoPrice: 139, discountedPrice: 33.33, isNegativeMargin: true,  pacing: 11.28, externalId: "ext-006", redeemQty: 0, itemSpend: 0 },
      { barcode: "4710088007007", name: "泰山 八寶粥 375g",              cost: 28, suggestPrice: 49,  listPrice: 52,  promoPrice: 45,  discountedPrice: 33.33, isNegativeMargin: false, pacing: 8.95,  externalId: "ext-007", redeemQty: 0, itemSpend: 0 },
    ],
  },
  {
    // 測試用：Neilson 的「無需審核」活動（送出時無任何負毛利品項 → 未命中送審條件、自動放行生效）
    id: "CO-009",
    name: "平日輕鬆購滿$250折$15",
    type: "SxSy",
    spend: 250, save: 15, scheme: "$250 折 $15", discount: 0.94,
    campaignStart: "2026-06-08", campaignEnd: "2026-06-21",
    createdAt: "2026-05-28",
    budget: 60000,
    collectionUuid: "260608-tw-dg-weekday-sxsy",
    status: "coNoReview",
    applicant: "NEILSON",
    updatedAt: "20260530 16:20",
    items: [
      { barcode: "4710088013013", name: "可果美 蕃茄汁 900ml",           cost: 30, suggestPrice: 55, listPrice: 58, promoPrice: 48, discountedPrice: 51.7, isNegativeMargin: false, pacing: 16.82, externalId: "ext-013", redeemQty: 140, itemSpend: 7238 },
      { barcode: "4710088014014", name: "光泉 茉莉清茶 1500ml",          cost: 25, suggestPrice: 45, listPrice: 48, promoPrice: 39, discountedPrice: 42.3, isNegativeMargin: false, pacing: 12.55, externalId: "ext-014", redeemQty: 95,  itemSpend: 4009 },
    ],
  },
];

// ── Promo stub L1 mock data（wireframe 3.2–3.8，版型對齊 Collection Offer）──
const PROMO_STUB_SEEDS = {
  "p-crm": [
    { id: "CRM-001", name: "夏季飲料 CRM 檔", applicant: "NEILSON", campaignStart: "2026-06-01", campaignEnd: "2026-06-30", status: "coApproved",    updatedAt: "20260601 10:00", itemCount: 18 },
    { id: "CRM-002", name: "端午檔 CRM 加碼", applicant: "AMY",     campaignStart: "2026-05-28", campaignEnd: "2026-06-05", status: "coUnderReview", updatedAt: "20260527 16:20", itemCount: 12 },
    { id: "CRM-003", name: "週年慶 CRM 預熱", applicant: "NEILSON", campaignStart: "2026-06-10", campaignEnd: "2026-06-23", status: "coDraft",       updatedAt: "20260530 09:15", itemCount: 8 },
  ],
  "p-page": [
    { id: "PG-001", name: "618 飲料專區頁",   applicant: "NEILSON", campaignStart: "2026-06-01", campaignEnd: "2026-06-18", status: "coApproved",    updatedAt: "20260528 11:30", itemCount: 24 },
    { id: "PG-002", name: "冰品快閃專案頁",   applicant: "DANNY",   campaignStart: "2026-06-15", campaignEnd: "2026-06-30", status: "coUnderReview", updatedAt: "20260602 14:00", itemCount: 16 },
    { id: "PG-003", name: "健康輕食 Collection Page", applicant: "JOY", campaignStart: "2026-05-20", campaignEnd: "2026-06-02", status: "coNoReview", updatedAt: "20260519 08:45", itemCount: 11 },
  ],
  "p-mg": [
    { id: "MG-001", name: "早餐組合 A（麵包+鮮乳）", applicant: "NEILSON", campaignStart: "2026-06-01", campaignEnd: "2026-06-30", status: "coApproved",    updatedAt: "20260531 15:20", itemCount: 2 },
    { id: "MG-002", name: "午間能量組合",           applicant: "AMY",     campaignStart: "2026-06-08", campaignEnd: "2026-06-21", status: "coUnderReview", updatedAt: "20260603 10:10", itemCount: 3 },
    { id: "MG-003", name: "週末零食組合",           applicant: "WAYNE",   campaignStart: "2026-06-06", campaignEnd: "2026-06-09", status: "coRejected",    updatedAt: "20260529 17:00", itemCount: 4 },
  ],
  "p-crm-promo": [
    { id: "CP-001", skuNo: "TW031146019809-00",  name: "農心頂級辛拉麵 130g",       promoType: "加購價", storeScope: "全門店", updatedAt: "20260610 14:00" },
    { id: "CP-002", skuNo: "TW0074261014502-00", name: "萬家香大吟釀香菇素蠔油510g", promoType: "限時價", storeScope: "北部",   updatedAt: "20260608 09:30" },
    { id: "CP-003", skuNo: "TW0088012012-00",    name: "義美 生乳捲 160g",          promoType: "加購價", storeScope: "雙北",   updatedAt: "20260605 16:45" },
  ],
  "p-timeslot": [
    { id: "TS-001", skuNo: "TW031146019809-00",  name: "農心頂級辛拉麵 130g", slot: "08:00–12:00", specialPrice: 39, updatedAt: "20260611 11:00" },
    { id: "TS-002", skuNo: "TW0088014014-00",    name: "光泉 茉莉清茶 1500ml", slot: "17:00–21:00", specialPrice: 29, updatedAt: "20260609 13:20" },
    { id: "TS-003", skuNo: "TW0088001001-00",    name: "統一 純萃喝 礦泉水 1500ml", slot: "12:00–15:00", specialPrice: 25, updatedAt: "20260607 08:50" },
  ],
};

// ── Eats Offer 欄位定義（提升至 global，eo-list 與 eo-detail 共用）────────
const eoc = (key, label, w, group, opts = {}) => ({ key, label, w, group, ...opts });
const EO_NUM_W = 32;

const EO_ALL_COLS = [
  eoc("#",               "#",              EO_NUM_W, null, { stickyNum: true }),
  eoc("barcode",         "品號",           160, "A",  { mono: true, sticky2nd: true, validate: (row) => !row.barcode ? "必填" : (!PRODUCT_MASTER.find(p => p.barcode === row.barcode) ? "查無商品主檔" : null) }),
  eoc("name",            "品名",           200, "A"),
  eoc("fillBy",          "填寫者",          80, "A"),
  eoc("mainCat",         "主類別",          90, "A"),
  eoc("subCat",          "次類別",          90, "A"),
  eoc("cost",            "進價（未稅）",   100, "B",  { mono: true }),
  eoc("newCost",         "新進價",          90, "B",  { mono: true, editable: true }),
  eoc("promoStart",      "促進開始",       110, "B",  { mono: true, editable: true }),
  eoc("promoEnd",        "促進結束",       110, "B",  { mono: true, editable: true }),
  eoc("listPrice",       "牌價",            90, "C",  { mono: true }),
  eoc("suggestPrice",    "建議售價",       100, "C",  { mono: true }),
  eoc("promoPrice",      "促銷售價",       100, "C",  { mono: true, editable: true, validate: (row) => !row.promoPrice ? "必填" : null }),
  eoc("u1PromoPrice",    "U1 Promo Price", 110, "C",  { mono: true, editable: true }),
  eoc("finalPrice",      "最終新售價",     100, "C",  { mono: true }),
  eoc("discountType",    "折扣種類",       130, "C",  { editable: true }),
  eoc("buyQty",          "購買數量",        80, "C",  { mono: true, editable: true }),
  eoc("discountQty",     "折扣數量",        80, "C",  { mono: true, editable: true }),
  eoc("unitPrice",       "折算單件價",      90, "C",  { mono: true }),
  eoc("setPrice",        "商品一組價",      90, "C",  { mono: true }),
  eoc("doEatsOffer",     "是否做 Eats Offer", 110, "C"),
  eoc("menuPromoStart",  "菜單促銷開始",   120, "D",  { mono: true, editable: true, validate: (row) => row.menuPromoStart && !isFriday(row.menuPromoStart) ? "需為週五" : null }),
  eoc("menuPromoEnd",    "菜單促銷結束",   120, "D",  { mono: true, editable: true, validate: (row) => row.menuPromoEnd  && !isThursday(row.menuPromoEnd)  ? "需為週四" : null }),
  eoc("purchaseLimit",   "限購上限",        80, "D",  { mono: true, editable: true }),
  eoc("marginPct",       "毛利率 M%",       85, "E",  { mono: true }),
  eoc("discountPct",     "折扣%off",        80, "E",  { mono: true }),
  eoc("promoCheck",      "真促銷價檢查",   100, "E"),
  eoc("promoVsList",     "促銷<>牌價",      90, "E"),
  eoc("promoDepth",      "真促銷幅度",      90, "E",  { mono: true }),
  eoc("stackDepth",      "疊價幅度",        80, "E",  { mono: true }),
  eoc("autoListAdj",     "牌價自動調整",   100, "E"),
  eoc("autoListWhitelist","自動牌價白名單", 110, "E",  { editable: true }),
  eoc("marketPrice",     "市調售價",        90, "F",  { mono: true }),
  eoc("poc",             "POC(copy)",        90, "F"),
  eoc("vat",             "VAT",             60, "G"),
  eoc("costInErp",       "進價已建檔",      90, "H",  { editable: true }),
  eoc("timeCheck",       "Time Check",      90, "H",  { editable: true }),
  eoc("_action",         "操作",            44, null,  { actionCol: true }),
];

const EO_COMPACT_KEYS = [
  "barcode","name","cost","promoStart","promoEnd",
  "listPrice","promoPrice","finalPrice","discountType",
  "menuPromoStart","menuPromoEnd",
  "marginPct","promoCheck","promoVsList",
];

const EO_GROUP_LABELS = {
  A: "商品基本", B: "進價", C: "售價",
  D: "促銷期間", E: "驗算", F: "參考資料", G: "VAT", H: "ERP",
};

const DISCOUNT_TYPE_OPTIONS = [
  { value: "DISCOUNTEDITEM", label: "直折（DISCOUNTEDITEM）" },
  { value: "BOGO",           label: "買一送一（BOGO）" },
  { value: "Volume Discount",label: "量販折扣（Volume Discount）" },
  { value: "Frame",          label: "促銷圖框（Frame）" },
];

const isFriday   = (d) => d && new Date(d + "T00:00:00").getDay() === 5;
const isThursday = (d) => d && new Date(d + "T00:00:00").getDay() === 4;

// ── Eats Offer 模組設定 ────────────────────────────────────────────────────
const EO_MODULE_CONFIG = {
  hasApproval: true,
  editUsers:   ["NEILSON"],
  reviewUsers: ["JOANNA"],
};

// ── Eats Offer mock data（展平：每筆 = 一個品項，無批次層級）────────────────
// marginPct = (finalPrice - cost) / finalPrice
// 每筆品項各自持有 status：eoDraft → eoUnderReview/eoNoReview → eoApproved
// lineOwner = 該品項所屬採購線的負責採購（prototype 模擬欄，不顯示於前端）。
//   ⚠️ 正式系統應改為從「品項分類 → 採購線別指派（SEED_LINE_ASSIGNMENTS）→ 負責採購」推導，
//   且此欄永遠不渲染。採購視角只看到 lineOwner === 自己 的品項（線別可見）。
const SEED_EATS_OFFERS = [
  // eoDraft 品項
  {
    uid: "eo-r001a", applicant: "NEILSON", fillBy: "NEILSON", lineOwner: "NEILSON",
    status: "eoDraft", createdAt: "2026-05-28", updatedAt: "20260528 14:30",
    barcode: "4710063312168", name: "林鳳營全脂鮮乳 期間限定超值組(1857ml+630ml)",
    mainCat: "冷藏乳飲", subCat: "鮮乳",
    cost: 191.3, newCost: null, promoStart: "2026-06-05", promoEnd: "2026-06-11",
    listPrice: 274, suggestPrice: 274,
    promoPrice: 239, u1PromoPrice: null, finalPrice: 239,
    discountType: "DISCOUNTEDITEM", buyQty: null, discountQty: null,
    unitPrice: null, setPrice: null, doEatsOffer: "YES",
    menuPromoStart: "2026-06-05", menuPromoEnd: "2026-06-11", purchaseLimit: null,
    marginPct: 0.2008, discountPct: 0.1277,
    promoCheck: "PASS", promoVsList: "PASS",
    promoDepth: 0.1277, stackDepth: null, autoListAdj: "NO", autoListWhitelist: false,
    marketPrice: null, poc: "NEILSON", vat: "免稅", costInErp: null, timeCheck: false,
  },
  {
    uid: "eo-r001b", applicant: "DANNY", fillBy: "DANNY", lineOwner: "KEVIN",
    status: "eoDraft", createdAt: "2026-05-28", updatedAt: "20260528 14:30",
    barcode: "074570334117", name: "Häagen-Dazs 草莓冰淇淋 品脫 473ml",
    mainCat: "冷凍食品", subCat: "冰品",
    cost: 238.1, newCost: null, promoStart: "2026-06-05", promoEnd: "2026-06-11",
    listPrice: 369, suggestPrice: 369,
    promoPrice: 319, u1PromoPrice: 299, finalPrice: 299,
    discountType: "BOGO", buyQty: 1, discountQty: 1,
    unitPrice: null, setPrice: null, doEatsOffer: "YES",
    menuPromoStart: "2026-06-05", menuPromoEnd: "2026-06-11", purchaseLimit: 2,
    marginPct: 0.2034, discountPct: 0.1897,
    promoCheck: "FAIL", promoVsList: "PASS",
    promoDepth: 0.1355, stackDepth: null, autoListAdj: "NO", autoListWhitelist: false,
    marketPrice: null, poc: "NEILSON", vat: "應稅", costInErp: null, timeCheck: false,
  },
  // eoUnderReview 品項（marginPct < 20% 觸發送審）
  {
    uid: "eo-r002a", applicant: "NEILSON", fillBy: "NEILSON", lineOwner: "NEILSON",
    status: "eoUnderReview", createdAt: "2026-05-14", updatedAt: "20260514 10:05",
    barcode: "4710063312168", name: "林鳳營全脂鮮乳 期間限定超值組(1857ml+630ml)",
    mainCat: "冷藏乳飲", subCat: "鮮乳",
    cost: 191.3, newCost: null, promoStart: "2026-05-23", promoEnd: "2026-05-29",
    listPrice: 274, suggestPrice: 274,
    promoPrice: 199, u1PromoPrice: null, finalPrice: 199,
    discountType: "DISCOUNTEDITEM", buyQty: null, discountQty: null,
    unitPrice: null, setPrice: null, doEatsOffer: "YES",
    menuPromoStart: "2026-05-23", menuPromoEnd: "2026-05-29", purchaseLimit: null,
    marginPct: 0.0387, discountPct: 0.2737,
    promoCheck: "PASS", promoVsList: "PASS",
    promoDepth: 0.2737, stackDepth: null, autoListAdj: "YES", autoListWhitelist: false,
    marketPrice: null, poc: "NEILSON", vat: "免稅", costInErp: true, timeCheck: true,
  },
  {
    uid: "eo-r002b", applicant: "NEILSON", fillBy: "NEILSON", lineOwner: "KEVIN",
    status: "eoUnderReview", createdAt: "2026-05-14", updatedAt: "20260514 10:05",
    barcode: "074570334117", name: "Häagen-Dazs 草莓冰淇淋 品脫 473ml",
    mainCat: "冷凍食品", subCat: "冰品",
    cost: 238.1, newCost: null, promoStart: "2026-05-23", promoEnd: "2026-05-29",
    listPrice: 369, suggestPrice: 369,
    promoPrice: 299, u1PromoPrice: null, finalPrice: 299,
    discountType: "BOGO", buyQty: 1, discountQty: 1,
    unitPrice: null, setPrice: null, doEatsOffer: "YES",
    menuPromoStart: "2026-05-23", menuPromoEnd: "2026-05-29", purchaseLimit: 2,
    marginPct: 0.2036, discountPct: 0.1897,
    promoCheck: "PASS", promoVsList: "PASS",
    promoDepth: 0.1897, stackDepth: null, autoListAdj: "NO", autoListWhitelist: false,
    marketPrice: null, poc: "NEILSON", vat: "應稅", costInErp: true, timeCheck: true,
  },
  // eoNoReview 品項（所有品項 marginPct ≥ 20%，自動放行）
  {
    uid: "eo-r003a", applicant: "NEILSON", fillBy: "NEILSON", lineOwner: "KEVIN",
    status: "eoNoReview", createdAt: "2026-05-07", updatedAt: "20260507 09:20",
    barcode: "074570334117", name: "Häagen-Dazs 草莓冰淇淋 品脫 473ml",
    mainCat: "冷凍食品", subCat: "冰品",
    cost: 238.1, newCost: null, promoStart: "2026-05-09", promoEnd: "2026-05-15",
    listPrice: 369, suggestPrice: 369,
    promoPrice: 329, u1PromoPrice: null, finalPrice: 329,
    discountType: "Volume Discount", buyQty: 2, discountQty: null,
    unitPrice: null, setPrice: null, doEatsOffer: "YES",
    menuPromoStart: "2026-05-09", menuPromoEnd: "2026-05-15", purchaseLimit: 2,
    marginPct: 0.2764, discountPct: 0.1085,
    promoCheck: "PASS", promoVsList: "PASS",
    promoDepth: 0.1085, stackDepth: null, autoListAdj: "NO", autoListWhitelist: false,
    marketPrice: null, poc: "NEILSON", vat: "應稅", costInErp: true, timeCheck: true,
  },
  {
    uid: "eo-r003b", applicant: "NEILSON", fillBy: "NEILSON", lineOwner: "AMY",
    status: "eoNoReview", createdAt: "2026-05-07", updatedAt: "20260507 09:20",
    barcode: "4710054160235", name: "蘇菲瞬吸加長超薄護墊天然無香(15.5CM/32片 x 2包/組)",
    mainCat: "紙棉製品", subCat: "衛生棉",
    cost: 57.3, newCost: null, promoStart: "2026-05-09", promoEnd: "2026-05-15",
    listPrice: 88, suggestPrice: 88,
    promoPrice: 75, u1PromoPrice: null, finalPrice: 75,
    discountType: "Frame", buyQty: null, discountQty: null,
    unitPrice: null, setPrice: null, doEatsOffer: "YES",
    menuPromoStart: "2026-05-09", menuPromoEnd: "2026-05-15", purchaseLimit: null,
    marginPct: 0.2360, discountPct: 0.1477,
    promoCheck: "PASS", promoVsList: "PASS",
    promoDepth: 0.1477, stackDepth: null, autoListAdj: "NO", autoListWhitelist: false,
    marketPrice: null, poc: "NEILSON", vat: "應稅", costInErp: true, timeCheck: true,
  },
  // eoApproved 品項（Joanna 人工審核通過）
  {
    uid: "eo-r004a", applicant: "NEILSON", fillBy: "NEILSON", lineOwner: "NEILSON",
    status: "eoApproved", createdAt: "2026-04-23", updatedAt: "20260425 16:10",
    barcode: "4710063312168", name: "林鳳營全脂鮮乳 期間限定超值組(1857ml+630ml)",
    mainCat: "冷藏乳飲", subCat: "鮮乳",
    cost: 191.3, newCost: null, promoStart: "2026-04-25", promoEnd: "2026-05-01",
    listPrice: 274, suggestPrice: 274,
    promoPrice: 239, u1PromoPrice: 219, finalPrice: 219,
    discountType: "Volume Discount", buyQty: 3, discountQty: null,
    unitPrice: null, setPrice: null, doEatsOffer: "YES",
    menuPromoStart: "2026-04-25", menuPromoEnd: "2026-05-01", purchaseLimit: null,
    marginPct: 0.1260, discountPct: 0.2007,
    promoCheck: "PASS", promoVsList: "PASS",
    promoDepth: 0.2007, stackDepth: null, autoListAdj: "YES", autoListWhitelist: false,
    marketPrice: null, poc: "NEILSON", vat: "免稅", costInErp: true, timeCheck: true,
  },
  // DANNY 的品項（其他採購，NEILSON 可見但不可編輯）
  {
    uid: "eo-r005a", applicant: "DANNY", fillBy: "DANNY", lineOwner: "NEILSON",
    status: "eoDraft", createdAt: "2026-05-27", updatedAt: "20260527 10:15",
    barcode: "9310653105696", name: "Chobani希臘式優格 香草160g",
    mainCat: "冷藏乳飲", subCat: "優格",
    cost: 126, newCost: null, promoStart: "2026-06-19", promoEnd: "2026-06-25",
    listPrice: 189, suggestPrice: 189,
    promoPrice: 169, u1PromoPrice: null, finalPrice: 169,
    discountType: "Frame", buyQty: null, discountQty: null,
    unitPrice: null, setPrice: null, doEatsOffer: "YES",
    menuPromoStart: "2026-06-19", menuPromoEnd: "2026-06-25", purchaseLimit: null,
    marginPct: 0.2544, discountPct: 0.1058,
    promoCheck: "PASS", promoVsList: "PASS",
    promoDepth: 0.1058, stackDepth: null, autoListAdj: "NO", autoListWhitelist: false,
    marketPrice: null, poc: "DANNY", vat: "應稅", costInErp: null, timeCheck: false,
  },
  {
    uid: "eo-r005b", applicant: "DANNY", fillBy: "DANNY", lineOwner: "ANGELA",
    status: "eoUnderReview", createdAt: "2026-05-20", updatedAt: "20260520 15:45",
    barcode: "4711676950013", name: "賈以食日-麻花麵381g",
    mainCat: "米油雜糧", subCat: "拌麵",
    cost: 166, newCost: null, promoStart: "2026-05-22", promoEnd: "2026-05-28",
    listPrice: 249, suggestPrice: 249,
    promoPrice: 199, u1PromoPrice: null, finalPrice: 199,
    discountType: "DISCOUNTEDITEM", buyQty: null, discountQty: null,
    unitPrice: null, setPrice: null, doEatsOffer: "YES",
    menuPromoStart: "2026-05-22", menuPromoEnd: "2026-05-28", purchaseLimit: 1,
    marginPct: 0.1658, discountPct: 0.2008,
    promoCheck: "PASS", promoVsList: "PASS",
    promoDepth: 0.2008, stackDepth: null, autoListAdj: "YES", autoListWhitelist: false,
    marketPrice: null, poc: "DANNY", vat: "應稅", costInErp: true, timeCheck: true,
  },
  {
    uid: "eo-r005c", applicant: "DANNY", fillBy: "DANNY", lineOwner: "NEILSON",
    status: "eoApproved", createdAt: "2026-05-13", updatedAt: "20260515 11:30",
    barcode: "9310653105641", name: "Chobani希臘式優格-草莓160g",
    mainCat: "冷藏乳飲", subCat: "優格",
    cost: 126, newCost: null, promoStart: "2026-05-15", promoEnd: "2026-05-21",
    listPrice: 189, suggestPrice: 189,
    promoPrice: 159, u1PromoPrice: null, finalPrice: 159,
    discountType: "DISCOUNTEDITEM", buyQty: null, discountQty: null,
    unitPrice: null, setPrice: null, doEatsOffer: "YES",
    menuPromoStart: "2026-05-15", menuPromoEnd: "2026-05-21", purchaseLimit: null,
    marginPct: 0.2075, discountPct: 0.1587,
    promoCheck: "PASS", promoVsList: "PASS",
    promoDepth: 0.1587, stackDepth: null, autoListAdj: "NO", autoListWhitelist: false,
    marketPrice: null, poc: "DANNY", vat: "應稅", costInErp: true, timeCheck: true,
  },
  // 測試用：Neilson 自己的「已退回」品項（自己線；開編輯 Drawer 見紅 banner + 重新送出）
  {
    uid: "eo-r006a", applicant: "NEILSON", fillBy: "NEILSON", lineOwner: "NEILSON",
    status: "eoRejected", createdAt: "2026-05-26", updatedAt: "20260601 11:20",
    rejectReason: "菜單促銷結束日需為週四，目前填寫為週三，請修正後重新送出。",
    barcode: "4710063312168", name: "林鳳營全脂鮮乳 期間限定超值組(1857ml+630ml)",
    mainCat: "冷藏乳飲", subCat: "鮮乳",
    cost: 191.3, newCost: null, promoStart: "2026-06-19", promoEnd: "2026-06-25",
    listPrice: 274, suggestPrice: 274,
    promoPrice: 239, u1PromoPrice: null, finalPrice: 239,
    discountType: "DISCOUNTEDITEM", buyQty: null, discountQty: null,
    unitPrice: null, setPrice: null, doEatsOffer: "YES",
    menuPromoStart: "2026-06-19", menuPromoEnd: "2026-06-24", purchaseLimit: null,
    marginPct: 0.1996, discountPct: 0.1277,
    promoCheck: "PASS", promoVsList: "PASS",
    promoDepth: 0.1277, stackDepth: null, autoListAdj: "NO", autoListWhitelist: false,
    marketPrice: null, poc: "NEILSON", vat: "免稅", costInErp: null, timeCheck: false,
  },
  // 測試用：其他採購（DANNY）的「已退回」品項，在 NEILSON 線 → Neilson 可見、唯讀檢視
  {
    uid: "eo-r006b", applicant: "DANNY", fillBy: "DANNY", lineOwner: "NEILSON",
    status: "eoRejected", createdAt: "2026-05-24", updatedAt: "20260531 16:40",
    rejectReason: "促銷售價毛利率過低（13%），低於 20% 門檻，請調整促銷售價後重新送出。",
    barcode: "9310653105696", name: "Chobani希臘式優格 香草160g",
    mainCat: "冷藏乳飲", subCat: "優格",
    cost: 126, newCost: null, promoStart: "2026-06-12", promoEnd: "2026-06-18",
    listPrice: 189, suggestPrice: 189,
    promoPrice: 145, u1PromoPrice: null, finalPrice: 145,
    discountType: "DISCOUNTEDITEM", buyQty: null, discountQty: null,
    unitPrice: null, setPrice: null, doEatsOffer: "YES",
    menuPromoStart: "2026-06-12", menuPromoEnd: "2026-06-18", purchaseLimit: null,
    marginPct: 0.1310, discountPct: 0.2328,
    promoCheck: "PASS", promoVsList: "PASS",
    promoDepth: 0.2328, stackDepth: null, autoListAdj: "NO", autoListWhitelist: false,
    marketPrice: null, poc: "DANNY", vat: "應稅", costInErp: null, timeCheck: false,
  },
  // 測試用：Neilson 自己的「已退回」品項（用不同商品「光泉低脂鮮乳」以便一眼辨識；自己線、可重新送出）
  {
    uid: "eo-r007a", applicant: "NEILSON", fillBy: "NEILSON", lineOwner: "NEILSON",
    status: "eoRejected", createdAt: "2026-05-30", updatedAt: "20260603 09:10",
    rejectReason: "促銷售價毛利率僅 16.7%，低於 20% 門檻，且未填寫新進價，請補齊後重新送出。",
    barcode: "4710088002002", name: "光泉 低脂鮮乳 936ml",
    mainCat: "冷藏乳飲", subCat: "鮮乳",
    cost: 55, newCost: null, promoStart: "2026-06-12", promoEnd: "2026-06-18",
    listPrice: 92, suggestPrice: 89,
    promoPrice: 66, u1PromoPrice: null, finalPrice: 66,
    discountType: "DISCOUNTEDITEM", buyQty: null, discountQty: null,
    unitPrice: null, setPrice: null, doEatsOffer: "YES",
    menuPromoStart: "2026-06-12", menuPromoEnd: "2026-06-18", purchaseLimit: null,
    marginPct: 0.1667, discountPct: 0.2584,
    promoCheck: "PASS", promoVsList: "PASS",
    promoDepth: 0.2826, stackDepth: null, autoListAdj: "NO", autoListWhitelist: false,
    marketPrice: null, poc: "NEILSON", vat: "應稅", costInErp: null, timeCheck: false,
  },
  // 測試用：Neilson 的草稿，毛利率 13.9% < 20% → 送出會「觸發審核」（per-item 判斷）。
  // 對照組 eo-r001a(20.08%)/eo-r001b(20.34%) 同批送出 → 各自無需審核、立即生效。
  {
    uid: "eo-r008a", applicant: "NEILSON", fillBy: "NEILSON", lineOwner: "NEILSON",
    status: "eoDraft", createdAt: "2026-05-31", updatedAt: "20260603 10:00",
    barcode: "9310653105641", name: "Chobani希臘式優格-草莓160g",
    mainCat: "冷藏乳飲", subCat: "優格",
    cost: 126, newCost: null, promoStart: "2026-06-05", promoEnd: "2026-06-11",
    listPrice: 189, suggestPrice: 189,
    promoPrice: 146, u1PromoPrice: null, finalPrice: 146,
    discountType: "DISCOUNTEDITEM", buyQty: null, discountQty: null,
    unitPrice: null, setPrice: null, doEatsOffer: "YES",
    menuPromoStart: "2026-06-05", menuPromoEnd: "2026-06-11", purchaseLimit: null,
    marginPct: 0.1370, discountPct: 0.2275,
    promoCheck: "PASS", promoVsList: "PASS",
    promoDepth: 0.2275, stackDepth: null, autoListAdj: "NO", autoListWhitelist: false,
    marketPrice: null, poc: "NEILSON", vat: "應稅", costInErp: null, timeCheck: false,
  },
];

// ── Clearance Offer module config ────────────────────────────────────────────
const CL_MODULE_CONFIG = {
  hasApproval: false,
  editUsers: ["NEILSON"],
};

// ── Clearance SKUs（系統清倉標記商品，供 generate 時使用）────────────────────
const CLEARANCE_SKUS = [
  { barcode: "10001526",      name: "【產地直採】芥藍菜 250g±10%",               clearanceMenu: "優市精選",       clearanceSubCat: "清倉折扣" },
  { barcode: "4719853580077", name: "蕈菇 250g±10%",                             clearanceMenu: "優市精選",       clearanceSubCat: "清倉折扣" },
  { barcode: "10001189",      name: "【產地直採】水果玉米(2人)400g±10%",         clearanceMenu: "優市精選",       clearanceSubCat: "清倉折扣" },
  { barcode: "4710462166003", name: "澳洲馬鈴薯 350g±10%",                       clearanceMenu: "優市精選",       clearanceSubCat: "清倉折扣" },
  { barcode: "10001475",      name: "美國EverCrisp脆蜜富士蘋果(2人盒裝)450g±10%",clearanceMenu: "優市精選",       clearanceSubCat: "清倉折扣" },
  { barcode: "10000878",      name: "台灣雞腿丁(4-5人)450g±10%",                clearanceMenu: "優市精選",       clearanceSubCat: "清倉折扣" },
  { barcode: "10001508",      name: "日本乾燥通合會(8-10人)250g±10%",            clearanceMenu: "優市精選",       clearanceSubCat: "清倉折扣" },
  { barcode: "4718006002077", name: "冷凍豬絞肉 100g",                            clearanceMenu: "即食食品上開動", clearanceSubCat: "加熱即食" },
  { barcode: "4712966668121", name: "餐城剁椒辣雞腿 600g",                        clearanceMenu: "即食食品上開動", clearanceSubCat: "加熱即食" },
  { barcode: "4712966668458", name: "餐城廚師剁椒辣雞腿 800g",                    clearanceMenu: "即食食品上開動", clearanceSubCat: "水煮即食" },
  { barcode: "4712795661149", name: "排七鋼管炸雞排 800g",                        clearanceMenu: "即食食品上開動", clearanceSubCat: "解凍即食" },
  { barcode: "4712795661880", name: "排七鋼管剁椒辣雞排 800g",                    clearanceMenu: "即食食品上開動", clearanceSubCat: "解凍即食" },
  { barcode: "4712795661456", name: "排七鋼管炸雞排 600g",                        clearanceMenu: "即食食品上開動", clearanceSubCat: "開封即食" },
  { barcode: "4710011401104", name: "桂冠餃子 90g",                               clearanceMenu: "火鍋專盒",       clearanceSubCat: "桂冠專盒" },
  { barcode: "4710011405133", name: "桂冠餃子 92g",                               clearanceMenu: "火鍋專盒",       clearanceSubCat: "桂冠專盒" },
  { barcode: "4710011401401", name: "桂冠載餃 100g",                              clearanceMenu: "火鍋專盒",       clearanceSubCat: "桂冠專盒" },
  { barcode: "4710011402019", name: "桂冠花生湯圓 200g",                           clearanceMenu: "火鍋專盒",       clearanceSubCat: "桂冠專盒" },
  { barcode: "4713077732786", name: "嚴選蔥 400g±10%",                            clearanceMenu: "火鍋專盒",       clearanceSubCat: "蔬菜" },
  { barcode: "4713077700686", name: "嚴選香菜 200g±10%",                          clearanceMenu: "火鍋專盒",       clearanceSubCat: "蔬菜" },
  { barcode: "10001135",      name: "鴻喜菇 150g±10%",                            clearanceMenu: "火鍋專盒",       clearanceSubCat: "蔬菜" },
  { barcode: "4713307714003", name: "綜合菇 300g±10%",                            clearanceMenu: "火鍋專盒",       clearanceSubCat: "蔬菜" },
  { barcode: "4711228640010", name: "澎湖明興花枝餃 150g",                         clearanceMenu: "火鍋專盒",       clearanceSubCat: "火鍋料" },
  { barcode: "4711228640911", name: "澎湖明興花枝球 150g",                         clearanceMenu: "火鍋專盒",       clearanceSubCat: "火鍋料" },
  { barcode: "4710011432412", name: "桂冠花枝蝦黃 150g",                           clearanceMenu: "火鍋專盒",       clearanceSubCat: "火鍋料" },
  { barcode: "4716908629620", name: "樹頂100%鳳梨綜合果汁 300ml",                  clearanceMenu: "大口暢款",       clearanceSubCat: "大口暢款" },
  { barcode: "4716908622225", name: "樹頂100%蘋果氣泡飲 320ml罐裝",               clearanceMenu: "大口暢款",       clearanceSubCat: "大口暢款" },
  { barcode: "4716908629220", name: "樹頂100%橘子綜合果汁 200MLx6入",             clearanceMenu: "大口暢款",       clearanceSubCat: "大口暢款" },
  { barcode: "4716908629820", name: "樹頂100%葡萄綜合果汁 200MLx6入",             clearanceMenu: "大口暢款",       clearanceSubCat: "大口暢款" },
];

const _mkClItems = (skus, prefix) =>
  skus.map((s, i) => ({ uid: `${prefix}-${i}`, ...s }));

const SEED_CLEARANCE_OFFERS = [
  {
    id: "CL-001",
    weekStart: "2026-05-15",
    applicant: "NEILSON",
    createdAt: "2026-05-14",
    updatedAt: "20260514 10:30",
    items: _mkClItems(CLEARANCE_SKUS, "ci-001"),
  },
  {
    id: "CL-002",
    weekStart: "2026-05-08",
    applicant: "NEILSON",
    createdAt: "2026-05-07",
    updatedAt: "20260507 09:15",
    items: _mkClItems(CLEARANCE_SKUS.slice(0, 20), "ci-002"),
  },
  {
    id: "CL-003",
    weekStart: "2026-05-01",
    applicant: "NEILSON",
    createdAt: "2026-04-30",
    updatedAt: "20260430 14:20",
    items: _mkClItems(CLEARANCE_SKUS.slice(6), "ci-003"),
  },
];

// ===== AUTH — 使用者管理 =====================================================
const AUTH_ROLES = ["BUYER", "BUYER_LEAD", "CRM_MGR", "VENDOR_MGR", "SYS_ADMIN", "TEST_ROLE"];
const AUTH_ROLE_LABELS = {
  BUYER: "採購",
  BUYER_LEAD: "採購主管",
  CRM_MGR: "CRM 主管",
  VENDOR_MGR: "廠商主管",
  SYS_ADMIN: "系統管理員",
  TEST_ROLE: "測試用角色（可刪）",
};
const AUTH_DEPARTMENTS = ["採購部", "IT部", "CRM部", "廠商管理部（可刪）"];
const AUTH_JOB_POSITIONS = ["採購專員", "採購主管", "系統管理員", "IT主管", "CRM主管"];

// ── perms shorthand: { create, edit, view, delete } ──────────────────────
const p = (c, e, v, d) => ({ create: c, edit: e, view: v, delete: d });

const AUTH_ROLE_PERMISSIONS = {
  BUYER: [
    { category: "商品", modules: [
      { name: "新商品建立單", perms: p(true,  true,  true, false) },
      { name: "商品主檔",     perms: p(false, false, true, false) },
      { name: "進價歷史總表", perms: p(false, false, true, false) },
    ]},
    { category: "商品調整", modules: [
      { name: "轉廠商調整",   perms: p(true, true, true, false) },
      { name: "價格調整",     perms: p(true, true, true, false) },
      { name: "商品狀態調整", perms: p(true, true, true, false) },
      { name: "圖片調整",     perms: p(false, false, true, false) },
    ]},
    { category: "優惠與活動", modules: [
      { name: "單品優惠 Eats Offer", perms: p(true, true, true, false) },
      { name: "清倉折扣",               perms: p(true, true, true, false) },
      { name: "滿額折／滿件折",         perms: p(true, true, true, false) },
    ]},
  ],
  BUYER_LEAD: [
    { category: "商品", modules: [
      { name: "新商品建立單", perms: p(true,  true,  true, true ) },
      { name: "商品主檔",     perms: p(false, false, true, false) },
      { name: "進價歷史總表", perms: p(false, false, true, false) },
    ]},
    { category: "商品調整", modules: [
      { name: "轉廠商調整",   perms: p(true, true, true, true ) },
      { name: "價格調整",     perms: p(true, true, true, true ) },
      { name: "商品狀態調整", perms: p(true, true, true, true ) },
      { name: "圖片調整",     perms: p(false, true, true, false) },
    ]},
    { category: "優惠與活動", modules: [
      { name: "單品優惠 Eats Offer", perms: p(true, true, true, true) },
      { name: "清倉折扣",               perms: p(true, true, true, true) },
      { name: "滿額折／滿件折",         perms: p(true, true, true, true) },
    ]},
  ],
  CRM_MGR: [
    { category: "商品", modules: [
      { name: "商品主檔", perms: p(false, false, true, false) },
    ]},
    { category: "優惠與活動", modules: [
      { name: "單品優惠 Eats Offer",    perms: p(true, true, true, true) },
      { name: "CRM 商品活動",              perms: p(true, true, true, true) },
      { name: "清倉折扣",                  perms: p(true, true, true, true) },
      { name: "滿額折／滿件折",            perms: p(true, true, true, true) },
      { name: "專案頁 Collection Page", perms: p(true, true, true, true) },
      { name: "商品組合 MG",            perms: p(true, true, true, true) },
    ]},
  ],
  VENDOR_MGR: [
    { category: "商品", modules: [
      { name: "商品主檔",     perms: p(false, false, true, false) },
      { name: "進價歷史總表", perms: p(false, false, true, false) },
    ]},
    { category: "商品調整", modules: [
      { name: "轉廠商調整", perms: p(true, true, true, false) },
    ]},
    { category: "廠商", modules: [
      { name: "廠商基本資料", perms: p(true, true, true, false) },
      { name: "廠商配送資訊", perms: p(true, true, true, false) },
    ]},
  ],
  SYS_ADMIN: [
    { category: "帳號與權限", modules: [
      { name: "使用者管理",   perms: p(true, true, true, true) },
      { name: "審核流程設定", perms: p(true, true, true, true) },
      { name: "角色存取權限設定", perms: p(true, true, true, true) },
      { name: "部門設定",     perms: p(true, true, true, true) },
      { name: "職位設定",     perms: p(true, true, true, true) },
      { name: "採購線別指派", perms: p(true, true, true, true) },
    ]},
    { category: "系統設定", modules: [
      { name: "菜單主類別", perms: p(true, true, true, true) },
      { name: "菜單次類別", perms: p(true, true, true, true) },
      { name: "品牌",       perms: p(true, true, true, true) },
      { name: "溫層",       perms: p(true, true, true, true) },
    ]},
  ],
};

const ALL_MODULES = [
  { category: "商品",         modules: ["新商品建立單", "商品主檔", "進價歷史總表"] },
  { category: "商品調整",     modules: ["轉廠商調整", "價格調整", "商品狀態調整", "圖片調整"] },
  { category: "優惠與活動",   modules: ["單品優惠 Eats Offer", "CRM 商品活動", "清倉折扣", "滿額折／滿件折", "專案頁 Collection Page", "商品組合 MG"] },
  { category: "廠商",         modules: ["廠商基本資料", "廠商配送資訊"] },
  { category: "帳號與權限",   modules: ["使用者管理", "採購線別指派", "審核流程設定", "角色存取權限設定", "部門設定", "職位設定"] },
  { category: "系統設定", modules: ["菜單主類別", "菜單次類別", "品牌", "溫層"] },
];

const SEED_USERS = [
  {
    id: "user-001", name: "Neilson", email: "neilson@ue.com", password: "Demo1234",
    department: "採購部", jobPosition: "採購專員",
    roles: ["BUYER"], status: "active", mustChangePassword: false, tempPassword: null,
  },
  {
    id: "user-002", name: "Joanna", email: "joanna@ue.com", password: "Demo1234",
    department: "採購部", jobPosition: "採購主管",
    roles: ["BUYER_LEAD"], status: "active", mustChangePassword: false, tempPassword: null,
  },
  {
    id: "user-003", name: "Samantha", email: "samantha@ue.com", password: "Demo1234",
    department: "IT部", jobPosition: "系統管理員",
    roles: ["SYS_ADMIN"], status: "active", mustChangePassword: false, tempPassword: null,
  },
  {
    id: "user-004", name: "Johnny", email: "johnny@ue.com", password: "Demo1234",
    department: "IT部", jobPosition: "IT主管",
    roles: ["CRM_MGR", "VENDOR_MGR"], status: "active", mustChangePassword: false, tempPassword: null,
  },
  {
    id: "user-005", name: "ex-user", email: "ex-user@ue.com", password: "Demo1234",
    department: "採購部", jobPosition: "採購專員",
    roles: ["BUYER"], status: "disabled", mustChangePassword: false, tempPassword: null,
  },
  {
    id: "user-006", name: "Angela", email: "angela@ue.com", password: "Demo1234",
    department: "採購部", jobPosition: "採購專員",
    roles: ["BUYER"], status: "active", mustChangePassword: false, tempPassword: null,
  },
  {
    id: "user-007", name: "Kevin", email: "kevin@ue.com", password: "Demo1234",
    department: "採購部", jobPosition: "採購專員",
    roles: ["BUYER"], status: "active", mustChangePassword: false, tempPassword: null,
  },
  {
    id: "user-008", name: "Tracy", email: "tracy@ue.com", password: "Demo1234",
    department: "採購部", jobPosition: "採購主管",
    roles: ["BUYER_LEAD"], status: "active", mustChangePassword: false, tempPassword: null,
  },
  {
    id: "user-009", name: "Daniel", email: "daniel@ue.com", password: "Demo1234",
    department: "採購部", jobPosition: "採購專員",
    roles: ["BUYER"], status: "active", mustChangePassword: false, tempPassword: null,
  },
];

// ── 採購線別指派 seed data ────────────────────────────────────────────────────
// Pre-assign a few subcategories to demonstrate the feature.
const _PRESET = {
  "冷藏乳飲|鮮乳": "user-001", "冷藏乳飲|優格": "user-001", "冷藏乳飲|豆奶": "user-001",
  "肉品|豬肉/羊肉": "user-001", "肉品|牛肉": "user-001", "肉品|雞肉": "user-001", "肉品|海鮮": "user-001",
  "糖果零食|洋芋片": "user-002", "糖果零食|餅乾": "user-002", "糖果零食|糖果類": "user-002", "糖果零食|巧克力": "user-002",
  "米油雜糧|拌麵": "user-002", "米油雜糧|麵類": "user-002",
  "飲料|碳酸飲料": "user-006", "飲料|茶飲": "user-006", "飲料|果汁": "user-006", "飲料|咖啡": "user-006",
  "冷凍食品|冰品": "user-007", "冷凍食品|水餃": "user-007", "冷凍食品|微波餐": "user-007",
  "紙棉製品|衛生棉": "user-009", "紙棉製品|衛生紙": "user-009", "紙棉製品|尿布": "user-009",
};
const SEED_LINE_ASSIGNMENTS = Object.entries(CATEGORY_TREE).flatMap(([mainCat, subCats]) =>
  subCats.map(subCat => ({ mainCat, subCat, ownerId: _PRESET[`${mainCat}|${subCat}`] || null }))
);

// ===== 門店 ================================================================
const STORE_MASTER = [
  { id: "W01", name: "北投店", updatedAt: "2026-05-31 09:00:00" },
  { id: "W02", name: "內湖店", updatedAt: "2026-05-31 08:58:00" },
  { id: "W03", name: "中山店", updatedAt: "2026-05-31 09:01:00" },
  { id: "W04", name: "大安店", updatedAt: "2026-05-31 08:55:00" },
  { id: "W05", name: "三重店", updatedAt: "2026-05-31 09:02:00" },
  { id: "W06", name: "中和店", updatedAt: "2026-05-31 08:59:00" },
  { id: "W07", name: "新店店", updatedAt: "2026-05-31 09:00:00" },
  { id: "W08", name: "精武店", updatedAt: "2026-05-31 08:57:00" },
  { id: "W09", name: "桃園店", updatedAt: "2026-05-31 09:03:00" },
  { id: "W10", name: "新竹店", updatedAt: "2026-05-31 08:56:00" },
  { id: "W11", name: "南屯店", updatedAt: "2026-05-31 09:00:00" },
];

const _ST_SKUS = [
  ["TW031146019809-00",  "農心頂級辛拉麵 (微辣牛骨湯) 130g"],
  ["TW031146157877-00",  "農心香辣海鮮味烏龍麵120g*4入"],
  ["TW0074261014502-00", "萬家香大吟釀香菇素蠔油510g"],
  ["TW039047001138-00",  "Walkers蘇格蘭皇家迷你奶油餅乾160g"],
  ["TW014100079477-00",  "Swiss Miss牛奶巧克力風味即溶可可粉341g"],
  ["TW014100016805-00",  "Swiss Miss棉花糖即溶可可粉311g"],
  ["TW019000047156-00",  "Pepperidge Farm金魚餅乾白切達起司味187g"],
  ["TW075450072156-00",  "農心魷魚韓式炒麵130g"],
  ["TW041637000141-00",  "家樂氏Special K紅莓穀物早餐棒6入"],
  ["TW028400589406-00",  "貝氏堡藍黴奶油夾心餅乾124.8g"],
  ["TW030000063000-00",  "Quaker即沖燕麥片500g"],
  ["TW729238207300-00",  "萬家香純佳釀醬油500ml"],
];

// 11 stores × 12 SKUs = 132 rows; 0 = 缺貨
const _ST_INV = [
  [16, 22,  0, 13,  8,  5, 11,  0,  7,  3, 18,  9],
  [ 8,  0,  5,  0,  3,  1,  6, 12,  4,  0, 24,  7],
  [12,  7,  9,  4,  0,  8,  0,  5,  2,  6, 11, 15],
  [ 0,  3, 14,  6,  5,  0,  8,  0,  9,  8,  6, 22],
  [21,  9,  7,  8,  6,  4, 12,  3,  0,  5, 16,  0],
  [ 5, 14,  0, 11,  0,  7,  4, 18,  3,  0,  8, 12],
  [18,  6, 10,  0,  7,  3,  9,  7,  6,  4, 19,  5],
  [ 3,  0,  8,  7,  4,  0,  7,  9,  0,  7,  5, 18],
  [11, 15,  3, 12,  0,  6, 14,  4,  8,  0, 12, 11],
  [ 7,  8, 11,  5,  3,  9,  6,  0,  5,  3,  7,  4],
  [14,  4,  0,  9,  8,  2,  0, 11,  7,  9, 13,  8],
];

const INVENTORY_SEED = STORE_MASTER.flatMap((store, si) =>
  _ST_SKUS.map(([skuId, skuName], pi) => ({
    storeId:   store.id,
    storeName: store.name,
    skuId,
    skuName,
    inventory: _ST_INV[si][pi],
    updatedAt: store.updatedAt,
  }))
);

// ===== 門店分區 ============================================================
// storeIds 對應 STORE_MASTER: W01北投 W02內湖 W03中山 W04大安 W05三重 W06中和 W07新店 W08精武 W09桃園 W10新竹 W11南屯
const ZONE_MASTER_SEED = [
  { id: "Z01", zoneName: "全",       storeIds: ["W01","W02","W03","W04","W05","W06","W07","W08","W09","W10","W11"], note: "全店",               createdAt: "2026-01-01", updatedAt: "20260531 09:00" },
  { id: "Z02", zoneName: "北部",     storeIds: ["W01","W02","W03","W04","W05","W06","W07","W09","W10"],             note: "中山、中和、內湖、三重、新店、大安、北投、桃園、新竹", createdAt: "2026-01-01", updatedAt: "20260531 09:00" },
  { id: "Z03", zoneName: "雙北",     storeIds: ["W01","W02","W03","W04","W05","W06","W07"],             note: "北部門店排除桃園、新竹",   createdAt: "2026-01-01", updatedAt: "20260531 09:00" },
  { id: "Z04", zoneName: "北北桃",   storeIds: ["W01","W02","W03","W04","W05","W06","W07","W09"],       note: "北部門店排除新竹",         createdAt: "2026-01-01", updatedAt: "20260531 09:00" },
  { id: "Z05", zoneName: "中部",     storeIds: ["W08","W11"],                                           note: "精武、南屯",               createdAt: "2026-01-01", updatedAt: "20260531 09:00" },
  { id: "Z06", zoneName: "桃竹",     storeIds: ["W09","W10"],                                           note: "桃園、新竹",               createdAt: "2026-01-01", updatedAt: "20260531 09:00" },
  { id: "Z07", zoneName: "雙北+中部",storeIds: ["W01","W02","W03","W04","W05","W06","W07","W08","W11"], note: "所有門店排除桃竹",         createdAt: "2026-01-01", updatedAt: "20260531 09:00" },
  { id: "Z08", zoneName: "中山店",   storeIds: ["W03"],                                                 note: "中山",                     createdAt: "2026-01-01", updatedAt: "20260531 09:00" },
];

// W01北投 W02內湖 W03中山 W04大安 W05三重 W06中和 W07新店 W08精武 W09桃園 W10新竹 W11南屯
const STORE_GRADE_SEED = [
  { categoryName: "冷藏乳飲",       tiers: { W01:"T2", W02:"T1", W03:"T2", W04:"T0", W05:"T1", W06:"T1", W07:"T1", W08:"T2", W09:"T2", W10:"T1", W11:"T2" } },
  { categoryName: "蔬菜",           tiers: { W01:"T2", W02:"T1", W03:"T2", W04:"T1", W05:"T1", W06:"T1", W07:"T1", W08:"T2", W09:"T2", W10:"T1", W11:"T2" } },
  { categoryName: "冷凍食品",       tiers: { W01:"T2", W02:"T1", W03:"T2", W04:"T2", W05:"T1", W06:"T1", W07:"T2", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
  { categoryName: "飲料",           tiers: { W01:"T2", W02:"T2", W03:"T2", W04:"T2", W05:"T2", W06:"T2", W07:"T2", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
  { categoryName: "糖果零食",       tiers: { W01:"T2", W02:"T2", W03:"T2", W04:"T2", W05:"T2", W06:"T2", W07:"T2", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
  { categoryName: "肉品",           tiers: { W01:"T2", W02:"T1", W03:"T2", W04:"T2", W05:"T1", W06:"T1", W07:"T2", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
  { categoryName: "水果",           tiers: { W01:"T2", W02:"T1", W03:"T2", W04:"T1", W05:"T1", W06:"T1", W07:"T1", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
  { categoryName: "米油雜糧",       tiers: { W01:"T2", W02:"T2", W03:"T2", W04:"T2", W05:"T2", W06:"T2", W07:"T2", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
  { categoryName: "蛋品",           tiers: { W01:"T2", W02:"T2", W03:"T2", W04:"T2", W05:"T2", W06:"T2", W07:"T2", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
  { categoryName: "罐頭調味",       tiers: { W01:"T2", W02:"T2", W03:"T2", W04:"T2", W05:"T2", W06:"T2", W07:"T2", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
  { categoryName: "紙棉製品",       tiers: { W01:"T2", W02:"T2", W03:"T2", W04:"T2", W05:"T2", W06:"T2", W07:"T2", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
  { categoryName: "冷藏食品",       tiers: { W01:"T2", W02:"T2", W03:"T2", W04:"T2", W05:"T2", W06:"T2", W07:"T2", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
  { categoryName: "海鮮",           tiers: { W01:"T2", W02:"T2", W03:"T2", W04:"T2", W05:"T2", W06:"T2", W07:"T2", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
  { categoryName: "家用清潔",       tiers: { W01:"T2", W02:"T2", W03:"T2", W04:"T2", W05:"T2", W06:"T2", W07:"T2", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
  { categoryName: "烘焙與名店禮盒", tiers: { W01:"T2", W02:"T2", W03:"T2", W04:"T2", W05:"T2", W06:"T2", W07:"T2", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
  { categoryName: "個人清潔",       tiers: { W01:"T2", W02:"T2", W03:"T2", W04:"T2", W05:"T2", W06:"T2", W07:"T2", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
  { categoryName: "美妝保養",       tiers: { W01:"T2", W02:"T2", W03:"T2", W04:"T2", W05:"T2", W06:"T2", W07:"T2", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
  { categoryName: "生活百貨",       tiers: { W01:"T2", W02:"T2", W03:"T2", W04:"T2", W05:"T2", W06:"T2", W07:"T2", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
  { categoryName: "成人保健",       tiers: { W01:"T2", W02:"T2", W03:"T2", W04:"T2", W05:"T2", W06:"T2", W07:"T2", W08:"T2", W09:"T2", W10:"T2", W11:"T2" } },
];

const genTempPassword = () => {
  const chars = "ABCDEFGHJKLMNPQRSTUVWXYZabcdefghjkmnpqrstuvwxyz23456789";
  let s = "";
  for (let i = 0; i < 4; i++) s += chars[Math.floor(Math.random() * chars.length)];
  return "TempPw-" + s;
};

// ===== 類別重複陳列 seed =================================================
const DISPLAY_CAT_SEED = [
  { id: "dc-001", menu: "冷凍食品",       category: "冰品",         secondMenu: "糖果零食",       secondCategory: "洋芋片",   categoryAfter: "巧克力" },
  { id: "dc-002", menu: "冷凍食品",       category: "水餃",         secondMenu: "肉品",           secondCategory: "豬肉/羊肉",categoryAfter: "雞肉" },
  { id: "dc-003", menu: "冷藏食品",       category: "豆腐/豆製品",  secondMenu: "肉品",           secondCategory: "豬肉/羊肉",categoryAfter: "雞肉" },
  { id: "dc-004", menu: "美妝保養",       category: "防曬/隔離",    secondMenu: "個人清潔",       secondCategory: "沐浴用品", categoryAfter: "身體乳液" },
  { id: "dc-005", menu: "美妝保養",       category: "護膚/面膜",    secondMenu: "個人清潔",       secondCategory: "沐浴用品", categoryAfter: "洗髮/護髮" },
  { id: "dc-006", menu: "美妝保養",       category: "彩妝",         secondMenu: "個人清潔",       secondCategory: "口腔清潔", categoryAfter: "身體乳液" },
  { id: "dc-007", menu: "烘焙與名店禮盒", category: "蛋糕/甜點",   secondMenu: "糖果零食",       secondCategory: "餅乾",     categoryAfter: "巧克力" },
];

// ===== 菜單預覽 ===================================================
const SEED_MENU_ITEMS = [
  { ean: "4710018000102", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "可口可樂330ml", title: "可口可樂330ml", description: "保存方式：常溫\n商品保存期限：365天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n勁享休閒時刻，擋不住的暢快口感，勁享美食，就要Coke。", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 20, regularPrice: 20, u1PromoPrice: null, price: 20, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 19, dimW: 13, dimH: 1.92, weight: null, unit: "罐", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "可口可樂", series: null, generalDesc: "勁享休閒時刻，擋不住的暢快口感，勁享美食，就要Coke。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018000102, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 365, externalId: "4710018000102", regularCost: 14.48, costExTax: 14.48, costIncTax: 15, margin: 0.2398, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 302, taxType: "應稅", zone: 1, stock_zhongshan: 16, stock_zhonghe: 34, stock_neihu: 21, stock_sanchong: 45, stock_xindian: 12, stock_daan: 14, stock_beitou: 37, stock_shulin: 0, stock_jingwu: 31, stock_taoyuan: 29, stock_nantun: 36, stock_hsinchu: 27, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/18606746b4f8fbbe302a", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/5f532548a1e2170f9218", isMainCategoryOri: true },
  { ean: "4710018331107", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "舒味思蘇打水330ml", title: "舒味思蘇打水330ml", description: "保存方式：常溫\n商品保存期限：365天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n★全世界最悠久的品牌產品之一\n★清新暢快的口感，風味獨特", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 28, regularPrice: 26, u1PromoPrice: null, price: 26, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2022-09-09", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "Schweppes 舒味思", series: null, generalDesc: "★全世界最悠久的品牌產品之一\n★清新暢快的口感，風味獨特\n★適合搭配美食一起享用", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: "https://drive.google.com/drive/folders/1fqLsgwHH7jRqw1cF3Iq6NOaUJ6zPMxnV", deliveryMethod: null, casCode: null, unCode: 4710018331107, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 365, externalId: "4710018331107", regularCost: 17.86, costExTax: 17.86, costIncTax: 19, margin: 0.2787, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 420, taxType: "應稅", zone: 1, stock_zhongshan: 39, stock_zhonghe: 28, stock_neihu: 28, stock_sanchong: 40, stock_xindian: 41, stock_daan: 40, stock_beitou: 32, stock_shulin: 0, stock_jingwu: 24, stock_taoyuan: 26, stock_nantun: 88, stock_hsinchu: 34, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/51dadc5b0a789adb1f5b", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/c7c6474c14fb5f46d2a5", isMainCategoryOri: true },
  { ean: "4710018331305", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "舒味思薑汁汽水330ML", title: "舒味思薑汁汽水330ML", description: "保存方式：常溫\n商品保存期限：365天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n全新升級的品牌調性，以簡約時尚風格，詮釋英倫品牌的低調奢", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 28, regularPrice: 27, u1PromoPrice: null, price: 27, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T2", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 39, dimW: 27, dimH: 0.46, weight: null, unit: "罐", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "Schweppes 舒味思", series: null, generalDesc: "全新升級的品牌調性，以簡約時尚風格，詮釋英倫品牌的低調奢華，搭配豐沛氣泡的口感，豐富了味蕾的暢快，盡情品嚐美味新層次，清新暢快的口感，風味獨特\n適合搭配美食一起", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: "https://drive.google.com/drive/folders/1fqLsgwHH7jRqw1cF3Iq6NOaUJ6zPMxnV", deliveryMethod: null, casCode: null, unCode: 4710018331305, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 365, externalId: "4710018331305", regularCost: 17.86, costExTax: 17.86, costIncTax: 19, margin: 0.3054, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 288, taxType: "應稅", zone: 1, stock_zhongshan: 36, stock_zhonghe: 40, stock_neihu: 9, stock_sanchong: 35, stock_xindian: 38, stock_daan: 0, stock_beitou: 49, stock_shulin: 0, stock_jingwu: 0, stock_taoyuan: 11, stock_nantun: 42, stock_hsinchu: 28, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/5b0a0c90cfc4ce0238c7", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/fb0efd8c37ca09b18b0d", isMainCategoryOri: true },
  { ean: "4710018331206", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "舒味思通寧汽水330ML", title: "舒味思通寧汽水330ML", description: "保存方式：常溫\n商品保存期限：365天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n全新升級的品牌調性，以簡約時尚風格，詮釋英倫品牌的低調奢", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/1A7lrY9UKqPfo9o7exEau9P4Q6L2v", listPrice: 28, regularPrice: 27, u1PromoPrice: null, price: 27, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 39, dimW: 27, dimH: 0.46, weight: null, unit: "罐", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "Schweppes 舒味思", series: null, generalDesc: "全新升級的品牌調性，以簡約時尚風格，詮釋英倫品牌的低調奢華，搭配豐沛氣泡的口感，豐富了味蕾的暢快，盡情品嚐美味新層次，清新暢快的口感，風味獨特\n適合搭配美食一起", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/1A7lrY9UKqPfo9o7exEau9P4Q6L2v", imageBadge: null, imagePromo: null, imageSource: "https://drive.google.com/drive/folders/1fqLsgwHH7jRqw1cF3Iq6NOaUJ6zPMxnV", deliveryMethod: null, casCode: null, unCode: 4710018331206, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 365, externalId: "4710018331206", regularCost: 17.86, costExTax: 17.86, costIncTax: 19, margin: 0.3054, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 452, taxType: "應稅", zone: 1, stock_zhongshan: 21, stock_zhonghe: 24, stock_neihu: 32, stock_sanchong: 37, stock_xindian: 74, stock_daan: 54, stock_beitou: 21, stock_shulin: 0, stock_jingwu: 18, stock_taoyuan: 37, stock_nantun: 61, stock_hsinchu: 73, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/1abd2b4d90ed0940d0ea", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/07b23b821f5b1a79f297", isMainCategoryOri: true },
  { ean: "4710018185106", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "可樂纖維PLUS寶特600ML", title: "可樂纖維PLUS寶特600ML", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n滿足一日所需45%膳食纖維，添加膳食纖維，幫助腸胃蠕動。", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 36, regularPrice: 34, u1PromoPrice: null, price: 34, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 6, dimW: 6, dimH: 2, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "可口可樂", series: null, generalDesc: "滿足一日所需45%膳食纖維，添加膳食纖維，幫助腸胃蠕動。無糖。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018185106, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018185106", regularCost: 23.81, costExTax: 23.81, costIncTax: 25, margin: 0.2647, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 425, taxType: "應稅", zone: 1, stock_zhongshan: 42, stock_zhonghe: 20, stock_neihu: 30, stock_sanchong: 59, stock_xindian: 20, stock_daan: 59, stock_beitou: 46, stock_shulin: 0, stock_jingwu: 29, stock_taoyuan: 59, stock_nantun: 19, stock_hsinchu: 42, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: null, imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/498a898ea5e319a0f3bf", isMainCategoryOri: true },
  { ean: "4710018101502", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "可口可樂ZERO寶特瓶600ML", title: "可口可樂ZERO寶特瓶600ML", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n★無糖、零熱量★保留可口可樂的經典風味★無負擔的輕盈享受", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/1ZB0FLH0VS0A9LB2cIZiksJL836Bl", listPrice: 35, regularPrice: 32, u1PromoPrice: null, price: 35, promoPrice: 32, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2022-12-23", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "可口可樂", series: null, generalDesc: "★無糖、零熱量★保留可口可樂的經典風味★無負擔的輕盈享受", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/1ZB0FLH0VS0A9LB2cIZiksJL836Bl", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018101502, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018101502", regularCost: 24.01, costExTax: 24.01, costIncTax: 25, margin: 0.2122, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 557, taxType: "應稅", zone: 1, stock_zhongshan: 50, stock_zhonghe: 28, stock_neihu: 62, stock_sanchong: 52, stock_xindian: 52, stock_daan: 112, stock_beitou: 35, stock_shulin: 0, stock_jingwu: 48, stock_taoyuan: 38, stock_nantun: 43, stock_hsinchu: 37, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/7a9985fb6857049f46cb", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/e92932d28bff0034851f", isMainCategoryOri: true },
  { ean: "4710018343407", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "無糖雪碧600ml", title: "無糖雪碧600ml", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n清爽檸檬風味 , 無糖無熱量 , 酷爽好喝\n\n\n\n本產品", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 35, regularPrice: 35, u1PromoPrice: null, price: 35, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2022-06-24", saleEnd: null, exitDate: null, returnDays: null, dimL: 6, dimW: 6, dimH: 24, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "雪碧", series: null, generalDesc: "清爽檸檬風味 , 無糖無熱量 , 酷爽好喝", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018343407, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018343407", regularCost: 22.1, costExTax: 22.1, costIncTax: 23, margin: 0.337, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 295, taxType: "應稅", zone: 1, stock_zhongshan: 18, stock_zhonghe: 9, stock_neihu: 47, stock_sanchong: 51, stock_xindian: 11, stock_daan: 36, stock_beitou: 36, stock_shulin: 0, stock_jingwu: 23, stock_taoyuan: 20, stock_nantun: 16, stock_hsinchu: 28, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/cc96cfe2b36eae1eb9f8", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/9736bcbd4a8bf1fa2810", isMainCategoryOri: true },
  { ean: "4710018008733", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "雪碧易開罐330ml x 6", title: "雪碧易開罐330ml x 6", description: "保存方式：常溫\n商品保存期限：365天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n經典易開罐，勁享休閒時刻。生來顛覆，雪碧就是又涼又有態度", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 120, regularPrice: 106, u1PromoPrice: null, price: 106, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 19, dimW: 13, dimH: 11.5, weight: null, unit: "組", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "雪碧", series: null, generalDesc: "經典易開罐，勁享休閒時刻。生來顛覆，雪碧就是又涼又有態度，透明氣泡，沁涼解渴！", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018008733, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 4, expiry: 365, externalId: "4710018008733", regularCost: 86.9, costExTax: 76.19, costIncTax: 80, margin: 0.2453, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 126, taxType: "應稅", zone: 1, stock_zhongshan: 9, stock_zhonghe: 4, stock_neihu: 6, stock_sanchong: 28, stock_xindian: 12, stock_daan: 22, stock_beitou: 5, stock_shulin: 0, stock_jingwu: 9, stock_taoyuan: 7, stock_nantun: 15, stock_hsinchu: 9, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/85f0212f57d7b7a5dccf", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/5523efb88fbec2fb9560", isMainCategoryOri: true },
  { ean: "4710018152702", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "原萃日式綠茶寶特580ml", title: "原萃日式綠茶寶特580ml", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n添加日本進口抹茶，創造有層次的深度醇韻，享受好茶真實甘甜", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 36, regularPrice: 36, u1PromoPrice: null, price: 36, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 5.5, dimW: 5.5, dimH: 23, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "原萃", series: null, generalDesc: "添加日本進口抹茶，創造有層次的深度醇韻，享受好茶真實甘甜，好喝來自雲霧工法，100%無香料、無糖。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018152702, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018152702", regularCost: 20.62, costExTax: 17.86, costIncTax: 19, margin: 0.4791, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 423, taxType: "應稅", zone: 1, stock_zhongshan: 26, stock_zhonghe: 43, stock_neihu: 42, stock_sanchong: 52, stock_xindian: 24, stock_daan: 29, stock_beitou: 30, stock_shulin: 0, stock_jingwu: 59, stock_taoyuan: 34, stock_nantun: 34, stock_hsinchu: 50, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/9471fc39f2e53e1b9375", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/262be4a91761cb2de99e", isMainCategoryOri: true },
  { ean: "4710018327407", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "原萃冷萃春笠青茶 450ML", title: "原萃冷萃春笠青茶 450ML", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n\n本產品之製造日期、有效期限、商品成分與適用注意事項皆標", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 36, regularPrice: 36, u1PromoPrice: null, price: 36, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2024-04-19", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: "個", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "原萃", series: null, generalDesc: null, origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018327407", regularCost: 23.81, costExTax: 23.81, costIncTax: 25, margin: 0.3055, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 323, taxType: "應稅", zone: 1, stock_zhongshan: 30, stock_zhonghe: 25, stock_neihu: 44, stock_sanchong: 59, stock_xindian: 14, stock_daan: 38, stock_beitou: 19, stock_shulin: 0, stock_jingwu: 10, stock_taoyuan: 18, stock_nantun: 36, stock_hsinchu: 30, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/c785e08b59ce091f25a8", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/011435b856dc79dfdc8f", isMainCategoryOri: true },
  { ean: "4710018192609", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "原萃冷萃金萱烏龍寶特 450ML", title: "原萃冷萃金萱烏龍寶特 450ML", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n含有台灣名茶的南投金萱烏龍，口感帶有淡雅花香，順喉清爽。", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 36, regularPrice: 36, u1PromoPrice: null, price: 36, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 6, dimW: 6, dimH: 18, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "原萃", series: null, generalDesc: "含有台灣名茶的南投金萱烏龍，口感帶有淡雅花香，順喉清爽。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018192609, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018192609", regularCost: 23.81, costExTax: 23.81, costIncTax: 25, margin: 0.3055, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 232, taxType: "應稅", zone: 1, stock_zhongshan: 28, stock_zhonghe: 10, stock_neihu: 11, stock_sanchong: 56, stock_xindian: 19, stock_daan: 28, stock_beitou: 17, stock_shulin: 0, stock_jingwu: 12, stock_taoyuan: 16, stock_nantun: 8, stock_hsinchu: 27, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/ed20caa774ba4e2d39b1", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/ae0d8f6b02a58e9f0ae2", isMainCategoryOri: true },
  { ean: "4710018323300", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "原萃冷萃蜜香紅茶寶特 450ml", title: "原萃冷萃蜜香紅茶寶特 450ml", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n含花蓮舞鶴蜜香紅茶\n\n\n\n本產品之製造日期、有效期限、商", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 36, regularPrice: 36, u1PromoPrice: null, price: 36, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2022-09-09", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "原萃", series: null, generalDesc: "含花蓮舞鶴蜜香紅茶", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018323300, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018323300", regularCost: 23.81, costExTax: 23.81, costIncTax: 25, margin: 0.3055, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 315, taxType: "應稅", zone: 1, stock_zhongshan: 5, stock_zhonghe: 19, stock_neihu: 44, stock_sanchong: 30, stock_xindian: 31, stock_daan: 51, stock_beitou: 22, stock_shulin: 0, stock_jingwu: 28, stock_taoyuan: 28, stock_nantun: 13, stock_hsinchu: 44, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/4f29902ad2927a7ae151", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/e41fac249f79888072aa", isMainCategoryOri: true },
  { ean: "4710018192500", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "原萃冷萃日式深蒸綠茶寶特450ml", title: "原萃冷萃日式深蒸綠茶寶特450ml", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n深蒸綠茶為日本關東地區近年高人氣的日本茶種類，透過關鍵的", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 36, regularPrice: 36, u1PromoPrice: null, price: 36, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2022-06-24", saleEnd: null, exitDate: null, returnDays: null, dimL: 6.5, dimW: 6.5, dimH: 8, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "原萃", series: null, generalDesc: "深蒸綠茶為日本關東地區近年高人氣的日本茶種類，透過關鍵的蒸氣殺菁，降低綠茶的苦澀感。\n帶有天然綠茶香味，更有清爽的海苔味，口感清透甘甜", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018192500, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018192500", regularCost: 23.81, costExTax: 23.81, costIncTax: 25, margin: 0.3055, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 316, taxType: "應稅", zone: 1, stock_zhongshan: 46, stock_zhonghe: 39, stock_neihu: 11, stock_sanchong: 53, stock_xindian: 10, stock_daan: 31, stock_beitou: 32, stock_shulin: 0, stock_jingwu: 23, stock_taoyuan: 16, stock_nantun: 30, stock_hsinchu: 25, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/7b751abdf418d7884412", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/5f7140fbd5742e066e61", isMainCategoryOri: true },
  { ean: "4710018028601", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "雪碧寶特瓶600ML", title: "雪碧寶特瓶600ML", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n透明的飲料顏色以及清爽檸檬風味，帶給人清涼解渴的透心涼口", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/1R6678wS8ft2KwIlJ3LwbXrG2Uf18", listPrice: 35, regularPrice: 35, u1PromoPrice: null, price: 35, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2025-11-07", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: "瓶", unit: 600, specNum: "ml", specUnit: 1, saleQty: null, packQty: null, brand: null, series: null, generalDesc: "透明的飲料顏色以及清爽檸檬風味，帶給人清涼解渴的透心涼口感", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/1R6678wS8ft2KwIlJ3LwbXrG2Uf18", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018028601", regularCost: 21.03, costExTax: 21.03, costIncTax: 22, margin: 0.3691, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 234, taxType: "應稅", zone: 1, stock_zhongshan: 8, stock_zhonghe: 23, stock_neihu: 13, stock_sanchong: 28, stock_xindian: 28, stock_daan: 42, stock_beitou: 15, stock_shulin: 0, stock_jingwu: 24, stock_taoyuan: 14, stock_nantun: 18, stock_hsinchu: 21, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: null, imageBackup: null, isMainCategoryOri: true },
  { ean: "4710018028809", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "可口可樂寶特瓶600ML", title: "可口可樂寶特瓶600ML", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n清涼暢快的經典滋味\n\n\n本產品之製造日期、有效期限、商品", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/1R6678wS8ft2KwIlJ3LwbXrG2Uf18", listPrice: 35, regularPrice: 35, u1PromoPrice: null, price: 35, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2025-11-07", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: "瓶", unit: 600, specNum: "ml", specUnit: 1, saleQty: null, packQty: null, brand: null, series: null, generalDesc: "清涼暢快的經典滋味", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/1R6678wS8ft2KwIlJ3LwbXrG2Uf18", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018028809", regularCost: 21.03, costExTax: 21.03, costIncTax: 22, margin: 0.3691, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 288, taxType: "應稅", zone: 1, stock_zhongshan: 10, stock_zhonghe: 21, stock_neihu: 29, stock_sanchong: 36, stock_xindian: 8, stock_daan: 27, stock_beitou: 19, stock_shulin: 0, stock_jingwu: 52, stock_taoyuan: 28, stock_nantun: 21, stock_hsinchu: 37, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: null, imageBackup: null, isMainCategoryOri: true },
  { ean: "4897036694671", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "魔爪超越蜜桃閃耀碳酸能量飲料 355ml", title: "魔爪超越蜜桃閃耀碳酸能量飲料 355ml", description: "保存方式：常溫\n商品保存期限：730天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n\n本產品之製造日期、有效期限、商品成分與適用注意事項皆標", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 59, regularPrice: 59, u1PromoPrice: null, price: 59, promoPrice: 51, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2024-04-19", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: "個", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "魔爪", series: null, generalDesc: null, origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 730, externalId: "4897036694671", regularCost: 43.06, costExTax: 43.06, costIncTax: 45, margin: 0.1135, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 204, taxType: "應稅", zone: 1, stock_zhongshan: 14, stock_zhonghe: 23, stock_neihu: 21, stock_sanchong: 16, stock_xindian: 11, stock_daan: 26, stock_beitou: 17, stock_shulin: 0, stock_jingwu: 14, stock_taoyuan: 20, stock_nantun: 19, stock_hsinchu: 23, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "進口", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/812f49d2c84a36ea8562", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/4975066b46932583265a", isMainCategoryOri: true },
  { ean: "4897036693278", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "魔爪管浪潘趣碳酸能量飲料355ml", title: "魔爪管浪潘趣碳酸能量飲料355ml", description: "保存方式：常溫\n商品保存期限：730天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n使用最具有夏威夷的混合風味-百香果，柳橙和芭樂完美調配比", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 59, regularPrice: 59, u1PromoPrice: null, price: 59, promoPrice: 51, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2023-04-07", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: "罐", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "魔爪", series: null, generalDesc: "使用最具有夏威夷的混合風味-百香果，柳橙和芭樂完美調配比例, 依然滿載Monster Energy特色能量。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 730, externalId: "4897036693278", regularCost: 43.06, costExTax: 43.06, costIncTax: 45, margin: 0.1135, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 243, taxType: "應稅", zone: 1, stock_zhongshan: 10, stock_zhonghe: 12, stock_neihu: 3, stock_sanchong: 22, stock_xindian: 26, stock_daan: 30, stock_beitou: 16, stock_shulin: 0, stock_jingwu: 31, stock_taoyuan: 36, stock_nantun: 28, stock_hsinchu: 29, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "進口", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/2cd58acb7b5050dead64", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/d2c138b1b6d40bfa4e91", isMainCategoryOri: true },
  { ean: "4897036692134", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "魔爪ULTRA超越 能量碳酸飲料355ml", title: "魔爪ULTRA超越 能量碳酸飲料355ml", description: "保存方式：常溫\n商品保存期限：730天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n添加維生素B群、肌醇、牛磺酸、人參。碳酸飲品，少糖、零卡", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 59, regularPrice: 57, u1PromoPrice: null, price: 59, promoPrice: 51, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2023-04-07", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: "罐", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "魔爪", series: null, generalDesc: "添加維生素B群、肌醇、牛磺酸、人參。碳酸飲品，少糖、零卡無負擔，提神醒腦，釋放野性。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 730, externalId: "4897036692134", regularCost: 43.06, costExTax: 43.06, costIncTax: 45, margin: 0.1135, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 369, taxType: "應稅", zone: 1, stock_zhongshan: 35, stock_zhonghe: 28, stock_neihu: 35, stock_sanchong: 56, stock_xindian: 19, stock_daan: 59, stock_beitou: 29, stock_shulin: 0, stock_jingwu: 6, stock_taoyuan: 50, stock_nantun: 24, stock_hsinchu: 28, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "進口", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/3e3149ab33a1730bf091", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/1c6655804a1a1d684b09", isMainCategoryOri: true },
  { ean: "4897036694145", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "魔爪超越仙境碳酸能量飲料355ml", title: "魔爪超越仙境碳酸能量飲料355ml", description: "產地：臺灣\n保存方式：常溫\n商品保存期限：730天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n添加維生素B群、肌醇、牛磺酸。純淨、清新、爽", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 59, regularPrice: 59, u1PromoPrice: null, price: 59, promoPrice: 51, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2023-04-21", saleEnd: null, exitDate: null, returnDays: null, dimL: 5.8, dimW: 5.8, dimH: 15.6, weight: "0.386g", unit: "罐", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "魔爪", series: null, generalDesc: "添加維生素B群、肌醇、牛磺酸。純淨、清新、爽快的海島風味，一起扯開拉環，釋放野性！", origin: "臺灣", meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 730, externalId: "4897036694145", regularCost: 43.06, costExTax: 43.06, costIncTax: 45, margin: 0.1135, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 213, taxType: "應稅", zone: 1, stock_zhongshan: 17, stock_zhonghe: 22, stock_neihu: 26, stock_sanchong: 17, stock_xindian: 23, stock_daan: 35, stock_beitou: 14, stock_shulin: 0, stock_jingwu: 6, stock_taoyuan: 23, stock_nantun: 16, stock_hsinchu: 14, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "進口", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/b208388ae25d442b797e", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/162c0068bd0d68691a18", isMainCategoryOri: true },
  { ean: "4897036695265", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "魔爪澳式檸檬碳酸能量飲料355毫升", title: "魔爪澳式檸檬碳酸能量飲料355毫升", description: "保存方式：常溫\n商品保存期限：730天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\nMonster 對經典檸檬水的改良，我們達到了酸甜完美平", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/1F_SV2RfttkGj2q1ZMM3zsDNY-eUS", listPrice: 59, regularPrice: 59, u1PromoPrice: null, price: 59, promoPrice: 51, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2025-06-06", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: 5.8, dimH: 15.6, weight: 386, unit: "瓶", specNum: 24, specUnit: null, saleQty: null, packQty: null, brand: "魔爪", series: null, generalDesc: "Monster 對經典檸檬水的改良，我們達到了酸甜完美平衡，並注入了新鮮柑橘的風味。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/1F_SV2RfttkGj2q1ZMM3zsDNY-eUS", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 730, externalId: "4897036695265", regularCost: 43.05, costExTax: 43.05, costIncTax: 45, margin: 0.1137, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 229, taxType: "應稅", zone: 1, stock_zhongshan: 10, stock_zhonghe: 12, stock_neihu: 29, stock_sanchong: 27, stock_xindian: 7, stock_daan: 31, stock_beitou: 28, stock_shulin: 0, stock_jingwu: 13, stock_taoyuan: 20, stock_nantun: 33, stock_hsinchu: 19, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "進口", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: null, imageBackup: null, isMainCategoryOri: true },
  { ean: "4897036691502", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "魔爪能量飲料易開罐355ml", title: "魔爪能量飲料易開罐355ml", description: "產地：奧地利\n保存方式：常溫\n商品保存期限：730天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n添加維生素B群、肌醇、牛磺酸。勁爽口感，一", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 59, regularPrice: 59, u1PromoPrice: null, price: 59, promoPrice: 51, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2023-04-07", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: "罐", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "魔爪", series: null, generalDesc: "添加維生素B群、肌醇、牛磺酸。勁爽口感，一飲而盡，一起扯開拉環，釋放野性！", origin: "奧地利", meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 730, externalId: "4897036691502", regularCost: 43.06, costExTax: 43.06, costIncTax: 45, margin: 0.1135, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 313, taxType: "應稅", zone: 1, stock_zhongshan: 46, stock_zhonghe: 38, stock_neihu: 14, stock_sanchong: 20, stock_xindian: 0, stock_daan: 64, stock_beitou: 18, stock_shulin: 0, stock_jingwu: 31, stock_taoyuan: 34, stock_nantun: 40, stock_hsinchu: 8, clearanceDays: 30, expiryDisplay: "日/月/年", originFull: "進口", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/7ba6d5339310f3b980e9", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/6f42a689db1bceeb5e06", isMainCategoryOri: true },
  { ean: "4710018004704", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "雪碧汽水-寶特瓶2000ml", title: "雪碧汽水-寶特瓶2000ml", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n生來顛覆，雪碧就是又涼又有態\n透明氣泡，沁涼解渴\n\n\n\n", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 59, regularPrice: 55, u1PromoPrice: null, price: 55, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 10, dimW: 10, dimH: 30, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "雪碧", series: null, generalDesc: "生來顛覆，雪碧就是又涼又有態\n透明氣泡，沁涼解渴", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018004704, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 6, expiry: 270, externalId: "4710018004704", regularCost: 43.65, costExTax: 43.65, costIncTax: 46, margin: 0.1667, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 114, taxType: "應稅", zone: 1, stock_zhongshan: 7, stock_zhonghe: 9, stock_neihu: 4, stock_sanchong: 21, stock_xindian: 4, stock_daan: 18, stock_beitou: 7, stock_shulin: 0, stock_jingwu: 18, stock_taoyuan: 7, stock_nantun: 6, stock_hsinchu: 13, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/621ae81d9818b013cd04", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/1bf395bf8f24f9e603b9", isMainCategoryOri: true },
  { ean: "4710018102905", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "可口可樂ZERO 2000ml", title: "可口可樂ZERO 2000ml", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n保留可口可樂經典風味 , 無糖無熱量\n\n\n本產品之製造日", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 59, regularPrice: 55, u1PromoPrice: null, price: 59, promoPrice: 55, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 10, dimW: 10, dimH: 30, weight: null, unit: "罐", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "可口可樂", series: null, generalDesc: "保留可口可樂經典風味 , 無糖無熱量", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018102905, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 6, expiry: 270, externalId: "4710018102905", regularCost: 43.65, costExTax: 43.65, costIncTax: 46, margin: 0.1667, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 359, taxType: "應稅", zone: 1, stock_zhongshan: 52, stock_zhonghe: 15, stock_neihu: 5, stock_sanchong: 52, stock_xindian: 37, stock_daan: 93, stock_beitou: 13, stock_shulin: 0, stock_jingwu: 28, stock_taoyuan: 21, stock_nantun: 30, stock_hsinchu: 13, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/a847446d88d21be651d3", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/5b30062652bba63ae595", isMainCategoryOri: true },
  { ean: "4710018323201", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "原萃日式焙茶寶特580ML", title: "原萃日式焙茶寶特580ML", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n溫潤烘烤香，最佳佐餐茶。\n\n\n本產品之製造日期、有效期限", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 36, regularPrice: 36, u1PromoPrice: null, price: 36, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T1", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 5.5, dimW: 5.5, dimH: 23, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "原萃", series: null, generalDesc: "溫潤烘烤香，最佳佐餐茶。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018323201, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018323201", regularCost: 20.62, costExTax: 17.86, costIncTax: 19, margin: 0.4791, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 222, taxType: "應稅", zone: 1, stock_zhongshan: 17, stock_zhonghe: 13, stock_neihu: 25, stock_sanchong: 26, stock_xindian: 30, stock_daan: 0, stock_beitou: 12, stock_shulin: 0, stock_jingwu: 44, stock_taoyuan: 26, stock_nantun: 14, stock_hsinchu: 15, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/99a7aeff2410b6d4422e", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/7693825f94d1cb1cc396", isMainCategoryOri: true },
  { ean: "4710018189104", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "原萃鐵觀音580ML", title: "原萃鐵觀音580ML", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n嚴選木柵鐵觀音茶葉，醇厚焙香，享受好茶，真實甘甜，100", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 36, regularPrice: 36, u1PromoPrice: null, price: 36, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 5.5, dimW: 5.5, dimH: 23, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "原萃", series: null, generalDesc: "嚴選木柵鐵觀音茶葉，醇厚焙香，享受好茶，真實甘甜，100% 無香料、無糖。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018189104, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018189104", regularCost: 20.62, costExTax: 17.86, costIncTax: 19, margin: 0.4791, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 275, taxType: "應稅", zone: 1, stock_zhongshan: 14, stock_zhonghe: 23, stock_neihu: 11, stock_sanchong: 33, stock_xindian: 34, stock_daan: 12, stock_beitou: 18, stock_shulin: 0, stock_jingwu: 37, stock_taoyuan: 42, stock_nantun: 33, stock_hsinchu: 18, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/061f58c5cb254e67ead0", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/f0ab93feeae76e0beeaa", isMainCategoryOri: true },
  { ean: "4710018183805", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "原萃綠茶 - 玉露入り580ML", title: "原萃綠茶 - 玉露入り580ML", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n添加頂級日本玉露茶葉，享受好茶的真實甘甜，100% 無香", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/1ZB0FLH0VS0A9LB2cIZiksJL836Bl", listPrice: 36, regularPrice: 36, u1PromoPrice: null, price: 36, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 5.5, dimW: 5.5, dimH: 23, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "原萃", series: null, generalDesc: "添加頂級日本玉露茶葉，享受好茶的真實甘甜，100% 無香料、無糖。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/1ZB0FLH0VS0A9LB2cIZiksJL836Bl", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018183805, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018183805", regularCost: 20.62, costExTax: 17.86, costIncTax: 19, margin: 0.4791, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 764, taxType: "應稅", zone: 1, stock_zhongshan: 93, stock_zhonghe: 20, stock_neihu: 13, stock_sanchong: 57, stock_xindian: 75, stock_daan: 176, stock_beitou: 73, stock_shulin: 0, stock_jingwu: 45, stock_taoyuan: 51, stock_nantun: 74, stock_hsinchu: 87, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/3806af69ddbdab78ad51", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/987dc14d6b3acef866ac", isMainCategoryOri: true },
  { ean: "4710018175107", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "原萃錫蘭無糖紅茶寶特580ML", title: "原萃錫蘭無糖紅茶寶特580ML", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n精選斯里蘭卡高地紅茶，多層次享受好茶真實甘甜，100%無", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 36, regularPrice: 36, u1PromoPrice: null, price: 36, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 5.5, dimW: 5.5, dimH: 23, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "原萃", series: null, generalDesc: "精選斯里蘭卡高地紅茶，多層次享受好茶真實甘甜，100%無香料、無糖。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018175107, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018175107", regularCost: 20.62, costExTax: 17.86, costIncTax: 19, margin: 0.4791, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 459, taxType: "應稅", zone: 1, stock_zhongshan: 24, stock_zhonghe: 8, stock_neihu: 44, stock_sanchong: 68, stock_xindian: 59, stock_daan: 45, stock_beitou: 52, stock_shulin: 0, stock_jingwu: 18, stock_taoyuan: 26, stock_nantun: 70, stock_hsinchu: 45, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/30b8cfa72b3457a32c8c", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/e5d1113d015d419c8766", isMainCategoryOri: true },
  { ean: "4710018162404", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "原萃包種烏龍茶580ML", title: "原萃包種烏龍茶580ML", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n獨特雲霧工法，喉韻圓潤，清香甘甜，100%無香料、無糖。", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 36, regularPrice: 36, u1PromoPrice: null, price: 36, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 5.5, dimW: 5.5, dimH: 23, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "原萃", series: null, generalDesc: "獨特雲霧工法，喉韻圓潤，清香甘甜，100%無香料、無糖。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018162404, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018162404", regularCost: 20.62, costExTax: 17.86, costIncTax: 19, margin: 0.4791, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 266, taxType: "應稅", zone: 1, stock_zhongshan: 29, stock_zhonghe: 18, stock_neihu: 9, stock_sanchong: 33, stock_xindian: 19, stock_daan: 43, stock_beitou: 19, stock_shulin: 0, stock_jingwu: 18, stock_taoyuan: 13, stock_nantun: 33, stock_hsinchu: 32, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/c3c4d402879092f3c6fd", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/cfda2153d6fa5e350ab0", isMainCategoryOri: true },
  { ean: "4710018187704", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "紅茶花傳皇家奶茶寶特瓶470ml", title: "紅茶花傳皇家奶茶寶特瓶470ml", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n100% 手摘汀布拉茶葉，滴濾式萃茶法，香醇不甜膩，甜度", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 49, regularPrice: 32, u1PromoPrice: null, price: 49, promoPrice: 32, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2023-04-07", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "紅茶花傳", series: null, generalDesc: "100% 手摘汀布拉茶葉，滴濾式萃茶法，香醇不甜膩，甜度剛剛好。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018187704", regularCost: 23.81, costExTax: 23.81, costIncTax: 25, margin: 0.2187, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 314, taxType: "應稅", zone: 1, stock_zhongshan: 26, stock_zhonghe: 33, stock_neihu: 21, stock_sanchong: 39, stock_xindian: 29, stock_daan: 33, stock_beitou: 31, stock_shulin: 0, stock_jingwu: 20, stock_taoyuan: 18, stock_nantun: 43, stock_hsinchu: 21, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/7d852bf21a4f57804323", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/992292597c70a98c18cc", isMainCategoryOri: true },
  { ean: "4710018004605", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "可口可樂2000ml", title: "可口可樂2000ml", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n勁享休閒時刻，擋不住的暢快口感，勁享美食，就要Coke。", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/1ZB0FLH0VS0A9LB2cIZiksJL836Bl", listPrice: 60, regularPrice: 55, u1PromoPrice: null, price: 60, promoPrice: 55, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 10, dimW: 10, dimH: 30, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "可口可樂", series: null, generalDesc: "勁享休閒時刻，擋不住的暢快口感，勁享美食，就要Coke。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/1ZB0FLH0VS0A9LB2cIZiksJL836Bl", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018004605, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 6, expiry: 270, externalId: "4710018004605", regularCost: 43.65, costExTax: 43.65, costIncTax: 46, margin: 0.1667, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 270, taxType: "應稅", zone: 1, stock_zhongshan: 0, stock_zhonghe: 16, stock_neihu: 10, stock_sanchong: 25, stock_xindian: 20, stock_daan: 51, stock_beitou: 42, stock_shulin: 0, stock_jingwu: 39, stock_taoyuan: 11, stock_nantun: 31, stock_hsinchu: 25, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/ffd8e8def5c98cfecf7e", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/dc0575a0c419a28c5350", isMainCategoryOri: true },
  { ean: "4710018362309", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "可口可樂ZERO SUGAR寶特瓶 1.25L", title: "可口可樂ZERO SUGAR寶特瓶 1.25L", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\nCoca‑Cola ZERO SUGAR 給你「0熱量 ", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/19kmIOuWq0qzCAoY5ZOTUzA7d5kIQ", listPrice: 49, regularPrice: 49, u1PromoPrice: null, price: 49, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2024-11-29", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: "1250ML", unit: null, specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "可口可樂", series: "ZERO SUGAR", generalDesc: "Coca‑Cola ZERO SUGAR 給你「0熱量 超暢快」的好喝新體驗", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/19kmIOuWq0qzCAoY5ZOTUzA7d5kIQ", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 12, expiry: 270, externalId: "4710018362309", regularCost: 29.37, costExTax: 29.37, costIncTax: 31, margin: 0.3706, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 205, taxType: "應稅", zone: 1, stock_zhongshan: 29, stock_zhonghe: 14, stock_neihu: 11, stock_sanchong: 12, stock_xindian: 16, stock_daan: 23, stock_beitou: 17, stock_shulin: 0, stock_jingwu: 20, stock_taoyuan: 15, stock_nantun: 24, stock_hsinchu: 24, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: null, imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/bde0db6b52fc18036691", isMainCategoryOri: true },
  { ean: "4710018001109", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "可口可樂 1250ml", title: "可口可樂 1250ml", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n勁享美食, 就要Coke.\n擋不住的暢快口感, 給您前所", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 45, regularPrice: 45, u1PromoPrice: null, price: 45, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2023-11-03", saleEnd: null, exitDate: null, returnDays: null, dimL: 9, dimW: 9, dimH: 29.6, weight: "1350g", unit: null, specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "可口可樂", series: null, generalDesc: "勁享美食, 就要Coke.\n擋不住的暢快口感, 給您前所未有的滿足", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: "https://drive.google.com/drive/folders/1ryW0f_y2W6JscQ04RHay1gXWI-4lepPP", deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 12, expiry: 270, externalId: "4710018001109", regularCost: 29.37, costExTax: 29.37, costIncTax: 31, margin: 0.3147, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 141, taxType: "應稅", zone: 1, stock_zhongshan: 8, stock_zhonghe: 14, stock_neihu: 7, stock_sanchong: 12, stock_xindian: 13, stock_daan: 15, stock_beitou: 14, stock_shulin: 0, stock_jingwu: 25, stock_taoyuan: 13, stock_nantun: 11, stock_hsinchu: 9, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: null, imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/9880451c78251bba0ef8", isMainCategoryOri: true },
  { ean: "4710018187902", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "紅茶花傳皇家紅茶寶特瓶470ml", title: "紅茶花傳皇家紅茶寶特瓶470ml", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n100% 手摘汀布拉茶葉，滴濾式萃茶法，香醇不甜膩，甜度", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 37, regularPrice: 25, u1PromoPrice: null, price: 37, promoPrice: 25, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2023-04-07", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "紅茶花傳", series: null, generalDesc: "100% 手摘汀布拉茶葉，滴濾式萃茶法，香醇不甜膩，甜度剛剛好。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018187902", regularCost: 19.25, costExTax: 19.25, costIncTax: 20, margin: 0.1915, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 413, taxType: "應稅", zone: 1, stock_zhongshan: 57, stock_zhonghe: 15, stock_neihu: 7, stock_sanchong: 65, stock_xindian: 31, stock_daan: 67, stock_beitou: 17, stock_shulin: 0, stock_jingwu: 62, stock_taoyuan: 46, stock_nantun: 27, stock_hsinchu: 19, clearanceDays: 30, expiryDisplay: "日/月/年", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/64b0b125f569443947c2", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/f387b702364dd101df05", isMainCategoryOri: true },
  { ean: "4710018166006", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "飛想茶檸檬紅茶寶特瓶580ML", title: "飛想茶檸檬紅茶寶特瓶580ML", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n天然檸檬汁，混搭香醇紅茶 好喝的經典檸檬茶滋味，更多了獨", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 25, regularPrice: 22, u1PromoPrice: null, price: 25, promoPrice: 22, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T1", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 5.5, dimW: 5.5, dimH: 23, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "飛想茶", series: null, generalDesc: "天然檸檬汁，混搭香醇紅茶 好喝的經典檸檬茶滋味，更多了獨特的清爽自然。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018166006, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018166006", regularCost: 14.88, costExTax: 14.88, costIncTax: 16, margin: 0.2898, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 291, taxType: "應稅", zone: 1, stock_zhongshan: 12, stock_zhonghe: 18, stock_neihu: 35, stock_sanchong: 28, stock_xindian: 38, stock_daan: 0, stock_beitou: 38, stock_shulin: 0, stock_jingwu: 36, stock_taoyuan: 13, stock_nantun: 42, stock_hsinchu: 31, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/bb0d8fd8a58840813eb5", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/06b1b43f5134994d1049", isMainCategoryOri: true },
  { ean: "4710018301902", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "爽健美茶-新寶特瓶535ML", title: "爽健美茶-新寶特瓶535ML", description: "保存方式：常溫\n商品保存期限：330天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n日本複合茶市佔率第一\n13種100%日本進口天然素材\n無", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 30, regularPrice: 30, u1PromoPrice: null, price: 30, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2025-03-21", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: null, specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "爽健美茶", series: null, generalDesc: "日本複合茶市佔率第一\n13種100%日本進口天然素材\n無糖、無香料，無熱量、無咖啡因", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 330, externalId: "4710018301902", regularCost: 20.63, costExTax: 20.63, costIncTax: 22, margin: 0.278, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 201, taxType: "應稅", zone: 1, stock_zhongshan: 3, stock_zhonghe: 15, stock_neihu: 6, stock_sanchong: 22, stock_xindian: 26, stock_daan: 62, stock_beitou: 0, stock_shulin: 0, stock_jingwu: 39, stock_taoyuan: 1, stock_nantun: 12, stock_hsinchu: 15, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: null, imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/bfdb6f0b46a815b921bb", isMainCategoryOri: true },
  { ean: "4710018153808", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "原萃日式綠茶寶特瓶1.25L", title: "原萃日式綠茶寶特瓶1.25L", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n「原萃」日式綠茶，經由獨特萃取與過濾技術，保留天然茶葉精", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/19kmIOuWq0qzCAoY5ZOTUzA7d5kIQ", listPrice: 59, regularPrice: 59, u1PromoPrice: null, price: 59, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2024-11-29", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: "1250ML", unit: null, specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "原萃", series: null, generalDesc: "「原萃」日式綠茶，經由獨特萃取與過濾技術，保留天然茶葉精華，並添加日本進口抹茶粉，口感更為豐富甘甜。原萃全系列100%無香料、無糖，帶給您享受真實茶韻的體驗。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/19kmIOuWq0qzCAoY5ZOTUzA7d5kIQ", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 12, expiry: 270, externalId: "4710018153808", regularCost: 39.67, costExTax: 39.67, costIncTax: 42, margin: 0.294, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 171, taxType: "應稅", zone: 1, stock_zhongshan: 9, stock_zhonghe: 11, stock_neihu: 7, stock_sanchong: 19, stock_xindian: 11, stock_daan: 54, stock_beitou: 11, stock_shulin: 0, stock_jingwu: 11, stock_taoyuan: 8, stock_nantun: 14, stock_hsinchu: 16, clearanceDays: 30, expiryDisplay: "日/月/年", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: null, imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/bbcbf839b8371f25658e", isMainCategoryOri: true },
  { ean: "4710018190308", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "原萃包種烏龍茶寶特瓶1.25L", title: "原萃包種烏龍茶寶特瓶1.25L", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n「原萃」烏龍茶(含文山包種茶)，文山包種茶，被譽為台灣特", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/19kmIOuWq0qzCAoY5ZOTUzA7d5kIQ", listPrice: 59, regularPrice: 59, u1PromoPrice: null, price: 59, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T1", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2024-11-29", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: "1250ML", unit: null, specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "原萃", series: null, generalDesc: "「原萃」烏龍茶(含文山包種茶)，文山包種茶，被譽為台灣特色茶之一，採白雲霧繚繞，水質良好的坪林茶區，堅持晴時下午兩點前採摘的優質茶葉，帶有如花般的幽雅清香，尾韻", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/19kmIOuWq0qzCAoY5ZOTUzA7d5kIQ", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 12, expiry: 270, externalId: "4710018190308", regularCost: 39.67, costExTax: 39.67, costIncTax: 42, margin: 0.294, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 129, taxType: "應稅", zone: 1, stock_zhongshan: 12, stock_zhonghe: 6, stock_neihu: 11, stock_sanchong: 16, stock_xindian: 11, stock_daan: 0, stock_beitou: 21, stock_shulin: 0, stock_jingwu: 19, stock_taoyuan: 7, stock_nantun: 10, stock_hsinchu: 16, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: null, imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/c2e3abb63daf49d2ef8a", isMainCategoryOri: true },
  { ean: "4710018343902", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "原萃綠茶玉露添加寶特瓶1.25L", title: "原萃綠茶玉露添加寶特瓶1.25L", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n「原萃」綠茶-玉露入り，特別添加日式茶中的頂級茶葉-玉露", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/19kmIOuWq0qzCAoY5ZOTUzA7d5kIQ", listPrice: 59, regularPrice: 59, u1PromoPrice: null, price: 59, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2024-11-29", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: "1250ML", unit: null, specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "原萃", series: null, generalDesc: "「原萃」綠茶-玉露入り，特別添加日式茶中的頂級茶葉-玉露，經過二十天以上的覆蓋栽種，減少日照帶來的苦澀味，口感清爽甘甜。原萃全系列100%無香料、無糖，帶給您享", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/19kmIOuWq0qzCAoY5ZOTUzA7d5kIQ", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 12, expiry: 270, externalId: "4710018343902", regularCost: 39.67, costExTax: 39.67, costIncTax: 42, margin: 0.294, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 229, taxType: "應稅", zone: 1, stock_zhongshan: 11, stock_zhonghe: 19, stock_neihu: 18, stock_sanchong: 10, stock_xindian: 49, stock_daan: 23, stock_beitou: 21, stock_shulin: 0, stock_jingwu: 32, stock_taoyuan: 20, stock_nantun: 19, stock_hsinchu: 7, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: null, imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/63bee9b800f3cdb0767d", isMainCategoryOri: true },
  { ean: "4710018335808", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "原萃鍋煮風味麥茶 600ml", title: "原萃鍋煮風味麥茶 600ml", description: "產地：台灣\n保存方式：常溫\n商品保存期限：330天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n日本熱銷1億瓶!100% 六條大麥!無糖 無", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/1t55q83AtgEKrCR1GhwgR5E8kDRK5", listPrice: 35, regularPrice: 35, u1PromoPrice: null, price: 35, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2026-03-27", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: "瓶", specNum: 600, specUnit: "ml", saleQty: null, packQty: null, brand: "原萃", series: null, generalDesc: "日本熱銷1億瓶!100% 六條大麥!無糖 無咖啡因!0香料！還原日式鍋煮風味!", origin: "台灣", meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/1t55q83AtgEKrCR1GhwgR5E8kDRK5", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 330, externalId: "4710018335808", regularCost: 18.65, costExTax: 16.67, costIncTax: 18, margin: 0.4999, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 293, taxType: "應稅", zone: 1, stock_zhongshan: 11, stock_zhonghe: 21, stock_neihu: 27, stock_sanchong: 40, stock_xindian: 30, stock_daan: 37, stock_beitou: 37, stock_shulin: 0, stock_jingwu: 23, stock_taoyuan: 14, stock_nantun: 28, stock_hsinchu: 25, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: null, imageBackup: null, isMainCategoryOri: true },
  { ean: "4710018115301", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "美粒果柳橙汁寶特1L", title: "美粒果柳橙汁寶特1L", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n嚴選200天日照陽光果肉，果汁含量10%，含有果肉纖維。", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 47, regularPrice: 41, u1PromoPrice: null, price: 47, promoPrice: 41, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 8, dimW: 8, dimH: 26.5, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "美粒果", series: null, generalDesc: "嚴選200天日照陽光果肉，果汁含量10%，含有果肉纖維。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018115301, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 12, expiry: 270, externalId: "4710018115301", regularCost: 30.16, costExTax: 30.16, costIncTax: 32, margin: 0.2276, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 163, taxType: "應稅", zone: 1, stock_zhongshan: 8, stock_zhonghe: 17, stock_neihu: 5, stock_sanchong: 35, stock_xindian: 18, stock_daan: 20, stock_beitou: 14, stock_shulin: 0, stock_jingwu: 9, stock_taoyuan: 3, stock_nantun: 11, stock_hsinchu: 23, clearanceDays: 30, expiryDisplay: "日/月/年", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/f0029b2e3c0e24a60690", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/99a556e515c8dd26fd2e", isMainCategoryOri: true },
  { ean: "4710018001406", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "雪碧汽水-寶特瓶 1250ml", title: "雪碧汽水-寶特瓶 1250ml", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n雪碧新配方，更清爽好喝!\n燥熱難擋、酷爽以對!\n經典清爽", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 45, regularPrice: 45, u1PromoPrice: null, price: 45, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T1", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2023-11-03", saleEnd: null, exitDate: null, returnDays: null, dimL: 9, dimW: 9, dimH: 29.6, weight: "1350g", unit: null, specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "雪碧", series: null, generalDesc: "雪碧新配方，更清爽好喝!\n燥熱難擋、酷爽以對!\n經典清爽檸檬風味!\n透明氣泡，沁涼解渴!", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: "https://drive.google.com/drive/folders/1ryW0f_y2W6JscQ04RHay1gXWI-4lepPP", deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 12, expiry: 270, externalId: "4710018001406", regularCost: 29.37, costExTax: 29.37, costIncTax: 31, margin: 0.3147, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 108, taxType: "應稅", zone: 1, stock_zhongshan: 8, stock_zhonghe: 9, stock_neihu: 19, stock_sanchong: 16, stock_xindian: 6, stock_daan: 0, stock_beitou: 7, stock_shulin: 0, stock_jingwu: 15, stock_taoyuan: 3, stock_nantun: 14, stock_hsinchu: 11, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: null, imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/5d1b0914fde0364daca8", isMainCategoryOri: true },
  { ean: "4710018350993", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "怡漾鹼性離子水888ml", title: "怡漾鹼性離子水888ml", description: "保存方式：常溫\n商品保存期限：365天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n象徵「一樣」的極簡生活態度 , 引領看到更美好、更純粹、", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 32, regularPrice: 28, u1PromoPrice: null, price: 32, promoPrice: 25, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2022-08-26", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "怡漾", series: null, generalDesc: "象徵「一樣」的極簡生活態度 , 引領看到更美好、更純粹、更永續的未來", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: 4710018350900, casCode: null, unCode: 4710018350993, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 20, expiry: 365, externalId: "4710018350993", regularCost: 20, costExTax: 17.14, costIncTax: 18, margin: 0.2801, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 267, taxType: "應稅", zone: 1, stock_zhongshan: 19, stock_zhonghe: 25, stock_neihu: 8, stock_sanchong: 23, stock_xindian: 13, stock_daan: 48, stock_beitou: 32, stock_shulin: 0, stock_jingwu: 25, stock_taoyuan: 15, stock_nantun: 47, stock_hsinchu: 12, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/2bfcb538759e512be1c3", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/728e93d3e977ca089c30", isMainCategoryOri: true },
  { ean: "4710018356162", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "可口可樂200mlX8", title: "可口可樂200mlX8", description: "產地：臺灣\n保存方式：常溫\n商品保存期限：365天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n勁享休閒時刻，擋不住的暢快口感，勁享美食，就", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/1ZB0FLH0VS0A9LB2cIZiksJL836Bl", listPrice: 140, regularPrice: 132, u1PromoPrice: null, price: 140, promoPrice: 132, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2023-04-21", saleEnd: null, exitDate: null, returnDays: null, dimL: 23, dimW: 11.5, dimH: 9.6, weight: "1.84g", unit: "組", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "可口可樂", series: null, generalDesc: "勁享休閒時刻，擋不住的暢快口感，勁享美食，就要Coke。\n一罐迷你 一刻暢快，輕巧迷你罐 份量剛剛好！", origin: "臺灣", meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/1ZB0FLH0VS0A9LB2cIZiksJL836Bl", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 3, expiry: 365, externalId: "4710018356162", regularCost: 100, costExTax: 100, costIncTax: 105, margin: 0.2045, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 466, taxType: "應稅", zone: 1, stock_zhongshan: 82, stock_zhonghe: 15, stock_neihu: 33, stock_sanchong: 55, stock_xindian: 66, stock_daan: 70, stock_beitou: 21, stock_shulin: 0, stock_jingwu: 32, stock_taoyuan: 12, stock_nantun: 66, stock_hsinchu: 14, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/8fb33b4bc4d7f1dddf42", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/1c003c4b414945c69148", isMainCategoryOri: true },
  { ean: "4710018356261", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "可口可樂ZERO無糖零卡200mlX8", title: "可口可樂ZERO無糖零卡200mlX8", description: "產地：臺灣\n保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n勁享休閒時刻，擋不住的暢快口感，勁享美食，就", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/1ZB0FLH0VS0A9LB2cIZiksJL836Bl", listPrice: 140, regularPrice: 132, u1PromoPrice: null, price: 140, promoPrice: 132, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2023-04-21", saleEnd: null, exitDate: null, returnDays: null, dimL: 23, dimW: 11.5, dimH: 9.6, weight: "1.84g", unit: "組", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "可口可樂", series: null, generalDesc: "勁享休閒時刻，擋不住的暢快口感，勁享美食，就要Coke。\n一罐迷你 一刻暢快，輕巧迷你罐 份量剛剛好！", origin: "臺灣", meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/1ZB0FLH0VS0A9LB2cIZiksJL836Bl", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 3, expiry: 270, externalId: "4710018356261", regularCost: 100, costExTax: 100, costIncTax: 105, margin: 0.2045, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 378, taxType: "應稅", zone: 1, stock_zhongshan: 44, stock_zhonghe: 23, stock_neihu: 31, stock_sanchong: 24, stock_xindian: 53, stock_daan: 74, stock_beitou: 17, stock_shulin: 0, stock_jingwu: 6, stock_taoyuan: 16, stock_nantun: 62, stock_hsinchu: 28, clearanceDays: 30, expiryDisplay: "年/月/日", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/a072fe1d7daf9b1324a6", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/b0e41148ad2ebaf5cda1", isMainCategoryOri: true },
  { ean: "4710018356360", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "雪碧200mlX8", title: "雪碧200mlX8", description: "產地：臺灣\n保存方式：常溫\n商品保存期限：365天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n經典清爽檸檬風味，透明氣泡沁涼解渴，燥熱難擋", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/1ZB0FLH0VS0A9LB2cIZiksJL836Bl", listPrice: 140, regularPrice: 132, u1PromoPrice: null, price: 140, promoPrice: 132, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2023-04-21", saleEnd: null, exitDate: null, returnDays: null, dimL: 23, dimW: 11.5, dimH: 9.6, weight: "1.84g", unit: "組", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "雪碧", series: null, generalDesc: "經典清爽檸檬風味，透明氣泡沁涼解渴，燥熱難擋，酷爽以對。\n一罐迷你 一刻酷爽。輕巧迷你罐 份量剛剛好！", origin: "臺灣", meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/1ZB0FLH0VS0A9LB2cIZiksJL836Bl", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 3, expiry: 365, externalId: "4710018356360", regularCost: 100, costExTax: 100, costIncTax: 105, margin: 0.2045, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 133, taxType: "應稅", zone: 1, stock_zhongshan: 13, stock_zhonghe: 8, stock_neihu: 5, stock_sanchong: 20, stock_xindian: 17, stock_daan: 8, stock_beitou: 5, stock_shulin: 0, stock_jingwu: 12, stock_taoyuan: 7, stock_nantun: 21, stock_hsinchu: 17, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/3936d51203914ee67a84", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/a8ac302b7c99f94cd13c", isMainCategoryOri: true },
  { ean: "4710018315701", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "美粒果零加糖蘋果蘇打500ml", title: "美粒果零加糖蘋果蘇打500ml", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n美粒果無加糖、清爽無負擔鮮果蘇打，添加產季嚴選果汁，一份", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 40, regularPrice: 38, u1PromoPrice: null, price: 40, promoPrice: 38, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2023-05-19", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "美粒果", series: null, generalDesc: "美粒果無加糖、清爽無負擔鮮果蘇打，添加產季嚴選果汁，一份不到15卡，輕鬆享受身果汁搭氣泡的美味！", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018315701", regularCost: 24.84, costExTax: 24.84, costIncTax: 26, margin: 0.3136, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 312, taxType: "應稅", zone: 1, stock_zhongshan: 30, stock_zhonghe: 8, stock_neihu: 45, stock_sanchong: 10, stock_xindian: 14, stock_daan: 27, stock_beitou: 37, stock_shulin: 0, stock_jingwu: 36, stock_taoyuan: 26, stock_nantun: 69, stock_hsinchu: 10, clearanceDays: 30, expiryDisplay: "年/月（到期日為該月月底）", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/a458d0abc05a506f6ac8", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/d29c0d42f38050e59482", isMainCategoryOri: true },
  { ean: "4710018316401", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "美粒果零加糖葡萄蘇打500ml", title: "美粒果零加糖葡萄蘇打500ml", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n美粒果無加糖、清爽無負擔鮮果蘇打，添加產季嚴選果汁，一份", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 40, regularPrice: 38, u1PromoPrice: null, price: 40, promoPrice: 38, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2023-05-19", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "美粒果", series: null, generalDesc: "美粒果無加糖、清爽無負擔鮮果蘇打，添加產季嚴選果汁，一份不到15卡，輕鬆享受身果汁搭氣泡的美味！", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018316401", regularCost: 24.84, costExTax: 24.84, costIncTax: 26, margin: 0.3136, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 292, taxType: "應稅", zone: 1, stock_zhongshan: 7, stock_zhonghe: 20, stock_neihu: 36, stock_sanchong: 23, stock_xindian: 25, stock_daan: 36, stock_beitou: 23, stock_shulin: 0, stock_jingwu: 9, stock_taoyuan: 31, stock_nantun: 62, stock_hsinchu: 20, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/ee93bb0f41853e7307a1", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/e2ab0fa2875a290b7843", isMainCategoryOri: true },
  { ean: "4710018316609", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "美粒果零加糖蜜桃蘇打500ml", title: "美粒果零加糖蜜桃蘇打500ml", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n美粒果無加糖、清爽無負擔鮮果蘇打，添加產季嚴選果汁，一份", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 40, regularPrice: 38, u1PromoPrice: null, price: 40, promoPrice: 38, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2023-05-19", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "美粒果", series: null, generalDesc: "美粒果無加糖、清爽無負擔鮮果蘇打，添加產季嚴選果汁，一份不到15卡，輕鬆享受身果汁搭氣泡的美味！", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018316609", regularCost: 24.84, costExTax: 24.84, costIncTax: 26, margin: 0.3136, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 238, taxType: "應稅", zone: 1, stock_zhongshan: 25, stock_zhonghe: 6, stock_neihu: 36, stock_sanchong: 23, stock_xindian: 18, stock_daan: 28, stock_beitou: 20, stock_shulin: 0, stock_jingwu: 14, stock_taoyuan: 6, stock_nantun: 43, stock_hsinchu: 19, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/1490007db93dadac39ed", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/c2905083a7f80a7889f1", isMainCategoryOri: true },
  { ean: "4710018356544", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "Schweppes 舒味思氣泡水萊姆隨型罐330mlX4", title: "Schweppes 舒味思氣泡水萊姆隨型罐330mlX4", description: "保存方式：常溫\n商品保存期限：365天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n萊姆口味氣泡水，豐沛氣泡，品味格調滋味，無糖、無熱量，氣", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 90, regularPrice: 90, u1PromoPrice: null, price: 90, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2023-02-24", saleEnd: null, exitDate: null, returnDays: null, dimL: null, dimW: null, dimH: null, weight: null, unit: "組", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "Schweppes 舒味思", series: null, generalDesc: "萊姆口味氣泡水，豐沛氣泡，品味格調滋味，無糖、無熱量，氣泡讓水更好喝。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: null, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 6, expiry: 365, externalId: "4710018356544", regularCost: 61.75, costExTax: 61.75, costIncTax: 65, margin: 0.2796, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 225, taxType: "應稅", zone: 1, stock_zhongshan: 6, stock_zhonghe: 15, stock_neihu: 24, stock_sanchong: 9, stock_xindian: 12, stock_daan: 115, stock_beitou: 26, stock_shulin: 0, stock_jingwu: 5, stock_taoyuan: 2, stock_nantun: 5, stock_hsinchu: 6, clearanceDays: 30, expiryDisplay: "月/年（到期日為該月月底）", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/3c1362d35bea88d1068a", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/1d64a5fbe497be86a3d5", isMainCategoryOri: true },
  { ean: "4710018136009", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "水森活純淨水寶特 575ml", title: "水森活純淨水寶特 575ml", description: "保存方式：常溫\n商品保存期限：365天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n輕一代環保瓶，減少塑料使用達31%。環保瓶裝新設計，扭轉", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", listPrice: 15, regularPrice: 15, u1PromoPrice: null, price: 15, promoPrice: null, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: null, grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 7, dimW: 7, dimH: 23, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "水森活", series: null, generalDesc: "輕一代環保瓶，減少塑料使用達31%。環保瓶裝新設計，扭轉100%好回收。新包裝加量不加價。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/12goGR34tAi2ddQqNmwp9c12L9Qdw", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018136009, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 365, externalId: "4710018136009", regularCost: 6.75, costExTax: 6.75, costIncTax: 7, margin: 0.5275, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 404, taxType: "應稅", zone: 1, stock_zhongshan: 12, stock_zhonghe: 25, stock_neihu: 23, stock_sanchong: 41, stock_xindian: 28, stock_daan: 60, stock_beitou: 47, stock_shulin: 0, stock_jingwu: 24, stock_taoyuan: 36, stock_nantun: 88, stock_hsinchu: 20, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/405f53ba3d5fa4d73f4d", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/7f27577a41de80ed9dc5", isMainCategoryOri: true },
  { ean: "4710018175701", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "Schweppes 舒味思氣泡水原味 500ml", title: "Schweppes 舒味思氣泡水原味 500ml", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n原味口味氣泡水，氣泡創造豐富口感，氣泡讓水更好喝。\n\n\n", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/1ZB0FLH0VS0A9LB2cIZiksJL836Bl", listPrice: 35, regularPrice: 32, u1PromoPrice: null, price: 35, promoPrice: 32, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 6, dimW: 6, dimH: 23, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "Schweppes 舒味思", series: null, generalDesc: "原味口味氣泡水，氣泡創造豐富口感，氣泡讓水更好喝。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/1ZB0FLH0VS0A9LB2cIZiksJL836Bl", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018175701, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018175701", regularCost: 23.02, costExTax: 21.83, costIncTax: 23, margin: 0.2837, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 555, taxType: "應稅", zone: 1, stock_zhongshan: 64, stock_zhonghe: 20, stock_neihu: 21, stock_sanchong: 39, stock_xindian: 69, stock_daan: 90, stock_beitou: 77, stock_shulin: 0, stock_jingwu: 30, stock_taoyuan: 21, stock_nantun: 66, stock_hsinchu: 58, clearanceDays: 30, expiryDisplay: "月/年（到期日為該月月底）", originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/44b0d1bc7a5736de4ead", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/566b505eae5706a4ea27", isMainCategoryOri: true },
  { ean: "4710018175909", menu: "冰涼入喉，一喝就上癮", category: "冰涼入喉，一喝就上癮", itemName: "Schweppes 舒味思氣泡水萊姆口味 500ml", title: "Schweppes 舒味思氣泡水萊姆口味 500ml", description: "保存方式：常溫\n商品保存期限：270天\n效期保證（惜福品不適用）：顧客收貨後至少距有效日 30 天以上\n萊姆口味氣泡水，無糖、無熱量，氣泡讓水更好喝。\n\n\n本產", imageUrl: "https://storage.googleapis.com/drive-explorer/4153/1ZB0FLH0VS0A9LB2cIZiksJL836Bl", listPrice: 35, regularPrice: 32, u1PromoPrice: null, price: 35, promoPrice: 32, salesPrice: null, purchaseQty: null, discountedQty: null, promoType: "DISCOUNTEDITEM", grade: "T0", saleRegion: "全", tempLayer: "常溫", saleStatus: "normal", saleStart: "2021-08-19", saleEnd: null, exitDate: null, returnDays: null, dimL: 6, dimW: 6, dimH: 23, weight: null, unit: "瓶", specNum: null, specUnit: null, saleQty: null, packQty: null, brand: "Schweppes 舒味思", series: null, generalDesc: "萊姆口味氣泡水，無糖、無熱量，氣泡讓水更好喝。", origin: null, meatOrigin: null, vegetarian: null, foodBizNo: null, productLiabIns: null, medDeviceNo: null, medDeviceOwner: null, manufacturer: null, imageGeneral: "https://storage.googleapis.com/drive-explorer/4153/1ZB0FLH0VS0A9LB2cIZiksJL836Bl", imageBadge: null, imagePromo: null, imageSource: null, deliveryMethod: null, casCode: null, unCode: 4710018175909, vat: 5, buyer: "Jolin", isMainCategory: true, attributeTag: null, moq: 24, expiry: 270, externalId: "4710018175909", regularCost: 23.02, costExTax: 21.83, costIncTax: 23, margin: 0.2837, supplierNo: "110380", supplierName: "太古可口可樂", totalStock: 592, taxType: "應稅", zone: 1, stock_zhongshan: 28, stock_zhonghe: 12, stock_neihu: 40, stock_sanchong: 66, stock_xindian: 117, stock_daan: 102, stock_beitou: 27, stock_shulin: 0, stock_jingwu: 34, stock_taoyuan: 21, stock_nantun: 95, stock_hsinchu: 50, clearanceDays: 30, expiryDisplay: null, originFull: "台灣", imageScene1: null, imageScene2: null, imageScene3: null, imageScene4: null, imageCalorie: "https://tb-static.uber.com/prod/image-proc/processed_images/a4f17f3b3eada56f902b", imageBackup: "https://tb-static.uber.com/prod/image-proc/processed_images/f5523a576774aae55c36", isMainCategoryOri: true }
];

const SEED_MENU_PREVIEWS = [
  { id: "MP-001", name: "0501上傳版本_原始檔", createdAt: "20260501 09:30", items: SEED_MENU_ITEMS },
  { id: "MP-002", name: "0424上傳版本_原始檔", createdAt: "20260424 10:15", items: SEED_MENU_ITEMS.slice(0, 48) },
  { id: "MP-003", name: "0417上傳版本_原始檔", createdAt: "20260417 09:45", items: SEED_MENU_ITEMS.slice(0, 50) },
];

const SEED_DELTA_FILES = [
  { id: "DF-001", name: "0524_Delta_File", createdAt: "20260524 14:00" },
  { id: "DF-002", name: "0517_Delta_File", createdAt: "20260517 14:00" },
  { id: "DF-003", name: "0510_Delta_File", createdAt: "20260510 14:00" },
];

// ===== 基礎主檔 9.x（wireframe CRUD）======================================
const BD_REGION_SEED = [
  { id: "bd-r1", name: "全" },
  { id: "bd-r2", name: "北部" },
  { id: "bd-r3", name: "雙北" },
  { id: "bd-r4", name: "北北桃" },
  { id: "bd-r5", name: "中部" },
  { id: "bd-r6", name: "桃竹" },
  { id: "bd-r7", name: "雙北+中部" },
];

const BD_STORE_SEED = [
  { id: "bd-s1",  storeNo: "W01", name: "北投店", region: "北部" },
  { id: "bd-s2",  storeNo: "W02", name: "內湖店", region: "雙北" },
  { id: "bd-s3",  storeNo: "W03", name: "中山店", region: "雙北" },
  { id: "bd-s4",  storeNo: "W04", name: "大安店", region: "雙北" },
  { id: "bd-s5",  storeNo: "W05", name: "三重店", region: "雙北" },
  { id: "bd-s6",  storeNo: "W06", name: "中和店", region: "雙北" },
  { id: "bd-s7",  storeNo: "W07", name: "新店店", region: "雙北" },
  { id: "bd-s8",  storeNo: "W08", name: "精武店", region: "中部" },
  { id: "bd-s9",  storeNo: "W09", name: "桃園店", region: "桃竹" },
  { id: "bd-s10", storeNo: "W10", name: "新竹店", region: "桃竹" },
  { id: "bd-s11", storeNo: "W11", name: "南屯店", region: "中部" },
];

const BD_TIER_SEED = [
  { id: "bd-t1", name: "T0" },
  { id: "bd-t2", name: "T1" },
  { id: "bd-t3", name: "T2" },
  { id: "bd-t4", name: "T3" },
];

const BD_TEMP_SEED = [
  { id: "bd-tp1", name: "常溫" },
  { id: "bd-tp2", name: "冷藏" },
  { id: "bd-tp3", name: "冷凍" },
];

const SEED_INCA_CATALOG_FILES = [
  { id: "CF-001", name: "0524_Catalog_File", createdAt: "20260524 15:00" },
  { id: "CF-002", name: "0517_Catalog_File", createdAt: "20260517 15:00" },
];

const SEED_INCA_PROMO_FILES = [
  { id: "PF-001", name: "0524_Promotion_File", createdAt: "20260524 16:00" },
  { id: "PF-002", name: "0517_Promotion_File", createdAt: "20260517 16:00" },
];

const AUTH_PERM_SEED = [
  { id: "ap1", code: "product.view",     name: "商品資料－檢視" },
  { id: "ap2", code: "product.edit",     name: "商品資料－編輯" },
  { id: "ap3", code: "adjust.review",    name: "商品調整－審核" },
  { id: "ap4", code: "promo.view",       name: "優惠與活動－檢視" },
  { id: "ap5", code: "stock.view",       name: "商品庫存－檢視" },
  { id: "ap6", code: "auth.admin",       name: "帳號與權限－管理" },
];

const DISPLAY_ITEM_SEED = [
  { id: "di1", skuNo: "TW031146019809-00", itemName: "農心頂級辛拉麵 130g", displayCat: "泡麵區", targetCat: "即食麵" },
  { id: "di2", skuNo: "TW0074261014502-00", itemName: "萬家香大吟釀香菇素蠔油510g", displayCat: "調味區", targetCat: "醬油蠔油" },
];

const DISPLAY_MERGE_SEED = [
  { id: "dm1", fromCat: "洋芋片", toCat: "零食綜合", storeScope: "全門店" },
  { id: "dm2", fromCat: "餅乾", toCat: "零食綜合", storeScope: "北部" },
];

const ST_HOURS_WEEKS = Array.from({ length: 13 }, (_, i) => `W${String(i + 1).padStart(2, "0")}`);

const ST_HOURS_SEED = INVENTORY_SEED.slice(0, 12).map((row, i) => ({
  id: `sh-${i + 1}`,
  skuNo: row.skuNo,
  itemName: row.itemName,
  hours: Object.fromEntries(ST_HOURS_WEEKS.map(w => [w, w <= "W11" ? "08:00–22:00" : "—"])),
}));

const SYS_INCA_DEFAULT = {
  deltaGenTime: "週四 14:00",
  deltaUploadTime: "週四 16:00",
  catalogGenTime: "週五 09:00",
  catalogUploadTime: "週五 11:00",
  promoGenTime: "週五 13:00",
  promoUploadTime: "週五 15:00",
};

// Prototype 演示：Samantha 視為超級使用者，sidebar + 各模組 CTA／編輯／Oracle 匯出皆可操作
const PROTOTYPE_SUPER_ROLES = new Set(["samantha"]);
const isPrototypeSuperUser = (role) => PROTOTYPE_SUPER_ROLES.has(role);
const canActAsPurchase = (role) => role === "purchase" || isPrototypeSuperUser(role);
const canActAsJoanna = (role) => role === "joanna" || isPrototypeSuperUser(role);
const canActAsEditor = (role) => canActAsPurchase(role) || canActAsJoanna(role);

Object.assign(window, {
  SIDEBAR, ROLES, PURCHASERS,
  PROTOTYPE_SUPER_ROLES, isPrototypeSuperUser, canActAsPurchase, canActAsJoanna, canActAsEditor,
  CATEGORY_TREE, MAIN_CATS, CAT_FOOD, CAT_MEAT, CAT_MEDICAL,
  FIELDS, SOURCES, INLINE_KEYS,
  BATCH_LIBRARY, SEED_FORMS, baseSku, seedItems,
  PAGE_SIZES, IMG_KEYS, SYNTH_IMG_MARKER,
  BATCH_NAMES, PRODUCT_MASTER,
  RECORD_SOURCES, CURRENCIES, PRICE_HISTORY,
  ADJ_BATCH_LIBRARY, SALE_STATUS_LABELS, adjRow, ADJ_BATCHES,
  PRICE_ADJ_BATCH_LIBRARY, priceAdjRow, PRICE_ADJ_BATCHES,
  ADJ_STATUS_BATCH_LIBRARY, adjStatusRow, ADJ_STATUS_BATCHES,
  IMG_SLOTS, IMG_SKUS, SEED_IMG_WORKSHEET,
  CO_MODULE_CONFIG, SEED_COLLECTION_OFFERS, PROMO_STUB_SEEDS,
  CL_MODULE_CONFIG, CLEARANCE_SKUS, SEED_CLEARANCE_OFFERS,
  eoc, EO_NUM_W, EO_ALL_COLS, EO_COMPACT_KEYS, EO_GROUP_LABELS,
  DISCOUNT_TYPE_OPTIONS, isFriday, isThursday,
  EO_MODULE_CONFIG, SEED_EATS_OFFERS,
  ALL_MODULES, AUTH_ROLES, AUTH_ROLE_LABELS, AUTH_DEPARTMENTS, AUTH_JOB_POSITIONS, AUTH_ROLE_PERMISSIONS, SEED_USERS, genTempPassword,
  SEED_LINE_ASSIGNMENTS,
  STORE_MASTER, INVENTORY_SEED, ZONE_MASTER_SEED, STORE_GRADE_SEED,
  DISPLAY_CAT_SEED,
  SEED_MENU_PREVIEWS, pmWireframeRow,
  SEED_DELTA_FILES,
  BD_REGION_SEED, BD_STORE_SEED, BD_TIER_SEED, BD_TEMP_SEED,
  SEED_INCA_CATALOG_FILES, SEED_INCA_PROMO_FILES,
  AUTH_PERM_SEED, DISPLAY_ITEM_SEED, DISPLAY_MERGE_SEED,
  ST_HOURS_WEEKS, ST_HOURS_SEED, SYS_INCA_DEFAULT,
  emptyVendor, SEED_VENDORS, SEED_VENDOR_DELIVERIES, VD_COLS, VD_GROUP_LABELS, VD_UID,
});
