123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- <!DOCTYPE html>
- <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
- <head>
- <th:block th:include="include :: header('配送单据打印列表')" />
- <th:block th:include="include :: layout-latest-css" />
- <th:block th:include="include :: ztree-css" />
- </head>
- <body class="gray-bg">
- <div class="ui-layout-center">
- <div class="container-div">
- <div class="row">
- <div class="col-sm-12 search-collapse">
- <form id="user-form">
- <div class="select-list">
- <ul>
- <li>
- <label>配送时间 </label>
- <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="deliveryTimeStart"/>
- <span>-</span>
- <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="deliveryTimeEnd"/>
- </li>
- <li>
- <label style="width: 90px; float: left;">打印申请时间 </label>
- <input type="text" class="time-input" id="startTimes" placeholder="开始时间" name="printRequestTimeStart"/>
- <span>-</span>
- <input type="text" class="time-input" id="endTimes" placeholder="结束时间" name="printRequestTimeEnd"/>
- </li>
- <li>
- <label>配送人: </label>
- <input type="text" placeholder="请输入配送人姓名" name="deliverer"/>
- </li>
- <li>
- <label>打印状态:</label>
- <select name="status" th:with="type=${@dict.getType('sys_select_print_status')}">
- <option value="">全部</option>
- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
- ></option>
- </select>
- </li>
- <li>
- <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
- <a class="btn btn-warning btn-rounded btn-sm" onclick="resetPre()"><i class="fa fa-refresh"></i> 重置</a>
- </li>
- </ul>
- </div>
- </form>
- </div>
- <div class="btn-group-sm" id="toolbar" role="group">
- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="sdtp:print:remove">
- <i class="fa fa-remove"></i> 删除
- </a>
- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="dtp:print:export">
- <i class="fa fa-download"></i> 打印
- </a>
- </div>
- <div class="col-sm-12 select-table table-striped">
- <table id="bootstrap-table"></table>
- </div>
- </div>
- </div>
- </div>
- <th:block th:include="include :: footer" />
- <th:block th:include="include :: layout-latest-js" />
- <th:block th:include="include :: ztree-js" />
- <script th:inline="javascript">
- var editFlag = [[${@permission.hasPermi('system:user:edit')}]];
- var removeFlag = [[${@permission.hasPermi('system:user:remove')}]];
- var detailFlag = [[${@permission.hasPermi('dtp:print:view')}]];
- var prefix = ctx + "dtp/print";
- $(function() {
- var panehHidden = false;
- if ($(this).width() < 1590) {
- panehHidden = true;
- }
- $('body').layout({ initClosed: panehHidden, west__size: 185, resizeWithWindow: false });
- // 回到顶部绑定
- if ($.fn.toTop !== undefined) {
- var opt = {
- win:$('.ui-layout-center'),
- doc:$('.ui-layout-center')
- };
- $('#scroll-up').toTop(opt);
- }
- queryUserList();
- });
- function queryUserList() {
- var options = {
- url: prefix + "/list",
- viewUrl: prefix + "/view/{id}",
- createUrl: prefix + "/add",
- updateUrl: prefix + "/edit/{id}",
- detailUrl: prefix + "/detail/{id}",
- removeUrl: prefix + "/remove",
- exportUrl: prefix + "/export",
- sortName: "createTime",
- sortOrder: "desc",
- modalName: "配送单据打印信息",
- columns: [{
- checkbox: true
- },
- {
- field: "id",
- title: "id",
- //hidden:false
- visible: false,
- },
- {
- field: "orderId",
- title: "订单编号"
- },
- {
- field: "deliverer",
- title: "配送人"
- },
- {
- field: "deliveryTime",
- title: "配送时间"
- },
- {
- field: "printRequestTime",
- title: "打印申请时间"
- },
- {
- field: "status",
- title: "打印状态"
- },
- {
- field: "createTime",
- title: "创建时间"
- },
- {
- title: '操作',
- align: 'center',
- formatter: function(value, row, index) {
- if (row.orderId) {
- var actions = [];
- actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-search"></i>详细</a>');
- actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a> ');
- return actions.join('');
- } else {
- return "";
- }
- }
- }]
- };
- $.table.init(options);
- }
- $('#btnExpand').click(function() {
- $._tree.expandAll(true);
- $(this).hide();
- $('#btnCollapse').show();
- });
- $('#btnCollapse').click(function() {
- $._tree.expandAll(false);
- $(this).hide();
- $('#btnExpand').show();
- });
- $('#btnRefresh').click(function() {
- });
- /* 自定义重置-表单重置/隐藏框/树节点选择色/搜索 */
- function resetPre() {
- resetDate();
- $("#user-form")[0].reset();
- $("#deptId").val("");
- $("#parentId").val("");
- $(".curSelectedNode").removeClass("curSelectedNode");
- $.table.search();
- }
- </script>
- </body>
- </html>
|