ShuanghongS 1 рік тому
батько
коміт
f815156adb
1 змінених файлів з 4 додано та 4 видалено
  1. 4 4
      service/ocean_order.class.php

+ 4 - 4
service/ocean_order.class.php

@@ -1273,7 +1273,7 @@ class ocean_order {
         $simplexData = array();
         //place_of_Receipt
         $place_of_Receipt_stauts =  array("index" =>1,"label" =>"Place of Receipt",
-            "path" =>$ocean['place_of_receipt_exp']."/".$ocean['place_of_receipt'],"isArrival" =>$state >= 1 ? true : false);
+            "path" =>$ocean['place_of_receipt_exp']."/".$ocean['place_of_receipt'],"isArrival" =>$state >= 0 ? true : false);
         $children = array();  
         if($state >= 1 && !empty($ocean_milestone_status_code['IFFREC']['act_date'])){
             //发生后,未发生前没有
@@ -1284,7 +1284,7 @@ class ocean_order {
 
         //port_of_Loading
         $port_of_Loading_stauts = array("index" =>2,"label" =>"Port of Loading",
-            "path" =>$ocean['fport_of_loading_exp_exp']."/".$ocean['fport_of_loading_exp'],"isArrival" =>$state >= 2 ? true : false);
+            "path" =>$ocean['fport_of_loading_exp_exp']."/".$ocean['fport_of_loading_exp'],"isArrival" =>$state >= 1 ? true : false);
         $children = array();  
         if ($state <= 1){
             //未发生前
@@ -1307,7 +1307,7 @@ class ocean_order {
 
         //Port of Discharge
         $port_of_Discharge_status = array("index" =>3,"label" =>"Port of Discharge",
-            "path" =>$ocean['mport_of_discharge_exp']."/".$ocean['mport_of_discharge'],"isArrival" =>$state >= 3 ? true : false);
+            "path" =>$ocean['mport_of_discharge_exp']."/".$ocean['mport_of_discharge'],"isArrival" =>$state >= 2 ? true : false);
         $children = array(); 
         if ($state <= 2){
             //未发生前
@@ -1327,7 +1327,7 @@ class ocean_order {
 
         //Place of Delivery
         $place_of_Delivery_status = array("index" =>4,"label" =>"Place of Delivery",
-            "path" =>$ocean['place_of_delivery_exp']."/".$ocean['place_of_delivery'],"isArrival" =>$state == 4 ? true : false);
+            "path" =>$ocean['place_of_delivery_exp']."/".$ocean['place_of_delivery'],"isArrival" =>$state == 3 ? true : false);
         $children = array(); 
         if ($state <= 3){
             //未发生前