Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
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
1f3f2570
authored
Jan 28, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整明细
parent
80b7d537
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
app/Http/Controllers/OrderController.php
resources/views/detail/detail_items_info.php
app/Http/Controllers/OrderController.php
View file @
1f3f2570
...
...
@@ -338,7 +338,7 @@ function getOrderPurPrice($xls_sn)
}
// 获取售后单信息
function
getOrderServiceNum
(
$order_id
,
$
goods
_id
,
$status
=
1
,
$field
=
'adjust_number'
)
function
getOrderServiceNum
(
$order_id
,
$
erp_rec
_id
,
$status
=
1
,
$field
=
'adjust_number'
)
{
$OrderServiceModel
=
new
OrderServiceModel
;
$OrderServiceItemsModel
=
new
OrderServiceItemsModel
;
...
...
@@ -347,7 +347,7 @@ function getOrderServiceNum($order_id, $goods_id, $status=1, $field='adjust_numb
->
leftJoin
(
'lie_order_service_items as i'
,
's.id'
,
'='
,
'i.service_id'
)
->
where
(
's.service_status'
,
'>'
,
$status
)
->
where
(
'i.order_id'
,
$order_id
)
->
where
(
'i.
goods_id'
,
$goods
_id
)
->
where
(
'i.
erp_rec_id'
,
$erp_rec
_id
)
->
sum
(
'i.'
.
$field
);
}
...
...
resources/views/detail/detail_items_info.php
View file @
1f3f2570
...
...
@@ -149,7 +149,7 @@
<?php
if
(
$order_info
[
'order_goods_type'
]
==
1
)
{
$service_number
=
App\Http\Controllers\getOrderServiceNum
(
$v
[
'order_id'
],
$v
[
'
goods
_id'
],
2
);
$service_number
=
App\Http\Controllers\getOrderServiceNum
(
$v
[
'order_id'
],
$v
[
'
erp_rec
_id'
],
2
);
// $service_price = App\Http\Controllers\getOrderServiceNum($v['order_id'], $v['goods_id'], 2, 'adjust_price');
echo
'<td>'
.
$service_number
.
'</td><td>'
.
(
$v
[
'goods_number'
]
-
$service_number
)
.
'</td>'
;
...
...
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