修改图片上传
This commit is contained in:
parent
faeb1a1502
commit
3649f1635d
@ -31,7 +31,7 @@ class SafeRequest extends FormRequest
|
||||
{
|
||||
return [
|
||||
'user_type' => 'required|integer|min:1|max:3',
|
||||
'scene' => 'required|integer|min:1|max:2',
|
||||
'scene' => 'required|integer|min:1|max:3',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@ -313,7 +313,7 @@ class DetectionService extends BaseService
|
||||
if (!empty($order_detection)){
|
||||
$result['status'] = 2;
|
||||
$result['message'] = "当前患者存在未完成的检测订单";
|
||||
$result['data']['order_detection_id'] = $order_detection['order_detection_id'];
|
||||
$result['data']['order_no'] = $order_detection['detection_no'];
|
||||
return success($result);
|
||||
}
|
||||
|
||||
@ -490,8 +490,7 @@ class DetectionService extends BaseService
|
||||
return success();
|
||||
}
|
||||
|
||||
return success($order_detection['order_detection_id']);
|
||||
|
||||
return success($order_detection['detection_no']);
|
||||
}
|
||||
|
||||
// 绑定检测管
|
||||
|
||||
@ -1650,12 +1650,12 @@ class PatientOrderService extends BaseService
|
||||
{
|
||||
$user_info = $this->request->getAttribute("userInfo") ?? [];
|
||||
|
||||
$order_detection_id = $this->request->route('order_detection_id');
|
||||
$order_no = $this->request->route('order_no');
|
||||
|
||||
// 获取订单数据
|
||||
$params = array();
|
||||
$params['patient_id'] = $user_info['client_user_id'];
|
||||
$params['order_detection_id'] = $order_detection_id;
|
||||
$params['detection_no'] = $order_no;
|
||||
$params['is_delete'] = 0;
|
||||
$order_detection = OrderDetection::getOne($params);
|
||||
if (empty($order_detection)) {
|
||||
|
||||
@ -52,6 +52,10 @@ class SafeService extends BaseService
|
||||
// 名片
|
||||
$dir = $dir . 'card/';
|
||||
break;
|
||||
case 4:
|
||||
// 检测管
|
||||
$dir = $dir . 'detection/';
|
||||
break;
|
||||
|
||||
default:
|
||||
// code...
|
||||
|
||||
@ -448,7 +448,7 @@ Router::addGroup('/patient', function () {
|
||||
Router::get('', [PatientOrderController::class, 'getPatientDetectionOrderList']);
|
||||
|
||||
// 获取患者检测订单详情
|
||||
Router::get('/{order_detection_id:\d+}', [PatientOrderController::class, 'getPatientDetectionOrderInfo']);
|
||||
Router::get('/{order_no:\d+}', [PatientOrderController::class, 'getPatientDetectionOrderInfo']);
|
||||
|
||||
// 删除检测订单
|
||||
Router::delete('/{order_detection_id:\d+}', [PatientOrderController::class, 'deletePatientDetectionOrder']);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user