...
|
...
|
@@ -20,6 +20,41 @@ |
|
|
</select>
|
|
|
</div>
|
|
|
<div id="tt" class="easyui-tabs">
|
|
|
<div id="tab_2" title="待收货" style="padding:20px;display:none;">
|
|
|
<div>
|
|
|
<label>订单编号:</label>
|
|
|
<input id="orderCode_2" type="text" class="easyui-textbox" style="width:150px">
|
|
|
|
|
|
<label>买家UID:</label>
|
|
|
<input id="buyerUid_2" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label>卖家快递单号:</label>
|
|
|
<input id="sellerWaybillCode_2" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label>订单状态:</label>
|
|
|
<select id="status_2" class="easyui-combobox" style="width:250px;" >
|
|
|
<option value="">全部</option>
|
|
|
<option value="2">卖家已发货</option>
|
|
|
</select>
|
|
|
|
|
|
<br>
|
|
|
|
|
|
<label>商品编码:</label>
|
|
|
<input id="productId_2" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label> SKU:</label>
|
|
|
<input id="sku_2" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label> 手机号:</label>
|
|
|
<input id="mobile_2" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label> SKU-P:</label>
|
|
|
<input id="skup_2" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<a id="searchBtn_2" class="btn-info">查询</a>
|
|
|
<a id="allBtn_2" class="btn-success">全部</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="tab_0" title="待鉴定" style="padding:20px;display:none;">
|
|
|
<div>
|
|
|
<label>订单编号:</label>
|
...
|
...
|
@@ -34,9 +69,8 @@ |
|
|
<label>订单状态:</label>
|
|
|
<select id="status_0" class="easyui-combobox" style="width:250px;" >
|
|
|
<option value="">全部</option>
|
|
|
<option value="2">卖家已发货</option>
|
|
|
<option value="31">平台已收货</option>
|
|
|
<option value="3">平台鉴定中</option>
|
|
|
<option value="17">已取消(买家在卖家发货后取消订单)</option>
|
|
|
</select>
|
|
|
|
|
|
<br>
|
...
|
...
|
@@ -57,7 +91,8 @@ |
|
|
<a id="allBtn_0" class="btn-success">全部</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="tab_1" title="鉴定完成" style="overflow:auto;padding:20px;display:none;">
|
|
|
|
|
|
<div id="tab_1" title="待发货" style="padding:20px;display:none;">
|
|
|
<div>
|
|
|
<label>订单编号:</label>
|
|
|
<input id="orderCode_1" type="text" class="easyui-textbox" style="width:150px">
|
...
|
...
|
@@ -68,17 +103,18 @@ |
|
|
<label>卖家快递单号:</label>
|
|
|
<input id="sellerWaybillCode_1" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label>鉴定结果:</label>
|
|
|
<select id="status_1" class="easyui-combobox" style="width:100px;" >
|
|
|
<label>订单状态:</label>
|
|
|
<select id="status_1" class="easyui-combobox" style="width:250px;" >
|
|
|
<option value="">全部</option>
|
|
|
<option value="4">鉴定通过</option>
|
|
|
<option value="13">鉴定不通过</option>
|
|
|
<option value="32">平台鉴定通过</option>
|
|
|
<option value="13">已取消(商品鉴定不通过)</option>
|
|
|
<option value="17">已取消(买家在卖家发货后取消订单)</option>
|
|
|
</select>
|
|
|
|
|
|
<br>
|
|
|
|
|
|
<label>商品编码:</label>
|
|
|
<input id="productId_1" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
<input id="productId_1" type="text" class="easyui-textbox" style="width:250px"/>
|
|
|
|
|
|
<label> SKU:</label>
|
|
|
<input id="sku_1" type="text" class="easyui-textbox" style="width:150px"/>
|
...
|
...
|
@@ -93,6 +129,45 @@ |
|
|
<a id="allBtn_1" class="btn-success">全部</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div id="tab_3" title="完成" style="padding:20px;display:none;">
|
|
|
<div>
|
|
|
<label>订单编号:</label>
|
|
|
<input id="orderCode_3" type="text" class="easyui-textbox" style="width:150px">
|
|
|
|
|
|
<label>买家UID:</label>
|
|
|
<input id="buyerUid_3" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label>卖家快递单号:</label>
|
|
|
<input id="sellerWaybillCode_3" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label>订单状态:</label>
|
|
|
<select id="status_3" class="easyui-combobox" style="width:250px;" >
|
|
|
<option value="">全部</option>
|
|
|
<option value="4">平台已发货</option>
|
|
|
<option value="13">已取消(商品鉴定不通过)</option>
|
|
|
<option value="17">已取消(买家在卖家发货后取消订单)</option>
|
|
|
</select>
|
|
|
|
|
|
<br>
|
|
|
|
|
|
<label>商品编码:</label>
|
|
|
<input id="productId_3" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label> SKU:</label>
|
|
|
<input id="sku_3" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label> 手机号:</label>
|
|
|
<input id="mobile_3" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label> SKU-P:</label>
|
|
|
<input id="skup_3" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<a id="searchBtn_3" class="btn-info">查询</a>
|
|
|
<a id="allBtn_3" class="btn-success">全部</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
...
|
...
|
@@ -108,25 +183,38 @@ $(function() { |
|
|
$("#depotNo").combobox({
|
|
|
onChange : function(newValue, oldValue){
|
|
|
getCountByJudgeStatus();
|
|
|
var depotNo = $("#depotNo").combobox("getValue");
|
|
|
$("#orderListTable").datagrid("reload", {
|
|
|
statusStr : "2,3,17",
|
|
|
depotNo : depotNo
|
|
|
});
|
|
|
//$("#tt").panel('refresh');
|
|
|
var tab = $('#tt').tabs('getSelected');
|
|
|
var index = $('#tt').tabs('getTabIndex',tab);
|
|
|
tabsSelected(index);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
$("#searchBtn_2").linkbutton({
|
|
|
iconCls : "icon-search",
|
|
|
onClick : function() {
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr : "2",
|
|
|
status : $("#status_2").myCombobox("getValue"),
|
|
|
orderCode : $("#orderCode_2").val(),
|
|
|
uid : $("#buyerUid_2").val(),
|
|
|
productId : $("#productId_2").val(),
|
|
|
skup : $("#skup_2").val(),
|
|
|
sellerWaybillCode : $("#sellerWaybillCode_2").val(),
|
|
|
mobile : $("#mobile_2").val(),
|
|
|
depotNo : $("#depotNo").combobox("getValue")
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$("#searchBtn_0").linkbutton({
|
|
|
iconCls : "icon-search",
|
|
|
onClick : function() {
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr : "2,3,17",
|
|
|
statusStr : "31,3",
|
|
|
status : $("#status_0").myCombobox("getValue"),
|
|
|
orderCode : $("#orderCode_0").val(),
|
|
|
uid : $("#buyerUid_0").val(),
|
|
|
productId : $("#productId_0").val(),
|
|
|
storageId : $("#sku_0").val(),
|
|
|
skup : $("#skup_0").val(),
|
|
|
sellerWaybillCode : $("#sellerWaybillCode_0").val(),
|
|
|
mobile : $("#mobile_0").val(),
|
...
|
...
|
@@ -138,32 +226,76 @@ $(function() { |
|
|
iconCls : "icon-search",
|
|
|
onClick : function() {
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr : "4,13",
|
|
|
statusStr : "32,13,17",
|
|
|
platformExpressInfoFlag:"haveNotExpress",
|
|
|
status : $("#status_1").myCombobox("getValue"),
|
|
|
orderCode : $("#orderCode_1").val(),
|
|
|
uid : $("#buyerUid_1").val(),
|
|
|
productId : $("#productId_1").val(),
|
|
|
storageId : $("#sku_1").val(),
|
|
|
skup : $("#skup_1").val(),
|
|
|
sellerWaybillCode : $("#sellerWaybillCode_1").val(),
|
|
|
mobile : $("#mobile_1").val(),
|
|
|
depotNo : $("#depotNo").combobox("getValue")
|
|
|
});
|
|
|
}
|
|
|
})
|
|
|
|
|
|
getToBeJudgedList();
|
|
|
});
|
|
|
|
|
|
$("#searchBtn_3").linkbutton({
|
|
|
iconCls : "icon-search",
|
|
|
onClick : function() {
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr : "4,13,17",
|
|
|
platformExpressInfoFlag:"haveExpress",
|
|
|
status : $("#status_3").myCombobox("getValue"),
|
|
|
orderCode : $("#orderCode_3").val(),
|
|
|
uid : $("#buyerUid_3").val(),
|
|
|
productId : $("#productId_3").val(),
|
|
|
skup : $("#skup_3").val(),
|
|
|
sellerWaybillCode : $("#sellerWaybillCode_3").val(),
|
|
|
mobile : $("#mobile_3").val(),
|
|
|
depotNo : $("#depotNo").combobox("getValue")
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
getToBeReceiveList();
|
|
|
$("#tt").tabs({
|
|
|
onSelect:function(title,index){
|
|
|
if(index == 0){
|
|
|
getToBeJudgedList();
|
|
|
}else if(index == 1){
|
|
|
getAlreadyJudgedList();
|
|
|
}
|
|
|
tabsSelected(index);
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
|
|
|
function tabsSelected(index) {
|
|
|
if(index == 0){
|
|
|
getToBeReceiveList();
|
|
|
}else if(index == 1){
|
|
|
getToBeJudgedList();
|
|
|
}else if(index == 2){
|
|
|
getToBeSendOutList();
|
|
|
}else if(index == 3){
|
|
|
getAlreadyJudgedList();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//全部按钮
|
|
|
$("#allBtn_2").linkbutton({
|
|
|
iconCls: "icon-import",
|
|
|
onClick: function () {
|
|
|
$("#orderCode_2").textbox('setValue','');
|
|
|
$("#uid_2").textbox('setValue','');
|
|
|
$("#sellerWaybillCode_2").textbox('setValue','');
|
|
|
$("#status_2").combobox('setValue','');
|
|
|
$("#productId_2").textbox('setValue','');
|
|
|
$("#sku_2").textbox('setValue','');
|
|
|
$("#mobile_2").textbox('setValue','');
|
|
|
$("#skup_2").textbox('setValue','');
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr: "2",
|
|
|
depotNo: $("#depotNo").combobox("getValue")
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$("#allBtn_0").linkbutton({
|
|
|
iconCls: "icon-import",
|
|
|
onClick: function () {
|
...
|
...
|
@@ -176,7 +308,7 @@ $(function() { |
|
|
$("#mobile_0").textbox('setValue','');
|
|
|
$("#skup_0").textbox('setValue','');
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr: "2,3,17",
|
|
|
statusStr: "31,3",
|
|
|
depotNo: $("#depotNo").combobox("getValue")
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -194,15 +326,53 @@ $(function() { |
|
|
$("#mobile_1").textbox('setValue','');
|
|
|
$("#skup_1").textbox('setValue','');
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr: "4,13",
|
|
|
statusStr: "32,13,17",
|
|
|
platformExpressInfoFlag:"haveNotExpress",
|
|
|
depotNo: $("#depotNo").combobox("getValue")
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$("#allBtn_3").linkbutton({
|
|
|
iconCls: "icon-import",
|
|
|
onClick: function () {
|
|
|
$("#orderCode_3").textbox('setValue','');
|
|
|
$("#uid_3").textbox('setValue','');
|
|
|
$("#sellerWaybillCode_3").textbox('setValue','');
|
|
|
$("#status_3").combobox('setValue','');
|
|
|
$("#productId_3").textbox('setValue','');
|
|
|
$("#sku_3").textbox('setValue','');
|
|
|
$("#mobile_3").textbox('setValue','');
|
|
|
$("#skup_3").textbox('setValue','');
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr: "4,13,17",
|
|
|
platformExpressInfoFlag:"haveExpress",
|
|
|
depotNo: $("#depotNo").combobox("getValue")
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
function getToBeJudgedList(){
|
|
|
function getToBeReceiveList() {
|
|
|
getToBeReceiveListOrJudgedList(false,"2",null);
|
|
|
}
|
|
|
|
|
|
function getToBeJudgedList() {
|
|
|
getToBeReceiveListOrJudgedList(false,"31,3",null,false);
|
|
|
}
|
|
|
|
|
|
function getToBeSendOutList() {
|
|
|
getToBeReceiveListOrJudgedList(false,"32,13,17","haveNotExpress");
|
|
|
}
|
|
|
|
|
|
function getAlreadyJudgedList(){
|
|
|
getToBeReceiveListOrJudgedList(true,"4,13,17","haveExpress");
|
|
|
}
|
|
|
|
|
|
function getToBeReceiveListOrJudgedList(platformWaybillShowFlag,paramStatusStr,platformExpressInfoFlag){
|
|
|
var dynaColumns=getTableColumn(platformWaybillShowFlag);
|
|
|
var table_columns=[dynaColumns];
|
|
|
$("#orderListTable").myDatagrid({
|
|
|
fit: true,
|
|
|
fitColumns: true,
|
...
|
...
|
@@ -210,7 +380,8 @@ function getToBeJudgedList(){ |
|
|
url: contextPath + "/buyerOrder/queryOrderList",
|
|
|
method: 'POST',
|
|
|
queryParams: {
|
|
|
statusStr: "2,3,17",
|
|
|
statusStr: paramStatusStr,
|
|
|
platformExpressInfoFlag:platformExpressInfoFlag,
|
|
|
depotNo: $("#depotNo").combobox("getValue")
|
|
|
},
|
|
|
loadFilter: function (data) {
|
...
|
...
|
@@ -220,139 +391,43 @@ function getToBeJudgedList(){ |
|
|
return temp;
|
|
|
},
|
|
|
|
|
|
columns: [[{
|
|
|
title: "卖家快递单号",
|
|
|
field: "sellerWaybillCode",
|
|
|
width: 30,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "收货仓库",
|
|
|
field: "depotNo",
|
|
|
width: 12,
|
|
|
align: "center",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
if (value == 0) {
|
|
|
return "北京";
|
|
|
}else if(value == 1){
|
|
|
return "南京";
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
title: "件数",
|
|
|
field: "productNum",
|
|
|
width: 8,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "SKU",
|
|
|
field: "skuStr",
|
|
|
width: 10,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "订单编号",
|
|
|
field: "orderCode",
|
|
|
width: 25,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "订单状态",
|
|
|
field: "status",
|
|
|
width: 20,
|
|
|
align: "center",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
if(rowData.statusStr){
|
|
|
return rowData.statusStr;
|
|
|
}
|
|
|
return value;
|
|
|
}
|
|
|
},{
|
|
|
title: "货号",
|
|
|
field: "productCode",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
},{
|
|
|
title: "商品名称",
|
|
|
field: "productName",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
},{
|
|
|
title: "尺码",
|
|
|
field: "sizeName",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
},{
|
|
|
title: "下单时间",
|
|
|
field: "createTimeStr",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
},{
|
|
|
title: "操作",
|
|
|
field: "asdf",
|
|
|
width: 40,
|
|
|
align: "center",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
if (rowData.status == 2) {
|
|
|
return "<a role='confirm' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;'>确认收货</a>";
|
|
|
} else if (rowData.status == 3) {
|
|
|
var operateButton = "<a role='pass' dataId='"+ rowData.id + "'" + " orderCode='"+rowData.orderCode +"' style='margin-left:10px;background-color: #5cb85c !important;'>鉴定通过</a>"+
|
|
|
"<a role='reject' dataId='"+ rowData.id + "'" + " skup='"+rowData.skup +"' style='margin-left:10px;background-color: #d9534f !important; color: #fff !important;'>鉴定不通过</a>"+
|
|
|
"<a role='record' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #5bc0de !important; color: #fff !important;'>录制视频</a>";
|
|
|
if (rowData.containMp4Flag) {
|
|
|
operateButton += "<a role='query' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #FFCC33 !important;'>查看视频</a>";
|
|
|
}
|
|
|
return operateButton;
|
|
|
} else if (rowData.status == 17) {
|
|
|
if(rowData.platformWaybillCode){
|
|
|
return "<a role='send_back_rebackAddress' dataId='"+ rowData.orderCode +"' skup='"+ rowData.skup +"' style='margin-left:10px;background-color: #5cb85c !important;'>商品寄回地址</a>"
|
|
|
+"<a role='send_back_viewExpress' dataId='"+ rowData.orderCode + "' style='margin-left:10px;background-color: #5cb85c !important;'>查看物流</a>"
|
|
|
//+"<br/><span style='color:darkred;'>已寄回 ["+rowData.platformWaybillCode+"]</span>";
|
|
|
;
|
|
|
}else{
|
|
|
return "<a role='reback' dataId='"+ rowData.id + "'" + " skup='"+rowData.skup +"' style='margin-left:10px;background-color: #5cb85c !important;'>寄回</a>";
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}]],
|
|
|
columns: table_columns,
|
|
|
cache: false,
|
|
|
pagination: true,
|
|
|
pageSize: 10,
|
|
|
idField: "id",
|
|
|
singleSelect: true,
|
|
|
onLoadSuccess: function (data) {
|
|
|
//确认收货
|
|
|
$(this).datagrid("getPanel").find("a[role='confirm']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var id = $(this).attr("dataId");
|
|
|
$.messager.confirm("确认收货提醒", "是否确认收货?确认收货前请务必确定货品已到达仓库。", function(flag) {
|
|
|
if (flag) {
|
|
|
$.post(contextPath + "/buyerOrder/updateOrderStatus", {
|
|
|
id : id,
|
|
|
status : 3
|
|
|
}, function(data) {
|
|
|
if (data.code == 200) {
|
|
|
$("#orderListTable").datagrid("reload");
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : "确认收货成功!"
|
|
|
});
|
|
|
}else {
|
|
|
window.self.$.messager.alert("失败", "失败!", "error");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
confirmReceive(id);
|
|
|
}
|
|
|
});
|
|
|
//开始鉴定
|
|
|
$(this).datagrid("getPanel").find("a[role='judgeBegin']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var id = $(this).attr("dataId");
|
|
|
judgeBegin(id);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//录入鉴定结果:通过
|
|
|
$(this).datagrid("getPanel").find("a[role='pass']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var buyerOrderCode = $(this).attr("orderCode");
|
|
|
$("#buyerOrderCode").val(buyerOrderCode);
|
|
|
addPassPage($(this).attr("dataId"));
|
|
|
//var buyerOrderCode = $(this).attr("orderCode");
|
|
|
//$("#buyerOrderCode").val(buyerOrderCode);
|
|
|
judgePass($(this).attr("dataId"));
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
//录入鉴定结果:不通过
|
|
|
$(this).datagrid("getPanel").find("a[role='reject']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var skup = $(this).attr("skup");
|
|
|
$("#skup").val(skup);
|
|
|
addRejectPage($(this).attr("dataId"));
|
|
|
//var skup = $(this).attr("skup");
|
|
|
//$("#skup").val(skup);
|
|
|
judgeReject($(this).attr("dataId"));
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -376,26 +451,34 @@ function getToBeJudgedList(){ |
|
|
}
|
|
|
});
|
|
|
|
|
|
$(this).datagrid("getPanel").find("a[role='reback']").linkbutton({
|
|
|
//发货
|
|
|
$(this).datagrid("getPanel").find("a[role='sendOut']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var buyerOrderCode = $(this).attr("order_code");
|
|
|
$("#buyerOrderCode").val(buyerOrderCode);
|
|
|
addPassPage($(this).attr("dataId"));
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//鉴定不通过造成的退回
|
|
|
$(this).datagrid("getPanel").find("a[role='reback_cause_of_judge_failure']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var skup = $(this).attr("skup");
|
|
|
$("#skup").val(skup);
|
|
|
addRebackPage($(this).attr("dataId"));
|
|
|
addRejectPage($(this).attr("dataId"));
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
$(this).datagrid("getPanel").find("a[role='send_back_rebackAddress']").linkbutton({
|
|
|
//买家取消造成的退回
|
|
|
$(this).datagrid("getPanel").find("a[role='reback_cause_of_buyer_cancel']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var buyerOrderCode = $(this).attr("dataId");
|
|
|
$("#buyerOrderCode").val(buyerOrderCode);
|
|
|
var skup = $(this).attr("skup");
|
|
|
$("#skup").val(skup);
|
|
|
rebackAddressPage();
|
|
|
addRebackPage($(this).attr("dataId"));
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$(this).datagrid("getPanel").find("a[role='send_back_viewExpress']").linkbutton({
|
|
|
$(this).datagrid("getPanel").find("a[role='platform_waybill_viewExpress']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var buyerOrderCode = $(this).attr("dataId");
|
|
|
$("#buyerOrderCode").val(buyerOrderCode);
|
...
|
...
|
@@ -407,7 +490,130 @@ function getToBeJudgedList(){ |
|
|
});
|
|
|
}
|
|
|
|
|
|
function getAlreadyJudgedList(){
|
|
|
function getTableColumn(platformWaybillShowFlag) {
|
|
|
return [{
|
|
|
title: "卖家快递单号",
|
|
|
field: "sellerWaybillCode",
|
|
|
width: 30,
|
|
|
hidden:!platformWaybillShowFlag,
|
|
|
align: "center"
|
|
|
},{
|
|
|
title: "平台快递单号",
|
|
|
field: "platformWaybillCode",
|
|
|
width: 30,
|
|
|
hidden:platformWaybillShowFlag,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "收货仓库",
|
|
|
field: "depotNo",
|
|
|
width: 12,
|
|
|
align: "center",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
if (value == 0) {
|
|
|
return "北京";
|
|
|
}else if(value == 1){
|
|
|
return "南京";
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
title: "件数",
|
|
|
field: "productNum",
|
|
|
width: 8,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "SKU",
|
|
|
field: "skuStr",
|
|
|
width: 10,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "订单编号",
|
|
|
field: "orderCode",
|
|
|
width: 25,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "订单状态",
|
|
|
field: "status",
|
|
|
width: 20,
|
|
|
align: "center",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
if(rowData.statusStr){
|
|
|
return rowData.statusStr;
|
|
|
}
|
|
|
return value;
|
|
|
}
|
|
|
},{
|
|
|
title: "货号",
|
|
|
field: "productCode",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
},{
|
|
|
title: "商品名称",
|
|
|
field: "productName",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
},{
|
|
|
title: "尺码",
|
|
|
field: "sizeName",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
},{
|
|
|
title: "下单时间",
|
|
|
field: "createTimeStr",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
},{
|
|
|
title: "操作",
|
|
|
field: "asdf",
|
|
|
width: 40,
|
|
|
align: "center",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
if (rowData.status == 2) {
|
|
|
return "<a role='confirm' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;'>确认收货</a>";
|
|
|
} else if (rowData.status == 31) {
|
|
|
|
|
|
return "<a role='judgeBegin' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;'>开始鉴定</a>";;
|
|
|
}else if (rowData.status == 3) {
|
|
|
var operateButton = "<a role='pass' dataId='"+ rowData.id + "'" + " orderCode='"+rowData.orderCode +"' style='margin-left:10px;background-color: #5cb85c !important;'>鉴定通过</a>"+
|
|
|
"<a role='reject' dataId='"+ rowData.id + "'" + " skup='"+rowData.skup +"' style='margin-left:10px;background-color: #d9534f !important; color: #fff !important;'>鉴定不通过</a>"+
|
|
|
"<a role='record' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #5bc0de !important; color: #fff !important;'>录制视频</a>";
|
|
|
if (rowData.containMp4Flag) {
|
|
|
operateButton += "<a role='query' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #FFCC33 !important;'>查看视频</a>";
|
|
|
}
|
|
|
return operateButton;
|
|
|
}else if (rowData.status == 32) {
|
|
|
var operateButton = "<a role='sendOut' dataId='"+ rowData.id + "'" + " order_code='"+rowData.orderCode +"' style='margin-left:10px;background-color: #5cb85c !important;'>发货</a>";
|
|
|
if (rowData.containMp4Flag) {
|
|
|
operateButton += "<a role='query' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #FFCC33 !important;'>查看视频</a>";
|
|
|
}
|
|
|
return operateButton;
|
|
|
}else if (rowData.status == 4) {
|
|
|
var operateButton = "<a role='platform_waybill_viewExpress' dataId='"+ rowData.orderCode + "' style='margin-left:10px;background-color: #5cb85c !important;'>查看物流</a>";
|
|
|
if (rowData.containMp4Flag) {
|
|
|
operateButton += "<a role='query' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #FFCC33 !important;'>查看视频</a>";
|
|
|
}
|
|
|
return operateButton;
|
|
|
} else if (rowData.status == 13||rowData.status == 17) {
|
|
|
var operateButton="";
|
|
|
if(rowData.platformWaybillCode){
|
|
|
operateButton += "<a role='platform_waybill_viewExpress' dataId='"+ rowData.orderCode + "' style='margin-left:10px;background-color: #5cb85c !important;'>查看物流</a>";
|
|
|
}else{
|
|
|
var roleName="reback_cause_of_buyer_cancel";
|
|
|
if(rowData.status == 13){
|
|
|
roleName="reback_cause_of_judge_failure"
|
|
|
}
|
|
|
operateButton += "<a role='"+roleName+"' dataId='"+ rowData.id + "'" + " skup='"+rowData.skup +"' style='margin-left:10px;background-color: #5cb85c !important;'>寄回</a>";
|
|
|
}
|
|
|
if (rowData.containMp4Flag) {
|
|
|
operateButton += "<a role='query' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #FFCC33 !important;'>查看视频</a>";
|
|
|
}
|
|
|
return operateButton;
|
|
|
}
|
|
|
}
|
|
|
}]
|
|
|
}
|
|
|
|
|
|
//放弃不用了
|
|
|
function getAlreadyJudged_BAK_List(){
|
|
|
$("#orderListTable").myDatagrid({
|
|
|
fit: true,
|
|
|
fitColumns: true,
|
...
|
...
|
@@ -610,6 +816,90 @@ function viewExpressPage() { |
|
|
});
|
|
|
}
|
|
|
|
|
|
//确认收货
|
|
|
function confirmReceive(id){
|
|
|
$.messager.confirm("确认收货提醒", "是否确认收货?确认收货前请务必确定货品已到达仓库。", function(flag) {
|
|
|
if (flag) {
|
|
|
$.post(contextPath + "/buyerOrder/confirmReceive", {
|
|
|
id : id
|
|
|
}, function(data) {
|
|
|
if (data.code == 200) {
|
|
|
$("#orderListTable").datagrid("reload");
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : "确认收货成功!"
|
|
|
});
|
|
|
}else {
|
|
|
window.self.$.messager.alert("失败", "失败!", "error");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
//开始鉴定
|
|
|
function judgeBegin(id) {
|
|
|
$.messager.confirm("开始鉴定提醒", "是否开始鉴定?", function(flag) {
|
|
|
if (flag) {
|
|
|
$.post(contextPath + "/buyerOrder/judgeBegin", {
|
|
|
id : id
|
|
|
}, function(data) {
|
|
|
if (data.code == 200) {
|
|
|
$("#orderListTable").datagrid("reload");
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : "开始鉴定成功!"
|
|
|
});
|
|
|
}else {
|
|
|
window.self.$.messager.alert("失败", "失败!", "error");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
//鉴定通过
|
|
|
function judgePass() {
|
|
|
$.messager.confirm("鉴定通过提醒", "是否鉴定通过?", function(flag) {
|
|
|
if (flag) {
|
|
|
$.post(contextPath + "/buyerOrder/judgePass", {
|
|
|
id : id
|
|
|
}, function(data) {
|
|
|
if (data.code == 200) {
|
|
|
$("#orderListTable").datagrid("reload");
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : "鉴定通过成功!"
|
|
|
});
|
|
|
}else {
|
|
|
window.self.$.messager.alert("失败", "失败!", "error");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
//鉴定不通过
|
|
|
function judgeReject() {
|
|
|
$.messager.confirm("鉴定不通过提醒", "是否鉴定不通过?", function(flag) {
|
|
|
if (flag) {
|
|
|
$.post(contextPath + "/buyerOrder/judgeReject", {
|
|
|
id : id
|
|
|
}, function(data) {
|
|
|
if (data.code == 200) {
|
|
|
$("#orderListTable").datagrid("reload");
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : "鉴定不通过完成!"
|
|
|
});
|
|
|
}else {
|
|
|
window.self.$.messager.alert("失败", "失败!", "error");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
//鉴定通过后发货
|
|
|
function addPassPage(id) {
|
|
|
var div = $("<div id='passDiv'>").appendTo($(document.body));
|
|
|
var url = contextPath + "/html/judgeCenter/pass.html?time_version=" + new Date().getTime();
|
...
|
...
|
@@ -638,6 +928,8 @@ function addPassPage(id) { |
|
|
}]
|
|
|
});
|
|
|
}
|
|
|
|
|
|
//买家取消后,卖家已发货的商品直接退回
|
|
|
function addRebackPage(id) {
|
|
|
var div = $("<div id='rebackDiv'>").appendTo($(document.body));
|
|
|
var url = contextPath + "/html/judgeCenter/reject.html?time_version=" + new Date().getTime();
|
...
|
...
|
@@ -667,6 +959,7 @@ function addRebackPage(id) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
//鉴定不通过后退回商品
|
|
|
function addRejectPage(id) {
|
|
|
var div = $("<div id='rejectDiv'>").appendTo($(document.body));
|
|
|
var url = contextPath + "/html/judgeCenter/reject.html?time_version=" + new Date().getTime();;
|
...
|
...
|
@@ -808,7 +1101,7 @@ function addQueryPage(skup, order_code, id) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
//鉴定通过发货
|
|
|
function deliverGoods(id){
|
|
|
var expressCompanyId = $("#expressCompany").myCombobox("getValue");
|
|
|
var waybillCode = $("#waybillCode").textbox("getValue");
|
...
|
...
|
@@ -825,7 +1118,7 @@ function deliverGoods(id){ |
|
|
alert("收货人手机号为空!");
|
|
|
return;
|
|
|
}
|
|
|
$.post(contextPath + "/buyerOrder/updateOrderStatus", {
|
|
|
$.post(contextPath + "/buyerOrder/deliverGoods", {
|
|
|
id : id,
|
|
|
status : 4,
|
|
|
expressCompanyId : expressCompanyId,
|
...
|
...
|
@@ -840,7 +1133,7 @@ function deliverGoods(id){ |
|
|
$("#orderListTable").datagrid("reload");
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : "鉴定通过操作成功!"
|
|
|
msg : "发货操作成功!"
|
|
|
});
|
|
|
}else {
|
|
|
window.self.$.messager.alert("失败", data.message, "error");
|
...
|
...
|
@@ -905,7 +1198,7 @@ function sendBackGoods(id){ |
|
|
alert("收货人手机号为空!");
|
|
|
return;
|
|
|
}
|
|
|
$.post(contextPath + "/buyerOrder/updateOrderStatus", {
|
|
|
$.post(contextPath + "/buyerOrder/returnBackOrderCauseOfJudgeFailure", {
|
|
|
id : id,
|
|
|
status : 13,
|
|
|
expressCompanyId : expressCompanyId,
|
...
|
...
|
@@ -944,21 +1237,37 @@ function getCountByJudgeStatus(){ |
|
|
dataType: 'json',
|
|
|
success: function (result) {
|
|
|
if(result.code == 200) {
|
|
|
var tab_0 = $('#tt').tabs('getTab',0); // 取得第一个tab
|
|
|
var tab_toBeReveived = $('#tt').tabs('getTab',0); // 取得第一个tab
|
|
|
$('#tt').tabs('update', {
|
|
|
tab: tab_toBeReveived,
|
|
|
options: {
|
|
|
title: '待收货('+ result.data.toBeReceivedNum + ")"
|
|
|
}
|
|
|
});
|
|
|
|
|
|
var tab_toBeJudged = $('#tt').tabs('getTab',1); // 取得第一个tab
|
|
|
$('#tt').tabs('update', {
|
|
|
tab: tab_0,
|
|
|
tab: tab_toBeJudged,
|
|
|
options: {
|
|
|
title: '待鉴定('+ result.data.toBeJudgedNum + ")"
|
|
|
}
|
|
|
});
|
|
|
|
|
|
var tab_1 = $('#tt').tabs('getTab',1); // 取得第一个tab
|
|
|
var tab_toBeSendOutNum = $('#tt').tabs('getTab',2); // 取得第一个tab
|
|
|
$('#tt').tabs('update', {
|
|
|
tab: tab_1,
|
|
|
tab: tab_toBeSendOutNum,
|
|
|
options: {
|
|
|
title: '鉴定完成('+ result.data.alreadyJudgedNum + ")"
|
|
|
title: '待发货('+ result.data.toBeSendOutNum + ")"
|
|
|
}
|
|
|
});
|
|
|
|
|
|
var tab_alreadyJudgedNum = $('#tt').tabs('getTab',3); // 取得第一个tab
|
|
|
$('#tt').tabs('update', {
|
|
|
tab: tab_alreadyJudgedNum,
|
|
|
options: {
|
|
|
title: '完成('+ result.data.alreadyJudgedNum + ")"
|
|
|
}
|
|
|
});
|
|
|
|
|
|
}
|
|
|
else {
|
...
|
...
|
|