|
@@ -373,6 +373,7 @@ class Fullorderexcel extends Start_Controller {
|
|
|
$xdcs = $this->input->get('xdcs',true);
|
|
$xdcs = $this->input->get('xdcs',true);
|
|
|
$xdcs = $this->input->get('xdcs',true);
|
|
$xdcs = $this->input->get('xdcs',true);
|
|
|
$dbapi = $this->input->get('dbapi',true);
|
|
$dbapi = $this->input->get('dbapi',true);
|
|
|
|
|
+ $dbapinocc = $this->input->get('dbapinocc',true);
|
|
|
$orderurl = $this->input->get('orderurl',true);
|
|
$orderurl = $this->input->get('orderurl',true);
|
|
|
$timetk = strtotime($timetk);
|
|
$timetk = strtotime($timetk);
|
|
|
$timetj = strtotime($timetj);
|
|
$timetj = strtotime($timetj);
|
|
@@ -582,6 +583,10 @@ class Fullorderexcel extends Start_Controller {
|
|
|
$feq = str_replace('product_id,',"extra_price as product_id,",$feq);
|
|
$feq = str_replace('product_id,',"extra_price as product_id,",$feq);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ //$dbapi_nocc
|
|
|
|
|
+ if(strpos($feq,'dbapinocc')!= false){
|
|
|
|
|
+ $feq = str_replace('dbapinocc,',"fpdata as dbapinocc,",$feq);
|
|
|
|
|
+ }
|
|
|
$typeclass_lpdl = [];
|
|
$typeclass_lpdl = [];
|
|
|
//料品大类
|
|
//料品大类
|
|
|
if(strpos($feq,'lpdl')!= false){
|
|
if(strpos($feq,'lpdl')!= false){
|
|
@@ -743,6 +748,53 @@ class Fullorderexcel extends Start_Controller {
|
|
|
}
|
|
}
|
|
|
$info_list[$key]['rowtotal'] = $tmp_sub_str;
|
|
$info_list[$key]['rowtotal'] = $tmp_sub_str;
|
|
|
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if(isset($value['dbapinocc'])){
|
|
|
|
|
+
|
|
|
|
|
+ $jmlist_nocc = '';
|
|
|
|
|
+ $classid = $this->classid->sku();
|
|
|
|
|
+ $dbapi = explode(';',trim($value['dbapinocc'],';'));
|
|
|
|
|
+ foreach ($dbapi as $va)
|
|
|
|
|
+ {
|
|
|
|
|
+ $jm_nocc = $classid;
|
|
|
|
|
+ unset($jm_nocc[14]);
|
|
|
|
|
+ $bmpx = array(13=>'',16=>'',18=>'',25=>'',26=>'',41=>'');
|
|
|
|
|
+ $features = str_replace(array('-163-','-164-','-165-','-166-'),'-',$va);
|
|
|
|
|
+ $ts = explode('|',trim($features,'|'));
|
|
|
|
|
+ if(stripos($ts[0],',') !== false)
|
|
|
|
|
+ {
|
|
|
|
|
+ $ft = explode(',',$ts[0]);
|
|
|
|
|
+ $features = explode('-',trim($ft[1],'-'));
|
|
|
|
|
+ $features[] = $ft[0];
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ $features = explode('-',trim($ts[0],'-'));
|
|
|
|
|
+ }
|
|
|
|
|
+ foreach($features as $k=>$v)
|
|
|
|
|
+ {
|
|
|
|
|
+ if($v != 0 && isset($typeclass[$v]))
|
|
|
|
|
+ {
|
|
|
|
|
+
|
|
|
|
|
+ if(isset($jm_nocc[$typeclass[$v]['classid']]))
|
|
|
|
|
+ {
|
|
|
|
|
+ if($typeclass[$v]['jm'])
|
|
|
|
|
+ {
|
|
|
|
|
+ $jm_nocc[$typeclass[$v]['classid']] = $typeclass[$v]['jm'];
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ $jm_nocc = array_filter($jm_nocc);//去除空值
|
|
|
|
|
+ $jm_nocc = implode("-",$jm_nocc);
|
|
|
|
|
+ $jmlist_nocc .= $jm_nocc.'<br>';
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ $info_list[$key]['dbapinocc'] = $jmlist_nocc ;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
if(isset($value['lpdl'])){
|
|
if(isset($value['lpdl'])){
|
|
|
$tmp_lpdl_str ="";
|
|
$tmp_lpdl_str ="";
|