初始化

This commit is contained in:
2026-08-08 18:28:49 +08:00
parent 9bef4420e0
commit f082037a6e
854 changed files with 217171 additions and 11 deletions
+100
View File
@@ -0,0 +1,100 @@
<?php
include APP_PATH . 'app/views/layouts/admin_header.php';
?>
<div class="row">
<div class="col-lg-3 col-xs-6">
<div class="small-box bg-aqua">
<div class="inner">
<h3><?php echo $supplierCount ?? 0; ?></h3>
<p>供应商数量</p>
</div>
<div class="icon"><i class="fa fa-address-book"></i></div>
<a href="<?php echo BASE_URL; ?>/Inventory/supplier" class="small-box-footer">进入管理 <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<div class="small-box bg-green">
<div class="inner">
<h3><?php echo $purchaseCount ?? 0; ?></h3>
<p>采购订单</p>
</div>
<div class="icon"><i class="fa fa-truck"></i></div>
<a href="<?php echo BASE_URL; ?>/Inventory/purchase" class="small-box-footer">进入管理 <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<div class="small-box bg-yellow">
<div class="inner">
<h3><?php echo isset($stockCount['cnt']) ? $stockCount['cnt'] : 0; ?></h3>
<p>库存品类</p>
</div>
<div class="icon"><i class="fa fa-archive"></i></div>
<a href="<?php echo BASE_URL; ?>/Inventory/stock" class="small-box-footer">进入管理 <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<div class="small-box bg-red">
<div class="inner">
<h3><?php echo $salesCount ?? 0; ?></h3>
<p>销售订单</p>
</div>
<div class="icon"><i class="fa fa-shopping-cart"></i></div>
<a href="<?php echo BASE_URL; ?>/Inventory/sales" class="small-box-footer">进入管理 <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
</div>
<?php if (!empty($lowStockItems)): ?>
<div class="row">
<div class="col-md-12">
<div class="box box-danger">
<div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-exclamation-triangle"></i> 低库存预警</h3>
</div>
<div class="box-body table-responsive no-padding">
<table class="table table-hover table-striped">
<thead>
<tr>
<th>产品名称</th>
<th>规格型号</th>
<th>当前库存</th>
<th>最低库存</th>
<th>仓库</th>
</tr>
</thead>
<tbody>
<?php foreach ($lowStockItems as $item): ?>
<tr>
<td><?php echo htmlspecialchars($item['product_name']); ?></td>
<td><?php echo htmlspecialchars($item['product_model']); ?></td>
<td><span class="label label-danger"><?php echo $item['quantity']; ?></span></td>
<td><?php echo $item['min_stock']; ?></td>
<td><?php echo htmlspecialchars($item['warehouse']); ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php endif; ?>
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-rocket"></i> 快捷操作</h3>
</div>
<div class="box-body">
<a href="<?php echo BASE_URL; ?>/Inventory/supplierAdd" class="btn btn-primary"><i class="fa fa-plus"></i> 添加供应商</a>
<a href="<?php echo BASE_URL; ?>/Inventory/purchaseAdd" class="btn btn-success"><i class="fa fa-truck"></i> 新建采购单</a>
<a href="<?php echo BASE_URL; ?>/Inventory/stockAdd" class="btn btn-warning"><i class="fa fa-archive"></i> 添加库存</a>
<a href="<?php echo BASE_URL; ?>/Inventory/salesAdd" class="btn btn-danger"><i class="fa fa-shopping-cart"></i> 新建销售单</a>
</div>
</div>
</div>
</div>
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>
+65
View File
@@ -0,0 +1,65 @@
<?php
include APP_PATH . 'app/views/layouts/admin_header.php';
?>
<div class="box">
<div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-list"></i> 采购订单列表</h3>
<div class="box-tools">
<a href="<?php echo BASE_URL; ?>/Inventory/purchaseAdd" class="btn btn-primary btn-sm"><i class="fa fa-plus"></i> 新建采购单</a>
</div>
</div>
<div class="box-body table-responsive no-padding">
<table class="table table-hover table-striped">
<thead>
<tr>
<th>序号</th>
<th>采购单号</th>
<th>供应商</th>
<th>采购日期</th>
<th>总金额</th>
<th>状态</th>
<th>操作人</th>
<th style="width:180px">操作</th>
</tr>
</thead>
<tbody>
<?php if (!empty($orders)): ?>
<?php foreach ($orders as $o): ?>
<tr>
<td><?php echo $o['id']; ?></td>
<td><code><?php echo htmlspecialchars($o['order_no']); ?></code></td>
<td><?php echo htmlspecialchars($o['supplier_name']); ?></td>
<td><?php echo htmlspecialchars($o['order_date']); ?></td>
<td>&yen;<?php echo number_format($o['total_amount'], 2); ?></td>
<td>
<?php
$statusLabels = ['pending'=>'待确认','confirmed'=>'已确认','received'=>'已收货','cancelled'=>'已取消'];
$statusColors = ['pending'=>'warning','confirmed'=>'info','received'=>'success','cancelled'=>'default'];
$st = $o['status'] ?? 'pending';
?>
<span class="label label-<?php echo $statusColors[$st] ?? 'default'; ?>">
<?php echo $statusLabels[$st] ?? $st; ?>
</span>
</td>
<td><?php echo htmlspecialchars($o['operator']); ?></td>
<td>
<a href="<?php echo BASE_URL; ?>/Inventory/purchaseDetail?id=<?php echo $o['id']; ?>" class="btn btn-xs btn-primary"><i class="fa fa-eye"></i> 详情</a>
<a href="<?php echo BASE_URL; ?>/Inventory/purchaseEdit?id=<?php echo $o['id']; ?>" class="btn btn-xs btn-info"><i class="fa fa-edit"></i> 编辑</a>
<form method="post" action="<?php echo BASE_URL; ?>/Inventory/purchaseDelete" style="display:inline" onsubmit="return confirm('确定删除该采购单吗?');">
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($csrfToken ?? ''); ?>">
<input type="hidden" name="id" value="<?php echo $o['id']; ?>">
<button type="submit" class="btn btn-xs btn-danger"><i class="fa fa-trash"></i> 删除</button>
</form>
</td>
</tr>
<?php endforeach; ?>
<?php else: ?>
<tr><td colspan="8" class="text-center text-muted">暂无采购订单</td></tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>
+124
View File
@@ -0,0 +1,124 @@
<?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-plus"></i> 新建采购订单</h3>
</div>
<form method="post">
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($csrfToken); ?>">
<div class="box-body">
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label>采购单号 <span class="text-red">*</span></label>
<input type="text" name="order_no" class="form-control" value="CG<?php echo date('YmdHis'); ?>" required>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>供应商</label>
<select name="supplier_id" class="form-control">
<option value="">-- 请选择 --</option>
<?php foreach ($suppliers as $s): ?>
<option value="<?php echo $s['id']; ?>"><?php echo htmlspecialchars($s['name']); ?></option>
<?php endforeach; ?>
</select>
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label>采购日期</label>
<input type="date" name="order_date" class="form-control" value="<?php echo date('Y-m-d'); ?>">
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label>状态</label>
<select name="status" class="form-control">
<option value="pending">待确认</option>
<option value="confirmed">已确认</option>
<option value="received">已收货</option>
</select>
</div>
</div>
</div>
<h4>采购明细</h4>
<table class="table table-bordered" id="itemsTable">
<thead>
<tr>
<th>产品名称</th>
<th style="width:120px">规格型号</th>
<th style="width:80px">数量</th>
<th style="width:80px">单位</th>
<th style="width:100px">单价</th>
<th style="width:100px">金额</th>
<th style="width:60px">操作</th>
</tr>
</thead>
<tbody id="itemsBody">
<tr>
<td><input type="text" name="product_name[]" class="form-control"></td>
<td><input type="text" name="product_model[]" class="form-control"></td>
<td><input type="number" name="quantity[]" class="form-control qty" value="1" min="1" onchange="calcRow(this)"></td>
<td><input type="text" name="unit[]" class="form-control" value="个"></td>
<td><input type="number" name="unit_price[]" class="form-control price" value="0" step="0.01" onchange="calcRow(this)"></td>
<td><input type="text" class="form-control amount" readonly value="0.00"></td>
<td><button type="button" class="btn btn-xs btn-danger" onclick="removeRow(this)"><i class="fa fa-times"></i></button></td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="7">
<button type="button" class="btn btn-sm btn-success" onclick="addRow()"><i class="fa fa-plus"></i> 添加行</button>
</td>
</tr>
</tfoot>
</table>
<div class="form-group">
<label>备注</label>
<textarea name="remark" class="form-control" rows="2"></textarea>
</div>
</div>
<div class="box-footer">
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> 保存</button>
<a href="<?php echo BASE_URL; ?>/Inventory/purchase" class="btn btn-default">返回</a>
</div>
</form>
</div>
</div>
</div>
<script>
function addRow() {
var tbody = document.getElementById('itemsBody');
var row = document.createElement('tr');
row.innerHTML = '<td><input type="text" name="product_name[]" class="form-control"></td>' +
'<td><input type="text" name="product_model[]" class="form-control"></td>' +
'<td><input type="number" name="quantity[]" class="form-control qty" value="1" min="1" onchange="calcRow(this)"></td>' +
'<td><input type="text" name="unit[]" class="form-control" value="个"></td>' +
'<td><input type="number" name="unit_price[]" class="form-control price" value="0" step="0.01" onchange="calcRow(this)"></td>' +
'<td><input type="text" class="form-control amount" readonly value="0.00"></td>' +
'<td><button type="button" class="btn btn-xs btn-danger" onclick="removeRow(this)"><i class="fa fa-times"></i></button></td>';
tbody.appendChild(row);
}
function removeRow(btn) {
var tbody = document.getElementById('itemsBody');
if (tbody.rows.length > 1) {
btn.closest('tr').remove();
}
}
function calcRow(el) {
var row = el.closest('tr');
var qty = parseFloat(row.querySelector('.qty').value) || 0;
var price = parseFloat(row.querySelector('.price').value) || 0;
row.querySelector('.amount').value = (qty * price).toFixed(2);
}
</script>
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>
+59
View File
@@ -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/purchase" 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['supplier_name']); ?></dd>
<dt>采购日期</dt><dd><?php echo htmlspecialchars($order['order_date']); ?></dd>
<dt>总金额</dt><dd><strong>&yen;<?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>&yen;<?php echo number_format($item['unit_price'], 2); ?></td>
<td>&yen;<?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'; ?>
+128
View File
@@ -0,0 +1,128 @@
<?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-edit"></i> 编辑采购订单</h3>
</div>
<form method="post">
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($csrfToken); ?>">
<div class="box-body">
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label>采购单号 <span class="text-red">*</span></label>
<input type="text" name="order_no" class="form-control" value="<?php echo htmlspecialchars($order['order_no']); ?>" required>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>供应商</label>
<select name="supplier_id" class="form-control">
<?php foreach ($suppliers as $s): ?>
<option value="<?php echo $s['id']; ?>" <?php echo $s['id'] == $order['supplier_id'] ? 'selected' : ''; ?>><?php echo htmlspecialchars($s['name']); ?></option>
<?php endforeach; ?>
</select>
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label>采购日期</label>
<input type="date" name="order_date" class="form-control" value="<?php echo htmlspecialchars($order['order_date']); ?>">
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label>状态</label>
<select name="status" class="form-control">
<option value="pending" <?php echo ($order['status'] ?? '') === 'pending' ? 'selected' : ''; ?>>待确认</option>
<option value="confirmed" <?php echo ($order['status'] ?? '') === 'confirmed' ? 'selected' : ''; ?>>已确认</option>
<option value="received" <?php echo ($order['status'] ?? '') === 'received' ? 'selected' : ''; ?>>已收货</option>
<option value="cancelled" <?php echo ($order['status'] ?? '') === 'cancelled' ? 'selected' : ''; ?>>已取消</option>
</select>
</div>
</div>
</div>
<h4>采购明细</h4>
<table class="table table-bordered" id="itemsTable">
<thead>
<tr>
<th>产品名称</th>
<th style="width:120px">规格型号</th>
<th style="width:80px">数量</th>
<th style="width:80px">单位</th>
<th style="width:100px">单价</th>
<th style="width:100px">金额</th>
<th style="width:60px">操作</th>
</tr>
</thead>
<tbody id="itemsBody">
<?php if (!empty($items)): ?>
<?php foreach ($items as $item): ?>
<tr>
<td><input type="text" name="product_name[]" class="form-control" value="<?php echo htmlspecialchars($item['product_name']); ?>"></td>
<td><input type="text" name="product_model[]" class="form-control" value="<?php echo htmlspecialchars($item['product_model']); ?>"></td>
<td><input type="number" name="quantity[]" class="form-control qty" value="<?php echo $item['quantity']; ?>" min="1" onchange="calcRow(this)"></td>
<td><input type="text" name="unit[]" class="form-control" value="<?php echo htmlspecialchars($item['unit']); ?>"></td>
<td><input type="number" name="unit_price[]" class="form-control price" value="<?php echo $item['unit_price']; ?>" step="0.01" onchange="calcRow(this)"></td>
<td><input type="text" class="form-control amount" readonly value="<?php echo number_format($item['amount'], 2); ?>"></td>
<td><button type="button" class="btn btn-xs btn-danger" onclick="removeRow(this)"><i class="fa fa-times"></i></button></td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</tbody>
<tfoot>
<tr>
<td colspan="7">
<button type="button" class="btn btn-sm btn-success" onclick="addRow()"><i class="fa fa-plus"></i> 添加行</button>
</td>
</tr>
</tfoot>
</table>
<div class="form-group">
<label>备注</label>
<textarea name="remark" class="form-control" rows="2"><?php echo htmlspecialchars($order['remark']); ?></textarea>
</div>
</div>
<div class="box-footer">
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> 保存</button>
<a href="<?php echo BASE_URL; ?>/Inventory/purchase" class="btn btn-default">返回</a>
</div>
</form>
</div>
</div>
</div>
<script>
function addRow() {
var tbody = document.getElementById('itemsBody');
var row = document.createElement('tr');
row.innerHTML = '<td><input type="text" name="product_name[]" class="form-control"></td>' +
'<td><input type="text" name="product_model[]" class="form-control"></td>' +
'<td><input type="number" name="quantity[]" class="form-control qty" value="1" min="1" onchange="calcRow(this)"></td>' +
'<td><input type="text" name="unit[]" class="form-control" value="个"></td>' +
'<td><input type="number" name="unit_price[]" class="form-control price" value="0" step="0.01" onchange="calcRow(this)"></td>' +
'<td><input type="text" class="form-control amount" readonly value="0.00"></td>' +
'<td><button type="button" class="btn btn-xs btn-danger" onclick="removeRow(this)"><i class="fa fa-times"></i></button></td>';
tbody.appendChild(row);
}
function removeRow(btn) {
var tbody = document.getElementById('itemsBody');
if (tbody.rows.length > 1) {
btn.closest('tr').remove();
}
}
function calcRow(el) {
var row = el.closest('tr');
var qty = parseFloat(row.querySelector('.qty').value) || 0;
var price = parseFloat(row.querySelector('.price').value) || 0;
row.querySelector('.amount').value = (qty * price).toFixed(2);
}
</script>
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>
+65
View File
@@ -0,0 +1,65 @@
<?php
include APP_PATH . 'app/views/layouts/admin_header.php';
?>
<div class="box">
<div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-list"></i> 销售订单列表</h3>
<div class="box-tools">
<a href="<?php echo BASE_URL; ?>/Inventory/salesAdd" class="btn btn-primary btn-sm"><i class="fa fa-plus"></i> 新建销售单</a>
</div>
</div>
<div class="box-body table-responsive no-padding">
<table class="table table-hover table-striped">
<thead>
<tr>
<th>序号</th>
<th>销售单号</th>
<th>客户名称</th>
<th>销售日期</th>
<th>总金额</th>
<th>状态</th>
<th>操作人</th>
<th style="width:180px">操作</th>
</tr>
</thead>
<tbody>
<?php if (!empty($orders)): ?>
<?php foreach ($orders as $o): ?>
<tr>
<td><?php echo $o['id']; ?></td>
<td><code><?php echo htmlspecialchars($o['order_no']); ?></code></td>
<td><?php echo htmlspecialchars($o['customer_name']); ?></td>
<td><?php echo htmlspecialchars($o['order_date']); ?></td>
<td>&yen;<?php echo number_format($o['total_amount'], 2); ?></td>
<td>
<?php
$statusLabels = ['pending'=>'待发货','shipped'=>'已发货','completed'=>'已完成','cancelled'=>'已取消'];
$statusColors = ['pending'=>'warning','shipped'=>'info','completed'=>'success','cancelled'=>'default'];
$st = $o['status'] ?? 'pending';
?>
<span class="label label-<?php echo $statusColors[$st] ?? 'default'; ?>">
<?php echo $statusLabels[$st] ?? $st; ?>
</span>
</td>
<td><?php echo htmlspecialchars($o['operator']); ?></td>
<td>
<a href="<?php echo BASE_URL; ?>/Inventory/salesDetail?id=<?php echo $o['id']; ?>" class="btn btn-xs btn-primary"><i class="fa fa-eye"></i> 详情</a>
<a href="<?php echo BASE_URL; ?>/Inventory/salesEdit?id=<?php echo $o['id']; ?>" class="btn btn-xs btn-info"><i class="fa fa-edit"></i> 编辑</a>
<form method="post" action="<?php echo BASE_URL; ?>/Inventory/salesDelete" style="display:inline" onsubmit="return confirm('确定删除该销售单吗?');">
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($csrfToken ?? ''); ?>">
<input type="hidden" name="id" value="<?php echo $o['id']; ?>">
<button type="submit" class="btn btn-xs btn-danger"><i class="fa fa-trash"></i> 删除</button>
</form>
</td>
</tr>
<?php endforeach; ?>
<?php else: ?>
<tr><td colspan="8" class="text-center text-muted">暂无销售订单</td></tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>
+117
View File
@@ -0,0 +1,117 @@
<?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-plus"></i> 新建销售订单</h3>
</div>
<form method="post">
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($csrfToken); ?>">
<div class="box-body">
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label>销售单号 <span class="text-red">*</span></label>
<input type="text" name="order_no" class="form-control" value="XS<?php echo date('YmdHis'); ?>" required>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>客户名称</label>
<input type="text" name="customer_name" class="form-control">
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label>销售日期</label>
<input type="date" name="order_date" class="form-control" value="<?php echo date('Y-m-d'); ?>">
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label>状态</label>
<select name="status" class="form-control">
<option value="pending">待发货</option>
<option value="shipped">已发货</option>
<option value="completed">已完成</option>
</select>
</div>
</div>
</div>
<h4>销售明细</h4>
<table class="table table-bordered" id="itemsTable">
<thead>
<tr>
<th>产品名称</th>
<th style="width:120px">规格型号</th>
<th style="width:80px">数量</th>
<th style="width:80px">单位</th>
<th style="width:100px">单价</th>
<th style="width:100px">金额</th>
<th style="width:60px">操作</th>
</tr>
</thead>
<tbody id="itemsBody">
<tr>
<td><input type="text" name="product_name[]" class="form-control"></td>
<td><input type="text" name="product_model[]" class="form-control"></td>
<td><input type="number" name="quantity[]" class="form-control qty" value="1" min="1" onchange="calcRow(this)"></td>
<td><input type="text" name="unit[]" class="form-control" value="个"></td>
<td><input type="number" name="unit_price[]" class="form-control price" value="0" step="0.01" onchange="calcRow(this)"></td>
<td><input type="text" class="form-control amount" readonly value="0.00"></td>
<td><button type="button" class="btn btn-xs btn-danger" onclick="removeRow(this)"><i class="fa fa-times"></i></button></td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="7">
<button type="button" class="btn btn-sm btn-success" onclick="addRow()"><i class="fa fa-plus"></i> 添加行</button>
</td>
</tr>
</tfoot>
</table>
<div class="form-group">
<label>备注</label>
<textarea name="remark" class="form-control" rows="2"></textarea>
</div>
</div>
<div class="box-footer">
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> 保存</button>
<a href="<?php echo BASE_URL; ?>/Inventory/sales" class="btn btn-default">返回</a>
</div>
</form>
</div>
</div>
</div>
<script>
function addRow() {
var tbody = document.getElementById('itemsBody');
var row = document.createElement('tr');
row.innerHTML = '<td><input type="text" name="product_name[]" class="form-control"></td>' +
'<td><input type="text" name="product_model[]" class="form-control"></td>' +
'<td><input type="number" name="quantity[]" class="form-control qty" value="1" min="1" onchange="calcRow(this)"></td>' +
'<td><input type="text" name="unit[]" class="form-control" value="个"></td>' +
'<td><input type="number" name="unit_price[]" class="form-control price" value="0" step="0.01" onchange="calcRow(this)"></td>' +
'<td><input type="text" class="form-control amount" readonly value="0.00"></td>' +
'<td><button type="button" class="btn btn-xs btn-danger" onclick="removeRow(this)"><i class="fa fa-times"></i></button></td>';
tbody.appendChild(row);
}
function removeRow(btn) {
var tbody = document.getElementById('itemsBody');
if (tbody.rows.length > 1) btn.closest('tr').remove();
}
function calcRow(el) {
var row = el.closest('tr');
var qty = parseFloat(row.querySelector('.qty').value) || 0;
var price = parseFloat(row.querySelector('.price').value) || 0;
row.querySelector('.amount').value = (qty * price).toFixed(2);
}
</script>
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>
+59
View File
@@ -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>&yen;<?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>&yen;<?php echo number_format($item['unit_price'], 2); ?></td>
<td>&yen;<?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'; ?>
+122
View File
@@ -0,0 +1,122 @@
<?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-edit"></i> 编辑销售订单</h3>
</div>
<form method="post">
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($csrfToken); ?>">
<div class="box-body">
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label>销售单号 <span class="text-red">*</span></label>
<input type="text" name="order_no" class="form-control" value="<?php echo htmlspecialchars($order['order_no']); ?>" required>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>客户名称</label>
<input type="text" name="customer_name" class="form-control" value="<?php echo htmlspecialchars($order['customer_name']); ?>">
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label>销售日期</label>
<input type="date" name="order_date" class="form-control" value="<?php echo htmlspecialchars($order['order_date']); ?>">
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label>状态</label>
<select name="status" class="form-control">
<option value="pending" <?php echo ($order['status'] ?? '') === 'pending' ? 'selected' : ''; ?>>待发货</option>
<option value="shipped" <?php echo ($order['status'] ?? '') === 'shipped' ? 'selected' : ''; ?>>已发货</option>
<option value="completed" <?php echo ($order['status'] ?? '') === 'completed' ? 'selected' : ''; ?>>已完成</option>
<option value="cancelled" <?php echo ($order['status'] ?? '') === 'cancelled' ? 'selected' : ''; ?>>已取消</option>
</select>
</div>
</div>
</div>
<h4>销售明细</h4>
<table class="table table-bordered" id="itemsTable">
<thead>
<tr>
<th>产品名称</th>
<th style="width:120px">规格型号</th>
<th style="width:80px">数量</th>
<th style="width:80px">单位</th>
<th style="width:100px">单价</th>
<th style="width:100px">金额</th>
<th style="width:60px">操作</th>
</tr>
</thead>
<tbody id="itemsBody">
<?php if (!empty($items)): ?>
<?php foreach ($items as $item): ?>
<tr>
<td><input type="text" name="product_name[]" class="form-control" value="<?php echo htmlspecialchars($item['product_name']); ?>"></td>
<td><input type="text" name="product_model[]" class="form-control" value="<?php echo htmlspecialchars($item['product_model']); ?>"></td>
<td><input type="number" name="quantity[]" class="form-control qty" value="<?php echo $item['quantity']; ?>" min="1" onchange="calcRow(this)"></td>
<td><input type="text" name="unit[]" class="form-control" value="<?php echo htmlspecialchars($item['unit']); ?>"></td>
<td><input type="number" name="unit_price[]" class="form-control price" value="<?php echo $item['unit_price']; ?>" step="0.01" onchange="calcRow(this)"></td>
<td><input type="text" class="form-control amount" readonly value="<?php echo number_format($item['amount'], 2); ?>"></td>
<td><button type="button" class="btn btn-xs btn-danger" onclick="removeRow(this)"><i class="fa fa-times"></i></button></td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</tbody>
<tfoot>
<tr>
<td colspan="7">
<button type="button" class="btn btn-sm btn-success" onclick="addRow()"><i class="fa fa-plus"></i> 添加行</button>
</td>
</tr>
</tfoot>
</table>
<div class="form-group">
<label>备注</label>
<textarea name="remark" class="form-control" rows="2"><?php echo htmlspecialchars($order['remark']); ?></textarea>
</div>
</div>
<div class="box-footer">
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> 保存</button>
<a href="<?php echo BASE_URL; ?>/Inventory/sales" class="btn btn-default">返回</a>
</div>
</form>
</div>
</div>
</div>
<script>
function addRow() {
var tbody = document.getElementById('itemsBody');
var row = document.createElement('tr');
row.innerHTML = '<td><input type="text" name="product_name[]" class="form-control"></td>' +
'<td><input type="text" name="product_model[]" class="form-control"></td>' +
'<td><input type="number" name="quantity[]" class="form-control qty" value="1" min="1" onchange="calcRow(this)"></td>' +
'<td><input type="text" name="unit[]" class="form-control" value="个"></td>' +
'<td><input type="number" name="unit_price[]" class="form-control price" value="0" step="0.01" onchange="calcRow(this)"></td>' +
'<td><input type="text" class="form-control amount" readonly value="0.00"></td>' +
'<td><button type="button" class="btn btn-xs btn-danger" onclick="removeRow(this)"><i class="fa fa-times"></i></button></td>';
tbody.appendChild(row);
}
function removeRow(btn) {
var tbody = document.getElementById('itemsBody');
if (tbody.rows.length > 1) btn.closest('tr').remove();
}
function calcRow(el) {
var row = el.closest('tr');
var qty = parseFloat(row.querySelector('.qty').value) || 0;
var price = parseFloat(row.querySelector('.price').value) || 0;
row.querySelector('.amount').value = (qty * price).toFixed(2);
}
</script>
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>
+68
View File
@@ -0,0 +1,68 @@
<?php
include APP_PATH . 'app/views/layouts/admin_header.php';
?>
<div class="box">
<div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-list"></i> 库存列表</h3>
<div class="box-tools">
<a href="<?php echo BASE_URL; ?>/Inventory/stockAdd" class="btn btn-primary btn-sm"><i class="fa fa-plus"></i> 添加库存</a>
</div>
</div>
<div class="box-body table-responsive no-padding">
<table class="table table-hover table-striped">
<thead>
<tr>
<th>序号</th>
<th>产品名称</th>
<th>规格型号</th>
<th>物料分类</th>
<th>库存数量</th>
<th>单位</th>
<th>参考单价</th>
<th>最低库存</th>
<th>仓库</th>
<th>库位</th>
<th style="width:150px">操作</th>
</tr>
</thead>
<tbody>
<?php if (!empty($stocks)): ?>
<?php foreach ($stocks as $s): ?>
<?php
$isLow = $s['min_stock'] > 0 && $s['quantity'] <= $s['min_stock'];
?>
<tr class="<?php echo $isLow ? 'danger' : ''; ?>">
<td><?php echo $s['id']; ?></td>
<td><?php echo htmlspecialchars($s['product_name']); ?></td>
<td><?php echo htmlspecialchars($s['product_model']); ?></td>
<td><?php echo htmlspecialchars($s['category']); ?></td>
<td>
<span class="label label-<?php echo $isLow ? 'danger' : 'success'; ?>">
<?php echo $s['quantity']; ?>
</span>
</td>
<td><?php echo htmlspecialchars($s['unit']); ?></td>
<td>&yen;<?php echo number_format($s['unit_price'], 2); ?></td>
<td><?php echo $s['min_stock']; ?></td>
<td><?php echo htmlspecialchars($s['warehouse']); ?></td>
<td><?php echo htmlspecialchars($s['location']); ?></td>
<td>
<a href="<?php echo BASE_URL; ?>/Inventory/stockEdit?id=<?php echo $s['id']; ?>" class="btn btn-xs btn-info"><i class="fa fa-edit"></i> 编辑</a>
<form method="post" action="<?php echo BASE_URL; ?>/Inventory/stockDelete" style="display:inline" onsubmit="return confirm('确定删除该库存记录吗?');">
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($csrfToken ?? ''); ?>">
<input type="hidden" name="id" value="<?php echo $s['id']; ?>">
<button type="submit" class="btn btn-xs btn-danger"><i class="fa fa-trash"></i> 删除</button>
</form>
</td>
</tr>
<?php endforeach; ?>
<?php else: ?>
<tr><td colspan="11" class="text-center text-muted">暂无库存数据</td></tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>
+94
View File
@@ -0,0 +1,94 @@
<?php
include APP_PATH . 'app/views/layouts/admin_header.php';
?>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-plus"></i> 添加库存</h3>
</div>
<form method="post">
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($csrfToken); ?>">
<div class="box-body">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>产品名称 <span class="text-red">*</span></label>
<input type="text" name="product_name" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>规格型号</label>
<input type="text" name="product_model" class="form-control">
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label>物料分类</label>
<input type="text" name="category" class="form-control" placeholder="如:原材料、半成品、成品">
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label>数量</label>
<input type="number" name="quantity" class="form-control" value="0">
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label>单位</label>
<input type="text" name="unit" class="form-control" value="个">
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>参考单价</label>
<input type="number" name="unit_price" class="form-control" value="0" step="0.01">
</div>
</div>
</div>
<div class="row">
<div class="col-md-3">
<div class="form-group">
<label>最低库存预警</label>
<input type="number" name="min_stock" class="form-control" value="0">
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label>最高库存</label>
<input type="number" name="max_stock" class="form-control" value="0">
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label>仓库</label>
<input type="text" name="warehouse" class="form-control">
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label>库位</label>
<input type="text" name="location" class="form-control">
</div>
</div>
</div>
<div class="form-group">
<label>备注</label>
<textarea name="remark" class="form-control" rows="2"></textarea>
</div>
</div>
<div class="box-footer">
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> 保存</button>
<a href="<?php echo BASE_URL; ?>/Inventory/stock" class="btn btn-default">返回</a>
</div>
</form>
</div>
</div>
</div>
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>
+94
View File
@@ -0,0 +1,94 @@
<?php
include APP_PATH . 'app/views/layouts/admin_header.php';
?>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-edit"></i> 编辑库存</h3>
</div>
<form method="post">
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($csrfToken); ?>">
<div class="box-body">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>产品名称 <span class="text-red">*</span></label>
<input type="text" name="product_name" class="form-control" value="<?php echo htmlspecialchars($record['product_name']); ?>" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>规格型号</label>
<input type="text" name="product_model" class="form-control" value="<?php echo htmlspecialchars($record['product_model']); ?>">
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label>物料分类</label>
<input type="text" name="category" class="form-control" value="<?php echo htmlspecialchars($record['category']); ?>">
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label>数量</label>
<input type="number" name="quantity" class="form-control" value="<?php echo $record['quantity']; ?>">
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label>单位</label>
<input type="text" name="unit" class="form-control" value="<?php echo htmlspecialchars($record['unit']); ?>">
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>参考单价</label>
<input type="number" name="unit_price" class="form-control" value="<?php echo $record['unit_price']; ?>" step="0.01">
</div>
</div>
</div>
<div class="row">
<div class="col-md-3">
<div class="form-group">
<label>最低库存预警</label>
<input type="number" name="min_stock" class="form-control" value="<?php echo $record['min_stock']; ?>">
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label>最高库存</label>
<input type="number" name="max_stock" class="form-control" value="<?php echo $record['max_stock']; ?>">
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label>仓库</label>
<input type="text" name="warehouse" class="form-control" value="<?php echo htmlspecialchars($record['warehouse']); ?>">
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label>库位</label>
<input type="text" name="location" class="form-control" value="<?php echo htmlspecialchars($record['location']); ?>">
</div>
</div>
</div>
<div class="form-group">
<label>备注</label>
<textarea name="remark" class="form-control" rows="2"><?php echo htmlspecialchars($record['remark']); ?></textarea>
</div>
</div>
<div class="box-footer">
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> 保存</button>
<a href="<?php echo BASE_URL; ?>/Inventory/stock" class="btn btn-default">返回</a>
</div>
</form>
</div>
</div>
</div>
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>
+59
View File
@@ -0,0 +1,59 @@
<?php
include APP_PATH . 'app/views/layouts/admin_header.php';
?>
<div class="box">
<div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-list"></i> 供应商列表</h3>
<div class="box-tools">
<a href="<?php echo BASE_URL; ?>/Inventory/supplierAdd" class="btn btn-primary btn-sm"><i class="fa fa-plus"></i> 添加供应商</a>
</div>
</div>
<div class="box-body table-responsive no-padding">
<table class="table table-hover table-striped">
<thead>
<tr>
<th>序号</th>
<th>供应商名称</th>
<th>联系人</th>
<th>联系电话</th>
<th>地址</th>
<th>状态</th>
<th>备注</th>
<th style="width:150px">操作</th>
</tr>
</thead>
<tbody>
<?php if (!empty($suppliers)): ?>
<?php foreach ($suppliers as $s): ?>
<tr>
<td><?php echo $s['id']; ?></td>
<td><?php echo htmlspecialchars($s['name']); ?></td>
<td><?php echo htmlspecialchars($s['contact_person']); ?></td>
<td><?php echo htmlspecialchars($s['phone']); ?></td>
<td><?php echo htmlspecialchars($s['address']); ?></td>
<td>
<span class="label label-<?php echo $s['status'] ? 'success' : 'default'; ?>">
<?php echo $s['status'] ? '正常' : '停用'; ?>
</span>
</td>
<td><?php echo htmlspecialchars($s['remark']); ?></td>
<td>
<a href="<?php echo BASE_URL; ?>/Inventory/supplierEdit?id=<?php echo $s['id']; ?>" class="btn btn-xs btn-info"><i class="fa fa-edit"></i> 编辑</a>
<form method="post" action="<?php echo BASE_URL; ?>/Inventory/supplierDelete" style="display:inline" onsubmit="return confirm('确定删除该供应商吗?');">
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($csrfToken ?? ''); ?>">
<input type="hidden" name="id" value="<?php echo $s['id']; ?>">
<button type="submit" class="btn btn-xs btn-danger"><i class="fa fa-trash"></i> 删除</button>
</form>
</td>
</tr>
<?php endforeach; ?>
<?php else: ?>
<tr><td colspan="8" class="text-center text-muted">暂无供应商数据</td></tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>
+51
View File
@@ -0,0 +1,51 @@
<?php
include APP_PATH . 'app/views/layouts/admin_header.php';
?>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-plus"></i> 添加供应商</h3>
</div>
<form method="post">
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($csrfToken); ?>">
<div class="box-body">
<div class="form-group">
<label>供应商名称 <span class="text-red">*</span></label>
<input type="text" name="name" class="form-control" required>
</div>
<div class="form-group">
<label>联系人</label>
<input type="text" name="contact_person" class="form-control">
</div>
<div class="form-group">
<label>联系电话</label>
<input type="text" name="phone" class="form-control">
</div>
<div class="form-group">
<label>地址</label>
<input type="text" name="address" class="form-control">
</div>
<div class="form-group">
<label>状态</label>
<select name="status" class="form-control">
<option value="1">正常</option>
<option value="0">停用</option>
</select>
</div>
<div class="form-group">
<label>备注</label>
<textarea name="remark" class="form-control" rows="3"></textarea>
</div>
</div>
<div class="box-footer">
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> 保存</button>
<a href="<?php echo BASE_URL; ?>/Inventory/supplier" class="btn btn-default">返回</a>
</div>
</form>
</div>
</div>
</div>
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>
+51
View File
@@ -0,0 +1,51 @@
<?php
include APP_PATH . 'app/views/layouts/admin_header.php';
?>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-edit"></i> 编辑供应商</h3>
</div>
<form method="post">
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($csrfToken); ?>">
<div class="box-body">
<div class="form-group">
<label>供应商名称 <span class="text-red">*</span></label>
<input type="text" name="name" class="form-control" value="<?php echo htmlspecialchars($record['name']); ?>" required>
</div>
<div class="form-group">
<label>联系人</label>
<input type="text" name="contact_person" class="form-control" value="<?php echo htmlspecialchars($record['contact_person']); ?>">
</div>
<div class="form-group">
<label>联系电话</label>
<input type="text" name="phone" class="form-control" value="<?php echo htmlspecialchars($record['phone']); ?>">
</div>
<div class="form-group">
<label>地址</label>
<input type="text" name="address" class="form-control" value="<?php echo htmlspecialchars($record['address']); ?>">
</div>
<div class="form-group">
<label>状态</label>
<select name="status" class="form-control">
<option value="1" <?php echo $record['status'] == 1 ? 'selected' : ''; ?>>正常</option>
<option value="0" <?php echo $record['status'] == 0 ? 'selected' : ''; ?>>停用</option>
</select>
</div>
<div class="form-group">
<label>备注</label>
<textarea name="remark" class="form-control" rows="3"><?php echo htmlspecialchars($record['remark']); ?></textarea>
</div>
</div>
<div class="box-footer">
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> 保存</button>
<a href="<?php echo BASE_URL; ?>/Inventory/supplier" class="btn btn-default">返回</a>
</div>
</form>
</div>
</div>
</div>
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>