From c6ac1561db0b2f1c8e3a799d7f49808f4bae67c7 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Tue, 27 May 2025 15:55:58 +0800
Subject: [PATCH] refactor(mall): 优化订单收货类型判断逻辑

---
 src/main/resources/templates/febs/views/modules/order/orderList.html |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/order/orderList.html b/src/main/resources/templates/febs/views/modules/order/orderList.html
index 92c616c..ce2ad7e 100644
--- a/src/main/resources/templates/febs/views/modules/order/orderList.html
+++ b/src/main/resources/templates/febs/views/modules/order/orderList.html
@@ -243,7 +243,7 @@
                     febs.alert.warn('请选择待发货的订单');
                     return;
                 }
-                febs.get(ctx + 'admin/order/confirmOrder?orderIds='+ids, null, function () {
+                febs.get(ctx + 'admin/order/confirmLeaderOrder?orderIds='+ids, null, function () {
                     febs.alert.success('操作成功');
                     $query.click();
                 });
@@ -354,11 +354,11 @@
                     return;
                 }
                 window.location.href = ctx + "admin/order/exportOrderListOne?orderType=1&status=2&deliveryType=1&orderIds="+ids;
-                febs.get(ctx + 'admin/order/deliverOrder?&orderIds='+ids, null, function () {
-                    febs.alert.success('操作成功');
-                    $query.click();
-
-                });
+                // febs.get(ctx + 'admin/order/deliverOrder?&orderIds='+ids, null, function () {
+                //     febs.alert.success('操作成功');
+                //     $query.click();
+                //
+                // });
             }
 
             if (event == 'exportDeliverTwo') {
@@ -504,6 +504,16 @@
                         {field: 'memberName', title: '购买人', minWidth: 100,align:'left'},
                         {field: 'memberPhone', title: '联系方式', minWidth: 120,align:'left'},
                         {field: 'refererName', title: '推荐人', minWidth: 100,align:'left'},
+                        {field: 'deliveryType', title: '提货方式',
+                            templet: function (d) {
+                                if (d.deliveryType === 1) {
+                                    return '<span style="color:blue;">自提</span>'
+                                } else if (d.deliveryType === 2) {
+                                    return '<span style="color:green;">快递</span>'
+                                }else{
+                                    return ''
+                                }
+                            }, minWidth: 100,align:'center'},
                         {field: 'goodsName', title: '商品', minWidth: 160,align:'left'},
                         {field: 'goodsAmount', title: '价格', minWidth: 80,align:'left', totalRow:true},
                         {field: 'carriage', title: '邮费', minWidth: 80,align:'left', totalRow:true},

--
Gitblit v1.9.1