Procházet zdrojové kódy

提交店铺订单前缀

lvhao před 6 dny
rodič
revize
d5398ed842

+ 10 - 0
core/CoreApp/controllers/Fullorderexcel.php

@@ -588,6 +588,13 @@ 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);
 				}
 				}
 			}
 			}
+			//添加订单前缀
+			$shopqz_list = [];
+			if(strpos($feq,'shopqz') != false){
+				$feq = str_replace('shopqz,',"shop as shopqz,",$feq);
+				$shop_list = $this->shop->find_all("1 = 1","id,shortname");
+				$shopqz_list = array_column($shop_list,'shortname','id');
+			}
 			$tt_cate_one = [];
 			$tt_cate_one = [];
 			$tt_cate_two = [];
 			$tt_cate_two = [];
 			if($sj == 'fullordertt'){
 			if($sj == 'fullordertt'){
@@ -773,6 +780,9 @@ class Fullorderexcel extends Start_Controller {
 					$info_list[$key]['rowtotal'] = $tmp_sub_str;
 					$info_list[$key]['rowtotal'] = $tmp_sub_str;
 
 
 				}
 				}
+				if(isset($value['shopqz'])){
+					$info_list[$key]['shopqz'] = isset($shopqz_list[$value['shopqz']])?$shopqz_list[$value['shopqz']]:'';
+				}
 
 
 				if(isset($value['dbapinocc'])){
 				if(isset($value['dbapinocc'])){
 					
 					

+ 3 - 1
template/erp/fullorderexcel_add.html

@@ -301,7 +301,9 @@
 				<li id="kong">
 				<li id="kong">
 					<font>空内容</font><i class="fa fa-plus"></i>
 					<font>空内容</font><i class="fa fa-plus"></i>
 				</li>
 				</li>
-
+				<li id="shopqz">
+					<font>店铺简码</font><i class="fa fa-plus"></i>
+				</li>
 			</ul>
 			</ul>
 			<ul id="c2" class="fuexcel" style="width:320px;float:right">
 			<ul id="c2" class="fuexcel" style="width:320px;float:right">
 			</ul>
 			</ul>

+ 3 - 1
template/erp/fullorderexcel_edit.html

@@ -304,7 +304,9 @@
 				<li id="kong">
 				<li id="kong">
 					<font>空内容</font><i class="fa fa-plus"></i>
 					<font>空内容</font><i class="fa fa-plus"></i>
 				</li>
 				</li>
-
+				<li id="shopqz">
+					<font>店铺简码</font><i class="fa fa-plus"></i>
+				</li>
 			</ul>
 			</ul>
 			<ul id="c2" class="fuexcel" style="width:320px;float:right">
 			<ul id="c2" class="fuexcel" style="width:320px;float:right">
 			</ul>
 			</ul>