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
5dd7bc37
authored
Nov 20, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加竞调采购明细
parent
4a4a37ec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
0 deletions
app/Http/Controllers/OrderController.php
app/Model/OrderPurPriceModel.php
resources/views/detail/detail_items_info.php
app/Http/Controllers/OrderController.php
View file @
5dd7bc37
...
@@ -23,6 +23,7 @@ use App\Model\CmsModel;
...
@@ -23,6 +23,7 @@ use App\Model\CmsModel;
use
App\Model\QueuedModel
;
use
App\Model\QueuedModel
;
use
App\Model\ErpPayLogModel
;
use
App\Model\ErpPayLogModel
;
use
App\Model\PayExtendModel
;
use
App\Model\PayExtendModel
;
use
App\Model\OrderPurPriceModel
;
use
Session
;
use
Session
;
use
Hprose\Http\Client
;
use
Hprose\Http\Client
;
...
@@ -322,6 +323,19 @@ function getLastTrack($rec_id)
...
@@ -322,6 +323,19 @@ function getLastTrack($rec_id)
return
$track
[
'msg'
]
.
',状态:'
.
$track
[
'status_cn'
];
return
$track
[
'msg'
]
.
',状态:'
.
$track
[
'status_cn'
];
}
}
// 获取竞调订单采购价格
function
getOrderPurPrice
(
$xls_sn
)
{
$OrderPurPriceModel
=
new
OrderPurPriceModel
;
$data
=
$OrderPurPriceModel
->
where
(
'xls_sn'
,
$xls_sn
)
->
first
();
if
(
!
$data
)
return
false
;
return
'税率:'
.
$data
[
'rate'
]
.
',采购单价:'
.
$data
[
'pur_price'
]
.
',币别:'
.
$data
[
'pur_currency'
]
.
',采购汇率:'
.
$data
[
'pur_rate'
];
}
Class
OrderController
extends
Controller
Class
OrderController
extends
Controller
{
{
// 首页
// 首页
...
...
app/Model/OrderPurPriceModel.php
0 → 100644
View file @
5dd7bc37
<?php
namespace
App\Model
;
use
Illuminate\Database\Eloquent\Model
;
class
OrderPurPriceModel
extends
Model
{
protected
$connection
=
'order'
;
protected
$table
=
'lie_order_pur_price'
;
protected
$primaryKey
=
'id'
;
public
$timestamps
=
false
;
}
\ No newline at end of file
resources/views/detail/detail_items_info.php
View file @
5dd7bc37
...
@@ -138,6 +138,13 @@
...
@@ -138,6 +138,13 @@
<?php
}
?>
<?php
}
?>
</tbody>
</tbody>
<tfoot>
<tfoot>
<?php
if
(
$username
==
'vpadmin@ichunt.com'
&&
$order_info
[
'xls_sn'
])
{
?>
<tr>
<td>
订单采购明细:
</td>
<td
colspan=
"18"
>
<?=
App\Http\Controllers\getOrderPurPrice
(
$order_info
[
'xls_sn'
])
?>
</td>
</tr>
<?php
}
?>
<?php
if
(
$order_info
[
'order_remark'
])
{
?>
<?php
if
(
$order_info
[
'order_remark'
])
{
?>
<tr>
<tr>
<td>
订单备注信息:
</td>
<td>
订单备注信息:
</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