You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
173 lines
8.2 KiB
173 lines
8.2 KiB
<!DOCTYPE html>
|
|
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>分步表单</title>
|
|
<meta name="renderer" content="webkit">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
<link rel="stylesheet" href="/static/lib/layui-v2.6.3/css/layui.css" media="all">
|
|
<link rel="stylesheet" href="/static/css/public.css" media="all">
|
|
<link rel="stylesheet" href="/static/js/lay-module/step-lay/step.css" media="all">
|
|
</head>
|
|
<body>
|
|
<div class="layuimini-container">
|
|
<div class="layuimini-main">
|
|
<div class="layui-fluid">
|
|
<div class="layui-card">
|
|
<div class="layui-card-body" style="padding-top: 40px;">
|
|
<div id="stepForm" lay-filter="stepForm" style="margin: 0 auto;">
|
|
<div style="margin-top: 30px">
|
|
<table id="demo" class="layui-table"
|
|
style="margin: 0 auto;max-width: 800px;padding-top: 40px;">
|
|
<colgroup>
|
|
<col width="150">
|
|
<col width="200">
|
|
</colgroup>
|
|
|
|
<tbody>
|
|
<tr>
|
|
<td>申请编号</td>
|
|
<td id="applicationId" th:text="${record.getCode()}">123456</td>
|
|
</tr>
|
|
<tr>
|
|
<td>物料名称</td>
|
|
<td id="materialName" th:text="${record.getMname()}">骁龙888芯片</td>
|
|
</tr>
|
|
<tr>
|
|
<td>仓库名称</td>
|
|
<td id="depositoryName" th:text="${record.getDepositoryName()}">外芯仓库</td>
|
|
</tr>
|
|
<tr>
|
|
<td>所处库位</td>
|
|
<td id="placeCode" th:text="${record.getPCode()}">0000</td>
|
|
</tr>
|
|
<tr>
|
|
<td>数量</td>
|
|
<td id="quantity" th:text="${record.getQuantity()}">409</td>
|
|
</tr>
|
|
<tr>
|
|
<td>金额</td>
|
|
<td id="price" th:text="${record.getPrice()}">2016-11-28</td>
|
|
</tr>
|
|
<tr>
|
|
<td>状态</td>
|
|
<td id="state" th:text="${record.getState()}">2016-11-28</td>
|
|
</tr>
|
|
<tr>
|
|
<td>申请人</td>
|
|
<td id="applicantName" th:text="${record.getApplicantName()}">2016-11-28</td>
|
|
</tr>
|
|
<tr>
|
|
<td>请求提交时间</td>
|
|
<td id="applicantTime" th:text="${record.getApplicantTime()}">2016-11-28</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>申请备注</td>
|
|
<td id="applyRemarks" th:text="${record.getApplyRemark()}">备注</td>
|
|
</tr>
|
|
<tr>
|
|
<td>部门负责人</td>
|
|
<td id="departmentheadName" th:text="${record.getDepartmentheadName()}">部门负责人</td>
|
|
</tr>
|
|
<tr id="departmentheadMessageT" style="display: none">
|
|
<td>部门负责人备注</td>
|
|
<td id="departmentheadMessage" th:text="${record.getDepartmentheadMessage()}">2016-11-28</td>
|
|
</tr>
|
|
<tr id="departmentheadTimeT" style="display: none">
|
|
<td>部门负责人审核时间</td>
|
|
<td id="departmentheadTime" th:text="${record.getDepartmentheadTime().equals('1970-01-01 08:00:00')?'':record.getDepartmentheadTime()}">2016-11-28</td>
|
|
</tr>
|
|
<tr id="depositoryManagerNameT" style="display: none">
|
|
<td>仓库管理员</td>
|
|
<td id="depositoryManagerName" th:text="${record.getDepositoryManagerName()}">2016-11-28</td>
|
|
</tr>
|
|
<tr id="depositoryManagerNameMessageT" style="display: none">
|
|
<td>仓库管理员备注</td>
|
|
<td id="depositoryManagerNameMessage" th:text="${record.getDepositoryManagerMessage()}">2016-11-28</td>
|
|
</tr>
|
|
<tr id="depositoryManagerNameTimeT" style="display: none">
|
|
<td>仓库管理员审核时间</td>
|
|
<td id="depositoryManagerNameTime" th:text="${record.getDepositoryManagerTime().equals('1970-01-01 08:00:00')?'':record.getDepositoryManagerTime()}">2016-11-28</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="layui-card-body" style="padding-top: 40px;">
|
|
<div style="color: #666;margin-top: 30px;margin-bottom: 40px;padding-left: 30px;">
|
|
<h3>说明</h3><br>
|
|
申请提交后,24小时内审核完毕
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<script src="/static/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
|
|
<script src="/static/js/lay-config.js?v=1.0.4" charset="utf-8"></script>
|
|
<script>
|
|
layui.use(['form', 'step'], function () {
|
|
var $ = layui.$,
|
|
form = layui.form,
|
|
step = layui.step;
|
|
|
|
|
|
|
|
var state=$("#state").text();
|
|
//当前处于的状态
|
|
var position=0,states={},number = 1;
|
|
/*if (state === "待部门负责人审核" || state === "部门负责人审核未通过") {
|
|
position = 1;
|
|
states = [{title: "提交申请"}, {title: state}, {title: "未入库"}];
|
|
} else {
|
|
position = 2;
|
|
states = [{title: "提交申请"}, {title: "审核通过"}, {title: state}];
|
|
}*/
|
|
if (state === "待部门负责人审核" || state === "部门负责人审核未通过") {
|
|
// , {title: "未入库"}
|
|
states = [ {title: state}];
|
|
number = 2;
|
|
} else {
|
|
// {title: "提交申请"},
|
|
states = [ {title: state}];
|
|
number = 3;
|
|
}
|
|
step.render({
|
|
elem: '#stepForm',
|
|
filter: 'stepForm',
|
|
width: '100%', //设置容器宽度
|
|
stepWidth: '750px',
|
|
height: '650px',
|
|
number:number,
|
|
position: position,
|
|
stepItems: states
|
|
});
|
|
|
|
let departmentheadTime=$("#departmentheadTime").text();
|
|
let depositoryManagerNameTime=$("#depositoryManagerNameTime").text();
|
|
if (departmentheadTime!=null&&departmentheadTime!==""){
|
|
$("#departmentheadTimeT").show();
|
|
$("#departmentheadMessageT").show();
|
|
if (state!=="审核未通过"){
|
|
$("#departmentheadMessageT").show();
|
|
}
|
|
}
|
|
if (depositoryManagerNameTime!=null&&depositoryManagerNameTime!==""){
|
|
$("#depositoryManagerNameT").show();
|
|
$("#depositoryManagerNameTimeT").show();
|
|
$("#depositoryManagerNameMessageT").show();
|
|
|
|
}
|
|
|
|
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|