shish 1 год назад
Родитель
Сommit
d8b273fc69
1 измененных файлов с 3 добавлено и 0 удалено
  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('修改成功');
     }