| | |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <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 src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../../layuiadmin/PageTitle.js"></script> |
| | | <style type="text/css"> |
| | | .layui-form-label { |
| | | width: 85px; |
| | |
| | | <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="add-btn1" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Audit">å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">éåº</button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief"> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <h1 style="text-align:center;"><b>æ£éªæ¹æ¡å</b></h1> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li lay-id="1" style="padding:1px;" class="layui-this">åºæ¬ä¿¡æ¯</li> |
| | | <li lay-id="2" style="padding:1px;">å¶åä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item"> |
| | |
| | | <label class="layui-form-label">æ¹æ¡åç§°<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HName" id="HName" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">çäº§èµæº</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HSourceName" id="HSourceName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HSourceList" id="HSourceList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <input type="checkbox" name="HStandard" id="HStandard" lay-skin="primary" title="" checked=""> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px; ">ç»ç»<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 501px;"> |
| | | <select name="HOrgID" id="HOrgID" lay-verify="HOrgID"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--å
¶ä»ä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <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="HMaker" id="HMaker" 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="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="HChecker" id="HChecker" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HMakerDate" id="HMakerDate" 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="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="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HCloseMan" id="HCloseMan" 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="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HCloseDate" id="HCloseDate" 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="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab-content"> |
| | |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | </div> |
| | | </script> |
| | | <script type="text/html" id="xuhao"> |
| | |
| | | <option value="2">é缺é·</option> |
| | | <option value="3">轻缺é·</option> |
| | | </select> |
| | | </script> |
| | | </script> |
| | | <!--è¡ä¸æéæ©(ç¶æ)--> |
| | | <script type="text/html" id="HStatus"> |
| | | <select name="HStatus" lay-filter="HStatus" id="HStatus{{d.LAY_TABLE_INDEX+1}}"> |
| | | <option value="0">ä¸åæ ¼</option> |
| | | <option value="1" selected>åæ ¼</option> |
| | | </select> |
| | | </script> |
| | | <!--è¡ä¸æéæ©(ç¶æ)--> |
| | | <script type="text/html" id="HCompareSymbol"> |
| | | <select name="HCompareSymbol" lay-filter="HCompareSymbol" id="HCompareSymbol{{d.LAY_TABLE_INDEX+1}}"> |
| | | <option value="1" selected="selected">=</option> |
| | | <option value="2">></option> |
| | | <option value="3=">>=</option> |
| | | <option value="4"><</option> |
| | | <option value="5"><=</option> |
| | | <option value="6"><></option> |
| | | <option value="7">between</option> |
| | | </select> |
| | | </script> |
| | | <!--å¤éæ¡ï¼éç¹æ£æ¥ï¼--> |
| | |
| | | <input type="checkbox" value="{{d.HDestructInspect}}" lay-skin="primary" id="HDestructInspect{{d.LAY_TABLE_INDEX+1}}" lay-filter="HDestructInspect" {{ d.HDestructInspect == 1 ? 'checked' : '' }}> |
| | | </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 src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script> |
| | | //è·å页é¢è·³è½¬åæ° |
| | | var params = get_UrlVars(); |
| | |
| | | , element = layui.element; |
| | | var option; |
| | | var sBillType = "3320"; |
| | | //è®°å½ç»ç»çå¼ |
| | | var HOrgIDBar = 0; |
| | | var HModName = "QC_Add_CheckProject"; |
| | | window.OptionData = []; |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | |
| | | if (OperationType == 1) {//æ æºå |
| | | set_AddFNew(); |
| | | } |
| | | else if (OperationType == 2) {//å¤å¶ |
| | | set_EditFromGrid(); |
| | | //è·åæå¤§åæ®å· |
| | | get_MAXNum(); |
| | | //ç¦ç¨ç»ç»é项 |
| | | $('#HOrgID').attr("disabled", true); |
| | | |
| | | } |
| | | else if (OperationType == 3) {//ç¼è¾ |
| | | |
| | | set_EditFromGrid(); |
| | | } |
| | | else { |
| | | layer.alert("æªç¥æä½ç±»åï¼", { icon: 5 }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region åå§åç»ç» |
| | | Organ(); |
| | | //#endregion |
| | | |
| | | |
| | | //#region åå§åè¡¨æ ¼ |
| | | DisPlay_HideColumn(); |
| | | //#endregion |
| | | |
| | | |
| | | //#region è·åç»ç» |
| | | 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>'; |
| | | } |
| | | $("#HOrgID").append(Organization); |
| | | if (OperationType == 1) { |
| | | HOrgIDBar = sessionStorage["OrganizationID"]; |
| | | } |
| | | $("#HOrgID").val(HOrgIDBar); |
| | | form.render('select'); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | var NewRow = { |
| | | "HPrjNo": 0, "HQCCheckItemID": 0, "HQCCheckItemNumber": "", "HQCCheckItemName": "", "HQCStd": "", "HQCStdMax": "", "HQCUnit": "" |
| | | , "HRemark": "", "HQCTool": "", "HAnalysisMethod": 1, "HDefectLevel": 3, "HDestructInspect": 0, "HKeyInspect": 0, "HQualityStdID": 0 |
| | | , "HInspectMethodID": 0, "HInspectInstruMentID": 0, "HInspectBasisID": 0, "HSampleSchemeID": 0, "HStatus": 1, "HCompareSymbol": "" |
| | | , "HInspectMethodID": 0, "HInspectInstruMentID": 0, "HInspectBasisID": 0, "HSampleSchemeID": 0, "HStatus": 1, "HCompareSymbol": "=" |
| | | , "HTargetVal": "", "HUpLimit": "", "HDownLimit": "", "HUpOffSet": "", "HDownOffSet": "", "HTargetValKey": "", "HUpLimitKey": "" |
| | | , "HDownLimitKey": "", "HUpOffSetKey": "", "HDownOffSetKey": "", "HTargetValQ": 0, "HUpLimitQ": 0, "HDownLimitQ": 0, "HUpOffSetQ": 0 |
| | | , "HDownOffSetQ": 0, "HTargetValB": 0, "HUpLimitB": 0, "HDownLimitB": 0, "HUpOffSetB": 0, "HDownOffSetB": 0 |
| | | , "HTargetValTxt": "", "HUpLimitTxt": "", "HDownLimitTxt": "", "HUpOffSetTxt": "", "HDownOffSetTxt": "" |
| | | , "HQualityStdName": "", "HInspectMethodName": "", "HInspectInstruMentName": "", "HInspectBasisName": "", "HSampleSchemeName": "" |
| | | , "HControlUpperLimit": 0, "HControlLowerLimit": 0, "HSampleCount": 0, "HSampleDayCount": 0 |
| | | }; |
| | | switch (obj.event) { |
| | | //æ°å¢ä¸è¡ |
| | |
| | | break; |
| | | //å¤å¶ä¸è¡ |
| | | case 'btn-CopyLine': btnCopyLine(data); |
| | | break; |
| | | //å设置 |
| | | case 'set_HideColumn':get_HideColumn(); |
| | | break; |
| | | } |
| | | }); |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | //, maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Process.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Process.html?openType=2', 'yes'] |
| | | , resize: false |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | |
| | | }) |
| | | }); |
| | | |
| | | //çäº§èµæº |
| | | form.on('submit(HSourceList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'èµæºå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Source.html?Htype=&openType=2', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HSourceName").val(checkStatus.data[0].çäº§èµæºåç§°); |
| | | $("#HSourceID").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(HMaterTypeList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_MaterType.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_MaterType.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_DepartmentList.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_DepartmentList.html?openType=2&HOrgName=' + sessionStorage["Organization"], 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Unit.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Unit.html?Type=HUnitList', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | } |
| | | }); |
| | | }); |
| | | //è¡éæ©å¤çï¼ç¶æï¼ |
| | | form.on('select(HCompareSymbol)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HCompareSymbol = data.value;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | //æ¯å¦éç¹æ£æ¥ |
| | | form.on('checkbox(HKeyInspect)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_CheckItem.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_CheckItem.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | HQCCheckItemName: checkStatus.data[0].åç§°, |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } else { |
| | | } |
| | | else { |
| | | //(å¤éè¡) |
| | | //å°åæè¡¨ä½æ°æ®åå
¥æ°ç» |
| | | var tableBak = table.cache["mainTable"]; //è·åä¹åç¼è¾è¿çè¡¨æ ¼æ°æ® |
| | |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | if (OptionData[0].ç¦ç¨æ è®° !='Y' || OptionData[0].å®¡æ ¸äºº != "") { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HQCCheckItemID": OptionData[0].HItemID |
| | | , "HQCCheckItemNumber": OptionData[0].代ç |
| | | , "HQCCheckItemName": OptionData[0].åç§° |
| | | }) |
| | | } else { |
| | | layer.msg("该æ£éªé¡¹ç®å·²ç¦ç¨æªå®¡æ ¸ï¼è¯·éæ°éæ©!"); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_QualityStd.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_QualityStd.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | if (OptionData[0].ç¦ç¨æ è®° != 'æ¯' || OptionData[0].å®¡æ ¸äºº != "") { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HQualityStdID": OptionData[0].HItemID |
| | | , "HQualityStdName": OptionData[0].è´¨éæ ååç§° |
| | | }) |
| | | } else { |
| | | layer.msg("è¯¥è´¨éæ åå·²ç¦ç¨æªå®¡æ ¸ï¼è¯·éæ°éæ©!"); |
| | | } |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectMethod.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectMethod.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | if (OptionData[0].ç¦ç¨æ è®° != 'æ¯' || OptionData[0].å®¡æ ¸äºº != "") { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HInspectMethodID": OptionData[0].HItemID |
| | | , "HInspectMethodName": OptionData[0].æ£éªæ¹æ³åç§° |
| | | }) |
| | | } else { |
| | | layer.msg("该æ£éªæ¹æ³å·²ç¦ç¨æªå®¡æ ¸ï¼è¯·éæ°éæ©!"); |
| | | } |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectInstruMent.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectInstruMent.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | if (OptionData[0].ç¦ç¨æ è®° != 'æ¯' || OptionData[0].å®¡æ ¸äºº != "") { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HInspectInstruMentID": OptionData[0].HItemID |
| | | , "HInspectInstruMentName": OptionData[0].æ£éªä»ªå¨åç§° |
| | | , "HQCTool": OptionData[0].æ£éªä»ªå¨åç§° |
| | | }) |
| | | } else { |
| | | layer.msg("该æ£éªä»ªå¨å·²ç¦ç¨æªå®¡æ ¸ï¼è¯·éæ°éæ©!"); |
| | | } |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectBasis.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectBasis.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | if (OptionData[0].ç¦ç¨æ è®° != 'æ¯' || OptionData[0].å®¡æ ¸äºº != "") { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HInspectBasisID": OptionData[0].HItemID |
| | | , "HInspectBasisName": OptionData[0].æ£éªä¾æ®åç§° |
| | | }) |
| | | } else { |
| | | layer.msg("该æ£éªä»ªå¨å·²ç¦ç¨æªå®¡æ ¸ï¼è¯·éæ°éæ©!"); |
| | | } |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe" } |
| | | , { field: 'HPrjNo', title: '次åºå·', edit: 'text', hide: true } |
| | | , { field: 'HQCCheckItemID', title: 'æ£éªé¡¹ç®ID', edit: 'text', hide: true } |
| | | , { field: 'HQCCheckItemNumber', title: 'æ£éªé¡¹ç®ä»£ç *', edit: 'text', event: 'HQCCheckItemNumber' } |
| | | , { field: 'HQCCheckItemName', title: 'æ£éªé¡¹ç®åç§°', edit: 'text' } |
| | | , { field: 'HQCStd', title: 'æ£éªæ å', edit: 'text' } |
| | | , { field: 'HQCStdMax', title: 'æå¤§æ£éªæ å', edit: 'text' } |
| | | , { field: 'HQCUnit', title: 'æ£éªåä½', edit: 'text' } |
| | | , { field: 'HQCCheckItemNumber', title: 'æ£éªé¡¹ç®ä»£ç ', edit: 'text', event: 'HQCCheckItemNumber' } |
| | | , { field: 'HQCCheckItemName', title: 'æ£éªé¡¹ç®åç§°', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HQCStd', title: 'æ£éªæ å', edit: 'text', hide: true } |
| | | , { field: 'HQCStdMax', title: 'æå¤§æ£éªæ å', edit: 'text', hide: true} |
| | | , { field: 'HQCUnit', title: 'æ£éªåä½', edit: 'text', hide: true } |
| | | |
| | | , { field: 'HQCTool', title: 'æ£éªå·¥å
·ï¼ä»ªå¨ï¼', edit: 'text' } |
| | | , { field: 'HQCTool', title: 'æ£éªå·¥å
·ï¼ä»ªå¨ï¼', edit: 'text', hide: true} |
| | | , { field: 'HAnalysisMethod', title: 'åææ¹æ³', templet: '#HAnalysisMethod' } |
| | | , { field: 'HDefectLevel', title: '缺é·ç级', templet: '#HDefectLevel' } |
| | | , { field: 'HDestructInspect', title: 'ç ´åæ§æ£éª', templet: '#HDestructInspect', unresize: false } |
| | |
| | | , { field: 'HSampleSchemeID', title: 'æ½æ ·æ¹æ¡ID', edit: 'text', hide: true } |
| | | , { field: 'HSampleSchemeName', title: 'æ½æ ·æ¹æ¡', edit: 'text', event: 'HSampleSchemeName' } |
| | | , { field: 'HStatus', title: 'ç¶æ', templet: '#HStatus' } |
| | | , { field: 'HCompareSymbol', title: 'æ¯è¾ç¬¦', edit: 'text' } |
| | | , { field: 'HCompareSymbol', title: 'æ¯è¾ç¬¦', templet: '#HCompareSymbol'} |
| | | , { field: 'HTargetVal', title: 'ç®æ å¼', edit: 'text' } |
| | | , { field: 'HUpLimit', title: 'ä¸éå¼', edit: 'text' } |
| | | , { field: 'HDownLimit', title: 'ä¸éå¼', edit: 'text' } |
| | |
| | | , { field: 'HDownLimitTxt', title: 'ä¸é弿æ¬', edit: 'text' } |
| | | , { field: 'HUpOffSetTxt', title: 'ä¸åå·®ææ¬', edit: 'text' } |
| | | , { field: 'HDownOffSetTxt', title: 'ä¸åå·®ææ¬', edit: 'text' } |
| | | , { field: 'HControlUpperLimit', title: 'æ§å¶ä¸é', edit: 'text' } |
| | | , { field: 'HControlLowerLimit', title: 'æ§å¶ä¸é', edit: 'text' } |
| | | , { field: 'HSampleCount', title: 'æ ·æ¬æ°', edit: 'text' } |
| | | , { field: 'HSampleDayCount', title: 'æ ·æ¬å¤©æ°', edit: 'text' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]; |
| | |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | var index = parent.layer.getFrameIndex(window.name); //å
å¾å°å½åiframeå±çç´¢å¼ |
| | | parent.layer.close(index); //åæ§è¡å
³é           |
| | | }); |
| | |
| | | }); |
| | | } |
| | | |
| | | //å®¡æ ¸ |
| | | form.on('submit(Audit)', function ( ) {//å®¡æ ¸ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_QCCheckProject/AuditGy_QCCheckProject", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": $("#HInterID").val(), "Type": 1, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | $('#add-btn1').addClass("layui-btn-disabled").attr("disabled", true); |
| | | }); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //æ æºåæ°å¢ |
| | | function set_AddFNew() { |
| | | //ç¦ç¨ç»ç»é项 |
| | | $('#HOrgID').attr("disabled", true); |
| | | //è·åæå¤§åæ®å· |
| | | get_MAXNum(); |
| | | option.data = [{ |
| | | "HPrjNo": 0, "HQCCheckItemID": 0, "HQCCheckItemNumber": "", "HQCCheckItemName": "", "HQCStd": "", "HQCStdMax": "", "HQCUnit": "" |
| | | , "HRemark": "", "HQCTool": "", "HAnalysisMethod": 1, "HDefectLevel": 3, "HDestructInspect": 0, "HKeyInspect": 0, "HQualityStdID": 0 |
| | | , "HInspectMethodID": 0, "HInspectInstruMentID": 0, "HInspectBasisID": 0, "HSampleSchemeID": 0, "HStatus": 1, "HCompareSymbol": "" |
| | | , "HInspectMethodID": 0, "HInspectInstruMentID": 0, "HInspectBasisID": 0, "HSampleSchemeID": 0, "HStatus": 1, "HCompareSymbol": "1" |
| | | , "HTargetVal": "", "HUpLimit": "", "HDownLimit": "", "HUpOffSet": "", "HDownOffSet": "", "HTargetValKey": "", "HUpLimitKey": "" |
| | | , "HDownLimitKey": "", "HUpOffSetKey": "", "HDownOffSetKey": "", "HTargetValQ": 0, "HUpLimitQ": 0, "HDownLimitQ": 0, "HUpOffSetQ": 0 |
| | | , "HDownOffSetQ": 0, "HTargetValB": 0, "HUpLimitB": 0, "HDownLimitB": 0, "HUpOffSetB": 0, "HDownOffSetB": 0 |
| | | , "HTargetValTxt": "", "HUpLimitTxt": "", "HDownLimitTxt": "", "HUpOffSetTxt": "", "HDownOffSetTxt": "" |
| | | , "HQualityStdName": "", "HInspectMethodName": "", "HInspectInstruMentName": "", "HInspectBasisName": "", "HSampleSchemeName": "" |
| | | , "HControlUpperLimit": 0, "HControlLowerLimit": 0, "HSampleCount": 0, "HSampleDayCount": 0 |
| | | }]; |
| | | table.render(option); |
| | | //åå§åå¶å人åå¶åæ¶é´ |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HMakerDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | } |
| | | |
| | | //ç¼è¾ |
| | |
| | | option.data = [{ |
| | | "HPrjNo": 0, "HQCCheckItemID": 0, "HQCCheckItemNumber": "", "HQCCheckItemName": "", "HQCStd": "", "HQCStdMax": "", "HQCUnit": "" |
| | | , "HRemark": "", "HQCTool": "", "HAnalysisMethod": 1, "HDefectLevel": 3, "HDestructInspect": 0, "HKeyInspect": 0, "HQualityStdID": 0 |
| | | , "HInspectMethodID": 0, "HInspectInstruMentID": 0, "HInspectBasisID": 0, "HSampleSchemeID": 0, "HStatus": 1, "HCompareSymbol": "" |
| | | , "HInspectMethodID": 0, "HInspectInstruMentID": 0, "HInspectBasisID": 0, "HSampleSchemeID": 0, "HStatus": 1, "HCompareSymbol": "1" |
| | | , "HTargetVal": "", "HUpLimit": "", "HDownLimit": "", "HUpOffSet": "", "HDownOffSet": "", "HTargetValKey": "", "HUpLimitKey": "" |
| | | , "HDownLimitKey": "", "HUpOffSetKey": "", "HDownOffSetKey": "", "HTargetValQ": 0, "HUpLimitQ": 0, "HDownLimitQ": 0, "HUpOffSetQ": 0 |
| | | , "HDownOffSetQ": 0, "HTargetValB": 0, "HUpLimitB": 0, "HDownLimitB": 0, "HUpOffSetB": 0, "HDownOffSetB": 0 |
| | | , "HTargetValTxt": "", "HUpLimitTxt": "", "HDownLimitTxt": "", "HUpOffSetTxt": "", "HDownOffSetTxt": "" |
| | | , "HQualityStdName": "", "HInspectMethodName": "", "HInspectInstruMentName": "", "HInspectBasisName": "", "HSampleSchemeName": "" |
| | | , "HControlUpperLimit": 0, "HControlLowerLimit": 0, "HSampleCount": 0, "HSampleDayCount": 0 |
| | | }]; |
| | | table.render(option); |
| | | } |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "QC_Management/MES_QC_CheckProjectListCheckDetai", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HID": linterid |
| | | }, |
| | |
| | | |
| | | layui.form.render();//宿¶æ¸²æéä¸åä¸éä¸çæ ·å¼,æå¥½æ·»å è¿å¥è¯ |
| | | form.val("component-form-group", { |
| | | "HBillNo": data.åæ®å· |
| | | , "HInterID": data.hmainid |
| | | "HBillNo": OperationType == 2 ? "" : data.åæ®å· |
| | | , "HInterID": OperationType == 2 ? "" : data.hmainid |
| | | , "HDate": formatDate(data.æ¥æ) |
| | | , "HName": data.æ¹æ¡åç§° |
| | | , "HMaterName": data.ç©æåç§° |
| | |
| | | , "HSampleSchemeName": data.æ½æ ·æ¹æ¡åç§° |
| | | , "HSampleSchemeID": data.HSampleSchemeID |
| | | , "HStandard": data.é»è®¤æ¹æ¡ == 1 ? true : false |
| | | , "HSourceID": data.HSourceID |
| | | , "HSourceName": data.çäº§èµæº |
| | | , "HMaker": data.å¶å人 |
| | | , "HUpDater": data.ä¿®æ¹äºº |
| | | , "HChecker": data.å®¡æ ¸äºº |
| | | , "HMakerDate": data.å¶åæ¥æ == null ? "" : Format(new Date(data.å¶åæ¥æ), "yyyy-MM-dd") |
| | | , "HUpDateDate": data.ä¿®æ¹æ¥æ == null ? "" : Format(new Date(data.ä¿®æ¹æ¥æ), "yyyy-MM-dd") |
| | | , "HCheckDate": data.å®¡æ ¸æ¥æ == null ? "" : Format(new Date(data.å®¡æ ¸æ¥æ), "yyyy-MM-dd") |
| | | , "HCloseMan": data.å
³é人 |
| | | , "HCloseDate": data.å
³éæ¥æ == null ? "" : Format(new Date(data.å
³éæ¥æ), "yyyy-MM-dd") |
| | | , "HDeleteMan": data.ä½åºäºº |
| | | , "HDeleteDate": data.ä½åºæ¥æ == null ? "" : Format(new Date(data.ä½åºæ¥æ), "yyyy-MM-dd") |
| | | |
| | | }); |
| | | |
| | | //ç»ç»çå¼HOrgIDååï¼éæ°æ¸²æ |
| | | HOrgIDBar = sessionStorage["OrganizationID"]; |
| | | } else { |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | |
| | | "HDownLimitTxt": data[i].ä¸é弿æ¬, "HUpOffSetTxt": data[i].ä¸åå·®ææ¬, "HDownOffSetTxt": data[i].ä¸åå·®ææ¬, |
| | | "HQualityStdName": data[i].è´¨éæ ååç§°, "HInspectMethodName": data[i].æ£éªæ¹æ³åç§°, "HInspectInstruMentName": data[i].æ£éªä»ªå¨åç§°, |
| | | "HInspectBasisName": data[i].æ£éªä¾æ®åç§°, "HSampleSchemeName": data[i].åæ½æ ·æ¹æ¡åç§° |
| | | , "HControlUpperLimit": data[i].æ§å¶ä¸é, "HControlLowerLimit": data[i].æ§å¶ä¸é, "HSampleCount": data[i].æ ·æ¬æ°, "HSampleDayCount": data[i].æ ·æ¬å¤©æ° |
| | | }); |
| | | } |
| | | |
| | |
| | | $('#HAnalysisMethod' + i + '').find("option[value='" + (data[(i - 1)].åææ¹æ³) + "']").attr("selected", true); |
| | | $('#HDefectLevel' + i + '').find("option[value='" + (data[(i - 1)].缺é·ç级) + "']").attr("selected", true); |
| | | $('#HStatus' + i + '').find("option[value='" + (data[(i - 1)].ç¶æ) + "']").attr("selected", true); |
| | | $('#HCompareSymbol' + i + '').find("option[value='" + (data[(i - 1)].æ¯è¾ç¬¦) + "']").attr("selected", true); |
| | | |
| | | |
| | | if (data[(i - 1)].ç ´åæ§æ£éª) { |
| | | $('#HDestructInspect' + (i)).attr("checked", true); |
| | |
| | | $('#HAnalysisMethod' + i + '').find("option[value='" + option.data[i - 1].HAnalysisMethod + "']").attr("selected", true); |
| | | $('#HDefectLevel' + i + '').find("option[value='" + option.data[i - 1].HDefectLevel + "']").attr("selected", true); |
| | | $('#HStatus' + i + '').find("option[value='" + option.data[i - 1].HStatus + "']").attr("selected", true); |
| | | $('#HCompareSymbol' + i + '').find("option[value='" + option.data[i - 1].HCompareSymbol + "']").attr("selected", true); |
| | | |
| | | if (option.data[i - 1].HDestructInspect) { |
| | | $('#HDestructInspect' + i + '').attr("checked", true); |
| | | } |
| | | if (option.data[i - 1].HKeyInspect) { |
| | | $('#HKeyInspect' + i + '').attr("checked", true); |
| | | } |
| | | } |
| | | } |
| | | form.render('select'); |
| | | form.render('checkbox'); |
| | |
| | | $('#HAnalysisMethod' + i + '').find("option[value='" + option.data[i - 1].HAnalysisMethod + "']").attr("selected", true); |
| | | $('#HDefectLevel' + i + '').find("option[value='" + option.data[i - 1].HDefectLevel + "']").attr("selected", true); |
| | | $('#HStatus' + i + '').find("option[value='" + option.data[i - 1].HStatus + "']").attr("selected", true); |
| | | $('#HCompareSymbol' + i + '').find("option[value='" + option.data[i - 1].HCompareSymbol + "']").attr("selected", true); |
| | | |
| | | if (option.data[i - 1].HDestructInspect) { |
| | | $('#HDestructInspect' + i + '').attr("checked", true); |
| | | } |
| | | if (option.data[i - 1].HKeyInspect) { |
| | | $('#HKeyInspect' + i + '').attr("checked", true); |
| | | } |
| | | } |
| | | } |
| | | form.render('select'); |
| | | form.render('checkbox'); |
| | |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //#region éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | | var contentUrl = ""; |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | colName += option.cols[0][i]["title"] + ","; |
| | | } |
| | | var urlStr = window.document.location.pathname;//è·åæä»¶è·¯å¾ |
| | | var urlLen = urlStr.split('/'); |
| | | for (var i = 0; i < urlLen.length - 4; i++) { |
| | | contentUrl += "../"; |
| | | } |
| | | colName = encodeURI(colName.substring(0, colName.length - 1));//对 URI è¿è¡ç¼ç |
| | | |
| | | contentUrl += 'åºç¡èµæ/éèå设置/Gy_GridView_Hide.html?HModName=' + HModName + '&colName=' + colName; |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "éèå设置" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["50%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: [contentUrl, "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | //#region æ¾ç¤ºåæ°æ® |
| | | function DisPlay_HideColumn() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | type: "GET", |
| | | data: { "HModName": HModName, "user": sessionStorage["HUserName"] }, |
| | | async: false, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var titleData = ["è¡å·", "项ç®é¶æ®µID", "æºåå
ç ", "æºååå
ç ", "æºååå·", "æºåç±»å"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option.cols[0].length - 2; i++) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å宽 |
| | | if (dataCols[3] > 0) { |
| | | option.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | | option.cols[0][i + 1]["style"] += "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | option.cols[0][i + 1]["style"] += "font-size:100%"; |
| | | } |
| | | //设置å宽 |
| | | //if (data1.data[0].HColumnWidth != 0) { |
| | | // option.cols[0][i + 1]["width"] = data1.data[0].HColumnWidth + "px;"; |
| | | //} else { |
| | | // option.cols[0][i + 1]["width"] = ""; |
| | | //} |
| | | //æ¾ç¤ºå |
| | | if (dataCols[1] == 0 && $.inArray(option.cols[0][i + 1]["title"], titleData) == -1) { |
| | | option.cols[0][i + 1]["hide"] = false; |
| | | } |
| | | //å使å¨ä½ç½®(å·¦ å±
ä¸ å³) |
| | | switch (dataCols[2]) { |
| | | case "L": |
| | | option.cols[0][i + 1]["align"] = "left"; |
| | | break; |
| | | case "M": |
| | | option.cols[0][i + 1]["align"] = "center"; |
| | | break; |
| | | case "R": |
| | | option.cols[0][i + 1]["align"] = "right"; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | //åæ¶å»ç»å |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | if (option.cols[0][i]["fixed"] != null) { |
| | | option.cols[0][i]["fixed"] = null; |
| | | } |
| | | else { |
| | | break; |
| | | } |
| | | } |
| | | //å»ç»å |
| | | if (data1.data[0].HFixCols != 0) { |
| | | for (var i = 0; i < data1.data[0].HFixCols; i++) { |
| | | if ($.inArray(option.cols[0][i + 1]["title"], titleData) != -1) { |
| | | data1.data[0].HFixCols += 1; |
| | | } |
| | | option.cols[0][i + 1]["fixed"] = "left"; |
| | | } |
| | | } |
| | | table.render(option); |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HAnalysisMethod' + i + '').find("option[value='" + option.data[i - 1].HAnalysisMethod + "']").attr("selected", true); |
| | | $('#HDefectLevel' + i + '').find("option[value='" + option.data[i - 1].HDefectLevel + "']").attr("selected", true); |
| | | $('#HStatus' + i + '').find("option[value='" + option.data[i - 1].HStatus + "']").attr("selected", true); |
| | | $('#HCompareSymbol' + i + '').find("option[value='" + option.data[i - 1].HCompareSymbol + "']").attr("selected", true); |
| | | |
| | | if (option.data[i - 1].HDestructInspect) { |
| | | $('#HDestructInspect' + i + '').attr("checked", true); |
| | | } |
| | | if (option.data[i - 1].HKeyInspect) { |
| | | $('#HKeyInspect' + i + '').attr("checked", true); |
| | | } |
| | | } |
| | | } else { |
| | | table.render(option); |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HAnalysisMethod' + i + '').find("option[value='" + option.data[i - 1].HAnalysisMethod + "']").attr("selected", true); |
| | | $('#HDefectLevel' + i + '').find("option[value='" + option.data[i - 1].HDefectLevel + "']").attr("selected", true); |
| | | $('#HStatus' + i + '').find("option[value='" + option.data[i - 1].HStatus + "']").attr("selected", true); |
| | | $('#HCompareSymbol' + i + '').find("option[value='" + option.data[i - 1].HCompareSymbol + "']").attr("selected", true); |
| | | |
| | | if (option.data[i - 1].HDestructInspect) { |
| | | $('#HDestructInspect' + i + '').attr("checked", true); |
| | | } |
| | | if (option.data[i - 1].HKeyInspect) { |
| | | $('#HKeyInspect' + i + '').attr("checked", true); |
| | | } |
| | | } |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | |
| | | // é空éªè¯ |
| | | function AllowLoadData(sSubStr) { //é空éªè¯ |
| | |
| | | $("#HProcID").val(obj[0].HItemID); |
| | | } |
| | | |
| | | function GetMaterValue(obj) { //ç©æ |
| | | $("#HMaterName").val(obj[0].ç©æåç§°); |
| | | $("#HMaterNumber").val(obj[0].ç©æä»£ç ); |
| | | $("#HMaterID").val(obj[0].HItemID); |
| | | function GetGyMaterial(obj) { //ç©æ |
| | | $("#HMaterName").val(obj.ç©æåç§°); |
| | | $("#HMaterNumber").val(obj.ç©æä»£ç ); |
| | | $("#HMaterID").val(obj.HItemID); |
| | | } |
| | | |
| | | function GetMaterTypeValue(obj) { //ç©æåç±» |
| | |
| | | $("#HDeptID").val(obj[0].HItemID); |
| | | } |
| | | |
| | | function GetUnitValue(obj) { //计éåä½ |
| | | $("#HUnitName").val(obj[0].计éåä½åç§°); |
| | | $("#HUnitNumber").val(obj[0].计éåä½ä»£ç ); |
| | | $("#HUnitID").val(obj[0].HItemID); |
| | | function GetHUnitListValue(obj) { //计éåä½ |
| | | $("#HUnitName").val(obj.计éåä½åç§°); |
| | | $("#HUnitNumber").val(obj.计éåä½ä»£ç ); |
| | | $("#HUnitID").val(obj.HItemID); |
| | | } |
| | | function GetGySource(obj) { //çäº§èµæº |
| | | $("#HSourceName").val(obj[0].çäº§èµæºåç§°); |
| | | $("#HSourceID").val(obj[0].HItemID); |
| | | } |
| | | //æ£éªé¡¹ç® |
| | | function GetCheckItemValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | //è´¨éæ å |
| | | function GetQualityStdValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | //æ£éªæ¹æ³ |
| | | function GetInspectMethodValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | //æ£éªä»ªå¨ |
| | | function GetInspectInstruMentValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | //æ£éªä¾æ® |
| | | function GetInspectBasisValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | //æ½æ ·æ¹æ¡ |
| | | function GetCheckItemValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | |
| | | </script> |