|
@@ -45,6 +45,7 @@ class Fullordertt extends Start_Controller {
|
|
|
$this->load->_model("Model_logic_order","logic_order");
|
|
$this->load->_model("Model_logic_order","logic_order");
|
|
|
$this->load->_model("Model_excelnew",'excelnew');
|
|
$this->load->_model("Model_excelnew",'excelnew');
|
|
|
$this->load->_model("Model_fullordererrors","fullordererrors");
|
|
$this->load->_model("Model_fullordererrors","fullordererrors");
|
|
|
|
|
+ $this->load->_model("Model_express_tt","express_tt");
|
|
|
}
|
|
}
|
|
|
//定义方法的调用规则 获取URI第二段值
|
|
//定义方法的调用规则 获取URI第二段值
|
|
|
public function _remap($arg,$arg_array)
|
|
public function _remap($arg,$arg_array)
|
|
@@ -241,6 +242,9 @@ class Fullordertt extends Start_Controller {
|
|
|
{
|
|
{
|
|
|
$this->_pljzzd();
|
|
$this->_pljzzd();
|
|
|
}
|
|
}
|
|
|
|
|
+ else if($arg == 'cbtlabel'){
|
|
|
|
|
+ $this->_cbtlabel($arg_array);
|
|
|
|
|
+ }
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
$this->_index();
|
|
$this->_index();
|
|
@@ -719,7 +723,7 @@ class Fullordertt extends Start_Controller {
|
|
|
if($ud['express'] == 83){
|
|
if($ud['express'] == 83){
|
|
|
$extra_text = json_decode($ud['extra_text'],true);
|
|
$extra_text = json_decode($ud['extra_text'],true);
|
|
|
if(!isset($extra_text['label_info'])){
|
|
if(!isset($extra_text['label_info'])){
|
|
|
- $info_list[$key]['black'] .= "<p><b class='create_label' data-id='".$value['id']."'>创建CBT发货标签</b></p>";
|
|
|
|
|
|
|
+ $info_list[$key]['black'] .= "<p><b class='create_label' data-id='".$value['id']."'>创建CBT面单</b></p>";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
$tly = "";
|
|
$tly = "";
|
|
@@ -6589,4 +6593,28 @@ class Fullordertt extends Start_Controller {
|
|
|
echo json_encode(array('del'=>$id_arr,'msg'=>'操作成功,已暂时隐藏,可继续操作其它订单,刷新即可显示!','success'=>true));
|
|
echo json_encode(array('del'=>$id_arr,'msg'=>'操作成功,已暂时隐藏,可继续操作其它订单,刷新即可显示!','success'=>true));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ public function _cbtlabel($arg_array){
|
|
|
|
|
+ $id = $arg_array[0];
|
|
|
|
|
+ $info = $this->fullordertt->read($id);
|
|
|
|
|
+ if(empty($info)){
|
|
|
|
|
+ echo json_encode(array('msg'=>'订单不存在!','success'=>false));exit;
|
|
|
|
|
+ }
|
|
|
|
|
+ $extra_text = json_decode($info['extra_text'],true);
|
|
|
|
|
+ if(isset($extra_text['label_info'])){
|
|
|
|
|
+ echo json_encode(array('msg'=>'发货标签已执行,请勿重复操作!','success'=>false));exit;
|
|
|
|
|
+ }
|
|
|
|
|
+ $shop_info = $this->shop->read($info['shop']);
|
|
|
|
|
+ if(empty($shop_info)){
|
|
|
|
|
+ echo json_encode(array('msg'=>'店铺不存在!','success'=>false));exit;
|
|
|
|
|
+ }
|
|
|
|
|
+ $res = $this->express_tt->doCreateCBTLabel($info,$shop_info);
|
|
|
|
|
+ if($res['x'] == 0){
|
|
|
|
|
+ $msg = isset($res['Description'])?$res['Description']:$res['message'];
|
|
|
|
|
+ echo json_encode(array('msg'=>$msg,'success'=>false));exit;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ echo json_encode(array('msg'=>'操作成功','success'=>true));exit;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|