| | |
| | | <script src="../../layuiadmin/PubCustom.js"></script> |
| | | <style type="text/css"> |
| | | .layui-form-label { |
| | | width: 85px; |
| | | width: 95px; |
| | | } |
| | | </style> |
| | | </head> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo"> |
| | | <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input id="HInterID" name="HInterID" type="hidden" /> |
| | | <input id="HMaker" name="HMaker" type="hidden" /><!--å¶å人--> |
| | | </div> |
| | |
| | | <label class="layui-form-label">设å¤<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HEquipID" id="HEquipID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HEquipName" id="HEquipName" class="layui-input" value="" style="float:left;width:150px;" readonly="readonly"> |
| | | <input type="text" name="HEquipName" id="HEquipName" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;"readonly="readonly"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="ProductModulList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <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="hidden" name="HPlanNo" id="HPlanNo" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HPlanName" id="HPlanName" class="layui-input" value="" style="float:left;width:150px;" readonly="readonly"> |
| | | <input type="hidden" name="HPlanNo" id="HPlanNo" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="text" name="HPlanName" id="HPlanName" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly="readonly"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HPlanList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | |
| | | </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="hidden" name="HEquipDotCheckRuleInterID" id="HEquipDotCheckRuleInterID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HEquipDotCheckRuleInterNo" id="HEquipDotCheckRuleInterNo" class="layui-input" value="" style="float:left;width:150px;" readonly="readonly"> |
| | | <input type="hidden" name="HEquipDotCheckRuleInterID" id="HEquipDotCheckRuleInterID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="text" name="HEquipDotCheckRuleInterNo" id="HEquipDotCheckRuleInterNo" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HEquipDotCheckRuleInterList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | |
| | | if (result.count == 1) { |
| | | var BYData = result;// |
| | | var rowdate1 = layui.table.cache["mainTable"]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckCode": "", "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRemark": "" }]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckCode": " ", "HDotCheckItem": " ", "HDotCheckPart": " ", "HClaim": " ", "HManagerID": 0, "HManagerCode": " ", "HManagerName": " ", "HRemark": " " }]; |
| | | table.render(option); |
| | | $("#HEquipDotCheckRuleInterID").val(BYData.data[0].HInterID); |
| | | $("#HEquipDotCheckRuleInterNo").val(BYData.data[0].HBillNo) |
| | | $("#HEquipDotCheckRuleInterNo").val(BYData.data[0].HBillNo); |
| | | if (BYData.data.length != 0) //è¡¨ä½æ°æ®ä¸ºç©ºæ¶ |
| | | { |
| | | buttonArr = [];//æ¸
空æ°ç» |
| | |
| | | var checkrow = { |
| | | "HDotCheckItemID": BYData.data[i].HDotCheckItemID, "HDotCheckCode": BYData.data[i].HDotCheckCode, "HDotCheckItem": BYData.data[i].HDotCheckItem, |
| | | "HDotCheckPart": BYData.data[i].HDotCheckPart, "HManagerID": BYData.data[i].HManagerID, "HManagerCode": BYData.data[i].HManagerCode, |
| | | "HManagerName": BYData.data[i].HManagerName, "HClaim": rowdate1[i].HClaim, "HRemark": rowdate1[i].HRemark |
| | | "HManagerName": BYData.data[i].HManagerName |
| | | }; |
| | | buttonArr.push(checkrow); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | |
| | | if (result.count == 1) { |
| | | var BYData = result;// |
| | | var rowdate1 = layui.table.cache["mainTable"]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckCode": "", "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRemark": "" }]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckCode": " ", "HDotCheckItem": " ", "HDotCheckPart": " ", "HClaim": " ", "HManagerID": 0, "HManagerCode": " ", "HManagerName": " ", "HRemark": " " }]; |
| | | table.render(option); |
| | | |
| | | if (BYData.data.length != 0) //è¡¨ä½æ°æ®ä¸ºç©ºæ¶ |
| | |
| | | var checkrow = { |
| | | "HDotCheckItemID": BYData.data[i].HDotCheckItemID, "HDotCheckCode": BYData.data[i].HDotCheckCode, "HDotCheckItem": BYData.data[i].HDotCheckItem, |
| | | "HDotCheckPart": BYData.data[i].HDotCheckPart, "HManagerID": BYData.data[i].HManagerID, "HManagerCode": BYData.data[i].HManagerCode, |
| | | "HManagerName": BYData.data[i].HManagerName, "HClaim": rowdate1[i].HClaim, "HRemark": rowdate1[i].HRemark |
| | | "HManagerName": BYData.data[i].HManagerName |
| | | }; |
| | | buttonArr.push(checkrow); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | 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('è¯·éæ©æ°æ®'); |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg('è¯·éæ©ä¸æ¡æ°æ®'); |
| | | } |
| | | $("#HPlanName").val(checkStatus.data[0].åæ®å·); |
| | | $("#HPlanNo").val(checkStatus.data[0].hmainid); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | }, |
| | | success: function (layero, index) { |
| | | $("#HEquipName").val(checkStatus.data[0].设å¤åç§°); |
| | | $("#HEquipID").val(checkStatus.data[0].设å¤ID); |
| | | $("#HEquipDotCheckRuleInterID").val(checkStatus.data[0].HMouldDotCheckRuleID); |
| | | $("#HEquipDotCheckRuleInterNo").val(checkStatus.data[0].设å¤ç¹æ£è§ç¨); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | get_DocCheckItem3(); |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | function get_DocCheckItem3() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sb_EquipDotCheckPlanBill/Sb_EquipDotCheckPlanBillListProjectDetai", |
| | | type: "GET", |
| | | data: { "sqlWhere": "and hmainid=" + $("#HPlanNo").val()}, |
| | | success: function (result) { |
| | | if (result != null) { |
| | | if (result.count == 1) { |
| | | var BYData = result;// |
| | | var rowdate1 = layui.table.cache["mainTable"]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckCode": " ", "HDotCheckItem": " ", "HDotCheckPart": " ", "HClaim": " ", "HManagerID": 0, "HManagerCode": " ", "HManagerName": " ", "HRemark": " " }]; |
| | | table.render(option); |
| | | |
| | | if (BYData.data.length != 0) //è¡¨ä½æ°æ®ä¸ºç©ºæ¶ |
| | | { |
| | | buttonArr = [];//æ¸
空æ°ç» |
| | | for (var i = 0; i < BYData.data.length; i++) { |
| | | var checkrow = { |
| | | "HDotCheckItemID": BYData.data[i].HDotCheckItemID, "HDotCheckCode": BYData.data[i].HDotCheckCode, "HDotCheckItem": BYData.data[i].HDotCheckItem, |
| | | "HDotCheckPart": BYData.data[i].HDotCheckPart, "HClaim": BYData.data[i].HClaim, "HManagerID": BYData.data[i].HManagerID, "HManagerCode": BYData.data[i].HManagerCode, |
| | | "HManagerCode": BYData.data[i].HManagerCode, "HManagerName": BYData.data[i].HManagerName, "HRemark": BYData.data[i].HRemark |
| | | }; |
| | | buttonArr.push(checkrow); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | | table.reload("mainTable", { |
| | | data: buttonArr //å°æ°æ®éæ°è½½å
¥è¡¨æ ¼ |
| | | }) |
| | | } |
| | | } |
| | | else { |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckCode": "", "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRemark": "" }]; |
| | | table.render(option); |
| | | layer.alert("è¯¥è®¾å¤ææ é»è®¤ç¹æ£è®°å½", { icon: 5 }); |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // æäº¤ä¿å |
| | | form.on('submit(set_SaveBill)', function (data) {//ä¿å |
| | |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ç©æå表', |
| | | title: 'ç¹æ£é¡¹ç®å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ç©æå表', |
| | | title: 'è´è´£äººå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | |
| | | , "HPlanNo": data.ç¹æ£è®¡åç¼å· //ç¹æ£è®¡åç¼å· |
| | | , "HPlanName": data.ç¹æ£è®¡å //ç¹æ£è®¡åç¼å· |
| | | , "HRemark": data.è¡¨å¤´å¤æ³¨ //夿³¨ |
| | | , "HEquipDotCheckRuleInterID": data.设å¤ç¹æ£è§ç¨ID // 设å¤ç¹æ£è§ç¨ID |
| | | , "HEquipDotCheckRuleInterNo": data.设å¤ç¹æ£è§ç¨ // 设å¤ç¹æ£è§ç¨ |
| | | }); |
| | | |
| | | } else { |
| | |
| | | return false; |
| | | } |
| | | //ç¹æ£è®¡å没æéæ© |
| | | if ($("#HPlanNo").val() == '') { |
| | | layer.msg("ç¹æ£è®¡å没æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | //if ($("#HPlanNo").val() == '') { |
| | | // layer.msg("ç¹æ£è®¡å没æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | //ç¹æ£è§ç¨æ²¡æéæ© |
| | | if ($("#HEquipDotCheckRuleInterID").val() == '') { |
| | | layer.msg("ç¹æ£è§ç¨æ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | //if ($("#HEquipDotCheckRuleInterID").val() == '') { |
| | | // layer.msg("ç¹æ£è§ç¨æ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | //å¤æç©ææç»é¡¹ |
| | | if (typeof (sSubStr) == "undefined" || sSubStr == "" || sSubStr == "[]") { |
| | | layer.msg("没æç©ææç»è®°å½", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |