|
|
|
@ -200,7 +200,7 @@ select combo_id as c_id,count(*) as count from orders where status in(2,4) group
|
|
|
|
$group_id = request('group_id'); //团检登记id
|
|
|
|
$group_id = request('group_id'); //团检登记id
|
|
|
|
if (!isset($hospital_id)) return \Yz::echoError1("医院id不能为空");
|
|
|
|
if (!isset($hospital_id)) return \Yz::echoError1("医院id不能为空");
|
|
|
|
$hospital = DB::table('hospitals')->where(['id' => 1, 'status' => 1, 'is_del' => 0])->first();
|
|
|
|
$hospital = DB::table('hospitals')->where(['id' => 1, 'status' => 1, 'is_del' => 0])->first();
|
|
|
|
$combo_info = [];//套餐信息
|
|
|
|
$combo_info = false;//套餐信息
|
|
|
|
$pay_item_count = 0;//需自费项目个数
|
|
|
|
$pay_item_count = 0;//需自费项目个数
|
|
|
|
$all_original_price = 0;
|
|
|
|
$all_original_price = 0;
|
|
|
|
$true_price = 0;
|
|
|
|
$true_price = 0;
|
|
|
|
@ -254,7 +254,7 @@ select combo_id as c_id,count(*) as sale_count from orders where status in(2,4)
|
|
|
|
$pay_item_count += $combo->item_count;
|
|
|
|
$pay_item_count += $combo->item_count;
|
|
|
|
$true_price += $combo_info['price'];
|
|
|
|
$true_price += $combo_info['price'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$items_info = [];//自选项目信息
|
|
|
|
$items_info = false;//自选项目信息
|
|
|
|
if (isset($item_ids) and !empty($item_ids)) {
|
|
|
|
if (isset($item_ids) and !empty($item_ids)) {
|
|
|
|
$price = 0;
|
|
|
|
$price = 0;
|
|
|
|
$items_original_price = 0;
|
|
|
|
$items_original_price = 0;
|
|
|
|
@ -350,13 +350,13 @@ select combo_id as c_id,count(*) as sale_count from orders where status in(2,4)
|
|
|
|
'group_info' => $group_info,
|
|
|
|
'group_info' => $group_info,
|
|
|
|
'combo_info' => $combo_info,
|
|
|
|
'combo_info' => $combo_info,
|
|
|
|
'items_info' => $items_info,
|
|
|
|
'items_info' => $items_info,
|
|
|
|
'integral_money' => $integral_money,
|
|
|
|
'integral_money' => number_format($integral_money, 2, '.', ''),
|
|
|
|
'save_money' => $save_money,
|
|
|
|
'save_money' =>number_format($save_money, 2, '.', ''),
|
|
|
|
'coupon_money' => $coupon_money,
|
|
|
|
'coupon_money' => number_format($coupon_money, 2, '.', ''),
|
|
|
|
'true_price' => $true_price,//需要用户支付的金的
|
|
|
|
'true_price' =>number_format($true_price, 2, '.', ''),//需要用户支付的金的
|
|
|
|
'original_price' => $all_original_price,//总原价
|
|
|
|
'original_price' =>number_format($all_original_price, 2, '.', '') ,//总原价
|
|
|
|
'pay_item_count' => $pay_item_count,//需要付费的项目数量
|
|
|
|
'pay_item_count' => $pay_item_count,//需要付费的项目数量
|
|
|
|
'lose_price'=>$lose_price,//剩余的不用就会浪费的金额
|
|
|
|
'lose_price'=>number_format($lose_price, 2, '.', ''),//剩余的不用就会浪费的金额
|
|
|
|
'nmr_list' => [[
|
|
|
|
'nmr_list' => [[
|
|
|
|
'item_id' => "1",
|
|
|
|
'item_id' => "1",
|
|
|
|
"name" => "磁共振平扫(腰椎)"
|
|
|
|
"name" => "磁共振平扫(腰椎)"
|
|
|
|
|