";
var showTid = tid;
if (ctid.indexOf("S") != -1) {
showTid = ctid;
}
var html = "
";
html += "
" + showTid + " ";
html += "
"
if (record.IsUrgency == "True") {
html += "急";
}
if (record.IsRefund > 0) {
html += "退";
}
if (record.IsReturn > 0) {
html += "回";
}
if (record.drawStatus) {
html += "撤";
}
if (record.AfterSaleState > 0) {
html += "售";
}
if (record.IsNeedBill == 1) {
html += "票";
}
else if (record.IsNeedBill == 2) {//冲票
html += "票";
}
if (record.wechatTag == 1) {
html += "微";
}
if (record.IsAddWechat == 1) {
html += "+";
}
if (record.IsSF > 0) {
html += "顺";
}
if (record.MemoOpt == 1) {
html += "改";
}
if (record.MemoOpt == 2) {
html += "定";
}
if (record.IsNew == 1 || record.NewProduct == 1) {
html += "新";
}
if (record.gongchuang == 200) {
html += "共";
}
if (record.returnVisit == 1) {
html += "访";
}
if (record.authCount > 0) {
html += "授";
}
let nowTime = Math.ceil(new Date().getTime() / 1000);
if (record.StartDesignTime) {
let startDesignTime = record.StartDesignTime ? new Date(record.StartDesignTime).getTime() / 1000 : 0;
if (!record.FinishDesignTime && nowTime >= startDesignTime + 172800) {
html += "超";
}
}
html += "
";
return html;
}
function orderPay(e) {
var record = e.record;
var html = "
" + record.total_fee;
if (record.IsSendGift == 1) {
html += "
小礼物";
}
html += "
";
return html;
}
function orderCusRenderer(e) {
var grid = e.sender;
var record = e.record;
var html = getDDurlByPhone(record.CustomerMobile, record.CustomerTb);
return html;
}
function orderDesignRenderer(e) {
var grid = e.sender;
var record = e.record;
var html = getDDurlByPhone(record.DesignMobile, record.DesignUserName);
return html;
}
function memoRenderer(e) {
var record = e.record;
//var html = "
";
var html = "
" + record.seller_memo + "
";
return html;
}
function nullRenderer(e) {
var record = e.record;
var html = "
";
return html;
}
//导出订单
function exportFn() {
defExport();
}
function onBeforeOpen(e) {
var grid = mini.get("m_grid");
var menu = e.sender;
var row = grid.getSelected();
var rowIndex = grid.indexOf(row);
if (!row) {
e.cancel = true;
//阻止浏览器默认右键菜单
e.htmlEvent.preventDefault();
return;
}
}
function onCopyOrder(e) {
var rec = grid.getSelected();
//rec.ctid
copyTextPlus(rec.ctid);
}
function onCopyBuyerNick(e) {
var rec = grid.getSelected();
//rec.ctid
copyTextPlus(rec.buyer_nick);
}