|
@@ -155,7 +155,7 @@ class CommonController extends Controller
|
155
|
155
|
array_push($os, $houseCleanOrder);
|
156
|
156
|
array_push($os, $housekeeperOrder);
|
157
|
157
|
array_push($os, $maternityMatronOrder);
|
158
|
|
- array_push($os, $productOrder);
|
|
158
|
+ //array_push($os, $productOrder);
|
159
|
159
|
$orders = array();
|
160
|
160
|
for ($i = 0; $i < sizeof($os); $i++) {
|
161
|
161
|
foreach ($os[$i] as $order) {
|
|
@@ -170,6 +170,17 @@ class CommonController extends Controller
|
170
|
170
|
array_push($orders, $data);
|
171
|
171
|
}
|
172
|
172
|
}
|
|
173
|
+ foreach ($productOrder as $order) {
|
|
174
|
+ $data = [];
|
|
175
|
+ $data["id"] = $order->id;
|
|
176
|
+ $data["classify1"] = $order->classify1;
|
|
177
|
+ $data["classify2"] = $order->color . "x" . $order->amount;
|
|
178
|
+ $data["status"] = $order->status;
|
|
179
|
+ $data["price"] = $order->price;
|
|
180
|
+ $data["order_type"] = $order->order_type;
|
|
181
|
+ //$data["created_at"] = $order->created_at->date;
|
|
182
|
+ array_push($orders, $data);
|
|
183
|
+ }
|
173
|
184
|
return Response()->json([
|
174
|
185
|
"status" => 0,
|
175
|
186
|
"data" => $orders
|