Authored by caoyan

订单管理

... ... @@ -407,7 +407,7 @@ function getAlreadyJudgedList(){
return "<a role='buyerReceiveInfo' dataId='"+ rowData.orderCode +"' style='margin-left:10px;background-color: #5cb85c !important;'>买家收货地址</a>" +
"<a role='viewExpress' dataId='"+ rowData.orderCode +"' style='margin-left:10px;background-color: #5cb85c !important;'>查看物流</a>";
} else if (rowData.status == 13) {//鉴定不通过
return "<a role='rebackAddress' skup='"+ rowData.skup +"' style='margin-left:10px;background-color: #5cb85c !important;'>商品寄回地址</a>"+
return "<a role='rebackAddress' dataId='"+ rowData.orderCode +"' skup='"+ rowData.skup +"' style='margin-left:10px;background-color: #5cb85c !important;'>商品寄回地址</a>"+
"<a role='viewExpress' dataId='"+ rowData.orderCode + "' style='margin-left:10px;background-color: #5cb85c !important;'>查看物流</a>";
}
}
... ... @@ -428,6 +428,8 @@ function getAlreadyJudgedList(){
$(this).datagrid("getPanel").find("a[role='rebackAddress']").linkbutton({
onClick: function () {
var buyerOrderCode = $(this).attr("dataId");
$("#buyerOrderCode").val(buyerOrderCode);
var skup = $(this).attr("skup");
$("#skup").val(skup);
rebackAddressPage();
... ...
... ... @@ -51,6 +51,7 @@
function getRebackAddress(){
var form = new FormData();
form.append("skup", document.getElementById("skup").value);
form.append("orderCode", document.getElementById("buyerOrderCode").value)
//发送请求
$.ajax({
type: "POST",
... ...