Bladeren bron

区分订单类型

chenxiqiang 6 jaren geleden
bovenliggende
commit
a110f42279

+ 2
- 1
manage-server/app/Http/Controllers/ClassifyController.php Bestand weergeven

241
                         "content" => $record->summary,
241
                         "content" => $record->summary,
242
                         "photo" => $record->photo,
242
                         "photo" => $record->photo,
243
                         "api" => $data["api"],
243
                         "api" => $data["api"],
244
-                        "fields" => $data["fields"]
244
+                        "fields" => $data["fields"],
245
+                        "type" => $record->name,
245
                     ]
246
                     ]
246
                 ]);
247
                 ]);
247
             }
248
             }

+ 2
- 0
manage-server/app/Http/Controllers/HousekeeperOrderController.php Bestand weergeven

33
         $notes = $request->input('notes');
33
         $notes = $request->input('notes');
34
         $status = $request->input('status');
34
         $status = $request->input('status');
35
         $price = $request->input('price');
35
         $price = $request->input('price');
36
+        $type = $request->input('type');
36
         //$photo = $request->input('photo');
37
         //$photo = $request->input('photo');
37
         if ($id) {
38
         if ($id) {
38
             $housekeeperOrder = HousekeeperOrder::find($id);
39
             $housekeeperOrder = HousekeeperOrder::find($id);
54
             $housekeeperOrder->contact = $contact;
55
             $housekeeperOrder->contact = $contact;
55
             $housekeeperOrder->notes = $notes;
56
             $housekeeperOrder->notes = $notes;
56
             $housekeeperOrder->phone = $phone;
57
             $housekeeperOrder->phone = $phone;
58
+            $housekeeperOrder->type = $type;
57
             $housekeeperOrder->wechat_id = $wechat_id;
59
             $housekeeperOrder->wechat_id = $wechat_id;
58
             $housekeeperOrder->photo = "https://wechat.sotype.com/storage/gOtuHM3GvKva6x68N340DJuN6cX1oIfaAhWi8yoq.jpeg";
60
             $housekeeperOrder->photo = "https://wechat.sotype.com/storage/gOtuHM3GvKva6x68N340DJuN6cX1oIfaAhWi8yoq.jpeg";
59
             $housekeeperOrder->save();
61
             $housekeeperOrder->save();

+ 2
- 0
manage-server/app/Models/HousekeeperOrder.php Bestand weergeven

19
             'area', // 房屋面积
19
             'area', // 房屋面积
20
             'server_time', // 服务时间: 全白天/住家
20
             'server_time', // 服务时间: 全白天/住家
21
             'rest', // 休息安排
21
             'rest', // 休息安排
22
+            'notes', // 备注
23
+            'type', //订单类型
22
         ];
24
         ];
23
         parent::mergeFillable(parent::getFillable(), $fillable);
25
         parent::mergeFillable(parent::getFillable(), $fillable);
24
     }
26
     }

+ 1
- 0
manage-server/database/migrations/2018_08_10_075742_create_housekeeper_orders_table.php Bestand weergeven

43
             $table->double('price');
43
             $table->double('price');
44
             $table->string('photo');
44
             $table->string('photo');
45
             $table->string('notes');
45
             $table->string('notes');
46
+            $table->string('type');
46
             $table->unsignedInteger('comment_id');
47
             $table->unsignedInteger('comment_id');
47
             $table->timestamp("paid_at");
48
             $table->timestamp("paid_at");
48
         });
49
         });

Loading…
Annuleren
Opslaan