<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>

<head>
	<title> 用户信息 </title>
	<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
	<link href="<c:url value='/scripts/lib/layui/layui.css'/>" rel="stylesheet" type="text/css" />
	<link href="<c:url value='/styles/vehicleClean/home.css'/>" rel="stylesheet" type="text/css" />
	<link href="<c:url value='/styles/vehicleClean/set.css'/>" rel="stylesheet" type="text/css" />

	<script type="text/javascript" src="<c:url value='/scripts/lib/jquery-1.8.2.min.js'/>"></script>
	<script type="text/javascript" src="<c:url value='/scripts/lib/layui/layui.js'/>"></script>
</head>

<body>
	<input type="hidden" value="${ctx}" id="contextPath">

	<%-- 因为js中无法直接调用自定义的权限校验标签 --%>
	<%-- 判断当前用户是否有相应权限,如果有权限则在JSP页面新增隐藏input标签,方便js代码调用 --%>

	<%-- 是否有修改权限 --%>
	<perm:hasPermission permCode="pc:washcar:list:edit">
		<input type="hidden" value="1" id="perm-edit" />
	</perm:hasPermission>
	<%-- 是否有删除权限 --%>
	<perm:hasPermission permCode="pc:washcar:list:delete">
		<input type="hidden" value="1" id="perm-delete" />
	</perm:hasPermission>

	<div class="content">
		<div class="layui-tab layui-tab-card">
			<ul class="layui-tab-title listMenu">
				<li>
					<a href="jumpCustomer">用户信息</a>
				</li>
				<li>
					<a href="jumpOrderManager">订单管理</a>
				</li>
				<li class="layui-this">
					<a href="jumpSetCenter">设置中心</a>
				</li>
			</ul>
			<div class="form_content">
				<div class="layui-form-item">
					<c:if test="${fn:length(orgs) > 1}">
						<div class="layui-inline">
							<label class="layui-form-label txt_brown fs14">校区</label>
							<div class="layui-input-inline select_orgid">
								<select class="orgId default-select layui-input" name="orgId" id="orgId">
									<option value="">请选择校区</option>
									<c:forEach items="${orgs }" var="org">
										<option value="${org.id }">${org.name }</option>
									</c:forEach>
								</select>
								<div class="people layui-form-select">
									<i class="layui-edge"></i>
								</div>
							</div>
						</div>
					</c:if>
					<c:if test="${fn:length(orgs) == 1}">
						<input type="hidden" id="orgId" name="orgId" value="${orgs[0].id}">
					</c:if>

					<div class="layui-inline">
						<label class="layui-form-label txt_brown fs14">洗车名额</label>
						<div class="layui-input-inline">
							<input type="text" name="number" lay-verify="number" autocomplete="off" class="layui-input" placeholder="">
						</div>
						<div class="people">
							<span class="fs16 txt_br peopleNum_one">人</span>
						</div>
					</div>
					<div class="layui-inline changeBtn">
						<button class="bl_yellow fs16" id="addService">确认</button>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label txt_brown fs14">洗车价格</label>
						<div class="layui-input-inline">
							<input type="text" name="extraPrice" autocomplete="off" class="layui-input" placeholder="">
						</div>
						<div class="people">
							<span class="fs16 txt_br peopleNum_one">元</span>
						</div>
					</div>
					<div class="layui-inline changeBtn">
						<button class="bl_yellow fs16" id="priceCertain">确认价格</button>
					</div>
				</div>
				<div class="btnList">
					<ul>
						<perm:hasPermission permCode="pc:washcar:list:add">
							<li class="bt_blue btn1">+新增其他服务项</li>
						</perm:hasPermission>
					</ul>
				</div>
			</div>
			<div class="fs14 txt_brown pl40">服务配置</div>
			<div class="tables">
				<table class="layui-hide" id="table_user_info" lay-filter="user"></table>
				<script type="text/html" id="paixu">
					{{d.LAY_TABLE_INDEX+1}}
						</script>
			</div>
		</div>
	</div>
	<div class="alert">
		<div class="alert_con">
			<h2>新增服务项</h2>
			<div class="form_alert">
				<form class="layui-form" action="" lay-filter="example">
					<!-- <c:if test="${fn:length(orgs) > 1}">
						<div class="layui-inline">
							<label class="layui-form-label txt_brown fs16">校区：</label>
							<div class="layui-input-inline select_orgid">
								<select class="orgId default-select layui-input" name="orgId" id="orgId">
									<option value="">请选择校区</option>
									<c:forEach items="${orgs }" var="org">
										<option value="${org.id }">${org.name }</option>
									</c:forEach>
								</select>
								<div class="people layui-form-select">
									<i class="layui-edge"></i>
								</div>
							</div>
						</div>
					</c:if> -->
					<div class="layui-inline">
						<label class="layui-form-label txt_brown fs16">服务名称：</label>
						<div class="layui-input-inline">
							<input type="text" name="serviceName" lay-verify="dept" autocomplete="off" class="layui-input" placeholder="限4字"
							 id="serviceName" maxlength="4">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label txt_brown fs16">服务内容：</label>
						<div class="layui-input-inline">
							<input type="text" name="content" autocomplete="off" class="layui-input" placeholder="请输入服务内容" id="content">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label txt_brown fs16">价格配置：</label>
						<div class="layui-input-inline">
							<input type="text" name="amount" autocomplete="off" class="layui-input" placeholder="" id="amount">
							<span class="fs16 txt_br peopleNumber" style="left: 124px;top:-29px;">元</span>
						</div>
					</div>
				</form>
			</div>
			<div class="changeBtn">
				<button class="bt_blue_big_b_slot fs16 saveBtn">保存</button>
				<button class="bt_blue_big_b fs16 ml30 cancelBtn">取消</button>
			</div>
		</div>
	</div>
	<script type="text/javascript" src="<c:url value='/scripts/admin/vehicleClean/set.js'/>"></script>
</body>

</html>