懒羊羊
2023-10-10 cd500a4dab1bf530072ff6da83b907eebb48108a
提交 | 用户 | 时间
1ac2bc 1 @layout("/common/_container.html",{js:["/assets/modular/pm/workOrder/workOrder.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                             <div class="layui-inline">
15                                 工单编号:
16                             </div>
17                             <div class="layui-inline">
18                                 <input id="workOrderCode" class="layui-input" type="text" placeholder="工单编号"/>
19                             </div>
20                             <div class="layui-inline">
21                                 订单编号:
22                             </div>
23                             <div class="layui-inline">
24                                 <input id="salesOrderCode" class="layui-input" type="text" placeholder="订单编号"/>
25                             </div>
26                             <div class="layui-inline">
27                                 产品编号:
28                             </div>
29                             <div class="layui-inline">
30                                 <input id="productCode" class="layui-input" type="text" placeholder="产品编号"/>
31                             </div>
32                             <div class="layui-inline">
33                                 产品名称:
34                             </div>
35                             <div class="layui-inline">
36                                 <input id="productName" class="layui-input" type="text" placeholder="产品名称"/>
37                             </div>
38                             <div class="layui-inline">
39                                 车间编码:
40                             </div>
41                             <div class="layui-inline">
42                                 <input id="workshopCode" class="layui-input" type="text" placeholder="车间编码"/>
43                             </div>
44                             <div class="layui-inline">
45                                 产线编码:
46                             </div>
47                             <div class="layui-inline">
48                                 <input id="lineCode" class="layui-input" type="text" placeholder="产线编码"/>
49                             </div>
50                             <div class="layui-inline">
51                                 状态:
52                             </div>
53                             <div class="layui-inline">
54                                 <input id="state" class="layui-input" type="text" placeholder="状态"/>
55                             </div>
56                             <div class="layui-inline">
57                                 <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
58                                 <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
59                                 <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
60                             </div>
61                         </div>
62                     </div>
63                     <table class="layui-table" id="workOrderTable" lay-filter="workOrderTable"></table>
64                 </div>
65             </div>
66         </div>
67     </div>
68 </div>
69
70 <!--<script type="text/html" id="tableBar">-->
71 <!--    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>-->
72 <!--    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>-->
73 <!--</script>-->
74 <script type="text/html" id="tableBar">
75     {{#  if(d.state == 1){ }}
76     <button class="layui-btn layui-btn-primary layui-btn-xs" lay-event="start">开始</button>
77     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="freeze" disabled="true">冻结</button>
78     <button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="close">关闭</button>
79     <button class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</button>
80     <button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</button>
81     <button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="finish">完成</button>
82     {{#  } else if(d.state == 2){ }}
83     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button>
84     <button class="layui-btn layui-btn-warm layui-btn-xs" lay-event="freeze">冻结</button>
85     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="close"  disabled="true">关闭</button>
86     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit"  disabled="true">修改</button>
87     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete"  disabled="true">删除</button>
88     {{#  } else if(d.state == 3){ }}
89     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button>
90     <button class="layui-btn layui-btn-warm layui-btn-xs" lay-event="freeze">冻结</button>
91     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="close"  disabled="true">关闭</button>
92     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit"  disabled="true">修改</button>
93     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete"  disabled="true">删除</button>
94     <button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="finish">完成</button>
95     {{#  } else if(d.state == 4){ }}
96     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button>
97     <button class="layui-btn layui-btn-warm layui-btn-xs" lay-event="thaw">解冻</button>
98     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="close" disabled="true">关闭</button>
99     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit" disabled="true">修改</button>
100     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">删除</button>
101     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">完成</button>
102     {{#  } else if(d.state == 5){ }}
103     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button>
104     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="thaw" disabled="true">冻结</button>
105     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="close" disabled="true">关闭</button>
106     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit" disabled="true">修改</button>
107     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">删除</button>
108     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="finish" disabled="true">已完成</button>
109     {{#  } else if(d.state == 6){ }}
110     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button>
111     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="thaw" disabled="true">冻结</button>
112     <button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="enable" >启用</button>
113     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit" disabled="true">修改</button>
114     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="delete" disabled="true">删除</button>
115     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="finish" disabled="true">完成</button>
116     {{#  } else { }}
117     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="start" disabled="true">开始</button>
118     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="thaw" disabled="true">冻结</button>
119     <button class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="close" disabled="true">关闭</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     {{#  } }}
123 </script>
124 <script type="text/html" id="orderStatusTpl">
125     {{#  if(d.state == 1){ }}
126     <span style="color: #130c0e;">未开始</span>
127     {{#  } else if(d.state == 2){ }}
128     <span style="color: #130c0e;">已解冻</span>
129     {{#  } else if(d.state == 3){ }}
130     <span style="color: #00a2d4;">生产中</span>
131     {{#  } else if(d.state == 4){ }}
132     <span style="color: #f47920;">已冻结</span>
133     {{#  } else if(d.state == 5){ }}
134     <span style="color: #00B83F;">已完成</span>
135     {{#  } else if(d.state == 6){ }}
136     <span style="color: #8a8f97;">已关闭</span>
137     {{#  } else { }}
138     <span style="color: #8a8f97;">无</span>
139     {{#  } }}
140 </script>
141 @}