function orderIdRenderer(e) { var grid = e.sender; var record = e.record; var tid = record.tid; var ctid = record.ctid; var rowIndex = e.rowIndex; //var html = "
"; //var html = "
"; 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); }