...
|
...
|
@@ -9,7 +9,7 @@ |
|
|
<body class="easyui-layout">
|
|
|
<input type="hidden" id="buyerOrderCode">
|
|
|
<input type="skup" id="skup">
|
|
|
<div region="north" style="height:300px;">
|
|
|
<div region="north" style="height:400px;">
|
|
|
<script>
|
|
|
document.write(addHead('鉴定中心', '列表管理'));
|
|
|
</script>
|
...
|
...
|
@@ -22,10 +22,10 @@ |
|
|
<div id="tt" class="easyui-tabs">
|
|
|
<div id="tab_2" title="待收货" style="padding:20px;display:none;">
|
|
|
<div>
|
|
|
<label>订单编号:</label>
|
|
|
<label> 订单编号:</label>
|
|
|
<input id="orderCode_2" type="text" class="easyui-textbox" style="width:150px">
|
|
|
|
|
|
<label>买家UID:</label>
|
|
|
<label> 买家UID:</label>
|
|
|
<input id="buyerUid_2" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label>卖家快递单号:</label>
|
...
|
...
|
@@ -38,29 +38,37 @@ |
|
|
</select>
|
|
|
|
|
|
<br>
|
|
|
|
|
|
<label>商品编码:</label>
|
|
|
<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> 卖家UID:</label>
|
|
|
<input id="sellerUid_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:</label>
|
|
|
<input id="sku_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>
|
|
|
|
|
|
<br>
|
|
|
<br>
|
|
|
<label>买家手机号:</label>
|
|
|
<input id="buyerMobile_2" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label>卖家手机号:</label>
|
|
|
<input id="sellerMobile_2" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="tab_0" title="待鉴定" style="padding:20px;display:none;">
|
|
|
<div>
|
|
|
<label>订单编号:</label>
|
|
|
<label> 订单编号:</label>
|
|
|
<input id="orderCode_0" type="text" class="easyui-textbox" style="width:150px">
|
|
|
|
|
|
<label>买家UID:</label>
|
|
|
<label> 买家UID:</label>
|
|
|
<input id="buyerUid_0" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label>卖家快递单号:</label>
|
...
|
...
|
@@ -73,31 +81,38 @@ |
|
|
<option value="3">平台鉴定中</option>
|
|
|
</select>
|
|
|
|
|
|
<br>
|
|
|
<br><br>
|
|
|
|
|
|
<label>商品编码:</label>
|
|
|
<label> 商品编码:</label>
|
|
|
<input id="productId_0" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label> SKU:</label>
|
|
|
|
|
|
<label> 卖家UID:</label>
|
|
|
<input id="sellerUid_0" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label> SKU:</label>
|
|
|
<input id="sku_0" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label> 手机号:</label>
|
|
|
<input id="mobile_0" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label> SKU-P:</label>
|
|
|
<input id="skup_0" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<a id="searchBtn_0" class="btn-info">查询</a>
|
|
|
<a id="allBtn_0" class="btn-success">全部</a>
|
|
|
|
|
|
<br><br>
|
|
|
<label>买家手机号:</label>
|
|
|
<input id="buyerMobile_0" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label>卖家手机号:</label>
|
|
|
<input id="sellerMobile_0" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div id="tab_1" title="待发货" style="padding:20px;display:none;">
|
|
|
<div>
|
|
|
<label>订单编号:</label>
|
|
|
<label> 订单编号:</label>
|
|
|
<input id="orderCode_1" type="text" class="easyui-textbox" style="width:150px">
|
|
|
|
|
|
<label>买家UID:</label>
|
|
|
<label> 买家UID:</label>
|
|
|
<input id="buyerUid_1" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label>卖家快递单号:</label>
|
...
|
...
|
@@ -111,32 +126,39 @@ |
|
|
<option value="17">已取消(买家在卖家发货后取消订单)</option>
|
|
|
</select>
|
|
|
|
|
|
<br>
|
|
|
|
|
|
<label>商品编码:</label>
|
|
|
<input id="productId_1" type="text" class="easyui-textbox" style="width:250px"/>
|
|
|
<br><br>
|
|
|
|
|
|
<label> SKU:</label>
|
|
|
<label> 商品编码:</label>
|
|
|
<input id="productId_1" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label> 卖家UID:</label>
|
|
|
<input id="sellerUid_1" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label> SKU:</label>
|
|
|
<input id="sku_1" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label> 手机号:</label>
|
|
|
<input id="mobile_1" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label> SKU-P:</label>
|
|
|
<input id="skup_1" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<a id="searchBtn_1" class="btn-info">查询</a>
|
|
|
<a id="allBtn_1" class="btn-success">全部</a>
|
|
|
|
|
|
<br><br>
|
|
|
<label>买家手机号:</label>
|
|
|
<input id="buyerMobile_1" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label>卖家手机号:</label>
|
|
|
<input id="sellerMobile_1" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div id="tab_3" title="完成" style="padding:20px;display:none;">
|
|
|
<div>
|
|
|
<label>订单编号:</label>
|
|
|
<label> 订单编号:</label>
|
|
|
<input id="orderCode_3" type="text" class="easyui-textbox" style="width:150px">
|
|
|
|
|
|
<label>买家UID:</label>
|
|
|
<label> 买家UID:</label>
|
|
|
<input id="buyerUid_3" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label>卖家快递单号:</label>
|
...
|
...
|
@@ -150,22 +172,33 @@ |
|
|
<option value="17">已取消(买家在卖家发货后取消订单)</option>
|
|
|
</select>
|
|
|
|
|
|
<br>
|
|
|
<br><br>
|
|
|
|
|
|
<label>商品编码:</label>
|
|
|
<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> 卖家UID:</label>
|
|
|
<input id="sellerUid_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:</label>
|
|
|
<input id="sku_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>
|
|
|
|
|
|
<br><br>
|
|
|
<label>买家手机号:</label>
|
|
|
<input id="buyerMobile_3" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label>卖家手机号:</label>
|
|
|
<input id="sellerMobile_3" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label>平台快递单号:</label>
|
|
|
<input id="platformWaybillCode_3" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -197,10 +230,12 @@ $(function() { |
|
|
status : $("#status_2").myCombobox("getValue"),
|
|
|
orderCode : $("#orderCode_2").val(),
|
|
|
uid : $("#buyerUid_2").val(),
|
|
|
sellerUid : $("#sellerUid_2").val(),
|
|
|
productId : $("#productId_2").val(),
|
|
|
skup : $("#skup_2").val(),
|
|
|
sellerWaybillCode : $("#sellerWaybillCode_2").val(),
|
|
|
mobile : $("#mobile_2").val(),
|
|
|
buyerMobile : $("#buyerMobile_2").val(),
|
|
|
sellerMobile : $("#sellerMobile_2").val(),
|
|
|
depotNo : $("#depotNo").combobox("getValue")
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -214,10 +249,12 @@ $(function() { |
|
|
status : $("#status_0").myCombobox("getValue"),
|
|
|
orderCode : $("#orderCode_0").val(),
|
|
|
uid : $("#buyerUid_0").val(),
|
|
|
sellerUid : $("#sellerUid_0").val(),
|
|
|
productId : $("#productId_0").val(),
|
|
|
skup : $("#skup_0").val(),
|
|
|
sellerWaybillCode : $("#sellerWaybillCode_0").val(),
|
|
|
mobile : $("#mobile_0").val(),
|
|
|
buyerMobile : $("#buyerMobile_0").val(),
|
|
|
sellerMobile : $("#sellerMobile_0").val(),
|
|
|
depotNo : $("#depotNo").combobox("getValue")
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -231,10 +268,12 @@ $(function() { |
|
|
status : $("#status_1").myCombobox("getValue"),
|
|
|
orderCode : $("#orderCode_1").val(),
|
|
|
uid : $("#buyerUid_1").val(),
|
|
|
sellerUid : $("#sellerUid_1").val(),
|
|
|
productId : $("#productId_1").val(),
|
|
|
skup : $("#skup_1").val(),
|
|
|
sellerWaybillCode : $("#sellerWaybillCode_1").val(),
|
|
|
mobile : $("#mobile_1").val(),
|
|
|
buyerMobile : $("#buyerMobile_1").val(),
|
|
|
sellerMobile : $("#sellerMobile_1").val(),
|
|
|
depotNo : $("#depotNo").combobox("getValue")
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -249,10 +288,13 @@ $(function() { |
|
|
status : $("#status_3").myCombobox("getValue"),
|
|
|
orderCode : $("#orderCode_3").val(),
|
|
|
uid : $("#buyerUid_3").val(),
|
|
|
sellerUid : $("#sellerUid_3").val(),
|
|
|
productId : $("#productId_3").val(),
|
|
|
skup : $("#skup_3").val(),
|
|
|
sellerWaybillCode : $("#sellerWaybillCode_3").val(),
|
|
|
mobile : $("#mobile_3").val(),
|
|
|
platformWaybillCode:$("#platformWaybillCode_3").val(),
|
|
|
buyerMobile : $("#buyerMobile_3").val(),
|
|
|
sellerMobile : $("#sellerMobile_3").val(),
|
|
|
depotNo : $("#depotNo").combobox("getValue")
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -283,11 +325,13 @@ $(function() { |
|
|
onClick: function () {
|
|
|
$("#orderCode_2").textbox('setValue','');
|
|
|
$("#uid_2").textbox('setValue','');
|
|
|
$("#sellerUid_2").textbox('setValue','');
|
|
|
$("#sellerWaybillCode_2").textbox('setValue','');
|
|
|
$("#status_2").combobox('setValue','');
|
|
|
$("#productId_2").textbox('setValue','');
|
|
|
$("#sku_2").textbox('setValue','');
|
|
|
$("#mobile_2").textbox('setValue','');
|
|
|
$("#buyerMobile_2").textbox('setValue','');
|
|
|
$("#sellerMobile_2").textbox('setValue','');
|
|
|
$("#skup_2").textbox('setValue','');
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr: "2",
|
...
|
...
|
@@ -301,11 +345,13 @@ $(function() { |
|
|
onClick: function () {
|
|
|
$("#orderCode_0").textbox('setValue','');
|
|
|
$("#uid_0").textbox('setValue','');
|
|
|
$("#sellerUid_0").textbox('setValue','');
|
|
|
$("#sellerWaybillCode_0").textbox('setValue','');
|
|
|
$("#status_0").combobox('setValue','');
|
|
|
$("#productId_0").textbox('setValue','');
|
|
|
$("#sku_0").textbox('setValue','');
|
|
|
$("#mobile_0").textbox('setValue','');
|
|
|
$("#buyerMobile_0").textbox('setValue','');
|
|
|
$("#sellerMobile_0").textbox('setValue','');
|
|
|
$("#skup_0").textbox('setValue','');
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr: "31,3",
|
...
|
...
|
@@ -319,11 +365,13 @@ $(function() { |
|
|
onClick: function () {
|
|
|
$("#orderCode_1").textbox('setValue','');
|
|
|
$("#uid_1").textbox('setValue','');
|
|
|
$("#sellerUid_1").textbox('setValue','');
|
|
|
$("#sellerWaybillCode_1").textbox('setValue','');
|
|
|
$("#status_1").combobox('setValue','');
|
|
|
$("#productId_1").textbox('setValue','');
|
|
|
$("#sku_1").textbox('setValue','');
|
|
|
$("#mobile_1").textbox('setValue','');
|
|
|
$("#buyerMobile_1").textbox('setValue','');
|
|
|
$("#sellerMobile_1").textbox('setValue','');
|
|
|
$("#skup_1").textbox('setValue','');
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr: "32,13,17",
|
...
|
...
|
@@ -338,11 +386,14 @@ $(function() { |
|
|
onClick: function () {
|
|
|
$("#orderCode_3").textbox('setValue','');
|
|
|
$("#uid_3").textbox('setValue','');
|
|
|
$("#sellerUid_3").textbox('setValue','');
|
|
|
$("#sellerWaybillCode_3").textbox('setValue','');
|
|
|
$("#platformWaybillCode_3").textbox('setValue','');
|
|
|
$("#status_3").combobox('setValue','');
|
|
|
$("#productId_3").textbox('setValue','');
|
|
|
$("#sku_3").textbox('setValue','');
|
|
|
$("#mobile_3").textbox('setValue','');
|
|
|
$("#buyerMobile_3").textbox('setValue','');
|
|
|
$("#sellerMobile_3").textbox('setValue','');
|
|
|
$("#skup_3").textbox('setValue','');
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr: "4,13,17",
|
...
|
...
|
@@ -612,189 +663,6 @@ function getTableColumn(platformWaybillShowFlag) { |
|
|
}]
|
|
|
}
|
|
|
|
|
|
//放弃不用了
|
|
|
function getAlreadyJudged_BAK_List(){
|
|
|
$("#orderListTable").myDatagrid({
|
|
|
fit: true,
|
|
|
fitColumns: true,
|
|
|
striped: true,
|
|
|
url: contextPath + "/buyerOrder/queryOrderList",
|
|
|
method: 'POST',
|
|
|
queryParams: {
|
|
|
statusStr: "4,13",
|
|
|
depotNo: $("#depotNo").combobox("getValue")
|
|
|
},
|
|
|
loadFilter: function (data) {
|
|
|
var temp = defaultLoadFilter(data);
|
|
|
temp=null==temp?[]:temp;
|
|
|
temp.rows = temp.list;
|
|
|
return temp;
|
|
|
},
|
|
|
|
|
|
columns: [[{
|
|
|
title: "平台快递单号",
|
|
|
field: "platformWaybillCode",
|
|
|
width: 30,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "收货仓库",
|
|
|
field: "depotNo",
|
|
|
width: 20,
|
|
|
align: "center",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
if (value == 0) {
|
|
|
return "北京";
|
|
|
}else if(value == 1){
|
|
|
return "南京";
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
title: "商品件数",
|
|
|
field: "productNum",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "SKU-P",
|
|
|
field: "skup",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "订单编号",
|
|
|
field: "orderCode",
|
|
|
width: 30,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "订单状态",
|
|
|
field: "status",
|
|
|
width: 20,
|
|
|
align: "center",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
if (value == 4) {
|
|
|
return "鉴定通过";
|
|
|
}else if(value == 13){
|
|
|
return "鉴定不通过";
|
|
|
}
|
|
|
}
|
|
|
},{
|
|
|
title: "货号",
|
|
|
field: "productCode",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
},{
|
|
|
title: "下单时间",
|
|
|
field: "createTimeStr",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
},{
|
|
|
title: "操作",
|
|
|
field: "asdf",
|
|
|
width: 40,
|
|
|
align: "center",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
var operateButton = '';
|
|
|
if (rowData.status == 4) {//鉴定通过
|
|
|
operateButton += "<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; color: #fff !important;'>查看物流</a>";
|
|
|
if (rowData.containMp4Flag) {
|
|
|
operateButton += "<a role='queryForSuccess' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #FFCC33 !important;'>查看视频</a>";
|
|
|
}
|
|
|
} else if (rowData.status == 13) {//鉴定不通过
|
|
|
operateButton += "<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; color: #fff !important;'>查看物流</a>";
|
|
|
if (rowData.containMp4Flag) {
|
|
|
operateButton += "<a role='queryForSuccess' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #FFCC33 !important;'>查看视频</a>";
|
|
|
}
|
|
|
}
|
|
|
return operateButton;
|
|
|
}
|
|
|
}]],
|
|
|
cache: false,
|
|
|
pagination: true,
|
|
|
pageSize: 10,
|
|
|
idField: "id",
|
|
|
singleSelect: true,
|
|
|
onLoadSuccess: function (data) {
|
|
|
$(this).datagrid("getPanel").find("a[role='buyerReceiveInfo']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var buyerOrderCode = $(this).attr("dataId");
|
|
|
$("#buyerOrderCode").val(buyerOrderCode);
|
|
|
buyerReceiveInfoPage();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$(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();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$(this).datagrid("getPanel").find("a[role='viewExpress']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var buyerOrderCode = $(this).attr("dataId");
|
|
|
$("#buyerOrderCode").val(buyerOrderCode);
|
|
|
viewExpressPage(buyerOrderCode);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
// 查看视频
|
|
|
$(this).datagrid("getPanel").find("a[role='queryForSuccess']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var skup = $(this).attr("skup");
|
|
|
var order_code = $(this).attr("order_code");
|
|
|
$("#skup").val(skup);
|
|
|
addQueryPage(skup, order_code, $(this).attr("dataId"));
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function buyerReceiveInfoPage() {
|
|
|
var div = $("<div id='buyerReceiveInfoDiv'>").appendTo($(document.body));
|
|
|
var url = contextPath + "/html/judgeCenter/buyerReceiveInfo.html";
|
|
|
$(div).myDialog({
|
|
|
width: "50%",
|
|
|
height: "60%",
|
|
|
title: "买家收货地址",
|
|
|
href: url,
|
|
|
modal: true,
|
|
|
collapsible: true,
|
|
|
cache: false,
|
|
|
buttons: [{
|
|
|
text: "取消",
|
|
|
iconCls: "icon-cancel",
|
|
|
handler: function () {
|
|
|
$(div).dialog("close");
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function rebackAddressPage() {
|
|
|
var div = $("<div id='rebackAddressDiv'>").appendTo($(document.body));
|
|
|
var url = contextPath + "/html/judgeCenter/rebackAddress.html";
|
|
|
$(div).myDialog({
|
|
|
width: "50%",
|
|
|
height: "60%",
|
|
|
title: "商品寄回地址",
|
|
|
href: url,
|
|
|
modal: true,
|
|
|
collapsible: true,
|
|
|
cache: false,
|
|
|
buttons: [{
|
|
|
text: "取消",
|
|
|
iconCls: "icon-cancel",
|
|
|
handler: function () {
|
|
|
$(div).dialog("close");
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function viewExpressPage() {
|
|
|
var div = $("<div id='viewExpressDiv'>").appendTo($(document.body));
|
|
|
var url = contextPath + "/html/judgeCenter/viewExpress.html";
|
...
|
...
|
@@ -858,7 +726,7 @@ function judgeBegin(id) { |
|
|
}
|
|
|
|
|
|
//鉴定通过
|
|
|
function judgePass() {
|
|
|
function judgePass(id) {
|
|
|
$.messager.confirm("鉴定通过提醒", "是否鉴定通过?", function(flag) {
|
|
|
if (flag) {
|
|
|
$.post(contextPath + "/buyerOrder/judgePass", {
|
...
|
...
|
@@ -879,7 +747,7 @@ function judgePass() { |
|
|
}
|
|
|
|
|
|
//鉴定不通过
|
|
|
function judgeReject() {
|
|
|
function judgeReject(id) {
|
|
|
$.messager.confirm("鉴定不通过提醒", "是否鉴定不通过?", function(flag) {
|
|
|
if (flag) {
|
|
|
$.post(contextPath + "/buyerOrder/judgeReject", {
|
...
|
...
|
@@ -1277,6 +1145,192 @@ function getCountByJudgeStatus(){ |
|
|
});
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
//废弃不用了
|
|
|
function getAlreadyJudged_BAK_List(){
|
|
|
$("#orderListTable").myDatagrid({
|
|
|
fit: true,
|
|
|
fitColumns: true,
|
|
|
striped: true,
|
|
|
url: contextPath + "/buyerOrder/queryOrderList",
|
|
|
method: 'POST',
|
|
|
queryParams: {
|
|
|
statusStr: "4,13",
|
|
|
depotNo: $("#depotNo").combobox("getValue")
|
|
|
},
|
|
|
loadFilter: function (data) {
|
|
|
var temp = defaultLoadFilter(data);
|
|
|
temp=null==temp?[]:temp;
|
|
|
temp.rows = temp.list;
|
|
|
return temp;
|
|
|
},
|
|
|
|
|
|
columns: [[{
|
|
|
title: "平台快递单号",
|
|
|
field: "platformWaybillCode",
|
|
|
width: 30,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "收货仓库",
|
|
|
field: "depotNo",
|
|
|
width: 20,
|
|
|
align: "center",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
if (value == 0) {
|
|
|
return "北京";
|
|
|
}else if(value == 1){
|
|
|
return "南京";
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
title: "商品件数",
|
|
|
field: "productNum",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "SKU-P",
|
|
|
field: "skup",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "订单编号",
|
|
|
field: "orderCode",
|
|
|
width: 30,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "订单状态",
|
|
|
field: "status",
|
|
|
width: 20,
|
|
|
align: "center",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
if (value == 4) {
|
|
|
return "鉴定通过";
|
|
|
}else if(value == 13){
|
|
|
return "鉴定不通过";
|
|
|
}
|
|
|
}
|
|
|
},{
|
|
|
title: "货号",
|
|
|
field: "productCode",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
},{
|
|
|
title: "下单时间",
|
|
|
field: "createTimeStr",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
},{
|
|
|
title: "操作",
|
|
|
field: "asdf",
|
|
|
width: 40,
|
|
|
align: "center",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
var operateButton = '';
|
|
|
if (rowData.status == 4) {//鉴定通过
|
|
|
operateButton += "<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; color: #fff !important;'>查看物流</a>";
|
|
|
if (rowData.containMp4Flag) {
|
|
|
operateButton += "<a role='queryForSuccess' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #FFCC33 !important;'>查看视频</a>";
|
|
|
}
|
|
|
} else if (rowData.status == 13) {//鉴定不通过
|
|
|
operateButton += "<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; color: #fff !important;'>查看物流</a>";
|
|
|
if (rowData.containMp4Flag) {
|
|
|
operateButton += "<a role='queryForSuccess' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #FFCC33 !important;'>查看视频</a>";
|
|
|
}
|
|
|
}
|
|
|
return operateButton;
|
|
|
}
|
|
|
}]],
|
|
|
cache: false,
|
|
|
pagination: true,
|
|
|
pageSize: 10,
|
|
|
idField: "id",
|
|
|
singleSelect: true,
|
|
|
onLoadSuccess: function (data) {
|
|
|
$(this).datagrid("getPanel").find("a[role='buyerReceiveInfo']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var buyerOrderCode = $(this).attr("dataId");
|
|
|
$("#buyerOrderCode").val(buyerOrderCode);
|
|
|
buyerReceiveInfoPage();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$(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();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$(this).datagrid("getPanel").find("a[role='viewExpress']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var buyerOrderCode = $(this).attr("dataId");
|
|
|
$("#buyerOrderCode").val(buyerOrderCode);
|
|
|
viewExpressPage(buyerOrderCode);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
// 查看视频
|
|
|
$(this).datagrid("getPanel").find("a[role='queryForSuccess']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var skup = $(this).attr("skup");
|
|
|
var order_code = $(this).attr("order_code");
|
|
|
$("#skup").val(skup);
|
|
|
addQueryPage(skup, order_code, $(this).attr("dataId"));
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function buyerReceiveInfoPage() {
|
|
|
var div = $("<div id='buyerReceiveInfoDiv'>").appendTo($(document.body));
|
|
|
var url = contextPath + "/html/judgeCenter/buyerReceiveInfo.html";
|
|
|
$(div).myDialog({
|
|
|
width: "50%",
|
|
|
height: "60%",
|
|
|
title: "买家收货地址",
|
|
|
href: url,
|
|
|
modal: true,
|
|
|
collapsible: true,
|
|
|
cache: false,
|
|
|
buttons: [{
|
|
|
text: "取消",
|
|
|
iconCls: "icon-cancel",
|
|
|
handler: function () {
|
|
|
$(div).dialog("close");
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function rebackAddressPage() {
|
|
|
var div = $("<div id='rebackAddressDiv'>").appendTo($(document.body));
|
|
|
var url = contextPath + "/html/judgeCenter/rebackAddress.html";
|
|
|
$(div).myDialog({
|
|
|
width: "50%",
|
|
|
height: "60%",
|
|
|
title: "商品寄回地址",
|
|
|
href: url,
|
|
|
modal: true,
|
|
|
collapsible: true,
|
|
|
cache: false,
|
|
|
buttons: [{
|
|
|
text: "取消",
|
|
|
iconCls: "icon-cancel",
|
|
|
handler: function () {
|
|
|
$(div).dialog("close");
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
}
|
|
|
|
|
|
*/
|
|
|
|
|
|
</script>
|
|
|
</body>
|
|
|
</html> |
|
|
\ No newline at end of file |
...
|
...
|
|