Ver código fonte

添加tiktok的shipping的快递承运商选择

lvhao 4 dias atrás
pai
commit
be7d4d3f1c

+ 16 - 0
core/CoreApp/controllers/Fullordertt.php

@@ -1543,6 +1543,22 @@ class Fullordertt extends Start_Controller {
 			$product = $a;
 		}
 		$this->data['product'] = $product;
+		if(in_array($fullordertt['express'],[83,85])){
+			if(empty($fullordertt['extra_text'])){
+				$this->data['serve_list'] = [];
+			}else{
+				$extra_info = json_decode($fullordertt['extra_text'],true);
+				if(isset($extra_info['server_info'])){
+					$this->data['serve_list'] = $extra_info['server_info']['shipping_services'];
+				}else{
+					$this->data['serve_list'] = [];
+				}
+			}
+		}else{
+			$this->data['serve_list'] = [];
+		}
+
+
 		$out = $this->systemtransfer->find_all("number = '".$fullordertt['number']."'");
 				$outread = '';
 				if($out)

+ 13 - 0
template/erp/fullordertt_edit.html

@@ -588,6 +588,19 @@
 	{/if}
 {/if}
 </li>
+
+
+{if in_array($fullordertt['express'],[83,85])}
+<li class="length">
+	<em>快递承运商:</em>
+	<select name="ttsp_xz"  class="select class">
+		{loop $serve_list as $key=>$val}
+		<option value="{$key}" {if $key == $fullordertt['ttsp_xz']} selected  {/if}>{$val['shipping_provider_name']} -- {$val['name']} -- {$val['price']}</option>
+		{/loop}
+	</select>
+</li>
+{/if}
+
 <!-- DHL官方 如果是墨西哥或巴西 必须填写收件人的税号 -->
 {if ( in_array($fullordertt['country'],[119 ]) && $fullordertt['express'] == 1)}
 <li class = "r_tax_id " >