lvhao 2 dní pred
rodič
commit
2cc84694f9

+ 3 - 0
core/CoreApp/controllers/Fullorderabf.php

@@ -236,6 +236,9 @@ class Fullorderabf extends Start_Controller {
 			{
 			{
 				$sar .= $saddress[$i].',';
 				$sar .= $saddress[$i].',';
 			}
 			}
+      if(empty($post['ts'])){
+        echo json_encode(array('msg'=>'申报条数不能为空!','success'=>false));exit;
+      }
 			$post['baddress'] = rtrim($bar,',');//卖家保障
 			$post['baddress'] = rtrim($bar,',');//卖家保障
 			$post['saddress'] = rtrim($sar,',');//卖家保障
 			$post['saddress'] = rtrim($sar,',');//卖家保障
 			$whlabel = $this->input->post('whlabel',true);
 			$whlabel = $this->input->post('whlabel',true);

+ 2 - 0
template/erp/fullorder.html

@@ -159,6 +159,8 @@
 {if $power ==1}<a href="javascript:void(0);" class="dcdxyz">导出多运单号订单</a>
 {if $power ==1}<a href="javascript:void(0);" class="dcdxyz">导出多运单号订单</a>
 <a href="javascript:void(0);" class="thxz">导出退货订单</a>
 <a href="javascript:void(0);" class="thxz">导出退货订单</a>
 {/if}
 {/if}
+
+<a href="javascript:void(0);" class="window" data-h="/fullorderabf/yjtj/" data-t="一键添加订单">一键添加订单</a>
 </div>
 </div>
 <table class="datatitle data" border="0" style="border-collapse:collapse;">
 <table class="datatitle data" border="0" style="border-collapse:collapse;">
 <tr>
 <tr>

+ 2 - 2
template/erp/fullorderabf_yjtj.html

@@ -294,7 +294,7 @@
 
 
 <li class="lengththree">
 <li class="lengththree">
 <em>条数:</em>
 <em>条数:</em>
-<input name="ts" class="must" value="1" type="text">
+<input name="ts" class="must" value="" type="text">
 </li>
 </li>
 
 
 <li class="lengththree">
 <li class="lengththree">
@@ -304,7 +304,7 @@
 
 
 <li class="lengththree">
 <li class="lengththree">
 <em>总申报价:</em>
 <em>总申报价:</em>
-<input name="zsbjz" class="must" value="1" type="text">
+<input name="zsbjz" class="must" value="" type="text">
 </li>
 </li>
 
 
 <li class="lengththree">
 <li class="lengththree">