器具点检记录表 功能优化(选点检规程带出子表 选点检计划 带出模具 点检规程 带出子表)
停工单增加刷卡验证
工序出站增加遗失字段 和取样字段
工序流转卡增加批次号
| | |
| | | |
| | | $("#HPlanNo").val(checkStatus.data[0].åæ®å·); |
| | | $("#HPlanInterID").val(checkStatus.data[0].hmainid); |
| | | $("#HMouldID").val(checkStatus.data[0].HMouldID); |
| | | $("#HMouldName").val(checkStatus.data[0].äº§åæ¨¡å
·); |
| | | $("#HMouldDotCheckRuleID").val(checkStatus.data[0].HMouldDotCheckRuleID); |
| | | $("#HMouldDotCheckRuleName").val(checkStatus.data[0].HMouldDotCheckRuleNo); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | //$.ajax({ |
| | | // url: GetWEBURL() + 'Sc_MouldDotCheckBill/Sc_MouldDotCheckSubBillListByPlan', |
| | |
| | | console.log(checkStatus); |
| | | $("#HMouldDotCheckRuleName").val(checkStatus.data[0].åæ®å·); |
| | | $("#HMouldDotCheckRuleID").val(checkStatus.data[0].hmainid); |
| | | $("#HMouldID").val(checkStatus.data[0].HMouldID); |
| | | $("#HMouldName").val(checkStatus.data[0].模å
·åç§°); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | get_DocCheckItem2(checkStatus.data[0].hmainid); |
| | | } |
| | |
| | | if (result != null) { |
| | | if (result.count == 1) { |
| | | var BYData = result.list[0];//ç¹æ£ |
| | | var PJData = result.list[1];//é
ä»¶ |
| | | var rowdate1 = layui.table.cache["mainTable"]; |
| | | //var PJData = result.list[1];//é
ä»¶ |
| | | //var rowdate1 = layui.table.cache["mainTable"]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": "0", "HManagerNumber": "", "HManagerName": "", "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" }]; |
| | | table.render(option); |
| | | |
| | |
| | | buttonArr = [];//æ¸
空æ°ç» |
| | | for (var i = 0; i < BYData.length; i++) { |
| | | 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, "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" |
| | | "HDotCheckItemID": BYData[i].ç¹æ£é¡¹ç®ID, "HDotCheckItem": BYData[i].ç¹æ£é¡¹ç®, "HDotCheckPart": BYData[i].ç¹æ£é¨ä½, |
| | | "HClaim": BYData[i].å
·ä½è¦æ±, "HManagerID": BYData[i].è´è´£äººID, "HManagerNumber": BYData[i].è´è´£ä»£ç , |
| | | "HManagerName": BYData[i].è´è´£äººåç§°, "HRemark": BYData[i].表ä½å¤æ³¨, "HDotCheckItemClassID": BYData[i].HDotCheckItemClassID, "HDotCheckItemClassName": BYData[i].ç¹æ£é¡¹ç®åç±»åç§°, "HDotCheckItemMethodID": BYData[i].HDotCheckItemMethodID, "HDotCheckItemMethodName": BYData[i].ç¹æ£æ¹æ³åç§°, "HDotCheckResult": "Y" |
| | | }; |
| | | buttonArr.push(checkrow); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | |
| | | if (result != null) { |
| | | if (result.count == 1) { |
| | | var BYData = result.list[0];//ç¹æ£ |
| | | var PJData = result.list[1];//é
ä»¶ |
| | | var rowdate1 = layui.table.cache["mainTable"]; |
| | | //var PJData = result.list[1];//é
ä»¶ |
| | | //var rowdate1 = layui.table.cache["mainTable"]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": "0", "HManagerNumber": "", "HManagerName": "", "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" }]; |
| | | table.render(option); |
| | | |
| | |
| | | buttonArr = [];//æ¸
空æ°ç» |
| | | for (var i = 0; i < BYData.length; i++) { |
| | | 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, "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" |
| | | "HDotCheckItemID": BYData[i].ç¹æ£é¡¹ç®ID, "HDotCheckItem": BYData[i].ç¹æ£é¡¹ç®, "HDotCheckPart": BYData[i].ç¹æ£é¨ä½, |
| | | "HClaim": BYData[i].å
·ä½è¦æ±, "HManagerID": BYData[i].è´è´£äººID, "HManagerNumber": BYData[i].è´è´£äººä»£ç , |
| | | "HManagerName": BYData[i].è´è´£äººåç§°, "HRemark": BYData[i].å夿³¨, "HDotCheckItemClassID": BYData[i].HDotCheckItemClassID, "HDotCheckItemClassName": BYData[i].ç¹æ£é¡¹ç®åç±»åç§°, "HDotCheckItemMethodID": BYData[i].HDotCheckItemMethodID, "HDotCheckItemMethodName": BYData[i].ç¹æ£æ¹æ³åç§°, "HDotCheckResult": "Y" |
| | | }; |
| | | buttonArr.push(checkrow); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | |
| | | </html> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | base: '../../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | |
| | | <div class="layui-card-header"> |
| | | <div class="layui-btn-group"> |
| | | |
| | | <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">ä¿å</button> |
| | | <button type="button" id="Saver" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">ä¿å</button> |
| | | <button type="button" id="VerIfySaver" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="VerIfySaver">å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">éåº</button> |
| | | </div> |
| | |
| | | </div> |
| | | <script> |
| | | //è·ååæ° |
| | | var OptionData = []; |
| | | var HBillType = ""; //åæ®ç±»å |
| | | var HSourceInterID = ""; //æºå主å
ç |
| | | var HSourceEntryID = ""; //æºååå
ç |
| | |
| | | //ä¿åæäº¤ |
| | | form.on('submit(Saver)', function (data) { |
| | | if (AllowLoadData(data)) { |
| | | //ç¦ç¨ä¿åæé® |
| | | $('#Saver').addClass("layui-btn-disabled").attr("disabled", true); |
| | | //å¤æç³»ç»åæ°æ¯å¦å¾é |
| | | Xt_AllowLoadData(data); |
| | | } |
| | | }); |
| | | |
| | | //å¤æç³»ç»åæ°æ¯å¦éä¸ |
| | | function Xt_AllowLoadData(data2) { |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Sc_MESBeginWorkBill/Xt_AllowLoadData", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: false, |
| | | data: { "HKey": "Sc_MESBeginWorkBill_SwipeCardStart" }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | if (data.Verify == "Y") //å·å¡éªè¯ |
| | | { |
| | | layer.msg("éè¦è¿è¡å·å¡éªè¯!", { time: 1 * 1000, icon: 1 }, function (index) { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ICå·å¡', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['50%', '80%'], |
| | | maxmin: true, |
| | | content: '../../ç产管ç/æ¥å·¥å°å·¥åº/å¼å·¥/Sc_SwipeCardStart.html?HSourceInterID=' + HSourceInterID, |
| | | end: function () { |
| | | if (OptionData.length > 0) { |
| | | if (OptionData[0]["data"] == "1") { |
| | | save(data2); |
| | | } else if (OptionData[0]["data"] == "0") { |
| | | layer.msg("å 为æè½ä¸å¹é
,æ æ³ä¿å!") |
| | | } |
| | | OptionData = []; |
| | | } else { |
| | | $('#Saver').removeClass("layui-btn-disabled").attr("disabled", false); |
| | | } |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | else { |
| | | save(data2); |
| | | } |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }) |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.alert(err, { icon: 5 }) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | function save(data) { |
| | | |
| | | var index = layer.load(); |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sMainSub = sMainStr + ';' + sessionStorage["HUserName"] + ';' + refSav; |
| | |
| | | layer.alert(err, { icon: 5 }) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | }); |
| | | |
| | | } |
| | | |
| | | //å®¡æ ¸æé®æäº¤ |
| | | form.on('submit(VerIfySaver)', function (data) { |
| | |
| | | $("#HGroupName").val(obj[0].çç»åç§°); |
| | | $("#HGroupID").val(obj[0].HItemID); |
| | | } |
| | | function GetSwipeCardStart(obj) { |
| | | OptionData[0] = obj; |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | } |
| | | //å¨å表左边添å å¾éæ¡ |
| | | col.push({ type: 'checkbox', fixed: 'left' }); |
| | | col.push({ type: 'numbers', title: 'åºå·' }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | // if (data[i].name == 'HInterID' || data[i].name == 'HBillType' || data[i].name == 'hmainid') { |
| | | if ($.inArray(data[i].name, titleData) > -1) { |
| | |
| | | <input type="text" class="layui-input" value="0" name="HICMOQty" id="HICMOQty" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">ç产ç»ç»</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPRDOrg" id="HPRDOrg" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HPRDOrgID" id="HPRDOrgID"> |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">订åè·è¸ªå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HOrderProcNO" id="HOrderProcNO" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">订åè·è¸ªå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HOrderProcNO" id="HOrderProcNO" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">ç产ç»ç»</label> |
| | | <label class="layui-form-label">é失æ°é</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPRDOrg" id="HPRDOrg" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HPRDOrgID" id="HPRDOrgID"> |
| | | <input type="text" class="layui-input" value="0" name="HLossQty" id="HLossQty" onfocus="this.select();"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">æ ¸ç®å·¥åº</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPayProcID" id="HPayProcID" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" value="0" name="HPayProcID" id="HPayProcID"> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">æ ¸ç®å·¥åº</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPayProcID" id="HPayProcID" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" value="0" name="HPayProcID" id="HPayProcID"> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label"></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="checkbox" name="checkboxHLastSubProc" id="checkboxHLastSubProc" title="转ä¸é" lay-skin="primary" lay-filter="checkboxHLastSubProc" checked disabled> |
| | | <input type="hidden" value="true" name="HLastSubProc" id="HLastSubProc"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">åæ ·æ°é</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" value="0" name="HToCheckQty" id="HToCheckQty" onfocus="this.select();"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | "HBackWorkQty": data.è¿å·¥æ°é, |
| | | "HShiftsID": data.HShiftsID, |
| | | "HShiftsName": data.çæ¬¡åç§°, |
| | | "HToCheckQty": data.åæ ·æ°é, |
| | | "HLossQty": data.é失æ°é, |
| | | }); |
| | | if (data.æ¯å¦å®¡æ ¸ == "true") { |
| | | $('#set_CheckBill').addClass("layui-btn-disabled").attr("disabled", true);//å®¡æ ¸æé®ç¦ç¨ |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">ç©´å·</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HMouldNum" id="HMouldNum" style="width: 150px;" > |
| | | <input type="text" class="layui-input" name="HMouldNum" id="HMouldNum" style="width: 150px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">ä¸è¯æ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HBadCount" id="HBadCount" value="0" style="width: 150px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-bottom: 15px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">é失æ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HLossQty" id="HLossQty" value="0" style="width: 150px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">åæ ·æ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HToCheckQty" id="HToCheckQty" value="0" style="width: 150px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | layer.msg("è¯·æ«æµè½¬å¡ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HQty").val() == 0) { |
| | | layer.msg("æ°éä¸è½ä¸º0ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | if ($("#HQty").val() == 0 && $("#HBadCount").val() == 0) { |
| | | |
| | | layer.msg("ä¸è¯ååæ ¼æ°éä¸è½åæ¶ä¸º0ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | |
| | |
| | | } |
| | | , end: function () { |
| | | var sProcNo = $('#HProcNo').val(); |
| | | var sBillNo = $('#HBarCode').val(); |
| | | var sBillNo = $('#HProcExchBillNo').val(); |
| | | if (sProcNo != "") { |
| | | txtHProcNo_KeyDown(sBillNo, sProcNo); |
| | | } |
| | |
| | | <input type="hidden" name="HUnitID" id="HUnitID" value="0"> |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æè´¨</label> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æ¹æ¬¡å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMaterTexture" id="HMaterTexture"> |
| | | <input type="text" class="layui-input" name="HBatchNo" id="HBatchNo" value=""> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æè´¨</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMaterTexture" id="HMaterTexture"> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | |
| | | //夿æä½ç±»å |
| | | if (OperationType == 1 ) {//æ æºåæ°å¢ |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | url: GetWEBURL() + "/Web/GetMAXNumPDA", |
| | | type: "GET", |
| | | data: { "HBillType": '3772' }, |
| | | success: function (d) { |
| | |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | } else { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | url: GetWEBURL() + "/Web/GetMAXNumPDA", |
| | | type: "GET", |
| | | data: { "HBillType": '3772' }, |
| | | success: function (d) { |
| | |
| | | , "HMaterModel": data.ææè§æ ¼ |
| | | , "HWidth": data.å¹
宽 |
| | | , "HWeight": data.å
é |
| | | , "HBatchNo": data.æ¹å· |
| | | |
| | | , "HAuxQty": data.è¾
æ°é |
| | | , "HAuxUnit": data.HAuxUnit |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ¹å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HBatchNo" id="HBatchNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HBatchNo" id="HBatchNo" style=""> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |