| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline" style="width: 56%;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">夿³¨</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="hidden" class="layui-input" name="HMaker" id="HMaker" lay-verify="HMaker" value=""> |
| | | <input type="text" class="layui-input" name="HRemark" id="HRemark" lay-verify="HRemark" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | <input type="text" class="layui-input" name="HRemark" id="HRemark" lay-verify="HRemark" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value" style=" width: 500px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-block" style="margin-left: 70px;"> |
| | | <div class="layui-input-block" style="margin-left: 96px;"> |
| | | <input type="checkbox" name="checkboxHStandard" id="checkboxHStandard" lay-skin="primary" lay-filter="checkboxHStandard" checked title="æ¯å¦é»è®¤å·¥èº"> |
| | | <input type="hidden" value="true" name="HStandard" id="HStandard" lay-verify="HStandard"> |
| | | <!--<input type="checkbox" name="checkboxHUseFlag" id="checkboxHUseFlag" title="æ¯å¦å¯ç¨" lay-skin="primary" lay-filter="checkboxHUseFlag"> |
| | | <input type="hidden" value="false" name="HUseFlag" id="HUseFlag">--> |
| | | <input type="hidden" value="false" name="HUseFlag" id="HUseFlag">--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-block" style="margin-left: 185px;"> |
| | | <input type="checkbox" name="checkboxIsProNo" id="checkboxIsProNo" lay-skin="primary" lay-filter="checkboxIsProNo" title="转工åº" checked> |
| | | <input type="hidden" value="1" name="IsProNo" id="IsProNo" lay-verify="IsProNo" > |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¶å人</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="hmakers" id="hmakers" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å®¡æ ¸äºº</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="hchecker" id="hchecker" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¶åæ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="hmakedate" id="hmakedate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å®¡æ ¸æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="hcheckdate" id="hcheckdate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä¿®æ¹äºº</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="hupdater" id="hupdater" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä½åºäºº</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="hdeleteman" id="hdeleteman" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä¿®æ¹æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="hupdatedate" id="hupdatedate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä½åºæ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="hdeletedate" id="hdeletedate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <!--å¤éæ¡ ä¸éæµè½¬å·¥åº--> |
| | | <script type="text/html" id="HNextProcFlag"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="HNextProcFlag" lay-filter="HNextProcFlag" id="HNextProcFlag{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | <input type="checkbox" name="HNextProcFlag" disabled="disabled" lay-filter="HNextProcFlag" id="HNextProcFlag{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | |
| | | <!--å¤éæ¡ æµè½¬å·¥åº--> |
| | | <script type="text/html" id="HFlowProc"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="HFlowProc" lay-filter="HFlowProc" id="HFlowProc{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | <input type="checkbox" name="HFlowProc" disabled="disabled" lay-filter="HFlowProc" id="HFlowProc{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | |
| | |
| | | , { field: 'HProcID_S', title: '工段', edit: 'text' } |
| | | , { field: 'HProcType', title: 'å·¥åºç±»å', templet: '#HProcType' }//éæ© |
| | | , { field: 'HCenterID_SName', title: '产线ä¸å¿', edit: 'text', event: "CheckHCenterID_S" }//f7 |
| | | //, { field: 'HCenterID_S', title: '产线ä¸å¿id', hide: true }//hide: true |
| | | , { field: 'HCenterID_S', title: '产线ä¸å¿id', hide: true }//hide: true |
| | | , { field: 'HWorkQty_S', title: '产线产è½', edit: 'text' } |
| | | , { field: 'HSubStdEmpQty_S', title: '产线人æ°', edit: 'text' } |
| | | , { field: 'HMouldNo', title: '模å
·ç¼å·', edit: 'text' } |
| | |
| | | , { field: 'HMyWorkDays', title: 'çäº§å¨æ', edit: 'text' } |
| | | , { field: 'HMyFixWorkDays', title: 'åºå®ç产天æ°', edit: 'text' } |
| | | , { field: 'å·¥åº', title: 'å·¥åº', edit: 'text', event: "CheckHProcID" }//f7 |
| | | //, { field: 'HProcID', title: 'å·¥åºID', hide: true }//, hide: true |
| | | , { field: 'HProcID', title: 'å·¥åºID', hide: true }//, hide: true |
| | | , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ' }//ä¸å¡« |
| | | //, { field: 'HCenterID', title: 'å·¥ä½ä¸å¿id', hide: true }//, hide: true |
| | | , { field: 'HCenterID', title: 'å·¥ä½ä¸å¿id', hide: true }//, hide: true |
| | | , { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿', edit: 'text', event: "CheckHCenterID" }//f7 |
| | | //, { field: 'HSupID', title: 'ä¾åºåID', hide: true } |
| | | , { field: 'HSupID', title: 'ä¾åºåID', hide: true } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ' } |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå', edit: 'text', width: 110, event: "CheckHSupID" }//f7 |
| | | , { field: 'HSupFlag', title: 'å¤åæ è®°', templet: "#HSupFlag" }//checkbox |
| | |
| | | //åå§å è½½è¡¨æ ¼ |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | //åå§åè¡¨æ ¼ |
| | | DisPlay_HideColumn(); |
| | | |
| | | //å¶å人 |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | |
| | | } |
| | | else if (OperationType == 2) { |
| | | //ç¦ç¨ç»ç»é项 |
| | | $("#HOrgID").attr("disabled", true); |
| | | //$("#HOrgID").attr("disabled", true); |
| | | RoadBillMain(linterid); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | |
| | | //RoadBillSub(linterid); |
| | | } |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | DisPlay_HideColumn(); |
| | | |
| | | |
| | | //#endregion |
| | | |
| | |
| | | //æ¯å¦é»è®¤å·¥èº |
| | | form.on('checkbox(checkboxHStandard)', function (data) { |
| | | $("#HStandard").val(data.elem.checked); |
| | | }); |
| | | |
| | | //æ¯å¦è½¬å·¥åº |
| | | form.on('checkbox(checkboxIsProNo)', function (data) { |
| | | |
| | | if (data.elem.checked) { |
| | | $("#IsProNo").val("1"); |
| | | } |
| | | else { |
| | | $("#IsProNo").val("0"); |
| | | } |
| | | console.log($("#IsProNo").val()) |
| | | }); |
| | | |
| | | //#region å¤éæ¡ |
| | |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | |
| | | }); |
| | | |
| | | //è¡å
é¼ æ 离å¼äºä»¶ |
| | | table.on('edit(mainTable)', function (obj) { |
| | | if (obj.field == "HProcNo") { |
| | | var num = 0; |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | if (obj.value == option.data[i]["HProcNo"]) { |
| | | num += 1; |
| | | } |
| | | if (num > 1) { |
| | | layer.msg("æµæ°´å·:" + obj.value + "éå¤!"); |
| | | return false; |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | |
| | | $('#HName').on('keydown', function (event) {//å·¥èºè·¯çº¿åç§° |
| | | if (event.keyCode == 118) { |
| | |
| | | $("#HMaterName").val(checkStatus.data[0].HName);//ç©æåç§° |
| | | $("#HMaterNumber").val(checkStatus.data[0].HNumber);//ç©æä»£ç |
| | | $("#HMaterModel").val(checkStatus.data[0].HModel);//è§æ ¼åå· |
| | | $("#HUnitID").val(checkStatus.data[0].HUnitID);//计éåä½id |
| | | $("#HUnitName").val(checkStatus.data[0].HUnitName);//计éåä½åç§° |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../Baseset/åºç¡èµæ/Gy_SupplierList.html", "yes"] |
| | | , content: ["../../åºç¡èµæ/éè´åºç¡èµæ/Gy_Supplier.html", "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | |
| | | } |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "ä¾åºå": checkStatus.data[0].HName |
| | | "ä¾åºå": checkStatus.data[0].ä¾åºååç§° |
| | | , "HSupID": checkStatus.data[0].HItemID |
| | | , "ä¾åºå代ç ": checkStatus.data[0].HNumber |
| | | , "ä¾åºå代ç ": checkStatus.data[0].ä¾åºå代ç |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | |
| | | var IsHStopflag = d.data[0].é»è®¤å·¥èº; |
| | | if (IsHStopflag == 1) { |
| | | $("input[name='checkboxHStandard']").prop("checked", true); |
| | | } |
| | | else { |
| | | $("input[name='checkboxHStandard']").prop("checked", false); |
| | | } |
| | | //主表 |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | |
| | | , "HProductNum": d.data[0].æåç¼å· |
| | | , "HVerNum": d.data[0].çæ¬ |
| | | , "HOrgID": d.data[0].HOrgID |
| | | //å
¶ä»ä¿¡æ¯ |
| | | , "hmakers": d.data[0].å¶å人 |
| | | , "hmakedate": d.data[0].å¶åæ¥æ==null?"":Format(new Date(d.data[0].å¶åæ¥æ), "yyyy-MM-dd") |
| | | , "hchecker": d.data[0].å®¡æ ¸äºº |
| | | , "hcheckdate": d.data[0].å®¡æ ¸æ¥æ == null ? "" : Format(new Date(d.data[0].å®¡æ ¸æ¥æ), "yyyy-MM-dd") |
| | | , "hupdater": d.data[0].ä¿®æ¹äºº |
| | | , "hupdatedate": d.data[0].ä¿®æ¹æ¥æ == null ? "" : Format(new Date(d.data[0].ä¿®æ¹æ¥æ), "yyyy-MM-dd") |
| | | , "hdeleteman": d.data[0].ä½åºäºº |
| | | , "hdeletedate": d.data[0].ä½åºæ¥æ == null ? "" :Format(new Date(d.data[0].ä½åºæ¥æ), "yyyy-MM-dd") |
| | | }); |
| | | |
| | | //å表 èµå¼ |
| | |
| | | // layer.msg("ç产çç»æ²¡æéæ©"); |
| | | // return false; |
| | | //} |
| | | var num = []; |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | if ($.inArray(option.data[i]["HProcNo"], num) == -1) { |
| | | num.push(option.data[i]["HProcNo"]); |
| | | } else { |
| | | layer.msg("æµæ°´å·:" + option.data[i]["HProcNo"] + "éå¤!"); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | return true; |
| | | //if ($("#HBillNo").val() == '') { |
| | | // layer.msg("é误çåæ®å·", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | //if ($("#HInterID").val() == '') { |
| | | // layer.msg("é误çå
ç ", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | //if (typeof (sSubStr) == "undefined") { |
| | | // layer.msg("没æç©ææç»è®°å½", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | |
| | | } |
| | | |
| | | //éèå设置 |
| | |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | type: "GET", |
| | | data: { "HModName": HModName, "user": sessionStorage["HUserName"] }, |
| | | async: false, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |