| | |
| | | id: 4 |
| | | } |
| | | ] |
| | | // 仓库 |
| | | // 仓库 |
| | | // 入向运输 |
| | | const inboundTransportation=[ |
| | | const inboundTransportation = [ |
| | | { |
| | | name:'直接接收产品(1步收货)', |
| | | id:1, |
| | | disabled:false, |
| | | name: "直接接收产品(1步收货)", |
| | | id: 1, |
| | | disabled: false |
| | | }, |
| | | { |
| | | name:'接到产品到收料区,再入库(2步收货)', |
| | | id:2, |
| | | disabled:true, |
| | | name: "接到产品到收料区,再入库(2步收货)", |
| | | id: 2, |
| | | disabled: true |
| | | }, |
| | | { |
| | | name:'接收产品到收料区,检验,然后入库(3步收货)', |
| | | id:3, |
| | | disabled:true, |
| | | name: "接收产品到收料区,检验,然后入库(3步收货)", |
| | | id: 3, |
| | | disabled: true |
| | | } |
| | | ] |
| | | // 出库运输 |
| | | const outboundTransportation=[ |
| | | const outboundTransportation = [ |
| | | { |
| | | name:'直接出库(1步)', |
| | | id:1, |
| | | disabled:false, |
| | | name: "直接出库(1步)", |
| | | id: 1, |
| | | disabled: false |
| | | }, |
| | | { |
| | | name:'送到待出库区,再送货(2步发货)', |
| | | id:2, |
| | | disabled:true, |
| | | name: "送到待出库区,再送货(2步发货)", |
| | | id: 2, |
| | | disabled: true |
| | | }, |
| | | { |
| | | name:'包装产品,发送到待出库区,再送货(3步发货)', |
| | | id:3, |
| | | disabled:true, |
| | | name: "包装产品,发送到待出库区,再送货(3步发货)", |
| | | id: 3, |
| | | disabled: true |
| | | } |
| | | ] |
| | | // 业务类型 |
| | | // 作业类型 |
| | | const baseOperationType=[ |
| | | // 作业类型 |
| | | const baseOperationType = [ |
| | | { |
| | | name: "收货", |
| | | name: "入库", |
| | | id: 1 |
| | | }, |
| | | { |
| | | name: "发货", |
| | | name: "出库", |
| | | id: 2 |
| | | }, |
| | | { |
| | | name: "内部调拨", |
| | | id: 3 |
| | | }, |
| | | } |
| | | ] |
| | | //创建欠单 |
| | | const createBackorder=[ |
| | | const createBackorder = [ |
| | | { |
| | | name: "提问", |
| | | id: 1 |
| | |
| | | { |
| | | name: "从不", |
| | | id: 3 |
| | | }, |
| | | } |
| | | ] |
| | | //保留方式 在预定日期之前=3 |
| | | const reservationMethod=[ |
| | | const reservationMethod = [ |
| | | { |
| | | name: "确认时", |
| | | id: 1 |
| | |
| | | id: 2 |
| | | } |
| | | ] |
| | | // 产品类别 |
| | | // 产品类别 |
| | | // 强制下架策略 |
| | | const forceRemovalStrategy=[ |
| | | const forceRemovalStrategy = [ |
| | | { |
| | | name: "First In First Out (FIFO)", |
| | | id: 1 |
| | |
| | | { |
| | | name: "Closest Location", |
| | | id: 3 |
| | | }, |
| | | } |
| | | ] |
| | | //成本方法 |
| | | const costingMethod=[ |
| | | const costingMethod = [ |
| | | { |
| | | name: "标准价格", |
| | | id: 1 |
| | |
| | | { |
| | | name: "平均成本(AVCO)", |
| | | id: 3 |
| | | }, |
| | | } |
| | | ] |
| | | // 库存计价 |
| | | const inventoryValuation=[ |
| | | const inventoryValuation = [ |
| | | { |
| | | name: "手动", |
| | | id: 1 |
| | |
| | | ] |
| | | // 位置 |
| | | // 位置类型 |
| | | const positionType=[ |
| | | const positionType = [ |
| | | { |
| | | name: "供应商位置", |
| | | id: 1 |
| | |
| | | export const getDataByType = (type) => { |
| | | if (type == "purchaseStatus") { |
| | | return purchaseStatus |
| | | }else if(type=='inboundTransportation'){ |
| | | } else if (type == "inboundTransportation") { |
| | | return inboundTransportation |
| | | }else if(type=='outboundTransportation'){ |
| | | } else if (type == "outboundTransportation") { |
| | | return outboundTransportation |
| | | }else if(type=='baseOperationType'){ |
| | | return baseOperationType; |
| | | }else if(type=='createBackorder'){ |
| | | return createBackorder; |
| | | }else if(type=='reservationMethod'){ |
| | | return reservationMethod; |
| | | }else if(type=='forceRemovalStrategy'){ |
| | | } else if (type == "baseOperationType") { |
| | | return baseOperationType |
| | | } else if (type == "createBackorder") { |
| | | return createBackorder |
| | | } else if (type == "reservationMethod") { |
| | | return reservationMethod |
| | | } else if (type == "forceRemovalStrategy") { |
| | | return forceRemovalStrategy |
| | | }else if(type=='costingMethod'){ |
| | | } else if (type == "costingMethod") { |
| | | return costingMethod |
| | | }else if(type=='inventoryValuation'){ |
| | | } else if (type == "inventoryValuation") { |
| | | return inventoryValuation |
| | | }else if(type=='positionType'){ |
| | | return positionType; |
| | | } else if (type == "positionType") { |
| | | return positionType |
| | | } |
| | | } |