Forráskód Böngészése

提交修改数据

lvhao 6 hónapja
szülő
commit
a3243633e3

+ 0 - 7
core/CoreApp/controllers/Aatest.php

@@ -179,13 +179,6 @@ class Aatest extends Start_Controller {
 		];
 	}
     public function _a($arg_array){
-		$list = $this->returngoods->find_all("table_type = 0");
-		foreach($list as $k => $v){
-			$type = $this->logic_order->getType("number = '".$v['number']."'");
-			$this->returngoods->save([
-				'table_type'=>$type,
-			],$v['id']);
-		}
 		die;
 		$data = $this->getDtc();
 		$dtc = $data['dtc'];

+ 4 - 0
core/CoreApp/controllers/Returngoods.php

@@ -458,6 +458,7 @@ class Returngoods extends Start_Controller {
             $cate_one = $this->input->post('cate_one',true);
             $cate_two = $this->input->post('cate_two',true);
             $number = $this->input->post('number',true);
+            $recorder = $this->input->post('recorder',true);
             $where = " 1 = 1 ";
             if($orderinfo)
             {
@@ -487,6 +488,9 @@ class Returngoods extends Start_Controller {
             {
                 $where  .= " and back_status = '$back_status'";
             }
+            if($recorder){
+                $where  .= " and recorder = '$recorder'";
+            }
             if($ktime&&$jtime){
                 $where .= " and create_time > '".date("Y-m-d H:i:s",strtotime($ktime))."' and  create_time  < '".date("Y-m-d H:i:s",strtotime($jtime))."' ";
             }

+ 3 - 2
template/erp/returngoods.html

@@ -81,6 +81,7 @@
             {/loop}
     </select>
 </li>
+<li>登记人:<input value="" name="recorder" type="text" ></li>
 <li>
     登记时间:
     <input id="ktime"  value="{date('Y-m-d',time()-10*24*3600)} 0:00" name="ktime" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})">
@@ -112,8 +113,8 @@
     
 <!-- <a href="javascript:void(0);" class="window btn btn-success" data-h="/returngoods/add/1100000573" data-t="售后登记 - 添加">添 加</a> -->
 
-<a href="javascript:void(0);" class="check">删 除</a>
-<a href="javascript:void(0);" class="btn btn_warning btn-xs" onclick="excelexport()">按条件导出</a>
+<a href="javascript:void(0);" style="font-size: 15px;" class="check">删 除</a>
+<a href="javascript:void(0);" style="font-size: 15px;background-color: #f39c12;" onclick="excelexport()">按条件导出</a>
 </div>
 <table class="datatitle data" border="0" style="border-collapse:collapse;">
 <tr>