import {upcloud_base_common} from "@/config/serviceSettings";

export const splitColumns = [
  { type: 'edit', title: "商品编码", dataIndex: "itemNum", key: "itemNum", width: 120 },
  // { title: "商品条码", dataIndex: "itemBarCode", key: "itemBarCode", width: 100, },
  { type: 'edit', title: "商品名称", dataIndex: "itemName", key: "itemName", width: 160 },
  { type: 'edit', title: "商品分类", dataIndex: "categoryName", key: "categoryName" },
  {
    type: "select", title: "库别", dataIndex: "whAreaCategoryCode", key: "whAreaCategoryCode", width: 100,
    remoteUrl: { url: upcloud_base_common+'/dict/listbytype?dicttypeCodes=wms_storeroom', method: 'post' },
    replaceFields: {
      value: 'dictCode',
      label: 'dictName'
    }
  },
  { type: 'edit', title: "包装单位", dataIndex: "uom", key: "uom", width: 80, },
  { type: 'edit', title: "包装含量", dataIndex: "conversionRate", key: "conversionRate", width: 120, },
  { type: 'edit', title: "件数", dataIndex: "oddCaseQty", key: "oddCaseQty", width: 80, },
  { type: 'edit', title: "零散数", dataIndex: "oddPieceQty", key: "oddPieceQty", width: 80, },
  // { title: "单位包装数量", dataIndex: "qty", key: "qty", width: 80, },
  { type: 'edit', title: "最小单位数量", dataIndex: "pieceQty", key: "pieceQty", width: 80, },
]
