This commit is contained in:
unknown 2023-08-30 19:52:12 +08:00
parent 063bda055f
commit 1bf2b2e414
2 changed files with 5 additions and 3 deletions

View File

@ -155,6 +155,8 @@ class IndexController extends BaseApiController
'user_name' => $party_b_company['master_name'],
'user_phone' => $party_b_company['master_phone'],
]);
}else{
//自有车辆
}
}
return json(['success' => true, 'msg' => '成功']);

View File

@ -129,8 +129,8 @@ class VehicleController extends BaseApiController
'town_company_id' => $contract['party_a'],
'village_company_id' => $village_company['id'],
'village_company_name' => $village_company['company_name'],
'village_company_user' => $village_company['master_phone'],
'village_company_phone' => $village_company['id'],
'village_company_user' => $village_company['master_name'],
'village_company_phone' => $village_company['master_phone'],
'car_license' => !empty($params) ? $params : '',
'type' => !empty($params) ? 1 : 0,
'status' => 0,
@ -191,7 +191,7 @@ class VehicleController extends BaseApiController
return $this->fail('获取数据失败');
}
//获取镇街公司可租赁车辆列表
$cars = VehicleRent::field('id,car_license')->where('company_id',$this->userInfo['company_id'])->where('status',0)->where('type',0)->select();
$cars = VehicleRent::field('car_id,car_license')->where('company_id',$this->userInfo['company_id'])->where('status',0)->where('type',0)->select();
return $this->success('请求成功',[
'apply' => $data->toArray(),
'cars' => $cars->toArray()