@layout("/common/_container.html",{js:["/assets/modular/om/productionOrdeInfo/productionOrdeInfo.js"]}){
|
|
<div class="layui-body-header">
|
<span class="layui-body-header-title">生产工单管理</span>
|
</div>
|
|
<div class="layui-fluid">
|
<div class="layui-row layui-col-space15">
|
<div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
|
<div class="layui-card">
|
<div class="layui-card-body">
|
<div class="layui-form toolbar">
|
<div class="layui-form-item">
|
|
<div class="layui-inline">
|
生产工单号:
|
</div>
|
<div class="layui-inline">
|
<input id="workOrderNo" class="layui-input" type="text" placeholder="生产工单号"/>
|
</div>
|
<div class="layui-inline">
|
物料编号:
|
</div>
|
<div class="layui-inline">
|
<input id="materialCode" class="layui-input" type="text" placeholder="物料编号"/>
|
</div>
|
<div class="layui-inline">
|
工单状态:
|
</div>
|
<div class="layui-inline">
|
<select id="orderStatus" name="orderStatus" lay-filter="simpleSelect">
|
<option value=""></option>
|
<option value="1">未开始</option>
|
<option value="3">生产中</option>
|
<option value="4">已冻结</option>
|
<option value="5">已完成</option>
|
<option value="6">已关闭</option>
|
</select>
|
</div>
|
|
<div class="layui-inline">
|
<button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon"></i>搜索</button>
|
<button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon"></i>添加</button>
|
<!-- <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon"></i>导出</button>-->
|
|
<!--<button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon"></i>导出</button>-->
|
<button id="btnDownloadExc" class="layui-btn icon-btn"><i class="layui-icon"></i>模板</button>
|
<button id="btnUploadExc" class="layui-btn icon-btn"><i class="layui-icon"></i>导入</button>
|
|
|
|
|
</div>
|
</div>
|
</div>
|
<table class="layui-table" id="productionOrdeInfoTable" lay-filter="productionOrdeInfoTable"></table>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
<script type="text/html" id="toolbarDemo">
|
<div class="layui-btn-container">
|
<!-- <button id="btnAdd" class="layui-btn layui-btn-sm"><i class="layui-icon"></i>新增</button>-->
|
<!-- <button id="btnUpTop" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon"></i>置顶</button>-->
|
<button id="btnUpTr" class="layui-btn layui-btn-sm"><i class="layui-icon"></i>上移</button>
|
<button id="btnDownTr" class="layui-btn layui-btn-sm"><i class="layui-icon"></i>下移</button>
|
<!-- <button id="btnDownBottom" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon"></i>置低</button>-->
|
<button id="btnSaveSort" class="layui-btn layui-btn-sm"><i class="layui-icon"></i>确认顺序</button>
|
</div>
|
</script>
|
|
<script type="text/html" id="tableBar">
|
{{# if(d.orderStatus == 1){ }}
|
<button class="layui-btn layui-btn-primary layui-btn-xs" lay-event="start">开始</button>
|
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="freeze" disabled="true">冻结</button>
|
<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="close">关闭</button>
|
<button class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</button>
|
<button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</button>
|
<button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="finish">完成</button>
|
{{# } else if(d.orderStatus == 2){ }}
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button>
|
|
<button class="layui-btn layui-btn-warm layui-btn-xs" lay-event="freeze">冻结</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="close" disabled="true">关闭</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit" disabled="true">修改</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">删除</button>
|
{{# } else if(d.orderStatus == 3){ }}
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button>
|
|
<button class="layui-btn layui-btn-warm layui-btn-xs" lay-event="freeze">冻结</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="close" disabled="true">关闭</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit" disabled="true">修改</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">删除</button>
|
<button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="finish">完成</button>
|
{{# } else if(d.orderStatus == 4){ }}
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button>
|
|
<button class="layui-btn layui-btn-warm layui-btn-xs" lay-event="thaw">解冻</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="close" disabled="true">关闭</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit" disabled="true">修改</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">删除</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">完成</button>
|
{{# } else if(d.orderStatus == 5){ }}
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button>
|
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="thaw" disabled="true">冻结</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="close" disabled="true">关闭</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit" disabled="true">修改</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">删除</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="finish" disabled="true">已完成</button>
|
|
{{# } else if(d.orderStatus == 6){ }}
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button>
|
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="thaw" disabled="true">冻结</button>
|
<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="enable" >启用</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit" disabled="true">修改</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">删除</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="finish" disabled="true">完成</button>
|
|
{{# } else { }}
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button>
|
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="thaw" disabled="true">冻结</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="close" disabled="true">关闭</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit" disabled="true">修改</button>
|
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">删除</button>
|
{{# } }}
|
</script>
|
|
|
<script type="text/html" id="orderStatusTpl">
|
{{# if(d.orderStatus == 1){ }}
|
<!-- <a class="layui-btn layui-btn-primary layui-btn-xs" >未开始</a>-->
|
<span style="color: #130c0e;">未开始</span>
|
{{# } else if(d.orderStatus == 2){ }}
|
<!-- <a class="layui-btn layui-btn-primary layui-btn-xs" >已解冻</a>-->
|
<span style="color: #130c0e;">已解冻</span>
|
{{# } else if(d.orderStatus == 3){ }}
|
<!-- <a class="layui-btn layui-btn-normal layui-btn-xs" >生产中</a>-->
|
<span style="color: #00a2d4;">生产中</span>
|
{{# } else if(d.orderStatus == 4){ }}
|
<!-- <a class="layui-btn layui-btn-warm layui-btn-xs">已冻结</a>-->
|
<span style="color: #f47920;">已冻结</span>
|
{{# } else if(d.orderStatus == 5){ }}
|
<!-- <a class="layui-btn layui-btn-xs">已完成</a>-->
|
<span style="color: #00B83F;">已完成</span>
|
{{# } else if(d.orderStatus == 6){ }}
|
<span style="color: #8a8f97;">已关闭</span>
|
<!-- <a class="layui-btn layui-btn-disabled layui-btn-xs">已关闭</a>-->
|
{{# } else { }}
|
<span style="color: #8a8f97;">无</span>
|
<!-- <a class="layui-btn layui-btn-danger layui-btn-xs">无</a>-->
|
{{# } }}
|
</script>
|
@}
|