haoxuan
2023-12-26 eed27d3000e127c433fd45609d0d5e5d06b7868c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// 销售明细 交付类型
const deliveryType = [
  {
    name: "一次发货",
    id: 1
  },
  {
    name: "多次发货",
    id: 2
  }
]
// 采购状态
const purchaseStatus=[
  {
    name:"待确认",
    id:1,
  },
  {
    name:'待入库',
    id:2,
  },
  {
    name:'已入库',
    id:3,
  },
  {
    name:'已完成',
    id:4,
  },
  {
    name:'已取消',
    id:5,
  },
]
 
export const getDataByType = (type) => {
  if (type == "deliveryType") {
    return deliveryType
  }else if(type=='purchaseStatus'){
    return purchaseStatus;
  }
}