|
@@ -77,6 +77,8 @@ class Zzququeu9 extends Start_Controller {
|
|
$this->_gcbh_index();
|
|
$this->_gcbh_index();
|
|
}elseif($arg == 'gcbhexcel'){
|
|
}elseif($arg == 'gcbhexcel'){
|
|
$this->_gcbhexcel();
|
|
$this->_gcbhexcel();
|
|
|
|
+ }elseif($arg == 'bhcprk'){
|
|
|
|
+ $this->_bhcprk($arg_array);
|
|
}else
|
|
}else
|
|
{
|
|
{
|
|
$this->_index();
|
|
$this->_index();
|
|
@@ -1185,7 +1187,7 @@ class Zzququeu9 extends Start_Controller {
|
|
$bzsh_no = empty($v['bzsh_no'])?"":$v['bzsh_no'];
|
|
$bzsh_no = empty($v['bzsh_no'])?"":$v['bzsh_no'];
|
|
if($v['bzsh_status'] == 0){
|
|
if($v['bzsh_status'] == 0){
|
|
|
|
|
|
- $bzsh_no = "<span data-action='wxcprk' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建成品入库单</span>";
|
|
|
|
|
|
+ $bzsh_no = "<span data-action='bhcprk' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建成品入库单</span>";
|
|
|
|
|
|
|
|
|
|
}elseif($v['bzsh_status'] == -1){
|
|
}elseif($v['bzsh_status'] == -1){
|
|
@@ -1214,9 +1216,10 @@ class Zzququeu9 extends Start_Controller {
|
|
$tmp_str = "";
|
|
$tmp_str = "";
|
|
}
|
|
}
|
|
|
|
|
|
- $bzsh_no = "<span data-action='wxcprk' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建成品入库单</span>".'<p style="color:blue"><i class="method fa fa-exclamation-circle" data-t="'.$tmp_str.'"></i><p>';
|
|
|
|
|
|
+ $bzsh_no = "<span data-action='bhcprk' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建成品入库单</span>".'<p style="color:blue"><i class="method fa fa-exclamation-circle" data-t="'.$tmp_str.'"></i><p>';
|
|
}elseif($v['bzsh_status'] == 1){
|
|
}elseif($v['bzsh_status'] == 1){
|
|
- $bzsh_no = $v['bzsh_no']."<br/><span data-action='wxcprksh' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建成品入库单</span>";
|
|
|
|
|
|
+ //$bzsh_no = $v['bzsh_no']."<br/><span data-action='wxcprksh' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建成品入库单</span>";
|
|
|
|
+ $bzsh_no = $v['bzsh_no'];
|
|
}
|
|
}
|
|
|
|
|
|
$dc_no = empty($v['dc_no'])?" ":$v['dc_no'];
|
|
$dc_no = empty($v['dc_no'])?" ":$v['dc_no'];
|
|
@@ -1256,6 +1259,28 @@ class Zzququeu9 extends Start_Controller {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ public function _bhcprk($arg_array){
|
|
|
|
+ $id = $arg_array[0];
|
|
|
|
+ $info = $this->zzquque_u9->read($id);
|
|
|
|
+ if(empty($info)){
|
|
|
|
+ echo json_encode(array('msg'=>"数据异常,请联系技术",'success'=>false));
|
|
|
|
+ exit;
|
|
|
|
+ }
|
|
|
|
+ if($info['bzsh_status'] != 0){
|
|
|
|
+ echo json_encode(array('msg'=>"当前状态不符合创建成品入库单的条件",'success'=>false));
|
|
|
|
+ exit;
|
|
|
|
+ }
|
|
|
|
+ $res = $this->logic_u9bh->dpCprk($info);
|
|
|
|
+ if($res['code'] == 1){
|
|
|
|
+ echo json_encode(array('msg'=>'创建成品入库单成功','success'=>true));
|
|
|
|
+ exit;
|
|
|
|
+ }else{
|
|
|
|
+ echo json_encode(array('msg'=>$res['msg'],'success'=>false));
|
|
|
|
+ exit;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
public function _gcbhexcel(){
|
|
public function _gcbhexcel(){
|
|
|
|
|
|
|
|
|