|
@@ -0,0 +1,188 @@
|
|
|
+<!DOCTYPE HTML>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta name="renderer" content="webkit|ie-comp|ie-stand">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
+ <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
|
|
|
+ <meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
|
+ <link rel="Bookmark" href="/favicon.ico" >
|
|
|
+ <link rel="Shortcut Icon" href="/favicon.ico" />
|
|
|
+<#include "/base/list_base.ftl">
|
|
|
+ <title>bom单列表</title>
|
|
|
+ <style>
|
|
|
+ *{padding: 0;margin: 0;}
|
|
|
+ .my-input{border: 1px solid rgba(0,0,0,.1);padding: 1px 5px;height: 32px;margin-right: 10px;}
|
|
|
+ .my-input::-webkit-input-placeholder,.my-select{color: #dcdcdc;}
|
|
|
+ .my-select{border: 1px solid rgba(0,0,0,.1);padding:6px 50px 6px 15px;height: 34px;margin: 0 10px; -webkit-appearance:none;appearance:none;background: url(/rst/common/images/pts/select-1.png) right center no-repeat;background-size:auto 100%;}
|
|
|
+ .my-btn-search{border: 1px solid #32a3d8;padding: 1px 25px;height: 32px;background-color: #32a3d8;color: #fff;}
|
|
|
+ .barcodeImg{margin:10px 0px}
|
|
|
+ .table-bg thead th{background-color: #e2f6ff;}
|
|
|
+ input[type=radio]{-webkit-appearance:none;appearance:none;background: url(/rst/common/images/pts/radio-1.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
+ input[type=radio]:checked{-webkit-appearance:none;appearance:none;background: url(/rst/common/images/pts/radio-2.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<nav class="breadcrumb"><i class="Hui-iconfont"></i> 首页
|
|
|
+ <span class="c-gray en">></span> Bom单管理
|
|
|
+ <span class="c-gray en">></span> Bom单列表
|
|
|
+ <a class="btn radius r" style="line-height:1.6em;margin-top:3px;background: #32a3d8;color: #fff;border:1px solid #32a3d8;" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont"></i></a>
|
|
|
+</nav>
|
|
|
+<div class="page-container">
|
|
|
+ <div class="text-c">
|
|
|
+ <form action="${path}/admin/bom/_bom_list" method="post">
|
|
|
+ <button type="button" style="cursor:pointer; float: left;" class="my-btn-search" onclick="toAddEmployee();">增加Bom</button>
|
|
|
+ <select class="my-select" name="produceId" style="height: 36px;width: 150px">
|
|
|
+ <option value ="">所有产品</option>
|
|
|
+ <#if produceList?? && (produceList?size > 0) >
|
|
|
+ <#list produceList as produce>
|
|
|
+ <option value ="${produce.produceId!}" <#if produceId??><#if produceId ==produce.produceId >selected="selected"</#if></#if>>${produce.produceName!}</option>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </select>
|
|
|
+ <input type="text" class="my-input" style="width:150px" value="${bomId!}" placeholder="Bom单编号" id="bomId" name="bomId">
|
|
|
+ <input type="text" class="my-input" style="width:150px" value="${bomName!}" placeholder="Bom单名称" id="bomName" name="bomName">
|
|
|
+ <input type="text" class="my-input" style="width:150px" value="${bomRemarks!}" placeholder="Bom单备注" id="bomRemarks" name="bomRemarks">
|
|
|
+ <button type="submit" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);" id="" name=""><i class="Hui-iconfont"></i> 搜索</button>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="mt-20">
|
|
|
+ <table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
|
+ <thead>
|
|
|
+ <tr class="text-c">
|
|
|
+ <th width="50">Bom编号</th>
|
|
|
+ <th width="60">所属产品</th>
|
|
|
+ <th width="100">bom名称</th>
|
|
|
+ <th width="80">零件总成本(元)</th>
|
|
|
+ <th width="80">零件总重(KG)</th>
|
|
|
+ <th width="100">备注</th>
|
|
|
+ <th width="80">最近修改时间</th>
|
|
|
+ <th width="80">添加时间</th>
|
|
|
+ <th width="80">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <#if page.dataList?? && (page.dataList?size > 0) >
|
|
|
+ <#list page.dataList as bom>
|
|
|
+ <tr class="text-c">
|
|
|
+ <td>${bom.bomId!''}</td>
|
|
|
+ <td>${bom.produceName!''}</td>
|
|
|
+ <td>${bom.bomName!''}</td>
|
|
|
+ <td>${bom.allComponentsCost!''}</td>
|
|
|
+ <td>${bom.allComponentsWeight!''}</td>
|
|
|
+ <td>${bom.bomRemarks!''}</td>
|
|
|
+ <td>${(bom.bomUpdateTime?string("yyyy-MM-dd HH:mm:ss"))!''}</td>
|
|
|
+ <td>${(bom.bomCreateTime?string("yyyy-MM-dd HH:mm:ss"))!''}</td>
|
|
|
+ <td>
|
|
|
+ <a style="text-decoration:none" href="javascript:void(0);" title="编辑" onclick="admin_update_employee(${bom.bomId!''});">
|
|
|
+ <i class="Hui-iconfont"></i>
|
|
|
+ </a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </#list>
|
|
|
+ <#else>
|
|
|
+ <tr><td colspan="9" class="td-manage text-c" >暂时没有Bom,请添加!</td></tr>
|
|
|
+ </#if>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+<tfoot>
|
|
|
+<#include "/base/page_util.ftl">
|
|
|
+</tfoot>
|
|
|
+<script type="text/javascript">
|
|
|
+ /*
|
|
|
+ 参数解释:
|
|
|
+ title 标题
|
|
|
+ url 请求的url
|
|
|
+ id 需要操作的数据id
|
|
|
+ w 弹出层宽度(缺省调默认值)
|
|
|
+ h 弹出层高度(缺省调默认值)
|
|
|
+ */
|
|
|
+
|
|
|
+
|
|
|
+ /*子页面添加完信息后回显添加结果是否成功*/
|
|
|
+ function admin_result(str,num) {
|
|
|
+ layer.msg(str,{icon:num,time:1000});
|
|
|
+ }
|
|
|
+
|
|
|
+ function edit_process(url) {
|
|
|
+ window.location.href = url
|
|
|
+ }
|
|
|
+
|
|
|
+ /*管理员-详情*/
|
|
|
+ function admin_add_filter(url){
|
|
|
+ window.location.href= url;
|
|
|
+ }
|
|
|
+ /*管理员-删除*/
|
|
|
+ function admin_del(obj,id){
|
|
|
+ layer.confirm('确认要删除吗?',function(index){
|
|
|
+ $.ajax({
|
|
|
+ type: 'POST',
|
|
|
+ url: '',
|
|
|
+ dataType: 'json',
|
|
|
+ success: function(data){
|
|
|
+ $(obj).parents("tr").remove();
|
|
|
+ layer.msg('已删除!',{icon:1,time:1000});
|
|
|
+ },
|
|
|
+ error:function(data) {
|
|
|
+ console.log(data.msg);
|
|
|
+ },
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ /*管理员-编辑*/
|
|
|
+ function admin_edit(title,url,id,w,h){
|
|
|
+ layer_show(title,url,w,h);
|
|
|
+ }
|
|
|
+ /* 录入FAQ */
|
|
|
+ function add_FAQ(menuId,type) {
|
|
|
+ window.location.href= root_path + "/admin/faq/_add_FAQ?menuId="+menuId+"&menuType="+type;
|
|
|
+ // layer_show("增加FAQ", root_path + "/admin/faq/_add_FAQ?menuId="+menuId+"&menuType="+type);
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 修改二级菜单状态 */
|
|
|
+ function update_FAQState(detaId) {
|
|
|
+ layer.confirm('确认要停用吗?',function(index){
|
|
|
+ $.post(root_path + "/admin/faq/updat_FAQState",{detaId:detaId}, function(result){
|
|
|
+ if (result.returnCode != 200 || result.returnCode != 200) {
|
|
|
+ layer.msg('修改失败,请重试!',{icon: 5,time:3000});
|
|
|
+ } else {
|
|
|
+ layer.msg('修改成功!',{icon: 1,time:2000}, function () {
|
|
|
+ // 关闭当前页面,并刷新父级页面
|
|
|
+ window.location.reload();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+</script>
|
|
|
+<script>
|
|
|
+ /**
|
|
|
+ * 跳转到添加员工页面
|
|
|
+ */
|
|
|
+ function toAddEmployee(){
|
|
|
+ window.location.href= "${path}/admin/employee/to_save_employee";
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *跳转到编辑页面
|
|
|
+ * @param employee
|
|
|
+ */
|
|
|
+ function admin_update_employee(employeeId) {
|
|
|
+ window.location.href= "${path}/admin/employee/to_update_employee?employeeId="+employeeId;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 删除员工
|
|
|
+ * @param employeeId
|
|
|
+ */
|
|
|
+ function admin_del_employee(employeeId) {
|
|
|
+ window.location.href= "${path}/admin/employee/delete_employee?employeeId="+employeeId;
|
|
|
+ }
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+</html>
|