Browse Source

update: 重新整理后台订单各种状态颜色

joe 4 years ago
parent
commit
da9ea6c7df
1 changed files with 34 additions and 11 deletions
  1. 34 11
      app/admin/view/order/store_order/index.php

+ 34 - 11
app/admin/view/order/store_order/index.php

@@ -144,6 +144,13 @@
                         <button class="layui-btn layui-btn-sm" data-type="del_order">批量删除订单</button>
                         <button class="layui-btn layui-btn-sm layui-btn-warm" data-type="write_order">订单核销</button>
                     </div>
+                    <div>
+                        <span style="color:grey;">| 浅灰色:未支付/申请退款/已退款 </span>
+                        <span style="color:black;">| 黑色:订单已发货</span>
+                        <span style="color:blue;">| 蓝色:等待发货,但商品尚未匹配完成,需等待</span>
+                        <span style="color:red;">| 红色:商品已匹配并退款,不需发货</span>
+                        <span style="color:green;">| 绿色:商品已匹配完成,应立即发货</span>
+                    </div>
                     <table class="layui-hide" id="List" lay-filter="List"></table>
                     <!--订单-->
                     <script type="text/html" id="order_id">
@@ -195,20 +202,36 @@
                                      src="{{item.cart_info.productInfo.attrInfo.image}}">
                                 </a>
                             </span>
-                            {{# if(item.activity && item.result == 1) { }}
-                            <span style="color:red">{{item.cart_info.productInfo.store_name}}&nbsp;{{item.cart_info.productInfo.attrInfo.suk}}</span>
+                            {{# if(d.paid && d.refund_status == 0) { }} <!-- -->
+                                {{# if(d.status == 0) { }}
+                                    {{# if(!item.activity) { }}
+                                        <span style="color:blue;">
+                                    {{# } else if(item.activity && item.result == 1) { }}
+                                        <span style="color:red;">
+                                    {{# } else { }}
+                                        <span style="color:green;">
+                                    {{# } }}
+                                {{# } else if(d.status > 0) { }}
+                                    {{# if(item.activity && item.result == 1) { }}
+                                        <span style="color:red;">
+                                    {{# } else { }}
+                                        <span style="color:black;">
+                                    {{# } }}
+                                    
+                                {{# } else { }}
+                                    <span style="color:grey;">
+                                {{# } }}
+                            {{# } else { }}
+                                <span style="color:grey;">
+                            {{# } }}
+
+                            {{item.cart_info.productInfo.store_name}}&nbsp;{{item.cart_info.productInfo.attrInfo.suk}}</span>
                             <span style="color:black"> | ¥{{item.cart_info.truePrice}}×{{item.cart_info.cart_num}}</span>
-                            <span>| {{item.mine ? '已' : '未' }}启动</span>
+                            {{# if(item.activity && item.reparation > 0) { }}
                             <span style="color:red"> | 已赔付 ¥{{ item.reparation }}</span>
-                            {{# } else if (!item.activity) { }}
-                            <span style="color:blue">{{item.cart_info.productInfo.store_name}}&nbsp;{{item.cart_info.productInfo.attrInfo.suk}}</span>
-                            <span style="color:black"> | ¥{{item.cart_info.truePrice}}×{{item.cart_info.cart_num}}</span>
-                            <span>| {{item.mine ? '已' : '未' }}启动</span>
-                            <span style="color:blue">未统计</span>
-                            {{# }else{ }}
-                            <span>{{item.cart_info.productInfo.store_name}}&nbsp;{{item.cart_info.productInfo.attrInfo.suk}}</span>
-                            <span> | ¥{{item.cart_info.truePrice}}×{{item.cart_info.cart_num}}</span>
                             {{# } }}
+                            <span>| {{item.mine ? '已' : '未' }}启动</span>
+                            <span>| {{item.activity ? '已' : '未' }}统计</span>
                         </div>
                         {{#  }else{ }}
                         <div>