| | |
| | | //var WEBURL = "http://192.168.16.80:8011/"; //åå
¬å®¤æå¡å¨ |
| | | //var WEBURL = "http://localhost:8081/SWEAPI/"; //chæ¬å°*/ |
| | | //var WEBURL = "http://61.164.86.218:8099/ABAPI/"; |
| | | var WEBURL = "http://localhost/API/"; //颿忬å°é
ç½® |
| | | /*var WEBURL = "http://localhost/API/"; //颿忬å°é
ç½®*/ |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨ä¹æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/API/"; //æè´ºæ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/API/"; //å¼ ç广æ¬å°é
ç½® |
| | | var WEBURL = "http://localhost:81/API/" //ç¿æ¶æ¶æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨ä¹æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/API/"; //æè´ºæ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/API/"; //å¼ ç广æ¬å°é
ç½® |
| | | var WEBURL = "http://localhost:8082/API/"; //å¼ ç广æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:81/API/" //ç¿æ¶æ¶æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨ä¹æ¬å°é
ç½® |
| | | //var WEBURL = "http://47.96.97.237/API/"; //æºäºæå¡å¨ |
| | | /* var WEBURL = "http://localhost:8082/LuBaoAPI/"; //ä½ææ°æ¬å°é
ç½®*/ |
| | | //var WEBURL = "http://localhost:8088/ARAPI/"; //ä½ææ°æ¬å°é
ç½®(å®ç) |
| | |
| | | <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | <input type="hidden" name="HMainID" id="HMainID" value="0"> |
| | | <input type="hidden" name="HSubID" id="HSubID" value="0"> |
| | | <input type="hidden" name="HSupID" id="HSupID" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | |
| | | $("#HMaterNumber").val(data.ç©æä»£ç ); |
| | | $("#HMaterName").val(data.ç©æåç§°); |
| | | $("#HMaterModel").val(data.è§æ ¼åå·); |
| | | $("#HSupID").val(data.HSupID); |
| | | $("#HQty").val(data.æ°é); |
| | | } |
| | | else { |
| | |
| | | <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> |
| | | <style type="text/css"> |
| | | .layui-form-label { |
| | | width: 85px; |
| | |
| | | <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="HNumber" lay-verify="HNumber" id="HNumber"> |
| | | <input id="HItemID" name="HItemID" type="hidden" /> |
| | | <input id="HParentID" name="HParentID" type="hidden" /> |
| | | <input id="HLevel" name="HLevel" type="hidden" /> |
| | | <input class="layui-input" name="HNumber" lay-verify="HNumber" id="HNumber" value=""> |
| | | <input id="HItemID" name="HItemID" type="hidden" value="0"/> |
| | | <input id="HParentID" name="HParentID" type="hidden" value="0"/> |
| | | <input id="HLevel" name="HLevel" type="hidden" 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 class="layui-input" name="HName" lay-verify="HName" id="HName"> |
| | | <input class="layui-input" name="HName" lay-verify="HName" id="HName" value=""> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å©è®°ç </label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HHelpCode" lay-verify="HHelpCode" id="HHelpCode"> |
| | | <input class="layui-input" name="HHelpCode" lay-verify="HHelpCode" id="HHelpCode" value=""> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <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" value=""></textarea> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--<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> |
| | | //è·ååæ° |
| | | function getUrlVars() { |
| | |
| | | var HOrgIDBar = 0; |
| | | //#endregion |
| | | //常è§ç¨æ³ |
| | | |
| | | $("#HUSEORGID").attr("disabled", true); |
| | | $("#HMakeEmp").val(sessionStorage["HUserName"]);; //æ ¹æ®ç»å½ç¨æ·å¸¦åºå建人 |
| | | $("#HMakeTime").val(Format(new Date(), "yyyy-MM-dd")); |
| | | |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | if (sessionStorage.login != "login") { |
| | |
| | | $("#HHelpCode").val(d.data[0].HHelpCode); |
| | | $("#HRemark").val(d.data[0].HRemark); |
| | | $("#HMakeEmp").val(d.data[0].HMakeEmp); |
| | | $("#HMakeTime").val(d.data[0].HMakeEmp == "" ? "" :formatDate(d.data[0].HMakeTime)); |
| | | $("#HMakeTime").val(d.data[0].HMakeTime == "" ? "" :formatDate(d.data[0].HMakeTime)); |
| | | $("#HModifyEmp").val(d.data[0].HModifyEmp); |
| | | $("#HModifyTime").val(d.data[0].HModifyEmp == "" ? "" :formatDate(d.data[0].HModifyTime)); |
| | | $("#HModifyTime").val(d.data[0].HModifyTime == "" ? "" :formatDate(d.data[0].HModifyTime)); |
| | | $("#HCheckEmp").val(d.data[0].HCheckEmp); |
| | | $("#HCheckTime").val(d.data[0].HCheckEmp == "" ? "" :formatDate(d.data[0].HCheckTime)); |
| | | $("#HCheckTime").val(d.data[0].HCheckTime == "" ? "" :formatDate(d.data[0].HCheckTime)); |
| | | $("#HStopEmp").val(d.data[0].HStopEmp); |
| | | $("#HStopTime").val(d.data[0].HStopEmp == "" ? "" :formatDate(d.data[0].HStopTime)); |
| | | $("#HStopTime").val(d.data[0].HStopTime == "" ? "" :formatDate(d.data[0].HStopTime)); |
| | | $("input[name='HStopflag']").prop("checked", d.data[0].HStopflag);//true:éä¸ false:ä¸éä¸ |
| | | layui.form.render();//宿¶æ¸²æéä¸åä¸éä¸çæ ·å¼,æå¥½æ·»å è¿å¥è¯ |
| | | |
| | |
| | | <div class="layui-inline"> |
| | | <span>æ´å¤</span> |
| | | </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 ForFilteringSchemes" name="HBillNo" id="HBillNo"> |
| | | </div> |
| | | </div>--> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input ForFilteringSchemes" id="HBeginDate" style="width:190px;"> |
| | | </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;"> |
| | |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container" id="toolbarDemo_ButtonSet"> |
| | | |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_SouceExcel" id="set_SouceExcel"><i class="layui-icon layui-icon-delete"></i>导å
¥</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_AddNew" id="set_AddNew"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Copy" id="btn-Copy"><i class="layui-icon layui-icon-file-b"></i>å¤å¶</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_ShowBill" id="set_ShowBill"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_DeleteBill" id="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_SouceExcel" id="set_SouceExcel"><i class="layui-icon layui-icon-delete"></i>导å
¥</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="get_Refresh" id="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-view" id="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-DeAudit" id="btn-DeAudit"><i class="layui-icon layui-icon-circle"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Audit" id="btn-Audit"><i class="layui-icon layui-icon-radio"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Stop" id="Stop"><i class="layui-icon layui-icon-radio"></i>ç¦ç¨</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-DeStop" id="DeStop"><i class="layui-icon layui-icon-radio"></i>åç¦ç¨</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_HideColumn" id="HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_HideButton" id="HideButton"><i class="layui-icon layui-icon-form"></i>æé®è®¾ç½®</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-view" id="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_SaveScheme" id="set_SaveScheme"><i class="layui-icon layui-icon-template"></i>ä¿åæ¹æ¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_ReadScheme" id="set_ReadScheme"><i class="layui-icon layui-icon-set"></i>è¯»åæ¹æ¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="get_Refresh" id="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="get_Exit" id="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | |
| | | </div> |
| | | </script> |
| | | </form> |
| | |
| | | var HMaterTypeID = 0; //ç¶çº§åç±»èç¹id |
| | | //#endregion |
| | | |
| | | var titleData = ["HMouldID", "hsubid",]; |
| | | var titleData = ["HMouldID", "hsubid", "HItemID", "HParentID","HUSEORGID"]; |
| | | var set_HideButton_ID = "toolbarDemo_ButtonSet"; //éè¦è®¾ç½®çæé®çç¶çº§èç¹çid |
| | | var HModName = "Gy_MouldType"; |
| | | var HBillType = "Gy_MouldType"; |
| | |
| | | set_InitGrid(); |
| | | |
| | | //æ¥è¯¢ |
| | | //get_Display(sWhere); |
| | | get_FastQuery(); |
| | | ColFilter(); |
| | | DisPlay_HideColumn(); |
| | | |
| | | //DisPlay_HideColumn(); |
| | | get_DefaultModule(); |
| | | } |
| | | |
| | |
| | | }; |
| | | } |
| | | |
| | | ////#endregion çå¬ç½æ ¼è¡¨ä½äºä»¶ |
| | | //#region çå¬ç½æ ¼è¡¨ä½äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | var data = obj.data; |
| | | |
| | |
| | | }) |
| | | } |
| | | }); |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | //æ¥è¯¢ |
| | | function get_Display(sWhere) { |
| | | var ModRightNameSelect = 'Gy_MouldTypeList'; |
| | |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , cols: [col] |
| | | //, cols: [[ |
| | | // { type: 'checkbox', fixed: 'left', totalRowText: 'å计è¡' } |
| | | // , { field: 'HItemID', title: 'HItemID', sort: true, hide: true, sort: true } |
| | | // , { field: 'HParentID', title: 'HParentID', sort: true, hide: true, sort: true } |
| | | // , { |
| | | // field: 'HNumber', title: '代ç ', width: 200, sort: true, event: '代ç ', templet: function (d) { |
| | | // return '<span style="color: blue;">' + d.HNumber + '</span>' |
| | | // }, style: 'cursor: pointer;' |
| | | // } |
| | | // , { field: 'HName', title: 'åç§°', width: 200, sort: true } |
| | | // , { field: 'HLevel', title: 'ç级', width: 200, sort: true } |
| | | // , { field: 'HEndFlag', title: 'æç»æ è®°', width: 200, sort: true } |
| | | // , { field: 'HStopFlag', title: 'ç¦ç¨æ è®°', width: 200, sort: true } |
| | | // , { field: 'HRemark', title: '夿³¨', width: 200, sort: true } |
| | | // , { field: 'HUseFlag', title: 'ä½¿ç¨æ è®°', width: 200, sort: true } |
| | | //]] |
| | | , data: data1.data |
| | | , height: 800 |
| | | , height: 'full-80' |
| | | , page: true |
| | | , totalRow: true |
| | | , cellMinWidth: 90 |
| | | , limits: [50, 500, 5000, 50000] |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | Display_HideButton(set_HideButton_ID, HBillType, HModName, sessionStorage["HUserName"]); |
| | | } |
| | | , cellMinWidth: 90 |
| | | } |
| | | |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(HModName, sessionStorage["HUserName"], option, titleData) |
| | | ins = table.render(option); |
| | | |
| | | |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | //å·æ°æé®æ¾ç¤º |
| | | Display_HideButton(set_HideButton_ID, HBillType, HModName, sessionStorage["HUserName"]); |
| | | layer.close(ajaxLoad); |
| | | if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") { |
| | | ColFilter(); |
| | | } |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æ¾ç¤ºåæ°æ® |
| | | function DisPlay_HideColumn() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | type: "GET", |
| | | data: { "HModName": HModName, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | //var titleData = ["åæ®ID", "HMouldID", "hsubid", "HManagerID", "æºå主å
ç ", "æºååå
ç "];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | //ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData = ["HMouldID", "hsubid",]; |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option.cols[0].length - 1; 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); |
| | | } else { |
| | | table.render(option); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å¿«éè¿æ»¤ |
| | | function get_FastQuery() { |
| | | |
| | |
| | | get_Display(sWhere); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region åææ¾ç¤ºä¸ææ¡ |
| | | function ColFilter() { |
| | | var Organization = '<option value="0" selected="selected" ></option>'; |
| | |
| | | }); |
| | | |
| | | } |
| | | |
| | | //导å
¥ |
| | | function set_SouceExcel() { |
| | | layer.open({ |
| | |
| | | , content: './Gy_MouldType_Excel.html?OperationType=dao&HSouceBillType=' |
| | | }) |
| | | } |
| | | |
| | | //å é¤ |
| | | function set_DeleteBill() { |
| | | var ModRightNameDelete = 'Gy_MouldType_Delete'; |
| | |
| | | return vars; |
| | | } |
| | | //#endregion |
| | | |
| | | //#region 夿æ¯ç´æ¥æå¼é¡µé¢è¿æ¯å
¶å®é¡µé¢éè¿éæ©æé®æå¼ï¼å¹¶æ¾ç¤ºç¸åºæ°æ® |
| | | function addSWhereByOpenType() { |
| | | //è·ååæ° |
| | |
| | | } |
| | | } |
| | | }; |
| | | |
| | | ////æ¥è¯¢æé® |
| | | //form.on('submit(btnSearch)', function (data) { |
| | | |
| | | // $.ajax({ |
| | | // url: GetWEBURL() + '/Gy_ModelType/list', |
| | | // type: "GET", |
| | | // data: { "sWhere": sWhere }, |
| | | // success: function (data1) { |
| | | // if (data1.count == 1) { |
| | | // option.data = data1.data; |
| | | // table.render(option); |
| | | // layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | // } else { |
| | | // layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | // } |
| | | // }, error: function () { |
| | | // layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | // } |
| | | // }); |
| | | // sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | //}); |
| | | ////#endregion |
| | | |
| | | //laydate.render({ |
| | | // elem: '#HDate' |
| | | // , type: 'datetime' |
| | | // , trigger: 'click' |
| | | // , format:'yyyy-MM-dd HH:mm' |
| | | //}); |
| | | |
| | | //#region ãè¿æ»¤æ¹æ¡ã |
| | | |
| | | //è·åå½åç¨æ·çé»è®¤è¿æ»¤æ¹æ¡ |
| | |
| | | } |
| | | }); |
| | | |
| | | //#region ç¹å»è¡éä¸é«äº® |
| | | table.on('row(mainTable)', function (obj) { |
| | | //éä¸è¡æ¹åé¢è² |
| | | var flag = !obj.tr.find(':checkbox:first').prop('checked'); |
| | | obj.tr.find(':checkbox').prop('checked', flag); |
| | | if (flag) { |
| | | obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked'); //设置å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//æ¹åå½åtrèæ¯é¢è²ååä½é¢è² |
| | | } else { |
| | | obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//åæ¶å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:" });//åæ¶å½åtré¢è² |
| | | } |
| | | //mainTable ä¸ºè¡¨æ ¼ID æ³¨ææ¤å¤å¦æID䏿£ç¡®å°å¯¼è´ä½ å¨çå¬å¤éæ¡æ¶è·åä¸å°ä½ éæ©çæ°æ®ï¼åé¢çåªæ¯æ·»å æå é¤é䏿ªé䏿 ·å¼ä»¥åè®¾ç½®èæ¯è²ï¼åä½é¢è² |
| | | layui.each(table.cache.mainTable, function (i, l) { |
| | | if (obj.tr.index() == l.LAY_TABLE_INDEX) { |
| | | l.LAY_CHECKED = flag; |
| | | } |
| | | }); |
| | | }) |
| | | //#endregion |
| | | |
| | | //导å
¥ |
| | | function set_SouceExcel() { |
| | | layer.open({ |
| | |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | var set_HideButton_ID = "toolbarDemo_ButtonSet"; //éè¦è®¾ç½®çæé®çç¶çº§èç¹çid |
| | | //ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData = ["HItemID"]; |
| | | var titleData = ["HItemID", "ç级", "HMaintainClassID", "HUSEORGID","使ç¨ç»ç»ä»£ç "]; |
| | | //#endregion |
| | | //#region ãè¿æ»¤æ¹æ¡ã |
| | | |
| | |
| | | , page: true |
| | | , limits: [50, 500, 5000, 50000] |
| | | , limit: 50 |
| | | , cellMinWidth: 90 |
| | | //, cols: [[ |
| | | // { type: 'checkbox', fixed: 'left' } |
| | | // , { field: 'HItemID', title: 'HItemID', sort: true, hide: true } |
| | | // , { field: 'HNumber', title: 'ä¿å
»é¡¹ç®ä»£ç ', width: 200 } |
| | | // , { field: 'HName', title: 'ä¿å
»é¡¹ç®åç§°', width: 200 } |
| | | // , { field: 'HLevel', title: 'ç级', width: 200 } |
| | | // , { field: 'HEndFlag', title: 'æç»æ è®°', width: 200 } |
| | | // , { field: 'HStopFlag', title: 'ç¦ç¨æ è®°', width: 200 } |
| | | // , { field: 'HRemark', title: '夿³¨', width: 200 } |
| | | // , { field: 'HUseFlag', title: 'ä½¿ç¨æ è®°', width: 200 } |
| | | //]] |
| | | , cellMinWidth: 90 |
| | | }; |
| | | } |
| | | //æ¥è¯¢ |
| | |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: '../åºç¡èµæ/Gy_MaintainEdit.html?OperationType=2&hID=' + HInterID |
| | | , resize: false |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | | } |
| | | , cancel: function () { |
| | | |
| | | } |
| | |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | layer.confirm('æ¨ç¡®å®è¦å é¤åï¼', { |
| | | btn: ['ç¡®å®', 'åæ¶'] //æé® |
| | | , yes: function (index, layero) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Gy_Maintain/DeleteMaintain', |
| | | type: "GET", |
| | | data: { "HItemID": data[0].HItemID, "User": sessionStorage["HUserName"]}, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | //éè½½tree |
| | | //tree.reload('treeDepartment', {}); |
| | | }); |
| | | if (data[0].å®¡æ ¸äºº != undefined && data[0].å®¡æ ¸äºº != "") { |
| | | layer.confirm('æ¨ç¡®å®è¦å é¤åï¼', { |
| | | btn: ['ç¡®å®', 'åæ¶'] //æé® |
| | | , yes: function (index, layero) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Gy_Maintain/DeleteMaintain', |
| | | type: "GET", |
| | | data: { "HItemID": data[0].HItemID, "User": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | //éè½½tree |
| | | //tree.reload('treeDepartment', {}); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | }); |
| | | }) |
| | | |
| | | } |
| | | }); |
| | | } else { |
| | | layer.msg('è¯¥è¡æ°æ®å·²å®¡æ ¸ï¼ä¸å
许å é¤ï¼'); |
| | | } |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | |
| | | <div class="layui-inline" style="margin-left:5px;"> |
| | | <div style="text-align:center;font-size:15px;font-weight:bold;color:#fc9393" id="HFilterScheme_Now"></div> |
| | | </div> |
| | | <div class="layui-colla-content" style="padding: 0px; margin-left: 6.6%; margin-top: 5px"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç©æä»£ç </label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" id="HMaterNumber" style="width:190px;"> |
| | | <div class="layui-colla-content" style="padding: 0px; margin-left: 6%; margin-top: 5px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç©æä»£ç </label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" id="HMaterNumber" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç©æåç§°</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" id="HMaterName" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å·¥ä½ä¸å¿</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" id="HCenterName" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç©æåç§°</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" id="HMaterName" style="width:190px;"> |
| | | |
| | | <div class="layui-row" style="margin-top:5px"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è¿æ»¤</label> |
| | | <div class="layui-input-block"> |
| | | <select name="ColName" id="ColName" class=" ForFilteringSchemes" lay-filter="ColName" style="width:190px;"> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <select name="Comparator" id="Comparator" class=" ForFilteringSchemes" lay-filter="Comparator" style="width:190px;"> |
| | | <option value="0" selected="selected"></option> |
| | | <option value="=">=</option> |
| | | <option value=">=">>=</option> |
| | | <option value=">">></option> |
| | | <option value="<="><=</option> |
| | | <option value="<"><</option> |
| | | <option value="<>"><></option> |
| | | <option value="7">å
å«</option> |
| | | <option value="8">å·¦å
å«</option> |
| | | <option value="9">å³å
å«</option> |
| | | <option value="10">ä¸å
å«</option> |
| | | </select> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" value="" name="ColContent" id="ColContent"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å·¥ä½ä¸å¿</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" id="HCenterName" style="width:190px;"> |
| | | <div class="layui-row" style=" margin-top: 10px; margin-left: 70px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è¿æ»¤</label> |
| | | <div class="layui-input-block"> |
| | | <select name="ColName1" id="ColName1" class="ForFilteringSchemes" lay-filter="ColName1" style="width:190px;"> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <select name="Comparator1" id="Comparator1" class="ForFilteringSchemes" lay-filter="Comparator1" style="width:190px;"> |
| | | <option value="0" selected="selected"></option> |
| | | <option value="=">=</option> |
| | | <option value=">=">>=</option> |
| | | <option value=">">></option> |
| | | <option value="<="><=</option> |
| | | <option value="<"><</option> |
| | | <option value="<>"><></option> |
| | | <option value="7">å
å«</option> |
| | | <option value="8">å·¦å
å«</option> |
| | | <option value="9">å³å
å«</option> |
| | | <option value="10">ä¸å
å«</option> |
| | | </select> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" value="" name="ColContent1" id="ColContent1"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-row" style=" margin-top: 10px; margin-left: 70px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è¿æ»¤</label> |
| | | <div class="layui-input-block"> |
| | | <select name="ColName2" id="ColName2" class="ForFilteringSchemes" lay-filter="ColName2" style="width:190px;"> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <select name="Comparator2" id="Comparator2" class="ForFilteringSchemes" lay-filter="Comparator2" style="width:190px;"> |
| | | <option value="0" selected="selected"></option> |
| | | <option value="=">=</option> |
| | | <option value=">=">>=</option> |
| | | <option value=">">></option> |
| | | <option value="<="><=</option> |
| | | <option value="<"><</option> |
| | | <option value="<>"><></option> |
| | | <option value="7">å
å«</option> |
| | | <option value="8">å·¦å
å«</option> |
| | | <option value="9">å³å
å«</option> |
| | | <option value="10">ä¸å
å«</option> |
| | | </select> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" value="" name="ColContent2" id="ColContent2"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Faudit"><i class="layui-icon layui-icon-refresh"></i>åå®¡æ ¸</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Use"><i class="layui-icon layui-icon-ok"></i>使ç¨</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_SaveScheme" id="set_SaveScheme"><i class="layui-icon layui-icon-template"></i>ä¿åæ¹æ¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ReadScheme" id="set_ReadScheme"><i class="layui-icon layui-icon-set"></i>è¯»åæ¹æ¡</button> |
| | |
| | | DataList = data1.data; |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | |
| | | if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") { |
| | | ColFilter(); |
| | | } |
| | | |
| | | |
| | | layer.close(wait); |
| | | } else { |
| | | layer.close(wait); |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | //#region ä»»æåæ®µè¿æ»¤ï¼ååæ¾ç¤ºä¸ææ¡ |
| | | function ColFilter() { |
| | | var Organization = '<option value="0" selected="selected" ></option>'; |
| | | for (var i = 1; i < option.cols[0].length; i++) { |
| | | if (option.cols[0][i].hide != true) { |
| | | Organization += '<option style="color:blue;" value="' + option.cols[0][i].field + '">' + option.cols[0][i].field + '</option>'; |
| | | } |
| | | } |
| | | $("#ColName").empty(); |
| | | $("#ColName").append(Organization); $("#ColName1").empty(); |
| | | $("#ColName1").append(Organization); $("#ColName2").empty(); |
| | | $("#ColName2").append(Organization); |
| | | form.render('select'); |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //ä½¿ç¨ |
| | | function get_Use() { |
| | | $.ajax({ |
| | |
| | | var HMaterNumber = $("#HMaterNumber").val();//ç»ææ¥æ |
| | | var HMaterName = $("#HMaterName").val(); |
| | | var HCenterName = $("#HCenterName").val(); |
| | | //ä»»æåæ®µè¿æ»¤ |
| | | var ColName = $("#ColName").val();//å¤éæ¡ |
| | | var Comparator = $("#Comparator").val() |
| | | var ColContent = $("#ColContent").val(); |
| | | var ColName1 = $("#ColName1").val();//å¤éæ¡ |
| | | var Comparator1 = $("#Comparator1").val() |
| | | var ColContent1 = $("#ColContent1").val(); |
| | | var ColName2 = $("#ColName2").val();//å¤éæ¡ |
| | | var Comparator2 = $("#Comparator2").val() |
| | | var ColContent2 = $("#ColContent2").val(); |
| | | if (ColName != 0 && Comparator != 0) { |
| | | var com = ""; |
| | | switch (Comparator) { |
| | | case "7": |
| | | com = "like'%" + ColContent + "%'"; |
| | | break; |
| | | case "8": |
| | | com = "like'%" + ColContent + "'"; |
| | | break; |
| | | case "9": |
| | | com = "like'" + ColContent + "%'"; |
| | | break; |
| | | case "10": |
| | | com = "not like'%" + ColContent + "%'"; |
| | | break; |
| | | default: |
| | | com = "" + Comparator + "'" + ColContent + "'"; |
| | | break; |
| | | } |
| | | sWhere += " and " + ColName + " " + com; |
| | | } |
| | | if (ColName1 != 0 && Comparator1 != 0) { |
| | | var com1 = ""; |
| | | switch (Comparator1) { |
| | | case "7": |
| | | com1 = "like'%" + ColContent1 + "%'"; |
| | | break; |
| | | case "8": |
| | | com1 = "like'%" + ColContent1 + "'"; |
| | | break; |
| | | case "9": |
| | | com1 = "like'" + ColContent1 + "%'"; |
| | | break; |
| | | case "10": |
| | | com1 = "not like'%" + ColContent1 + "%'"; |
| | | break; |
| | | default: |
| | | com1 = "" + Comparator1 + "'" + ColContent1 + "'"; |
| | | break; |
| | | } |
| | | sWhere += " and " + ColName1 + " " + com1; |
| | | } |
| | | if (ColName2 != 0 && Comparator2 != 0) { |
| | | var com2 = ""; |
| | | switch (Comparator2) { |
| | | case "7": |
| | | com2 = "like'%" + ColContent2 + "%'"; |
| | | break; |
| | | case "8": |
| | | com2 = "like'%" + ColContent2 + "'"; |
| | | break; |
| | | case "9": |
| | | com2 = "like'" + ColContent2 + "%'"; |
| | | break; |
| | | case "10": |
| | | com2 = "not like'%" + ColContent2 + "%'"; |
| | | break; |
| | | default: |
| | | com2 = "" + Comparator2 + "'" + ColContent2 + "'"; |
| | | break; |
| | | } |
| | | sWhere += " and " + ColName2 + " " + com2; |
| | | } |
| | | if (HBillNo) { |
| | | sWhere += " and åæ®å· like '%" + HBillNo + "%'"; |
| | | } |
| | |
| | | $("#HMaterNumber").val(""); |
| | | $("#HMaterName").val(""); |
| | | $("#HCenterName").val(""); |
| | | $("#ColContent").val(""); |
| | | $("#ColName").val("0"); |
| | | $("#Comparator").val("0"); |
| | | $("#ColContent1").val(""); |
| | | $("#ColName1").val("0"); |
| | | $("#Comparator1").val("0"); |
| | | $("#ColContent2").val(""); |
| | | $("#ColName2").val("0"); |
| | | $("#Comparator2").val("0"); |
| | | form.render('select'); |
| | | |
| | | sWhere = " "; |
| | | get_Display(sWhere); |
| | |
| | | var option = []; |
| | | var titleData = []; |
| | | var HModName = "Sc_MouldLowerBillList"; |
| | | var ins; //ç¨äºå°åºexcel |
| | | var page = 1;//åé¡µæ°æ® |
| | | var size = 50; |
| | | var HBillType = "3847"; |
| | |
| | | , "HMouldName": checkOne.模å
·åç§° |
| | | , "HMouldModel": checkOne.模å
·åå· |
| | | }) |
| | | } |
| | | debugger |
| | | } |
| | | |
| | | table.reload('mainTable', { |
| | | data: tempArr |
| | |
| | | case "https://qr61.cn/oAhaGh": |
| | | HBillType = "3308"; |
| | | break; |
| | | case "https://www.aliwork.com": |
| | | HBillType = "3308"; |
| | | break; |
| | | } |
| | | } |
| | | |
| | |
| | | var titleData = []; |
| | | var HModName = "Sc_MouldUpperBillList"; |
| | | var HBillType = "3846"; |
| | | var ins; //ç¨äºå°åºexcel |
| | | var set_HideButton_ID = "toolbarDemo_ButtonSet";//éè¦è®¾ç½®çæé®çç¶çº§èç¹çid |
| | | var page = 1;//åé¡µæ°æ® |
| | | var size = 50; |
| | |
| | | , { field: 'HLeaveLife', title: 'åå©ä½å¯¿å½', edit: 'text', width: 100, totalRow: true } |
| | | , { field: 'HNewLeaveLife', title: 'æ°å©ä½å¯¿å½', edit: 'text', width: 100, totalRow: true } |
| | | , { field: 'HRemark', title: '表ä½å¤æ³¨', edit: 'text', width: 100 } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 80 } |
| | | ]] |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | }; |
| | |
| | | option.data = table.cache["mainTable"]; |
| | | table.render(option); |
| | | rows++; |
| | | layer.msg('å¢å ä¸è¡æé®ï¼') |
| | | break; |
| | | case 'btn-CopyLine': |
| | | var copydata = JSON.stringify(data); |
| | |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | //obj.del(); |
| | | //layer.close(index); |
| | | |
| | | var oldData = table.cache["mainTable"]; |
| | | oldData.splice(obj.tr.data('index'), 1); |
| | | table.reload('mainTable', { data: oldData }); |
| | |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#btnChecker').removeClass('layui-btn-disabled').attr('disabled', false) |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | } |
| | |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <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/layui/layui.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> |
| | |
| | | option.cols = [col]; |
| | | option.data = data1.data; |
| | | //å设置 |
| | | DisPlay_HideColumn(HModName, sessionStorage["HUserName"], option, []); |
| | | DisPlay_HideColumn(HModName, sessionStorage["HUserName"], option, titleData); |
| | | |
| | | ins = table.render(option); |
| | | |
| | |
| | | $("#HNowWHName").val(d.data[0].å½åä»åº); |
| | | $("#HNowSPID").val(d.data[0].å½åä»ä½ID); |
| | | $("#HNowSPName").val(d.data[0].å½åä»ä½); |
| | | $("#HMouldStatus").val(d.data[0].模å
·ç¶æ); |
| | | $("#HMouldUseStatus").val(d.data[0].模å
·å¯ç¨ç¶æ); |
| | | $("#HNextMainDate").val(d.data[0].æ ¡æ£æ¥æ); |
| | | |
| | | $("#HUSEORGID").val(d.data[0].HUSEORGID); |
| | | $("#HMaker").val(d.data[0].å¶å人); |
| | |
| | | var set_HideButton_ID = "toolbarDemo_ButtonSet";//éè¦è®¾ç½®çæé®çç¶çº§èç¹çid |
| | | var ins; |
| | | |
| | | var titleData = ["hmainid", "åæ®ID", "åæ®ç±»å", "HMouldID", "HEmpID", "HBillType"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData = ["hmainid", "åæ®ID", "åæ®ç±»å", "HMouldID", "HEmpID", "HBillType", "ä¿å
»è®¡åç¼å·", "sorderid","ä¿å
»è®¡åå
ç "];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | |
| | | var HModuleType = "3819"; |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? document.title : get_PageTitle(HModuleType); |
| | | //#endregion |
| | | |
| | | //#region ã卿è·å模ååç§°ã |
| | | var HModuleType = "3819"; |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? document.title : get_PageTitle(HModuleType); |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | |
| | | }); |
| | | } |
| | | else { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: false, width: 140 }); |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: false, width: 200 }); |
| | | } |
| | | } |
| | | } |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Add" id="btn-Add"><i class="layui-icon layui-icon-add-1"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Edit" id="btn-Edit"><i class="layui-icon layui-icon-edit"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Copy" id="btn-Copy"><i class="layui-icon layui-icon-transfer"></i>å¤å¶</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_CheckBill" id="CheckBill"><i class="layui-icon layui-icon-form"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AbandonCheck" id="AbandonCheck"><i class="layui-icon layui-icon-form"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Close" id="Close"><i class="layui-icon layui-icon-radio"></i>å
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeClose" id="DeClose"><i class="layui-icon layui-icon-radio"></i>åå
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_CheckBill" id="CheckBill"><i class="layui-icon layui-icon-form"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_AbandonCheck" id="AbandonCheck"><i class="layui-icon layui-icon-form"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Close" id="Close"><i class="layui-icon layui-icon-radio"></i>å
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-DeClose" id="DeClose"><i class="layui-icon layui-icon-radio"></i>åå
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-view" id="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-print" id="btn-print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Delete" id="btn-Delete"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | |
| | | }); |
| | | //ä¿å |
| | | form.on('submit(Saver)', function (data) { |
| | | //debugger; |
| | | |
| | | data.field.HMaker = sessionStorage["HUserName"];//å¶å人 |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | |
| | | $("#check-btn").addClass('layui-btn-disabled').attr('disabled', true) |
| | | //è·åæå¤§åæ®å· |
| | | get_MAXNum(); |
| | | option.data = [{ "HMaintainItemID": 0, "HMaintainItemNumber": " ", "HMaintainItem": " ", "HMaintainPart": " ", "HClaim": " ", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HRemark": " " }]; |
| | | option.data = [{ "HMaintainItemID": 0, "HMaintainItemNumber": " ", "HMaintainItem": " ", "HMaintainPart": " ", "HClaim": " ", "HManagerID": sessionStorage["HEmpID"], "HManagerNumber": sessionStorage["HEmpNumber"], "HManagerName":sessionStorage["HEmpName"], "HRemark": " " }]; |
| | | option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HQty": "0", "HRemark": "" }]; |
| | | table.render(option); |
| | | table.render(option1); |
| | |
| | | //ç¼è¾ |
| | | function set_EditFromGrid(linterid) { |
| | | set_EditForm(linterid); //ç¼è¾è·å表头 |
| | | set_EditGrid(linterid); //ç¼è¾è·åè¡¨ä½ |
| | | option.data = [{ "HMaintainItemID": 0, "HMaintainItemNumber": " ", "HMaintainItem": " ", "HMaintainPart": " ", "HClaim": " ", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HRemark": " " }]; |
| | | table.render(option); |
| | | option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HQty": "0", "HRemark": "" }]; |
| | | table.render(option1); |
| | | set_EditGrid(linterid); //ç¼è¾è·åè¡¨ä½ |
| | | } |
| | | //ç¼è¾è·å表头 |
| | | function set_EditForm(linterid) { |
| | |
| | | , "HDeleteDate": data.ä½åºæ¥æ == null ? "" : Format(new Date(data.ä½åºæ¥æ), "yyyy-MM-dd") |
| | | }); |
| | | let type = OperationType |
| | | debugger |
| | | |
| | | |
| | | if (OperationType == 3 && data['å®¡æ ¸äºº'] != '' && data['å®¡æ ¸äºº'] != null) { |
| | | $('#check-btn').addClass('layui-btn-disabled').attr('disabled', true) |
| | | $('#add-btn').addClass('layui-btn-disabled').attr('disabled', true) |
| | |
| | | } else { |
| | | let tableBak = table.cache["mainTable"]; |
| | | let tempArr = []; //ä¸´æ¶æ°ç» |
| | | debugger |
| | | |
| | | for (var i = 0; i < tableBak.length; i++) { // ç¼åå·²ç¼è¾çæ°æ® |
| | | if (tableBak[i]["HMaintainItemID"] != 0 && tableBak[i]["HMaintainItemID"] != "" && tableBak[i]["HMaintainItemID"] != undefined && tableBak[i]["HMaintainItemID"] != null) { |
| | | tempArr.push(tableBak[i]); //妿å
³é®å段ä¸ä¸ºç©ºï¼åå°ä¹åçæ°æ®åå¨ |
| | |
| | | HMaintainItemID: checkStatus.data[i].HItemID, |
| | | HMaintainItemNumber: checkStatus.data[i].ä¿å
»é¡¹ç®ä»£ç , |
| | | HMaintainItem: checkStatus.data[i].ä¿å
»é¡¹ç®åç§°, |
| | | HMaintainPart: " ", |
| | | HClaim: " ", |
| | | HManagerID: sessionStorage["HEmpID"], |
| | | HManagerNumber: sessionStorage["HEmpNumber"], |
| | | HManagerName:sessionStorage["HEmpName"], |
| | | HRemark: " " |
| | | }); |
| | | } |
| | | |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <label class="layui-form-label">æ¥æé´é</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" name="HBillNo" |
| | | id="HBillNo"> |
| | | <select name="HInitTimeCycle" id="HInitTimeCycle" |
| | | class="ForFilteringSchemes" lay-filter="HInitTimeCycle" |
| | | style="width:190px;"> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¶å人</label> |
| | | <label class="layui-form-label">å¼å§æ¶é´</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" name="HCreateBy" |
| | | id="HCreateBy"> |
| | | <input type="date" class="layui-input ForFilteringSchemes" |
| | | name="BenginHCreateDate" id="BenginHCreateDate"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¶é´</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input ForFilteringSchemes" |
| | | name="EndHCreateDate" id="EndHCreateDate"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" name="HBillNo" |
| | | id="HBillNo"> |
| | | </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;"> |
| | | <select name="HOrgID" id="HOrgID" lay-verify="HOrgID" |
| | | class="ForFilteringSchemes"> |
| | | class="ForFilteringSchemes"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" |
| | | lay-filter="btnSearch" id="btnSearch"> |
| | | lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" |
| | | lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px"> |
| | | éç½® |
| | | </button> |
| | | <!--æ¾ç¤ºå½åè¿æ»¤æ¹æ¡--> |
| | | <div class="layui-inline" style="margin-left:5px;"> |
| | | <div style="text-align:center;font-size:15px;font-weight:bold;color:#fc9393" |
| | | id="HFilterScheme_Now"></div> |
| | | id="HFilterScheme_Now"></div> |
| | | </div> |
| | | <div class="layui-colla-content" style="padding: 0px; margin-left: 6%;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ¥æé´é</label> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label">å¶å人</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HInitTimeCycle" id="HInitTimeCycle" |
| | | class="ForFilteringSchemes" lay-filter="HInitTimeCycle" |
| | | style="width:190px;"> |
| | | </select> |
| | | <input type="text" class="layui-input ForFilteringSchemes" name="HCreateBy" |
| | | id="HCreateBy"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¶é´</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input ForFilteringSchemes" |
| | | name="BenginHCreateDate" id="BenginHCreateDate"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¶é´</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input ForFilteringSchemes" |
| | | name="EndHCreateDate" id="EndHCreateDate"> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-row" style="margin-top:5px"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è¿æ»¤</label> |
| | | <div class="layui-input-block"> |
| | | <select name="ColName" id="ColName" class="ForFilteringSchemes" |
| | | lay-filter="ColName" style="width:190px;"> |
| | | lay-filter="ColName" style="width:190px;"> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <select name="Comparator" id="Comparator" class="ForFilteringSchemes" |
| | | lay-filter="Comparator" style="width:190px;"> |
| | | lay-filter="Comparator" style="width:190px;"> |
| | | <option value="0" selected="selected"></option> |
| | | <option value="=">=</option> |
| | | <option value=">=">>=</option> |
| | |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" value="" |
| | | name="ColContent" id="ColContent"> |
| | | name="ColContent" id="ColContent"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px"> |
| | |
| | | <label class="layui-form-label">è¿æ»¤</label> |
| | | <div class="layui-input-block"> |
| | | <select name="ColName1" id="ColName1" class="ForFilteringSchemes" |
| | | lay-filter="ColName1" style="width:190px;"> |
| | | lay-filter="ColName1" style="width:190px;"> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <select name="Comparator1" id="Comparator1" class="ForFilteringSchemes" |
| | | lay-filter="Comparator1" style="width:190px;"> |
| | | lay-filter="Comparator1" style="width:190px;"> |
| | | <option value="0" selected="selected"></option> |
| | | <option value="=">=</option> |
| | | <option value=">=">>=</option> |
| | |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" value="" |
| | | name="ColContent1" id="ColContent1"> |
| | | name="ColContent1" id="ColContent1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px"> |
| | |
| | | <label class="layui-form-label">è¿æ»¤</label> |
| | | <div class="layui-input-block"> |
| | | <select name="ColName2" id="ColName2" class="ForFilteringSchemes" |
| | | lay-filter="ColName2" style="width:190px;"> |
| | | lay-filter="ColName2" style="width:190px;"> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <select name="Comparator2" id="Comparator2" class="ForFilteringSchemes" |
| | | lay-filter="Comparator2" style="width:190px;"> |
| | | lay-filter="Comparator2" style="width:190px;"> |
| | | <option value="0" selected="selected"></option> |
| | | <option value="=">=</option> |
| | | <option value=">=">>=</option> |
| | |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" value="" |
| | | name="ColContent2" id="ColContent2"> |
| | | name="ColContent2" id="ColContent2"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | "HSourceName": HSourceName |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1)// 说æéªè¯æåäºï¼ |
| | | if (data.count == 1 && data.data.length!=0)// 说æéªè¯æåäºï¼ |
| | | { |
| | | var LoadData = data.data; |
| | | var LoadData = data.data; |
| | | EquipNumber = LoadData[0].设å¤ç¼ç ; //产ååç§° |
| | | } |
| | | else { |
| | | EquipNumber = ""; |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | //layer.alert(data.Message, { icon: 5 }); |
| | | |
| | | } |
| | | }, |
| | |
| | | sWhere += " and " + ColName2 + " " + com2; |
| | | } |
| | | if (HDate) { |
| | | sWhere += " and æ¥æ >= '" + HDate + "'"; |
| | | sWhere += " and CONVERT(varchar(10),æ¥æ,120) >= '" + HDate + "'"; |
| | | } |
| | | if (HDate1) { |
| | | sWhere += " and æ¥æ <= '" + HDate1 + "'"; |
| | | sWhere += " and CONVERT(varchar(10),æ¥æ,120) <= '" + HDate1 + "'"; |
| | | } |
| | | if (HICMOBillNo) { |
| | | sWhere += " and ä»»å¡åå· like '%" + HICMOBillNo + "%'"; |
| | |
| | | $("#HWorkShiftID").val(LoadData[0].HInterID); //å½åå·¥åºID |
| | | $("#HWorkShiftName").val(LoadData[0].çæ¬¡); //å½åå·¥åº |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | } |
| | | //else { |
| | | // layer.alert(data.Message, { icon: 5 }); |
| | | //} |
| | | }, |
| | | error: function (err) { |
| | | layer.alert(err, { icon: 5 }); |
| | |
| | | $("#HWorkShiftID").val(LoadData[0].HInterID); //å½åå·¥åºID |
| | | $("#HWorkShiftName").val(LoadData[0].çæ¬¡); //å½åå·¥åº |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | } |
| | | //else { |
| | | // layer.alert(data.Message, { icon: 5 }); |
| | | //} |
| | | }, |
| | | error: function (err) { |
| | | layer.alert(err, { icon: 5 }); |
| | |
| | | if (data.count == 1)// 说æéªè¯æåäºï¼ |
| | | { |
| | | var LoadData = data.data; |
| | | $("#HWorkShiftID").val(LoadData[0].HInterID); //å½åå·¥åºID |
| | | $("#HWorkShiftID").val(LoadData[0].HInterID); //å½åå·¥åºID |
| | | $("#HWorkShiftName").val(LoadData[0].çæ¬¡); //å½åå·¥åº |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | } |
| | | //else { |
| | | // layer.alert(data.Message, { icon: 5 }); |
| | | //} |
| | | }, |
| | | error: function (err) { |
| | | layer.alert(err, { icon: 5 }); |
| | |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | ds = data1.data |
| | | option.data[i]["HMouldID"] = data1.data[0].HMouldID; |
| | | option.data[i]["HMouldID"] = data1.data[0].HMouldID == undefined ? 0 : data1.data[0].HMouldID; |
| | | option.data[i]["使ç¨å·¥è£
"] = data1.data[0].使ç¨å·¥è£
; |
| | | } else { |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | ds = data1.data |
| | | option.data[i]["HMouldID"] = data1.data[0].HMouldID; |
| | | option.data[i]["HMouldID"] = data1.data[0].HMouldID == undefined ? 0 : data1.data[0].HMouldID; |
| | | option.data[i]["使ç¨å·¥è£
"] = data1.data[0].使ç¨å·¥è£
; |
| | | } else { |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | |
| | | |
| | | //åé¤ä¸æ¹æäº§å表ä¸å·²ç»å å
¥çç产订å |
| | | var tables = []; |
| | | for (var i = 0; i < option2.data.length; i++) { |
| | | var temp = option2.data[i]["hmainid"] + "|" + option2.data[i]["HEntryID"]; |
| | | if ($.inArray(temp, compareList) == -1) { |
| | | tables.push(option2.data[i]); |
| | | if (option2.data != undefined) { |
| | | for (var i = 0; i < option2.data.length; i++) { |
| | | var temp = option2.data[i]["hmainid"] + "|" + option2.data[i]["HEntryID"]; |
| | | if ($.inArray(temp, compareList) == -1) { |
| | | tables.push(option2.data[i]); |
| | | } |
| | | } |
| | | } |
| | | option2.data = tables; |
| | | option2.data = tables; |
| | | |
| | | //éæ°æ¸²æå表2 |
| | | table.render(option2); |
| | | |
| | | //éæ°æ¸²æå表2 |
| | | table.render(option2); |
| | | } |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | |
| | | <h1 style="text-align:center;" id="BT_GXLZK"><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="5" style="padding:1px;">ç¾æ¯ä¿¡æ¯</li>--> |
| | | <li lay-id="2" style="padding:1px;">å
¶ä»ä¿¡æ¯</li> |
| | | <li lay-id="3" style="padding:1px;">æ£ç§»ç¥¨ä¿¡æ¯</li> |
| | | <li lay-id="4" style="padding:1px;">å¶åä¿¡æ¯</li> |
| | | <li lay-id="2" style="padding:1px;">ç¾æ¯ä¿¡æ¯</li> |
| | | <li lay-id="3" style="padding:1px;">å
¶ä»ä¿¡æ¯</li> |
| | | <li lay-id="4" style="padding:1px;">æ£ç§»ç¥¨ä¿¡æ¯</li> |
| | | <li lay-id="5" style="padding:1px;">å¶åä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <!--åºæ¬ä¿¡æ¯--> |
| | |
| | | set_EditGrid(linterid); //ç¼è¾è·åè¡¨ä½ |
| | | get_DisplayHMainID(linterid); //ç¼è¾è·å表ä½(å¨å
·æ¸
å) |
| | | get_Display3(linterid); //ç¼è¾è·å表ä½(å·¥èºåæ°æ¸
å) |
| | | option.data = [{ |
| | | "HProcNo": "", "HProcID": 0, "HProcNumber": "", "HProcName": "", "HWorkRemark": "", |
| | | "HCenterID": 0, "HCenterNumber": "", "HCenterName": "", |
| | | "HDeptID": 0, "HDeptNumber": "", "HDeptName": "", |
| | | "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false", |
| | | "HQty": 0, "HSNCtrl": "false", "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0, |
| | | "HRelationQty_WWOrder": 0, "HRelationQty_Bad": 0, "HOverRate": 0, "HMaxQty": 0, |
| | | "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "", |
| | | "HRoutingBillMainID": 0, "HRoutingBillEntryID": 0,"HSourceID":0 |
| | | }]; |
| | | table.render(option); |
| | | |
| | | //option.data = [{ |
| | | // "HProcNo": "", "HProcID": 0, "HProcNumber": "", "HProcName": "", "HWorkRemark": "", |
| | | // "HCenterID": 0, "HCenterNumber": "", "HCenterName": "", |
| | | // "HDeptID": 0, "HDeptNumber": "", "HDeptName": "", |
| | | // "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false", |
| | | // "HQty": 0, "HSNCtrl": "false", "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0, |
| | | // "HRelationQty_WWOrder": 0, "HRelationQty_Bad": 0, "HOverRate": 0, "HMaxQty": 0, |
| | | // "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "", |
| | | // "HRoutingBillMainID": 0, "HRoutingBillEntryID": 0,"HSourceID":0 |
| | | //}]; |
| | | //table.render(option); |
| | | } |
| | | //ç¼è¾è·å表头 |
| | | function set_EditForm(linterid) { |
| | |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | |
| | | var NewRow = { |
| | | "HPreventErrMouldID": "0", "HPreventErrMouldName": "", "HPreventErrNote": "", "HLoseMode": "", "HLoseCheck": "","HRemark":"", |
| | | "HPreventErrMouldID": "0", "HPreventErrMouldName": "", "HPreventErrNote": "", "HLoseMode": "", "HLoseCheck": "", "HPreventErrResult": "","HRemark":"", |
| | | "HSourceBillNo": 0, "HSourceBillType": 0, "HSourceInterID": 0, "HSourceEntryID": 0, |
| | | }; |
| | | switch (obj.event) { |
| | |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HPreventErrMouldID', title: 'HPreventErrMouldID', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HPreventErrMouldName', title: 'é²éè£
ç½®', edit: 'text', event: "HPreventErrMouldID", style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HPreventErrMouldName', title: 'é²éè£
ç½®', edit: 'text', event: "HPreventErrMouldID" } //f7 |
| | | , { field: 'HPreventErrNote', title: 'é²éåè½', edit: 'text'} |
| | | , { field: 'HLoseMode', title: 'å¤±ææ¨¡å¼', edit: 'text'} |
| | | , { field: 'HLoseCheck', title: '失æéªè¯æ¹æ³', edit: 'text', } |
| | | , { field: 'HLoseCheck', title: '失æéªè¯æ¹æ³', edit: 'text' } |
| | | , { field: 'HPreventErrResult', title: 'é²éç»æ', edit: 'text'} |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { field: 'HSourceInterID', title: 'æºåå
ç ', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', hide: true, style: 'background-color: #f9f9f9;' } |
| | |
| | | , "HPreventErrNote": "" |
| | | , "HLoseMode": "" |
| | | , "HLoseCheck": "" |
| | | , "HPreventErrResult": "" |
| | | , "HRemark":"" |
| | | , "HSourceInterID": "0" |
| | | , "HSourceEntryID": "0" |
| | |
| | | "HPreventErrNote": tableSub[i]["é²éåè½"], |
| | | "HLoseMode": tableSub[i]["å¤±ææ¨¡å¼"], |
| | | "HLoseCheck": tableSub[i]["失æéªè¯æ¹æ³"], |
| | | "HPreventErrResult": tableSub[i]["é²éç»æ"], |
| | | "HRemark": tableSub[i]["表ä½å¤æ³¨"] |
| | | } |
| | | ); |
| | |
| | | var oldData = table.cache["mainTable"]; |
| | | oldData.splice(obj.tr.data('index'), 1) |
| | | option.data = oldData;//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(option); |
| | | for (var i = 0; i < oldData.length; i++) { |
| | | $('#HLoseCheck' + (i + 1)).find("option[value='" + oldData[i].HLoseCheck + "']").attr("selected", true); |
| | | } |
| | | form.render('select'); |
| | | table.render(option); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | |
| | | , { field: 'å¤±ææ¨¡å¼', title: 'å¤±ææ¨¡å¼', width: 120 } |
| | | , { field: 'é²éåè½', title: 'é²éåè½', width: 120 } |
| | | , { field: '失æéªè¯æ¹æ³', title: '失æéªè¯æ¹æ³', width: 120 } |
| | | , { field: 'é²éç»æ', title: 'é²éç»æ', width: 120 } |
| | | , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨', width: 120 } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]] |
| | |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | |
| | | var NewRow = { |
| | | "HPreventErrMouldID": "0", "HPreventErrMouldName": "", "HPreventErrNote": "", "HLoseMode": "", "HLoseCheck": "", "HCheckResult": "","HRemark":"", |
| | | "HPreventErrMouldID": "0", "HPreventErrMouldName": "", "HPreventErrNote": "", "HLoseMode": "", "HLoseCheck": "","HPreventErrResult":"", "HCheckResult": "","HRemark":"", |
| | | "HSourceBillNo": 0, "HSourceBillType": 0, "HSourceInterID": 0, "HSourceEntryID": 0, |
| | | }; |
| | | switch (obj.event) { |
| | |
| | | , { field: 'HPreventErrNote', title: 'é²éåè½', edit: 'text' } |
| | | , { field: 'HLoseMode', title: 'å¤±ææ¨¡å¼', edit: 'text' } |
| | | , { field: 'HLoseCheck', title: '失æéªè¯æ¹æ³', edit: 'text', } |
| | | , { field: 'HPreventErrResult', title: 'é²éç»æ', edit: 'text' } |
| | | , { field: 'HCheckResult', title: 'ç»æ', templet: '#HCheckResult' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { field: 'HSourceInterID', title: 'æºåå
ç ', hide: true, style: 'background-color: #f9f9f9;' } |
| | |
| | | , "HPreventErrNote": "" |
| | | , "HLoseMode": "" |
| | | , "HLoseCheck": "" |
| | | , "HPreventErrResult": "" |
| | | , "HCheckResult": "" |
| | | , "HRemark":"" |
| | | , "HSourceInterID": "0" |
| | |
| | | function set_AddNew(data) { |
| | | |
| | | |
| | | //è·å项ç®è´¹ç¨è¡¨æ°æ® |
| | | //è·åè¡¨æ°æ® |
| | | var num = []; |
| | | for (var i = 0; i < table.cache["mainTable"].length; i++) { |
| | | if (table.cache["mainTable"][i] != "") { |
| | |
| | | "HPreventErrNote": tableSub[i]["é²éåè½"], |
| | | "HLoseMode": tableSub[i]["å¤±ææ¨¡å¼"], |
| | | "HLoseCheck": tableSub[i]["失æéªè¯æ¹æ³"], |
| | | "HPreventErrResult": tableSub[i]["é²éç»æ"], |
| | | "HCheckResult": tableSub[i]["ç»æ"], |
| | | "HRemark": tableSub[i]["表ä½å¤æ³¨"] |
| | | } |
| | |
| | | "HPreventErrNote": tableSub[i]["é²éåè½"], |
| | | "HLoseMode": tableSub[i]["å¤±ææ¨¡å¼"], |
| | | "HLoseCheck": tableSub[i]["失æéªè¯æ¹æ³"], |
| | | "HPreventErrResult": tableSub[i]["é²éç»æ"], |
| | | "HCheckResult": tableSub[i]["ç»æ"], |
| | | "HRemark": tableSub[i]["表ä½å¤æ³¨"] |
| | | } |
| | |
| | | "HPreventErrNote": tableSub[i]["é²éåè½"], |
| | | "HLoseMode": tableSub[i]["å¤±ææ¨¡å¼"], |
| | | "HLoseCheck": tableSub[i]["失æéªè¯æ¹æ³"], |
| | | "HPreventErrResult": tableSub[i]["é²éç»æ"], |
| | | "HCheckResult": tableSub[i]["ç»æ"], |
| | | "HRemark": tableSub[i]["表ä½å¤æ³¨"] |
| | | } |