ChangeExpress.aspx 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/ErpView.master" AutoEventWireup="true" CodeFile="ChangeExpress.aspx.cs" Inherits="EAfterSale_ChangeExpress" %>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
  3. <style type="text/css">
  4. .marginleft20 {
  5. margin-left: 20px;
  6. }
  7. .mini-grid-cell-nowrap {
  8. overflow: hidden;
  9. /* white-space: nowrap;
  10. text-overflow: ellipsis; */
  11. word-break: break-all;
  12. word-wrap: break-word;
  13. white-space: pre-wrap;
  14. }
  15. .hz {
  16. display: flex;
  17. flex-direction: row;
  18. float: right;
  19. margin-right: 50px;
  20. font-size: 14px;
  21. height: 30px;
  22. line-height: 30px;
  23. vertical-align: middle;
  24. }
  25. .hz a {
  26. height: 30px;
  27. line-height: 30px;
  28. }
  29. </style>
  30. <script type="text/javascript">
  31. function searchFn() {
  32. var form = new mini.Form("#ctl00_f_all");
  33. var data = form.getData(true, false);
  34. var s = data;
  35. //var s = mini.encode(data);
  36. //alert(s);
  37. //form.setIsValid(false);
  38. //console.log("565656565", data);
  39. grid.load({
  40. ctid: s.tid, shopname: s.shop, buyer_nick: s.ww, design: s.design, customer: s.customer, orderState: s.state, supplier: s.supplier,
  41. });
  42. }
  43. function orderPTimeRenderer(e) {
  44. var grid = e.sender;
  45. var record = e.record;
  46. var tid = record.tid;
  47. var rowIndex = e.rowIndex;
  48. var html = "<div style=\"display:flex;flex-direction:column;\">";
  49. html += ("<div>" + record.seller_nick + "</div>");
  50. html += getWWurlByNick(record.buyer_nick);
  51. html += ("<div>" + formatCommonDate(record.pay_time) + "</div>");
  52. if (record.UrgencyTime != "") {
  53. html += ("<div style=\"color:red;\">急:" + formatCommonDate(record.UrgencyTime) + "</div>");
  54. }
  55. html += "</div>";
  56. return html;
  57. }
  58. function orderStatusRenderer(e) {
  59. var grid = e.sender;
  60. var record = e.record;
  61. var tid = record.tid;
  62. var rowIndex = e.rowIndex;
  63. var statestr = getOrderStatestrByState(record.OrderState);
  64. var html = "<div style=\"display:flex;flex-direction:column;\">";
  65. html += ("<div onclick=\"clickToLog('" + record.ctid + "')\" style=\"color:blue;margin-bottom:10px;\">" + statestr + "</div>");
  66. var taostatus = getInitStatusstrByState(record.status);
  67. html += ("<div>" + taostatus + "</div>");
  68. if (record.ExpressNo && record.ExpressNo != "") {
  69. html += ("<div style=\"color:red;margin-top:5px;\">单号:" + record.ExpressNo + "</div>");
  70. }
  71. html += "</div>";
  72. return html;
  73. }
  74. function SFRenderer(e) {
  75. var record = e.record;
  76. var html = "<div style=\"display:flex;flex-direction:column;\">";
  77. if (record.IsSF == 1) {
  78. html += ("<div style=\"color:blue;\"> 顺丰寄付 </div>");
  79. }
  80. else if (record.IsSF == 2) {
  81. html += ("<div style=\"color:green;\"> 顺丰到付 </div>");
  82. }
  83. html += "</div>";
  84. return html;
  85. }
  86. function addressRenderer(e) {
  87. var grid = e.sender;
  88. var record = e.record;
  89. var tid = record.tid;
  90. var rowIndex = e.rowIndex;
  91. var html = "<div>" + record.receiver_name + " " + record.receiver_mobile + " " + record.receiver_state + record.receiver_city + record.receiver_district + record.receiver_address + "</div>";
  92. return html;
  93. }
  94. function orderCusRenderer(e) {
  95. var grid = e.sender;
  96. var record = e.record;
  97. var ctid = record.ctid;
  98. var rowIndex = e.rowIndex;
  99. var html = "<div style=\"display:flex;flex-direction:column;align-items:center;\">";
  100. html += ("<a style='color:#0090FF;'>客服:" + record.CustomerUserName + "</a>");
  101. html += ("<a style='color:#0090FF;'>设计师:" + record.DesignUserName + "</a>");
  102. html += ("<a style='color:#0090FF;'>供应商:" + record.SupplierName + "</a>");
  103. //if (record.MemoOpt == 3) {
  104. // html += ("<a style=\"width:40px;color:red;border:1px solid red;\" onclick=\"clickResetOptFn()\">查货</a>");
  105. //}
  106. html += "</div>";
  107. return html;
  108. }
  109. function actionRenderer(e) {
  110. var grid = e.sender;
  111. var record = e.record;
  112. var ctid = record.ctid;
  113. var html = "";
  114. html += getGridBtn("dis", "处理完成", "completeDeal('" + ctid + "')");
  115. return html;
  116. }
  117. function completeDeal(ctid) {
  118. if (!confirm("确认处理完成?")) return;
  119. postAjax("deal_express_complete", "ctid=" + ctid, function (data) {
  120. resultShow(data, "grid.reload();");
  121. });
  122. }
  123. </script>
  124. </asp:Content>
  125. <asp:Content ID="Content2" ContentPlaceHolderID="btn" runat="Server">
  126. <a id="btnExport" runat="server" class="mini-button mini-button-success" iconcls="icon-folder" onclick="exportFn()">导出</a>
  127. </asp:Content>
  128. <asp:Content ID="Content4" ContentPlaceHolderID="content" runat="Server">
  129. <div class="mini-fit">
  130. <div id="m_grid" class="mini-datagrid" style="width: 98%;" showemptytext="true" emptytext="暂无记录" contextmenu="#gridMenu" url="../handler/sync.ashx?t=get_change_express_list">
  131. <div property="columns">
  132. <div type="checkcolumn" width="20"></div>
  133. <div field="tid" width="110" align="center" headeralign="center" renderer="orderIdRenderer">订单编号</div>
  134. <div field="pay_time" width="80" align="center" headeralign="center" renderer="orderPTimeRenderer">付款时间</div>
  135. <div field="seller_memo" width="150" align="center" headeralign="center" renderer="memoRenderer">备注</div>
  136. <div field="OrderState" width="40" align="center" headeralign="center" renderer="orderStatusRenderer">状态</div>
  137. <div field="IsSF" width="50" align="center" headeralign="center" renderer="SFRenderer">是否顺丰</div>
  138. <div name="address" width="80" align="center" headeralign="center" renderer="addressRenderer">收货地址</div>
  139. <div name="orderscus" width="60" align="center" headeralign="center" renderer="orderCusRenderer">供应商</div>
  140. <div field="modExpressNo" name="modExpressNo" width="60" align="center" headeralign="center">新单号</div>
  141. <div field="modExpressCom" name="modExpressCom" width="60" align="center" headeralign="center">新物流</div>
  142. <div name="action" width="50" headeralign="center" align="center" renderer="actionRenderer" cellstyle="padding:0;">#</div>
  143. </div>
  144. </div>
  145. </div>
  146. <ul id="gridMenu" class="mini-contextmenu" onbeforeopen="onBeforeOpen">
  147. <li name="edit" iconcls="icon-copy" onclick="onCopyOrder">复制单号</li>
  148. <li name="edit" iconcls="icon-copy" onclick="onCopyBuyerNick">复制旺旺号</li>
  149. </ul>
  150. </asp:Content>