This commit is contained in:
parent
f8635a9209
commit
cf9636041c
@ -661,8 +661,30 @@ class PatientOrderService extends BaseService
|
|||||||
2
|
2
|
||||||
); // 优惠金额
|
); // 优惠金额
|
||||||
|
|
||||||
|
|
||||||
$result = array();
|
$result = array();
|
||||||
|
$result['transfer_order'] = false;
|
||||||
|
$result['original_doctor'] = [];
|
||||||
|
|
||||||
|
//查询是否为抄方单
|
||||||
|
$params = array();
|
||||||
|
$params['order_inquiry_id'] = $order_product['order_inquiry_id'];
|
||||||
|
$OrderInquiry = OrderInquiry::getOne($params);
|
||||||
|
if (!empty($OrderInquiry)) {
|
||||||
|
//为抄方订单
|
||||||
|
if (!empty($OrderInquiry['transfer_doctor_id'])) {
|
||||||
|
$params = array();
|
||||||
|
//若为抄方订单则显示原订单
|
||||||
|
$params['doctor_id'] = $OrderInquiry['doctor_id'];
|
||||||
|
$fields = ['doctor_id','user_name','doctor_title'];
|
||||||
|
$OriginalDoctor = UserDoctor::getOne($params, $fields);
|
||||||
|
if (!empty($OriginalDoctor)) {
|
||||||
|
$OriginalDoctor->doctor_title = DoctorTitleCode::getMessage($OriginalDoctor->doctor_title);
|
||||||
|
$result['original_doctor'] = $OriginalDoctor;
|
||||||
|
$result['transfer_order'] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$result['user_doctor'] = $user_doctor ?? [];
|
$result['user_doctor'] = $user_doctor ?? [];
|
||||||
$result['order_product'] = $order_product;
|
$result['order_product'] = $order_product;
|
||||||
$result['order_product_item'] = $order_product_item;
|
$result['order_product_item'] = $order_product_item;
|
||||||
@ -2001,7 +2023,7 @@ class PatientOrderService extends BaseService
|
|||||||
if (!empty($order_prescription['data'])) {
|
if (!empty($order_prescription['data'])) {
|
||||||
foreach ($order_prescription['data'] as &$item) {
|
foreach ($order_prescription['data'] as &$item) {
|
||||||
|
|
||||||
$item['original_doctor'] = null;
|
$item['original_doctor'] = [];
|
||||||
$item['transfer_order'] = false;
|
$item['transfer_order'] = false;
|
||||||
|
|
||||||
//处理抄方情况
|
//处理抄方情况
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user