...
|
...
|
@@ -91,7 +91,20 @@ |
|
|
ccc = window.confirm('确定发货?');
|
|
|
if(ccc){
|
|
|
$.post("{:url('Bird/createOrder')}",{indent_id:id},function(data){
|
|
|
|
|
|
if(data == '缺少必要参数'){
|
|
|
alert('缺少必要参数');
|
|
|
}else if(data == '未查询到该订单'){
|
|
|
alert('未查询到该订单');
|
|
|
}else if(data == '该订单不是待发货状态'){
|
|
|
alert('该订单不是待发货状态');
|
|
|
}else{
|
|
|
data = JSON.parse(data);
|
|
|
if(data.code == '20000'){
|
|
|
alert('发货成功');
|
|
|
}else if(data.code == '40000'){
|
|
|
alert('发货失败');
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
...
|
...
|
|