| | |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <style> |
| | | .main-btn { /*头é¨ä¸»æé®*/ |
| | | padding: 0 2px; /*è°æ´æé®å·¦å³ç©ºé大å°*/ |
| | |
| | | <form class="layui-form" action="" lay-filter="formData" style="background-color:white;"> |
| | | <div style="padding: 10px;"> |
| | | <!--<button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-print layuiadmin-button-btn"><span class="btn-title">é¢è§</span></i> |
| | | </button>--> |
| | | <i class="layui-icon layui-icon-print layuiadmin-button-btn"><span class="btn-title">é¢è§</span></i> |
| | | </button>--> |
| | | <!--<button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-edit layuiadmin-button-btn"><span class="btn-title">ä¿®æ¹</span></i> |
| | | </button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn-AddNew" id="btn-AddNew">æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btnSave" id="btnSave">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn-Exit" id="btn-Exit">éåº</button> |
| | | <i class="layui-icon layui-icon-edit layuiadmin-button-btn"><span class="btn-title">ä¿®æ¹</span></i> |
| | | </button>--> |
| | | <button type="button" class="layui-btn layui-btn-normal" style="margin-left: 0px" lay-submit="" lay-filter="btn-AddNew" id="btn-AddNew">æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" style="margin-left: 0px" lay-submit="" lay-filter="btnSave" id="btnSave">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" style="margin-left: 0px" lay-submit="" lay-filter="btn-Exit" id="btn-Exit">éåº</button> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="date" class="layui-input" name="HDate" id="HDate" style="padding-left: 32px;"> |
| | | <input type="date" class="layui-input" name="HDate" id="HDate" style="padding-left: 32px; width: 110%;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">çäº§èµæº</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <label class="layui-form-label" style="width: 100px;padding: 9px 18px;">çäº§èµæº</label> |
| | | <div class="layui-input-block" style="margin-left: 92px;"> |
| | | <input type="text" class="layui-input" name="HSourceName" id="HSourceName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchSource" id="btnSearchSource" style="padding: 0 10px;float: left;margin-right: 3px;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchSource" id="btnSearchSource" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" value="0"> |
| | |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ä»»å¡åå·</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HICMOBillNo" id="HICMOBillNo" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchICMOBill" id="btnSearchICMOBill" style="padding: 0 10px;float: left;margin-right: 3px;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchICMOBill" id="btnSearchICMOBill" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | |
| | | <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="HICMOInterID" id="HICMOInterID" value="0" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HICMOEntryID" id="HICMOEntryID" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">产åå
ç </label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMaterID" id="HMaterID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchMater" id="btnSearchMater" style="padding: 0 10px;float: left;margin-right: 3px;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchMater" id="btnSearchMater" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æµè½¬å¡å·</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HProcExchBillNo" id="HProcExchBillNo" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchProcExch" id="btnSearchProcExch" style="padding: 0 10px;float: left;margin-right: 3px;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchProcExch" id="btnSearchProcExch" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æ£éªå</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HFirstCheckEmpName" id="HFirstCheckEmpName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHFirstCheckEmp" id="btnSearchHFirstCheckEmp" style="padding: 0 10px;float: left;margin-right: 3px;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHFirstCheckEmp" id="btnSearchHFirstCheckEmp" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <input type="hidden" name="HFirstCheckEmp" id="HFirstCheckEmp" value="0"> |
| | |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æ£éªæ¹æ¡</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HQCCheckProjectName" id="HQCCheckProjectName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchCheckProject" id="btnSearchCheckProject" style="padding: 0 10px;float: left;margin-right: 3px;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchCheckProject" id="btnSearchCheckProject" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <input type="hidden" name="HQCCheckProjectID" id="HQCCheckProjectID" value="0"> |
| | |
| | | <option value="ä¸åæ ¼">ä¸åæ ¼</option> |
| | | </select> |
| | | </script> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script> |
| | | |
| | | layui.config({ |
| | |
| | | // }, function () { window.location.href = "../../user/login.html"; }); |
| | | //} |
| | | |
| | | /*åºå®ä»£ç ï¼æ¯å¼ åæ®é½è¦begin*/ |
| | | /* 1.æ æºåæ°å¢ |
| | | * 2.ææºåæ°å¢ |
| | | * 3.ç¼è¾ |
| | | * 4.æµè§ |
| | | * 5.åæ´ |
| | | */ |
| | | //è·ååæ° |
| | | function getUrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | | for (var i = 0; i < hashes.length; i++) { |
| | | hash = hashes[i].split('='); |
| | | vars.push(hash[0]); |
| | | vars[hash[0]] = hash[1]; |
| | | } |
| | | return vars; |
| | | } |
| | | var params = getUrlVars(); |
| | | var params = get_UrlVars(); |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | | var OperationType = 1;//æä½ç±»å |
| | | } else { |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | var HICMOEntryID = params[params[3]];//æºååid |
| | | } |
| | | /*åºå®ä»£ç ï¼æ¯å¼ åæ®é½è¦begin*/ |
| | | |
| | | //////æµè¯ç¨æ°æ® |
| | | //var OperationType = 2; |
| | | //var linterid = 11880; |
| | | //var HSouceBillType = 3722; |
| | | //var HICMOEntryID = 100027; |
| | | //夿æ¯å¦æ°å¢ |
| | | if (OperationType == 1) { |
| | | $("#HInterID").val(""); |
| | |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | } |
| | | }); |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation(); |
| | | //æ¥å·¥å¹³å°é¦æ£ |
| | | if (HSouceBillType == 3722) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation2(); |
| | | } |
| | | //å·¥åºè¿ç«æ¥æ¶ååè¡¨é¦æ£ |
| | | else if (HSouceBillType == 3790) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation(); |
| | | } |
| | | //å·¥åºå§å¤æ¥æ¶ååè¡¨é¦æ£ |
| | | else if (HSouceBillType == 3793) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation3(); |
| | | } |
| | | else { |
| | | layer.alert("æºåç±»åæ æï¼", { icon: 5 }); |
| | | } |
| | | } |
| | | else if (OperationType == 3) { |
| | | RoadBillMain(linterid); |
| | |
| | | $("#HMainSourceBillNo").val(data.åæ®å·); |
| | | $("#HMainSourceBillType").val(data.HBillType); |
| | | $("#HMainSourceInterID").val(data.HInterID); |
| | | $("#HICMOEntryID").val(data.HICMOEntryID); |
| | | } else { |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | } |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | function LoadingInformation2() { |
| | | var wait = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/QC_FirstPieceCheckBill/get_ICMOBillStatus_Tmp", |
| | | type: "GET", |
| | | data: { "HInterID": linterid, "HEntryID": HICMOEntryID, "HBillType": HSouceBillType }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | | if (result.count == 1) { |
| | | $("#HProcExchBillNo").val(data.HProcExchBillNo); |
| | | $("#HProcExchInterID").val(data.HProcExchInterID); |
| | | $("#HProcExchEntryID").val(data.HProcExchEntryID); |
| | | $("#HProcExchQty").val(data.HProcExchQty); |
| | | $("#HICMOBillNo").val(data.HICMOBillNo); |
| | | $("#HICMOInterID").val(data.HICMOInterID); |
| | | $("#HICMOQty").val(data.HICMOQty); |
| | | $("#HSourceName").val(data.HSourceName); |
| | | $("#HSourceID").val(data.HSourceID); |
| | | $("#HMaterID").val(data.HMaterID); |
| | | $("#HMainSourceBillNo").val(""); |
| | | $("#HMainSourceBillType").val(data.HBillType); |
| | | $("#HMainSourceInterID").val(data.HInterID); |
| | | $("#HICMOEntryID").val(data.HICMOEntryID); |
| | | } else { |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | } |
| | | layer.close(wait); |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | function LoadingInformation3() { |
| | | var wait = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cj_StationEntrustOutBill/list', |
| | | type: "GET", |
| | | data: { "sWhere": "and HInterID = " + linterid }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | | if (result.count == 1) { |
| | | $("#HProcExchBillNo").val(data.æµè½¬å¡å·); |
| | | $("#HProcExchInterID").val(data.HProcExchInterID); |
| | | $("#HProcExchEntryID").val(data.HProcExchEntryID); |
| | | $("#HProcExchQty").val(data.æµè½¬å¡æ°é); |
| | | $("#HICMOBillNo").val(data.ç产订åå·); |
| | | $("#HICMOInterID").val(data.HICMOInterID); |
| | | $("#HICMOQty").val(data.HICMOQty); |
| | | $("#HSourceName").val(data.çäº§èµæº); |
| | | $("#HSourceID").val(data.HSourceID); |
| | | $("#HMaterID").val(data.HMaterID); |
| | | $("#HMainSourceBillNo").val(data.åæ®å·); |
| | | $("#HMainSourceBillType").val(data.HBillType); |
| | | $("#HMainSourceInterID").val(data.HInterID); |
| | | $("#HICMOEntryID").val(data.HICMOEntryID); |
| | | } else { |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | } |
| | | layer.close(wait); |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | |
| | | form.on('submit(btn-AddNew)', function (data) { |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | |
| | | |
| | | //éåº |
| | | function get_Exit() { |
| | |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('ck-table');//è·åtableçelem:"#test" |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | |
| | | } |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + OperationType; |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + OperationType + ";" + sessionStorage["HUserName"] ; |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('ck-table');//è·åtableçelem:"#test" |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetCheckItemByCheckProjectID", |
| | | type: "GET", |
| | | data: { "CheckProjectID": $("#HQCCheckProjectID").val()}, |
| | | data: { "CheckProjectID": $("#HQCCheckProjectID").val() }, |
| | | success: function (result) { |
| | | option.data = result.data; |
| | | table.render(option); |
| | |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('ck-table');//è·åtableçelem:"#test" |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('ck-table');//è·åtableçelem:"#test" |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HICMOInterID").val(checkStatus.data[0].hmainid); |
| | | $("#HICMOEntryID").val(checkStatus.data[0].hsubid); |
| | | $("#HICMOBillNo").val(checkStatus.data[0].åæ®å·); |
| | | $("#HICMOQty").val(checkStatus.data[0].计åç产æ°é); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('ck-table');//è·åtableçelem:"#test" |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //åå§è¡¨æ ¼æ°æ® |
| | | rowdata = [{ |
| | | "HQCCheckItemID": "", "æ£éªé¡¹ç®": "", "HQCStd": "", "HUnit": "", "HQCNote": "", "HResult": "", |