// =====================仓储管理

export const warehousingType = [
  { code: 3, label: '物料', key: 'WULIAO' },
  { code: 4, label: '产品', key: 'CHANPIN' },
  {
    code: 5,
    label: '周转车',
    key: 'ZHOUZHUANCHE'
  },
  { code: 2, label: '舟皿', key: 'ZHOUMIN' },
  {
    code: 1,
    label: '设备',
    key: 'SHENGCHANSHEBEI'
  },
  { code: 6, label: '模具', key: 'MOJU' },
  {
    code: 7,
    label: '备品备件',
    key: 'BEIPINBEIJIAN'
  }
];

// export const wh_assetDict = [
//   { label: '物料', type: 'w', code: 'WULIAO' },
//   // {  label: "产品", type: "c", code:'CHANPIN' },
//   { label: '周转车', type: '2', code: 'ZHOUZHUANCHE' },
//   { label: '舟皿', type: '1', code: 'ZHOUMIN' },
//   { label: '设备', type: '0', code: 'SHENGCHANSHEBEI' },
//   { label: '模具', type: '3', code: 'MOJU' },
//   { label: '备品备件', type: '4', code: 'BEIPINBEIJIAN' }
// ]
export const sceneState = [
  { code: 1, label: '生产入库', documentsName: '生产工单' },
  { code: 2, label: '采购入库', documentsName: '采购收货单' },
  { code: 3, label: '归还入库', documentsName: '出库单' },
  { code: 4, label: '领料退货入库', documentsName: '领料退货单' },
  // { code: 5, label: '其他入库' },
  { code: 6, label: '销售退货入库', documentsName: '销售订单' },
  { code: 7, label: '销售受托入库', documentsName: '受托收货单' },
  { code: 8, label: '半成品入库', documentsName: '委外工单' },
  { code: 9, label: '外协入库', documentsName: '销售退货处理单' },
  { code: 10, label: '委外入库', documentsName: '委外订单' },
  { code: 11, label: '委外退货入库', documentsName: '委外发货单' },
  { code: 12, label: '委外入库(非采购)', documentsName: '委外申请单' },
  { code: 99, label: '其他入库' }
];
export const outputSceneState = [
  { code: 1, label: '退供出库' },
  { code: 2, label: '调拨出库' },
  { code: 3, label: '销售出库' },
  { code: 4, label: '领用出库' },
  { code: 5, label: '报废出库' },
  { code: 6, label: '外协出库' },
  { code: 7, label: '委外出库' },
  { code: 8, label: '受托退货出库' },
  { code: 9, label: '仓库委外出库' },
  { code: 10, label: '采购退货出库' },
  { code: 11, label: '自选领用出库' }
];
// 紧急状态
export const emergencyState = [
  { code: 1, label: '普通', color: 'red' },
  { code: 2, label: '重要', color: 'blue' },
  { code: 3, label: '紧急', color: 'red' }
];
export const materialType = [
  { code: 1, label: '混炼料' },
  { code: 2, label: '混合料' }
];

export const inputStatus = [
  { code: 1, label: '入库' },
  { code: 2, label: '出库' }
];
// 盘点类型
export const wh_checkStatus = [
  { code: 1, label: '库内' },
  { code: 2, label: '库外' }
];
export const allocationType = [
  { code: 1, label: '库内调拨' },
  { code: 2, label: '库外调拨' }
];
export const allocationStatusDict = [
  { code: 1, label: '空置', color: 'blue' },
  { code: 2, label: '在用', color: 'green' },
  { code: 3, label: '已满', color: 'red' },
  { code: 4, label: '失效', color: 'grey' }
];

// 计划周期类型
export const wh_cycleTypeStauts = [
  { code: 1, label: '周期计划' },
  { code: 2, label: '临时计划' }
];

// 是否锁库盘点(0:否;1:是;)盘点独有字段
export const wh_isTreasuryLock = [
  { code: false, label: '否' },
  { code: true, label: '是' }
];
// 计划状态
export const wh_planStatus = [
  { code: 0, label: '未派单' },
  { code: 4, label: '待审核' },
  { code: 5, label: '已审核' },
  { code: 6, label: '派单中' },
  { code: 1, label: '已派单' },
  { code: 2, label: '已完成' },
  { code: 3, label: '已撤回' }
];
export const wh_planStatusEnum = [
  { code: 'WEIPAIDAN', label: '未派单' },
  { code: 'YIPAIDAN', label: '已派单' },
  { code: 'YIWANCHENG', label: '已完成' },
  { code: 'YICHEHUI', label: '已撤回' },
  { code: 'DAISHENHE', label: '待审核' },
  { code: 'YISHENHE', label: '已审核' },
  { code: 'PAIDANZHONG', label: '派单中' }
];
// 盘点资产状态
export const wh_equStatus = [
  { code: 0, label: '待盘点', color: '' },
  { code: 1, label: '盘亏', color: '#D9001B' },
  { code: 2, label: '盘损', color: '#F59A23' },
  { code: 3, label: '盘盈', color: '#70B603' },
  { code: 4, label: '正常', color: '' }
];
