OrderStatusMg.js 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. function showProductProcess(itemId) {
  2. SaveAjax({
  3. url: window.appUrl + "OrderItems/QueryProductProcess?orderItemId=" + itemId,
  4. dataType: "json",
  5. isAlert: false,
  6. isValidate: false,
  7. success: function(res) {
  8. let $timeLine = $('.timeline-small-body ul');
  9. $timeLine.empty();
  10. if (res && res.length > 0) {
  11. res.forEach(function(v, i) {
  12. $timeLine.append(` <li>
  13. <div class="bullet pink"></div>
  14. <div class="processName">${v.processName}</div>
  15. <div class="desc">
  16. <h3>状态</h3>
  17. <h4>${v.currentStatus}</h4>
  18. </div>
  19. <div class="desc">
  20. <h3>开始日期</h3>
  21. <h4>${DateFormatter(v.startDate)}</h4>
  22. </div>
  23. </li>`);
  24. });
  25. $("#showProductProcess").modal('show');
  26. } else {
  27. abp.message.info("订单没有生产记录!");
  28. }
  29. }
  30. });
  31. }