|
|
|
|
@ -103,6 +103,7 @@ class PlanController extends Controller
|
|
|
|
|
$combo_id=request('combo_id');
|
|
|
|
|
$item_ids=request('item_ids');
|
|
|
|
|
$date=request('date');
|
|
|
|
|
$er_xian_info=request('er_xian_info');
|
|
|
|
|
$use_type=request('use_type');//使用类型 1个检 2团检
|
|
|
|
|
$checkup_type_id=(string)request('checkup_type_id');//体检类型表对应id
|
|
|
|
|
$amount=request('amount');//总金额
|
|
|
|
|
@ -149,7 +150,7 @@ class PlanController extends Controller
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
$list=$list->orderBy('time','asc')->get();
|
|
|
|
|
if(count($comboItemsNmr)>0 or count($ItemsNmr)>0){
|
|
|
|
|
if(count($comboItemsNmr)>0 or count($ItemsNmr)>0 or !empty($er_xian_info)){
|
|
|
|
|
//如果有核磁项目,11点往后的号源不可用
|
|
|
|
|
foreach ($list as $key=>$item) {
|
|
|
|
|
if($item->time > '11:00:00' and $item->time <= '12:00:00'){
|
|
|
|
|
@ -184,6 +185,10 @@ class PlanController extends Controller
|
|
|
|
|
->where(['hospital_id'=>$hospital_id,'type'=>1,'is_del'=>0])
|
|
|
|
|
->where('is_vip','<>',1)
|
|
|
|
|
->whereIn('use_type',[0,$use_type]);
|
|
|
|
|
if(count($comboItemsNmr)>0 or count($ItemsNmr)>0 or !empty($er_xian_info)){
|
|
|
|
|
//如果有核磁项目,11点往后的号源不可用
|
|
|
|
|
$weeklist=$weeklist->where('time','<=','11:00');
|
|
|
|
|
}
|
|
|
|
|
if(!!$combo_id){
|
|
|
|
|
$comboInfo=DB::table('combos')->where(['combo_id'=>$combo_id])->first();
|
|
|
|
|
if(!empty($comboInfo->keyue_start_time) and !empty($comboInfo->keyue_end_time)){
|
|
|
|
|
|