Files
SIPAIIS_WMS_JSSW/bin/WebRoot/jsp/material/materialInventoryView.jsp
2026-01-16 14:13:44 +08:00

65 lines
2.8 KiB
Plaintext

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%String contextPath = request.getContextPath();%>
<html>
<head>
<title></title>
<jsp:include page="../inc.jsp"></jsp:include>
<script type="text/javascript">
var grid;
$(function() {
grid = $('#grid').datagrid({
title : '',
url : ext.contextPath + '/material/materialinventory/getmaterialInventorysorts.do?pid=${pid}',
striped : true,
rownumbers : true,
pagination : true,
singleSelect: false,
ctrlSelect: true,
selectOnCheck: false,
checkOnSelect: false,
idField : 'id',
pageSize : 50,
pageList : [ 20, 50, 100],
columns : [ [
{checkbox:true , field : 'ck'},
{width : '150', title : '工序名称', field : 'processname', sortable : true, halign:'center'},
{width : '150', title : '物料名称', field : 'materialname', sortable : true, halign:'center'},
{width : '150', title : '物料单位', field : 'unit', sortable : true, halign:'center'},
{width : '150', title : '物料代码', field : 'materialcode', sortable : true, halign:'center'},
{width : '150', title : '盘点日期', field : 'insdt', sortable : true, halign:'center',formatter : function(value, row) {
return value.substring(0,19);
}},
{width : '150', title : '产前线边库存盘点', field : 'inventoryfrontline', sortable : true,editor:'textbox', halign:'center'},
{width : '100', title : '当日领料', field : 'pickingday', sortable : true,halign:'center'},
{width : '100', title : '当日计划消耗量', field : 'plannedconsumption', sortable : true, halign:'center'},
{width : '150', title : '当日产后线边库存盘点', field : 'inventorycountpostpartum', sortable : true, editor:'textbox',halign:'center'},
{width : '100', title : '当日实际消耗量', field : 'actualconsumptionday', sortable : true, halign:'center'},
{width : '100', title : '差额', field : 'thedifferent', sortable : true, halign:'center'},
{width : '150', title : '差额超出预计百分比', field : 'exceedsplannedpercentage', sortable : true, halign:'center',formatter : function(value, row) {
if (value > 0.05) {
return '<font color="red">' + value + '</font>';
}
else{
return value}
}},
] ],
toolbar : '#toolbar',
onLoadSuccess : function(data) {
$('.iconImg').attr('src', ext.pixel_0);
},
});
});
</script>
</head>
<body class="easyui-layout" data-options="fit:true,border:false">
<div data-options="region:'center',fit:true,border:false">
<table id="grid" data-options="fit:true,border:false"></table>
</div>
</body>
</html>