<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>物品目录</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
        var validateForm;
        function getNowFormatDate() {
            var date = new Date();
            var seperator1 = "-";
            var seperator2 = ":";
            var month = date.getMonth() + 1;
            var strDate = date.getDate();
            month = (month < 10)?"0"+month:month;
            strDate = (strDate < 10)?"0"+strDate:strDate;
            var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate;
            return currentdate;
        }

	</script>
	<style>
		/*超过5个汉字，调整label的长度，以下是配套的*/
		.layui-item .layui-form-label{
			width:90px;
		}
		.form-group .layui-item .layui-input-block,
		.query .layui-input-block {
			margin-left: 116px;
		}
	</style>
</head>
<body>
<div class="single-form">
	<div class="container view-form">
		<form:form id="inputForm" modelAttribute="workCatalogueItem"  method="post" class="form-horizontal" >
			<form:hidden path="id"/>
			<div class="form-group layui-row first">
				<div class="form-group-label"><h2>基本信息</h2></div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label"><span class="require-item">*</span>物品名称：</label>
					<div class="layui-input-block">
						<form:input path="name" htmlEscape="false" readonly="true"  id="name"  class="form-control required layui-input" value="${workCatalogueItem.name}"/>
					</div>
				</div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label"><span class="require-item">*</span>物品编号：</label>
					<div class="layui-input-block">
						<form:input path="number" htmlEscape="false" readonly="true"  id="number"  class="form-control required layui-input" value="${workCatalogueItem.number}"/>
					</div>
				</div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label">物品分类：</label>
					<div class="layui-input-block">
						<form:input path="type" htmlEscape="false" readonly="true"   id="type"  class="form-control layui-input" value="${fns:getMainDictLabel(workCatalogueItem.type, 'item_type', '')}"/>
					</div>
				</div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label"><span class="require-item">*</span>规格型号：</label>
					<div class="layui-input-block">
						<form:input path="model" htmlEscape="false" readonly="true"   id="model"  class="form-control required layui-input" value="${workCatalogueItem.model}"/>
					</div>
				</div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label"><span class="require-item">*</span>计量单位：</label>
					<div class="layui-input-block">
						<form:input path="primaryUnit" htmlEscape="false" readonly="true"   id="primaryUnit"  class="form-control layui-input" value="${fns:getMainDictLabel(workCatalogueItem.primaryUnit, 'full_count_unit', '')}"/>
					</div>
				</div>
				<div class="layui-item layui-col-sm6 lw7">
					<label class="layui-form-label double-line"><span class="require-item">*</span>是否固定资产：</label>
					<div class="layui-input-block">
                    <span class="radio-box">&nbsp;&nbsp;
                        <input type="radio" class="usccClass i-checks" name="isAssets" label="是" disabled="true" <c:if test="${workCatalogueItem.isAssets eq 1}">checked="true"</c:if> />是
                        &nbsp;&nbsp;
                        <input type="radio" class="usccClass i-checks" name="isAssets" label="否" disabled="true" <c:if test="${workCatalogueItem.isAssets eq 0}">checked="true"</c:if> />否
                    </span>
					</div>
				</div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label"><span class="require-item">*</span>移除标记：</label>
					<div class="layui-input-block">
						<form:input path="" htmlEscape="false"  readonly="true" id="removeFlat"  class="form-control  layui-input" value="正常"/>
					</div>
				</div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label">创建日期：</label>
					<div class="layui-input-block">
						<input id="createDate" name="createDate" readonly="true" type="text"  maxlength="20" class="laydate-icondate form-control layer-date required layui-input laydate-icon"
							   value="<fmt:formatDate value="${workCatalogueItem.createDate}" pattern="yyyy-MM-dd"/>"/>
					</div>
				</div>
			</div>

			<div class="form-group layui-row page-end"></div>
		</form:form>
	</div>
</div>

</body>
</html>