You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2150 lines
77 KiB
Plaintext
2150 lines
77 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DD_PostFind.aspx.cs" Inherits="TradeManage.DingDan.DD_PostFind" %>
|
|
|
|
|
|
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>物流跟踪</title>
|
|
<link rel="stylesheet" type="text/css" href="../themes/default/easyui.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/icon.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/New.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/DataGrid.css" />
|
|
<script src="../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DataGrid.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DataPager.js" type="text/javascript"></script>
|
|
<script type="text/javascript" src="../Scripts/highcharts.js"></script>
|
|
<script src="../Scripts/jquery.bgiframe.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/Global.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.url.js" type="text/javascript"></script>
|
|
<script src="../Scripts/WindowLoad.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.cookies.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/MaskedTextBox.js" type="text/javascript"></script>
|
|
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox2.1/source/jquery.fancybox.css?v=2.1.5"
|
|
media="screen" />
|
|
<script type="text/javascript" src="../Scripts/fancybox2.1/lib/jquery.mousewheel-3.0.6.pack.js"></script>
|
|
<script type="text/javascript" src="../Scripts/fancybox2.1/source/jquery.fancybox.js?v=2.1.5"></script>
|
|
<script src="../Scripts/kindeditor/kindeditor-min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var datagrid1 = new nblf.ui.DataGrid("DataGrid1");
|
|
var datagrid2 = new nblf.ui.DataGrid("DataGrid2");
|
|
var UserId = "<%=Session["UserId"]%>";
|
|
var WindowLoadModel = new WindowLoad();
|
|
var Target = "";
|
|
var Id = 0;
|
|
var PostId = 0;
|
|
$(document).ready(function () {
|
|
WindowLoadModel.ApplicationPath = "../";
|
|
WindowLoadModel.ControlID = "WindowLoad";
|
|
WindowLoadModel.Isbgiframe = true;
|
|
WindowLoadModel.Load();
|
|
ajaxInit(WindowLoadModel);
|
|
Target = $.url.param("Target");
|
|
if (Target == undefined) {
|
|
Target = "";
|
|
}
|
|
if (UserId == 164)
|
|
$("#tr_bj").show();
|
|
$("#txt_days").MaskedTextBox();
|
|
CreateDataGrid();
|
|
CreateDataGrid2();
|
|
GetTempList();
|
|
GetDepartMent();
|
|
GetBasePlat();
|
|
GetExpressType();
|
|
GetExpress();
|
|
GetHour();
|
|
|
|
$("#select_dept,#select_plat").bind("change", function () {
|
|
GetShopList();
|
|
});
|
|
ReadData();
|
|
$("#" + datagrid1.TableID + " a[CommandName='cmdLook']").live("click", function () {
|
|
var RowIndex = $(this).parentsUntil("tr").parent().attr("index");
|
|
var model = datagrid1.Get_Model(RowIndex);
|
|
|
|
window.open("DD_OrderGoodsMateForTM.aspx?Title=订单查询&OrderId=" + model.OrderId);
|
|
|
|
});
|
|
$("#" + datagrid1.TableID + " input[CommandName='cmdWL']").live("click", function () {
|
|
var RowIndex = $(this).parentsUntil("tr").parent().attr("index");
|
|
var model = datagrid1.Get_Model(RowIndex);
|
|
Id = model.Id;
|
|
PostId = model.PostId;
|
|
if (model.TrackCode == null || model.TrackCode == "")
|
|
{
|
|
alert("订单没有跟踪码,无法查询");
|
|
return;
|
|
}
|
|
$("#txt_tcode").val(model.TrackCode);
|
|
if (model.PostInfo != null)
|
|
{
|
|
$("#txtPostInfo").val(model.PostInfo00);
|
|
}
|
|
else
|
|
$("#txtPostInfo").val("");
|
|
if (model.PostInfo1 != null) {
|
|
$("#txtPostInfo1").val(model.PostInfo11);
|
|
}
|
|
else
|
|
$("#txtPostInfo1").val("");
|
|
if (model.PostInfo2 != null) {
|
|
$("#txtPostInfo2").val(model.PostInfo22);
|
|
}
|
|
else
|
|
$("#txtPostInfo2").val("");
|
|
if (model.PostDate1 != null)
|
|
$("#txt_sxDate").val(model.PostDate1.localeFormat("yyyy-MM-dd HH:mm"));
|
|
else
|
|
$("#txt_sxDate").val("");
|
|
if (model.PostDate2 != null)
|
|
$("#txt_jhDate").val(model.PostDate2.localeFormat("yyyy-MM-dd HH:mm"));
|
|
else
|
|
$("#txt_jhDate").val("");
|
|
if (model.PostDate3 != null)
|
|
$("#txt_mdgDate").val(model.PostDate3.localeFormat("yyyy-MM-dd HH:mm"));
|
|
else
|
|
$("#txt_mdgDate").val("");
|
|
|
|
if (model.DoneDate != null)
|
|
$("#txt_qsDate").val(model.DoneDate.localeFormat("yyyy-MM-dd HH:mm"));
|
|
else
|
|
$("#txt_qsDate").val("");
|
|
$("#txtRemark").val(model.Remark);
|
|
$("#select_wlstate").val(model.State);
|
|
fopen2();
|
|
|
|
|
|
});
|
|
|
|
$("#" + datagrid1.TableID + " input[CommandName='cmdEdit']").live("click", function () {
|
|
var RowIndex = $(this).parentsUntil("tr").parent().attr("index");
|
|
var model = datagrid1.Get_Model(RowIndex);
|
|
if (model.State == 2) {
|
|
alert("该订单已经结束,不能编辑");
|
|
return;
|
|
|
|
|
|
}
|
|
if (model.State == 3) {
|
|
alert("该订单已经被取消,不能编辑");
|
|
return;
|
|
|
|
|
|
}
|
|
if (model.PostState == 1) {
|
|
alert("该订单已经发货,不能编辑");
|
|
return;
|
|
}
|
|
if (Target == "")
|
|
window.parent.addTab("订单修改", "DingDan/DD_OrderGoodsMateForTM.aspx?Title=订单查询&OrderId=" + model.OrderId, true);
|
|
else
|
|
window.open("DD_OrderGoodsMateForTM.aspx?Title=订单查询&OrderId=" + model.OrderId);
|
|
// window.location.href = "DD_OrderGoodsMate.aspx?OrderId=" + model.OrderId;
|
|
|
|
});
|
|
|
|
|
|
|
|
$("#btn_Word").bind("click", function () {
|
|
var selectlist = datagrid1.GetSelectListModel();
|
|
if (selectlist == null || selectlist.length == 0) {
|
|
alert("请选择要回复留言的订单");
|
|
return;
|
|
}
|
|
fopen3();
|
|
});
|
|
$("#select_temp").bind("change", function () {
|
|
GetTempModel();
|
|
});
|
|
$("#btn_Cancel").click($.fancybox.close);
|
|
//var myDate = new Date();
|
|
//var day = myDate.getDate();
|
|
//var month = myDate.getMonth();
|
|
|
|
$("#btn_Blank").bind("click", function () {
|
|
var SelectListModels = datagrid1.GetSelectListModel();
|
|
if (SelectListModels == null || $(SelectListModels).length == 0) {
|
|
alert("请选择要建空包裹的订单");
|
|
return;
|
|
|
|
}
|
|
var OrderIds = "";
|
|
var error = "";
|
|
$(SelectListModels).each(function () {
|
|
|
|
if (this.State == 3) {
|
|
error += this.PlatOrderCode + "取消订单";
|
|
|
|
}
|
|
else if (this.State == 2) {
|
|
|
|
error += this.PlatOrderCode + "订单已经发货";
|
|
|
|
}
|
|
else if (this.IsBlank == 1) {
|
|
|
|
error += this.PlatOrderCode + "已经创建过空包裹";
|
|
|
|
} else if (this.MateState == 2) {
|
|
|
|
error += this.PlatOrderCode + "已经匹配,没必要空包裹";
|
|
|
|
}
|
|
else
|
|
OrderIds += this.OrderId + ",";
|
|
|
|
});
|
|
//if ($(SelectListModels).length > 1)
|
|
//{
|
|
// alert("空包裹不能选多个订单创建,请选择一个");
|
|
// return;
|
|
|
|
//}
|
|
if (error != "") {
|
|
alert(error + "不能创建空包裹");
|
|
return;
|
|
}
|
|
window.parent.addTab("空包裹", "DingDan/DD_OrderBlankAddList.aspx?Title=订单查询&OrderIds=" + OrderIds, true);
|
|
});
|
|
$("#div_img img").live("click", function () {
|
|
$("#img_1").attr("src", $(this).attr("src"));
|
|
|
|
});
|
|
$("#btn_sch").bind("click", function () {
|
|
datagrid1.SetPageIndex(1);
|
|
ReadData();
|
|
|
|
});
|
|
|
|
//$("#btn_add").bind("click", function () {
|
|
|
|
// window.location.href = "HW_GoodsAddForTM.aspx?GoodsId=0";
|
|
//});
|
|
$("#chk_pp,#chk_yc,#chk_hb").bind("click", function () {
|
|
|
|
ReadData();
|
|
});
|
|
// $("#select_fhstate").bind("change", function () {
|
|
|
|
// ReadData();
|
|
//if ($(this).val() == "2")
|
|
// $("#btn_Send").show();
|
|
//else
|
|
// $("#btn_Send").hide();
|
|
// });
|
|
//$("#select_plat,#select_shop,#select_ppstate,#select_printstate,#select_moneystate").bind("change", function () {
|
|
|
|
// ReadData();
|
|
|
|
//});
|
|
$("#btn_bz").bind("click", function () {
|
|
GetExpressDays();
|
|
fopen6();
|
|
|
|
});
|
|
$("#btn_tj1").bind("click", function () {
|
|
Clearcss();
|
|
State = -1;
|
|
$(this).attr("class", "btnSelected");
|
|
$("#font1").show();
|
|
ReadData();
|
|
});
|
|
$("#btn_tj2").bind("click", function () {
|
|
State = 2;
|
|
Clearcss();
|
|
$("#btn_Word").show();
|
|
$(this).attr("class", "btnSelected");
|
|
//$("#btn_Send").show();
|
|
$("#font2").show();
|
|
ReadData();
|
|
});
|
|
$("#btn_tj3").bind("click", function () {
|
|
Clearcss();
|
|
State = 3;
|
|
$(this).attr("class", "btnSelected");
|
|
$("#font3").show();
|
|
ReadData();
|
|
});
|
|
$("#btn_tj31").bind("click", function () {
|
|
Clearcss();
|
|
State = 4;
|
|
$(this).attr("class", "btnSelected");
|
|
$("#font3").show();
|
|
ReadData();
|
|
});
|
|
$("#btn_tj32").bind("click", function () {
|
|
Clearcss();
|
|
State = 5;
|
|
$(this).attr("class", "btnSelected");
|
|
$("#font3").show();
|
|
ReadData();
|
|
});
|
|
$("#btn_tj33").bind("click", function () {
|
|
Clearcss();
|
|
State =9;
|
|
$(this).attr("class", "btnSelected");
|
|
$("#font3").show();
|
|
ReadData();
|
|
});
|
|
$("#btn_tj4").bind("click", function () {
|
|
Clearcss();
|
|
State = 6;
|
|
//$("#txt_days").val("4");
|
|
$(this).attr("class", "btnSelected");
|
|
$("#font4").show();
|
|
ReadData();
|
|
});
|
|
$("#btn_tj5").bind("click", function () {
|
|
Clearcss();
|
|
State = 7;
|
|
$(this).attr("class", "btnSelected");
|
|
$("#font5").show();
|
|
ReadData();
|
|
});
|
|
$("#btn_tj6").bind("click", function () {
|
|
Clearcss();
|
|
State =1;
|
|
$(this).attr("class", "btnSelected");
|
|
$("#font5").show();
|
|
ReadData();
|
|
});
|
|
$("#btn_tj7").bind("click", function () {
|
|
Clearcss();
|
|
State = 0;
|
|
$(this).attr("class", "btnSelected");
|
|
$("#font5").show();
|
|
ReadData();
|
|
});
|
|
$("#btn_tj8").bind("click", function () {
|
|
Clearcss();
|
|
State = 8;
|
|
$(this).attr("class", "btnSelected");
|
|
$("#font5").show();
|
|
ReadData();
|
|
});
|
|
$("#selectwl").bind("change", function () {
|
|
|
|
GetExpress();
|
|
|
|
});
|
|
$("#btn_chart").bind("click", function () {
|
|
ReadCount1();
|
|
ReadCount2();
|
|
fopen4();
|
|
});
|
|
$("#btn_chart2").bind("click", function () {
|
|
ReadCount3();
|
|
|
|
fopen5();
|
|
});
|
|
$("#btn_chart3").bind("click", function () {
|
|
ReadCount4();
|
|
|
|
fopen5();
|
|
});
|
|
$("#a_17track").bind("click", function () {
|
|
window.open("http://www.17track.net/zh-cn/track?nums=" + $("#txt_tcode").val());
|
|
|
|
});
|
|
});
|
|
function GetHour()
|
|
{
|
|
for (var i = 0; i < 24; i++) {
|
|
|
|
$("#select_shour").append("<option value='" + i + "' selected='selected'>" + i.toString() + "时</option>");
|
|
|
|
$("#select_ehour").append("<option value='" + i + "' selected='selected'>" + i.toString() + "时</option>");
|
|
|
|
}
|
|
$("#select_shour").val("0");
|
|
$("#select_ehour").val("23");
|
|
}
|
|
function ReadCount1() {
|
|
SetChart();
|
|
var param = new Object();
|
|
|
|
param.State = State;
|
|
param.DeptId = $("#select_dept").val();
|
|
param.IsDetail = 0;
|
|
if ($("#chk_pp").is(':checked') == true)
|
|
param.IsDetail = 1;
|
|
if ($("#select_plat").find("option").length > 0)
|
|
param.PlatType = $("#select_plat").val();
|
|
else
|
|
param.PlatType = 0;
|
|
if ($("#select_shop").find("option").length > 0)
|
|
param.ShopId = $("#select_shop").val();
|
|
else
|
|
param.ShopId = 0;
|
|
if ($("#txt_days").val() != "")
|
|
param.OutDays = $("#txt_days").val();
|
|
else
|
|
param.OutDays = 0;
|
|
param.SDate = null;
|
|
if ($("#txt_SDate").val() != "")
|
|
param.SDate = $("#txt_SDate").val() + " " + $("#select_shour").val()+":00";
|
|
param.EDate = null;
|
|
if ($("#txt_EDate").val() != "")
|
|
param.EDate = $("#txt_EDate").val() + " " + $("#select_ehour").val() + ":00";
|
|
|
|
param.OrderCode = $("#txt_OrderCode").val();
|
|
param.Country = $("#txt_Country").val();
|
|
param.TrackCode = $("#txt_TrackCode").val();
|
|
param.LogisticsId = $("#selectwl").val();
|
|
param.PostId = $("#selectwl0").val();
|
|
param.TJ = $("#selectyy").val();
|
|
param.Days = 0;
|
|
if ($("#txt_days").val() != "")
|
|
param.Days = $("#txt_days").val();
|
|
param.DateType = $("#select_datetj").val();
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetOrderPostInfo2",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d != null) {
|
|
browsers = [];
|
|
//迭代,把异步获取的数据放到数组中
|
|
|
|
//设置数据
|
|
|
|
var hj = 0;
|
|
$(data.d).each(function () {
|
|
hj += this.Num;
|
|
});
|
|
$("#a1").html(hj);
|
|
|
|
|
|
var gznum = 0;
|
|
var qsnum = 0;
|
|
$(data.d).each(function () {
|
|
tjn1 = this.NowState + "【" + this.Num + "】";
|
|
tjd1 = this.Num / hj;
|
|
if (this.NowState != "无跟踪信息" && this.NowState != "查询不到")
|
|
gznum += this.Num;
|
|
if (this.NowState == "成功签收")
|
|
qsnum = this.Num;
|
|
|
|
browsers.push([tjn1, tjd1]);
|
|
});
|
|
$("#a2").html(gznum + "【" + (gznum * 100 / hj).toFixed(2) + "%】");
|
|
$("#a3").html(qsnum + "【" + (qsnum * 100 / hj).toFixed(2) + "%】");
|
|
chart.series[0].setData(browsers);
|
|
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
|
|
}
|
|
function ReadCount3() {
|
|
SetChart1();
|
|
var param = new Object();
|
|
|
|
param.State = State;
|
|
param.DeptId = $("#select_dept").val();
|
|
param.IsDetail = 0;
|
|
if ($("#chk_pp").is(':checked') == true)
|
|
param.IsDetail = 1;
|
|
if ($("#select_plat").find("option").length > 0)
|
|
param.PlatType = $("#select_plat").val();
|
|
else
|
|
param.PlatType = 0;
|
|
if ($("#select_shop").find("option").length > 0)
|
|
param.ShopId = $("#select_shop").val();
|
|
else
|
|
param.ShopId = 0;
|
|
if ($("#txt_days").val() != "")
|
|
param.OutDays = $("#txt_days").val();
|
|
else
|
|
param.OutDays = 0;
|
|
param.SDate = null;
|
|
if ($("#txt_SDate").val() != "")
|
|
param.SDate = $("#txt_SDate").val() + " " + $("#select_shour").val() + ":00";
|
|
param.EDate = null;
|
|
if ($("#txt_EDate").val() != "")
|
|
param.EDate = $("#txt_EDate").val() + " " + $("#select_ehour").val() + ":00";
|
|
|
|
|
|
param.OrderCode = $("#txt_OrderCode").val();
|
|
param.Country = $("#txt_Country").val();
|
|
param.TrackCode = $("#txt_TrackCode").val();
|
|
param.LogisticsId = $("#selectwl").val();
|
|
param.PostId = $("#selectwl0").val();
|
|
param.TJ = $("#selectyy").val();
|
|
param.Days = 0;
|
|
if ($("#txt_days").val() != "")
|
|
param.Days = $("#txt_days").val();
|
|
param.DateType = $("#select_datetj").val();
|
|
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetOrderPostInfo5",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d != null) {
|
|
browsers = [];
|
|
//迭代,把异步获取的数据放到数组中
|
|
|
|
//设置数据
|
|
|
|
var hj = 0;
|
|
$(data.d).each(function () {
|
|
hj += this.Num;
|
|
});
|
|
|
|
|
|
var gznum = 0;
|
|
var qsnum = 0;
|
|
$(data.d).each(function () {
|
|
tjn1 = this.PostName + "【" + this.Num + "】";
|
|
tjd1 = this.Num / hj;
|
|
browsers.push([tjn1, tjd1]);
|
|
});
|
|
|
|
chart1.series[0].setData(browsers);
|
|
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
|
|
}
|
|
|
|
function ReadCount4() {
|
|
SetChart1();
|
|
var param = new Object();
|
|
|
|
param.State = State;
|
|
param.DeptId = $("#select_dept").val();
|
|
param.IsDetail = 0;
|
|
if ($("#chk_pp").is(':checked') == true)
|
|
param.IsDetail = 1;
|
|
if ($("#select_plat").find("option").length > 0)
|
|
param.PlatType = $("#select_plat").val();
|
|
else
|
|
param.PlatType = 0;
|
|
if ($("#select_shop").find("option").length > 0)
|
|
param.ShopId = $("#select_shop").val();
|
|
else
|
|
param.ShopId = 0;
|
|
if ($("#txt_days").val() != "")
|
|
param.OutDays = $("#txt_days").val();
|
|
else
|
|
param.OutDays = 0;
|
|
param.SDate = null;
|
|
if ($("#txt_SDate").val() != "")
|
|
param.SDate = $("#txt_SDate").val() + " " + $("#select_shour").val() + ":00";
|
|
param.EDate = null;
|
|
if ($("#txt_EDate").val() != "")
|
|
param.EDate = $("#txt_EDate").val() + " " + $("#select_ehour").val() + ":00";
|
|
|
|
|
|
param.OrderCode = $("#txt_OrderCode").val();
|
|
param.Country = $("#txt_Country").val();
|
|
param.TrackCode = $("#txt_TrackCode").val();
|
|
param.LogisticsId = $("#selectwl").val();
|
|
param.PostId = $("#selectwl0").val();
|
|
param.TJ = $("#selectyy").val();
|
|
param.Days = 0;
|
|
if ($("#txt_days").val() != "")
|
|
param.Days = $("#txt_days").val();
|
|
param.DateType = $("#select_datetj").val();
|
|
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetOrderPostInfo4",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d != null) {
|
|
browsers = [];
|
|
//迭代,把异步获取的数据放到数组中
|
|
|
|
//设置数据
|
|
|
|
var hj = 0;
|
|
$(data.d).each(function () {
|
|
hj += this.Num;
|
|
});
|
|
|
|
|
|
var gznum = 0;
|
|
var qsnum = 0;
|
|
$(data.d).each(function () {
|
|
tjn1 = this.PostName + "【" + this.Num + "】";
|
|
tjd1 = this.Num / hj;
|
|
browsers.push([tjn1, tjd1]);
|
|
});
|
|
|
|
chart1.series[0].setData(browsers);
|
|
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
|
|
}
|
|
function ReadCount2() {
|
|
|
|
var param = new Object();
|
|
|
|
param.State = State;
|
|
param.DeptId = $("#select_dept").val();
|
|
param.IsDetail = 0;
|
|
if ($("#chk_pp").is(':checked') == true)
|
|
param.IsDetail = 1;
|
|
if ($("#select_plat").find("option").length > 0)
|
|
param.PlatType = $("#select_plat").val();
|
|
else
|
|
param.PlatType = 0;
|
|
if ($("#select_shop").find("option").length > 0)
|
|
param.ShopId = $("#select_shop").val();
|
|
else
|
|
param.ShopId = 0;
|
|
if ($("#txt_days").val() != "")
|
|
param.OutDays = $("#txt_days").val();
|
|
else
|
|
param.OutDays = 0;
|
|
param.SDate = null;
|
|
if ($("#txt_SDate").val() != "")
|
|
param.SDate = $("#txt_SDate").val() + " " + $("#select_shour").val() + ":00";
|
|
param.EDate = null;
|
|
if ($("#txt_EDate").val() != "")
|
|
param.EDate = $("#txt_EDate").val() + " " + $("#select_ehour").val() + ":00";
|
|
|
|
|
|
param.OrderCode = $("#txt_OrderCode").val();
|
|
param.Country = $("#txt_Country").val();
|
|
param.TrackCode = $("#txt_TrackCode").val();
|
|
param.LogisticsId = $("#selectwl").val();
|
|
param.PostId = $("#selectwl0").val();
|
|
param.TJ = $("#selectyy").val();
|
|
param.Days = 0;
|
|
if ($("#txt_days").val() != "")
|
|
param.Days = $("#txt_days").val();
|
|
param.DateType = $("#select_datetj").val();
|
|
|
|
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetOrderPostInfo3",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d != null) {
|
|
|
|
|
|
$("#a4").html(data.d.Days);
|
|
|
|
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
|
|
}
|
|
var chart;
|
|
var chart1;
|
|
function SetChart() {
|
|
|
|
chart = new Highcharts.Chart({
|
|
//常规图表选项设置
|
|
chart: {
|
|
renderTo: 'container',
|
|
plotBackgroundColor: null,
|
|
plotBorderWidth: null,
|
|
plotShadow: false
|
|
},
|
|
title: {
|
|
text: '物流统计'
|
|
},
|
|
tooltip: {
|
|
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
|
|
},
|
|
plotOptions: {
|
|
pie: {
|
|
size: 180,
|
|
allowPointSelect: true,
|
|
cursor: 'pointer',
|
|
dataLabels: {
|
|
enabled: true,
|
|
color: '#000000',
|
|
connectorColor: '#000000',
|
|
format: '<b>{point.name}</b>: {point.percentage:.1f} %'
|
|
}
|
|
}
|
|
},
|
|
series: [{
|
|
type: 'pie',
|
|
name: '物流比例'
|
|
|
|
}]
|
|
});
|
|
|
|
}
|
|
function SetChart1() {
|
|
|
|
chart1 = new Highcharts.Chart({
|
|
//常规图表选项设置
|
|
chart: {
|
|
renderTo: 'container2',
|
|
plotBackgroundColor: null,
|
|
plotBorderWidth: null,
|
|
plotShadow: false
|
|
},
|
|
title: {
|
|
text: '物流发货比例'
|
|
},
|
|
tooltip: {
|
|
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
|
|
},
|
|
plotOptions: {
|
|
pie: {
|
|
size: 180,
|
|
allowPointSelect: true,
|
|
cursor: 'pointer',
|
|
dataLabels: {
|
|
enabled: true,
|
|
color: '#000000',
|
|
connectorColor: '#000000',
|
|
format: '<b>{point.name}</b>: {point.percentage:.1f} %'
|
|
}
|
|
}
|
|
},
|
|
series: [{
|
|
type: 'pie',
|
|
name: '物流发货比例'
|
|
|
|
}]
|
|
});
|
|
|
|
}
|
|
function Clearcss() {
|
|
|
|
$("#btn_tj1,#btn_tj2,#btn_tj3,#btn_tj31,#btn_tj32,#btn_tj33,#btn_tj4,#btn_tj5,#btn_tj6,#btn_tj7,#btn_tj8").attr("class", "btnUnSelected");
|
|
|
|
}
|
|
function GetExpressType() {
|
|
|
|
$("#selectwl").append("<option value='0'>全部</option>");
|
|
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../SysManage/SysManageService.asmx/GetExpressTypeList",
|
|
// data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
//async: false,
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
|
|
if (data.d != null) {
|
|
$(data.d).each(function () {
|
|
$("#selectwl").append("<option value='" + this.LogisticsId + "'>" + this.LogisticsName + "</option>");
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
}
|
|
});
|
|
}
|
|
function GetExpressDays() {
|
|
|
|
// var param = new Object();
|
|
// param.LogisticsId = $("#selectwl").val();
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetExpressDays",
|
|
// data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
// async: false,
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d != null) {
|
|
datagrid2.DataBind(data.d);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
});
|
|
}
|
|
function GetExpress() {
|
|
$("#selectwl0").empty();
|
|
|
|
$("#selectwl0").append("<option value='0'>-全部-</option>");
|
|
|
|
//$("#div_postinfo").empty();
|
|
var param = new Object();
|
|
param.LogisticsId = $("#selectwl").val();
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../BaseData.asmx/GetExpressPostList",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
async: false,
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d != null) {
|
|
$(data.d).each(function (i) {
|
|
$("#selectwl0").append("<option value='" + this.ExpressID + "'>" + this.Name + "</option>");
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
});
|
|
}
|
|
function GetDepartMent() {
|
|
$("#select_dept").append("<option value='0'>全部</option>");
|
|
|
|
|
|
var param = new Object();
|
|
|
|
param.DeptType = "事业部";
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../SysManage/SysManageService.asmx/GetDepartList",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
async: false,
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
|
|
if (data.d != null) {
|
|
$(data.d).each(function () {
|
|
$("#select_dept").append("<option value='" + this.DeptId + "'>" + this.DeptName + "</option>");
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
}
|
|
});
|
|
}
|
|
function GetBasePlat() {
|
|
|
|
$("#select_plat").append("<option value='0'>全部</option>");
|
|
var param = new Object();
|
|
param.CompanyID = 0;
|
|
param.KeyName = "ptlx";
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../UserService.asmx/GetPlatBaseCode",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
|
|
if (data.d != null) {
|
|
$(data.d).each(function () {
|
|
$("#select_plat").append("<option value='" + this.SortNo + "'>" + this.Name + "</option>");
|
|
});
|
|
GetShopList();
|
|
}
|
|
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function GetShopList() {
|
|
$("#select_shop").empty();
|
|
$("#select_shop").append("<option value='0'>全部</option>");
|
|
var param = new Object();
|
|
|
|
param.DeptId = $("#select_dept").val();
|
|
param.PlatType = $("#select_plat").val();
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../BaseData.asmx/GetDeptShopList",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
|
|
if (data.d != null) {
|
|
$(data.d).each(function (i) {
|
|
$("#select_shop").append("<option value='" + this.ShopId + "'>" + this.ShopName + "</option>");
|
|
});
|
|
|
|
}
|
|
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function AddTr() {
|
|
|
|
$("#" + datagrid1.TableID + " tr").each(function (i) {
|
|
if (i > 0) {
|
|
|
|
|
|
var index = $(this).attr("index");
|
|
var md = datagrid1.Get_Model(index);
|
|
var shtmls = "";
|
|
|
|
|
|
shtmls = "<tr><td colspan='14'><table width='90%' class='trTable'><tr><td style='font-weight:bolder;font-size:10pt;border: 1px solid red;' colspan='2'><font color='green'>最新信息:</font>" + md.PostInfo + "</td></tr><tr><td width='50%' valign='top' style='color:#ff8c00'>发件国家:<br/>" + md.PostInfo1 + "</td><td width='50%' valign='top' style='color:blue'>目的国家:<br/>" + md.PostInfo2 + "</td></tr>";
|
|
|
|
shtmls += "</table></td><tr>";
|
|
$(this).after(shtmls);
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
function fopen() {
|
|
|
|
$.fancybox({
|
|
'width': '40%',
|
|
'height': '40%',
|
|
'autoScale': false,
|
|
'transitionIn': 'elastic',
|
|
'transitionOut': 'elastic',
|
|
'href': '#test',
|
|
'onComplete': function () {
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
function fopen6() {
|
|
|
|
$.fancybox({
|
|
'width': '40%',
|
|
'height': '40%',
|
|
'autoScale': false,
|
|
'transitionIn': 'elastic',
|
|
'transitionOut': 'elastic',
|
|
'href': '#test6',
|
|
'onComplete': function () {
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
function fopen2() {
|
|
|
|
$.fancybox({
|
|
'width': '40%',
|
|
'height': '40%',
|
|
'autoScale': false,
|
|
'transitionIn': 'elastic',
|
|
'transitionOut': 'elastic',
|
|
'href': '#test2',
|
|
'onComplete': function () {
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
function fopen3() {
|
|
|
|
$.fancybox({
|
|
'width': '40%',
|
|
'height': '40%',
|
|
'autoScale': false,
|
|
'transitionIn': 'elastic',
|
|
'transitionOut': 'elastic',
|
|
'href': '#test3',
|
|
'onComplete': function () {
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
function fopen4() {
|
|
|
|
$.fancybox({
|
|
'width': '40%',
|
|
'height': '40%',
|
|
'autoScale': false,
|
|
'transitionIn': 'elastic',
|
|
'transitionOut': 'elastic',
|
|
'href': '#test4',
|
|
'onComplete': function () {
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
function fopen5() {
|
|
|
|
$.fancybox({
|
|
'width': '40%',
|
|
'height': '40%',
|
|
'autoScale': false,
|
|
'transitionIn': 'elastic',
|
|
'transitionOut': 'elastic',
|
|
'href': '#test5',
|
|
'onComplete': function () {
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
//#endregion
|
|
//#region 初始化DataGrid
|
|
function CreateDataGrid() {
|
|
|
|
var col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "订单号";
|
|
col.CellTemplate = "<a CommandName='cmdLook' class='linka'>{Bind OrderCode}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "合并号";
|
|
col.CellTemplate = "<a>{Bind JoinOrderCode}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "店铺";
|
|
col.CellTemplate = "<span>{Bind ShopName}</span>";
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "运单号";
|
|
col.CellTemplate = "<span>{Bind TrackCode}</span>";
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "发货日期";
|
|
col.CellTemplate = "<span>{Bind ScanDate,yyyy-MM-dd HH:mm}</span>";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "国家";
|
|
col.CellTemplate = "<span>{Bind CountryName}</span>";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "物流渠道";
|
|
col.CellTemplate = "<span>{Bind PostName}</span>";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "物流状态";
|
|
col.CellTemplate = "<span>{Bind NowState}</span>";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "上线时间";
|
|
col.CellTemplate = "<span>{Bind PostDate1,yyyy-MM-dd HH:mm}</span>";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "交航时间";
|
|
|
|
col.CellTemplate = "<span>{Bind PostDate2,yyyy-MM-dd HH:mm}</span>";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "目的国家时间";
|
|
col.CellTemplate = "<span>{Bind PostDate3,yyyy-MM-dd HH:mm}</span>";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "签收时间";
|
|
col.CellTemplate = "<span>{Bind DoneDate,yyyy-MM-dd HH:mm}</span>";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "寄达天数";
|
|
col.CellTemplate = "<span>{Bind Days}</span>";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "物流备注";
|
|
col.CellTemplate = "<div style='width:120px;word-break:break-all;'>{Bind Remark}</div>";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "操作";
|
|
col.Width = "80px";
|
|
col.CellTemplate = "<input CommandName='cmdWL' class='btnClass dgbtnEdit' type='button' value='修改'></input> ";
|
|
Array.add(datagrid1.Columns, col);
|
|
datagrid1.SetPageSize(50);
|
|
datagrid1.SetPageIndex(1);
|
|
//datagrid1.SortExpression = "OrderId";
|
|
//datagrid1.ViewSortDirection = "desc";
|
|
datagrid1.IsFixHeader = false;
|
|
datagrid1.ShowIndexColumn = false;
|
|
datagrid1.AllowPaging = true;
|
|
datagrid1.Width = "100%";
|
|
datagrid1.SelectMode = nblf.ui.SelectMode.CheckBox;
|
|
datagrid1.Init();
|
|
//datagrid1.Sorting(function () {
|
|
|
|
// ReadData();
|
|
//});
|
|
datagrid1.add_PageIndexChanged(function () { ReadData(); });
|
|
|
|
}
|
|
function CreateDataGrid2() {
|
|
|
|
var col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "物流渠道";
|
|
col.CellTemplate = "<a>{Bind Name}</a>";
|
|
Array.add(datagrid2.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "承诺寄达天数";
|
|
col.CellTemplate = "<input ColName='DoneDays' class='editTextbox' type='text' min='1' max='200' precision='0' style='width:60px;' value='{Bind DoneDays}'></input>天";
|
|
Array.add(datagrid2.Columns, col);
|
|
|
|
|
|
datagrid2.SetPageSize(50);
|
|
datagrid2.SetPageIndex(1);
|
|
//datagrid1.SortExpression = "OrderId";
|
|
//datagrid1.ViewSortDirection = "desc";
|
|
datagrid2.IsFixHeader = false;
|
|
datagrid2.ShowIndexColumn = false;
|
|
datagrid2.AllowPaging = false;
|
|
datagrid2.Width = "100%";
|
|
datagrid2.SelectMode = nblf.ui.SelectMode.None;
|
|
datagrid2.Init();
|
|
//datagrid1.Sorting(function () {
|
|
|
|
// ReadData();
|
|
//});
|
|
//datagrid1.add_PageIndexChanged(function () { ReadData(); });
|
|
|
|
}
|
|
var State =-1;
|
|
//#endregion
|
|
//#region 读取数据
|
|
function ReadData() {
|
|
var param = new Object();
|
|
|
|
param.State = State;
|
|
param.DeptId = $("#select_dept").val();
|
|
param.IsDetail = 0;
|
|
if ($("#chk_pp").is(':checked') == true)
|
|
param.IsDetail = 1;
|
|
if ($("#select_plat").find("option").length > 0)
|
|
param.PlatType = $("#select_plat").val();
|
|
else
|
|
param.PlatType = 0;
|
|
if ($("#select_shop").find("option").length > 0)
|
|
param.ShopId = $("#select_shop").val();
|
|
else
|
|
param.ShopId = 0;
|
|
if ($("#txt_days").val() != "")
|
|
param.OutDays = $("#txt_days").val();
|
|
else
|
|
param.OutDays = 0;
|
|
param.SDate = null;
|
|
if ($("#txt_SDate").val() != "")
|
|
param.SDate = $("#txt_SDate").val() + " " + $("#select_shour").val() + ":00";
|
|
param.EDate = null;
|
|
if ($("#txt_EDate").val() != "")
|
|
param.EDate = $("#txt_EDate").val() + " " + $("#select_ehour").val() + ":00";
|
|
|
|
param.OrderCode = $("#txt_OrderCode").val();
|
|
param.Country = $("#txt_Country").val();
|
|
param.TrackCode = $("#txt_TrackCode").val();
|
|
param.LogisticsId = $("#selectwl").val();
|
|
param.PostId = $("#selectwl0").val();
|
|
param.TJ = $("#selectyy").val();
|
|
param.Days = 0;
|
|
if($("#txt_days").val()!="")
|
|
param.Days = $("#txt_days").val();
|
|
param.DateType = $("#select_datetj").val();
|
|
|
|
param.PageSize = datagrid1.Get_PageSize();
|
|
param.PageIndex = datagrid1.Get_PageIndex();
|
|
param.Sort = "Id";
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetOrderPostInfo",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
datagrid1.Set_RowCount(data.d.RowCount);
|
|
datagrid1.DataBind(data.d.DataSource);
|
|
if (param.IsDetail == 1)
|
|
AddTr();
|
|
|
|
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
|
|
//#endregion
|
|
//#region 删除
|
|
function DelCol(obj) {
|
|
if (window.confirm('确定要删除订单吗?') == false) return;
|
|
|
|
var rowindex = $(obj).parent().parent().attr("index");
|
|
var param = new Object();
|
|
var model = datagrid1.Get_Model(rowindex);
|
|
if (model.State == 2) {
|
|
alert("该订单已经结束,无法删除");
|
|
return;
|
|
|
|
}
|
|
param.OrderId = model.OrderId;
|
|
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/DeleteOrder",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
alert("删除成功");
|
|
|
|
|
|
}
|
|
});
|
|
|
|
datagrid1.Del_Row(rowindex);
|
|
}
|
|
|
|
function BackCancelOrder() {
|
|
|
|
var SelectListModels = datagrid1.GetSelectListModel();
|
|
if (SelectListModels == null || $(SelectListModels).length == 0) {
|
|
alert("请选择要回复的订单");
|
|
return;
|
|
|
|
}
|
|
var list = new Array();
|
|
var error = "";
|
|
$(SelectListModels).each(function () {
|
|
if (this.State != 3) {
|
|
error += this.PlatOrderCode + "订单状态不是取消状态,不能恢复;";
|
|
}
|
|
else {
|
|
|
|
var md = new Object();
|
|
md.OrderId = this.OrderId;
|
|
Array.add(list, md);
|
|
}
|
|
});
|
|
if (error != "") {
|
|
alert(error);
|
|
return;
|
|
}
|
|
if (window.confirm('确定要恢复订单吗?') == false) return;
|
|
|
|
var param = new Object();
|
|
|
|
param.list = list;
|
|
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/CancelBackOrderForTM",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
alert("恢复成功");
|
|
ReadData();
|
|
|
|
}
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
function CancelOrder() {
|
|
var SelectListModels = datagrid1.GetSelectListModel();
|
|
if (SelectListModels == null || $(SelectListModels).length == 0) {
|
|
alert("请选择要取消的订单");
|
|
return;
|
|
|
|
}
|
|
var list = new Array();
|
|
var error = "";
|
|
$(SelectListModels).each(function () {
|
|
if (this.State == 3) {
|
|
error += this.PlatOrderCode + "订单已经是取消状态;";
|
|
}
|
|
else
|
|
if (this.PrintState==1) {
|
|
error += this.PlatOrderCode + "订单已经打印,无法取消;";
|
|
}
|
|
else
|
|
if (this.MateState>0) {
|
|
error += this.PlatOrderCode + "订单状态已经匹配库存,请取消库存匹配后再取消;";
|
|
}
|
|
else {
|
|
var md = new Object();
|
|
md.OrderId = this.OrderId;
|
|
md.PlatOrderCode = this.PlatOrderCode;
|
|
Array.add(list, md);
|
|
}
|
|
});
|
|
if (error != "")
|
|
{
|
|
alert(error);
|
|
return;
|
|
}
|
|
if (window.confirm('确定要取消订单吗?') == false) return;
|
|
var param = new Object();
|
|
|
|
|
|
param.list =list;
|
|
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/DeleteCancelOrderForTM",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
if (data.d == "") {
|
|
alert("取消成功");
|
|
}
|
|
else
|
|
{
|
|
alert(data.d);
|
|
}
|
|
ReadData();
|
|
|
|
}
|
|
});
|
|
|
|
|
|
|
|
}
|
|
function DeleteOrder() {
|
|
var SelectListModels = datagrid1.GetSelectListModel();
|
|
if (SelectListModels == null || $(SelectListModels).length == 0) {
|
|
alert("请选择要删除的订单");
|
|
return;
|
|
|
|
}
|
|
var OrderIds = "";
|
|
var error = "";
|
|
$(SelectListModels).each(function () {
|
|
if (this.MateState >0) {
|
|
error += this.PlatOrderCode + "订单状态匹配库存,无法直接删除;";
|
|
}
|
|
else
|
|
if (this.State != 1) {
|
|
error += this.PlatOrderCode + "订单状态已经发货或者已经取消,不能直接删除了;";
|
|
}
|
|
else {
|
|
OrderIds += this.OrderId + ",";
|
|
|
|
}
|
|
});
|
|
if (error != "") {
|
|
alert(error);
|
|
return;
|
|
}
|
|
if (window.confirm('确定要删除订单吗?') == false) return;
|
|
var param = new Object();
|
|
|
|
|
|
param.OrderIds = OrderIds;
|
|
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/DeleteOrderForTM",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
alert("删除成功");
|
|
ReadData();
|
|
|
|
}
|
|
});
|
|
|
|
|
|
|
|
}
|
|
function UpdatePostState() {
|
|
if (window.confirm('确定要修改成允许发货吗?') == false) return;
|
|
|
|
var selectlist = datagrid1.GetSelectListModel();
|
|
if (selectlist == null || selectlist.length == 0) {
|
|
alert("请选择要修改发货的订单");
|
|
return;
|
|
}
|
|
|
|
var param = new Object();
|
|
|
|
|
|
param.list = selectlist;
|
|
|
|
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/UpdatePostState",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
|
|
alert("修改完成");
|
|
|
|
ReadData();
|
|
|
|
}
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function DelTemp() {
|
|
if ($("#select_temp").val() == "0") {
|
|
return;
|
|
|
|
}
|
|
|
|
var param = new Object();
|
|
|
|
|
|
param.Id = $("#select_temp").val();
|
|
|
|
|
|
$.ajax({
|
|
url: "../BaseData.asmx/DeleteLY_Templete",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
alert("删除成功");
|
|
GetTempList();
|
|
$("#btn_DelTemp").hide();
|
|
}
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
function SaveTemp() {
|
|
|
|
|
|
if ($("#txt_TempName").val() == "") {
|
|
alert("请输入模板名称");
|
|
return;
|
|
}
|
|
if (KE.text() == "") {
|
|
alert("请输入模板内容");
|
|
return;
|
|
}
|
|
var param = new Object();
|
|
|
|
var md = new Object();
|
|
md.TempName = $("#txt_TempName").val();
|
|
md.TempContent = KE.html();// $("#txtContent").val();
|
|
param.model = md;
|
|
|
|
|
|
$.ajax({
|
|
url: "../BaseData.asmx/SaveLY_Templete",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
|
|
alert("保存成功");
|
|
GetTempList();
|
|
$("#btn_DelTemp").hide();
|
|
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
function GetTempList() {
|
|
|
|
$("#select_temp").empty();
|
|
$("#select_temp").append("<option value='0'>-选择-</option>");
|
|
|
|
$.ajax({
|
|
url: "../BaseData.asmx/GetTempleteList",
|
|
// data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
if (data.d != null) {
|
|
$(data.d).each(function () {
|
|
|
|
$("#select_temp").append("<option value='" + this.Id + "'>" + this.TempName + "</option>");
|
|
});
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
function GetTempModel() {
|
|
if ($("#select_temp").val() == "0") {
|
|
$("#btn_DelTemp").hide();
|
|
$("#txt_TempName").val("");
|
|
$("#txtContent").val("");
|
|
return;
|
|
|
|
}
|
|
$("#btn_DelTemp").show();
|
|
var param = new Object();
|
|
|
|
|
|
param.Id = $("#select_temp").val();
|
|
|
|
|
|
$.ajax({
|
|
url: "../BaseData.asmx/GetLY_Templete",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
if (data.d != null) {
|
|
$("#txt_TempName").val(data.d.TempName);
|
|
//$("#txtContent").val(data.d.TempContent);
|
|
$("#txtContent").val(data.d.TempContent);
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
|
|
|
|
}
|
|
function BackWord() {
|
|
var selectlist = datagrid1.GetSelectListModel();
|
|
if (selectlist == null || selectlist.length == 0) {
|
|
alert("请选择要回复留言的订单");
|
|
return;
|
|
}
|
|
if ($("#txtContent").val() == "") {
|
|
alert("请输入要回复的内容");
|
|
return;
|
|
}
|
|
var param = new Object();
|
|
var list = new Array();
|
|
$(selectlist).each(function () {
|
|
|
|
var md = new Object();
|
|
md.OrderCode = this.OrderCode;
|
|
md.OrderId = this.OrderId;
|
|
md.ShopId = this.ShopId;
|
|
md.CustomID = this.CustomID;
|
|
md.BackContent = $("#txtContent").val();
|
|
Array.add(list, md);
|
|
|
|
|
|
});
|
|
|
|
|
|
param.list = list;
|
|
|
|
|
|
$.ajax({
|
|
url: "../BaseData.asmx/SaveLY_Content",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
|
|
alert("回复完成");
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
|
|
function updatepostinfo() {
|
|
var selectlist = datagrid1.GetSelectListModel();
|
|
if (selectlist == null || selectlist.length == 0) {
|
|
alert("请选择要更新的跟踪码");
|
|
return;
|
|
}
|
|
|
|
var param = new Object();
|
|
|
|
|
|
param.list = selectlist;
|
|
|
|
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetTrackInfo2",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
|
|
alert("完成");
|
|
|
|
ReadData();
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
|
|
function updatepostinfo2() {
|
|
|
|
if (PostId == 72 || PostId == 79 || PostId == 82 || PostId == 84 || PostId == 90 || PostId == 91 || PostId == 92 || PostId == 94 || PostId == 96 || PostId == 107 || PostId == 100 || PostId == 110 || PostId == 118 || PostId == 128)
|
|
{
|
|
|
|
alert("该物流方式暂时无法获取跟踪信息");
|
|
return;
|
|
}
|
|
if ($("#txt_tcode").val() == "")
|
|
{
|
|
alert("请输入跟踪码");
|
|
return;
|
|
|
|
}
|
|
var param = new Object();
|
|
|
|
param.PostId = PostId;
|
|
param.TrackCodes =$("#txt_tcode").val();
|
|
WindowLoadModel.Show();
|
|
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetTrackInfo3",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d != null) {
|
|
$("#txtPostInfo").val(data.d.PostInfo);
|
|
$("#txtPostInfo1").val(data.d.PostInfo1);
|
|
$("#txtPostInfo2").val(data.d.PostInfo2);
|
|
|
|
if ($("#select_wlstate").val() != "2" && data.d.State != null) {
|
|
$("#select_wlstate").val(data.d.State);
|
|
}
|
|
if (data.d.PostDate1 != null && $("#txt_sxDate").val() == "") {
|
|
$("#txt_sxDate").val(data.d.PostDate1.localeFormat("yyyy-MM-dd HH:mm"));
|
|
}
|
|
if (data.d.PostDate2 != null && $("#txt_jhDate").val() == "") {
|
|
$("#txt_jhDate").val(data.d.PostDate2.localeFormat("yyyy-MM-dd HH:mm"));
|
|
}
|
|
if (data.d.PostDate3 != null && $("#txt_mdgDate").val() == "") {
|
|
$("#txt_mdgDate").val(data.d.PostDate3.localeFormat("yyyy-MM-dd HH:mm"));
|
|
}
|
|
if (data.d.DoneDate != null && $("#txt_qsDate").val() == "") {
|
|
$("#txt_qsDate").val(data.d.DoneDate.localeFormat("yyyy-MM-dd HH:mm"));
|
|
}
|
|
|
|
}
|
|
else {
|
|
alert("查询失败,再查询一次");
|
|
// updatepostinfo21();
|
|
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
function updatepostinfo21() {
|
|
|
|
var param = new Object();
|
|
|
|
param.PostId = PostId;
|
|
param.TrackCodes = $("#txt_tcode").val();
|
|
WindowLoadModel.Show();
|
|
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetTrackInfo3",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d != null) {
|
|
$("#txtPostInfo").val(data.d.PostInfo);
|
|
$("#txtPostInfo1").val(data.d.PostInfo1);
|
|
$("#txtPostInfo2").val(data.d.PostInfo2);
|
|
|
|
if ($("#select_wlstate").val()!= "2"&&data.d.State != null) {
|
|
$("#select_wlstate").val(data.d.State);
|
|
}
|
|
if(data.d.PostDate1!=null&&$("#txt_sxDate").val()=="")
|
|
{
|
|
$("#txt_sxDate").val(data.d.PostDate1.localeFormat("yyyy-MM-dd HH:mm"));
|
|
}
|
|
if (data.d.PostDate2 != null && $("#txt_jhDate").val() == "") {
|
|
$("#txt_jhDate").val(data.d.PostDate2.localeFormat("yyyy-MM-dd HH:mm"));
|
|
}
|
|
if (data.d.PostDate3 != null && $("#txt_mdgDate").val() == "") {
|
|
$("#txt_mdgDate").val(data.d.PostDate3.localeFormat("yyyy-MM-dd HH:mm"));
|
|
}
|
|
if (data.d.DoneDate != null && $("#txt_qsDate").val() == "") {
|
|
$("#txt_qsDate").val(data.d.DoneDate.localeFormat("yyyy-MM-dd HH:mm"));
|
|
}
|
|
}
|
|
else {
|
|
|
|
updatepostinfo22();
|
|
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
function updatepostinfo22() {
|
|
|
|
var param = new Object();
|
|
|
|
param.PostId = PostId;
|
|
param.TrackCodes = $("#txt_tcode").val();
|
|
WindowLoadModel.Show();
|
|
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetTrackInfo3",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d != null) {
|
|
$("#txtPostInfo").val(data.d.PostInfo);
|
|
$("#txtPostInfo1").val(data.d.PostInfo1);
|
|
$("#txtPostInfo2").val(data.d.PostInfo2);
|
|
|
|
if ($("#select_wlstate").val() != "2" && data.d.State != null) {
|
|
$("#select_wlstate").val(data.d.State);
|
|
}
|
|
if (data.d.PostDate1 != null && $("#txt_sxDate").val() == "") {
|
|
$("#txt_sxDate").val(data.d.PostDate1.localeFormat("yyyy-MM-dd HH:mm"));
|
|
}
|
|
if (data.d.PostDate2 != null && $("#txt_jhDate").val() == "") {
|
|
$("#txt_jhDate").val(data.d.PostDate2.localeFormat("yyyy-MM-dd HH:mm"));
|
|
}
|
|
if (data.d.PostDate3 != null && $("#txt_mdgDate").val() == "") {
|
|
$("#txt_mdgDate").val(data.d.PostDate3.localeFormat("yyyy-MM-dd HH:mm"));
|
|
}
|
|
if (data.d.DoneDate != null && $("#txt_qsDate").val() == "") {
|
|
$("#txt_qsDate").val(data.d.DoneDate.localeFormat("yyyy-MM-dd HH:mm"));
|
|
}
|
|
}
|
|
else {
|
|
|
|
alert("查询超时");
|
|
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
function updatepostinfo3() {
|
|
var selectlist = datagrid1.GetSelectListModel();
|
|
if (selectlist == null || selectlist.length == 0) {
|
|
alert("请选择要更新的跟踪码");
|
|
return;
|
|
}
|
|
$(selectlist).each(function () {
|
|
updatepostinfo4(this.TrackCode);
|
|
|
|
});
|
|
alert("完成");
|
|
|
|
ReadData();
|
|
|
|
}
|
|
function updatepostinfo4(code) {
|
|
|
|
var param = new Object();
|
|
|
|
|
|
param.TrackCodes = code;
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetTrackInfo3",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
async:false,
|
|
success: function (data) {
|
|
if (data.d == null) {
|
|
updatepostinfo4(code);
|
|
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
//#endregion
|
|
|
|
|
|
//#region 保存
|
|
function Save() {
|
|
var param = new Object();
|
|
var Model=new Object();
|
|
|
|
Model.Id = Id;
|
|
Model.State = $("#select_wlstate").val();
|
|
if ($("#select_wlstate").val() != "0")
|
|
Model.NowState = $("#select_wlstate").find("option:selected").text();
|
|
else
|
|
Model.NowState = "";
|
|
Model.PostInfo = $("#txtPostInfo").val();
|
|
Model.PostInfo1 = $("#txtPostInfo1").val();
|
|
Model.PostInfo2 = $("#txtPostInfo2").val();
|
|
Model.PostDate1 = $("#txt_sxDate").val();
|
|
Model.PostDate2 = $("#txt_jhDate").val();
|
|
Model.PostDate3 = $("#txt_mdgDate").val();
|
|
Model.DoneDate = $("#txt_qsDate").val();
|
|
Model.Remark = $("#txtRemark").val();
|
|
param.model = Model;
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/SavePostInfo",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
|
|
alert("成功");
|
|
ReadData();
|
|
$.fancybox.close();
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function SaveBJ() {
|
|
datagrid2.UpdateDataSource();
|
|
var param = new Object();
|
|
|
|
param.list = datagrid2.DataSource;
|
|
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/SaveDoneDays",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
alert("保存成功");
|
|
$.fancybox.close();
|
|
}
|
|
});
|
|
}
|
|
//#endregion
|
|
</script>
|
|
|
|
</head>
|
|
<body class="headbody">
|
|
<div class="title_ico">
|
|
物流跟踪信息
|
|
</div>
|
|
<div style="display:none">
|
|
<div id="test2" title="物流" style="width: 650px; height: 550px;">
|
|
<table width="95%" class="tableAll" border="1" ellspacing="0" cellpadding="2">
|
|
<tr>
|
|
<td class="f1" width="10%">跟踪码:</td>
|
|
<td colspan="3">
|
|
<input id="txt_tcode" class="editTextbox" style="width: 200px;" type="text" /> <input id="btn_sch2" class="btnClass btnClassFind" type="button" value="查询" onclick="updatepostinfo2();"/> <a id="a_17track" style="color:blue;text-decoration:underline;cursor:pointer">进入17track</a>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td class="f1" width="10%">最新事件:</td>
|
|
<td colspan="3">
|
|
<textarea id="txtPostInfo" cols="100" rows="2" class="editMultTextbox" style="width: 99%"></textarea>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr> <td colspan="2">发件国:<br />
|
|
<textarea id="txtPostInfo1" cols="100" rows="12" class="editMultTextbox" style="width: 99%"></textarea>
|
|
</td>
|
|
<td colspan="2">目的国:<br />
|
|
<textarea id="txtPostInfo2" cols="100" rows="12" class="editMultTextbox" style="width: 99%"></textarea>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="f1" width="10%">异常备注:</td>
|
|
<td colspan="3">
|
|
<textarea id="txtRemark" cols="100" rows="3" class="editMultTextbox" style="width: 99%"></textarea>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr> <td class="f1" width="10%" >物流状态:</td>
|
|
<td colspan="3">
|
|
<select id="select_wlstate" class="selectClass" style="width: 90px" name="D8">
|
|
<option value="0">-选择-</option>
|
|
<option value="2">成功签收</option>
|
|
<option value="3">上线</option>
|
|
<option value="4">交航</option>
|
|
<option value="5">到达目的国</option>
|
|
<option value="6">查询不到</option>
|
|
<%-- <option value="7">运输过久</option>
|
|
<option value="8">可能异常</option>--%>
|
|
<option value="9">退回</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr> <td class="f1" width="10%">上线时间:</td>
|
|
<td>
|
|
<input id="txt_sxDate" class="editTextbox" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" style="width: 150px;" type="text" />
|
|
</td><td class="f1" width="10%">交航时间:</td>
|
|
<td>
|
|
<input id="txt_jhDate" class="editTextbox" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" style="width: 150px;" type="text" />
|
|
</td>
|
|
</tr>
|
|
<tr> <td class="f1" width="10%">目的国时间:</td>
|
|
<td>
|
|
<input id="txt_mdgDate" class="editTextbox" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" style="width: 150px;" type="text" />
|
|
</td><td class="f1" width="10%">签收时间:</td>
|
|
<td>
|
|
<input id="txt_qsDate" class="editTextbox" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" style="width: 150px;" type="text" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" colspan="4">
|
|
<input id="btn_Save0" type="button" class="btnClass btnClassSave" value="保 存" onclick="Save()"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div id="test3" title="回复留言" style="width: 700px; height: 350px;">
|
|
<table width="95%" class="tableAll" border="1" ellspacing="0" cellpadding="2">
|
|
<tr>
|
|
<td align="center" colspan="2">回复留言</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="f1" width="80px">
|
|
留言模板:
|
|
</td>
|
|
<td>
|
|
<select id="select_temp" class="selectClass" style="width:120px" name="D1">
|
|
|
|
</select> <input id="btn_DelTemp" type="button" class="btnClass btnClassDel" value="删除模板" onclick="DelTemp()" style="display:none"/>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="f1" width="80px">
|
|
模板名称:
|
|
</td>
|
|
<td>
|
|
<input id="txt_TempName" class="editTextbox" style="width:120px;" type="text" /><input id="btn_SaveTemp" type="button" class="btnClass btnClassSave" value="保存成新模板" onclick="SaveTemp();" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" colspan="2">
|
|
<textarea id="txtContent" style="width: 95%; height: 200px;"></textarea>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td align="center" colspan="5">
|
|
<input id="btn_Save" type="button" class="btnClass btnClassSave" value="回 复" onclick="BackWord()"/> <input
|
|
id="btn_Cancel" type="button" class="btnClass btnClassClose" value="关 闭" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div id="test4" title="统计" style="width:700px; height:500px;">
|
|
<table width="95%" class="tableAll" border="1" ellspacing="0" cellpadding="2">
|
|
<tr>
|
|
|
|
<td colspan="4">
|
|
|
|
总数:<a id="a1" style="color:red"></a> 有跟踪信息数:<a id="a2" style="color:red"></a> 签收数:<a id="a3" style="color:red"></a>平均寄达天数:<a id="a4" style="color:red"></a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td colspan="4">
|
|
|
|
<div id="container">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
<div id="test5" title="统计" style="width:700px; height:500px;">
|
|
<table width="95%" class="tableAll" border="1" ellspacing="0" cellpadding="2">
|
|
<tr>
|
|
|
|
<td colspan="4">
|
|
|
|
各物流发货比例
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td colspan="4">
|
|
|
|
<div id="container2">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
<div id="test6" title="标准" style="width:700px; height:500px;">
|
|
<table width="95%" class="tableAll" border="1" ellspacing="0" cellpadding="2">
|
|
<tr>
|
|
|
|
<td colspan="4">
|
|
各物流渠道寄达天数标准
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td colspan="4">
|
|
<div id="DataGrid2" class="DataGridStyle"></div>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr style="display:none" id="tr_bj">
|
|
<td align="center" colspan="4">
|
|
<input id="btn_Save2" type="button" class="btnClass btnClassSave" value="保 存" onclick="SaveBJ();"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<table id="tb1" class="tableAll" style="width: 100%;">
|
|
|
|
|
|
<tr>
|
|
|
|
<td colspan="7">
|
|
<input id="btn_tj1" type="button" value="全部" class="btnSelected"/><input id="btn_tj2" class="btnUnSelected" type="button" value="成功签收" /><input id="btn_tj3" class="btnUnSelected" type="button" value="上线" /><input id="btn_tj31" class="btnUnSelected" type="button" value="交航" /><input id="btn_tj32" class="btnUnSelected" type="button" value="目的国" /><input id="btn_tj33" class="btnUnSelected" type="button" value="扣关" /><input id="btn_tj4" class="btnUnSelected" type="button" value="可能异常" /><input id="btn_tj5" class="btnUnSelected" type="button" value="运输过久" /> <input id="btn_tj6" class="btnUnSelected" type="button" value="查询不到" /><input id="btn_tj7" class="btnUnSelected" type="button" value="未采集跟踪信息" /> <input id="btn_tj8" class="btnUnSelected" type="button" value="退回" /> <input id="btn_bz" class="btnClass btnClassFind" type="button" value="各渠道寄达标准"/></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="f1" width="10%">平台:</td>
|
|
<td width="15%">
|
|
<select id="select_plat" class="selectClass" style="width: 120px" name="D6">
|
|
</select></td>
|
|
<td class="f1" width="12%">
|
|
部门/分组:</td>
|
|
<td width="18%">
|
|
<select id="select_dept" class="selectClass" style="width: 90px" name="D8">
|
|
|
|
</select><select id="select_shop" class="selectClass" style="width: 80px" name="D7">
|
|
</select></td>
|
|
<td class="f1" style="width: 10%;">
|
|
<select id="select_datetj" class="selectClass" style="width: 100px" name="D13">
|
|
<option value="1">发货日期:</option>
|
|
<option value="2">签收日期:</option>
|
|
<option value="3">上线日期:</option>
|
|
<option value="4">交航日期:</option>
|
|
<option value="5">目的国日期:</option>
|
|
</select></td>
|
|
<td width="28%" colspan="2">
|
|
|
|
<input id="txt_SDate" class="editTextbox" onfocus="WdatePicker()" style="width: 90px;" type="text" /><select id="select_shour" class="selectClass" style="width:50px" name="D14">
|
|
|
|
</select>-<input id="txt_EDate" class="editTextbox" onfocus="WdatePicker()" style="width:90px;" type="text" /><select id="select_ehour" class="selectClass" style="width: 50px" name="D15">
|
|
|
|
</select></td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="f1" width="10%">跟踪码:</td>
|
|
<td>
|
|
<input id="txt_TrackCode" class="editTextbox" style="width: 120px;" type="text" /></td>
|
|
<td class="f1" width="10%">国家:</td>
|
|
<td>
|
|
<input id="txt_Country" class="editTextbox" style="width: 120px;" type="text" /></td>
|
|
|
|
<td class="f1" style="width: 10%;">
|
|
订单号:</td>
|
|
<td > <input id="txt_OrderCode" class="editTextbox" style="width: 120px;" type="text" />
|
|
</td>
|
|
<td >
|
|
<input id="btn_sch" class="btnClass btnClassFind" type="button" value="查询" /></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="f1" width="10%">运输方式:</td>
|
|
<td colspan="2">
|
|
<select id="selectwl" class="selectClass" style="width: 120px" name="D10">
|
|
|
|
</select><select id="selectwl0" class="selectClass" style="width: 120px" name="D12">
|
|
|
|
</select></td>
|
|
|
|
<td colspan="4"> <input id="chk_pp" type="checkbox" checked="checked"/><label for="chk_pp">列出物流跟踪信息</label>
|
|
列出超过<input id="txt_days" min='0' max='10000000' precision='0' class="editTextbox" style="width: 50px;" type="text" />天<select id="selectyy" class="selectClass" style="width: 120px" name="D11">
|
|
<option value="1">没有签收</option>
|
|
<option value="2">没有上线</option>
|
|
<option value="3">没有交航</option>
|
|
<option value="4">没有到达对方国家</option>
|
|
</select></td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td colspan="7"> <a style="height:15px;width:20px;background-color:green"></a>成功签收</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td colspan="7">
|
|
<input id="btn_edit" class="btnClass btnClassEdit" type="button" value="更新物流跟踪信息" onclick="updatepostinfo3();" style="display:none"/> <input id="btn_Word" class="btnClass btnClassAdd" type="button" value="批量回复留言" /><font color="red">注:留言回复仅限速卖通订单</font>
|
|
<input id="btn_chart" class="btnClass btnClassFind" type="button" value="物流状态统计"/> <input id="btn_chart2" class="btnClass btnClassFind" type="button" value="物流发货比例统计"/> <input id="btn_chart3" class="btnClass btnClassFind" type="button" value="渠道发货比例统计"/> </td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td valign="top" colspan="7">
|
|
<div id="DataGrid1" class="DataGridStyle"></div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|