初始化
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
include APP_PATH . 'app/views/layouts/admin_header.php';
|
||||
?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-10 col-md-offset-1">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title"><i class="fa fa-eye"></i> 销售订单详情 #<?php echo $order['id']; ?></h3>
|
||||
<div class="box-tools">
|
||||
<a href="<?php echo BASE_URL; ?>/Inventory/sales" class="btn btn-default btn-sm"><i class="fa fa-arrow-left"></i> 返回列表</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<dl class="dl-horizontal">
|
||||
<dt>销售单号</dt><dd><code><?php echo htmlspecialchars($order['order_no']); ?></code></dd>
|
||||
<dt>客户名称</dt><dd><?php echo htmlspecialchars($order['customer_name']); ?></dd>
|
||||
<dt>销售日期</dt><dd><?php echo htmlspecialchars($order['order_date']); ?></dd>
|
||||
<dt>总金额</dt><dd><strong>¥<?php echo number_format($order['total_amount'], 2); ?></strong></dd>
|
||||
<dt>状态</dt><dd><?php echo htmlspecialchars($order['status']); ?></dd>
|
||||
<dt>操作人</dt><dd><?php echo htmlspecialchars($order['operator']); ?></dd>
|
||||
<dt>备注</dt><dd><?php echo htmlspecialchars($order['remark']); ?></dd>
|
||||
</dl>
|
||||
|
||||
<h4>销售明细</h4>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>产品名称</th>
|
||||
<th>规格型号</th>
|
||||
<th>数量</th>
|
||||
<th>单位</th>
|
||||
<th>单价</th>
|
||||
<th>金额</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (!empty($items)): ?>
|
||||
<?php foreach ($items as $item): ?>
|
||||
<tr>
|
||||
<td><?php echo htmlspecialchars($item['product_name']); ?></td>
|
||||
<td><?php echo htmlspecialchars($item['product_model']); ?></td>
|
||||
<td><?php echo $item['quantity']; ?></td>
|
||||
<td><?php echo htmlspecialchars($item['unit']); ?></td>
|
||||
<td>¥<?php echo number_format($item['unit_price'], 2); ?></td>
|
||||
<td>¥<?php echo number_format($item['amount'], 2); ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr><td colspan="6" class="text-center text-muted">无明细数据</td></tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>
|
||||
Reference in New Issue
Block a user