Kaynağa Gözat

提交备货撤销申请1

lvhao 16 saat önce
ebeveyn
işleme
e368e88172

+ 309 - 6
core/CoreApp/controllers/Beihuogl.php

@@ -14,6 +14,7 @@ class Beihuogl extends Start_Controller {
         $this->load->_model("Model_bhdcd","bhdcd");
         $this->load->_model("Model_whlabellabel","whlabellabel");
         $this->load->_model("Model_warehouse","warehouse");
+        $this->load->_model("Model_bhsccx","bhsccx");
     }
 
     //定义方法的调用规则 获取URI第二段值
@@ -100,6 +101,16 @@ class Beihuogl extends Start_Controller {
             $this->_checkdcdsku($arg_array);
         }elseif($arg == 'dcdkwyz'){
             $this->_dcdkwyz();
+        }elseif($arg == 'bhcxsave'){
+            $this->_bhcxsave();
+        }elseif($arg == 'bhcxlist'){
+            $this->_bhcxlist();
+        }elseif($arg == 'bhcxshlist'){
+            $this->_bhcxshlist();
+        }elseif($arg == 'updatestatus'){
+            $this->_updatestatus();
+        }elseif($arg == 'bhcxedit'){
+            $this->_bhcxedit($arg_array);
         }
 		else
 		{
@@ -161,7 +172,7 @@ class Beihuogl extends Start_Controller {
                 $start = ($page - 1)*$perpage;
             }
 
-            $list = $this->bhsq->find_all($where,"id,shop_id,plat_id,title,sku,sqr,sq_num,sq_status,add_time,update_time",$order_str,$start,$perpage);
+            $list = $this->bhsq->find_all($where,"id,shop_id,plat_id,title,sku,sqr,sq_num,sq_status,add_time,update_time,bh_no,u9sc_no",$order_str,$start,$perpage);
 
             if(empty($list)){
                 $rows = array('total'=>0,'over'=>1,'pagenum'=>0,'rows'=>([]));
@@ -177,21 +188,25 @@ class Beihuogl extends Start_Controller {
                 $list[$k]['plat_id'] = isset($plat_list[$v['plat_id']])?$plat_list[$v['plat_id']]:"无";
                 $list[$k]['sq_status'] = isset($status_list[$v['sq_status']])?$status_list[$v['sq_status']]:"";
                 $list[$k]['add_time'] = date("Y-m-d",$v['add_time']);
-                $str = "";
+                $str =  "<div style='text-align:center;'>";
                 if($v['sq_status'] == 1 || $v['sq_status'] == 3){
-                    $str .=  "<div style='text-align:center;'>";
+                   
                     $str .= "<a href='javascript:void(0)'class='window' data-h='/beihuogl/dyapplyedit/".$v['id']."' data-t='修改' style='margin-right:4px;color: #fff;background-color:#228B22;padding:4px 10px;border-radius:5px;font-size:15px'>编辑</a>";
                     $str .= "<a href='javascript:void(0)' style='margin-right:4px;color: #fff;background-color:#4169E1;padding:4px 10px;border-radius:5px;font-size:15px' data-id='".$v['id']."' data-type='2' onclick='update_status(this)'>发布</a>";
                     $str .= "<a href='javascript:void(0)' style='margin-right:4px;color: #444;background-color: #ddd;padding:4px 10px;border-radius:5px;font-size:15px' data-id='".$v['id']."' data-type='0' onclick='update_status(this)'>取消</a>";
-                    $str .=  "</div>";
+                   
 
                 }
                 if($v['sq_status'] == 0){
-                   $str .=  "<div style='text-align:center;'>";
                    $str .= "<a href='javascript:void(0)' style='margin-right:4px;color: #fff;background-color: #DC143C;padding:4px 10px;border-radius:5px;font-size:15px' data-id='".$v['id']."' data-type='0' onclick='del_bhsq(this)'>删除</a>";
-                   $str .=  "</div>";
                 }
+                if(!empty($v['u9sc_no'])){   
+                   $str .= "<a href='javascript:void(0)' style='margin-right:4px;color: #fff;background-color: #9400D3;padding:4px 10px;border-radius:5px;font-size:15px' data-title='".$v['title']."' data-id='".$v['id']."' data-u9sc_no='".$v['u9sc_no']."' data-bh_no='".$v['bh_no']."' onclick='cx_bhsq(this)'>生产撤销</a>";
+                }
+                $str .=  "</div>";
                 $list[$k]['update_time'] = $str;
+                unset($list[$k]['bh_no']);
+                unset($list[$k]['u9sc_no']);
             }
 
 
@@ -2234,4 +2249,292 @@ class Beihuogl extends Start_Controller {
 		header( "Expires: 0" ); 
 		exit($str); 
     }
+
+
+    private function _bhcxsave(){
+        if($this->input->method() === 'post'){
+            $id = $this->input->post('id',true);
+            $cxr = $this->input->post('cxr',true);
+            $remark = $this->input->post('remark',true);
+            $num = $this->input->post('num',true);
+            $info = $this->bhsq->read($id);
+            if(empty($info)){
+                echo json_encode(['success'=>false,'msg'=>'数据不存在']);exit;
+            }
+            if($info['sq_num'] < $num){
+                echo json_encode(['success'=>false,'msg'=>'变动后申请数不能大于申请数量']);exit;
+            }
+            if($info['sq_num'] == $num){
+                echo json_encode(['success'=>false,'msg'=>'变动后申请数等于申请数量???']);exit;
+            }
+            $this->db->trans_begin();
+            $this->db->insert('bhsccx',[
+                'bh_no'=>$info['bh_no'],
+                'u9sc_no'=>$info['u9sc_no'],
+                'status'=>1,
+                'cxr'=>trim($cxr),
+                'zh'=>$info['title'],
+                'jm'=>$info['jm'],
+                'shop_id'=>$info['shop_id'],
+                'sq_id'=>$info['id'],
+                'before_num'=>$info['sq_num'],
+                'after_num'=>$num,
+                'remark'=>$remark,
+                'add_time'=>time(),
+                'update_time'=>time()
+            ]);
+            if ($this->db->trans_status() === TRUE) {
+                $this->db->trans_commit();
+            } else {
+                $this->db->trans_rollback();
+                echo json_encode(array('msg' => '错误,请重试!', 'success' => false));
+                exit;
+            }
+            echo json_encode(['success'=>true,'msg'=>'保存成功']);exit;
+        }else{
+            echo json_encode(['success'=>false,'msg'=>'请求方式错误']);exit;
+        }
+    }
+
+    private function _bhcxlist(){
+        if($this->input->method() === 'post'){
+            $page = $this->input->post('page',true);
+		    $perpage = $this->input->post('perpage',true);
+            $vip_id = $this->input->post('vip_id',true);
+            $shop_id = $this->input->post('shop_id',true);
+            $cxr = $this->input->post('cxr',true);
+            $cxr = trim($cxr);
+            $status = $this->input->post('status',true);
+            $shop_ids = $this->input->post('shop_ids',true);
+            $ktime = $this->input->post('ktime',true);
+            $jtime = $this->input->post('jtime',true);
+            $ktime = strtotime($ktime);
+            $jtime = strtotime($jtime);
+
+            $where = "add_time >= ".$ktime."  and add_time  < ".$jtime." ";
+
+            if(!empty($cxr)){
+                $where .= " and cxr = '".$cxr."' ";
+            }
+            if($shop_id > -1){
+                $where .= " and shop_id = ".$shop_id." ";
+            }else{
+                if($vip_id == 1){
+
+                }else{
+                    $where .= " and shop_id in (".$shop_ids.") ";
+                }
+                
+            }
+            if($status > -1){
+               $where .= " and status = ".$status." ";
+            }
+            
+            //数据排序
+            $order_str = "id desc";
+            if(empty($page))
+		    {
+                $start = 0;
+		    	$perpage = 1;
+            }
+		    else
+		    {
+                $start = ($page - 1)*$perpage;
+            }
+
+            $list = $this->bhsccx->find_all($where,"id,shop_id,bh_no,u9sc_no,zh,status,cxr,after_num,before_num,add_time",$order_str,$start,$perpage);
+
+            if(empty($list)){
+                $rows = array('total'=>0,'over'=>1,'pagenum'=>0,'rows'=>([]));
+                echo json_encode($rows);exit;
+            }
+            $shop_list = $this->shop->find_all("1=1","id,shopname");
+            $shop_list = array_column($shop_list,'shopname','id');
+            $status_list = $this->bhsccx->getCxStatus();
+            foreach($list as $k=>$v){
+                $list[$k]['shop_id'] = isset($shop_list[$v['shop_id']])?$shop_list[$v['shop_id']]:"无";
+                $list[$k]['status'] = isset($status_list[$v['status']])?$status_list[$v['status']]:"";
+                $list[$k]['add_time'] = date("Y-m-d",$v['add_time']);
+                if($v['status'] == 0){
+                    $list[$k]['after_num'] = $v['after_num'];
+                    $list[$k]['cxr'] = $v['cxr'];
+                    $list[$k]['u9sc_no'] =  "<a href='javascript:void(0)'class='window' data-h='/beihuogl/bhcxedit/".$v['id']."' data-t='修改' >".$v['u9sc_no']."</a>";
+                }
+
+                $str =  "<div style='text-align:center;'>";
+                
+                if($v['status'] == 1){
+                    $str .= "<a href='javascript:void(0)' style='margin-right:4px;color: #fff;background-color: #9400D3;padding:4px 10px;border-radius:5px;font-size:15px'  data-id='".$v['id']."' data-status='0'  onclick='cxaction(this)'>撤回</a>";
+                }
+                if($v['status'] == 0){
+                    $str .= "<a href='javascript:void(0)' style='margin-right:4px;color: #fff;background-color: #9400D3;padding:4px 10px;border-radius:5px;font-size:15px'  data-id='".$v['id']."' data-status='1'  onclick='cxaction(this)'>发布</a>";
+                }
+
+                // if(!empty($v['u9sc_no'])){   
+                //    $str .= "<a href='javascript:void(0)' style='margin-right:4px;color: #fff;background-color: #9400D3;padding:4px 10px;border-radius:5px;font-size:15px' data-title='".$v['title']."' data-id='".$v['id']."' data-u9sc_no='".$v['u9sc_no']."' data-bh_no='".$v['bh_no']."' onclick='cx_bhsq(this)'>生产撤销</a>";
+                // }
+                $str .=  "</div>";
+                $list[$k]['update_time'] = $str;
+                unset($list[$k]['before_num']);
+            }
+
+
+            $total = $this->bhsccx->find_count($where);
+		    $pagenum = ceil($total/$perpage);
+		    $over = $total-($start+$perpage);
+            $rows = array('total'=>$total,'over'=>$over,'pagenum'=>$pagenum,'rows'=>($list));
+		    echo json_encode($rows);exit;
+        }else{
+            $user = $this->user->get_api($_SESSION['api']);
+            $usersp = explode('|',trim($user['shop'],'|'));
+            $this->data['usersp'] = implode(",",$usersp);
+            $vip_id = 0;
+            if(in_array($user['id'],[10,28])){
+                $vip_id = 1;
+            }
+            $this->data['vip_id'] = $vip_id;
+            $this->data['status_list'] = $this->bhsccx->getCxStatus();
+            $this->_Template('beihuogl_bhcxlist',$this->data);
+        }
+    }
+
+    private function _bhcxedit($arg_array){
+        if($this->input->method() === 'post'){
+            $id = $this->input->post('id',true);
+            $cxr = $this->input->post('cxr',true);
+            $remark = $this->input->post('remark',true);
+            $after_num = $this->input->post('after_num',true);
+            $info = $this->bhsccx->read($id);
+            if(empty($info)){
+                echo json_encode(['success'=>false,'msg'=>'数据不存在']);exit;
+            }
+            if($after_num > $info['before_num']){
+                echo json_encode(['success'=>false,'msg'=>'要生产数量不能大于之前的申报数量']);exit;
+            }
+            $this->bhsccx->save(['cxr' => $cxr, 'remark' => $remark, 'after_num' => $after_num], $id);
+            echo json_encode(['success'=>true,'msg'=>'操作成功']);exit;
+        }else{
+            $id = $arg_array[0];
+            $info = $this->bhsccx->read($id);
+            $this->data['info'] = $info;
+            $this->_Template('beihuogl_bhcxedit',$this->data);
+        }
+    }
+
+    private function _updatestatus(){
+        if($this->input->method() === 'post'){
+            $id = $this->input->post('id',true);
+            $status = $this->input->post('status',true);
+            $info = $this->bhsccx->read($id);
+            $status = (int)$status;
+            if(empty($info)){
+                echo json_encode(['success'=>false,'msg'=>'数据不存在']);exit;
+            }
+            if($status == 0 || $status == 2){
+                if($info['status'] != 1){
+                   echo json_encode(['success'=>false,'msg'=>'当前状态不符合修改状态']);exit;
+                }
+            }
+            if($status == 1){
+                if($info['status'] != 0){
+                    echo json_encode(['success'=>false,'msg'=>'当前状态不符合修改状态']);exit;
+                }
+            }
+
+            if($this->bhsccx->save(['status' => $status],$id)){
+                echo json_encode(['success'=>true,'msg'=>'修改成功']);exit;
+            }else{
+                echo json_encode(array('msg' => '错误,请重试!', 'success' => false));
+                exit;
+            }
+        }else{
+            echo json_encode(['success'=>false,'msg'=>'请求方式错误']);exit;
+        }
+    }
+
+
+   
+
+    private function _bhcxshlist(){
+        if($this->input->method() === 'post'){
+            $page = $this->input->post('page',true);
+		    $perpage = $this->input->post('perpage',true);
+            $cxr = $this->input->post('cxr',true);
+            $cxr = trim($cxr);
+            $status = $this->input->post('status',true);
+            $ktime = $this->input->post('ktime',true);
+            $jtime = $this->input->post('jtime',true);
+            $ktime = strtotime($ktime);
+            $jtime = strtotime($jtime);
+
+            $where = "add_time >= ".$ktime."  and add_time  < ".$jtime." ";
+            $where .= " and status > 0 ";
+
+            if(!empty($cxr)){
+                $where .= " and cxr = '".$cxr."' ";
+            }
+           
+            if(!empty($status)){
+                $where .= " and status = ".$status." ";
+            }else{
+                $where .= " and status > 0 ";
+            }
+            
+            //数据排序
+            $order_str = "id desc";
+            if(empty($page))
+		    {
+                $start = 0;
+		    	$perpage = 1;
+            }
+		    else
+		    {
+                $start = ($page - 1)*$perpage;
+            }
+
+            $list = $this->bhsccx->find_all($where,"id,shop_id,bh_no,u9sc_no,jm,remark,status,cxr,after_num,before_num,add_time",$order_str,$start,$perpage);
+
+            if(empty($list)){
+                $rows = array('total'=>0,'over'=>1,'pagenum'=>0,'rows'=>([]));
+                echo json_encode($rows);exit;
+            }
+            $shop_list = $this->shop->find_all("1=1","id,shopname");
+            $shop_list = array_column($shop_list,'shopname','id');
+            $status_list = $this->bhsccx->getCxStatus();
+            foreach($list as $k=>$v){
+                $list[$k]['shop_id'] = isset($shop_list[$v['shop_id']])?$shop_list[$v['shop_id']]:"无";
+                $list[$k]['status'] = isset($status_list[$v['status']])?$status_list[$v['status']]:"";
+                $list[$k]['add_time'] = date("Y-m-d",$v['add_time']);
+                if($v['status'] == 0){
+                    $list[$k]['after_num'] = $v['after_num'];
+                    $list[$k]['cxr'] = $v['cxr'];
+                    $list[$k]['u9sc_no'] =  "<a href='javascript:void(0)'class='window' data-h='/beihuogl/bhcxedit/".$v['id']."' data-t='修改' >".$v['u9sc_no']."</a>";
+                }
+
+                $str =  "<div style='text-align:center;'>";
+                
+                if($v['status'] == 1){
+                    $str .= "<a href='javascript:void(0)' style='margin-right:4px;color: #fff;background-color: #9400D3;padding:4px 10px;border-radius:5px;font-size:15px'  data-id='".$v['id']."' data-status='2'  onclick='cxaction(this)'>审核</a>";
+                }
+               
+
+                // if(!empty($v['u9sc_no'])){   
+                //    $str .= "<a href='javascript:void(0)' style='margin-right:4px;color: #fff;background-color: #9400D3;padding:4px 10px;border-radius:5px;font-size:15px' data-title='".$v['title']."' data-id='".$v['id']."' data-u9sc_no='".$v['u9sc_no']."' data-bh_no='".$v['bh_no']."' onclick='cx_bhsq(this)'>生产撤销</a>";
+                // }
+                $str .=  "</div>";
+                $list[$k]['update_time'] = $str;
+                unset($list[$k]['before_num']);
+            }
+
+
+            $total = $this->bhsccx->find_count($where);
+		    $pagenum = ceil($total/$perpage);
+		    $over = $total-($start+$perpage);
+            $rows = array('total'=>$total,'over'=>$over,'pagenum'=>$pagenum,'rows'=>($list));
+		    echo json_encode($rows);exit;
+        }else{
+            $this->data['status_list'] = $this->bhsccx->getCxStatus();
+            $this->_Template('beihuogl_bhcxshlist',$this->data);
+        }
+    }
 }

+ 20 - 0
core/CoreApp/models/Model_bhsccx.php

@@ -0,0 +1,20 @@
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 
+class Model_bhsccx extends Lin_Model 
+{
+	function __construct(){
+		parent::__construct();
+		$this->load->database();
+		$this->table = 'bhsccx';
+		$this->load_table('bhsccx');
+
+	}
+
+	public function getCxStatus(){
+		 return [
+            0=>'未提交',
+            1=>'待审核',
+            2=>'已审核',
+        ];
+	}
+	
+}  

+ 43 - 0
template/erp/beihuogl_bhcxedit.html

@@ -0,0 +1,43 @@
+{Template header}
+<body>
+<div class="warp">
+<div class="title winnone">修改</div>
+<ul class="setting">
+
+<li class=" ">
+    <em>备货单号:</em>
+    {$info['bh_no']}
+</li>
+<li class=" ">
+    <em>U9生产单号:</em>
+    {$info['u9sc_no']}
+</li>
+<li class="length remark">
+    <em>品名:</em>
+    {$info['zh']}
+</li>
+<li class="length remark">
+<em>申请人:</em>
+<input value="{$info['cxr']}" name="cxr" type="text" >
+</li>
+<li class="length remark">
+<em>备注:</em>
+<textarea name="remark" style="height:50px;">{$info['remark']}</textarea>
+</li>
+
+
+<li class="remark">
+<em>要生产数量:</em>
+<input value="{$info['after_num']}" name="after_num" type="text" >
+</li>
+
+<div style="clear:both;"></div>
+</ul>
+<input  type="hidden" name="id" value="{$info['id']}" />
+<div class="button"><font class="datasave">提 交</font> <font class="fh">关 闭</font></div>
+</div>
+<script>
+var addedit="/beihuogl/bhcxedit/";
+
+</script>
+{Template footer}

+ 135 - 0
template/erp/beihuogl_bhcxlist.html

@@ -0,0 +1,135 @@
+{Template header}
+<body>
+<div class="warp">
+<div class="fixed">
+<ul class="search" >
+    <li>申请人:<input value="" name="cxr" type="text"></li>
+    <li>状态:
+        <select name="status" class="select class">
+        <option value="-1" >请选择</option>
+        {loop $status_list as $key=>$val}
+            <option value="{$key}" >{$val}</option>
+        {/loop}
+        </select>
+    </li>
+    <li>
+        店铺平台:
+        <select name="plat_id" class="select class">
+        <option value="-1" >请选择</option>
+        <option value="0" >无</option>
+        {loop typeclass(32) as $val}
+            {if $val['title'] != '翔文'}
+            <option value="{$val['id']}" >{$val['title']}</option>
+            {/if}
+        {/loop}
+        </select>
+    </li>
+    <li>
+        添加时间:
+        <input id="ktime"  value="{date('Y-m-d',time()-30*24*3600)} 0:00" name="ktime" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})"  autocomplete="off">
+        至&nbsp;&nbsp;&nbsp;&nbsp; 
+        <input id="jtime" value="{date('Y-m-d',time()+24*3600)} 0:00" name="jtime" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})"  autocomplete="off">
+    </li>
+
+    <input type="hidden" name="vip_id" value="{$vip_id}">    
+    <input type="hidden" name="shop_ids" value="{$usersp}">
+    <li><span>确 定</span></li>
+</ul>
+
+
+<table class="datatitle data" border="0" style="border-collapse:collapse;">
+<tr>
+<td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
+<td>店铺</td>
+<td>备货单号</td>
+<td>u9生产单号</td>
+<td>申请料品</td>
+<td>状态</td>
+<td>申请人</td>
+<td>要生产数量</td>
+<td>申请时间</td>
+<td>操作</td>
+</tr>
+</table>
+</div>
+<table class="datatext data" border="0" style="border-collapse:collapse;">
+</table>
+<div class="bomf"></div>
+</div>
+<div class="boundtj">
+<div>
+<p style="padding:10px 0px"></p>
+<p style="padding:10px 0px"><font class="button">确 定</font><font class="esc">取 消</font></p>
+</div>
+</div>
+<div style="display:none;">
+<input id="upload-file" name="files" accept="image/xls,image/xlsx" type="file">
+</div>
+<script>
+
+var dataurl = "/beihuogl/bhcxlist";
+
+// var editdj = 1;
+// 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","10%");
+    $(this).find('td:eq(2)').css("width","10%");
+    $(this).find('td:eq(3)').css("width","10%");
+    $(this).find('td:eq(4)').css("width","30%");
+    $(this).find('td:eq(5)').css("width","6%");
+    $(this).find('td:eq(6)').css("width","8%");
+    $(this).find('td:eq(7)').css("width","6%");
+    $(this).find('td:eq(8)').css("width","8%");
+    $(this).find('td:eq(9)').css("width","15%");
+  
+});}
+
+function  cxaction(that){
+    let do_id = $(that).data('id')
+    let status = $(that).data('status')
+
+    layx.confirm('提示','确定要修改吗?',null,{
+        buttons:[
+            {
+                label:'确定',
+                callback:function(id, button, event){
+                    layx.destroy(id);
+                    $.post("/beihuogl/updatestatus",{id:do_id,status:status},function(a){
+                        if(a.success){
+                            $(".search span").click();
+                        }else{
+                            layx.confirm('错误提示',a.msg,null,{
+                                buttons:[
+                                    {
+                                        label:'确定',
+                                        callback:function(id, button, event){
+                                            layx.destroy(id);
+                                        }
+                                    }
+                                ],dialogIcon:'error',shadable:0.6
+                            });
+                        }
+                    },'json')  
+                }
+            },
+            {
+                label:'取消',
+                callback:function(id, button, event){
+                    layx.destroy(id);
+                }
+            }
+        ],dialogIcon:'success',shadable:0.6
+    });
+    
+}
+
+
+
+
+</script>
+<script type="text/javascript" src="{$theme}js/laydate.js"></script>
+<script type="text/javascript" src="{$theme}js/excel/xlxs.js" ></script>
+{Template footer}

+ 126 - 0
template/erp/beihuogl_bhcxshlist.html

@@ -0,0 +1,126 @@
+{Template header}
+<body>
+<div class="warp">
+<div class="fixed">
+<ul class="search" >
+    <li>申请人:<input value="" name="cxr" type="text"></li>
+    <li>状态:
+        <select name="status" class="select class">
+        {loop $status_list as $key=>$val}
+            {if $key > 0}
+            <option value="{$key}" >{$val}</option>
+            {/if}
+            
+        {/loop}
+        </select>
+    </li>
+   
+    <li>
+        添加时间:
+        <input id="ktime"  value="{date('Y-m-d',time()-30*24*3600)} 0:00" name="ktime" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})"  autocomplete="off">
+        至&nbsp;&nbsp;&nbsp;&nbsp; 
+        <input id="jtime" value="{date('Y-m-d',time()+24*3600)} 0:00" name="jtime" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})"  autocomplete="off">
+    </li>
+
+    <li><span>确 定</span></li>
+</ul>
+
+
+<table class="datatitle data" border="0" style="border-collapse:collapse;">
+<tr>
+<td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
+<td>店铺</td>
+<td>备货单号</td>
+<td>u9生产单号</td>
+<td>U9料号</td>
+<td>备注</td>
+<td>状态</td>
+<td>申请人</td>
+<td>要生产数量</td>
+<td>申请时间</td>
+<td>操作</td>
+</tr>
+</table>
+</div>
+<table class="datatext data" border="0" style="border-collapse:collapse;">
+</table>
+<div class="bomf"></div>
+</div>
+<div class="boundtj">
+<div>
+<p style="padding:10px 0px"></p>
+<p style="padding:10px 0px"><font class="button">确 定</font><font class="esc">取 消</font></p>
+</div>
+</div>
+<div style="display:none;">
+<input id="upload-file" name="files" accept="image/xls,image/xlsx" type="file">
+</div>
+<script>
+
+var dataurl = "/beihuogl/bhcxshlist";
+
+// var editdj = 1;
+// 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","10%");
+    $(this).find('td:eq(2)').css("width","10%");
+    $(this).find('td:eq(3)').css("width","10%");
+    $(this).find('td:eq(4)').css("width","10%");
+    $(this).find('td:eq(5)').css("width","15%");
+    $(this).find('td:eq(6)').css("width","6%");
+    $(this).find('td:eq(7)').css("width","8%");
+    $(this).find('td:eq(8)').css("width","6%");
+    $(this).find('td:eq(9)').css("width","8%");
+    $(this).find('td:eq(10)').css("width","15%");
+  
+});}
+
+function  cxaction(that){
+    let do_id = $(that).data('id')
+    let status = $(that).data('status')
+
+    layx.confirm('提示','确定要审核吗?',null,{
+        buttons:[
+            {
+                label:'确定',
+                callback:function(id, button, event){
+                    layx.destroy(id);
+                    $.post("/beihuogl/updatestatus",{id:do_id,status:status},function(a){
+                        if(a.success){
+                            $(".search span").click();
+                        }else{
+                            layx.confirm('错误提示',a.msg,null,{
+                                buttons:[
+                                    {
+                                        label:'确定',
+                                        callback:function(id, button, event){
+                                            layx.destroy(id);
+                                        }
+                                    }
+                                ],dialogIcon:'error',shadable:0.6
+                            });
+                        }
+                    },'json')  
+                }
+            },
+            {
+                label:'取消',
+                callback:function(id, button, event){
+                    layx.destroy(id);
+                }
+            }
+        ],dialogIcon:'success',shadable:0.6
+    });
+    
+}
+
+
+
+
+</script>
+<script type="text/javascript" src="{$theme}js/laydate.js"></script>
+<script type="text/javascript" src="{$theme}js/excel/xlxs.js" ></script>
+{Template footer}

Dosya farkı çok büyük olduğundan ihmal edildi
+ 75 - 0
template/erp/beihuogl_dyapply.html