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
94e9610b
authored
Nov 20, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_product_tracking_20201117'
parents
840ae7b2
e2cf5ded
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
4 deletions
app/Http/Controllers/OrderController.php
app/Model/OrderPurPriceModel.php
resources/views/detail/detail_items_info.php
resources/views/orderlist/content.blade.php
app/Http/Controllers/OrderController.php
View file @
94e9610b
...
@@ -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
;
}
Class
OrderController
extends
Controller
Class
OrderController
extends
Controller
{
{
// 首页
// 首页
...
...
app/Model/OrderPurPriceModel.php
0 → 100644
View file @
94e9610b
<?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 @
94e9610b
...
@@ -138,6 +138,19 @@
...
@@ -138,6 +138,19 @@
<?php
}
?>
<?php
}
?>
</tbody>
</tbody>
<tfoot>
<tfoot>
<?php
if
(
$username
==
'vpadmin@ichunt.com'
&&
$order_info
[
'xls_sn'
])
{
?>
<tr>
<td>
订单采购明细:
</td>
<td
colspan=
"18"
>
<?php
$data
=
App\Http\Controllers\getOrderPurPrice
(
$order_info
[
'xls_sn'
]);
echo
'税率:'
.
$data
[
'rate'
]
.
',采购单价:'
.
$data
[
'pur_price'
]
.
',采购数量:'
.
$order_items_info
[
0
][
'goods_number'
]
.
',币别:'
.
$data
[
'pur_currency'
]
.
',采购汇率:'
.
$data
[
'pur_rate'
];
?>
</td>
</tr>
<?php
}
?>
<?php
if
(
$order_info
[
'order_remark'
])
{
?>
<?php
if
(
$order_info
[
'order_remark'
])
{
?>
<tr>
<tr>
<td>
订单备注信息:
</td>
<td>
订单备注信息:
</td>
...
...
resources/views/orderlist/content.blade.php
View file @
94e9610b
...
@@ -32,10 +32,17 @@
...
@@ -32,10 +32,17 @@
</dd>
</dd>
</dl>
</dl>
<dl>
<dl>
<dt>
ERP订单号:
</dt>
@if ($username != 'vpadmin@ichunt.com')
<dd>
<dt>
ERP订单号:
</dt>
<input
type=
"text"
name=
"erp_sn"
value=
"{{$condition['erp_sn']}}"
placeholder=
"请输入ERP订单号"
>
<dd>
</dd>
<input
type=
"text"
name=
"erp_sn"
value=
"{{$condition['erp_sn']}}"
placeholder=
"请输入ERP订单号"
>
</dd>
@else
<dt>
内部编码:
</dt>
<dd>
<input
type=
"text"
name=
"erp_sn"
value=
"{{$condition['erp_sn']}}"
placeholder=
"请输入内部编码"
>
</dd>
@endif
</dl>
</dl>
@if ($username != 'vpadmin@ichunt.com')
@if ($username != 'vpadmin@ichunt.com')
...
...
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