소스 검색

修改信息独立战的产品ID展示

lvhao 2 주 전
부모
커밋
20fb64583d
2개의 변경된 파일15개의 추가작업 그리고 5개의 파일을 삭제
  1. 7 3
      core/CoreApp/controllers/Fullorder.php
  2. 8 2
      template/erp/fullorder_edit.html

+ 7 - 3
core/CoreApp/controllers/Fullorder.php

@@ -1728,16 +1728,20 @@ class Fullorder extends Start_Controller {
 		$this->data['qc'] = $qc;
 
 		//新增row_total和sub_total
-		$row_total = $sub_total = "";
+		$product_ids = $row_total = $sub_total = "";
 		if(!empty($fullorder['extra_price'])){
 			$extra_price = json_decode($fullorder['extra_price'],true);
 			foreach($extra_price as $k=>$v){
 				$row_total .= sprintf("%.2f",($v['qty']* $v['price'])).";";
 				$sub_total .= sprintf("%.2f",$v['sub_total']).";";
+				if(!empty($v['product_id'])){
+					$product_ids .= $v['product_id'].";";
+				}
 			}
 		}
-		$this->data['row_total'] = trim($row_total,",");
-		$this->data['sub_total'] = trim($sub_total,",");
+		$this->data['row_total'] = trim($row_total,";");
+		$this->data['sub_total'] = trim($sub_total,";");
+		$this->data['product_ids'] = trim($product_ids,";");
 		$this->_Template('fullorder_edit',$this->data);
 	}
 	//不可修改

+ 8 - 2
template/erp/fullorder_edit.html

@@ -242,12 +242,18 @@
 <b>{$fullorder['issku']}</b>
 </li>
 {/if}
-<li>
+
+<li class="lengththree">
+	<em>产品ID:</em>
+	<b >{$product_ids}</b>
+</li>
+	
+<li  class="lengththree">
 <em>Subtotal:</em>
 <b >{$sub_total}</b>
 </li>
 
-<li>
+<li  class="lengththree">
 <em>Row Total:</em>
 <b >{$row_total}</b>
 </li>