...
|
...
|
@@ -149,7 +149,25 @@ |
|
|
<div id="orderList" region="center">
|
|
|
<table id="orderListTable"></table>
|
|
|
</div>
|
|
|
|
|
|
<div id="settle" class="easyui-dialog" style="width:650px;height:300px;padding:10px 20px" closed="true" resizable="true" modal="true" data-options="iconCls: 'icon-delete',buttons: '#dlg-buttons'">
|
|
|
<div class="settleContentDiv">
|
|
|
<div class="sIClearFix">
|
|
|
<table>
|
|
|
<tr><td>失败原因:</td><td><input class="easyui-textbox" id="settleFailTextbox" data-options="multiline:true" style="width:300px;height:100px"/></td></tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="btn">
|
|
|
<div style="text-align:right; padding-top:10px">
|
|
|
<a href="javascript:void(0)" class="easyui-linkbutton" id="settleFailBtn" iconcls="icon-ok">确定</a>
|
|
|
<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#settle').dialog('close')">关闭</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<script>
|
|
|
var settleOrderCode = "";
|
|
|
$(function() {
|
|
|
$("#basicTab li").click(function() {
|
|
|
$(this).siblings('li').removeClass('selected'); // 删除其他兄弟元素的样式
|
...
|
...
|
@@ -334,6 +352,9 @@ function getOrderList(){ |
|
|
|
|
|
}
|
|
|
}
|
|
|
if(rowData.status == 4 && (rowData.attributesStr=="海外现货" || rowData.attributesStr=="海外预售" )){
|
|
|
buttons += "<a role='settleFail' dataId='"+ rowData.orderCode +"' style='margin-left:10px;color:white;background-color: #D31225 !important;'>清关失败</a>";
|
|
|
}
|
|
|
return buttons;
|
|
|
}
|
|
|
}]],
|
...
|
...
|
@@ -354,6 +375,15 @@ function getOrderList(){ |
|
|
}
|
|
|
});
|
|
|
|
|
|
me.datagrid("getPanel").find("a[role='settleFail']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var orderCode = $(this).attr("dataId");
|
|
|
settleOrderCode = orderCode;
|
|
|
$("#settleFailTextbox").textbox("setValue","");
|
|
|
$("#settle").dialog('open').dialog('setTitle', '清关失败确认');
|
|
|
}
|
|
|
});
|
|
|
|
|
|
me.datagrid("getPanel").find("a[role='sellerDeliveryDealOrder']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var orderCode = $(this).attr("dataId");
|
...
|
...
|
@@ -441,7 +471,6 @@ function switchOrderStatus(navStatus){ |
|
|
}
|
|
|
getOrderList();
|
|
|
}
|
|
|
|
|
|
function getCountByNavStatus(){
|
|
|
//发送请求
|
|
|
$.ajax({
|
...
|
...
|
@@ -458,6 +487,7 @@ function getCountByNavStatus(){ |
|
|
$("#num_0").html(result.data.num_0);
|
|
|
$("#num_1").html(result.data.num_1);
|
|
|
$("#num_2").html(result.data.num_2);
|
|
|
|
|
|
$("#num_3").html(result.data.num_3);
|
|
|
$("#num_4").html(result.data.num_4);
|
|
|
$("#num_5").html(result.data.num_5);
|
...
|
...
|
@@ -477,6 +507,41 @@ function getCountByNavStatus(){ |
|
|
});
|
|
|
}
|
|
|
|
|
|
$("#settleFailBtn").linkbutton({
|
|
|
text: "确定",
|
|
|
iconCls : "icon-ok",
|
|
|
onClick : function() {
|
|
|
var param = {};
|
|
|
param.orderCode = settleOrderCode;
|
|
|
param.settleFailReason = $("#settleFailTextbox").textbox("getValue");
|
|
|
if(param.settleFailReason == ""){
|
|
|
$.messager.alert("提示消息", "请填写清关失败原因!");
|
|
|
return;
|
|
|
}
|
|
|
if(param.orderCode == ""){
|
|
|
$.messager.alert("提示消息", "订单号为空!");
|
|
|
return;
|
|
|
}
|
|
|
settleFail(param);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
function settleFail(param){
|
|
|
$.post(contextPath + "/buyerOrder/settleFail", param, function(result) {
|
|
|
if(result.code == 200) {
|
|
|
$('#settle').dialog('close');
|
|
|
$.messager.show({
|
|
|
title: "提示",
|
|
|
msg: result.message,
|
|
|
height: 120
|
|
|
});
|
|
|
}
|
|
|
else {
|
|
|
$.messager.alert("失败", result.message, "error");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
</body>
|
|
|
</html> |
|
|
\ No newline at end of file |
...
|
...
|
|