提交 | 用户 | 时间
|
71e81e
|
1 |
@layout("/common/_container.html",{js:["/assets/modular/om/productionOrdeInfo/productionOrdeInfo.js"]}){ |
懒 |
2 |
|
|
3 |
<div class="layui-body-header"> |
|
4 |
<span class="layui-body-header-title">生产工单管理</span> |
|
5 |
</div> |
|
6 |
|
|
7 |
<div class="layui-fluid"> |
|
8 |
<div class="layui-row layui-col-space15"> |
|
9 |
<div class="layui-col-sm12 layui-col-md12 layui-col-lg12"> |
|
10 |
<div class="layui-card"> |
|
11 |
<div class="layui-card-body"> |
|
12 |
<div class="layui-form toolbar"> |
|
13 |
<div class="layui-form-item"> |
|
14 |
|
|
15 |
<div class="layui-inline"> |
|
16 |
生产工单号: |
|
17 |
</div> |
|
18 |
<div class="layui-inline"> |
|
19 |
<input id="workOrderNo" class="layui-input" type="text" placeholder="生产工单号"/> |
|
20 |
</div> |
|
21 |
<div class="layui-inline"> |
|
22 |
物料编号: |
|
23 |
</div> |
|
24 |
<div class="layui-inline"> |
|
25 |
<input id="materialCode" class="layui-input" type="text" placeholder="物料编号"/> |
|
26 |
</div> |
|
27 |
<div class="layui-inline"> |
|
28 |
工单状态: |
|
29 |
</div> |
|
30 |
<div class="layui-inline"> |
|
31 |
<select id="orderStatus" name="orderStatus" lay-filter="simpleSelect"> |
|
32 |
<option value=""></option> |
|
33 |
<option value="1">未开始</option> |
|
34 |
<option value="3">生产中</option> |
|
35 |
<option value="4">已冻结</option> |
|
36 |
<option value="5">已完成</option> |
|
37 |
<option value="6">已关闭</option> |
|
38 |
</select> |
|
39 |
</div> |
|
40 |
|
|
41 |
<div class="layui-inline"> |
|
42 |
<button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon"></i>搜索</button> |
|
43 |
<button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon"></i>添加</button> |
|
44 |
<!-- <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon"></i>导出</button>--> |
|
45 |
|
|
46 |
<!--<button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon"></i>导出</button>--> |
|
47 |
<button id="btnDownloadExc" class="layui-btn icon-btn"><i class="layui-icon"></i>模板</button> |
|
48 |
<button id="btnUploadExc" class="layui-btn icon-btn"><i class="layui-icon"></i>导入</button> |
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
</div> |
|
54 |
</div> |
|
55 |
</div> |
|
56 |
<table class="layui-table" id="productionOrdeInfoTable" lay-filter="productionOrdeInfoTable"></table> |
|
57 |
</div> |
|
58 |
</div> |
|
59 |
</div> |
|
60 |
</div> |
|
61 |
</div> |
|
62 |
|
|
63 |
<script type="text/html" id="toolbarDemo"> |
|
64 |
<div class="layui-btn-container"> |
|
65 |
<!-- <button id="btnAdd" class="layui-btn layui-btn-sm"><i class="layui-icon"></i>新增</button>--> |
|
66 |
<!-- <button id="btnUpTop" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon"></i>置顶</button>--> |
|
67 |
<button id="btnUpTr" class="layui-btn layui-btn-sm"><i class="layui-icon"></i>上移</button> |
|
68 |
<button id="btnDownTr" class="layui-btn layui-btn-sm"><i class="layui-icon"></i>下移</button> |
|
69 |
<!-- <button id="btnDownBottom" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon"></i>置低</button>--> |
|
70 |
<button id="btnSaveSort" class="layui-btn layui-btn-sm"><i class="layui-icon"></i>确认顺序</button> |
|
71 |
</div> |
|
72 |
</script> |
|
73 |
|
|
74 |
<script type="text/html" id="tableBar"> |
|
75 |
{{# if(d.orderStatus == 1){ }} |
|
76 |
<button class="layui-btn layui-btn-primary layui-btn-xs" lay-event="start">开始</button> |
|
77 |
|
|
78 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="freeze" disabled="true">冻结</button> |
|
79 |
<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="close">关闭</button> |
|
80 |
<button class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</button> |
|
81 |
<button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</button> |
|
82 |
<button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="finish">完成</button> |
|
83 |
{{# } else if(d.orderStatus == 2){ }} |
|
84 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button> |
|
85 |
|
|
86 |
<button class="layui-btn layui-btn-warm layui-btn-xs" lay-event="freeze">冻结</button> |
|
87 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="close" disabled="true">关闭</button> |
|
88 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit" disabled="true">修改</button> |
|
89 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">删除</button> |
|
90 |
{{# } else if(d.orderStatus == 3){ }} |
|
91 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button> |
|
92 |
|
|
93 |
<button class="layui-btn layui-btn-warm layui-btn-xs" lay-event="freeze">冻结</button> |
|
94 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="close" disabled="true">关闭</button> |
|
95 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit" disabled="true">修改</button> |
|
96 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">删除</button> |
|
97 |
<button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="finish">完成</button> |
|
98 |
{{# } else if(d.orderStatus == 4){ }} |
|
99 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button> |
|
100 |
|
|
101 |
<button class="layui-btn layui-btn-warm layui-btn-xs" lay-event="thaw">解冻</button> |
|
102 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="close" disabled="true">关闭</button> |
|
103 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit" disabled="true">修改</button> |
|
104 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">删除</button> |
|
105 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">完成</button> |
|
106 |
{{# } else if(d.orderStatus == 5){ }} |
|
107 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button> |
|
108 |
|
|
109 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="thaw" disabled="true">冻结</button> |
|
110 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="close" disabled="true">关闭</button> |
|
111 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit" disabled="true">修改</button> |
|
112 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">删除</button> |
|
113 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="finish" disabled="true">已完成</button> |
|
114 |
|
|
115 |
{{# } else if(d.orderStatus == 6){ }} |
|
116 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button> |
|
117 |
|
|
118 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="thaw" disabled="true">冻结</button> |
|
119 |
<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="enable" >启用</button> |
|
120 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit" disabled="true">修改</button> |
|
121 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">删除</button> |
|
122 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="finish" disabled="true">完成</button> |
|
123 |
|
|
124 |
{{# } else { }} |
|
125 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button> |
|
126 |
|
|
127 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="thaw" disabled="true">冻结</button> |
|
128 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="close" disabled="true">关闭</button> |
|
129 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit" disabled="true">修改</button> |
|
130 |
<button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">删除</button> |
|
131 |
{{# } }} |
|
132 |
</script> |
|
133 |
|
|
134 |
|
|
135 |
<script type="text/html" id="orderStatusTpl"> |
|
136 |
{{# if(d.orderStatus == 1){ }} |
|
137 |
<!-- <a class="layui-btn layui-btn-primary layui-btn-xs" >未开始</a>--> |
|
138 |
<span style="color: #130c0e;">未开始</span> |
|
139 |
{{# } else if(d.orderStatus == 2){ }} |
|
140 |
<!-- <a class="layui-btn layui-btn-primary layui-btn-xs" >已解冻</a>--> |
|
141 |
<span style="color: #130c0e;">已解冻</span> |
|
142 |
{{# } else if(d.orderStatus == 3){ }} |
|
143 |
<!-- <a class="layui-btn layui-btn-normal layui-btn-xs" >生产中</a>--> |
|
144 |
<span style="color: #00a2d4;">生产中</span> |
|
145 |
{{# } else if(d.orderStatus == 4){ }} |
|
146 |
<!-- <a class="layui-btn layui-btn-warm layui-btn-xs">已冻结</a>--> |
|
147 |
<span style="color: #f47920;">已冻结</span> |
|
148 |
{{# } else if(d.orderStatus == 5){ }} |
|
149 |
<!-- <a class="layui-btn layui-btn-xs">已完成</a>--> |
|
150 |
<span style="color: #00B83F;">已完成</span> |
|
151 |
{{# } else if(d.orderStatus == 6){ }} |
|
152 |
<span style="color: #8a8f97;">已关闭</span> |
|
153 |
<!-- <a class="layui-btn layui-btn-disabled layui-btn-xs">已关闭</a>--> |
|
154 |
{{# } else { }} |
|
155 |
<span style="color: #8a8f97;">无</span> |
|
156 |
<!-- <a class="layui-btn layui-btn-danger layui-btn-xs">无</a>--> |
|
157 |
{{# } }} |
|
158 |
</script> |
|
159 |
@} |