|
@@ -21,6 +21,8 @@ class Warehouse extends Start_Controller {
|
|
|
$this->load->_model("Model_logic_order",'logic_order');
|
|
$this->load->_model("Model_logic_order",'logic_order');
|
|
|
$this->load->_model("Model_logic_ding","logic_ding");
|
|
$this->load->_model("Model_logic_ding","logic_ding");
|
|
|
$this->load->_model('Model_fullorderamz','fullorderamz');
|
|
$this->load->_model('Model_fullorderamz','fullorderamz');
|
|
|
|
|
+ $this->load->_model('Model_logic_zhlp','logic_zhlp');
|
|
|
|
|
+ $this->load->_model("Model_logic_u9tools","logic_u9tools");
|
|
|
}
|
|
}
|
|
|
//定义方法的调用规则 获取URI第二段值
|
|
//定义方法的调用规则 获取URI第二段值
|
|
|
public function _remap($arg,$arg_array)
|
|
public function _remap($arg,$arg_array)
|
|
@@ -1036,7 +1038,74 @@ class Warehouse extends Start_Controller {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 常规品 带MShaped字眼 带Upgraded MShaped(Lagos Hairline)字眼(M发际线升级版)
|
|
|
|
|
+ // 2468 2608 这个是头套的 判断的
|
|
|
|
|
+ if(stripos($cp,'-128-') !== false){
|
|
|
|
|
+ $sku = trim($cp,'-');
|
|
|
|
|
+ $sku = str_replace(',','-',$sku);
|
|
|
|
|
+ $sku = str_replace('--','-',$sku);
|
|
|
|
|
+ $tmp_arr = explode('-',$sku);
|
|
|
|
|
+ $tmp_arr = $this->logic_zhlp->transferSku($tmp_arr);
|
|
|
|
|
+ //判断是否 有50
|
|
|
|
|
+ if(isset($tmp_arr[50])){
|
|
|
|
|
+ $arr_no = $arr_2468 = $arr_2608 =$tmp_arr;
|
|
|
|
|
+ unset($arr_no[50]);
|
|
|
|
|
+ $arr_2468[50] = 2468;
|
|
|
|
|
+ $arr_2608[50] = 2608;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $arr_no = $arr_2468 = $arr_2608 =$tmp_arr;
|
|
|
|
|
+ $arr_2468[50] = 2468;
|
|
|
|
|
+ $arr_2608[50] = 2608;
|
|
|
|
|
+ }
|
|
|
|
|
+ $res = $this->logic_zhlp->sortByClass($arr_no);
|
|
|
|
|
+ $fianal_arr_no = $res['data'];
|
|
|
|
|
|
|
|
|
|
+ $res = $this->logic_zhlp->sortByClass($arr_2468);
|
|
|
|
|
+ $fianal_arr_2468 = $res['data'];
|
|
|
|
|
+ $res = $this->logic_zhlp->sortByClass($arr_2608);
|
|
|
|
|
+ $fianal_arr_2608 = $res['data'];
|
|
|
|
|
+ $final_size = $fianal_arr_no[14];
|
|
|
|
|
+ unset($fianal_arr_no[14]);
|
|
|
|
|
+ unset($fianal_arr_2468[14]);
|
|
|
|
|
+ unset($fianal_arr_2608[14]);
|
|
|
|
|
+ $final_str_no = $final_size.",-".implode("-",$fianal_arr_no)."-";
|
|
|
|
|
+ $final_str_2468 = $final_size.",-".implode("-",$fianal_arr_2468)."-";
|
|
|
|
|
+ $final_str_2608 = $final_size.",-".implode("-",$fianal_arr_2608)."-";
|
|
|
|
|
+
|
|
|
|
|
+ $do_str_no = $this->logic_u9tools->getGoodFeatureAlone($final_str_no);
|
|
|
|
|
+ $do_str_2468 = $this->logic_u9tools->getGoodFeatureAlone($final_str_2468);
|
|
|
|
|
+ $do_str_2608 = $this->logic_u9tools->getGoodFeatureAlone($final_str_2608);
|
|
|
|
|
+ //非M发际线/2468 M发际线/2608 M发际线升级版有货
|
|
|
|
|
+ if(stripos($cp,'-2468-') !== false){
|
|
|
|
|
+ $num_no = $this->whlabel->find_count("state = '0' and features = '$do_str_no' and warehouse = '".$v['id']."' and zd = '' and (shop IS NULL or shop = '' or shop like '%,".$shop.",%')");
|
|
|
|
|
+ $num_2608 = $this->whlabel->find_count("state = '0' and features = '$do_str_2608' and warehouse = '".$v['id']."' and zd = '' and (shop IS NULL or shop = '' or shop like '%,".$shop.",%')");
|
|
|
|
|
+ if($num_no > 0){
|
|
|
|
|
+ $hdtx .= $v['title'].' - 非M发际线有货*'.$num_no.';';
|
|
|
|
|
+ }
|
|
|
|
|
+ if($num_2608 > 0){
|
|
|
|
|
+ $hdtx .= $v['title'].' - M发际线升级版有货*'.$num_2608.';';
|
|
|
|
|
+ }
|
|
|
|
|
+ }elseif(stripos($cp,'-2608-') !== false){
|
|
|
|
|
+ $num_no = $this->whlabel->find_count("state = '0' and features = '$do_str_no' and warehouse = '".$v['id']."' and zd = '' and (shop IS NULL or shop = '' or shop like '%,".$shop.",%')");
|
|
|
|
|
+ $num_2468 = $this->whlabel->find_count("state = '0' and features = '$do_str_2468' and warehouse = '".$v['id']."' and zd = '' and (shop IS NULL or shop = '' or shop like '%,".$shop.",%')");
|
|
|
|
|
+ if($num_no > 0){
|
|
|
|
|
+ $hdtx .= $v['title'].' - 非M发际线有货*'.$num_no.';';
|
|
|
|
|
+ }
|
|
|
|
|
+ if($num_2468 > 0){
|
|
|
|
|
+ $hdtx .= $v['title'].' - M发际线有货*'.$num_2468.';';
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $num_2608 = $this->whlabel->find_count("state = '0' and features = '$do_str_2608' and warehouse = '".$v['id']."' and zd = '' and (shop IS NULL or shop = '' or shop like '%,".$shop.",%')");
|
|
|
|
|
+ $num_2468 = $this->whlabel->find_count("state = '0' and features = '$do_str_2468' and warehouse = '".$v['id']."' and zd = '' and (shop IS NULL or shop = '' or shop like '%,".$shop.",%')");
|
|
|
|
|
+ if($num_2608 > 0){
|
|
|
|
|
+ $hdtx .= $v['title'].' - M发际线升级版有货*'.$num_2608.';';
|
|
|
|
|
+ }
|
|
|
|
|
+ if($num_2468 > 0){
|
|
|
|
|
+ $hdtx .= $v['title'].' - M发际线有货*'.$num_2468.';';
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
if(stripos($cp,'-935-') !== false || stripos($cp,'-854-') !== false)//#P4/27/613 #P4/613
|
|
if(stripos($cp,'-935-') !== false || stripos($cp,'-854-') !== false)//#P4/27/613 #P4/613
|