|
|
|
|
<!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">
|
|
|
|
|
<link rel="stylesheet" href="/static/lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div class="layuimini-container">
|
|
|
|
|
<div class="layuimini-main">
|
|
|
|
|
<a id="refresh" href="javascript:" data-refresh="刷新"><i class="fa fa-refresh"></i></a>
|
|
|
|
|
<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.getAircode()}">123456</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>物料名称</td>
|
|
|
|
|
<td id="materialName" th:text="${record.getMname()}">骁龙888芯片</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>物料型号</td>
|
|
|
|
|
<td id="version" th:text="${record.getMversion()}">骁龙888芯片</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>存货编码</td>
|
|
|
|
|
<td id="mcode" th:text="${record.getMcode()}">外芯仓库</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>计量单位</td>
|
|
|
|
|
<td id="airunit" th:text="${record.getAirUnit()}">外芯仓库</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>数量</td>
|
|
|
|
|
<td id="quantity" th:text="${record.getQuantity()}">409</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>仓库名称</td>
|
|
|
|
|
<td id="depositoryName" th:text="${record.getDepositoryName()}">外芯仓库</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>库位编码</td>
|
|
|
|
|
<td id="placeCode" th:text="${placeCode}">默认库位</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>提交人</td>
|
|
|
|
|
<td id="applicantName" th:text="${record.getApplicantName()}">2016-11-28</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>提交时间</td>
|
|
|
|
|
<td id="applyTime" th:text="${record.getApplicantTime()}">2016-11-28</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td>申请备注</td>
|
|
|
|
|
<td id="applyRemarks" th:text="${record.getApplyRemark()}">2016-11-28</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>状态</td>
|
|
|
|
|
<td id="state" th:text="${record.getAirstate()}">2016-11-28</td>
|
|
|
|
|
<td style="display: none" id="approverpass" th:text="${record.getAirapproverPass()}">2016-11-28</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr id="approverNameT" style="display: none">
|
|
|
|
|
<td>审批人</td>
|
|
|
|
|
<td id="approverName" th:text="${record.getAirapproverName()}">2016-11-28</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr id="approverTimeT" style="display: none">
|
|
|
|
|
<td>审批时间</td>
|
|
|
|
|
<td id="approverTime" th:text="${record.getAirapproverTime()}">2016-11-28</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr id="approverMessgaeT" style="display: none">
|
|
|
|
|
<td>审批意见</td>
|
|
|
|
|
<td id="approverMessgae" th:text="${record.getAirapproverMessage()}">2016-11-28</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</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', 'table', 'laydate'], function () {
|
|
|
|
|
var $ = layui.jquery;
|
|
|
|
|
let approverPass = $("#approverpass").text();
|
|
|
|
|
if(approverPass !== "4"){
|
|
|
|
|
$("#approverNameT").show();
|
|
|
|
|
$("#approverMessgaeT").show();
|
|
|
|
|
let approverTime = $("#approverTime");
|
|
|
|
|
if(approverTime.text() === ""){
|
|
|
|
|
approverTime.hide();
|
|
|
|
|
}else{
|
|
|
|
|
$("#approverTimeT").show();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$('body').on('click', '[data-refresh]', function () {
|
|
|
|
|
location.reload();
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|