| | |
| | | .layui-form-label { |
| | | width: 85px; |
| | | } |
| | | /* 鲿¢ä¸ææ¡ç䏿å表被éè---å¿
须设置--- */ |
| | | .layui-table-cell { |
| | | overflow: visible !important; |
| | | } |
| | | /* 使å¾ä¸ææ¡ä¸åå
æ ¼å好åé */ |
| | | td .layui-form-select { |
| | | margin-top: -10px; |
| | | margin-left: -15px; |
| | | margin-right: -15px; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | |
| | | <div id="layout1" class="layui-fluid"> |
| | | <div class="layui-row layui-col-space15"> |
| | | <div class="layui-col-md12"> |
| | |
| | | <label class="layui-form-label">产åå¨å
·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HMouldName" id="HMouldName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMouldID" id="HMouldID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMouldID" id="HMouldID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HMouldList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label">ç¹æ£è®¡åç¼å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HPlanNo" id="HPlanNo" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç¹æ£è®¡åå
ç <label style="color:red"> * </label></label> |
| | | <label class="layui-form-label">ç¹æ£è®¡åç¼å·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HPlanInterName" id="HPlanInterName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HPlanInterID" id="HPlanInterID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HPlanNo" id="HPlanNo" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HPlanInterID" id="HPlanInterID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HPlanInterList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | |
| | | <input class="layui-input" name="HEndDate" id="HEndDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width:95px;">å¨å
·ç¹æ£è§ç¨<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HMouldDotCheckRuleName" id="HMouldDotCheckRuleName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMouldDotCheckRuleID" id="HMouldDotCheckRuleID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMouldDotCheckRuleID" id="HMouldDotCheckRuleID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnHMouldDotCheckRule" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å¸¸æ
åµè®°å½</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HErrNote" id="HErrNote" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">é大å®å
¨<br />éæ£è®°å½</label> |
| | | <div class="layui-input-inline" style="margin-top:10px;"> |
| | | <input type="text" name="HBigSafeNote" id="HBigSafeNote" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç¹æ£æ°æ®</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HDotCheckNote" id="HDotCheckNote" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">çäº§çæ¬¡</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HShiftsID" id="HShiftsID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="text" name="HShiftsName" id="HShiftsName" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly="readonly"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnHShifts" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æè¦</label> |
| | | <div class="layui-input-inline"> |
| | |
| | | <textarea placeholder="请è¾å
¥ç»´å¤æ³¨" class="layui-textarea" name="HRemark" id="HRemark"></textarea> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æç»ç»è®º</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="radio" name="HLastResult" id="HLastResult" value="OK" title="OK" checked> |
| | | <input type="radio" name="HLastResult" id="HLastResult" value="NG" title="NG"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab layui-tab-card" lay-filter="TabTest"> |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">ç¹æ£ä¿¡æ¯</li> |
| | | <li>é
ä»¶ä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <!--<a class="layui-btn layui-btn-xs" lay-event="edit">ç¼è¾</a>--> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del1">å é¤</a> |
| | | </script> |
| | | <!--è¡ä¸æéæ©(ç¹æ£ç»æ)--> |
| | | <script type="text/html" id="HDotCheckResult"> |
| | | <select name="HDotCheckResult" lay-filter="HDotCheckResult" id="HDotCheckResult{{d.LAY_TABLE_INDEX+1}}"> |
| | | <!--<option value="">è¯·éæ©</option>--> |
| | | <option value="Y" selected>Y</option> |
| | | <option value="X">X</option> |
| | | </select> |
| | | </script> |
| | | <script src="../../../layuiadmin/layui/layui.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/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/PageTitle.js"></script> |
| | | <script> |
| | | //è·å页é¢è·³è½¬åæ° |
| | | var params = get_UrlVars(); |
| | |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | |
| | | //#region ã卿è·å模ååç§°ã |
| | | var HModuleType = "3821"; |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType); |
| | | $("h1").html('<b>' + HPageTitle + '</b>'); |
| | | //#endregion |
| | | |
| | | //åå§å表åæä»¶ |
| | | set_InitFrom(); |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | set_InitGrid1(); |
| | | |
| | | //夿æä½ç±»å |
| | | if (OperationType == 1) {//æ æºå |
| | |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data;; |
| | | var AddRow = table.cache['mainTable']; |
| | | var NewRow = { "HDotCheckItemID": 0, "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": "0", "HManagerNumber": "", "HManagerName": "", "HRemark": "" }; |
| | | var NewRow = { "HDotCheckItemID": 0, "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": "0", "HManagerNumber": "", "HManagerName": "", "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" }; |
| | | switch (obj.event) { |
| | | //æ°å¢ä¸è¡ |
| | | case 'btn-AddLine': btnAddLine(NewRow); |
| | |
| | | } |
| | | }); |
| | | |
| | | // 头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable1)', function (obj) { |
| | | var rowid = 0; |
| | | var checkStatus = table.checkStatus('mainTable1') |
| | | , data = checkStatus.data;; |
| | | var AddRow = table.cache['mainTable1']; |
| | | var NewRow = { "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": "0", "HUnitNumber": "", "HUnitName": "", "HQty": "0", "HQtyMust": "0", "HRemark": " " }; |
| | | switch (obj.event) { |
| | | //æ°å¢ä¸è¡ |
| | | case 'btn-AddLine1': btnAddLine1(NewRow); |
| | | break; |
| | | //å¤å¶ä¸è¡ |
| | | case 'btn-CopyLine1': btnCopyLine1(data); |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | // è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | }); |
| | | |
| | | // è¡å
äºä»¶ |
| | | table.on('tool(mainTable1)', function (obj) { |
| | | set_GridDelete1(obj); //è¡å
å é¤ |
| | | set_GridCellCheck1(obj); //è¡å
å¿«æ·é®çé |
| | | }); |
| | | |
| | | |
| | |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | |
| | | $("#HPlanInterName").val(checkStatus.data[0].åæ®å·); |
| | | $("#HPlanNo").val(checkStatus.data[0].åæ®å·); |
| | | $("#HPlanInterID").val(checkStatus.data[0].hmainid); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | //$.ajax({ |
| | |
| | | // } |
| | | //}); |
| | | get_DocCheckItem(checkStatus.data[0].hmainid); |
| | | |
| | | |
| | | } |
| | | }); |
| | | |
| | | }); |
| | | |
| | | //表头信æ¯çäº§çæ¬¡å¼¹çª |
| | | form.on('submit(btnHShifts)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'çäº§çæ¬¡å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true |
| | | , content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_ShiftsList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HShiftsID").val(checkStatus.data[0].HItemID); |
| | | $("#HShiftsName").val(checkStatus.data[0].çæ¬¡åç§°); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | }, |
| | | success: function (layero, index) { |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //è¡¨å¤´äº§åæ¨¡å
·ä¿¡æ¯ |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/MouldInformation.html', 'yes'], |
| | | content: ['../../模治å
·ç®¡ç/模治å
·ç®¡ç/Gy_MouldFileList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | console.log(checkStatus); |
| | | $("#HMouldName").val(checkStatus.data[0].HName); |
| | | $("#HMouldID").val(checkStatus.data[0].HItemID); |
| | | $("#HMouldName").val(checkStatus.data[0].模å
·åç§°); |
| | | $("#HMouldID").val(checkStatus.data[0].hmainid); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | }); |
| | | }); |
| | | |
| | | //è¡éæ©å¤çï¼ç¹æ£ç»æï¼ |
| | | form.on('select(HDotCheckResult)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HDotCheckResult = data.value;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | |
| | | var HQty = 0;//表ä½è¡ä¸åæ ¼æ°é |
| | | for (let i = 0; i < table.cache['mainTable'].length; i++) { |
| | | if (table.cache['mainTable'][i].HDotCheckResult == "X") { |
| | | HQty++; |
| | | } |
| | | } |
| | | if (HQty > 0) { |
| | | document.querySelectorAll("[name='HLastResult']")[0].removeAttribute('checked'); //å é¤éæ©å±æ§ |
| | | $("input:radio[name=HLastResult][value=" + "NG" + "]").attr("checked", "true"); //æ·»å 鿩屿§ |
| | | } else { |
| | | document.querySelectorAll("[name='HLastResult']")[1].removeAttribute('checked'); //å é¤éæ©å±æ§ |
| | | $("input:radio[name=HLastResult][value=" + "OK" + "]").attr("checked", "true"); //æ·»å 鿩屿§ |
| | | } |
| | | form.render('radio'); |
| | | }); |
| | | |
| | | |
| | | //è¡¨æ ¼è¡å
äºä»¶å¿«æ·é®çé |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/UserInformation.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HManagerID: checkStatus.data[0].HItemID, |
| | | HManagerNumber: checkStatus.data[0].HNumber, |
| | | HManagerName: checkStatus.data[0].HName, |
| | | HManagerNumber: checkStatus.data[0].èå代ç , |
| | | HManagerName: checkStatus.data[0].èååç§°, |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ç©æå表', |
| | | title: 'ç¹æ£é¡¹ç®å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/CheckItemInformation.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/åºç¡èµæ/Gy_DotCheckList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HDotCheckItemID: checkStatus.data[0].HItemID, |
| | | HDotCheckItem: checkStatus.data[0].HName |
| | | HDotCheckItem: checkStatus.data[0].ç¹æ£é¡¹ç®åç§° |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | } |
| | | }); |
| | | } |
| | | obj.event = ""; |
| | | return false; |
| | | |
| | | } |
| | | |
| | | }) |
| | | } |
| | | |
| | | //è¡¨æ ¼è¡å
äºä»¶å¿«æ·é®çé |
| | | function set_GridCellCheck1(obj) { |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | if (obj.event === 'HMaterNumber') //é
件代ç |
| | | if (obj.event === 'HDotCheckItemClassName') //ç¹æ£é¡¹ç®åç±» |
| | | { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'é
ä»¶å表', |
| | | title: 'ç¹æ£é¡¹ç®åç±»å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/PartInformation.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | maxmin: true |
| | | , content: ['../../åºç¡èµæ/åºç¡èµæ/Gy_DotCheckItemClassList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | } |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HMaterID: checkStatus.data[0].HItemID, |
| | | HMaterNumber: checkStatus.data[0].HNumber, |
| | | HMaterName: checkStatus.data[0].HName |
| | | |
| | | HDotCheckItemClassID: checkStatus.data[0].HItemID, |
| | | HDotCheckItemClassName: checkStatus.data[0].ç¹æ£é¡¹ç®åç±»åç§° |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | } |
| | | }); |
| | | } |
| | | //åä½ä»£ç |
| | | if (obj.event === 'HUnitNumber') { |
| | | if (obj.event === 'HDotCheckItemMethodName') //ç¹æ£æ¹æ³ |
| | | { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'åä½å表', |
| | | title: 'ç¹æ£æ¹æ³å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/UnitInformation.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | maxmin: true |
| | | , content: ['../../åºç¡èµæ/åºç¡èµæ/Gy_DotCheckItemMethodList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | } |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HUnitID: checkStatus.data[0].HItemID, |
| | | HUnitNumber: checkStatus.data[0].HNumber, |
| | | HUnitName: checkStatus.data[0].HName |
| | | HDotCheckItemMethodID: checkStatus.data[0].HItemID, |
| | | HDotCheckItemMethodName: checkStatus.data[0].ç¹æ£æ¹æ³åç§° |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | } |
| | | }); |
| | | } |
| | | |
| | | obj.event = ""; |
| | | return false; |
| | | |
| | | } |
| | | |
| | | }) |
| | | } |
| | | |
| | | |
| | | //æ°å¢ |
| | | form.on('submit(set_AddNew)', function (data) { |
| | |
| | | form.on('submit(Saver)', function (data) { |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sSubStr1 = JSON.stringify(table.cache['mainTable1']); |
| | | var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"] + ";" + sSubStr1; |
| | | var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"]; |
| | | if (!AllowLoadData(sSubStr))//æ°æ®éªè¯ |
| | | { |
| | | return false; |
| | |
| | | function set_InitGrid() { |
| | | //表头 |
| | | columns = [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计è¡' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe" } |
| | | , { field: 'HDotCheckItemID', title: 'ç¹æ£ID', edit: 'text', hide: true } |
| | | , { field: 'HDotCheckItem', title: 'ç¹æ£é¡¹ç®', edit: 'text', event: 'HDotCheckItem' } |
| | | , { field: 'HDotCheckItemClassID', title: 'ç¹æ£é¡¹ç®åç±»ID', edit: 'text', hide: true } |
| | | , { field: 'HDotCheckItemClassName', title: 'ç¹æ£é¡¹ç®åç±»', edit: 'text', event: 'HDotCheckItemClassName' } |
| | | , { field: 'HDotCheckItemMethodID', title: 'ç¹æ£æ¹æ³ID', edit: 'text', hide: true } |
| | | , { field: 'HDotCheckItemMethodName', title: 'ç¹æ£æ¹æ³', edit: 'text', event: 'HDotCheckItemMethodName' } |
| | | , { field: 'HDotCheckResult', title: 'ç¹æ£ç»æ', templet: '#HDotCheckResult', event: 'HDotCheckResult' } |
| | | , { field: 'HDotCheckPart', title: 'ç¹æ£é¨ä½', edit: 'text' } |
| | | , { field: 'HClaim', title: 'å
·ä½è¦æ±', edit: 'text' } |
| | | , { field: 'HManagerID', title: 'è´è´£äººID', edit: 'text', hide: true } |
| | |
| | | , elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , page: false |
| | | , totalRow: true |
| | | , cellMinWidth: 120 |
| | | , height: 500 |
| | | , cols: [columns] |
| | |
| | | |
| | | } |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid1() { |
| | | //表头 |
| | | columns = [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao1', title: 'åºå·', sort: true, fixed: 'left', event: "qwe" } |
| | | , { field: 'HMaterID', title: 'é
ä»¶ID', edit: 'text', hide: true } |
| | | , { field: 'HMaterNumber', title: 'é
件代ç ', edit: 'text', event: "HMaterNumber", } |
| | | , { field: 'HUnitID', title: 'åä½ID', edit: 'text', event: "", hide: true } |
| | | , { field: 'HUnitNumber', title: 'åä½ä»£ç ', edit: 'text', event: "HUnitNumber" } |
| | | , { field: 'HQty', title: 'å®é
ç¨é', edit: 'text' } |
| | | , { field: 'HQtyMust', title: 'åä½ç¨é', edit: 'text' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo1', width: 150 } |
| | | ]; |
| | | option1 = { |
| | | id: 'mainTable1' |
| | | , elem: '#mainTable1' |
| | | , toolbar: '#toolbarDemo1' |
| | | , page: false |
| | | , cellMinWidth: 120 |
| | | , height: 500 |
| | | , cols: [columns] |
| | | , done: function (res, curr, count) { |
| | | |
| | | } |
| | | }; |
| | | |
| | | } |
| | | |
| | | //æ æºåæ°å¢ |
| | | function set_AddFNew() { |
| | | //è·åæå¤§åæ®å· |
| | | get_MAXNum(); |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": "0", "HManagerNumber": "", "HManagerName": "", "HRemark": "" }]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": "0", "HManagerNumber": "", "HManagerName": "", "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" }]; |
| | | table.render(option); |
| | | option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": "0", "HUnitNumber": "", "HUnitName": "", "HQty": "0", "HQtyMust": "0", "HRemark": "" }]; |
| | | table.render(option1); |
| | | } |
| | | |
| | | //ç¼è¾ |
| | | function set_EditFromGrid() { |
| | | set_EditForm(linterid); //ç¼è¾è·å表头 |
| | | set_EditGrid(linterid); //ç¼è¾è·åè¡¨ä½ |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": "0", "HManagerNumber": "", "HManagerName": "", "HRemark": "" }]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": "0", "HManagerNumber": "", "HManagerName": "", "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" }]; |
| | | table.render(option); |
| | | option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": "0", "HUnitNumber": "", "HUnitName": "", "HQty": "0", "HQtyMust": "0", "HRemark": "" }]; |
| | | table.render(option1); |
| | | } |
| | | |
| | | //è·åæå¤§åæ®å·åé»è®¤å¼èµå¼ |
| | |
| | | } |
| | | |
| | | // ç¹æ£è®¡å ç¹æ£ä¿¡æ¯ é
ä»¶ä¿¡æ¯ |
| | | function get_DocCheckItem(data) { |
| | | window.get_DocCheckItem = function (data) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_MouldDotCheckPlanBill/Sc_MouldDotCheckPlanBillListProjectDetai", |
| | | type: "GET", |
| | |
| | | var BYData = result.list[0];//ç¹æ£ |
| | | var PJData = result.list[1];//é
ä»¶ |
| | | var rowdate1 = layui.table.cache["mainTable"]; |
| | | var rowdate2 = layui.table.cache["mainTable1"]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": "0", "HManagerNumber": "", "HManagerName": "", "HRemark": "" }]; |
| | | option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": "0", "HUnitNumber": "", "HUnitName": "", "HQty": "0", "HQtyMust": "0", "HRemark": "" }]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": "0", "HManagerNumber": "", "HManagerName": "", "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" }]; |
| | | table.render(option); |
| | | table.render(option1); |
| | | |
| | | if (BYData.length != 0) //è¡¨ä½æ°æ®ä¸ä¸ºç©ºæ¶ |
| | | { |
| | |
| | | var checkrow = { |
| | | "HDotCheckItemID": BYData[i].HDotCheckItemID, "HDotCheckItem": BYData[i].HDotCheckItem, "HDotCheckPart": BYData[i].HDotCheckPart, |
| | | "HClaim": BYData[i].HClaim, "HManagerID": BYData[i].HManagerID, "HManagerNumber": BYData[i].HManagerCode, |
| | | "HManagerName": BYData[i].HManagerName, "HRemark": BYData[i].HRemark |
| | | "HManagerName": BYData[i].HManagerName, "HRemark": BYData[i].HRemark, "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" |
| | | }; |
| | | buttonArr.push(checkrow); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | | table.reload("mainTable", { |
| | | data: buttonArr //å°æ°æ®éæ°è½½å
¥è¡¨æ ¼ |
| | | }) |
| | | } |
| | | |
| | | if (PJData.length != 0) //è¡¨ä½æ°æ®ä¸ä¸ºç©ºæ¶ |
| | | { |
| | | buttonArr = [];//æ¸
空æ°ç» |
| | | for (var i = 0; i < PJData.length; i++) { |
| | | var checkrow = { |
| | | "HMaterID": PJData[i].HMaterID, "HMaterNumber": PJData[i].HMaterNumber, "HMaterName": PJData[i].HMaterName, |
| | | "HUnitID": PJData[i].HUnitID, "HUnitNumber": PJData[i].HUnitNumber, |
| | | "HUnitName": PJData[i].HUnitName, "HQty": PJData[i].HQty, "HQtyMust": PJData[i].HQtyMust, |
| | | "HRemark": PJData[i].HRemark |
| | | }; |
| | | buttonArr.push(checkrow); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | | table.reload("mainTable1", { |
| | | data: buttonArr //å°æ°æ®éæ°è½½å
¥è¡¨æ ¼ |
| | | }) |
| | | option.data = buttonArr; |
| | | table.render(option); |
| | | } |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | |
| | | } |
| | | |
| | | //ç¹æ£è§ç¨ ç¹æ£ä¿¡æ¯ é
ä»¶ä¿¡æ¯ |
| | | function get_DocCheckItem2(data) { |
| | | window.get_DocCheckItem2 = function (data) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_MouldDotCheckRuleBill/Sc_MouldDotCheckRuleBillSubAndSubItem", |
| | | type: "GET", |
| | |
| | | var BYData = result.list[0];//ç¹æ£ |
| | | var PJData = result.list[1];//é
ä»¶ |
| | | var rowdate1 = layui.table.cache["mainTable"]; |
| | | var rowdate2 = layui.table.cache["mainTable1"]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": "0", "HManagerNumber": "", "HManagerName": "", "HRemark": "" }]; |
| | | option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": "0", "HUnitNumber": "", "HUnitName": "", "HQty": "0", "HQtyMust": "0", "HRemark": "" }]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": "0", "HManagerNumber": "", "HManagerName": "", "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" }]; |
| | | table.render(option); |
| | | table.render(option1); |
| | | |
| | | if (BYData.length != 0) //è¡¨ä½æ°æ®ä¸ä¸ºç©ºæ¶ |
| | | { |
| | |
| | | var checkrow = { |
| | | "HDotCheckItemID": BYData[i].HDotCheckItemID, "HDotCheckItem": BYData[i].HDotCheckItem, "HDotCheckPart": BYData[i].HDotCheckPart, |
| | | "HClaim": BYData[i].HClaim, "HManagerID": BYData[i].HManagerID, "HManagerNumber": BYData[i].HManagerNumber, |
| | | "HManagerName": BYData[i].HManagerName, "HRemark": BYData[i].HRemark |
| | | "HManagerName": BYData[i].HManagerName, "HRemark": BYData[i].HRemark, "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" |
| | | }; |
| | | buttonArr.push(checkrow); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | | table.reload("mainTable", { |
| | | data: buttonArr //å°æ°æ®éæ°è½½å
¥è¡¨æ ¼ |
| | | }) |
| | | } |
| | | |
| | | if (PJData.length != 0) //è¡¨ä½æ°æ®ä¸ä¸ºç©ºæ¶ |
| | | { |
| | | buttonArr = [];//æ¸
空æ°ç» |
| | | for (var i = 0; i < PJData.length; i++) { |
| | | var checkrow = { |
| | | "HMaterID": PJData[i].HMaterID, "HMaterNumber": PJData[i].HMaterNumber, "HMaterName": PJData[i].HMaterName, |
| | | "HUnitID": PJData[i].HUnitID, "HUnitNumber": PJData[i].HUnitNumber, |
| | | "HUnitName": PJData[i].HUnitName, "HQty": PJData[i].HQty, "HQtyMust": PJData[i].HQtyMust, |
| | | "HRemark": PJData[i].HRemark |
| | | }; |
| | | buttonArr.push(checkrow); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | | table.reload("mainTable1", { |
| | | data: buttonArr //å°æ°æ®éæ°è½½å
¥è¡¨æ ¼ |
| | | }) |
| | | option.data = buttonArr; |
| | | table.render(option); |
| | | } |
| | | |
| | | } else { |
| | |
| | | , "HEndDate": formatDate(data.ç¹æ£ç»ææ¥æ) |
| | | , "HExplanation": data.æè¦ |
| | | , "HRemark": data.夿³¨ |
| | | , "HPlanNo": data.ç¹æ£è®¡åç¼å· |
| | | , "HPlanInterID": data.HPlanInterID |
| | | , "HPlanInterName": data.ç¹æ£è®¡åå
ç |
| | | , "HMouldID": data.HMouldID |
| | | //, "HPlanNo": data.ç¹æ£è®¡åç¼å· |
| | | , "HPlanInterID": data.HPlanInterID == undefined ? 0 : data.HPlanInterID |
| | | , "HPlanNo": data.ç¹æ£è®¡åå
ç |
| | | , "HMouldID": data.HMouldID == undefined ? 0 : data.HPlanInterID |
| | | , "HMouldDotCheckRuleName": data.å¨å
·ç¹æ£è§ç¨åæ®å· |
| | | , "HMouldDotCheckRuleID": data.HMouldDotCheckRuleID |
| | | , "HMouldDotCheckRuleID": data.HMouldDotCheckRuleID == undefined ? 0 : data.HPlanInterID |
| | | , "HErrNote": data.å¼å¸¸æ
åµè®°å½ //å¼å¸¸æ
åµè®°å½ |
| | | , "HBigSafeNote": data.é大å®å
¨éæ£è®°å½ //é大å®å
¨éæ£è®°å½ |
| | | , "HDotCheckNote": data.ç¹æ£æ°æ® //ç¹æ£æ°æ® |
| | | , "HShiftsID": data.HShiftsID == undefined ? 0 : data.HPlanInterID |
| | | , "HShiftsName": data.çæ¬¡åç§° //çæ¬¡åç§° |
| | | }); |
| | | if (data.æç»ç»è®º == "ä¸åæ ¼") { |
| | | document.querySelectorAll("[name='HLastResult']")[0].removeAttribute('checked'); //å é¤éæ©å±æ§ |
| | | $("input:radio[name=HLastResult][value=" + "NG" + "]").attr("checked", "true"); //æ·»å 鿩屿§ |
| | | } else { |
| | | document.querySelectorAll("[name='HLastResult']")[1].removeAttribute('checked'); //å é¤éæ©å±æ§ |
| | | $("input:radio[name=HLastResult][value=" + "OK" + "]").attr("checked", "true"); //æ·»å 鿩屿§ |
| | | } |
| | | form.render('radio'); |
| | | |
| | | } else { |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | |
| | | data: { "sqlWhere": "and HInterID=" + linterid }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | option.data = result.list[0]; |
| | | var data = result.data; |
| | | var subarr = []; |
| | | for (var i = 0; i < data.length; i++) { |
| | | subarr.push({ "HDotCheckItemID": data[i].ç¹æ£é¡¹ç®ID, "HDotCheckItem": data[i].ç¹æ£é¡¹ç®, "HDotCheckPart": data[i].ç¹æ£é¨ä½, "HClaim": data[i].å
·ä½è¦æ±, "HManagerID": data[i].è´è´£äººID, "HManagerNumber": data[i].è´è´£äººä»£ç , "HManagerName": data[i].è´è´£äººåç§°, "HRemark": data[i].å夿³¨2, "HDotCheckItemClassID": data[i].HDotCheckItemClassID, "HDotCheckItemClassName": data[i].ç¹æ£é¡¹ç®åç±»åç§°, "HDotCheckItemMethodID": data[i].HDotCheckItemMethodID, "HDotCheckItemMethodName": data[i].ç¹æ£æ¹æ³åç§°, "HDotCheckResult": data[i].ç¹æ£ç»æ == "åæ ¼" ? 'Y' : 'X' }); |
| | | } |
| | | |
| | | option.data = subarr; |
| | | table.render(option); |
| | | option1.data = result.list[1]; |
| | | table.render(option1); |
| | | for (let j = 0; j < data.length; j++) { |
| | | $("#HDotCheckResult" + (j + 1)).val(data[j].ç¹æ£ç»æ == "åæ ¼" ? 'Y' : 'X') |
| | | } |
| | | form.render('select'); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | |
| | | |
| | | //å¢å ä¸è¡ |
| | | function btnAddLine(NewRow) { |
| | | var tableBak = table.cache["mainTable"]; //è·åä¹åç¼è¾è¿çè¡¨æ ¼æ°æ® |
| | | buttonArr = [];//æ¸
空æ°ç» |
| | | for (var i = 0; i < tableBak.length; i++) { |
| | | buttonArr.push(tableBak[i]); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | | buttonArr.push(NewRow); //å¨å°¾é¨å ä¸è¡ |
| | | table.reload("mainTable", { |
| | | data: buttonArr //å°æ°æ®éæ°è½½å
¥è¡¨æ ¼ |
| | | }) |
| | | } |
| | | table.cache["mainTable"].push(NewRow); |
| | | option.data = table.cache["mainTable"]; |
| | | table.render(option); |
| | | |
| | | //å¢å ä¸è¡ |
| | | function btnAddLine1(NewRow) { |
| | | var tableBak = table.cache["mainTable1"]; //è·åä¹åç¼è¾è¿çè¡¨æ ¼æ°æ® |
| | | buttonArr = [];//æ¸
空æ°ç» |
| | | for (var i = 0; i < tableBak.length; i++) { |
| | | buttonArr.push(tableBak[i]); //å°ä¹åçæ°æ®åå¨ |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HDotCheckResult' + i + '').find("option[value='" + option.data[i - 1].HDotCheckResult + "']").attr("selected", true); |
| | | } |
| | | buttonArr.push(NewRow); //å¨å°¾é¨å ä¸è¡ |
| | | table.reload("mainTable1", { |
| | | data: buttonArr //å°æ°æ®éæ°è½½å
¥è¡¨æ ¼ |
| | | }) |
| | | form.render('select'); |
| | | } |
| | | |
| | | //å¤å¶ä¸è¡ |
| | |
| | | table.cache["mainTable"].push(JSON.parse(copyrow));//å°å¤å¶çè¡å¼ºè½¬æjson追å å°è¡¨æ ¼ä¸ |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(option);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HDotCheckResult' + i + '').find("option[value='" + option.data[i - 1].HDotCheckResult + "']").attr("selected", true); |
| | | } |
| | | form.render('select'); |
| | | } |
| | | } |
| | | |
| | | //å¤å¶ä¸è¡ |
| | | function btnCopyLine1(data) { |
| | | var copydata = JSON.stringify(data); |
| | | if (data.length <= 0) { |
| | | layer.msg("è¯·éæ©éè¦å¤å¶çä¸è¡ï¼"); |
| | | } |
| | | else if (data.length > 1) { |
| | | layer.msg("åªè½éæ©å¤å¶ä¸è¡ï¼"); |
| | | } |
| | | else { |
| | | var copydata2 = copydata.substring(1, copydata.length);//å»é¤é¦è¡å符'[' |
| | | var copyrow = copydata2.substring(0, copydata2.length - 1);//å»é¤æ«å°¾å符']' |
| | | table.cache["mainTable1"].push(JSON.parse(copyrow));//å°å¤å¶çè¡å¼ºè½¬æjson追å å°è¡¨æ ¼ä¸ |
| | | option1.data = table.cache["mainTable1"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(option1);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | } |
| | | } |
| | | |
| | | //è¡¨æ ¼è¡å
äºä»¶å é¤ |
| | | function set_GridDelete(obj) { |
| | |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //è¡¨æ ¼è¡å
äºä»¶å é¤ |
| | | function set_GridDelete1(obj) { |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del1') { |
| | | layer.confirm('ççå é¤è¡ä¹', function (index) { |
| | | console.log("ç´¢å¼ä¸º:" + rowIndex); |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | var oldData = table.cache["mainTable1"]; |
| | | oldData.splice(obj.tr.data('index'), 1); |
| | | table.reload('mainTable1', { data: oldData }); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | }; |
| | | |
| | | //è¡¨æ ¼è¡å
äºä»¶å é¤ |
| | | function set_GridDelete1(obj) { |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del1') { |
| | | layer.confirm('ççå é¤è¡ä¹', function (index) { |
| | | console.log("ç´¢å¼ä¸º:" + rowIndex); |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | var oldData = table.cache["mainTable1"]; |
| | | oldData.splice(obj.tr.data('index'), 1); |
| | | table.reload('mainTable1', { data: oldData }); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | }; |
| | | |
| | | //é空éªè¯ |
| | | function AllowLoadData(sSubStr) { |
| | |
| | | //#endregion |
| | | }); |
| | | |
| | | function GetMouldFileValue(obj) { //å¨å
·æ¡£æ¡ |
| | | $("#HMouldName").val(obj[0].模å
·åç§°); |
| | | $("#HMouldID").val(obj[0].hmainid); |
| | | } |
| | | |
| | | function GetMouldDotCheckPlanValue(obj) { //å¨å
·ç¹æ£è®¡å |
| | | $("#HPlanNo").val(obj[0].åæ®å·); |
| | | $("#HPlanInterID").val(obj[0].hmainid); |
| | | get_DocCheckItem(obj[0].hmainid); |
| | | } |
| | | |
| | | function GetMouldDotCheckRuleValue(obj) { //å¨å
·ç¹æ£è§ç¨ |
| | | $("#HMouldDotCheckRuleName").val(obj[0].åæ®å·); |
| | | $("#HMouldDotCheckRuleID").val(obj[0].hmainid); |
| | | get_DocCheckItem2(obj[0].hmainid); |
| | | } |
| | | |
| | | </script> |
| | | </body> |
| | | </html> |