优化报表的查询条件

This commit is contained in:
季圣华
2020-12-28 23:36:38 +08:00
parent 0e91d84c39
commit 70ecb4df75
16 changed files with 142 additions and 157 deletions

View File

@@ -30,15 +30,9 @@
</div>
</div>
<div class="form-group">
<label class="control-label">名称</label>
<label class="control-label">商品信息</label>
<div class="control-inline">
<input name="mName" id="mName" style="width:100px;"></input>
</div>
</div>
<div class="form-group">
<label class="control-label">型号:</label>
<div class="control-inline">
<input type="text" name="mModel" id="mModel" class="easyui-textbox" style="width:100px;"></input>
<input type="text" id="searchMaterial" name="searchMaterial" data-options="prompt:'名称规格型号'" class="easyui-textbox width-120"/>
</div>
</div>
<div class="form-group">
@@ -55,7 +49,6 @@
$(function () {
var thisDate = getNowFormatMonth(); //当前月份
$("#searchMonth").val(thisDate);
initMaterialNameList();
initMProperty(); //初始化商品属性
initTableData();
ininPager();
@@ -63,21 +56,6 @@
print();
});
//初始化商品名称模糊匹配
function initMaterialNameList() {
$('#mName').combobox({
method:"get",
url: "/material/getMaterialNameList",
valueField: 'value',
textField: 'text',
hasDownArrow: false,
filter: function(q, row){
var opts = $(this).combobox('options');
return row[opts.textField].indexOf(q) >-1;
}
});
}
//初始化商品属性
function initMProperty() {
$.ajax({
@@ -222,8 +200,7 @@
currentPage: pageNo,
pageSize: pageSize,
monthTime: $("#searchMonth").val(),
name: $("#mName").combobox("getValue"),
model: $("#mModel").textbox("getValue"),
materialParam: $.trim($("#searchMaterial").val()),
mpList: mPropertyList
}),
success: function (res) {