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.
148 lines
4.3 KiB
148 lines
4.3 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.8.6/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/css/inputTag.css">
|
|
<link rel="stylesheet" href="/static/lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
|
|
|
|
<style>
|
|
|
|
.inputdiv {
|
|
display: flex;
|
|
background-color: #fff;
|
|
height: 38px;
|
|
line-height: 38px;
|
|
border: 1px solid rgb(238, 238, 238);
|
|
}
|
|
|
|
.layui-card-body {
|
|
padding: 0px;
|
|
}
|
|
|
|
.layui-form-label {
|
|
padding: 9px 0px;
|
|
text-align: left;
|
|
}
|
|
|
|
.layui-input-block {
|
|
margin-left: 80px;
|
|
}
|
|
|
|
.layui-form-select {
|
|
width: 100%;
|
|
height: 38px;
|
|
|
|
}
|
|
|
|
.lay-step {
|
|
display: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="layuimini-container">
|
|
<div class="layuimini-main">
|
|
<div class="layui-fluid">
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script id="changeUnit" type="text/html">
|
|
<a class="layui-btn layui-btn-xs" lay-event="more">{{d.unit}}<i class="layui-icon layui-icon-down"></i></a>
|
|
</script>
|
|
<script src="/static/lib/layui-v2.8.6/layui.js" charset="utf-8"></script>
|
|
<script src="/static/js/lay-config.js?v=1.0.4" charset="utf-8"></script>
|
|
<script src="/static/js/stockTaking/stockTakingForMaterial.js" charset="utf-8"></script>
|
|
<script>
|
|
layui.use(['form', 'step'], function () {
|
|
var $ = layui.$,
|
|
step = layui.step,
|
|
form = layui.form;
|
|
|
|
// 用于分步表单加载
|
|
step.render({
|
|
elem: '#stepForm',
|
|
filter: 'stepForm',
|
|
width: '100%', //设置容器宽度
|
|
height: '900px',
|
|
stepItems: [{
|
|
title: '填写信息'
|
|
}, {
|
|
title: '提交成功'
|
|
}]
|
|
});
|
|
|
|
|
|
|
|
|
|
// 用于提交盘点情况
|
|
form.on('submit(formStep)', function (data) {
|
|
if(!flagForForm){
|
|
flagForForm = true;
|
|
data = data.field;
|
|
data.depositoryId = depositoryId;
|
|
data.placeId = placeId;
|
|
let submitType = this.getAttribute("submitType");
|
|
if ("Material" === submitType) {
|
|
data.departmentManager = departmentManagerIdForMaterial;
|
|
} else if ("Location" === submitType) {
|
|
data.departmentManager = departmentManagerIdForLocation;
|
|
}
|
|
$.ajax({
|
|
url: "/stockTaking/submitStockTaking",
|
|
type: 'post',
|
|
dataType: 'json',
|
|
contentType: "application/json;charset=utf-8",
|
|
data: JSON.stringify(data),
|
|
beforeSend: function () {
|
|
this.layerIndex = layer.load(0, {shade: [0.5, '#393D49']});
|
|
},
|
|
success: function (data) {
|
|
layer.msg("申请提交成功", {
|
|
icon: 6,//成功的表情
|
|
time: 500 //1秒关闭(如果不配置,默认是3秒)
|
|
}, function () {
|
|
step.next('#stepForm');
|
|
});
|
|
},
|
|
complete: function () {
|
|
layer.close(this.layerIndex);
|
|
}
|
|
});
|
|
}
|
|
|
|
});
|
|
|
|
|
|
form.on('submit(formStep2)', function (data) {
|
|
step.next('#stepForm');
|
|
return false;
|
|
});
|
|
|
|
|
|
$('.pre').click(function () {
|
|
step.pre('#stepForm');
|
|
});
|
|
|
|
$('.next').click(function () {
|
|
step.next('#stepForm');
|
|
});
|
|
|
|
$('body').on('click', '[data-refresh]', function () {
|
|
location.reload();
|
|
})
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|