Commit bbaa3dbf by 杨树贤

Merge branch 'dev/ver/1.0.0' of http://git.ichunt.net/semour/semour_web into dev/ver/1.0.0

parents 7edd98b5 fa681608
......@@ -466,9 +466,9 @@ class OrderService
$temp = [];
$return_amount_all = 0;
foreach ($returnItems as $k=>$v){
$orderGoodsInfo = \Arr::get($orderItemsArr,$v["rec_id"]);
$temp[] = [
"no"=>$k+1,
$recId = $v["rec_id"];
$orderGoodsInfo = \Arr::get($orderItemsArr,$recId);
$temp[$recId] = [
"part_no"=>$orderGoodsInfo["goods_name"], // 型号名称
"manufacturer"=>$orderGoodsInfo["brand_name"], // 品牌名称
"price_per_unit"=>$orderGoodsInfo["goods_price"], // 单价
......@@ -481,6 +481,11 @@ class OrderService
];
$return_amount_all += $v["return_amount"];
}
$temp = array_values($temp);
foreach ($temp as $c=>&$a){
$a["no"] = $c+1;
}
return ["return_amount_all"=>$return_amount_all,"items"=>$temp];
}
......
......@@ -78,7 +78,7 @@
</div>
</div>
<div class="create createcarbtn">Place Order</div>
@if(empty($_COOKIE['sem_email']))
@if(Auth::check())
<div class="lgtips">
Already Registered? <a href="/login?referer={{\Illuminate\Support\Facades\URL::current()}}">Log In</a>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment