ReceiptStatistics.cshtml
1.65 KB
@{
ViewData["Title"] = "收货统计";
Layout = null;
}
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@model ValueTuple<Guid,Guid>
<html>
<head>
<link href="~/layui/css/layui.css" rel="stylesheet" />
</head>
<body>
<table class="layui-table" lay-data="{url:'LoadReceiptStatistics',where: {headKey: '@ViewBag.headKey'},size: 'sm',height: 'full-20',page: true,limit: 50,totalRow: true}" lay-filter="test">
<thead>
<tr>
<th lay-data="{field:'workOrderCode', width:150, totalRowText: '合计:'}">工单编码</th>
<th lay-data="{field:'oprSequenceCode', width:150}">工序编码</th>
<th lay-data="{field:'materialCode', width:150}">物料编码</th>
<th lay-data="{field:'materialName', width:150}">物料名称</th>
<th lay-data="{field:'quantityRequired', width:80,totalRow: true, templet: '<span>{{ d.quantityRequired }}</span>'}">需求数量</th>
<th lay-data="{field:'quantityReceived', width:80,totalRow: true, templet: '<span>{{ d.quantityReceived }}</span>'}">收货数量</th>
<th lay-data="{field:'consumedQuantity', width:80,totalRow: true, templet: '<span>{{ d.consumedQuantity }}</span>'}">消耗数量</th>
<th lay-data="{field:'qty', width:80,totalRow: true, templet: '<span>{{ d.qty }}</span>'}">库存数量</th>
<th lay-data="{field:'whCode'}">单位</th>
</tr>
</thead>
</table>
<script src="~/layui/layui.js"></script>
<script>
layui.use('table', function () {
var table = layui.table;
})
</script>
</body>
</html>