| | |
| | | <input class="layui-input" name="HDate" id="HDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline" style="display:none;"> |
| | | <label class="layui-form-label">å
é¨åæ®å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HInnerBillNo" id="HInnerBillNo" class="layui-input"> |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿å
»çº§å«</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HMaintainLevID" id="HMaintainLevID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="text" name="HMaintainLevName" id="HMaintainLevName" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnMaintainLev" 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"> |
| | | <select name="HCycleUnit" lay-filter="aihao" id="HCycleUnit"> |
| | | <option value="次">次</option> |
| | | <option value="天">天</option> |
| | | <option value="æ">æ</option> |
| | | <option value="å¨">å¨</option> |
| | | <option value="å¹´">å¹´</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | |
| | | <input type="text" name="HCheckCycle" id="HCheckCycle" class="layui-input" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿å
»é¢è¦æ¬¡æ°</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HErrWarQtys" id="HErrWarQtys" class="layui-input" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <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;"> |
| | | <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> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">计åå¼å§æ¥æ<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | |
| | | <input class="layui-input" name="HEndDate" id="HEndDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">é¨é¨</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" lay-verify="HDeptName" name="HDeptName" id="HDeptName" style="background-color:#efefef4d;float:left;width:150px;" readonly> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDept" id="btnHDept" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">使ç¨ç»ç»</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 185px;"> |
| | | <input type="hidden" class="layui-input" lay-verify="HCREATEORGID" name="HCREATEORGID" id="HCREATEORGID" value="0"> |
| | | <select name="HUSEORGID" id="HUSEORGID" lay-verify="HUSEORGID"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </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="HExplanation" id="HExplanation"></textarea> |
| | | <textarea placeholder="请è¾å
¥æè¦" class="layui-textarea" name="HExplanation" id="HExplanation" style="width:530px;"></textarea> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline" style="margin-left:340px;"> |
| | | <label class="layui-form-label">夿³¨</label> |
| | | <div class="layui-input-inline"> |
| | | <textarea placeholder="请è¾å
¥ç»´å¤æ³¨" class="layui-textarea" name="HRemark" id="HRemark"></textarea> |
| | | <textarea placeholder="请è¾å
¥å¤æ³¨" class="layui-textarea" name="HRemark" id="HRemark" style="width:530px;"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">ä¿å
»é¡¹ä¿¡æ¯</li> |
| | | <li>é
ä»¶ä¿¡æ¯</li> |
| | | <li>ä¿å
»è®¡å</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <!--ä¿å
»è®¡å--> |
| | | <table class="layui-hide" id="mainTable_plan" lay-filter="mainTable_plan"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | , element = layui.element; |
| | | var option = [];//ä¿å
» |
| | | var option1 = [];//é
ä»¶ |
| | | var option_plan = [];//计å |
| | | var sBillType = "3818"; |
| | | //var TabRow = { "HMaterID": 0, "HUnitID": "0 ", "HQty": "0 ", "HQtyMust": "0", "HRemark": " " }; |
| | | //#endregion |
| | |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType); |
| | | $("h1").html('<b>' + HPageTitle + '</b>'); |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | //åå§å表åæä»¶ |
| | | set_InitFrom(); |
| | |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | set_InitGrid1(); |
| | | |
| | | set_InitGrid_Plan(); |
| | | //卿å è½½ç»ç» |
| | | Organ(); |
| | | $("#HCREATEORGID").val(sessionStorage["OrganizationID"]); |
| | | //夿æä½ç±»å |
| | | if (OperationType == 1) {//æ æºå |
| | | set_AddFNew(); |
| | |
| | | } |
| | | $("#HMouldMaintainRuleNo").val(checkStatus.data[0].åæ®å·); |
| | | $("#HMouldMaintainRuleID").val(checkStatus.data[0].hmainid); |
| | | $("#HMaintainLevName").val(checkStatus.data[0].ä¿å
»çº§å«åç§°); |
| | | $("#HMaintainLevID").val(checkStatus.data[0].HMaintainLevID); |
| | | $("#HCycleUnit").val(checkStatus.data[0].卿åä½); |
| | | $("#HCheckCycle").val(checkStatus.data[0].ä¿å
»å¨æ); |
| | | $("#HErrWarQtys").val(checkStatus.data[0].ä¿å
»é¢è¦æ¬¡æ°); |
| | | form.render('select'); |
| | | |
| | | get_DocCheckItem2(checkStatus.data[0].hmainid); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | end: function () { |
| | | }, |
| | | success: function (layero, index) { |
| | | } |
| | | }); |
| | | }); |
| | | //表头信æ¯ä¿å
»çº§å«å¼¹çª |
| | | form.on('submit(btnMaintainLev)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ä¿å
»çº§å«å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_MaintainLev.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HMaintainLevName").val(checkStatus.data[0].ä¿å
»çº§å«åç§°); |
| | | $("#HMaintainLevID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //è¡¨å¤´äº§åæ¨¡å
·ä¿¡æ¯ |
| | | form.on('submit(HMouldList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: '产åå¨å
·å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../模治å
·ç®¡ç/模治å
·ç®¡ç/Gy_MouldFileList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | console.log(checkStatus); |
| | | $("#HMouldName").val(checkStatus.data[0].模å
·åç§°); |
| | | $("#HMouldID").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(btnHDept)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'é¨é¨å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_DepartmentList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HDeptID").val(checkStatus.data[0].HItemID); |
| | | $("#HDeptName").val(checkStatus.data[0].é¨é¨åç§°); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | }); |
| | | }); |
| | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sSubStr1 = JSON.stringify(table.cache['mainTable1']); |
| | | var sMainSub = sMainStr + ';' + sSubStr1 + ";" + sessionStorage["HUserName"] + ";" + sSubStr; |
| | | var num = []; |
| | | if (OperationType==3) { |
| | | //è·ååè¡¨æ°æ® |
| | | for (var i = 0; i < table.cache["mainTable_plan"].length; i++) { |
| | | if (table.cache["mainTable_plan"][i] != "") { |
| | | table.cache["mainTable_plan"][i].LAY_TABLE_INDEX = i; |
| | | if (table.cache["mainTable_plan"][i].HRelationFlag == "æªç¹æ£") { |
| | | table.cache["mainTable_plan"][i].HRelationFlag = false |
| | | } else { |
| | | table.cache["mainTable_plan"][i].HRelationFlag = true |
| | | } |
| | | if (table.cache["mainTable_plan"][i].HSendFlag == "æªåé") { |
| | | table.cache["mainTable_plan"][i].HSendFlag = false |
| | | } else { |
| | | table.cache["mainTable_plan"][i].HSendFlag = true |
| | | } |
| | | num.push(table.cache["mainTable_plan"][i]) |
| | | } |
| | | } |
| | | } |
| | | var sSubStr2 = JSON.stringify(num); |
| | | var sMainSub = sMainStr + ';' + sSubStr1 + ";" + sessionStorage["HUserName"] + ";" + sSubStr + ";" +sSubStr2; |
| | | if (AllowLoadData(sSubStr1)) { |
| | | $.ajax( |
| | | { |
| | |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | //console.log("Reason" + sMainStr + "sub:" + JSON.stringify(layui.table.cache.mainTable)); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | layer.alert("é误:" + err, { icon: 5 }); |
| | | //console.log("Reason" + sMainStr); |
| | | |
| | | } |
| | | }); |
| | | } |
| | |
| | | , page: false |
| | | , totalRow: true |
| | | , cellMinWidth: 120 |
| | | , limit: 500 |
| | | , height: 500 |
| | | , cols: [columns] |
| | | , done: function (res, curr, count) { |
| | |
| | | , totalRow: true |
| | | , page: false |
| | | , cellMinWidth: 120 |
| | | , limit: 500 |
| | | , height: 500 |
| | | , cols: [columns] |
| | | , done: function (res, curr, count) { |
| | |
| | | } |
| | | }; |
| | | |
| | | } |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid_Plan() { |
| | | //ç¹æ£è®¡å |
| | | columns_plan = [ |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计è¡' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, event: "qwe" } |
| | | , { field: 'HPlanDate', title: 'è®¡åæ¥æ' } |
| | | , { field: 'HPlanBeginTime', title: '计åå¼å§æ¶é´ç¹' } |
| | | , { field: 'HPlanEndTime', title: '计åç»ææ¶é´ç¹' } |
| | | , { field: 'HSafeEndTime', title: 'å®å
¨ç»ææ¶é´ç¹' } |
| | | , { field: 'HErrBeginTime', title: 'é¢è¦å¼å§æ¶é´ç¹' } |
| | | , { field: 'HRelationFlag', title: 'å
³èæ è®°' } |
| | | , { field: 'DiffDate', title: 'ç¸å·®é´é' } |
| | | , { field: 'HSendFlag', title: 'åéæ è®°' } |
| | | , { field: 'HErrBeginQty', edit: 'text', title: 'é¢è¦å¼å§æ¬¡æ°' } |
| | | , { field: 'HUseNowQty', edit: 'text', title: 'å½åä½¿ç¨æ¬¡æ°' } |
| | | , { field: 'HUseEndQty', edit: 'text', title: 'ç»æä½¿ç¨æ¬¡æ°' } |
| | | ]; |
| | | option_plan = { |
| | | id: 'mainTable_plan' |
| | | , elem: '#mainTable_plan' |
| | | , toolbar: '#toolbarDemo' |
| | | , page: true |
| | | , totalRow: true |
| | | , limit: 500 |
| | | , limits: [50, 200, 500, 1000, 3000] |
| | | , cellMinWidth: 120 |
| | | , height: 500 |
| | | , cols: [columns_plan] |
| | | , done: function (res, curr, count) { |
| | | |
| | | } |
| | | }; |
| | | } |
| | | |
| | | //æ æºåæ°å¢ |
| | |
| | | table.render(option); |
| | | option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": "0 ", "HUnitNumber": "", "HUnitName": "", "HQty": "0 ", "HQtyMust": "0", "HRemark": "" }]; |
| | | table.render(option1); |
| | | |
| | | set_EditGrid_Plan(linterid); //ç¼è¾è·å表ä½--ç¹æ£è®¡å |
| | | option.data = [{ "HPlanDate": "", "HPlanBeginTime": "", "HPlanEndTime": "", "HSafeEndTime": "", "HErrBeginTime": "", "HRelationFlag": "æªç¹æ£", "DiffDate": 0, "HSendFlag": "0", "HErrBeginQty": "", "HUseNowQty": "", "HUseEndQty": "" }]; |
| | | table.render(option_plan); |
| | | } |
| | | |
| | | //è·åæå¤§åæ®å·åé»è®¤å¼èµå¼ |
| | |
| | | }); |
| | | } |
| | | |
| | | //è·åç»ç» |
| | | function Organ() { |
| | | //è·åç»å½é¡µç»ç»å |
| | | var Organization = ''; |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Web/GetOrganizations", |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data; |
| | | for (var i = 0; i < data.length; i++) { |
| | | Organization += '<option style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>'; |
| | | } |
| | | $("#HUSEORGID").append(Organization); |
| | | $("#HUSEORGID").val(sessionStorage["OrganizationID"]) |
| | | form.render('select'); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //ç¼è¾è·å表头 |
| | | function set_EditForm(linterid) { |
| | | //æ¥è¯¢æ£éªæ¹æ¡åæ¯å¦åå¨ |
| | |
| | | , "HInnerBillNo": data.å
é¨åæ®å· |
| | | , "HCycleUnit": data.卿åä½ |
| | | , "HCheckCycle": data.ä¿å
»å¨æ |
| | | , "HBeginDate": data.计åå¼å§æ¥æ |
| | | , "HEndDate": data.计åç»ææ¥æ |
| | | , "HBeginDate": formatDate(data.计åå¼å§æ¥æ) //å¼å§æ¥æ |
| | | , "HEndDate": formatDate(data.计åç»ææ¥æ) //ç»ææ¥æ |
| | | , "HExplanation": data.æè¦ |
| | | , "HRemark": data.夿³¨ |
| | | , "HMouldMaintainRuleID": data.HMouldMaintainRuleID |
| | | , "HMouldMaintainRuleNo": data.å¨å
·ä¿å
»è§ç¨ |
| | | , "HMaintainLevID": data.HMaintainLevID |
| | | , "HMaintainLevName": data.ä¿å
»çº§å«åç§° |
| | | , "HMouldID": data.HMouldID |
| | | , "HMouldName": data.å¨å
·åç§° |
| | | , "HCREATEORGID": data.HCREATEORGID |
| | | , "HUSEORGID": data.HUSEORGID |
| | | , "HDeptID": data.HDeptID |
| | | , "HDeptName": data.é¨é¨åç§° |
| | | , "HErrWarQtys": data.ä¿å
»é¢è¦æ¬¡æ° |
| | | }); |
| | | |
| | | if ($("#HUSEORGID").val() == null || $("#HUSEORGID").val() == "" || $("#HUSEORGID").val() == undefined) { |
| | | $("#HUSEORGID").val(sessionStorage["OrganizationID"]) |
| | | } |
| | | } else { |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | |
| | | table.render(option); |
| | | option1.data = result.list[1]; |
| | | table.render(option1); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(index0); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // ç¼è¾è·å表ä½--ç¹æ£è®¡å |
| | | function set_EditGrid_Plan(linterid) { |
| | | $("#HInterID").val(linterid);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | //ç¼è¾å è½½æ°æ® |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'Sc_MouldMaintainPlanBill/GetPlanList', |
| | | type: "GET", |
| | | data: { "sqlWhere": "and hmainid=" + linterid }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var rowdata = []; |
| | | var data = result.data; |
| | | for (let i = 0; i < data.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HPlanDate": Pub_Format(data[i].è®¡åæ¥æ, "yyyy-MM-dd"), "HPlanBeginTime": Pub_Format(data[i].计åå¼å§æ¶é´ç¹, "yyyy-MM-dd hh:mm:ss"), "HPlanEndTime": Pub_Format(data[i].计åç»ææ¶é´ç¹, "yyyy-MM-dd hh:mm:ss"), "HSafeEndTime": Pub_Format(data[i].å®å
¨ç»ææ¶é´ç¹, "yyyy-MM-dd hh:mm:ss") |
| | | , "HErrBeginTime": Pub_Format(data[i].é¢è¦å¼å§æ¶é´ç¹, "yyyy-MM-dd hh:mm:ss"), "HRelationFlag": data[i].å
³èæ è®°, "DiffDate": data[i].ç¸å·®é´é, "HSendFlag": data[i].ä¿¡æ¯æ è®°, "HErrBeginQty": data[i].é¢è¦å¼å§æ¬¡æ°, "HUseNowQty": data[i].å½åä½¿ç¨æ¬¡æ°, "HUseEndQty": data[i].ç»æä½¿ç¨æ¬¡æ° |
| | | } |
| | | ) |
| | | } |
| | | |
| | | option_plan.data = rowdata; |
| | | table.render(option_plan); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | |
| | | } |
| | | |
| | | // ä¿å
»ä¿¡æ¯ é
ä»¶ä¿¡æ¯ |
| | | function get_DocCheckItem2(data) { |
| | | window.get_DocCheckItem2 = function (data) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_MouldMaintainRuleBill/Sc_MouldMaintainRuleBillListProjectDetaiNew", |
| | | type: "GET", |
| | |
| | | } |
| | | } |
| | | }) |
| | | |
| | | function GetMouldMaintainRuleValue(obj) { |
| | | $("#HMouldMaintainRuleNo").val(obj[0].åæ®å·); |
| | | $("#HMouldMaintainRuleID").val(obj[0].hmainid); |
| | | get_DocCheckItem2(obj[0].hmainid); |
| | | } |
| | | |
| | | </script> |
| | | </body> |
| | | </html> |