Pārlūkot izejas kodu

订单、工单导出问题

zgg 4 mēneši atpakaļ
vecāks
revīzija
dcdb757da9

+ 2 - 2
application/admin/controller/Orders.php

@@ -2477,8 +2477,8 @@ class Orders extends Auth {
                         foreach ($lists[$i]['cons'] as $kk=>$vv){
 //                            $consstr[] = $vv['title'].'_'.$vv['total'].'_'.$vv['money']."_".$vv['total_money']."_".$vv['realName'];
                             $goodsName.= $vv['title']."\r\n";
-                            $goodsPrice.= $vv['total']."\r\n";
-                            $goodsNum.= $vv['money']."\r\n";
+                            $goodsPrice.= $vv['money']."\r\n";
+                            $goodsNum.= $vv['total']."\r\n";
                             $goodsTotal.= $vv['total_money']."\r\n";
                         }
                         $objPHPExcel->getActiveSheet()->setCellValue('I' . ($i + 2), $goodsName);

+ 2 - 2
application/admin/controller/Todo.php

@@ -696,8 +696,8 @@ class Todo extends Auth
 
                         foreach ($lists[$i]['cons'] as $kk=>$vv){
                             $goodsName.= $vv['title']."\r\n";
-                            $goodsPrice.= $vv['total']."\r\n";
-                            $goodsNum.= $vv['money']."\r\n";
+                            $goodsPrice.= $vv['money']."\r\n";
+                            $goodsNum.= $vv['total']."\r\n";
                             $goodsTotal.= $vv['total_money']."\r\n";
                         }
                         $objPHPExcel->getActiveSheet()->setCellValue('W' . ($i + 2), $goodsName);