فهرست منبع

测试其他高级

lvhao 6 ماه پیش
والد
کامیت
057393252e
1فایلهای تغییر یافته به همراه25 افزوده شده و 2 حذف شده
  1. 25 2
      core/CoreApp/controllers/Bosstest.php

+ 25 - 2
core/CoreApp/controllers/Bosstest.php

@@ -1245,6 +1245,16 @@ class Bosstest extends Start_Controller {
 							}else{
 							    $sp[$title[1]]['warehouse'][$val['type']] = $title[2];
 							}
+							//美仓
+							if($val['type'] == 5){
+								$sp[$title[1]]['mc'] +=  $title[2];
+							}elseif($val['type'] == 13){//许昌仓
+								$sp[$title[1]]['xcc'] +=  $title[2];
+							}elseif($val['type'] == 16){//定制仓
+								$sp[$title[1]]['dzc'] +=  $title[2];
+							}else{
+								$sp[$title[1]]['qtc'] +=  $title[2];
+							}
 						}
 						else
 						{
@@ -1253,7 +1263,17 @@ class Bosstest extends Start_Controller {
 							$whs = (isset($wsku[0]['sku']))?$wsku[0]['sku']:'';
 							$sp[$title[1]] = array('t'=>$title[1],'z'=>$zh,'w'=>$whs,'j'=>$jm,'n'=>$title[2],"warehouse"=>[
 							        $val['type'] =>$title[2],
-							    ],"warehouse_show"=>"");
+							    ],"warehouse_show"=>"","xcc"=>0,"mc"=>0,"dzc"=>0,"qtc"=>0);
+							//美仓
+							if($val['type'] == 5){
+								$sp[$title[1]]['mc'] =  $title[2];
+							}elseif($val['type'] == 13){//许昌仓
+								$sp[$title[1]]['xcc'] =  $title[2];
+							}elseif($val['type'] == 16){//定制仓
+								$sp[$title[1]]['dzc'] =  $title[2];
+							}else{
+								$sp[$title[1]]['qtc'] =  $title[2];
+							}
 						}
 					}
 				}
@@ -1274,7 +1294,10 @@ class Bosstest extends Start_Controller {
 			<td>SKU</td>
 			<td>用友料号</td>
             <td>数量</td>
-			<td>仓库</td>
+			<td>许昌仓订单销售发货量</td>
+			<td>美仓订单发货量</td>
+			<td>定制仓订单发货量</td>
+			<td>其他订单发货量</td>
             </tr>
             </table>"; 
             $filename = $title.".xls";