shish 1 gadu atpakaļ
vecāks
revīzija
d8b273fc69
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      app-ghs/controllers/CustomController.php

+ 3 - 0
app-ghs/controllers/CustomController.php

@@ -838,6 +838,7 @@ class CustomController extends BaseController
         $get = Yii::$app->request->get();
         $id = $get['id'] ?? 0;
         $homeAmount = $get['homeAmount'] ?? 0;
+        $homeType = $get['homeType'] ?? 0;
         $custom = CustomClass::getById($id, true);
         if (empty($custom)) {
             util::fail('没有找到客户');
@@ -851,8 +852,10 @@ class CustomController extends BaseController
             util::fail('没有找到供货商');
         }
         $custom->homeAmount = $homeAmount;
+        $custom->homeType = $homeType;
         $custom->save();
         $ghs->homeAmount = $homeAmount;
+        $ghs->homeType = $homeType;
         $ghs->save();
         util::complete('修改成功');
     }