...
|
...
|
@@ -7,6 +7,7 @@ |
|
|
</head>
|
|
|
<body class="easyui-layout">
|
|
|
<input type="hidden" id="buyerOrderCode">
|
|
|
<input type="skup" id="skup">
|
|
|
<div region="north" style="height:300px;">
|
|
|
<script>
|
|
|
document.write(addHead('鉴定中心', '列表管理'));
|
...
|
...
|
@@ -262,8 +263,8 @@ function getToBeJudgedList(){ |
|
|
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) {
|
|
|
return "<a role='pass' dataId='"+ rowData.orderCode +"' style='margin-left:10px;background-color: #5cb85c !important;'>鉴定通过</a>"+
|
|
|
"<a role='reject' dataId='"+ rowData.skup +"' style='margin-left:10px;background-color: #d9534f !important;'>鉴定不通过</a>";
|
|
|
return "<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;'>鉴定不通过</a>";
|
|
|
}
|
|
|
}
|
|
|
}]],
|
...
|
...
|
@@ -298,16 +299,17 @@ function getToBeJudgedList(){ |
|
|
});
|
|
|
$(this).datagrid("getPanel").find("a[role='pass']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var buyerOrderCode = $(this).attr("dataId");
|
|
|
var buyerOrderCode = $(this).attr("orderCode");
|
|
|
$("#buyerOrderCode").val(buyerOrderCode);
|
|
|
addPassPage();
|
|
|
addPassPage($(this).attr("dataId"));
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$(this).datagrid("getPanel").find("a[role='reject']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var skup = $(this).attr("dataId");
|
|
|
addRejectPage(skup);
|
|
|
var skup = $(this).attr("skup");
|
|
|
$("#skup").val(skup);
|
|
|
addRejectPage($(this).attr("dataId"));
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -386,7 +388,7 @@ function getAlreadyJudgedList(){ |
|
|
});
|
|
|
}
|
|
|
|
|
|
function addPassPage() {
|
|
|
function addPassPage(id) {
|
|
|
var div = $("<div id='passDiv'>").appendTo($(document.body));
|
|
|
var url = contextPath + "/html/judgeCenter/pass.html";
|
|
|
$(div).myDialog({
|
...
|
...
|
@@ -398,22 +400,111 @@ function addPassPage() { |
|
|
collapsible: true,
|
|
|
cache: false,
|
|
|
buttons: [{
|
|
|
text: "取消",
|
|
|
iconCls: "icon-cancel",
|
|
|
handler: function () {
|
|
|
$(div).dialog("close");
|
|
|
}
|
|
|
},{
|
|
|
text: "发货",
|
|
|
id: "saveBtn",
|
|
|
iconCls: "icon-save",
|
|
|
onClick: function () {
|
|
|
$('#uploadFile').click();
|
|
|
deliverGoods(id);
|
|
|
}
|
|
|
}, {
|
|
|
}]
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function addRejectPage(id) {
|
|
|
var div = $("<div id='rejectDiv'>").appendTo($(document.body));
|
|
|
var url = contextPath + "/html/judgeCenter/reject.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");
|
|
|
}
|
|
|
},{
|
|
|
text: "寄回",
|
|
|
id: "saveBtn",
|
|
|
iconCls: "icon-save",
|
|
|
onClick: function () {
|
|
|
sendBackGoods(id);
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function deliverGoods(id){
|
|
|
var expressCompany = $("#expressCompany").myCombobox("getValue");
|
|
|
var waybillCode = $("#waybillCode").textbox("getValue");
|
|
|
if(expressCompany==''){
|
|
|
alert("请选择快递公司!");
|
|
|
return;
|
|
|
}
|
|
|
if(waybillCode == ''){
|
|
|
alert("请填写快递单号!")
|
|
|
return;
|
|
|
}
|
|
|
$.post(contextPath + "/buyerOrder/updateOrderStatus", {
|
|
|
id : id,
|
|
|
status : 4,
|
|
|
expressCompay : expressCompany,
|
|
|
waybillCode : waybillCode
|
|
|
}, function(data) {
|
|
|
if (data.code == 200) {
|
|
|
$("#passDiv").dialog("close");
|
|
|
$("#orderListTable").datagrid("reload");
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : "鉴定通过操作成功!"
|
|
|
});
|
|
|
}else {
|
|
|
window.self.$.messager.alert("失败", "失败!", "error");
|
|
|
}
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
function sendBackGoods(id){
|
|
|
var expressCompany = $("#expressCompany").myCombobox("getValue");
|
|
|
var waybillCode = $("#waybillCode").textbox("getValue");
|
|
|
if(expressCompany==''){
|
|
|
alert("请选择快递公司!");
|
|
|
return;
|
|
|
}
|
|
|
if(waybillCode == ''){
|
|
|
alert("请填写快递单号!")
|
|
|
return;
|
|
|
}
|
|
|
$.post(contextPath + "/buyerOrder/updateOrderStatus", {
|
|
|
id : id,
|
|
|
status : 13,
|
|
|
expressCompay : expressCompany,
|
|
|
waybillCode : waybillCode
|
|
|
}, function(data) {
|
|
|
if (data.code == 200) {
|
|
|
$("#rejectDiv").dialog("close");
|
|
|
$("#orderListTable").datagrid("reload");
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : "鉴定不通过操作成功!"
|
|
|
});
|
|
|
}else {
|
|
|
window.self.$.messager.alert("失败", "失败!", "error");
|
|
|
}
|
|
|
});
|
|
|
|
|
|
}
|
|
|
</script>
|
|
|
</body>
|
|
|
</html> |
|
|
\ No newline at end of file |
...
|
...
|
|