|
|
@@ -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('修改成功');
|
|
|
}
|