Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fa681608
authored
Dec 05, 2022
by
SUDPTDUBLXEROFX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
订单列表
parent
a208ef3d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
app/Http/Services/OrderService.php
app/Http/Services/OrderService.php
View file @
fa681608
...
@@ -466,9 +466,9 @@ class OrderService
...
@@ -466,9 +466,9 @@ class OrderService
$temp
=
[];
$temp
=
[];
$return_amount_all
=
0
;
$return_amount_all
=
0
;
foreach
(
$returnItems
as
$k
=>
$v
){
foreach
(
$returnItems
as
$k
=>
$v
){
$
orderGoodsInfo
=
\Arr
::
get
(
$orderItemsArr
,
$v
[
"rec_id"
])
;
$
recId
=
$v
[
"rec_id"
]
;
$
temp
[]
=
[
$
orderGoodsInfo
=
\Arr
::
get
(
$orderItemsArr
,
$recId
);
"no"
=>
$k
+
1
,
$temp
[
$recId
]
=
[
"part_no"
=>
$orderGoodsInfo
[
"goods_name"
],
// 型号名称
"part_no"
=>
$orderGoodsInfo
[
"goods_name"
],
// 型号名称
"manufacturer"
=>
$orderGoodsInfo
[
"brand_name"
],
// 品牌名称
"manufacturer"
=>
$orderGoodsInfo
[
"brand_name"
],
// 品牌名称
"price_per_unit"
=>
$orderGoodsInfo
[
"goods_price"
],
// 单价
"price_per_unit"
=>
$orderGoodsInfo
[
"goods_price"
],
// 单价
...
@@ -481,6 +481,11 @@ class OrderService
...
@@ -481,6 +481,11 @@ class OrderService
];
];
$return_amount_all
+=
$v
[
"return_amount"
];
$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
];
return
[
"return_amount_all"
=>
$return_amount_all
,
"items"
=>
$temp
];
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment