| | |
| | | //éåº-å
³é页颿¹æ³ |
| | | $('#Cancel').on('click', function () { |
| | | layer.confirm('æ¨ç¡®å®è¦éåºåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | parent.location.href = "../../views/index_Mobile.html"; |
| | | }); |
| | | }) |
| | | |
| | |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | $('#Saver').removeClass("layui-btn-disabled").attr("disabled", false);//ä¿åæé®å¯ç¨ |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | |
| | | //#region éåºæé® |
| | | form.on('submit(Cancel)', function () { |
| | | layer.confirm('æ¨ç¡®å®è¦éåºåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | parent.location.href = "../../views/index_Mobile.html"; |
| | | }); |
| | | }) |
| | | //#endregion |
| | |
| | | |
| | | //表头信æ¯è®¾å¤ä¿å
»è§ç¨ |
| | | form.on('submit(HEquipDotCheckRuleInterist)', function () { |
| | | if ($("#HEquipID").val() == 0 || $("#HEquipID").val() == null || $("#HEquipID").val() == "") { |
| | | layer.alert("请å
æ«æè®¾å¤äºç»´ç 带åºè®¾å¤ä¿¡æ¯"); |
| | | return; |
| | | } |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../设å¤ç®¡ç/设å¤è§ç¨å/Sb_EquipDotCheckRuleList_PDA.html', 'yes'], |
| | | content: ['../设å¤ç®¡ç/设å¤è§ç¨å/Sb_EquipDotCheckRuleList_PDA.html?HEquipID=' + $("#HEquipID").val(), 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | var checkrow = { |
| | | "HDotCheckItemID": data[i].HDotCheckItemID, "HDotCheckCode": data[i].ç¹æ£é¡¹ç®ä»£ç , "HDotCheckItem": data[i].ç¹æ£é¡¹ç®, |
| | | "HDotCheckPart": data[i].ç¹æ£é¨ä½, "HClaim": data[i].å
·ä½è¦æ±, "HManagerID": data[i].è´è´£äººID, "HManagerCode": data[i].è´è´£äººä»£ç , |
| | | "HManagerName": data[i].è´è´£äººåç§°, "HSourceInterID": data[i].ç¹æ£è®¡åID == null ? 0 : data[i].ç¹æ£è®¡åID, "HSourceEntryID": data[i].ç¹æ£è®¡ååID == null ? 0 : data[i].ç¹æ£è®¡ååID, "HSourceBillNo": data[i].ç¹æ£è®¡åå, "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": data[i].é»è®¤ç»è®º |
| | | "HManagerName": data[i].è´è´£äººåç§°, "HSourceInterID": data[i].ç¹æ£è®¡åID == null ? 0 : data[i].ç¹æ£è®¡åID, "HSourceEntryID": data[i].ç¹æ£è®¡ååID == null ? 0 : data[i].ç¹æ£è®¡ååID, "HSourceBillNo": data[i].ç¹æ£è®¡åå, "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": data[i].é»è®¤ç»è®º == 1 ? true : false |
| | | }; |
| | | buttonArr.push(checkrow); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | |
| | | columns = [ |
| | | //{ type: 'checkbox' } |
| | | { templet: '#xuhao', title: 'åºå·', event: "qwe", width: 45 } |
| | | , { field: 'HDotCheckResult', title: 'ç»æ', templet: '#HDotCheckResult', width: 55 } |
| | | , { field: 'HDotCheckResult', title: 'ç»æ', templet: '#HDotCheckResult', width: 55, unresize: false } |
| | | , { field: 'HDotCheckItemID', title: 'ç¹æ£é¡¹ç®ID', edit: 'text', hide: true } |
| | | , { field: 'HDotCheckCode', title: 'ç¹æ£é¡¹ç®ä»£ç ', edit: 'text', event: "HDotCheckCode", width: 115, hide: true } |
| | | , { field: 'HDotCheckItem', title: 'ç¹æ£é¡¹ç®', edit: 'text', event: "" } |
| | |
| | | , height: 'full-205' |
| | | , cols: [columns] |
| | | , done: function (res, curr, count) { |
| | | |
| | | option.data = res.data; |
| | | //廿䏿æ¡å¤±ç¦äºä»¶å¦åå¨ä¸ææ¡éè¾å
¥å¼ |
| | | $('.layui-form-select').find('input').unbind("blur"); |
| | | //è¡¨æ ¼éè½½åæ¾ä¸ææ¡éçæ°æ® |
| | | $('tr').each(function (e) { |
| | | var $cr = $(this); |
| | | var dataIndex = $cr.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TNDEX == dataIndex) { |
| | | //$cr.find('input').val(value.HResult); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | }; |
| | | |
| | |
| | | for (let i = 0; i < data.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HDotCheckResult": data[i].é»è®¤ç»è®º, "HDotCheckItemID": data[i].ç¹æ£é¡¹ç®ID, "HDotCheckCode": data[i].ç¹æ£é¡¹ç®ä»£ç , "HDotCheckItem": data[i].ç¹æ£é¡¹ç®åç§°, |
| | | "HDotCheckResult": data[i].é»è®¤ç»è®º == 1 ? true : false, "HDotCheckItemID": data[i].ç¹æ£é¡¹ç®ID, "HDotCheckCode": data[i].ç¹æ£é¡¹ç®ä»£ç , "HDotCheckItem": data[i].ç¹æ£é¡¹ç®åç§°, |
| | | "HDotCheckPart": data[i].ç¹æ£é¨ä½, "HClaim": data[i].å
·ä½è¦æ±, "HManagerID": data[i].è´è´£äººID, "HManagerCode": data[i].è´è´£äººä»£ç , |
| | | "HManagerName": data[i].è´è´£äººåç§°, "HSourceInterID": data[i].ç¹æ£è®¡åID, "HSourceEntryID": data[i].ç¹æ£è®¡ååID, "HSourceBillNo": data[i].ç¹æ£è®¡åå, "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "" |
| | | } |