From 7992cd7adb57f8f2cb4b4fa295afb8894c24d0bf Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 18 May 2022 17:19:34 +0800 Subject: [PATCH] add export for deliver --- src/main/resources/templates/febs/views/modules/score/orderList.html | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/score/orderList.html b/src/main/resources/templates/febs/views/modules/score/orderList.html index 6c7918b..132ce24 100644 --- a/src/main/resources/templates/febs/views/modules/score/orderList.html +++ b/src/main/resources/templates/febs/views/modules/score/orderList.html @@ -69,6 +69,12 @@ <a lay-event="edit" shiro:hasPermission="user:update"><i class="layui-icon febs-edit-area febs-blue"></i></a> </script> +<script type="text/html" id="tableToolBar"> + <div class="layui-btn-container"> + <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-blue-plain" lay-event="exportDeliver">导出未发货订单</button> + <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-blue-plain" id="importDeliver" lay-event="importDeliver">导入发货</button> + </div> +</script> <!-- 表格操作栏 end --> <script data-th-inline="none" type="text/javascript"> // 引入组件并初始化 @@ -89,6 +95,14 @@ // 表格初始化 initTable(); + + table.on('toolbar(orderTable)', function(obj){ + var event = obj.event; + + if (event == 'exportDeliver') { + window.location.href = ctx + "admin/order/exportOrderList?orderType=2&status=2"; + } + }); // 初始化表格操作栏各个按钮功能 table.on('tool(orderTable)', function (obj) { @@ -161,6 +175,8 @@ elem: $view.find('table'), id: 'orderTable', url: ctx + 'admin/order/orderList?orderType=2', + defaultToolbar: [], + toolbar: '#tableToolBar', cols: [[ {field: 'orderNo', title: '订单编号', minWidth: 200,align:'left'}, {field: 'memberName', title: '购买人', minWidth: 120,align:'left'}, -- Gitblit v1.9.1