From 75d8b0ad39a7eb04f72ef8654dbb895322f07cfd Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Tue, 21 Oct 2025 13:41:42 +0800
Subject: [PATCH] feat(ai): 新增会员答题分页及详情查询功能 - 在 AiMemberAnswerMapper 中新增 getAnswerPage 方法及对应 XML 查询语句 - 新增 ApiMemberAnswerPageDto 和 ApiMemberAnswerPageVo 用于分页查询参数和返回结果 - 在 AiMemberAnswerService 及其实现类中添加 getAnswerPage 方法 - 在 AiMemberService 及其实现类中新增 answerPage 和 answerInfo 接口实现 - 新增 ApiMemberAnswerInfoDto 和 ApiMemberAnswerInfoVo 用于答题详情接口参数和响应 - 在 ApiMemberController 中增加 /answerPage 和 /answerInfo两个 POST 接口 - 优化 AiMemberTeamPracticeVo,增加 memberUuid 字段 - 统一导入包路径,简化代码结构

---
 src/main/resources/templates/febs/views/modules/order/invoiceList.html |   38 ++++++++++++++++++++++++++++++++++----
 1 files changed, 34 insertions(+), 4 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/order/invoiceList.html b/src/main/resources/templates/febs/views/modules/order/invoiceList.html
index 88fd2ae..595a776 100644
--- a/src/main/resources/templates/febs/views/modules/order/invoiceList.html
+++ b/src/main/resources/templates/febs/views/modules/order/invoiceList.html
@@ -39,6 +39,17 @@
                                     <i class="layui-icon">&#xe79b;</i>
                                 </div>
                             </div>
+                            <div class="layui-col-md10">
+                                <label class="layui-form-label layui-form-label-sm">注意:</label>
+                                <div class="layui-inline">
+                                    <div class="layui-form-mid layui-word-aux">
+                                        <span style="color:red;">订单状态【已完成】,才能开具发票。</span>
+                                    </div>
+                                    <div class="layui-form-mid layui-word-aux">
+                                        <span style="color:red;">开具发票之前,请先点击【更新抬头】按钮,确保用户提供了抬头信息。</span>
+                                    </div>
+                                </div>
+                            </div>
                         </div>
                     </form>
                     <table lay-filter="invoiceTable" lay-data="{id: 'invoiceTable'}"></table>
@@ -111,10 +122,27 @@
                     area:['100%','100%'],
                 });
             }
+            if (layEvent === 'updateInvoiceDetail') {
+                febs.modal.confirm('更新', '是否更新用户的抬头信息?', function () {
+                    updateInvoiceDetail(data.id);
+                });
+            }
+            if (layEvent === 'updateOrderDetail') {
+                febs.modal.confirm('更新', '是否更新订单状态信息?', function () {
+                    updateOrderDetail(data.id);
+                });
+            }
         });
 
-        function cancelOrder(id) {
-            febs.get(ctx + 'admin/order/cancelOrder/' + id, null, function () {
+        function updateOrderDetail(id) {
+            febs.get(ctx + 'admin/order/updateOrderDetail/' + id, null, function () {
+                febs.alert.success('操作成功');
+                $query.click();
+            });
+        }
+
+        function updateInvoiceDetail(id) {
+            febs.get(ctx + 'admin/order/updateInvoiceDetail/' + id, null, function () {
                 febs.alert.success('操作成功');
                 $query.click();
             });
@@ -195,9 +223,11 @@
                         {title: '操作',
                             templet: function (d) {
                                 if(d.status === 4){
-                                    return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="seeInvoiceDetail" shiro:hasPermission="user:update">开票信息</button>'
+                                    return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="seeInvoiceDetail" shiro:hasPermission="user:update">开票信息</button>' +
+                                       '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="updateOrderDetail" shiro:hasPermission="user:update">更新订单状态</button>'+
+                                        '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="updateInvoiceDetail" shiro:hasPermission="user:update">更新抬头</button>'
                                 }else{
-                                    return ''
+                                    return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="updateOrderDetail" shiro:hasPermission="user:update">更新订单状态</button>'
                                 }
                             },minWidth: 300,align:'center', fixed:'right'}
                 ]]

--
Gitblit v1.9.1