|
|
<!DOCTYPE html>
|
|
|
<html>
|
|
|
<head>
|
|
|
<meta charset="UTF-8"/>
|
|
|
<title>Yoho!Buy运营平台</title>
|
|
|
<script src="/ufoPlatform/js/include.js"></script>
|
|
|
</head>
|
|
|
<body class="easyui-layout">
|
|
|
<div region="north" style="height:300px;">
|
|
|
<script>
|
|
|
document.write(addHead('鉴定中心', '列表管理'));
|
|
|
</script>
|
|
|
<div style="margin-left:1200px">
|
|
|
<select id="depotNo" style="width:70px;">
|
|
|
<option value="1" selected>北京</option>
|
|
|
<option value="2">南京</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div id="tt" class="easyui-tabs">
|
|
|
<div title="待鉴定" style="padding:20px;display:none;">
|
|
|
<div>
|
|
|
<label>订单编号:</label>
|
|
|
<input id="orderCode_0" type="text" class="easyui-textbox" style="width:150px">
|
|
|
|
|
|
<label>买家UID:</label>
|
|
|
<input id="buyerUid_0" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label>卖家快递单号:</label>
|
|
|
<input id="sellerWaybillCode_0" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<label>订单状态:</label>
|
|
|
<select id="status_0" class="easyui-combobox" style="width:100px;" >
|
|
|
<option value="">全部</option>
|
|
|
<option value="2">卖家已发货</option>
|
|
|
<option value="3">平台鉴定中</option>
|
|
|
</select>
|
|
|
|
|
|
<br>
|
|
|
|
|
|
<label>商品编码:</label>
|
|
|
<input id="productId_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>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div title="鉴定完成" style="overflow:auto;padding:20px;display:none;">
|
|
|
<div>
|
|
|
<label>订单编号:</label>
|
|
|
<input id="orderCode_1" type="text" class="easyui-textbox" style="width:150px">
|
|
|
|
|
|
<label>买家UID:</label>
|
|
|
<input id="buyerUid_1" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<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;" >
|
|
|
<option value="">全部</option>
|
|
|
<option value="4">鉴定通过</option>
|
|
|
<option value="13">鉴定不通过</option>
|
|
|
</select>
|
|
|
|
|
|
<br>
|
|
|
|
|
|
<label>商品编码:</label>
|
|
|
<input id="productId_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>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div id="orderList" region="center">
|
|
|
<table id="orderListTable"></table>
|
|
|
</div>
|
|
|
<script>
|
|
|
$(function() {
|
|
|
|
|
|
$("#depotNo").combobox({
|
|
|
onchange : function(newValue, oldValue){
|
|
|
var depotNo = $("#depotNo").combobox("getValue");
|
|
|
alert(depotNo);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$("#searchBtn_0").linkbutton({
|
|
|
iconCls : "icon-search",
|
|
|
onClick : function() {
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr : "2,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(),
|
|
|
depotNo : $("#depotNo").myCombobox("getValue")
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
$("#searchBtn_1").linkbutton({
|
|
|
iconCls : "icon-search",
|
|
|
onClick : function() {
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr : "4,13",
|
|
|
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()
|
|
|
});
|
|
|
}
|
|
|
})
|
|
|
|
|
|
getToBeJudgedList();
|
|
|
$("#tt").tabs({
|
|
|
onSelect:function(title,index){
|
|
|
if(index == 0){
|
|
|
getToBeJudgedList();
|
|
|
}else if(index == 1){
|
|
|
getAlreadyJudgedList();
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//全部按钮
|
|
|
$("#allBtn_0").linkbutton({
|
|
|
iconCls: "icon-import",
|
|
|
onClick: function () {
|
|
|
$("#orderCode_0").textbox('setValue','');
|
|
|
$("#uid_0").textbox('setValue','');
|
|
|
$("#sellerWaybillCode_0").textbox('setValue','');
|
|
|
$("#status_0").combobox('setValue','');
|
|
|
$("#productId_0").textbox('setValue','');
|
|
|
$("#sku_0").textbox('setValue','');
|
|
|
$("#mobile_0").textbox('setValue','');
|
|
|
$("#skup_0").textbox('setValue','');
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr: "2,3",
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$("#allBtn_1").linkbutton({
|
|
|
iconCls: "icon-import",
|
|
|
onClick: function () {
|
|
|
$("#orderCode_1").textbox('setValue','');
|
|
|
$("#uid_1").textbox('setValue','');
|
|
|
$("#sellerWaybillCode_1").textbox('setValue','');
|
|
|
$("#status_1").combobox('setValue','');
|
|
|
$("#productId_1").textbox('setValue','');
|
|
|
$("#sku_1").textbox('setValue','');
|
|
|
$("#mobile_1").textbox('setValue','');
|
|
|
$("#skup_1").textbox('setValue','');
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr: "4,13",
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
function getToBeJudgedList(){
|
|
|
$("#orderListTable").myDatagrid({
|
|
|
fit: true,
|
|
|
fitColumns: true,
|
|
|
striped: true,
|
|
|
url: contextPath + "/buyerOrder/queryOrderList",
|
|
|
method: 'POST',
|
|
|
queryParams: {
|
|
|
statusStr: "2,3"
|
|
|
},
|
|
|
loadFilter: function (data) {
|
|
|
var temp = defaultLoadFilter(data);
|
|
|
temp=null==temp?[]:temp;
|
|
|
temp.rows = temp.list;
|
|
|
return temp;
|
|
|
},
|
|
|
|
|
|
columns: [[{
|
|
|
title: "卖家快递单号",
|
|
|
field: "sellerWaybillCode",
|
|
|
width: 30,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "收货仓库",
|
|
|
field: "depotNo",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "商品件数",
|
|
|
field: "productNum",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "SKU",
|
|
|
field: "skuStr",
|
|
|
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 == 2) {
|
|
|
return "卖家已发货";
|
|
|
}else if(value == 3){
|
|
|
return "平台鉴定中";
|
|
|
}
|
|
|
}
|
|
|
},{
|
|
|
title: "下单时间",
|
|
|
field: "createTimeStr",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
},{
|
|
|
title: "操作",
|
|
|
field: "asdf",
|
|
|
width: 30,
|
|
|
align: "center",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
if (rowData.status == 2) {
|
|
|
return "<a role='close' dataId='"+ rowData.shopId +"' style='margin-left:10px;background-color: #5cb85c !important;'>确认收货</a>";
|
|
|
} else if (rowData.status == 3) {
|
|
|
return "<a role='open' dataId='"+ rowData.shopId +"' style='margin-left:10px;background-color: #d9534f !important;'>鉴定通过</a>"+
|
|
|
"<a role='open' dataId='"+ rowData.shopId +"' style='margin-left:10px;background-color: #5cb85c !important;'>鉴定不通过</a>";
|
|
|
}
|
|
|
}
|
|
|
}]],
|
|
|
cache: false,
|
|
|
pagination: true,
|
|
|
pageSize: 20,
|
|
|
idField: "id",
|
|
|
singleSelect: true,
|
|
|
onLoadSuccess: function (data) {
|
|
|
$(this).datagrid("getPanel").find("a[role='open']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var shopsId = $(this).attr("dataId");
|
|
|
$.post(contextPath + "/couponLimit/shopStartOrStop.do", {
|
|
|
shopsIdForShop : shopsId,
|
|
|
shopLimitStatus : 1,
|
|
|
type : 0
|
|
|
}, function(data) {
|
|
|
if (data.code == CODE_SUCCESS) {
|
|
|
$("#limitListTable").datagrid("reload");
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : "开启成功!"
|
|
|
});
|
|
|
} else {
|
|
|
window.self.$.messager.alert("失败", data.message, "error");
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
}
|
|
|
});
|
|
|
$(this).datagrid("getPanel").find("a[role='close']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var shopsId = $(this).attr("dataId");
|
|
|
$.post(contextPath + "/couponLimit/shopStartOrStop.do", {
|
|
|
shopsIdForShop : shopsId,
|
|
|
shopLimitStatus : 0,
|
|
|
type : 0
|
|
|
}, function(data) {
|
|
|
if (data.code == CODE_SUCCESS) {
|
|
|
$("#limitListTable").datagrid("reload");
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : "关闭成功!"
|
|
|
});
|
|
|
} else {
|
|
|
window.self.$.messager.alert("失败", data.message, "error");
|
|
|
}
|
|
|
});
|
|
|
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function getAlreadyJudgedList(){
|
|
|
var depotNo = $("#depotNo").myCombobox("getValue");
|
|
|
$("#orderListTable").myDatagrid({
|
|
|
fit: true,
|
|
|
fitColumns: true,
|
|
|
striped: true,
|
|
|
url: contextPath + "/buyerOrder/queryOrderList",
|
|
|
method: 'POST',
|
|
|
queryParams: {
|
|
|
statusStr: "4,13",
|
|
|
depotNo: depotNo
|
|
|
},
|
|
|
loadFilter: function (data) {
|
|
|
var temp = defaultLoadFilter(data);
|
|
|
temp=null==temp?[]:temp;
|
|
|
temp.rows = temp.list;
|
|
|
return temp;
|
|
|
},
|
|
|
|
|
|
columns: [[{
|
|
|
title: "卖家快递单号",
|
|
|
field: "sellerWaybillCode",
|
|
|
width: 30,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "收货仓库",
|
|
|
field: "depotNo",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "商品件数",
|
|
|
field: "productNum",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
}, {
|
|
|
title: "SKU",
|
|
|
field: "skuStr",
|
|
|
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: "createTimeStr",
|
|
|
width: 20,
|
|
|
align: "center"
|
|
|
}]],
|
|
|
cache: false,
|
|
|
pagination: true,
|
|
|
pageSize: 20,
|
|
|
idField: "id",
|
|
|
singleSelect: true,
|
|
|
onLoadSuccess: function (data) {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function addPage() {
|
|
|
var div = $("<div id='addProductCouponLimitDiv'>").appendTo($(document.body));
|
|
|
var url = contextPath + "/html/promotion/useCouponLimit/add.html";
|
|
|
$(div).myDialog({
|
|
|
width: "50%",
|
|
|
height: "40%",
|
|
|
title: "导入商品的用券限制",
|
|
|
href: url,
|
|
|
modal: true,
|
|
|
collapsible: true,
|
|
|
cache: false,
|
|
|
buttons: [{
|
|
|
text: "保存",
|
|
|
id: "saveBtn",
|
|
|
iconCls: "icon-save",
|
|
|
onClick: function () {
|
|
|
$('#uploadFile').click();
|
|
|
}
|
|
|
}, {
|
|
|
text: "关闭",
|
|
|
iconCls: "icon-cancel",
|
|
|
handler: function () {
|
|
|
$(div).dialog("close");
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
</body>
|
|
|
</html> |
|
|
\ No newline at end of file |
...
|
...
|
|