Bläddra i källkod

为了惠城暗埋是提交有邮箱

lvhao 3 månader sedan
förälder
incheckning
bb07a902db
2 ändrade filer med 11 tillägg och 0 borttagningar
  1. 6 0
      core/CoreApp/controllers/Fullordersmt.php
  2. 5 0
      template/erp/fullordersmt_edit.html

+ 6 - 0
core/CoreApp/controllers/Fullordersmt.php

@@ -899,6 +899,9 @@ class Fullordersmt extends Start_Controller {
 			{
 				echo json_encode(array('msg'=>'等待发货状态才可选择美仓!','success'=>false));exit;
 			}
+			if($post['express'] == 52 && empty($post['email'])){
+				echo json_encode(array('msg'=>'惠程安迈世发货需要有邮箱!','success'=>false));exit;
+			}
 			if($post['express'] == '2' && $post['bx'] > 0)
 			{
 				echo json_encode(array('msg'=>'此物流不允许购买保险','success'=>false));exit;
@@ -3543,6 +3546,9 @@ class Fullordersmt extends Start_Controller {
 			{
 				echo json_encode(array('msg'=>'不允许修改运单号','success'=>true));exit;
 			}
+			if($post['express'] == 52 && empty($post['email'])){
+				echo json_encode(array('msg'=>'惠程安迈世发货需要有邮箱!','success'=>false));exit;
+			}
 			$thisdata =  $data;
 			$warehouse = $this->warehouse->read($thisdata['type']);
 			$warehousenew = $this->warehouse->read($post['type']);

+ 5 - 0
template/erp/fullordersmt_edit.html

@@ -263,6 +263,11 @@
 <b>{if $fullordersmt['state'] == 1}无{else}{$fullordersmt['fullname']}{/if}</b>
 </li>
 
+<li>
+	<em>邮箱:</em>
+	<input name="email" value="{$fullordersmt['email']}" type="text">
+	</li>
+	
 <li>
 <em>国家:</em>
 <select name="country" class="select class">