| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <% layout('/layouts/default.html', {title: '生产订单下推', libs: []}){ %>
- <div class="main-content">
- <div class="box box-main">
- <div class="box-header">
- <div class="box-title">
- <i class="fa fa-share"></i> ${text('下推')}:${billNo!}
- </div>
- <% if (!modal) { %>
- <div class="box-tools pull-right">
- <a href="${ctx}/mes/erpProductionOrder/list" class="btn btn-default" title="${text('返回')}"><i class="fa fa-mail-reply"></i> ${text('返回')}</a>
- </div>
- <% } %>
- </div>
- <div class="box-body">
- <p style="margin:0 0 14px;color:#666;">${text('请选择要下推的单据类型,系统将带入当前生产订单号。')}</p>
- <div class="list-group">
- <% if(hasPermi('mes:erpPrdInStock:view')){ %>
- <a href="${ctx}/mes/erpPrdInStock/selectDetail?billNo=${billNo!}" class="list-group-item mo-pushdown-link" data-title="${text('增加生产入库')} - ${billNo!}">
- <i class="fa fa-download fa-fw text-primary"></i>
- <strong>${text('新增生产入库单')}</strong>
- <span class="text-muted" style="display:block;margin:4px 0 0 22px;font-size:12px;">${text('选择 HEV/115 分录,勾选 MES 批次码入库')}</span>
- </a>
- <% } %>
- <% if(hasPermi('mes:erpPickMaterialBill:view')){ %>
- <a href="${ctx}/mes/erpPickMaterialBill/selectDetail?billNo=${billNo!}" class="list-group-item mo-pushdown-link" data-title="${text('增加领料单')} - ${billNo!}">
- <i class="fa fa-sign-out fa-fw text-warning"></i>
- <strong>${text('新增生产领料单')}</strong>
- <span class="text-muted" style="display:block;margin:4px 0 0 22px;font-size:12px;">${text('选择订单分录及生产用料清单')}</span>
- </a>
- <% } %>
- <% if(hasPermi('mes:mesErpSchedule:view') || hasPermi('mes:erpProductionOrder:view')){ %>
- <a href="${ctx}/mes/erpProductionOrder/scheduleSelect?billNo=${billNo!}" class="list-group-item mo-pushdown-link" data-title="${text('ERP排产')} - ${billNo!}">
- <i class="fa fa-calendar-plus-o fa-fw text-info"></i>
- <strong>${text('新增ERP排产计划')}</strong>
- <span class="text-muted" style="display:block;margin:4px 0 0 22px;font-size:12px;">${text('选择配置成品物料分录后创建排产计划')}</span>
- </a>
- <% } %>
- </div>
- <% if(!hasPermi('mes:erpPrdInStock:view') && !hasPermi('mes:erpTransferDirect:view') && !hasPermi('mes:erpPickMaterialBill:view') && !hasPermi('mes:mesErpSchedule:view') && !hasPermi('mes:erpProductionOrder:view')){ %>
- <div class="alert alert-warning" style="margin:0;">${text('暂无下推权限,请联系管理员授权相关菜单。')}</div>
- <% } %>
- </div>
- </div>
- </div>
- <% } %>
- <script>
- $(function(){
- $('.mo-pushdown-link').on('click', function(e){
- e.preventDefault();
- var url = $(this).attr('href');
- var title = $(this).attr('data-title') || '';
- var topJs = (window.parent && window.parent.js) ? window.parent.js : js;
- try {
- var idx = window.parent.layer.getFrameIndex(window.name);
- if (idx) {
- window.parent.layer.close(idx);
- }
- } catch (err) {}
- topJs.addTabPage(null, title, url, true);
- });
- });
- </script>
|