inventory.jsp 4.77 KB
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
	<jsp:include page="${ctx }/WEB-INF/view/meta.jsp"></jsp:include>
	<script type="text/javascript" src="${ctx}/resource/js/user/pick/inventory.js?r=${random}"></script>
	<script type="text/javascript" src="${ctx}/resource/js/address.js"></script>
</head>
<body>
	<div class="easyui-panel" data-options="fit:true">
		<div class="easyui-panel" style="padding:10px;" 
			data-options="title:'查询条件', collapsible:true, width:'100%', height:'20%'">
			<form id="search-form" action="/user/inventory/search" method="post">
				<table class="search-table">
					<tr>
						<td>
							网点编号:<input name="warehouseCode" class="easyui-textbox search-input">
						</td>
						<td>
							网点名称:<input name="warehouseName" class="easyui-textbox search-input">
						</td>
						<td>
							藏品编号:<input name="otcCode" class="easyui-textbox search-input">
						</td>
						<td>
							藏品名称:<input name="otcName" class="easyui-textbox search-input">
						</td>
					</tr>
					<tr>	
						<td>
							状态:
							<select name="status" class="easyui-combobox search-input" data-options="editable: false">
								<option value="" selected="selected">全部</option>
								<option value="1">正常</option>
								<option value="0">作废</option>
							</select>
						</td>
						<td>
							<a href="javascript:Inventory.search()" class="easyui-linkbutton search-button" data-options="iconCls:'icon-search'">搜索</a>
						</td>
					</tr>
				</table>
			</form>
		</div>
		
		<div class="easyui-panel" data-options="height:'80%',title:'查询结果'">
			<!-- DataGrid -->
			<table id="data-grid" class="easyui-datagrid" 
				data-options="fitColumns:true, fit:true, pagination:true, rownumbers:true, toolbar:'#toolbar'
				,singleSelect:true, selectOnCheck:true, pageSize:20, showFooter:true">
				<thead>
			        <tr>
			        	<th data-options="field:'OP_STATION', checkbox:true"></th>
			        	<th data-options="field:'warehouseCode'">网点编号</th>
			        	<th data-options="field:'warehouseName'">网点名称</th>
			            <th data-options="field:'otcCode'">藏品代码</th>
			            <th data-options="field:'otcName'">藏品名称</th>
			            <th data-options="field:'totalAmount'">在库数量</th>
			            <th data-options="field:'frozenAmount'">冻结数量</th>
			            <th data-options="field:'usefulAmount'">可提数量</th>
			            <th data-options="field:'status', formatter:Inventory.formatStatus">状态</th>
			        </tr>
			    </thead>
			    <tbody></tbody>
			</table>
		</div>
		<div id="toolbar">
			<a href="javascript:Inventory.operateInventory()" class="easyui-linkbutton">库存调整</a>
			<a href="javascript:Inventory.export()" class="easyui-linkbutton">导出</a>
		</div>
		
		<!-- 网点信息 -->
		<div id="operate-inventory-dialog" class="easyui-dialog" style="padding:10px; width: 400px;" 
			data-options="closed:true, title:'编辑', buttons:'#operate-dialog-buttons'">
			<form id="operate-form" method="post" data-options="novalidate: false" action="/user/inventory/operate">
				<input type="hidden" name="id" id="id" />
				<ul class="simple-ul">
					<li><label style="width:120px;">网点名称:</label> <label id="warehouseName" style="text-align: center;"></label></li>
					<li><label style="width:120px;">藏品编号:</label> <label id="otcCode" style="text-align: center;"></label></li>
					<li><label style="width:120px;">藏品名称:</label> <label id="otcName" style="text-align: center;"></label></li>
					<li><label style="width:120px;">可提数量:</label> <label id="usefulAmount" style="text-align: center;"></label></li>
					<li><label style="width:120px;">发生类型:</label> <input type="radio" name="type" value="1" />增加
						<input type="radio" name="type" value="0" />减少</li>
					<li><label style="width:120px;">发生数量:</label> <input name="occurAmount" id="occurAmount" 
							data-options="required:true" class="easyui-numberbox search-input"></li>
					<li><label style="width:120px;">备注:</label> <input name="remark" id="remark" 
							data-options="required:true" class="easyui-textbox search-input"></li>
					</ul>
			</form>
		</div>
		<div id="operate-dialog-buttons" style="text-align:center;">
	    	<a href="javascript:Inventory.formSubmit()" class="easyui-linkbutton search-button">确定</a>
	    	<a href="javascript:App.closeDialog('operate-inventory-dialog', 'operate-form')" class="easyui-linkbutton search-button">取消</a>
		</div>
	</div>
</body>
</html>