@layout("/common/_container.html",{js:["/assets/modular/pm/workOrder/workOrder.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="workOrderCode" class="layui-input" type="text" placeholder="工单编号"/>
|
</div>
|
<div class="layui-inline">
|
订单编号:
|
</div>
|
<div class="layui-inline">
|
<input id="salesOrderCode" class="layui-input" type="text" placeholder="订单编号"/>
|
</div>
|
<div class="layui-inline">
|
产品编号:
|
</div>
|
<div class="layui-inline">
|
<input id="productCode" class="layui-input" type="text" placeholder="产品编号"/>
|
</div>
|
<div class="layui-inline">
|
产品名称:
|
</div>
|
<div class="layui-inline">
|
<input id="productName" class="layui-input" type="text" placeholder="产品名称"/>
|
</div>
|
<div class="layui-inline">
|
车间编码:
|
</div>
|
<div class="layui-inline">
|
<input id="workshopCode" class="layui-input" type="text" placeholder="车间编码"/>
|
</div>
|
<div class="layui-inline">
|
产线编码:
|
</div>
|
<div class="layui-inline">
|
<input id="lineCode" class="layui-input" type="text" placeholder="产线编码"/>
|
</div>
|
<div class="layui-inline">
|
状态:
|
</div>
|
<div class="layui-inline">
|
<input id="state" class="layui-input" type="text" placeholder="状态"/>
|
</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>
|
</div>
|
</div>
|
</div>
|
<table class="layui-table" id="workOrderTable" lay-filter="workOrderTable"></table>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
<!--<script type="text/html" id="tableBar">-->
|
<!-- <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>-->
|
<!-- <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>-->
|
<!--</script>-->
|
<script type="text/html" id="tableBar">
|
{{# if(d.state == 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.state == 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.state == 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.state == 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.state == 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.state == 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.state == 1){ }}
|
<span style="color: #130c0e;">未开始</span>
|
{{# } else if(d.state == 2){ }}
|
<span style="color: #130c0e;">已解冻</span>
|
{{# } else if(d.state == 3){ }}
|
<span style="color: #00a2d4;">生产中</span>
|
{{# } else if(d.state == 4){ }}
|
<span style="color: #f47920;">已冻结</span>
|
{{# } else if(d.state == 5){ }}
|
<span style="color: #00B83F;">已完成</span>
|
{{# } else if(d.state == 6){ }}
|
<span style="color: #8a8f97;">已关闭</span>
|
{{# } else { }}
|
<span style="color: #8a8f97;">无</span>
|
{{# } }}
|
</script>
|
@}
|