器具保养记录单上,选择完 器具后 带出默认 保养规程+器具档案保存默认保养规程和点检规程
| | |
| | | <Content Include="views\grf\b1.grf" /> |
| | | <Content Include="views\grf\b.grf" /> |
| | | <Content Include="views\indexMenu.html" /> |
| | | <Content Include="views\PublicPage\MouldDotCheckRuleInterList.html" /> |
| | | <Content Include="views\PublicPage\MouldMaintainRuleInterList.html" /> |
| | | <Content Include="views\PublicPage\OrderBackInfomation.html" /> |
| | | <Content Include="views\PublicPage\OrderLevInformation.html" /> |
| | | <Content Include="views\PublicPage\Gy_MaterType.html" /> |
| | |
| | | function GetWEBURL() { |
| | | //var WEBURL = "http://192.168.16.80:8011/"; //åå
¬å®¤æå¡å¨ |
| | | //var WEBURL = "http://localhost:8081/SWEAPI/"; //chæ¬å° |
| | | var WEBURL = "http://localhost:8085/API/"; //zgqæ¬å° |
| | | //var WEBURL = "http://localhost:8085/API/"; //zgqæ¬å° |
| | | //var WEBURL = "http://localhost:8080/API/"; //颿忬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/lubao"; //颿忬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨é²æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //ç« ç´«ææ¬å°é
ç½® |
| | | var WEBURL = "http://localhost:8082/LuBaoAPI/"; //ç« ç´«ææ¬å°é
ç½® |
| | | //var WEBURL = "http://10.1.4.155/API/"; //æ±ä¸°å®¢æ·NEW |
| | | //var WEBURL = "http://47.96.97.237/API/"; //æºäºæå¡å¨ |
| | | //var WEBURL = "http://183.129.128.86:9090/API/"; //å¯è´å¥ç¹å®¢æ·æå¡å¨å¤ç½ |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title>模å
·ç¹æ£è§ç¨ååè¡¨èµæ</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../layuiadmin/treeTable.js"></script> |
| | | <script src="../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../layuiadmin/layui/lay/modules/util.js"></script> |
| | | <style media="screen"> |
| | | .custom-tree-item-clicked { |
| | | color: #FC9003 |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-card" style="padding: 1px"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div class="layui-collapse"> |
| | | <div class="layui-colla-item"> |
| | | <div class="layui-form-item" style="border-top: solid 1px #F6F6F6;"> |
| | | <div class="layui-row" style="padding:10px 0"> |
| | | <div class="layui-col-xs3 layui-inline" style="width: 23%;display:none;"> |
| | | <div id="treeCheckItem" lay-filter="treeCheckItem" class="demo-tree demo-tree-box" style="height: 580px; overflow: scroll;"></div> |
| | | </div> |
| | | <div class="layui-col-xs12 layui-inline"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">卿åä½</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HCycleUnit" id="HCycleUnit"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿å
»å¨æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HCheckCycle" id="HCheckCycle"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | <div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script src="../../layuiadmin/layui/zgqlayui.js"></script> |
| | | <script src="../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script> |
| | | var treeCkData = { id: 0 }; |
| | | var TagId = ""; |
| | | var TagParentId = ""; |
| | | |
| | | layui.config({ |
| | | base: '../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index', //主å
¥å£æ¨¡å |
| | | }).use(['tree', 'index', 'form', 'table', 'element', 'laypage', 'laydate'], function () { |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | , util = layui.util |
| | | , tree = layui.tree |
| | | var sWhere = " where HStopFlag=0 and HEndFlag<>'1' "; //æ å100046 sessionStorage["OrganizationID"] |
| | | var sWhere1 = " where HStopFlag=0 and HEndFlag=1 "; //å表 |
| | | |
| | | var option = { |
| | | elem: '#mainTable' |
| | | //, toolbar: '#toolbarDemo' |
| | | , height: 'full-120' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , cols: [[ |
| | | { type: 'radio', fixed: 'left' } |
| | | , { field: 'hmainid', title: 'HInterID', sort: true, hide: true } |
| | | , { field: 'ç¹æ£å¨æ', title: 'ç¹æ£å¨æ' } |
| | | , { field: '卿åä½', title: '卿åä½' } |
| | | ]] |
| | | }; |
| | | |
| | | var index = layer.load(0, { shade: false }); |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MouldDotCheckRuleInter/GetMouldDotCheckRuleInterList', |
| | | type: "GET", |
| | | data: { "sWhere": SeachFilter(sWhere1) }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | layer.close(index); |
| | | } else { |
| | | layer.close(index); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(index); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | |
| | | |
| | | //æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) { |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MouldDotCheckRuleInter/GetMouldDotCheckRuleInterList', |
| | | type: "GET", |
| | | data: { "sWhere": SeachFilter(sWhere1) }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | } else { |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | sWhere1 = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | }); |
| | | |
| | | //以䏿¯layui模å |
| | | }); |
| | | |
| | | //æ¥è¯¢æ ç¶æ°æ® |
| | | function getData(sWhere) { |
| | | var treeData; |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Gy_MaintenanceMode/CheckItemLoadTree', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | async: false, |
| | | success: function (result) { |
| | | var data = result.data; |
| | | //çææ°æ®å¯¹è±¡éå |
| | | treeData = LoadTree(data); |
| | | |
| | | } |
| | | }); |
| | | return treeData; |
| | | } |
| | | /**å¤çæ å½¢å±ç¤ºæ°æ®ï¼è¦æ±æIDåParentIDãtitleåæ®µ**/ |
| | | function LoadTree(data) { |
| | | let map = {}; |
| | | let treeData = []; |
| | | data.forEach(it => { |
| | | map[it.id] = it; //ID为æ¯ä¸ªèç¹çid |
| | | }) |
| | | //çæç»æé |
| | | data.forEach(it => { |
| | | const parent = map[it.ParentID]; //ParentID为ç¶èç¹çid |
| | | if (parent) { |
| | | if (!Array.isArray(parent.children)) parent.children = []; |
| | | parent.children.push(it); |
| | | } else { |
| | | treeData.push(it) |
| | | } |
| | | }) |
| | | return treeData; |
| | | } |
| | | |
| | | function SeachFilter(sWhere1) { |
| | | var HCheckCycle = $("#HCheckCycle").val(); |
| | | var HCycleUnit = $("#HCycleUnit").val(); |
| | | if (HCycleUnit) { |
| | | sWhere1 += " and ç¹æ£å¨æ like '%" + HCheckCycle + "%'"; |
| | | } |
| | | if (HCycleUnit) { |
| | | sWhere1 += " and 卿åä½ like '%" + HCycleUnit + "%'"; |
| | | } |
| | | return sWhere1; |
| | | } |
| | | </script> |
| | | |
| | | </body> |
| | | </html> |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title>模å
·ä¿å
»è§ç¨ååè¡¨èµæ</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../layuiadmin/treeTable.js"></script> |
| | | <script src="../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../layuiadmin/layui/lay/modules/util.js"></script> |
| | | <style media="screen"> |
| | | .custom-tree-item-clicked { |
| | | color: #FC9003 |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-card" style="padding: 1px"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div class="layui-collapse"> |
| | | <div class="layui-colla-item"> |
| | | <div class="layui-form-item" style="border-top: solid 1px #F6F6F6;"> |
| | | <div class="layui-row" style="padding:10px 0"> |
| | | <div class="layui-col-xs3 layui-inline" style="width: 23%;display:none;"> |
| | | <div id="treeCheckItem" lay-filter="treeCheckItem" class="demo-tree demo-tree-box" style="height: 580px; overflow: scroll;"></div> |
| | | </div> |
| | | <div class="layui-col-xs12 layui-inline"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">卿åä½</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HCycleUnit" id="HCycleUnit"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿å
»å¨æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HCheckCycle" id="HCheckCycle"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | <div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script src="../../layuiadmin/layui/zgqlayui.js"></script> |
| | | <script src="../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script> |
| | | var treeCkData = { id: 0 }; |
| | | var TagId = ""; |
| | | var TagParentId = ""; |
| | | |
| | | layui.config({ |
| | | base: '../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index', //主å
¥å£æ¨¡å |
| | | }).use(['tree', 'index', 'form', 'table', 'element', 'laypage', 'laydate'], function () { |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | , util = layui.util |
| | | , tree = layui.tree |
| | | var sWhere = " where HStopFlag=0 and HEndFlag<>'1' "; //æ å100046 sessionStorage["OrganizationID"] |
| | | var sWhere1 = " where HStopFlag=0 and HEndFlag=1 "; //å表 |
| | | |
| | | var option = { |
| | | elem: '#mainTable' |
| | | //, toolbar: '#toolbarDemo' |
| | | , height: 'full-120' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , cols: [[ |
| | | { type: 'radio', fixed: 'left' } |
| | | , { field: 'hmainid', title: 'HInterID', sort: true, hide: true } |
| | | , { field: 'HCheckCycle', title: 'ä¿å
»å¨æ' } |
| | | , { field: 'HCycleUnit', title: '卿åä½' } |
| | | ]] |
| | | }; |
| | | |
| | | var index = layer.load(0, { shade: false }); |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MouldMaintainPlanBill/GetMouldMaintainPlanBillList', |
| | | type: "GET", |
| | | data: { "sWhere": SeachFilter(sWhere1) }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | layer.close(index); |
| | | } else { |
| | | layer.close(index); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(index); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | |
| | | |
| | | //æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) { |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MouldMaintainPlanBill/GetMouldMaintainPlanBillList', |
| | | type: "GET", |
| | | data: { "sWhere": SeachFilter(sWhere1) }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | } else { |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | sWhere1 = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | }); |
| | | |
| | | //以䏿¯layui模å |
| | | }); |
| | | |
| | | //æ¥è¯¢æ ç¶æ°æ® |
| | | function getData(sWhere) { |
| | | var treeData; |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Gy_MaintenanceMode/CheckItemLoadTree', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | async: false, |
| | | success: function (result) { |
| | | var data = result.data; |
| | | //çææ°æ®å¯¹è±¡éå |
| | | treeData = LoadTree(data); |
| | | |
| | | } |
| | | }); |
| | | return treeData; |
| | | } |
| | | /**å¤çæ å½¢å±ç¤ºæ°æ®ï¼è¦æ±æIDåParentIDãtitleåæ®µ**/ |
| | | function LoadTree(data) { |
| | | let map = {}; |
| | | let treeData = []; |
| | | data.forEach(it => { |
| | | map[it.id] = it; //ID为æ¯ä¸ªèç¹çid |
| | | }) |
| | | //çæç»æé |
| | | data.forEach(it => { |
| | | const parent = map[it.ParentID]; //ParentID为ç¶èç¹çid |
| | | if (parent) { |
| | | if (!Array.isArray(parent.children)) parent.children = []; |
| | | parent.children.push(it); |
| | | } else { |
| | | treeData.push(it) |
| | | } |
| | | }) |
| | | return treeData; |
| | | } |
| | | |
| | | function SeachFilter(sWhere1) { |
| | | var HCheckCycle = $("#HCheckCycle").val(); |
| | | var HCycleUnit = $("#HCycleUnit").val(); |
| | | if (HCycleUnit) { |
| | | sWhere1 += " and HCheckCycle like '%" + HCheckCycle + "%'"; |
| | | } |
| | | if (HCycleUnit) { |
| | | sWhere1 += " and HCycleUnit like '%" + HCycleUnit + "%'"; |
| | | } |
| | | return sWhere1; |
| | | } |
| | | </script> |
| | | |
| | | </body> |
| | | </html> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">é»è®¤ä¿å
»è§ç¨</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMouldMaintainRuleInterName" id="HMouldMaintainRuleInterName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMouldMaintainRuleInterID" id="HMouldMaintainRuleInterID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HMouldMaintainRuleInterList" id="HMouldMaintainRuleInterList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">é»è®¤ç¹æ£è§ç¨</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMouldDotCheckRuleInterName" id="HMouldDotCheckRuleInterName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMouldDotCheckRuleInterID" id="HMouldDotCheckRuleInterID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HMouldDotCheckRuleInterList" id="HMouldDotCheckRuleInterList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--å
¶ä»ä¿¡æ¯--> |
| | |
| | | }); |
| | | }); |
| | | |
| | | //é»è®¤ä¿å
»è§ç¨ |
| | | form.on('submit(HMouldMaintainRuleInterList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ä¿å
»è§ç¨', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/MouldMaintainRuleInterList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HMouldMaintainRuleInterName").val(checkStatus.data[0].HCheckCycle); |
| | | $("#HMouldMaintainRuleInterID").val(checkStatus.data[0].hmainid); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //é»è®¤ç¹æ£è§ç¨ |
| | | form.on('submit(HMouldDotCheckRuleInterList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ç¹æ£è§ç¨', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/MouldDotCheckRuleInterList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HMouldDotCheckRuleInterName").val(checkStatus.data[0].ç¹æ£å¨æ); |
| | | $("#HMouldDotCheckRuleInterID").val(checkStatus.data[0].hmainid); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | //#endregion |
| | | |
| | | |
| | |
| | | $("#HLeaveLife").val(d.data[0].å©ä½å¯¿å½); |
| | | $("#HProdQty").val(d.data[0].å·²ç产æ°é); |
| | | $("#HProdWeight").val(d.data[0].å·²ç产éé); |
| | | $("#HMouldDotCheckRuleInterName").val(d.data[0].ç¹æ£å¨æ); |
| | | $("#HMouldDotCheckRuleInterID").val(d.data[0].HMouldDotCheckRuleInterID); |
| | | $("#HMouldMaintainRuleInterName").val(d.data[0].ä¿å
»å¨æ); |
| | | $("#HMouldMaintainRuleInterID").val(d.data[0].HMouldMaintainRuleInterID); |
| | | } |
| | | |
| | | }); |
| | |
| | | } |
| | | $("#HMouldName").val(checkStatus.data[0].HName); |
| | | $("#HMouldID").val(checkStatus.data[0].HItemID); |
| | | get_MaintainItem(); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | }); |
| | | }); |
| | | |
| | | function get_MaintainItem() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMaintainItemtemByMouldProjectID", |
| | | type: "GET", |
| | | data: { "MouldProjectID": $("#HMouldID").val() }, |
| | | success: function (result) { |
| | | if (result!=null) { |
| | | option.data = result.data; |
| | | table.render(option); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //éæ©åä½ |
| | | form.on('submit(HUnitID-BT)', function () {//éæ©åä½ |
| | | layer.open({ |