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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
| // 采购状态
| const purchaseStatus = [
| { id: 1, name: "待确认" },
| { id: 2, name: "待入库" },
| { id: 3, name: "已入库" },
| { id: 4, name: "已完成" },
| { id: 5, name: "已取消" }
| ]
| // 收货状态
| const receiveStatus = [
| { id: 1, name: "待确认" },
| { id: 2, name: "待入库" },
| { id: 3, name: "就绪" },
| { id: 4, name: "已完成" },
| { id: 5, name: "已取消" }
| ]
| // 质检单状态
| const qualityStatus = [
| {
| name: "待质检",
| id: 1
| },
| {
| name: "已完成",
| id: 2
| }
| ]
| // 退货单状态
| const returnedStatus = [
| {
| name: "待发货",
| id: 1
| },
| {
| name: "待签收",
| id: 2
| },
| {
| name: "待发货",
| id: 3
| },
| {
| name: "已完成",
| id: 4
| }
| ]
|
| export const getDataByType = (type) => {
| if (type == "purchaseStatus") {
| return purchaseStatus
| } else if (type == "qualityStatus") {
| return qualityStatus
| } else if (type == "returnedStatus") {
| return returnedStatus
| } else if (type == "receiveStatus") {
| return receiveStatus
| }
| }
|
|