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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
| <script>
| export default {
| data() {
| return {
| // 状态值
| statusValueList: [
| {
| status: "审核成功",
| bgColor: "#00ff99",
| color: "black"
| },
| {
| status: "新建",
| bgColor: "#ffff66",
| color: "#000"
| },
| {
| status: "审核失败",
| bgColor: "#ffcc66",
| color: "#fff"
| },
| {
| status: "在途中",
| bgColor: "#00ffff",
| color: "#000"
| },
| {
| status: "部分交货",
| bgColor: "#cc66ff",
| color: "#fff"
| },
| {
| status: "完全交货",
| bgColor: "#00ccff",
| color: "#fff"
| },
| {
| status: "终止",
| bgColor: "#ff6600",
| color: "#fff"
| },
| {
| status: "强制完成",
| bgColor: "#00ccff",
| color: "#fff"
| },
| {
| status: "待审核",
| bgColor: "#ffff33",
| color: "#000"
| },
| {
| status: "波次完成",
| bgColor: "#ffcc33",
| color: "#fff"
| },
| {
| status: "打包中",
| bgColor: "#66cccc",
| color: "#000"
| },
| {
| status: "部分打包",
| bgColor: "#66cccc",
| color: "#fff"
| },
| {
| status: "打包完成",
| bgColor: "#66cccc",
| color: "#fff"
| },
| {
| status: "发运完成",
| bgColor: "#33cc33",
| color: "#fff"
| },
| {
| status: "已发货",
| bgColor: "#33cc33",
| color: "#fff"
| },
| {
| status: "部分退货",
| bgColor: "#ff9999",
| color: "#fff"
| },
| {
| status: "完全退货",
| bgColor: "#ff9999",
| color: "#fff"
| },
| {
| status: "已完成",
| bgColor: "#99ffff",
| color: "#fff"
| },
| {
| status: "拣货中",
| bgColor: "#33ffff",
| color: "#fff"
| },
| {
| status: "配货中",
| bgColor: "#ccff66",
| color: "#fff"
| },
| {
| status: "等待配货",
| bgColor: "#ccff66",
| color: "#000"
| },
| {
| status: "等待打包",
| bgColor: "#cccc33",
| color: "#000"
| },
| {
| status: "用户取消",
| bgColor: "#c53e3a",
| color: "#fff"
| },
| {
| status: "已合并",
| bgColor: "#ff7043",
| color: "#fff"
| }
| ],
| // 状态流加载参数
| stateLoadOptions: {
| folder: "outbound/order",
| projectName: "ERP.Outbound",
| tableView: "Sale_Order_StatusHistory",
| idField: "history_Id",
| sortName: "history_Id DESC",
| pageIndex: 1,
| pageSize: 100,
| menu_Id: -1,
| noUserProduct_Id: true // 不需要账套ID
| },
| // 明细分拣状态流加载参数
| stateLoadOptionsDetail: {
| folder: "storage/storage",
| projectName: "ERP.Storage",
| tableView: "Base_ProductPlaceHolder",
| idField: "placeholder_Id",
| sortName: "placeholder_Id DESC",
| pageIndex: 1,
| pageSize: 100,
| menu_Id: -1
| },
| // 明细分拣状态流加载参数
| productPositionDetail: {
| folder: "storage/product",
| projectName: "ERP.Storage",
| tableView: "Base_ProductPosition",
| idField: "productPosition_Id",
| sortName: "productPosition_Id DESC",
| pageIndex: 1,
| pageSize: 100,
| menu_Id: -1
| }
| };
| },
| methods: {
| // 状态背景颜色
| setStatusBgColor(status) {
| var colorItem = this.statusValueList.find(item => {
| return item.status === status;
| });
| var bgColor = "#fffff";
| if (colorItem) bgColor = colorItem.bgColor;
|
| return bgColor;
| },
| // 状态字体颜色
| setStatusColor(status) {
| var colorItem = this.statusValueList.find(item => {
| return item.status === status;
| });
| var color = "#fffff";
| if (colorItem) color = colorItem.color;
|
| return {
| border: 0,
| color: color
| };
| }
| }
| };
| </script>
|
|