erpProductionOrderPushdown.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <% layout('/layouts/default.html', {title: '生产订单下推', libs: []}){ %>
  2. <div class="main-content">
  3. <div class="box box-main">
  4. <div class="box-header">
  5. <div class="box-title">
  6. <i class="fa fa-share"></i> ${text('下推')}:${billNo!}
  7. </div>
  8. <% if (!modal) { %>
  9. <div class="box-tools pull-right">
  10. <a href="${ctx}/mes/erpProductionOrder/list" class="btn btn-default" title="${text('返回')}"><i class="fa fa-mail-reply"></i> ${text('返回')}</a>
  11. </div>
  12. <% } %>
  13. </div>
  14. <div class="box-body">
  15. <p style="margin:0 0 14px;color:#666;">${text('请选择要下推的单据类型,系统将带入当前生产订单号。')}</p>
  16. <div class="list-group">
  17. <% if(hasPermi('mes:erpPrdInStock:view')){ %>
  18. <a href="${ctx}/mes/erpPrdInStock/selectDetail?billNo=${billNo!}" class="list-group-item mo-pushdown-link" data-title="${text('增加生产入库')} - ${billNo!}">
  19. <i class="fa fa-download fa-fw text-primary"></i>
  20. <strong>${text('新增生产入库单')}</strong>
  21. <span class="text-muted" style="display:block;margin:4px 0 0 22px;font-size:12px;">${text('选择 HEV/115 分录,勾选 MES 批次码入库')}</span>
  22. </a>
  23. <% } %>
  24. <% if(hasPermi('mes:erpPickMaterialBill:view')){ %>
  25. <a href="${ctx}/mes/erpPickMaterialBill/selectDetail?billNo=${billNo!}" class="list-group-item mo-pushdown-link" data-title="${text('增加领料单')} - ${billNo!}">
  26. <i class="fa fa-sign-out fa-fw text-warning"></i>
  27. <strong>${text('新增生产领料单')}</strong>
  28. <span class="text-muted" style="display:block;margin:4px 0 0 22px;font-size:12px;">${text('选择订单分录及生产用料清单')}</span>
  29. </a>
  30. <% } %>
  31. <% if(hasPermi('mes:mesErpSchedule:view') || hasPermi('mes:erpProductionOrder:view')){ %>
  32. <a href="${ctx}/mes/erpProductionOrder/scheduleSelect?billNo=${billNo!}" class="list-group-item mo-pushdown-link" data-title="${text('ERP排产')} - ${billNo!}">
  33. <i class="fa fa-calendar-plus-o fa-fw text-info"></i>
  34. <strong>${text('新增ERP排产计划')}</strong>
  35. <span class="text-muted" style="display:block;margin:4px 0 0 22px;font-size:12px;">${text('选择配置成品物料分录后创建排产计划')}</span>
  36. </a>
  37. <% } %>
  38. </div>
  39. <% if(!hasPermi('mes:erpPrdInStock:view') && !hasPermi('mes:erpTransferDirect:view') && !hasPermi('mes:erpPickMaterialBill:view') && !hasPermi('mes:mesErpSchedule:view') && !hasPermi('mes:erpProductionOrder:view')){ %>
  40. <div class="alert alert-warning" style="margin:0;">${text('暂无下推权限,请联系管理员授权相关菜单。')}</div>
  41. <% } %>
  42. </div>
  43. </div>
  44. </div>
  45. <% } %>
  46. <script>
  47. $(function(){
  48. $('.mo-pushdown-link').on('click', function(e){
  49. e.preventDefault();
  50. var url = $(this).attr('href');
  51. var title = $(this).attr('data-title') || '';
  52. var topJs = (window.parent && window.parent.js) ? window.parent.js : js;
  53. try {
  54. var idx = window.parent.layer.getFrameIndex(window.name);
  55. if (idx) {
  56. window.parent.layer.close(idx);
  57. }
  58. } catch (err) {}
  59. topJs.addTabPage(null, title, url, true);
  60. });
  61. });
  62. </script>