Commit 5dd7bc37 by 朱继来

添加竞调采购明细

parent 4a4a37ec
......@@ -23,6 +23,7 @@ use App\Model\CmsModel;
use App\Model\QueuedModel;
use App\Model\ErpPayLogModel;
use App\Model\PayExtendModel;
use App\Model\OrderPurPriceModel;
use Session;
use Hprose\Http\Client;
......@@ -322,6 +323,19 @@ function getLastTrack($rec_id)
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
{
// 首页
......
<?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
......@@ -138,6 +138,13 @@
<?php } ?>
</tbody>
<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']) { ?>
<tr>
<td>订单备注信息:</td>
......
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