提交 e3041f1c 编写于 作者: doc_wei's avatar doc_wei

获取我申领的未使用的配件列表修改,待验证---请输入剩余数量TODO待完善插件

上级 deba3f1a
......@@ -10,27 +10,30 @@ layui.config({
form = layui.form,
table = layui.table;
//获取我申领的未使用的配件
// 获取我申领的未使用的配件
table.render({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: flowableBasePath + 'sealseservice031',
where: {materialName: $("#materialName").val(), materialModel: $("#materialModel").val()},
where: getTableParams(),
even: true,
page: true,
limits: [8, 16, 24, 32, 40, 48, 56],
limit: 8,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'materialName', title: '配件名称', align: 'left', width: 200 },
{ field: 'unitName', title: '计量单位', align: 'left', width: 80 },
{ field: 'materialModel', title: '配件规格', align: 'left', width: 150 },
{ field: 'unitPrice', title: '单价', align: 'left', width: 100 },
{ field: 'normsFormtRetailPrice', title: '单价', align: 'left', width: 100 },
{ field: 'operNumber', title: '剩余数量', align: 'left', width: 100 }
]],
done: function(json) {
matchingLanguage();
initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入剩余数量TODO待完善插件", function () {
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
});
}
});
......@@ -40,29 +43,17 @@ layui.config({
});
form.render();
//刷新数据
$("body").on("click", "#reloadTable", function() {
loadTable();
});
form.render();
form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) {
refreshTable();
}
return false;
});
function loadTable() {
table.reloadData("messageTable", {where: {materialName: $("#materialName").val(), materialModel: $("#materialModel").val()}});
table.reloadData("messageTable", {where: getTableParams()});
}
function refreshTable(){
table.reloadData("messageTable", {page: {curr: 1}, where: {materialName: $("#materialName").val(), materialModel: $("#materialModel").val()}});
}
function getTableParams() {
return $.extend(true, {}, initTableSearchUtil.getSearchValue("messageTable"));
}
exports('mypartslist', {});
});
\ No newline at end of file
......@@ -7,34 +7,16 @@
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div class="txtcenter" style="margin:0 auto;padding-top:10px;">
<form class="layui-form layui-form-pane" action="" autocomplete="off">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">配件名称</label>
<div class="layui-input-inline">
<input type="text" id="materialName" name="materialName" placeholder="请输入配件名称" class="layui-input" />
</div>
<label class="layui-form-label">配件规格</label>
<div class="layui-input-inline">
<input type="text" id="materialModel" name="materialModel" placeholder="请输入配件规格" class="layui-input" />
</div>
<button type="reset" class="layui-btn layui-btn-primary list-form-search"><language showName="com.skyeye.reset"></language></button>
<button class="layui-btn list-form-search" lay-submit lay-filter="formSearch"><language showName="com.skyeye.search2"></language></button>
</div>
</div>
</form>
</div>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="reloadTable" class="winui-toolbtn search-table-btn-right"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
</div>
</div>
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="tableBar">
</script>
<script type="text/html" id="tableBar"></script>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册