Przeglądaj źródła

修改仓库排序1

lvhao 9 godzin temu
rodzic
commit
7447979d08

+ 2 - 2
core/CoreApp/controllers/Warehouse.php

@@ -88,7 +88,7 @@ class Warehouse extends Start_Controller {
                 $where  .= " and title = '$title'";
             }
             //数据排序
-            $order_str = "id asc";
+            $order_str = "px asc";
             if(empty($page))
 		    {
                 $start = 0;
@@ -99,7 +99,7 @@ class Warehouse extends Start_Controller {
                 $start = ($page - 1)*$perpage;
             }
             //取得信息列表
-            $info_list = $this->warehouse->find_all($where,'id,title,show,zd,zdms,fpzd,wz,fpsx,express,bdcountry,yybm',$order_str,$start,$perpage);
+            $info_list = $this->warehouse->find_all($where,'id,title,show,zd,zdms,fpzd,wz,fpsx,express,bdcountry,px,yybm',$order_str,$start,$perpage);
 			foreach ($info_list as $key=>$value) 
 		    {
 				if($value['show'] == 1)

+ 1 - 0
template/erp/warehouse.html

@@ -22,6 +22,7 @@
 <td>分配排序</td>
 <td>默认快递</td>
 <td>专属国家</td>
+<td>排序</td>
 <td>用友编码</td>
 </tr>
 </table>