|
@@ -39,7 +39,7 @@ class ConstructionService extends Service
|
|
|
$model->customer_id = $data['customer_id'] ?? 0;
|
|
|
$model->customer_contact_id = $data['customer_contact_id'] ?? 0;
|
|
|
$model->install_method = $data['install_method'] ?? 0;
|
|
|
- $model->install_position = $data['install_position'] ?? '';
|
|
|
+ $model->install_position = $data['install_position'] ?? 0;
|
|
|
$model->sales_order_id = $data['sales_order_id'] ?? 0;
|
|
|
$model->construction_fee = $data['construction_fee'] ?? 0;
|
|
|
$model->service_price = $data['service_price'] ?? 0;
|
|
@@ -140,7 +140,7 @@ class ConstructionService extends Service
|
|
|
$model->customer_id = $data['customer_id'] ?? 0;
|
|
|
$model->customer_contact_id = $data['customer_contact_id'] ?? 0;
|
|
|
$model->install_method = $data['install_method'] ?? 0;
|
|
|
- $model->install_position = $data['install_position'] ?? '';
|
|
|
+ $model->install_position = $data['install_position'] ?? 0;
|
|
|
$model->sales_order_id = $data['sales_order_id'] ?? 0;
|
|
|
$model->construction_fee = $data['construction_fee'] ?? 0;
|
|
|
$model->service_price = $data['service_price'] ?? 0;
|
|
@@ -288,6 +288,7 @@ class ConstructionService extends Service
|
|
|
$construction['employee_one'] = $construction['construction_contact'] = $construction['product'] = [];
|
|
|
$array = [
|
|
|
$construction['install_method'],
|
|
|
+ $construction['install_position'],
|
|
|
$construction['urgency'],
|
|
|
];
|
|
|
$basic_map = BasicType::whereIn('id',$array)
|
|
@@ -296,6 +297,7 @@ class ConstructionService extends Service
|
|
|
$construction = [$construction];
|
|
|
foreach ($construction as $key => $value){
|
|
|
$construction[$key]['install_method_title'] = $basic_map[$value['install_method']] ?? '';
|
|
|
+ $construction[$key]['install_position_title'] = $basic_map[$value['install_position']] ?? '';
|
|
|
$construction[$key]['urgency_title'] = $basic_map[$value['urgency']] ?? '';
|
|
|
}
|
|
|
$construction = $construction[0];
|