开发BOM物料选择功能

pull/1/head
Administrator 2020-03-30 21:00:52 +08:00
parent 1d98ad6125
commit f1accd0bd7
1 changed files with 9 additions and 5 deletions

View File

@ -16,7 +16,6 @@
<div carousel-item> <div carousel-item>
<div> <div>
<form class="layui-form" style="margin: 0 auto;max-width: 460px;padding-top: 40px;"> <form class="layui-form" style="margin: 0 auto;max-width: 460px;padding-top: 40px;">
<div class="layui-form-item"> <div class="layui-form-item">
<div class="layui-inline"> <div class="layui-inline">
<label for="js-bomCode" class="layui-form-label sp-required">BOM编码 <label for="js-bomCode" class="layui-form-label sp-required">BOM编码
@ -31,11 +30,12 @@
<div class="layui-form-item"> <div class="layui-form-item">
<label for="js-bomCode" class="layui-form-label sp-required">物料编码 <label for="js-bomCode" class="layui-form-label sp-required">物料编码
</label> </label>
<div class="layui-inline"> <div style="display: flex; flex-direction: row;">
<button type="button" id="js-test-btn" class="layui-btn" style="height:37px "><i class="layui-icon layui-icon-search "></i>
</button>
<input id="js-test-input" placeholder="搜索物料" autocomplete="off" value="" <input id="js-test-input" placeholder="搜索物料" autocomplete="off" value=""
class="layui-input"> class="layui-input" style="width: 133PX">
</div> </div>
<button id="js-test-btn" class="layui-btn"><i class="layui-icon layui-icon-search "></i></button>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<div class="layui-inline"> <div class="layui-inline">
@ -63,6 +63,7 @@
</div> </div>
</div> </div>
</form> </form>
</div> </div>
<div> <div>
<form class="layui-form" style="margin: 0 auto;max-width: 460px;padding-top: 40px;"> <form class="layui-form" style="margin: 0 auto;max-width: 460px;padding-top: 40px;">
@ -121,9 +122,10 @@
</div> </div>
</div> </div>
<script> <script>
layui.use(['form', 'util', 'step', 'spLayer'], function () { layui.use(['form', 'util', 'layer','step', 'spLayer'], function () {
var form = layui.form, var form = layui.form,
spLayer = layui.spLayer, spLayer = layui.spLayer,
layer = layui.layer,
step = layui.step; step = layui.step;
step.render({ step.render({
@ -172,6 +174,7 @@
// 测试搜索弹框 // 测试搜索弹框
$('#js-test-btn').click(function () { $('#js-test-btn').click(function () {
console.log('开始');
var index = spLayer.open({ var index = spLayer.open({
type: 2, type: 2,
area: ['680px', '500px'], area: ['680px', '500px'],
@ -185,6 +188,7 @@
} }
} }
}); });
console.log('结束');
}); });
}); });