Ver Fonte

投料优化

huangsanjia há 3 anos atrás
pai
commit
abed852e80

+ 1 - 3
application/admin/controller/Feeding.php

@@ -57,7 +57,7 @@ class Feeding extends Backend
             return $this->view->fetch();
         }
         $params = $this->request->post('row/a');
-        
+        print_r($params);die;
         $params = $this->preExcludeFields($params);
         $tid = Db::name('task')->where('bach',$params['bach'])->order('id desc')->find();
         $arr = [];
@@ -119,11 +119,9 @@ class Feeding extends Backend
         $res = Db::name('task')->where('bach',$bach)->order('create','desc')->select();
         //已有过工序
         if($row){
-//            Session::set('process',serialize($row));
             $result['inspector'] = $row[0]['inspector'];
             $result['operator'] = $row[0]['operator'];
         }else{
-//            Session::delete('process');
             $result['inspector'] = '';
             $result['operator'] = '';
         }

+ 6 - 5
application/admin/view/feeding/add.html

@@ -91,17 +91,18 @@
         <table class="table table-striped table-bordered table-hover table-nowrap" id="table">
             <tr>
                 <th class="col-xs-12 col-sm-3">{:__('Material')}</th>
-                <th class="col-xs-12 col-sm-2">{:__('Nweight')}</th>
-                <th class="col-xs-12 col-sm-2">{:__('Weight')}</th>
-                <th class="col-xs-12 col-sm-5">操作记录</th>
-<!--                <th class="col-xs-12 col-sm-2">操作</th>-->
+                <th class="col-xs-12 col-sm-1">{:__('Nweight')}</th>
+                <th class="col-xs-12 col-sm-1">{:__('Weight')}</th>
+                <th class="col-xs-12 col-sm-1">操作</th>
+                <th class="col-xs-12 col-sm-1">原材料批次号</th>
+                <th class="col-xs-12 col-sm-4">操作记录</th>
             </tr>
         </table>
     </div>
     <div class="form-group layer-footer">
         <label class="control-label col-xs-12 col-sm-2"></label>
         <div class="col-xs-12 col-sm-8">
-            <button type="submit" class="btn btn-primary btn-embossed disabled option">{:__('OK')}</button>
+<!--            <button type="submit" class="btn btn-primary btn-embossed disabled option">{:__('OK')}</button>-->
             <button type="button" class="btn btn-default btn-embossed print-link">打印预览</button>
         </div>
     </div>