优化单据的逻辑

This commit is contained in:
季圣华
2020-10-14 22:57:47 +08:00
parent 8d3d0314a6
commit cf287c54e5
14 changed files with 169 additions and 15 deletions

View File

@@ -286,6 +286,7 @@
initTableData();
inOutService.ininPager();
inOutService.initForm();
inOutService.showDepotHeadDetails(1,initPageSize); //初始化时自动查询
inOutService.bindEvent();//绑定操作事件
});
//根据单据名称获取类型
@@ -904,6 +905,18 @@
}
}
});
//搜索处理
$("#searchBtn").off("click").on("click",function(){
self.showDepotHeadDetails(1,initPageSize);
var opts = $("#tableData").datagrid('options');
var pager = $("#tableData").datagrid('getPager');
opts.pageNumber = 1;
opts.pageSize = initPageSize;
pager.pagination('refresh', {
pageNumber:1,
pageSize:initPageSize
});
});
</script>
</body>
</html>