Merge pull request '修复上传合同bug' (#80) from zhangwei into dev

Reviewed-on: #80
This commit is contained in:
weiz 2023-10-13 10:13:07 +08:00
commit dab06e4636
2 changed files with 3 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class VehicleContractController extends BaseAdminController
'status' => 1,
];
//判断合同类型
if($vehicle_contract['type'] == 0){
if($vehicle_contract['type'] == 0 && $vehicle_contract['contract_logistic_id'] != 0){
$data['cars_info'] = $params['cars'];
}
if(!empty($vehicle_contract['contract_logistic_id'])){

View File

@ -199,7 +199,7 @@ class VehicleController extends BaseApiController
}
//小组服务公司租赁申请
public function rentApply() {
public function rentApply() {
//验证请求类型
if(!$this->request->isPost()){
return $this->fail('请求类型错误');
@ -730,6 +730,7 @@ class VehicleController extends BaseApiController
}
//如果有租赁车俩和上传自有车辆,但没有购买镇街公司租赁的车辆 则先向镇街公司发起解约合同
if(!$xzRentCars->isEmpty() && $zjRentCars->isEmpty()){
dump(333);die;
//获取自有车辆或以租赁车辆信息
//生成本地解约合同
VehicleContract::create([