Browse Source

提交数据

lvhao 6 days ago
parent
commit
f8dda58fea
2 changed files with 24 additions and 1 deletions
  1. 1 1
      core/CoreApp/controllers/Shop.php
  2. 23 0
      template/erp/shop.html

+ 1 - 1
core/CoreApp/controllers/Shop.php

@@ -73,7 +73,7 @@ class Shop extends Start_Controller {
                 $start = ($page - 1)*$perpage;
             }
             //取得信息列表
-            $info_list = $this->shop->find_all($where,'id,type,shopname,shortname,estimaterate,mustba,shopid,yyid,tb,status,remarks',$order_str,$start,$perpage);
+            $info_list = $this->shop->find_all($where,'id,type,shopname,shortname,estimaterate,mustba,shopid,yyid,tb,status,px,remarks',$order_str,$start,$perpage);
 			 //格式化数据
             foreach ($info_list as $key=>$value) 
 		    {

+ 23 - 0
template/erp/shop.html

@@ -38,7 +38,9 @@
 <td>用友ID</td>
 <td>是否同步</td>
 <td>店铺状态</td>
+<td>排序</td>
 <td>备注</td>
+
 </tr>
 </table>
 </div>
@@ -51,5 +53,26 @@ var dataurl = "/shop";
 var editurl = "/shop/edit/";
 var editdj = 2;
 var editt = "店铺管理 - 修改";
+var customon = 1;
+function custom(){
+$(".data tr").each(function() {
+    $(this).find('td:eq(0)').css("width","1%");
+    $(this).find('td:eq(1)').css("width","6%");
+    $(this).find('td:eq(2)').css("width","6%");
+    $(this).find('td:eq(3)').css("width","6%");
+    $(this).find('td:eq(4)').css("width","6%");
+    $(this).find('td:eq(5)').css("width","6%");
+    $(this).find('td:eq(6)').css("width","10%");
+    $(this).find('td:eq(7)').css("width","6%");
+    $(this).find('td:eq(8)').css("width","6%");
+    $(this).find('td:eq(9)').css("width","4%");
+    $(this).find('td:eq(10)').css("width","4%");
+    $(this).find('td:eq(11)').css("width","4%");
+    $(this).find('td:eq(12)').css("width","10%");
+
+// $(this).find('td:eq(11)').css("width","5%");
+});
+}
+
 </script>
 {Template footer}