You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
simple-yewu/frontend/views/store-room/store-list.php

64 lines
3.3 KiB

5 years ago
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<form id="searchForm">
<tr>
<td class="td_bg">
车牌号:<input name="car_no" type="text" value="">
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索">
<input type="button" class="act_btn" value="添加" onclick="location.href='/store-room/store-list-info'">
</td>
</tr>
</form>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<tr>
<td width="50" align="center" align="center" class="bg_tr" nowrap>排序</td>
<td align="center" align="center" class="bg_tr">配件编码</td>
<td align="center" align="center" class="bg_tr">配件名称</td>
<td align="center" align="center" class="bg_tr">品牌</td>
<td align="center" align="center" class="bg_tr">车型</td>
<td align="center" align="center" class="bg_tr">产地</td>
<td align="center" align="center" class="bg_tr">数量</td>
<td align="center" align="center" class="bg_tr">单价</td>
<td align="center" align="center" class="bg_tr">入库时间</td>
<td align="center" align="center" class="bg_tr">仓位</td>
<td width="30" align="center" class="bg_tr">操作</td>
</tr>
<?php if ($stores): ?>
<?php foreach ($stores as $key => $store): ?>
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
<td align="center" class="td_bg" nowrap><?= $key + 1 ?></td>
<td align="left" class="td_bg" nowrap><?= $store->name ?></td>
<td align="left" class="td_bg" nowrap><?= $store->brand->name ?></td>
<td align="left" class="td_bg" nowrap><?= $store->series->name ?></td>
<td align="left" class="td_bg" nowrap><?= $store->producing_area ?></td>
<td align="left" class="td_bg" nowrap><?= $store->number ?></td>
<!-- <td align="left" class="td_bg" nowrap></td>-->
<td align="left" class="td_bg" nowrap><?= $store->price ?></td>
<td align="left" class="td_bg" nowrap><?= $store->created_at ?></td>
<td align="left" class="td_bg" nowrap><?= $store->store_site ?></td>
<td align="center" class="td_bg" nowrap>
[<a href="javascript:void(0);" onclick="edit('<?= $store->id ?>')">详情</a>]
[<a href="javascript:void(0);">删除</a>]
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
<tr>
<td height="25" colspan="12" align="center" class="td_bg"><?= $page_info ?></td>
</tr>
</table>
<script type="text/javascript" language="javascript">
//编辑
function edit(id) {
window.location.href = '/store-room/put-in-store-info?id=' + id;
}
$("#search-btn").click(function () {
var params = $('#searchForm').serialize();
window.location.href = "/business-order/driver-list?" + params;
});
</script>